/* Bullwhip: bright and modern. Warm white page, white rounded cards, hi-vis yellow, ink text. Loud Anton headings. */
:root {
  --bg: #fbfaf6; --card: #ffffff; --text: #16181d; --muted: #5f6470; --line: #e8e6dd; --soft: #f4f2ea;
  --brand: #ffd400; --brand-dark: #f0c400; --on-brand: #16181d; --brand-soft: #fff6c4; --brand-ink: #7a5400;
  --link: #8f5200; --accent: #a35f00; --danger: #b42318;
  --ink: #16181d; --ink-text: #f3f3ee; --ink-muted: #b9bdc1;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(40, 34, 10, .05), 0 10px 30px -14px rgba(40, 34, 10, .16);
  --shadow-up: 0 2px 4px rgba(40, 34, 10, .06), 0 18px 40px -16px rgba(40, 34, 10, .26);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* Hero and page headers: white, with a soft yellow glow in the corners as the accent */
  --glow: rgba(255, 212, 0, .22); --glow-2: rgba(255, 212, 0, .10);
  --hero-bg: radial-gradient(640px 320px at 100% 0%, var(--glow) 0, transparent 70%),
             radial-gradient(520px 280px at 0% 100%, var(--glow-2) 0, transparent 70%), var(--card);
  --panel-bg: radial-gradient(520px 240px at 100% 0%, var(--glow) 0, transparent 70%), var(--card);
  --highlight: linear-gradient(transparent 58%, var(--brand) 58%, var(--brand) 92%, transparent 92%);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111317; --card: #1a1d23; --text: #f1f2ee; --muted: #a4a9b3; --line: #2b2f37; --soft: #22262d;
          --brand-soft: #3a3214; --brand-ink: #ffd84d; --link: #ffd84d; --accent: #ffd84d; --danger: #ff7a6b;
          --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
          --shadow-up: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px -16px rgba(0, 0, 0, .7);
          --glow: rgba(255, 212, 0, .14); --glow-2: rgba(255, 212, 0, .06);
          --highlight: linear-gradient(transparent 58%, rgba(255, 212, 0, .55) 58%, rgba(255, 212, 0, .55) 92%, transparent 92%); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header and footer: light and frosted, sticks to the top. The yellow logo chip stays. */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand .mark { display: block; width: 40px; height: 40px; border-radius: 10px; flex: none; margin-right: -2px; }
.logo { display: inline-block; font: 400 1.45rem/1 var(--display); letter-spacing: .02em; background: var(--brand); color: var(--on-brand);
  padding: 6px 11px 4px; border-radius: 8px; transform: skew(-8deg); box-shadow: 0 2px 0 var(--ink); }
.tagline { font: 600 .8rem/1 var(--body); color: var(--muted); }
.topbar nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; font: 600 .9rem/1 var(--body); }
.topbar nav a { color: var(--muted); text-decoration: none; padding: 8px 11px; border-radius: 999px; transition: background .15s, color .15s; }
.topbar nav a:hover { color: var(--text); background: var(--soft); }
@media (max-width: 720px) {
  .tagline { display: none; }
  .topbar { position: static; }
  .topbar-inner { padding: 10px 16px 8px; }
  /* One swipeable row of links on phones instead of two wrapped rows */
  .topbar nav { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin: 0 -16px; padding: 0 12px 4px; scrollbar-width: none; font-size: .88rem; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { padding: 7px 10px; }
  /* Sign in / Sign out moves up beside the logo so it's always in view */
  .topbar-inner { position: relative; }
  .topbar nav > :last-child { position: absolute; top: 12px; right: 16px; margin: 0; }
}
.footer { max-width: 1120px; margin: 24px auto 0; padding: 36px 20px 48px; color: var(--muted); font-size: .88rem; text-align: center; border-top: 1px solid var(--line); }

/* Layout */
.wrap { max-width: 680px; margin: 0 auto; padding: 44px 20px 56px; }
.wrap.wide { max-width: 1120px; }
.wrap:has(.hero) { max-width: 1120px; padding-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.section { margin-top: 64px; }
h1, h2, h3 { text-wrap: balance; }
h1 { font: 400 clamp(1.8rem, 4.5vw, 2.4rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 12px; }
h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
.section > h2 { font: 400 clamp(1.8rem, 4vw, 2.3rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 12px; }
h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; }
.small-h { font-size: 1rem; margin-top: 24px; }
.muted, .fine { color: var(--muted); }
.small { font-size: .88rem; }
.fine { font-size: .85rem; margin-top: 16px; }
.error { color: var(--danger); font-weight: 600; }
.eyebrow { font: 700 .74rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 10px; }

/* Hero: a white panel with a soft yellow glow; yellow is the accent, not the background */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--text); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(32px, 6vw, 64px) clamp(22px, 6vw, 64px) clamp(28px, 5vw, 48px); box-shadow: var(--shadow); }
/* Slogan as a rubber stamp in the hero's corner; sits above the eyebrow on narrow screens */
.stamp { position: absolute; top: 32px; right: clamp(22px, 6vw, 64px); margin: 0; transform: rotate(-7deg);
  font: 400 1.35rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .04em; text-align: center; color: var(--accent);
  border: 3px solid currentColor; border-radius: 10px; outline: 1px solid currentColor; outline-offset: 3px; padding: 8px 14px 6px; max-width: 12ch; opacity: .9; }
@media (max-width: 760px) { .stamp { position: static; display: inline-block; margin: 0 0 22px 4px; font-size: 1.1rem; max-width: none; } }
.footer-slogan { font: 400 1.4rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--text); margin: 0 0 10px; }
.hero h1 { font-size: clamp(3rem, 9vw, 5.6rem); line-height: .98; margin-bottom: 22px; }
/* "No filter." gets a yellow highlighter stroke instead of a solid block */
.hero h1 em, .whip-head h1 em { font-style: normal; background: var(--highlight); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 26px; max-width: 600px; }
.hero .stat-line strong { color: var(--text); }
.stat-line { margin-top: 16px; }

