/* Anchor — UPSC daily brief, lookup and revision notes.
   Notebook discipline: ruled entries, margin scores, one highlighter.
   Tokens mirror the other Utilities pages so the chrome matches sitewide. */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #245f78;
  --text: #15283c;
  /* A step darker than the sitewide #86868b: this page leans on secondary text
     for labels and guidance, and #86868b sits at 3.3:1 on the page surface. */
  --gray: #6e6e73;
  --bg: #eef4f7;
  --white: #fff;
  --green: #1f7a3a;
  --red: #c32b23;
  --amber: #9a6b12;

  /* Page character: warm paper, hairline rules, one highlighter */
  --paper: #fbfdff;
  --paper-edge: #e7eff4;
  --rule: rgba(35, 73, 96, 0.11);
  --rule-strong: rgba(35, 73, 96, 0.22);
  --mark: rgba(255, 214, 92, 0.32);
  --mark-edge: rgba(181, 129, 0, 0.38);

  --card-line: rgba(0, 0, 0, 0.08);
  --input-bg: #fff;
  --input-line: rgba(0, 0, 0, 0.14);
  --panel-muted: #f2f2f4;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --max: 1240px;

  --fast: 140ms;
  --normal: 220ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  --an-paper: #f7f8fa;
  --an-ink: #162238;
  --an-navy: #17324d;
  --an-maroon: #8b1e2d;
  --an-verified: #1f6b4f;
  --an-recall: #c9831d;
}

:root[data-theme="dark"] {
  --blue: #4c9cff;
  --text: #f2f2f7;
  --gray: #9a9aa2;
  --bg: #0d0d10;
  --white: #17171b;
  --green: #4cc26a;
  --red: #ff6b60;
  --amber: #e8c877;

  --paper: #16161a;
  --paper-edge: #24242a;
  --rule: rgba(255, 255, 255, 0.1);
  --rule-strong: rgba(255, 255, 255, 0.2);
  --mark: rgba(226, 168, 48, 0.16);
  --mark-edge: rgba(232, 200, 119, 0.32);

  --card-line: rgba(255, 255, 255, 0.1);
  --input-bg: #1f1f24;
  --input-line: rgba(255, 255, 255, 0.16);
  --panel-muted: #1c1c21;

  --an-paper: #151a22;
  --an-ink: #eef2f7;
  --an-navy: #a9c7e4;
  --an-maroon: #ef8795;
  --an-verified: #72c8a6;
  --an-recall: #e8b45e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
select,
input,
textarea,
.nav-links,
.nav-logo {
  font-family: var(--sans);
}

button,
select,
input,
textarea {
  font-size: 14px;
  color: inherit;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10000;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-family: var(--sans);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Nav (shared chrome, same tokens as the other Utilities pages) ---------- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 48px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  border-bottom: 1px solid var(--card-line);
  --nav-drop-bg: var(--white);
  --nav-drop-line: var(--card-line);
  --nav-drop-hover: rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] nav {
  --nav-drop-hover: rgba(255, 255, 255, 0.07);
}

.nav-c {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  opacity: 0.8;
  transition: opacity var(--fast) var(--ease), color var(--fast) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--blue);
}

.theme-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.theme-toggle:hover {
  background: var(--card-line);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root:not([data-theme="dark"]) .theme-toggle .moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 20px;
  border-bottom: 1px solid var(--card-line);
  z-index: 9998;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--card-line);
  font-family: var(--sans);
}

.mobile-menu a.active {
  color: var(--blue);
}

/* ---------- Shared label / button vocabulary ---------- */
.an-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gray);
}

.an-num {
  font-variant-numeric: tabular-nums;
}

.btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-sm);
  background: var(--panel-muted);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: #0055aa;
  border-color: #0055aa;
  color: #fff;
}

/* On the dark surface the accent is light, so the label has to go dark to keep
   contrast above 4.5:1. */
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .btn-primary:hover {
  color: #0d0d10;
}

:root[data-theme="dark"] .btn-primary:hover {
  background: #6cb0ff;
  border-color: #6cb0ff;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-sm {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.btn-quiet {
  border-color: transparent;
  background: none;
  color: var(--gray);
  padding: 0 8px;
}

.btn-quiet:hover {
  color: var(--blue);
  border-color: transparent;
}

input[type="text"],
input[type="search"],
input[type="date"],
select,
textarea {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  width: 100%;
}

textarea {
  min-height: 62px;
  padding: 8px 10px;
  line-height: 1.5;
  resize: vertical;
}

select {
  cursor: pointer;
}

/* ---------- Header ---------- */
.an-textbtn {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.an-textbtn:hover {
  color: var(--blue);
}

.an-namenote {
  max-width: 62ch;
  margin-top: 18px;
  padding-left: 14px;
  border-left: 1px solid var(--rule-strong);
  font-size: 15px;
  font-style: italic;
  color: var(--gray);
}

/* ---------- Position strip (derived cycle mode) ---------- */
.an-position {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 22px 0;
}

.an-position__inner {
  display: grid;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.an-position > details > summary {
  width: fit-content;
  margin-left: auto;
  padding: 5px 0;
  cursor: pointer;
  color: var(--gray);
  font: 650 12px/1.4 var(--sans);
}

.an-position > details[open] > summary {
  margin-bottom: 8px;
}

@media (min-width: 900px) {
  .an-position__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 32px;
  }
}

.an-position__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.an-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 140px;
}

.an-field label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

.an-mode {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.an-mode__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.an-mode__name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-xs);
}

.an-mode__name[data-mode="LOCK"] {
  border-color: var(--mark-edge);
  background: var(--mark);
}

.an-mode__t {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.an-mode__line {
  font-size: 15px;
  max-width: 52ch;
}

.an-mode__caveat {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--gray);
  max-width: 52ch;
}

