/* public-site.css — Yarnball public-website semantics added 2026-08-23 (YUM items 974-982).
   DS-level extension layer for the signed-out pages only: the Company nav dropdown, the
   /security section subnav, the live-check start button and details arrow, the resizable
   in-app-check film, and the contact page's job-application marker. Same contract as
   app-extensions.css: app markup points at these names and carries no styling of its own. */

/* --- Company dropdown in the public nav ------------------------------------------- */
.public-nav-group { position: relative; display: inline-flex; }
.public-nav-group-btn { background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
.public-nav-group-btn::after { content: " \25BE"; font-size: 0.8em; color: var(--mute); }
.public-nav-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 180px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow); padding: 6px; display: none; z-index: 60;
}
.public-nav-group.is-open .public-nav-menu { display: block; }
.public-nav-menu-link {
  display: block; padding: 7px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-size: var(--t-body);
}
.public-nav-menu-link:hover { background: var(--surface-2); color: var(--ink); }
/* Collapsed phone menu: the group renders inline, links indented under the label. */
@media (max-width: 760px) {
  .public-nav-links .public-nav-group { display: block; }
  .public-nav-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; background: none; }
  .public-nav-group-btn { display: none; }
}

/* --- /security: section subnav under the header ----------------------------------- */
.public-subnav {
  display: flex; flex-wrap: wrap; gap: 2px 18px; justify-content: center;
  padding: 8px 18px; background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.public-subnav-link {
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: var(--ls-label);
  text-transform: uppercase; color: var(--mute); text-decoration: none; padding: 3px 0;
}
.public-subnav-link:hover, .public-subnav-link.is-here { color: var(--accent); }

/* --- /security: live-check start + details arrow ----------------------------------- */
.livecheck-startwrap { padding: 14px 0 4px; }
.livecheck-details-cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  color: var(--ink); text-decoration: none; font-size: var(--t-body);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; background: var(--surface);
}
.livecheck-details-cta:hover { border-color: var(--ink-2); }
.livecheck-details-arrow { color: var(--accent); font-size: 1.05em; line-height: 1; }

/* --- /security: the in-app recording, aligned with the check card and resizable ----- */
.sec-proof .livecheck-film { max-width: none; width: 100%; margin-top: 26px; }
.livecheck-film-frame {
  resize: both; overflow: hidden; min-width: 300px; max-width: 92vw; min-height: 170px;
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  position: relative; z-index: 5;
}
.livecheck-film-frame video { width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: contain; display: block; background: var(--surface); }
.livecheck-film-resize-hint { font-size: var(--t-small); color: var(--faint); margin-top: 5px; }

