/* Public site theme: dark graphite, light type, restrained blue accents (the logo blue), editorial layout.
   Everything is scoped to .theme-public so admin and portal are unaffected. Colour values live only in the palette in app.css.
   Contrast (WCAG AA): accent text --blue-400 on --graphite-900/850/800 ≥ 6.5:1; white on button --blue-700 ≈ 6.6:1;
   muted --graphite-300 on --graphite-900 ≈ 8:1. Decorative bars and rings use the logo blue itself (--pub-brand). */
.theme-public {
    --pub-bg: var(--graphite-900);
    --pub-surface: var(--graphite-850);
    --pub-surface-2: var(--graphite-800);
    --pub-line: var(--graphite-700);
    --pub-text: var(--graphite-100);
    --pub-muted: var(--graphite-300);
    --pub-brand: var(--blue-500);
    --pub-accent: var(--blue-400);
    --pub-accent-strong: var(--blue-700);
    --pub-accent-hover: var(--blue-800);
    --pub-max: 76rem;
    --pub-gutter: clamp(1rem, 4vw, 2.5rem);
    --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --color-bg: var(--pub-bg);
    --color-surface: var(--pub-surface);
    --color-text: var(--pub-text);
    --color-muted: var(--pub-muted);
    --color-primary: var(--pub-accent);
    --color-border: var(--pub-line);
    --color-focus: var(--pub-accent);
    --bs-body-bg: var(--pub-bg);
    --bs-body-color: var(--pub-text);
    --bs-secondary-color: var(--pub-muted);
    --bs-border-color: var(--pub-line);
    --bs-link-color-rgb: var(--blue-400-rgb);
    --bs-link-hover-color-rgb: var(--blue-300-rgb);
    background: var(--pub-bg);
    color: var(--pub-text);
    line-height: 1.6;
}

.theme-public a { color: var(--pub-accent); text-underline-offset: 0.2em; }
.theme-public a:hover { color: var(--blue-300); }
.theme-public .text-muted, .theme-public .small.text-muted { color: var(--pub-muted) !important; }
.theme-public h1, .theme-public h2, .theme-public h3 { font-family: var(--font-display); letter-spacing: -0.015em; color: var(--pub-text); }
.theme-public :focus-visible { outline: 3px solid var(--pub-accent); outline-offset: 3px; border-radius: 2px; }
.theme-public .skip-link:focus { background: var(--pub-accent-strong); color: var(--white); }

/* Layout grid: direct children of main sit in the content column, .bleed spans the full width. */
.theme-public .site-main {
    display: grid;
    grid-template-columns: [full-start] minmax(var(--pub-gutter), 1fr) [content-start] minmax(0, var(--pub-max)) [content-end] minmax(var(--pub-gutter), 1fr) [full-end];
    align-content: start;
    padding-bottom: clamp(2rem, 6vw, 4rem);
}
.theme-public .site-main > * { grid-column: content; }
.theme-public .site-main > .bleed { grid-column: full; }
.theme-public .site-main:has(> .page-home) { padding-bottom: 0; }
.theme-public .band-inner, .theme-public .page-header-inner, .theme-public .site-header-inner, .theme-public .site-footer-inner, .theme-public .site-footer-bottom {
    width: 100%;
    max-width: calc(var(--pub-max) + 2 * var(--pub-gutter));
    margin-inline: auto;
    padding-inline: var(--pub-gutter);
}

/* Buttons */
.theme-public .btn { border-radius: 2px; font-weight: 600; letter-spacing: 0.01em; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.theme-public .btn-accent, .theme-public .btn-primary {
    --bs-btn-color: var(--white); --bs-btn-bg: var(--pub-accent-strong); --bs-btn-border-color: var(--pub-accent-strong);
    --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: var(--pub-accent-hover); --bs-btn-hover-border-color: var(--pub-accent-hover);
    --bs-btn-active-color: var(--white); --bs-btn-active-bg: var(--pub-accent-hover); --bs-btn-active-border-color: var(--pub-accent-hover);
    color: var(--white); background: var(--pub-accent-strong); border-color: var(--pub-accent-strong);
}
.theme-public .btn-accent:hover, .theme-public .btn-primary:hover { color: var(--white); background: var(--pub-accent-hover); border-color: var(--pub-accent-hover); }
.theme-public .btn-ghost, .theme-public .btn-outline-primary, .theme-public .btn-outline-secondary {
    color: var(--pub-text); background: transparent; border: 1px solid var(--graphite-450);
}
.theme-public .btn-ghost:hover, .theme-public .btn-outline-primary:hover, .theme-public .btn-outline-secondary:hover { color: var(--pub-text); border-color: var(--pub-accent); background: color-mix(in srgb, var(--blue-500) 12%, transparent); }
.theme-public .btn .icon { transition: transform 0.15s ease; }
.theme-public .btn:hover .icon, .theme-public .link-arrow:hover .icon { transform: translateX(3px); }

.theme-public .link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; color: var(--pub-accent); }
.theme-public .link-arrow:hover { text-decoration: underline; }

