/* Skeels Data site. Colors and type follow the sample monthly report (docs/sample-report). */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-soft: #F4F6F8;
  --ink: #1B2430;
  --ink-2: #3A4452;
  --muted: #5A6472;
  --line: #D5DAE1;
  --accent: #0F5C63;
  --accent-strong: #0A4247;
  --accent-soft: #E4F0F1;
  --on-accent: #ffffff;
  --ok-bg: #E3F1E8;  --ok: #1B6B3D;
  --warn-bg: #FBEFD9; --warn: #8A5300; --warn-ink: #3D2600;
  --bad-bg: #F8E4E2; --bad: #A1271E;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 6px;
  --wrap: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151C;
    --bg-soft: #171E27;
    --ink: #E7EBF0;
    --ink-2: #C5CCD5;
    --muted: #9AA5B2;
    --line: #2D3744;
    --accent: #6CC3CA;
    --accent-strong: #9AD9DE;
    --accent-soft: #15333A;
    --on-accent: #0B1A1D;
    --ok-bg: #16372A;  --ok: #8FD8AA;
    --warn-bg: #3A2B10; --warn: #F2C27B; --warn-ink: #F6DDB6;
    --bad-bg: #431C1B; --bad: #F4A49D;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
/* Type scale: body 17px; each heading level is a clear step up, and the text
   under a heading is a step down and slightly softer, so the heading leads. */
h1, h2, h3 { line-height: 1.15; font-weight: 600; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2.15rem, 1.5rem + 2.8vw, 3.1rem); letter-spacing: -0.015em; line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.2rem); letter-spacing: -0.01em; margin-bottom: .55em; }
h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: .45em; }
h2 + p, h2 + ul, h2 + ol { margin-top: .1em; }
section h2 + p { font-size: 1.0625rem; }
section h2 ~ p { color: var(--ink-2); }
p, ul, ol { margin: 0 0 1em; }
p { text-wrap: pretty; }
code, .mono { font-family: var(--mono); font-size: .92em; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.draft-banner { background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; text-align: center; padding: 6px 16px; }
.proposed { text-decoration: underline dotted var(--warn); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: help; }

/* Header */
/* Sticky header: stays at the top while scrolling. Anchored sections leave room for it. */
.site-header { border-bottom: 2px solid var(--ink); background: var(--bg); position: sticky; top: 0; z-index: 50; }
[id] { scroll-margin-top: 84px; }
@media (max-width: 820px) {
  /* An open menu taller than the screen scrolls inside the header */
  .js .nav-list.open { max-height: calc(100vh - 68px); overflow-y: auto; }
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .14em; }
.brand:hover { color: var(--ink); }
.mark { fill: none; stroke: var(--accent); stroke-width: 2; flex: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav-list a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav-list a:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav-list a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.menu-toggle { font: 600 15px var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 14px; cursor: pointer; display: none; }
@media (max-width: 820px) {
  .js .menu-toggle { display: inline-block; justify-self: end; }
  .js nav { display: contents; }
  /* Grid, not wrapping flex: the logo/button row keeps its 68px height and centering
     whether the menu is open or closed, so nothing jumps when it opens. */
  .js .header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 68px; align-items: center; column-gap: 16px; row-gap: 0; min-height: 0; }
  .js .nav-list { grid-column: 1 / -1; }
  .js .nav-list { display: none; width: 100%; flex-direction: column; gap: 0; padding: 4px 0 12px; }
  .js .nav-list.open { display: flex; }
  .js .nav-list a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .js .nav-list a[aria-current="page"] { border-bottom-color: var(--accent); }
  .nav-list { padding: 4px 0 12px; }
}

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
section.soft { background: var(--bg-soft); }
@media (max-width: 560px) { section { padding: 44px 0; } }
.eyebrow { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 40em; }
.narrow { max-width: 46em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.page-head { padding: 56px 0 40px; }
.page-head .lede { margin-bottom: 0; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 { margin-bottom: .45em; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; font: 600 16px/1 var(--sans); padding: 14px 20px; border-radius: var(--radius); text-decoration: none; border: 1.5px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn-secondary { color: var(--accent); background: transparent; }
.btn-secondary:hover { background: var(--accent-soft); }

/* Report-style card */
.report-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 20px; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(16 24 40 / .06); }
.report-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.report-card .rc-title { font-weight: 600; font-size: 16px; }
.report-card .rc-meta { font-size: 13px; color: var(--muted); }
.summary-strip { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius); font-size: 14px; line-height: 1.45; margin-bottom: 14px; }
.tag { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .06em; padding: 4px 8px; border-radius: 4px; white-space: nowrap; color: #fff; background: #8A5300; }
.caption { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 600; padding: 8px 10px 8px 0; border-bottom: 1.5px solid var(--ink); vertical-align: bottom; }
td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.mono { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
th:last-child, td:last-child { padding-right: 0; }
.status-table { font-size: 13px; }
.status-table td, .status-table th { padding: 7px 6px 7px 0; }
.status-table td:first-child { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.pill { display: inline-block; font-weight: 600; font-size: 12px; line-height: 1.4; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.watch { background: var(--warn-bg); color: var(--warn); }
.pill.action { background: var(--bad-bg); color: var(--bad); }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.featured { border: 1.5px solid var(--accent); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li { counter-increment: step; }
.steps > li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font: 600 15px var(--mono); margin-bottom: 14px; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.plain-list { list-style: none; padding: 0; margin: 0 0 1.25em; display: grid; gap: .7em; }
.plain-list li { position: relative; padding-left: 1.35em; color: var(--ink-2); }
.plain-list li::before { content: ""; position: absolute; left: .1em; top: .62em; width: .42em; height: .42em; border-radius: 2px; background: var(--accent); }
.plain-list li strong { color: var(--ink); }

.safety { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
@media (max-width: 720px) {
  /* On phones, match the padded cards used by every other section */
  .safety { grid-template-columns: 1fr; gap: 14px; }
  .safety > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 4px; background: var(--bg); }
  .safety h3 { margin-bottom: .5em; }
}
.safety h3 { display: flex; gap: 10px; align-items: center; }
.safety svg { flex: none; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Pricing */
.price { font-family: var(--mono); font-weight: 600; font-size: 2rem; line-height: 1.1; margin: 6px 0 2px; }
.price-unit { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.card .label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card.featured .label { color: var(--accent); }

/* Callout */
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p:last-child { margin-bottom: 0; }
.cta-band { text-align: left; }
.cta-band .actions { margin-top: 20px; }

.pdf-placeholder { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); padding: 32px 0 40px; font-size: 14px; color: var(--muted); margin-top: 0; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row p { margin: 0 0 8px; }
.footer-brand { font-size: 13px; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }

@media print {
  .site-header nav, .draft-banner, .skip { display: none; }
}

.nowrap { white-space: nowrap; }
.status-table .mono { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