.an-mode__caveat a {
  color: var(--blue);
}

/* ---------- Notes ---------- */
.an-composer {
  margin-top: 18px;
  font-family: var(--sans);
}

.an-views {
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
}

.an-views button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-xs);
  background: none;
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.an-composer > summary::-webkit-details-marker {
  display: none;
}

.an-composer > summary::before {
  content: "+ ";
  margin-right: 4px;
}

.an-composer[open] > summary::before {
  content: "− ";
}

.an-composer__body {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.an-formgrid {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .an-formgrid {
    grid-template-columns: 1fr 1fr;
  }

  .an-formgrid .an-field--full {
    grid-column: 1 / -1;
  }
}

.an-formgrid .an-field {
  flex: none;
}



.an-formactions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}




.an-note__due {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

.an-note__due[data-due="now"] {
  color: var(--blue);
  font-weight: 600;
}

.an-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
}

.an-segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-sm);
}

.an-segmented button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-xs);
  background: none;
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.an-segmented button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.an-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.an-chip {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-xs);
  background: none;
  color: var(--gray);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.an-chip:hover {
  color: var(--text);
}

.an-chip[aria-pressed="true"] {
  border-color: var(--text);
  color: var(--text);
}

.an-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--gray);
}

.an-check input {
  width: auto;
  min-height: 0;
  accent-color: var(--blue);
}

.an-toolbar__right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------- Source Desk: an official dossier, not a news-card grid ---------- */
.an-sourcefilters {
  margin-top: 14px;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--sans);
}

.an-sourcefilters > summary {
  display: none;
  min-height: 42px;
  align-items: center;
  color: var(--an-navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.an-sourcefilters__grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.8fr) repeat(5, minmax(120px, 1fr));
  gap: 12px;
  padding: 0 0 16px;
}

.an-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--gray);
  font-family: var(--sans);
  font-size: 12px;
}

.an-coverage__warn {
  color: var(--amber);
}

.an-sourcesdesk {
  border-top: 2px solid var(--an-navy);
}

.an-source {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.an-source__stamp {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 18px 0 0;
  border-right: 2px solid color-mix(in srgb, var(--an-maroon) 72%, transparent);
  color: var(--gray);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.an-source__stamp strong {
  color: var(--an-navy);
  font-size: 11.5px;
}

.an-source__body h3 {
  color: var(--an-ink);
  font-size: 19px;
}

.an-source__summary {
  max-width: 76ch;
  margin-top: 7px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.58;
}

.an-source__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--an-navy);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 650;
  text-underline-offset: 3px;
}

.an-memorymodes {
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  margin: 14px 0;
}

.an-memory-drill {
  max-width: 760px;
}

.an-memory-drill > h3 {
  margin-top: 7px;
  font-size: 22px;
}

.an-memory-drill__prompt,
.an-memory-drill > ol {
  margin: 18px 0;
  font-size: 18px;
  line-height: 1.55;
}

.an-memory-drill > ol {
  padding-left: 22px;
}

.an-memory-drill__answer {
  margin-top: 16px;
  padding: 15px;
  border-left: 4px solid var(--green);
  background: var(--panel-muted);
  animation: an-recall-reveal 180ms var(--ease);
}

.an-memory-drill__answer p,
.an-memory-drill__answer li {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.5;
}

.an-memory-drill__answer ol {
  margin-left: 20px;
}

.an-memory-drill__answer a {
  display: inline-block;
  margin-top: 10px;
  color: var(--an-navy);
  font-family: var(--sans);
  font-size: 12px;
}