.theme-public .eyebrow {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pub-muted); margin-bottom: 0.6rem;
}
.theme-public .eyebrow-accent, .theme-public .hero-eyebrow { color: var(--pub-accent); }

/* Header */
.theme-public .site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--graphite-900) 94%, transparent); border-bottom: 1px solid var(--pub-line);
    backdrop-filter: blur(8px);
}
.theme-public .site-header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }

/* Temporary "content in progress" notice under the header (white on dark, blue accent bar). */
.theme-public .site-notice { background: var(--pub-surface); border-bottom: 1px solid var(--pub-line); }
.theme-public .site-notice-inner {
    width: 100%; max-width: calc(var(--pub-max) + 2 * var(--pub-gutter)); margin: 0 auto; padding: 0.75rem var(--pub-gutter);
    display: flex; align-items: center; gap: 0.75rem; color: var(--white); font-weight: 600; font-size: 0.95rem; line-height: 1.4;
}
.theme-public .site-notice-inner::before {
    content: ""; flex-shrink: 0; width: 0.25rem; align-self: stretch; min-height: 1.25rem; background: var(--pub-brand);
}
.theme-public .site-brand { color: var(--pub-text); text-decoration: none; display: inline-flex; align-items: center; flex-shrink: 0; }
.theme-public .logotype { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--pub-text); }
.theme-public .logotype-mark { color: var(--pub-accent); flex-shrink: 0; }
.theme-public .logotype-text { display: flex; flex-direction: column; line-height: 1.05; }
.theme-public .logotype-name { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; }
.theme-public .logotype-city { font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--pub-muted); margin-top: 0.2rem; }

.theme-public .site-nav-desktop { margin-left: auto; }
.theme-public .site-nav { gap: 0.25rem; flex-wrap: nowrap; }
.theme-public .site-nav > li > a {
    display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.6rem 0.75rem;
    color: var(--pub-text); text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.theme-public .site-nav > li > a:hover { color: var(--pub-accent); }
.theme-public .site-nav > li > a[aria-current="page"] { color: var(--pub-accent); border-bottom-color: var(--pub-accent); }
.theme-public .nav-caret { opacity: 0.7; }
.theme-public .site-subnav { background: var(--pub-surface-2); border: 1px solid var(--pub-line); border-radius: 2px; padding: 0.4rem; box-shadow: 0 12px 30px color-mix(in srgb, var(--black) 45%, transparent); }
.theme-public .site-subnav a { color: var(--pub-text); text-decoration: none; padding: 0.5rem 0.75rem; border-radius: 2px; }
.theme-public .site-subnav a:hover, .theme-public .site-subnav a[aria-current="page"] { background: color-mix(in srgb, var(--blue-500) 16%, transparent); color: var(--pub-accent); }
.theme-public .site-cta { flex-shrink: 0; }

.theme-public .site-nav-mobile { display: none; margin-left: auto; }
.theme-public .site-nav-mobile > summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; border: 1px solid var(--pub-line); border-radius: 2px; color: var(--pub-text);
}
.theme-public .site-nav-mobile > summary::-webkit-details-marker { display: none; }
.theme-public .site-nav-mobile[open] > summary { border-color: var(--pub-accent); color: var(--pub-accent); }
.theme-public .site-nav-mobile > nav {
    position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 4.75rem); overflow-y: auto;
    background: var(--pub-bg); border-bottom: 1px solid var(--pub-line); padding: 1rem var(--pub-gutter) 1.5rem;
}
.theme-public .site-nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.theme-public .site-nav-mobile li a { display: block; padding: 0.7rem 0; color: var(--pub-text); text-decoration: none; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--pub-line); }
.theme-public .site-nav-mobile li li a { font-size: 1rem; font-weight: 400; padding-left: 1rem; color: var(--pub-muted); }
.theme-public .site-nav-mobile a[aria-current="page"] { color: var(--pub-accent); }
.theme-public .site-nav-mobile .btn { color: var(--white); }

@media (max-width: 1099.98px) {
    .theme-public .site-nav-desktop, .theme-public .site-cta { display: none; }
    .theme-public .site-nav-mobile { display: block; }
    .theme-public .site-header-inner { position: relative; min-height: 4rem; }
}

