
/* ==========================================================================
   dholera.support - Dholera Process Desk
   The counterfoil book: a tinted blue sheet, two inks, a perforated stub.
   Ground, slip, ink, accents and all three typefaces are set by DESIGN-LOCK.
   No white, no black, no grey, no shadow, no radius, no gradient.
   ========================================================================== */

:root {
  --sheet: #ADDFF3;        /* the page ground, everywhere */
  --slip:  #BDEDFF;        /* the record surface, laid on the sheet */
  --ink:   #07363C;        /* all body text and structural rules */
  --ink-2: #36636A;        /* labels, captions, source lines, chrome */
  --mulberry: #824568;     /* the second plate: links, current step, live fee */
  --glacier: #6CA3B4;      /* fills and rules only, never text */
  --rule:  #92BDCB;        /* the only hairline */
  --plate: #1C4B52;        /* the single inverted surface */
  --flag:  #BD629C;        /* hatch and 2px marks only, never text */

  --measure: 68ch;
  --shell: 1160px;
  --rail: 168px;
  --perf: repeating-linear-gradient(to bottom, var(--rule) 0 2px, transparent 2px 6px);
  --perf-h: repeating-linear-gradient(to right, var(--rule) 0 2px, transparent 2px 6px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: 'Lexend', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }

a { color: var(--mulberry); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--mulberry); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 9;
  background: var(--slip); color: var(--ink); padding: 10px 16px;
  border: 1.5px solid var(--ink); font-size: 15px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- masthead: a form header, not a logo bar --------------------- */

.masthead {
  max-width: var(--shell); margin: 0 auto; padding: 0 24px;
  min-height: 76px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.mark { flex: none; width: 26px; height: 26px; display: block; }
.lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.lockup:hover { text-decoration: none; }
.lockup .a {
  font-family: 'Overpass', Arial, sans-serif; font-weight: 800; font-size: 20px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink);
}
.lockup .bar { width: 1px; height: 20px; background: var(--rule); }
.lockup .b {
  font-family: 'Overpass', Arial, sans-serif; font-weight: 500; font-size: 20px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2);
}
.mast-meta {
  margin-left: auto; font-family: 'Red Hat Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2);
}
.mast-rule { height: 1.5px; background: var(--ink); }
.perf-row { height: 2px; background-image: var(--perf-h); background-size: 6px 2px; margin-top: 12px; }

.nav { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 28px;
  min-height: 40px; align-items: center; overflow-x: auto; scrollbar-width: thin;
}
.nav a {
  font-family: 'Red Hat Mono', monospace; font-size: 12px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  padding: 4px 0;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current] {
  color: var(--ink); border-bottom: 2px solid var(--mulberry); padding-bottom: 5px;
}

/* ---------- shell and the stub rail ------------------------------------ */

.shell {
  max-width: var(--shell); margin: 0 auto; padding: 0 24px 96px;
  display: grid; grid-template-columns: var(--rail) 1fr; gap: 24px;
}
.rail { position: relative; padding: 48px 24px 0 0; }
.rail::after {
  content: ""; position: absolute; top: 0; right: 0; width: 2px; height: 100%;
  background-image: var(--perf); background-size: 2px 6px;
}
.rail .code {
  font-family: 'Red Hat Mono', monospace; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-2); display: block; margin-bottom: 8px;
}
.rail .idx {
  font-family: 'Red Hat Mono', monospace; font-weight: 500; font-size: 40px;
  line-height: 1; color: var(--ink); display: block; font-variant-numeric: tabular-nums;
}
.rail .here {
  margin-top: 14px; font-family: 'Red Hat Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: .09em; color: var(--mulberry);
}
.rail.is-current::after { animation: tear 240ms cubic-bezier(.2,0,0,1) both; }
@keyframes tear {
  from { background-image: repeating-linear-gradient(to bottom, var(--rule) 0 2px, transparent 2px 6px); }
  to   { background-image: repeating-linear-gradient(to bottom, var(--mulberry) 0 2px, transparent 2px 6px); }
}
.rail.is-current::after { background-image: repeating-linear-gradient(to bottom, var(--mulberry) 0 2px, transparent 2px 6px); }

main { padding-top: 48px; min-width: 0; }

/* ---------- type --------------------------------------------------------- */

