/* Shared stylesheet for the content pages (/hsc-question-bank/ and siblings).
 *
 * index.html keeps its own inline CSS on purpose — it is the launch-critical
 * page and should not depend on a second request. These pages are different:
 * there are five of them, they share one layout, and a cached 6 KB file beats
 * five inlined copies of it.
 *
 * Tokens are duplicated from index.html rather than imported. If a colour
 * changes there, change it here too — that is the cost of keeping the home
 * page self-contained, and it is deliberate.
 */

@font-face {
  font-family: 'Tiro Bangla';
  src: url('/fonts/tiro-bangla.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Noto Sans Bengali';
  src: url('/fonts/noto-bengali.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC;
}

:root {
  --ground:      #0A2A2B;
  --ground-deep: #061A1B;
  --ground-lift: #0E3335;
  --mint: #4ADE80;
  --sky:  #60A5FA;
  --ink:      #EAF2EE;
  --ink-mid:  #B9CFC9;
  --ink-dim:  #86A39E;
  --edge:      rgba(234,242,238,0.11);
  --edge-soft: rgba(234,242,238,0.06);
  --shell: 900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* No `overflow-x: hidden` here. It makes <body> a scroll container, and a
   sticky child of a scroll container that never scrolls just sits there — which
   is why the header did not stick. Nothing on these pages overhangs the
   viewport (the glow is inset, not 100vw), so the guard is not needed. */
body {
  background: var(--ground-deep); color: var(--ink);
  font-family: 'Noto Sans Bengali', system-ui, sans-serif;
  font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(100% - 36px, var(--shell)); margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 5px; }
img { max-width: 100%; height: auto; }

/* ── header ───────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6,26,27,0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge-soft);
}
.nav__in { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.nav__mark { width: 104px; display: block; }

/* ── the page itself ──────────────────────────────────────────────────── */

/* `.head` is full-width and holds its own `.wrap` inside. It used to be the
   wrap itself, which meant this glow — inset to its parent — was clipped to the
   900px column and drew a hard vertical edge down the page exactly where the
   breadcrumb starts. That edge was the "bar".
   Full-width parent fixes it without `100vw`, which would overhang by the
   scrollbar's width and force an overflow guard back onto the page. */
.head { position: relative; padding: 54px 0 18px; }
.head::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: 0; left: 0; right: 0; height: 560px;
  background:
    radial-gradient(62% 50% at 26% 60%, rgba(74,222,128,0.14), transparent 70%),
    radial-gradient(54% 44% at 88% 30%, rgba(96,165,250,0.10), transparent 72%);
  /* Fade in over the first 110px so the sticky nav's translucent bar has
     nothing bright to sit against — that step in tone was the second seam. */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 110px);
          mask-image: linear-gradient(to bottom, transparent, #000 110px);
}

.crumb {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-dim); margin-bottom: 20px;
}
.crumb a {
  color: var(--ink-dim); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .14s, border-color .14s;
}
.crumb a:hover { color: var(--ink-mid); border-bottom-color: rgba(185,207,201,.45); }
.crumb__sep { opacity: .42; }
.crumb__now { color: var(--ink-mid); }

h1 {
  font-family: 'Tiro Bangla', serif; font-weight: 400; line-height: 1.28;
  font-size: clamp(29px, 6.4vw, 44px); margin-bottom: 16px;
}
h1 em { font-style: normal; color: var(--mint); }

.lede { color: var(--ink-mid); font-size: clamp(16px, 3.6vw, 19px); max-width: 60ch; }

.prose { padding-bottom: 8px; }
.prose h2 {
  font-family: 'Tiro Bangla', serif; font-weight: 400; line-height: 1.3;
  font-size: clamp(23px, 4.8vw, 31px); margin: 46px 0 14px;
}
.prose h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.prose p { margin-bottom: 15px; color: var(--ink-mid); max-width: 66ch; }
.prose p strong, .prose li strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--mint); text-decoration-color: rgba(74,222,128,.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--mint); }
.prose ul { margin: 0 0 18px 0; padding: 0; list-style: none; max-width: 66ch; }
.prose ul li {
  position: relative; padding-inline-start: 22px; margin-bottom: 9px; color: var(--ink-mid);
}
.prose ul li::before {
  content: ''; position: absolute; inset-inline-start: 3px; top: 12px;
  width: 6px; height: 6px; border-radius: 999px; background: var(--mint); opacity: .75;
}

/* Data rows — the home page's device, reused because exact counts are the
   whole argument. Rounded marketing numbers would read as marketing. */
