/* Our Texas: the front door to the Parsel civic tools.
   Set in the Texas Bill Tracker's design system, the same one the Appointments Tracker uses:
   a navy sidebar to get around, and to its right a page set like a document, not a dashboard.
   Ink on white, rules instead of boxes, square corners, no shadows. Color is spent in two
   places only: the highlighter marks what you can act on (and, as on the launch cards, what's new),
   and navy is the frame. The welcome at the top is the launch card itself: the Capitol under a navy wash. */
:root {
  color-scheme: light;
  --side: #13263a; --side-2: #1b3249; --side-3: #24405c; --side-ink: #eaf0f6; --side-muted: #8ea2b7;
  --paper: #ffffff; --wash: #f3f4f6; --ink: #13263a; --pencil: #5b6675; --faint: #8c95a3;
  --body: #3c4756; --navy: #1a4470; --ochre: #76560d;
  --rule: #d5d9df; --rule-soft: #e8ebef;
  --marker: #ffe04a; --marker-soft: #fff2a8;
  --ts: 1;
  --hl: var(--marker); --on-marker: #13263a; --inverse: #1a4470; --on-inverse: #ffffff;
  /* the welcome band keeps the launch cards' navy in day and night alike */
  --hero: #13263a; --hero-ink: #ffffff; --hero-soft: #eaf0f6; --hero-body: #c9d5e1; --hero-muted: #8ea2b7;
  --text: "Ideal Sans SSm A", "Ideal Sans SSm B", "Archivo", system-ui, -apple-system, sans-serif;
  --head: "Ringside Narrow SSm A", "Ringside Narrow SSm B", "Archivo", system-ui, sans-serif;
  --display: "Sentinel SSm A", "Sentinel SSm B", Georgia, serif;   /* Our Texas's own face: the name and the big headline */
  --pad: clamp(20px, 3.4vw, 52px);
  --side-w: 276px;
}
html[data-size="s"] { --ts: .9; }
html[data-size="l"] { --ts: 1.12; }
html[data-size="xl"] { --ts: 1.26; }
html[data-theme="dark"] { color-scheme: dark;
  --side: #08121c; --side-2: #122131; --side-3: #1d3349; --side-ink: #e3eaf1; --side-muted: #8a9db1;
  --paper: #0f1a25; --wash: #172535; --ink: #edf2f6; --body: #c4ced8; --pencil: #97a6b5; --faint: #6f8092;
  --navy: #9cc1ea; --ochre: #e5bd5c; --rule: #2c3d50; --rule-soft: #1e2d3d;
  --marker-soft: rgba(255, 224, 74, .17); --hl: rgba(255, 224, 74, .42); --inverse: #22405e; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] { color-scheme: dark;
  --side: #08121c; --side-2: #122131; --side-3: #1d3349; --side-ink: #e3eaf1; --side-muted: #8a9db1;
  --paper: #0f1a25; --wash: #172535; --ink: #edf2f6; --body: #c4ced8; --pencil: #97a6b5; --faint: #6f8092;
  --navy: #9cc1ea; --ochre: #e5bd5c; --rule: #2c3d50; --rule-soft: #1e2d3d;
  --marker-soft: rgba(255, 224, 74, .17); --hl: rgba(255, 224, 74, .42); --inverse: #22405e; } }
html[data-font="atkinson"] { --text: "Atkinson Hyperlegible Next", system-ui, sans-serif; --head: "Atkinson Hyperlegible Next", system-ui, sans-serif;
                             --display: "Atkinson Hyperlegible Next", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 20px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 calc(17px * var(--ts))/1.6 var(--text);
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
b, strong, h1, h2, h3, h4 { font-family: var(--head); font-stretch: 80%; font-weight: 700; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.page a:hover { background: var(--marker-soft); text-decoration-color: var(--ink); }
button { font: inherit; color: inherit; }
main { color: var(--body); }
.page :is(h1, h2, h3, h4, b, strong) { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 80; }
.skip:focus { left: 8px; }
mark { background: var(--marker-soft); color: inherit; padding: 0 .14em; margin: 0 -.06em;
       border-radius: 3px 6px 4px 7px / 7px 3px 6px 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.num { font-variant-numeric: tabular-nums; }

/* "New", as on the launch cards: a small block of highlighter after the tool's name */
.new { display: inline-block; vertical-align: .2em; margin-left: .35em; padding: .26em .4em .2em; background: var(--marker); color: #13263a;
       font: 700 .56em/1 var(--head); font-stretch: 80%; letter-spacing: .02em; white-space: nowrap; }
.page .new { color: #13263a; }

/* ---------- sidebar ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side); color: var(--side-ink);
        display: flex; flex-direction: column; z-index: 40; font: 500 calc(15.5px * var(--ts))/1.3 var(--head); font-stretch: 80%; overflow-y: auto; }
.side :focus-visible { outline-color: var(--marker); }
.side-top { padding: 22px 16px 12px; display: grid; gap: 15px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; padding: 0 6px; }
.ot-mark { width: 38px; height: 38px; flex: none; display: block; }  /* the Oculus mark, light version on the navy sidebar */
.ot-mark img { display: block; width: 100%; height: 100%; }
.brand b { display: block; font-family: var(--display); font-stretch: 100%; font-weight: 800; font-size: calc(19px * var(--ts)); line-height: 1.1; color: #fff; white-space: nowrap; }
.brand small { display: block; color: var(--side-muted); font-size: calc(15px * var(--ts)); font-weight: 500; margin-top: 3px; }
.side-nav { display: grid; gap: 1px; }
.side a.nav { display: flex; align-items: center; gap: 10px; color: var(--side-ink); text-decoration: none; padding: 7px 10px; font-size: calc(16.5px * var(--ts)); }
.side a.nav .i { color: var(--side-muted); width: 17px; height: 17px; }
.side a.nav:hover { background: var(--side-2); }
.side a[aria-current] { background: var(--side-3); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--marker); }
.side a[aria-current] .i { color: var(--marker); }
.side-group { padding: 6px 16px 14px; border-top: 1px solid var(--side-2); display: grid; gap: 1px; }
.side-label { color: var(--side-muted); font-size: calc(14px * var(--ts)); margin: 12px 4px 6px 10px; }
.side-group a.tool { display: grid; grid-template-columns: 26px minmax(0, 1fr) 14px; align-items: center; gap: 0 10px; padding: 7px 10px; text-decoration: none; color: var(--side-ink); }
.side-group a.tool:hover { background: var(--side-2); }
.side-group .tool-mark { display: block; width: 26px; height: 26px; }
.side-group .tool b { font-weight: 700; display: block; line-height: 1.15; }
.side-group .tool small { display: block; color: var(--side-muted); font-weight: 500; font-size: calc(13.5px * var(--ts)); }
.side-group .tool > .i { width: 14px; height: 14px; color: var(--side-muted); }
.side-fill { flex: 1; }
.side-cta { display: flex; align-items: center; gap: 10px; margin: 10px 18px 14px; padding: 10px 12px; text-decoration: none;
            border: 1px solid var(--side-3); color: #fff; font: 700 calc(15px * var(--ts))/1.25 var(--head); font-stretch: 80%; }
.side-cta .i { width: 17px; height: 17px; color: var(--marker); }
.side-cta:hover { background: var(--side-2); border-color: var(--marker); }
/* whose work this is, as the trackers' sidebars put it; the welcome band and the footer name the builder */
.maker { display: flex; align-items: center; gap: 9px; margin: 0 18px; padding: 8px 6px 7px; border-top: 1px solid var(--side-2);
         color: var(--side-muted); text-decoration: none; font-size: calc(13.5px * var(--ts)); white-space: nowrap; }
.maker img { display: block; width: 158px; height: auto; flex: none; }
.maker:hover span { color: #fff; }
.side-tools { display: flex; border-top: 1px solid var(--side-2); }
.side-tools button { all: unset; box-sizing: border-box; cursor: pointer; flex: 1 1 auto; display: flex; align-items: center; gap: 7px;
                     padding: 10px 18px 12px; color: var(--side-ink); font-size: calc(14.5px * var(--ts)); }
.side-tools button:hover { background: var(--side-2); }
.side-tools button:focus-visible { outline: 2px solid var(--marker); outline-offset: -2px; }
.side-tools .i { width: 14px; height: 14px; color: var(--side-muted); }
.topbar, .tabbar { display: none; }

/* Text and display: a small panel over the page, beside the sidebar's button. */
#prefs { position: fixed; inset: auto auto 54px calc(var(--side-w) + 14px); margin: 0; width: min(350px, calc(100vw - 24px)); max-height: calc(100dvh - 90px);
         overflow: auto; padding: 0 0 6px; border: 0; border-top: 4px solid var(--marker); background: var(--paper); color: var(--body);
         box-shadow: 0 12px 36px rgba(4, 12, 20, .32); }
.prefs-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 2px 18px; }
#prefs h2 { font-size: calc(20px * var(--ts)); line-height: 1.2; color: var(--ink); }
.prefs-x { all: unset; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; color: var(--pencil); }
.prefs-x:hover { color: var(--ink); } .prefs-x:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.prefs-x .i { width: 20px; height: 20px; }
.prefs-row { padding: 10px 18px 12px; }
.prefs-l { font: 600 calc(14px * var(--ts))/1.2 var(--head); font-stretch: 80%; color: var(--pencil); margin-bottom: 7px; }
.prefs-pick { display: flex; border: 1px solid var(--rule); }
.prefs-pick button { all: unset; box-sizing: border-box; cursor: pointer; flex: 1 1 0; min-height: 42px; display: flex; align-items: center; justify-content: center;
                     gap: 6px; padding: 6px 8px; text-align: center; color: var(--ink); font: 500 calc(15px * var(--ts))/1.15 var(--head); font-stretch: 80%; }
.prefs-pick button + button { border-left: 1px solid var(--rule); }
.prefs-pick button:hover { background: var(--marker-soft); }
.prefs-pick button[aria-pressed="true"] { background: var(--marker); color: var(--on-marker); font-weight: 700; }
.prefs-pick button:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.prefs-pick .i { width: 16px; height: 16px; }
.prefs-pick .a1, .prefs-pick .a2, .prefs-pick .a3, .prefs-pick .a4 { font-family: var(--head); font-weight: 700; line-height: 1; }
.prefs-pick .a1 { font-size: 13px; } .prefs-pick .a2 { font-size: 16px; } .prefs-pick .a3 { font-size: 19px; } .prefs-pick .a4 { font-size: 23px; }
.prefs-pick [data-v="atkinson"] { font-family: "Atkinson Hyperlegible Next", var(--text); font-stretch: 100%; }
.prefs-note { font-size: calc(13.5px * var(--ts)); line-height: 1.45; color: var(--pencil); margin-top: 8px; }

/* ---------- page ---------- */
main { display: block; margin-left: var(--side-w); min-height: 100vh; outline: none; }
.page { max-width: 1160px; padding: 0 var(--pad) 90px; }

/* ---------- the welcome: the launch card, opened up ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hero); color: var(--hero-body); }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
                background: linear-gradient(90deg, rgba(19, 38, 58, .93) 0%, rgba(19, 38, 58, .87) 52%, rgba(19, 38, 58, .76) 100%); }
.hero-in { max-width: 1160px; padding: clamp(30px, 4.2vw, 60px) var(--pad) 16px; }
.hero :focus-visible { outline-color: var(--marker); }
.hero-mark { display: block; width: clamp(72px, 6.4vw, 92px); margin-bottom: 22px; }
.hero-mark img { display: block; width: 100%; height: auto; }
.hero .dateline { font: 500 calc(15.5px * var(--ts))/1.4 var(--head); font-stretch: 80%; color: var(--hero-body); }
.hero .dateline b { font-weight: 700; color: var(--hero-ink); }
.hero mark { background: var(--marker); color: #13263a; }
.hero h1 { margin-top: 10px; color: var(--hero-ink); font: 800 clamp(40px, 6vw, calc(92px * var(--ts)))/.98 var(--display);
           letter-spacing: -.015em; text-wrap: balance; max-width: 20ch; }
.hero-body { margin-top: 14px; max-width: 40ch; color: var(--hero-soft); font-size: clamp(19px, 1.9vw, calc(26px * var(--ts))); line-height: 1.4; text-wrap: pretty; }

/* both trackers, side by side under hairlines, each with its own mark */
.hero-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3.4vw, 48px); margin-top: clamp(26px, 3vw, 36px); }
.ht { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 16px; align-items: start; padding-top: 18px; border-top: 1px solid rgba(201, 213, 225, .34); }
.ht-mark { display: block; width: 56px; height: 56px; }
.ht-name { color: var(--hero-ink); font: 700 calc(26px * var(--ts))/1.12 var(--head); font-stretch: 80%; }
.ht-line { margin-top: 6px; max-width: 40ch; color: var(--hero-body); font-size: calc(18px * var(--ts)); line-height: 1.45; }
.ht-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.hero a.es { display: inline-flex; align-items: center; gap: 7px; color: var(--hero-soft); text-decoration-color: rgba(201, 213, 225, .55);
             font: 500 calc(16px * var(--ts))/1.2 var(--head); font-stretch: 80%; padding: 6px 0; }
.hero a.es .i { width: 16px; height: 16px; color: var(--hero-muted); }
.hero a.es:hover { color: var(--hero-ink); text-decoration-color: var(--hero-ink); }
.hero-free { margin-top: 30px; max-width: 64ch; color: var(--hero-body); font-size: calc(16.5px * var(--ts)); line-height: 1.5; }

/* the card's foot: a stroke of highlighter, then who to follow and who built it */
.hero-foot { margin-top: 20px; padding-top: 16px; border-top: 3px solid var(--marker); display: flex; flex-wrap: wrap;
             align-items: center; justify-content: space-between; gap: 14px 32px; }
.hero-follow { color: var(--hero-body); font: 500 calc(17px * var(--ts))/1.3 var(--head); font-stretch: 80%; }
.hero-follow a { color: var(--hero-ink); font-weight: 700; text-decoration-color: rgba(201, 213, 225, .55); }
.hero-follow a:hover { text-decoration-color: var(--marker); }
.hero-maker { display: inline-flex; align-items: center; gap: 14px; color: var(--hero-muted); text-decoration: none;
              font: 500 calc(17px * var(--ts))/1.2 var(--head); font-stretch: 80%; }
.hero-maker img { display: block; width: 168px; height: auto; flex: none; }
.hero-maker:hover span { color: var(--hero-ink); }
.hero-credit { margin-top: 14px; text-align: right; color: var(--hero-muted); font: 400 calc(13px * var(--ts))/1.4 var(--head); font-stretch: 80%; }
.hero-credit a { color: var(--hero-body); text-decoration-color: rgba(142, 162, 183, .5); }
.hero-credit a:hover { color: var(--hero-ink); }

/* a look at the tool itself: a plain picture in a hairline frame, no shadow */
.shot { display: block; border: 1px solid var(--rule); line-height: 0; }
.shot img { display: block; width: 100%; height: auto; }
.page a.shot:hover { background: none; border-color: var(--navy); }
/* A tool shown in both looks: the day picture by default, the night one when the page is set to Night (or follows a
   dark device). The hidden one is never fetched, since lazy images that aren't drawn don't load. */
.shot .shot-night { display: none; }
html[data-theme="dark"] .shot.has-night .shot-day { display: none; }
html[data-theme="dark"] .shot.has-night .shot-night { display: block; }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .shot.has-night .shot-day { display: none; }
  html[data-theme="auto"] .shot.has-night .shot-night { display: block; }
}

/* sections, each under a heavy rule */
.sec { border-top: 3px solid var(--navy); padding-top: 14px; margin-top: 56px; display: flex; flex-direction: column; gap: 12px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-bottom: 4px; }
.sec-head h2 { font-size: calc(27px * var(--ts)); line-height: 1.05; display: inline-flex; align-items: center; gap: 11px; }
.sec-head h2 .i { width: 22px; height: 22px; color: var(--pencil); }
.sec-head p { font-size: calc(15px * var(--ts)); line-height: 1.5; color: var(--pencil); max-width: 62ch; flex: 1 1 320px; }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--navy); }
.row-link { display: grid; grid-template-columns: 44px minmax(0, 1fr) 11rem 1.2rem; gap: 0 18px; align-items: center; padding: 16px 4px 17px;
            border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--body); }
