/* ══════════════════════════════════════════════════════
   GENERATEPRESS OVERRIDE — forțat înainte de orice regulă
   ══════════════════════════════════════════════════════ */

/* Elimină padding/margin GP din main content pe paginile de arhivă */
body.category .site-main,
body.archive .site-main,
body.search .site-main,
body.error404 .site-main,
body.single .site-main,
body.page .site-main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Elimina inner container GP */
body.category .inside-article,
body.archive .inside-article,
body.category article,
body.archive article,
body.category .post,
body.archive .post {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* Forțează full-width pentru .zm-arc-hero */
body .zm-arc-hero,
.zm-arc-hero {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  float: none !important;
  display: block !important;
}

/* SVG decorativ: fixăm dimensiunile să nu umple pagina */
body .zm-arc-deco-svg,
.zm-arc-deco-svg {
  width: 180px !important;
  height: 180px !important;
  max-width: 180px !important;
  max-height: 180px !important;
  overflow: hidden !important;
}

body .zm-arc-hero-deco,
.zm-arc-hero-deco {
  width: 180px !important;
  height: 180px !important;
  max-width: 180px !important;
  flex-shrink: 0;
  overflow: hidden !important;
}

/* Wave SVG — fix height */
body .zm-arc-hero-wave svg,
.zm-arc-hero-wave svg {
  height: 40px !important;
  width: 100% !important;
}

/* Forțăm linia de container GP să nu distrugă grid-ul */
body.category .content-area,
body.archive .content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/*
 * ZiarMedical — archive.css v4.0.5
 * Pagini categorie, arhivă, blog home, search, single, 404
 */

:root {
  --zm-ac2: #7c3aed;
}

/* ══════════════════════════════════════════════════════
   ARCHIVE HERO — categorie, arhivă, blog
   ══════════════════════════════════════════════════════ */

.zm-arc-hero {
  background:
    radial-gradient(ellipse 70% 80% at 10% 60%, rgba(76,34,173,.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 90% 40%, rgba(255,82,0,.1) 0%, transparent 60%),
    linear-gradient(150deg, #1e1440 0%, #1c1e3a 55%, #141e35 100%);
  padding: 56px 0 0;
  position: relative;
  overflow: hidden;
}

.zm-arc-hero-light {
  background:
    radial-gradient(ellipse 55% 70% at 15% 55%, rgba(76,34,173,.09) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 85% 40%, rgba(255,82,0,.06) 0%, transparent 60%),
    linear-gradient(150deg, #f0edf8 0%, #eeeaf6 50%, #f2eff9 100%);
}

.zm-arc-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative; z-index: 1;
}

.zm-arc-hero-content { flex: 1; min-width: 0; }

.zm-arc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--zm-font-b);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.zm-arc-hero-light .zm-arc-eyebrow { color: var(--zm-ac); }

.zm-arc-title {
  font-family: var(--zm-font-h);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin: 0 0 12px;
  text-wrap: balance;
}
.zm-arc-hero-light .zm-arc-title { color: var(--zm-t1); }

.zm-arc-desc {
  font-size: 16px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 540px;
  text-wrap: pretty;
}
.zm-arc-hero-light .zm-arc-desc { color: var(--zm-t2); }

.zm-arc-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.zm-arc-count {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.8);
  font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}

/* Decorative SVG */
.zm-arc-hero-deco {
  flex-shrink: 0;
  width: 180px;
  opacity: .8;
}
.zm-arc-deco-svg { width: 100%; height: auto; }

@media (max-width: 640px) {
  .zm-arc-hero { padding: 36px 0 0; }
  .zm-arc-hero-inner { padding: 0 16px 36px; }
  .zm-arc-hero-deco { display: none; }
}

/* Wave bottom */
.zm-arc-hero-wave {
  width: 100%; line-height: 0;
  margin-top: -2px;
}
.zm-arc-hero-wave svg { display: block; width: 100%; height: 40px; }

/* ══ SUBCATEGORIES BAR ══════════════════════════════════ */
.zm-arc-subcats { border-bottom: 1px solid var(--zm-bd); background: var(--zm-bg2); }
.zm-arc-subcats-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}

.zm-arc-subcat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--zm-bg);
  border: 1.5px solid var(--zm-bd);
  border-radius: 999px;
  color: var(--zm-t2);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px;
  text-decoration: none;
  transition: all .15s;
  min-height: 38px;
}
.zm-arc-subcat-pill:hover { background: var(--zm-ac-light); border-color: rgba(76,34,173,.25); color: var(--zm-ac); text-decoration: none; }