@media (max-width: 980px) {
  .an-sourcefilters__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .an-sourcefilters > summary {
    display: flex;
  }

  .an-sourcefilters:not([open]) .an-sourcefilters__grid {
    display: none;
  }

  .an-sourcefilters__grid {
    grid-template-columns: 1fr;
  }

  .an-source {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .an-source__stamp {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 0 0 8px;
    border-right: 0;
    border-bottom: 2px solid color-mix(in srgb, var(--an-maroon) 72%, transparent);
  }

  .an-source__stamp span:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Notebook entries ---------- */
.an-entries {
  list-style: none;
}

.an-entry {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.an-entry:last-child {
  border-bottom: 0;
}

.an-entry__body {
  min-width: 0;
}

.an-entry > .an-entry__body:only-child {
  grid-column: 1 / -1;
}

.an-entry ol,
.an-entry ul {
  margin: 10px 0 10px 1.35em;
}

.an-entry ol {
  list-style: decimal;
}

.an-entry ul {
  list-style: disc;
}

.an-entry__margin {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
  text-align: right;
  border-right: 1px solid var(--rule);
  padding-right: 12px;
}

.an-entry__score {
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.an-entry[data-band="thin"] .an-entry__score,
.an-entry[data-band="log"] .an-entry__score {
  color: var(--gray);
  font-weight: 500;
}

.an-entry__band {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.an-entry__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.an-entry__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 7px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--gray);
}

.an-anchor {
  font-weight: 600;
  color: var(--text);
}

.an-anchor .an-label {
  margin-right: 3px;
  font-size: 9.5px;
}

/* Labels, not controls: the paper chips in the toolbar are the only bordered
   pills, so a code tag never reads as something you can press. */
.an-code {
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--panel-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.an-verify {
  font-size: 11.5px;
  font-weight: 600;
}

.an-verify[data-verified="true"] {
  color: var(--green);
}

.an-verify[data-verified="false"] {
  color: var(--amber);
}

/* The one line that has to survive: highlighted like a topper's marker. */
.an-use {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  background: var(--mark);
  box-shadow: inset 2px 0 0 var(--mark-edge);
  font-size: 16px;
  line-height: 1.5;
}

.an-use .an-label {
  display: block;
  margin-bottom: 2px;
  color: color-mix(in srgb, var(--text) 60%, transparent);
}

.an-lines {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.an-line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.an-line > .an-label {
  padding-top: 3px;
}

.an-line p {
  font-size: 15.5px;
  line-height: 1.5;
}

.an-entry__expand {
  margin-top: 12px;
  font-family: var(--sans);
}

.an-entry__expand > summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  padding: 4px 0;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.an-entry__expand > summary::-webkit-details-marker {
  display: none;
}

.an-entry__expand > summary::before {
  content: "+ ";
  margin-right: 4px;
}

.an-entry__expand[open] > summary::before {
  content: "− ";
}

.an-treatment {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.5;
}

.an-entry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.an-entry__actions a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  padding: 4px 0;
}

.an-entry__actions a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Published topper dossiers ---------- */
.an-exam-summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.an-exam-summary__score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 14px;
  border-right: 2px solid var(--an-maroon);
  color: var(--gray);
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.an-exam-summary__score strong {
  color: var(--an-navy);
  font-size: 24px;
  line-height: 1;
}

.an-exam-summary h3 {
  margin-top: 5px;
  color: var(--an-ink);
  font-size: 20px;
}

.an-exam-summary > div:last-child > p:not(.an-entry__tags, .an-use, .an-exam-summary__meta) {
  margin-top: 6px;
  font-size: 15.5px;
  line-height: 1.55;
}

.an-exam-summary__meta {
  margin: 11px 0;
  color: var(--gray);
  font-family: var(--sans);
  font-size: 11.5px;
}

.an-exam-expanded {
  padding: 24px 0 34px;
  border-bottom: 1px solid var(--rule-strong);
}

.an-dossier {
  display: grid;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--card-line);
  border-top: 3px solid var(--an-navy);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px,
      color-mix(in srgb, var(--rule) 55%, transparent) 32px),
    var(--paper);
}

@media (min-width: 1100px) {
  .an-dossier {
    grid-template-columns: 132px minmax(0, 1fr) 184px;
    gap: 24px;
    padding: 22px;
  }
}

.an-dossier__source {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: var(--gray);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.4;
}

.an-dossier__source strong {
  color: var(--an-navy);
  font-size: 12px;
}

.an-dossier__source a {
  color: var(--an-navy);
  text-underline-offset: 3px;
}

.an-dossier__issue h3 {
  color: var(--an-ink);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
}

.an-note-section {
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
}

.an-note-section h4 {
  margin-bottom: 7px;
  color: var(--an-navy);
  font-size: 17px;
}

.an-note-section > p {
  font-size: 15.5px;
  line-height: 1.55;
}

.an-note-section--analysis > .an-label {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--amber);
}

.an-note-section--facts {
  border-left: 3px solid var(--green);
  padding-left: 14px;
}

.an-note-section--use {
  margin-top: 8px;
  padding: 13px 14px;
  border-bottom: 0;
  background: var(--mark);
  box-shadow: inset 3px 0 0 var(--mark-edge);
}

.an-main[data-cycle="build"] .an-note-section:nth-of-type(2),
.an-main[data-cycle="build"] .an-note-section:nth-of-type(3),
.an-main[data-cycle="converge"] .an-note-section--analysis,
.an-main[data-cycle="converge"] .an-answer-outline {
  border-color: var(--an-navy);
}

.an-main[data-cycle="compress"] .an-dossier__recall,
.an-main[data-cycle="lock"] .an-dossier__recall {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mark-edge) 32%, transparent);
}

.an-facts,
.an-traps {
  display: grid;
  gap: 12px;
  list-style: none;
}

.an-facts li,
.an-traps li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.an-facts li:last-child,
.an-traps li:last-child {
  border-bottom: 0;
}

.an-facts li > p,
.an-traps li > p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
}

.an-dossier__recall {
  align-self: start;
  padding: 15px;
  border-left: 4px solid var(--mark-edge);
  background: color-mix(in srgb, var(--mark) 64%, var(--paper));
  font-family: var(--sans);
}

.an-dossier__recall ol {
  margin: 10px 0 14px 17px;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.5;
}

.an-dossier__recall button + div {
  margin-top: 12px;
  animation: an-recall-reveal 180ms var(--ease);
}

.an-dossier__recall button + div p {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.45;
}

.an-dossier__recall .btn-primary {
  margin-top: 12px;
}

@keyframes an-recall-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.an-answer-outline {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--card-line);
  border-left: 3px solid var(--an-maroon);
  border-radius: var(--radius-xs);
  background: var(--paper);
}

.an-answer-outline h4 {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.4;
}

.an-answer-outline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 8px;
  color: var(--gray);
  font-family: var(--sans);
  font-size: 11.5px;
}

.an-answer-outline__steps {
  margin: 12px 0 0 20px;
  font-size: 14.5px;
  line-height: 1.55;
}

.an-syllabus-anchor,
.an-practice-note,
.an-published-practice,
.an-optional-lookup {
  margin-top: 18px;
}

.an-syllabus-anchor {
  padding: 16px 0 18px 16px;
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid var(--an-navy);
}

.an-syllabus-anchor h3 {
  margin-top: 7px;
  font-size: 20px;
}

.an-syllabus-anchor > p:not(.an-entry__tags, .an-treatment) {
  margin-top: 6px;
  max-width: 70ch;
  color: var(--gray);
  line-height: 1.55;
}

.an-published-practice,
.an-optional-lookup {
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
}

.an-published-practice > h3,
.an-optional-lookup > h3 {
  font-size: 20px;
}

/* ---------- Clusters, discard log ---------- */
.an-block {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-strong);
}

.an-block h3 {
  font-size: 18px;
}