/* Inner page header */
.theme-public .page-header { border-bottom: 1px solid var(--pub-line); background: linear-gradient(180deg, var(--pub-surface) 0%, var(--pub-bg) 100%); margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.theme-public .page-header-inner { padding-block: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.theme-public .page-header h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.05; margin: 0; max-width: 22ch; }
.theme-public .page-header .eyebrow { color: var(--pub-accent); }
.theme-public .page-lead { color: var(--pub-muted); font-size: 1.15rem; max-width: 60ch; margin: 1rem 0 0; }
/* Plain-text CMS fields keep the line breaks typed in the administration. */
.theme-public .page-lead, .theme-public .section-intro, .theme-public .hero-lead, .theme-public .contact-text { white-space: pre-line; }
.theme-public .page-back { margin-bottom: 1rem; font-size: 0.9rem; }
.theme-public .page-back a { color: var(--pub-muted); text-decoration: none; }
.theme-public .page-back a:hover { color: var(--pub-accent); }

/* Home bands */
.theme-public .page-home > .content-blocks > * + * { margin-top: 0; }
.theme-public .band { padding-block: clamp(3rem, 8vw, 5.5rem); }
.theme-public .band + .band { border-top: 1px solid var(--pub-line); }

.theme-public .section-heading { display: grid; gap: 1rem 3rem; align-items: end; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.theme-public .section-heading h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.1; margin: 0; max-width: 20ch; }
.theme-public .section-heading.has-bar > div { border-left: 4px solid var(--pub-brand); padding-left: 1rem; }
.theme-public .section-intro { color: var(--pub-muted); margin: 0; max-width: 52ch; font-size: 1.05rem; }
@media (min-width: 768px) {
    .theme-public .section-heading { grid-template-columns: 1fr auto; }
    .theme-public .section-heading:has(.section-intro) { grid-template-columns: 1fr 1fr; }
}

/* Hero */
.theme-public .band-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 10vw, 7.5rem); background: radial-gradient(ellipse at 75% 40%, var(--graphite-780) 0%, var(--pub-bg) 65%); }
.theme-public .hero-inner { position: relative; z-index: 1; display: flex; gap: 2rem; align-items: center; }
.theme-public .hero-copy { max-width: 40rem; }
.theme-public .hero-title { font-size: clamp(2.8rem, 8.5vw, 6rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 1.5rem; }
.theme-public .hero-title > span { display: block; }
.theme-public .hero-title .accent { color: var(--pub-accent); }
.theme-public .hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--graphite-200); max-width: 34rem; margin-bottom: 2rem; }
.theme-public .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.theme-public .hero-visual { position: absolute; top: 0; bottom: 0; left: 52%; right: max(13rem, calc((100% - var(--pub-max)) / 2 + 11rem)); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.theme-public .hero-target { width: 100%; max-width: 34rem; opacity: 0.9; }
.theme-public .hero-target .ring { fill: none; stroke: var(--graphite-600); stroke-width: 1.2; }
.theme-public .hero-target .ring-inner { fill: var(--graphite-830); stroke: var(--graphite-500); stroke-width: 1.2; }
.theme-public .hero-target .ring-center { fill: var(--pub-brand); }
.theme-public .hero-target .ring-number { fill: var(--graphite-450); font-size: 11px; font-family: var(--font-display); }
.theme-public .hero-photo .hero-visual { pointer-events: auto; }
.theme-public .hero-photo .hero-visual img { width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(90deg, transparent 0%, var(--black) 35%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, var(--black) 35%); }
.theme-public .hero-keywords {
    list-style: none; margin: 0 0 0 auto; padding: 0 0 0 1.25rem; border-left: 1px solid var(--pub-brand);
    display: flex; flex-direction: column; gap: 1.6rem; align-self: center;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--pub-muted);
}
@media (max-width: 991.98px) {
    .theme-public .hero-visual { left: 0; right: 0; opacity: 0.35; justify-content: flex-end; }
    .theme-public .hero-target { width: 90%; transform: translateX(30%); }
    .theme-public .hero-photo .hero-visual { position: relative; opacity: 1; height: 16rem; margin-bottom: -2rem; }
    .theme-public .hero-photo .hero-visual img { mask-image: linear-gradient(0deg, transparent 0%, var(--black) 40%); -webkit-mask-image: linear-gradient(0deg, transparent 0%, var(--black) 40%); }
    .theme-public .hero-keywords { display: none; }
}
@media (max-width: 575.98px) {
    .theme-public .hero-actions .btn { width: 100%; }
}