.zm-arc-subcat-count {
  background: rgba(0,0,0,.07);
  border-radius: 999px;
  font-size: 11px;
  padding: 1px 7px;
  color: var(--zm-t3);
}

/* ══ ARCHIVE WRAP ════════════════════════════════════════ */
.zm-arc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

@media (max-width: 479px) { .zm-arc-wrap { padding: 24px 12px 56px; } }

/* ══ FEATURED ARTICLE ════════════════════════════════════ */
.zm-arc-featured {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 20px;
  overflow: hidden;
  background: var(--zm-bg2);
  border: 1px solid var(--zm-bd);
  box-shadow: var(--zm-sh);
  margin-bottom: 32px;
  transition: box-shadow .22s, transform .22s;
}

@media (min-width: 640px) {
  .zm-arc-featured {
    grid-template-columns: 1.4fr 1fr;
    min-height: 340px;
  }
}

.zm-arc-featured:hover { box-shadow: var(--zm-sh-lg); transform: translateY(-2px); }

.zm-arc-feat-img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}
@media (min-width: 640px) {
  .zm-arc-feat-img-wrap { aspect-ratio: unset; min-height: 280px; }
}

.zm-arc-feat-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}
.zm-arc-featured:hover .zm-arc-feat-img { transform: scale(1.04); }

.zm-arc-feat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(255,255,255,.08) 100%);
  pointer-events: none;
}

.zm-arc-feat-body {
  padding: 28px 28px 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}

.zm-arc-feat-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.zm-arc-feat-title {
  font-family: var(--zm-font-h);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--zm-t1);
  line-height: 1.22;
  letter-spacing: -.3px;
  margin: 0;
  text-wrap: balance;
}
.zm-arc-feat-title a { color: var(--zm-t1); text-decoration: none; }
.zm-arc-feat-title a:hover { color: var(--zm-ac); }

.zm-arc-feat-excerpt {
  font-size: 15px;
  color: var(--zm-t2);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  text-wrap: pretty;
}

.zm-arc-read-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--zm-ac-grad);
  color: #fff;
  font-family: var(--zm-font-b);
  font-size: 13px; font-weight: 700;
  text-decoration: none; align-self: flex-start;
  box-shadow: 0 4px 14px rgba(76,34,173,.25);
  transition: all .18s;
  min-height: 42px;
}
.zm-arc-read-btn:hover { opacity: .9; transform: translateY(-1px); text-decoration: none; }

@media (max-width: 479px) {
  .zm-arc-featured { border-radius: 14px; margin-bottom: 20px; }
  .zm-arc-feat-body { padding: 18px 16px 20px; gap: 9px; }
  .zm-arc-feat-title { font-size: 18px; }
  .zm-arc-feat-excerpt { -webkit-line-clamp: 2; font-size: 14px; }
  .zm-arc-read-btn { font-size: 12px; padding: 8px 14px; }
}

/* ══ ARCHIVE GRID ════════════════════════════════════════ */
.zm-arc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 480px) { .zm-arc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 820px) { .zm-arc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px){ .zm-arc-grid { gap: 24px; } }

@media (max-width: 359px) { .zm-arc-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ══ PAGINATION ═══════════════════════════════════════════ */
.zm-pagination {
  margin-top: 48px;
  display: flex; justify-content: center;
}

.zm-pagination-list {
  list-style: none;
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap; justify-content: center;
  padding: 0; margin: 0;
}

.zm-pg-item a,
.zm-pg-item span {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--zm-bd);
  background: var(--zm-bg2);
  color: var(--zm-t2);
  font-family: var(--zm-font-b);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  transition: all .15s;
}
.zm-pg-item a:hover { background: var(--zm-ac-light); border-color: rgba(76,34,173,.25); color: var(--zm-ac); }
.zm-pg-current a,
.zm-pg-current span {
  background: var(--zm-ac-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(76,34,173,.25);
}

@media (max-width: 479px) {
  .zm-pg-item a, .zm-pg-item span { padding: 7px 11px; font-size: 13px; }
  .zm-pagination { margin-top: 32px; }
}

/* ══ EMPTY STATE ══════════════════════════════════════════ */
.zm-arc-empty {
  text-align: center;
  padding: 80px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.zm-arc-empty p { font-size: 16px; color: var(--zm-t2); max-width: 400px; }
.zm-arc-empty-cats {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px;
}

/* ══ SEARCH FORM ══════════════════════════════════════════ */
.zm-search-form {
  display: flex; gap: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  max-width: 480px;
  margin-top: 20px;
  transition: border-color .15s;
}
.zm-search-form:focus-within {
  border-color: rgba(255,255,255,.45);
}
.zm-arc-hero-light .zm-search-form {
  border-color: var(--zm-bd);
  background: var(--zm-bg2);
}
.zm-arc-hero-light .zm-search-form:focus-within { border-color: var(--zm-ac); }

.zm-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 12px 20px;
  font-family: var(--zm-font-b);
  font-size: 15px; color: #fff;
  min-height: 50px;
}
.zm-arc-hero-light .zm-search-input { color: var(--zm-t1); }
.zm-search-input::placeholder { color: rgba(255,255,255,.45); }
.zm-arc-hero-light .zm-search-input::placeholder { color: var(--zm-t4); }

.zm-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 50px; flex-shrink: 0;
  background: var(--zm-ac-grad);
  border: none; color: #fff; cursor: pointer;
  transition: opacity .14s;
}
.zm-search-btn:hover { opacity: .85; }
.zm-search-btn:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: -3px; }

