/* industryway.org — shared stylesheet
   No external requests: no fonts, no analytics, no CDN. */

:root {
  --bg:        #faf8f4;
  --surface:   #f2eee6;
  --fg:        #1b1917;
  --muted:     #5c564e;
  --rule:      #ddd5c8;
  --link:      #1f4e63;
  --link-hov:  #0f3442;
  --accent:    #8a3a1e;
  --measure:   34rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #16150f;
    --surface: #1f1d16;
    --fg:      #ece7dd;
    --muted:   #a9a195;
    --rule:    #343029;
    --link:    #8cc4d8;
    --link-hov:#b3dced;
    --accent:  #d98a62;
  }
}
:root[data-theme="dark"] {
  --bg:      #16150f;
  --surface: #1f1d16;
  --fg:      #ece7dd;
  --muted:   #a9a195;
  --rule:    #343029;
  --link:    #8cc4d8;
  --link-hov:#b3dced;
  --accent:  #d98a62;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype",
               Palatino, Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

@media (min-width: 40rem) { body { font-size: 1.125rem; } }

/* ---------- layout ---------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 16px;
}

main { display: block; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 0;
  z-index: 10;
  background: var(--fg);
  color: var(--bg);
  padding: .6rem 1rem;
  text-decoration: none;
}

/* ---------- masthead ---------- */

header.masthead {
  border-bottom: 3px solid var(--accent);
  padding: 2.5rem 0 1.5rem;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .4rem;
  font-weight: 700;
}
@media (min-width: 40rem) { h1 { font-size: 2.6rem; } }

.subhead {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 400;
  color: var(--fg);
  margin: 0 0 1.1rem;
}
@media (min-width: 40rem) { .subhead { font-size: 1.45rem; } }

.locality {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .8rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ---------- prose ---------- */

h2 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 2.75rem 0 .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-weight: 700;
}
@media (min-width: 40rem) { h2 { font-size: 1.5rem; } }

h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 .6rem;
  font-weight: 650;
}

p { margin: 0 0 1.15rem; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--link-hov); }

strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- quotations of records ---------- */

blockquote.doc {
  margin: 1.5rem 0;
  padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--accent);
}
blockquote.doc p { margin-bottom: .5rem; }
blockquote.doc p:last-of-type { margin-bottom: 0; }

blockquote.doc cite,
.attrib {
  display: block;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .82rem;
  font-style: normal;
  line-height: 1.45;
  color: var(--muted);
  margin-top: .45rem;
}

/* ---------- boxes ---------- */

.callout,
.note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.1rem 1.15rem;
  margin: 1.75rem 0;
  font-size: .96em;
}

.callout p:last-child,
.note p:last-child { margin-bottom: 0; }

.note { border-left: 3px solid var(--accent); }

.note .more {
  display: block;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  margin-top: .9rem;
}
.note .more .after {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: .15rem;
}

/* ---------- document lists ---------- */

.docs { margin: 0 0 1.5rem; padding-left: 0; list-style: none; }
.docs li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .96em;
  line-height: 1.5;
}
.docs li:first-child { border-top: 1px solid var(--rule); }
.docs .d { color: var(--muted); font-size: .88em; display: block; }

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: .55rem; }

/* ---------- footer ---------- */

footer.foot {
  margin-top: 3.5rem;
  border-top: 3px solid var(--accent);
  padding: 1.5rem 0 3.5rem;
  font-size: .92rem;
  color: var(--muted);
}
footer.foot .who { color: var(--fg); font-weight: 700; }
footer.foot p { margin-bottom: .55rem; }

.backlink {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  margin: 2.5rem 0 0;
}

/* ---------- print ---------- */

@media print {
  :root {
    --bg: #fff; --surface: #fff; --fg: #000;
    --muted: #333; --rule: #bbb; --link: #000; --accent: #000;
  }
  body { font-size: 11pt; }
  .skip, .backlink { display: none; }
  .wrap { max-width: none; padding: 0; }
  h2 { page-break-after: avoid; }
  blockquote.doc, .callout, .note { page-break-inside: avoid; }
  .docs a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}

/* ===== added 2026-10-26: decision lede, source disclosures, claim cards ===== */

.lede {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 3px;
  padding: 1.25rem 1.2rem;
  margin: 0 0 2rem;
}
.lede .kicker {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .75rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 .4rem;
}
.lede p:last-child { margin-bottom: 0; }
.lede .big { font-size: 1.1em; }

/* collapsible source lists */
details.sources {
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
details.sources > summary {
  cursor: pointer;
  list-style: none;
  padding: .7rem 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
}
details.sources > summary::-webkit-details-marker { display: none; }
details.sources > summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  font-weight: 700;
  color: var(--accent);
}
details.sources[open] > summary::before { content: "\2212"; }
details.sources > summary:hover { color: var(--fg); }
details.sources .docs { margin: .25rem 0 1rem; }
details.sources .docs li:first-child { border-top: none; }

/* what he said / what the record shows */
.claims { margin: 1.5rem 0 2rem; }
.claim {
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.claim .said {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: .9rem 1rem;
}
.claim .said p { margin: 0 0 .4rem; font-size: 1.02em; }
.claim .said .attrib { margin-top: 0; }
.claim .record { padding: .9rem 1rem; }
.claim .record p { margin: 0; }
.claim .record .lbl {
  display: block;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .3rem;
}
@media (min-width: 52rem) {
  .claim { display: grid; grid-template-columns: 1fr 1fr; }
  .claim .said { border-left: none; border-right: 3px solid var(--accent); }
}

/* measured caveat block */
.limits {
  border: 1px dashed var(--rule);
  border-radius: 3px;
  padding: 1rem 1.1rem;
  margin: 1.75rem 0;
  font-size: .95em;
  color: var(--fg);
}
.limits p:last-child { margin-bottom: 0; }
.limits .lbl {
  display: block;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .5rem;
}

@media print {
  details.sources[open] > summary::before,
  details.sources > summary::before { content: ""; }
  details.sources > summary { font-weight: 700; color: #000; }
  details.sources .docs { display: block !important; }
  .claim { page-break-inside: avoid; }
  .lede { border: 1px solid #000; }
}

/* ===== added 2026-10-28: on-this-page menu ===== */

.layout { display: block; }

.toc {
  max-width: var(--measure);
  margin: 0 auto 2rem;
  padding: 0 16px;
}
.toc-title {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 .5rem;
}
.toc ol {
  margin: 0;
  padding: .75rem 0 .75rem 1.4rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .9rem;
  line-height: 1.35;
}
.toc li { margin: 0 0 .4rem; }
.toc li:last-child { margin-bottom: 0; }
.toc a { text-decoration: none; }
.toc a:hover, .toc a:focus { text-decoration: underline; }

h2[id] { scroll-margin-top: 1.5rem; }

@media (min-width: 64rem) {
  .layout {
    display: grid;
    grid-template-columns: 13rem minmax(0, calc(var(--measure) + 32px));
    gap: 3.5rem;
    justify-content: center;
    align-items: start;
  }
  .layout > .wrap { margin: 0; max-width: none; }
  .toc {
    position: sticky;
    top: 2.5rem;
    margin: 0;
    padding: 0;
    max-width: none;
  }
  .toc ol {
    border: none;
    border-left: 2px solid var(--rule);
    padding: 0 0 0 1rem;
    list-style: none;
    counter-reset: toc;
  }
  .toc li { margin-bottom: .55rem; }
}

@media print { .toc { display: none; } }