.rows { border-top: 1px solid var(--edge-soft); margin: 14px 0 10px; }
.row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 11px 2px; border-bottom: 1px solid var(--edge-soft);
}
.row__k { font-size: 16px; }
.row__s { font-size: 12px; color: var(--ink-dim); margin-inline-start: 8px; letter-spacing: .04em; }
.row__n { margin-inline-start: auto; font-size: 16px; color: var(--mint); font-variant-numeric: tabular-nums; }
.rows__note { font-size: 14px; color: var(--ink-dim); margin-top: 10px; }

.note {
  border-inline-start: 2px solid var(--edge); padding: 4px 0 4px 16px;
  color: var(--ink-dim); font-size: 15.5px; margin: 22px 0;
}

/* ── faq ──────────────────────────────────────────────────────────────── */

.qa { border-bottom: 1px solid var(--edge-soft); }
.qa summary {
  list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative;
  font-size: 16.5px; font-weight: 500;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+'; position: absolute; inset-inline-end: 4px; top: 14px;
  color: var(--mint); font-size: 20px; line-height: 1;
}
.qa[open] summary::after { content: '−'; }
.qa p { padding: 0 0 16px; color: var(--ink-mid); max-width: 66ch; }

/* ── closing band ─────────────────────────────────────────────────────── */

.end {
  margin-top: 52px; padding: 44px 0; text-align: center;
  background: var(--ground); border-top: 1px solid var(--edge-soft);
}
.end h2 { font-family: 'Tiro Bangla', serif; font-weight: 400; font-size: clamp(24px, 5vw, 33px); }
.end p { color: var(--ink-mid); margin-top: 10px; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: center; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-size: 16px; font-weight: 600; padding: 13px 24px; border-radius: 999px;
  transition: transform .14s, box-shadow .14s, background .14s;
}
.btn--go { background: var(--mint); color: #06331A; }
.btn--go:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(74,222,128,.26); }
.btn--ghost { border: 1px solid var(--edge); color: var(--ink); }
.btn--ghost:hover { background: rgba(234,242,238,0.06); }

/* ── store badge ──────────────────────────────────────────────────────
   Google's own artwork, used unmodified. The transparent margin baked into
   the PNG *is* the clear space the badge terms require — which is why the box
   is half again as tall as the badge you can see. Size by height and let the
   width follow, so the artwork is never stretched. */
.store { display: inline-flex; flex-direction: column; align-items: center; transition: transform .14s, filter .14s; }
.store img { display: block; height: 68px; width: auto; }
.store:hover { transform: translateY(-2px); filter: brightness(1.07); }
/* The badge PNG carries its own transparent margin, so the caption needs to be
   pulled back up or it floats a clear third of a line away from it. */
.store__cap { margin-top: -5px; font-size: 13.5px; font-weight: 500; color: var(--ink-mid); }
.store--nav { margin-inline-start: auto; }
.store--nav img { height: 50px; }

/* ── footer ───────────────────────────────────────────────────────────── */

.foot { padding: 30px 0 46px; font-size: 14px; color: var(--ink-dim); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.foot img { width: 88px; opacity: .9; }
.foot__links { display: flex; gap: 18px; margin-inline-start: auto; flex-wrap: wrap; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--ink); }
.foot__social { display: flex; gap: 10px; }
.foot__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--edge); border-radius: 999px;
  color: var(--ink-mid); transition: color .14s, background .14s, border-color .14s;
}
.foot__social a:hover { color: var(--ink); background: rgba(234,242,238,0.06); border-color: rgba(234,242,238,0.2); }
.foot__social svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.foot__social svg.ic-fb { width: 10px; }
.foot__tag { flex-basis: 100%; font-size: 12.5px; opacity: .68; }

/* Sibling-page links. Every content page carries the full set, so no page is
   more than one click from any other — and none of them is an orphan. */
.more { margin-top: 40px; }
.more h2 { font-size: 19px !important; font-family: inherit !important; font-weight: 600; margin-bottom: 6px !important; }
.more__grid { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 14px; }
.more__grid a {
  display: block; padding: 14px 16px; border: 1px solid var(--edge-soft); border-radius: 12px;
  text-decoration: none; background: rgba(234,242,238,0.02); transition: border-color .14s, background .14s;
}
.more__grid a:hover { border-color: var(--edge); background: rgba(234,242,238,0.05); }
.more__grid b { display: block; font-weight: 600; font-size: 16px; }
.more__grid span { color: var(--ink-dim); font-size: 14.5px; }

@media (min-width: 720px) {
  .more__grid { grid-template-columns: 1fr 1fr; }
}
