/* Exam-series pages (/exams, /exams/{slug}). Loaded only there; built on the
   shared tokens in design.css/app.css (surface, rule, brand, live, radius).
   The page reads like an IPO timeline: where the cycle is (the stepper),
   its dates, then its notices; Follow and the official site on the right. */

/* ---- head: name, the stepper, what comes next. This cycle's status heads the aside
   (H6): the band has no floating card and no empty corner. */
.sr-head { padding-bottom: 24px; }
.sr-head .crumbs { margin-bottom: 8px; }
.sr-head > .wrap { min-width: 0; }
.sr-eye { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .8125rem; font-weight: 650; color: var(--brand); letter-spacing: .01em; }
.sr-eye .ico { width: 18px; height: 18px; }
.sr-id .lede { margin-top: 8px; max-width: 46rem; }
.sr-head .stp-box { margin-top: 28px; max-width: 60rem; }
/* Q31 (DS F5): the last node takes its own width at the right edge, so the stepper ends where
   What's next ends */
@container (min-width: 34.01rem) {
  .sr-head .stp-l { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
  .sr-head .stp-l > li:last-child { padding-right: 0; }
}

/* K3: a stage search for a step that has no notice yet */
.sr-notyet { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 20px; max-width: 60rem; padding: 12px 16px;
  border-radius: var(--r); background: var(--live-tint); color: var(--ink); font-weight: 600; font-size: .9375rem; }
.sr-notyet .ico { flex: none; width: 18px; height: 18px; color: var(--live-ink); }
.sr-notyet span { flex: 1 1 14rem; min-width: 0; }
.sr-notyet a { color: var(--brand); white-space: nowrap; }
/* a step already out or passed (J4): said plainly, in the brand tint, never "not out yet" */
.sr-notyet.is-out { background: var(--brand-tint); }
.sr-notyet.is-out .ico { color: var(--brand); }
.sr-notyet:focus { outline: none; }
.sr-notyet:focus-visible, .sr-sec:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

.sr-next {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 24px; max-width: 60rem;
  padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--rule);
  border-left: 3px solid var(--live); font-size: .9375rem; color: var(--ink-2);
}
.sr-next b { color: var(--ink); }

