/* DeployWorks site styles. No JavaScript, no external requests. */

@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #16244C;
  --navy-deep: #0C1730;
  --ink: #1B2233;
  --muted: #535D74;
  --line: #E1E4EB;
  --paper: #FAFAF8;
  --tint: #F1F3F7;
  --accent: #1FA37A;
  --accent-ink: #137556;
  --white: #FFFFFF;
  --radius: 10px;
  color-scheme: light;
  --wrap: 1140px;
  --display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 3px; }
.site-footer :focus-visible { outline-color: var(--accent); }
[id] { scroll-margin-top: 96px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--navy); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .4em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 34px; width: auto; }
.nav-desktop { display: flex; align-items: center; gap: 30px; }
.nav-desktop a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-desktop a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-desktop a.btn { color: var(--white); box-shadow: none; }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: block; width: 22px; height: 2px; background: var(--navy); }
.nav-mobile nav { position: absolute; right: 0; top: 52px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(12, 23, 48, .12); padding: 8px; min-width: 210px; }
.nav-mobile nav a { display: block; padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 6px; }
.nav-mobile nav a:hover { background: var(--tint); }
@media (max-width: 820px) { .nav-desktop { display: none; } .nav-mobile { display: block; } .brand img { height: 30px; } }

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: var(--white); text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 8px; border: 2px solid var(--navy); line-height: 1.2; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn-small { padding: 9px 16px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
@media (max-width: 600px) { .section { padding: 60px 0; } }

/* Hero */
.hero { padding: 80px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { max-width: 22ch; font-size: clamp(2rem, 3.6vw, 2.75rem); }
.hero .lead { font-size: 1.25rem; }
@media (max-width: 600px) { .hero { padding: 56px 0 60px; } }

.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 20ch; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
@media (min-width: 861px) { .split > div:first-child > h2:only-child { position: sticky; top: 100px; } }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 18px; margin: 0; }
.steps li::before { content: "0" counter(step); font-family: var(--display); color: var(--accent-ink); font-weight: 600; display: block; margin-bottom: 8px; }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Service detail blocks */
.service { padding: 56px 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: .6em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: 2px solid var(--accent); }
.meta-line { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 14px; margin-top: 18px; }

/* Framework region table */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .regions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .regions { grid-template-columns: 1fr; } }
.region { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.region h3 { font-size: 1.1rem; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.region ul { list-style: none; padding: 0; margin: 0; }
.region li { font-size: .96rem; margin-bottom: .55em; }
.region li span { display: block; color: var(--muted); font-size: .86rem; }

/* Note / callout */
.note { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 6px; padding: 20px 24px; color: var(--muted); }
.note strong { color: var(--ink); }

/* Prose pages */
.prose { max-width: 740px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }

/* Contact */
.contact-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-email { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 500; word-break: break-word; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 24px 0 0; }
dl.facts dt { font-weight: 600; color: var(--navy); }
dl.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 480px) { dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: 10px; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #AEB8D0; padding: 64px 0 0; font-size: .95rem; }
.site-footer a { color: #D5DBE8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-h { font-family: var(--display); color: var(--white); font-size: .95rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-note { max-width: 300px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 20px; padding-bottom: 28px; font-size: .88rem; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.mt-0 { margin-top: 0; }

/* Example finding (hero) */
.finding { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: .93rem; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(12, 23, 48, .25); }
.finding-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .8rem; color: var(--muted); }
.sev { background: #FDECEC; color: #A3261F; font-weight: 600; padding: 2px 9px; border-radius: 4px; font-family: var(--body); font-size: .78rem; letter-spacing: .02em; }
.finding-body { padding: 18px 18px 6px; }
.finding-body .finding-title { font-family: var(--body); font-weight: 600; font-size: 1.02rem; color: var(--ink); letter-spacing: 0; margin-bottom: 14px; line-height: 1.4; }
.finding dl { display: grid; grid-template-columns: 82px 1fr; gap: 8px 14px; margin: 0 0 14px; }
.finding dt { color: var(--muted); font-size: .84rem; }
.finding dd { margin: 0; }
.finding code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85em; background: var(--tint); padding: 1px 5px; border-radius: 3px; word-break: normal; overflow-wrap: anywhere; }
.finding-foot { border-top: 1px solid var(--line); padding: 10px 18px; font-size: .82rem; color: var(--accent-ink); font-weight: 600; }
.caption { font-size: .84rem; color: var(--muted); margin-top: 10px; }

/* Plain service index */
.index-list { border-top: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: 240px 1fr max-content; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.index-row h3 { margin: 0; font-size: 1.15rem; }
.index-row p { margin: 0; color: var(--muted); }
.index-row a { font-weight: 600; font-size: .92rem; text-align: right; }
@media (max-width: 760px) { .index-row { grid-template-columns: 1fr; gap: 6px; } .index-row a { text-align: left; } }

/* Terms list */
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; }
.terms div { border-top: 1px solid var(--line); padding: 18px 0; }
.terms dt { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.terms dd { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .terms { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
@media (max-width: 640px) { .table-wrap-wide table { min-width: 600px; } }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-weight: 500; color: var(--navy); background: var(--tint); font-size: .9rem; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

.contact-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; border-top: 2px solid var(--navy); padding-top: 28px; }
.contact-strip p { margin: 0; font-size: 1.15rem; max-width: 640px; }
.hero figure { margin: 0; }

.faq h3 { font-size: 1.05rem; margin: 28px 0 6px; }
.faq h3:first-child { margin-top: 0; }
.faq p { margin: 0; }
tbody th { white-space: nowrap; }

.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; }
.split > * { min-width: 0; }
.nav-mobile-cta { display: none; }
@media (max-width: 820px) { .nav-mobile-cta { display: inline-block; margin-left: auto; margin-right: 8px; } }
.nav-mobile nav a[aria-current="page"] { background: var(--tint); box-shadow: inset 3px 0 0 var(--accent); }
.nav-mobile summary span { transition: transform .15s, opacity .15s; }
@media (prefers-reduced-motion: reduce) { .nav-mobile summary span { transition: none; } }
.nav-mobile[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile[open] summary span:nth-child(2) { opacity: 0; }
.nav-mobile[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.faq-grid h3, .faq-grid h3:first-child { margin: 0 0 6px; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

.situations-h { margin: 44px 0 14px; }
.situations { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.situations li { margin: 0; }
.situations a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); text-decoration: none; font-weight: 600; }
.situations a:hover { border-color: var(--navy); }

.footer-base a { color: #D5DBE8; }

@media print {
  .site-header, .site-footer, .skip, .contact-strip, .actions { display: none; }
  body { background: #fff; font-size: 11pt; }
  .section, .page-hero, .hero { padding: 16pt 0; }
  .section-tint { background: none; }
  .split { grid-template-columns: 1fr; gap: 8pt; }
  .split > div:first-child > h2:only-child { position: static; }
  .finding, .table-wrap, tr { break-inside: avoid; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; }
}
