/* Udaan IAS Academy: newsprint white, ink, maroon and ochre. Source Serif 4 for headings, Source Sans 3 for text.
   Change the colours and fonts here; base.css reads these variables. */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --soft: #F7F4EE;
  --ink: #1A1A1A;
  --muted: #555049;
  --line: #E2DDD3;
  --line-strong: #1A1A1A;
  --brand: #8C1C2C;
  --brand-hover: #701522;
  --brand-ink: #FFFFFF;
  --brand-text: #8C1C2C;
  --ochre: #C98A1B;
  --eyebrow: #8C1C2C;
  --badge-bg: #1A1A1A;
  --badge-ink: #fff;
  --out-bg: #F7F4EE;
  --out-ink: #1A1A1A;
  --out-accent: #8C1C2C;
  --out-btn: #8C1C2C;
  --out-btn-ink: #fff;
  --head: "Source Serif 4", Georgia, serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --fs-body: 1.06rem;
  --radius: 0px;
  --radius-lg: 0px;
  --btn-radius: 0px;
  --wrap: 1180px;
}
h1, h2, h3 { font-weight: 900; letter-spacing: -.01em; }
.btn { font-weight: 700; letter-spacing: .02em; }
.c-filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); }

.dateline { border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.header .dateline .wrap { min-height: 34px; justify-content: space-between; gap: 12px; }
@media (max-width: 600px) { .dateline span:last-child { display: none; } }
.header.masthead { background: #fff; border-bottom: 4px double var(--ink); }
.header .wrap { min-height: 80px; }
.logo { text-decoration: none; }
.mast { display: grid; line-height: 1; }
.mast b { font: 900 clamp(1.7rem, 3vw, 2.2rem) var(--head); letter-spacing: -.02em; }
.mast small { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-top: 4px; }
.nav a { font-weight: 600; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }

.front { padding-block: clamp(28px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.front-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 880px) { .front-grid { grid-template-columns: minmax(0, 1fr); } }
.kicker { display: inline-block; padding-bottom: 6px; border-bottom: 3px solid var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--brand); }
.lead h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.02; margin: 18px 0; }
.standfirst { font: 600 clamp(1.1rem, 1.8vw, 1.35rem)/1.5 var(--head); color: var(--muted); max-width: 52ch; }
.lead .t-actions { margin-top: 26px; }
.col-side { padding-left: clamp(0px, 3vw, 32px); border-left: 1px solid var(--line); }
@media (max-width: 880px) { .col-side { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; } }
.col-side h2 { font-size: .82rem; font-family: var(--body); text-transform: uppercase; letter-spacing: .14em; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.col-side ol { list-style: none; counter-reset: n; }
.col-side li { counter-increment: n; border-bottom: 1px solid var(--line); }
.col-side a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 10px; padding: 16px 0; text-decoration: none; }
.col-side a::before { content: counter(n); grid-row: 1 / 3; font: 900 1.8rem/1 var(--head); color: var(--ochre); }
.col-side b { font: 700 1.15rem var(--head); }
.col-side a:hover b { color: var(--brand); text-decoration: underline; }
.col-side span { color: var(--muted); font-size: .92rem; }

.rule-band { border-bottom: 1px solid var(--line); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .figures { grid-template-columns: 1fr 1fr; } }
.figures div { display: grid; gap: 2px; padding: 22px 16px; border-left: 1px solid var(--line); }
.figures div:first-child { border-left: 0; padding-left: 0; }
.figures b { font: 900 clamp(1.8rem, 4vw, 2.6rem)/1 var(--head); color: var(--brand); }
.figures span { color: var(--muted); font-size: .92rem; }

.c-card { border: 0; border-top: 3px solid var(--ink); }
.c-img { border: 1px solid var(--line); }
.c-body { padding-inline: 0; }
.c-facts, .c-facts div { background: var(--soft); }
.columns { background: var(--soft); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
@media (max-width: 820px) { .cols3 { grid-template-columns: minmax(0, 1fr); } }
.cols3 article { padding: 4px 24px; border-left: 1px solid var(--line-strong); }
.cols3 article:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 820px) { .cols3 article { border-left: 0; padding: 18px 0; border-top: 1px solid var(--line); } }
.cols3 h3 { font-size: 1.5rem; margin-bottom: 8px; }
.cols3 p { color: var(--muted); }
.cols3 article:first-child p::first-letter { float: left; font: 900 3.4rem/.8 var(--head); color: var(--brand); margin: 6px 8px 0 0; }
.results li { border: 0; border-top: 3px solid var(--brand); background: var(--soft); text-align: left; }
.quotes li { border: 0; border-left: 3px solid var(--ochre); background: var(--soft); }
.quotes blockquote { font-family: var(--head); font-size: 1.15rem; font-style: italic; }

.tool-out { border: 2px solid var(--ink); }
.tool-out .out-total { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; }
.tool-out .meter i { background: var(--brand); }
.tool-out [data-split] { display: grid; gap: 8px; }

.page-head { border-bottom: 4px double var(--ink); margin-bottom: clamp(28px, 4vw, 48px); }

.cta-band { padding-block: clamp(44px, 6vw, 80px); background: var(--brand); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { margin-top: 6px; max-width: 56ch; color: #F2DCDD; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.footer { background: #1A1A1A; color: #CFC9BE; --footer-line: rgba(255,255,255,.15); }
.footer .mast small { color: var(--ochre); }
.footer h2 { color: #fff; }
.f-about { margin-top: 12px; max-width: 34ch; }
.footer .credit a { color: #fff; }
