/* =========================================================
   CASCA theme — dark, charcoal + gold, app-style shell.
   ========================================================= */

:root {
	--bg: #1F2123;
	--sidebar: #26292B;
	--surface: #2E3134;
	--surface-2: #3B3F42;
	--line: rgba(255, 255, 255, 0.08);
	--gold: #BF9300;
	--gold-soft: rgba(191, 147, 0, 0.18);
	--bronze: #6E4D00;
	--champagne: #E8CD95;
	--cream: #F3E6C8;
	--text: #FFFFFF;
	--muted: #C4C8CB;
	--subtle: #A9ADB0;
	--ok: #7BD389;
	--err: #FF8A80;
	--ink: #1C1D1E;
	--r-sm: 10px;
	--r: 14px;
	--r-lg: 20px;
	--r-xl: 26px;
	--font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: "Bebas Neue", Inter, sans-serif;
	--tabbar: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--champagne); }
a:hover { color: var(--text); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- Shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { display: none; }
.shell { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1 0 auto; outline: none; }

.appbar { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 14px; background: rgba(31, 33, 35, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.appbar__logo { margin-right: auto; }
.appbar__logo img { height: 40px; width: auto; }
.iconbtn { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none; border-radius: 12px; }
.iconbtn--text { font-weight: 700; font-size: 13px; padding: 0 6px; }
.topbar { display: none; }

.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); display: flex; background: var(--sidebar); border-top: 1px solid var(--line); }
.tabbar__item { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; }
.tabbar__pill { width: 52px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.tabbar__item.is-active { color: var(--champagne); }
.tabbar__item.is-active .tabbar__pill { background: rgba(191, 147, 0, 0.22); }
body { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 20px 16px 24px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 13px; }
.foot a { color: var(--muted); }

@media (min-width: 1024px) {
	body { padding-bottom: 0; }
	.tabbar, .appbar { display: none; }
	.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex: 0 0 240px; padding: 18px 14px; background: var(--sidebar); border-right: 1px solid var(--line); }
	.sidebar__logo { padding: 0 6px; }
	.sidebar__logo img { width: 160px; height: auto; }
	.sidebar__rule { border: 0; height: 1px; background: var(--line); margin: 0; width: 100%; }
	.sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 6px; color: var(--subtle); font-size: 12px; }
	.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 32px; }
	.topbar__actions { margin-left: auto; display: flex; gap: 10px; }
	.foot { padding: 20px 32px 28px; }
}

.sidenav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sidenav__link { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 500; }
.sidenav__link:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.sidenav__link.is-active { background: var(--gold-soft); color: var(--champagne); font-weight: 600; }
.sidenav--small .sidenav__link { min-height: 40px; font-size: 15px; }
.sidenav .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--champagne); }
.sidenav .soon { margin-left: auto; font-size: 11px; color: var(--subtle); }

.search { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; max-width: 520px; height: 46px; padding: 0 16px; background: var(--surface); border-radius: var(--r); color: var(--muted); }
.search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--text); font: 400 15px var(--font); outline: none; }
.search--sm { flex: 0 1 260px; height: 44px; }

/* ---------- Page ---------- */
.page { width: 100%; max-width: 1240px; padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 32px; }
.page--narrow { max-width: 760px; }
@media (min-width: 1024px) { .page { padding: 8px 32px 56px; gap: 40px; } }

