/* AI-Guardrails — unclassified operator folder
   Navy field, manila sheet, oxblood stamp. Not SaaS purple. Not camo. */

:root {
  --navy: #0b1622;
  --navy-mid: #163047;
  --ink: #1c1812;
  --muted: #5c5648;
  --paper: #d9d0b8;
  --sheet: #f4efe0;
  --cream: #faf6eb;
  --rule: #2a241c;
  --hair: rgba(42, 36, 28, 0.22);
  --stamp: #7c2a1e;
  --stamp-deep: #5c1e15;
  --focus: #7c2a1e;
  --max: 70rem;
  --header-h: 0;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at top, #1a2c40 0%, var(--navy) 55%);
  background-attachment: fixed;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy-mid);
  text-decoration-color: var(--stamp);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--stamp-deep); }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.4rem 0.75rem;
  background: var(--stamp);
  color: var(--cream);
  text-decoration: none;
}

.skip:focus { top: 0.75rem; }

/* Classification banners */

.banner {
  margin: 0;
  padding: 0.28rem 1rem;
  background: var(--navy);
  color: var(--cream);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-align: center;
  text-transform: uppercase;
}

.banner-foot {
  border-top: 1px solid rgba(244, 239, 224, 0.12);
}

/* Sheet */

.frame {
  width: min(var(--max), calc(100% - 1.5rem));
  margin: 0.85rem auto 1.5rem;
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(11, 22, 34, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.sheet {
  position: relative;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(42, 36, 28, 0.035) 28px
    ),
    var(--sheet);
  border: 1px solid var(--rule);
  margin: 0.55rem;
}

.sheet::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  bottom: 1.6rem;
  left: 0.85rem;
  width: 0.7rem;
  background:
    radial-gradient(circle at 50% 12%, #c9c0aa 0 0.28rem, transparent 0.3rem),
    radial-gradient(circle at 50% 50%, #c9c0aa 0 0.28rem, transparent 0.3rem),
    radial-gradient(circle at 50% 88%, #c9c0aa 0 0.28rem, transparent 0.3rem);
  pointer-events: none;
  opacity: 0.85;
}

/* Masthead / document control */

.mast {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: end;
  padding: 1.15rem 1.5rem 1rem 2.4rem;
  border-bottom: 2px solid var(--navy);
}

.wordmark {
  font-family: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.1;
}

.wordmark:hover {
  color: var(--navy);
  text-decoration: none;
}

.wordmark span { color: var(--stamp); }

.mast-tag {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-id {
  margin: 0;
  text-align: right;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-id strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0;
  padding: 0 1.5rem 0 2.4rem;
  border-bottom: 1px solid var(--hair);
  background: var(--cream);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 0.7rem 0.85rem 0.65rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--navy); }

.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--stamp);
}

/* Layout */

.wrap {
  width: min(62rem, calc(100% - 3.2rem));
  margin-inline: auto;
  padding: 1.75rem 0 3rem;
}

.page { padding-top: 2rem; }

.kicker {
  margin: 0 0 0.7rem;
  color: var(--stamp);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.018em;
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.05rem, 4.4vw, 3.05rem);
  line-height: 1.12;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.25;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.lede {
  margin: 0 0 1.4rem;
  max-width: 40rem;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  margin: 0 0 1.1rem;
}

.cta {
  display: inline-block;
  padding: 0.72rem 1.15rem;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--navy);
  box-shadow: inset 0 -3px 0 var(--stamp);
}

.cta:hover {
  color: var(--cream);
  background: #071018;
}

.cta-ghost {
  display: inline-block;
  padding: 0.72rem 1.15rem;
  background: transparent;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--navy);
}

.cta-ghost:hover {
  color: var(--stamp-deep);
  border-color: var(--stamp);
}

.cta-secondary {
  display: inline-block;
  padding: 0.72rem 0.15rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration-color: var(--stamp);
}

.note {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Two doors */

.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0 2.25rem;
}

.door {
  position: relative;
  padding: 1.25rem 1.25rem 1.15rem;
  background: var(--cream);
  border: 1px solid var(--rule);
  min-height: 100%;
}

.door::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 1rem;
  width: 4.5rem;
  height: 0.55rem;
  background: var(--navy);
}

.door-edu::before { background: var(--stamp); }

.door .kicker { margin-bottom: 0.45rem; }

.door h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

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

.door .cta,
.door .cta-ghost { margin-bottom: 0.65rem; }