/* Headline ticker under the hero */
.ticker { overflow: hidden; margin-top: 16px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); font: 600 .86rem/1 var(--body);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-run { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker-run:hover, .ticker-run:focus-within { animation-play-state: paused; }
.ticker-copy { display: flex; }
.ticker a { color: inherit; text-decoration: none; white-space: nowrap; padding: 13px 22px; border-right: 1px solid var(--line); }
.ticker a:hover { text-decoration: underline; }
.ticker b { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; background: var(--brand); color: var(--on-brand); padding: 4px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 1px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-run { animation: none; }
  .ticker-copy { display: none; }
}

/* Buttons: rounded pills */
.btn-linkedin, .btn, button[type=submit]:not(.link):not(.link-danger) {
  display: inline-block; background: var(--brand); color: var(--on-brand); border: 0; border-radius: 999px;
  padding: 12px 24px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 6px 16px -8px rgba(160, 120, 0, .7); transition: transform .15s, background .15s, box-shadow .15s;
}
.btn-linkedin.big { padding: 16px 30px; font-size: 1.05rem; }
.btn-linkedin:hover, .btn:hover, button[type=submit]:not(.link):not(.link-danger):hover { background: var(--brand-dark); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn-linkedin, .btn, button[type=submit] { transition: none; } .btn-linkedin:hover, .btn:hover, button[type=submit]:hover { transform: none; } }

/* Steps and feature cards */
.steps, .features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 18px; }
.step, .feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.step p, .feature p { margin: 0; color: var(--muted); font-size: .93rem; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font: 400 1.15rem/1 var(--display); margin-bottom: 14px; }
.feature.soon { border-style: dashed; box-shadow: none; background: transparent; }
a.feature { color: inherit; text-decoration: none; }
a.feature:hover, a.daily-teaser:hover, a.forum-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: var(--brand); }
.badge { display: inline-block; font: 700 .7rem/1.4 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }

/* Forms */
form label { display: block; margin: 12px 0; font-weight: 600; }
form input:not([type=checkbox]), form select, .filters input, .filters select {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; font-weight: 400;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 16px; margin: 16px 0; }
legend { font-weight: 600; padding: 0 6px; }
label.check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
label.check input { margin-top: 5px; }
label.consent { margin: 20px 0; }
.req { color: var(--danger); }