@media (max-width: 479px) {
  .zm-search-input { padding: 10px 14px; font-size: 14px; min-height: 46px; }
  .zm-search-btn { width: 46px; }
}

/* ══════════════════════════════════════════════════════
   SINGLE ARTICLE — redesign complet v4.0.5
   ══════════════════════════════════════════════════════ */

.zm-article { max-width: 100%; }

/* ── Article header ── */
.zm-article-head {
  background: var(--zm-bg2);
  border-bottom: 1px solid var(--zm-bd);
  padding: 40px 0 32px;
}

.zm-article-head-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.zm-article-cats {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 14px;
}

.zm-article-cat {
  display: inline-flex; align-items: center;
  background: var(--zm-ac-light);
  color: var(--zm-ac);
  border-radius: 6px;
  font-family: var(--zm-font-b);
  font-size: 12px; font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase; letter-spacing: .5px;
  text-decoration: none;
  transition: background .13s;
}
.zm-article-cat:hover { background: rgba(76,34,173,.14); text-decoration: none; }

.zm-article-head h1 {
  font-family: var(--zm-font-h);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.5px;
  color: var(--zm-t1);
  margin: 0 0 14px;
  text-wrap: balance;
}

.zm-article-lead {
  font-size: 18px;
  color: var(--zm-t2);
  line-height: 1.65;
  margin: 0 0 18px;
  font-weight: 400;
  text-wrap: pretty;
}

/* Meta bar */
.zm-article-meta-bar {
  display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--zm-bd);
}

.zm-meta-author {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--zm-t1);
}
.zm-meta-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--zm-bd);
  object-fit: cover;
}

.zm-meta-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zm-meta-item { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--zm-t3); }
.zm-meta-item svg { flex-shrink: 0; }
.zm-meta-sep { color: var(--zm-t4); }

.zm-meta-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.zm-meta-action-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  border: 1.5px solid var(--zm-bd);
  background: var(--zm-bg);
  color: var(--zm-t2); cursor: pointer;
  transition: all .14s;
}
.zm-meta-action-btn:hover, .zm-meta-action-btn.is-saved {
  background: var(--zm-ac-light); border-color: rgba(76,34,173,.25); color: var(--zm-ac);
}

/* ── Featured image ── */
.zm-article-hero-img {
  margin: 0;
  position: relative;
  max-height: 520px;
  overflow: hidden;
  background: var(--zm-bg3);
}
.zm-article-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  max-height: 520px;
}
.zm-article-img-caption {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 24px;
  font-size: 13px; color: var(--zm-t3);
  background: var(--zm-bg);
  border-top: 1px solid var(--zm-bd);
}

/* ── Article layout: content + sidebar ── */
.zm-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 0;
  position: relative;
}

@media (min-width: 900px) {
  .zm-article-layout {
    grid-template-columns: 52px 1fr;
    gap: 0 28px;
    padding: 0 24px;
  }
}

/* ── Share sidebar (sticky) ── */
.zm-article-sidebar { display: none; }

@media (min-width: 900px) {
  .zm-article-sidebar { display: block; }
}

.zm-share-sticky {
  position: sticky;
  top: 88px;
  padding-top: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.zm-share-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--zm-t4);
  writing-mode: unset;
  white-space: nowrap;
}

.zm-share-btns-vert { display: flex; flex-direction: column; gap: 6px; }

