/* 7-oh.help — shared design system */
:root {
  --navy: #071827;
  --navy-2: #0B2545;
  --navy-3: #123A63;
  --ink: #1A1D23;
  --body: #2B3743;
  --red: #C7342E;
  --red-soft: #FDF2F1;
  --amber: #F2A541;
  --amber-soft: #FFF8E8;
  --teal: #0F6E63;
  --teal-soft: #EEF7F5;
  --paper: #FFFFFF;
  --off: #F4F6F5;
  --line: #D7E0E8;
  --muted: #5A6872;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1100px;
  --space: clamp(1rem, 2.5vw, 1.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--off);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #115C8B; text-underline-offset: 2px; }
a:hover { color: var(--red); }
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .45em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; color: var(--navy-2); }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

/* Utility nav */
.utility-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.utility-nav__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: .75rem 0;
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
}
.utility-nav a {
  color: var(--navy); font-weight: 700; text-decoration: none;
}
.utility-nav a:hover { color: var(--red); text-decoration: underline; }

/* Status */
.statusbar {
  background: var(--red); color: #fff;
  font-size: .86rem; font-weight: 600;
  text-align: center; padding: .65rem 1rem;
}
.statusbar a { color: #FFE2DF; }

/* Site header / pagehead (inner pages) */
.site-header,
.pagehead {
  background: linear-gradient(155deg, #071827 0%, #123A63 55%, #081B33 100%);
  color: #fff; padding: 2.5rem 0 2rem;
  border-bottom: 4px solid var(--red);
}
.site-header h1,
.pagehead h1 { color: #fff; max-width: 22ch; }
.eyebrow {
  color: #F6C15B; text-transform: uppercase;
  letter-spacing: .12em; font-weight: 800; font-size: .72rem;
  margin-bottom: .6rem;
}
.lede { color: #DCE7F1; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 62ch; margin: 0; }

.prose table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
  margin: 1rem 0 1.5rem;
}
.prose th, .prose td {
  border: 1px solid var(--line); padding: .55rem .65rem;
  text-align: left; vertical-align: top;
}
.prose th { background: #EEF3F7; color: var(--navy); font-size: .8rem; }
.checklist { list-style: none; padding: 0; columns: 2; column-gap: 1.5rem; }
.checklist li {
  break-inside: avoid; margin: 0 0 .55rem;
  padding: 0 0 .4rem 1.5rem; border-bottom: 1px dotted #AAB6C1;
  position: relative; min-height: 1.5rem;
}
.checklist li::before {
  content: "□"; position: absolute; left: 0; top: -1px;
  color: var(--navy); font-size: 1.1rem;
}
@media (max-width: 700px) { .checklist { columns: 1; } }
.tools { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.25rem; }
.btn {
  display: inline-block; background: var(--navy-2); color: #fff !important;
  text-decoration: none; border: 0; border-radius: 8px;
  padding: .55rem .9rem; font-weight: 700; font: inherit; cursor: pointer;
}
.btn:hover { background: var(--red); color: #fff !important; }
@media print {
  .utility-nav, .statusbar, .site-footer, .tools, .skip { display: none !important; }
  .pagehead, .site-header { background: none; color: var(--ink); border-bottom: 2px solid var(--red); padding: 0 0 1rem; }
  .pagehead h1, .site-header h1 { color: var(--navy); }
  .pagehead .eyebrow, .site-header .eyebrow { color: var(--muted); }
  .pagehead .lede, .site-header .lede { color: var(--body); }
  main.page { padding: 0; }
}

/* Dual doors */
.doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 1rem;
}
@media (max-width: 720px) {
  .doors { grid-template-columns: 1fr; }
  .utility-nav__inner { flex-direction: column; align-items: flex-start; gap: .35rem; }
}
.door {
  position: relative; overflow: hidden;
  border-radius: 14px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line);
  min-height: 280px;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.door:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(7, 24, 39, .12);
  color: inherit;
}
.door__media {
  aspect-ratio: 16 / 10;
  background: var(--navy) center/cover no-repeat;
}
.door__body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; }
.door__body strong {
  display: block; font-family: var(--serif);
  font-size: 1.45rem; color: var(--navy); margin-bottom: .35rem;
}
.door__body span { color: var(--muted); font-size: .95rem; }

/* Sections / cards for interaction only */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  margin: 1.25rem 0;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.resource-card {
  display: block; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 1.1rem 1.15rem;
  transition: border-color .2s, box-shadow .2s;
}
.resource-card:hover {
  border-color: #2D8DBB;
  box-shadow: 0 6px 18px rgba(7,24,39,.08);
  color: var(--ink);
}
.resource-card strong {
  display: block; color: var(--navy); margin-bottom: .35rem;
  font-family: var(--serif); font-size: 1.15rem;
}

.figure {
  margin: 1.5rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.figure figcaption {
  font-size: .88rem; color: var(--muted); margin-top: .75rem;
}

.notice {
  border-radius: 12px; padding: 1rem 1.15rem; margin: 1.25rem 0;
  border: 1px solid #E9C67A; background: #F7F1E6; color: #4A3510;
  border-left: 6px solid var(--amber);
}
.notice.danger {
  background: var(--red-soft); border-color: #E8B0AA;
  border-left-color: var(--red); color: var(--ink);
}

main.page { padding: 2rem 0 3.5rem; }
.prose { max-width: 70ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
.prose .table-wrap table { min-width: 42rem; }

.contact {
  background: var(--navy); color: #D7E6EF;
  border-radius: 14px; padding: 1.6rem 1.7rem; margin: 2rem 0;
}
.contact h2 { color: #fff; }
.contact h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .35rem;
}
.contact a { color: #A7DDF7; }
.contact-intro { margin: 0 0 1.15rem; max-width: 62ch; }
.contact-lanes {
  display: grid;
  gap: 1.15rem;
  margin: 0 0 1.15rem;
}
.contact-lanes > div {
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
.contact-lanes > div:first-child { padding-top: 0; border-top: 0; }
.contact-lanes p { margin: 0 0 .45rem; }
.contact-lanes p:last-child { margin-bottom: 0; }
.contact-note {
  font-size: .92rem;
  opacity: .9;
  margin: 0;
  max-width: 62ch;
}
@media (min-width: 820px) {
  .contact-lanes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .contact-lanes > div {
    padding-top: 0;
    border-top: 0;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255,255,255,.18);
  }
  .contact-lanes > div:first-child {
    padding-left: 0;
    border-left: 0;
  }
}
.pill {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px;
  background: #21445c; color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .03em; margin-bottom: .75rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted); font-size: .9rem;
}
.site-footer a { color: var(--navy-2); font-weight: 600; }

/* Splash intro */
.splash {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: end stretch;
  background: #071827 center/cover no-repeat;
  color: #fff;
  transition: opacity .9s ease, visibility .9s ease;
}
.splash::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,24,39,.78) 0%, rgba(7,24,39,.35) 48%, rgba(7,24,39,.15) 100%);
}
.splash.is-done {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.splash__inner {
  position: relative; z-index: 1;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 8vh, 5rem);
  max-width: 38rem;
}
.splash__brand {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  line-height: .95; margin: 0 0 .5rem;
  letter-spacing: -.02em;
}
.splash__line {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: #E2ECF4; max-width: 28ch; margin: 0 0 1.5rem;
}
.splash__skip {
  appearance: none; border: 1px solid rgba(255,255,255,.45);
  background: transparent; color: #fff;
  font: inherit; font-weight: 700; font-size: .9rem;
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
}
.splash__skip:hover { background: rgba(255,255,255,.12); }

@media (prefers-reduced-motion: reduce) {
  .splash { display: none !important; }
  .door, .splash { transition: none !important; }
}

/* Inner page hero */
.pagehead {
  background: linear-gradient(155deg, #071827 0%, #123A63 55%, #081B33 100%);
  color: #fff; padding: 2.5rem 0 2rem;
  border-bottom: 4px solid var(--red);
}
.pagehead h1 { color: #fff; }
.pagehead .lede { color: #DCE7F1; max-width: 62ch; }