/* Policy / assist callouts */

.policy-strip,
.assist-strip {
  margin: 0 0 2.25rem;
  padding: 0.95rem 1.05rem;
  background: var(--cream);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--stamp);
  font-size: 0.92rem;
}

.assist-strip { border-left-color: var(--navy); }

.policy-strip strong,
.assist-strip strong {
  color: var(--navy);
  font-weight: 600;
}

section { margin: 0 0 2.6rem; }

.rule {
  height: 0;
  margin: 0 0 2.4rem;
  border: 0;
  border-top: 1px solid var(--hair);
}

.split,
.who,
.pack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.panel,
.pack-card {
  padding: 1.15rem 1.2rem 1.05rem;
  background: var(--cream);
  border: 1px solid var(--hair);
}

.panel.is { border-top: 3px solid var(--navy); }
.panel.is-not { border-top: 3px solid var(--stamp); }

.panel ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.panel li { margin: 0.35rem 0; }

.pack-card {
  background: var(--cream);
}

.pack-card .n {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--stamp);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pack-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

dl.meta {
  display: grid;
  grid-template-columns: 8.2rem 1fr;
  gap: 0.4rem 1rem;
  margin: 0 0 1.2rem;
}

dl.meta dt {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dl.meta dd { margin: 0; }

.checkout {
  padding: 1.4rem 1.4rem 1.25rem;
  background: var(--cream);
  border: 1px solid var(--rule);
}

.checkout .price {
  margin: 0 0 0.3rem;
  font-family: "Source Serif 4", Palatino, Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
}

.checkout .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

#checkout { scroll-margin-top: 1rem; }

/* Contents items */

.item {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--hair);
}

.item .n {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--stamp);
}

.item p { margin: 0.4rem 0 0; }

/* Official links */

.official {
  list-style: none;
  margin: 0;
  padding: 0;
}

.official li {
  margin: 0;
  padding: 0.7rem 0;
  border-top: 1px solid var(--hair);
}

.official li:last-child { border-bottom: 1px solid var(--hair); }

.official a { font-weight: 600; }

.official .src {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  word-break: break-word;
}

.fine {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Copyable subject */

.copyblock {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--cream);
  border: 1px dashed var(--rule);
}

.copyblock label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.copyrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.copyrow input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--rule);
  background: var(--sheet);
  color: var(--navy);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.85rem;
}

.copyrow button {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--cream);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.copyrow button:hover { background: #071018; }

.copyblock .hint {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Scope table */

.scope {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.scope th,
.scope td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--hair);
}

.scope th {
  width: 9.5rem;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding: 1.15rem 1.5rem 1.5rem 2.4rem;
  background: var(--navy);
  color: #c4bdaa;
  font-size: 0.8rem;
  line-height: 1.5;
}

.site-footer p { margin: 0 0 0.55rem; }
.site-footer p:last-child { margin: 0; }

.site-footer a {
  color: var(--sheet);
  text-decoration-color: var(--stamp);
}

.site-footer strong {
  color: var(--cream);
  font-weight: 600;
}

.dead { min-height: 22rem; padding: 3rem 0 4rem; }

code {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.86em;
}

/* Print */

@media print {
  body { background: #fff; }
  .banner,
  .site-nav,
  .hero-actions,
  .cta,
  .cta-ghost,
  .copyrow button {
    display: none !important;
  }
  .frame,
  .sheet {
    box-shadow: none;
    margin: 0;
    border: 0;
  }
  .sheet::before { display: none; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: 400;
    color: #333;
    word-break: break-all;
  }
}

/* Mobile */

@media (max-width: 800px) {
  .frame {
    width: calc(100% - 0.7rem);
    margin: 0.4rem auto 0.9rem;
  }

  .sheet { margin: 0.35rem; }
  .sheet::before { display: none; }

  .mast,
  .site-nav,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mast {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .doc-id { text-align: left; }

  .wrap {
    width: calc(100% - 1.8rem);
    padding-top: 1.25rem;
  }

  .doors,
  .split,
  .who,
  .pack-grid,
  .item {
    grid-template-columns: 1fr;
  }

  .item .n { margin-bottom: -0.4rem; }

  dl.meta {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }

  dl.meta dt { margin-top: 0.4rem; }

  .cta { text-align: center; }

  .scope th { display: block; width: auto; padding-bottom: 0; }
  .scope td { display: block; padding-top: 0.2rem; }
}
