:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #5e6d67;
  --paper: #f3f5f8;
  --surface: #ffffff;
  --line: #d8ddd9;
  --accent: #e76442;
  --accent-dark: #a83d25;
  --success: #237a54;
  --danger: #a72e2e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.public-nav { min-height: 74px; padding: .8rem max(1.25rem, calc((100vw - 1440px) / 2)); display: flex; align-items: center; gap: 2rem; background: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 #0b24551c; }
.public-nav nav { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3.5rem); flex: 1; }
.public-nav a { color: #071a3e; text-decoration: none; font-weight: 800; font-size: .88rem; text-transform: uppercase; letter-spacing: .03em; }
.public-nav nav a { position: relative; padding-block: .55rem; }
.public-nav nav a:visited, .public-nav nav a:active { color: #071a3e; }
.public-nav nav a[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: .15rem; left: 0; height: 2px; border-radius: 2px; background: #e11b22; }
.public-menu-toggle { display: none; }
.brand { display: flex; align-items: center; width: 205px; color: #08275f; font-family: Arial, Helvetica, sans-serif; text-decoration: none; white-space: nowrap; }
.brand img { display: block; width: 72px; height: 58px; object-fit: contain; }
.brand span { font-size: 1.3rem; font-weight: 800; }
.nav-action { padding: .65rem 1rem; background: #092b68; color: #fff !important; border-radius: .35rem; }
.admin-icon { display: none; }
.hero { --hero-image: linear-gradient(120deg, #04142f 0%, #082454 48%, #14396d 100%); min-height: 430px; position: relative; display: grid; align-items: center; overflow: hidden; background-image: var(--hero-image); background-size: cover; background-position: center; color: #fff; }
.home-content[aria-busy="true"] { display: none; }
.page-loading { min-height: min(720px, calc(100vh - 92px)); display: grid; place-content: center; justify-items: center; gap: 1rem; color: #071a3e; font-weight: 800; background: #f2f5f9; }
.page-loading[hidden] { display: none; }
.page-load-error { min-height: min(720px, calc(100vh - 92px)); padding: 2rem; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; background: #f2f5f9; color: #071a3e; }
.page-load-error[hidden] { display: none; }
.page-load-error h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.5rem); }
.page-load-error p { margin: 0; color: var(--muted); }
.home-content[hidden] { display: none; }
.loading-mark { width: 3rem; height: 3rem; border: .3rem solid #d6dfed; border-top-color: #0a3474; border-radius: 50%; animation: loading-spin .75s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-mark { animation: none; border-top-color: #d6dfed; background: #0a3474; box-shadow: inset 0 0 0 .65rem #f2f5f9; } }
.hero::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 14%; height: 65%; background: linear-gradient(135deg, transparent 0 62%, #e20917 62% 70%, #fff 70% 74%, #073c9a 74% 86%, transparent 86%); opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #03132ff0 0%, #03132fb3 42%, #03132f25 75%); }
.hero-content { width: min(1440px, calc(100% - 2.5rem)); margin: auto; position: relative; z-index: 2; }
.hero h1 { max-width: 720px; font-size: clamp(3rem, 7vw, 6.8rem); line-height: .82; letter-spacing: -.05em; margin: .4rem 0 1.4rem; text-shadow: 0 3px 20px #0009; }
.hero h1 span { color: #e70b19; }
.hero-content > p:not(.eyebrow) { max-width: 590px; font-size: 1.08rem; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1.25rem; border-radius: .3rem; text-decoration: none; text-transform: uppercase; font-weight: 900; font-size: .82rem; letter-spacing: .03em; }
.cta.primary { background: #e70b19; color: #fff; border: 1px solid #e70b19; }
.hero .cta.ghost { color: #071a3e; background: #fff; border: 1px solid #fff; }
.public-stats { min-height: 108px; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1440px; margin: auto; background: #fff; border-bottom: 2px solid #08275f; }
.public-stats div { display: grid; place-items: center; align-content: center; position: relative; }
.public-stats div + div::before { content: ""; position: absolute; left: 0; height: 52%; width: 1px; background: #08275f; }
.public-stats strong { color: #071a3e; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; }
.public-stats span { text-transform: uppercase; font-weight: 900; font-size: .78rem; }
.home-grid { max-width: 1440px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.feature-card { min-height: 290px; padding: 1.35rem; border: 1px solid #d9dfe9; border-radius: .55rem; background: #fff; box-shadow: 0 4px 18px #0a245708; }
.feature-card h2 { color: #071a3e; font-size: 1.35rem; }
.red { color: #e70b19; }
.membership { background: linear-gradient(145deg, #fff 55%, #f4f6fa); }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.card-title h2 { text-transform: uppercase; font-size: .9rem; letter-spacing: .02em; }
.card-title a { font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.list-row { display: grid; grid-template-columns: 82px 1fr; column-gap: .65rem; padding: .75rem 0; border-bottom: 1px solid #e2e6ed; }
.list-row time { grid-row: span 2; color: #08275f; font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.list-row span { color: var(--muted); font-size: .82rem; }
.news-row { display: grid; grid-template-columns: 72px 1fr; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid #e2e6ed; }
.news-row img { width: 72px; height: 54px; object-fit: cover; border-radius: .25rem; }
.news-row p, .news-row time { font-size: .78rem; margin: .15rem 0; }
.results-area { background: #f3f5f8; border-top: 1px solid #d9dfe9; }
.results-area .panel { border-top: 4px solid #08275f; box-shadow: 0 10px 28px #071a3e0a; }
.results-area .panel-heading h2 { color: #071a3e; }
.results-area .tab { border-color: #cbd3df; color: #071a3e; font-weight: 800; }
.results-area .tab.active { background: #08275f; border-color: #08275f; color: #fff; box-shadow: none; }
.results-area .filters label { color: #071a3e; }
.results-area :is(input, select):focus { outline: 3px solid #e20b2240; border-color: #e20b22; }
.results-area .data-region a, .results-area .cards a { color: #b82922; font-weight: 750; overflow-wrap: anywhere; word-break: normal; }
.results-area th { color: #08275f; }
.gallery-area { max-width: 1440px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.home-gallery-link { display: flex; min-width: 0; overflow: hidden; flex-direction: column; color: inherit; text-decoration: none; border: 1px solid #d4dce8; border-radius: .5rem; background: #fff; }
.home-gallery-link:focus-visible { outline: 3px solid #e20b22; outline-offset: 3px; }
.gallery-grid .image-unavailable { display: grid; min-height: 190px; margin: 0; padding: 1rem; place-items: center; color: #fff; text-align: center; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 16 / 10; min-height: 0; object-fit: cover; transition: transform .25s ease; }
.home-gallery-link:hover img { transform: scale(1.03); }
.home-gallery-copy { flex: 1; padding: .9rem; }
.home-gallery-copy h3 { margin: 0; color: #071a3e; }
.home-gallery-copy p { margin: .35rem 0 0; color: #526174; font-size: .9rem; }
.article-dialog { width: min(760px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: .75rem; box-shadow: 0 30px 80px #0007; }
.article-dialog::backdrop { background: #03132fd9; }
.article-dialog article { padding: clamp(1.25rem, 5vw, 3rem); }
.article-dialog article > img { width: 100%; max-height: 420px; object-fit: cover; border-radius: .5rem; margin-bottom: 1.5rem; }
.article-dialog h2 { color: #071a3e; font-size: clamp(2rem, 5vw, 3.5rem); }
.dialog-close { position: sticky; float: right; top: .75rem; margin: .75rem; z-index: 2; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: #071a3e; color: #fff; font-size: 1.5rem; }
.results-area .shell { max-width: 1440px; }
.results-area .panel { scroll-margin-top: 96px; }
.section-intro h2 { color: #071a3e; font-size: clamp(2rem, 4vw, 3.4rem); }
.public-footer { padding: 2.5rem max(1.25rem, calc((100vw - 1440px) / 2)); background: linear-gradient(120deg, #061d49, #07306c); color: #fff; border-top: 5px solid #e20b22; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 4rem); }
.footer-brand-lockup { display: flex; align-items: center; width: 210px; max-width: 100%; font-family: Arial, Helvetica, sans-serif; }
.footer-brand-lockup img { width: 72px; height: 58px; object-fit: contain; }
.footer-brand-lockup strong { color: #fff; font-size: 1.3rem; }
.public-footer nav, .footer-contact { display: grid; align-content: start; gap: .45rem; }
.public-footer strong { margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .04em; }
.public-footer a { color: #fff; text-decoration: none; }
.public-footer a:hover { text-decoration: underline; }
.public-footer p, .public-footer span { color: #bdc9dc; margin-bottom: 0; }
.public-footer .footer-credit { margin-top: 2rem; text-align: right; font-size: .8rem; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, .actions a { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: .65rem; padding: .65rem .9rem; cursor: pointer; text-decoration: none; }
button:hover, .actions a:hover { border-color: var(--accent); }
button.primary { color: white; background: var(--accent); border-color: var(--accent); }
button.danger { color: white; background: var(--danger); border-color: var(--danger); }
button:disabled { opacity: .55; cursor: wait; }
a { color: var(--accent-dark); }
h1, h2, h3, p { margin-top: 0; }
.site-header { padding: 3rem max(1.25rem, calc((100vw - 1180px) / 2)); display: flex; align-items: end; justify-content: space-between; gap: 2rem; background: #17201d; color: white; }
.site-header h1 { font-size: clamp(2rem, 5vw, 4.5rem); line-height: .95; margin-bottom: .75rem; }
.admin-header h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.site-header a { color: white; }
.site-header .actions a { color: var(--ink); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; margin-bottom: .4rem; }
.muted { color: var(--muted); }
.site-header .muted { color: #cbd4cf; }
.shell { max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.tabs { display: flex; gap: .5rem; margin-bottom: 1rem; overflow-x: auto; }
.tab.active { background: var(--ink); color: white; border-color: var(--ink); }
.panel { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 3vw, 2rem); }
.panel.active { display: block; margin-bottom: 1.25rem; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.publication-inline-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; }
.publication-status { display: inline-flex; align-items: center; min-height: 38px; padding: .55rem .75rem; border: 1px solid #d7dfeb; border-radius: 999px; background: #f6f8fb; color: #59677a; font-size: .78rem; font-weight: 800; }
.publication-status.pending { border-color: #edc895; background: #fff7e8; color: #87510a; }
.publication-status.current { border-color: #bfe3d3; background: #eaf8f1; color: #176343; }
.filters, .inline-controls, .actions, .profile-controls { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.profile-controls { margin-bottom: 1rem; }
label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 700; }
input, select, textarea { min-width: 0; border: 1px solid var(--line); border-radius: .55rem; padding: .6rem .7rem; background: white; color: var(--ink); }
input[type="checkbox"] { width: 1.2rem; height: 1.2rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
.championship-table { min-width: 560px; table-layout: fixed; }
.championship-table :is(th, td):nth-child(1) { width: 15%; }
.championship-table :is(th, td):nth-child(2) { width: 60%; }
.championship-table :is(th, td):nth-child(3) { width: 25%; }
th, td { padding: .8rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card, .admin-card { border: 1px solid var(--line); border-radius: .85rem; padding: 1.15rem; background: var(--surface); }
.match-card { display: flex; flex-direction: column; }
.match-card .actions { margin-top: auto; padding-top: .75rem; }
.competitor-card { display: flex; flex-direction: column; }
.competitor-card .actions { margin-top: auto; padding-top: .5rem; }
.empty-state { padding: 2rem; text-align: center; background: var(--paper); border-radius: .75rem; color: var(--muted); }
.site-footer { max-width: 1180px; margin: auto; padding: 0 1.25rem 2rem; color: var(--muted); }
.admin-shell { display: grid; gap: 1.25rem; }
.admin-tabs { position: sticky; top: 0; z-index: 10; margin: 0; padding: .75rem 0; background: var(--paper); }
.admin-tabs .tab { white-space: nowrap; }
.admin-page { --admin-navy: #061b42; --admin-blue: #0a3474; background: #edf1f7; }
.admin-page .admin-header { min-height: 116px; padding: 1.25rem max(1.25rem, calc((100vw - 1440px) / 2)); align-items: center; background: linear-gradient(115deg, #061734, #0a3474); box-shadow: 0 8px 30px #06173424; }
.admin-brand { display: flex; align-items: center; gap: 1rem; }
.admin-header h1 { margin: 0 0 .25rem; font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.025em; }
.admin-header .eyebrow { margin-bottom: .25rem; color: #b8c9e6; }
.admin-header #actor { margin: 0; color: #d7e2f3; font-size: .84rem; }
.admin-header .admin-public-link { border-color: #ffffff4d; background: #fff; color: #071a3e; font-weight: 850; }
.admin-page .admin-shell { max-width: 1440px; }
.admin-page .admin-tabs { top: 0; margin-inline: -.25rem; padding: .8rem .25rem; background: #edf1f7f2; backdrop-filter: blur(12px); }
.admin-page .admin-tabs .tab { border-color: transparent; background: transparent; color: #41506a; font-weight: 800; }
.admin-page .admin-tabs .tab:hover { background: #fff; border-color: #d7deea; }
.admin-page .admin-tabs .tab.active { background: var(--admin-navy); color: #fff; box-shadow: 0 5px 14px #061b4226; }
.tab-count { display: inline-flex; min-width: 1.45rem; min-height: 1.45rem; margin-left: .3rem; padding: .15rem .42rem; align-items: center; justify-content: center; border-radius: 999px; background: #e7ebf2; color: #35445d; font-size: .68rem; font-weight: 900; line-height: 1; }
.tab.active .tab-count { background: #fff; color: var(--admin-navy); }
.admin-page #admin-overview { padding: 0; border: 0; background: transparent; }
.admin-overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 1rem; background: #fff; box-shadow: 0 10px 30px #071a3e0a; }
.admin-overview-heading h2 { margin-bottom: .35rem; color: var(--admin-navy); font-size: clamp(1.7rem, 3vw, 2.5rem); }
.system-summary { flex: 0 0 auto; padding: .65rem 1rem; border-radius: 999px; background: #eef1f5; color: #41506a; font-weight: 850; }
.system-summary.success { background: #e1f3ea; color: #176342; }
.system-summary.danger { background: #fae4e4; color: #982727; }
.admin-dashboard-section { margin-top: 1rem; padding: clamp(1.2rem, 2.5vw, 1.75rem); border: 1px solid #dbe2ed; border-radius: 1rem; background: #fff; box-shadow: 0 8px 24px #071a3e08; }
.dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dashboard-section-heading :is(h3, p) { margin-bottom: 0; }
.dashboard-section-heading h3 { color: var(--admin-navy); font-size: 1.35rem; }
.dashboard-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.dashboard-kpi { position: relative; min-height: 132px; padding: 1rem; display: flex; flex-direction: column; border: 1px solid #dce3ed; border-radius: .8rem; color: var(--ink); text-decoration: none; background: #f8fafc; overflow: hidden; }
.dashboard-kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #8290a4; }
.dashboard-kpi.warning::before { background: #d89116; }
.dashboard-kpi.success::before { background: #23845a; }
.dashboard-kpi:hover { border-color: #9eacc0; transform: translateY(-1px); }
.dashboard-kpi-label { color: #536177; font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .045em; }
.dashboard-kpi strong { margin-top: auto; color: var(--admin-navy); font-size: 2.35rem; line-height: 1; }
.dashboard-kpi small { margin-top: .45rem; color: #647187; }
.dashboard-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.dashboard-actions :is(a, button) { min-height: 88px; padding: 1rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .2rem; border: 1px solid #d7dfeb; border-radius: .8rem; background: #f8fafc; color: var(--admin-navy); text-align: left; text-decoration: none; font-weight: 850; }
.dashboard-actions :is(a, button):hover { border-color: #0a3474; background: #f1f5fb; }
.dashboard-actions span { color: #69758a; font-size: .76rem; font-weight: 600; }
.dashboard-columns { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; }
.dashboard-activity-row { display: grid; grid-template-columns: 12px minmax(150px, .7fr) 1fr; align-items: center; gap: .65rem; padding: .8rem 0; border-bottom: 1px solid #e4e9f1; }
.dashboard-activity-row:last-child { border-bottom: 0; }
.dashboard-activity-row > span:last-child { color: #5f6c80; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #8c98a9; }
.status-dot.success { background: #23845a; box-shadow: 0 0 0 4px #23845a1f; }
.status-dot.warning { background: #d89116; box-shadow: 0 0 0 4px #d891161f; }
.status-dot.danger { background: #b72e32; box-shadow: 0 0 0 4px #b72e321f; }
.dashboard-error-row { padding: .85rem; border-left: 4px solid #d89116; border-radius: .45rem; background: #fff8e9; }
.dashboard-error-row span { display: block; margin: .15rem 0 .4rem; color: #7b6851; font-size: .78rem; }
.dashboard-error-row p { margin: 0; color: #564b3f; font-size: .87rem; overflow-wrap: anywhere; }
.dashboard-all-clear { margin: 0; padding: 1rem; border-radius: .65rem; background: #e9f5ef; color: #176342; font-weight: 750; }
.dashboard-traffic-stats { grid-template-columns: repeat(3, minmax(0, 220px)); margin-bottom: 1rem; }
.traffic-chart { width: 100%; margin: 0 0 1rem; overflow-x: auto; }
.traffic-chart svg { display: block; width: 100%; min-width: 520px; height: auto; background: #f8fafc; border-radius: .7rem; }
.traffic-chart-legend { display: flex; gap: 1rem; margin: 0 0 .55rem; }
.traffic-chart-key { display: inline-flex; align-items: center; gap: .4rem; color: #5f6c80; font-size: .82rem; font-weight: 700; }
.traffic-chart-key::before { content: ""; width: .85rem; height: 3px; border-radius: 2px; background: currentColor; }
.traffic-chart-key.visits { color: #0a3474; }
.traffic-chart-key.views { color: #e11b22; }
.traffic-chart .traffic-chart-line-visits { fill: none; stroke: #0a3474; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.traffic-chart .traffic-chart-line-views { fill: none; stroke: #e11b22; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.traffic-chart .traffic-chart-point-visits { fill: #fff; stroke: #0a3474; stroke-width: 3; }
.traffic-chart .traffic-chart-point-views { fill: #fff; stroke: #e11b22; stroke-width: 3; }
.traffic-pages { display: grid; gap: .4rem; }
.traffic-page-row { display: grid; grid-template-columns: minmax(140px, 1fr) auto auto; gap: 1rem; padding: .7rem .8rem; border-radius: .55rem; background: #f6f8fb; }
.traffic-page-row span { color: #647187; font-size: .84rem; }
.dashboard-privacy-note { margin: 1rem 0 0; color: #748095; font-size: .76rem; }
#admin-content { background: #eef2f8; }
#admin-content > form, #admin-content > .stack, #admin-content > h3 {
  background: #fff; border: 1px solid #d4dce8; border-radius: .85rem; padding: 1.25rem; margin: 1rem 0;
}
#admin-content > h3 { margin-bottom: 0; border-bottom: 0; border-radius: .85rem .85rem 0 0; color: #071a3e; }
#admin-content > h3 + form, #admin-content > h3 + .stack { margin-top: -.1rem; border-radius: 0 0 .85rem .85rem; }
#admin-content hr { border: 0; height: 1px; background: #cbd5e3; margin: 2rem 0; }
#admin-content .admin-card { border-left: 4px solid #08275f; }
.editor-image-preview { grid-column: 1 / -1; margin: 0; max-width: 520px; border: 1px solid #d4dce8; border-radius: .7rem; overflow: hidden; background: #f3f5f8; }
.editor-image-preview img { display: block; width: 100%; max-height: 280px; object-fit: cover; }
.editor-image-preview figcaption { padding: .55rem .75rem; color: var(--muted); font-size: .8rem; }
.editor-card-thumbnail { width: 120px; height: 82px; object-fit: cover; border-radius: .5rem; float: right; margin: 0 0 .75rem .75rem; }
.collection-shell { max-width: 1180px; margin: auto; padding: 3rem 1.25rem 5rem; }
.collection-heading { color: #071a3e; font-size: clamp(1.7rem, 3.5vw, 2.75rem); line-height: 1.12; }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.collection-card { overflow: hidden; border: 1px solid #d4dce8; border-radius: .85rem; background: #fff; }
.collection-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.collection-card-content { padding: 1.25rem; }
.collection-card-content h2 { color: #071a3e; }
.collection-card-link { display: block; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.collection-card-link:hover { transform: translateY(-3px); box-shadow: 0 12px 30px #071a3e1a; }
.collection-card-action { display: inline-block; margin-top: .75rem; color: #07347d; font-weight: 800; }
.image-unavailable { display: grid; place-items: center; min-height: 260px; margin: 0; padding: 1.5rem; background: #e7ecf3; color: #526174; text-align: center; }
.collection-detail { display: block; }
.collection-back { display: inline-block; margin-bottom: 1rem; color: #07347d; font-weight: 800; }
.gallery-detail-title { margin: 0; color: #071a3e; font-size: clamp(2rem, 5vw, 3.5rem); }
.gallery-detail-summary { max-width: 760px; margin: .75rem 0 2rem; color: #526174; font-size: 1.1rem; }
.gallery-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.gallery-detail-grid figure { margin: 0; }
.gallery-load-more { display: block; margin: 1.5rem auto 0; border-color: #07347d; color: #07347d; font-weight: 800; }
.gallery-image-button { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: #071a3e; cursor: zoom-in; }
.gallery-image-button:hover { border: 0; }
.gallery-image-button img { transition: transform .2s ease; }
.gallery-image-button:hover img { transform: scale(1.025); }
.gallery-lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: clamp(1rem, 3vw, 2rem); border: 0; background: #020817f5; color: #fff; }
.gallery-lightbox[open] { display: grid; grid-template-columns: minmax(44px, 1fr) minmax(0, 12fr) minmax(44px, 1fr); grid-template-rows: 1fr auto; align-items: center; gap: 1rem; }
.gallery-lightbox::backdrop { background: #020817f5; }
.gallery-lightbox img { grid-column: 2; grid-row: 1; width: 100%; height: 100%; max-height: calc(100vh - 7rem); object-fit: contain; }
.gallery-lightbox button { z-index: 2; border: 1px solid #ffffff66; background: #071a3ed9; color: #fff; }
.gallery-lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; padding: 0; border-radius: 50%; font-size: 2rem; line-height: 1; }
.gallery-lightbox-previous, .gallery-lightbox-next { width: 48px; height: 64px; padding: 0; font-size: 2.5rem; }
.gallery-lightbox-previous { grid-column: 1; grid-row: 1; }
.gallery-lightbox-next { grid-column: 3; grid-row: 1; }
.gallery-lightbox-details { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; gap: 1rem; text-align: center; }
.gallery-lightbox-caption { margin: 0; }
.gallery-lightbox-position { color: #bdc9dc; white-space: nowrap; }
.gallery-lightbox-source { color: #fff; font-weight: 800; }
.prose-shell { max-width: 900px; }
.prose-card { padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid #d4dce8; border-radius: 1rem; background: #fff; }
.markdown-body :is(h2, h3, h4) { margin: 1.5em 0 .55em; color: #071a3e; line-height: 1.2; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body strong { color: #071a3e; font-weight: 900; }
.markdown-body :is(ul, ol) { padding-left: 1.4rem; }
.markdown-body li + li { margin-top: .35rem; }
.markdown-body a { color: #07347d; font-weight: 750; overflow-wrap: anywhere; }
.rich-text-editor { grid-column: 1 / -1; overflow: hidden; border: 1px solid #bfc9d8; border-radius: .65rem; background: #fff; }
.rich-text-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; padding: .55rem; border-bottom: 1px solid #d4dce8; background: #eef2f8; }
.rich-text-toolbar button { min-height: 38px; padding: .4rem .7rem; border-radius: .4rem; background: #fff; font-weight: 750; }
.rich-text-toolbar button:nth-child(3) { font-weight: 900; }
.rich-text-toolbar button:nth-child(4) { font-style: italic; }
.rich-text-surface { min-height: 240px; max-height: 620px; overflow-y: auto; padding: 1rem; outline: none; line-height: 1.65; }
.rich-text-surface:focus { box-shadow: inset 0 0 0 3px #e20b2226; }
.rich-text-surface :is(h2, h3, h4) { color: #071a3e; }
.content-tabs { margin: 1.25rem 0; padding-bottom: .25rem; }
.content-editor-section { padding: 1.25rem; border: 1px solid #d4dce8; border-radius: .85rem; background: #fff; }
.content-editor-section > h3 { margin-bottom: 1.25rem; color: #071a3e; }
.page-editor-block + .page-editor-block { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #d4dce8; }
.page-editor-block h4 { margin: 0 0 .75rem; color: #071a3e; font-size: 1.15rem; }
.content-save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; margin-top: 1rem; padding: .8rem; border: 1px solid #d4dce8; border-radius: .65rem; background: #fffffff2; box-shadow: 0 -6px 18px #071a3e0a; }
.content-preview-dialog { width: min(1080px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; overflow: auto; border: 0; border-radius: 1rem; box-shadow: 0 24px 80px #02081759; }
.content-preview-dialog::backdrop { background: #06142f99; backdrop-filter: blur(3px); }
.content-preview-dialog > :not(.content-preview-heading) { margin-inline: clamp(1rem, 3vw, 2rem); }
.admin-confirm-dialog { width: min(560px, calc(100vw - 2rem)); padding: 0; border: 0; border-radius: 1rem; box-shadow: 0 24px 80px #02081759; }
.admin-confirm-dialog::backdrop { background: #06142f99; backdrop-filter: blur(3px); }
.competitor-review-dialog { width: min(680px, calc(100vw - 2rem)); }
.competitor-review-list { display: grid; gap: .55rem; max-height: min(44vh, 420px); overflow: auto; margin: 1rem 0; }
.competitor-review-row { display: flex; align-items: center; gap: .7rem; padding: .75rem; border: 1px solid #d9e0ea; border-radius: .65rem; background: #f8fafc; }
.competitor-review-row input { width: auto; margin: 0; }
.competitor-review-actions { flex-wrap: wrap; }
.admin-confirm-body { display: grid; gap: 1rem; padding: clamp(1rem, 3vw, 2rem); }
.admin-confirm-body label { display: grid; gap: .5rem; font-weight: 700; }
.admin-confirm-body .actions { justify-content: flex-end; }
.content-preview-heading { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem); background: #071a3e; color: #fff; }
.content-preview-heading :is(h3, p) { margin: 0; }
.content-preview-heading .eyebrow { color: #bdc9dc; }
.content-preview-heading button { width: 44px; height: 44px; padding: 0; border-color: #ffffff55; background: transparent; color: #fff; font-size: 1.7rem; }
.content-preview-body { padding-bottom: 2rem; }
.content-preview-summary, .content-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0 1.5rem; }
.content-preview-card { overflow: hidden; border: 1px solid #d8e0ea; border-radius: .75rem; background: #fff; }
.content-preview-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.content-preview-card div { padding: .85rem; }
.content-preview-card :is(h4, p) { margin: 0; }
.content-preview-card p { margin-top: .3rem; color: var(--muted); font-size: .84rem; }
.field-help { margin-top: .15rem; color: var(--muted); font-size: .76rem; font-weight: 500; }
.field-help summary { width: fit-content; color: #526174; cursor: pointer; font-weight: 700; list-style: none; }
.field-help summary::-webkit-details-marker { display: none; }
.field-help summary::before { content: "ⓘ"; margin-right: .35rem; color: #54709a; }
.field-help summary:hover, .field-help summary:focus-visible { color: #07347d; }
.field-help > span { display: block; max-width: 46rem; margin-top: .4rem; padding: .55rem .7rem; border-left: 3px solid #9aabc2; border-radius: .25rem; background: #f4f7fb; line-height: 1.45; }
.checkbox-label { display: flex; align-items: center; align-self: center; gap: .6rem; }
.full-width { grid-column: 1 / -1; }
.profile-public-hero { padding: clamp(2rem, 5vw, 4rem) max(1.25rem, calc((100vw - 1440px) / 2)); background: linear-gradient(120deg, #061d49, #07306c); color: #fff; }
.profile-public-hero-inner { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.profile-public-hero h1 { max-width: 1050px; margin: .35rem 0 .6rem; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .98; }
.profile-public-hero p { color: #d6dfed; }
.profile-public-hero .actions a { border-color: #fff; color: #071a3e; background: #fff; }
.profile-shell { max-width: 1440px; }
.profile-shell .panel { border-top: 4px solid #08275f; }
.profile-shell .chart-line { stroke: #e20b22; }
.profile-shell .chart-point { stroke: #e20b22; }
.compact-footer .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
.article-body { white-space: pre-line; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; display: grid; }
.stat strong { font-size: 2rem; }
.stack { display: grid; gap: 1rem; }
.admin-card-heading { display: flex; justify-content: space-between; gap: 1rem; }
.badge { align-self: start; border-radius: 999px; padding: .25rem .55rem; font-size: .75rem; text-transform: uppercase; font-weight: 800; background: #ecefeb; }
.badge.approved { color: var(--success); background: #e1f3ea; }
.badge.rejected { color: var(--danger); background: #f8e1e1; }
.live-match-badges { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin: 0 0 .5rem; }
.live-match-create { grid-template-columns: minmax(160px, .65fr) minmax(240px, 1.25fr) minmax(210px, .8fr) auto; align-items: end; padding: 1rem; border: 1px solid #dce3ed; border-radius: .85rem; background: #f7f9fc; }
.live-match-create button { min-height: 44px; white-space: nowrap; }
.live-match-list-heading { margin: 2rem 0 .85rem; padding-bottom: .75rem; border-bottom: 1px solid #dce3ed; }
.live-match-card { padding: 1.2rem; border: 1px solid #d7dfeb; border-left: 4px solid var(--admin-blue); border-radius: .85rem; background: #fff; box-shadow: 0 5px 18px #061b420a; }
.live-match-card-heading { align-items: flex-start; margin-bottom: 1rem; }
.live-match-card-heading h3 { margin-bottom: .4rem; color: var(--admin-navy); }
.live-match-open { flex: 0 0 auto; padding: .55rem .75rem; border: 1px solid #d7dfeb; border-radius: .55rem; background: #fff; font-weight: 800; text-decoration: none; }
.live-match-meta { display: flex; gap: .25rem .65rem; flex-wrap: wrap; margin: 0; font-size: .82rem; }
.live-match-meta span::before { content: "·"; margin-right: .65rem; color: #a4adba; }
.live-match-meta .live-match-error { color: var(--danger); font-weight: 750; }
.live-match-editor { grid-template-columns: minmax(200px, 1.35fr) minmax(170px, .8fr) minmax(145px, .65fr) auto auto; align-items: end; margin: 0; padding-top: 1rem; border-top: 1px solid #edf0f4; }
.live-match-editor input, .live-match-editor select { min-height: 44px; }
.live-match-visible { display: flex; min-height: 44px; align-items: center; white-space: nowrap; }
.live-match-actions { grid-column: auto; align-self: end; justify-content: flex-end; flex-wrap: nowrap; padding-top: .15rem; }
.live-match-actions button { white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .85rem; margin: 1rem 0; }
.form-grid label:has(textarea) { grid-column: 1 / -1; }
.results-list { margin-top: 1rem; border-top: 1px solid var(--line); }
.result-row { display: grid; gap: .35rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.audit-row { margin: 0; padding: .7rem; border: 1px solid var(--line); border-radius: .6rem; }
.notice { position: fixed; right: 1rem; bottom: 1rem; max-width: min(420px, calc(100vw - 2rem)); padding: .9rem 1rem; border-radius: .7rem; background: var(--success); color: white; box-shadow: 0 10px 30px #0003; transform: translateY(140%); transition: transform .2s; }
.notice.visible { transform: translateY(0); }
.notice.error { background: var(--danger); }
.profile-shell { max-width: 1320px; }
.chart { width: 100%; min-height: 260px; overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 620px; height: auto; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-label { fill: var(--muted); font-size: 12px; }
.chart-time-label { font-size: 11px; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.chart-point { fill: var(--surface); stroke: var(--accent); stroke-width: 4; }
.alias-list { max-height: 320px; overflow: auto; }
.danger-zone { margin-top: 2rem; padding: 1.25rem; border: 1px solid #d9aaaa; border-radius: .85rem; background: #fff8f7; }
@media (max-width: 720px) {
  .site-header, .panel-heading { align-items: stretch; flex-direction: column; }
  .site-header { padding-top: 2rem; }
  .admin-page .admin-header { min-height: 0; padding-top: 1.25rem; flex-direction: row; }
  .admin-header .eyebrow, .admin-header #actor { display: none; }
  .admin-header h1 { font-size: 1.45rem; }
  .admin-overview-heading { align-items: flex-start; flex-direction: column; }
  .publication-inline-actions { align-items: stretch; flex-direction: column; }
  .publication-inline-actions :is(.publication-status, button) { width: 100%; justify-content: center; }
  .dashboard-kpis, .dashboard-actions, .dashboard-columns { grid-template-columns: 1fr; }
  .content-preview-summary, .content-preview-grid { grid-template-columns: 1fr; }
  .dashboard-activity-row { grid-template-columns: 12px 1fr; }
  .dashboard-activity-row > span:last-child { grid-column: 2; }
  .traffic-page-row { grid-template-columns: 1fr 1fr; gap: .25rem .75rem; }
  .dashboard-traffic-stats { grid-template-columns: 1fr; }
  .traffic-page-row strong { grid-column: 1 / -1; }
  .profile-public-hero-inner { align-items: stretch; flex-direction: column; }
  .filters { width: 100%; }
  .filters label { flex: 1; }
}
@media (max-width: 1100px) {
  .live-match-create { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-match-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-page .dashboard-kpis, .admin-page .dashboard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .public-nav nav { display: none; }
  .public-nav { justify-content: space-between; gap: .75rem; }
  .public-menu-toggle { display: grid; width: 46px; height: 46px; flex: 0 0 46px; padding: 11px 9px; place-content: center; gap: 5px; border: 0; border-radius: .45rem; background: #092b68; }
  .public-menu-toggle:hover { border: 0; }
  .public-menu-toggle span { display: block; width: 25px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .public-nav.menu-open .public-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .public-nav.menu-open .public-menu-toggle span:nth-child(2) { opacity: 0; }
  .public-nav.menu-open .public-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .public-nav.menu-open nav { position: absolute; top: 100%; right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1rem 1rem; border-top: 1px solid #d9dfe9; background: #fff; box-shadow: 0 14px 28px #071a3e26; }
  .public-nav.menu-open nav a { width: 100%; padding: .8rem .5rem; border-bottom: 1px solid #e4e8ef; }
  .public-nav.menu-open nav a[aria-current="page"]::after { right: auto; bottom: .45rem; left: .5rem; width: 42px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .live-match-create, .live-match-editor { grid-template-columns: 1fr; }
  .live-match-create button, .live-match-actions, .live-match-actions button { width: 100%; }
  .live-match-actions { align-items: stretch; flex-direction: column; }
  .live-match-card-heading { gap: .75rem; }
  .live-match-open { text-align: center; }
  .live-match-meta { display: grid; gap: .2rem; }
  .live-match-meta span::before { content: none; }
  .admin-page .dashboard-kpis, .admin-page .dashboard-actions { grid-template-columns: 1fr; }
  .hero { min-height: 520px; align-items: end; padding-bottom: 2rem; }
  .hero::after { right: -1px; bottom: -1px; width: 26%; height: 56%; opacity: 1; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .public-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 92px; }
  .public-stats strong { font-size: 1.75rem; }
  .public-stats span { text-align: center; font-size: .6rem; padding: 0 .25rem; }
  .home-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .nav-action { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border-radius: .45rem; }
  .nav-action > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .admin-icon { display: grid; place-items: center; width: 25px; height: 25px; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: .55rem; }
  .public-nav { min-height: 82px; padding-inline: 1rem; }
  .brand { width: min(190px, 48vw); }
  .brand img { width: 64px; height: 52px; }
  .brand span { font-size: 1.2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-lightbox { padding: .75rem; touch-action: pan-y; }
  .gallery-lightbox[open] { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .gallery-lightbox img { grid-column: 1; max-height: calc(100vh - 6rem); }
  .gallery-lightbox-previous, .gallery-lightbox-next { position: fixed; top: 50%; width: 44px; height: 58px; transform: translateY(-50%); }
  .gallery-lightbox-previous { left: .5rem; }
  .gallery-lightbox-next { right: .5rem; }
  .gallery-lightbox-details { grid-column: 1; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
  .tab { min-width: 0; min-height: 52px; padding-inline: .75rem; white-space: normal; }
  .panel { padding: 1.25rem 1rem; }
  .filters { display: grid; grid-template-columns: 1fr; }
  .filters label { width: 100%; }
  .filters select, .filters input { width: 100%; }
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; min-width: 0; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .responsive-table tr { margin-bottom: .8rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; }
  .responsive-table td, .championship-table td { width: 100% !important; }
  .responsive-table td { display: grid; grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr); gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
  .responsive-table td:last-child { border-bottom: 0; }
  .responsive-table td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .profile-history-table tr { box-shadow: 0 4px 14px #071a3e0a; }
  .profile-history-table td:nth-child(2) { color: #071a3e; font-weight: 800; }
  .profile-history-table td:nth-child(6) { color: #b82922; font-weight: 800; }
  .profile-shell .table-wrap { overflow: visible; }
  .championship-table { table-layout: auto; }
}


/* Admin information architecture */
.admin-page .admin-primary-nav { margin-bottom: 0; border-bottom: 1px solid #d8dfeb; }
.admin-page .admin-section-tabs { margin: -.35rem 0 .15rem; padding: .35rem 0 .65rem; border-bottom: 1px solid #d8dfeb; }
.admin-page .admin-section-tabs[hidden] { display: none; }
.admin-page .admin-section-tabs .tab {
  min-height: 40px;
  padding: .55rem .8rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #536077;
  font-weight: 750;
}
.admin-page .admin-section-tabs .tab:hover { border-bottom-color: #a9b6ca; background: transparent; color: var(--admin-navy); }
.admin-page .admin-section-tabs .tab.active { border-bottom-color: var(--admin-blue); background: transparent; color: var(--admin-navy); box-shadow: none; }

@media (max-width: 720px) {
  .admin-page .admin-primary-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-page .admin-section-tabs { display: flex; overflow-x: auto; }
  .admin-page .admin-section-tabs .tab { flex: 0 0 auto; min-height: 42px; white-space: nowrap; }
  .admin-page .admin-section-tabs[hidden] { display: none; }
}


/* Admin sidebar shell */
.admin-page {
  --admin-sidebar-width: 264px;
  min-height: 100vh;
  overflow-x: hidden;
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--admin-sidebar-width);
  overflow-y: auto;
  padding: 1.5rem 1rem 2rem;
  background: linear-gradient(180deg, #071b43 0%, #082c66 100%);
  color: #fff;
  box-shadow: 10px 0 30px #0617341a;
}
.admin-sidebar-brand {
  padding: .15rem .75rem 1.35rem;
  border-bottom: 1px solid #ffffff1f;
}
.admin-sidebar-brand h1 {
  margin: .2rem 0 .25rem;
  color: #fff;
  font-size: 1.75rem;
  letter-spacing: -.025em;
}
.admin-sidebar-brand .eyebrow {
  margin: 0;
  color: #aebfdb;
  font-size: .68rem;
  letter-spacing: .12em;
}
.admin-sidebar-brand #actor {
  margin: 0;
  color: #d7e2f3;
  font-size: .78rem;
  overflow-wrap: anywhere;
}
.admin-sidebar-nav {
  display: grid;
  gap: .3rem;
  padding-top: 1rem;
}
.admin-sidebar-group {
  display: grid;
  gap: .2rem;
  margin-top: .8rem;
}
.admin-sidebar-label {
  margin: 0 0 .25rem;
  padding: 0 .75rem;
  color: #9fb2d1;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.admin-sidebar-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  width: 100%;
  min-height: 44px;
  padding: .65rem .75rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  background: transparent;
  color: #e8eef8;
  font: inherit;
  font-weight: 720;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.admin-sidebar-item:hover {
  border-color: #ffffff1f;
  background: #ffffff10;
  color: #fff;
}
.admin-sidebar-item.active,
.admin-sidebar-item[aria-current="page"] {
  border-color: #3f77dd;
  background: linear-gradient(115deg, #164897, #2f68d0);
  color: #fff;
  box-shadow: 0 8px 20px #02102d38;
}
.admin-sidebar .tab-count {
  min-width: 1.35rem;
  padding: .08rem .35rem;
  border-radius: 999px;
  background: #fff;
  color: #143d85;
  text-align: center;
  font-size: .68rem;
}

.admin-page .admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  margin-left: var(--admin-sidebar-width);
  padding: .8rem clamp(1rem, 2vw, 2rem);
  justify-content: flex-end;
  border-bottom: 1px solid #d8dfeb;
  background: #edf1f7ed;
  box-shadow: none;
  backdrop-filter: blur(14px);
}
.admin-page .admin-header .admin-public-link {
  border-color: #cdd6e4;
  background: #fff;
  color: var(--admin-navy);
  box-shadow: 0 4px 12px #0617340d;
}
.admin-sidebar-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  margin-right: auto;
  border-color: #cdd6e4;
  background: #fff;
  color: var(--admin-navy);
  font-weight: 800;
}
.admin-page .admin-shell {
  width: auto;
  max-width: none;
  margin-left: var(--admin-sidebar-width);
  padding: 1.25rem clamp(1rem, 2vw, 2rem) 2rem;
}
.admin-page > #admin-companion {
  margin: 1.25rem clamp(1rem, 2vw, 2rem) 2rem calc(var(--admin-sidebar-width) + clamp(1rem, 2vw, 2rem));
}
.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #04112680;
}

@media (max-width: 900px) {
  .admin-sidebar {
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  .admin-sidebar-open .admin-sidebar { transform: translateX(0); }
  .admin-sidebar-open .admin-sidebar-backdrop { display: block; }
  .admin-page .admin-header {
    margin-left: 0;
    justify-content: space-between;
  }
  .admin-sidebar-toggle { display: inline-flex; }
  .admin-page .admin-shell {
    margin-left: 0;
    padding-top: 1rem;
  }
  .admin-page > #admin-companion {
    margin-left: clamp(1rem, 2vw, 2rem);
  }
  .admin-page .admin-header .actions { margin-left: auto; }
}


/* Unified publication status */
.publication-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.publication-overview-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem;
  border: 1px solid #d8dfeb;
  border-radius: .85rem;
  background: #f8fafc;
}
.publication-overview-card :is(h3, p) { margin-top: 0; }
.publication-overview-card h3 { margin-bottom: .35rem; color: var(--admin-navy); }
.publication-overview-actions {
  display: grid;
  justify-items: end;
  gap: .65rem;
  min-width: 190px;
}
.publication-history-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d8dfeb;
}
.publication-history-heading :is(h3, p) { margin-top: 0; }
.publication-history-heading > p { max-width: 640px; text-align: right; }

@media (max-width: 900px) {
  .publication-overview { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .publication-overview-card,
  .publication-history-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .publication-overview-actions { justify-items: stretch; min-width: 0; }
  .publication-overview-actions :is(.publication-status, button) { width: 100%; justify-content: center; }
  .publication-history-heading > p { text-align: left; }
}


/* Match master-detail workspace */
.match-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 34%) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}
.match-list,
.match-detail {
  min-width: 0;
  border: 1px solid #d8dfeb;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 8px 24px #0617340a;
}
.match-list {
  display: grid;
  gap: .25rem;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding: .45rem;
  position: sticky;
  top: 92px;
}
.match-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 82px;
  padding: .8rem .85rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  background: transparent;
  color: inherit;
  text-align: left;
}
.match-list-item:hover {
  border-color: #ccd7e7;
  background: #f7f9fc;
}
.match-list-item.selected {
  border-color: #8aa8db;
  background: #edf4ff;
  box-shadow: inset 3px 0 0 var(--admin-blue);
}
.match-list-main {
  display: grid;
  gap: .2rem;
  min-width: 0;
}
.match-list-main strong {
  overflow: hidden;
  color: var(--admin-navy);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-list-date {
  color: #68778d;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.match-list-main .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .76rem;
}
.match-list-item .badge { white-space: nowrap; }

.match-detail {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}
.match-detail-empty {
  min-height: 260px;
  display: grid;
  place-content: center;
  text-align: center;
}
.match-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e6ef;
}
.match-detail-heading :is(h2, p) { margin-top: 0; }
.match-detail-heading h2 { margin-bottom: 0; color: var(--admin-navy); }
.match-detail-header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  flex-wrap: wrap;
}
.match-season-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: #eef3f9;
  color: #40516b;
  font-size: .72rem;
  font-weight: 800;
}
.match-detail-section {
  padding: 1rem;
  border: 1px solid #e0e6ef;
  border-radius: .8rem;
  background: #fbfcfe;
}
.match-detail-section > :first-child { margin-top: 0; }
.match-detail-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.match-detail-section-heading h3 { margin: 0; color: var(--admin-navy); }
.match-primary-actions {
  background: #f5f8fd;
}
.match-primary-actions .actions { margin: .55rem 0; }
.match-detail-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.match-detail-form label:has(textarea) { grid-column: 1 / -1; }
.match-detail-advanced {
  border: 1px solid #e0e6ef;
  border-radius: .8rem;
  background: #fff;
}
.match-detail-advanced summary {
  padding: .9rem 1rem;
  color: #3e4d63;
  cursor: pointer;
  font-weight: 800;
}
.match-detail-advanced-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #edf0f4;
}
.match-detail-advanced-body .actions { margin-top: .75rem; }

@media (max-width: 1180px) {
  .match-workspace { grid-template-columns: minmax(260px, 38%) minmax(0, 1fr); }
  .match-detail-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .match-workspace { grid-template-columns: 1fr; }
  .match-list {
    position: static;
    max-height: 360px;
  }
}
@media (max-width: 720px) {
  .match-detail-heading,
  .match-detail-section-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .match-detail-header-meta { justify-content: flex-start; }
  .match-detail-form { grid-template-columns: 1fr; }
}


/* Dashboard task center */
.dashboard-task-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
  gap: 1rem;
  align-items: start;
  margin: 1rem 0;
}
.dashboard-side-column {
  display: grid;
  gap: 1rem;
}
.dashboard-task-center {
  min-height: 100%;
}
.dashboard-section-meta {
  color: #66758a;
  font-size: .78rem;
  font-weight: 800;
}
.dashboard-task-list {
  display: grid;
  gap: .55rem;
}
.dashboard-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
  padding: .85rem 1rem;
  border: 1px solid #dbe3ee;
  border-radius: .75rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.dashboard-task-row:hover {
  border-color: #9eb3d2;
  background: #f8fbff;
  transform: translateY(-1px);
}
.dashboard-task-row.warning { border-left: 4px solid #d18a16; }
.dashboard-task-row.danger { border-left: 4px solid #b53a42; }
.dashboard-task-copy {
  display: grid;
  gap: .2rem;
  min-width: 0;
}
.dashboard-task-copy strong {
  color: var(--admin-navy);
}
.dashboard-task-copy .muted {
  font-size: .78rem;
}
.dashboard-task-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  white-space: nowrap;
}
.dashboard-task-count {
  min-width: 1.8rem;
  padding: .2rem .45rem;
  border-radius: 999px;
  background: #eef3fa;
  color: #30435f;
  font-size: .74rem;
  font-weight: 850;
  text-align: center;
}
.dashboard-task-link {
  color: var(--admin-blue);
  font-size: .78rem;
  font-weight: 850;
}
.dashboard-actions-compact {
  grid-template-columns: 1fr;
}
.dashboard-publication-summary {
  display: grid;
  gap: .75rem;
}
.dashboard-publication-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid #e3e8f0;
}
.dashboard-publication-row:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.dashboard-publication-row > span:first-child {
  color: #35455e;
  font-weight: 800;
}
.dashboard-publication-row .publication-status {
  min-height: 32px;
  padding: .35rem .55rem;
  font-size: .72rem;
}
.dashboard-operations {
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .dashboard-task-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dashboard-task-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .dashboard-task-meta { justify-content: space-between; }
  .dashboard-publication-row {
    align-items: stretch;
    flex-direction: column;
  }
  .dashboard-publication-row .publication-status { justify-content: center; }
}


/* Simplified editorial workspace */
.content-editor-note {
  margin-top: -.25rem;
  margin-bottom: 1rem;
}
.content-editor-section {
  border-radius: .85rem;
}
.content-editor-subsection {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dfe5ee;
}
.content-editor-subsection > h3 {
  margin-top: 0;
}
.publication-content-history-heading {
  margin-top: 2rem;
}
#admin-content > .panel-heading {
  align-items: flex-start;
}
#content-section-title {
  margin-bottom: .3rem;
}
#content-section-description {
  margin: 0;
  max-width: 760px;
}


/* Denser overview and sidebar utility link */
.admin-sidebar {
  display: flex;
  flex-direction: column;
}
.admin-sidebar-nav {
  flex: 0 0 auto;
}
.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #ffffff1f;
}
.admin-sidebar-external {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  padding: .65rem .75rem;
  border: 1px solid #ffffff24;
  border-radius: .65rem;
  background: #ffffff0d;
  color: #fff;
  font-weight: 780;
  text-decoration: none;
}
.admin-sidebar-external:hover {
  border-color: #ffffff45;
  background: #ffffff16;
}

@media (min-width: 901px) {
  .admin-page .admin-header {
    display: none;
  }
  .admin-page .admin-shell {
    padding-top: 1rem;
  }
}

#admin-overview .admin-overview-heading {
  padding: 1.15rem 1.35rem;
}
#admin-overview .admin-overview-heading h2 {
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
}
#admin-overview .admin-dashboard-section {
  margin-top: 0;
  padding: 1rem 1.1rem;
}
.dashboard-task-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .95fr);
  gap: .85rem;
  margin: .85rem 0;
}
.dashboard-task-center {
  min-height: 0;
}
.dashboard-task-row {
  min-height: 62px;
  padding: .7rem .85rem;
}
.dashboard-side-column {
  gap: .85rem;
}
.dashboard-actions-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
.dashboard-actions-compact :is(a, button) {
  min-height: 66px;
  padding: .7rem .8rem;
}
.dashboard-publication-summary {
  gap: .55rem;
}
.dashboard-publication-row {
  padding-top: .55rem;
}
.dashboard-operations {
  gap: .85rem;
  margin-top: .85rem;
}
#admin-overview > .admin-dashboard-section:last-child {
  margin-top: .85rem;
}
#admin-overview .dashboard-section-heading {
  margin-bottom: .7rem;
}

@media (max-width: 1100px) {
  .dashboard-task-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-side-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .admin-page .admin-header {
    display: flex;
    min-height: 58px;
    padding: .55rem 1rem;
  }
}
@media (max-width: 720px) {
  .dashboard-side-column,
  .dashboard-actions-compact {
    grid-template-columns: 1fr;
  }
}


/* Maintenance and recovery disclosure */
.maintenance-stack {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
.maintenance-panel {
  padding-top: 0;
}
.maintenance-disclosure {
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: .8rem;
  background: #fbfcfe;
}
.maintenance-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--admin-navy);
  font-weight: 850;
}
.maintenance-disclosure > summary::-webkit-details-marker {
  display: none;
}
.maintenance-disclosure > summary::after {
  content: "＋";
  color: #62728a;
  font-size: 1.05rem;
}
.maintenance-disclosure[open] > summary::after {
  content: "−";
}
.maintenance-disclosure > summary small {
  grid-column: 1;
  color: #718097;
  font-size: .74rem;
  font-weight: 600;
}
.maintenance-disclosure-body {
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
}
.maintenance-disclosure-body > :first-child {
  margin-top: 0;
}
.danger-disclosure {
  margin-top: 1.5rem;
  border-color: #e2c2c2;
  background: #fffafa;
}
.danger-disclosure > summary {
  color: #7d272d;
}
.danger-disclosure .danger-zone {
  margin-top: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

@media (max-width: 720px) {
  .maintenance-disclosure > summary {
    grid-template-columns: 1fr auto;
  }
}


/* Overview column alignment refinement */
#admin-overview .admin-overview-heading {
  padding: .8rem 1.1rem;
  min-height: 0;
}
#admin-overview .admin-overview-heading .eyebrow {
  margin-bottom: .15rem;
}
#admin-overview .admin-overview-heading h2 {
  margin-bottom: .2rem;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}
#admin-overview .admin-overview-heading .muted {
  margin: 0;
}
.dashboard-main-column,
.dashboard-side-column {
  display: grid;
  gap: .85rem;
  align-content: start;
}
.dashboard-task-layout {
  align-items: start;
}
.dashboard-activity-card,
.dashboard-monitor-card {
  align-self: start;
}
.dashboard-monitor-card {
  min-height: 0;
}

@media (max-width: 1100px) {
  .dashboard-main-column,
  .dashboard-side-column {
    grid-template-columns: 1fr;
  }
}


/* Compact traffic analytics */
.traffic-section {
  padding-bottom: .85rem;
}
.dashboard-traffic-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: .75rem;
}
.dashboard-traffic-stats .stat {
  min-height: 64px;
  padding: .65rem .8rem;
  border-radius: .65rem;
}
.dashboard-traffic-stats .stat strong {
  font-size: 1.45rem;
  line-height: 1.05;
}
.dashboard-traffic-stats .stat span {
  margin-top: .15rem;
  color: #66758a;
  font-size: .76rem;
}
.traffic-details {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr);
  gap: .75rem;
  align-items: start;
}
.traffic-chart {
  min-width: 0;
  margin: 0;
}
.traffic-chart svg {
  min-width: 0;
  width: 100%;
}
.traffic-pages-panel {
  min-width: 0;
  padding: .7rem;
  border: 1px solid #e0e6ef;
  border-radius: .7rem;
  background: #f8fafc;
}
.traffic-pages-heading {
  margin-bottom: .5rem;
  color: var(--admin-navy);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .02em;
}
.traffic-pages {
  gap: .35rem;
}
.traffic-page-row {
  grid-template-columns: minmax(0, 1fr);
  gap: .15rem;
  padding: .55rem .6rem;
  background: #fff;
}
.traffic-page-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.traffic-page-row span {
  font-size: .74rem;
}
.dashboard-privacy-note {
  margin-top: .65rem;
  font-size: .7rem;
}

@media (max-width: 1100px) {
  .traffic-details {
    grid-template-columns: 1fr;
  }
  .traffic-pages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .dashboard-traffic-stats,
  .traffic-pages {
    grid-template-columns: 1fr;
  }
}
