/* teajaypierce.com — page layouts for the Industry design system.
   Home (public front page), Panel (signed-in dashboard), Login.
   Tokens/components come from industry.css; this file only lays pages out.
   The artboards were desktop-only — responsive rules live at the bottom. */

body { margin: 0; background: var(--color-bg); font-family: var(--font-body); }
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-warm-700); }

/* ── shared type utilities ─────────────────────────────────────── */
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.k { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-neutral-600); }
.k-xs { font-size: 9px; letter-spacing: .14em; }
.k.blue  { color: var(--color-accent-700); }
.k.green { color: var(--color-accent-2-700); }
.k.warm  { color: var(--color-warm-700); }
.hd { font-family: var(--font-heading); font-weight: 600; line-height: 1; }
.big-num { font-family: var(--font-heading); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.section-k { font-family: var(--font-heading); font-size: 15px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--color-neutral-700); }
.rule-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.rule-head .line { flex: 1; height: 1px; background: var(--color-divider); }
.dot { width: 6px; height: 6px; display: inline-block; }
.dot.ok   { background: var(--color-accent-2-600); }
.dot.warn { background: var(--color-warm-600); }
.dot.bad  { background: var(--color-warm-700); }
.dot.off  { background: var(--color-neutral-400); }
.uplink { font-family: var(--font-heading); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.tag { border-radius: 0; }
.tag-green { background: var(--color-accent-2-200); color: var(--color-accent-2-800); }
.stat-grid { display: grid; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.stat-grid > div { padding: 12px 8px; }
.stat-grid > div:first-child { padding-left: 0; }
.stat-grid > div:last-child { padding-right: 0; }
.stat-grid .v { font-family: var(--font-heading); font-weight: 600; font-size: 30px; line-height: 1; }
.stat-grid .l { font-family: ui-monospace, monospace; font-size: 9px; color: var(--color-neutral-600); margin-top: 3px; letter-spacing: .06em; }
.bar { height: 10px; background: var(--color-neutral-300); display: flex; position: relative; }
.bar > .fill { background: var(--color-accent-2-600); }
.bar > .rest { flex: 1; background: var(--color-warm-500); }
.metar { font-family: ui-monospace, monospace; font-size: 10.5px; line-height: 1.6; color: var(--color-neutral-700);
  background: var(--color-neutral-200); border: 1px solid var(--color-divider); padding: 8px 10px; word-break: break-all; }
.tj-mark { display: inline-flex; align-items: center; justify-content: center; background: var(--color-warm-600);
  color: #fff; font-family: var(--font-heading); font-weight: 600; }
.btn.blueprint { position: relative; }
.btn-warm { background: var(--color-warm-600) !important; border-color: var(--color-warm-600) !important; color: #fff !important; }
.btn-warm:hover { background: var(--color-warm-700) !important; }
.btn-green { background: var(--color-accent-2-700) !important; border-color: var(--color-accent-2-700) !important; color: #fff !important; }
.btn-blue  { background: var(--color-accent-700) !important; border-color: var(--color-accent-700) !important; color: #fff !important; }
.hatch-warm  { background: repeating-linear-gradient(-45deg, var(--color-warm-200) 0 7px, var(--color-bg) 7px 14px); }
.hatch-green { background: repeating-linear-gradient(-45deg, var(--color-accent-2-200) 0 7px, var(--color-bg) 7px 14px); }
.hatch-blue  { background: repeating-linear-gradient(-45deg, var(--color-accent-200) 0 7px, var(--color-bg) 7px 14px); }
.thumb { border: 1px solid var(--color-divider); position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.duotone::after { mix-blend-mode: color; }

/* ── HOME (public front page) ──────────────────────────────────── */
.sheet { max-width: 1400px; margin: 0 auto; min-height: 100vh;
  border-left: 1px solid var(--color-divider); border-right: 1px solid var(--color-divider); }
.masthead { padding: 30px 44px 18px; border-bottom: 3px double var(--color-neutral-800); }
.masthead-meta { display: flex; justify-content: space-between; margin-bottom: 14px; }
.masthead-row { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; }
.masthead h1 { font-family: var(--font-heading); font-weight: 600; font-size: 76px; line-height: .92;
  letter-spacing: .03em; text-transform: uppercase; margin: 0; }
.masthead-right { display: flex; align-items: center; gap: 14px; }
.wx-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--color-accent-2-400);
  color: var(--color-accent-2-700); padding: 4px 9px; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .12em; }
.wx-chip.mvfr { border-color: var(--color-warm-400); color: var(--color-warm-700); }
.wx-chip.ifr  { border-color: var(--color-warm-600); color: var(--color-warm-800); }
.wx-chip .dot { background: currentColor; }
.tagline { font-family: var(--font-heading); font-size: 15px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--color-accent-2-700); margin-top: 8px; }
.topnav { display: flex; justify-content: center; gap: 32px; padding: 13px 44px; border-bottom: 1px solid var(--color-divider);
  font-family: var(--font-heading); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.topnav .soon { color: var(--color-neutral-400); cursor: default; }
.lead { display: grid; grid-template-columns: 2.15fr 1fr; }
.lead-main { padding: 34px 34px 34px 44px; border-right: 1px solid var(--color-divider); }
.lead-side { padding: 34px 44px 34px 30px; }
.lead h2 { font-family: var(--font-heading); font-weight: 600; font-size: 56px; line-height: 1.02; margin: 16px 0 12px; text-wrap: balance; }
.lead h2 a { color: inherit; }
.lead-figure { height: 250px; margin-bottom: 22px; border: 1px solid var(--color-divider); display: flex;
  align-items: center; justify-content: center; position: relative; }
.lead-figure .cap { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .08em;
  color: var(--color-accent-800); background: var(--color-bg); padding: 4px 8px; }
.lead-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chambers { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-bottom: 22px;
  border-bottom: 1px solid var(--color-divider); margin-bottom: 22px; }
.chamber-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.chamber-head .v { font-family: var(--font-heading); font-weight: 600; font-size: 38px; line-height: 1; }
.lead-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; font-size: 16px; line-height: 1.62; color: var(--color-neutral-800); }
.lead-copy p:first-child { margin: 0; padding-right: 30px; border-right: 1px solid var(--color-divider); }
.dropcap { float: left; font-family: var(--font-heading); font-weight: 600; font-size: 56px; line-height: .8;
  padding: 4px 8px 0 0; color: var(--color-warm-600); }
.side-k { font-family: var(--font-heading); font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
  padding-bottom: 10px; border-bottom: 2px solid var(--color-neutral-800); margin-bottom: 16px; }
.wx-now { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.wx-now .t { font-family: var(--font-heading); font-weight: 600; font-size: 56px; line-height: .85; }
.wx-now .c { font-family: var(--font-heading); font-size: 20px; line-height: 1; }
.wx-days { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--color-divider); margin-bottom: 12px; }
.wx-days > div { padding: 8px; border-right: 1px solid var(--color-divider); }
.wx-days > div:last-child { border-right: none; }
.wx-days > div.today { background: var(--color-accent-100); }
.wx-days .d { font-family: ui-monospace, monospace; font-size: 8px; color: var(--color-neutral-600); }
.wx-days .t { font-family: var(--font-heading); font-size: 19px; }
.league { display: grid; margin-bottom: 8px; }
.league-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--color-divider); }
.league-row .rank { font-family: ui-monospace, monospace; font-size: 11px; color: var(--color-neutral-600); text-align: center; }
.league-row .rank.first { font-family: var(--font-heading); font-size: 13px; background: var(--color-warm-600); color: #fff; line-height: 18px; }
.league-row .name { font-family: var(--font-heading); font-size: 18px; }
.league-row .pts { font-family: var(--font-heading); font-size: 20px; }
.dispatch { border: 1px solid var(--color-divider); padding: 20px; background: var(--color-accent-2-100); position: relative; }
.dispatch h3 { font-family: var(--font-heading); font-size: 24px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.dispatch p { font-size: 14px; line-height: 1.5; color: var(--color-neutral-700); margin: 0 0 14px; }
.archives { padding: 30px 44px; border-top: 3px double var(--color-neutral-800); }
.archives-k { font-family: var(--font-heading); font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 18px; color: var(--color-neutral-700); }
.archives-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.archives-grid > * { padding: 0 26px; border-right: 1px solid var(--color-divider); color: inherit; }
.archives-grid > *:first-child { padding-left: 0; }
.archives-grid > *:last-child { border-right: none; padding-right: 0; }
.arch-thumb { height: 130px; margin-bottom: 14px; border: 1px solid var(--color-divider); overflow: hidden; position: relative; }

/* Photo slideshows (slides.js) — two stacked imgs crossfading over the hatch. */
.slides { overflow: hidden; }
.slides .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.slides .slide.on { opacity: 1; }
.slides.duotone::after { display: none; }          /* show the photos in colour */
.slides .cap { position: relative; z-index: 2; }
.lead-figure.slides .cap { position: absolute; left: 10px; bottom: 8px; }
.arch-title { font-family: var(--font-heading); font-weight: 600; font-size: 28px; line-height: 1.08; }
.arch-blurb { font-size: 15px; line-height: 1.5; color: var(--color-neutral-700); margin: 8px 0 0; }
.ws-list { display: grid; gap: 12px; }
.ws-list a { color: inherit; }
.ws-list .t { font-family: var(--font-heading); font-size: 21px; line-height: 1.15; }
.about-strip { padding: 28px 44px; border-top: 1px solid var(--color-divider); display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center; background: var(--color-neutral-200); }
.about-strip p { font-family: var(--font-heading); font-size: 30px; line-height: 1.22; margin: 0; max-width: 64ch; text-wrap: pretty; }
.colophon { padding: 20px 44px; border-top: 1px solid var(--color-divider); display: flex; justify-content: space-between;
  font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; color: var(--color-neutral-600); }
.colophon div { display: flex; gap: 20px; }

/* ── LOGIN ─────────────────────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-bar { padding: 18px 44px; border-bottom: 3px double var(--color-neutral-800); display: flex; align-items: center; justify-content: space-between; }
.login-bar .brand { font-family: var(--font-heading); font-size: 22px; letter-spacing: .14em; text-transform: uppercase; color: inherit; }
.login-stage { flex: 1; display: grid; place-items: center; padding: 60px 40px; }
.login-box { width: min(420px, 100%); }
.login-card { border: 1px solid var(--color-divider); background: var(--color-bg); padding: 36px 36px 32px; position: relative; box-shadow: var(--shadow-md); }
.login-card h1 { font-family: var(--font-heading); font-weight: 600; font-size: 44px; line-height: .95; text-transform: uppercase; margin: 0 0 10px; }
.login-card p { font-size: 15px; line-height: 1.55; color: var(--color-neutral-700); margin: 0 0 24px; }
.login-card .field label { font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .14em; }
.login-foot { display: flex; justify-content: space-between; margin-top: 16px; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; color: var(--color-neutral-600); }
.flash-err { margin: 0 0 14px; padding: 9px 12px; font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .06em;
  border: 1px solid var(--color-warm-600); color: var(--color-warm-800); background: var(--color-warm-100); }

/* ── PANEL (signed in) ─────────────────────────────────────────── */
.panel { min-height: 100vh; display: grid; grid-template-columns: 212px 1fr; max-width: 1600px; margin: 0 auto;
  border-left: 1px solid var(--color-divider); border-right: 1px solid var(--color-divider); }
.rail { border-right: 1px solid var(--color-divider); background: var(--color-neutral-200); display: flex; flex-direction: column; }
.rail-brand { padding: 16px 18px; border-bottom: 1px solid var(--color-divider); display: flex; align-items: center; gap: 11px;
  font-family: var(--font-heading); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.rail-group { padding: 16px 18px; border-bottom: 1px solid var(--color-divider); }
.rail-group .k { margin-bottom: 10px; font-size: 9px; letter-spacing: .16em; }
.rail-list { display: grid; gap: 7px; font-family: var(--font-heading); font-size: 17px; letter-spacing: .03em; }
.rail-list a { display: flex; justify-content: space-between; align-items: center; color: inherit; gap: 8px; }
.rail-list a:hover { color: var(--color-accent-700); }
.rail-list a .m { font-family: ui-monospace, monospace; font-size: 10px; color: var(--color-neutral-600); letter-spacing: .04em; }
.rail-list a .m.green { color: var(--color-accent-2-700); font-size: 9px; }
.rail-list a .m.warm  { color: var(--color-warm-700); font-size: 9px; }
.rail-foot { margin-top: auto; padding: 16px 18px; border-top: 1px solid var(--color-divider); font-family: ui-monospace, monospace;
  font-size: 10px; letter-spacing: .1em; color: var(--color-neutral-600); display: grid; gap: 6px; }
.rail-lock { font-size: 9px; color: var(--color-neutral-500); letter-spacing: .04em; }
.band { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: end; padding: 30px 34px 24px; border-bottom: 1px solid var(--color-divider); }
.band h1 { font-family: var(--font-heading); font-weight: 600; font-size: 58px; line-height: .94; text-transform: uppercase; margin: 0 0 14px; }
.band-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.strip { display: flex; border: 1px solid var(--color-divider); }
.strip > div { padding: 12px 18px; border-right: 1px solid var(--color-divider); text-align: right; }
.strip > div:last-child { border-right: none; }
.strip .v { font-family: var(--font-heading); font-weight: 600; font-size: 30px; line-height: 1; }
.strip .l { font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .1em; color: var(--color-neutral-600); margin-top: 3px; }
.focus { display: grid; grid-template-columns: 1.1fr 1fr; border-bottom: 1px solid var(--color-divider); }
.focus-fly { padding: 28px 30px 28px 34px; border-right: 1px solid var(--color-divider); background: var(--color-accent-2-100); position: relative; }
.focus-fly.nogo { background: var(--color-warm-100); }
.focus-sky { padding: 28px 34px 28px 30px; position: relative; }
.focus-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fcat-badge { font-family: var(--font-heading); font-size: 18px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--color-accent-2-700); color: #fff; padding: 2px 12px; }
.fcat-badge.mvfr { background: var(--color-warm-600); }
.fcat-badge.ifr, .fcat-badge.lifr { background: var(--color-warm-800); }
.focus h2 { font-family: var(--font-heading); font-weight: 600; font-size: 46px; line-height: 1; margin: 0 0 6px; }
.focus p { font-size: 16px; line-height: 1.5; color: var(--color-neutral-800); margin: 0 0 20px; max-width: 44ch; }
.prog-head { margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.prog-head .v { font-family: var(--font-heading); font-size: 22px; }
.prog { height: 12px; background: var(--color-neutral-300); position: relative; margin-bottom: 18px; }
.prog .fill { position: absolute; inset: 0 auto 0 0; background: var(--color-accent-2-600); }
.prog .mark { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--color-neutral-800); }
.sky-now { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.sky-now .t { font-family: var(--font-heading); font-weight: 600; font-size: 80px; line-height: .85; }
.sky-now .c { font-family: var(--font-heading); font-size: 26px; line-height: 1; }
.sky-box { border: 1px solid var(--color-divider); padding: 14px 16px 10px; margin-bottom: 16px; }
.sky-box-head { display: flex; justify-content: space-between; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .1em; color: var(--color-neutral-600); margin-bottom: 8px; }
.sky-days { display: grid; grid-template-columns: repeat(4, 1fr); font-family: ui-monospace, monospace; font-size: 10px; color: var(--color-neutral-700);
  text-align: center; border-top: 1px solid var(--color-divider); padding-top: 8px; line-height: 1.5; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--color-divider); }
.cards3 > a, .cards3 > div { color: inherit; padding: 24px 26px; border-right: 1px solid var(--color-divider); display: block; position: relative; }
.cards3 > *:last-child { border-right: none; }
.card-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.card-h { font-family: var(--font-heading); font-weight: 600; font-size: 30px; line-height: 1; margin-bottom: 14px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin-bottom: 10px; }
.bars span { flex: 1; background: var(--color-accent-2-300); }
.bars span.now { background: var(--color-accent-2-500); }
.bars span.short { background: var(--color-warm-500); }
.foot-row { display: flex; justify-content: space-between; font-family: ui-monospace, monospace; font-size: 9px; color: var(--color-neutral-600);
  border-top: 1px solid var(--color-divider); padding-top: 8px; margin-bottom: 14px; }
.kv { display: grid; gap: 6px; font-family: ui-monospace, monospace; font-size: 11px; color: var(--color-neutral-700); }
.kv > div { display: flex; justify-content: space-between; }
.hawks { padding: 24px 34px; border-bottom: 1px solid var(--color-divider); background: var(--color-neutral-200); }
.hawks-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; border: 1px solid var(--color-divider); background: var(--color-bg); }
.hawks-grid > a { color: inherit; padding: 18px 20px; border-right: 1px solid var(--color-divider); position: relative; }
.hawks-grid > a:last-child { border-right: none; }
.hawks-grid .card-h { font-size: 26px; margin-bottom: 12px; }
.hawks-grid .n { font-family: var(--font-heading); font-weight: 600; font-size: 40px; line-height: 1; }
.hawks-grid .nl { font-family: ui-monospace, monospace; font-size: 9px; color: var(--color-neutral-600); margin-bottom: 12px; }
.hawks-grid .ft { font-family: ui-monospace, monospace; font-size: 10px; line-height: 1.7; color: var(--color-neutral-700);
  border-top: 1px solid var(--color-divider); padding-top: 8px; }
.minibars { display: flex; gap: 2px; height: 22px; align-items: flex-end; margin-bottom: 8px; }
.minibars span { flex: 1; height: 100%; background: var(--color-accent-2-400); }
.minibars span.down { background: var(--color-warm-500); height: 40%; }
.two { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--color-divider); }
.two > div:first-child { padding: 24px 30px 24px 34px; border-right: 1px solid var(--color-divider); }
.two > div:last-child { padding: 24px 34px 24px 30px; }
.two.build > div:first-child { background: var(--color-accent-100); grid-column: auto; }
.two.build { grid-template-columns: 1.35fr 1fr; border-bottom: none; }
.lb-row { display: grid; grid-template-columns: 20px 1fr 120px 40px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--color-divider); }
.lb-row:last-child { border-bottom: 1px solid var(--color-divider); }
.lb-row .rank { font-family: ui-monospace, monospace; font-size: 11px; color: var(--color-neutral-600); text-align: center; }
.lb-row .rank.first { font-family: var(--font-heading); font-size: 13px; background: var(--color-warm-600); color: #fff; line-height: 18px; }
.lb-row .name { font-family: var(--font-heading); font-size: 19px; }
.lb-row .meter { height: 8px; background: var(--color-neutral-300); display: block; }
.lb-row .meter span { display: block; height: 100%; background: var(--color-accent-500); }
.lb-row .meter.first span { background: var(--color-warm-600); }
.lb-row .pts { font-family: var(--font-heading); font-size: 21px; text-align: right; }
.boxlink { color: inherit; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--color-divider); padding: 14px 16px; position: relative; }
.boxlink .h { font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1; }
.boxlink .s { font-family: ui-monospace, monospace; font-size: 10px; color: var(--color-neutral-700); margin-top: 5px; }
.boxlink .v { font-family: var(--font-heading); font-weight: 600; font-size: 30px; line-height: 1; text-align: right; }
.lease { display: block; border: 1px solid var(--color-divider); padding: 16px 18px; position: relative; }
.lease-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 10px; }
.lease-head .h { font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1; }
.lease-head input { font-family: ui-monospace, monospace; font-size: 11px; width: 110px; padding: 4px 8px; border: 1px solid var(--color-divider);
  background: var(--color-bg); color: var(--color-text); text-align: right; }
.lease-bar { height: 14px; background: var(--color-neutral-300); position: relative; margin-bottom: 6px; }
.lease-bar .used { position: absolute; inset: 0 auto 0 0; background: var(--color-accent-2-600); width: 0; }
.lease-bar .used.over { background: var(--color-warm-600); }
.lease-bar .exp { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--color-neutral-800); }
.lease-scale { display: flex; justify-content: space-between; font-family: ui-monospace, monospace; font-size: 9px; color: var(--color-neutral-600); margin-bottom: 16px; }
.lease-delta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.lease-delta .v { font-family: var(--font-heading); font-weight: 600; font-size: 42px; line-height: 1; color: var(--color-accent-2-700); }
.lease-delta .v.over { color: var(--color-warm-700); }
.lease-rows { display: grid; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .06em; }
.lease-rows > div { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--color-divider); }
.lease-rows span:first-child { color: var(--color-neutral-600); }
.build-h { font-family: var(--font-heading); font-weight: 600; font-size: 44px; line-height: 1; margin-bottom: 10px; }
.build p { font-size: 16px; line-height: 1.55; color: var(--color-neutral-800); margin: 0 0 18px; max-width: 52ch; }
.creds { border-top: 1px dashed var(--color-divider); padding-top: 12px; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; color: var(--color-neutral-700); }
.creds summary { cursor: pointer; list-style: none; }
.creds table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 11px; letter-spacing: 0; }
.creds td, .creds th { padding: 4px 8px 4px 0; text-align: left; border-top: 1px solid var(--color-divider); }
.arch-row { color: inherit; display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--color-divider); margin-bottom: 16px; position: relative; }
.arch-row .th { height: 82px; border: 1px solid var(--color-divider); overflow: hidden; position: relative; }
.arch-row .h { font-family: var(--font-heading); font-weight: 600; font-size: 26px; line-height: 1.05; }
.panel-foot { padding: 18px 34px; border-top: 1px solid var(--color-divider); display: flex; justify-content: space-between;
  font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; color: var(--color-neutral-600); }

