/* cortisolsensor.com — design "Daylight" (11/27/2026)
   Bronze #6a4410 carries, slate #34587a only in graphics, ink #1c1f24, warm paper #f6f2ec.
   Bitter (variable) for headings, Familjen Grotesk (variable) for text, IBM Plex Mono for status and dates.
   Rules instead of boxes, one left edge, no kickers, no icon chips. */

@font-face { font-family: "Bitter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/css-bitter.woff2") format("woff2"); }
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/css-familjen.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/css-plexmono.woff2") format("woff2"); }

:root {
  --bronze: #6a4410;
  --bronze-deep: #4b2f08;
  --bronze-light: #f3e9da;
  --sun: #b9772a;
  --slate: #34587a;
  --slate-light: #e6edf3;
  --ink: #1c1f24;
  --gray: #5a5f69;
  --rule: #e2dbd0;
  --paper: #f6f2ec;
  --white: #ffffff;
  --head: "Bitter", Georgia, "Times New Roman", serif;
  --text: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --width: 74rem;
  --read: 45rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--text);
  font-size: 1.075rem; line-height: 1.62; }
img, svg { max-width: 100%; }
a { color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--bronze-deep); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.wrap { max-width: var(--width); margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -.15em; }

/* header */
.top { border-bottom: 1px solid var(--rule); background: var(--white); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none;
  font-family: var(--head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.mark-sun { width: 2.2rem; height: 1.2rem; color: var(--bronze); }
.brand-tld { color: var(--gray); font-weight: 500; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.3rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; padding: .3rem 0;
  border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bronze); border-bottom-color: var(--bronze); }
.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { display: block; width: 1.4rem; height: 2px; background: var(--ink); margin: .3rem 0; }

/* breadcrumb */
.crumbs { font-size: .86rem; color: var(--gray); padding: .9rem 0 0; }
.crumbs a { color: var(--gray); }
.crumbs span[aria-hidden] { margin: 0 .45rem; color: var(--rule); }

/* article */
.article { padding-top: 1.4rem; padding-bottom: 3rem; }
.article-head { max-width: 56rem; margin-bottom: 1.6rem; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.5vw, 2.8rem); line-height: 1.14; letter-spacing: -.015em;
  font-weight: 700; margin: .4rem 0 .9rem; max-width: 22em; }
h2 { font-size: clamp(1.32rem, 1.1rem + .9vw, 1.65rem); line-height: 1.25; font-weight: 650;
  margin: 2.6rem 0 .8rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.12rem; font-weight: 650; margin: 1.6rem 0 .4rem; }
.byline { font-family: var(--mono); font-size: .8rem; color: var(--gray); margin: 0 0 1.1rem; }
.byline a { color: var(--gray); }
.summary { font-size: 1.18rem; line-height: 1.55; max-width: var(--read); margin: 0;
  padding-left: 1rem; border-left: 3px solid var(--sun); }
.article-plain .summary { margin-bottom: 1.4rem; }
.text, .article-plain { max-width: var(--read); }
.article-plain { margin-left: auto; margin-right: auto; }
.text p, .text ul, .text ol, .article-plain p, .article-plain ul { margin: 0 0 1rem; }
.text li { margin-bottom: .35rem; }
.small { font-size: .85em; color: var(--gray); }
.status { font-family: var(--mono); font-size: .85em; white-space: nowrap; }
code { font-family: var(--mono); font-size: .88em; background: var(--paper); padding: .05em .3em; border-radius: 3px; }

/* table of contents */
.toc { max-width: var(--read); margin: 0 0 2rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: .7rem 0; }
.toc summary { cursor: pointer; font-weight: 650; font-size: .95rem; color: var(--gray); }
.toc ol { margin: .6rem 0 .2rem; padding-left: 1.3rem; columns: 2 18rem; column-gap: 2rem; }
.toc li { margin: 0 0 .3rem; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--bronze); text-decoration: underline; }