.zm-share-vert-btn {
  width: 42px; height: 42px; border-radius: 11px;
  border: 1.5px solid var(--zm-bd);
  background: var(--zm-bg2);
  color: var(--zm-t2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.zm-share-vert-btn:hover {
  background: var(--zm-ac-light); border-color: rgba(76,34,173,.25); color: var(--zm-ac);
  transform: translateX(2px);
}
.zm-share-vert-btn:focus-visible { outline: 3px solid var(--zm-ac); outline-offset: 2px; }

/* ── Article content ── */
.zm-article-content { min-width: 0; padding: 36px 0 60px; }

/* Article body typography — WCAG AA */
.zm-article-body {
  font-family: var(--zm-font-b);
  font-size: 17px;
  line-height: 1.8;
  color: var(--zm-t1);
  max-width: 700px;
}

.zm-article-body p {
  margin-bottom: 1.4em;
  font-size: inherit;
  line-height: inherit;
}

.zm-article-body h2 {
  font-family: var(--zm-font-h);
  font-size: 24px; font-weight: 700;
  color: var(--zm-t1);
  margin: 1.8em 0 .55em;
  line-height: 1.2;
  letter-spacing: -.3px;
  padding-top: 8px;
  border-top: 2px solid var(--zm-bd);
}

.zm-article-body h3 {
  font-family: var(--zm-font-h);
  font-size: 20px; font-weight: 600;
  margin: 1.5em 0 .45em;
  line-height: 1.28;
  color: var(--zm-t1);
}

.zm-article-body h4 {
  font-family: var(--zm-font-b);
  font-size: 17px; font-weight: 700;
  margin: 1.2em 0 .35em;
  color: var(--zm-t1);
}

.zm-article-body a {
  color: var(--zm-ac);
  text-decoration: underline;
  text-decoration-color: rgba(76,34,173,.4);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.zm-article-body a:hover { text-decoration-color: var(--zm-ac); }

.zm-article-body strong { font-weight: 700; color: var(--zm-t1); }
.zm-article-body em { font-style: italic; }

.zm-article-body blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--zm-ac);
  background: var(--zm-ac-light);
  border-radius: 0 12px 12px 0;
  font-size: 17px; font-style: italic;
  color: var(--zm-t2);
  line-height: 1.7;
}

.zm-article-body blockquote p { margin-bottom: 0; }

.zm-article-body ul,
.zm-article-body ol {
  padding-left: 24px;
  margin-bottom: 1.3em;
}
.zm-article-body li {
  margin-bottom: .45em;
  font-size: 17px;
  line-height: 1.7;
}

.zm-article-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5em 0;
  display: block;
}

.zm-article-body figure { margin: 1.5em 0; }
.zm-article-body figcaption {
  font-size: 13px; color: var(--zm-t3);
  text-align: center; margin-top: 8px;
  line-height: 1.5;
}

.zm-article-body table {
  width: 100%; border-collapse: collapse;
  margin: 1.5em 0; font-size: 15px;
}
.zm-article-body th, .zm-article-body td {
  padding: 10px 14px;
  border: 1px solid var(--zm-bd);
  text-align: left;
}
.zm-article-body th {
  background: var(--zm-bg3);
  font-weight: 700;
  font-size: 14px;
}
.zm-article-body tr:hover { background: rgba(76,34,173,.03); }

/* Tags */
.zm-article-tags {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--zm-bd);
}

/* Share bar mobile */
.zm-share-bar-mobile {
  display: flex; align-items: center; gap: 10px;
  margin-top: 24px; padding: 18px 20px;
  background: var(--zm-bg);
  border-radius: 14px;
  border: 1px solid var(--zm-bd);
  flex-wrap: wrap;
}
@media (min-width: 900px) { .zm-share-bar-mobile { display: none; } }

.zm-share-bar-label {
  font-size: 13px; font-weight: 700;
  color: var(--zm-t3); text-transform: uppercase; letter-spacing: .8px;
  flex-shrink: 0;
}

.zm-share-bar-btns { display: flex; gap: 6px; flex-wrap: wrap; }

.zm-share-bar-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px solid var(--zm-bd); background: var(--zm-bg2);
  color: var(--zm-t2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .14s;
}
.zm-share-bar-btn:hover { background: var(--zm-ac-light); border-color: rgba(76,34,173,.25); color: var(--zm-ac); }

/* ── Related articles ── */
.zm-related {
  background: var(--zm-bg);
  border-top: 1px solid var(--zm-bd);
  padding: 56px 0 72px;
}

.zm-related-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
}

