/* WellDecoded dark theme. Loaded after each page's own styles. Print always uses the light theme. */
:root{--better:#2F7D4F}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:999px;border:1.5px solid var(--rule);background:var(--paper);color:var(--ink);cursor:pointer;padding:0;margin-left:auto}
.theme-toggle:hover{border-color:var(--ink)}
.theme-toggle:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.top-right .theme-toggle{margin-left:0}
.theme-toggle .i-sun{display:none}
[data-theme="dark"] .theme-toggle .i-sun{display:block}
[data-theme="dark"] .theme-toggle .i-moon{display:none}
@media print{.theme-toggle{display:none!important}}
@media screen{
  :root[data-theme="dark"]{
    color-scheme:dark;
    --ink:#E2EBEE;--ink-soft:#A8BBC3;--stone:#0E1A20;--paper:#15252D;--rule:#2C4250;
    --aquifer:#5AAED2;--aquifer-deep:#8CC7E0;
    --act:#F2946C;--act-bg:#3A2019;--watch:#E8B65A;--watch-bg:#33290F;--ok:#6DB8D8;--ok-bg:#132F39;
    --focus:#F2A93B;--better:#6CC08E
  }
  /* dark bands keep a deep navy so their light text stays readable */
  [data-theme="dark"] .fact,[data-theme="dark"] .join,[data-theme="dark"] .final,[data-theme="dark"] .cta,[data-theme="dark"] .feedback{background:#173341}
  /* filled buttons and selected states: dark text on light fills */
  [data-theme="dark"] .btn-primary,[data-theme="dark"] .btn-primary:hover{color:#08151A}
  [data-theme="dark"] .market a[aria-current="page"],[data-theme="dark"] .seg button[aria-pressed="true"],[data-theme="dark"] .chip[aria-pressed="true"],[data-theme="dark"] .founder-mark,[data-theme="dark"] .mark,[data-theme="dark"] a.btn:not(.btn-quiet):not(.btn-primary){color:#0E1A20}
  [data-theme="dark"] .cta .btn-primary,[data-theme="dark"] .final .btn-primary{background:#E2EBEE;color:#0E1A20}
  [data-theme="dark"] .btn-quiet:hover{background:var(--ink);color:#0E1A20;border-color:var(--ink)}
  /* light surfaces written as fixed colors */
  [data-theme="dark"] .row:hover{background:#1A2E37}
  [data-theme="dark"] .row[aria-pressed="true"]{background:#1C3644}
  [data-theme="dark"] .decoded,[data-theme="dark"] .drop{background:var(--paper)}
  [data-theme="dark"] .drop{background:#12212A}
  [data-theme="dark"] .programs{background:#12222A}
  [data-theme="dark"] .sheetline,[data-theme="dark"] .copy code{background:#12222A}
  [data-theme="dark"] .added{background:#2E2610;border-color:#8A6A1C}
  [data-theme="dark"] .added-tag{color:#E8B65A}
  [data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{background:#12212A!important;color:var(--ink)!important;border-color:#3A5260!important}
  [data-theme="dark"] .card,[data-theme="dark"] .notes li,[data-theme="dark"] .hist-table-wrap{border-color:var(--rule)}
  /* logo outline */
  [data-theme="dark"] .brand svg path[stroke="#1C3A4A"]{stroke:#E2EBEE}
  [data-theme="dark"] .sheet,[data-theme="dark"] .letter{box-shadow:0 1px 0 #000,0 18px 40px -20px rgba(0,0,0,.7)}
}

/* shared site header and footer (Nov 2026) */
header.site-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;position:relative;flex-wrap:nowrap}
header.site-head .brand{flex:none;display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:800;font-size:21px;letter-spacing:-.02em}
header.site-head .top-right{display:flex;align-items:center;gap:14px;min-width:0}
header.site-head .site-nav{display:flex;align-items:center;gap:20px}
header.site-head .site-nav a{font-weight:600;font-size:15px;color:var(--ink);text-decoration:none;white-space:nowrap;padding:6px 0;border-bottom:2px solid transparent}
header.site-head .site-nav a:hover{border-bottom-color:var(--ink)}
header.site-head .site-nav a[aria-current="page"]{border-bottom-color:var(--aquifer)}
header.site-head .site-nav .market{display:inline-flex;border:1.5px solid var(--rule);border-radius:999px;padding:3px;gap:2px}
header.site-head .site-nav .market a{padding:6px 12px;border-radius:999px;border:0;font-size:14px}
header.site-head .site-nav .market a[aria-current="page"]{background:var(--ink);color:var(--paper)}
header.site-head .head-cta{display:inline-flex!important;min-height:44px;padding:0 18px;font-size:15px;white-space:nowrap}
header.site-head .cta-short{display:none}
header.site-head .menu-btn{display:none;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1.5px solid var(--rule);border-radius:10px;background:var(--paper);color:var(--ink);font:600 15px/1 var(--font,inherit);cursor:pointer}
header.site-head .menu-btn:focus-visible,header.site-head .site-nav a:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.menu-bars{display:block;width:16px;height:2px;background:currentColor;position:relative}
.menu-bars::before,.menu-bars::after{content:"";position:absolute;left:0;width:16px;height:2px;background:currentColor}
.menu-bars::before{top:-5px}.menu-bars::after{top:5px}
@media (max-width:980px){
  header.site-head .site-nav{display:none;position:absolute;top:100%;left:16px;right:16px;z-index:50;flex-direction:column;align-items:stretch;gap:0;background:var(--paper);border:1.5px solid var(--rule);border-radius:12px;padding:8px;box-shadow:0 18px 40px -18px rgba(28,58,74,.45)}
  header.site-head.open .site-nav{display:flex}
  header.site-head .site-nav a{padding:13px 12px;border-bottom:0;border-radius:8px;font-size:17px}
  header.site-head .site-nav a:hover,header.site-head .site-nav a[aria-current="page"]{background:var(--stone);border-bottom:0}
  header.site-head .site-nav .market{align-self:flex-start;margin:8px 12px 6px}
  header.site-head .site-nav .market a{padding:8px 16px;font-size:15px}
  header.site-head .menu-btn{display:inline-flex}
}
@media (max-width:560px){
  header.site-head{padding:14px 16px;gap:8px}
  header.site-head .brand{font-size:19px;gap:8px}
  header.site-head .brand svg{width:26px;height:26px}
  header.site-head .top-right{gap:8px}
  header.site-head .cta-long{display:none}
  header.site-head .cta-short{display:inline}
  header.site-head .head-cta{padding:0 14px}
  header.site-head .menu-btn{padding:0;width:44px;justify-content:center}
  header.site-head .menu-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  header.site-head .theme-toggle{width:40px;height:40px}
}
@media (max-width:360px){header.site-head .brand{font-size:0;gap:0}}
.foot-nav{display:flex;flex-wrap:wrap;gap:8px 18px;margin:14px 0 0;font-size:15px}
.foot-nav a{color:inherit}
.foot-nav span{opacity:.8}
@media print{header.site-head .site-nav,header.site-head .menu-btn,header.site-head .head-cta,.foot-nav{display:none!important}}
html,body{overflow-x:clip}

.feature-card{display:block;margin:6px 0 26px;padding:18px 20px;border-radius:12px;background:var(--ok-bg,#E3EFF4);border:1.5px solid var(--aquifer);color:var(--ink);text-decoration:none}
.feature-card b{display:block;font-size:19px;margin-bottom:4px}
.feature-card span{color:var(--ink-soft);font-size:16px}
.feature-card:hover{border-color:var(--ink)}
