/* ============================================================
   TFSF Almanak — shared stylesheet
   Page-specific styles live in this file.
   ============================================================ */

/* === Design tokens === */
:root {
    --al-accent:       #c9a84c;
    --al-accent-rgb:   201, 168, 76;
    --al-bg:           #0f111a;
    --al-bg-card:      rgba(255,255,255,.04);
    --al-border:       rgba(255,255,255,.07);
    --al-text:         #e6e6e6;
    --al-text-soft:    #c0c0c0;
    --al-text-muted:   #7a7a8c;
    --al-radius-card:  12px;
    --al-shadow-card:  0 4px 24px rgba(0,0,0,.25);
    --al-shadow-hover: 0 8px 32px rgba(0,0,0,.35);
    --al-transition:   .2s ease;
}

/* === Base === */
body.al-body {
    background-color: var(--al-bg);
    color: var(--al-text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.al-public-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Better default typography === */
#al-main {
    padding-top: 1.25rem;
}

#al-main p {
    line-height: 1.75;
}

/* === Links (content) === */
#al-main a {
    text-underline-offset: 3px;
}

/* === Header === */
#al-site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(15,17,26,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--al-transition), box-shadow var(--al-transition);
}

#al-site-header.scrolled {
    border-bottom-color: var(--al-border);
    box-shadow: 0 2px 16px rgba(0,0,0,.3);
}

/* === Brand === */
.al-brand-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--al-accent);
    margin-left: .5rem;
    letter-spacing: .05em;
}

/* === Language switcher (header) === */
.al-lang-switch { display: flex; gap: .25rem; }

.al-lang-btn {
    padding: .2rem .6rem;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    color: var(--al-text-muted);
    border: 1px solid transparent;
    transition: all var(--al-transition);
}

.al-lang-btn:hover { color: var(--al-text); }

.al-lang-btn--active {
    color: var(--al-accent);
    border-color: rgba(var(--al-accent-rgb), .35);
    background: rgba(var(--al-accent-rgb), .08);
}

/* === Footer === */
.al-footer {
    background: var(--al-bg);
    border-top: 1px solid var(--al-border);
}

.al-footer__title {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--al-accent);
    margin-bottom: .75rem;
}

.al-footer__text {
    font-size: .84rem;
    color: var(--al-text-muted);
    line-height: 1.7;
}

.al-footer-links { list-style: none; margin: 0; padding: 0; }
.al-footer-links li { margin-bottom: .35rem; }
.al-footer-links a {
    font-size: .84rem;
    color: var(--al-text-muted);
    text-decoration: none;
    transition: color var(--al-transition);
}
.al-footer-links a:hover { color: var(--al-accent); }

.al-footer-lang { display: flex; flex-direction: column; gap: .4rem; }
.al-footer-lang a {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .84rem;
    color: var(--al-text-muted);
    text-decoration: none;
}
.al-footer-lang a:hover { color: var(--al-accent); }

.al-social-links { display: flex; gap: .5rem; flex-wrap: wrap; }

.al-footer__copyright {
    text-align: center;
    font-size: .78rem;
    color: var(--al-text-muted);
    border-top: 1px solid var(--al-border);
    margin-top: 2rem;
    padding-top: 1.25rem;
}

/* === Shared page utilities === */
.al-empty-state {
    text-align: center;
    color: var(--al-text-muted);
    padding: 4rem 0;
}

.al-kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .72rem;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid var(--al-border);
    background: rgba(255,255,255,.04);
    color: var(--al-text-soft);
}

.al-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--al-border);
    background: #171a24;
    color: var(--al-text);
    padding: .6rem .85rem;
    font-size: .95rem;
    outline: none;
    transition: border-color var(--al-transition), box-shadow var(--al-transition);
}
.al-input:focus {
    border-color: rgba(var(--al-accent-rgb), .6);
    box-shadow: 0 0 0 3px rgba(var(--al-accent-rgb), .12);
}

.al-chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.al-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .7rem;
    border-radius: 999px;
    border: 1px solid var(--al-border);
    color: var(--al-text-soft);
    background: rgba(255,255,255,.03);
    cursor: pointer;
    user-select: none;
    transition: border-color var(--al-transition), background var(--al-transition), color var(--al-transition);
}
.al-chip:hover { border-color: rgba(var(--al-accent-rgb), .35); }
.al-chip[aria-pressed="true"] {
    border-color: rgba(var(--al-accent-rgb), .5);
    background: rgba(var(--al-accent-rgb), .10);
    color: var(--al-accent);
}

.al-toolbar {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.25rem;
}
@media (min-width: 768px) {
    .al-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.al-toolbar__left { display: flex; flex-direction: column; gap: .5rem; }
.al-toolbar__right { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.al-count-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--al-text-muted);
}

.al-pagination {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 3rem;
}

.al-pagination > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.al-pagination small {
    font-size: 0.8rem;
    color: var(--al-text-muted);
    order: 2;
}

.al-pagination ul.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    order: 1;
}

.al-pagination .page-item {
    display: inline-flex;
}

.al-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border: 1px solid var(--al-border);
    border-radius: 8px;
    background: var(--al-bg-card);
    color: var(--al-text-soft);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--al-transition), background var(--al-transition), color var(--al-transition);
}

.al-pagination .page-link:hover {
    border-color: rgba(var(--al-accent-rgb), 0.35);
    background: rgba(var(--al-accent-rgb), 0.08);
    color: var(--al-accent);
    text-decoration: none;
}

.al-pagination .page-item.active .page-link {
    background: var(--al-accent);
    border-color: var(--al-accent);
    color: #111;
    cursor: default;
}

.al-pagination .page-item.active .page-link:hover {
    background: var(--al-accent);
    color: #111;
}

.al-pagination .page-item.disabled .page-link,
.al-pagination .page-item .page-link[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
}

.al-pagination .page-item:not(.active) > span.page-link {
    border-color: transparent;
    background: transparent;
    color: var(--al-text-muted);
    min-width: auto;
    padding: 0 0.25rem;
    cursor: default;
}

.al-breadcrumb { padding: 1rem 0; }

/* === Shared badges === */
.al-badge {
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .04em;
}

.al-badge--code {
    background: rgba(var(--al-accent-rgb), .12);
    color: var(--al-accent);
    border: 1px solid rgba(var(--al-accent-rgb), .25);
}

.al-badge--fiap {
    background: rgba(100,149,237,.1);
    color: #6495ed;
    border: 1px solid rgba(100,149,237,.2);
}

.al-badge--gpu {
    background: rgba(120,220,100,.08);
    color: #78dc64;
    border: 1px solid rgba(120,220,100,.2);
}

.al-badge--psa {
    background: rgba(220,120,100,.08);
    color: #dc7864;
    border: 1px solid rgba(220,120,100,.2);
}

/* === Sections === */
.al-section { margin-bottom: 2rem; }
.al-section__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--al-text-soft);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--al-border);
}

/* === Tag list === */
.al-tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.al-tag {
    font-size: .82rem;
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-radius: 20px;
    padding: .25rem .85rem;
    color: var(--al-text-muted);
}

/* ============================================================
   Competition detail
   ============================================================ */
.al-scroll-target {
    scroll-margin-top: 6.5rem;
}