/* Facts strip */
.theme-public .band-highlights { padding-block: 0; background: var(--pub-surface); border-block: 1px solid var(--pub-line); }
.theme-public .band-hero + .band-highlights { border-top-color: var(--pub-line); }
.theme-public .highlights { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.theme-public .highlights > li { display: flex; gap: 1rem; align-items: center; padding: 1.5rem 1.25rem; border-left: 1px solid var(--pub-line); color: var(--pub-muted); font-size: 0.92rem; line-height: 1.35; }
.theme-public .highlights > li:first-child { border-left: 0; padding-left: 0; }
.theme-public .highlights strong { display: block; color: var(--pub-text); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.15rem; }
.theme-public .highlight-icon { color: var(--pub-accent); flex-shrink: 0; }
@media (max-width: 899.98px) {
    .theme-public .highlights { grid-template-columns: 1fr 1fr; }
    .theme-public .highlights > li { border-left: 0; border-top: 1px solid var(--pub-line); padding-left: 0; }
    .theme-public .highlights > li:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 479.98px) {
    .theme-public .highlights { grid-template-columns: 1fr; }
    .theme-public .highlights > li:nth-child(2) { border-top: 1px solid var(--pub-line); }
}

/* Feature links */
.theme-public .features { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.theme-public .feature { display: flex; flex-direction: column; position: relative; }
.theme-public .feature-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--pub-surface); border: 1px solid var(--pub-line); margin-bottom: 1.25rem; }
.theme-public .feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.theme-public .feature:hover .feature-media img { transform: scale(1.03); }
.theme-public .feature-graphic {
    display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--graphite-500);
    background: repeating-linear-gradient(135deg, var(--pub-surface) 0 14px, var(--graphite-820) 14px 15px);
}
.theme-public .feature:hover .feature-graphic { color: var(--pub-accent); }
.theme-public .feature h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.theme-public .feature h3 a { color: var(--pub-text); text-decoration: none; }
.theme-public .feature h3 a::after { content: ""; position: absolute; inset: 0; }
.theme-public .feature h3 a:hover { color: var(--pub-accent); }
.theme-public .feature p { color: var(--pub-muted); margin-bottom: 1rem; }
.theme-public .feature .link-arrow { margin-top: auto; }

/* Next competition */
.theme-public .band-next { padding-block: clamp(2rem, 5vw, 3rem); }
.theme-public .next-panel {
    display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem; align-items: center;
    padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--pub-surface); border: 1px solid var(--pub-line); border-left: 4px solid var(--pub-brand);
}
.theme-public .next-icon { color: var(--pub-accent); }
.theme-public .next-body .eyebrow { color: var(--pub-accent); margin-bottom: 0.35rem; }
.theme-public .next-title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; margin: 0 0 0.35rem; }
.theme-public .next-title a { color: var(--pub-text); text-decoration: none; }
.theme-public .next-title a:hover { color: var(--pub-accent); }
.theme-public .next-body p { color: var(--pub-muted); }
.theme-public .next-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
@media (max-width: 767.98px) {
    .theme-public .next-panel { grid-template-columns: 1fr; }
}

/* News cards */
.theme-public .article-list.layout-cards { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.75rem; }
.theme-public .article-card { position: relative; background: var(--pub-surface); border: 1px solid var(--pub-line); border-radius: 0; display: flex; flex-direction: column; transition: border-color 0.15s ease; }
.theme-public .article-card:hover { border-color: var(--graphite-500); }
.theme-public .article-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--pub-surface-2); }
.theme-public .article-card-media img { width: 100%; height: 100%; object-fit: cover; }
.theme-public .article-card-body { padding: 1.25rem 1.35rem 1.5rem; }
.theme-public .article-card h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; }
.theme-public .article-card h3 a { color: var(--pub-text); text-decoration: none; }
.theme-public .article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.theme-public .article-card:hover h3 a { color: var(--pub-accent); }
.theme-public .article-meta { color: var(--pub-muted); font-size: 0.82rem; }
.theme-public .article-kind { color: var(--pub-accent); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; }
.theme-public .article-excerpt { color: var(--pub-muted); margin: 0; font-size: 0.95rem; }
.theme-public .layout-list .article-card { background: transparent; border: 0; border-bottom: 1px solid var(--pub-line); }
.theme-public .layout-list .article-card-body { padding-inline: 0; }