.an-block__intro {
  margin-top: 6px;
  max-width: 66ch;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
}

.an-clusters {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.an-cluster {
  padding-left: 14px;
  border-left: 1px solid var(--rule-strong);
}

.an-cluster h4 {
  font-size: 16px;
}

.an-cluster p {
  margin-top: 4px;
  font-size: 15.5px;
  line-height: 1.5;
}

/* ---------- Discard log ---------- */
.an-discards {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gray);
}

.an-discards li {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.45;
}

.an-discards span:last-child {
  flex: 0 0 auto;
  font-size: 12px;
  opacity: 0.8;
}
/* ---------- States ---------- */
.an-state {
  padding: 34px 0 8px;
  max-width: 60ch;
}

.an-state h3 {
  font-size: 19px;
}

.an-state p {
  margin-top: 8px;
  color: var(--gray);
  font-size: 15.5px;
  line-height: 1.6;
}

.an-state .btn {
  margin-top: 16px;
}

.an-skeleton {
  list-style: none;
  padding-top: 8px;
}

.an-skeleton li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.an-skeleton span {
  display: block;
  height: 12px;
  border-radius: 3px;
  background: var(--panel-muted);
  animation: an-pulse 1.4s var(--ease) infinite;
}

.an-skeleton div {
  display: grid;
  gap: 10px;
}

.an-skeleton span:nth-child(2) {
  width: 72%;
}

.an-skeleton span:nth-child(3) {
  width: 46%;
}

@keyframes an-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- Lookup result ---------- */
.an-lookup {
  padding-top: 22px;
}

.an-lookup__head h3 {
  font-size: 26px;
  letter-spacing: -0.025em;
}

.an-lookup__oneliner {
  margin-top: 10px;
  max-width: 66ch;
  font-size: 17px;
  line-height: 1.55;
}

.an-points {
  counter-reset: point;
  list-style: none;
  margin-top: 8px;
}

.an-points li {
  counter-increment: point;
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid var(--rule);
  font-size: 16.5px;
  line-height: 1.5;
}

.an-points li::before {
  content: counter(point);
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-align: right;
}

.an-valueadds {
  list-style: none;
  margin-top: 8px;
}

.an-valueadds li {
  display: grid;
  gap: 2px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 620px) {
  .an-valueadds li {
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: baseline;
  }
}

.an-valueadds strong {
  font-size: 15.5px;
  font-weight: 600;
}

.an-valueadds p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.5;
}

.an-two {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

@media (min-width: 720px) {
  .an-two {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.an-list {
  list-style: none;
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.an-list li {
  padding-left: 14px;
  position: relative;
  font-size: 15.5px;
  line-height: 1.5;
}

.an-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gray);
}

.an-stems {
  list-style: none;
  margin-top: 8px;
  display: grid;
  gap: 14px;
}

.an-stem {
  padding: 14px 16px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.an-stem p {
  font-size: 16.5px;
  line-height: 1.45;
}

.an-stem__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--gray);
}

.an-stem__verb {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.an-trap {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--mark-edge);
  border-radius: var(--radius-sm);
  background: var(--mark);
}

.an-trap .an-label {
  color: color-mix(in srgb, var(--text) 60%, transparent);
}

.an-trap p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.5;
}

.an-sources {
  list-style: none;
  margin-top: 8px;
  display: grid;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
}

.an-sources a {
  color: var(--blue);
  text-decoration: none;
}

.an-sources a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.an-sources span {
  color: var(--gray);
  font-size: 12px;
}

/* ---------- Notes ---------- */
.an-composer {
  margin-top: 18px;
  font-family: var(--sans);
}

.an-composer > summary {
  cursor: pointer;
  list-style: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.an-composer > summary::-webkit-details-marker {
  display: none;
}

.an-composer > summary::before {
  content: "+ ";
  margin-right: 4px;
}

.an-composer[open] > summary::before {
  content: "− ";
}

.an-composer__body {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.an-formgrid {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .an-formgrid {
    grid-template-columns: 1fr 1fr;
  }

  .an-formgrid .an-field--full {
    grid-column: 1 / -1;
  }
}

.an-formgrid .an-field {
  flex: none;
}

.an-counter {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

.an-counter[data-over="true"] {
  color: var(--red);
  font-weight: 600;
}

.an-formactions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.an-status {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--green);
}

.an-status[data-tone="error"] {
  color: var(--red);
}

.an-status[hidden] {
  display: none;
}

.an-note__due {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

.an-note__due[data-due="now"] {
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Revision ---------- */
.an-revise {
  padding-top: 22px;
}

.an-card {
  padding: 28px 24px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.an-revise__progress {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

.an-revise__title {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.an-revise__prompt {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--gray);
  font-size: 15.5px;
  line-height: 1.6;
}

.an-revise__reveal {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.an-revise__reveal[hidden] {
  display: none;
}

.an-revise__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.an-revise__legend {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.55;
  max-width: 64ch;
}

/* ---------- Rail ---------- */
.an-rail {
  display: grid;
  gap: 22px;
  align-content: start;
}

@media (min-width: 1000px) {
  .an-rail {
    position: sticky;
    top: 116px;
  }
}

.an-railblock {
  padding: 16px 18px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.an-railblock h3 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gray);
}

.an-stats {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.an-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gray);
}

.an-stat strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.an-stat[data-warn="true"] strong {
  color: var(--amber);
}

.an-tests {
  counter-reset: test;
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 9px;
}

.an-tests li {
  counter-increment: test;
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.45;
}

.an-tests li::before {
  content: counter(test);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
}

.an-tests em {
  color: var(--gray);
  font-size: 13px;
}

.an-railnote {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

/* ---------- How to use ---------- */
.an-how {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px 20px;
}

.an-how__inner {
  padding-top: 34px;
  border-top: 1px solid var(--rule-strong);
}

.an-how h2 {
  font-size: 26px;
  letter-spacing: -0.025em;
}

.an-how__intro {
  margin-top: 10px;
  max-width: 66ch;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
}

.an-steps {
  counter-reset: step;
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 24px;
}

@media (min-width: 760px) {
  .an-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
  }
}

.an-steps li {
  counter-increment: step;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.an-steps h3 {
  font-size: 17px;
}

.an-steps h3::before {
  content: counter(step) " · ";
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.06em;
}

.an-steps p {
  margin-top: 6px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

.an-honesty {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--paper);
  max-width: 76ch;
}

.an-honesty h3 {
  font-size: 16px;
}

.an-honesty ul {
  margin: 10px 0 0 18px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.6;
}

.an-honesty li + li {
  margin-top: 6px;
}

.an-honesty a {
  color: var(--blue);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--card-line);
  padding: 28px 22px 48px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gray);
}

.attribution {
  text-align: right;
  line-height: 1.45;
}

/* ---------- Reading-first edition ----------
   The syllabus margin is the page's one visual signature: every lead article
   states subject, paper and reading time before the aspirant starts. */
.util-head.an-masthead {
  max-width: var(--max);
  padding-top: clamp(92px, 12vw, 150px);
  padding-bottom: 30px;
}

.an-masthead h1 {
  max-width: none;
  font-size: clamp(3.2rem, 9vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--an-navy);
}

.an-masthead .util-head__lede {
  max-width: 750px;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.45;
}

.an-position__inner {
  padding: 12px 16px;
  background: color-mix(in srgb, var(--paper) 74%, transparent);
  border-style: dashed;
}

.an-position__inner .an-mode__caveat,
.an-position__inner .an-mode__line {
  font-size: 12px;
}

.an-edition-head,
.an-daily__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--an-navy);
}

.an-edition-head h2,
.an-daily__head h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
}

.an-today-topic {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  margin-top: 28px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(20, 50, 72, 0.08);
}

.an-study-margin {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 18px;
  background: var(--an-navy);
  color: #fff;
  font-family: var(--sans);
}

.an-study-margin span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: 0.75;
}