/* ---- body: notices on the left; Follow, site and facts on the right */
.sr-grid { display: grid; gap: 24px; grid-template-areas: "main" "about"; padding-top: 24px; padding-bottom: 48px; }
.sr-col { grid-area: main; min-width: 0; }
.sr-act { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; padding: 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.sr-about { grid-area: about; align-self: start; }
.sr-aside-h { font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sr-aside-h:lang(hi) { letter-spacing: 0; text-transform: none; font-size: .875rem; }
.sr-cycle { display: grid; gap: 4px; padding-bottom: 14px; margin-bottom: 2px; border-bottom: 1px solid var(--rule); }
.sr-cy-st b { position: relative; display: block; font-family: var(--display); font-size: 1.625rem; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
/* R9 (R13, QM cmp-rbi, DS F6): the status dot sits inline at the head of the "THIS CYCLE" row
   (6px, a 6px gap), inside the column at every width; it hung 14px into the card's margin
   before (x 5px from the border, and outside the 20px gutter on phones) */
.sr-cycle > .sr-aside-h { display: flex; align-items: center; gap: 6px; }
.sr-cycle > .sr-aside-h::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px rgb(var(--live-rgb) / .22); }
.sr-cycle.is-wait .sr-cy-st b, .sr-cy-st.cy-unclear b, .sr-cy-st.cy-varies b { font-size: 1.25rem; }
.sr-cycle.is-wait > .sr-aside-h::before, .sr-cycle:has(> .sr-cy-st.cy-unclear) > .sr-aside-h::before, .sr-cycle:has(> .sr-cy-st.cy-varies) > .sr-aside-h::before { background: var(--ink-3); box-shadow: none; }
.sr-cy-line { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.sr-cy-line.is-seen { color: var(--ink-3); }
.sr-cy-line a { color: var(--brand); font-weight: 600; }
.sr-act .btn { min-height: 48px; margin: 0; font-size: .9375rem; }
.sr-act .btn .ico { width: 20px; height: 20px; }
/* followed (OD16): "Following ✓", a ghost button with a brand border; hover says "Unfollow" */
.sr-follow.is-on { background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.sr-follow.is-on:hover { background: var(--raised); color: var(--brand); }
.sr-follow.pop .ico { animation: bm .28s ease-out; }
.sr-follow-ok:empty { display: none; }
/* P19: Follow now sits above the stepper on phones and in the band's column on desktop;
   with scripts on, its room is kept from first paint (follow.js un-hides it), so nothing
   below moves when it appears. Without scripts it stays out (it could do nothing). */
:root.js .sr-follow[hidden] { display: inline-flex !important; visibility: hidden; }
.sr-follow-ok { padding: 10px 12px; border-radius: var(--r-s); background: var(--ok-tint); color: var(--ok); font-size: .875rem; font-weight: 600; line-height: 1.45; }
.sr-fine { font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }
.sr-act .btn { max-width: 100%; height: auto; padding-block: 10px; }
.sr-act .btn span { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; }

/* not notified yet: what we are waiting for, once */
.sr-wait { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: center; padding: 22px 24px;
  background: var(--surface); border: 1px dashed var(--rule-2); border-radius: var(--r-l); }
.sr-wait .radar-glyph, .sr-wait svg { width: 64px; height: 64px; }
.sr-wait p { color: var(--ink-2); max-width: 40rem; }
.sr-wait-t { display: grid; gap: 6px; min-width: 0; }
.sr-wait-h { font: var(--h3); color: var(--ink); }
.sr-wait-u { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--ink-2); }
.sr-wait-u a, .sr-wait-l a { color: var(--brand); font-weight: 600; }
.sr-wait-l { font-size: .875rem; overflow-wrap: anywhere; }

.sr-sec { margin-top: 32px; scroll-margin-top: calc(var(--top-h) + 16px); }
.sr-col > .sr-sec:first-child { margin-top: 0; }
.sr-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font: var(--h2); letter-spacing: -.01em; } /* M25 + Q20: the --h2 token whole (-0.2px) */
.sr-h:lang(hi) { letter-spacing: 0; }
.sr-h small { font-family: var(--sans); font-size: .8125rem; font-weight: 600; color: var(--ink-3); padding: 1px 9px; border-radius: var(--r-pill); background: var(--raised); }

/* key dates: tear-off tiles; dates still ahead are saffron */
/* J18 (AX F1): a tile is never wider than the list (min(16rem, 100%)), so at 200% text the
   tiles stack and nothing is clipped */
.sr-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none;
  background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-l); overflow: visible; box-shadow: var(--shadow-1); }
.sr-dates li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; min-height: 44px; padding: 14px 16px; background: var(--surface); }
.sr-dates li:first-child { border-radius: calc(var(--r-l) - 1px) calc(var(--r-l) - 1px) 0 0; }
.sr-dates li:last-child { border-radius: 0 0 calc(var(--r-l) - 1px) calc(var(--r-l) - 1px); }
.sr-dates li:only-child { border-radius: calc(var(--r-l) - 1px); }
@media (min-width: 40rem) { .sr-dates { overflow: hidden; } .sr-dates li { border-radius: 0; } }
/* Q20 (DS F5): one date style on the page: the key dates' day is drawn like the notice rows'
   (bare day over month, no tile); a date still ahead is saffron */