/* Mobile sticky bar */
.al-mobile-stickybar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .75rem;
    margin: 0 0 1rem;
    border: 1px solid var(--al-border);
    border-radius: 12px;
    background: rgba(15,17,26,.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.al-mobile-stickybar__back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--al-text-soft);
    text-decoration: none;
    border: 1px solid var(--al-border);
    padding: .35rem .55rem;
    border-radius: 10px;
}
.al-mobile-stickybar__back:hover { color: var(--al-accent); border-color: rgba(var(--al-accent-rgb), .35); }
.al-mobile-stickybar__title {
    font-size: .85rem;
    color: var(--al-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* Jump chips (mobile) */
.al-comp-jump-chips {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .75rem;
    margin-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.al-comp-jump-chips::-webkit-scrollbar { display: none; }
.al-comp-jump-chip {
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 600;
    padding: .35rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--al-border);
    color: var(--al-text-soft);
    text-decoration: none;
    background: rgba(255,255,255,.03);
    transition: border-color var(--al-transition), color var(--al-transition);
}
.al-comp-jump-chip:hover { border-color: rgba(var(--al-accent-rgb), .4); color: var(--al-accent); }

/* Hero */
.al-comp-hero {
    position: relative;
    min-height: 220px;
    max-height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--al-radius-card);
    margin-bottom: 1.5rem;
}
.al-comp-hero__bg { position: absolute; inset: 0; z-index: 0; }
.al-comp-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.al-comp-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(15,17,26,.2) 0%, rgba(15,17,26,.55) 45%, rgba(15,17,26,.95) 85%, rgba(15,17,26,1) 100%);
}
.al-comp-hero:not(:has(.al-comp-hero__bg)) {
    min-height: 160px;
    background: linear-gradient(135deg, rgba(201,168,76,.08) 0%, rgba(15,17,26,0) 60%);
    border: 1px solid var(--al-border);
}
.al-comp-hero:not(:has(.al-comp-hero__bg)) .al-comp-hero__title { color: var(--al-text); text-shadow: none; }
.al-comp-hero:not(:has(.al-comp-hero__bg)) .al-comp-hero__sub { color: var(--al-text-muted); }
.al-comp-hero__content {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.25rem;
    width: 100%;
}
.al-comp-hero__badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.al-comp-hero__title {
    font-size: clamp(1.35rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 .35rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.al-comp-hero__sub { font-size: .88rem; color: rgba(255,255,255,.7); margin: 0; line-height: 1.5; }

/* Two-column layout */
.al-comp-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .al-comp-layout { grid-template-columns: minmax(240px, 280px) 1fr; gap: 2.5rem; }
}

.al-comp-sidebar__inner {
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    padding: 1.25rem 1.35rem;
}
@media (min-width: 1024px) {
    .al-comp-sidebar { position: sticky; top: 5rem; align-self: start; }
}
.al-comp-sidebar__heading {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--al-accent);
    margin: 0 0 1rem;
}

.al-comp-code-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--al-border);
}
.al-comp-code-row__label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--al-text-muted);
    width: 100%;
}
.al-comp-code-row__value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .9rem;
    color: var(--al-accent);
    flex: 1;
    word-break: break-all;
}
.al-comp-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem;
    border-radius: 8px;
    border: 1px solid var(--al-border);
    background: rgba(255,255,255,.04);
    color: var(--al-text-soft);
    cursor: pointer;
    transition: border-color var(--al-transition), color var(--al-transition);
}
.al-comp-copy-btn:hover { border-color: rgba(var(--al-accent-rgb), .4); color: var(--al-accent); }

/* Timeline */
.al-comp-timeline {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0 0 0 1rem;
    border-left: 2px solid var(--al-border);
}
.al-comp-timeline__item {
    position: relative;
    padding: 0 0 1rem .85rem;
}
.al-comp-timeline__item:last-child { padding-bottom: 0; }
.al-comp-timeline__item::before {
    content: '';
    position: absolute;
    left: -1.35rem;
    top: .35rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--al-border);
    border: 2px solid var(--al-bg);
    transform: translateX(-50%);
}
.al-comp-timeline__item--upcoming::before {
    background: var(--al-accent);
    box-shadow: 0 0 0 3px rgba(var(--al-accent-rgb), .2);
}
.al-comp-timeline__item--upcoming .al-comp-timeline__date { color: var(--al-accent); }
.al-comp-timeline__label {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--al-text-muted);
    margin-bottom: .15rem;
}
.al-comp-timeline__date { font-size: .88rem; font-weight: 600; color: var(--al-text); }

.al-comp-sidebar-block { margin-bottom: 1rem; }
.al-comp-sidebar-block__label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--al-text-muted);
    margin: 0 0 .4rem;
}
.al-comp-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .84rem;
    color: var(--al-text-soft);
    line-height: 1.6;
}
.al-comp-sidebar-list li + li { margin-top: .2rem; }

.al-comp-sidebar-nav { padding-top: 1rem; border-top: 1px solid var(--al-border); }
.al-comp-sidebar-nav__title {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--al-text-muted);
    margin: 0 0 .5rem;
}
.al-comp-sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.al-comp-sidebar-nav a {
    display: block;
    font-size: .84rem;
    color: var(--al-text-soft);
    text-decoration: none;
    padding: .25rem 0;
    transition: color var(--al-transition);
}
.al-comp-sidebar-nav a:hover { color: var(--al-accent); }

/* Main column */
.al-comp-section { margin-bottom: 1.5rem; }
.al-comp-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--al-text-soft);
    margin: 0 0 .75rem;
}
.al-comp-subsection__title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--al-text-muted);
    margin: 0 0 1rem;
}

.al-desc-block {
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-left: 3px solid rgba(var(--al-accent-rgb), .5);
    border-radius: 0 10px 10px 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.al-desc-block__text { font-size: .95rem; color: var(--al-text-soft); margin: 0; white-space: pre-line; line-height: 1.8; }

.al-fiap-callout {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(90deg, rgba(var(--al-accent-rgb),.08) 0%, rgba(var(--al-accent-rgb),.03) 100%);
    border: 1px solid rgba(var(--al-accent-rgb),.2);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}
.al-fiap-callout__icon { color: var(--al-accent); flex-shrink: 0; }
.al-fiap-callout__label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--al-text-muted);
    margin: 0 0 .2rem;
    font-weight: 600;
}
.al-fiap-callout__name { font-size: 1.1rem; font-weight: 800; color: var(--al-accent); margin: 0; }

/* Category sections */
.al-kat-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--al-border);
}
.al-kat-section__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--al-text);
    margin: 0 0 1.25rem;
    padding-bottom: .65rem;
    border-bottom: 2px solid rgba(var(--al-accent-rgb),.2);
}

/* Jury */
.al-jury-panels { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.al-jury-panel {
    width: 100%;
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}
.al-jury-panel--alt { border-style: dashed; opacity: .9; }
.al-jury-panel__label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--al-accent);
    margin: 0 0 .85rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.al-jury-panel--alt .al-jury-panel__label { color: var(--al-text-muted); }
