/* Disclosed — one stylesheet for the whole site. No framework, no build step. */

:root {
  --bg: #ffffff;
  --fg: #18181b;
  --muted: #52525b;
  --line: #e4e4e7;
  --panel: #fafafa;
  --accent: #1d4ed8;
  --attention: #9a3412;
  --attention-bg: #fff7ed;
  --ok: #065f46;
  --ok-bg: #f0fdf4;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b; --fg: #f4f4f5; --muted: #a1a1aa; --line: #27272a;
    --panel: #131316; --accent: #93b4fd; --attention: #fdba74;
    --attention-bg: #1f1408; --ok: #6ee7b7; --ok-bg: #062017;
  }
}

* { box-sizing: border-box }

body {
  margin: 0;
  font: 400 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem }

header.site { border-bottom: 1px solid var(--line); padding: 1rem 0; margin-bottom: 2.5rem }
header.site .wrap { display: flex; gap: 1.25rem; align-items: baseline; flex-wrap: wrap }
header.site a { color: var(--fg); text-decoration: none }
header.site .brand { font-weight: 700; letter-spacing: -0.01em }
header.site nav { display: flex; gap: 1rem; font-size: .95rem; margin-left: auto }
header.site nav a { color: var(--muted) }
header.site nav a:hover { color: var(--fg) }

h1 { font-size: 1.9rem; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 .75rem }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2.5rem 0 .75rem }
h3 { font-size: 1.02rem; margin: 1.75rem 0 .5rem }
p, ul, ol { margin: 0 0 1rem }
a { color: var(--accent) }

.lede { font-size: 1.1rem; color: var(--muted); margin-bottom: 2rem }
.muted { color: var(--muted) }
small, .small { font-size: .875rem }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em }
code { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: .1em .3em }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; overflow-x: auto }
pre code { background: none; border: 0; padding: 0 }

/* Wide content must scroll inside itself, never the page. */
.scroll-x { overflow-x: auto }
table { border-collapse: collapse; width: 100%; font-size: .93rem }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top }
th { font-weight: 600 }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem; margin: 1.5rem 0 }

.note {
  border-left: 3px solid var(--line); padding: .3rem 0 .3rem 1rem;
  color: var(--muted); font-size: .93rem; margin: 1.5rem 0;
}

input[type=url], input[type=email], textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: .6rem .75rem;
}
textarea { min-height: 9rem; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; resize: vertical }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }

button {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  color: var(--bg); background: var(--fg); border: 1px solid var(--fg);
  border-radius: 8px; padding: .6rem 1.1rem;
}
button.secondary { color: var(--fg); background: transparent; border-color: var(--line) }
button:disabled { opacity: .5; cursor: default }

.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center }
.row > input { flex: 1 1 16rem }

.tabs { display: flex; gap: .4rem; margin-bottom: 1rem }
.tabs button { background: transparent; color: var(--muted); border-color: var(--line); font-weight: 500 }
.tabs button[aria-selected=true] { color: var(--fg); border-color: var(--fg); font-weight: 600 }

.finding { border: 1px solid var(--line); border-left-width: 3px; border-radius: 8px; padding: .8rem 1rem; margin: .7rem 0 }
.finding h4 { margin: 0 0 .3rem; font-size: .98rem }
.finding p { margin: 0; font-size: .92rem; color: var(--muted) }
.finding cite { display: block; margin-top: .4rem; font-size: .8rem; font-style: normal; color: var(--muted) }
.finding.attention { border-left-color: var(--attention); background: var(--attention-bg) }
.finding.attention h4 { color: var(--attention) }
.finding.observation { border-left-color: var(--accent) }
.finding.info { border-left-color: var(--line) }

footer.site { border-top: 1px solid var(--line); margin-top: 4rem; padding: 1.75rem 0 3rem; font-size: .88rem; color: var(--muted) }
footer.site a { color: var(--muted) }
footer.site .disclaimer { margin-top: .75rem }

.hidden { display: none }
