/* ===== open-data-shared.css — the Open Data family's shared layer =====
   Counterpart to tool-shared.css for the paid products (owner order, 2026-07-24):
   one file for the family's tokens and shell chrome, linked by all three product
   pages (GIFT, Interlock, F4F). Same design world as the products — Spectral and
   JetBrains Mono on the cream paper, sharp corners, mono uppercase labels — with a
   deliberately distinct identity: the warm print ink/wash palette, 2px ink rules,
   and a per-product accent. Each page sets its own two accent tokens after this
   file loads:
     --od-accent : the product's accent color (GIFT green, Interlock teal, F4F blue)
     --od-hilite : the row-hover / highlight tint derived from that accent
   Shared-layer changes start HERE and reach all three pages in the same push;
   signature components stay on their owning pages, extracted into the pattern
   books at build time. This file supersedes Sweep Rules 20 and 24 (reconciliation
   by convention and caps) — the family now shares a real layer, same structure as
   the enterprise products. Shadow-bug discipline applies: never promote a rule
   here while a same-selector inline rule survives on a page. */

:root{
  --ink:#1c1a17; --paper:#f4efe2; --well:#fffdf7;
  --rule:#c9c0ab; --rule-soft:#ddd5c3; --wash:#6b6456;
  --ok:#286644; --warn:#8a5218; --urgent:#8a2828;
  --od-accent:#3f7d4e; --od-hilite:#a8f0a8;
  --serif:'Spectral',Georgia,'Times New Roman',serif;
  --mono:'JetBrains Mono','Courier New',monospace;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--paper);color:var(--ink);font-family:var(--serif);font-size:18px;line-height:1.6;-webkit-font-smoothing:antialiased}
::selection{background:var(--ink);color:var(--paper)}
a{color:inherit}
.wrap{max-width:1040px;margin:0 auto;padding:0 32px}
.wrap-narrow{max-width:880px;margin:0 auto;padding:0 32px}
.hidden{display:none!important}

/* ---- masthead: sticky wordmark bar, 2px ink rule ---- */
.masthead{border-bottom:2px solid var(--ink);position:sticky;top:0;background:var(--paper);z-index:50}
.masthead .inner{max-width:1040px;margin:0 auto;display:flex;justify-content:space-between;align-items:baseline;gap:14px;flex-wrap:wrap;padding:18px 32px}
.mark{font-size:28px;font-weight:700;line-height:1;text-decoration:none;color:var(--ink)}
.mark span{color:var(--od-accent)}
.mast-nav{font-family:var(--mono);font-size:12px;letter-spacing:.04em;display:flex;gap:22px;flex-wrap:wrap}
.mast-nav a{color:var(--ink);text-decoration:none;padding-bottom:2px;border-bottom:1px solid transparent;cursor:pointer}
.mast-nav a:hover,.mast-nav a.on{border-bottom-color:var(--od-accent);color:var(--od-accent)}
.mast-note{font-family:var(--mono);font-size:12px;color:var(--wash);letter-spacing:.02em}
.mast-note strong{color:var(--ink);font-weight:500}

/* ---- headings and context lines ---- */
h1{font-weight:700;letter-spacing:-.01em;line-height:1.14}
.crumb{font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--wash)}
.crumb a{color:var(--wash);text-decoration:none;cursor:pointer}
.crumb a:hover{color:var(--od-accent)}
.eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--wash)}

/* ---- free-and-public pledge strip: the family's identity marker, one per hero ---- */
.od-pledge{font-family:var(--mono);font-size:12px;color:var(--wash);letter-spacing:.01em;display:flex;justify-content:center;gap:8px 22px;flex-wrap:wrap;list-style:none}
.od-pledge span::before{content:"\2713\00a0";color:var(--od-accent);font-weight:700}

/* ---- search, toggle, count ---- */
.search{display:flex;border:1.5px solid var(--ink);background:var(--well);max-width:600px;margin-left:auto;margin-right:auto}
.search input{flex:1;border:0;background:transparent;padding:15px 18px;font-family:var(--serif);font-size:17px;color:var(--ink);outline:none;min-width:0}
.search input::placeholder{color:#b3a98f}
.search .icon{display:flex;align-items:center;padding:0 16px 0 0;font-family:var(--mono);font-size:13px;color:var(--wash)}
.toggle{display:flex;border:1.5px solid var(--ink);width:fit-content;margin:0 auto}
.toggle button{font-family:var(--mono);font-size:12px;letter-spacing:.04em;text-transform:uppercase;background:transparent;border:0;color:var(--wash);padding:11px 22px;cursor:pointer;transition:all .12s}
.toggle button:not(:last-child){border-right:1.5px solid var(--ink)}
.toggle button.on{background:var(--ink);color:var(--paper)}
.count{font-family:var(--mono);font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--wash)}
.count b{color:var(--ink);font-weight:700}
.count .hint{color:var(--wash);text-transform:none;letter-spacing:.02em}

/* ---- loading and empty states ---- */
.loading,.empty{padding:50px 0;font-family:var(--mono);font-size:13px;color:var(--wash);letter-spacing:.03em;text-align:center}
.loading::after{content:'';display:inline-block;width:1em;text-align:left;animation:dots 1.2s steps(4,end) infinite}
@keyframes dots{0%{content:''}25%{content:'.'}50%{content:'..'}75%{content:'...'}}

/* ---- About-page accordion ---- */
.asections details{border-bottom:1px solid var(--rule-soft)}
.asections summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 0}
.asections summary::-webkit-details-marker{display:none}
.s-title{font-size:19px;font-weight:600}
.s-meta{font-family:var(--mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--wash);display:flex;align-items:center;gap:14px}
.chev{font-family:var(--mono);font-size:14px;color:var(--wash);transition:transform .2s}
details[open] .chev{transform:rotate(90deg)}

/* ---- footer: the family variant of the sitewide stacked footer convention (matched
   to the enterprise pages 2026-07-24, owner order: stacked 12px wash lines and the
   bordered mono Improvement-log chip, replacing the retired note/meta flex split and
   the pill link row; the 2px ink rule stays as the family's print identity) ---- */
/* Footer link-row convention (owner order, 2026-07-30): footer content (credit line,
   link rows, improvement-log link) is centered, not left-aligned, across every page
   that shares this stylesheet. */
footer{border-top:2px solid var(--ink);padding:2.4rem 0 3.2rem;margin-top:50px;color:var(--wash);font-family:var(--serif);font-size:12px;font-weight:400;text-align:center}
footer p{max-width:none;margin:.4rem 0}
footer a{color:var(--wash);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
footer a:hover{color:var(--ink)}
.footer-improvements{display:inline-block;margin-top:.4rem;font-family:var(--mono);font-size:12px;color:var(--wash);text-decoration:none;padding:.15rem .5rem;border:1px solid var(--rule)}
.footer-improvements:hover{color:var(--ink)}

@media (max-width:680px){
  .masthead .inner{flex-direction:column;gap:10px;align-items:flex-start}
  .mast-nav{font-size:11px;gap:16px}
  .toggle{max-width:100%;overflow-x:auto}
  .toggle button{padding:11px 15px}
}