/* People */
.who { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.placeholder { display: inline-grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 1.2rem; }
.avatar.sm { width: 32px; height: 32px; }
.profile-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0 8px; box-shadow: var(--shadow); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.tag { font-size: .8rem; background: var(--brand-soft); color: var(--text); padding: 2px 10px; border-radius: 99px; }
form.inline { display: inline; }
.link, .link-danger { background: none; border: 0; padding: 0; margin-right: 16px; font: inherit; cursor: pointer; text-decoration: underline; color: var(--link); }
.link-danger { color: var(--danger); }

/* Admin */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.stat-n { font: 400 2rem/1.1 var(--display); }
.bars { display: grid; gap: 6px; max-width: 560px; }
.bar-row { display: grid; grid-template-columns: 210px 1fr 32px; gap: 10px; align-items: center; font-size: .9rem; }
.bar { height: 10px; background: var(--brand-soft); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr 1fr 28px; } }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; margin: 24px 0 12px; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr; } }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }

/* News */
.news-day { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 28px 0 4px; }
.news-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-item a { font-weight: 600; text-decoration: none; }
.news-item a:hover { text-decoration: underline; }

/* Jobs */
.jobs { display: grid; gap: 12px; margin: 16px 0; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.job.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.job .badge { margin-bottom: 6px; }
.job-title { display: block; font-weight: 600; text-decoration: none; }
.job-title:hover { text-decoration: underline; }
.job p { margin: 6px 0 0; }
.jobs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.jobs-head h2 { margin: 0; }
.adzuna { display: inline-flex; align-items: center; gap: .3em; justify-content: center; min-width: 116px; min-height: 23px; padding: 2px 10px;
  border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--text); text-decoration: none; }
  border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; color: var(--text); text-decoration: none; }

/* Forum */
textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--text); resize: vertical; }
a.forum-cat { text-decoration: none; color: inherit; display: block; transition: transform .18s, box-shadow .18s, border-color .18s; }
a.forum-cat:hover { border-color: var(--brand); }
a.forum-cat p { margin-bottom: 8px; }
.topics { list-style: none; padding: 0; margin: 8px 0 0; }
.topics li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.topic-title { font-weight: 600; text-decoration: none; }
.topic-title:hover { text-decoration: underline; }
.topics .tag { text-decoration: none; }
.post { border-top: 1px solid var(--line); padding: 16px 0 8px; }
.post.first { border-top: 0; padding-top: 4px; }
.byline { display: flex; gap: 10px; align-items: center; }
.byline .when { margin-left: auto; white-space: nowrap; }
@media (max-width: 560px) { .byline { display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; row-gap: 0; } .byline .when { grid-column: 2; margin: 0; } }
.avatar.sm.placeholder { font-size: .8rem; }
.post-body { overflow-wrap: anywhere; }
.post-body p { margin: 10px 0; }
.post-actions { text-align: right; }
.post-actions .link, .post-actions .link-danger { margin: 0; color: var(--muted); }
.reply-form { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.rules { margin-top: 20px; color: var(--muted); font-size: .9rem; }
.rules summary { cursor: pointer; font-weight: 600; }
.pin { display: inline-block; font: 700 .68rem/1.4 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--on-brand); background: var(--brand); padding: 2px 8px; border-radius: 999px; margin-right: 4px; vertical-align: 2px; }
.welcome-form { margin: 16px 0; padding: 14px 16px; border: 2px dashed var(--brand); border-radius: var(--radius-sm); }
.welcome-form summary { cursor: pointer; }
.welcome-form form { margin-top: 12px; }
.flag { display: inline-block; color: var(--danger); font-weight: 700; font-size: .8rem; white-space: nowrap; }
tr.is-hidden td { opacity: .6; }
td.mod-post { min-width: 280px; max-width: 520px; }
td.mod-actions { white-space: normal; min-width: 140px; }
td.mod-actions form { display: block; margin: 2px 0; }