/* Latest results */
.theme-public .results-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.theme-public .result-summary { background: var(--pub-surface); border: 1px solid var(--pub-line); padding: 1.5rem; }
.theme-public .result-date { font-size: 0.82rem; color: var(--pub-muted); margin-bottom: 0.25rem; font-variant-numeric: tabular-nums; }
.theme-public .result-summary h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.theme-public .result-summary h3 a { color: var(--pub-text); text-decoration: none; }
.theme-public .result-summary h3 a:hover { color: var(--pub-accent); }
.theme-public .result-lines { list-style: none; padding: 0; margin: 0; }
.theme-public .result-lines li { display: grid; grid-template-columns: 2.25rem 1fr auto; gap: 0.75rem; align-items: baseline; padding: 0.6rem 0; border-top: 1px solid var(--pub-line); }
.theme-public .result-rank { font-weight: 800; color: var(--pub-accent); font-variant-numeric: tabular-nums; }
.theme-public .result-name { display: flex; flex-direction: column; line-height: 1.3; }
.theme-public .result-event { font-size: 0.8rem; color: var(--pub-muted); }
.theme-public .result-score { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* Contact band */
.theme-public .band-contact { background: var(--pub-surface); }
.theme-public .contact-layout { display: grid; gap: 2rem 4rem; }
.theme-public .contact-layout .section-heading { margin-bottom: 1rem; }
.theme-public .contact-text { color: var(--pub-muted); max-width: 46ch; }
.theme-public .contact-list { display: flex; flex-direction: column; gap: 0.9rem; font-style: normal; margin: 0; padding: 1.75rem; border: 1px solid var(--pub-line); background: var(--pub-bg); }
.theme-public .contact-item { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--pub-text); text-decoration: none; }
.theme-public .contact-item .icon { color: var(--pub-accent); flex-shrink: 0; margin-top: 0.2rem; }
.theme-public a.contact-item:hover { color: var(--pub-accent); }
@media (min-width: 768px) { .theme-public .contact-layout { grid-template-columns: 1fr 1fr; align-items: center; } }
.theme-public .cms-page .band-contact { background: transparent; padding-block: 1rem; }
.theme-public .cms-page .band-contact .band-inner { padding-inline: 0; }

/* Inner content: CMS pages, articles, lists, tables */
.theme-public .cms-page, .theme-public .news-article { max-width: 48rem; font-size: 1.05rem; }
.theme-public .cms-page h2, .theme-public .news-article h2 { font-weight: 700; margin-top: 2rem; }
.theme-public .block-cta { background: var(--pub-surface); border: 1px solid var(--pub-line); border-left: 4px solid var(--pub-brand); border-radius: 0; color: var(--pub-text); }
.theme-public .block-cta.cta-brand { background: var(--pub-surface-2); color: var(--pub-text); }
.theme-public .block-quote blockquote { border-left-color: var(--pub-brand); }
.theme-public .block-missing { background: var(--pub-surface); border: 1px dashed var(--pub-line); color: var(--pub-muted); }
.theme-public .block-image figcaption, .theme-public .block-image .credit { color: var(--pub-muted); }

.theme-public .news-filter ul { gap: 0.5rem; margin-bottom: 2rem; }
.theme-public .news-filter a { display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--pub-line); color: var(--pub-text); text-decoration: none; font-size: 0.9rem; }
.theme-public .news-filter a:hover { border-color: var(--pub-accent); }
.theme-public .news-filter a[aria-current="page"] { background: var(--pub-accent-strong); border-color: var(--pub-accent-strong); color: var(--white); }

.theme-public .competition-list { border-top: 1px solid var(--pub-line); }
.theme-public .competition-item { border-bottom-color: var(--pub-line); padding: 1rem 0; grid-template-columns: minmax(8rem, 12rem) 1fr; }
.theme-public .competition-date { color: var(--pub-muted); font-weight: 600; }
.theme-public .competition-name { color: var(--pub-text); font-size: 1.1rem; text-decoration: none; }
.theme-public .competition-name:hover { color: var(--pub-accent); }
.theme-public .month-heading { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pub-accent); margin-top: 2.5rem; }
.theme-public .competition-facts { background: var(--pub-surface); border: 1px solid var(--pub-line); padding: 1.25rem 1.5rem; }
.theme-public .competition-facts dt { color: var(--pub-muted); font-weight: 600; }
.theme-public .article-competition { background: var(--pub-surface); border-color: var(--pub-line); border-radius: 0; }
@media (max-width: 575.98px) { .theme-public .competition-item { grid-template-columns: 1fr; gap: 0.25rem; } }

.theme-public .table {
    --bs-table-bg: transparent; --bs-table-color: var(--pub-text); --bs-table-border-color: var(--pub-line);
    --bs-table-striped-bg: color-mix(in srgb, var(--white) 2.5%, transparent); --bs-table-hover-bg: color-mix(in srgb, var(--blue-500) 8%, transparent);
}
.theme-public .table thead th { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pub-muted); font-weight: 700; border-bottom: 1px solid var(--graphite-500); }
.theme-public .table-responsive { border: 1px solid var(--pub-line); background: var(--pub-surface); }
.theme-public .table-responsive > .table { margin-bottom: 0; }
.theme-public .anonymous-member { color: var(--pub-muted); font-style: italic; }

