  /* Newsprint. The policy is set in the same faces the app itself ships —
     Tinos for Times, Arimo for Arial — because a document about a government
     app should look like one. */
  :root {
    --paper:      #F4F1E7;
    --panel:      #FAF8F1;
    --ink:        #14130F;
    --muted:      #6E6A5F;
    --rule:       rgba(20, 19, 15, 0.22);
    --rule-firm:  rgba(20, 19, 15, 0.75);
    --press-red:  #A3222B;
    --olive:      #3F6B4E;
    --navy:       #1B3A5C;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper:     #14140F;
      --panel:     #1C1C16;
      --ink:       #F3F1E9;
      --muted:     #9C978A;
      --rule:      rgba(243, 241, 233, 0.24);
      --rule-firm: rgba(243, 241, 233, 0.7);
      --press-red: #E0656C;
      --olive:     #7FB08F;
      --navy:      #7FA6CE;
    }
  }
  :root[data-theme="dark"] {
    --paper:     #14140F;
    --panel:     #1C1C16;
    --ink:       #F3F1E9;
    --muted:     #9C978A;
    --rule:      rgba(243, 241, 233, 0.24);
    --rule-firm: rgba(243, 241, 233, 0.7);
    --press-red: #E0656C;
    --olive:     #7FB08F;
    --navy:      #7FA6CE;
  }

  * { box-sizing: border-box; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Tinos", "Times New Roman", Times, serif;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px 96px;
  }

  .sheet { max-width: 44rem; margin: 0 auto; }

  /* ---- nameplate ---- */
  .plate { padding-top: 40px; text-align: center; }
  .plate h1 {
    font-family: "Playfair Display", "Tinos", serif;
    font-weight: 700;
    font-size: clamp(2rem, 7vw, 3.1rem);
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1;
  }
  .rule-heavy { border-top: 2.5px solid var(--rule-firm); margin-top: 14px; }
  .rule-hair  { border-top: 1px solid var(--rule); margin-top: 2px; }

  .folio {
    display: flex; flex-wrap: wrap; gap: 10px 18px;
    justify-content: space-between;
    font-family: "Arimo", Arial, Helvetica, sans-serif;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.11em; text-transform: uppercase;
    color: var(--muted);
    padding: 7px 0;
    border-bottom: 1px solid var(--rule);
  }

  /* ---- headline ---- */
  .lede { margin: 34px 0 0; }
  .lede h2 {
    font-family: "Tinos", serif;
    font-weight: 700;
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    line-height: 1.12;
    margin: 0 0 14px;
    text-wrap: balance;
  }
  .standfirst { font-style: italic; color: var(--muted); margin: 0; font-size: 1.06rem; }

  /* ---- sections. Numbered because a policy genuinely is an ordered
       instrument that gets cited by clause, not because numbers look tidy. ---- */
  section { margin-top: 40px; }
  h3 {
    font-family: "Arimo", Arial, sans-serif;
    font-size: 0.76rem; font-weight: 700;
    letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--rule);
    display: flex; gap: 12px; align-items: baseline;
  }
  h3 .n { color: var(--press-red); font-variant-numeric: tabular-nums; }
  p { margin: 0 0 14px; }
  p:last-child { margin-bottom: 0; }
  ul { margin: 0 0 14px; padding-left: 1.15rem; }
  li { margin-bottom: 7px; }
  strong { font-weight: 700; }
  code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.86em;
    background: var(--panel);
    padding: 1px 5px;
    border: 1px solid var(--rule);
  }

  /* ---- the ledger: the actual substance of the document ---- */
  .ledger {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0;
    border: 1px solid var(--rule-firm);
    margin: 22px 0;
  }
  .col { padding: 0; }
  .col + .col { border-left: 1px solid var(--rule-firm); }
  @media (max-width: 34rem) {
    .col + .col { border-left: 0; border-top: 1px solid var(--rule-firm); }
  }
  .col header {
    font-family: "Arimo", Arial, sans-serif;
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 9px 14px;
    color: var(--paper);
  }
  .col.stays header { background: var(--olive); }
  .col.leaves header { background: var(--press-red); }
  .col ul { margin: 0; padding: 14px 14px 14px 30px; }
  .col li { font-size: 0.95rem; }

  .note {
    border-left: 4px solid var(--press-red);
    background: var(--panel);
    padding: 14px 16px;
    margin: 22px 0;
    font-size: 0.97rem;
  }
  .note b {
    font-family: "Arimo", Arial, sans-serif;
    font-size: 0.7rem; letter-spacing: 0.12em;
    text-transform: uppercase; display: block; margin-bottom: 6px;
    color: var(--press-red);
  }

  .fill {
    background: rgba(163, 34, 43, 0.12);
    border-bottom: 2px solid var(--press-red);
    padding: 0 4px;
    font-family: "Arimo", Arial, sans-serif;
    font-size: 0.85em;
    font-weight: 700;
  }

  footer {
    margin-top: 52px; padding-top: 14px;
    border-top: 2.5px solid var(--rule-firm);
    font-family: "Arimo", Arial, sans-serif;
    font-size: 0.72rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted);
    display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  }

/* ---------------------------------------------------------------------
   Additions for the site proper. The policy pages came first and set the
   type; these are the pieces a front page needs that a legal document
   does not.
   --------------------------------------------------------------------- */

.nav {
  display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center;
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a:focus { color: var(--press-red); }
.nav a[aria-current="page"] { color: var(--ink); }

/* The deck: what a paper puts under the nameplate to say what it is. */
.deck {
  margin: 30px 0 0; text-align: center;
}
.deck h2 {
  font-family: "Tinos", serif; font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  line-height: 1.08; margin: 0 0 12px; text-wrap: balance;
}
.deck p {
  font-style: italic; color: var(--muted);
  font-size: 1.08rem; margin: 0 auto; max-width: 34rem;
}

/* Columns, because this is a newspaper and the content genuinely is a
   set of parallel departments rather than a sequence. */
.columns {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 34px;
}
.col { border-top: 2.5px solid var(--rule-firm); padding-top: 12px; }
.col h3 {
  font-family: "Arimo", Arial, sans-serif;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  margin: 0 0 8px; color: var(--press-red);
}
.col p { margin: 0; font-size: 1rem; }

.stores {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 34px;
}
.store {
  font-family: "Arimo", Arial, sans-serif;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1.5px solid var(--rule-firm);
  padding: 11px 20px; text-decoration: none; color: var(--ink);
}
.store[aria-disabled="true"] { color: var(--muted); border-color: var(--rule); }
.store:not([aria-disabled="true"]):hover { background: var(--ink); color: var(--paper); }

.standing {
  margin-top: 38px; padding: 14px 16px;
  border: 1px solid var(--press-red);
  font-size: 0.97rem;
}
.standing b {
  display: block;
  font-family: "Arimo", Arial, sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--press-red); margin-bottom: 6px;
}
