@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn.woff2') format('woff2-variations'), url('/assets/fonts/Vazirmatn.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #0b5e57;
  --primary-600: #0f766e;
  --primary-50: #ecf8f6;
  --primary-100: #d3efeb;
  --accent: #e0634f;
  --ink: #0f1d2b;
  --ink-2: #33475b;
  --muted: #64748b;
  --line: #e3e8ef;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 29, 43, 0.05), 0 1px 3px rgba(15, 29, 43, 0.04);
  --shadow: 0 4px 24px -6px rgba(15, 29, 43, 0.1), 0 2px 6px -2px rgba(15, 29, 43, 0.05);
  --shadow-lg: 0 24px 60px -18px rgba(15, 29, 43, 0.25);
  --container: 1200px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
button { font: inherit; cursor: pointer; }
.icon { flex-shrink: 0; vertical-align: middle; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
/* Hidden above the page, not far to the side: an off-page box on the start side made print shrink and cut every RTL line. */
.skip-link { position: absolute; right: 8px; inset-inline-start: 8px; top: -100px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }
/* Solid dark ring + white halo: visible on light pages, the teal hero and the dark footer alike. */
:focus-visible { outline: 3px solid #0f172a; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; border-radius: 6px; }
dfn.gl:focus-visible, .list-search input:focus-visible, .lib-search input:focus-visible, .search-box-inline input:focus-visible { outline: 3px solid #0f172a; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; padding: 12px 24px; border-radius: 999px; font-weight: 700; }
.btn:hover { background: var(--primary-600); color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--primary-50); color: var(--primary); }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--primary-600)) 12%, #fff); color: color-mix(in srgb, var(--c, var(--primary-600)) 85%, #000); }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--primary-600), var(--primary)); color: #fff; box-shadow: 0 6px 16px -6px var(--primary); }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 17px; font-weight: 800; white-space: nowrap; }
.brand-text small { font-size: 12px; color: var(--muted); max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-doc { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 3px; padding: 1px 10px 1px 8px; border-radius: 99px; background: linear-gradient(90deg, var(--primary-50), #fff6f3); border: 1px solid var(--primary-100); color: var(--primary); font-size: 12.5px; font-weight: 800; white-space: nowrap; line-height: 1.7; }
.brand-doc .icon { color: var(--accent); }
.brand-doc .bd-title { font-weight: 500; color: var(--muted); padding-inline-start: 6px; margin-inline-start: 1px; border-inline-start: 1px solid var(--primary-100); }
.header-doc { margin: 0 0 0 4px; padding: 4px 12px 4px 10px; font-size: 13px; }
.brand-doc-inline { display: none; }
.site-footer .brand-doc { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #5eead4; }
.site-footer .brand-doc .bd-title { color: #9fb0c0; border-color: rgba(255, 255, 255, 0.14); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.main-nav > a, .nav-drop > a { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.main-nav > a:hover, .nav-drop > a:hover, .main-nav a.active { color: var(--primary); background: var(--primary-50); }
.nav-drop { position: relative; }
.drop-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.18s ease; }
.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel { opacity: 1; visibility: visible; transform: none; }
.drop-panel a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.drop-panel a:hover { background: var(--bg); }
.mini-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.drop-all { grid-column: 1 / -1; justify-content: center; color: var(--primary) !important; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px !important; margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
/* The doctor badge sits under the site title elsewhere (align-self: flex-start); in the action row it is centred with the buttons. */
.header-actions .brand-doc { align-self: center; margin-top: 0; }
.search-trigger { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; min-width: 200px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 12px; font-size: 14px; }
.search-trigger:hover { border-color: var(--primary-100); background: #fff; }
.search-trigger kbd { margin-inline-start: auto; font-family: inherit; font-size: 11px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; direction: ltr; }
.menu-btn { display: none; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(140deg, #073f3a 0%, #0b5e57 45%, #12857a 100%); }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(600px 300px at 15% 20%, rgba(255, 255, 255, 0.12), transparent 70%),
  radial-gradient(500px 400px at 90% 110%, rgba(224, 99, 79, 0.35), transparent 70%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 15v14M15 22h14' stroke='%23fff' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; display: block; padding-top: 72px; padding-bottom: 72px; }
.hero-text { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-text p { margin-inline: auto; }
.hero-search { margin-inline: auto; }
.hero-quick, .hero-facts { justify-content: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 6px 14px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 900; margin: 20px 0 16px; line-height: 1.35; }
.hero p { font-size: 17.5px; color: rgba(255, 255, 255, 0.85); max-width: 640px; margin: 0 0 28px; }
.hero-search { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 620px; height: 62px; padding: 0 22px; background: #fff; color: var(--muted); border: 0; border-radius: 16px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35); font-size: 16px; text-align: start; transition: transform 0.15s; }
.hero-search:hover { transform: translateY(-1px); }
.hero-search .icon { color: var(--primary); }
.hero-audience { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; font-size: 14.5px; color: rgba(255, 255, 255, 0.8); }
.hero-audience a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); transition: 0.15s; }
.hero-audience a:hover { background: #fff; color: var(--primary); }
.hero-stats { display: grid; gap: 14px; }
.hero-stats div { display: flex; align-items: baseline; gap: 14px; padding: 20px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); }
.hero-stats strong { font-size: 38px; font-weight: 900; line-height: 1; }
.hero-stats span { color: rgba(255, 255, 255, 0.82); font-weight: 600; }

/* ---------------- Sections ---------------- */
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, #fff, var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; }
.section-title.center { text-align: center; margin-bottom: 36px; }
.section-sub { color: var(--muted); margin: 6px 0 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.link-more .icon { transition: transform 0.15s; }
.link-more:hover .icon { transform: translateX(-4px); }

.cancer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.cancer-card { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; overflow: hidden; }
.cancer-card::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--c); opacity: 0; transition: opacity 0.18s; }
.cancer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); color: var(--ink); }
.cancer-card:hover::before { opacity: 1; }
.cc-icon { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.cc-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cc-body strong { font-size: 18px; font-weight: 800; }
.cc-body span { font-size: 14px; color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-arrow { align-self: center; color: var(--line); transition: 0.18s; }
.cancer-card:hover .cc-arrow { color: var(--c); transform: translateX(-4px); }


.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.trust > span { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--primary-50); color: var(--primary); margin-bottom: 14px; }
.trust h3 { font-size: 18px; margin-bottom: 6px; }
.trust p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* ---------------- Page hero ---------------- */
.page-hero { --c: var(--primary-600); position: relative; padding: 28px 0 36px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, #fff), var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero.compact { padding-bottom: 32px; }
.page-hero.compact h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs span[aria-current] { color: var(--ink-2); font-weight: 600; }
.page-hero-main { display: flex; gap: 20px; align-items: flex-start; }
.ph-icon { display: grid; place-items: center; width: 76px; height: 76px; flex-shrink: 0; border-radius: 22px; background: var(--c); color: #fff; box-shadow: 0 14px 30px -12px var(--c); }
.ph-kicker { font-size: 14px; font-weight: 700; color: var(--c); }
.ph-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; }
.ph-sub { font-size: 17.5px; color: var(--ink-2); margin: 8px 0 0; max-width: 820px; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.ph-meta > * { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.ph-meta a:hover { color: var(--primary); }
.aud-switch { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 24px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.aud-label { font-size: 13.5px; color: var(--muted); padding: 0 10px; }
.aud-switch button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.aud-switch button:hover { background: var(--bg); }
.aud-switch button.active { background: var(--c); color: #fff; }

/* ---------------- Content layout ---------------- */
.page-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 64px; }
.page-layout.no-toc { grid-template-columns: minmax(0, 860px); justify-content: center; }
.toc-inner { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc-toggle { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 0 0 10px; font-weight: 800; font-size: 15px; color: var(--ink); cursor: default; }
.toc-chev { display: none; margin-inline-start: auto; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li a { display: block; padding: 7px 12px; border-inline-start: 2px solid var(--line); color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.toc li a:hover { color: var(--primary); background: var(--bg); }
.toc li a.active { border-color: var(--primary-600); color: var(--primary); font-weight: 700; background: var(--primary-50); }
.toc-refs a { color: var(--muted) !important; }
.content { min-width: 0; max-width: 860px; }
.blk { position: relative; margin-bottom: 26px; }
.blk-heading { margin-top: 44px; margin-bottom: 14px; }
.blk-heading:first-child { margin-top: 0; }
.sec-heading { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 900; }
h2.sec-heading::before { content: ''; width: 6px; height: 26px; border-radius: 4px; background: var(--c, var(--primary-600)); flex-shrink: 0; }
h3.sec-heading { font-size: 20px; }
.blk-title { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.aud-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.aud-doctor { background: #eef2ff; color: #4338ca; }
.aud-patient { background: #fff1ee; color: #c2410c; }
html[data-view='patient'] [data-audience='doctor'], html[data-view='doctor'] [data-audience='patient'] { display: none; }

.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 14px; }
.rich ul, .rich ol { padding-inline-start: 24px; margin: 0 0 14px; }
.rich li { margin-bottom: 6px; }
.rich li::marker { color: var(--primary-600); }
.rich h3 { font-size: 20px; margin: 24px 0 10px; }
.rich h4 { font-size: 17px; margin: 18px 0 8px; }
.rich blockquote { margin: 16px 0; padding: 14px 20px; border-inline-start: 4px solid var(--primary-100); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.rich a { text-decoration: underline; text-decoration-color: var(--primary-100); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.rich mark { background: #fff3c4; padding: 0 3px; border-radius: 4px; }
.rich img { display: block; max-width: 100%; height: auto; margin: 16px auto; border-radius: 14px; border: 1px solid var(--line); }
.rich strong { font-weight: 800; }
/* unicode-bidi: isolate keeps [۳،۵] in RTL order and stops a citation joining a Latin word next to it (Ki-67 [۴]). */
.cite { font-size: 0.72em; line-height: 0; font-weight: 700; margin: 0 1px; unicode-bidi: isolate; white-space: nowrap; }
.cite a { text-decoration: none !important; color: var(--primary-600); padding: 0 3px; unicode-bidi: isolate; }
.cite.flash a { background: var(--primary-50); border-radius: 4px; box-shadow: 0 0 0 3px var(--primary-100); }
.cite a:hover { background: var(--primary-50); border-radius: 4px; }
.cite-missing { color: #b91c1c; }

.keypoints { padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-50), #fff); border: 1px solid var(--primary-100); }
.keypoints ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.keypoints li { display: flex; gap: 10px; align-items: flex-start; }
.keypoints li .icon { color: var(--primary-600); margin-top: 4px; }

.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid; }
.callout-icon { flex-shrink: 0; margin-top: 2px; }
.callout-title { display: block; margin-bottom: 4px; font-size: 16.5px; }
.callout-info { background: #eff6ff; border-color: #cfe1fd; color: #1e3a8a; }
.callout-info .callout-icon { color: #2563eb; }
.callout-tip { background: #f0fdf4; border-color: #c8efd5; color: #14532d; }
.callout-tip .callout-icon { color: #16a34a; }
.callout-warning { background: #fffbeb; border-color: #fde7a6; color: #78350f; }
.callout-warning .callout-icon { color: #d97706; }
.callout-important { background: #fef2f2; border-color: #fbd0d0; color: #7f1d1d; }
.callout-important .callout-icon { color: #dc2626; }
.callout .rich { color: inherit; }

.table-fig { margin: 0; }
.table-fig figcaption { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 10px; font-size: 16px; }
.table-fig figcaption .icon { color: var(--primary-600); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.75; }
thead th { background: var(--primary); color: #fff; font-weight: 700; text-align: start; padding: 12px 16px; white-space: normal; min-width: 5.5em; }
tbody th { text-align: start; font-weight: 700; background: #fbfcfd; }
tbody th, tbody td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:hover td, tbody tr:hover th { background: var(--primary-50); }
.table-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.slides { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.slides-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 10px; border-bottom: 1px solid var(--line); font-weight: 800; }
.slides-head > .icon { color: var(--primary-600); margin-inline-start: 6px; }
.slides-title { flex: 1; }
.slides-count { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--bg); padding: 2px 10px; border-radius: 999px; }
.slides-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1fr; min-height: 320px; background: linear-gradient(160deg, #fff 40%, var(--primary-50)); }
.slide.has-image { grid-template-columns: 1.1fr 1fr; }
.slide-body { padding: 34px 38px; position: relative; }
.slide-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.slide h4 { font-size: 23px; font-weight: 900; margin-bottom: 12px; }
.slide-media { background: var(--bg); }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slides-nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); }
.nav-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: 0.15s; }
.nav-btn:hover:not(:disabled) { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav-btn:disabled { opacity: 0.35; cursor: default; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dot { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: var(--line); transition: 0.2s; }
.dot.active { width: 26px; background: var(--primary-600); }
.slides:fullscreen { display: flex; flex-direction: column; border-radius: 0; }
.slides:fullscreen .slides-track { flex: 1; }
.slides:fullscreen .slide { min-height: 0; font-size: 1.3em; }
.slides:fullscreen .slide-body { padding: 6vh 6vw; }

.video-fig { margin: 0; }
.video-title { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 10px; }
.video-title .icon { color: var(--accent); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b1320; box-shadow: var(--shadow); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-fig.portrait .video-frame { aspect-ratio: auto; height: 720px; max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--line); }
.video-fig figcaption, .image-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.image-fig { margin: 0; }
.image-fig img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; inset-inline-end: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--primary-50); }
.stat-value { position: relative; z-index: 1; font-size: 34px; font-weight: 900; color: var(--primary); line-height: 1.2; }
.stat-label { position: relative; z-index: 1; font-weight: 700; margin-top: 6px; line-height: 1.7; }
.stat-note { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.7; }

.info-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.info-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: 0.18s; }
.info-card:hover { box-shadow: var(--shadow); border-color: var(--primary-100); }
.info-card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-50); color: var(--primary-600); margin-bottom: 12px; }
.info-card h4 { font-size: 17px; margin-bottom: 6px; }
.info-card .rich { font-size: 15px; color: var(--ink-2); }

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.step { display: flex; gap: 18px; position: relative; padding-bottom: 22px; }
.step:not(:last-child)::before { content: ''; position: absolute; inset-inline-start: 20px; top: 44px; bottom: 4px; width: 2px; background: var(--primary-100); }
.step-num { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary-600); color: var(--primary); font-weight: 900; }
.step-body { flex: 1; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.step-body h4 { font-size: 17px; margin-bottom: 4px; }

.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { flex: 1; }
.faq-chevron { color: var(--muted); transition: transform 0.2s; }
.faq-item[open] summary { color: var(--primary); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-item .rich { padding: 0 20px 18px; color: var(--ink-2); }

.references { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.refs-head { display: flex; align-items: center; gap: 12px; }
.refs-head .sec-heading { flex: 1; }
.references .sec-heading::before { display: none; }
.references .sec-heading .icon { color: var(--primary-600); }
.ref-intro { color: var(--muted); font-size: 14px; }
.ref-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ref-list li { display: flex; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: 0.3s; }
.ref-list li:target, .ref-list li.flash { border-color: var(--primary-600); box-shadow: 0 0 0 4px var(--primary-50); }
.ref-n { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 8px; background: var(--primary-50); color: var(--primary); font-weight: 800; flex-shrink: 0; }
.ref-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ref-text { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.ref-title { color: var(--ink); font-weight: 700; font-size: 14.5px; line-height: 1.6; }
.ref-meta { color: var(--muted); font-size: 13px; line-height: 1.7; }
.ref-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
.ref-actions a { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.ref-actions a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.refs-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); color: var(--primary); font: inherit; font-weight: 800; cursor: pointer; }
.refs-more:hover { border-color: var(--primary-600); }
/* References: one closed «نمایش همه منابع» bar under the visible heading; it stays in place as «بستن فهرست منابع». */
details:not([open]) > summary .when-open, details[open] > summary .when-closed { display: none; }
.refs-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); color: var(--primary); font-weight: 800; cursor: pointer; list-style: none; text-align: center; }
.refs-toggle::-webkit-details-marker { display: none; }
.refs-toggle:hover { border-color: var(--primary-600); }
.refs-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.refs-toggle::after { content: ''; flex-shrink: 0; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.refs-fold[open] > .refs-toggle::after { transform: translateY(2px) rotate(-135deg); }
.refs-fold[open] > .refs-toggle { margin-bottom: 12px; }
.refs-sub { font-weight: 700; }
.ref-back { font-size: 13px; }
span.ref-back { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; }
.ref-actions .ref-back a { padding: 1px 8px; }
.cite-pop { position: absolute; z-index: 1000; max-width: 380px; padding: 12px 14px; background: var(--ink); color: #e2e8f0; border-radius: 12px; font-size: 13px; line-height: 1.7; box-shadow: var(--shadow-lg); direction: ltr; text-align: left; }
.cite-pop em { color: #fff; }
.cite-pop a { color: #5eead4; }
.cite-pop .ref-title { color: #fff; }
.cite-pop, .gl-tip { overflow-y: auto; overscroll-behavior: contain; }
.cite-pop .ref-text { display: block; }
.cite-pop .ref-title, .cite-pop .ref-meta { display: block; font-size: inherit; }
.cite-pop .ref-meta { margin-top: 2px; color: #cbd5e1; }
.cite-pop hr { border: 0; border-top: 1px solid #334155; margin: 8px 0; }
.cite-pop .pop-study { margin-top: 6px; }
/* Touch: the citation opens as a bottom sheet (role=dialog) instead of jumping to the reference list. */
.cite-pop.sheet { position: fixed; left: 8px; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom)); max-width: none !important; max-height: 55vh !important; overflow: auto; border-radius: 16px; padding: 14px 16px; font-size: 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; direction: rtl; margin-bottom: 8px; color: #fff; }
.sheet-head strong { font-size: 15px; outline: none; }
.sheet-head .icon-btn { color: #e2e8f0; font-size: 24px; line-height: 1; }
.sheet-head .icon-btn:hover { background: #1e293b; color: #fff; }
.cite-pop .sheet-go { display: block; direction: rtl; text-align: right; margin-top: 10px; font-weight: 700; }
.back-to-text { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; box-shadow: var(--shadow-lg); }
.back-to-text[hidden] { display: none; }
/* Toast for notices such as «برای نمایش این بخش، نمای «همه» فعال شد.» (also the polite live region). */
.site-toast { position: fixed; inset-inline: 16px; left: 16px; right: 16px; top: calc(var(--header-h) + 52px); z-index: 60; max-width: 440px; margin-inline: auto; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; text-align: center; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.site-toast.show { opacity: 1; }

.review-note { display: flex; gap: 12px; margin-top: 32px; padding: 16px 18px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: 13.5px; }
.review-note p { margin: 0; }
.review-note .icon { color: var(--primary-600); margin-top: 4px; }
.related { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--line); }
.related .section-title { margin-bottom: 24px; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag-filter button { border: 1px solid var(--line); background: var(--surface); padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.tag-filter button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty { color: var(--muted); text-align: center; }
.notfound { text-align: center; padding: 120px 0; }
.nf-code { font-size: 96px; font-weight: 900; color: var(--primary-100); line-height: 1; }
.notfound h1 { margin: 12px 0; }
.notfound p { color: var(--muted); margin-bottom: 24px; }

/* ---------------- Online visit ---------------- */
.visit-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px; background: var(--accent); color: #fff; white-space: nowrap; }
.visit-btn:hover { color: #fff; filter: brightness(1.05); }
.visit-btn.disabled { background: #fff4f1; color: #b4533f; border: 1px dashed #f0b7aa; cursor: default; }
.visit-btn small { font-size: 11px; font-weight: 700; background: #fff; border: 1px solid #f0c9c0; padding: 0 7px; border-radius: 99px; }
.visit-btn.big { height: 50px; padding: 0 22px; font-size: 16px; }
.visit-section { padding: 0 0 8px; }
.visit-cta { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 24px; background: linear-gradient(120deg, #fff 0%, #fff6f3 60%, #ffe9e3 100%); border: 1px solid #f6d5cc; box-shadow: var(--shadow-sm); }
.visit-cta-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--accent); color: #fff; flex-shrink: 0; box-shadow: 0 14px 30px -12px var(--accent); }
.visit-cta-text { flex: 1; }
.visit-cta-text h2 { font-size: 22px; font-weight: 900; }
.visit-cta-text p { margin: 4px 0 0; color: var(--ink-2); }
.visit-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-outline { display: inline-flex; align-items: center; gap: 7px; height: 50px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; }
.btn-outline:hover { border-color: var(--primary-600); color: var(--primary); }
.visit-card h2 { display: flex; align-items: center; gap: 8px; }
.visit-card p { margin: 0 0 14px; font-size: 14px; }

@media (max-width: 760px) { .visit-cta { flex-direction: column; text-align: center; padding: 24px 20px; } .visit-cta-actions { justify-content: center; } }

/* ---------------- Contact ---------------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.contact-form { position: relative; display: grid; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); transition: 0.15s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-600); background: #fff; box-shadow: 0 0 0 4px var(--primary-50); }
.contact-form .btn { justify-self: start; border: 0; }
.contact-form .btn:disabled { opacity: 0.6; }
.hp { position: absolute !important; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }
.contact-side { display: grid; gap: 16px; }
.contact-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h2 { font-size: 18px; margin-bottom: 14px; }
.channels { display: grid; gap: 8px; }
.channel { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 700; }
.channel:hover { border-color: var(--c); color: var(--ink); background: color-mix(in srgb, var(--c) 5%, #fff); }
.channel .ch-arrow { margin-inline-start: auto; color: var(--muted); }
.channel.disabled { opacity: 0.6; cursor: default; filter: grayscale(0.6); }
.channel small { margin-inline-start: auto; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); padding: 1px 10px; border-radius: 999px; }
@media (max-width: 860px) { .contact-layout, .form-row { grid-template-columns: 1fr; } }

/* ---------------- Footer ---------------- */
.site-footer { background: #0b1a26; color: #9fb0c0; padding: 44px 0 22px; font-size: 14.5px; }
.site-footer a { color: #c8d4df; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 0.8fr; gap: 40px; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-text small { color: #7f93a6; }
.footer-brand p { margin: 14px 0 10px; max-width: 360px; line-height: 1.9; font-size: 14px; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-cancers ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.fl-all { display: inline-flex; align-items: center; gap: 4px; color: #5eead4 !important; font-weight: 700; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }
.disclaimer { display: flex; gap: 10px; }
.disclaimer p { margin: 0; font-size: 12.5px; line-height: 1.8; color: #8ea1b3; }
.disclaimer .icon { color: #5eead4; margin-top: 3px; }
.footer-meta { display: flex; gap: 16px; flex-wrap: wrap; white-space: nowrap; color: #7f93a6; }
.footer-meta a { color: #9fb0c0; }

/* ---------------- Search ---------------- */
.search-modal { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-modal[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(11, 26, 38, 0.55); backdrop-filter: blur(4px); }
.search-dialog { position: relative; width: 100%; max-width: 640px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop 0.18s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-bottom: 1px solid var(--line); }
.search-input-row > .icon { color: var(--primary-600); margin-inline-start: 10px; }
.search-input-row input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 12px 4px; background: transparent; color: var(--ink); }
.search-results { max-height: 60vh; overflow: auto; padding: 8px; }
.search-hint { color: var(--muted); text-align: center; padding: 24px; margin: 0; font-size: 14px; }
.search-result { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; color: var(--ink); }
.search-result:hover, .search-result.active { background: var(--bg); color: var(--ink); }
.search-result .mini-icon { flex-shrink: 0; }
.search-result strong { display: block; font-size: 15.5px; }
.search-result small { display: block; color: var(--muted); font-size: 13px; line-height: 1.7; }
.search-result mark { background: #fff3c4; color: inherit; border-radius: 3px; }
.search-kind { font-size: 11.5px; font-weight: 700; color: var(--primary-600); }


/* ---------------- Top cancers (small illustrations) & compact grid ---------------- */
.top-cancers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.cancer-feature { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow-sm); transition: 0.18s; }
.cancer-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); color: var(--ink); }
.cf-thumb { display: grid; place-items: center; width: 84px; height: 84px; flex-shrink: 0; border-radius: 18px; overflow: hidden; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.cf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cf-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cf-body strong { font-size: 18px; font-weight: 900; }
.cf-sum { font-size: 13.5px; color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-more { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 13.5px; color: var(--c); }
.cancer-grid.compact { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.cancer-grid.compact .cancer-card { padding: 12px 14px; align-items: center; }
.cancer-grid.compact .cc-icon { width: 42px; height: 42px; border-radius: 12px; }
.cancer-grid.compact .cc-body strong { font-size: 15.5px; }
.cancer-grid.compact .cc-body span { -webkit-line-clamp: 1; font-size: 13px; }
.st-icon { color: var(--accent); margin-inline-end: 8px; vertical-align: -4px; }

/* ---------------- Articles & news: list with small thumbnails ---------------- */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.post { display: flex; gap: 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow-sm); transition: 0.18s; }
.post:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); color: var(--ink); }
.post-thumb { display: grid; place-items: center; width: 132px; height: 99px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.post-meta > span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.post-body strong { font-size: 16px; font-weight: 800; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-sum { font-size: 13.5px; color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-hl { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.post-hl b { color: var(--c); font-weight: 900; font-size: 14px; }
.tag-news { background: #fff1ee; color: #c2410c; }

/* ---------------- Page hero thumbnail ---------------- */
.ph-thumb { width: 96px; height: 96px; flex-shrink: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--c) 70%, transparent); border: 3px solid #fff; background: #fff; }
.ph-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Evidence: rows, blocks, library ---------------- */
.evidence-section { padding-top: 24px; }
.evidence-cta { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 32px; align-items: center; padding: 36px; border-radius: 28px; background: linear-gradient(140deg, #0c1f2b, #0f3a46 55%, #0b5e57); color: #fff; overflow: hidden; position: relative; }
.evidence-cta::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 15v14M15 22h14' stroke='%23fff' stroke-opacity='.05' stroke-width='2'/%3E%3C/svg%3E"); }
.evidence-text, .evidence-cta .ev-list { position: relative; }
.evidence-text h2 { font-size: 30px; font-weight: 900; margin: 14px 0 10px; }
.evidence-text p { color: rgba(255, 255, 255, 0.82); margin: 0 0 18px; }
.hero-kicker.dark { background: rgba(94, 234, 212, 0.12); border-color: rgba(94, 234, 212, 0.3); color: #5eead4; }
.evidence-counts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.evidence-counts span { padding: 6px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; }
.evidence-counts b { font-size: 20px; font-weight: 900; color: #5eead4; margin-inline-end: 4px; }
.evidence-counts.light span { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.evidence-counts.light b { color: var(--primary); }
.evidence-cta .btn { background: #5eead4; color: #0c1f2b; }
.evidence-cta .btn:hover { background: #99f6e4; color: #0c1f2b; }
.evidence-cta .ev-row { color: var(--ink); }

.ev-list { display: grid; gap: 8px; }
html.js .ev-list.collapsed > .ev-row:nth-child(n + 7) { display: none; }
.library-layout.filtering .ev-list.collapsed > .ev-row:nth-child(n + 7) { display: grid; }
.library-layout.filtering [data-group-more] { display: none; }
.ev-row { display: grid; grid-template-columns: minmax(0, 1fr) 210px auto; gap: 16px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--primary-600); border-radius: 14px; transition: 0.15s; }
.ev-row:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-100); border-inline-start-color: var(--primary-600); }
.ev-row.kind-guideline { border-inline-start-color: #7c3aed; }
.ev-row.kind-meta-analysis { border-inline-start-color: #ea580c; }
.ev-main { min-width: 0; }
.ev-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--primary-600); }
.kind-guideline .ev-kind { color: #6d28d9; }
.kind-meta-analysis .ev-kind { color: #c2410c; }
.ev-row h4 { font-size: 15.5px; font-weight: 800; line-height: 1.7; margin: 2px 0; }
.ev-src { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); }
.ev-src > span:first-child { text-align: right; }
.ev-reco { color: var(--ink-2); line-height: 1.7; }
.ev-result { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: var(--primary-50); border-radius: 10px; min-width: 0; }
.ev-result strong { font-size: 16px; font-weight: 900; color: var(--primary); line-height: 1.5; }
.ev-result small { font-size: 12px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-result.guideline { background: #f5f3ff; }
.ev-result.guideline strong { color: #6d28d9; }
.ev-actions { display: flex; }
.ev-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--primary-100); background: var(--primary-50); color: var(--primary); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.ev-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.ev-block { padding: 18px; background: linear-gradient(180deg, #fbfdfd, var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); }
.ev-block-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ev-block-head .icon { color: var(--primary-600); }
.ev-block-head h3 { font-size: 18px; font-weight: 900; flex: 1; }
.ev-count { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 1px 10px; border-radius: 99px; white-space: nowrap; }

.library-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 64px; }
.lib-side-inner { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; padding-bottom: 8px; }
.lib-filter { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lib-filter h3 { font-size: 14px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.lib-filter [data-lib-kind] { display: grid; gap: 2px; }
.lib-filter [data-lib-kind] button, .lib-index a { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; text-align: start; }
.lib-filter [data-lib-kind] button span, .lib-index a span { flex: 1; }
.lib-filter [data-lib-kind] button b, .lib-index a b { font-size: 12px; color: var(--muted); font-weight: 700; }
.lib-filter [data-lib-kind] button:hover, .lib-index a:hover { background: var(--bg); color: var(--ink); }
.lib-filter [data-lib-kind] button.active { background: var(--primary); color: #fff; }
.lib-filter [data-lib-kind] button.active b { color: #ccfbf1; }
.lib-index { display: grid; gap: 1px; }
.lib-index a .icon { color: var(--c, var(--muted)); }
.lib-side .search-box-inline { min-width: 0; }
.lib-group { margin-bottom: 30px; scroll-margin-top: calc(var(--header-h) + 16px); }
.lib-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid color-mix(in srgb, var(--c, var(--primary-600)) 25%, var(--line)); }
.lib-group-head h2 { font-size: 21px; font-weight: 900; }
.lib-group-head .link-more { margin-inline-start: auto; font-size: 14px; }
.search-box-inline { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.search-box-inline input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }

.ref-study { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--primary-100); background: var(--primary-50); color: var(--primary); font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; direction: rtl; }
.ref-study:hover { background: var(--primary); color: #fff; }
.cite-pop .ref-study { background: #134e4a; color: #ccfbf1; border-color: #115e59; }

/* Study modal + detail */
.study-modal { position: fixed; inset: 0; z-index: 110; display: flex; justify-content: center; align-items: center; padding: 3vh 16px; }
.study-modal[hidden] { display: none; }
.study-dialog { position: relative; width: 100%; max-width: 900px; max-height: 94vh; display: flex; flex-direction: column; background: var(--bg); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop 0.18s ease; }
.study-dialog-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.study-dialog-head > div { flex: 1; min-width: 0; }
.sdh-kicker { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--primary-600); }
.study-dialog-head h2 { font-size: 17px; font-weight: 900; line-height: 1.6; }
.sc-btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--primary-100); background: var(--primary-50); color: var(--primary); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.sc-btn:hover { background: var(--primary); color: #fff; }
.sc-btn .sc-ext { display: none; }
.study-dialog-body { overflow-y: auto; padding: 18px 22px 26px; }
.study-detail { display: grid; gap: 16px; }
cite.sd-original { font-style: normal; }
.sd-original { display: grid; gap: 2px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.sd-original span { font-weight: 700; font-size: 14.5px; }
.sd-original small { color: var(--muted); font-size: 12.5px; }
.sd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0; }
.sd-facts div { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.sd-facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.sd-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; line-height: 1.7; }
.sd-sec { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.sd-sec h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 900; margin-bottom: 12px; }
.sd-sec h3 .icon { color: var(--primary-600); }
.sd-plain { background: linear-gradient(135deg, var(--primary-50), #fff); border-color: var(--primary-100); }
.sd-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sd-stats .stat { box-shadow: none; padding: 16px; }
.sd-stats .stat-value { font-size: 21px; line-height: 1.5; }
.sd-stats .stat::after { width: 60px; height: 60px; inset-inline-end: -20px; top: -20px; }
.sd-arms { display: grid; gap: 10px; }
.sd-arm { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.sd-arm-name { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 6px; }
.sd-arm-name span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--primary); color: #fff; font-size: 13px; }
.sd-source, .sd-dose-note { display: flex; gap: 6px; font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.8; }
.sd-dose-note { color: #92400e; background: #fffbeb; border-radius: 10px; padding: 8px 12px; }
.sd-dose-note .icon, .sd-source .icon { margin-top: 4px; }
.sd-recos { list-style: none; counter-reset: reco; margin: 0; padding: 0; display: grid; gap: 10px; }
.sd-recos li { counter-increment: reco; position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 12px 14px; border: 1px solid #ede9fe; background: #faf8ff; border-radius: 12px; }
.sd-recos li::before { content: counter(reco, persian); display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px; background: #7c3aed; color: #fff; font-weight: 800; font-size: 13px; }
.sd-recos .rich { flex: 1; }
.sd-level { flex-shrink: 0; max-width: 45%; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: #ede9fe; color: #5b21b6; line-height: 1.7; }
.sd-abstract h4 { color: var(--primary); font-size: 15.5px; margin: 14px 0 4px; }
.sd-abstract h4:first-child { margin-top: 0; }
.sd-related { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.sd-related a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); font-weight: 700; }
.sd-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.sd-links a:hover { border-color: var(--primary-600); }
.sd-disclaimer { font-size: 12.5px; color: var(--muted); margin: 0; }
.study-hero .study-acr { display: inline-block; font-size: 15px; font-weight: 900; padding: 3px 12px; border-radius: 8px; background: var(--ink); color: #fff; margin: 8px 0 6px; letter-spacing: 0.03em; }
.study-hero h1 { font-size: clamp(24px, 3vw, 34px); max-width: 900px; }
.study-layout { max-width: 940px; padding-top: 28px; padding-bottom: 64px; }





/* ---------------- Round 3: homepage tools, tabs, resources ---------------- */
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.hero-facts span { display: inline-flex; align-items: center; gap: 6px; padding-inline-end: 18px; margin-inline-end: 18px; border-inline-end: 1px solid rgba(255, 255, 255, 0.18); }
.hero-facts span:last-child { border: 0; margin: 0; padding: 0; }
.hero-facts .icon { color: #5eead4; }
.hero-facts b { color: #fff; font-size: 17px; font-weight: 900; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-quick a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); transition: 0.15s; }
.hero-quick a:hover { background: #fff; color: var(--primary); }
.more-row { display: flex; justify-content: center; margin-top: 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow-sm); transition: 0.18s; }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary-100); color: var(--ink); }
.tool-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--primary-50); color: var(--primary-600); margin-bottom: 4px; }
.tool-card strong { font-size: 17px; font-weight: 900; }
.tool-card > span:not(.tool-icon) { font-size: 13.5px; color: var(--muted); line-height: 1.8; flex: 1; }
.tool-card small { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--primary-600); font-size: 13px; }
.tabs-pills { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tabs-pills button { border: 0; background: none; padding: 7px 16px; border-radius: 9px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.tabs-pills button.active { background: var(--primary); color: #fff; }
.evidence-slim { padding: 8px 0 24px; }
.evidence-banner { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 20px; background: linear-gradient(140deg, #0c1f2b, #0f3a46 55%, #0b5e57); color: #fff; }
.evidence-banner:hover { color: #fff; box-shadow: var(--shadow); }
.eb-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(94, 234, 212, 0.14); color: #5eead4; flex-shrink: 0; }
.eb-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.eb-text strong { font-size: 19px; font-weight: 900; }
.eb-text span { font-size: 13.5px; color: rgba(255, 255, 255, 0.78); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eb-counts { white-space: nowrap; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.eb-counts b { color: #5eead4; font-size: 18px; font-weight: 900; }
.eb-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #5eead4; color: #0c1f2b; flex-shrink: 0; }
.trust-slim { padding: 16px 0 48px; }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust-strip > div { min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.trust-strip .icon { color: var(--primary-600); margin-top: 3px; }
.trust-strip span { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.trust-strip b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

/* Drug facts, answer box, related resources, auto links, glossary tooltips */
.drug-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.drug-facts div { padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.drug-facts dt { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.drug-facts dd { margin: 0; font-weight: 800; font-size: 14px; }
.sd-newer { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; font-size: 14.5px; }
.sd-newer .icon { color: #c2410c; flex-shrink: 0; margin-top: 3px; }
.sd-newer a { font-weight: 700; }
.regimens { display: grid; gap: 14px; margin: 8px 0 6px; }
.regimens { gap: 8px; }
.regimen { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0; min-width: 0; }
.regimen[open] { border-color: var(--primary-100); box-shadow: var(--shadow-sm); }
.rg-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name chev' 'set set' 'chips chips'; gap: 4px 10px; padding: 12px 14px; cursor: pointer; list-style: none; border-radius: inherit; }
.rg-sum::-webkit-details-marker { display: none; }
.rg-sum:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.rg-sum::after { content: ''; grid-area: chev; align-self: center; width: 8px; height: 8px; margin: 0 4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s; }
.regimen[open] > .rg-sum::after { transform: rotate(-135deg); }
.rg-sum h4 { grid-area: name; margin: 0; font-size: 16px; font-weight: 900; }
.rg-sum .rg-setting { grid-area: set; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.regimen[open] > .rg-sum .rg-setting { display: none; }
.rg-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 6px; }
.rg-chip { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2, var(--ink)); }
.rg-body { padding: 0 14px 14px; }
.rg-setting-full { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.rg-safety { display: block; margin: 0 0 10px; padding: 6px 10px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 13.5px; font-weight: 700; }
.rg-foot-short { font-size: 13px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 861px) { .rg-sum { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'name chips chev' 'set chips chev'; } .rg-chips { align-self: center; justify-content: flex-end; } }
/* «ویژه پزشکان» folds: runs of doctor-only blocks, closed in «همه», open (bar hidden) in «پزشکان», hidden in «بیماران» */
.aud-fold > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: var(--radius-sm, 12px); color: #3730a3; cursor: pointer; list-style: none; }
.aud-fold > summary::-webkit-details-marker { display: none; }
.aud-fold > summary:focus-visible { outline: 2px solid #4338ca; outline-offset: 2px; }
.aud-fold > summary::after { content: ''; flex-shrink: 0; width: 8px; height: 8px; margin-inline-start: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s; }
.aud-fold[open] > summary::after { transform: rotate(-135deg); }
.fold-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.fold-meta { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #4338ca; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aud-fold[open] > summary { margin-bottom: 16px; }
.aud-fold .aud-badge { display: none; }
.fold-body > .blk:last-child { margin-bottom: 0; }
html[data-view='doctor'] .aud-fold > summary { display: none; }
@media (max-width: 560px) { .fold-badge { font-size: 12.5px; } .fold-meta { font-size: 13.5px; } }
/* Dose cards: evidence / source lines, combination schedule chip */
.rg-chip-mixed { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.rg-evidence, .rg-source { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.rg-evidence .icon, .rg-source .icon { color: var(--primary-600); flex-shrink: 0; }
.rg-evidence a, .rg-source a { font-weight: 700; }
/* Regimen index (doctor-only) at the top of the dosing section */
.rg-index { margin: 4px 0 18px; padding: 12px 14px; border: 1px solid #c7d2fe; border-radius: var(--radius-sm, 12px); background: #f5f7ff; }
.rg-index-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: #3730a3; cursor: pointer; list-style: none; }
.rg-index-head::-webkit-details-marker { display: none; }
.rg-index-head::after { content: ''; width: 8px; height: 8px; margin-inline-start: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s; }
.rg-index[open] > .rg-index-head { margin-bottom: 8px; }
.rg-index[open] > .rg-index-head::after { transform: rotate(-135deg); }
.rg-index-head:focus-visible { outline: 3px solid #0f172a; outline-offset: 2px; }
.rg-from { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; color: #4338ca; }
.rg-index-head strong { font-size: 15px; }
.rg-index-count { font-size: 12.5px; font-weight: 700; color: #4338ca; background: #e0e7ff; border-radius: 999px; padding: 1px 9px; }
.rg-index-group { margin-top: 6px; }
.rg-index-title { display: block; font-size: 12.5px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.rg-index-links { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-index-links a { display: inline-block; max-width: 100%; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #c7d2fe; color: #3730a3; font-size: 13.5px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.rg-index-links a:hover { border-color: #4338ca; background: #eef2ff; }
a.rg-link, a.trial-link { color: inherit; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #6366f1; text-underline-offset: 3px; }
a.rg-link:hover, a.trial-link:hover { color: #4338ca; }
/* Study pages and popups: drugs used, dose cards */
.sd-drugs, .sd-rg-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; font-size: 14px; }
.sd-drugs > span, .sd-rg-links > span { font-weight: 800; color: var(--muted); }
.sd-drugs .icon, .sd-rg-links .icon { color: var(--primary-600); }
.sd-drugs a, .sd-rg-links a { padding: 3px 10px; border-radius: 999px; background: var(--primary-50); border: 1px solid var(--primary-100); font-weight: 700; font-size: 13.5px; }
.sd-rg-links a { background: #f5f7ff; border-color: #c7d2fe; color: #3730a3; }
.sd-regimens { margin: 18px 0; }
/* Links from subtype / section mentions to their section */
a.sec-link { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--primary-600); text-underline-offset: 3px; }
a.sec-link:hover { color: var(--primary); text-decoration-style: solid; }
.rg-table { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-size: 14.5px; }
.rg-table th { text-align: start; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 4px 8px; border-bottom: 1px solid var(--line); background: transparent; }
.rg-table td:first-child { width: 26%; }
.rg-table td:nth-child(3) { width: 12%; }
.rg-table td:nth-child(4) { width: 26%; }
.rg-table td { padding: 6px 8px; border-bottom: 1px dashed var(--line); vertical-align: top; overflow-wrap: anywhere; }
.rg-table tr:last-child td { border-bottom: 0; }
.rg-phase td { background: var(--primary-50, #f0fdfa); font-weight: 800; font-size: 13.5px; color: var(--primary, #0f766e); border-bottom: 0; border-radius: 8px; }
.rg-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font-size: 14px; }
.rg-meta dt { display: inline; color: var(--muted); font-weight: 700; }
.rg-meta dt::after { content: ': '; }
.rg-meta dd { display: inline; margin: 0; }
.rg-notes { margin-top: 8px; font-size: 14.5px; }
.rg-notes p { margin: 4px 0; }
.rg-foot { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.rg-foot .icon { flex-shrink: 0; margin-top: 3px; }
@media (max-width: 640px) {
  .rg-table thead { display: none; }
  .rg-table, .rg-table tbody, .rg-table tr, .rg-table td { display: block; width: 100%; }
  .rg-table tr { padding: 6px 0; border-bottom: 1px dashed var(--line); }
  .rg-table td { border: 0; padding: 0; width: auto !important; }
  .rg-table td:not(:first-child) { display: inline; font-size: 14px; }
  .rg-table td:nth-child(3):not(:empty)::before, .rg-table td:nth-child(4):not(:empty)::before { content: ' · '; color: var(--muted); }
  .rg-table td:empty { display: none; }
  .rg-phase td { padding: 4px 8px; }
}
.drug-iran { margin-bottom: 26px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--di, var(--primary-600)); font-size: 15px; }
.drug-iran.di-domestic { --di: #15803d; }
.drug-iran.di-imported { --di: #2563eb; }
.drug-iran.di-special { --di: #d97706; }
.drug-iran.di-unregistered { --di: #b91c1c; }
.di-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.di-head .icon { color: var(--di); }
.di-badge { padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--di); background: color-mix(in srgb, var(--di) 10%, transparent); border: 1px solid color-mix(in srgb, var(--di) 30%, transparent); }
.drug-iran p { margin: 4px 0; overflow-wrap: anywhere; }
.di-brands span { color: var(--muted); font-weight: 600; }
.di-foot { font-size: 13px; color: var(--muted); }
.di-foot a { display: inline-flex; align-items: center; gap: 3px; }
.answer-box { position: relative; margin-bottom: 26px; padding: 20px 22px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-50), #fff); border: 1px solid var(--primary-100); border-inline-start: 5px solid var(--primary-600); font-size: 17px; }
.answer-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.resources { display: grid; gap: 14px; margin: 36px 0 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.res-group h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 900; margin-bottom: 10px; }
.res-group h3 .icon { color: var(--primary-600); }
.res-links { display: flex; flex-wrap: wrap; gap: 8px; }
.res-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: color-mix(in srgb, var(--c) 8%, #fff); border: 1px solid color-mix(in srgb, var(--c) 20%, var(--line)); color: var(--ink); font-size: 14px; font-weight: 600; }
.res-links a .icon { color: var(--c); }
.res-links a:hover { border-color: var(--c); color: var(--ink); }
.rich a.drug-link { text-decoration: none; color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--primary-100); }
.rich a.drug-link:hover { border-color: var(--primary-600); }
dfn.gl { position: relative; font-style: normal; border-bottom: 1.5px dotted var(--primary-600); cursor: help; outline: none; }
dfn.gl::after { display: none; content: attr(data-def); position: absolute; bottom: calc(100% + 8px); right: 50%; transform: translateX(50%); width: max-content; max-width: 280px; padding: 10px 12px; background: var(--ink); color: #e2e8f0; border-radius: 10px; font-size: 13px; font-weight: 500; line-height: 1.8; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: 0.15s; z-index: 30; pointer-events: none; white-space: normal; text-align: start; }
dfn.gl:hover::after, dfn.gl:focus::after, dfn.gl.open::after { display: block; opacity: 1; visibility: visible; }
.js-tips dfn.gl::after { content: none !important; display: none !important; }
dfn.gl.open { background: color-mix(in srgb, var(--primary-600) 10%, transparent); border-radius: 3px; }
.gl-tip { position: absolute; z-index: 1000; max-width: 380px; padding: 10px 12px; background: var(--ink); color: #e2e8f0; border-radius: 10px; font-size: 13.5px; line-height: 1.85; box-shadow: var(--shadow-lg); text-align: start; }
.gl-tip strong { display: block; color: #fff; font-size: 13.5px; margin-bottom: 2px; }
.gl-tip .gl-tip-def { display: block; }
.gl-tip a { display: inline-block; margin-top: 4px; color: #5eead4; font-weight: 700; }
/* Without JS the ::after tooltip is used; inside clipping containers it shows as a fixed bar at the bottom instead. */
html:not(.js-tips) :is(.table-wrap, .faq-item, .stat, .slides) dfn.gl::after { position: fixed; top: auto; bottom: 16px; right: 16px; left: 16px; transform: none; width: auto; max-width: none; font-size: 14px; z-index: 90; }
@media (prefers-reduced-motion: no-preference) { .gl-tip, .cite-pop { animation: tipIn 0.12s ease-out; } }
@keyframes tipIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }


/* Index pages: drugs, guides, questions, glossary */
.list-tools { display: grid; gap: 16px; }
.list-search { max-width: 520px; }
.drug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.drug-card { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: 0.15s; }
.drug-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); color: var(--ink); }
.dc-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.dc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dc-body strong { font-size: 15.5px; font-weight: 800; }
.dc-body small { font-size: 12.5px; color: var(--muted); }
.dc-cancers { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dc-cancers span { font-size: 11.5px; padding: 0 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: 0.18s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.gc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); margin-bottom: 4px; }
.guide-card strong { font-size: 17px; font-weight: 900; }
.guide-card > span:not(.gc-icon):not(.cf-more) { font-size: 13.5px; color: var(--muted); line-height: 1.8; flex: 1; }
.guide-card .cf-more { color: var(--c); }
.qa-group { margin-top: 8px; }
.qa-group h2 { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.qa-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.qa-row { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); }
.qa-row:hover { border-color: var(--primary-100); box-shadow: var(--shadow-sm); color: var(--ink); }
.qa-q { display: flex; gap: 8px; align-items: flex-start; }
.qa-q .icon { color: var(--primary-600); margin-top: 4px; }
.qa-q strong { font-size: 15.5px; font-weight: 800; line-height: 1.7; }
.qa-a { font-size: 13.5px; color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.letter-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 8px; }
.letter-index a { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; color: var(--ink-2); }
.letter-index a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.gl-group { scroll-margin-top: calc(var(--header-h) + 16px); margin-top: 20px; }
.gl-group h2 { font-size: 22px; font-weight: 900; color: var(--primary); border-bottom: 2px solid var(--primary-100); padding-bottom: 6px; margin-bottom: 10px; }
.gl-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.gl-item { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); scroll-margin-top: calc(var(--header-h) + 16px); }
.gl-item:target { border-color: var(--primary-600); box-shadow: 0 0 0 4px var(--primary-50); }
.gl-item dt { font-weight: 800; font-size: 15.5px; }
.gl-item dt span { font-weight: 500; font-size: 13px; color: var(--muted); margin-inline-start: 6px; }
.gl-item dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.8; }

/* Screening tool */
.screening { max-width: 980px; }
.sc-intro { margin-bottom: 18px; }
.sc-tool { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sc-tool fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sc-tool legend { font-weight: 800; font-size: 14px; margin-bottom: 6px; width: 100%; }
.sc-tool fieldset label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.sc-tool fieldset label:has(input:checked) { border-color: var(--primary-600); background: var(--primary-50); color: var(--primary); font-weight: 700; }
.sc-tool input[type=radio], .sc-tool input[type=checkbox] { accent-color: var(--primary-600); }
.sc-age, .sc-smoke-extra label { display: grid; gap: 4px; font-weight: 800; font-size: 14px; }
.sc-tool input[type=number] { width: 110px; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.sc-smoke-extra { display: flex; gap: 16px; }
.sc-smoke-extra small { font-weight: 500; color: var(--muted); font-size: 12px; }
.sc-check { display: flex; gap: 8px; align-items: center; font-size: 14px; width: 100%; }
.sc-results { margin-top: 18px; display: grid; gap: 14px; }
.sc-summary { font-weight: 800; }
.sc-res-group h3 { font-size: 17px; font-weight: 900; margin-bottom: 8px; }
.sc-res-group h3 span { color: var(--muted); font-weight: 600; }
.sc-res-group { display: grid; gap: 8px; }
.sc-rule { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--primary-600); border-radius: 12px; }
.sc-rule.rec-discuss { border-inline-start-color: #d97706; }
.sc-rule.rec-not-recommended { border-inline-start-color: #94a3b8; }
.sc-rule-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-rule-head h3 { font-size: 16px; font-weight: 800; flex: 1; }
.sc-badge { font-size: 12px; font-weight: 800; padding: 1px 10px; border-radius: 99px; background: var(--primary-50); color: var(--primary); }
.rec-discuss .sc-badge { background: #fffbeb; color: #92400e; }
.rec-not-recommended .sc-badge { background: #f1f5f9; color: #475569; }
.sc-grade { font-size: 12px; color: var(--muted); font-weight: 700; }
.sc-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; font-size: 14px; }
.sc-facts dt { display: inline; color: var(--muted); }
.sc-facts dt::after { content: ': '; }
.sc-facts dd { display: inline; margin: 0; font-weight: 700; }
.sc-rule .rich { font-size: 14px; color: var(--ink-2); }
.sc-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 12.5px; }
.sc-foot a { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.sc-all-title { margin-top: 36px; margin-bottom: 14px; }
.sc-all { display: grid; gap: 8px; }

/* Header drop-downs with descriptions */
.drop-panel.narrow { width: 300px; grid-template-columns: 1fr; }
.dp-text { display: flex; flex-direction: column; line-height: 1.5; }
.dp-text b { font-weight: 700; }
.dp-text small { font-size: 12px; color: var(--muted); font-weight: 500; }
.drop-panel.narrow .mini-icon { --c: var(--primary-600); }

/* Evidence library landing + topic pages */
.lib-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 680px; margin-top: 18px; padding: 0 16px; height: 54px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--primary-600); }
.lib-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.lib-search-results { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 40; max-height: 60vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; }
.lib-search-results a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); }
.lib-search-results a:hover { background: var(--bg); }
.lib-search-results strong { display: block; font-size: 14.5px; }
.lib-search-results small { display: block; color: var(--muted); font-size: 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.topic-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); transition: 0.15s; }
.topic-card:hover { border-color: color-mix(in srgb, var(--c) 40%, var(--line)); box-shadow: var(--shadow-sm); color: var(--ink); }
.tc-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tc-body strong { font-size: 15px; font-weight: 800; }
.tc-body small { font-size: 12.5px; color: var(--muted); }
.tc-go { color: var(--muted); }
.topic-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.topic-tools .tag-filter { margin: 0; }
.topic-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.topic-nav a { font-size: 13px; padding: 4px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.topic-nav a:hover { border-color: var(--primary-600); color: var(--primary); }
.ev-list.compact .ev-row { padding: 10px 14px; gap: 12px; grid-template-columns: minmax(0, 1fr) 190px auto; }
.ev-list.compact .ev-row h4 { font-size: 14.5px; line-height: 1.6; }
.ev-list.compact .ev-reco { display: none; }
.ev-list.compact .ev-result { padding: 6px 10px; }
.ev-list.compact .ev-result strong { font-size: 14px; }
.ev-list.compact .ev-btn { padding: 6px 12px; font-size: 13px; }
html.js .ev-list.collapsed-5 > .ev-row:nth-child(n + 6) { display: none; }
html.js .ev-list.collapsed-20 > .ev-row:nth-child(n + 21) { display: none; }
.filtering .ev-list.collapsed-20 > .ev-row:nth-child(n + 21) { display: grid; }
.filtering [data-more] { display: none; }
.gl-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gl-item { padding: 10px 12px; }
.gl-item dd { font-size: 13.5px; }

/* Long Latin strings (trial names, DOIs, English titles) must never widen the page on small screens. */
body { overflow-wrap: break-word; }
h1, h2, h3, .ph-sub, .rich, .study-detail, .sd-original, .gl-item, .ev-row h4, .ref-text, .stat, .post-body, .qa-row, .sc-rule { overflow-wrap: anywhere; }
.content > *, .study-detail > *, .sd-sec, .sd-recos li, .sd-recos .rich, .sd-arm, .stats > *, .info-cards > *, .ev-row > *, .page-hero-main > div { min-width: 0; }
.study-layout { min-width: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .main-nav { display: none; position: absolute; top: var(--header-h); right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop > a { padding: 12px 14px; }
  .drop-panel { display: none; }
  .main-nav .drop-panel.narrow { display: grid; position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 8px 8px; }
  .main-nav .nav-drop > a .icon { display: none; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 1320px) {
  .search-trigger { min-width: 0; width: 42px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .brand-text small { display: none; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { flex-direction: column; gap: 4px; padding: 16px; }
  .hero-stats strong { font-size: 28px; }
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  .toc-inner { position: static; max-height: none; padding: 14px 16px; }
  .toc-toggle { cursor: pointer; padding: 0; }
  .toc-chev { display: inline; }
  .toc ol { margin-top: 10px; }
  html.js .toc ol { display: none; }
  html.js .toc.open ol { display: block; }
  html:not(.js) .toc-chev { display: none; }
  html:not(.js) .toc-toggle { cursor: default; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 860px) {
  .main-nav { display: none; position: absolute; top: var(--header-h); right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .drop-panel { display: none; }
  .menu-btn { display: inline-grid; }
  .search-trigger { min-width: 0; width: 42px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .brand-text small { display: none; }
  .brand-doc .bd-title { display: none; }
  .header-actions { margin-inline-start: auto; }
  .trust-grid { grid-template-columns: 1fr; }
  .slide.has-image { grid-template-columns: 1fr; }
  .slide-media { order: -1; max-height: 220px; }
  .slide-body { padding: 24px; }
}
@media (max-width: 860px) {
  .trust-strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-inner { padding-top: 44px; padding-bottom: 44px; }
  .hero-quick { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .hero-quick::-webkit-scrollbar { display: none; }
  .hero-quick a { flex-shrink: 0; }
  .hero-facts { font-size: 12.5px; gap: 8px; }
  .hero-facts span { padding-inline-end: 10px; margin-inline-end: 10px; }
  .hero-facts b { font-size: 15px; }
  body { font-size: 16px; }
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-text strong { font-size: 15px; }
  .brand-doc { font-size: 11.5px; padding: 0 8px 0 7px; margin-top: 1px; line-height: 1.6; }
  .header-doc { display: none; }
  .brand-doc-inline { display: inline-flex; }
  .brand-text strong { line-height: 1.4; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 8px; }
  .hero-stats span { font-size: 12.5px; }
  .page-hero-main { flex-direction: column; gap: 14px; }
  .ph-icon { width: 60px; height: 60px; border-radius: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .aud-switch { width: 100%; }
  .aud-label { width: 100%; padding: 4px 8px; }
  .aud-switch button { flex: 1; justify-content: center; padding: 8px; font-size: 13px; }
  .stat-value { font-size: 28px; }
  .cancer-grid { grid-template-columns: 1fr; }
}
/* Component overrides for tablets and phones (kept last so they win over component defaults). */
@media (max-width: 560px) {
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .topic-card { padding: 10px; gap: 8px; }
  .topic-card .mini-icon { width: 30px; height: 30px; }
  .topic-card .tc-go { display: none; }
  .tc-body strong { font-size: 13.5px; }
  .tc-body small { font-size: 11.5px; }
  .lib-landing .ev-list > .ev-row:nth-child(n + 4) { display: none; }
}
@media (max-width: 1100px) {
  .evidence-cta { grid-template-columns: 1fr; padding: 28px; }
  .qa-list { grid-template-columns: 1fr; }
  .gl-list { grid-template-columns: 1fr 1fr; }
  .ev-list.compact .ev-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ev-list.compact .ev-row .ev-result { grid-column: 1 / -1; grid-row: 2; }
  .trust-strip { grid-template-columns: 1fr; }
  .eb-counts { display: none; }
  .library-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .lib-side-inner { position: static; max-height: none; }
  .lib-index { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .post-list { grid-template-columns: 1fr; }
  .ev-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ev-row .ev-result { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 860px) {
  dfn.gl::after { position: fixed; top: auto; bottom: 16px; right: 16px; left: 16px; transform: none; width: auto; max-width: none; font-size: 14px; z-index: 90; }
}
@media (max-width: 560px) {
  .top-cancers { grid-template-columns: 1fr; gap: 10px; }
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool-card { padding: 14px; }
  .tool-card > span:not(.tool-icon) { display: none; }
  .section-head .tabs-pills { margin-top: 4px; }
  .evidence-banner { padding: 16px; gap: 12px; }
  .eb-text span { display: none; }
  .sc-smoke-extra { flex-direction: column; }
  .answer-box { font-size: 16px; padding: 16px; }
  .cancer-feature { padding: 12px; gap: 12px; }
  .cf-thumb { width: 64px; height: 64px; border-radius: 14px; }
  .cf-body strong { font-size: 16px; }
  .post { gap: 12px; padding: 12px; }
  .post-thumb { width: 88px; height: 88px; }
  .post-sum { -webkit-line-clamp: 2; font-size: 13px; }
  .ph-thumb { width: 72px; height: 72px; border-radius: 18px; }
  .ev-row { grid-template-columns: 1fr; gap: 10px; }
  .ev-row .ev-result { grid-column: auto; grid-row: auto; }
  .ev-btn { width: 100%; justify-content: center; }
  .ev-actions { display: block; }
  .lib-index { grid-template-columns: 1fr 1fr; }
  .gl-list { grid-template-columns: 1fr; }
  .ev-list.compact .ev-row { grid-template-columns: 1fr; }
  .ev-list.compact .ev-row .ev-result { grid-column: auto; grid-row: auto; }
  .study-dialog { max-height: 100vh; border-radius: 16px; }
  .study-dialog-body { padding: 14px; }
  .study-dialog-head [data-study-page] { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .sc-btn .sc-label, .sc-btn .sc-arrow { display: none; }
  .sc-btn .sc-ext { display: block; }
  .references { margin-top: 36px; padding-top: 18px; }
  .references .sec-heading { font-size: 21px; }
  .refs-toggle { flex-wrap: wrap; row-gap: 0; line-height: 1.6; }
  .refs-toggle .when-closed { display: flex; flex-direction: column; align-items: center; }
  .refs-toggle .refs-sep { display: none; }
  .refs-toggle .refs-sub { font-size: 12.5px; color: var(--muted); }
  .ref-list li { padding: 10px 12px; }
  .sd-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sd-facts div { padding: 8px 10px; }
  .sd-sec { padding: 14px; }
  .sd-recos li { flex-wrap: wrap; }
  .sd-level { max-width: 100%; }
  .evidence-cta { padding: 22px 18px; border-radius: 20px; }
  .evidence-text h2 { font-size: 24px; }
  .ach strong { font-size: 22px; }
}
/* Controls that need JS are hidden without it (and when site.js failed: the head boot script then removes html.js). */
html:not(.js) :is([data-more], .aud-switch, button[data-search-open], .slides-nav, [data-fullscreen]) { display: none; }
@media print {
  .site-header, .site-footer, .toc, .aud-switch, .slides-nav, .related, .search-modal, .skip-link { display: none !important; }
  /* Everything prints: closed <details> open (also without JS), collapsed lists show, screen-only controls go. */
  details:not([open])::details-content { content-visibility: visible; display: block; }
  :is(.rg-tools, .rg-finder, .row-toggle, .rows-all, .back-to-text, .cite-pop, .gl-tip, .site-toast, [data-more], .refs-more, .refs-fold > summary, .res-more > summary, .rg-chips, .rg-sum .rg-setting, [data-fullscreen], .ev-actions, .ref-study, [data-study-modal], .faq-chevron, .nav-btn, .dots) { display: none !important; }
  .aud-fold > summary { display: flex !important; }
  .aud-fold > summary::after, .rg-sum::after { display: none; }
  .ev-list > .ev-row { display: grid !important; }
  .ev-row { grid-template-columns: minmax(0, 1fr) 200px; }
  .table-wrap { overflow: visible; box-shadow: none; }
  thead th { white-space: normal; }
  table { font-size: 12.5px; }
  thead th, tbody th, tbody td { padding: 6px 8px; overflow-wrap: anywhere; }
  .ref-list li, .ev-row, .faq-item, .callout, .regimen, tr { break-inside: avoid; }
  .references { margin-top: 24px; }
  .page-layout { display: block; }
  .slides-track { display: block; }
  .slide { break-inside: avoid; border-bottom: 1px solid var(--line); }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Guide / lesson index groups */
.guide-group { margin: 0 0 30px; }
.guide-group h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 20px; font-weight: 900; margin: 0 0 14px; }
.guide-group h2 .icon { color: var(--primary-600); }
.guide-group h2 .link-more { font-size: 14px; font-weight: 700; margin-inline-start: auto; }

/* ---------------- Language: header switch, notices, English (LTR) pages ---------------- */
/* «English» on Persian pages, «فارسی» on English pages, next to the search button (and in the mobile menu, .nav-lang). */
.lang-switch { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.lang-switch:hover { border-color: var(--primary-100); background: var(--primary-50); color: var(--primary); }
.lang-switch .icon { color: var(--primary-600); }
.lang-switch .ls-short { display: none; }
/* The reader chose this language before (site.js, localStorage): the way back is easier to spot. Never a redirect. */
.lang-switch.suggest { border-color: var(--primary-600); box-shadow: 0 0 0 3px var(--primary-50); }
/* A Persian page without an English version: a tooltip says so before the click (mouse and keyboard). */
.lang-switch[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: max-content; max-width: 240px; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.6; white-space: normal; text-align: start; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity 0.15s; z-index: 60; pointer-events: none; }
.lang-switch[data-tip]:hover::after, .lang-switch[data-tip]:focus-visible::after { opacity: 1; visibility: visible; }
.main-nav > .nav-lang { display: none; }
.nav-lang small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.5; }
@media (max-width: 1180px) {
  .main-nav > .nav-lang { display: flex; gap: 10px; margin-top: 6px; padding: 12px 14px; border-top: 1px solid var(--line); border-radius: 0; color: var(--primary); font-weight: 700; white-space: normal; }
}
/* Tablets and phones: the switch shows «EN» / «فا»; the doctor's badge moves under the site name earlier (its English
   form is long), as on phones. On the narrowest phones (≤345px) the switch is in the menu only. */
@media (max-width: 860px) {
  .lang-switch { padding: 0 9px; font-size: 13.5px; }
  .lang-switch .icon, .lang-switch .ls-label { display: none; }
  .lang-switch .ls-short { display: inline; }
  .lang-switch[data-tip]::after { display: none; }
  html[lang='en'] .header-doc { display: none; }
  html[lang='en'] .brand-doc-inline { display: inline-flex; }
}
@media (max-width: 640px) {
  .header-doc { display: none; }
  .brand-doc-inline { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-inner { gap: 12px; }
  .header-actions { gap: 6px; }
}
@media (max-width: 345px) {
  .header-actions .lang-switch { display: none; }
  .header-inner { gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 34px; height: 34px; }
  html[lang='en'] .brand-text strong { font-size: 13px; }
}
/* Long English option texts must not widen the contact form on phones. */
.contact-form label { grid-template-columns: minmax(0, 1fr); }
.contact-form select { min-width: 0; max-width: 100%; }
/* English home, after the switch on a Persian-only page (/en/#persian-only): works without JS (:target). */
.lang-notice { display: none; background: #fff7ed; border-bottom: 1px solid #fed7aa; color: #7c2d12; }
.lang-notice:target { display: block; }
.lang-notice.closed { display: none; }
.lang-notice-inner { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.lang-notice-inner > .icon { color: #c2410c; }
.lang-notice p { flex: 1; margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.7; }
.lang-notice .icon-btn { flex-shrink: 0; color: #7c2d12; }
/* A link from an English page to a Persian-only page: «(Persian)». */
.lang-tag { font-size: 0.82em; font-weight: 600; color: var(--muted); white-space: nowrap; }
.hero .hero-lang-note { max-width: 640px; margin: 18px auto 0; font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.hero-lang-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.nf-en { margin: 28px auto 0; max-width: 520px; font-size: 14px; color: var(--muted); }

/* Physical left/right rules mirrored for English (LTR) pages; everything else uses logical properties. */
[dir='ltr'] .skip-link { right: auto; }
[dir='ltr'] .brand-doc { padding: 1px 8px 1px 10px; }
[dir='ltr'] .header-doc { margin: 0 4px 0 0; padding: 4px 10px 4px 12px; }
[dir='ltr'] .drop-panel { right: auto; left: 0; }
[dir='ltr'] .link-more:hover .icon, [dir='ltr'] .cancer-card:hover .cc-arrow { transform: translateX(4px); }
[dir='ltr'] .rich blockquote { border-radius: 12px 0 0 12px; }
[dir='ltr'] .slides-head { padding: 12px 10px 12px 16px; }
[dir='ltr'] .search-input-row { padding: 8px 8px 8px 12px; }
[dir='ltr'] .sheet-head, [dir='ltr'] .cite-pop .sheet-go { direction: ltr; text-align: left; }
[dir='ltr'] .ev-src > span:first-child { text-align: left; }
[dir='ltr'] .ref-study { direction: ltr; }
[dir='ltr'] .sd-recos li::before { content: counter(reco); }
html[lang='en'] body { line-height: 1.75; }
html[lang='en'] .hero h1, html[lang='en'] .page-hero h1 { line-height: 1.25; }
/* Room for the language switch: the header (capped at the 1200px container) shows the search as an icon button up to 1600px
   wide screens, and the phone header is slightly tighter on the narrowest phones. */
@media (max-width: 1600px) {
  .search-trigger { min-width: 0; width: 42px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
}
@media (max-width: 380px) {
  .brand-text strong { font-size: 14px; }
  .search-trigger, .header-actions .menu-btn { width: 36px; }
  .lang-switch { padding: 0 7px; }
}
@media (min-width: 1181px) and (max-width: 1320px) {
  .lang-switch .icon { display: none; }
  .main-nav > a, .nav-drop > a { padding-inline: 11px; }
}