.al-jury-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem 1rem;
}
.al-jury-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    color: var(--al-text-soft);
    text-align: center;
    min-width: 0;
}
.al-jury-member__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--al-accent-rgb),.12);
    border: 1px solid rgba(var(--al-accent-rgb),.2);
    color: var(--al-accent);
    font-size: .78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.al-jury-member__avatar--alt {
    background: rgba(255,255,255,.04);
    border-color: var(--al-border);
    color: var(--al-text-muted);
}
.al-jury-member__name {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.al-jury-member__title { font-size: .72rem; color: var(--al-text-muted); line-height: 1.35; }

/* Awards */
.al-awards-section { display: flex; flex-direction: column; gap: 1rem; }
.al-award-section--top {
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    padding: 1.25rem 1.5rem;
}
.al-award-accordion {
    background: rgba(255,255,255,.02);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    padding: 0;
    overflow: hidden;
}
.al-award-accordion__summary {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
}
.al-award-accordion__summary::-webkit-details-marker { display: none; }
.al-award-accordion[open] .al-award-accordion__summary { border-bottom: 1px solid var(--al-border); }
.al-award-accordion .al-bulk-winners { padding: 1rem 1.25rem 1.25rem; margin: 0; }

.al-award-section__head { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; }
.al-award-section__name { font-size: .95rem; font-weight: 700; color: var(--al-accent); }
.al-award-section__count {
    font-size: .72rem;
    font-weight: 700;
    background: rgba(var(--al-accent-rgb),.1);
    color: var(--al-accent);
    border: 1px solid rgba(var(--al-accent-rgb),.2);
    border-radius: 20px;
    padding: 1px 8px;
}

.al-top-winners {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .al-top-winners { grid-template-columns: repeat(2, 1fr); }
}
.al-top-winner { display: flex; flex-direction: column; gap: .75rem; }
.al-top-winner--penalised { opacity: .55; }
.al-top-winner__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    max-height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--al-border);
}
.al-top-winner__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* === Multi-photo winner set (grouped/ordered categories) === */
/* A set-winner occupies a full-width row: name + location on top, photo strip below. */
.al-top-winner--set,
.al-bulk-winner--set {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
    padding: .9rem 1rem;
    border: 1px solid var(--al-border);
    border-radius: 10px;
    background: rgba(255,255,255,.02);
}
/* Name + location header sits above the thumbnail strip. */
.al-top-winner--set .al-top-winner__info,
.al-bulk-winner--set .al-bulk-winner__info {
    order: -1;
}
.al-winner-set {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    width: 100%;
}
/* Scoped under .al-winner-set so these win over the later, equal-specificity
   `.al-photo-trigger { width:100%; height:100% }` rule. */
.al-winner-set .al-winner-set__thumb {
    position: relative;
    padding: 0;
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
    border: 1px solid var(--al-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--al-border);
    cursor: pointer;
}
.al-winner-set .al-winner-set__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.al-winner-set .al-winner-set__thumb:hover img { transform: scale(1.05); }
.al-winner-set--bulk .al-winner-set__thumb { width: 88px; height: 88px; }

@media (max-width: 575px) {
    .al-winner-set .al-winner-set__thumb { width: 84px; height: 84px; }
    .al-winner-set--bulk .al-winner-set__thumb { width: 72px; height: 72px; }
}

.al-top-winner__penalty-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(220,53,69,.85);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    text-align: center;
    padding: 2px;
    text-transform: uppercase;
}
.al-top-winner__name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--al-text);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}
.al-top-winner__loc {
    font-size: .8rem;
    color: var(--al-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.al-bulk-winners {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
}
.al-bulk-winner { display: flex; align-items: flex-start; gap: .6rem; }
.al-bulk-winner--penalised { opacity: .55; }
.al-bulk-winner__photo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--al-border);
}
.al-bulk-winner__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-bulk-winner__info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.al-bulk-winner__name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--al-text-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    word-break: break-word;
}
.al-bulk-winner__loc {
    font-size: .73rem;
    color: var(--al-text-muted);
    display: flex;
    align-items: flex-start;
    gap: .25rem;
}

.al-badge--penalised {
    background: rgba(220,53,69,.1);
    color: #dc3545;
    border: 1px solid rgba(220,53,69,.2);
    font-size: .65rem;
    padding: 1px 6px;
}

/* Person directory (jury / representative) */
.al-jury-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding-bottom: 2.5rem;
}
.al-jury-card {
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    background: var(--al-bg-card);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .35rem;
}
.al-jury-card--link {
    text-decoration: none;
    color: inherit;
    transition: border-color var(--al-transition), box-shadow var(--al-transition), transform var(--al-transition);
}
.al-jury-card--link:hover {
    border-color: rgba(var(--al-accent-rgb), .35);
    box-shadow: var(--al-shadow-hover);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.al-jury-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 800;
    color: var(--al-accent);
    border: 1px solid rgba(var(--al-accent-rgb), .2);
    background: rgba(var(--al-accent-rgb), .12);
}
.al-jury-card__name {
    margin: .2rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--al-text);
}
.al-jury-card__title {
    margin: 0;
    font-size: .8rem;
    color: var(--al-text-muted);
    line-height: 1.45;
}
.al-jury-card__meta {
    margin: .35rem 0 0;
    font-size: .75rem;
    color: var(--al-text-soft);
    border-top: 1px solid var(--al-border);
    width: 100%;
    padding-top: .5rem;
}
.al-person-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.al-person-profile__avatar {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--al-accent);
    border: 1px solid rgba(var(--al-accent-rgb), .25);
    background: rgba(var(--al-accent-rgb), .12);
    flex-shrink: 0;
}
.al-person-profile__count {
    margin: .35rem 0 0;
    font-size: .85rem;
    color: var(--al-text-muted);
}
.al-person-contests {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
}
.al-winner-detail__category {
    margin: 0;
    font-size: .78rem;
    color: var(--al-text-muted);
}
.al-badge--role {
    background: rgba(var(--al-accent-rgb), .12);
    color: var(--al-accent);
    border: 1px solid rgba(var(--al-accent-rgb), .25);
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 4px;
}
.al-badge--role-alt {
    background: rgba(255, 255, 255, .04);
    color: var(--al-text-muted);
    border: 1px solid var(--al-border);
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.al-back-link { padding: 2rem 0 2.5rem; }
.al-back-link__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 2.25rem;
    padding: 0 1rem;
    border-radius: 8px;
    border: 1px solid var(--al-border);
    font-size: .875rem;
    font-weight: 600;
    color: var(--al-text-soft);
    text-decoration: none;
    transition: border-color var(--al-transition), color var(--al-transition);
}
.al-back-link__btn:hover { border-color: rgba(var(--al-accent-rgb), .4); color: var(--al-accent); }