.sr-dt { display: grid; justify-items: center; align-content: start; align-self: start; padding-top: 2px; color: var(--ink-3); line-height: 1; }
.sr-dt b { font-family: var(--display); font-size: 1.25rem; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.sr-dt small { margin-top: 3px; font-size: .6875rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.is-future .sr-dt b, .is-future .sr-dt small { color: var(--live-ink); }
.sr-dm { display: grid; gap: 2px; min-width: 0; }
.sr-dm > b { font-size: .9375rem; color: var(--ink); overflow-wrap: anywhere; }
.sr-dk { font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.sr-dk:lang(hi) { letter-spacing: 0; text-transform: none; font-size: .75rem; }
.is-future .sr-dk { color: var(--live-ink); }
.sr-dtt { font-size: .875rem; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
/* the notice's title is the row's link, stretched over the whole tile (≥ 44px) */
a.sr-dtt { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
a.sr-dtt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
a.sr-dtt:hover { color: var(--brand); text-decoration-color: currentColor; }
a.sr-dtt:focus-visible { outline: none; }
a.sr-dtt:focus-visible::after { outline: 2px solid var(--brand); outline-offset: -3px; }
.is-seen .sr-dt b { color: var(--ink-3); font-weight: 500; }
.sr-src { justify-self: start; font-size: .8125rem; font-weight: 600; color: var(--ink-3); overflow-wrap: anywhere; }

/* notices: one card per stage, a row per notice (never a half-empty grid) */
.sr-list { margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.sr-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 14px; align-items: start; padding: 14px 8px 14px 16px; }
.sr-row + .sr-row { border-top: 1px solid var(--rule); }
.sr-row:hover { background: color-mix(in srgb, var(--raised) 45%, transparent); }
.sr-row:first-child { border-radius: var(--r-l) var(--r-l) 0 0; }
.sr-row:last-child { border-radius: 0 0 var(--r-l) var(--r-l); }
.sr-row:only-child { border-radius: var(--r-l); }
.sr-rd { display: grid; justify-items: center; min-width: max-content; padding-top: 2px; line-height: 1; color: var(--ink-3); }
.sr-rd b { font-family: var(--display); font-size: 1.25rem; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sr-rd small { margin-top: 3px; font-size: .6875rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.sr-rd .sr-rs { margin: 3px 0 0; font-size: .6875rem; font-weight: 600; letter-spacing: 0; text-transform: none; font-style: normal; color: var(--ink-3); } /* Q20: roman */
/* P23 (DS F6): Hindi month labels and "जाँचा" at 12.5px (Devanagari at 11px loses its matras),
   and never a synthetic italic (the face has none) */
.sr-dt small:lang(hi), .sr-rd small:lang(hi), .sr-rd .sr-rs:lang(hi) { font-size: .78125rem; letter-spacing: 0; text-transform: none; }
.sr-rd .sr-rs:lang(hi) { font-style: normal; }
.sr-row.is-seen .sr-rd b { color: var(--ink-3); font-weight: 500; }
.sr-rm { display: grid; gap: 4px; min-width: 0; }
.sr-re { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .8125rem; color: var(--ink-3); }
.sr-rb { font-weight: 600; color: var(--ink-2); }
/* P24: "Hindi · English", the twin copies of one notice; above the row's stretched link */
.sr-langs { position: relative; z-index: 1; display: inline-flex; align-items: baseline; gap: 6px; }
.sr-langs a { display: inline-block; padding: 6px 0; margin: -6px 0; color: var(--brand); font-weight: 600; text-underline-offset: 2px; }
.sr-langs .sep { color: var(--ink-3); }
.sr-files { font-weight: 600; color: var(--ink-3); }
.sr-files::before { content: "· "; }
.sr-rt { font-family: var(--display); font-size: 1rem; font-weight: 650; line-height: 1.42; overflow-wrap: anywhere; } /* P23: Anek 16/650, as card titles */
.sr-rt a { color: var(--ink); text-decoration: none; }
.sr-rt a::after { content: ""; position: absolute; inset: 0; } /* the whole row opens the notice */
.sr-rt a:hover { color: var(--brand); }
.sr-rt a:focus-visible { outline: none; }
.sr-rt a:focus-visible::after { outline: 2px solid var(--brand); outline-offset: -3px; border-radius: inherit; }
.sr-row .bm { position: relative; z-index: 1; justify-self: end; }

/* M23: the heading sits above; the summary is a 44px "Show 5 earlier notices" control */
.sr-older > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; cursor: pointer; list-style: none;
  border: 1px solid var(--rule-2); border-radius: var(--r-pill); background: var(--surface); color: var(--brand); font-size: .875rem; font-weight: 650;
}
.sr-older > summary::-webkit-details-marker { display: none; }
.sr-older > summary::after { content: "▾"; color: var(--ink-3); font-size: .875rem; transition: transform .2s; }
.sr-older:not([open]) > summary::after { transform: rotate(-90deg); }
.sr-older[open] > summary { margin-bottom: 12px; }
.sr-older > summary:hover { border-color: var(--brand); }
.sr-older > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.sr-about { padding: 4px 4px 0; }
.sr-about dl { display: grid; gap: 12px; margin: 0; }
.sr-about dl > div { display: grid; gap: 2px; }
.sr-about dt { color: var(--ink-3); font-size: .8125rem; }
.sr-about dd { margin: 0; color: var(--ink); font-size: .9375rem; }
.sr-about .panel-link { margin-top: 16px; }
.sr-src-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; }
.sr-src-note .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; }

/* ---- /exams index */
.sr-count { white-space: nowrap; color: var(--ink-3); }
.sr-field { margin-top: 28px; }
.sr-fh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: var(--h2); letter-spacing: -.01em; } /* M25: --h2 */
/* J20 (QM F9): beats design.css's .h-sec.solo margin */
.sr-index .sr-field > .sr-fh { margin-bottom: 12px; }
.sr-fh .ico { width: 22px; height: 22px; color: var(--brand); }
.sr-cards { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); list-style: none; padding: 0; }
.sr-cards > li { display: flex; min-width: 0; }
.sr-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; padding: 16px 16px 14px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-l); box-shadow: var(--shadow-1);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.sr-card:hover { border-color: var(--rule-2); box-shadow: var(--shadow-2); color: var(--ink); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .sr-card:hover { transform: translateY(-3px); }
}
.sr-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sr-card-n { font-size: 1.125rem; font-weight: 650; letter-spacing: -.005em; }
.sr-card-f { min-height: calc(2 * 1.45em); font-size: .8125rem; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-card .stp-box { margin-top: auto; padding-top: 4px; }
.sr-card .pg { max-width: 11rem; } /* Q19: the one progress glyph */
.sr-fbadge { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 2px 8px 2px 6px; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--brand); font-size: .75rem; font-weight: 650; }
.sr-fbadge .ico { width: 14px; height: 14px; }
.sr-card.is-f { border-color: var(--brand); }
.sr-pill { align-self: stretch; min-height: 1.4em; font-size: .8125rem; line-height: 1.4; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-card.on .sr-pill { color: var(--brand); }
.sr-index > .fine { display: flex; gap: 8px; align-items: flex-start; margin: 32px 0 40px; }
.sr-index > .fine .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.sr-field { scroll-margin-top: calc(var(--top-h) + 64px); }
.ex-cat h2, .sr-fh { margin-bottom: 12px; }
/* P23: the /exams category H2s take --h2 (20/650/-0.2); app.css's .h-sec.solo (17/600) is
   more specific than .sr-fh alone */
.h-sec.sr-fh { font: var(--h2); letter-spacing: -.01em; }

/* H23: jump chips, sticky under the header */
.sr-jump { position: sticky; top: var(--top-h); z-index: 5; background: var(--page); border-bottom: 1px solid var(--rule); }
.sr-jump-in { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; scroll-padding-inline: 16px; }
.sr-jump-in::-webkit-scrollbar { display: none; }
.sr-chip { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sr-chip:hover { border-color: var(--brand); color: var(--brand); }
.sr-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (min-width: 600px) {
  .sr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sr-act .btn { width: auto; }
  .sr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "about about"; }
}
@media (min-width: 1000px) {
  .sr-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sr-grid { grid-template-columns: minmax(0, 1fr) 22rem; grid-template-areas: "main about"; column-gap: 40px; }
  .sr-act .btn { width: 100%; }
}
@media (min-width: 1400px) {
  .sr-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .sr-cy-st b { font-size: 1.375rem; }
  /* H23: compact cards, two to a row: name, dots, stage (the description is on the page) */
  .sr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sr-card { padding: 10px 12px; gap: 6px; border-radius: var(--r); }
  .sr-card-n { font-size: 1rem; line-height: 1.25; }
  .sr-card-f { display: none; }
  .sr-card .pg { max-width: 100%; }
  /* two lines kept for every pill, so the dots above sit at one height in a row (J20) */
  .sr-pill { font-size: .75rem; line-height: 1.35; min-height: 2.7em; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
  .sr-fbadge span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sr-row { grid-template-columns: 36px minmax(0, 1fr) 40px; gap: 10px; padding-left: 12px; }
  .sr-rt { font-size: .9375rem; }
}
/* phones (DS F8): the stepper says the stage; This cycle keeps only its line, under What's next */
@media (max-width: 719px) {
  .sr-cycle .sr-aside-h, .sr-cycle:not(.is-wait) .sr-cy-st { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sr-cycle { padding-bottom: 10px; }
  .sr-head { padding-bottom: 12px; }
  .sr-grid { padding-top: 12px; }
}
/* large text (200%) or narrow: a row's date sits above its text, never squeezed beside it */
@media (max-width: 30em) {
  .sr-row { grid-template-columns: minmax(0, 1fr) 40px; row-gap: 4px; }
  .sr-rd { grid-column: 1; grid-row: 1; display: flex; align-items: baseline; gap: 4px; justify-items: start; padding-top: 0; }
  .sr-rd small, .sr-rd .sr-rs { margin: 0; }
  .sr-rm { grid-column: 1; grid-row: 2; }
  .sr-row .bm { grid-column: 2; grid-row: 1 / span 2; }
}
/* P19 (round 7): This cycle + Follow are part of the band (series.html).
   - 600–999px: the card closes the band, where it sat before (first in the body).
   - from 1000px: the band's right column, from the name's row down, beside the stepper (the
     right half was empty, DS F-ser1440); the last row is 1fr so a tall card never opens gaps
     between the name, the stepper and What's next.
   - phones: Follow comes straight under the name (on the first screen at 360×800, QM); the
     card's other parts follow What's next, unboxed (display: contents). */
.sr-band > .sr-act { margin-top: 24px; }
@media (min-width: 1000px) {
  .sr-band { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; grid-template-rows: repeat(11, auto) 1fr; column-gap: 40px; align-items: start; }
  .sr-band > * { grid-column: 1; }
  .sr-band > .sr-act { grid-column: 2; grid-row: 2 / -1; margin-top: 0; }
  .sr-head .stp-box, .sr-next, .sr-notyet { max-width: 60rem; }
}
@media (max-width: 599px) {
  .sr-band { display: flex; flex-direction: column; }
  .sr-band > * { order: 2; }
  .sr-band > .crumbs, .sr-band > .sr-id { order: 0; }
  .sr-band > .sr-act { display: contents; }
  .sr-act > .sr-follow, .sr-act > .sr-follow-ok, .sr-act > .sr { order: 1; }
  .sr-act > .sr-follow { margin-top: 16px; }
  .sr-act > .sr-follow-ok { margin-top: 8px; }
  .sr-act > .sr-cycle, .sr-act > .sr-fine, .sr-act > .sr-site { order: 3; }
  .sr-act > .sr-cycle { margin-top: 16px; padding-bottom: 0; border-bottom: 0; }
  .sr-act > .sr-fine { margin-top: 8px; }
  .sr-act > .sr-site { margin-top: 12px; }
}

/* P18 (OD42): "Your age on 1 Aug 2026: 23 · limit 18–32 (+3 OBC) ✓", from the profile. Its
   room is kept from first paint for a visitor with a profile (html.fy-slot), so filling it
   moves nothing; without a profile it never shows.
   R9 (R10, OD81, DS F6, UA F3): a quiet pill, the cycle card's last row: a person icon, the
   line at 14px, balanced (R30), and one link under it. The kept room is the height the
   no-facts line takes (two lines and the link) at each width. */
.sr-age { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--raised); min-height: 5.25rem; font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.sr-age[hidden] { display: none; }
:root.fy-slot .sr-age[hidden] { display: flex !important; visibility: hidden; }
.sr-age > .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ink-3); }
.sr-age-b { display: grid; gap: 2px; min-width: 0; }
.sr-age-v { display: block; font-weight: 600; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
.sr-age-v.is-over { color: var(--live-ink); }
/* Q1 (OD50): "over the general limit · check the notice for OBC relaxation" is not a verdict,
   and "we haven't read this cycle's age limit yet" is a fact about us: neither is drawn as a failure */
.sr-age-v.is-check { color: var(--ink); }
.sr-age-v.is-none { font-weight: 500; color: var(--ink-2); }
.sr-age-go { font-weight: 600; white-space: nowrap; }
.sr-age-s { display: block; font-size: .8125rem; color: var(--ink-3); }
.sr-age-s:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sr-card, .sr-older > summary::after { transition: none; }
  .sr-follow.pop .ico { animation: none; }
}
@media print {
  .sr-act, .sr-row .bm { display: none; }
  .sr-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "about"; }
}

/* Exam discovery uses the same calm surfaces and readable hierarchy as the feed. */
.sr-index .sr-cards { gap: 16px; }
.sr-index .sr-card { border-radius: 14px; padding: 20px; box-shadow: none; gap: 10px; }
.sr-index .sr-card:hover { transform: none; border-color: var(--brand); background: var(--raised); box-shadow: none; }
.sr-index .sr-card-f { font-size: .875rem; line-height: 1.5; }
.sr-index .sr-card-n { font-size: 1.125rem; }
.sr-jump .sr-chip { min-height: 44px; border-radius: 8px; box-shadow: none; }
@media (min-width:960px) {
 .sr-index .sr-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:599px) {
 .sr-index .sr-cards { grid-template-columns: minmax(0,1fr); gap: 10px; }
 .sr-index .sr-card { padding: 16px; gap: 8px; }
 .sr-index .sr-card-f { display: block; min-height: 0; }
 .sr-index .sr-card .pg { max-width: 11rem; }
}

.sr-jump .sr-chip { display: inline-flex; align-items: center; gap: 7px; }
.sr-jump .sr-chip > .ico { flex: none; width: 16px; height: 16px; color: var(--brand); }
/* Every desktop category stays visible; phones retain an explicit scroll affordance. */
@media (min-width:960px) {
 .sr-jump-in { flex-wrap: wrap; overflow: visible; }
 .sr-jump { position: static; }
}
@media (max-width:959px) {
 .sr-jump-in { scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; padding-bottom: 14px; }
 .sr-jump-in::-webkit-scrollbar { display: block; height: 4px; }
 .sr-jump-in::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 4px; }
}

