/* Self-hosted type. The published privacy notice states "no third-party fonts or
   scripts"; loading these from fonts.googleapis.com/fonts.gstatic.com sent every
   visitor's IP to a third party and made that sentence false on every page --
   including /privacy itself. Both faces are SIL Open Font License (see
   /static/fonts/OFL-*.txt) and ship from this origin, so the notice is now true and
   `style-src`/`font-src` no longer need a third-party allowance. */
@font-face {
  font-family: "Fraunces";
  src: url("/static/fonts/Fraunces-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/static/fonts/DMSans-VF.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* Trilatic — sovereign design system (navy + gold). Self-hosted, no third-party JS.
   Palette/type/scale follow Development/PORTFOLIO_DESIGN_GUIDELINES.md ("sovereign" family). */

:root {
  --pri: #1e3a5f;
  --pri-d: #0f172a;
  --gold: #d4a843;
  --gold-d: #b8892f;
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ea;
  --border: #d9d4c6;
  --tx: #0f172a;
  --tx-muted: #4b5563;
  --tx-2: #374151;
  --link: #0f4c81;
  --focus: #d4a843;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #10192b;
  --surface-2: #16223a;
  --border: #263349;
  --tx: #f3f4f6;
  --tx-muted: #b7c0cf;
  --tx-2: #d7dce4;
  --link: #9fc4ec;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --surface: #10192b;
    --surface-2: #16223a;
    --border: #263349;
    --tx: #f3f4f6;
    --tx-muted: #b7c0cf;
    --tx-2: #d7dce4;
    --link: #9fc4ec;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

.rh-shell {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 var(--space-3) var(--space-6);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--tx);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: var(--space-4) 0 var(--space-2); }
h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: var(--space-5) 0 var(--space-2); }
h3 { font-size: 1.1rem; margin: var(--space-4) 0 var(--space-1); }
p { color: var(--tx-2); margin: var(--space-2) 0; }
strong { color: var(--tx); }

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--gold-d); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.rh-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pri-d);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.rh-skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header/nav */
.rh-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.rh-header-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.rh-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--tx);
  text-decoration: none;
}
.rh-brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.rh-brand-mark { width: 1.45rem; height: 1.45rem; flex: none; }
.rh-brand:hover { color: var(--gold-d); }
.rh-header-controls { display: flex; align-items: center; gap: var(--space-2); }
.rh-nav { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.rh-nav a {
  color: var(--tx-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.rh-nav a:hover { color: var(--gold-d); text-decoration: underline; }

.rh-theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--tx);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.rh-theme-toggle:hover { border-color: var(--gold); }

/* Nav disclosure: <details>/<summary> works with zero JS. Desktop keeps the nav always
   visible (summary marker + details wrapper are visually neutralized above 48rem); the
   mobile rules below turn the summary into a compact "Menu" button and the nav into a
   dropdown panel. */
.rh-nav-details { display: contents; }
.rh-menu-toggle {
  display: none;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--tx);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.rh-menu-toggle::-webkit-details-marker { display: none; }
.rh-menu-toggle:hover { border-color: var(--gold); }

/* ---------------------------------------------------------------- hero */
.rh-hero {
  background: linear-gradient(135deg, var(--pri-d) 0%, var(--pri) 55%, var(--gold-d) 100%);
  color: #f6f3ea;
  padding: var(--space-6) var(--space-3);
}
.rh-hero-inner { max-width: 56rem; margin: 0 auto; }
.rh-hero h1 { color: #fff; margin-top: 0; }
.rh-hero p { color: #eef0f5; max-width: 42rem; font-size: 1.05rem; }
.rh-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 var(--space-1);
}

/* ---------------------------------------------------------------- status box */
.status,
.rh-status {
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin: var(--space-3) 0;
}
.rh-hero .status,
.rh-hero .rh-status {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  border-left-color: var(--gold);
  color: #fff;
}
.rh-hero .status strong,
.rh-hero .rh-status strong { color: #fff; }

/* ---------------------------------------------------------------- pillars/cards */
.rh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.rh-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.rh-card h3 { margin-top: 0; }
.rh-card p { font-size: 0.92rem; }
.rh-card a.rh-card-link {
  display: inline-block;
  margin-top: var(--space-1);
  font-weight: 600;
  text-decoration: none;
}
.rh-card a.rh-card-link:hover { text-decoration: underline; }

.rh-pillar {
  border-top: 3px solid var(--gold);
  padding-top: var(--space-2);
}

/* ---------------------------------------------------------------- stat tiles */
.rh-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
.rh-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: left;
}
.rh-stat .rh-stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--pri);
  display: block;
}
[data-theme="dark"] .rh-stat .rh-stat-value,
@media (prefers-color-scheme: dark) { .rh-stat .rh-stat-value { color: var(--gold); } }
.rh-stat .rh-stat-label { font-size: 0.82rem; color: var(--tx-muted); }
.rh-stat.rh-stat-suppressed .rh-stat-value {
  color: var(--tx-muted);
  font-size: 1.1rem;
}

/* ---------------------------------------------------------------- tables */
.table-wrap, .rh-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--surface);
  font-size: 0.92rem;
}
td, th {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}
th { background: var(--surface-2); font-family: var(--font-body); font-weight: 700; color: var(--tx); }
tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 40%, transparent); }

