: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; }
* { 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(2, minmax(0, 220px)); margin-bottom: 1rem; }
.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); }
.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; }
.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; }
  .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) {
  .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) {
  .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; }
}