.page .row-link:hover { background: var(--marker-soft); }
.row-mark { width: 44px; height: 44px; background: var(--marker); display: grid; place-items: center; }
.row-mark .i { width: 22px; height: 22px; color: #13263a; }
.row-mark.plain { background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy); }
.row-mark.plain .i { color: var(--navy); }
.row-title { font: 700 calc(20px * var(--ts))/1.2 var(--head); font-stretch: 80%; color: var(--ink); display: block; }
.row-sub { font-size: calc(15.5px * var(--ts)); line-height: 1.45; color: var(--pencil); display: block; margin-top: 2px; max-width: 62ch; }
.row-n { font: 500 calc(15px * var(--ts))/1.3 var(--head); font-stretch: 80%; text-align: right; color: var(--pencil); }
.row-link > .i { width: 18px; height: 18px; color: var(--faint); }

/* a tool, introduced */
.tool-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: start; }
.tool-sec > .sec-head { grid-column: 1 / -1; }
.tool-brand { display: flex; align-items: center; gap: 12px; }
.tool-brand img { display: block; width: 44px; height: 44px; flex: none; }
.tool-brand b { display: block; font-size: calc(24px * var(--ts)); line-height: 1.1; }
.tool-brand small { display: block; font: 500 calc(15.5px * var(--ts))/1.2 var(--head); font-stretch: 80%; color: var(--pencil); margin-top: 2px; }
.tool-copy { display: grid; gap: 14px; }
.tool-copy > p { font-size: calc(18px * var(--ts)); line-height: 1.55; max-width: 56ch; }
.can { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.can li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); font-size: calc(16px * var(--ts)); line-height: 1.5; }
.can li .i { width: 17px; height: 17px; margin-top: 3px; color: var(--pencil); }
.can li b { font-size: calc(16.5px * var(--ts)); }
.tool-side { display: grid; gap: 12px; }
.deep { display: grid; border-top: 1px solid var(--navy); }
.deep a { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; gap: 10px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--rule);
          text-decoration: none; color: var(--ink); font: 700 calc(16.5px * var(--ts))/1.3 var(--head); font-stretch: 80%; }