.theme-public .form-control, .theme-public .form-select { background-color: var(--pub-surface); border-color: var(--pub-line); color: var(--pub-text); border-radius: 2px; }
.theme-public .form-control:focus, .theme-public .form-select:focus { border-color: var(--pub-accent); box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--blue-500) 35%, transparent); }
.theme-public .form-label { color: var(--pub-muted); font-size: 0.9rem; }

.theme-public .shooter-card { background: var(--pub-surface); border: 1px solid var(--pub-line); padding: 1.5rem 1rem; position: relative; }
.theme-public .shooter-card a { color: var(--pub-text); text-decoration: none; font-weight: 600; }
.theme-public .shooter-card a::after { content: ""; position: absolute; inset: 0; }
.theme-public .shooter-card:hover { border-color: var(--pub-accent); }
.theme-public .shooter-card img, .theme-public .shooter-placeholder { background: var(--pub-surface-2); border-color: var(--pub-line); }

.theme-public .badge.text-bg-light { background: var(--pub-surface-2) !important; color: var(--pub-text) !important; border: 1px solid var(--pub-line); }
.theme-public .alert { border-radius: 0; }
.theme-public .preview-banner { color: var(--ink); }

/* Footer */
.theme-public .site-footer { background: var(--graphite-950); border-top: 1px solid var(--pub-line); color: var(--pub-muted); font-size: 0.92rem; }
.theme-public .site-footer-inner { display: grid; gap: 2rem; padding-block: 3.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.theme-public .footer-brand { grid-column: span 1; }
.theme-public .footer-title { color: var(--pub-text); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; }
.theme-public .site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.theme-public .site-footer a { color: var(--pub-muted); text-decoration: none; }
.theme-public .site-footer a:hover { color: var(--pub-accent); }
.theme-public .footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 0.6rem; }
.theme-public .footer-contact .icon { color: var(--pub-accent); flex-shrink: 0; margin-top: 0.2rem; }
.theme-public .footer-contact .fw-semibold { color: var(--pub-text); }
.theme-public .site-footer-bottom {
    padding-block: 1.25rem; font-size: 0.82rem;
    background: linear-gradient(var(--pub-line), var(--pub-line)) center top / calc(100% - 2 * var(--pub-gutter)) 1px no-repeat;
}

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

/* Programmatic focus after navigation (FocusOnNavigate) needs no visible ring on the heading. */
.theme-public h1:focus, .theme-public h1:focus-visible { outline: none; }

/* CTA buttons on the brand background use the accent button in the dark theme (white button + accent text fails contrast). */
.theme-public .block-cta .btn-light {
    color: var(--white); background: var(--pub-accent-strong); border-color: var(--pub-accent-strong);
}
.theme-public .block-cta .btn-light:hover { color: var(--white); background: var(--pub-accent-hover); border-color: var(--pub-accent-hover); }

/* Collapsed table borders overflow by 1px, which would add a vertical scrollbar to responsive tables. */
.theme-public .table-responsive { overflow-y: hidden; }
.theme-public .site-main h2 { font-weight: 800; }
.theme-public .cms-page:has(.band-contact) { max-width: none; }
.theme-public .article-meta .badge { font-size: 0.75rem; font-weight: 600; padding: 0.35em 0.6em; text-decoration: none; }
@media (max-width: 767.98px) {
    /* Without a photo the graphic placeholder stays low, so the topics do not push the page down. */
    .theme-public .feature-media:has(.feature-graphic), .theme-public .article-card-media:has(.feature-graphic) { aspect-ratio: 16 / 6; }
}

/* Empty states: lists and pages without content yet */
.theme-public .empty-state {
    display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.75rem;
    background: var(--pub-surface); border: 1px solid var(--pub-line); border-left: 4px solid var(--pub-line); color: var(--pub-muted);
}
.theme-public .empty-state .icon { color: var(--graphite-450); flex-shrink: 0; }
.theme-public .empty-state p { margin: 0; }
.theme-public .band .empty-state { max-width: 40rem; }
.theme-public .contact-layout.no-intro { grid-template-columns: minmax(0, 32rem); }