h1 {
  font-family: 'Overpass', Arial, sans-serif; font-weight: 700; font-size: 52px;
  line-height: 1.08; letter-spacing: -.015em; margin: 0 0 20px; max-width: 20ch;
}
h2 {
  font-family: 'Overpass', Arial, sans-serif; font-weight: 600; font-size: 32px;
  line-height: 1.15; margin: 64px 0 16px; letter-spacing: -.01em;
}
h3 {
  font-family: 'Overpass', Arial, sans-serif; font-weight: 600; font-size: 22px;
  line-height: 1.25; margin: 40px 0 12px;
}
h4 {
  font-family: 'Overpass', Arial, sans-serif; font-weight: 600; font-size: 17px;
  margin: 28px 0 8px;
}
p, li { max-width: var(--measure); }
p { margin: 0 0 18px; }
.lead { font-size: 19px; line-height: 1.55; max-width: 62ch; }
.kicker {
  font-family: 'Red Hat Mono', monospace; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-2); margin: 0 0 12px;
}
.sec-label {
  font-family: 'Overpass', Arial, sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink);
}
.mono { font-family: 'Red Hat Mono', monospace; font-variant-numeric: tabular-nums lining-nums; }
.gu { font-family: 'Mukta Vaani', 'Lexend', sans-serif; }
.quote {
  border-left: 2px solid var(--mulberry); padding: 2px 0 2px 16px; margin: 0 0 18px;
  color: var(--ink); max-width: var(--measure);
}

/* ---------- the section rule: this site's row-grouping device ----------- */

.section-rule {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1.5px solid var(--ink); padding-bottom: 8px; margin: 40px 0 16px;
}
.section-rule .n {
  font-family: 'Red Hat Mono', monospace; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-2); white-space: nowrap;
}

/* ---------- slips -------------------------------------------------------- */

.slip {
  background: var(--slip); border: 1px solid var(--rule); padding: 20px;
  margin: 0 0 16px; max-width: none;
}
.slip > :last-child { margin-bottom: 0; }
.slip-stub {
  display: flex; gap: 14px; align-items: baseline; border-bottom: 1px solid var(--rule);
  padding-bottom: 10px; margin-bottom: 14px;
}
.slip-stub .id {
  font-family: 'Red Hat Mono', monospace; font-size: 12px; letter-spacing: .06em;
  color: var(--ink-2);
}
.slip-stub .num {
  font-family: 'Red Hat Mono', monospace; font-weight: 500; font-size: 20px;
  color: var(--ink); font-variant-numeric: tabular-nums;
}

.fields { margin: 0; }
.fields > div {
  display: grid; grid-template-columns: 132px 2px 1fr; gap: 0 16px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.fields > div:last-child { border-bottom: 0; }
.fields dt {
  font-family: 'Red Hat Mono', monospace; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-2); line-height: 1.5; padding-top: 2px;
}
.fields .perf-v { background-image: var(--perf); background-size: 2px 6px; }
.fields dd { margin: 0; font-size: 15px; line-height: 1.55; min-width: 0; }
.fields dd p { font-size: 15px; }

/* ---------- the NOT STATED chip: a null is content, never a blank ------- */

.chip {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border: 1px solid var(--rule); background: transparent;
  font-family: 'Red Hat Mono', monospace; font-size: 10px; font-weight: 500;
  line-height: 1; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; vertical-align: middle;
}
a.chip:hover, a.chip:focus { border-color: var(--mulberry); color: var(--mulberry); }
.chip--hatch::before {
  content: ""; display: block; width: 10px; align-self: stretch; margin: 0 7px 0 -7px;
  border-right: 1px solid var(--rule);
  background-image: repeating-linear-gradient(45deg, var(--flag) 0 2px, transparent 2px 6px);
  background-size: 6px 6px;
}
.chip--official { border-color: var(--mulberry); color: var(--mulberry); }
.chip--official::before {
  content: ""; width: 8px; height: 8px; background: var(--mulberry); margin-right: 7px;
}
.chip--secondary::before {
  content: ""; width: 8px; height: 8px; border: 1px solid var(--ink-2); margin-right: 7px;
}

.gapnote {
  border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 12px;
  font-size: 15px; color: var(--ink-2);
}
.gapnote strong { color: var(--ink); }

/* ---------- checklist: the identity mark at half scale ------------------ */

ul.checklist { list-style: none; margin: 0; padding: 0; }
ul.checklist li {
  position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 15px;
  line-height: 1.5; max-width: var(--measure);
}
ul.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px;
  border: 1.5px solid var(--ink);
}

ul.plain { list-style: none; margin: 0 0 18px; padding: 0; }
ul.plain li { border-bottom: 1px solid var(--rule); padding: 10px 0; font-size: 15px; }
ul.plain li:last-child { border-bottom: 0; }

/* ---------- tables: rows are objects, not cells ------------------------- */