.deep a small { display: block; font: 400 calc(14.5px * var(--ts))/1.4 var(--text); font-stretch: 100%; color: var(--pencil); }
.deep a .i { width: 18px; height: 18px; color: var(--pencil); }
.deep a > .i:last-child { width: 15px; height: 15px; color: var(--faint); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 calc(15.5px * var(--ts))/1.1 var(--head); font-stretch: 80%;
       color: var(--ink); border: 1px solid var(--navy); padding: 10px 14px; min-height: 44px; text-decoration: none; cursor: pointer; text-align: center; }
.page .btn:hover { background: var(--marker-soft); }
.btn.primary { background: var(--marker); color: var(--on-marker); border-color: var(--marker); }
.page .btn.primary:hover { background: var(--inverse); color: var(--marker); border-color: var(--inverse); }
.hero .btn.primary:hover, .sponsor .btn.primary:hover { background: #fff; color: #13263a; border-color: #fff; }
.btn .i { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.note { font-size: calc(14.5px * var(--ts)); line-height: 1.5; color: var(--pencil); }

/* ---------- sponsor ---------- */
.sponsor { margin-top: 64px; background: var(--side); color: var(--side-ink); border-top: 4px solid var(--marker);
           display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 56px; padding: 30px clamp(20px, 3vw, 36px) 30px; }
.sponsor :focus-visible { outline-color: var(--marker); }
.page .sponsor h2 { color: #fff; font: 800 clamp(24px, 2.3vw, calc(30px * var(--ts)))/1.12 var(--display); letter-spacing: -.01em; }
.sponsor-line { color: #c9d5e1; font-size: calc(17px * var(--ts)); line-height: 1.55; margin-top: 12px; max-width: 52ch; }
.sponsor-act { display: grid; gap: 12px; align-content: start; }
/* One time or monthly: plain radio buttons, no script. Every amount is outlined and fills when you reach for it. */
.give { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.freq { display: inline-flex; border: 1px solid var(--side-3); }
.freq label { cursor: pointer; padding: 9px 13px 8px; font: 500 calc(15px * var(--ts))/1.2 var(--head); font-stretch: 80%; color: var(--side-muted); }
.freq label + label { border-left: 1px solid var(--side-3); }
.freq label:hover { color: #fff; }
#give-once:checked ~ .freq label[for="give-once"], #give-monthly:checked ~ .freq label[for="give-monthly"] {
  color: #fff; background: var(--side-2); box-shadow: inset 0 -2px 0 var(--marker); }
#give-once:focus-visible ~ .freq label[for="give-once"], #give-monthly:focus-visible ~ .freq label[for="give-monthly"] {
  outline: 2px solid var(--marker); outline-offset: 2px; }
.give-once, .give-monthly { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 100%; }
#give-once:checked ~ .give-monthly, #give-monthly:checked ~ .give-once { display: none; }
.sponsor .sponsor-btn { font-size: calc(18px * var(--ts)); padding: 13px 20px; min-height: 52px; }
.amt { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 44px; padding: 8px 10px 7px;
       border: 1px solid var(--marker); color: var(--marker); text-decoration: none;
       font: 700 calc(16.5px * var(--ts))/1.2 var(--head); font-stretch: 80%; transition: background .2s ease, color .2s ease; }
.amt:hover, .page .amt:hover { background: var(--marker); color: #13263a; }
.per { font: 500 calc(15px * var(--ts))/1.2 var(--head); font-stretch: 80%; color: var(--side-muted); }
.sponsor-note { font-size: calc(14px * var(--ts)); line-height: 1.45; color: var(--side-muted); }
.nobr { white-space: nowrap; }
.thanks { grid-column: 1 / -1; background: var(--marker); color: var(--on-marker); padding: 10px 14px; font-size: calc(16.5px * var(--ts)); }
.page .thanks b { color: var(--on-marker); }

/* footer */
.foot { margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--navy); display: grid; gap: 10px;
        font-size: calc(15px * var(--ts)); line-height: 1.55; color: var(--pencil); }
.foot p { max-width: 78ch; }
.foot .disclaimer, .foot .small { font-size: calc(13.5px * var(--ts)); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { .amt { transition: none; } }

/* ---------- small screens: the sidebar folds into a masthead and a bar of shortcuts ---------- */
@media (max-width: 960px) {
  .side { display: none; }
  main { margin-left: 0; }
  .page { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; background: var(--hero); padding: 9px var(--pad);
            border-bottom: 1px solid rgba(201, 213, 225, .16); }
  .topbar :focus-visible { outline-color: var(--marker); }
  .topbar .brand { padding: 0; gap: 10px; }
  .topbar .ot-mark { width: 32px; height: 32px; }
  .topbar .brand b { font-size: calc(18px * var(--ts)); }
  .maker-sm { display: flex; align-items: center; gap: 6px; color: var(--side-muted); text-decoration: none;
              font: 500 calc(14px * var(--ts))/1.2 var(--head); font-stretch: 80%; white-space: nowrap; }
  .maker-sm img { width: 74px; height: auto; flex: none; display: block; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; inset: auto 0 0 0; z-index: 30;
            background: var(--side); padding-bottom: env(safe-area-inset-bottom, 0px); font: 500 calc(12.5px * var(--ts))/1.1 var(--head); font-stretch: 80%; }
  .tabbar a, .tabbar button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; align-content: center; gap: 5px;
              min-height: 58px; padding: 6px 0; text-align: center; white-space: nowrap; color: var(--side-ink); text-decoration: none; }
  .tabbar button { border-left: 1px solid var(--side-3); }
  .tabbar .i { width: 20px; height: 20px; color: var(--side-muted); }
  .tabbar a.give .i { color: var(--marker); }
  .tabbar :focus-visible { outline: 2px solid var(--marker); outline-offset: -3px; }
  #prefs { inset: auto 12px 74px 12px; width: auto; }
  .hero-mark { display: none; }
  .tool-sec, .sponsor { grid-template-columns: 1fr; }
  .row-link { grid-template-columns: 40px minmax(0, 1fr) 1rem; gap: 0 14px; }
  .row-mark { width: 40px; height: 40px; }
  .row-n { display: none; }
}
/* side by side only when each tracker has room for its button on one line: stacked on phones and small tablets,
   and on laptops narrow enough that the sidebar leaves the page under about 900px */
@media (max-width: 860px), (min-width: 961px) and (max-width: 1200px) {
  .hero-tools { grid-template-columns: 1fr; }
  .ht + .ht { margin-top: 22px; }
}
@media (max-width: 700px) { :root { --pad: 18px; } }
@media (max-width: 560px) {
  .hero::before { background: rgba(19, 38, 58, .86); }
  /* the mark sits beside the name only; the line and the buttons take the full width under them */
  .ht { grid-template-columns: 44px minmax(0, 1fr); gap: 0 13px; align-items: center; }
  .ht-text { display: contents; }
  .ht-mark { width: 44px; height: 44px; }
  .ht-name { font-size: calc(23px * var(--ts)); }
  .ht-line, .ht-go { grid-column: 1 / -1; }
  .ht-line { font-size: calc(17px * var(--ts)); margin-top: 10px; }
  .ht-go { gap: 8px 16px; }
  .ht-go .btn { flex: 1 1 100%; }
  .hero-foot { gap: 12px 24px; }
  .hero-maker { flex-wrap: wrap; gap: 8px 10px; font-size: calc(15.5px * var(--ts)); }
  .hero-maker img { width: 140px; }
  .tool-brand b { font-size: calc(22px * var(--ts)); }
  .hero-credit { text-align: left; }
  .actions .btn { flex: 1 1 auto; }
  .sponsor .sponsor-btn { flex: 1 1 100%; }
  .amt { min-width: 0; flex: 1 1 0; padding-left: 4px; padding-right: 4px; }
  .per { flex: 1 1 100%; }
}
/* the narrowest phones: "Get involved" gets the widest tab, and the masthead keeps the studio's logo on one line */
@media (max-width: 400px) {
  .tabbar { grid-template-columns: 1fr 1fr 1.45fr 1fr 1fr; font-size: min(calc(12.5px * var(--ts)), 13px); }
  /* keep "Open the Appointments Tracker" on one line */
  .ht-go .btn, .actions .btn { padding-left: 10px; padding-right: 10px; gap: 6px; font-size: calc(15px * var(--ts)); }
}
@media (max-width: 359px) {
  .maker-sm span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar .brand b { font-size: calc(17px * var(--ts)); }
}
