/* Paper Desk — site styles. Direction (huashu-design, 2026-11-03): an editorial "exam hall" look:
   warm paper ground, ink-navy type, one red-pen accent, Fraunces display over Plus Jakarta Sans.
   Every colour is a token; both colour schemes. The paper itself is styled in paper.css. */

@font-face { font-family: "Plus Jakarta Sans"; src: url(/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Fraunces; src: url(/assets/fonts/fraunces-latin-opsz-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Nastaliq Urdu"; src: url(/assets/fonts/paper/noto-nastaliq-urdu-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --surface-2: #f3eee2;
  --surface-3: #ebe4d3;
  --ink: #15243b;
  --ink-2: #33415a;
  --muted: #5d6676;
  --line: #e2d9c6;
  --line-strong: #cbbfa6;
  --brand: #1f3a5f;
  --brand-ink: #ffffff;
  --accent: #c8372d;
  --accent-soft: #fbe3df;
  --accent-ink: #ffffff;
  --ok: #1d7a4c;
  --ok-soft: #dcf1e5;
  --warn: #8a5a00;
  --warn-soft: #fbefd3;
  --focus: #c8372d;
  --shadow-1: 0 1px 2px rgb(21 36 59 / 0.06), 0 2px 8px rgb(21 36 59 / 0.06);
  --shadow-2: 0 10px 30px rgb(21 36 59 / 0.12), 0 2px 6px rgb(21 36 59 / 0.06);
  --shadow-sheet: 0 1px 1px rgb(21 36 59 / 0.08), 0 12px 32px rgb(21 36 59 / 0.14);
  --stage: #e9e3d6;
  --radius: 14px;
  --radius-sm: 9px;
  --display: Fraunces, Georgia, "Times New Roman", serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --urdu: "Noto Nastaliq Urdu", serif;
  --t-fast: 140ms;
  --t: 220ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1724; --surface: #162133; --surface-2: #1b283c; --surface-3: #22324a; --ink: #efe9dc; --ink-2: #d2ccbf; --muted: #a2acbc;
    --line: #2a3a52; --line-strong: #3b4e6b; --brand: #a9c6ee; --brand-ink: #0f1724; --accent: #ff7d6b; --accent-soft: #3a2226; --accent-ink: #1a0c0a;
    --ok: #6fd3a0; --ok-soft: #173327; --warn: #f2c66b; --warn-soft: #362b15; --focus: #ff7d6b; --stage: #0b121d;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4); --shadow-2: 0 12px 30px rgb(0 0 0 / 0.45); --shadow-sheet: 0 12px 36px rgb(0 0 0 / 0.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1724; --surface: #162133; --surface-2: #1b283c; --surface-3: #22324a; --ink: #efe9dc; --ink-2: #d2ccbf; --muted: #a2acbc;
  --line: #2a3a52; --line-strong: #3b4e6b; --brand: #a9c6ee; --brand-ink: #0f1724; --accent: #ff7d6b; --accent-soft: #3a2226; --accent-ink: #1a0c0a;
  --ok: #6fd3a0; --ok-soft: #173327; --warn: #f2c66b; --warn-soft: #362b15; --focus: #ff7d6b; --stage: #0b121d;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4); --shadow-2: 0 12px 30px rgb(0 0 0 / 0.45); --shadow-sheet: 0 12px 36px rgb(0 0 0 / 0.55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; margin: 0 0 0.5em; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; text-wrap: pretty; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; }
[lang="ur"] { font-family: var(--urdu); line-height: 2.1; }
.urdu-line { font-family: var(--urdu); font-size: 1.05rem; line-height: 2.2; color: var(--ink-2); background: var(--surface-2); border-inline-start: 0; border-inline-end: 3px solid var(--accent); padding: 4px 14px; border-radius: var(--radius-sm); }

/* ----- buttons and inputs ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: 600 0.95rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px var(--accent); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, var(--ink)); border-color: transparent; color: var(--accent-ink); }
.btn-quiet { background: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-light { background: #fbf8f1; border-color: #fbf8f1; color: #15243b; }
.btn-light:hover { background: #fff; color: #15243b; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.02rem; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.88rem; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background var(--t-fast) var(--ease), color var(--t-fast); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.icon-btn.sm { width: 34px; height: 34px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.input { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 400 0.95rem/1.4 var(--body); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
select.input { appearance: none; padding-inline-end: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.input { min-height: 120px; resize: vertical; }

/* ----- header ----- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 18px -14px rgb(21 36 59 / 0.35); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 650 1.2rem/1 var(--display); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav > a:not(.btn) { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.nav > a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.nav > a[aria-current="page"]:not(.btn) { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-cta { margin-inline-start: 8px; }
.header-actions { display: flex; align-items: center; gap: 2px; }
.menu-btn { display: none; }
.when-dark, .is-dark .when-light { display: none; }
.is-dark .when-dark { display: block; }
.when-open, [aria-expanded="true"] > .when-closed { display: none; }
[aria-expanded="true"] > .when-open { display: block; }
@media (max-width: 1023px) {
  .menu-btn { display: inline-grid; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav > a:not(.btn) { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
  .header-actions { margin-inline-start: auto; }
  .menu-open body { overflow: hidden; }
}

/* ----- hero ----- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in oklab, var(--brand) 9%, transparent) 31px 32px); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); pointer-events: none; }
.hero::after { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(16px, 7vw, 110px); border-left: 1.5px solid color-mix(in oklab, var(--accent) 35%, transparent); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--accent); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 560; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; font-weight: 550; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--accent); }
.hero-visual { position: relative; display: grid; justify-items: center; }
.hero-sheet { position: relative; z-index: 1; width: min(470px, 100%); aspect-ratio: 210 / 270; background: #fff; border-radius: 4px; box-shadow: var(--shadow-sheet); transform: rotate(1.6deg); }
.hero-visual::before { content: ""; position: absolute; width: min(470px, 100%); aspect-ratio: 210 / 270; background: #f3eee2; border-radius: 4px; box-shadow: var(--shadow-1); transform: translate(14px, 12px) rotate(-2.5deg); }
.hero-paper { position: absolute; inset: 0; padding: 7% 7.5%; color: #000; font-size: clamp(9px, 1.32vw, 11.5px); line-height: 1.45; overflow: hidden; }
.hp-head { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.hp-logo { width: 2.8em; height: 2.8em; border-radius: 50%; border: 1.5px solid #000; background: radial-gradient(circle at 50% 45%, #000 0 18%, transparent 19%), conic-gradient(from 0deg, #000 0 8%, transparent 8% 50%, #000 50% 58%, transparent 58%); opacity: 0.85; }
.hp-inst { font-weight: 700; font-size: 1.45em; }
.hp-title { font-weight: 700; }
.hp-facts { display: flex; justify-content: space-between; margin-top: 0.8em; padding: 0.3em 0; border-top: 1.2px solid #000; border-bottom: 1.2px solid #000; }
.hp-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em 1em; margin: 0.9em 0 0.6em; }
.hp-fields span { display: flex; gap: 0.4em; align-items: flex-end; }
.hp-fields i { flex: 1; border-bottom: 1px solid #000; height: 1em; }
.hp-q { display: flex; gap: 0.5em; margin-top: 0.9em; font-weight: 700; }
.hp-q em { margin-inline-start: auto; font-style: normal; }
.hp-mcq, .hp-short { display: grid; grid-template-columns: 2.2em 1fr; margin-top: 0.35em; }
.hp-n { grid-row: span 2; }
.hp-opts { display: grid; grid-template-columns: repeat(4, 1fr); }
.hp-right { position: relative; }
.hp-circle { position: absolute; left: -12%; top: -38%; width: 125%; height: 175%; fill: none; stroke: #c8372d; stroke-width: 2.6; stroke-linecap: round; overflow: visible; }
.hp-lines { grid-column: 2; }
.hp-lines i { display: block; height: 1.7em; border-bottom: 1px solid #555; }
.hp-ur { direction: rtl; font-family: var(--urdu); line-height: 2; }
.hp-tick { position: absolute; right: 8%; bottom: 7%; width: 18%; fill: none; stroke: #c8372d; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pen { position: absolute; right: -2%; bottom: 4%; width: 34%; height: 9px; border-radius: 6px; background: linear-gradient(90deg, #c8372d 0 78%, #8f231c 78% 86%, #d9d2c3 86%); rotate: -38deg; box-shadow: 0 6px 14px rgb(0 0 0 / 0.18); pointer-events: none; }
.pen::after { content: ""; position: absolute; left: -10px; top: 1px; border-style: solid; border-width: 3.5px 10px 3.5px 0; border-color: transparent #2b2b2b transparent transparent; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: 2; }
  .hero::after { display: none; }
}

/* ----- sections ----- */
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(24px, 4vw, 40px); max-width: 760px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; flex-wrap: wrap; }
.kicker { margin: 0 0 8px; color: var(--accent); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.section-lead { color: var(--ink-2); font-size: 1.06rem; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; color: var(--brand); }
.more-link:hover { color: var(--accent); }
.more-faq { margin-top: -28px; padding-bottom: 40px; }

.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: t; }
.type-cards li { position: relative; display: grid; gap: 4px; padding: 16px 18px 16px 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: t; transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.type-cards li::before { content: counter(t, lower-roman) "."; position: absolute; left: 16px; top: 16px; font: italic 600 1rem/1.4 var(--display); color: var(--accent); }
.type-cards li:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.type-cards strong { font-size: 1rem; }
.type-cards span { color: var(--muted); font-size: 0.88rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { padding: 28px 26px; background: var(--surface); }
.f-num { display: block; margin-bottom: 14px; font: italic 500 1.5rem/1 var(--display); color: var(--accent); }
.feature p { margin: 0; color: var(--ink-2); }

.urdu-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.urdu-sample { padding: 26px 28px; background: #fff; color: #000; border-radius: 6px; box-shadow: var(--shadow-sheet); display: grid; gap: 10px; font-size: 1.02rem; }
.urdu-sample [lang="ur"] { font-size: 1rem; }
@media (max-width: 860px) { .urdu-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .urdu-sample .bi.bi-side { grid-template-columns: minmax(0, 1fr); } }

.step-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; margin: 0 0 32px; padding: 0; list-style: none; }
.step-cards li { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border: 1.5px solid var(--accent); border-radius: 50%; color: var(--accent); font: 600 1.2rem/1 var(--display); }
.step-cards p { margin: 0; color: var(--ink-2); }

.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.guide-card { display: grid; align-content: start; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
.guide-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.guide-card h3 { margin: 0; font-size: 1.25rem; }
.guide-card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.guide-meta { color: var(--muted); font-size: 0.8rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; }

.cta-band { background: var(--brand); color: var(--brand-ink); padding: clamp(48px, 7vw, 84px) 0; }
.cta-inner { display: grid; justify-items: center; text-align: center; gap: 6px; }
.cta-band h2 { color: inherit; }
.cta-band p { opacity: 0.85; }
:root[data-theme="dark"] .cta-band, .is-dark .cta-band { background: var(--surface-2); color: var(--ink); border-top: 1px solid var(--line); }

/* ----- FAQ ----- */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; font-weight: 650; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--accent); transition: transform var(--t) var(--ease); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 16px; color: var(--ink-2); }
.faq-answer p:last-child { margin: 0; }

/* ----- inner pages ----- */
.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, var(--surface-2), transparent); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 0.86rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .icon { width: 0.9em; height: 0.9em; }
.updated { color: var(--muted); font-size: 0.9rem; }
.prose { font-size: 1.04rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose section:first-child h2 { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin: 0.3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-strong); padding: 8px 12px; text-align: start; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose code { font-size: 0.9em; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
.try-box { margin-top: 2.4em; padding: 26px; background: var(--accent-soft); border-radius: var(--radius); }
.try-box h2 { margin-top: 0; font-size: 1.4rem; }
.contact-card { display: grid; gap: 12px; margin-bottom: 2em; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.contact-line:hover { border-color: var(--accent); color: var(--ink); }
.contact-line .icon { width: 26px; height: 26px; color: var(--accent); }
.contact-line span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.not-found h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* ----- how to use ----- */
.toc { margin-top: 24px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc ol { margin: 0; padding-inline-start: 1.3em; columns: 2 240px; column-gap: 28px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.howto-section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.howto-section:last-child { border-bottom: 0; }
.howto-num { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-inline-end: 12px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 1.05rem/1 var(--body); vertical-align: 4px; }
.steps { padding-inline-start: 1.3em; }
.steps li { margin: 6px 0; }
.howto-shot { margin: 22px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.howto-shot img { display: block; width: 100%; height: auto; }
.howto-shot figcaption { padding: 14px 18px; border-top: 1px solid var(--line); }
.callout-key { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 6px; font-size: 0.93rem; }
.callout-key li { counter-increment: c; display: flex; gap: 10px; align-items: baseline; }
.callout-key li::before { content: counter(c); flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 0.78rem; font-weight: 700; }
.shot-missing { padding: 40px; text-align: center; color: var(--muted); }
.trouble { display: grid; gap: 14px; }
.trouble dt { font-weight: 700; }
.trouble dd { margin: 4px 0 0; color: var(--ink-2); }
.h-icon { color: var(--accent); margin-inline-end: 8px; vertical-align: -3px; }

/* ----- footer ----- */
.site-footer { padding: 56px 0 28px; background: var(--surface); border-top: 1px solid var(--line); font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.site-footer h2 { font: 700 0.8rem/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .btn-primary { color: var(--accent-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-bottom a { color: var(--brand); text-decoration: underline; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----- toast, consent ----- */
.toast-region { position: fixed; left: 50%; bottom: 20px; z-index: 90; transform: translateX(-50%); width: min(520px, 100% - 32px); pointer-events: none; }
.toast { padding: 13px 18px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); font-weight: 550; pointer-events: auto; animation: toast-in var(--t) var(--ease); }
.toast.is-error { background: var(--accent); color: var(--accent-ink); }
.toast.is-success { background: var(--ok); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; max-width: 760px; margin-inline: auto; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-2); }
.consent p { margin: 0; }
.consent-actions { display: flex; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .consent, .toast-region, .skip, ins.adsbygoogle, .google-auto-placed { display: none !important; }
  body { background: #fff; color: #000; }
}
@media (max-width: 560px) { .hp-opts { grid-template-columns: repeat(2, 1fr); } .hp-fields { grid-template-columns: repeat(2, 1fr); } }