.scroller { overflow-x: auto; margin: 0 0 24px; padding-bottom: 4px; }
table.register {
  width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0 6px;
  font-size: 15px;
}
table.register.w6 { min-width: 1020px; }
table.register.wide { min-width: 1240px; table-layout: fixed; }
table.register col.c-stub { width: 132px; }
table.register col.c-step { width: 250px; }
table.register col.c-mid  { width: 190px; }
table.register col.c-wide { width: 215px; }
table.register col.c-thin { width: 120px; }
table.register caption {
  caption-side: top; text-align: left; font-size: 15px; color: var(--ink-2);
  padding: 0 0 12px; max-width: var(--measure);
}
table.register thead th {
  position: sticky; top: 0; z-index: 2; background: var(--sheet);
  font-family: 'Red Hat Mono', monospace; font-weight: 500; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2);
  text-align: left; padding: 8px 12px; border-bottom: 1.5px solid var(--ink);
  vertical-align: bottom;
}
table.register tbody td, table.register tbody th {
  background: var(--slip); padding: 12px; vertical-align: top; text-align: left;
  font-weight: 400; line-height: 1.5;
}
table.register tbody th.stub {
  width: 132px; position: sticky; left: 0; z-index: 1;
  font-family: 'Red Hat Mono', monospace;
  font-size: 12px; color: var(--ink-2); letter-spacing: .04em; word-break: break-word;
}
table.register tbody th.stub::after {
  content: ""; position: absolute; top: 8px; right: 0; bottom: 8px; width: 2px;
  background-image: var(--perf); background-size: 2px 6px;
}
table.register thead th:first-child { position: sticky; left: 0; z-index: 3; }
table.register tbody td { word-break: break-word; overflow-wrap: anywhere; }
.scroll-hint {
  font-family: 'Red Hat Mono', monospace; font-size: 11px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-2); margin: 0 0 8px;
}
table.register tbody th.stub .num {
  display: block; font-size: 20px; color: var(--ink); font-weight: 500;
  font-variant-numeric: tabular-nums;
}
table.register tr.group th {
  background: transparent; padding: 28px 0 8px; border-bottom: 1.5px solid var(--ink);
  font-family: 'Overpass', Arial, sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink);
}
table.register tr.group th span.n {
  float: right; font-family: 'Red Hat Mono', monospace; font-weight: 500;
  font-size: 11.5px; letter-spacing: .09em; color: var(--ink-2); text-transform: uppercase;
}
table.register td.num, table.register th.num {
  font-family: 'Red Hat Mono', monospace; font-variant-numeric: tabular-nums;
}
.totals { border-top: 1px solid var(--rule); margin-top: 3px; padding-top: 3px; }
.totals-band {
  border-top: 1.5px solid var(--ink); padding-top: 10px; margin-top: 3px;
  font-family: 'Red Hat Mono', monospace; font-size: 13px; color: var(--ink);
}

details.cite { margin-top: 10px; }
details.cite summary {
  cursor: pointer; font-family: 'Red Hat Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
  list-style: none;
}
details.cite summary::-webkit-details-marker { display: none; }
details.cite summary::before { content: "+ "; }
details.cite[open] summary::before { content: "- "; }
details.cite > div {
  border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 10px;
  font-size: 14px; color: var(--ink-2); overflow: hidden;
}
details.cite[open] > div { animation: disclose 160ms cubic-bezier(.2,0,0,1) both; }
@keyframes disclose { from { max-height: 0; } to { max-height: 620px; } }

.src {
  font-family: 'Red Hat Mono', monospace; font-size: 12px; line-height: 1.55;
  color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 10px;
  margin-top: 14px; word-break: break-word;
}
.src a { color: var(--mulberry); }

/* ---------- charts, drawn flat in two inks ------------------------------ */