.pagehead { display: flex; flex-direction: column; gap: 8px; }
.pagehead--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pagehead__img img { border-radius: var(--r-lg); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.display { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 7vw, 88px); line-height: 0.92; margin: 0; letter-spacing: 0.005em; }
.display--sm { font-size: clamp(40px, 5vw, 64px); }
.h1 { font-size: clamp(26px, 3.4vw, 32px); font-weight: 700; line-height: 1.15; margin: 0; }
.h2 { font-size: 22px; font-weight: 700; line-height: 1.2; margin: 0; }
.h3 { font-size: 19px; font-weight: 700; line-height: 1.25; margin: 0; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 13px; }
.center { text-align: center; }
.lead { font-size: 17px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--champagne); }
.kicker { font-size: 12px; font-weight: 700; color: var(--champagne); text-transform: uppercase; letter-spacing: 0.08em; }
.kicker--lg { font-size: 15px; }
.link { color: var(--champagne); font-weight: 600; text-decoration: none; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--champagne); text-transform: uppercase; letter-spacing: 0.08em; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--champagne); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .live::before, .spinner, .phoneanim { animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: var(--r); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: filter 0.15s; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--gold { background: var(--gold); color: var(--ink); font-weight: 700; }
.btn--gold:hover { color: var(--ink); }
.btn--soft { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.btn--ghost { background: var(--surface); color: var(--text); }
.btn--white { background: #fff; color: #26292B; font-weight: 700; }
.btn--white:hover { color: #26292B; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.roundbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.roundbtn:disabled { opacity: 0.4; }

.seg { display: inline-flex; background: var(--surface); border-radius: var(--r); padding: 4px; gap: 2px; }
.sidebar .seg { background: var(--bg); }
.seg__btn { flex: 1 1 0; min-height: 38px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; white-space: nowrap; }
.seg__btn.is-on { background: var(--surface-2); color: var(--text); }
.seg--full { display: flex; width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; }
.chip.is-on { background: var(--champagne); border-color: var(--champagne); color: #26292B; font-weight: 700; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); }
.card--pad { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) { .card--pad { padding: 24px; } }
.card--bronze { background: var(--bronze); }
.card--bronze p { color: var(--cream); margin: 0; }
.cta { text-decoration: none; color: var(--text); }
.cta__go { font-weight: 700; margin-top: 4px; }

.ph { width: 100%; height: 100%; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--surface-2); color: var(--muted); font-size: 13px; text-align: center; padding: 8px; }
.ph .icon { color: var(--champagne); }

.block { display: flex; flex-direction: column; gap: 14px; }
.block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.block__head--tight { align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: 20px; }
.split > * { flex: 1 1 380px; min-width: 0; }
.split--form > *:first-child { flex: 1 1 340px; }
.split--form > *:last-child { flex: 1.3 1 420px; }

/* Hero */
.hero { position: relative; min-height: 440px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); display: flex; align-items: flex-end; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img--empty { background: var(--surface-2); }
.hero__body { position: relative; width: 100%; padding: 28px 20px 22px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(0deg, var(--bg) 0%, rgba(31, 33, 35, 0.9) 45%, rgba(31, 33, 35, 0) 100%); }
.hero__text { margin: 0; color: #D5D8DA; font-size: 17px; max-width: 560px; }
@media (min-width: 1024px) {
	.hero { min-height: 480px; }
	.hero__body { padding: 48px; align-self: stretch; justify-content: flex-end; background: linear-gradient(90deg, var(--bg) 0%, rgba(31, 33, 35, 0.86) 45%, rgba(31, 33, 35, 0) 100%); }
	.hero--detail .hero__body { background: linear-gradient(0deg, var(--bg) 0%, rgba(31, 33, 35, 0.85) 50%, rgba(31, 33, 35, 0) 100%); }
}

/* Rails / carousels */
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
@media (min-width: 1024px) { .rail { margin: 0; padding-left: 0; padding-right: 0; } }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.dots { display: flex; justify-content: center; gap: 6px; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: #4A4E52; transition: width 0.2s; }
.dots span.is-on { width: 22px; background: var(--gold); }
.carousel-nav { display: none; gap: 8px; }
@media (min-width: 768px) { .carousel-nav { display: flex; } }

.icard { width: min(460px, 84vw); background: var(--surface); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; }
.icard__media { display: block; height: 220px; background: var(--surface-2); }
.icard__media img { width: 100%; height: 100%; object-fit: cover; }
.icard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.icard__body .btn { margin-top: auto; align-self: flex-start; }

.ccard { width: 280px; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.ccard__media { display: block; height: 160px; background: var(--surface-2); }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; }
.ccard__body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.ccard__body b { font-size: 17px; }

.pcard { width: 180px; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.pcard__media { display: block; height: 210px; background: var(--surface-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 2px; }

.grid { display: grid; gap: 16px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--people { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid > .ccard, .grid > .pcard, .grid > .icard { width: auto; }

/* Featured contest */
.card--feature { display: flex; flex-wrap: wrap; gap: 20px; padding: 18px; border: 1px solid rgba(191, 147, 0, 0.45); flex: 2 1 460px; }
.card--feature__poster { flex: 0 0 150px; height: 196px; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.card--feature__poster img { width: 100%; height: 100%; object-fit: cover; }
.card--feature__body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.card--feature__body .btnrow { margin-top: auto; padding-top: 8px; }
.countdown { display: flex; gap: 10px; }
.countdown > div { background: var(--bg); border-radius: 12px; padding: 8px 14px; text-align: center; min-width: 64px; }
.countdown b { display: block; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; }
.countdown span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.leaders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.leaders li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r); }
.leaders li.is-first { background: rgba(191, 147, 0, 0.14); }
.leaders__rank { width: 18px; font-weight: 700; color: var(--champagne); }
.leaders__name { flex: 1 1 auto; font-weight: 600; color: var(--text); text-decoration: none; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: block; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.leaders li.is-first .avatar { border: 2px solid var(--gold); background: var(--bronze); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1280px) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile { background: var(--surface); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); min-height: 132px; }
.tile__icon { width: 42px; height: 42px; border-radius: 13px; background: var(--surface-2); color: var(--champagne); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tile__icon.is-live { background: var(--gold); color: var(--ink); }
.tile__title { font-weight: 700; font-size: 16px; }
.tile__desc { font-size: 13px; color: var(--muted); display: none; }
@media (min-width: 768px) { .tile__desc { display: block; } }
.tile__state { margin-top: auto; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--subtle); letter-spacing: 0.04em; }
.tile__state.is-live { color: var(--champagne); }

.teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--r-lg); padding: 20px; }
.teaser > div { flex: 1 1 260px; }
.teaser p { margin: 4px 0 0; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; }
.steps li > span { flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(191, 147, 0, 0.2); color: var(--champagne); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* Detail pages */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.facts b { font-size: 17px; }
.prose { color: #E2E4E6; max-width: 760px; }
.prose > * { margin-top: 0; }
.prose img { border-radius: var(--r); }
.prose a { color: var(--champagne); }
.prose .wp-block-gallery { gap: 12px; }
.linklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.linklist__item { display: flex; justify-content: space-between; align-items: center; padding: 18px; text-decoration: none; color: var(--text); font-weight: 600; }
.linklist__item span:last-child { color: var(--champagne); }

.profile { display: flex; flex-wrap: wrap; gap: 28px; }
.profile__media { flex: 1 1 300px; max-width: 460px; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); }
.profile__media img { width: 100%; height: 100%; object-fit: cover; }
.profile__body { flex: 1.4 1 320px; display: flex; flex-direction: column; gap: 14px; }
.statrow { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { background: var(--surface); border-radius: var(--r); padding: 12px 18px; min-width: 110px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; }

.empty { text-align: center; align-items: center; }
.list { display: flex; flex-direction: column; gap: 10px; }
.listitem { text-decoration: none; color: var(--text); }

/* Contest page */
.chero { display: flex; flex-wrap: wrap; gap: 24px; }
.chero__media { flex: 1 1 300px; max-width: 520px; aspect-ratio: 16 / 11; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); }
.chero__media img { width: 100%; height: 100%; object-fit: cover; }
.chero__body { flex: 1.2 1 320px; display: flex; flex-direction: column; gap: 12px; }
.pricepill { align-self: flex-start; background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--champagne); }

.vcard { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.vcard.is-out { opacity: 0.55; }
.vcard__media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-2); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; }
.vcard__rank { position: absolute; left: 8px; top: 8px; background: rgba(31, 33, 35, 0.85); color: var(--champagne); font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 999px; }
.vcard__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.vcard__name { color: var(--text); font-weight: 700; text-decoration: none; }
.vcard__body .btn { margin-top: auto; }
.rules summary { cursor: pointer; }

.notice { margin: 0; padding: 12px 16px; border-radius: var(--r); font-size: 15px; }
.notice--ok { background: rgba(123, 211, 137, 0.14); color: var(--ok); }
.notice--err { background: rgba(255, 138, 128, 0.14); color: var(--err); }
.notice--warn { background: rgba(191, 147, 0, 0.16); color: var(--champagne); }

/* Forms */
.form { gap: 14px; }
.form--wide { max-width: 900px; }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.form legend { padding: 0; margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.field--inline { max-width: 320px; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #4A4E52; border-radius: var(--r-sm); background: var(--bg); color: var(--text); font: 400 16px var(--font); }
.input:focus { border-color: var(--champagne); outline: none; box-shadow: 0 0 0 3px rgba(232, 205, 149, 0.2); }
textarea.input { min-height: 100px; resize: vertical; }
select.input { appearance: auto; }
.input[type="file"] { padding: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--text); font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.row2, .row3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: repeat(3, 1fr); } }
.row-dt { display: grid; grid-template-columns: 1fr 96px 84px; gap: 8px; }
.thumb { width: 180px; border-radius: var(--r-sm); }
.hp { position: absolute; left: -9999px; }
.ticks { margin: 8px 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: #E2E4E6; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--champagne); font-weight: 700; }
.inlineform { display: flex; flex-wrap: wrap; gap: 10px; }
.inlineform .input { flex: 1 1 240px; }
.soon { gap: 14px; }

/* Organiser */
.orgnav { display: flex; flex-wrap: wrap; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stats b { font-size: 22px; }
.tablewrap { overflow-x: auto; background: var(--surface); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table .actions { white-space: nowrap; }
.table .actions .btn { margin: 2px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.badge--published, .badge--successful { background: rgba(123, 211, 137, 0.16); color: var(--ok); }
.badge--pending { background: rgba(191, 147, 0, 0.18); color: var(--champagne); }
.badge--rejected, .badge--failed, .badge--review { background: rgba(255, 138, 128, 0.16); color: var(--err); }
.mlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mlist__item { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r); padding: 10px 12px; }
.mlist__main { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.2fr) 2fr auto; gap: 10px; align-items: center; }
.bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars__track { height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.bars__fill { display: block; height: 100%; background: var(--gold); border-radius: 5px; }
.bars__value { font-weight: 700; font-variant-numeric: tabular-nums; }
.daily { height: 140px; display: flex; align-items: flex-end; gap: 4px; }
.daily__bar { flex: 1 1 0; background: var(--gold); border-radius: 4px 4px 0 0; min-height: 2px; }
.daily__axis { display: flex; justify-content: space-between; }

/* Shared status UI (return page / sheet) */
.statusbox { align-items: center; text-align: center; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--gold); animation: spin 0.9s linear infinite; margin: 8px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* WordPress core bits */
.alignwide { max-width: 1100px; }
.wp-block-image img { border-radius: var(--r); }
.nav-links { display: flex; gap: 8px; }
.page-numbers { padding: 8px 12px; background: var(--surface); border-radius: var(--r-sm); color: var(--text); text-decoration: none; }
.page-numbers.current { background: var(--gold); color: var(--ink); }

/* Admin toolbar offsets (admins only see it on the front end). */
@media (min-width: 601px) and (max-width: 782px) { .admin-bar .appbar { top: 46px; } }
@media (min-width: 783px) { .admin-bar .appbar { top: 32px; } .admin-bar .sidebar { top: 32px; height: calc(100vh - 32px); } }
.table td { white-space: nowrap; }