.zm-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 0;
}
@media (min-width: 500px) { .zm-related-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 800px) { .zm-related-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ── Mobile single adjustments ── */
@media (max-width: 479px) {
  .zm-article-head         { padding: 28px 0 22px; }
  .zm-article-head-inner   { padding: 0 14px; }
  .zm-article-head h1      { font-size: 22px; }
  .zm-article-lead         { font-size: 15px; }
  .zm-article-meta-bar     { gap: 8px; }
  .zm-meta-actions         { margin-left: 0; width: 100%; justify-content: flex-end; }

  .zm-article-hero-img     { max-height: 220px; }
  .zm-article-hero-img img { max-height: 220px; }

  .zm-article-layout       { padding: 0 12px; }
  .zm-article-content      { padding: 24px 0 40px; }

  .zm-article-body         { font-size: 16px; }
  .zm-article-body p,
  .zm-article-body li      { font-size: 16px; }
  .zm-article-body h2      { font-size: 20px; }
  .zm-article-body h3      { font-size: 17px; }
  .zm-article-body blockquote { padding: 14px 16px; font-size: 15px; }

  .zm-related              { padding: 40px 0 56px; }
  .zm-related-inner        { padding: 0 12px; }
  .zm-related-grid         { grid-template-columns: 1fr; gap: 12px; }
}

@media (min-width: 480px) and (max-width: 639px) {
  .zm-article-body { font-size: 16px; max-width: 100%; }
}

/* ══ 404 PAGE ════════════════════════════════════════════ */
.zm-404-wrap {
  min-height: calc(100vh - 120px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
  position: relative; overflow: hidden;
}

.zm-404-deco {
  position: absolute;
  width: min(380px, 70vw); height: min(380px, 70vw);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: .6;
}
.zm-404-deco svg { width: 100%; height: 100%; }

.zm-404-content {
  text-align: center;
  position: relative; z-index: 1;
  max-width: 480px;
}

.zm-404-num {
  font-family: var(--zm-font-h);
  font-size: clamp(80px, 18vw, 130px);
  font-weight: 700;
  background: var(--zm-ac-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: 8px;
}

.zm-404-title {
  font-family: var(--zm-font-h);
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 700; margin-bottom: 12px; color: var(--zm-t1);
}

.zm-404-sub {
  font-size: 15px; color: var(--zm-t2); line-height: 1.7;
  margin-bottom: 24px; text-wrap: pretty;
}

.zm-404-search {
  margin-bottom: 20px;
  border-color: var(--zm-bd) !important;
  background: var(--zm-bg2) !important;
  backdrop-filter: none !important;
  max-width: 400px;
  margin-left: auto; margin-right: auto;
}
.zm-404-search .zm-search-input { color: var(--zm-t1) !important; }
.zm-404-search .zm-search-input::placeholder { color: var(--zm-t4) !important; }

.zm-404-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }

.zm-404-cats-label {
  font-size: 13px; color: var(--zm-t4);
  font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 12px;
}
.zm-404-cats-grid {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.zm-404-cat-link {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 999px;
  background: var(--zm-bg); border: 1.5px solid var(--zm-bd);
  color: var(--zm-t2); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all .14s; min-height: 38px;
}
.zm-404-cat-link:hover { background: var(--zm-ac-light); border-color: rgba(76,34,173,.25); color: var(--zm-ac); text-decoration: none; }

@media (max-width: 479px) {
  .zm-404-content { max-width: 100%; }
  .zm-404-btns    { flex-direction: column; align-items: center; }
  .zm-404-btn     { width: 100%; max-width: 280px; justify-content: center; }
}

/* ══ HEADING SCALE — archive.css v4.0.6 ══════════════ */

/* Article H1 — NYT/Guardian standard: clamp 34–52px */
.zm-article-head h1 {
  font-size: clamp(28px, 4.5vw, 52px) !important;
  font-weight: 700 !important;
  letter-spacing: -.6px;
  line-height: 1.12 !important;
}

/* Article lead (subtitle) */
.zm-article-lead {
  font-size: clamp(16px, 1.8vw, 19px) !important;
  line-height: 1.65 !important;
  color: var(--zm-t2);
}

/* Article body headings */
.zm-article-body h2 {
  font-size: clamp(22px, 2.6vw, 30px) !important;
  font-weight: 700 !important;
  letter-spacing: -.35px;
  line-height: 1.2 !important;
}

.zm-article-body h3 {
  font-size: clamp(19px, 2vw, 24px) !important;
  font-weight: 600 !important;
  letter-spacing: -.25px;
  line-height: 1.25 !important;
}

.zm-article-body h4 {
  font-size: clamp(17px, 1.6vw, 20px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* 404 heading */
.zm-404-title {
  font-size: clamp(22px, 3vw, 30px) !important;
  font-weight: 700 !important;
}

/* Related section heading */
.zm-related .zm-section-h {
  font-size: clamp(20px, 2.2vw, 26px) !important;
}
