/* Nino magazine (/mag/): static, pre-rendered article pages built by tools/mag/build.js.
   Same colour tokens as css/styles.css (light + dark, app theme honoured through data-theme), own @font-face for the
   few fonts the magazine uses, so these pages never load the app's 67 KB stylesheet. RTL Persian, LTR Latin islands. */

@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/vazirmatn-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/vazirmatn-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/vazirmatn-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/fraunces-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/fraunces-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/nunito-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/nunito-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1EFF; }

:root {
  --bg: #F4F6FB; --surface: #FFFFFF; --surface-2: #EAEFF8; --fg: #152038; --muted: #5D6C88; --line: #D9E1EE;
  --primary: #1D5BC9; --primary-fg: #FFFFFF; --primary-soft: #E1EAFB;
  --accent: #F3B63C; --accent-fg: #2A2000; --accent-soft: #FFF1CF;
  --success: #1E9A62; --success-soft: #DBF4E7; --danger: #D8473A; --danger-soft: #FBE2DF;
  --ink: #0F1D3D;
  --shadow: 0 14px 36px rgba(21, 32, 56, .09); --shadow-sm: 0 2px 8px rgba(21, 32, 56, .06);
  --radius: 20px; --radius-sm: 12px;
  --font-fa: 'Vazirmatn', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-lat: 'Nunito', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --wrap: 1120px; --read: 720px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1425; --surface: #151E34; --surface-2: #1D2944; --fg: #EDF1F9; --muted: #9DAAC4; --line: #2A3754;
    --primary: #7FA8F5; --primary-fg: #0A1222; --primary-soft: #1B2B4F;
    --accent: #F6C75B; --accent-fg: #2A2000; --accent-soft: #3B2F12;
    --success: #3DBE82; --success-soft: #153826; --danger: #F0705F; --danger-soft: #45201C;
    --shadow: 0 14px 36px rgba(0, 0, 0, .35); --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1425; --surface: #151E34; --surface-2: #1D2944; --fg: #EDF1F9; --muted: #9DAAC4; --line: #2A3754;
  --primary: #7FA8F5; --primary-fg: #0A1222; --primary-soft: #1B2B4F;
  --accent: #F6C75B; --accent-fg: #2A2000; --accent-soft: #3B2F12;
  --success: #3DBE82; --success-soft: #153826; --danger: #F0705F; --danger-soft: #45201C;
  --shadow: 0 14px 36px rgba(0, 0, 0, .35); --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-fa); font-size: 16px; line-height: 1.8; direction: rtl; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.4; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[lang]:not([lang="fa"]), .lat { font-family: var(--font-lat); unicode-bidi: isolate; }
[dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 99; background: var(--surface); padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.mh { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.mh-in { max-width: var(--wrap); margin: 0 auto; height: 64px; padding-inline: 16px; display: flex; align-items: center; gap: 14px; }
.mh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); flex: 0 0 auto; }
.mh-brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 2px 6px rgba(9, 73, 186, .25); }
.mh-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; direction: ltr; }
.mh-mag { text-decoration: none; font-weight: 800; font-size: 14px; color: var(--accent-fg); background: var(--accent); border-radius: 8px; padding: 1px 9px; }
.mh-nav { display: flex; gap: 2px; margin-inline-start: 10px; overflow-x: auto; scrollbar-width: none; }
.mh-nav::-webkit-scrollbar { display: none; }
.mh-nav a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.mh-nav a:hover, .mh-nav a[aria-current] { color: var(--fg); background: var(--surface-2); }
.mh-sp { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 14px; font-weight: 800; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-accent { background: var(--accent); color: var(--accent-fg); box-shadow: 0 6px 16px rgba(160, 110, 0, .22); }
.btn-ghost { background: var(--surface-2); color: var(--fg); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
@media (max-width: 760px) {
  .mh-nav { display: none; }
  .mh-in { gap: 10px; }
}
.mh-sub { display: none; }
@media (max-width: 760px) {
  .mh-sub { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px 10px; scrollbar-width: none; border-top: 1px solid var(--line); }
  .mh-sub::-webkit-scrollbar { display: none; }
  .mh-sub a { flex: 0 0 auto; text-decoration: none; color: var(--fg); background: var(--surface-2); border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 600; }
  .mh-sub a[aria-current] { background: var(--primary); color: var(--primary-fg); }
}
.progress { position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: linear-gradient(to left, var(--primary), var(--accent)); transform-origin: right; transform: scaleX(0); }

/* ---------- article ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
.crumbs { max-width: var(--read); margin: 22px auto 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }
.a-head { max-width: var(--read); margin: 18px auto 0; }
.cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; text-decoration: none; border-radius: 999px; padding: 3px 12px; }
.cat-exams { background: var(--accent-soft); color: var(--accent-fg); }
.cat-learning { background: var(--primary-soft); color: var(--primary); }
.cat-nino { background: var(--success-soft); color: var(--success); }
:root[data-theme="dark"] .cat-exams { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cat-exams { color: var(--accent); } }
.a-head h1 { font-size: clamp(28px, 5.2vw, 42px); font-weight: 900; line-height: 1.38; margin-top: 14px; letter-spacing: -.005em; }
.a-dek { font-size: clamp(17px, 2.4vw, 19px); color: var(--muted); line-height: 1.9; margin-top: 14px; }
.a-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.a-meta .by { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 700; }
.a-meta .by img { width: 28px; height: 28px; border-radius: 8px; }
.a-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.share { margin-inline-start: auto; }
.a-cover { max-width: 960px; margin: 26px auto 0; }
.a-cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface-2); }
.a-body { max-width: var(--read); margin: 30px auto 0; }

.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.facts h2 { font-size: 15px; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 18px; }
.facts dl > div { border-inline-start: 3px solid var(--accent); padding-inline-start: 10px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 800; font-size: 16px; line-height: 1.6; }

.toc { margin-top: 18px; background: var(--surface-2); border-radius: var(--radius); padding: 4px 20px; }
.toc summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ''; width: 9px; height: 9px; border-inline-start: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin-inline-end: 4px; }
.toc[open] summary::after { transform: rotate(135deg); }
.toc ol { margin: 0 0 14px; padding-inline-start: 22px; display: grid; gap: 4px; }
.toc a { color: var(--fg); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }

/* prose */
.prose { font-size: 17.5px; line-height: 2; margin-top: 30px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(22px, 3.4vw, 27px); font-weight: 900; margin-top: 2.1em; position: relative; padding-top: 14px; }
.prose h2::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--accent); }
.prose h3 { font-size: 20px; font-weight: 800; margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.prose strong, .prose b { font-weight: 800; }
.prose ul, .prose ol { padding-inline-start: 26px; }
.prose li + li { margin-top: .35em; }
.prose ul li::marker { color: var(--primary); }
.prose ol li::marker { color: var(--primary); font-weight: 800; }
.prose blockquote { margin-inline: 0; padding: 14px 20px; border-inline-start: 4px solid var(--primary); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--fg); }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: var(--surface-2); border-radius: 6px; padding: 1px 6px; direction: ltr; unicode-bidi: isolate; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose .lead { font-size: 1.12em; font-weight: 500; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.75; min-width: 520px; }
.prose th, .prose td { padding: 10px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-2); font-weight: 800; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.prose caption { caption-side: bottom; font-size: 13px; color: var(--muted); padding: 8px 12px; text-align: start; }