/* figures */
.figure { margin: 0 0 2rem; max-width: 60rem; }
.figure-scroll { overflow-x: auto; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .6rem 0; }
.figure svg { display: block; min-width: 640px; width: 100%; height: auto; }
.figure figcaption { font-size: .88rem; color: var(--gray); margin-top: .6rem; max-width: var(--read); }
.ladder text { font-family: var(--text); }
.ladder-stage { font-family: var(--mono) !important; font-size: 12px; fill: var(--gray); }
.ladder-name { font-size: 14px; font-weight: 600; fill: var(--ink); }
.ladder-hint { font-size: 11.5px; fill: var(--gray); }
.ladder-grid { stroke: var(--rule); stroke-width: 1; }
.ladder-fda { fill: var(--slate-light); }
.ladder-rest { stroke: #c9c1b4; stroke-width: 1.5; stroke-dasharray: 2 5; }
.ladder-path { stroke: var(--bronze); stroke-width: 3; stroke-linecap: round; }
.ladder-full { fill: var(--bronze); }
.ladder-empty { fill: var(--white); stroke: #c9c1b4; stroke-width: 1.5; }
.ladder-open { fill: none; stroke: var(--slate); stroke-width: 2; }
.curve-grid { stroke: var(--rule); stroke-width: 1; }
.curve-axis { font-family: var(--mono); font-size: 12px; fill: var(--gray); }
.curve-line { fill: none; stroke: var(--bronze); stroke-width: 3; stroke-linecap: round; }
.curve-peak { fill: var(--sun); }
.curve-window { fill: var(--bronze-light); }
.curve-label { font-family: var(--text); font-size: 14px; fill: var(--ink); }
.curve-small { font-size: 12px; fill: var(--gray); }

/* tables */
.tab { overflow-x: auto; margin: 0 0 .4rem; }
.tab table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.tab caption { text-align: left; font-weight: 650; font-size: .92rem; color: var(--gray); padding: 0 0 .5rem; }
.tab th, .tab td { text-align: left; vertical-align: top; padding: .55rem .7rem .55rem 0; border-bottom: 1px solid var(--rule); }
.tab thead th { font-family: var(--mono); font-weight: 500; font-size: .78rem; color: var(--gray); border-bottom: 2px solid var(--ink); }
.tab tbody th { font-weight: 650; }
.tab-note { font-size: .86rem; color: var(--gray); margin: .4rem 0 1.4rem !important; }

/* notices, evidence, quotes */
.notice { border-left: 3px solid var(--slate); padding: .2rem 0 .2rem 1rem; margin: 2rem 0; }
.notice-medical { border-left-color: var(--bronze); }
.notice-title { font-weight: 700; margin: 0 0 .25rem !important; font-size: .95rem; }
.notice-text p { margin: 0; }
.ev { border-top: 1px solid var(--rule); padding: .8rem 0; margin: 0; }
.ev + .ev { border-top-style: dashed; }
.ev:last-of-type { border-bottom: 1px solid var(--rule); margin-bottom: 1.4rem; }
.ev-head { margin: 0 0 .25rem !important; display: flex; gap: .7rem; flex-wrap: wrap; align-items: baseline; }
.ev-mark { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em;
  padding: .1rem .45rem; border: 1px solid currentColor; border-radius: 3px; white-space: nowrap; }
.ev-established .ev-mark { color: #2f6b3a; }
.ev-early .ev-mark { color: var(--slate); }
.ev-unresolved .ev-mark { color: var(--bronze); }
.ev-refuted .ev-mark { color: #9a2f22; }
.ev-claim { font-weight: 650; }
.ev-text { margin: 0 !important; color: var(--gray); font-size: .95rem; }
.lq { margin: 1.2rem 0 1.4rem; padding: 0 0 0 1rem; border-left: 3px solid var(--rule); }
.lq blockquote { margin: 0; font-size: .97rem; }
.lq blockquote p { margin: 0 0 .4rem; }
.lq figcaption { font-family: var(--mono); font-size: .76rem; color: var(--gray); }
.quote-note { font-size: .86rem; color: var(--gray); }

/* faq, sources, author, read more */
.faq { margin-top: 2.6rem; }
.faq-item { border-top: 1px solid var(--rule); padding: .4rem 0 .2rem; }
.faq-item h3 { margin: .7rem 0 .3rem; font-size: 1.05rem; }
.faq-item div p { margin: 0 0 .8rem; }
.sources { margin-top: 2.6rem; font-size: .92rem; }
.sources ol { padding-left: 1.3rem; }
.sources li { margin-bottom: .35rem; overflow-wrap: anywhere; }
.sources-note { color: var(--gray); font-size: .86rem; }
.author { display: flex; gap: 1rem; align-items: flex-start; border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1.2rem; }
.author img { border-radius: 50%; flex: none; }
.author p { margin: 0; font-size: .92rem; }
.readmore { margin-top: 2.4rem; }
.lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.lines li { border-bottom: 1px solid var(--rule); margin: 0; }
.lines a { display: flex; flex-direction: column; padding: .75rem 0; text-decoration: none; color: var(--ink); }
.lines a:hover .rm-title { color: var(--bronze); text-decoration: underline; }
.rm-title { font-weight: 650; }
.rm-text { color: var(--gray); font-size: .92rem; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0 0 1.5rem; border-left: 2px solid var(--rule); }
.tl-entry { position: relative; padding: 0 0 1.4rem 1.2rem; }
.tl-entry::before { content: ""; position: absolute; left: -6px; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--bronze); }
.tl-date { font-family: var(--mono); font-size: .8rem; color: var(--gray); margin: 0 0 .1rem !important; }
.tl-entry h3 { margin: 0 0 .3rem; }
.tl-source { display: block; font-size: .86rem; color: var(--gray); margin-top: .3rem; }

/* faq index */
.faq-block ul { padding-left: 1.2rem; }

/* footer */
.foot { background: var(--paper); border-top: 1px solid var(--rule); margin-top: 2rem; font-size: .92rem; }
.foot-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-top: 2.2rem; padding-bottom: 1.6rem; }
.foot-brand { font-family: var(--head); font-weight: 700; display: flex; gap: .5rem; align-items: center; margin: 0 0 .5rem; }
.foot-title { font-weight: 700; margin: 0 0 .5rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .3rem; }
.foot a { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--rule);
  padding-top: 1rem; padding-bottom: 1.6rem; color: var(--gray); font-size: .85rem; }
.foot-bottom p { margin: 0; }
.hoibi-mark { width: .95em; height: .9em; vertical-align: -.08em; margin-right: .3em; }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 4rem; background: var(--white);
    border-bottom: 1px solid var(--rule); padding: .6rem 1rem 1rem; z-index: 10; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; gap: .5rem; }
  .top { position: relative; }
  .foot-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .tab-stack thead { display: none; }
  .tab-stack tr { display: block; border-bottom: 1px solid var(--rule); padding: .4rem 0; }
  .tab-stack th, .tab-stack td { display: block; border: 0; padding: .2rem 0; }
  .tab-stack td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: .74rem; color: var(--gray); }
}
@media print { .top, .foot, .toc, .burger { display: none; } }