/* Exam directory: readable status, restrained navigation and consistent rows. */
.sr-jump .sr-jump-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-block: 12px; }
.sr-jump .sr-chip { flex: 0 0 auto; white-space: nowrap; }
.sr-jump .sr-chip[aria-current="location"] { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }
.sr-index .sr-field-count { font-size: .8125rem; font-weight: 400; color: var(--ink-2); margin-inline-start: 2px; }
.sr-index .sr-card { gap: 12px; }
.sr-index .sr-card-f { min-height: 3em; }
.sr-card-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: auto; padding-top: 6px; }
.sr-index .sr-pill { flex: 0 1 auto; min-height: 0; padding: 5px 9px; border-radius: 6px; background: var(--raised); white-space: normal; }
.sr-index .sr-card.on .sr-pill { background: var(--brand-tint); color: var(--brand); }
.sr-card-date { color: var(--ink-2); font-size: .75rem; }

.sr-index .sr-fh > .ico { display: block; width: 20px; height: 20px; transform: translateY(-2px); }

.sr-index .sr-field > .sr-fh { align-items: baseline; gap: 8px; }

/* Category tabs wrap in the content grid: every category stays visible. */
.sr-jump { position: static; }
.sr-jump .sr-jump-in { flex-wrap: wrap; overflow: visible; gap: 8px; padding-block: 14px; }
.sr-jump .sr-chip { flex: 0 1 auto; max-width: 100%; white-space: normal; }
@media (max-width: 599px) {
 .sr-jump .sr-chip { flex: 1 1 calc(50% - 8px); padding-inline: 10px; font-size: .8125rem; }
}

/* The icon and title share one inline baseline; counts follow the same baseline. */
.sr-index .sr-heading-label { display: inline-block; }
.sr-index .sr-heading-label > .ico { display: inline-block; width: 1em; height: 1em; margin-inline-end: 8px; vertical-align: -.1em; transform: none; }

/* Preserve wrapping category links and 44px tap targets on phones. */
@media (max-width: 759px) {
 .sr-jump .sr-jump-in { gap: 6px; padding-block: 8px; }
 .sr-jump .sr-chip { min-height: 44px; padding-block: 6px; }
}