.an-study-margin strong {
  margin: 6px 0 auto;
  font-size: 16px;
  line-height: 1.2;
}

.an-topic__body {
  padding: clamp(24px, 5vw, 54px);
}

.an-topic__eyebrow,
.an-topic__source,
.an-daily-item__meta,
.an-subject__paper,
.an-subject__count {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray);
}

.an-topic__body > h2 {
  max-width: 20ch;
  margin-top: 10px;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--an-ink);
}

.an-topic__source {
  margin-top: 14px;
}

.an-topic__section {
  max-width: 74ch;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.an-topic__section h3,
.an-topic__examgrid h3 {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--an-navy);
}

.an-topic__section p,
.an-topic__section li,
.an-topic__examgrid p {
  font-size: 17px;
  line-height: 1.7;
}

.an-topic__section ul {
  margin: 10px 0 0 20px;
}

.an-topic__section li + li {
  margin-top: 6px;
}

.an-topic__checklist {
  list-style: none;
  margin-left: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  counter-reset: lens;
}

.an-topic__checklist li {
  counter-increment: lens;
  position: relative;
  padding-left: 34px;
}

.an-topic__checklist li::before {
  content: counter(lens);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font: 700 10px/1 var(--sans);
  color: var(--an-navy);
}

.an-topic__examgrid,
.an-topic__debate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.an-topic__examgrid section,
.an-topic__debate > div {
  padding: 18px;
  border-left: 4px solid var(--an-navy);
  background: var(--an-paper);
}

.an-topic__notice {
  max-width: 72ch;
  margin-top: 22px;
  color: var(--gray);
  font: 12px/1.6 var(--sans);
}

.an-topic__use {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--mark);
  border-left: 4px solid var(--mark-edge);
  font-size: 17px;
}

.an-topic__use strong {
  display: block;
  margin-bottom: 4px;
  font: 700 11px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.an-topic__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  font: 650 13px/1.4 var(--sans);
}

.an-topic__actions a,
.an-daily-item__source {
  color: var(--blue);
  text-underline-offset: 3px;
}

.an-subject-jump {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  height: auto;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
}

.an-subject-jump a {
  padding: 7px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--an-navy);
  text-decoration: none;
  font: 650 12px/1.2 var(--sans);
}

.an-subject-jump span {
  margin-left: 5px;
  color: var(--gray);
}

.an-daily {
  margin-top: 54px;
}

.an-daily-group {
  scroll-margin-top: 130px;
  padding-top: 38px;
}

.an-daily-group > header {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) 1fr;
  gap: 24px;
  align-items: end;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-strong);
}

.an-daily-group > header h3 {
  margin-top: 2px;
  font-size: 25px;
}

.an-daily-group > header > p {
  max-width: 62ch;
  color: var(--gray);
  font: 13px/1.55 var(--sans);
}

.an-daily-list {
  display: grid;
}

.an-daily-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr) auto;
  gap: 16px 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.an-daily-item__meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.an-daily-item h4 {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.25;
}

.an-daily-item__brief strong {
  display: block;
  margin-bottom: 5px;
  font: 700 10px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--an-navy);
}

.an-daily-item__brief p,
.an-daily-item details {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

.an-daily-item details {
  grid-column: 2 / 3;
}

.an-daily-item details summary {
  cursor: pointer;
  color: var(--an-navy);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
}

.an-daily-item details p {
  margin-top: 8px;
}

.an-daily-item__source {
  align-self: start;
  white-space: nowrap;
  font: 650 12px/1.5 var(--sans);
}

.an-reading-tools {
  margin-top: 40px;
  border-top: 1px solid var(--rule-strong);
}

.an-reading-tools > summary {
  padding: 14px 0;
  cursor: pointer;
  color: var(--gray);
  font: 650 12px/1.4 var(--sans);
}

.an-complete-note {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 2px solid var(--an-navy);
}

.an-subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  margin-top: 24px;
}