@media (max-width: 767px) {
    .al-comp-hero { min-height: 200px; max-height: 280px; }
    .al-jury-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .al-bulk-winners { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .al-jury-list { grid-template-columns: 1fr; }
}

/* === Global search === */
.al-search-form { max-width: 36rem; margin: 0 auto; }
.al-search-form--hero { margin-top: 1.75rem; }
.al-search-form--page { max-width: none; margin: 0; }
.al-search-form__reset { flex-shrink: 0; white-space: nowrap; }
.al-search-form__inner {
    display: flex;
    gap: .5rem;
    align-items: stretch;
}
.al-search-form__input {
    flex: 1;
    min-width: 0;
    border-radius: 8px;
    border: 1px solid var(--al-border);
    background: #171a24;
    padding: .65rem .85rem;
    font-size: .95rem;
    color: var(--al-text);
}
.al-search-form__input:focus {
    outline: none;
    border-color: var(--al-accent);
}
.al-search-form__btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 0 1rem;
    border-radius: 8px;
    border: none;
    background: var(--al-accent);
    color: #0d0f14;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--al-transition);
    white-space: nowrap;
}
.al-search-form__btn:hover { opacity: .9; }
.al-search-form__hint {
    margin: .5rem 0 0;
    font-size: .78rem;
    color: var(--al-text-muted);
    text-align: center;
}
.al-search-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2.5rem;
}
.al-search-result {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: stretch;
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    overflow: hidden;
}
.al-search-result__main {
    display: flex;
    gap: 1rem;
    padding: 1rem 1rem 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    transition: background var(--al-transition);
}
.al-search-result__main:hover {
    background: rgba(var(--al-accent-rgb), .04);
    color: inherit;
    text-decoration: none;
}
.al-search-result__poster {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
}
.al-search-result__poster img { width: 100%; height: 100%; object-fit: cover; }
.al-search-result__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.al-search-result__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.al-badge--winner {
    background: rgba(var(--al-accent-rgb), .12);
    color: var(--al-accent);
    border: 1px solid rgba(var(--al-accent-rgb), .25);
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 4px;
}
.al-search-result__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--al-text);
    margin: 0;
}
.al-search-result__cta {
    font-size: .78rem;
    font-weight: 600;
    color: var(--al-accent);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: auto;
}
.al-search-result__year {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .25rem;
    padding: 1rem 1.25rem;
    border-left: 1px solid var(--al-border);
    background: rgba(0, 0, 0, .15);
    text-align: center;
    min-width: 7rem;
}
.al-search-result__year-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--al-text-muted);
}
.al-search-result__year-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: color var(--al-transition);
}
.al-search-result__year-link:hover { color: var(--al-accent); text-decoration: none; }
.al-search-result__year-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--al-accent);
    line-height: 1;
}
.al-search-result__year-sub {
    font-size: .72rem;
    color: var(--al-text-soft);
    max-width: 8rem;
    line-height: 1.3;
}
@media (max-width: 640px) {
    .al-search-result { grid-template-columns: 1fr; }
    .al-search-result__year {
        border-left: none;
        border-top: 1px solid var(--al-border);
        flex-direction: row;
        justify-content: space-between;
        padding: .75rem 1rem;
    }
    .al-search-form__btn span { display: none; }
}

/* === Shared page header === */
.al-page-header { padding: 2rem 0 1rem; }
.al-page-header__title { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; color: var(--al-accent); margin: 0 0 .25rem; }
.al-page-header__sub { color: var(--al-text-muted); font-size: .9rem; margin: 0; }

/* === Profile links (competition cross-links) === */
.al-profile-link {
    color: var(--al-accent);
    text-decoration: none;
    transition: color var(--al-transition);
}
.al-profile-link:hover { color: #e0c878; text-decoration: underline; }
.al-comp-hero__sub .al-profile-link { color: rgba(255,255,255,.92); }
.al-comp-hero__sub .al-profile-link:hover { color: var(--al-accent); }

/* === Index hero & stats === */
.al-hero { padding: 3rem 0 2.5rem; text-align: center; }
.al-hero__eyebrow { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--al-accent); margin-bottom: .5rem; }
.al-hero__title { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; color: var(--al-text); line-height: 1.1; margin: 0; }
.al-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.25rem 2rem;
    padding: 1.5rem 0 2rem;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}
.al-stat-item { display: flex; flex-direction: column; gap: .35rem; }
.al-stat-item--link {
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    padding: .5rem .25rem;
    transition: background var(--al-transition), transform var(--al-transition);
}
.al-stat-item--link:hover { background: rgba(var(--al-accent-rgb), .06); transform: translateY(-1px); color: inherit; text-decoration: none; }
.al-stat-item--link:hover .al-stat-label { color: var(--al-accent); }
.al-stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--al-accent); line-height: 1; }
.al-stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--al-text-muted); }
.al-year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    padding-bottom: 3rem;
}
.al-year-card {
    display: flex;
    flex-direction: column;
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    transition: border-color var(--al-transition), box-shadow var(--al-transition), transform var(--al-transition);
    color: inherit;
}
.al-year-card:hover {
    border-color: rgba(var(--al-accent-rgb), .35);
    box-shadow: var(--al-shadow-hover);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.al-year-card__year { font-size: 2.5rem; font-weight: 800; color: var(--al-accent); line-height: 1; margin-bottom: .3rem; }
.al-year-card__subtitle { font-size: .85rem; color: var(--al-text-soft); margin-bottom: .75rem; }
.al-year-card__count { font-size: .82rem; color: var(--al-text-muted); margin-top: auto; margin-bottom: .75rem; }
.al-year-card__cta { font-size: .8rem; font-weight: 600; color: var(--al-accent); display: inline-flex; align-items: center; gap: .3rem; }

/* === Year page filters & competition list === */
.al-filter-form { background: var(--al-bg-card); border: 1px solid var(--al-border); border-radius: var(--al-radius-card); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.al-filter-input {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--al-border);
    background: #171a24;
    padding: .5rem .75rem;
    font-size: .875rem;
    color: var(--al-text);
}
.al-filter-input:focus { border-color: var(--al-accent); outline: none; }
.al-btn-filter { background: var(--al-accent); border-color: var(--al-accent); color: #111; font-weight: 700; }
.al-btn-filter:hover { filter: brightness(1.1); color: #111; }
.al-comp-list { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 3rem; }
.al-comp-card {
    display: flex;
    gap: 1.25rem;
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--al-transition), box-shadow var(--al-transition);
}
.al-comp-card:hover { border-color: rgba(var(--al-accent-rgb), .3); box-shadow: var(--al-shadow-hover); color: inherit; text-decoration: none; }
.al-comp-card__poster { flex-shrink: 0; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; }
.al-comp-card__poster img { width: 100%; height: 100%; object-fit: cover; }
.al-comp-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.al-comp-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.al-comp-card__title { font-size: 1rem; font-weight: 700; color: var(--al-text); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-comp-card__date { font-size: .8rem; color: var(--al-text-muted); margin: 0; display: flex; align-items: center; gap: .3rem; }
.al-comp-card__cta { font-size: .78rem; font-weight: 600; color: var(--al-accent); display: inline-flex; align-items: center; gap: .25rem; margin-top: auto; }

/* === Organiser directory === */
.al-organiser-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding-bottom: 2rem;
}
.al-organiser-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--al-transition), box-shadow var(--al-transition);
}
.al-organiser-card--link:hover { border-color: rgba(var(--al-accent-rgb), .35); box-shadow: var(--al-shadow-hover); color: inherit; text-decoration: none; }
.al-organiser-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background: rgba(var(--al-accent-rgb), .12);
    color: var(--al-accent);
}
.al-organiser-card__icon--lg { width: 3.5rem; height: 3.5rem; flex-shrink: 0; }
.al-organiser-card__name { font-size: 1rem; font-weight: 700; color: var(--al-text); margin: 0; line-height: 1.35; }
.al-organiser-card__meta { font-size: .8rem; color: var(--al-text-muted); margin: 0; }

/* === Search grouped sections === */
.al-search-section { margin-bottom: 2.5rem; }
.al-search-section__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--al-text);
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--al-border);
}
.al-search-section__count {
    font-size: .75rem;
    font-weight: 600;
    color: var(--al-text-muted);
    background: rgba(255,255,255,.05);
    padding: .15rem .5rem;
    border-radius: 999px;
}
.al-search-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}
.al-search-person {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--al-transition);
}
.al-search-person:hover { border-color: rgba(var(--al-accent-rgb), .35); color: inherit; text-decoration: none; }
.al-search-person__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(var(--al-accent-rgb), .15);
    color: var(--al-accent);
    font-weight: 700;
    flex-shrink: 0;
}
.al-search-person__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.al-search-person__name { font-weight: 600; color: var(--al-text); }
.al-search-person__meta { font-size: .78rem; color: var(--al-text-muted); }