.prose h2 { font-size: 1.1rem; margin: 22px 0 6px; }
.prose ul { padding-left: 20px; }
.topbar nav a, td:last-child { white-space: nowrap; }
@media (max-width: 560px) { .topbar nav a[href="/#coming-soon"], .topbar nav a[href="/privacy"] { display: none; } }
.topbar nav a.nav-signin { color: var(--on-brand); background: var(--brand); margin-left: 6px; padding: 8px 16px; }
.topbar nav a.nav-signin:hover { background: var(--brand-dark); color: var(--on-brand); }
.topbar nav form button.nav-signin[type=submit] { all: unset; cursor: pointer; color: var(--muted); white-space: nowrap; padding: 8px 11px; border-radius: 999px; }
.topbar nav form button.nav-signin[type=submit]:hover { color: var(--text); background: var(--soft); }
.topbar nav form button.nav-signin[type=submit]:focus-visible { outline: 3px solid var(--accent); }
.returning { margin: 14px 0 0; font-weight: 600; }
.notice { display: inline-block; margin: 8px 0; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--brand-soft); font-weight: 600; }
.notice.block { display: block; font-weight: 400; margin: 16px 0; }
.hint { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* The Daily Whip */
.whip-head { background: var(--panel-bg); color: var(--text); border: 1px solid var(--line); padding: clamp(26px, 5vw, 40px) clamp(22px, 5vw, 40px) 28px; border-radius: 24px; box-shadow: var(--shadow); }
.whip-head h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); line-height: .95; margin-bottom: 14px; }
.whip-head .lead { margin-bottom: 16px; }
.whip-warning { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--text); font-size: .9rem; }
.whip-list { display: grid; gap: 18px; margin-top: 18px; }
.whip-story { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; scroll-margin-top: 84px; box-shadow: var(--shadow); }
.whip-story:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.whip-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.whip-meta .badge { margin: 0; }
.whip-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font: 400 1.1rem/1 var(--display); }
.whip-story h2 { font: 400 clamp(1.4rem, 3.6vw, 1.8rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 6px 0 10px; }
.whip-body p { margin: 0 0 10px; }
.whip-boring { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .88rem; }
.whip-boring > span:first-child { font: 700 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; }
.whip-admin { border-top: 1px solid var(--line); padding: 14px 0; }
.whip-admin.is-hidden { opacity: .6; }
.whip-admin h3 { margin-top: 2px; }
.whip-admin .link, .whip-admin .link-danger { margin-right: 18px; }

/* Sign in by email */
.email-login { margin-top: 22px; max-width: 460px; }
.email-login label { margin: 0 0 6px; font-weight: 600; font-size: .95rem; }
.email-row { display: flex; gap: 8px; }
.email-login .email-row input { margin-top: 0; flex: 1; min-width: 0; }
.email-login button { white-space: nowrap; }
.email-login button[type=submit]:not(:hover) { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (max-width: 480px) { .email-row { flex-direction: column; } }
.btn-outline { display: inline-block; margin: 8px 0 0; padding: 10px 22px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--text); font-weight: 700; text-decoration: none; transition: border-color .15s, background .15s; }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-soft); }
.notice.block { display: block; font-weight: 400; margin: 16px 0; }

