/* Content-only additions to the shared study shell and semantic block library.
   Colours and all reading typography come from the canonical shared assets. */
body.uttarakhand-schemes-page {
  margin: 0;
  color: var(--shared-chrome-text);
  background: var(--shared-chrome-canvas);
}
.schemes-main, .schemes-main * { box-sizing: border-box; }
.schemes-main {
  width: 100%;
  margin-inline: auto;
  padding: 24px clamp(16px, 3vw, 36px) 56px;
}
.schemes-main > article,
.schemes-main > .schemes-breadcrumbs { max-width: 900px; margin-inline: auto; }
.schemes-main [hidden] { display: none !important; }
.schemes-main a { color: var(--shared-chrome-accent); text-underline-offset: 3px; }
.schemes-main :is(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--shared-chrome-accent);
  outline-offset: 3px;
}
.schemes-main :is(section[id], h3[id], li[id]) {
  scroll-margin-top: calc(var(--shared-topbar-height, 64px) + 20px);
}

/* Compact chapter introduction. */
.schemes-main .schemes-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--shared-chrome-muted);
  font-size: 13px;
}
.schemes-main .schemes-hero {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--shared-chrome-border);
}
.schemes-main .schemes-hero h1 { margin: 0 0 10px; }
.schemes-main .schemes-lead { margin: 0; color: var(--shared-chrome-muted); }
.schemes-main .schemes-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
  color: var(--shared-chrome-muted);
  font-size: 13px;
}
.schemes-main .schemes-reading { padding-top: 24px; }
.schemes-main .schemes-section-header { margin-bottom: 16px; }
.schemes-main .schemes-section-header h2 { margin: 0; }
.schemes-main .schemes-section-header p { margin: 8px 0 0; color: var(--shared-chrome-muted); }

/* Reading first: broad periods orient the learner; calendar years create the
   actual recall checkpoints. The result remains a timeline, not a card grid. */
.schemes-main .scheme-era {
  margin-bottom: 52px;
}
.schemes-main .scheme-era__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--shared-chrome-border-strong);
}
.schemes-main .scheme-era__heading h3 {
  margin: 0;
  color: var(--shared-chrome-text);
  font-variant-numeric: tabular-nums;
}
.schemes-main .scheme-era__count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid var(--shared-chrome-border);
  border-radius: 999px;
  color: var(--shared-chrome-accent-strong);
  background: var(--shared-chrome-surface-raised);
  font-size: 13px;
  font-weight: 700;
}
.schemes-main .scheme-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.schemes-main .scheme-year-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 26px 0 10px;
  color: var(--shared-chrome-accent-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  list-style: none;
}
.schemes-main .scheme-year-divider::before,
.schemes-main .scheme-year-divider::after {
  content: "";
  height: 1px;
  background: var(--shared-chrome-border-strong);
}
.schemes-main .scheme-year-divider::before {
  width: 28px;
  background: var(--shared-chrome-accent);
}
.schemes-main .scheme-year-divider::after { flex: 1; }
.schemes-main .scheme-year-divider span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid var(--shared-chrome-border);
  border-radius: 6px;
  background: var(--shared-chrome-surface-raised);
  font-variant-numeric: tabular-nums;
}
.schemes-main .scheme-note {
  display: grid;
  grid-template-columns: minmax(152px, 184px) minmax(0, 1fr);
  column-gap: clamp(18px, 2.5vw, 30px);
  min-width: 0;
  padding: 18px 4px 22px;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
}
.schemes-main .scheme-note + .scheme-note {
  border-top: 1px solid var(--shared-chrome-border);
}
.schemes-main .scheme-year-divider + .scheme-note { border-top: 0; }
.schemes-main .scheme-note__date {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  align-self: start;
  gap: 10px;
  min-width: 0;
  padding: 2px 0;
}
.schemes-main .scheme-note__date span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 28px;
  min-height: 28px;
  padding: 3px 6px;
  border: 1px solid var(--shared-chrome-accent);
  border-radius: 999px;
  color: var(--shared-chrome-accent-strong);
  font-size: 11px;
  font-weight: 700;
}
.schemes-main .scheme-note__date strong {
  color: var(--shared-chrome-accent-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.schemes-main .scheme-note__body {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
}
.schemes-main .complete-row {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  margin: 10px 0 0 38px;
  padding-top: 0;
  border-top: 0;
}
.schemes-main .complete-btn {
  --completion-accent: var(--shared-chrome-accent);
  --completion-accent-strong: var(--shared-chrome-accent-strong);
  --completion-bg: var(--shared-chrome-surface);
  --completion-border: var(--shared-chrome-border);
  --completion-text: var(--shared-chrome-muted);
  --completion-done-bg: var(--shared-chrome-accent-soft);
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 12px;
}
.schemes-main .scheme-note h4 {
  margin: 0 0 10px;
  color: var(--shared-chrome-text);
  line-height: 1.35;
}
.schemes-main .scheme-note__facts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.schemes-main .scheme-note__facts > li {
  position: relative;
  margin: 0;
  padding: 0 0 0 17px;
  color: var(--shared-chrome-text);
  line-height: 1.65;
}
.schemes-main .scheme-note__facts > li::before {
  content: "";
  position: absolute;
  top: .68em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--shared-chrome-accent);
}
.schemes-main .scheme-note__facts strong { font-weight: 600; }
.schemes-main .scheme-note__facts > li + li { padding-top: 0; border-top: 0; }
.schemes-main .schemes-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.schemes-main .schemes-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--shared-chrome-border); border-radius: 6px; text-decoration: none; background: var(--shared-chrome-surface); }
.schemes-main .schemes-jump a:hover { background: var(--shared-chrome-accent-soft); }
.schemes-main .schemes-source-note { margin: 0; color: var(--shared-chrome-muted); }

