/*
Theme Name: NZFC
Description: Theme for nzfc.co.nz, the independent home of NZ football. Night-stadium look, navy and lime.
Author: 0 Digital
Version: 0.4.1
Requires PHP: 8.1
Text Domain: nzfc
*/

/* Layout: full-bleed photo heroes and bands; content in a 1200px wrap; dark only. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(assets/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(assets/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-latin-600-normal.woff2) format("woff2"); }

:root {
	--bg: #070D1C;
	--surface: #0E1830;
	--surface-2: #13203D;
	--line: #1E2A45;
	--fg: #F1F5FA;
	--muted: #9AA6BD;
	--accent: #C6FF3D;
	--accent-ink: #0A1200;
	--win: #3DDC84; --draw: #F5C542; --loss: #FF5C5C;
	--display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
	--body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 12px;
	--wrap: 1200px;
	--gutter: max(16px, env(safe-area-inset-left, 0px));
	--gutter-r: max(16px, env(safe-area-inset-right, 0px));
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.125rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: .01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 32px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.eyebrow { font: 600 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font: 600 1rem/1 var(--body); padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 2px solid var(--accent); transition: transform .15s, box-shadow .15s; }
.btn:hover { box-shadow: 0 0 28px rgba(198, 255, 61, .35); transform: translateY(-1px); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--fg); border-color: rgba(241, 245, 250, .5); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn--small { padding: 9px 16px; font-size: .9rem; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: " →"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 13, 28, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__word { font: 700 1.6rem/1 var(--display); text-transform: lowercase; }
.brand__word span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; color: var(--fg); text-decoration: none; font: 600 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; border-radius: 6px; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { color: var(--accent); }
.site-nav ul a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 24px; height: 2px; background: var(--fg); position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; } .nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero (SoccerClub: photo + dark text panel) */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(420px, 62vh, 640px); }
.hero--page { min-height: clamp(280px, 38vh, 400px); }
.hero--short { min-height: 240px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,13,28,.15) 0%, rgba(7,13,28,.35) 45%, var(--bg) 100%); }
.hero__inner { padding-block: 48px; }
.hero__panel { max-width: 640px; display: grid; gap: 16px; background: rgba(7, 13, 28, .72); backdrop-filter: blur(6px); border: 1px solid rgba(241, 245, 250, .08); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
.hero h1 span { color: var(--accent); }
.hero--page h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.hero__lede { color: #D5DCE8; font-size: 1.15rem; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Section titles with the angled lime accent (Navikx) */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section-title { display: flex; align-items: center; gap: 14px; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 24px; }
.section-title::before { content: ""; width: 28px; height: 22px; flex: none; background: var(--accent); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.section-title--small { font-size: 1.5rem; margin-bottom: 16px; }

/* Scoreboard (Navikx results strip) */
.scoreboard { padding-bottom: 0; }
.scoreboard__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.scoreboard__card--empty { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.scoreboard__card--empty > div { display: grid; gap: 6px; flex: 1 1 280px; min-width: 0; }
.scoreboard__msg { font: 700 1.6rem/1.1 var(--display); text-transform: uppercase; }

/* Goat: white sticker edge so the dark outline reads on navy */
.goat { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }

/* Feature icon row (SoccerClub) */
.features__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.feature { display: grid; justify-items: center; gap: 10px; padding: 22px 12px; text-align: center; text-decoration: none; color: var(--fg); font: 600 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s; }
.feature:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.feature__icon { width: 52px; height: 52px; }

/* Latest + champions */
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.split__side { display: grid; gap: 12px; }
.mini-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mini-table th { text-align: left; font: 600 .78rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 0 10px; }
.mini-table td { padding: 10px 0; border-top: 1px solid var(--line); }
.mini-table .num { text-align: right; font-weight: 600; }
.badge-abbr { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--accent); color: var(--accent); font: 700 .8rem/1 var(--display); vertical-align: middle; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.link-list a { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; font-weight: 600; }
.link-list a:hover { border-color: var(--accent); color: var(--accent); }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news-grid--list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-card a { display: grid; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--fg); text-decoration: none; }
.news-card a:hover { border-color: var(--accent); }
.news-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.news-card__body { padding: 16px; display: grid; gap: 6px; }
.news-card h3 { font-size: 1.35rem; }
.news-card--lead { grid-column: 1 / -1; }
.news-card--lead h3 { font-size: 2rem; }
.meta { color: var(--muted); font-size: .9rem; }

/* Photo bands (Build Succeeded) */
.band { position: relative; isolation: isolate; overflow: hidden; min-height: 440px; display: grid; align-items: center; border-top: 1px solid var(--line); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,13,28,.85) 0%, rgba(7,13,28,.25) 70%); }
.band--right::after { background: linear-gradient(270deg, rgba(7,13,28,.85) 0%, rgba(7,13,28,.25) 70%); }
.band__inner { display: flex; padding-block: 56px; }
.band--right .band__inner { justify-content: flex-end; }
.band__box { max-width: 460px; display: grid; gap: 14px; justify-items: start; background: rgba(14, 24, 48, .62); backdrop-filter: blur(8px); border: 1px solid rgba(241, 245, 250, .14); border-radius: var(--radius); padding: 28px; }
.band__box h2 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* Page content */
.prose { max-width: calc(760px + 32px); padding-block: 8px 72px; display: flow-root; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.8em; display: flex; align-items: center; gap: 12px; }
.prose h2::before { content: ""; width: 20px; height: 16px; flex: none; background: var(--accent); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.prose h3 { font-size: 1.4rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose img, .prose figure { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .prose th { font: 600 .8rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.prose blockquote { margin-inline: 0; padding: 16px 20px; background: var(--surface); border-radius: var(--radius); }
.prose details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.prose summary { cursor: pointer; font-weight: 600; }


/* Classes carried over in the guide pages' content */
.nl-club { display: inline-flex; align-items: center; gap: 10px; }
.nl-chip { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--accent); color: var(--accent); font: 700 .78rem/1 var(--display); }
.nl-checked, .prose .has-small-font-size { color: var(--muted); font-size: .9rem; }
.prose .nl-num, .prose td.nl-num { text-align: right; }
.prose td.nl-h1 { background: rgba(198, 255, 61, .06); }
.prose td.nl-h2 { background: rgba(198, 255, 61, .12); }
.prose td.nl-h3 { background: rgba(198, 255, 61, .2); }
.prose td.nl-h4 { background: rgba(198, 255, 61, .3); }
.nl-toc, .nl-alltime, .nl-tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 2.2em; }
.nl-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.nl-tabs a { display: block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nl-alltime { padding-left: 20px; }
.nl-alltime h3 { margin: 0 0 12px; }
.nl-alltime ol, .nl-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.nl-alltime li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.nl-alltime li:first-child { border-top: 0; }
.nl-bar, .nl-i { display: none; }
.nl-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.nl-timeline li { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nl-season { min-width: 5.5em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Empty and error states */
.empty { display: grid; justify-items: center; text-align: center; gap: 16px; max-width: 560px; margin-inline: auto; padding-block: 24px; }
.empty h1 { font-size: 3rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #050A16; padding-block: 48px 120px; margin-top: 0; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
.site-footer__brand { display: grid; gap: 14px; max-width: 46ch; color: var(--muted); font-size: 1rem; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__nav a { color: var(--fg); text-decoration: none; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* Ask the GOAT floating button */
.goat-fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; background: var(--surface); border: 1px solid var(--accent); border-radius: 999px; color: var(--fg); text-decoration: none; font: 700 1.05rem/1 var(--display); text-transform: uppercase; box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.goat-fab img { width: 48px; height: 48px; }
.goat-fab:hover { box-shadow: 0 0 28px rgba(198, 255, 61, .35); }

/* Mobile bottom bar */
.bottom-bar { display: none; }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px var(--gutter-r) 24px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
	.nav-open .site-nav { display: flex; }
	.site-nav ul { flex-direction: column; }
	.site-nav ul a { padding: 14px 4px; font-size: 1.4rem; border-bottom: 1px solid var(--line); }
	.site-nav ul a[aria-current] { box-shadow: none; }
	.site-nav__ask { justify-content: center; }
	.split, .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
	.news-grid { grid-template-columns: minmax(0, 1fr); }
	.features__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.feature { font-size: 1rem; padding: 18px 8px; }
	.goat-fab { display: none; }
	.bottom-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(7, 13, 28, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
	.bottom-bar a { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 600; }
	.bottom-bar a[aria-current] { color: var(--accent); }
	.bottom-bar .icon { width: 24px; height: 24px; }
	.band { min-height: 0; }
	.band::after, .band--right::after { background: rgba(7,13,28,.55); }
	.band--right .band__inner { justify-content: flex-start; }
}

@media (max-width: 520px) {
	.features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* Forms */
.nzfc-form { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.nzfc-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.nzfc-form .optional { color: var(--muted); font-weight: 400; }
.nzfc-form input, .nzfc-form select, .nzfc-form textarea { width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.nzfc-form input:focus, .nzfc-form select:focus, .nzfc-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.nzfc-form .hp { position: absolute; left: -9999px; }
.form-note { padding: 14px 18px; border-radius: var(--radius); font-weight: 600; }
.form-note--ok { background: rgba(61, 220, 132, .12); border: 1px solid var(--win); }
.form-note--error { background: rgba(255, 92, 92, .12); border: 1px solid var(--loss); }

/* Matches (Navikx scoreboard rows) */
.match-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px 16px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.match__meta { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; text-align: center; }
.match__team { font: 700 1.3rem/1.1 var(--display); text-transform: uppercase; }
.match__team--home { text-align: right; }
.match__score { min-width: 4.5em; text-align: center; padding: 8px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font: 700 1.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.match:not(.match--ft) .match__score { color: var(--fg); border-color: var(--line); font-size: 1.1rem; }
.match__src { grid-column: 1 / -1; text-align: center; font-size: .8rem; color: var(--muted); }
.league-table { width: 100%; }
.league-table td:nth-child(2) { font-weight: 600; }
.empty--inline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* Article sources box */
.sources { margin-top: 2.4em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; font-size: 1rem; }
.sources h2 { font-size: 1.4rem; margin: 0 0 8px; }
.sources h2::before { display: none; }
.sources p { color: var(--muted); font-size: .9rem; }

/* Ask the GOAT */
.ask { display: grid; gap: 18px; }
.ask__intro { display: flex; align-items: center; gap: 18px; }
.ask__intro p { flex: 1 1 0; min-width: 0; }
.ask__answer:not(:empty) { background: var(--surface-2); border: 1px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; }
.ask__src-title { margin-top: 12px; font-weight: 600; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }

/* Comments */
.comments-area, #comments { margin-top: 2.4em; }
.comment-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.comment-respond textarea, .comment-respond input[type=text], .comment-respond input[type=email] { width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.comment-respond input[type=submit] { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 12px 22px; font: 600 1rem/1 var(--body); cursor: pointer; }

/* bbPress forum on the dark theme */
#bbpress-forums { font-size: 1rem; color: var(--fg); }
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-lead-topic { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic, #bbpress-forums div.odd, #bbpress-forums ul.odd, #bbpress-forums div.even, #bbpress-forums ul.even { background: var(--surface); border-color: var(--line); }
#bbpress-forums div.bbp-forum-header, #bbpress-forums div.bbp-topic-header, #bbpress-forums div.bbp-reply-header { background: var(--surface-2); border-color: var(--line); }
#bbpress-forums fieldset.bbp-form { border-color: var(--line); border-radius: var(--radius); }
#bbpress-forums input[type=text], #bbpress-forums textarea, #bbpress-forums select { background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
#bbpress-forums .button, #bbpress-forums button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; }
.bbp-breadcrumb, .bbp-pagination { color: var(--muted); }
div.bbp-template-notice { background: var(--surface-2); border-color: var(--line); color: var(--fg); border-radius: var(--radius); }

@media (max-width: 520px) {
	.league-table th:nth-child(4), .league-table td:nth-child(4), .league-table th:nth-child(5), .league-table td:nth-child(5), .league-table th:nth-child(6), .league-table td:nth-child(6) { display: none; }
	.match__team { font-size: 1.05rem; }
}

/* Forum extras */
.hot-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.hot-topics li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(241, 245, 250, .14); }
.hot-topics a { color: var(--fg); text-decoration: none; font-weight: 600; min-width: 0; }
.hot-topics a:hover { color: var(--accent); }
.forum-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.nzfc-rank { display: grid; justify-items: center; gap: 2px; margin-top: 6px; font-size: .75rem; color: var(--muted); }
.nzfc-rank__badge { width: 40px; height: 40px; }
