:root {
  --navy-950: #041822;
  --navy-900: #082736;
  --navy-800: #0d3445;
  --line-dark: #285464;
  --paper: #f4f8f7;
  --paper-2: #eaf2f1;
  --ink: #102d38;
  --muted: #58717a;
  --white: #fff;
  --teal: #22b39e;
  --teal-dark: #087c70;
  --cyan: #55c8e8;
  --amber: #f0b44b;
  --red: #d96868;
  --green: #4caf83;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(4, 24, 34, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: white; color: #052934; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  color: #ecf8f8;
  background:
    radial-gradient(circle at 82% 12%, rgba(85, 200, 232, .16), transparent 24rem),
    radial-gradient(circle at 16% 88%, rgba(34, 179, 158, .17), transparent 28rem),
    linear-gradient(145deg, var(--navy-950), var(--navy-900));
  border-bottom: 1px solid #163d4c;
}
.nav { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 48px; aspect-ratio: 1; border: 1px solid rgba(85, 200, 232, .7);
  border-radius: 50%; color: var(--cyan); font-size: 12px; font-weight: 850; letter-spacing: .12em;
  box-shadow: inset 0 0 0 4px rgba(85, 200, 232, .08);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .01em; }
.brand small { margin-top: 1px; color: #a9c5cd; font-size: 11px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #bed3d9; font-size: 13px; font-weight: 700; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: white; }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .65fr); gap: 54px; align-items: end; padding-block: 72px 82px; }
.eyebrow, .kicker { margin: 0 0 10px; color: var(--teal); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { color: var(--cyan); }
h1, h2, p { text-wrap: pretty; }
h1 { margin: 0; max-width: 760px; font-size: clamp(46px, 8vw, 86px); line-height: .94; letter-spacing: -.055em; }
h1 span { color: var(--cyan); }
.lede { max-width: 760px; margin: 24px 0 0; color: #bfd4da; font-size: clamp(17px, 2vw, 21px); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-badges span { padding: 7px 10px; border: 1px solid rgba(151, 205, 216, .3); border-radius: 999px; color: #c8dde2; font-size: 12px; }
.hero-card { padding: 22px; border: 1px solid rgba(85, 200, 232, .27); border-radius: var(--radius); background: rgba(11, 49, 65, .7); backdrop-filter: blur(12px); }
.hero-card strong { color: var(--cyan); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hero-card p { margin: 10px 0 0; color: #c6d9de; font-size: 14px; }

.workspace { display: grid; gap: 20px; padding-block: 30px 72px; }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 17px 20px; border: 1px solid #efcd8d; border-radius: 14px; background: #fff8e8; }
.notice-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: #382400; font-weight: 900; }
.notice h2 { margin: 0; font-size: 15px; }
.notice p { margin: 4px 0 0; color: #705b35; font-size: 13px; }
.step-card { padding: clamp(20px, 4vw, 34px); border: 1px solid #d3e1e1; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.step-heading, .heading-group { display: flex; align-items: center; gap: 15px; }
.step-heading { margin-bottom: 24px; }
.step-heading.split { justify-content: space-between; }
.step-heading h2 { margin: 0; font-size: clamp(20px, 3vw, 28px); letter-spacing: -.025em; }
.step-heading .kicker { margin: 0 0 3px; }
.step-number { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border: 1px solid #9bc9c4; border-radius: 14px; color: var(--teal-dark); background: #edf9f7; font-weight: 900; }
.template-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.control { display: grid; gap: 7px; }
.control > span { color: #35515b; font-size: 13px; font-weight: 750; }
.control input, .control select, .control textarea, .output {
  width: 100%; border: 1px solid #bcd1d5; border-radius: 12px; background: #fbfdfd; color: var(--ink); padding: 12px 13px; outline: none;
}
.control textarea { min-height: 220px; resize: vertical; line-height: 1.55; }
.control input:focus, .control select:focus, .control textarea:focus, .output:focus { border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(34, 179, 158, .15); }
.schema-meta { min-height: 104px; padding: 16px 18px; border-left: 4px solid var(--teal); border-radius: 10px; background: var(--paper-2); }
.schema-meta strong { display: block; font-size: 15px; }
.schema-meta p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.schema-meta small { display: block; margin-top: 8px; color: #4e7775; font-weight: 700; }
.options-row { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 14px; }
.check { display: flex; align-items: center; gap: 9px; color: #47606a; font-size: 13px; }
.check input { width: 17px; height: 17px; accent-color: var(--teal-dark); }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button { padding: 11px 16px; border: 1px solid transparent; border-radius: 10px; font-weight: 820; }
.button.primary { color: #032b27; background: var(--teal); }
.button.primary:hover { background: #32c7b1; }
.button.secondary { color: white; background: var(--navy-800); }
.button.secondary:hover { background: #16485c; }
.button.ghost { color: #526c75; border-color: #bfd0d4; background: transparent; }
.button:focus-visible, .tab:focus-visible { outline: 3px solid rgba(34, 179, 158, .35); outline-offset: 2px; }
.section-intro { margin: -8px 0 24px; color: var(--muted); font-size: 14px; }
.review-status { padding: 9px 12px; border-radius: 999px; background: #edf5f4; color: #3d6264; font-size: 12px; font-weight: 850; white-space: nowrap; }
.review-status.incomplete { color: #7a321f; background: #fff0e9; }
.review-form { display: grid; gap: 22px; }
.field-group { padding: 20px; border: 1px solid #d9e5e6; border-radius: 14px; background: #fbfdfd; }
.field-group h3 { margin: 0 0 15px; color: #174858; font-size: 15px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field-card { display: grid; gap: 7px; align-content: start; }
.field-card.wide { grid-column: 1 / -1; }
.field-label { display: flex; justify-content: space-between; gap: 12px; color: #34515b; font-size: 12px; font-weight: 800; }
.required { color: #a3442e; }
.field-card input, .field-card textarea { width: 100%; border: 1px solid #bfd2d5; border-radius: 9px; padding: 10px 11px; background: white; color: #102d38; }
.field-card textarea { min-height: 86px; resize: vertical; }
.provenance { min-height: 30px; color: #698089; font-size: 11px; line-height: 1.35; }
.provenance strong { color: #31736e; }
.missing-field input, .missing-field textarea { border-color: #e4a28f; background: #fffafa; }
.tabs { display: flex; gap: 6px; padding: 5px; width: fit-content; border-radius: 11px; background: var(--paper-2); }
.tab { border: 0; border-radius: 8px; padding: 9px 12px; background: transparent; color: #526d75; font-size: 12px; font-weight: 820; }
.tab.active { background: white; color: var(--teal-dark); box-shadow: 0 3px 12px rgba(18, 58, 69, .09); }
.output { min-height: 340px; margin-top: 13px; resize: vertical; background: #071f2b; color: #dff1f2; border-color: #193f4d; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; }
.governance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.governance-grid article { padding: 22px; border: 1px solid #ccdddd; border-radius: 15px; background: #edf5f4; }
.governance-grid h2 { margin: 0; font-size: 18px; }
.governance-grid p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.footer { color: #c9dadd; background: var(--navy-950); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; padding-block: 38px; font-size: 13px; }
.footer strong, .footer span { display: block; }
.footer span { color: #93b0b8; margin-top: 3px; }
.footer p { grid-column: 1 / -1; margin: 0; color: #7997a0; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; max-width: 330px; padding: 12px 15px; border-radius: 10px; color: white; background: #0a3442; box-shadow: 0 12px 36px rgba(0, 0, 0, .22); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .nav { align-items: flex-start; padding-block: 16px; }
  .nav-links { gap: 11px; flex-wrap: wrap; justify-content: flex-end; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 52px 62px; }
  .template-layout, .governance-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field-card.wide { grid-column: auto; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 1160px); }
  .nav { display: grid; }
  .nav-links { justify-content: flex-start; }
  .brand small { display: none; }
  .step-heading.split { align-items: flex-start; }
  .heading-group { align-items: flex-start; }
  .review-status { white-space: normal; }
  .tabs { width: 100%; overflow-x: auto; }
  .tab { white-space: nowrap; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer p { grid-column: auto; }
}

@media print {
  .nav-links, .action-row, .options-row, .tabs, .notice, #review-section, .toast { display: none !important; }
  .site-header { color: #102d38; background: white; }
  .hero { padding-block: 20px; }
  .hero-card { border-color: #ccd; }
  .lede, .hero-card p { color: #345; }
  .output { color: black; background: white; border: 1px solid #999; }
  .step-card { box-shadow: none; }
}