/* Recall stays secondary. Shared table primitives own the base layout. */
.schemes-main .schemes-recall {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--shared-chrome-border);
}
.schemes-main .recall-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.schemes-main :is(.recall-mode-list, .recall-order-list) { display: flex; flex-wrap: wrap; gap: 8px; }
.schemes-main .recall-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--shared-chrome-border-strong);
  border-radius: 8px;
  color: var(--shared-chrome-text);
  background: var(--shared-chrome-surface);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.schemes-main .recall-button:hover,
.schemes-main .recall-button[aria-pressed="true"] {
  background: var(--shared-chrome-accent-soft);
  border-color: var(--shared-chrome-accent);
  color: var(--shared-chrome-accent);
}
.schemes-main .recall-button[aria-pressed="true"] { box-shadow: inset 0 -2px var(--shared-chrome-accent); }
.schemes-main .recall-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  margin: 0 0 12px;
  color: var(--shared-chrome-muted);
}
.schemes-main .recall-table-wrap {
  border: 1px solid var(--shared-chrome-border);
  border-radius: 10px;
  background: var(--shared-chrome-surface);
}
.schemes-main .recall-table { table-layout: fixed; }
.schemes-main .recall-table caption { padding: 12px 14px; text-align: left; color: var(--shared-chrome-muted); }
.schemes-main .recall-table :is(th, td) {
  position: relative;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--shared-chrome-border);
  vertical-align: middle;
}
.schemes-main .recall-table thead { background: var(--shared-chrome-accent-soft); }
.schemes-main .recall-table :is(th, td):first-child { width: 32%; }
.schemes-main .recall-table td:first-child { color: var(--shared-chrome-accent); font-variant-numeric: tabular-nums; }
.schemes-main .recall-table td { font-weight: 600; }
.schemes-main .recall-answer.is-covered { visibility: hidden; }
.schemes-main .recall-cover {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  padding: 5px;
  border: 1px dashed var(--shared-chrome-accent);
  border-radius: 6px;
  background: var(--shared-chrome-surface-raised);
  color: var(--shared-chrome-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.schemes-main .recall-cover:hover { border-style: solid; background: var(--shared-chrome-accent-soft); }
.schemes-main .schemes-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--shared-chrome-border);
}
.schemes-main .schemes-bottom-nav a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; }

@media (max-width: 600px) {
  .schemes-main { padding: 16px 14px 40px; }
  .schemes-main .scheme-era__heading { padding: 0 0 12px; }
  .schemes-main .scheme-era { margin-bottom: 34px; }
  .schemes-main .scheme-list { gap: 0; margin-top: 4px; }
  .schemes-main .scheme-year-divider {
    gap: 9px;
    padding: 22px 0 9px;
    font-size: 13px;
  }
  .schemes-main .scheme-year-divider::before { width: 18px; }
  .schemes-main .scheme-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    align-items: start;
    padding: 18px 0 20px;
    border-radius: 0;
  }
  .schemes-main .scheme-note__date {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    gap: 9px;
    margin: 0;
    padding: 0;
  }
  .schemes-main .scheme-note__body {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 12px;
  }
  .schemes-main .scheme-note h4 {
    margin: 0 0 8px;
  }
  .schemes-main .scheme-note__facts {
    grid-column: auto;
    grid-row: auto;
  }
  .schemes-main .scheme-note__facts { gap: 8px; }
  .schemes-main .scheme-note__facts > li { padding-left: 15px; line-height: 1.58; }
  .schemes-main .complete-row {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    margin: 0;
    padding: 0;
  }
  .schemes-main .complete-btn {
    min-height: 36px;
    white-space: nowrap;
  }
  .schemes-main .recall-mode-list { width: 100%; }
  .schemes-main .recall-button { flex: 1 1 auto; }
  .schemes-main .recall-table :is(th, td) { padding: 12px 10px; }
  .schemes-main .recall-table :is(th, td):first-child { width: 38%; }
}
@media print {
  .schemes-main .complete-row { display: none; }
  .schemes-main { width: 100%; padding: 0; }
  .schemes-main :is(.schemes-hero-meta, .recall-controls, .recall-status, .schemes-bottom-nav, .recall-cover) { display: none !important; }
  .schemes-main .scheme-era { background: transparent; }
  .schemes-main .scheme-list { display: block; }
  .schemes-main .scheme-note { margin-bottom: 12px; }
  .schemes-main .schemes-jump { display: none; }
  .schemes-main :is(.scheme-note, .recall-table tr) { break-inside: avoid; }
  .schemes-main .recall-answer { visibility: visible !important; }
}