.al-search-form__type {
    max-width: 13rem;
    flex: 0 0 auto;
}

.al-search-section__more {
    font-size: .78rem;
    color: var(--al-accent);
    text-decoration: none;
    margin-left: .5rem;
}

.al-search-section__more:hover {
    text-decoration: underline;
}

.al-search-advanced {
    margin-top: .65rem;
    display: flex;
    flex-wrap: wrap;
    gap: .9rem 1rem;
    align-items: flex-end;
}

.al-search-advanced .al-filter-input {
    max-width: 11.5rem;
}

/* Labeled, grouped filters (year, code, date-range pairs). */
.al-filter-group {
    display: inline-flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
    border: 0;
    padding: 0;
    margin: 0;
}
.al-filter-group--range {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}
.al-filter-group--range > .al-filter-group__label {
    flex-basis: 100%;
    margin-bottom: .1rem;
}
.al-filter-group__label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--al-text-muted);
    letter-spacing: .03em;
    text-transform: uppercase;
}
.al-filter-range__sep {
    color: var(--al-text-muted);
    font-size: .9rem;
    padding: 0 .15rem;
}

/* Toggles cluster — sits to the side of the labeled groups. */
.al-filter-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    align-items: center;
    flex-basis: 100%;
    margin-top: .25rem;
    padding-top: .65rem;
    border-top: 1px dashed var(--al-border);
}

/* Collapsible advanced filters */
.al-search-advanced-wrap { margin-top: .65rem; }
.al-search-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    list-style: none;
    font-size: .8rem;
    font-weight: 600;
    color: var(--al-text-soft);
    user-select: none;
}
.al-search-advanced-toggle::-webkit-details-marker { display: none; }
.al-search-advanced-toggle:hover { color: var(--al-accent); }
.al-search-advanced-wrap .al-advanced-label-hide { display: none; }
.al-search-advanced-wrap[open] .al-advanced-label-show { display: none; }
.al-search-advanced-wrap[open] .al-advanced-label-hide { display: inline; }

/* Removable active-filter chips */
.al-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.25rem;
}
.al-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--al-accent-rgb), .35);
    background: rgba(var(--al-accent-rgb), .1);
    color: var(--al-text-soft);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--al-transition), color var(--al-transition), background var(--al-transition);
}
.al-filter-chip:hover {
    border-color: var(--al-accent);
    color: var(--al-accent);
    text-decoration: none;
}
.al-filter-chip--clear {
    background: transparent;
    border-style: dashed;
}

/* Search query highlight */
mark.al-hl {
    background: rgba(var(--al-accent-rgb), .28);
    color: inherit;
    border-radius: 3px;
    padding: 0 .1em;
}

@media (prefers-reduced-motion: reduce) {
    .al-filter-chip { transition: none; }
}

.al-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
}

.al-insight-card {
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    padding: .8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.al-insight-card__label {
    font-size: .88rem;
    font-weight: 700;
    color: var(--al-text);
}

.al-insight-card__sub {
    font-size: .76rem;
    color: var(--al-text-muted);
}

.al-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1rem;
}

.al-quick-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--al-border);
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .76rem;
    color: var(--al-text-soft);
    text-decoration: none;
    transition: border-color var(--al-transition), color var(--al-transition), background var(--al-transition);
}

.al-quick-link:hover {
    border-color: rgba(var(--al-accent-rgb), .35);
    color: var(--al-accent);
    background: rgba(var(--al-accent-rgb), .08);
    text-decoration: none;
}

.al-filter-toggle-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    align-items: center;
}

.al-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .76rem;
    color: var(--al-text-soft);
}

.al-filter-toggle input[type="checkbox"] {
    accent-color: var(--al-accent);
}

/* === Yearly duty chart (person detail) === */
.al-person-contests__heading {
    margin-bottom: 1rem;
}

.al-yearly-chart {
    margin-bottom: 0.5rem;
}

.al-yearly-chart__head {
    margin-bottom: 1rem;
}

.al-yearly-chart__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--al-text);
    margin: 0 0 0.35rem;
}

.al-yearly-chart__summary {
    margin: 0;
    font-size: 0.82rem;
    color: var(--al-text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.al-yearly-chart__summary-sep {
    opacity: 0.5;
}

.al-yearly-chart__card {
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    padding: 1.25rem 1rem 1rem;
}

.al-yearly-chart__plot {
    position: relative;
    min-height: 12rem;
    padding-top: 0.5rem;
}

.al-yearly-chart__grid {
    position: absolute;
    inset: 0.5rem 0 2rem;
    background-image: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px
    );
    background-size: 100% 25%;
    pointer-events: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.al-yearly-chart__bars {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    min-height: 10.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--al-accent-rgb), 0.35) transparent;
}

.al-yearly-chart__col {
    flex: 1 1 0;
    min-width: 2.25rem;
    max-width: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.al-yearly-chart__value {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--al-accent);
    min-height: 1rem;
    line-height: 1;
}

.al-yearly-chart__col--zero .al-yearly-chart__value {
    visibility: hidden;
}

.al-yearly-chart__bar-wrap {
    width: 100%;
    height: 8.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.al-yearly-chart__bar {
    position: relative;
    width: min(100%, 1.75rem);
    height: var(--al-bar-h, 0%);
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(
        180deg,
        rgba(var(--al-accent-rgb), 0.95) 0%,
        rgba(var(--al-accent-rgb), 0.45) 100%
    );
    box-shadow: 0 0 12px rgba(var(--al-accent-rgb), 0.2);
    transition: height 0.35s ease, filter 0.2s ease;
}
button.al-yearly-chart__bar { cursor: pointer; }

.al-yearly-chart__col:not(.al-yearly-chart__col--zero):hover .al-yearly-chart__bar,
button.al-yearly-chart__bar:focus-visible {
    filter: brightness(1.12);
}
button.al-yearly-chart__bar:focus-visible {
    outline: 2px solid var(--al-accent);
    outline-offset: 3px;
}
button.al-yearly-chart__bar.is-active {
    filter: brightness(1.25);
    box-shadow: 0 0 0 2px var(--al-accent), 0 0 14px rgba(var(--al-accent-rgb), 0.35);
}

/* Bar tooltip (shown on hover/focus) */
.al-yearly-chart__tip {
    position: absolute;
    bottom: calc(100% + 0.4rem);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(15, 17, 26, 0.96);
    border: 1px solid var(--al-border);
    color: var(--al-text);
    font-size: 0.72rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 5;
}
button.al-yearly-chart__bar:hover .al-yearly-chart__tip,
button.al-yearly-chart__bar:focus-visible .al-yearly-chart__tip {
    opacity: 1;
    visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
    .al-yearly-chart__bar,
    .al-yearly-chart__tip { transition: none; }
}

.al-yearly-chart__col--zero .al-yearly-chart__bar {
    height: 3px !important;
    width: 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.al-yearly-chart__year {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--al-text-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.al-yearly-chart__col:not(.al-yearly-chart__col--zero) .al-yearly-chart__year {
    color: var(--al-text-soft);
}

@media (max-width: 575px) {
    .al-hero { padding: 2.25rem 0 1.75rem; }
    .al-stats-bar { gap: 1rem 1.25rem; padding: 1.25rem 0 1.25rem; }
    .al-yearly-chart__col { min-width: 2rem; }
    .al-yearly-chart__bar-wrap { height: 7rem; }
}

/* ============================================================
   Competition detail — UX enhancements
   ============================================================ */

/* Scrollspy active states */
.al-comp-sidebar-nav a.is-active {
    color: var(--al-accent);
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--al-accent);
    padding-left: .6rem;
}
.al-comp-jump-chip.is-active {
    border-color: rgba(var(--al-accent-rgb), .55);
    background: rgba(var(--al-accent-rgb), .14);
    color: var(--al-accent);
}

/* Hero share button */
.al-comp-hero__actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.al-share-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--al-transition), background var(--al-transition), color var(--al-transition);
}
.al-comp-hero:not(:has(.al-comp-hero__bg)) .al-share-btn {
    background: var(--al-bg-card);
    color: var(--al-text);
}
.al-share-btn:hover { border-color: rgba(var(--al-accent-rgb), .6); color: var(--al-accent); }
.al-share-btn.is-copied { border-color: rgba(var(--al-accent-rgb), .6); color: var(--al-accent); }