.bars { margin: 0 0 24px; }
.bars .row { display: grid; grid-template-columns: 220px 1fr 76px; gap: 12px; align-items: center; padding: 7px 0; }
.bars .lab { font-size: 14px; line-height: 1.3; }
.bars .track { background: var(--slip); border: 1px solid var(--rule); height: 18px; position: relative; }
.bars .fill { position: absolute; inset: 0 auto 0 0; background: var(--glacier); }
.bars .fill.mul { background: var(--mulberry); }
.bars .val { font-family: 'Red Hat Mono', monospace; font-size: 13px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- inverted plate: exactly one per page ------------------------ */

footer.plate { background: var(--plate); color: var(--sheet); margin-top: 0; padding: 56px 0; }
footer.plate .inner { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
footer.plate a { color: var(--slip); }
footer.plate .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
footer.plate h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px;
  font-weight: 700; color: var(--slip);
}
footer.plate ul { list-style: none; margin: 0; padding: 0; }
footer.plate li { margin-bottom: 7px; font-size: 15px; }
footer.plate p { font-size: 15px; color: var(--rule); max-width: 46ch; }
footer.plate .meta {
  border-top: 1px solid var(--glacier); margin-top: 32px; padding-top: 20px;
  font-family: 'Red Hat Mono', monospace; font-size: 12px; color: var(--rule);
  letter-spacing: .04em;
}

/* ---------- slip settle, first view only -------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .settle > * { animation: settle 200ms cubic-bezier(.2,0,0,1) both; }
  .settle > *:nth-child(1) { animation-delay: 0ms; }
  .settle > *:nth-child(2) { animation-delay: 28ms; }
  .settle > *:nth-child(3) { animation-delay: 56ms; }
  .settle > *:nth-child(4) { animation-delay: 84ms; }
  .settle > *:nth-child(5) { animation-delay: 112ms; }
  .settle > *:nth-child(6) { animation-delay: 140ms; }
  .settle > *:nth-child(7) { animation-delay: 168ms; }
  .settle > *:nth-child(8) { animation-delay: 196ms; }
  .settle > *:nth-child(n+9) { animation: none; }
}
@keyframes settle { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- mobile is its own layout ------------------------------------ */

@media (max-width: 900px) {
  body { font-size: 16px; }
  .masthead { min-height: 60px; padding: 10px 16px; gap: 12px; }
  .lockup .a, .lockup .b { font-size: 15px; }
  .mast-meta { margin-left: 0; flex-basis: 100%; font-size: 10.5px; }
  .nav { padding: 0 16px; }
  .nav ul { gap: 20px; }
  .shell { grid-template-columns: 1fr; gap: 0; padding: 0 16px 56px; }
  .rail {
    padding: 20px 0 16px; display: flex; align-items: baseline; gap: 14px;
    border-bottom: 0;
  }
  .rail::after { top: auto; bottom: 0; right: auto; left: 0; width: 100%; height: 2px;
    background-image: var(--perf-h); background-size: 6px 2px; }
  .rail .idx { font-size: 28px; }
  .rail .code { margin-bottom: 0; }
  .rail .here { margin-top: 0; }
  main { padding-top: 28px; }
  h1 { font-size: 34px; max-width: none; }
  h2 { font-size: 26px; margin-top: 48px; }
  h3 { font-size: 20px; }
  .lead { font-size: 17px; }
  .fields > div { grid-template-columns: 96px 1fr; gap: 0 12px; }
  .fields .perf-v { display: none; }
  footer.plate .cols { grid-template-columns: 1fr; gap: 28px; }
  .bars .row { grid-template-columns: 1fr; gap: 4px; }
  .bars .val { text-align: left; }
}

@media (max-width: 760px) {
  /* the register stops being a table and becomes a stack of slips, each with a
     horizontal tear line across its top */
  table.register { min-width: 0; display: block; table-layout: auto; }
  table.register colgroup { display: none; }
  table.register tbody th.stub { position: static; }
  table.register caption { display: block; }
  table.register thead { position: absolute; left: -9999px; }
  table.register tbody, table.register tr, table.register td, table.register th { display: block; }
  table.register tbody tr { background: var(--slip); border: 1px solid var(--rule); margin-bottom: 10px; }
  table.register tbody tr.group {
    background: transparent; border: 0; border-bottom: 1.5px solid var(--ink);
    margin: 28px 0 10px;
  }
  table.register tbody th.stub {
    width: auto; background: transparent; border-bottom: 2px solid transparent;
    background-image: var(--perf-h); background-size: 6px 2px;
    background-repeat: repeat-x; background-position: bottom left;
    padding-bottom: 12px;
  }
  table.register tbody th.stub::after { display: none; }
  table.register tbody th.stub .num { display: inline; margin-right: 8px; }
  table.register tbody td { background: transparent; padding: 8px 12px; }
  table.register tbody td::before {
    content: attr(data-label); display: block;
    font-family: 'Red Hat Mono', monospace; font-size: 10.5px; text-transform: uppercase;
    letter-spacing: .09em; color: var(--ink-2); margin-bottom: 2px;
  }
  .scroller { overflow-x: visible; }
}

/* ---------- print: people take these to a counter ----------------------- */

@media print {
  :root { --sheet: #FFFFFF; --slip: #FFFFFF; --ink: #000000; --ink-2: #000000;
          --mulberry: #000000; --rule: #000000; --plate: #FFFFFF; }
  body { background: #FFFFFF; color: #000000; font-size: 11pt; }
  .nav, .rail, footer.plate, .skip { display: none; }
  .shell { display: block; padding: 0; }
  .slip, table.register tbody tr { page-break-inside: avoid; border: 1px solid #000000; }
  .perf-row, .rail::after { background-image: none; border-top: 1px dashed #000000; }
  a { color: #000000; text-decoration: underline; }
}
