/*!
 * water-refresh.css -- WaterByTheBook design system (2026-07-06 mockup refresh).
 *
 * The shared visual system extracted faithfully from the polished mockups
 * (_agents/design/WaterByTheBook-Site-2026-07-06.dc.html + -Mobile-). VISUAL ONLY:
 * these are reusable classes the theme templates + tool mu-plugins emit; NO data,
 * logic, monetization, or honesty-rail copy lives here. Enqueued site-wide.
 *
 * Type:  Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (labels)
 * Color: navy #0B1B2B  teal #0C7A86  cyan #46C7D9  bg #F4F7F9  panel #EAF1F4
 * ASCII-only.
 */

:root {
  --wb-bg: #F4F7F9;
  --wb-navy: #0B1B2B;
  --wb-navy-2: #091622;
  --wb-teal: #0C7A86;
  --wb-cyan: #46C7D9;
  --wb-panel: #EAF1F4;
  --wb-ink: #0B1B2B;
  --wb-muted: #50616E;
  --wb-mono-muted: #8499A6;
  --wb-line: rgba(11, 27, 43, 0.12);
  --wb-line-soft: rgba(11, 27, 43, 0.08);
  --wb-good: #1E8E5A;
  --wb-caution: #E0922B;
  --wb-alert: #D6453D;
  --wb-card-shadow: 0 10px 34px rgba(11, 27, 43, 0.10);
  --wb-radius: 10px;
  --wb-radius-lg: 12px;
  --wb-max: 1240px;
  --wb-pad-x: 44px;
  --wb-display: 'Space Grotesk', system-ui, sans-serif;
  --wb-body: 'IBM Plex Sans', system-ui, sans-serif;
  --wb-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---- base / reset (scoped to the refreshed surfaces) ------------------ */
.wb-scope, body.wb-refresh {
  font-family: var(--wb-body);
  color: var(--wb-ink);
  background: var(--wb-bg);
  -webkit-font-smoothing: antialiased;
}
.wb-scope *,
body.wb-refresh .wb-scope * { box-sizing: border-box; }
.wb-scope ::selection { background: var(--wb-teal); color: var(--wb-bg); }
.wb-scope a { transition: color .15s ease; }
.wb-scope img, .wb-scope svg { max-width: 100%; }

.wb-wrap { max-width: var(--wb-max); margin: 0 auto; padding-left: var(--wb-pad-x); padding-right: var(--wb-pad-x); }

/* ---- eyebrow / headings ---------------------------------------------- */
.wb-eyebrow {
  font-family: var(--wb-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--wb-teal); margin-bottom: 14px;
}
.wb-eyebrow.is-cyan { color: var(--wb-cyan); }
.wb-h1 { font-family: var(--wb-display); font-weight: 600; font-size: 56px; line-height: 1.0; letter-spacing: -0.025em; margin: 0 0 18px; }
.wb-h2 { font-family: var(--wb-display); font-weight: 600; font-size: 38px; line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 12px; }
.wb-h3 { font-family: var(--wb-display); font-weight: 600; font-size: 21px; margin: 0 0 8px; }
.wb-lead { font-size: 18px; line-height: 1.55; color: var(--wb-muted); margin: 0 0 28px; }
.wb-body { font-size: 16px; line-height: 1.55; color: var(--wb-muted); }
.wb-mono-note { font-family: var(--wb-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--wb-mono-muted); }

/* ---- buttons / links -------------------------------------------------- */
.wb-btn { display: inline-block; text-decoration: none; font-family: var(--wb-body); font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 6px; border: none; cursor: pointer; line-height: 1.3; }
.wb-btn-teal { background: var(--wb-teal); color: #fff; }
.wb-btn-navy { background: var(--wb-navy); color: var(--wb-bg); }
.wb-btn-teal:hover, .wb-btn-teal:focus-visible { background: #0a6b76; }
.wb-btn-navy:hover, .wb-btn-navy:focus-visible { background: #14304a; }
.wb-link { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--wb-teal); }
.wb-link:hover { color: #0a6b76; }
.wb-scope a:focus-visible, .wb-scope button:focus-visible, .wb-scope input:focus-visible {
  outline: 2px solid var(--wb-teal); outline-offset: 2px;
}

/* ---- utility bar ------------------------------------------------------ */
.wb-utility { background: var(--wb-navy); color: #7FB6C7; font-family: var(--wb-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.wb-utility .wb-wrap { padding-top: 9px; padding-bottom: 9px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wb-utility .is-cyan { color: var(--wb-cyan); }

/* ---- header + nav ----------------------------------------------------- */
.wb-header { background: #fff; border-bottom: 1px solid var(--wb-line); position: sticky; top: 0; z-index: 40; }
.wb-header .wb-wrap { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wb-wordmark { text-decoration: none; color: var(--wb-navy); font-family: var(--wb-display); font-size: 23px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.wb-wordmark .thin { font-weight: 400; color: var(--wb-teal); }
.wb-wordmark .dot { color: var(--wb-teal); }
.wb-nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }
.wb-nav a { text-decoration: none; color: var(--wb-navy); }
.wb-nav a:hover, .wb-nav a:focus-visible { color: var(--wb-teal); }
.wb-header-cta { white-space: nowrap; padding: 10px 18px; font-size: 14px; }
.wb-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.wb-burger span { width: 22px; height: 1.8px; background: var(--wb-navy); display: block; }

/* ---- sections --------------------------------------------------------- */
.wb-section { border-bottom: 1px solid var(--wb-line); }
.wb-section > .wb-wrap { padding-top: 60px; padding-bottom: 64px; }
.wb-section.is-dark { background: var(--wb-navy); color: #DCECF2; }
.wb-section.is-teal { background: var(--wb-teal); color: #EAF7F8; }
.wb-section.is-white { background: #fff; }
.wb-section.is-panel { background: var(--wb-panel); }

/* ---- hero ------------------------------------------------------------- */
.wb-hero .wb-wrap { padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.wb-hero-copy { padding: 64px 48px 60px 44px; display: flex; flex-direction: column; justify-content: center; }
.wb-hero-panel { background: var(--wb-panel); border-left: 1px solid var(--wb-line); padding: 40px; display: flex; align-items: center; }
.wb-zip-form { display: flex; border: 2px solid var(--wb-navy); border-radius: 8px; overflow: hidden; max-width: 400px; }
.wb-zip-form input { flex: 1; border: none; outline: none; font-family: var(--wb-mono); font-size: 17px; padding: 15px 18px; color: var(--wb-navy); background: #fff; }
.wb-zip-form button { border: none; background: var(--wb-teal); color: #fff; font-family: var(--wb-body); font-weight: 600; font-size: 15px; padding: 0 22px; cursor: pointer; white-space: nowrap; }
.wb-try { margin-top: 16px; display: flex; align-items: center; gap: 12px; font-family: var(--wb-mono); font-size: 12px; color: var(--wb-mono-muted); flex-wrap: wrap; }
.wb-try a, .wb-try span.chip { cursor: pointer; padding: 3px 8px; border-radius: 4px; border: 1px solid rgba(11,27,43,0.2); color: var(--wb-muted); text-decoration: none; }
.wb-try a.is-active { border-color: var(--wb-teal); color: var(--wb-teal); background: rgba(12,122,134,0.08); }

/* ---- report card ------------------------------------------------------ */
.wb-report { width: 100%; background: #fff; border-radius: var(--wb-radius-lg); box-shadow: var(--wb-card-shadow); overflow: hidden; border: 1px solid var(--wb-line-soft); }
.wb-report-head { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(11,27,43,0.1); gap: 12px; }
.wb-report-kicker { font-family: var(--wb-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wb-mono-muted); }
.wb-report-place { font-family: var(--wb-display); font-weight: 600; font-size: 17px; }
.wb-grade { width: 52px; height: 52px; border-radius: 9px; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--wb-display); font-weight: 700; font-size: 23px; flex: none; }
.wb-grade.is-good { background: var(--wb-good); } .wb-grade.is-caution { background: var(--wb-caution); } .wb-grade.is-alert { background: var(--wb-alert); } .wb-grade.is-unknown { background: var(--wb-mono-muted); }
.wb-report-rows { padding: 6px 22px 18px; }
.wb-report-row { padding: 13px 0; border-bottom: 1px solid var(--wb-line-soft); }
.wb-report-row:last-child { border-bottom: none; }
.wb-report-row .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.wb-report-row .name { font-weight: 600; font-size: 15px; }
.wb-report-row .tag { font-family: var(--wb-mono); font-size: 12px; font-weight: 600; }
.wb-report-row .tag.is-good { color: var(--wb-good); } .wb-report-row .tag.is-caution { color: var(--wb-caution); } .wb-report-row .tag.is-alert { color: var(--wb-alert); }
.wb-bar { height: 6px; background: #EEF2F4; border-radius: 3px; overflow: hidden; }
.wb-bar > span { display: block; height: 100%; }
.wb-bar > span.is-good { background: var(--wb-good); } .wb-bar > span.is-caution { background: var(--wb-caution); } .wb-bar > span.is-alert { background: var(--wb-alert); }
.wb-report-foot { padding: 14px 22px; background: var(--wb-bg); border-top: 1px solid rgba(11,27,43,0.1); font-family: var(--wb-mono); font-size: 11.5px; color: var(--wb-muted); }

/* ---- match panel + caught/slips (dark) -------------------------------- */
.wb-match-panel { background: #102A3C; border: 1px solid rgba(70,199,217,0.3); border-radius: var(--wb-radius); padding: 22px 24px; }
.wb-match-panel .kicker { font-family: var(--wb-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #7FB6C7; margin-bottom: 8px; }
.wb-match-panel .name { font-family: var(--wb-display); font-weight: 600; font-size: 22px; margin-bottom: 6px; line-height: 1.1; }
.wb-match-panel .verdict { font-size: 14.5px; line-height: 1.5; }
.wb-catch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.wb-catch { border-radius: var(--wb-radius); padding: 22px 24px; }
.wb-catch.is-caught { border: 1px solid rgba(30,142,90,0.45); background: rgba(30,142,90,0.08); }
.wb-catch.is-slips { border: 1px solid rgba(224,146,43,0.5); background: rgba(224,146,43,0.10); }
.wb-catch.is-clear { border: 1px solid rgba(70,199,217,0.35); background: rgba(70,199,217,0.07); }
.wb-catch .lbl { font-family: var(--wb-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.wb-catch.is-caught .lbl { color: #5FD39B; } .wb-catch.is-slips .lbl { color: #F2B66A; } .wb-catch.is-clear .lbl { color: #F2B66A; }
.wb-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.wb-chip { font-size: 14px; padding: 7px 13px; border-radius: 18px; background: rgba(30,142,90,0.18); color: #9FE7C2; font-weight: 500; }
.wb-slip-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wb-slip-row .s { font-size: 15px; color: #FBD9A6; font-weight: 600; }
.wb-slip-row .n { font-family: var(--wb-mono); font-size: 12px; color: var(--wb-cyan); }
.wb-clear-note { font-size: 14.5px; color: #9CC0CE; line-height: 1.5; }

/* ---- registry table --------------------------------------------------- */
.wb-search { display: flex; border: 1.5px solid var(--wb-navy); border-radius: 8px; background: #fff; max-width: 680px; overflow: hidden; }
.wb-search .ic { display: flex; align-items: center; padding: 0 16px; font-family: var(--wb-mono); color: var(--wb-mono-muted); font-size: 18px; }
.wb-search input { flex: 1; border: none; outline: none; font-family: var(--wb-mono); font-size: 15px; padding: 14px 6px; background: #fff; color: var(--wb-navy); }
.wb-registry { display: grid; grid-template-columns: 200px 1fr; border: 1.5px solid var(--wb-navy); border-radius: 8px; overflow: hidden; background: #fff; }
.wb-facets { padding: 22px; border-right: 1.5px solid var(--wb-navy); font-family: var(--wb-mono); background: var(--wb-bg); }
.wb-facets .h { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wb-mono-muted); margin-bottom: 14px; }
.wb-facets label { display: flex; gap: 9px; align-items: center; font-size: 13px; margin-bottom: 11px; cursor: pointer; }
.wb-facets .box { width: 13px; height: 13px; border: 1.5px solid var(--wb-navy); flex: none; }
.wb-facets .box.on { background: var(--wb-navy); }
.wb-regtable { font-family: var(--wb-mono); }
.wb-reg-head, .wb-reg-row { display: grid; grid-template-columns: 1.6fr 1fr 56px 56px 1.1fr; align-items: center; }
.wb-reg-head { background: var(--wb-navy); color: #DCECF2; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.wb-reg-head span { padding: 12px 8px; } .wb-reg-head span:first-child { padding-left: 18px; }
.wb-reg-row { border-bottom: 1px solid rgba(11,27,43,0.1); background: #fff; }
.wb-reg-row:nth-child(even) { background: #F8FAFB; }
.wb-reg-row:hover { background: #EFF5F7; }
.wb-reg-row .part { padding: 13px 18px; font-family: var(--wb-body); font-weight: 600; font-size: 14px; color: var(--wb-navy); }
.wb-reg-row .brand { padding: 13px 8px; font-size: 13px; color: var(--wb-muted); }
.wb-reg-row .c { padding: 13px 8px; text-align: center; font-size: 14px; }
.wb-reg-row .c.y { color: var(--wb-good); } .wb-reg-row .c.n { color: var(--wb-alert); }
.wb-reg-row .c.c53 { font-weight: 600; }
.wb-reg-row .status { padding: 13px 12px; font-size: 10.5px; letter-spacing: 0.06em; }
.wb-reg-row .status.verified { color: var(--wb-good); } .wb-reg-row .status.unlisted { color: var(--wb-alert); } .wb-reg-row .status.disputed { color: var(--wb-caution); }
.wb-reg-empty { padding: 28px 18px; font-family: var(--wb-body); font-size: 14px; color: var(--wb-mono-muted); }

/* ---- study band ------------------------------------------------------- */
.wb-study .wb-wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding-top: 54px; padding-bottom: 54px; }
.wb-study .num { font-family: var(--wb-display); font-weight: 700; font-size: 104px; line-height: 0.86; letter-spacing: -0.03em; }
.wb-study .num small { font-size: 54px; }
.wb-study h2 { font-family: var(--wb-display); font-weight: 600; font-size: 28px; line-height: 1.12; margin: 0 0 8px; max-width: 640px; }
.wb-study p { font-size: 15.5px; line-height: 1.5; color: #CDEBED; margin: 0; max-width: 600px; }
.wb-study .eyebrow { color: #AEE5E8; }

/* ---- guides + tools grids -------------------------------------------- */
.wb-grid-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 20px; }
.wb-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wb-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wb-card { background: #fff; border: 1px solid var(--wb-line); border-radius: var(--wb-radius); padding: 26px 22px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--wb-navy); }
.wb-card:hover { border-color: rgba(12,122,134,0.5); }
.wb-card .ic { width: 52px; height: 52px; border-radius: 9px; background: #E2F0F2; display: flex; align-items: center; justify-content: center; flex: none; }
.wb-card .title { font-family: var(--wb-display); font-weight: 600; font-size: 20px; margin-bottom: 5px; }
.wb-card .desc { font-size: 13.5px; color: var(--wb-muted); line-height: 1.5; }
.wb-tool { border: 1px solid var(--wb-line); border-radius: var(--wb-radius); padding: 28px; background: var(--wb-bg); }
.wb-tool .idx { font-family: var(--wb-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--wb-teal); margin-bottom: 12px; }
.wb-tool p { font-size: 14px; line-height: 1.55; color: var(--wb-muted); margin: 0 0 16px; }

/* ---- email ------------------------------------------------------------ */
.wb-email .wb-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding-top: 54px; padding-bottom: 54px; }
.wb-email-form { display: flex; flex-direction: column; gap: 10px; }
.wb-email-form input { font-family: var(--wb-body); font-size: 15px; padding: 14px 16px; border: 1px solid rgba(11,27,43,0.2); border-radius: 8px; background: #fff; color: var(--wb-navy); outline: none; }
.wb-email-form button { font-family: var(--wb-body); font-weight: 600; font-size: 15px; padding: 14px 16px; border: none; border-radius: 8px; background: var(--wb-navy); color: var(--wb-bg); cursor: pointer; }

/* ---- footer ----------------------------------------------------------- */
.wb-footer { background: var(--wb-navy-2); color: #7FB6C7; }
.wb-footer .wb-wrap { padding-top: 54px; padding-bottom: 30px; }
.wb-footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.wb-footer .brand { font-family: var(--wb-display); font-weight: 600; font-size: 22px; color: #DCECF2; margin-bottom: 12px; }
.wb-footer .brand .thin { font-weight: 400; color: var(--wb-cyan); }
.wb-footer p { font-size: 14px; line-height: 1.55; max-width: 300px; margin: 0; }
.wb-footer .col-h { font-family: var(--wb-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wb-cyan); margin-bottom: 16px; }
.wb-footer .links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.wb-footer a { text-decoration: none; color: #7FB6C7; }
.wb-footer a:hover { color: #DCECF2; }
.wb-footer-legal { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(127,182,199,0.2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--wb-mono); font-size: 11.5px; letter-spacing: 0.06em; }

/* ---- money / disclosure (restyled, not removed) ---------------------- */
.wb-buy { margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--wb-line); border-radius: 8px; background: #fff; font-size: 14px; }
.wb-buy .lab { font-weight: 700; color: var(--wb-teal); }
.wb-buy a { color: var(--wb-teal); font-weight: 600; }
.wb-buy .disc { margin: 8px 0 0; font-size: 12px; color: var(--wb-mono-muted); font-style: italic; }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 980px) {
  :root { --wb-pad-x: 24px; }
  .wb-h1 { font-size: 42px; }
  .wb-h2 { font-size: 30px; }
  .wb-nav, .wb-header-cta { display: none; }
  .wb-burger { display: flex; }
  .wb-hero .wb-wrap { grid-template-columns: 1fr; }
  .wb-hero-copy { padding: 30px 24px 24px; }
  .wb-hero-panel { border-left: none; border-top: 1px solid var(--wb-line); padding: 24px; }
  .wb-catch-grid, .wb-email .wb-wrap { grid-template-columns: 1fr; }
  .wb-grid-4 { grid-template-columns: 1fr 1fr; }
  .wb-grid-3 { grid-template-columns: 1fr; }
  .wb-study .wb-wrap { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .wb-study .num { font-size: 84px; }
  .wb-footer-cols { grid-template-columns: 1fr 1fr; }
  .wb-registry { grid-template-columns: 1fr; }
  .wb-facets { border-right: none; border-bottom: 1.5px solid var(--wb-navy); }
}
@media (max-width: 640px) {
  .wb-h1 { font-size: 34px; }
  .wb-section > .wb-wrap { padding-top: 30px; padding-bottom: 34px; }
  .wb-grid-4 { grid-template-columns: 1fr; }
  .wb-footer-cols { grid-template-columns: 1fr; }
  .wb-reg-head { display: none; }
  .wb-reg-row { grid-template-columns: 1fr auto; grid-auto-rows: min-content; row-gap: 2px; padding: 12px 0; }
  .wb-reg-row .brand { padding-left: 18px; } .wb-reg-row .c, .wb-reg-row .status { padding-left: 18px; text-align: left; }
  .wb-utility .wb-wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---- reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .wb-scope * { transition: none !important; }
}