/* Overview show-more clamp */
.al-desc-block__text.al-clamped {
    max-height: 20rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.al-clamp-toggle {
    margin-top: .65rem;
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    color: var(--al-accent);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}
.al-clamp-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Winner filter + legend */
.al-awards-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.al-winner-filter {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 16rem;
    max-width: 22rem;
}
.al-winner-filter__icon {
    position: absolute;
    left: .65rem;
    color: var(--al-text-muted);
    pointer-events: none;
}
.al-winner-filter__input {
    width: 100%;
    padding: .5rem .75rem .5rem 2.1rem;
    border-radius: 8px;
    border: 1px solid var(--al-border);
    background: var(--al-bg-card);
    color: var(--al-text);
    font-size: .85rem;
}
.al-winner-filter__input:focus {
    outline: none;
    border-color: rgba(var(--al-accent-rgb), .5);
    box-shadow: 0 0 0 3px rgba(var(--al-accent-rgb), .12);
}
.al-penalised-legend {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: var(--al-text-muted);
    margin: 0;
}
.al-penalised-legend__swatch {
    width: .85rem;
    height: .85rem;
    border-radius: 3px;
    background: rgba(220,53,69,.85);
    flex-shrink: 0;
}
.al-winner-noresults {
    font-size: .85rem;
    color: var(--al-text-muted);
    font-style: italic;
    margin: 0;
}

/* Photo lightbox trigger */
.al-photo-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    position: relative;
}
.al-photo-trigger img { transition: transform var(--al-transition); }
.al-photo-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='white' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M17 11a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: 0 0;
    opacity: 0;
    transition: opacity var(--al-transition), background-color var(--al-transition);
}
.al-photo-trigger:hover::after,
.al-photo-trigger:focus-visible::after {
    opacity: 1;
    background-color: rgba(0,0,0,.35);
    background-size: 2rem 2rem;
}
.al-photo-trigger:hover img { transform: scale(1.05); }
.al-photo-trigger:focus-visible {
    outline: 2px solid var(--al-accent);
    outline-offset: 2px;
}

/* Lightbox overlay */
body.al-noscroll { overflow: hidden; }
.al-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
}
.al-lightbox[hidden] { display: none; }
.al-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8,9,14,.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.al-lightbox__figure {
    position: relative;
    z-index: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: min(96vw, 1100px);
    max-height: 100%;
}
.al-lightbox__img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 48px rgba(0,0,0,.6);
}
.al-lightbox--penalised .al-lightbox__img { opacity: .6; }
.al-lightbox__caption {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    text-align: center;
    color: var(--al-text);
}
.al-lightbox__name { font-size: 1rem; font-weight: 700; }
.al-lightbox__meta { font-size: .85rem; color: var(--al-text-soft); }
.al-lightbox__counter { font-size: .75rem; color: var(--al-text-muted); }
.al-lightbox__close,
.al-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.45);
    color: #fff;
    cursor: pointer;
    transition: background var(--al-transition), border-color var(--al-transition), color var(--al-transition);
}
.al-lightbox__close { top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; }
.al-lightbox__nav { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; }
.al-lightbox__nav--prev { left: 1rem; }
.al-lightbox__nav--next { right: 1rem; }
.al-lightbox__nav[hidden] { display: none; }
.al-lightbox__close:hover,
.al-lightbox__nav:hover {
    background: rgba(0,0,0,.7);
    border-color: rgba(var(--al-accent-rgb), .6);
    color: var(--al-accent);
}
.al-lightbox__close:focus-visible,
.al-lightbox__nav:focus-visible {
    outline: 2px solid var(--al-accent);
    outline-offset: 2px;
}
@media (max-width: 575px) {
    .al-lightbox__nav { width: 2.5rem; height: 2.5rem; }
    .al-lightbox__nav--prev { left: .35rem; }
    .al-lightbox__nav--next { right: .35rem; }
    .al-lightbox__img { max-height: 68vh; }
}

/* Floating back-to-top */
.al-back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    width: 2.85rem;
    height: 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--al-border);
    background: rgba(15,17,26,.92);
    color: var(--al-text-soft);
    box-shadow: var(--al-shadow-card);
    cursor: pointer;
    transition: color var(--al-transition), border-color var(--al-transition), transform var(--al-transition);
}
.al-back-to-top[hidden] { display: none; }
.al-back-to-top:hover {
    color: var(--al-accent);
    border-color: rgba(var(--al-accent-rgb), .5);
    transform: translateY(-2px);
}
@media (max-width: 767px) {
    .al-back-to-top { bottom: 4.75rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .al-photo-trigger img,
    .al-back-to-top,
    .al-share-btn,
    .al-lightbox__close,
    .al-lightbox__nav { transition: none; }
    .al-photo-trigger:hover img { transform: none; }
}

/* === Shared directory/list primitives === */

/* Keyboard focus ring for card links (mirrors .al-photo-trigger:focus-visible) */
.al-jury-card--link:focus-visible,
.al-organiser-card--link:focus-visible,
.al-year-card:focus-visible,
.al-comp-card:focus-visible,
.al-search-result__main:focus-visible {
    outline: 2px solid var(--al-accent);
    outline-offset: 2px;
}

/* Organiser cards lift on hover to match person cards */
.al-organiser-card--link {
    transition: border-color var(--al-transition), box-shadow var(--al-transition), transform var(--al-transition);
}
.al-organiser-card--link:hover { transform: translateY(-2px); }

/* Live in-page filter status + no-results message */
.al-filter-status {
    margin: 0 0 1rem;
    font-size: .85rem;
    color: var(--al-text-muted);
}
.al-filter-status[hidden] { display: none; }
.al-filter-noresults[hidden] { display: none; }

/* Richer empty-state with optional icon + CTA */
.al-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto .85rem;
    border-radius: 999px;
    color: var(--al-accent);
    background: rgba(var(--al-accent-rgb), .12);
    border: 1px solid rgba(var(--al-accent-rgb), .2);
}
.al-empty-state__cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 1rem;
    padding: .5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--al-border);
    color: var(--al-text-soft);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color var(--al-transition), color var(--al-transition);
}
.al-empty-state__cta:hover {
    border-color: rgba(var(--al-accent-rgb), .5);
    color: var(--al-accent);
}

