:root {
  /* Eye chart theme: chart white, letter black, and the chart's green and red lines */
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #111111;
  --muted: #5E5E5E;
  --rule: #E2E2E2;
  --corona: #1E9E4A;        /* accent: chart green */
  --corona-text: #157A38;
  --teal: #111111;          /* links are black, underlined on hover */
  --up: #1E9E4A;
  --down: #D7262E;
  --live: #D7262E;
  --chart-green: #1E9E4A;
  --chart-red: #D7262E;
  --eclipse: #E3A72F;       /* Eclipse Studios banner keeps its gold */
  --display: "Rokkitt", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* Inverted chart, like a projected eye exam */
    --paper: #0E0E0E;
    --surface: #161616;
    --ink: #F2F2F2;
    --muted: #A3A3A3;
    --rule: #2C2C2C;
    --corona: #3DBE6A;
    --corona-text: #5CCF84;
    --teal: #F2F2F2;
    --up: #3DBE6A;
    --down: #F0524F;
    --live: #F0524F;
    --chart-green: #3DBE6A;
    --chart-red: #F0524F;
    --eclipse: #F0B24A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--corona); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* ---------- Ticker tape ---------- */
.tape {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top, 0px);
  min-height: 46px;
}

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 46px; align-self: start;
  height: calc(100vh - 46px);
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: .5rem;
}
.mark { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.orb {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--corona), 0 0 18px 2px color-mix(in srgb, var(--corona) 55%, transparent);
  position: relative; overflow: hidden;
}
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); transform: translate(18%, -12%); }
.word { font: 800 1.75rem/1 var(--display); letter-spacing: -.03em; }
.today { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.rail nav { display: flex; flex-direction: column; gap: .15rem; }
.rail nav a {
  text-decoration: none; padding: .55rem .75rem; border-radius: 8px;
  font: 500 1.02rem/1.2 var(--display); color: var(--muted);
  border-left: 3px solid transparent;
}
.rail nav a:hover { color: var(--ink); background: var(--surface); }
.rail nav a[aria-current="page"] { color: var(--ink); background: var(--surface); border-left-color: var(--corona); }

main { padding: 2.25rem clamp(1rem, 3vw, 2.75rem) 3rem; min-width: 0; }
main:focus { outline: none; }
.view-head { margin-bottom: 1.75rem; max-width: 46rem; }
.view-head h1 {
  font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display);
  letter-spacing: -.035em; margin: 0 0 .6rem;
}
.view-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid.narrow-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.stack { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  min-width: 0;
}
.panel + .panel { margin-top: 0; }
section > .panel { margin-bottom: 1.25rem; }
.panel h2 { font: 700 1.2rem/1.2 var(--display); margin: 0 0 .9rem; letter-spacing: -.01em; }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.panel-row h2 { margin: 0; }
.fine { font-size: .85rem; color: var(--muted); margin: .8rem 0 0; }

.tv { width: 100%; }
.tv.tall { height: 440px; }
.tv .tradingview-widget-container__widget { height: 100%; }

/* ---------- Feeds ---------- */
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .75rem; }
.tab, .ghost {
  font: 500 .92rem/1 var(--body);
  border: 1px solid var(--rule); background: transparent; color: var(--muted);
  padding: .5rem .8rem; border-radius: 999px; cursor: pointer;
}
.tab:hover, .ghost:hover { color: var(--ink); border-color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .7rem 0; border-top: 1px solid var(--rule); }
.list li:first-child { border-top: 0; padding-top: .2rem; }
.list a { text-decoration: none; font-weight: 700; line-height: 1.35; display: block; }
.list a:hover { text-decoration: underline; text-decoration-color: var(--corona); text-underline-offset: 3px; }
.meta { font-size: .84rem; color: var(--muted); margin-top: .2rem; }
.state { color: var(--muted); padding: 1rem 0; margin: 0; }
.state a, .list .state a { color: var(--teal); display: inline; font-weight: 700; }

.links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.links a { display: block; padding: .5rem 0; color: var(--teal); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--rule); }
.links li:last-child a { border-bottom: 0; }
.links a:hover { text-decoration: underline; }