.an-subject {
  position: relative;
  padding: 24px 0 28px 22px;
  border-top: 1px solid var(--rule-strong);
}

.an-subject::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 28px;
  left: 0;
  width: 4px;
  background: var(--an-navy);
}

.an-subject h3 {
  margin-top: 4px;
  font-size: 24px;
}

.an-subject__count {
  margin-top: 6px;
  color: var(--an-verified);
}

.an-subject > p:not(.an-subject__paper, .an-subject__count) {
  margin-top: 14px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.55;
}

.an-subject h4 {
  margin-top: 18px;
  font: 700 11px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.an-subject__topics {
  margin: 8px 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
}

.an-subject__open {
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--blue);
  cursor: pointer;
  font: 650 12px/1.5 var(--sans);
}

.an-subject-tools,
.an-mapped-anchors {
  grid-column: 1 / -1;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 2px solid var(--an-navy);
}

.an-reading-plan {
  display: grid;
  gap: 9px;
  margin: 14px 0 18px 18px;
  color: var(--gray);
  font: 13px/1.45 var(--sans);
}

.an-reading-plan strong {
  color: var(--an-navy);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 719px) {
  .an-command__inner {
    padding: 10px 16px;
  }

  .an-search kbd {
    display: none;
  }

  .an-views {
    width: 100%;
    overflow-x: auto;
  }

  .an-views button {
    flex: 1 0 auto;
    min-height: 44px;
  }

  .an-chip,
  .an-segmented button {
    min-height: 38px;
  }

  .an-main {
    padding: 24px 16px 80px;
  }

  .an-position {
    padding: 8px 16px 0;
  }

  .an-how {
    padding: 0 16px 20px;
  }

  .an-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .an-exam-summary {
    grid-template-columns: 1fr;
  }

  .an-exam-summary__score {
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
    padding: 0 0 8px;
    border-right: 0;
    border-bottom: 2px solid var(--an-maroon);
  }

  .an-dossier {
    padding: 15px;
  }

  .an-entry__margin {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    text-align: left;
    border-right: 0;
    padding-right: 0;
  }

  .an-line {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .an-today-topic {
    grid-template-columns: 1fr;
  }

  .an-study-margin {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 14px 16px;
  }

  .an-study-margin span:first-child {
    display: none;
  }

  .an-study-margin strong {
    margin: 0;
  }

  .an-topic__body {
    padding: 22px 18px 28px;
  }

  .an-topic__checklist,
  .an-topic__examgrid,
  .an-topic__debate,
  .an-subject-grid {
    grid-template-columns: 1fr;
  }

  .an-daily-group > header,
  .an-daily-item {
    grid-template-columns: 1fr;
  }

  .an-daily-item__meta,
  .an-daily-item details,
  .an-daily-item__source {
    grid-column: 1;
  }

  .an-daily-item__source {
    justify-self: start;
  }

  .an-edition-head,
  .an-daily__head {
    align-items: start;
    flex-direction: column;
  }

  .an-skeleton li {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Editorial reader ---------- */
:root {
  --blue: #203b72;
  --text: #111820;
  --gray: #526171;
  --bg: #f7f9fb;
  --white: #ffffff;
  --paper: #ffffff;
  --paper-edge: #edf1f5;
  --rule: #d9dfe6;
  --rule-strong: #111820;
  --card-line: #d9dfe6;
  --input-bg: #ffffff;
  --input-line: #bcc7d2;
  --panel-muted: #edf1f5;
  --amber: #9a5a18;
  --editorial-accent: #9a5a18;
  --editorial-wash: #edf2f8;
  --editorial-max: 1180px;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
}

:root[data-theme="dark"] {
  --blue: #9ab8ec;
  --text: #f0f3f6;
  --gray: #a8b2bd;
  --bg: #101419;
  --white: #161c23;
  --paper: #161c23;
  --paper-edge: #1d252e;
  --rule: #35404c;
  --rule-strong: #eef2f6;
  --card-line: #35404c;
  --input-bg: #161c23;
  --input-line: #4c5967;
  --panel-muted: #202832;
  --amber: #d6a35f;
  --editorial-accent: #d6a35f;
  --editorial-wash: #1a2430;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
}

body > nav,
button,
input,
select,
textarea,
.an-label,
.an-viewhead__meta,
.an-publication-mark,
.an-edition-line,
.an-command,
.an-topic__eyebrow,
.an-study-margin,
.an-daily-item__meta,
.an-subject__paper,
.an-subject__count,
footer {
  font-family: var(--sans);
}

.an-editorial-masthead {
  max-width: var(--editorial-max);
  margin: 0 auto;
  padding: 104px 24px 30px;
  text-align: center;
}

.an-publication-mark {
  margin: 0;
  color: var(--editorial-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.an-editorial-masthead h1 {
  margin: 8px 0 14px;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 86px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.an-edition-line {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--gray);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.an-edition-line a {
  color: var(--text);
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}

.an-command {
  position: sticky;
  top: 48px;
  z-index: 500;
  margin: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.an-command__inner {
  max-width: var(--editorial-max);
  min-height: 58px;
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.an-views {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.an-views a {
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.an-views a:hover {
  color: var(--text);
}

.an-views a[aria-selected="true"] {
  color: var(--text);
  border-color: var(--editorial-accent);
}

.an-views .an-count {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.an-search {
  flex: 0 1 270px;
  min-width: 190px;
  min-height: 44px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid var(--input-line);
  border-radius: 0;
  background: transparent;
}

.an-search:focus-within {
  border-color: var(--blue);
  box-shadow: none;
}

.an-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gray);
  stroke-width: 1.7;
}

.an-search input {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
}

.an-search input:focus {
  outline: 0;
}

.an-search kbd {
  color: var(--gray);
  font-family: var(--sans);
  font-size: 10px;
}

.an-main {
  max-width: var(--editorial-max);
  margin: 0 auto;
  padding: 54px 24px 112px;
}

.an-workspace {
  display: block;
}

.an-primary {
  min-width: 0;
}

.an-view[hidden],
[hidden] {
  display: none !important;
}

.an-viewhead,
.an-edition-head,
.an-daily__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--rule-strong);
}

.an-viewhead h2,
.an-edition-head h2,
.an-daily__head h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.an-label {
  color: var(--editorial-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.an-viewhead__meta {
  max-width: 42ch;
  color: var(--gray);
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.an-viewhead__meta strong {
  color: var(--text);
}

.an-state {
  max-width: 52ch;
  padding: 28px 0;
}

.an-view > p {
  max-width: 68ch;
  margin: 16px 0 4px;
  text-align: left;
}

.an-state h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

/* The syllabus spine is the page's single signature device. */
#topicOfDay {
  margin-top: 28px;
}

.an-today-topic {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: 0;
  padding: clamp(30px, 5vw, 58px) 0;
  border: 0;
  border-top: 3px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.an-study-margin {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 18px 0 0;
  border-right: 1px solid var(--rule);
  background: none;
  color: var(--gray);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.an-study-margin > span:first-child {
  color: var(--editorial-accent);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.an-study-margin a {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.an-study-margin a:hover {
  color: var(--blue);
}

.an-study-margin strong {
  margin: 0;
  color: var(--gray);
  font-size: 10px;
  font-weight: 500;
}

.an-topic__body {
  max-width: 880px;
  padding: 0;
}

.an-topic__eyebrow {
  margin: 0 0 12px;
  color: var(--gray);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.an-topic__body h2 {
  max-width: 19ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.an-topic__body h2 a {
  color: var(--text);
  text-decoration: none;
}

.an-topic__body h2 a:hover {
  color: var(--blue);
}

.an-topic__dek {
  max-width: 68ch;
  margin: 24px 0 0;
  color: color-mix(in srgb, var(--text) 88%, var(--gray));
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.52;
}

.an-topic__body footer {
  margin-top: 28px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--rule);
  color: var(--gray);
  font-size: 11px;
}

.an-topic__body footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.an-subject-jump {
  margin: 0;
  padding: 15px 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px 22px;
  overflow-x: auto;
  border-bottom: 1px solid var(--rule);
  scrollbar-width: thin;
}

.an-subject-jump a {
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  color: var(--gray);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.an-subject-jump a:hover {
  color: var(--text);
}

.an-subject-jump span {
  color: var(--editorial-accent);
  font-size: 10px;
}

.an-daily {
  margin-top: 76px;
}

.an-daily-group {
  scroll-margin-top: 122px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 38px 0 6px;
  border-top: 1px solid var(--rule-strong);
}

.an-daily-group > header {
  display: block;
  padding: 2px 18px 0 0;
  border: 0;
  border-right: 1px solid var(--rule);
}

.an-daily-group > header h3 {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.an-daily-group > header h3 a {
  color: var(--text);
  text-decoration: none;
}

.an-daily-list {
  display: grid;
  gap: 0;
}

.an-daily-item {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 0.8fr);
  gap: 12px 42px;
  padding: 0 0 30px;
  margin: 0 0 30px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.an-daily-item:last-child {
  margin-bottom: 0;
}

.an-daily-item__meta {
  grid-column: 1 / -1;
  margin: 0;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  color: var(--gray);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.an-daily-item h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.7vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.an-daily-item h4 a {
  color: var(--text);
  text-decoration: none;
}

.an-daily-item h4 a:hover {
  color: var(--blue);
}

.an-daily-item__summary {
  margin: 0;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.58;
}

.an-reading-tools,
.an-sourcefilters,
.an-revision-settings {
  margin-top: 34px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.an-reading-tools > summary,
.an-sourcefilters > summary,
.an-revision-settings > summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  color: var(--gray);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
}

.an-reading-tools .an-toolbar {
  padding: 4px 0 18px;
}

.an-segmented,
.an-chips {
  border: 0;
  background: transparent;
}

.an-segmented button,
.an-chip {
  min-height: 44px;
  border-radius: 0;
}

.an-segmented button[aria-pressed="true"],
.an-chip[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--editorial-accent);
  background: var(--editorial-wash);
}

.an-subject-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}

.an-subject {
  position: static;
  padding: 22px 0 28px;
  border: 0;
  border-top: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.an-subject::before {
  display: none;
}

.an-subject__paper,
.an-subject__count {
  margin: 0;
  color: var(--gray);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.an-subject h3 {
  margin: 8px 0 2px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.an-subject__topics {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.an-subject__topics li {
  border-top: 1px solid var(--rule);
}

.an-subject__topics a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

.an-subject__topics a:hover {
  color: var(--blue);
}

.an-subject__open {
  min-height: 44px;
  margin-top: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: none;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.an-subject-tools {
  margin-top: 78px;
}

.an-published-practice {
  margin-top: 30px;
}

.an-published-practice > h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.an-revision-settings {
  margin-bottom: 28px;
}

.an-revision-settings__grid {
  padding: 0 0 18px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) minmax(150px, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.an-revision-settings .an-mode {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--input-line);
  font-family: var(--sans);
  font-size: 12px;
}

.an-revision-settings .an-mode__name,
.an-revision-settings .an-mode__t {
  color: var(--text);
}

.an-sourcefilters__grid {
  padding: 0 0 22px;
}

.an-field input,
.an-field select {
  min-height: 44px;
}

.an-sourcesdesk {
  margin-top: 28px;
}

.an-source {
  border-radius: 0;
  background: transparent;
}

.btn {
  min-height: 44px;
  border-radius: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  max-width: var(--editorial-max);
}

.an-footer-links {
  display: flex;
  gap: 20px;
}

.an-footer-links a {
  color: var(--gray);
  text-decoration: none;
}

.an-footer-links a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .an-command__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .an-views {
    width: 100%;
    overflow-x: auto;
  }

  .an-search {
    flex-basis: auto;
    width: 100%;
  }

  .an-subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .an-editorial-masthead {
    padding: 84px 18px 22px;
  }

  .an-command {
    top: 48px;
  }

  .an-command__inner {
    min-height: 0;
    padding: 4px 16px 8px;
  }

  .an-views a {
    min-height: 44px;
    padding: 0 10px;
  }

  .an-search kbd {
    display: none;
  }

  .an-main {
    padding: 38px 18px 84px;
  }

  .an-viewhead,
  .an-edition-head,
  .an-daily__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .an-viewhead__meta {
    text-align: left;
  }

  .an-today-topic,
  .an-daily-group {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .an-study-margin {
    flex-direction: row;
    align-items: center;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .an-topic__body h2 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .an-topic__body footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .an-daily {
    margin-top: 56px;
  }

  .an-daily-group > header {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .an-daily-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .an-daily-item__meta {
    grid-column: 1;
  }

  .an-subject-grid,
  .an-revision-settings__grid {
    grid-template-columns: 1fr;
  }

  .an-footer-links {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .an-command,
  .an-topic__body h2 a,
  .an-daily-item h4 a {
    transition: none;
  }
}

/* Flagship Topic Packet desk — editorial, low noise, colour only for state. */
.pk-hero,
.pk-due,
.pk-themes,
.pk-stack,
.pk-packet,
.pk-catchup,
.pk-session {
  margin: 0 0 36px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--rule);
}

.pk-hero h2,
.pk-packet h2,
.pk-catchup h2,
.pk-session h3,
.pk-stack h3,
.pk-themes h3 {
  font-family: var(--serif);
  font-weight: 550;
  letter-spacing: -0.02em;
}

.pk-hero h2 {
  font-size: clamp(32px, 6vw, 48px);
  margin: 6px 0 12px;
}

.pk-hero__budget,
.pk-hero__note,
.pk-card__why,
.pk-card__counts,
.pk-packet__status,
.pk-sources__meta,
.pk-sources__note,
.pk-upsc-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gray);
}

.pk-hero__note {
  margin: 8px 0 18px;
}

.pk-hero__actions,
.pk-card__actions,
.pk-sticky {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pk-badge,
.pk-paper,
.pk-subject,
.pk-read {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--rule-strong);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pk-badge[data-priority="must_know"] {
  background: var(--mark);
  border-color: var(--mark-edge);
  color: var(--text);
}

.pk-badge[data-priority="useful"] {
  color: var(--an-navy);
}

.pk-badge[data-priority="skip"] {
  opacity: 0.7;
}

.pk-card,
.pk-packet {
  padding: 18px 0 8px;
}

.pk-card + .pk-card {
  border-top: 1px solid var(--rule);
}

.pk-card__meta,
.pk-packet__head .pk-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pk-card h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.pk-card__changed,
.pk-card__anchor,
.pk-card__why {
  margin: 0 0 8px;
}

.pk-card__anchor a {
  color: var(--blue);
}

.pk-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.pk-layers button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.pk-layers button[aria-selected="true"] {
  background: var(--an-navy);
  color: var(--paper);
  border-color: var(--an-navy);
}

.pk-block,
.pk-bridge,
.pk-changed,
.pk-vault,
.pk-kit,
.pk-pyq,
.pk-sources {
  margin: 22px 0;
}

.pk-block h3,
.pk-bridge h3,
.pk-changed h3,
.pk-vault h3,
.pk-kit h3,
.pk-pyq h3,
.pk-sources h3 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.pk-block ul,
.pk-pyq ul,
.pk-sources ul,
.pk-themes ul,
.pk-traps,
.pk-questions,
.pk-skeleton {
  padding-left: 1.15em;
}

.pk-matrix__row,
.pk-changed dl {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.pk-changed dl {
  grid-template-columns: 1fr;
}

.pk-changed dl div {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}

.pk-changed dt {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--gray);
}

.pk-sticky {
  position: sticky;
  bottom: 0;
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-top: 1px solid var(--rule);
}

.pk-due,
.pk-session {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pk-empty {
  color: var(--gray);
}

.an-source-stream {
  margin-top: 48px;
}

.an-edition-kicker {
  max-width: 40rem;
  margin: 8px auto 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--gray);
}

.ug {
  max-width: 40rem;
  padding: 8px 0 64px;
}

.ug-block + .ug-block {
  margin-top: 36px;
}

.ug-block h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.ug-block p,
.ug-block li {
  color: var(--text);
  line-height: 1.55;
}

.ug-block p + p,
.ug-block p + ul,
.ug-block p + ol,
.ug-block ul + p,
.ug-block ol + p {
  margin-top: 10px;
}

.ug-block ul,
.ug-block ol {
  padding-left: 1.2em;
}

.ug-block li + li {
  margin-top: 6px;
}

@media (max-width: 680px) {
  .pk-matrix__row,
  .pk-changed dl div {
    grid-template-columns: 1fr;
  }

  .pk-sticky {
    padding-bottom: 18px;
  }

  .pk-card h3,
  .pk-packet h2 {
    font-size: 22px;
  }
}