/* Winner card meta stacks cleanly without <br> */
.al-jury-card__meta-line { display: block; }

/* Sticky search/filter toolbar on long list pages */
.al-list-toolbar {
    position: sticky;
    top: 3.75rem;
    z-index: 30;
    background: rgba(15,17,26,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.75rem;
    border-bottom: 1px solid var(--al-border);
}

/* Year-page filter chip + count row */
.al-year-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .85rem;
}
.al-year-filter-count { margin: 0; }
.al-comp-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    border: 1px solid var(--al-border);
    background: transparent;
    color: var(--al-text-soft);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--al-transition), color var(--al-transition), background var(--al-transition);
}
.al-comp-chip:hover { border-color: rgba(var(--al-accent-rgb), .5); color: var(--al-accent); }
.al-comp-chip[aria-pressed="true"] {
    background: var(--al-accent);
    border-color: var(--al-accent);
    color: #111;
}

/* Competition cards stack on narrow screens */
@media (max-width: 575px) {
    .al-comp-card { flex-direction: column; }
    .al-comp-card__poster { width: 100%; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
    .al-organiser-card--link,
    .al-comp-chip,
    .al-empty-state__cta { transition: none; }
}

/* === Person/org detail enhancements === */
.al-person-profile__body { flex: 1; min-width: 0; }
.al-person-profile__share { align-self: center; flex-shrink: 0; }

/* Sticky profile header */
.al-detail-profile-bar {
    position: sticky;
    top: 3.5rem;
    z-index: 20;
    background: rgba(15,17,26,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding-top: .75rem;
    padding-bottom: .75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--al-border);
}
.al-detail-profile-bar .al-person-profile { margin-bottom: 0; }

/* Heading + in-page filter row above the contest/award list */
.al-detail-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}
.al-detail-list-head .al-person-contests__heading { margin-bottom: 0; }

@media (max-width: 575px) {
    .al-detail-profile-bar { position: static; }
    .al-person-profile__share .al-share-btn__label { display: none; }
}

/* === Changelog (moved from inline <style>) === */
.al-page-banner { text-align: center; padding: 2.25rem 0 1.25rem; }
.al-page-banner__icon { font-size: 2.5rem; color: var(--al-accent); margin-bottom: .5rem; }
.al-page-banner__title { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 800; color: var(--al-text); margin: 0 0 .5rem; }
.al-page-banner__subtitle { color: var(--al-text-muted); margin: 0; }

.al-cl-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.al-cl-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--al-border); background: transparent; color: var(--al-text-soft); font-size: .78rem; font-weight: 600; cursor: pointer; transition: border-color var(--al-transition), color var(--al-transition), background var(--al-transition); }
.al-cl-chip:hover { border-color: rgba(var(--al-accent-rgb),.5); color: var(--al-accent); }
.al-cl-chip.is-active { background: var(--al-accent); border-color: var(--al-accent); color: #111; }

.al-cl-timeline { position: relative; padding-left: 2.5rem; }
.al-cl-timeline::before { content: ''; position: absolute; left: .7rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(to bottom, var(--al-accent) 0%, rgba(var(--al-accent-rgb),.3) 40%, rgba(var(--al-accent-rgb),.05) 100%); border-radius: 2px; }
.al-cl-item { position: relative; margin-bottom: 1.75rem; scroll-margin-top: 5rem; }
.al-cl-item:last-child { margin-bottom: 0; }
.al-cl-item[hidden] { display: none; }
.al-cl-dot { position: absolute; left: -1.85rem; top: 1.375rem; width: 12px; height: 12px; border-radius: 50%; background: rgba(var(--al-accent-rgb),.2); border: 2px solid rgba(var(--al-accent-rgb),.35); transition: background var(--al-transition); }
.al-cl-item--latest .al-cl-dot { background: var(--al-accent); border-color: var(--al-accent); box-shadow: 0 0 0 4px rgba(var(--al-accent-rgb),.15), 0 0 10px rgba(var(--al-accent-rgb),.25); width: 14px; height: 14px; left: -1.95rem; top: 1.3rem; }
.al-cl-card { background: var(--al-bg-card); border: 1px solid var(--al-border); border-radius: var(--al-radius-card); padding: 1.4rem 1.6rem; transition: border-color var(--al-transition), box-shadow var(--al-transition); }
.al-cl-card:hover { border-color: rgba(var(--al-accent-rgb),.3); box-shadow: var(--al-shadow-hover); }
.al-cl-item--latest .al-cl-card { border-color: rgba(var(--al-accent-rgb),.28); }
.al-cl-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.al-cl-version-wrap { display: flex; align-items: center; gap: .5rem; }
.al-cl-version-badge { display: inline-block; background: rgba(255,255,255,.04); color: var(--al-text-muted); border: 1px solid var(--al-border); border-radius: 6px; font-size: .775rem; font-weight: 700; letter-spacing: .06em; padding: 3px 11px; font-family: 'Courier New', monospace; }
.al-cl-version-badge--latest { background: var(--al-accent); color: #1a1a2e; border-color: var(--al-accent); }
.al-cl-anchor { display: inline-flex; align-items: center; justify-content: center; color: var(--al-text-muted); opacity: .55; transition: color var(--al-transition), opacity var(--al-transition); }
.al-cl-anchor:hover { color: var(--al-accent); opacity: 1; }
.al-cl-anchor.is-copied { color: var(--al-accent); opacity: 1; }
.al-cl-latest-label { display: inline-block; background: rgba(var(--al-accent-rgb),.1); color: var(--al-accent); border: 1px solid rgba(var(--al-accent-rgb),.22); border-radius: 20px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: 2px 10px; text-transform: uppercase; }
.al-cl-date { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--al-text-muted); white-space: nowrap; }
.al-cl-title { font-size: 1.02rem; font-weight: 750; color: var(--al-text-soft); margin-bottom: 1rem; line-height: 1.45; }
.al-cl-groups { display: flex; flex-direction: column; gap: .9rem; }
.al-cl-group[hidden] { display: none; }
.al-cl-group-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .4rem; }
.al-cl-type-new .al-cl-group-label { color: #7286ff; }
.al-cl-type-improved .al-cl-group-label { color: #09c2de; }
.al-cl-type-fixed .al-cl-group-label { color: var(--al-accent); }
.al-cl-list { list-style: none; margin: 0; padding: 0; }
.al-cl-list li { position: relative; padding-left: 1.1rem; font-size: .9rem; color: var(--al-text-muted); line-height: 1.8; }
.al-cl-list li::before { content: '–'; position: absolute; left: 0; color: rgba(var(--al-accent-rgb),.4); }
@media (max-width: 575px) {
    .al-cl-timeline { padding-left: 1.875rem; }
    .al-cl-timeline::before { left: .5rem; }
    .al-cl-dot { left: -1.45rem; }
    .al-cl-card { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .al-cl-chip,
    .al-cl-anchor,
    .al-cl-dot,
    .al-cl-card { transition: none; }
}

/* ============================================================
   YEAR PAGE — participation stats overview
   Self-contained; gender-bar / age-chart primitives are duplicated
   from the competition page's inline <style> so the year page can
   render them independently (zero regression risk to that page).
   ============================================================ */
.al-year-stats {
    background: var(--al-bg-card);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
    padding: 1.25rem 1.25rem 1.4rem;
    margin-top: 1.25rem;
}
.al-year-stats__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .35rem .75rem;
    margin-bottom: 1rem;
}
.al-year-stats__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--al-text);
    margin: 0;
}
.al-year-stats__note {
    font-size: .78rem;
    color: var(--al-text-muted);
}
.al-year-stats__block { margin-top: 1.25rem; }
.al-year-stats__subtitle {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--al-text-muted);
    margin: 0 0 .65rem;
}

