/* GeoSKU visitor website — single stylesheet. System fonts only; no external requests. */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --ink: #14211f;
  --muted: #4b5b58;
  --line: #d9e1de;
  --brand: #0b5750;
  --brand-ink: #073b36;
  --brand-soft: #e3efec;
  --accent: #9a4f05;
  --accent-soft: #fbefe2;
  --focus: #c25e00;
  --scroll-shadow: rgba(0, 0, 0, 0.14);
  --radius: 10px;
  --wrap: 72rem;
  --measure: 46rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1716;
    --surface: #152120;
    --surface-2: #1a2a28;
    --ink: #e7efed;
    --muted: #a9bab6;
    --line: #2b3d3a;
    --brand: #5cc2b4;
    --brand-ink: #071e1b;
    --brand-soft: #18322f;
    --accent: #f0a65a;
    --accent-soft: #2f2316;
    --focus: #ffb35c;
    --scroll-shadow: rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-ink); }
@media (prefers-color-scheme: dark) { a:hover { color: var(--ink); } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; margin-top: 1.8em; }
p, ul, ol { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 1.5rem; } }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--surface); color: var(--ink); padding: 0.6rem 1rem; border-radius: var(--radius);
  border: 2px solid var(--focus); font-weight: 650;
}
.skip-link:focus { top: 0.75rem; }

/* Header and navigation */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: minmax(4rem, auto) auto; align-items: center; column-gap: 1rem; }
.header-row > .brand { grid-column: 1; grid-row: 1; }
.nav-toggle { grid-column: 3; grid-row: 1; justify-self: end; }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 780; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand-mark {
  width: 1.35rem; height: 1.35rem; border-radius: 6px; background: var(--brand);
  box-shadow: inset -0.4rem -0.4rem 0 color-mix(in srgb, var(--brand-ink) 40%, var(--brand));
}
.nav-toggle {
  font: inherit; font-weight: 650; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 1rem; min-height: 2.75rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.55rem 0.8rem; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 560; font-size: 0.98rem;
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 680; }
@media (min-width: 62rem) { .site-nav { grid-column: 2 / 4; grid-row: 1; justify-self: end; } }
@media (max-width: 61.99rem) {
  .js .nav-toggle { display: inline-block; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; }
  /* An open menu (or the always-open menu without JavaScript) must not cover the page while scrolling. */
  html:not(.js) .site-header, .site-header:has(.site-nav[data-open="true"]) { position: static; }
  .site-nav ul { flex-direction: column; padding: 0 0 0.75rem; }
  .site-nav a { border-radius: 8px; padding: 0.7rem 0.75rem; }
  .js .site-nav[data-open="false"] { display: none; }
}
@media (min-width: 62rem) { .nav-toggle { display: none !important; } }

/* Hero */
.page-hero { background: var(--brand-soft); border-bottom: 1px solid var(--line); padding: 3rem 0 2.5rem; }
@media (min-width: 48rem) { .page-hero { padding: 4.5rem 0 3.5rem; } }
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 44rem; }
.hero-links ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-link {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.6rem 1.15rem; border-radius: 999px;
  font-weight: 680; text-decoration: none; border: 1px solid var(--brand); color: var(--brand); background: var(--surface);
}
.hero-links li:first-child .hero-link { background: var(--brand); color: var(--surface); }
.hero-link:hover { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
@media (max-width: 47.99rem) {
  .page-hero { padding: 2rem 0 1.75rem; }
  .roles { padding-top: 1.5rem; }
  .role-cards { gap: 0.6rem; margin-top: 0.9rem; }
  .role-card a { padding: 0.9rem 1rem; }
}
.eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.75rem; }

/* Role cards (home) */
.roles { padding: 2.5rem 0 1rem; }
.roles h2 { margin-bottom: 0.35em; }
.role-cards { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .role-cards { grid-template-columns: repeat(3, 1fr); } }
.role-card a {
  display: flex; flex-direction: column; gap: 0.45rem; height: 100%;
  padding: 1.25rem 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.role-card a:hover { border-color: var(--brand); box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.35); }
.role-card-head { font-weight: 750; font-size: 1.15rem; line-height: 1.3; color: var(--brand); }
.role-card-text { color: var(--muted); font-size: 0.98rem; }
.role-card-head::after { content: " →"; content: " →" / ""; color: var(--brand); }