/* components available to writers (see tools/mag/BRIEF.md) */
.callout { border-radius: var(--radius-sm); padding: 14px 18px; background: var(--primary-soft); border-inline-start: 4px solid var(--primary); font-size: 16.5px; line-height: 1.95; }
.callout > b:first-child, .callout > strong:first-child { display: block; margin-bottom: 2px; }
.callout.warn { background: var(--accent-soft); border-color: var(--accent); }
.callout.ok { background: var(--success-soft); border-color: var(--success); }
.callout > * + * { margin-top: .6em; }

.nino-box { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, #FFF4DA, #FFE7B0 55%, #FFD98A); color: #152038; border: 1px solid #F3C66B; font-size: 16.5px; line-height: 1.95; }
.nino-box::before { content: ''; grid-row: span 3; width: 48px; height: 48px; border-radius: 14px; background: #fff url(/assets/mark-128.png?v=3) center / 36px no-repeat; box-shadow: 0 6px 16px rgba(160, 110, 0, .18); }
.nino-box > * { grid-column: 2; margin: 0; }
.nino-box > * + * { margin-top: .4em; }
.nino-box b:first-child, .nino-box strong:first-child { font-size: 17px; }
.nino-box a { color: #0F3E91; font-weight: 800; }
.nino-box a.btn { color: #fff; background: #152038; justify-self: start; margin-top: 10px; }
@media (max-width: 520px) { .nino-box { grid-template-columns: 1fr; } .nino-box::before { grid-row: auto; } .nino-box > * { grid-column: 1; } }

.steps { list-style: none; padding: 0 !important; counter-reset: st; display: grid; gap: 12px; }
.steps > li { counter-increment: st; position: relative; padding: 14px 18px 14px 18px; padding-inline-start: 62px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 !important; }
.steps > li::before { content: counter(st, persian); position: absolute; inset-inline-start: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: var(--primary-fg); font-weight: 900; display: grid; place-items: center; font-size: 16px; line-height: 1; }
.steps > li > b:first-child, .steps > li > strong:first-child { display: block; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; text-align: center; }
.stats b { display: block; font-size: 28px; font-weight: 900; line-height: 1.3; color: var(--primary); }
.stats span { display: block; font-size: 14px; color: var(--muted); line-height: 1.7; }

.pros-cons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pros-cons > div { border-radius: var(--radius-sm); padding: 14px 18px; background: var(--success-soft); }
.pros-cons > div + div { background: var(--danger-soft); margin-top: 0; }
.pros-cons h3, .pros-cons h4 { font-size: 16px; margin: 0 0 6px !important; }
.pros-cons ul { margin: 0; padding-inline-start: 20px; font-size: 16px; }

/* cost calculator (mag.js renders into .calc[data-calc="cost"]; the static content inside is the no-JS fallback) */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); font-size: 16px; }
.calc h3 { margin-top: 0 !important; font-size: 18px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; margin-top: 12px; }
.calc label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.calc input, .calc select { width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-height: 44px; }
.calc input[type="range"] { padding: 0; accent-color: var(--primary); background: none; border: 0; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
@media (max-width: 480px) { .calc-out { grid-template-columns: 1fr; } }
.calc-grid > div:last-child { grid-column: 1 / -1; }
.calc-out > div { border-radius: var(--radius-sm); padding: 12px 16px; background: var(--surface-2); }
.calc-out > div.win { background: var(--success-soft); }
.calc-out small { display: block; color: var(--muted); font-size: 13px; }
.calc-out b { display: block; font-size: 22px; font-weight: 900; line-height: 1.5; }
.calc-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.9; }

/* FAQ */
.faq { max-width: var(--read); margin: 46px auto 0; }
.faq h2 { font-size: clamp(22px, 3.4vw, 27px); font-weight: 900; margin-bottom: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 800; list-style: none; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--primary); flex: 0 0 auto; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 18px 16px; font-size: 16.5px; line-height: 1.95; color: var(--fg); }

/* end-of-article call to action */
.cta { max-width: var(--read); margin: 46px auto 0; border-radius: 24px; padding: 26px; background: radial-gradient(120% 140% at 100% 0%, #2C6BE0 0%, #1D5BC9 40%, #0F1D3D 100%); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 16px 22px; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; inset-inline-end: -90px; bottom: -150px; background: rgba(243, 182, 60, .18); }
.cta h2 { font-size: 22px; font-weight: 900; color: #fff; }
.cta p { margin-top: 6px; color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.9; }
.cta .btn { position: relative; z-index: 1; }
@media (max-width: 620px) { .cta { grid-template-columns: 1fr; } .cta .btn { width: 100%; } }
.a-foot { max-width: var(--read); margin: 22px auto 0; font-size: 13.5px; color: var(--muted); line-height: 1.9; }

/* cards (index + related) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--fg); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--surface-2); }
.card-b { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 18.5px; font-weight: 900; line-height: 1.6; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.card .cat { align-self: flex-start; }

.related { max-width: var(--wrap); margin: 64px auto 0; padding-inline: 16px; }
.related > h2 { font-size: 24px; font-weight: 900; margin-bottom: 16px; }

/* magazine index */
.mi-hero { position: relative; overflow: hidden; margin-top: 22px; border-radius: 28px; padding: clamp(26px, 5vw, 54px); background: radial-gradient(130% 160% at 100% 0%, #2C6BE0 0%, #1D5BC9 38%, #0F1D3D 100%); color: #fff; }
.mi-hero::before { content: 'Mag'; position: absolute; left: -10px; bottom: -70px; font-family: var(--font-display); font-weight: 600; font-size: 260px; line-height: 1; color: rgba(255, 255, 255, .07); direction: ltr; pointer-events: none; }
.mi-hero::after { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; left: 8%; top: -190px; background: rgba(243, 182, 60, .22); pointer-events: none; }
.mi-hero > * { position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 14px; background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 2px 12px; }
.mi-hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 900; margin-top: 14px; max-width: 760px; }
.mi-hero p { font-size: clamp(16px, 2.2vw, 19px); color: rgba(255, 255, 255, .86); margin-top: 12px; max-width: 680px; line-height: 1.95; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a { text-decoration: none; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: 15px; }
.chips a:hover { background: rgba(255, 255, 255, .24); }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--fg); box-shadow: var(--shadow); }
.feature img { width: 100%; height: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.feature-b { padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.feature h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; line-height: 1.5; }
.feature p { color: var(--muted); font-size: 16.5px; line-height: 1.95; }
.feature .meta { font-size: 13.5px; color: var(--muted); }
.feature .cat { align-self: flex-start; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } }
.mi-sec { margin-top: 56px; scroll-margin-top: 80px; }
.mi-sec-h { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.mi-sec h2 { font-size: clamp(22px, 3.4vw, 28px); font-weight: 900; }
.mi-sec-h p { color: var(--muted); font-size: 15.5px; margin-top: 4px; max-width: 640px; }
.mi-app { margin-top: 60px; }

/* footer */
.mf { margin-top: 80px; border-top: 1px solid var(--line); background: var(--surface); }
.mf-in { max-width: var(--wrap); margin: 0 auto; padding: 34px 16px 40px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; font-size: 15px; }
.mf h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.mf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mf a { color: var(--muted); text-decoration: none; }
.mf a:hover { color: var(--fg); text-decoration: underline; }
.mf-brand p { color: var(--muted); margin-top: 8px; line-height: 1.9; font-size: 14.5px; }
.mf-brand .mh-brand { margin-bottom: 4px; }
.mf-copy { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 16px; font-size: 13px; color: var(--muted); }
@media (max-width: 820px) { .mf-in { grid-template-columns: 1fr 1fr; } .mf-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
@media print { .mh, .mf, .cta, .related, .share, .toc { display: none !important; } body { background: #fff; color: #000; } .prose { font-size: 12pt; } }