.al-year-stats__cards {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.al-year-stat-card {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1rem 1.1rem;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-card);
}
.al-year-stat-card__num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--al-text);
    line-height: 1.1;
}
.al-year-stat-card__lbl {
    font-size: .78rem;
    color: var(--al-text-muted);
}

/* Gender bar + legend (mirrors competition page) */
.al-year-stats .al-gender-bar {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    margin-bottom: .75rem;
}
.al-year-stats .al-gender-bar__female { background: #e879a0; }
.al-year-stats .al-gender-bar__male   { background: #60a5fa; }
.al-year-stats .al-gender-bar__other  { background: rgba(255,255,255,.2); }
.al-year-stats .al-gender-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
}
.al-year-stats .al-gender-legend__item {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .83rem;
    color: var(--al-text-soft);
}
.al-year-stats .al-gender-legend__swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.al-year-stats .al-gender-legend__item--female .al-gender-legend__swatch { background: #e879a0; }
.al-year-stats .al-gender-legend__item--male   .al-gender-legend__swatch { background: #60a5fa; }
.al-year-stats .al-gender-legend__item--other  .al-gender-legend__swatch { background: rgba(255,255,255,.2); border: 1px solid var(--al-border); }
.al-year-stats .al-gender-legend__item strong { color: var(--al-text); font-weight: 700; }
.al-year-stats .al-gender-legend__pct { color: var(--al-text-muted); font-size: .75rem; }

/* Age chart (mirrors competition page) */
.al-year-stats .al-age-chart {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.al-year-stats .al-age-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr 3rem 3.5rem;
    align-items: center;
    gap: .6rem;
    font-size: .82rem;
}
.al-year-stats .al-age-row__label {
    color: var(--al-text-muted);
    font-weight: 600;
    white-space: nowrap;
}
.al-year-stats .al-age-row__bar-wrap {
    background: rgba(255,255,255,.05);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}
.al-year-stats .al-age-row__bar {
    height: 100%;
    background: rgba(var(--al-accent-rgb), .65);
    border-radius: 999px;
    min-width: 2px;
    transition: width .3s ease;
}
.al-year-stats .al-age-row__count {
    color: var(--al-text);
    font-weight: 700;
    text-align: right;
}
.al-year-stats .al-age-row__pct {
    color: var(--al-text-muted);
    font-size: .74rem;
    text-align: right;
}

@media (max-width: 575px) {
    .al-year-stats .al-age-row { grid-template-columns: 3rem 1fr 2.5rem; }
    .al-year-stats .al-age-row__pct { display: none; }
    .al-year-stats__cards { gap: .5rem; }
    .al-year-stat-card { flex: 1 1 90px; padding: .85rem .65rem; }
}

/* ============================================================
   STATISTICS SECTION (competition + year detail; legacy port)
   ============================================================ */
.al-stat-cards { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.al-stat-card {
    flex: 1 1 120px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--al-bg-card); border: 1px solid var(--al-border); border-radius: var(--al-radius-card);
    padding: 1.25rem .75rem; text-align: center; gap: .3rem;
}
.al-stat-card__num { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; color: var(--al-accent); line-height: 1; }
.al-stat-card__lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--al-text-muted); font-weight: 600; }

.al-stat-block { margin-bottom: 1.75rem; }
.al-stat-block__title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--al-text-muted); margin: 0 0 .85rem; }

.al-stat-table-wrap { overflow-x: auto; border-radius: var(--al-radius-card); border: 1px solid var(--al-border); }
.al-stat-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.al-stat-table th {
    background: rgba(255,255,255,.04); color: var(--al-text-muted); font-size: .7rem; text-transform: uppercase;
    letter-spacing: .06em; font-weight: 700; padding: .65rem 1rem; text-align: left; white-space: nowrap;
    border-bottom: 1px solid var(--al-border);
}
.al-stat-table th:not(:first-child), .al-stat-table td:not(:first-child) { text-align: right; }
.al-stat-table td { padding: .6rem 1rem; color: var(--al-text-soft); border-bottom: 1px solid rgba(255,255,255,.04); }
.al-stat-table tbody tr:last-child td { border-bottom: none; }
.al-stat-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.al-stat-table td:first-child { color: var(--al-text); font-weight: 500; }

.al-stat-more-body { display: none; }
.al-stat-block:has(.al-stat-more[open]) .al-stat-more-body { display: table-row-group; }
.al-stat-more { margin-top: .6rem; }
.al-stat-more__summary { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--al-accent); list-style: none; }
.al-stat-more__summary::-webkit-details-marker { display: none; }
.al-stat-more__summary:hover { text-decoration: underline; }
.al-stat-more__hide { display: none; }
.al-stat-more[open] .al-stat-more__show { display: none; }
.al-stat-more[open] .al-stat-more__hide { display: inline; }

@media (max-width: 575px) {
    .al-stat-cards { gap: .5rem; }
    .al-stat-card { flex: 1 1 90px; padding: 1rem .5rem; }
}

/* ============================================================
   Grid overflow fix + unscoped gender/age (competition stats)
   ============================================================ */
.al-comp-main { min-width: 0; }
.al-comp-sidebar { min-width: 0; }

.al-gender-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.06); margin-bottom: .75rem; }
.al-gender-bar__female { background: #e879a0; }
.al-gender-bar__male   { background: #60a5fa; }
.al-gender-bar__other  { background: rgba(255,255,255,.2); }
.al-gender-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.al-gender-legend__item { display: flex; align-items: center; gap: .45rem; font-size: .83rem; color: var(--al-text-soft); }
.al-gender-legend__swatch { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.al-gender-legend__item--female .al-gender-legend__swatch { background: #e879a0; }
.al-gender-legend__item--male   .al-gender-legend__swatch { background: #60a5fa; }
.al-gender-legend__item--other  .al-gender-legend__swatch { background: rgba(255,255,255,.2); border: 1px solid var(--al-border); }
.al-gender-legend__item strong { color: var(--al-text); font-weight: 700; }
.al-gender-legend__pct { color: var(--al-text-muted); font-size: .75rem; }

.al-age-chart { display: flex; flex-direction: column; gap: .5rem; }
.al-age-row { display: grid; grid-template-columns: 3.5rem 1fr 3rem 3.5rem; align-items: center; gap: .6rem; font-size: .82rem; }
.al-age-row__label { color: var(--al-text-muted); font-weight: 600; white-space: nowrap; }
.al-age-row__bar-wrap { background: rgba(255,255,255,.05); border-radius: 999px; height: 8px; overflow: hidden; }
.al-age-row__bar { height: 100%; background: rgba(var(--al-accent-rgb), .65); border-radius: 999px; min-width: 2px; transition: width .3s ease; }
.al-age-row__count { color: var(--al-text); font-weight: 700; text-align: right; }
.al-age-row__pct { color: var(--al-text-muted); font-size: .74rem; text-align: right; }

@media (max-width: 575px) {
    .al-age-row { grid-template-columns: 3rem 1fr 2.5rem; }
    .al-age-row__pct { display: none; }
}