/* ---------- Sports ---------- */
.league-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .75rem; scrollbar-width: thin; }
.league-tabs .tab { white-space: nowrap; }
.daybar { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
#day-label { font: 700 1.1rem/1 var(--display); min-width: 11rem; text-align: center; }
.scores { margin-bottom: 1.25rem; }
.score-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: .9rem; }
.daybar[hidden] { display: none; }
.slate + .slate { margin-top: 2rem; }
.slate-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap;
  border-bottom: 2px solid var(--ink); padding-bottom: .4rem; margin-bottom: .9rem; }
.slate-head h3 { font: 800 1.45rem/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.slate-head p { margin: 0; font-size: .88rem; color: var(--muted); }
.slate-day { font: 700 1rem/1.2 var(--display); color: var(--muted); margin: 1.1rem 0 .6rem; }
.slate-day:first-of-type { margin-top: .2rem; }

.cyber { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.cyber h3 { font: 700 1rem/1.2 var(--display); margin: 0 0 .3rem; padding-bottom: .4rem; border-bottom: 3px solid var(--corona); }
.cyber ul { list-style: none; margin: 0; padding: 0; }
.cyber li { padding: .65rem 0; border-top: 1px solid var(--rule); }
.cyber li:first-child { border-top: 0; }
.cyber a { font-weight: 700; text-decoration: none; line-height: 1.35; }
.cyber a:hover { text-decoration: underline; text-decoration-color: var(--corona); text-underline-offset: 3px; }
.game {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: .85rem 1rem; display: grid; gap: .35rem;
}
.game.live { border-color: var(--live); box-shadow: inset 4px 0 0 var(--live); }
.game-status { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); gap: .5rem; }
.game.live .game-status strong { color: var(--live); }
.team { display: grid; grid-template-columns: 1.75rem 1fr auto; align-items: center; gap: .6rem; }
.team img { width: 1.75rem; height: 1.75rem; object-fit: contain; }
.team .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team .rank { color: var(--muted); font-weight: 400; font-size: .85rem; margin-right: .2rem; }
.team .rec { color: var(--muted); font-size: .8rem; font-weight: 400; margin-left: .3rem; }
.team .pts { font: 800 1.35rem/1 var(--display); font-variant-numeric: tabular-nums; }
.team.lost .name, .team.lost .pts { color: var(--muted); font-weight: 400; }

/* ---------- BBQ ---------- */
.brand-band {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding: 1.4rem 1.5rem; margin-bottom: 1.25rem; border-radius: 14px;
  background: var(--ink); color: var(--paper);
}
.brand-band .orb { width: 3.2rem; height: 3.2rem; background: var(--ink); box-shadow: 0 0 0 3px var(--corona), 0 0 28px 6px color-mix(in srgb, var(--corona) 60%, transparent); }
.brand-band .orb::after { background: var(--ink); }
.brand-band strong { font: 800 1.5rem/1.1 var(--display); display: block; letter-spacing: -.02em; }
.brand-band em { font-style: normal; color: var(--corona); }
.brand-band a { margin-left: auto; color: var(--ink); background: var(--corona); padding: .6rem 1rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.brand-band .hint { margin-left: auto; font-size: .85rem; opacity: .75; }

details.recipe { border-top: 1px solid var(--rule); padding: .75rem 0; }
details.recipe:first-child { border-top: 0; padding-top: 0; }
details.recipe summary { cursor: pointer; font: 700 1.08rem/1.3 var(--display); list-style-position: outside; }
details.recipe summary span { display: block; font: 400 .88rem/1.4 var(--body); color: var(--muted); margin-top: .15rem; }
details.recipe h3 { font: 700 .95rem/1.2 var(--display); margin: 1rem 0 .35rem; }
details.recipe ul, details.recipe ol { margin: 0; padding-left: 1.25rem; }
details.recipe li { margin: .2rem 0; }

.scroll-x { overflow-x: auto; }
table.temps { width: 100%; border-collapse: collapse; font-size: .93rem; }
.temps th, .temps td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--rule); }
.temps th { color: var(--muted); font-weight: 700; }
.temps td:nth-child(2) { white-space: nowrap; }
.temps td:last-child { color: var(--corona-text); font-weight: 700; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist label { display: flex; gap: .6rem; align-items: flex-start; padding: .4rem 0; cursor: pointer; }
.checklist input { accent-color: var(--corona); width: 1.1rem; height: 1.1rem; margin-top: .2rem; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }

/* ---------- Career ---------- */
.jobsearch { margin-bottom: 1.25rem; }
.fields { display: grid; grid-template-columns: 2fr 1fr; gap: .9rem; margin-bottom: 1rem; }
.fields label { display: grid; gap: .3rem; font-weight: 700; font-size: .9rem; }
input, select {
  font: 400 1rem/1.3 var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 8px; padding: .65rem .75rem; width: 100%;
}
select { width: auto; }
.sitebtns { display: flex; flex-wrap: wrap; gap: .5rem; }
.sitebtns button {
  font: 700 .95rem/1 var(--body); padding: .65rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--surface);
}
.sitebtns button.alt { background: transparent; color: var(--ink); }
.jobs .tag { display: inline-block; font-size: .78rem; color: var(--teal); border: 1px solid currentColor; border-radius: 999px; padding: .05rem .5rem; margin-left: .35rem; }

