/* Vetted Protocols — ops field desk (full redesign) */
:root {
  --bg: #e7eef2;
  --bg-elev: #f7fafb;
  --ink: #0b1c24;
  --muted: #4a5d68;
  --line: #c5d2da;
  --teal: #1f6f78;
  --teal-deep: #124f56;
  --copper: #c45c26;
  --dark: #0b1c24;
  --light: #f7fafb;
  --max: 1120px;
  --prose: 40rem;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", "Georgia", serif;
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--teal-deep);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--copper); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 1000;
  background: var(--dark);
  color: var(--light);
  padding: 0.5rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* —— Site chrome —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  color: var(--light);
  border-bottom: 3px solid var(--copper);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.95rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--light);
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.primary-nav a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(247, 250, 251, 0.82);
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--copper);
}

.site-footer {
  background: var(--dark);
  color: rgba(247, 250, 251, 0.85);
  padding: 2rem 1.25rem 2.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.site-footer .domain {
  font-family: var(--sans);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.site-footer a { color: #fff; }

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.88rem;
}

.footer-nav a { text-decoration: none; color: rgba(247,250,251,0.85); }
.footer-nav a:hover { color: #fff; }

.updated {
  font-family: var(--sans);
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0;
}

/* —— Page shells —— */
.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.page-hero {
  background: linear-gradient(135deg, #0b1c24 0%, #124f56 55%, #1f6f78 100%);
  color: var(--light);
  padding: 3rem 1.25rem 3.25rem;
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero .kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0c4a8;
  margin: 0 0 0.75rem;
}

.page-hero h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 16ch;
  color: #fff;
}

.page-hero .lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  max-width: 38rem;
  margin: 0 0 1.5rem;
  color: rgba(247, 250, 251, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  display: inline-block;
}

.btn-primary {
  background: var(--copper);
  color: #fff;
}
.btn-primary:hover { background: #a84b1d; color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: rgba(247,250,251,0.45);
  color: #fff;
}
.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* Homepage modules */
.route-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: -2rem auto 2.5rem;
  max-width: var(--max);
  position: relative;
  z-index: 2;
}

.route-card {
  background: var(--bg-elev);
  padding: 1.35rem 1.2rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 9rem;
  transition: background 0.15s ease;
}
.route-card:hover { background: #fff; }
.route-card .r-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
}
.route-card .r-title {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}
.route-card .r-copy {
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  margin-top: auto;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem 1.75rem;
}

.panel h2 {
  font-family: var(--sans);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.panel .meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--teal);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}

.panel p { margin: 0 0 0.9rem; }
.panel p:last-child { margin-bottom: 0; }

.panel-dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--light);
}
.panel-dark h2 { color: #fff; }
.panel-dark a { color: #f0c4a8; }
.panel-dark .meta { color: #8ec5cb; }

.steps {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.steps li { margin-bottom: 0.4rem; }

.check-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.check-box {
  background: var(--bg-elev);
  border-top: 4px solid var(--teal);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 1.4rem 1.35rem;
}

.check-box h2 {
  font-family: var(--sans);
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
}

.check-box ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.check-box li { margin-bottom: 0.35rem; }

.indep-band {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1rem;
}

.indep-band .mark {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--copper);
}

.indep-band h2 {
  font-family: var(--sans);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.indep-band p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* Inner content pages */
.inner-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 0.5rem;
}

.inner-hero h1 {
  font-family: var(--sans);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.inner-hero .lede {
  max-width: 42rem;
  color: var(--muted);
  margin: 0;
  font-size: 1.12rem;
}

.content-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.content-shell.with-rail {
  grid-template-columns: 12rem minmax(0, 1fr);
}

.side-rail {
  font-family: var(--sans);
  font-size: 0.85rem;
  position: sticky;
  top: 5rem;
  align-self: start;
}

.side-rail p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 700;
}

.side-rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.side-rail a {
  display: block;
  padding: 0.4rem 0 0.4rem 0.85rem;
  text-decoration: none;
  color: var(--muted);
}

.side-rail a:hover,
.side-rail a[aria-current="true"] {
  color: var(--teal-deep);
  border-left: 2px solid var(--copper);
  margin-left: -2px;
  padding-left: calc(0.85rem + 2px);
}

.article {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 1.75rem 1.6rem 2rem;
  max-width: 48rem;
}

.article h2 {
  font-family: var(--sans);
  font-size: 1.3rem;
  margin: 2rem 0 0.7rem;
  letter-spacing: -0.01em;
}
.article h2:first-child { margin-top: 0; }

.article h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  margin: 1.4rem 0 0.5rem;
}

.article p { margin: 0 0 1rem; }

.protocol-block,
.checklist-block {
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  background: #fff;
  padding: 1.25rem 1.2rem 1.35rem;
  margin: 1.25rem 0 1.75rem;
}

.protocol-block .id,
.checklist-block .id {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin: 0 0 0.4rem;
}

.pull {
  margin: 1.5rem 0;
  padding: 0.85rem 0 0.85rem 1.15rem;
  border-left: 3px solid var(--copper);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
}

/* Cookie */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--dark);
  color: var(--light);
  padding: 1rem 1.25rem;
  border-top: 3px solid var(--copper);
}

.cookie-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.cookie-row a { color: #f0c4a8; }

.cookie-btns {
  display: flex;
  gap: 0.5rem;
}

.cookie-btns button {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  border: 0;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
}

[data-cookie-accept] { background: var(--copper); color: #fff; }
[data-cookie-reject] { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4) !important; }
.ad-slot.ad-slot--filled { display: block; margin: 2rem auto; max-width: 970px; }
.ad-slot__inner {
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.03);
  min-height: 90px;
}
.ad-slot--rectangle .ad-slot__inner { min-height: 250px; max-width: 336px; margin: 0 auto; }

@media (max-width: 900px) {
  .route-strip { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .panel-grid,
  .check-rail,
  .content-shell.with-rail { grid-template-columns: 1fr; }
  .side-rail { position: static; }
  .indep-band { grid-template-columns: 1fr; }
  .indep-band .mark { writing-mode: horizontal-tb; transform: none; }
}

@media (max-width: 560px) {
  .route-strip { grid-template-columns: 1fr; }
  .page-hero h1 { max-width: none; }
}

/* Hide empty display slots — no flash of Advertisement boxes */
.ad-slot:not(.ad-slot--filled) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}
.ad-slot:not(.ad-slot--filled)::before {
  content: none !important;
  display: none !important;
}
.ad-slot.ad-slot--filled {
  display: block;
}
.ad-slot.ad-slot--filled::before {
  content: "Advertisement";
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.45rem;
  text-align: center;
}

/* ad-slot-nofill-guard */
.ad-slot:not(.ad-slot--filled),
aside.ad-slot:not(.ad-slot--filled) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}