/* In-page table of contents */
.toc { padding: 1.75rem 0 0.5rem; }
.toc h2 { font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: inline-flex; gap: 0.5rem; align-items: baseline; padding: 0.45rem 0.85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 0.95rem;
}
.toc a::before { content: counter(toc); font-weight: 750; color: var(--brand); font-variant-numeric: tabular-nums; }
.toc a:hover { border-color: var(--brand); }
@media (max-width: 47.99rem) {
  .toc ol { flex-direction: column; }
  .toc a { display: flex; border-radius: 10px; }
}

/* Content blocks */
.block { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.block:nth-of-type(even) { background: var(--surface); }
.block .wrap > h2 { max-width: 30ch; }
.block-lede { font-size: 1.12rem; color: var(--muted); max-width: var(--measure); }
.section > p, .section > ul, .section > ol:not(.flow-cards):not(.steps), .block-lede, .faq > details, .section > h3 { max-width: var(--measure); }
.section ul { padding-left: 1.25rem; }
.section li { margin-bottom: 0.4em; }

.table-scroll {
  overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  background-image: linear-gradient(to right, var(--surface) 30%, transparent), linear-gradient(to left, var(--surface) 30%, transparent),
    linear-gradient(to right, var(--scroll-shadow), transparent), linear-gradient(to left, var(--scroll-shadow), transparent);
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat;
  background-size: 2rem 100%, 2rem 100%, 0.75rem 100%, 0.75rem 100%;
  background-attachment: local, local, scroll, scroll;
}
table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.97rem; }
table.cols-2 { min-width: 0; }
caption { caption-side: bottom; text-align: left; padding: 0.6rem 0.9rem; color: var(--muted); font-size: 0.88rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); font-size: 0.86rem; letter-spacing: 0.03em; color: var(--muted); font-weight: 700; }
tbody th { font-weight: 680; width: 22%; position: sticky; left: 0; z-index: 1; background: var(--surface); }
tbody tr:last-child > * { border-bottom: 0; }
/* Small screens: three- and four-column tables become one card per row (column names repeated). */
@media (max-width: 47.99rem) {
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: auto; }
  table.stack { min-width: 0; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.stack tbody tr { padding: 0.65rem 0.9rem 0.4rem; border-bottom: 1px solid var(--line); }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack tbody th { position: static; padding: 0 0 0.35rem; border: 0; font-size: 1.02rem; background: transparent; }
  table.stack td { padding: 0 0 0.55rem; border: 0; }
  table.stack td[data-label]::before {
    content: attr(data-label); display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 0.1rem;
  }
  table.stack caption { padding: 0.6rem 0.9rem 0.75rem; }
  .table-scroll:has(> table.stack) { overflow: visible; background-image: none; }
}

.example-flow {
  margin: 2rem 0 1rem; padding: 1.25rem 1.25rem 0.75rem; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  max-width: 52rem;
}
.example-flow > h3 { margin-top: 0; color: var(--ink); }
.example-flow > h3::before {
  content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--accent); margin-right: 0.55rem; vertical-align: 0.12em;
}
.flow-note { font-size: 0.92rem; color: var(--muted); font-style: italic; }
.steps { list-style: none; margin: 0 0 0.75rem; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 0.9rem 2.6rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--accent); color: var(--accent);
  font-weight: 750; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 0.86rem; top: 1.95rem; bottom: 0.1rem; width: 2px;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

/* Diagrams */
.diagram { margin: 2rem 0 1rem; }
.flow-scroll { overflow-x: auto; padding: 1rem; background-color: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  background-image: linear-gradient(to right, var(--surface) 30%, transparent), linear-gradient(to left, var(--surface) 30%, transparent),
    linear-gradient(to right, var(--scroll-shadow), transparent), linear-gradient(to left, var(--scroll-shadow), transparent);
  background-position: left center, right center, left center, right center; background-repeat: no-repeat;
  background-size: 2rem 100%, 2rem 100%, 0.75rem 100%, 0.75rem 100%; background-attachment: local, local, scroll, scroll; }