/* --- /contact: job-application marker ---------------------------------------------- */
.contact-purpose { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.contact-purpose-pill {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 7px 14px; font: inherit; font-size: var(--t-body); color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.contact-purpose-pill.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.contact-purpose-note { font-size: var(--t-small); color: var(--mute); }

/* --- Security & privacy tabbed section (sp-*), 2026-08-23 ---------------------------
   One section, three short views. Without JS all views render stacked; security-tabs.js
   sets body.sp-tabs-on and shows exactly one. /privacy reuses the data view standalone. */
.sp-head { display: flex; align-items: center; gap: 26px; padding: 16px 48px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sp-head-title { font-size: 21px; font-weight: 700; color: var(--ink); }
.sp-tabs { display: flex; gap: 8px; }
.sp-tab { border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.sp-tab:hover { border-color: var(--ink-2); color: var(--ink); }
.sp-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.sp-shell { padding-top: 8px; }
.sp-view { display: block; }
.sp-tabs-on .sp-view { display: none; }
.sp-tabs-on .sp-view.is-shown { display: block; }
.sp-policy { display: block; }
.sp-arch { display: block; }
.sp-lede-row { display: flex; align-items: baseline; gap: 34px; padding: 28px 0 20px; flex-wrap: wrap; }
.sp-h1 { font-size: 38px; line-height: 1.06; font-weight: 700; letter-spacing: -0.015em; margin: 0; flex: none; }
.sp-h2 { font-size: 21px; font-weight: 700; margin: 0 0 12px; }
.sp-h3 { font-size: 17px; font-weight: 700; margin: 2px 0 4px; }
.sp-lede { font-size: 16px; line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 46em; }
.sp-updated { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin: 0; }
.sp-crosslink { font-size: 14.5px; color: var(--ink-2); margin: 20px 0 0; }

.sp-stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.sp-station { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.sp-station.is-sealed { background: var(--surface); border: 1px solid var(--line); }
.sp-station-no { font-family: var(--mono); font-size: 11px; color: var(--accent); display: block; }
.sp-station-name { font-size: 16.5px; font-weight: 700; display: block; margin-top: 3px; }
.sp-station-sub { font-size: 13px; color: var(--mute); margin: 5px 0 0; line-height: 1.45; }


.sp-twocards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; }
.sp-card-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.sp-card-label.is-accent { color: var(--accent); }
.sp-kv { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.sp-kv:last-child { border-bottom: 0; }
.sp-kv-k { font-weight: 700; width: 140px; flex: none; font-size: 14px; }
.sp-kv-v { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.sp-never { display: flex; gap: 12px; padding: 8px 0; align-items: center; font-size: 15px; font-weight: 600; }
.sp-never-x { font-family: var(--mono); color: var(--accent); font-size: 16px; }
.sp-memory { margin-top: 16px; }
.sp-memgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }

.sp-policy-head { margin-top: 34px; }
.sp-policy-note { font-size: 14px; color: var(--mute); margin: 4px 0 10px; }
.sp-policy-row { display: flex; gap: 44px; border-top: 1px solid var(--line); padding: 20px 0; }
.sp-policy-row:last-child { border-bottom: 1px solid var(--line); }
.sp-policy-lead { width: 360px; flex: none; }
.sp-policy-no { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.sp-policy-short { font-size: 15px; color: var(--ink-2); margin: 4px 0 0; line-height: 1.5; }
.sp-policy-full { flex: 1; font-size: 13.5px; line-height: 1.6; color: var(--mute); }
.sp-policy-full b { color: var(--ink-2); }

.sp-diagram-card { margin-bottom: 22px; }
.sp-diagram { display: flex; align-items: stretch; gap: 0; }
.sp-diag-node { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 14px 14px; text-align: center; }
.sp-diag-node.is-sealed { border: 1px solid var(--line); background: var(--surface); }
.sp-diag-kind { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--mute); }
.sp-diag-node.is-sealed .sp-diag-kind { color: var(--accent); }
.sp-diag-name { display: block; font-size: 16px; font-weight: 700; margin-top: 4px; }
.sp-diag-sub { display: block; font-size: 11.5px; color: var(--mute); margin-top: 3px; }
.sp-diag-wire { width: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: none; }
.sp-diag-wire span { font-family: var(--mono); font-size: 9.5px; color: var(--mute); }
.sp-diag-arrow { font-size: 17px; color: var(--ink-2); }
.sp-diag-cap { font-family: var(--mono); font-size: 11px; color: var(--mute); text-align: center; margin: 12px 0 0; }
.sp-arch-row { display: flex; gap: 44px; border-top: 1px solid var(--line); padding: 18px 0; }
.sp-arch-row:last-child { border-bottom: 1px solid var(--line); }
.sp-arch-k { width: 230px; flex: none; font-weight: 700; font-size: 16px; }
.sp-arch-v { flex: 1; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 58em; }

/* Live check, plain-English restyle: ink states (Unison bans green outside enclave),
   no per-row timings in the visible line — they live behind the raw-measurements toggle. */
.sp-page .livecheck { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 26px; }
/* the lock draws itself in currentColor; is-ok is --trust-green in the app theme, ink here */
.sp-page .sec-lock.is-ok { color: var(--ink); }
.sp-page .livecheck-state { font-size: 19px; font-weight: 700; }
.sp-page .livecheck-step-label { font-size: 15px; font-weight: 700; }
.sp-page .livecheck-step-sub { font-size: 13.5px; color: var(--ink-2); }
.sp-page .livecheck-when { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.sp-page .livecheck-again { background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 9px 20px; font-family: var(--serif, inherit); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.sp-page .livecheck-proof-toggle { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); background: none; border: 0; cursor: pointer; }
.sp-page .livecheck-proof-toggle:hover { color: var(--accent); }

/* Content links inside the tab views: house accent, never browser blue (Ben, 2026-08-23). */
.sp-view a, .sp-view a:visited { color: var(--accent); text-decoration: underline; }
.sp-view a:hover { color: #8E2B27; }
/* Idle start state: centered, one clear entry point with an arrow. */
.livecheck-startwrap { padding: 22px 0 10px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.livecheck-start-hint { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.livecheck-start-arrow { font-size: 15px; }
/* Raw-measurement toggles read as footnotes, not shouting labels. */
.sp-page .livecheck-proof-toggle { font-size: 9.5px; letter-spacing: 0.06em; text-transform: none; color: var(--faint); }
.sp-page .livecheck-proof-toggle:hover { color: var(--accent); }
.sp-crosslink { color: var(--mute); font-size: 14px; }

/* Idle composition (Ben, 2026-08-23: the idle card looked unfinished — floating pill,
   stray hairlines, dead rows). One centered block; empty containers paint nothing. */
.sp-page .livecheck > div:empty { display: none; }
.sp-page .livecheck-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 4px; }
.sp-page .livecheck-again { margin-left: auto; }
.livecheck-nostore { font-family: var(--mono); font-size: 10.5px; color: var(--faint); border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; }
.sp-page .livecheck-startwrap { padding: 26px 0 14px; }