/* Sponsors page (/sponzori): call to sponsorship, then three tiers. Logos sit on equal light tiles (object-fit: contain). */
.theme-public .sponsors-page { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4rem); }
.theme-public .sponsor-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
    padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--pub-surface); border: 1px solid var(--pub-line); border-left: 4px solid var(--pub-brand);
}
.theme-public .sponsor-cta-copy { max-width: 46rem; }
.theme-public .sponsor-cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin: 0; }
.theme-public .sponsor-cta-text { color: var(--pub-muted); margin: 0.6rem 0 0; white-space: pre-line; }
.theme-public .sponsor-cta h2 + .sponsor-cta-text { margin-top: 0.6rem; }
.theme-public .sponsor-tier-title {
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pub-accent);
    margin: 0 0 1.5rem; padding-left: 0.85rem; border-left: 4px solid var(--pub-brand);
}
.theme-public .sponsor-tile {
    display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 1rem;
    background: var(--graphite-100); border: 1px solid var(--graphite-200); border-radius: 4px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.theme-public .sponsor-tile picture { display: contents; }
.theme-public .sponsor-tile img { width: 100%; height: 100%; object-fit: contain; }
.theme-public a.sponsor-tile:hover { border-color: var(--pub-brand); box-shadow: 0 0 0 2px var(--pub-brand); }
.theme-public a.sponsor-tile:focus-visible { outline: 3px solid var(--pub-accent); outline-offset: 3px; }

/* Tier 1: one row per sponsor, logo beside the text on wider screens */
.theme-public .sponsor-main-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-public .sponsor-main {
    display: grid; gap: 1.25rem 2rem; align-items: center; padding: clamp(1rem, 3vw, 1.5rem);
    background: var(--pub-surface); border: 1px solid var(--pub-line);
}
.theme-public .sponsor-tile-main { padding: 1.5rem; }
.theme-public .sponsor-main-body h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800; margin: 0 0 0.5rem; }
.theme-public .sponsor-description { color: var(--pub-muted); margin: 0 0 1rem; white-space: pre-line; max-width: 60ch; }
@media (min-width: 768px) {
    .theme-public .sponsor-main { grid-template-columns: minmax(14rem, 22rem) 1fr; }
}

/* Tier 2: logo grid, 2 / 3 / 4 columns */
.theme-public .sponsor-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 576px) { .theme-public .sponsor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .theme-public .sponsor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }

/* Tier 3: running row. By default a static, centred, wrapping row; it runs only when motion is allowed and the logos are
   wider than the row (container queries per logo count: 9rem tiles + 1.5rem gaps; 8 or more always fill the widest
   column). Each copy of the list moves by its own width, so the loop is seamless; the duration grows with the count, so
   the speed is constant (one tile per 3 s). */
.theme-public .sponsor-tier-friends { container: sponsor-friends / inline-size; }
.theme-public .sponsor-marquee { display: flex; overflow: hidden; }
.theme-public .sponsor-marquee-track {
    list-style: none; margin: 0; padding: 0 var(--marquee-end, 0) 0 0; display: flex; gap: 1.5rem; flex-shrink: 0;
    width: var(--marquee-width, 100%); flex-wrap: var(--marquee-wrap, wrap); justify-content: var(--marquee-justify, center);
    animation: var(--marquee-animation, none) calc(var(--marquee-count, 1) * 3s) linear infinite;
}
.theme-public .sponsor-marquee-track[aria-hidden="true"] { display: var(--marquee-display, none); }
.theme-public .sponsor-marquee-track > li { flex: 0 0 9rem; }
.theme-public .sponsor-tile-small { padding: 0.65rem; }
.theme-public .sponsor-marquee:hover .sponsor-marquee-track,
.theme-public .sponsor-marquee:focus-within .sponsor-marquee-track { animation-play-state: paused; }
@keyframes sponsor-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: no-preference) {
    .theme-public .sponsor-marquee[data-count="many"] { --marquee-display: flex; --marquee-wrap: nowrap; --marquee-justify: flex-start; --marquee-width: max-content; --marquee-end: 1.5rem; --marquee-animation: sponsor-marquee; }
    @container sponsor-friends (max-width: 19.49rem) {
        .theme-public .sponsor-marquee[data-count="2"] { --marquee-display: flex; --marquee-wrap: nowrap; --marquee-justify: flex-start; --marquee-width: max-content; --marquee-end: 1.5rem; --marquee-animation: sponsor-marquee; }
    }
    @container sponsor-friends (max-width: 29.99rem) {
        .theme-public .sponsor-marquee[data-count="3"] { --marquee-display: flex; --marquee-wrap: nowrap; --marquee-justify: flex-start; --marquee-width: max-content; --marquee-end: 1.5rem; --marquee-animation: sponsor-marquee; }
    }
    @container sponsor-friends (max-width: 40.49rem) {
        .theme-public .sponsor-marquee[data-count="4"] { --marquee-display: flex; --marquee-wrap: nowrap; --marquee-justify: flex-start; --marquee-width: max-content; --marquee-end: 1.5rem; --marquee-animation: sponsor-marquee; }
    }
    @container sponsor-friends (max-width: 50.99rem) {
        .theme-public .sponsor-marquee[data-count="5"] { --marquee-display: flex; --marquee-wrap: nowrap; --marquee-justify: flex-start; --marquee-width: max-content; --marquee-end: 1.5rem; --marquee-animation: sponsor-marquee; }
    }
    @container sponsor-friends (max-width: 61.49rem) {
        .theme-public .sponsor-marquee[data-count="6"] { --marquee-display: flex; --marquee-wrap: nowrap; --marquee-justify: flex-start; --marquee-width: max-content; --marquee-end: 1.5rem; --marquee-animation: sponsor-marquee; }
    }
    @container sponsor-friends (max-width: 71.99rem) {
        .theme-public .sponsor-marquee[data-count="7"] { --marquee-display: flex; --marquee-wrap: nowrap; --marquee-justify: flex-start; --marquee-width: max-content; --marquee-end: 1.5rem; --marquee-animation: sponsor-marquee; }
    }
}

