/* Bruin Clubs. UCLA palette (blue #2774AE, darker #005587, darkest #003B5C, gold #FFD100),
   DIN-style Barlow for everything, Geist Mono for labels. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400 600; font-display: swap; src: url("../fonts/geist-mono-400-600.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --blue: #2774ae;
  --blue-d: #005587;
  --blue-dd: #003b5c;
  --blue-xd: #002339;
  --blue-l: #8bb8e8;
  --blue-ll: #daebfe;
  --gold: #ffd100;
  --gold-d: #ffb81c;
  --link: #005587;
  --ink: #101418;
  --ink-2: #3a424b;
  --muted: #5b646e;
  --line: #e3e7eb;
  --line-2: #cbd3db;
  --bg: #ffffff;
  --bg-2: #f4f6f8;
  --bg-3: #eaeef2;
  --wash: #f2f7fc;
  --join-bg: #fff8d6;
  --good: #1a7f37;
  --good-bg: #edf8f0;
  --bad: #b42318;
  --bad-bg: #fdf0ee;
  --heart: #d92d5b;
  --series: #2774ae;
  --series-hover: #005587;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 12px 32px rgb(16 24 40 / 10%);
  --radius: 4px;
  --radius-l: 10px;
  --font: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-semi: "Barlow Semi Condensed", "Barlow", "Arial Narrow", sans-serif;
  --font-cond: "Barlow Condensed", "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --link: #8bb8e8;
    --ink: #eef1f4;
    --ink-2: #c3cad2;
    --muted: #97a1ac;
    --line: #232a32;
    --line-2: #34404b;
    --bg: #0b0d10;
    --bg-2: #11151a;
    --bg-3: #181e25;
    --wash: #0e1822;
    --join-bg: #1d1a0b;
    --good: #5cc17a;
    --good-bg: #0f2216;
    --bad: #ff8a7a;
    --bad-bg: #2a1210;
    --heart: #ff6b8e;
    --series: #4a8fcc;
    --series-hover: #8bb8e8;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px rgb(0 0 0 / 50%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--font); font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; display: flex; flex-direction: column; overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-semi); font-weight: 700; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-size: clamp(34px, 4.4vw, 54px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--font-mono); font-size: .86em; }
kbd { font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; line-height: 18px; color: var(--muted); background: var(--bg); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--gold); color: #101418; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; }
.i.inline { display: inline-block; vertical-align: -4px; width: 18px; height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--blue-dd); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn .i { width: 18px; height: 18px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-dark { background: var(--blue-dd); color: #fff; }
.btn-dark:hover { background: var(--blue-d); }
.btn-gold { background: var(--gold); color: var(--blue-xd); }
.btn-gold:hover { background: var(--gold-d); }
.btn-outline { border-color: var(--blue-d); color: var(--link); background: transparent; }
.btn-outline:hover { background: var(--wash); }
.btn-ghost-inv { border-color: rgb(255 255 255 / 55%); color: #fff; }
.btn-ghost-inv:hover { border-color: #fff; background: rgb(255 255 255 / 8%); }
.btn-danger { background: var(--bad); color: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 500; }
@media (prefers-color-scheme: dark) {
  .btn-dark { background: #1f5f8f; }
  .btn-dark:hover { background: var(--blue); }
  .btn-outline { border-color: var(--blue-l); }
}
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; border-radius: var(--radius); color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--bg-2); }

/* ---------- header (UCLA-style two tiers) ---------- */
.hdr { background: var(--bg); border-top: 5px solid var(--blue); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.hdr-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 6px; }
.brand { display: inline-flex; text-decoration: none; }
.brand-box {
  display: inline-block; background: var(--blue); color: #fff; font-family: var(--font-cond); font-weight: 700;
  font-size: 25px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; padding: 11px 14px 9px;
  box-shadow: inset 0 -4px 0 var(--gold); white-space: nowrap;
}
.util { display: flex; align-items: center; gap: 6px; }
.util-link { color: var(--link); font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 10px; border-radius: var(--radius); white-space: nowrap; }
.util-link:hover { background: var(--bg-2); }
.hdr-main-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; }
.main-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.main-nav > a, .main-nav summary {
  display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-weight: 700; font-size: 16px;
  text-decoration: none; padding: 14px 12px; position: relative; white-space: nowrap; cursor: pointer;
}
.main-nav > a::after, .main-nav summary::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.main-nav > a:hover::after, .main-nav > a[aria-current]::after, .main-nav details[open] summary::after { transform: scaleX(1); }
.main-nav .count, .tabs .count, .filters .count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  border-radius: 10px; background: var(--blue); color: #fff; font: 600 12px/1 var(--font-mono);
}
.chev { width: 16px; height: 16px; transition: transform .15s; }
details[open] > summary .chev { transform: rotate(180deg); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 10px; min-width: 250px; height: 40px; padding: 0 8px 0 12px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); color: var(--muted); cursor: pointer; font-size: 15px;
}
.search-trigger:hover { border-color: var(--blue); color: var(--ink); }
.search-trigger span { flex: 1; text-align: left; }
.menu { position: relative; }
.menu > summary { cursor: pointer; }
.acct > summary { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 22px; font-weight: 600; font-size: 15px; color: var(--ink); }
.acct > summary:hover { background: var(--bg-2); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-dd); color: #fff; font: 700 15px/1 var(--font); }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 8px; z-index: 30;
}
.menu-pop a, .menu-pop button { display: flex; width: 100%; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg-2); }
.menu-pop form { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }
.menu-who { margin: 0 0 6px; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); display: grid; }
.menu-who span { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.areas .menu-pop { left: 0; right: auto; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 2px; width: min(720px, 90vw); }
.menu-grid a { justify-content: space-between; gap: 12px; }
.menu-grid small { color: var(--muted); font-family: var(--font-mono); }
.show-sm { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--blue-dd); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 56px; }
.eyebrow { font: 500 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-l); margin-bottom: 22px; }
.display {
  font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: clamp(52px, 8.6vw, 112px);
  line-height: .9; letter-spacing: -.01em; margin: 0 0 24px; max-width: 12ch;
}
.display::before { content: ""; display: block; width: 72px; height: 7px; background: var(--gold); margin-bottom: 26px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 60ch; color: var(--ink-2); }
.hero .lede { color: rgb(255 255 255 / 86%); margin-bottom: 30px; }
.hero-search { position: relative; display: flex; align-items: center; max-width: 720px; background: #fff; border-radius: 6px; padding: 6px 6px 6px 16px; box-shadow: 0 10px 40px rgb(0 0 0 / 25%); }
.hero-search > .i { color: #5b646e; }
.hero-search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; padding: 0 12px; font-size: 18px; color: #101418; background: transparent; }
.hero-search input::placeholder { color: #7a838c; }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--gold), 0 10px 40px rgb(0 0 0 / 25%); }
.hero-search .btn { min-height: 48px; padding: 0 26px; font-size: 17px; }
.hero-search-light { border: 1px solid var(--line-2); box-shadow: none; margin: 24px 0; }
.hero-search-light:focus-within { box-shadow: 0 0 0 3px var(--blue-ll); border-color: var(--blue); }
@media (prefers-color-scheme: dark) { .hero-search-light { background: var(--bg-2); } .hero-search-light input { color: var(--ink); } }
.hero-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 15px; }
.hero-pop span { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-l); margin-right: 4px; }
.hero-pop a { color: #fff; text-decoration: none; border: 1px solid rgb(255 255 255 / 30%); border-radius: 20px; padding: 4px 12px; }
.hero-pop a:hover { border-color: var(--gold); color: var(--gold); }
.hero-stats { background: var(--blue-xd); position: relative; border-top: 1px solid rgb(255 255 255 / 10%); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 auto; }

.stats > div { padding: 20px 20px 22px; border-left: 1px solid rgb(255 255 255 / 12%); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font: 500 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-l); }
.stats dd { margin: 6px 0 0; font: 700 34px/1 var(--font-cond); color: #fff; }
.stats-light { border: 1px solid var(--line); border-radius: var(--radius-l); grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; }
.stats-light > div { border-left: 1px solid var(--line); padding: 16px 20px; }
.stats-light > div:first-child { padding-left: 20px; }
.stats-light dt { color: var(--muted); }
.stats-light dd a { color: var(--ink); text-decoration: none; }

/* suggestion dropdowns */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); z-index: 40; text-align: left; }
.suggest li a, .palette-list li a { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.suggest li a small, .palette-list li a small { color: var(--muted); font-size: 13px; }
.suggest li[aria-selected="true"] a, .palette-list li[aria-selected="true"] a { background: var(--wash); box-shadow: inset 3px 0 0 var(--blue); }
.suggest-all a, .palette-list .suggest-all a { flex-direction: row; align-items: center; gap: 8px; color: var(--link); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: #07090c; color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-sub { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }
.kicker { font: 500 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--blue-l); } }
.section-dark .kicker { color: var(--gold); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.more .i { width: 18px; height: 18px; transition: transform .15s; }
.more:hover .i { transform: translateX(3px); }

/* area grid */
.areas-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.areas-grid li { border-bottom: 1px solid var(--line); }
.areas-grid li:nth-child(3n+2), .areas-grid li:nth-child(3n+3) { border-left: 1px solid var(--line); }
.area { display: block; padding: 22px 22px 22px 20px; text-decoration: none; color: var(--ink); height: 100%; position: relative; transition: background-color .15s; }
.area::before { content: ""; position: absolute; left: 20px; top: 0; width: 40px; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.area:hover { background: var(--wash); }
.area:hover::before { transform: scaleX(1); }
.area-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.area-name { font: 700 22px/1.15 var(--font-semi); color: var(--link); }
.area-count { font: 500 14px/1 var(--font-mono); color: var(--muted); }
.area-ex { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile::before { content: ""; position: absolute; left: 22px; top: -1px; width: 40px; height: 4px; background: var(--gold); }
.tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile-area { font: 500 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.tile-name { font: 700 21px/1.15 var(--font-semi); color: var(--link); }
.tile-desc { font-size: 15px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--link); }
.tile-more .i { width: 16px; height: 16px; }

/* split, dates, mini list */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; }
.dates { list-style: none; margin: 24px 0 16px; padding: 0; border-top: 1px solid var(--line); }
.dates a { display: grid; grid-template-columns: 150px 1fr; column-gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.dates a:hover .date-what { color: var(--link); text-decoration: underline; }
.date-when { grid-row: span 2; font-size: 14px; color: var(--blue); font-weight: 600; padding-top: 3px; }
@media (prefers-color-scheme: dark) { .date-when { color: var(--gold); } }
.date-what { font-weight: 700; font-size: 18px; }
.date-who { color: var(--muted); font-size: 15px; }
.mini-list { list-style: none; margin: 24px 0 20px; padding: 0; border-top: 1px solid var(--line); }
.mini-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mini-name { font-weight: 600; color: var(--link); }
.mini-meta { font: 500 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: right; flex: none; max-width: 45%; }
.mini-list a:hover .mini-name { text-decoration: underline; }

/* steps (dark) */
.section-dark h2 { color: #fff; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgb(255 255 255 / 16%); }
.steps li { padding: 28px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid rgb(255 255 255 / 16%); }
.step-n { display: block; font: 700 64px/1 var(--font-cond); color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-bottom: 18px; }
.steps h3 { font-size: 24px; color: #fff; }
.steps p { color: rgb(255 255 255 / 74%); }
.cta { margin-top: 48px; padding: 28px 32px; background: var(--blue-dd); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-radius: var(--radius); }
.cta p { flex: 1 1 360px; margin: 0; font-size: 18px; color: rgb(255 255 255 / 90%); }
.cta strong { color: #fff; }

/* ---------- page heads, crumbs, tabs ---------- */
.page-head { background: var(--wash); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.page-head h1 { color: var(--blue-dd); margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .page-head h1, .club-head h1 { color: #fff; } }
.page-head .lede { margin: 0; }
.page-head-tight { padding: 28px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--link); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.tabs { display: flex; gap: 4px; margin-top: 22px; margin-bottom: -35px; }
.page-head-tight .tabs { margin-bottom: 0; }
.tabs a { padding: 12px 16px; font-weight: 700; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--link); }
.tabs a[aria-current] { color: var(--link); border-bottom-color: var(--gold); }
.tabs-scroll { overflow-x: auto; scrollbar-width: none; }

/* ---------- directory ---------- */
.dir { padding-top: 28px; padding-bottom: 72px; display: grid; grid-template-columns: 270px minmax(0, 1fr); column-gap: 40px; align-items: start; }
.dir-form { display: contents; }
.dir-search { grid-column: 1 / -1; }
.dir-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 5px 5px 16px; background: var(--bg); margin-bottom: 28px; }
.dir-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ll); }
@media (prefers-color-scheme: dark) { .dir-search:focus-within { box-shadow: 0 0 0 3px rgb(39 116 174 / 40%); } }
.dir-search .i { color: var(--muted); }
.dir-search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font-size: 18px; padding: 0 6px; }

.filters { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; scrollbar-width: thin; padding-right: 6px; }
.filters > summary { display: none; }
.filters fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.filters legend { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1.3; }
.opt:hover { background: var(--bg-2); }
.opt input { margin: 0; width: 16px; height: 16px; accent-color: var(--blue); flex: none; }
.opt span { flex: 1; }
.opt small { font: 400 12px/1 var(--font-mono); color: var(--muted); }
.opt:has(input:checked) { background: var(--wash); color: var(--link); font-weight: 600; }
.filter-actions { display: flex; align-items: center; gap: 16px; }
.js .filter-actions [data-nojs] { display: none; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.results-count { margin: 0; font-size: 16px; }
.results-count strong { font-family: var(--font-cond); font-size: 26px; font-weight: 700; margin-right: 2px; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select, .admin-filters select { height: 36px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); padding: 0 30px 0 10px; font-size: 15px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 12px; border-radius: 16px; background: var(--wash); border: 1px solid var(--blue-ll); color: var(--link); font-size: 14px; font-weight: 600; text-decoration: none; }
@media (prefers-color-scheme: dark) { .chip { border-color: var(--line-2); } }
.chip .i { width: 14px; height: 14px; }
.chip:hover { border-color: var(--blue); }
.chip-clear { font-size: 14px; align-self: center; margin-left: 4px; }
.results { min-width: 0; transition: opacity .15s; }
.results.loading { opacity: .5; }

/* cards */
.cards { list-style: none; margin: 0; padding: 0; }
.card { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.card-body { flex: 1; min-width: 0; }
.card-title { font: 700 21px/1.2 var(--font-semi); margin: 0 0 6px; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.card-meta > span + span::before { content: "·"; margin: 0 8px; color: var(--line-2); }
.card-meta > span.tag::before { content: none; }
.card-meta .tag { margin-left: 10px; }
.card-desc { margin: 0 0 10px; color: var(--ink-2); font-size: 16px; line-height: 1.5; max-width: 72ch; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; font-size: 14px; color: var(--muted); }
.card-acts { display: flex; flex-direction: column; gap: 8px; flex: none; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 3px; background: var(--bg-3); color: var(--ink-2); font: 600 11px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
.tag-new { background: var(--gold); color: #101418; }
.pill { display: inline-block; padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.more-wrap { display: flex; align-items: center; gap: 16px; margin: 28px 0 0; }
.empty { padding: 56px 0; text-align: center; }
.empty h2 { font-size: 28px; }
.empty p { color: var(--muted); }

/* save / like buttons */
.toggle { margin: 0; }
.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); color: var(--ink-2); cursor: pointer; font-weight: 600; font-size: 15px;
  transition: color .15s, border-color .15s, background-color .15s, transform .1s;
}
.act:hover { border-color: var(--blue); color: var(--link); }
.act:active { transform: scale(.96); }
.act .i { width: 20px; height: 20px; }
.act-count { font: 500 13px/1 var(--font-mono); }
.act-count:empty { display: none; }
.act-save[aria-pressed="true"] { --fill: currentColor; color: var(--blue); border-color: var(--blue); background: var(--wash); }
@media (prefers-color-scheme: dark) { .act-save[aria-pressed="true"] { color: var(--blue-l); border-color: var(--blue-l); } }
.act-like[aria-pressed="true"] { --fill: currentColor; color: var(--heart); border-color: var(--heart); }
.act-big { height: 46px; padding: 0 16px; }
.act.pop .i { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.3); } }

/* ---------- club page ---------- */
.club-head { background: var(--wash); border-bottom: 1px solid var(--line); padding: 32px 0 36px; }
.club-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.club-title { min-width: 0; }
.club-kicker { display: flex; align-items: center; gap: 10px; font: 500 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
@media (prefers-color-scheme: dark) { .club-kicker { color: var(--blue-l); } }
.club-head h1 { color: var(--blue-dd); margin-bottom: 14px; max-width: 24ch; }
.club-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.club-facts span { padding: 4px 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.club-acts { display: flex; gap: 8px; flex: none; }
.club-body { display: grid; grid-template-columns: 1fr 360px; gap: 56px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
.club-main, .club-side, .split > *, .auth-wrap > * { min-width: 0; }
.join-text, .prose p, .msg, .facts dd { overflow-wrap: anywhere; }
.block { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.block h2 { font-size: 26px; }
.prose p { font-size: 18px; line-height: 1.65; max-width: 68ch; }
.src { font-size: 14px; color: var(--muted); margin: 0; }
.join { background: var(--join-bg); border: 0; border-left: 5px solid var(--gold); padding: 24px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.join-text { font-size: 18px; line-height: 1.6; }
.join .fine { margin: 0; }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 500; }
.facts-wide > div { grid-template-columns: 220px 1fr; }
.facts-grid { grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: 24px 0; }
.facts-grid > div { grid-template-columns: 1fr; gap: 4px; }
.facts-full { grid-column: 1 / -1; }
.small { font-size: 12px; }
.report { font-size: 15px; }
.report a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.report .i { width: 16px; height: 16px; }
.club-side { position: sticky; top: 16px; display: grid; gap: 20px; }
.contact { border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.contact h2 { font-size: 22px; }
.links { list-style: none; margin: 18px 0 0; padding: 0; }
.links li { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.links a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; font-weight: 600; }
.links a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links a:hover span { text-decoration: underline; }
.links .i { color: var(--muted); }
.copy { border: 1px solid var(--line-2); background: var(--bg); border-radius: var(--radius); font-size: 13px; font-weight: 600; padding: 4px 10px; cursor: pointer; color: var(--ink-2); }
.copy:hover { border-color: var(--blue); color: var(--link); }
.contact .fine { margin: 14px 0 0; }
.side-cta { background: var(--bg-2); border-radius: var(--radius); padding: 20px 22px; }
.side-cta p { font-size: 15px; }

/* ---------- lists, notices ---------- */
.list-page { padding-top: 36px; padding-bottom: 72px; }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.list-tools p { margin: 0; }
.suggested { margin-top: 56px; }
.suggested h2 { margin-bottom: 4px; }
.notice { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--wash); border: 1px solid var(--blue-ll); margin: 0 0 24px; font-size: 16px; }
@media (prefers-color-scheme: dark) { .notice { border-color: var(--line-2); } }
.notice p { margin: 0; flex: 1 1 300px; }
.notice-good { background: var(--good-bg); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.notice-good .i { color: var(--good); }
.notice-bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--bad); }

/* ---------- forms, auth, account ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 15px; }
.field small { font-weight: 400; color: var(--muted); }
.field-link { font-weight: 500; font-size: 14px; }
.field input, .field select, .field textarea, .admin-q input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); font-size: 17px;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .admin-q input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ll); }
@media (prefers-color-scheme: dark) { .field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgb(39 116 174 / 40%); } }
.hint { font-size: 14px; color: var(--muted); }
.pw { position: relative; display: block; }
.pw input { padding-right: 72px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--link); font-weight: 600; font-size: 14px; cursor: pointer; padding: 8px; }
.form-grid { grid-template-columns: 1fr 1fr; }
.form-actions { grid-column: 1 / -1; }
.form-inline { grid-template-columns: 1fr auto; align-items: end; }
.auth-wrap { max-width: 980px; margin: 0 auto; padding: 56px 24px 80px; display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.auth-card { border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: var(--radius); padding: 36px 40px; background: var(--bg); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 36px; color: var(--blue-dd); }
@media (prefers-color-scheme: dark) { .auth-card h1 { color: #fff; } }
.auth-sub { color: var(--muted); margin-bottom: 24px; }
.auth-alt { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; }
.auth-aside { padding-top: 40px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.ticks .i { color: var(--blue); margin-top: 2px; }
.account { padding-top: 32px; padding-bottom: 72px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 20px; background: var(--bg); }
.panel h2 { font-size: 24px; }
.panel-danger { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.devices { list-style: none; margin: 0 0 16px; padding: 0; }
.devices li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.devices .muted { flex-basis: 100%; font-size: 14px; }
.prose-page { padding-top: 36px; padding-bottom: 72px; }
.prose-page section { margin-bottom: 40px; }
.prose-page p, .prose-page li { font-size: 18px; line-height: 1.65; max-width: 70ch; }
.bullets { padding-left: 22px; }
.bullets li { margin-bottom: 8px; }
.error-page { padding: 80px 0 100px; }

/* ---------- footer ---------- */
.ftr { background: var(--blue-xd); color: rgb(255 255 255 / 80%); margin-top: auto; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.ftr-about p { font-size: 15px; max-width: 42ch; margin-top: 18px; }
.ftr-data { color: var(--blue-l); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.brand-inv .brand-box { background: transparent; box-shadow: inset 0 0 0 2px #fff, inset 0 -6px 0 var(--gold); }
.ftr nav { display: grid; align-content: start; gap: 8px; }
.ftr h2 { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 6px 0 8px; }
.ftr nav a { color: #fff; text-decoration: none; font-size: 15px; }
.ftr nav a:hover { text-decoration: underline; }
.ftr-legal { border-top: 1px solid rgb(255 255 255 / 12%); padding-top: 20px; padding-bottom: 28px; }
.ftr-legal p { font-size: 13px; color: rgb(255 255 255 / 60%); margin: 0; max-width: 90ch; }

/* ---------- command palette (Cursor-style) ---------- */
.palette { position: fixed; inset: 0; z-index: 90; background: rgb(8 12 18 / 50%); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette-box { width: min(660px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 80px rgb(0 0 0 / 35%); overflow: hidden; animation: rise .16s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.palette-form { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.palette-form .i { color: var(--muted); }
.palette-form input { flex: 1; height: 60px; border: 0; outline: 0; background: transparent; font-size: 19px; }
.palette-form input::-webkit-search-cancel-button { display: none; }
.palette-list { list-style: none; margin: 0; padding: 6px; max-height: min(420px, 55vh); overflow: auto; }
.palette-list:empty { display: none; }
.palette-hint { padding: 10px 12px; color: var(--muted); font-size: 14px; }
.palette-foot { display: flex; gap: 18px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; background: var(--bg-2); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 12px 16px 12px 18px; background: #101418; color: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgb(0 0 0 / 30%); font-size: 15px; animation: rise .18s ease-out; }
.toast a { color: var(--gold); font-weight: 600; white-space: nowrap; }
.toast button { background: none; border: 0; color: rgb(255 255 255 / 70%); cursor: pointer; padding: 4px; }
@media (prefers-color-scheme: dark) { .toast { background: #eef1f4; color: #101418; } .toast a { color: var(--blue-d); } .toast button { color: #5b646e; } }

/* ---------- admin ---------- */
.admin { padding-top: 24px; padding-bottom: 72px; }
.admin-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.admin-q input { min-height: 36px; font-size: 15px; width: 280px; padding: 6px 10px; }
.admin-range { color: var(--muted); font-size: 13px; margin-left: auto; }
.js .admin-filters [data-nojs] { display: none; }
.js .admin-filters:has(.admin-q) [data-nojs] { display: inline-flex; }
.flash span { word-break: break-all; font-family: var(--font-mono); font-size: 14px; cursor: copy; }
.live { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; font-size: 15px; margin-bottom: 20px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); }
.kpi { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi:nth-child(4n) { border-right: 0; }
.kpi:nth-last-child(-n+4) { border-bottom: 0; }
.kpi-label { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.kpi-value { font: 600 32px/1.1 var(--font); margin: 0 0 6px; letter-spacing: -.01em; }
.kpi-foot { font-size: 13px; margin: 0; }
.delta { font-weight: 600; font-family: var(--font-mono); font-size: 12px; }
.delta-good { color: var(--good); }
.delta-bad { color: var(--bad); }
.admin-note { font-size: 14px; margin: 14px 0 0; }
.chart { margin: 36px 0 0; padding: 0; }
.chart figcaption h3 { margin: 0 0 4px; font-size: 22px; }
.chart figcaption p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.chart-frame { position: relative; }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .axis { stroke: var(--line-2); stroke-width: 1; }
.chart-svg .tick { fill: var(--muted); font: 400 12px var(--font-mono); font-variant-numeric: tabular-nums; }
.chart-svg .cap { fill: var(--ink-2); font: 600 13px var(--font); }
.chart-svg .mark { fill: var(--series); transition: fill .1s; }
.chart-svg .hit { fill: transparent; }
.chart-svg .bar { outline: none; cursor: default; }
.chart-svg .bar:hover .mark, .chart-svg .bar:focus .mark { fill: var(--series-hover); }
.chart-svg .bar:focus-visible .hit { fill: color-mix(in srgb, var(--series) 10%, transparent); }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 6px; padding: 6px 10px; font-size: 13px; white-space: nowrap; z-index: 5; }
.chart-tip strong { font-size: 15px; }
.chart-empty { color: var(--muted); padding: 24px 0; }
.chart-table { margin-top: 8px; font-size: 14px; }
.chart-table summary { cursor: pointer; color: var(--link); font-weight: 600; display: inline-block; }
.chart-table table { margin-top: 8px; max-width: 480px; }
.rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.rank { margin-top: 36px; min-width: 0; }
.rank-wide { grid-column: 1 / -1; }
.rank h3 { font-size: 20px; margin-bottom: 4px; }
.rank-note, .rank-empty { color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 500 11px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line-2); }
td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-label a, .rank-label span { word-break: break-word; }
.rank-label small { display: block; color: var(--muted); font-size: 12px; }
.rank-bar { width: 100%; height: 4px; margin-top: 6px; }
.rank-bar rect { fill: var(--series); }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 900px; }
.clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg { max-width: 420px; white-space: pre-wrap; }
.row-done td { color: var(--muted); }
.row-acts { display: flex; gap: 12px; }
.row-acts form { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 2px 16px; padding: 10px 0 10px 14px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--line-2); }
.timeline .tl-event { border-left-color: var(--gold); }
.tl-when { font-size: 12px; color: var(--muted); grid-row: span 2; padding-top: 3px; }
.tl-detail { font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .club-body { grid-template-columns: 1fr 320px; gap: 36px; }
  .search-trigger { min-width: 0; }
  .search-trigger span { display: none; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(4n) { border-right: 1px solid var(--line); }
  .kpi:nth-child(3n) { border-right: 0; }
  .kpi:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .kpi:nth-last-child(-n+3) { border-bottom: 0; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline-grid; }
  .hdr-top { padding-top: 12px; padding-bottom: 4px; }
  .brand-box { font-size: 21px; padding: 9px 11px 7px; }
  .hdr-main-row { min-height: 44px; }
  .main-nav { overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 28px 0 12px; flex: 1;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav > a, .main-nav summary { padding: 12px 10px; font-size: 15px; }
  .areas { position: static; }
  .areas .menu-pop { position: fixed; left: 12px; right: 12px; top: auto; width: auto; max-height: 60vh; overflow: auto; }
  .menu-grid { grid-template-columns: 1fr 1fr; width: auto; }
  .hero-inner { padding-top: 44px; padding-bottom: 36px; }
  .display::before { width: 56px; height: 6px; margin-bottom: 20px; }
  .hero-search { padding-left: 12px; }
  .hero-search .btn { padding: 0 16px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats > div { padding: 14px 12px; border-left: 0; }
  .stats > div:first-child { padding-left: 12px; }
  .stats dd { font-size: 28px; }
  .hero-stats .stats > div:nth-child(n+4) { display: none; }
  .section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .areas-grid li:nth-child(3n+2), .areas-grid li:nth-child(3n+3) { border-left: 0; }
  .areas-grid li:nth-child(2n) { border-left: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 4px; border-left: 0; border-top: 1px solid rgb(255 255 255 / 16%); }
  .steps li:first-child { border-top: 0; }
  .dir { grid-template-columns: minmax(0, 1fr); }
  .filters { margin-bottom: 16px; }

  .filters { position: static; max-height: none; overflow: visible; border: 1px solid var(--line); border-radius: 8px; padding: 0; }
  .filters > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 700; cursor: pointer; }
  .filters > summary .chev { margin-left: auto; }
  .filters .filters-body { padding: 4px 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .filters fieldset:first-child { grid-column: 1 / -1; columns: 2; column-gap: 20px; }
  .filters fieldset:first-child legend { column-span: all; }
  .filter-actions { grid-column: 1 / -1; }
  .club-title-row { flex-direction: column; align-items: flex-start; }
  .club-body { grid-template-columns: 1fr; }
  .club-side { position: static; order: -1; }
  .side-cta { display: none; }

  .facts > div { grid-template-columns: 140px 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .auth-card { padding: 28px 22px; }
  .auth-aside { padding-top: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-about { grid-column: 1 / -1; }
  .rank-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .admin-range { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .util .btn-sm { display: none; }
  .util-link { padding: 8px 6px; }
  .brand-box { font-size: 20px; }
  .tiles { grid-template-columns: 1fr; }

  .areas-grid { grid-template-columns: 1fr; }
  .areas-grid li:nth-child(2n) { border-left: 0; }
  .area { padding: 18px 4px; }
  .area::before { left: 4px; }
  .card { gap: 12px; }
  .card-title { font-size: 19px; }
  .act { min-width: 40px; height: 40px; padding: 0 8px; }
  .filters .filters-body { grid-template-columns: 1fr; }
  .filters fieldset:first-child { columns: 1; }
  .dates a { grid-template-columns: 1fr; }
  .date-when { grid-row: auto; }
  .results-bar { flex-wrap: wrap; }
  .form-inline { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .timeline li { grid-template-columns: 1fr; }
  .hero-pop a:nth-child(n+8) { display: none; }
  .club-acts { width: 100%; }
  .club-acts .toggle { flex: 1; }
  .club-acts .act-big, .club-acts > .act { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .hdr, .ftr, .card-acts, .club-acts, .palette, .toast { display: none !important; }
}