/* ---------------------------------------------------------------- misc content */
ul, ol { padding-left: 1.3rem; color: var(--tx-2); }
li { margin: 0.25rem 0; overflow-wrap: anywhere; word-break: break-word; }
code {
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
p { overflow-wrap: anywhere; }
blockquote {
  border-left: 3px solid var(--gold);
  margin: var(--space-3) 0;
  padding: 0.4rem var(--space-3);
  color: var(--tx-muted);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.k { color: var(--tx-muted); font-size: 0.9rem; }

/* ---------------------------------------------------------------- timeline (SVG wrapper) */
.rh-timeline { margin: var(--space-4) 0; }
.rh-timeline svg { max-width: 100%; height: auto; display: block; }
.rh-timeline text { font-family: var(--font-body); }
/* Two SVGs, CSS-switched (not JS): the desktop horizontal layout overlaps its own
   labels below ~640px, so a second, vertically-stacked SVG with the same stage
   labels and business-day counts takes over at that breakpoint instead. */
.rh-timeline-mobile { display: none; }
@media (max-width: 40rem) {
  .rh-timeline-desktop { display: none; }
  .rh-timeline-mobile { display: block; }
}

/* ---------------------------------------------------------------- workbench product page */
.rh-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--pri);
}
[data-theme="dark"] .rh-price { color: var(--gold); }
.rh-btn {
  display: inline-block;
  background: var(--pri);
  color: #fff;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.rh-btn:hover { background: var(--gold-d); color: #fff; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  background: var(--surface);
  color: var(--tx);
  width: 100%;
  max-width: 28rem;
}

/* ---------------------------------------------------------------- forms (workbench signup) */
.rh-field { margin: var(--space-3) 0; max-width: 28rem; }
.rh-field label {
  display: block;
  font-weight: 600;
  color: var(--tx);
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}
.rh-required { color: var(--gold-d); }
.rh-input {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  color: var(--tx);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.rh-input:invalid:not(:placeholder-shown) { border-color: #b3261e; }
.rh-field-help { font-size: 0.82rem; color: var(--tx-muted); margin: 0.3rem 0 0; }
.rh-field-error {
  font-size: 0.85rem;
  color: #b3261e;
  margin: 0.3rem 0 0;
  font-weight: 600;
}
.rh-form-error {
  border: 1px solid #b3261e;
  border-left: 4px solid #b3261e;
  background: color-mix(in srgb, #b3261e 8%, var(--surface));
  color: var(--tx);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  margin: var(--space-2) 0;
  font-size: 0.92rem;
}
.rh-form-success {
  border: 1px solid var(--gold-d);
  border-left: 4px solid var(--gold-d);
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
  color: var(--tx);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  margin: var(--space-2) 0;
  font-size: 0.92rem;
}
.rh-btn-block { width: 100%; text-align: center; border: none; }
@media (min-width: 30rem) {
  .rh-btn-block { width: auto; }
}

/* ---------------------------------------------------------------- footer */
footer {
  margin-top: var(--space-6);
  padding: var(--space-4) 0 var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--tx-muted);
}
footer nav a { margin-right: var(--space-3); }
footer a { color: var(--link); }
.rh-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.rh-footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.rh-footer-links a { margin-right: 0; }
@media (min-width: 48rem) {
  .rh-footer-grid { grid-template-columns: 1fr 2fr; gap: var(--space-4); }
  .rh-footer-links { flex-direction: row; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 48rem) {
  .rh-header-inner { flex-wrap: nowrap; }
  .rh-menu-toggle { display: inline-block; }
  .rh-nav-details {
    display: block;
    position: relative;
  }
  .rh-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 12rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-2);
    z-index: 20;
  }
  .rh-nav-details[open] .rh-nav { display: flex; }
  .rh-nav a { padding: 0.4rem 0.2rem; width: 100%; }
}

@media (max-width: 40rem) {
  .rh-hero { padding: var(--space-4) var(--space-2); }
  .rh-shell { padding-left: var(--space-2); padding-right: var(--space-2); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Footer nav is grouped so the process surface never sits in the same run of links as
   anything we sell. See seo.public_footer's `groups`. */
.rh-footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--space-4); align-items: start; }
.rh-footer-col { display: flex; flex-direction: column; gap: 0.28rem; }
.rh-footer-col h3 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tx-muted); margin: 0 0 0.2rem; font-weight: 700; }
.rh-footer-col a { font-size: 0.86rem; }

/* Server-rendered Workbench journey (2026-09-13): printable award + draft/notice text. */
.rh-pre { white-space: pre-wrap; word-wrap: break-word; font-family: inherit; font-size: 1rem; background: var(--surface-2, #f5f6f8); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3); }
@media print {
  .rh-noprint, header, footer, nav, .rh-footer-links { display: none !important; }
  .rh-print { border: none; box-shadow: none; }
}