/* ---------- Social ---------- */
.trends { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.trends li { counter-increment: t; display: grid; grid-template-columns: 2.2rem 1fr; gap: .5rem; padding: .55rem 0; border-top: 1px solid var(--rule); align-items: baseline; }
.trends li:first-child { border-top: 0; }
.trends li::before { content: counter(t); font: 800 1.35rem/1 var(--display); color: var(--corona-text); }
.trends a { font-weight: 700; text-decoration: none; }
.trends a:hover { text-decoration: underline; }

.foot { margin-top: 2.5rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--rule); padding-top: 1rem; max-width: 60rem; }

/* skeleton shimmer only while loading */
.loading { height: 1rem; border-radius: 6px; background: var(--rule); margin: .8rem 0; opacity: .7; }
.loading:nth-child(2) { width: 80%; } .loading:nth-child(3) { width: 65%; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid.wide-left, .grid.narrow-left { grid-template-columns: 1fr; }
  .cyber { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { min-width: 0; }
  .rail {
    position: sticky; top: 46px; z-index: 15; height: auto;
    flex-direction: row; align-items: center; flex-wrap: wrap;
    padding: .75rem 1rem; border-right: 0; border-bottom: 1px solid var(--rule);
    background: var(--paper);
  }
  .word { font-size: 1.35rem; }
  .orb { width: 1.6rem; height: 1.6rem; }
  .today { margin: 0 0 0 auto; font-size: .82rem; }
  .rail nav { flex-direction: row; width: 100%; overflow-x: auto; gap: .25rem; }
  .rail nav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; padding: .45rem .6rem; font-size: .95rem; }
  .rail nav a[aria-current="page"] { border-bottom-color: var(--corona); }
  .grid.two { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  main { padding-top: 1.5rem; }
  .tv.tall { height: 380px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------- Accounts ---------- */
.rail nav a[hidden] { display: none; }
.account { margin: 0 0 1.25rem; display: grid; gap: .45rem; }
.acct-btn {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
  font: 700 .95rem/1 var(--body); padding: .6rem 1rem; border-radius: 999px;
  background: var(--ink); color: var(--surface); border: 1px solid var(--ink);
}
.acct-note { margin: 0; font-size: .85rem; color: var(--muted); }
.acct-email { margin: 0; font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.acct-link { font: 700 .9rem/1 var(--body); color: var(--teal); background: none; border: 0; padding: .3rem 0; cursor: pointer; text-decoration: none; }
.acct-link:hover { text-decoration: underline; }

.game.fav:not(.live) { border-color: var(--corona); box-shadow: inset 4px 0 0 var(--corona); }

/* ---------- Customize dialog ---------- */
dialog.customize {
  width: min(40rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 16px; padding: 1.5rem;
}
dialog.customize::backdrop { background: rgb(10 14 22 / .55); }
.customize h2 { font: 800 1.6rem/1.1 var(--display); margin: 0 0 1rem; letter-spacing: -.02em; }
.customize fieldset { border: 0; border-top: 1px solid var(--rule); padding: 1rem 0 .5rem; margin: 0; }
.customize legend { font: 700 1.1rem/1 var(--display); padding: 0 .4rem 0 0; }
.customize .hint { display: block; font-size: .87rem; color: var(--muted); margin: .4rem 0 .6rem; }
.customize textarea { width: 100%; font: 400 .95rem/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: .6rem .75rem; }
.cz-sections { list-style: none; margin: 0; padding: 0; }
.cz-sections li { display: flex; justify-content: space-between; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--rule); }
.cz-sections li:last-child { border-bottom: 0; }
.cz-sections label, .cz-checks label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.cz-move { display: flex; gap: .3rem; }
.cz-move .ghost { padding: .35rem .6rem; }
.cz-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .4rem; margin-bottom: .5rem; }
.customize input[type="checkbox"] { accent-color: var(--corona); width: 1.05rem; height: 1.05rem; }
.cz-topic { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: .5rem; margin-bottom: .5rem; }
.cz-error { color: var(--down); min-height: 1.2em; margin: .5rem 0 0; }
.cz-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.cz-reset { margin-right: auto; }
.solid { font: 700 .95rem/1 var(--body); padding: .7rem 1.1rem; border-radius: 999px; cursor: pointer; background: var(--ink); color: var(--surface); border: 1px solid var(--ink); }
.solid:disabled { opacity: .6; cursor: progress; }

@media (max-width: 860px) {
  .rail .today { display: none; }
  .account { margin: 0 0 0 auto; display: flex; align-items: center; gap: .6rem; }
  .account .acct-note, .account .acct-email { display: none; }
  .account .acct-row { align-items: center; }
  .account .acct-btn { padding: .5rem .85rem; font-size: .88rem; }
  .account .acct-row { flex-wrap: nowrap; gap: .6rem; }
  .cz-topic { grid-template-columns: 1fr; }
}


/* =========================================================
   Eye chart theme details (overrides the shapes above)
   ========================================================= */
/* Logo: the chart's big E, then LOFTIS in chart lettering */
.mark { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--ink);
  font: 800 1.7rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; gap: 0; }
.logo-e { width: .78em; height: .78em; fill: currentColor; margin-right: .03em; flex: none; align-self: baseline; }
.word { font: inherit; letter-spacing: inherit; }

/* Square, printed-chart edges instead of soft rounded cards */
.panel, .game, .brand-band, dialog.customize, input, select, textarea, .customize textarea { border-radius: 2px; }
.tab, .ghost, .acct-btn, .sitebtns button, .solid, .brand-band a { border-radius: 2px; }
.panel { border-color: var(--rule); border-top: 2px solid var(--ink); }

/* Headings set like chart rows: slab serif capitals with wide spacing */
.view-head { position: relative; padding-right: 4.5rem; }
.view-head h1 { font: 800 clamp(2.3rem, 5vw, 3.4rem)/1 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.view-head::before { content: ""; display: block; height: 6px; background: var(--chart-green); margin: 0 0 1.1rem; }
.view-head::after { content: "20/200"; position: absolute; right: 0; top: 2.1rem; font: 500 .78rem/1 var(--body); color: var(--muted); }
.panel h2, .slate-head h3, .cyber h3, .customize h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.panel h2 { font-size: 1.1rem; }
.slate-head h3 { font-size: 1.35rem; }
.slate-head { border-bottom: 2px solid var(--ink); }
.slate-day { font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.cyber h3 { border-bottom-color: var(--chart-green); font-size: .95rem; }

/* Navigation */
.rail nav a { font-family: var(--body); font-weight: 500; border-radius: 0; }
.rail nav a[aria-current="page"] { background: transparent; border-left-color: var(--ink); color: var(--ink); font-weight: 600; }
.rail nav a:hover { background: transparent; text-decoration: underline; text-underline-offset: 4px; }

/* Tabs and buttons */
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.list a:hover, .links a:hover, .cyber a:hover, .trends a:hover { text-decoration-color: var(--chart-green); }
.links a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }

/* Scores: numbers in chart lettering; red marks live games, green marks your teams */
.team .pts { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.game { border-color: var(--rule); }
.game.live { border-color: var(--chart-red); box-shadow: inset 4px 0 0 var(--chart-red); }
.game.fav:not(.live) { border-color: var(--chart-green); box-shadow: inset 4px 0 0 var(--chart-green); }
.trends li::before { color: var(--ink); }
.temps td:last-child { color: var(--ink); }

/* The chart's red line closes every page */
.foot { border-top: 6px solid var(--chart-red); }

/* Eclipse Studios banner keeps its own gold */
.brand-band { background: #111111; color: #FFFFFF; }
.brand-band em { color: var(--eclipse); }
.brand-band .orb { background: #111111; box-shadow: 0 0 0 3px var(--eclipse), 0 0 28px 6px color-mix(in srgb, var(--eclipse) 60%, transparent); }
.brand-band .orb::after { background: #111111; }
.brand-band a { background: var(--eclipse); color: #111111; }
@media (prefers-color-scheme: dark) { .brand-band { background: #1E1E1E; border: 1px solid var(--rule); } }

@media (max-width: 860px) {
  .mark { font-size: 1.35rem; }
  .view-head::after { top: 1.6rem; }
}

/* ---------- Welcome (landing page) ---------- */
.rail-about { display: block; margin-top: 1.25rem; padding: .3rem .75rem; font-size: .88rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.rail-about:hover { color: var(--ink); }
.welcome { max-width: 82rem; }
.welcome .w-chart, .welcome .w-how { max-width: 62rem; }
.w-top { display: grid; grid-template-columns: minmax(0, 62rem) auto; justify-content: space-between; gap: 2.5rem; align-items: start; }
.w-art { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 2px; }
@media (max-width: 1180px) { .w-top { grid-template-columns: minmax(0, 1fr); } .w-art { display: none; } }
.w-hero { border-top: 6px solid var(--chart-green); padding-top: 1.5rem; margin-bottom: 3rem; }
.w-kicker { font: 600 .82rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.w-hero h1 { font: 800 clamp(2.6rem, 7vw, 4.8rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1.25rem; }
.w-lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 38rem; margin: 0 0 1.75rem; }
.w-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.w-btn { font: 600 1rem/1 var(--body); padding: .95rem 1.4rem; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 2px; cursor: pointer; text-decoration: none; display: inline-block; }
.w-btn-solid { background: var(--ink); color: var(--surface); }
.w-btn:hover { opacity: .85; }

.w-chart { border-top: 2px solid var(--ink); margin-bottom: 3rem; }
.w-line { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 4rem; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.w-num { font: 700 1.2rem/1 var(--display); color: var(--muted); }
.w-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1.25rem; min-width: 0; }
.w-name { font: 800 var(--size)/1 var(--display); text-transform: uppercase; letter-spacing: .1em; }
.w-desc { font-size: .98rem; color: var(--muted); max-width: 30rem; }
.w-acuity { font-size: .78rem; color: var(--muted); text-align: right; }
.w-line:hover .w-name { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--chart-green); text-underline-offset: 6px; }
.w-rule { height: 6px; margin: .9rem 0 .9rem 3rem; }
.w-rule-green { background: var(--chart-green); }
.w-rule-red { background: var(--chart-red); }

.w-how h2 { font: 800 1.3rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1rem; }
.w-how ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.w-how li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: .9rem; color: var(--muted); }
.w-how li::before { content: counter(step); display: block; font: 800 2.2rem/1 var(--display); color: var(--ink); margin-bottom: .5rem; }
.w-how strong { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .w-line { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .w-acuity { display: none; }
  .w-name { font-size: calc(var(--size) * .72); }
  .w-rule { margin-left: 2.5rem; }
  .w-how ol { grid-template-columns: 1fr; }
  .rail-about { display: none; }
}

/* ---------- "What is Eloftis?" page ---------- */
.about { max-width: 44rem; }
.about .view-head::after { content: "20/20"; }
.about .view-head p { font: 700 1.15rem/1.4 var(--display); color: var(--ink); }
.about-body p { font-size: 1.13rem; line-height: 1.7; margin: 0 0 1.2rem; }
.about-body p:last-child { font: 700 1.35rem/1.4 var(--display); margin-top: 1.75rem; }
.about-signoff { font: 700 1.05rem/1.3 var(--display); margin: 0 0 1rem; }
.about-signoff::before { content: "— "; }
.about-cta { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.rail-about[aria-current] { color: var(--ink); font-weight: 600; }

/* About page blocks: what's new + feedback */
.about-block { margin-top: 2.5rem; border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.about-block h2 { font: 800 1.1rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 1rem; }
.about-note { color: var(--muted); margin: 0 0 1rem; }
.updates { list-style: none; margin: 0; padding: 0; }
.updates li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.u-date { color: var(--muted); font-size: .9rem; }
.feedback { display: grid; gap: .9rem; }
.feedback label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.feedback .opt { font-weight: 400; color: var(--muted); }
.feedback textarea { width: 100%; font: 400 1rem/1.5 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; padding: .65rem .75rem; resize: vertical; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.fb-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fb-status { margin: 0; color: var(--muted); }
#fb-send:disabled { opacity: .6; cursor: progress; }

/* What's new notice on dashboard pages */
.news-notice { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 .9rem; padding: .7rem .9rem;
  border: 1px solid var(--rule); border-left: 6px solid var(--chart-green); }
.news-notice[hidden] { display: none; }
.nn-label { font: 800 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--chart-green); }
.nn-text { font-weight: 500; }
.nn-link { font-size: .9rem; color: var(--ink); }
.nn-close { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: .1rem .3rem; }
.nn-close:hover { color: var(--ink); }
@media (max-width: 860px) { .fb-row { grid-template-columns: 1fr; } .updates li { grid-template-columns: 1fr; gap: .2rem; } }

/* Customize: "More leagues" divider */
.cz-subhead { grid-column: 1 / -1; margin: .75rem 0 .1rem; font: 600 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Golf leaderboard ---------- */
.golf + .golf { margin-top: 2rem; }
.golf-live { color: var(--chart-red); font-weight: 600; }
table.golf-board { width: 100%; border-collapse: collapse; font-size: .95rem; }
.golf-board th { text-align: left; font: 600 .75rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: .55rem .5rem; border-bottom: 2px solid var(--ink); }
.golf-board td { padding: .55rem .5rem; border-bottom: 1px solid var(--rule); }
.golf-board .num { text-align: right; font-variant-numeric: tabular-nums; }
.golf-board .pos { width: 3rem; color: var(--muted); font-weight: 600; }
.golf-board .player { font-weight: 600; white-space: nowrap; }
.golf-board .player img { width: 1.15rem; height: auto; vertical-align: -2px; margin-right: .5rem; border: 1px solid var(--rule); }
.golf-board .topar { font: 800 1.1rem/1 var(--display); }
.golf-board .topar.under { color: var(--chart-red); }   /* golf convention: under par in red */
.golf-board .rd { color: var(--muted); }
.golf-board tr.fav td { background: color-mix(in srgb, var(--chart-green) 10%, transparent); }
.golf-board tr.fav .player { box-shadow: inset 4px 0 0 var(--chart-green); padding-left: .75rem; }
.golf-more { margin-top: .9rem; }
.golf-winner { margin-left: .5rem; font: 600 .7rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--chart-green); border: 1px solid currentColor; padding: .15rem .35rem; vertical-align: 1px; }

/* ---------- Racing ---------- */
.race-board .pos { width: 3rem; }
.race-next { border-left: 6px solid var(--ink); padding: .4rem 0 .4rem 1rem; margin: .2rem 0 1rem; }
.race-next-label { margin: 0 0 .3rem; font: 600 .74rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.race-next-name { margin: 0; font: 800 1.35rem/1.2 var(--display); }
.race-next-when { margin: .3rem 0 0; color: var(--muted); }
.race-upcoming li { display: grid; grid-template-columns: 8rem 1fr; gap: .75rem; }

/* ---------- Cook planner ---------- */
section > .planner { margin-bottom: 1.25rem; }
.planner-intro { color: var(--muted); margin: -.4rem 0 1rem; }
.planner-form { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1fr .8fr; gap: .9rem; align-items: end; margin-bottom: 1.25rem; }
.planner-form input[type="date"] { width: 100%; }
.planner-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.planner-form label[hidden] { display: none; }
.planner-form select { width: 100%; }
.planner-headline { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; padding: .9rem 1rem; margin-bottom: 1rem;
  border-left: 6px solid var(--chart-green); background: color-mix(in srgb, var(--chart-green) 8%, transparent); }
.ph-label { font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ph-time { font: 800 clamp(1.4rem, 3vw, 1.9rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 11.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.tl-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .92rem; }
.tl-body { display: grid; gap: .15rem; }
.tl-body span { color: var(--muted); font-size: .93rem; }
.timeline li.key .tl-time { color: var(--ink); font-weight: 600; }
.timeline li.key strong { font-family: var(--display); font-size: 1.1rem; letter-spacing: .02em; }
.planner-warn { border-left: 6px solid var(--chart-red); padding: .6rem .9rem; margin: 0 0 1rem; color: var(--ink);
  background: color-mix(in srgb, var(--chart-red) 8%, transparent); }
.planner-tip { margin: 1rem 0 0; font-weight: 500; }
.planner-joke { margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--rule); font: 700 1rem/1.45 var(--display); }
.planner-joke:empty { display: none; }
.planner-fine { margin: .4rem 0 0; font-size: .84rem; color: var(--muted); }
@media (max-width: 860px) {
  .planner-form { grid-template-columns: 1fr 1fr; }
  .planner-form label:first-child { grid-column: 1 / -1; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- Career: search filters, saved searches, tracker ---------- */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-bottom: .9rem; }
.filters label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.filters select { width: 100%; }
.search-hint { margin: 0 0 .75rem; font-size: .86rem; color: var(--muted); }
.saved-searches { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.saved-searches h3 { margin: 0; font: 800 .95rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em; }
.saved-list { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.saved-list li { display: flex; align-items: stretch; border: 1px solid var(--rule); border-radius: 2px; }
.saved-load { background: none; border: 0; padding: .45rem .7rem; cursor: pointer; color: var(--ink); font: 500 .9rem/1.2 var(--body); text-align: left; }
.saved-load:hover { text-decoration: underline; text-decoration-color: var(--chart-green); }
.saved-remove { background: none; border: 0; border-left: 1px solid var(--rule); padding: 0 .55rem; cursor: pointer; color: var(--muted); }
.saved-list li.saved-empty { border: 0; color: var(--muted); font-size: .9rem; }

.tracker { margin-bottom: 1.25rem; }
.tracker-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.tracker-note { margin: -.3rem 0 1rem; color: var(--muted); font-size: .9rem; }
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.board .col { background: color-mix(in srgb, var(--ink) 3%, transparent); border-top: 3px solid var(--ink); padding: .6rem; min-height: 8rem; }
.board .col:nth-child(4) { border-top-color: var(--chart-green); }
.board .col:nth-child(5) { border-top-color: var(--muted); }
.board h3 { margin: 0 0 .6rem; font: 800 .82rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; display: flex; justify-content: space-between; }
.board .count { font-family: var(--body); color: var(--muted); }
.col-empty { margin: .5rem 0; color: var(--muted); font-size: .85rem; }
.job { background: var(--surface); border: 1px solid var(--rule); padding: .6rem .65rem; margin-bottom: .55rem; display: grid; gap: .2rem; }
.job p { margin: 0; }
.job-title { font-weight: 600; line-height: 1.3; }
.job-title a { text-decoration: none; }
.job-title a:hover { text-decoration: underline; }
.job-co { font-size: .9rem; }
.job-meta, .job-notes { font-size: .8rem; color: var(--muted); }
.job-actions { display: flex; gap: .4rem; margin-top: .35rem; }
.job-actions select { flex: 1; min-width: 0; padding: .3rem .4rem; font-size: .85rem; }
.job-actions .ghost { padding: .3rem .55rem; font-size: .82rem; }
.track-job { margin-top: .4rem; padding: .3rem .6rem; font-size: .82rem; }
.job-dialog .jd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.job-dialog label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.job-dialog .jd-wide { grid-column: 1 / -1; }
.job-dialog textarea { width: 100%; font: 400 .95rem/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; padding: .6rem .75rem; }
@media (max-width: 1080px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: 1fr; }
  .job-dialog .jd-grid { grid-template-columns: 1fr; }
}

/* ---------- Social pulse ---------- */
.trends li > span { display: grid; gap: .15rem; }
.tr-traffic { font-size: .8rem; font-weight: 600; color: var(--chart-green); }
.tr-why { font-weight: 400 !important; font-size: .92rem; color: var(--muted); text-decoration: none; line-height: 1.35; }
.tr-why:hover { color: var(--ink); text-decoration: underline; }
.onthisday { list-style: none; margin: 0; padding: 0; }
.onthisday li { display: grid; grid-template-columns: 3.5rem 1fr; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--rule); font-size: .95rem; }
.onthisday li:first-child { border-top: 0; }
.otd-year { font: 800 1.05rem/1.3 var(--display); }

/* ---------- How was your day? ---------- */
.moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.mood { display: grid; justify-items: center; gap: .35rem; padding: .85rem .4rem; cursor: pointer; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink); border-radius: 2px; font: 600 .9rem/1.2 var(--body); }
.mood span { font-size: 2rem; line-height: 1; }
.mood:hover { border-color: var(--ink); }
.mood[aria-pressed="true"] { border: 2px solid var(--ink); background: color-mix(in srgb, var(--chart-green) 10%, transparent); }
.mood-reply { min-height: 1.4em; margin: .9rem 0 0; font: 700 1.05rem/1.4 var(--display); }
.mood-results { margin-top: 1rem; display: grid; gap: .4rem; }
.mood-total { margin: 0 0 .3rem; color: var(--muted); font-size: .9rem; }
.mood-bar { display: grid; grid-template-columns: 5.5rem 1fr 3rem; align-items: center; gap: .6rem; font-size: .9rem; }
.mb-track { height: .7rem; background: var(--rule); }
.mb-fill { display: block; height: 100%; background: var(--ink); }
.mb-great, .mb-good { background: var(--chart-green); }
.mb-rough { background: var(--chart-red); }
.mb-pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.day-prompt { font: 800 1.35rem/1.3 var(--display); margin: 0 0 1rem; }
.journal-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
#journal-text { width: 100%; font: 400 1rem/1.5 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--rule);
  border-radius: 2px; padding: .65rem .75rem; margin-bottom: .75rem; resize: vertical; }
.journal { list-style: none; margin: 1rem 0 0; padding: 0; }
.journal li { display: grid; gap: .2rem; padding: .7rem 0; border-top: 1px solid var(--rule); }
.j-date { font-size: .8rem; color: var(--muted); font-weight: 600; }
.j-prompt { font-size: .85rem; color: var(--muted); font-style: italic; }
.j-text { white-space: pre-wrap; }
.j-del { justify-self: start; padding: .25rem .55rem; font-size: .8rem; }
.support { border-top-color: var(--chart-green); }
.breath { margin: 0; }
.breath-video { display: block; width: 100%; aspect-ratio: 720 / 412; object-fit: cover; background: #111; border-radius: 2px; }
.breath figcaption { margin-top: .7rem; color: var(--muted); font: 700 1rem/1.4 var(--display); }
.support.support-on { box-shadow: 0 0 0 3px var(--chart-green); }
.support-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .9rem; }
.support-list li { display: grid; gap: .15rem; }
.support-list a { font-weight: 700; }
@media (max-width: 860px) {
  .moods { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; }
  .mood { font-size: .72rem; padding: .6rem .2rem; }
  .mood span { font-size: 1.6rem; }
}

/* Section header picture (Smoke & fire): heading on the left, picture on the right */
.head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 1.75rem; }
.head-row .view-head { margin-bottom: 0; flex: 1 1 auto; }
.head-art { flex: none; width: 170px; height: 170px; object-fit: cover; border: 1px solid var(--rule); border-radius: 2px; }
@media (max-width: 1180px) { .head-art { display: none; } }

/* ---------- Quote of the day ---------- */
.w-quote { margin: 0 0 2.75rem; padding: 1.25rem 0 1.25rem 1.25rem; border-left: 6px solid var(--ink); }
.w-quote-label, .qs-label { font: 600 .74rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.w-quote-label { margin: 0 0 .7rem; }
.w-quote blockquote { margin: 0; font: 700 clamp(1.25rem, 2.6vw, 1.7rem)/1.3 var(--display); letter-spacing: .01em; max-width: 44rem; }
.w-quote figcaption { margin-top: .6rem; color: var(--muted); font-size: .92rem; }
.w-quote figcaption::before { content: "— "; }
.quote-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .9rem; margin: 0 0 1.75rem; padding: .7rem 0;
  border-bottom: 1px solid var(--rule); }
.quote-strip[hidden] { display: none; }
.qs-text { font: 700 1.05rem/1.35 var(--display); }
.qs-author { font-size: .85rem; color: var(--muted); }
.qs-author:not(:empty)::before { content: "— "; }

/* ---------- Slightly smaller type overall ---------- */
html { font-size: 15px; }
.view-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.view-head::after { top: 1.75rem; }
.w-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
.w-name { font-size: calc(var(--size) * .8); }
.slate-head h3 { font-size: 1.2rem; }
.panel h2 { font-size: 1rem; }
.team .pts { font-size: 1.35rem; }

/* Eclipse Studios banner hidden for now. Delete this line to show it again. */
.brand-band { display: none; }
@media (max-width: 860px) { .w-name { font-size: calc(var(--size) * .62); } }