.flow-svg { display: block; height: auto; margin: 0 auto; font-family: var(--font); }
.flow-svg.fit { max-width: 100%; }
.flow-svg.wide { max-width: none; margin: 0; }
.flow-node { fill: var(--surface); stroke: var(--brand); stroke-width: 1.5; }
.flow-node.decision { fill: var(--accent-soft); stroke: var(--accent); }
.flow-node-text { fill: var(--ink); font-size: 14px; }
.flow-edge { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.flow-edge.dotted { stroke-dasharray: 5 5; }
.flow-arrow { fill: var(--muted); }
.flow-edge-label-bg { fill: var(--bg); stroke: var(--line); }
.flow-edge-label { fill: var(--muted); font-size: 12px; }
.flow-lane { fill: var(--brand-soft); opacity: 0.55; }
.flow-lane-label { fill: var(--brand); font-size: 13px; font-weight: 700; }
.flow-text { margin-top: 0.75rem; max-width: var(--measure); }
.flow-text summary { cursor: pointer; font-weight: 650; color: var(--brand); padding: 0.4rem 0; }
.flow-cards { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.flow-card { padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 8px; background: var(--surface); }
.flow-card.decision { border-left-color: var(--accent); }
.flow-card-label { font-weight: 650; }
.flow-group { display: inline-block; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-right: 0.35rem; }
.flow-outs { list-style: none; margin: 0.35rem 0 0; padding: 0; color: var(--muted); font-size: 0.95rem; }
.flow-outs li { margin: 0.15rem 0; }
.flow-glyph { display: inline-block; min-width: 1.1em; color: var(--brand); font-weight: 700; }
.flow-glyph.dotted { color: var(--accent); }
.flow-out-label { font-style: italic; }
.flow-legend { font-size: 0.9rem; color: var(--muted); margin: 0.6rem 0 0; }
.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; }
.flow-wide { display: none; }
.flow-narrow { display: block; }
/* Each drawing is shown only from the width where it fits at >= 80 % scale; below that, the card list. */
@media (min-width: 48rem) { .show-48 > .flow-wide { display: block; } .show-48 > .flow-narrow { display: none; } }
@media (min-width: 62rem) { .show-62 > .flow-wide { display: block; } .show-62 > .flow-narrow { display: none; } }
@media (min-width: 75rem) {
  .show-75 > .flow-wide, .show-scroll > .flow-wide { display: block; }
  .show-75 > .flow-narrow, .show-scroll > .flow-narrow { display: none; }
}

.source-note { font-size: 0.86rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 0.75rem; max-width: var(--measure); }
.source-note span { font-weight: 700; }

/* FAQ */
.faq { margin-top: 2.25rem; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 0.6rem; }
.block:nth-of-type(even) details { background: var(--bg); }
summary { cursor: pointer; padding: 0.85rem 1rem 0.85rem 2.4rem; font-weight: 650; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::before {
  content: ""; position: absolute; left: 1rem; top: 1.15rem; width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); transition: transform 0.15s;
}
details[open] > summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { summary::before { transition: none; } }
details > p { padding: 0 1rem; }
details > p:last-child { padding-bottom: 0.25rem; }
details[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 0.75rem; }
.flow-text[open] > summary, .flow-text > summary { border: 0; }
.flow-text { border: 0; background: transparent !important; }
.flow-text > summary { padding-left: 1.4rem; }
.flow-text > summary::before { left: 0.2rem; }
.faq-more, .see-also { font-size: 0.92rem; color: var(--muted); }
.see-also { max-width: var(--measure); margin-top: -0.25rem; }
.faq-group details { max-width: var(--measure); }

.closing { padding: 2.5rem 0; }
.closing p { font-size: 1.15rem; font-weight: 600; max-width: var(--measure); }

/* Related pages */
.related { padding: 2.5rem 0 3rem; }
.related h2 { font-size: 1.1rem; color: var(--muted); }
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.related a {
  display: inline-block; padding: 0.65rem 1.1rem; border-radius: 999px; border: 1px solid var(--brand);
  text-decoration: none; font-weight: 650; min-height: 2.75rem;
}
.related a::after { content: " →"; content: " →" / ""; }
.related a:hover { background: var(--brand-soft); }

/* Footer */
.site-footer { background: var(--brand-ink); color: #d6e4e1; padding: 2.5rem 0 3rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0a1312; border-top: 1px solid var(--line); } }
.footer-row { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-row { grid-template-columns: 1.2fr 2fr; } }
.site-footer .brand { color: #ffffff; }
.site-footer .brand-mark { background: #5cc2b4; }
.footer-brand p { color: #b9ccc8; max-width: 26rem; margin-top: 0.75rem; }
.footer-nav { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.footer-title { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9fb7b2; margin: 0 0 0.6rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: #eef5f3; text-decoration: none; display: inline-block; padding: 0.3rem 0; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #ffb35c; }

@media print {
  .site-header, .site-footer, .toc, .related, .skip-link { display: none; }
  .flow-wide { display: block; }
  .flow-narrow { display: none; }
  details > * { display: block; }
  body { background: #fff; color: #000; }
}
