/* Lowcountry Digital Solutions: the shared look. One file every LDS page links.
   Source of truth: the LDS Design System (tokens v3, Tyler's Nov 12 2026 picks: true gray, Archivo + Source Sans 3,
   plain labels with no monospace, soft corners, dither at the edges). Change values there first, then here.
   Fonts: pages load Archivo and Source Sans 3 from Google Fonts. */
:root{
  --surface:#F4F4F4;--surface-raised:#FFFFFF;--fill:#E9E9E9;--line:#D5D5D5;--ink:#141414;--ink-muted:#5C5C5C;
  --tide:#1F5FAD;--tide-soft:#E1ECF8;--on-tide:#FFFFFF;--marsh:#136C37;--marsh-soft:#DFF3E6;--warn:#B4420B;--warn-soft:#FBE9DF;--danger:#C0262D;
  /* the night band: a fixed dark stage used on light pages (the story's "now" week, the pitch note) */
  --night:#111111;--night-2:#1A1A1A;--night-ink:#EAEAEA;--night-muted:#A3A3A3;--night-line:#2E2E2E;--night-tide:#7FB3F0;
  --f-display:"Archivo","Helvetica Neue",Arial,sans-serif;
  --f-sans:"Source Sans 3","Segoe UI",system-ui,sans-serif;
  --f-mono:var(--f-sans); /* retired Nov 12: figures use the reading font with tabular numerals */
  --r-sm:10px;--r-md:16px;--r-node:9999px;
  --shadow-sm:0 1px 2px #1414141a;
  --focus:0 0 0 2px var(--surface),0 0 0 4px var(--tide);
  /* the design system's own names, for parts copied from it */
  --font-display:var(--f-display);--font-sans:var(--f-sans);--radius-sm:var(--r-sm);--radius-md:var(--r-md);--radius-node:var(--r-node);--focus-ring:var(--focus);
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --surface:#131313;--surface-raised:#1C1C1C;--fill:#272727;--line:#363636;--ink:#EDEDED;--ink-muted:#A6A6A6;
  --tide:#7FB3F0;--tide-soft:#16263B;--on-tide:#131313;--marsh:#5FD38A;--marsh-soft:#14301F;--warn:#F59A5B;--warn-soft:#3A2416;--danger:#F4858A;
  --shadow-sm:0 1px 2px #000000b3;color-scheme:dark}}
:root[data-theme="dark"]{
  --surface:#131313;--surface-raised:#1C1C1C;--fill:#272727;--line:#363636;--ink:#EDEDED;--ink-muted:#A6A6A6;
  --tide:#7FB3F0;--tide-soft:#16263B;--on-tide:#131313;--marsh:#5FD38A;--marsh-soft:#14301F;--warn:#F59A5B;--warn-soft:#3A2416;--danger:#F4858A;
  --shadow-sm:0 1px 2px #000000b3;color-scheme:dark}
.mono{font-family:var(--f-sans);font-variant-numeric:tabular-nums}
/* the oak takes the page's ink in any theme */
.lds-oak{display:inline-block;width:38px;aspect-ratio:630/458;flex:none;background:currentColor;-webkit-mask:url(/brand/lds-oak.svg) center/contain no-repeat;mask:url(/brand/lds-oak.svg) center/contain no-repeat}
.lds-lockup{display:inline-block;width:200px;max-width:100%;aspect-ratio:630/605;background:currentColor;-webkit-mask:url(/brand/lds-lockup.svg) center/contain no-repeat;mask:url(/brand/lds-lockup.svg) center/contain no-repeat}
.lds-signoff{display:flex;align-items:center;gap:16px;color:var(--ink)}
.lds-signoff canvas{width:128px;height:93px;flex:none}
.lds-signoff b{display:block;font:700 16px/1.2 var(--f-display)}
.lds-signoff span{display:block;font-size:14px;color:var(--ink-muted)}
.lds-tide{display:block;width:100%;height:16px}
.lds-shore{display:block;width:100%;height:264px;color:var(--ink);--lds-px:2;--lds-oak:1;--lds-at:.5}
/* parts, as documented in the design system */
.lds-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); }
.lds-stack { display: grid; gap: var(--space-3); padding: var(--space-4); }
.lds-btn { font: inherit; font-size: 15px; font-weight: 600; height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); cursor: pointer; }
.lds-btn-primary { background: var(--tide); border-color: var(--tide); color: var(--on-tide); }
.lds-btn-quiet { background: transparent; border-color: transparent; color: var(--tide); }
.lds-btn:focus-visible, .lds-switch:focus-visible, .lds-nav a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.lds-node { width: 8px; height: 8px; border-radius: var(--radius-node); background: var(--ink-muted); flex: none; display: inline-block; }
.lds-node-tide { background: var(--tide); } .lds-node-marsh { background: var(--marsh); } .lds-node-warn { background: var(--warn); } .lds-node-danger { background: var(--danger); }
.lds-state { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.lds-state time { margin-left: auto; font-variant-numeric: tabular-nums; }
.lds-label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); margin: 0; }
.lds-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); display: grid; max-width: 440px; min-width: 0; overflow: hidden; }
.lds-card-top { padding: 18px 18px 14px; display: grid; gap: var(--space-2); }
.lds-card h3 { font-family: var(--font-display); font-size: 21px; line-height: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.lds-card p { font-size: 15px; line-height: 22px; margin: 0; color: var(--ink-muted); }
.lds-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.lds-figs div { padding: var(--space-3) 18px; display: grid; gap: 2px; min-width: 0; }
.lds-figs div + div { border-left: 1px solid var(--line); }
.lds-figs b { font-size: 17px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lds-figs span { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.lds-card-foot { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.lds-card-foot a { margin-left: auto; color: var(--tide); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.lds-list { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.lds-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: 14px var(--space-4); }
.lds-item + .lds-item { border-top: 1px solid var(--line); }
.lds-item b { display: block; font-weight: 600; }
.lds-item small { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lds-item .lds-when { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lds-header { display: flex; align-items: center; gap: var(--space-3); padding: 14px 20px; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.lds-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.lds-brand svg, .lds-brand img { width: 38px; height: auto; flex: none; }
.lds-brand b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 17px; }
.lds-brand span { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.lds-header nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.lds-header nav a { color: var(--ink-muted); text-decoration: none; }
.lds-nav { display: flex; gap: var(--space-1); overflow-x: auto; padding: var(--space-1); background: var(--fill); border-radius: var(--radius-sm); width: max-content; max-width: 100%; }
.lds-nav a { padding: 8px 14px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink-muted); text-decoration: none; white-space: nowrap; }
.lds-nav a[aria-current] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-sm); }
.lds-setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: 14px var(--space-4); }
.lds-setting + .lds-setting { border-top: 1px solid var(--line); }
.lds-setting b { display: block; font-weight: 600; }
.lds-setting small { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.lds-switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: var(--radius-node); background: var(--fill); border: 1px solid var(--line); position: relative; cursor: pointer; margin: 0; }
.lds-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: var(--radius-node); background: var(--surface-raised); border: 1px solid var(--line); box-sizing: border-box; transition: transform .15s; }
.lds-switch:checked { background: var(--tide); border-color: var(--tide); }
.lds-switch:checked::after { transform: translateX(18px); background: var(--on-tide); border-color: transparent; }
.lds-dither { image-rendering: pixelated; display: block; }
@media (prefers-reduced-motion: reduce) { .lds-switch::after { transition: none; } }