/* Links to the federation's result bulletins under the competition name */
.theme-public .competition-bulletins { list-style: none; margin: 0.9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.theme-public .competition-bulletins a { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }

/* Cookie banner and cookie settings (docs/FEATURES_AND_WORKFLOWS.md §10): non-blocking, bottom right on desktop and full
   width at the bottom on phones. "Prihvati sve" and "Odbij sve" share one style; neither is emphasised. */
.theme-public .footer-cookie-link { display: inline-block; margin-top: 0.5rem; }
.theme-public .cookie-banner, .theme-public .cookie-settings {
    position: fixed; z-index: 1080; right: 1rem; bottom: 1rem; display: none;
    background: var(--pub-surface); color: var(--pub-text); border: 1px solid var(--pub-line); border-top: 3px solid var(--pub-brand);
    box-shadow: 0 0.75rem 2rem rgba(var(--graphite-900-rgb), 0.6); padding: 1.25rem; font-size: 0.92rem;
}
.theme-public .cookie-banner { width: min(26rem, calc(100vw - 2rem)); }
.theme-public .cookie-settings { width: min(44rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto; z-index: 1081; }
.theme-public .cookie-banner.is-open, .theme-public .cookie-settings.is-open, .theme-public .cookie-settings:target { display: block; }
.theme-public .cookie-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.theme-public .cookie-text { color: var(--pub-muted); margin-bottom: 0.75rem; }
.theme-public .cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.theme-public .cookie-choice {
    flex: 1 1 8rem; color: var(--pub-text); background: transparent; border: 1px solid var(--graphite-450); font-weight: 600;
}
.theme-public .cookie-choice:hover { color: var(--pub-text); border-color: var(--pub-accent); background: color-mix(in srgb, var(--blue-500) 12%, transparent); }
.theme-public .cookie-settings-link, .theme-public .cookie-close { padding-inline: 0.25rem; }
.theme-public .cookie-settings-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.theme-public .cookie-category { border-top: 1px solid var(--pub-line); padding-top: 0.85rem; margin-bottom: 0.85rem; }
.theme-public .cookie-category-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.4rem; }
.theme-public .cookie-always { color: var(--pub-muted); font-size: 0.85rem; }
.theme-public .cookie-category .form-check-input:disabled { opacity: 0.7; }
.theme-public .cookie-category .form-check-input:disabled ~ .form-check-label { opacity: 1; }
.theme-public .cookie-table { --bs-table-bg: transparent; --bs-table-color: var(--pub-text); font-size: 0.82rem; margin-bottom: 0; }
.theme-public .cookie-table th { color: var(--pub-muted); font-weight: 600; }
.theme-public .cookie-table code { color: var(--pub-accent); white-space: nowrap; }
@media (max-width: 575.98px) {
    .theme-public .cookie-banner, .theme-public .cookie-settings { right: 0; bottom: 0; width: 100%; border-inline: 0; }
    .theme-public .cookie-settings { max-height: 85vh; }
    /* Each cookie as a short block with labelled values instead of a wide table. */
    .theme-public .cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .theme-public .cookie-table tr { display: block; border-bottom: 1px solid var(--pub-line); padding-block: 0.4rem; }
    .theme-public .cookie-table td { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.5rem; border: 0; padding: 0.1rem 0; }
    .theme-public .cookie-table td::before { content: attr(data-label); color: var(--pub-muted); }
    .theme-public .cookie-table code { white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: no-preference) {
    .theme-public .cookie-banner.is-open { animation: cookie-in 0.25s ease-out; }
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