/* The Daily Grind: Freight Fight, Stockout, excuses, war stories and streaks */
.wrap:has(.daily-grid) { max-width: 760px; }
.daily-grid { display: grid; gap: 16px; margin-top: 16px; }
.daily-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; scroll-margin-top: 84px; box-shadow: var(--shadow); }
.daily-card > h2 { font: 400 clamp(1.4rem, 3.6vw, 1.8rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 12px; }
.daily-card.winner { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.fight-buttons { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 4px 0 8px; }
.fight-buttons button[type=submit] { width: 100%; min-height: 64px; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 1.05rem; line-height: 1.25; }
.fight-buttons button[type=submit][value=b] { background: var(--ink); color: var(--brand); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 45%, transparent), 0 6px 16px -8px rgba(0, 0, 0, .6); }
.fight-buttons button[type=submit][value=b]:hover { background: #000; }
.vs { font: 400 1.3rem/1 var(--display); text-transform: uppercase; color: var(--muted); }
@media (max-width: 480px) { .fight-buttons { grid-template-columns: 1fr; } .vs { text-align: center; } }
.fight-result { margin: 10px 0; }
.fight-result-label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin-bottom: 4px; }
.fight-bar { height: 14px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.fight-bar span { display: block; height: 100%; background: var(--muted); border-radius: 999px; }
.fight-result.mine .fight-bar span { background: var(--brand); }
.you { font: 700 .66rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--brand); padding: 4px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.fight-yesterday { margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .9rem; }
.fight-yesterday > span:first-child { font: 700 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 6px; }
.fight-yesterday strong { display: block; margin-top: 2px; }

/* Stockout: yellow = right spot, white = elsewhere, grey = not in the word */
.so-board { display: grid; gap: 6px; width: min(100%, 330px); margin: 16px auto 8px; }
.so-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.so-tile { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 10px; font: 400 clamp(1.4rem, 6vw, 1.9rem)/1 var(--display); text-transform: uppercase; background: var(--card); }
.so-tile.filled { border-color: var(--muted); }
.so-tile.g, .so-keys button.g, .so-key.g { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.so-tile.y, .so-keys button.y, .so-key.y { background: #fff; border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.so-tile.x, .so-keys button.x { background: #5a5e63; border-color: #5a5e63; color: #fff; }
.so-key { padding: 0 6px; border-radius: 6px; font-weight: 700; border: 1px solid transparent; }
.so-row.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.so-message { text-align: center; font-weight: 700; min-height: 1.6em; margin: 6px 0; }
.so-done { text-align: center; }
.so-share { background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.so-keys { display: grid; gap: 6px; margin-top: 8px; user-select: none; }
.so-keys-row { display: flex; gap: 5px; justify-content: center; }
.so-keys button { flex: 1; max-width: 44px; min-height: 52px; padding: 0; border: 0; border-radius: 10px; background: var(--soft); color: var(--text); box-shadow: inset 0 -2px 0 var(--line);
  font: 700 .95rem/1 var(--body); cursor: pointer; touch-action: manipulation; }
.so-keys button.wide { max-width: 70px; flex: 1.5; font-size: .72rem; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .so-row.shake { animation: none; } }

/* Excuses and war stories */
.posts { list-style: none; padding: 0; margin: 8px 0 0; }
.posts.ranked { counter-reset: rank; }
.post { padding: 12px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.post:last-child { border-bottom: 0; }
.posts.ranked .post { counter-increment: rank; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.posts.ranked .post::before { content: counter(rank); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font: 400 1.1rem/1 var(--display); grid-row: span 2; }
.post:target { background: var(--brand-soft); border-radius: var(--radius-sm); }
.post-body p { margin: 0 0 8px; }
.post-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upvote, .post-meta button.upvote[type=submit] { font: 700 .8rem/1 var(--body); padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); box-shadow: none; cursor: pointer; white-space: nowrap; }
.post-meta button.upvote[type=submit]:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); transform: none; }
span.upvote { cursor: default; border-color: var(--line); color: var(--muted); }
span.upvote.done { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; font: 700 .85rem/1 var(--body); }
.tabs a { text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 999px; }
.tabs a[aria-current] { color: var(--on-brand); background: var(--brand); }
.whip-head .eyebrow a { color: inherit; }
tr.is-pending { background: var(--brand-soft); }
tr.is-pending td p { margin: 0; }

/* Streaks */
.streak-pill { display: inline-block; font: 400 1.1rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; background: var(--brand); color: var(--on-brand); padding: 8px 14px 6px; border-radius: 999px; margin: 0 8px 0 0; }
.streak-pill.on-ink { margin: 4px 0 0; }
.streak-mine { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-weight: 600; }
.leaders { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: rank; }
.leaders li { counter-increment: rank; display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.leaders li::before { content: counter(rank); width: 22px; font: 400 1.1rem/1 var(--display); color: var(--muted); }
.leaders .leader-name { flex: 1; }

/* Homepage strip of today's games */
.daily-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
@media (max-width: 760px) { .daily-strip { grid-template-columns: 1fr; } }
.daily-teaser { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; text-decoration: none; position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.daily-teaser::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--brand); }

.daily-teaser .eyebrow { margin: 0; }
.daily-teaser strong { font-size: 1.05rem; line-height: 1.3; }
.daily-teaser .muted { font-size: .9rem; }
.daily-teaser .go { margin-top: auto; padding-top: 10px; font: 700 .85rem/1 var(--body); color: var(--link); }
.daily-teaser .go::after { content: " →"; }
.topbar nav a.nav-daily { color: var(--text); }

.dir-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.dir-list .profile-card { margin: 0; }
.dir-card[hidden] { display: none; }
.progress-wrap { margin: 16px 0 20px; }
.progress-label { margin-bottom: 6px; }
.progress { height: 12px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

.progress-wrap p { margin: 6px 0 0; }

form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); margin-top: 4px; font-weight: 400; }
.manifest-preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 20px; color: #15171a; overflow: hidden; }
.manifest-list { padding-left: 1.2em; }
.manifest-list li { margin: 8px 0; }
/* Merch mockups (/shop). The product art uses Bullwhip's own colours in both themes. */
.art-display { font-family: var(--display, "Anton", Impact, sans-serif); }
.art-mono { font-family: var(--mono, "IBM Plex Mono", monospace); font-weight: 600; }
.tee { --g: #15171a; --fill: transparent; --stroke: #ffd400; --txt: #ffd400; --seam: #2c3035; }
.tee[data-color="yellow"] { --g: #ffd400; --stroke: #15171a; --txt: #15171a; --seam: #d9b600; }
.tee[data-color="white"] { --g: #f4f3ee; --fill: #ffd400; --stroke: #15171a; --txt: #15171a; --seam: #d8d6cc; }
.shop-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 28px 0; }
.shop-stage { background: var(--soft); display: grid; place-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.shop-stage svg { width: 100%; height: auto; max-height: 440px; display: block; }
.shop-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.shop-info h2, .shop-info p { margin: 0; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.shop-grid article { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.shop-grid h3, .shop-grid p { margin: 0; }
.shop-grid .shop-stage svg { max-height: 300px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.swatches legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.swatches label { cursor: pointer; margin: 0; }
.swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatches span { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 8px; font-weight: 600; background: var(--card); }
.swatches i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--muted); display: block; }
.swatches input:checked + span { border-color: var(--text); }
.swatches input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 680px) { .shop-feature { grid-template-columns: 1fr; } }
.shop-tag { align-self: flex-start; font: 700 .7rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid currentColor; border-radius: 999px; padding: 4px 9px; }

.hero-line { font: 400 clamp(1.3rem, 4vw, 1.9rem)/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
.tee[data-design="stamp"] .d-slogan, .tee[data-design="slogan"] .d-stamp { display: none; }

/* Salary survey */
.sal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.sal-tab { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--text); background: var(--card); }
.sal-tab.on { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.sal-hero { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: var(--panel-bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.sal-hero .k { font: 700 .74rem/1.3 var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.sal-hero strong { font: 400 clamp(2.4rem, 8vw, 3.6rem)/1 var(--display); }
.sal-table th[scope=row] { text-align: left; font-weight: 600; }
.sal-table td.sal-num, .sal-table th.sal-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sal-cell { min-width: 190px; }
.sal-track { display: block; position: relative; height: 12px; background: var(--soft); border-radius: 999px; margin-bottom: 4px; }
.sal-range { position: absolute; top: 0; bottom: 0; background: var(--brand); border-radius: 999px; }
.sal-median { position: absolute; top: -3px; bottom: -3px; width: 3px; background: var(--text); margin-left: -1px; }
.sal-table { table-layout: fixed; width: 100%; min-width: 0; }
.sal-table th.sal-first { width: 32%; }
.sal-table th.sal-num { width: 14%; }
.sal-table th.sal-bar { width: 40%; }
.sal-cell { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
  .sal-table, .sal-table tbody { display: block; }
  .sal-table thead { display: none; }
  .sal-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .sal-table th[scope=row], .sal-table td { padding: 0; border: 0; }
  .sal-table td:nth-child(2) { display: none; }
  .sal-table td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .sal-table td.sal-cell { grid-column: 1 / -1; }
  .sal-table td[colspan] { display: block; grid-column: 1 / -1; }
}
.whip-share { margin: 6px 0 0; }
.whip-story-page .whip-body { margin: 14px 0; }
.whip-story-page h1 { margin-bottom: 12px; }

/* Admin overview */
.ov-attention { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.ov-attention li { padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-sm); }
.ov-attention li.warn { border-left-color: #e5484d; }
.ov-attention li.info { border-left-color: var(--brand); }
.ov-row { grid-template-columns: minmax(150px, 260px) 1fr 90px; }
.ov-n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); gap: 8px; align-items: end; margin-top: 10px; }
.ov-week { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ov-col { display: flex; align-items: flex-end; width: 100%; max-width: 44px; height: 110px; background: var(--brand-soft); border-radius: 8px; overflow: hidden; }
.ov-col span { display: block; width: 100%; background: var(--brand); min-height: 2px; }
.ov-week-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-week-d { font: 600 .7rem/1 var(--mono); color: var(--muted); }
@media (max-width: 560px) { .ov-row { grid-template-columns: 1fr; gap: 4px; } .ov-n { text-align: left; } }
.stat-n.ov-small { font-size: 1.15rem; line-height: 1.3; }
@media (max-width: 560px) { .ov-weeks { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; } .ov-week-d { font-size: .6rem; } }

/* Forum search */
.notice .inline button.link { margin-left: 4px; }
.forum-search { display: flex; gap: 8px; margin: 14px 0 18px; }
.forum-search input { flex: 1; min-width: 0; margin: 0; }
.forum-search button { flex: none; }
.search-snip { margin: 6px 0 0; font-size: .95rem; color: var(--muted); }
.search-snip mark { background: var(--brand); color: var(--on-brand); padding: 0 3px; border-radius: 4px; }

/* Focus ring on inputs, and tables that sit nicely inside white cards */
form input:not([type=checkbox]):focus, form select:focus, textarea:focus, .filters input:focus, .filters select:focus {
  outline: none; border-color: var(--brand-dark); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 35%, transparent); }
input[type=checkbox] { accent-color: var(--brand-dark); width: 18px; height: 18px; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:hover td { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
::selection { background: var(--brand); color: var(--on-brand); }

/* Welcome page (/thanks): greeting and member card side by side, then the profile prompt, next steps and settings */
.welcome-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center;
  background: var(--hero-bg); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(26px, 5vw, 52px); }
.welcome-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; margin-bottom: 16px; }
.welcome-hero h1 em { font-style: normal; background: var(--highlight); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.welcome-hero .lead { margin: 0; }
.welcome-card .profile-card { margin: 0 0 10px; }
.welcome-card > p { margin: 0 4px; }
@media (max-width: 760px) { .welcome-hero { grid-template-columns: 1fr; } }
.profile-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-top: 18px; }
.profile-cta > div { flex: 1 1 320px; min-width: 0; }
.profile-cta .progress-wrap { margin: 0 0 6px; }
.profile-cta p.small { margin: 8px 0 0; }
.profile-cta .btn { flex: none; }
.profile-cta.done .btn { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.step-tile { display: flex; flex-direction: column; gap: 4px; }
.step-tile .badge { align-self: flex-start; }
.step-tile .go { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: .9rem; color: var(--link); }
.step-tile .go::after { content: " →"; }
.steps-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.settings-card { padding: 8px clamp(20px, 3vw, 32px); }
.settings { list-style: none; margin: 0; padding: 0; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.setting > div:first-child { flex: 1 1 300px; min-width: 0; }
.setting p { margin: 2px 0 0; }
.setting-action { flex: none; }
.btn-ghost, button.btn-ghost[type=submit]:not(.link) { display: inline-block; background: var(--card); color: var(--text); border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line); padding: 10px 20px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-ghost:hover, button.btn-ghost[type=submit]:not(.link):hover { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); transform: none; }
.settings-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0 14px; font-size: .92rem; }
.settings-foot .link, .settings-foot .link-danger { margin: 0; }
.settings-foot .link { color: var(--muted); }

/* Growth: founding member badge, invite card and the "X invited you" note on the homepage. */
.tag.founding { background: var(--ink, #111317); color: var(--brand, #ffd400); font-weight: 700; }
.invite-card { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-top: 18px; }
.invite-card > div { flex: 1 1 320px; min-width: 0; }
.invite-card p.small { margin: 8px 0 0; }
.invite-card .btn { flex: none; }
.invite-link { display: flex; gap: 8px; margin-top: 12px; }
.invite-link input { flex: 1; min-width: 0; font: inherit; font-size: .9rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--soft); color: var(--text); }
.invited { display: table; margin: 4px 0 12px; padding: 8px 14px; border-radius: 99px; background: var(--brand-soft); font-weight: 600; }