/* admin padlocks (site lock toggles) — drawn as small registration-mark buttons */
.lock-toggle { position: absolute; top: 8px; right: 8px; z-index: 6; width: 24px; height: 24px;
  border: 1px solid var(--color-divider); background: var(--color-bg); font-size: 11px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .35; transition: opacity .15s; }
*:hover > .lock-toggle, .lock-toggle:focus-visible { opacity: 1; }
.lock-toggle.locked { border-color: var(--color-warm-600); opacity: .8; }
.lock-toggle--inline { position: static; width: auto; height: auto; padding: 2px 7px; margin-left: 6px; opacity: .9; display: inline-flex; }
.access-admin { padding: 10px 34px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; color: var(--color-neutral-600); }
.access-admin .lock-row { display: inline-flex; align-items: center; border: 1px solid var(--color-divider); padding: 3px 4px 3px 9px; }

/* ── responsive (artboards were desktop) ───────────────────────── */
@media (max-width: 1100px) {
  .masthead h1 { font-size: 52px; }
  .lead { grid-template-columns: 1fr; }
  .lead-main { border-right: none; border-bottom: 1px solid var(--color-divider); padding: 28px 28px; }
  .lead-side { padding: 28px; }
  .lead h2 { font-size: 40px; }
  .archives-grid { grid-template-columns: 1fr; }
  .archives-grid > * { padding: 0 0 22px; border-right: none; border-bottom: 1px solid var(--color-divider); margin-bottom: 22px; }
  .archives-grid > *:last-child { border-bottom: none; margin-bottom: 0; }
  .about-strip { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .rail { border-right: none; border-bottom: 1px solid var(--color-divider); }
  .rail-group { display: none; }           /* groups fold away; main cards carry the links */
  .rail-foot { margin-top: 0; border-top: none; display: flex; justify-content: space-between; }
  .band { grid-template-columns: 1fr; }
  .strip { flex-wrap: wrap; }
  .strip > div { flex: 1 1 40%; text-align: left; }
  .focus, .cards3, .two { grid-template-columns: 1fr; }
  .focus-fly, .cards3 > a, .cards3 > div, .two > div:first-child { border-right: none; border-bottom: 1px solid var(--color-divider); }
  .hawks-grid { grid-template-columns: 1fr 1fr; }
  .hawks-grid > a { border-bottom: 1px solid var(--color-divider); }
  .hawks-grid > a:nth-child(even) { border-right: none; }
}
@media (max-width: 640px) {
  .masthead { padding: 22px 18px 14px; }
  .masthead-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .masthead h1 { font-size: 40px; }
  .masthead-meta { font-size: 9px; gap: 8px; }
  .topnav { gap: 14px; padding: 11px 14px; font-size: 13px; flex-wrap: wrap; }
  .lead-main, .lead-side, .archives, .about-strip, .colophon { padding-left: 18px; padding-right: 18px; }
  .lead-copy { grid-template-columns: 1fr; }
  .lead-copy p:first-child { border-right: none; padding-right: 0; margin-bottom: 12px; }
  .band, .hawks, .two > div, .focus-fly, .focus-sky, .cards3 > a, .panel-foot, .access-admin { padding-left: 18px; padding-right: 18px; }
  .band h1 { font-size: 40px; }
  .sky-now .t { font-size: 60px; }
  .hawks-grid { grid-template-columns: 1fr; }
  .hawks-grid > a { border-right: none; }
  .colophon { flex-direction: column; gap: 10px; }
  .login-bar { padding: 14px 18px; }
  .login-stage { padding: 30px 16px; }
  .login-card { padding: 26px 22px; }
}

/* forecast map images (rendered server-side by midterms/mapimage.py) */
.lead-figure.has-map { height: 300px; background: var(--color-bg); }
.lead-figure.has-map img { object-fit: contain; padding: 8px 8px 26px; }
.lead-figure.has-map .cap { position: absolute; left: 10px; bottom: 8px; }
.card-map { display: block; width: 100%; height: auto; border: 1px solid var(--color-divider);
  background: var(--color-bg); margin: 0 0 12px; }

/* ═══ Mobile overflow hardening — no sideways scroll, no pinch-zoom needed ═══
   Appended last so these win. Two prongs: (1) a hard guard so the page can
   never scroll horizontally, (2) fluid headings + wrapping rows so nothing is
   actually clipped by that guard. */
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { min-width: 0; }          /* let grid/flex children shrink */
.sheet, .panel { max-width: 100%; }
img, svg, table { max-width: 100%; }

/* The oversized display headings were the main culprits — make them fluid so
   they scale with the screen instead of forcing width. */
.masthead h1 { font-size: clamp(28px, 10vw, 76px); overflow-wrap: anywhere; }
.band h1     { font-size: clamp(28px, 9vw, 58px);  overflow-wrap: anywhere; }
.lead h2     { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  /* the three-part masthead dateline row wraps instead of overflowing */
  .masthead-meta { flex-wrap: wrap; gap: 4px 12px; }
  .masthead-meta span:nth-child(2) { order: 3; flex-basis: 100%; }
  /* F1X leaderboard: drop the fixed-width meter track on phones */
  .lb-row { grid-template-columns: 20px 1fr auto; }
  .lb-row .meter { display: none; }
  .lease-head { flex-wrap: wrap; }
  .creds table, .dl-table { font-size: 11px; }
  .strip > div { flex-basis: 45%; }
}
@media (max-width: 380px) {
  .masthead h1, .band h1 { font-size: 26px; }
  .strip > div { flex-basis: 100%; }
}

/* ═══ Dark-mode component nudges (tokens flip the rest automatically) ═══ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) a { color: var(--color-accent-500); }
}
:root[data-theme="dark"] a { color: var(--color-accent-500); }

/* ── THOUGHTS (thought dumps — /thoughts) ──────────────────────── */
.th-head { padding: 18px 44px; border-bottom: 3px double var(--color-neutral-800);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.th-head .brand { font-family: var(--font-heading); font-size: 22px; letter-spacing: .14em; text-transform: uppercase; color: inherit; }
.th-head nav { display: flex; gap: 26px; align-items: center; font-family: var(--font-heading); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.th-head nav .here { color: var(--color-warm-700); }
.th-head .th-signin { font-size: 10px; }
.th-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 44px 44px 34px; border-bottom: 1px solid var(--color-divider); }
.th-title { font-family: var(--font-heading); font-weight: 600; font-size: 84px; line-height: .9; text-transform: uppercase; margin: 0 0 18px; }
.th-lede { font-family: var(--font-heading); font-size: 26px; line-height: 1.25; color: var(--color-neutral-700); margin: 0; text-wrap: pretty; max-width: 30ch; }
.th-hero-side { padding-top: 6px; }
.th-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.th-tags a { border: 1px solid var(--color-divider); padding: 3px 9px; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; color: var(--color-neutral-700); }
.th-tags a.on, .th-tags a:hover { border-color: var(--color-warm-600); color: var(--color-warm-700); }
.th-list { padding: 0 44px; }
.th-row { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--color-divider); }
.th-row:last-child { border-bottom: none; }
.th-row.is-draft { background: repeating-linear-gradient(-45deg, var(--color-warm-100) 0 6px, transparent 6px 12px); margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.th-meta { display: flex; flex-direction: column; gap: 4px; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-neutral-600); }
.th-meta a { color: var(--color-accent-700); }
.th-meta .tag { align-self: flex-start; margin-bottom: 4px; }
.th-edit { color: var(--color-warm-700) !important; }
.th-body h2 { font-family: var(--font-heading); font-weight: 600; font-size: 38px; line-height: 1.02; margin: -4px 0 12px; text-wrap: balance; }
.th-body h2 a { color: inherit; }
.th-body h2 a:hover { color: var(--color-warm-700); }
.th-excerpt { font-size: 16px; line-height: 1.6; color: var(--color-neutral-800); margin: 0 0 10px; max-width: 64ch; }
.th-empty { padding: 60px 0; }
/* post page */
.th-post { display: grid; grid-template-columns: 1fr minmax(0, 720px) 1fr; }
.th-rail { padding: 40px 28px; }
.th-rail-l { border-right: 1px solid var(--color-divider); text-align: right; }
.th-rail-r { border-left: 1px solid var(--color-divider); }
.th-sticky { position: sticky; top: 28px; }
.th-hr { height: 1px; background: var(--color-divider); margin: 16px 0; }
.th-article { padding: 48px 44px 64px; }
.th-h1 { font-family: var(--font-heading); font-weight: 600; font-size: 56px; line-height: 1; margin: 18px 0 26px; text-wrap: balance; }
.th-nav { margin-top: 40px; border-top: 3px double var(--color-neutral-800); padding-top: 20px; display: flex; justify-content: space-between; gap: 30px; }
.th-nav a { color: inherit; max-width: 46%; }
.th-nav a.r { text-align: right; margin-left: auto; }
.th-nav .t { font-family: var(--font-heading); font-size: 22px; line-height: 1.1; margin-top: 6px; }
.th-nav a:hover .t { color: var(--color-warm-700); }
.th-recent a { display: block; color: inherit; padding: 10px 0; border-bottom: 1px solid var(--color-divider); }
.th-recent .t { font-family: var(--font-heading); font-size: 18px; line-height: 1.1; }
.th-recent a:hover .t { color: var(--color-warm-700); }
/* prose (rendered markdown) */
.th-prose { font-size: 17px; line-height: 1.7; color: var(--color-neutral-800); max-width: 66ch; }
.th-prose-sm { font-size: 16px; line-height: 1.65; }
.th-prose > :first-child { margin-top: 0; }
.th-prose p { margin: 0 0 18px; }
.th-prose > p:first-child::first-letter { font-family: var(--font-heading); font-weight: 600; font-size: 3.2em; line-height: .78; float: left; padding: 6px 10px 0 0; color: var(--color-warm-600); }
.th-prose-sm > p:first-child::first-letter { font-size: inherit; line-height: inherit; float: none; padding: 0; color: inherit; font-family: inherit; font-weight: inherit; }
.th-prose h2, .th-prose h3, .th-prose h4, .th-prose h5 { font-family: var(--font-heading); font-weight: 600; line-height: 1.1; margin: 30px 0 10px; }
.th-prose h2 { font-size: 32px; } .th-prose h3 { font-size: 26px; } .th-prose h4, .th-prose h5 { font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.th-prose blockquote { border-top: 2px solid var(--color-neutral-800); border-bottom: 1px solid var(--color-divider); padding: 18px 0; margin: 26px 0; }
.th-prose blockquote p { font-family: var(--font-heading); font-size: 26px; line-height: 1.2; color: var(--color-neutral-900); margin: 0; }
.th-prose blockquote p + p { margin-top: 12px; }
.th-prose ul, .th-prose ol { margin: 0 0 18px; padding-left: 1.4em; }
.th-prose li { margin-bottom: 6px; }
.th-prose hr { border: 0; border-top: 1px solid var(--color-divider); margin: 28px 0; }
.th-prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; background: var(--color-neutral-200); padding: 1px 5px; }
.th-prose pre { background: var(--color-neutral-200); border: 1px solid var(--color-divider); padding: 14px 16px; overflow-x: auto; margin: 0 0 18px; font-size: 13px; line-height: 1.5; }
.th-prose pre code { background: none; padding: 0; font-size: inherit; }
.th-prose img { max-width: 100%; height: auto; display: block; border: 1px solid var(--color-divider); margin: 8px 0 18px; }
.th-prose a { text-decoration: underline; text-decoration-color: var(--color-divider); text-underline-offset: 3px; }
.th-prose a:hover { text-decoration-color: currentColor; }
/* editor */
.th-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.th-ed-main { padding: 36px 44px 60px; border-right: 1px solid var(--color-divider); }
.th-ed-side { padding: 36px 30px; }
.th-ed-title { width: 100%; box-sizing: border-box; border: 0; border-bottom: 2px solid var(--color-neutral-800); background: transparent; color: inherit;
  font-family: var(--font-heading); font-weight: 600; font-size: 44px; line-height: 1.05; padding: 6px 0 10px; margin-bottom: 18px; outline: none; }
.th-ed-title::placeholder { color: var(--color-neutral-400); font-weight: 400; }
.th-ed-body { width: 100%; box-sizing: border-box; min-height: 320px; resize: vertical; border: 1px solid var(--color-divider); background: transparent; color: inherit;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14.5px; line-height: 1.65; padding: 16px 18px; outline: none; }
.th-ed-body:focus { border-color: var(--color-accent); }
.th-ed-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.th-preview { margin-top: 26px; border-top: 3px double var(--color-neutral-800); padding-top: 18px; }
.th-ed-field { display: block; margin-bottom: 14px; }
.th-ed-field .k { display: block; margin-bottom: 5px; }
.th-ed-field .input { width: 100%; box-sizing: border-box; }
.th-ed-check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 6px 0 16px; cursor: pointer; }
.th-del { color: var(--color-warm-700) !important; }
.th-error { border: 1px solid var(--color-warm-600); color: var(--color-warm-800); padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }
/* home sidebar block */
.th-side a { display: block; color: inherit; padding: 9px 0; border-bottom: 1px solid var(--color-divider); }
.th-side .t { font-family: var(--font-heading); font-size: 18px; line-height: 1.1; }
.th-side a:hover .t { color: var(--color-warm-700); }
@media (max-width: 1100px) {
  .th-post { grid-template-columns: 1fr; }
  .th-rail-l { border-right: none; border-bottom: 1px solid var(--color-divider); text-align: left; padding: 22px 44px; }
  .th-rail-l .th-hr { display: none; }
  .th-rail-l .th-sticky { position: static; display: flex; gap: 30px; flex-wrap: wrap; }
  .th-rail-r { border-left: none; border-top: 1px solid var(--color-divider); padding: 28px 44px; }
  .th-rail-r .th-sticky { position: static; }
  .th-hero { grid-template-columns: 1fr; gap: 20px; }
  .th-title { font-size: 60px; }
  .th-editor { grid-template-columns: 1fr; }
  .th-ed-main { border-right: none; border-bottom: 1px solid var(--color-divider); }
}
@media (max-width: 640px) {
  .th-head { padding: 14px 18px; }
  .th-head nav { gap: 14px; flex-wrap: wrap; font-size: 12px; }
  .th-hero, .th-list, .th-article, .th-rail-l, .th-rail-r, .th-ed-main, .th-ed-side { padding-left: 18px; padding-right: 18px; }
  .th-hero { padding-top: 28px; }
  .th-title { font-size: 46px; }
  .th-lede { font-size: 21px; }
  .th-row { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .th-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .th-body h2 { font-size: 30px; margin-top: 0; }
  .th-h1 { font-size: 38px; }
  .th-ed-title { font-size: 30px; }
  .th-nav { flex-direction: column; }
  .th-nav a, .th-nav a.r { max-width: none; text-align: left; margin-left: 0; }
}
