:root {
    color-scheme: light dark;

    --accent: #2f6fff;

    --bg: #dfe6f0;
    --bg-alt: #d3dceb;
    --surface: #f3f6fb;
    --surface-soft: #eaf0f8;
    --header: #20242b;
    --header-accent: #1f355f;
    --text: #1f2937;
    --text-soft: #596679;
    --text-inverse: #e5e7eb;
    --border: #c7d2e2;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --ticker-bg: #d7e0ec;
    --ticker-pill: #eef3f9;
    --button-text: #ffffff;
}

:root[data-theme="dark"] {
    --bg: #0c1320;
    --bg-alt: #111a29;
    --surface: #182233;
    --surface-soft: #1d293b;
    --header: #1c2027;
    --header-accent: #173261;
    --text: #d8dee7;
    --text-soft: #9faaba;
    --text-inverse: #f3f4f6;
    --border: #2c3b52;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    --ticker-bg: #101926;
    --ticker-pill: #182233;
    --button-text: #f8fafc;
}

* {
    box-sizing: border-box;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-alt);
}

html {
    background: var(--bg);
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-y: scroll;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent) 70%, #4b5563);
    border-radius: 999px;
    border: 2px solid var(--bg-alt);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

::-webkit-scrollbar-corner {
    background: var(--bg-alt);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: relative;
    color: var(--text-inverse);
    border-bottom: 0;
    background:
        linear-gradient(rgba(12, 19, 32, 0.38), rgba(12, 19, 32, 0.42)),
        linear-gradient(90deg, rgba(28, 32, 39, 0.46) 0%, rgba(23, 50, 97, 0.40) 100%),
        url("https://beta.dbzp.nl/assets/images/headerbackground.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(12, 19, 32, 0) 0%,
        rgba(12, 19, 32, 0.10) 55%,
        rgba(12, 19, 32, 0.18) 100%
    );
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 20px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    flex-shrink: 0;
}

.logo img {
    display: block;
    height: 160px;
    width: auto;
    max-width: 100%;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.main-nav__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.94);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #ffffff;
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.20);
    transform: translateY(-1px);
}

.main-nav a.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(47, 111, 255, 0.28);
}

.main-nav a.is-active:hover,
.main-nav a.is-active:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: none;
}


.main-nav__group {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.main-nav__parent::after {
    content: "▾";
    margin-left: 8px;
    font-size: 0.75em;
    opacity: 0.8;
}

.main-nav__submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    min-width: 250px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(10, 18, 31, 0.96);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    z-index: 50;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 6px;
}

.main-nav__submenu a {
    width: 100%;
    justify-content: flex-start;
    background: transparent;
    border-color: transparent;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    white-space: nowrap;
}
 .main-nav__submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
}


.main-nav__group.is-open .main-nav__submenu,
.main-nav__group:hover .main-nav__submenu,
.main-nav__group:focus-within .main-nav__submenu {
    display: grid;
    gap: 6px;
}

.section--subnav {
    padding-top: 18px;
    padding-bottom: 0;
}

.competition-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.competition-subnav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.competition-subnav__link.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.teambeheer-special-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.teambeheer-special-card,
.teambeheer-pagewide-card {
    overflow: hidden;
}

.teambeheer-feed--generic,
.teambeheer-feed--pagewide {
    overflow-x: auto;
}

.teambeheer-generic-block {
    min-width: 100%;
}

.teambeheer-generic-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.teambeheer-generic-table th,
.teambeheer-generic-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line-color);
    vertical-align: top;
}

.teambeheer-generic-table th {
    font-weight: 700;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: var(--text-inverse);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.28);
}

.theme-toggle__icon {
    font-size: 1rem;
    line-height: 1;
}

.ticker-bar {
    background: color-mix(in srgb, var(--ticker-bg) 92%, transparent);
    border-top: 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ticker-marquee {
    overflow: hidden;
    width: 100%;
}

.ticker-track {
    display: flex;
    gap: 18px;
    width: max-content;
    padding: 12px 0;
    animation: ticker-scroll 38s linear infinite;
}

.ticker-bar:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    background: var(--ticker-pill);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.ticker-label {
    background: var(--accent);
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ticker-item a {
    color: var(--text);
    font-weight: 600;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 9px));
    }
}

.site-main {
    padding: 0 0 60px;
}

.hero {
    padding: 56px 0;
    background: linear-gradient(135deg, var(--header) 0%, var(--header-accent) 100%);
    color: var(--text-inverse);
}

.hero h1 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 2.5rem;
}

.hero p {
    max-width: 760px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section {
    padding: 40px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section h1,
.section h2,
.section h3 {
    margin-top: 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-head p {
    margin: 0;
    color: var(--text-soft);
}

.text-link {
    color: var(--accent);
    font-weight: 600;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.card-featured {
    border: 2px solid color-mix(in srgb, var(--accent) 55%, var(--border));
}

.card p,
.card small {
    color: var(--text-soft);
}

.button {
    display: inline-block;
    background: var(--accent);
    color: var(--button-text);
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid transparent;
}

.button-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.news-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 20px;
}

.news-card__meta {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.news-card-large {
    min-height: 100%;
}

.list-cards {
    display: grid;
    gap: 16px;
}

.list-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.list-card__date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-right: 1px solid var(--border);
    padding-right: 20px;
}

.list-card__date strong {
    font-size: 1.25rem;
}

.list-card__date span,
.list-card__meta {
    color: var(--text-soft);
}

.list-card__content h2,
.list-card__content h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.promo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.feed-placeholder {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.feed-placeholder__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.feed-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-weight: 600;
}

.feed-pill--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.feed-placeholder__table {
    display: grid;
    gap: 8px;
}

.feed-row {
    display: grid;
    grid-template-columns: 50px 1.8fr 80px 90px 90px;
    gap: 12px;
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}

.feed-row--head {
    font-weight: 700;
    background: transparent;
    border: 0;
    color: var(--text-soft);
    padding: 0 14px 8px;
}

.doc-grid,
.album-grid,
.sponsor-grid {
    display: grid;
    gap: 20px;
}

.doc-grid {
    grid-template-columns: repeat(3, 1fr);
}

.doc-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: middle;
}

.album-grid {
    grid-template-columns: repeat(3, 1fr);
}

.album-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.album-card__image {
    height: 220px;
    background: linear-gradient(135deg, var(--header-accent) 0%, var(--accent) 100%);
    overflow: hidden;
}

.album-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-card__content {
    padding: 18px;
}

.album-card__content h2,
.album-card__content h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.album-card__content p {
    margin: 0 0 8px;
    color: var(--text-soft);
}

.sponsor-grid {
    grid-template-columns: repeat(4, 1fr);
}

.sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 18px;
    color: var(--text-soft);
    box-shadow: var(--shadow);
}

.page-hero {
    padding-top: 48px;
    padding-bottom: 28px;
}

.page-hero h1 {
    margin-bottom: 14px;
}

.page-hero p {
    max-width: 760px;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.news-list {
    display: grid;
    gap: 20px;
}

.news-list__item h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.news-list__item--featured {
    border-width: 2px;
}

.article-card {
    max-width: 820px;
}

.article-content {
    line-height: 1.8;
}

.breadcrumb-link {
    margin-bottom: 14px;
}

.breadcrumb-link a {
    color: var(--accent);
    font-weight: 600;
}

.empty-state-card {
    max-width: 720px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.board-card__role {
    color: var(--accent);
    font-weight: 700;
    margin-top: -4px;
    margin-bottom: 14px;
}

.contact-page {
    max-width: 950px;
}

.contact-intro {
    max-width: 780px;
    margin-bottom: 18px;
}

.contact-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.contact-form--minimal {
    display: grid;
    gap: 24px;
    margin-top: 10px;
}

.form-row {
    display: grid;
    gap: 10px;
}

.form-row label {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.3;
}

.form-row input,
.form-row select,
.form-row textarea {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 45%, transparent);
    color: var(--text);
    border-radius: 10px;
    padding: 14px 16px;
    font: inherit;
    line-height: 1.45;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row select {
    cursor: pointer;
}

.form-row textarea {
    resize: vertical;
    min-height: 220px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: var(--text-soft);
    opacity: 1;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 75%, white 10%);
    background: color-mix(in srgb, var(--surface) 75%, transparent);
    box-shadow: 0 0 0 3px rgba(47, 111, 255, 0.12);
}

.form-actions {
    padding-top: 4px;
}

.form-alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-weight: 600;
}

.form-alert--success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #15803d;
}

.form-alert--error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #b91c1c;
}

.form-error {
    color: #dc2626;
    font-size: 0.92rem;
    font-weight: 600;
}

.photo-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.photo-detail-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.photo-detail-card__image {
    aspect-ratio: 4 / 3;
    background: var(--surface-soft);
}

.photo-detail-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-detail-card__caption {
    padding: 14px 16px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.site-footer {
    padding: 24px 0 40px;
    background: var(--bg);
    color: var(--text-soft);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    margin-bottom: 0;
}

/* ADMIN - hard donker en eigen sfeer */
.admin-body {
    --bg: #09111d;
    --bg-alt: #0e1727;
    --surface: #141f31;
    --surface-soft: #1a2840;
    --text: #dde6f2;
    --text-soft: #98aac2;
    --border: #2a3b56;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.34);

    background: var(--bg);
    color: var(--text);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
}

.admin-topbar {
    position: relative;
    color: #f3f4f6;
    background:
        linear-gradient(rgba(9, 17, 29, 0.52), rgba(9, 17, 29, 0.58)),
        linear-gradient(90deg, rgba(28, 32, 39, 0.52) 0%, rgba(23, 50, 97, 0.44) 100%),
        url("https://beta.dbzp.nl/assets/images/headerbackground.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(9, 17, 29, 0) 0%,
        rgba(9, 17, 29, 0.10) 55%,
        rgba(9, 17, 29, 0.20) 100%
    );
}

.admin-topbar__inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    gap: 18px;
    padding: 20px 0 22px;
}

.admin-topbar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-brand__text {
    display: grid;
    gap: 3px;
}

.admin-brand__title {
    font-weight: 700;
    font-size: 1.05rem;
}

.admin-brand__subtitle {
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
}

.admin-userbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-userbar__meta {
    color: rgba(255,255,255,0.84);
    font-size: 0.94rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-nav__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.94);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.admin-nav a:hover,
.admin-nav a:focus-visible {
    color: #ffffff;
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.20);
    transform: translateY(-1px);
}

.admin-nav a.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(47, 111, 255, 0.28);
}

.admin-nav a.is-active:hover,
.admin-nav a.is-active:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: none;
}

.admin-nav a.is-disabled {
    opacity: 0.55;
}

.admin-nav a.is-disabled:hover,
.admin-nav a.is-disabled:focus-visible {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.10);
    transform: none;
}

.admin-main {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.admin-content {
    color: var(--text);
}

.admin-login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(rgba(9, 17, 29, 0.54), rgba(9, 17, 29, 0.58)),
        linear-gradient(90deg, rgba(28, 32, 39, 0.50) 0%, rgba(23, 50, 97, 0.42) 100%),
        url("https://beta.dbzp.nl/assets/images/headerbackground.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.admin-login-card {
    width: min(520px, 100%);
    background: rgba(20, 31, 49, 0.92);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 28px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.admin-login-card h1 {
    color: var(--text);
}

.admin-login-card p {
    color: var(--text-soft);
}

.admin-page-head {
    margin-bottom: 24px;
}

.admin-page-head p {
    color: var(--text-soft);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stat-card,
.admin-panel,
.admin-table-card,
.admin-form-card,
.admin-login-card,
.admin-list__item {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.admin-stat-card p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0;
}

.admin-panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-panel h2 {
    margin-bottom: 16px;
}

.admin-list {
    display: grid;
    gap: 12px;
}

.admin-list__item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    border-radius: 14px;
}

.admin-list__item span {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-toolbar__group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-table-card {
    overflow: hidden;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--text);
}

.admin-table th {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.admin-muted {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.admin-form-card {
    max-width: 980px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.form-row-checkbox {
    align-self: end;
}

.form-row-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-row-checkbox input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
    border: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 4px;
}


.form-help {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.form-help code {
    font-size: 0.9em;
}

.form-help--placeholder {
    visibility: hidden;
}

.admin-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-body .card,
.admin-body .promo-card,
.admin-body .feed-placeholder {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.admin-body .admin-page-head p,
.admin-body .admin-muted,
.admin-body .admin-list__item span {
    color: var(--text-soft);
}

.admin-body .form-row label {
    color: var(--text);
}

.admin-body .form-row input,
.admin-body .form-row select,
.admin-body .form-row textarea {
    background: #0f1a2d;
    color: #eef4fb;
    border: 1px solid #30435f;
}

.admin-body .form-row input::placeholder,
.admin-body .form-row textarea::placeholder {
    color: #8fa3bd;
}

.admin-body .form-row input:focus,
.admin-body .form-row select:focus,
.admin-body .form-row textarea:focus {
    background: #13213a;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 255, 0.18);
}

.admin-body .button-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.admin-body .button-secondary:hover,
.admin-body .button-secondary:focus-visible {
    background: var(--surface-soft);
}

.admin-body .form-alert--success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #7ee2a8;
}

.admin-body .form-alert--error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ff9d9d;
}

@media (max-width: 1100px) {
    .admin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 980px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 16px 0;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .main-nav {
        width: 100%;
        align-items: center;
    }

    .main-nav__row {
        width: 100%;
        justify-content: center;
    }

    .theme-toggle {
        align-self: center;
    }

    .news-grid,
    .promo-grid,
    .doc-grid,
    .album-grid,
    .sponsor-grid,
    .photo-detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-topbar__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-nav__row {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 2rem;
    }

    .ticker-track {
        padding: 10px 0;
    }

    .theme-toggle__label {
        display: none;
    }

    .admin-panels-grid,
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .logo img {
        height: 160px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-grid,
    .promo-grid,
    .doc-grid,
    .album-grid,
    .sponsor-grid,
    .photo-detail-grid,
    .board-grid {
        grid-template-columns: 1fr;
    }

    .list-card {
        grid-template-columns: 1fr;
    }

    .list-card__date {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 14px;
    }

    .feed-row {
        grid-template-columns: 40px 1fr 60px 70px 70px;
        font-size: 0.95rem;
    }

    .contact-links-inline {
        gap: 8px;
        margin-bottom: 0;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-toolbar {
        justify-content: flex-start;
    }

    .admin-main,
    .admin-topbar__inner {
        width: min(1280px, calc(100% - 24px));
    }

    .admin-logo img,
    .admin-login-logo img {
        height: 160px;
    }
}

.admin-logo img {
    height: 160px;
    width: auto;
    max-width: 100%;
    display: block;
}

.admin-login-stack {
    display: grid;
    justify-items: center;
    gap: 20px;
    width: 100%;
}

.admin-login-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.admin-login-logo img {
    height: 160px;
    width: auto;
    max-width: 100%;
    display: block;
}

.admin-login-card {
    width: min(520px, 100%);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-brand__text {
    display: grid;
    gap: 3px;
}

.admin-brand__title {
    font-weight: 700;
    font-size: 1.05rem;
}

.admin-brand__subtitle {
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .admin-brand {
        flex-direction: column;
        align-items: flex-start;
    }
}


.teambeheer-feed-card {
    padding: 0 !important;
    overflow: hidden !important;
}

.teambeheer-feed {
    padding: 24px 26px !important;
    overflow-x: auto !important;
}

.teambeheer-stand-block {
    width: 100% !important;
}

table.teambeheer-stand-table {
    width: 100% !important;
    min-width: 840px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
    font-size: 0.89rem !important;
    line-height: 1.35 !important;
    background: transparent !important;
}

table.teambeheer-stand-table th,
table.teambeheer-stand-table td {
    padding: 12px 14px !important;
    white-space: nowrap !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

table.teambeheer-stand-table th {
    color: var(--text-soft) !important;
    font-weight: 700 !important;
    text-align: left !important;
    border-bottom: 2px solid rgba(255,255,255,0.14) !important;
}

table.teambeheer-stand-table td {
    color: var(--text) !important;
}

table.teambeheer-stand-table tbody tr:nth-of-type(even) td,
table.teambeheer-stand-table tr:nth-of-type(even) td {
    background: rgba(255,255,255,0.05) !important;
}

table.teambeheer-stand-table tbody tr:hover td,
table.teambeheer-stand-table tr:hover td {
    background: rgba(47,111,255,0.12) !important;
}

table.teambeheer-stand-table th:first-child,
table.teambeheer-stand-table td:first-child {
    width: 56px !important;
    min-width: 56px !important;
    text-align: center !important;
    font-weight: 700 !important;
}

table.teambeheer-stand-table th:nth-child(2),
table.teambeheer-stand-table td:nth-child(2) {
    min-width: 220px !important;
    text-align: left !important;
    font-weight: 600 !important;
}

table.teambeheer-stand-table th:nth-child(n+3),
table.teambeheer-stand-table td:nth-child(n+3) {
    text-align: center !important;
    min-width: 64px !important;
}

table.teambeheer-stand-table th:last-child,
table.teambeheer-stand-table td:last-child {
    min-width: 96px !important;
}

.teambeheer-program-block {
    display: grid;
    gap: 24px;
    width: 100%;
}

.teambeheer-program-group {
    width: 100%;
}

.teambeheer-program-title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: var(--text);
}

table.teambeheer-program-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    font-size: 0.89rem;
    line-height: 1.35;
    background: transparent;
}

table.teambeheer-program-table th,
table.teambeheer-program-table td {
    padding: 12px 14px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

table.teambeheer-program-table th {
    color: var(--text-soft);
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid rgba(255,255,255,0.14);
}

table.teambeheer-program-table td {
    color: var(--text);
}

table.teambeheer-program-table tbody tr:nth-of-type(even) td,
table.teambeheer-program-table tr:nth-of-type(even) td {
    background: rgba(255,255,255,0.05) !important;
}

table.teambeheer-program-table tbody tr:hover td,
table.teambeheer-program-table tr:hover td {
    background: rgba(47,111,255,0.12) !important;
}

table.teambeheer-program-table th:nth-child(1),
table.teambeheer-program-table td:nth-child(1) {
    min-width: 100px;
}

table.teambeheer-program-table th:nth-child(2),
table.teambeheer-program-table td:nth-child(2),
table.teambeheer-program-table th:nth-child(3),
table.teambeheer-program-table td:nth-child(3) {
    min-width: 170px;
}

table.teambeheer-program-table th:nth-child(4),
table.teambeheer-program-table td:nth-child(4) {
    min-width: 72px;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 900px) {
    .teambeheer-feed-card,
    .teambeheer-feed,
    .teambeheer-stand-block {
        position: relative !important;
        isolation: isolate !important;
    }

    .teambeheer-feed {
        padding: 14px !important;
    }

    .competition-jump-nav--inline,
    .teambeheer-competition-head,
    .teambeheer-competition-block__heading {
        position: relative;
        z-index: 20;
    }

    table.teambeheer-stand-table {
        min-width: 640px !important;
        font-size: 0.8rem !important;
    }

    table.teambeheer-stand-table th,
    table.teambeheer-stand-table td,
    table.teambeheer-program-table th,
    table.teambeheer-program-table td {
        padding: 9px 10px !important;
    }

    table.teambeheer-stand-table th:first-child,
    table.teambeheer-stand-table td:first-child {
        min-width: 42px !important;
        width: 42px !important;
    }

    table.teambeheer-stand-table th:nth-child(2),
    table.teambeheer-stand-table td:nth-child(2) {
        min-width: 160px !important;
        position: sticky;
        left: 42px;
        z-index: 2;
        background: #162744 !important;
        background-clip: padding-box !important;
        box-shadow: 10px 0 12px -12px rgba(0,0,0,0.75) !important;
    }

    table.teambeheer-stand-table th:first-child,
    table.teambeheer-stand-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        background: #10203a !important;
        background-clip: padding-box !important;
    }

    table.teambeheer-stand-table th {
        z-index: 4 !important;
    }

    table.teambeheer-stand-table tbody tr:nth-of-type(even) td:first-child,
    table.teambeheer-stand-table tbody tr:nth-of-type(even) td:nth-child(2),
    table.teambeheer-stand-table tr:nth-of-type(even) td:first-child,
    table.teambeheer-stand-table tr:nth-of-type(even) td:nth-child(2) {
        background: #1e2f4a !important;
    }

    table.teambeheer-stand-table tbody tr:hover td:first-child,
    table.teambeheer-stand-table tbody tr:hover td:nth-child(2),
    table.teambeheer-stand-table tr:hover td:first-child,
    table.teambeheer-stand-table tr:hover td:nth-child(2) {
        background: #203964 !important;
    }

    table.teambeheer-stand-table th:nth-child(n+3),
    table.teambeheer-stand-table td:nth-child(n+3) {
        min-width: 54px !important;
    }

    table.teambeheer-stand-table th:last-child,
    table.teambeheer-stand-table td:last-child {
        min-width: 78px !important;
    }

    table.teambeheer-program-table {
        min-width: 420px;
        font-size: 0.8rem;
    }

    table.teambeheer-program-table th:nth-child(1),
    table.teambeheer-program-table td:nth-child(1) {
        min-width: 74px;
    }

    table.teambeheer-program-table th:nth-child(2),
    table.teambeheer-program-table td:nth-child(2),
    table.teambeheer-program-table th:nth-child(3),
    table.teambeheer-program-table td:nth-child(3) {
        min-width: 132px;
    }

    table.teambeheer-program-table th:nth-child(4),
    table.teambeheer-program-table td:nth-child(4) {
        min-width: 58px;
    }
}


.admin-action-separator {
    color: rgba(255,255,255,0.35);
    margin: 0 0.35rem;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}


.admin-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.admin-inline-form {
    display: inline;
    margin: 0;
}

.text-link-danger {
    color: #ff8f8f;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.text-link-danger:hover {
    color: #ffffff;
}

.button-danger {
    border-color: rgba(255, 107, 107, 0.55);
    color: #ffd0d0;
}

.button-danger:hover {
    border-color: rgba(255, 107, 107, 0.85);
    background: rgba(255, 107, 107, 0.12);
}


.teambeheer-competition-group {
    margin-top: 2.5rem;
}

.teambeheer-competition-group:first-of-type {
    margin-top: 0;
}

.teambeheer-competition-head {
    margin-bottom: 1rem;
}

.teambeheer-competition-block + .teambeheer-competition-block {
    margin-top: 1.25rem;
}

.teambeheer-competition-block__title {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
}

.section-compact {
    padding-top: 0;
}

.competition-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.competition-jump-nav--inline {
    margin-bottom: 1rem;
    position: sticky;
    top: 0.75rem;
    z-index: 5;
    padding: 0.85rem;
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.competition-jump-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.competition-jump-nav__link:hover,
.competition-jump-nav__link:focus-visible {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--surface) 85%, var(--accent) 15%);
    transform: translateY(-1px);
}

.competition-jump-nav__link.is-active {
    background: color-mix(in srgb, var(--accent) 22%, var(--surface));
    border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
    color: var(--text);
    box-shadow: 0 10px 24px rgba(47, 111, 255, 0.16);
}

.teambeheer-competition-group {
    scroll-margin-top: 1.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

.teambeheer-competition-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

.teambeheer-competition-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.teambeheer-competition-head__back {
    flex-shrink: 0;
    font-weight: 700;
}

.teambeheer-competition-block__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.teambeheer-competition-block__hint {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.teambeheer-feed-card--program-preview {
    overflow: hidden;
    padding: 0.5rem 0.75rem 0.75rem;
}

.teambeheer-feed--program-preview {
    overflow: hidden;
    padding: 0 !important;
}

.teambeheer-program-preview {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0.05rem 0.4rem;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
}

.teambeheer-program-preview__week {
    flex: 0 0 clamp(470px, 48vw, 560px);
    min-width: 320px;
    max-width: 100%;
    scroll-snap-align: start;
}

.teambeheer-program-preview__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.teambeheer-program-preview__table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
}

.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview {
    min-width: 100%;
}

.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th,
.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td {
    padding: 10px 10px;
}

.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(1),
.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(1) {
    min-width: 110px;
}

.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(2),
.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(2),
.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(3),
.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(3) {
    min-width: 170px;
}

.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(4),
.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(4) {
    min-width: 58px;
}

@media (max-width: 900px) {
    .competition-jump-nav {
        gap: 0.5rem;
    }

    .competition-jump-nav--inline {
        top: 0.5rem;
        padding: 0.65rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .competition-jump-nav__link {
        min-height: 36px;
        padding: 0.55rem 0.8rem;
        font-size: 0.8rem;
    }

    .teambeheer-competition-head,
    .teambeheer-competition-block__heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .teambeheer-competition-group {
        margin-top: 2rem;
    }

    .teambeheer-program-preview {
        gap: 0.5rem;
    }

    .teambeheer-program-preview__week {
        flex-basis: 82vw;
        min-width: 82vw;
    }

    .teambeheer-program-preview__title {
        font-size: 0.98rem;
    }

    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview {
        min-width: 100%;
    }
}


.teambeheer-program-preview::-webkit-scrollbar,
.teambeheer-feed::-webkit-scrollbar {
    height: 10px;
}

.teambeheer-program-preview::-webkit-scrollbar-thumb,
.teambeheer-feed::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent) 70%, transparent);
    border-radius: 999px;
}

.teambeheer-program-preview::-webkit-scrollbar-track,
.teambeheer-feed::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
}


@media (min-width: 1200px) {
    .teambeheer-program-preview__week {
        flex-basis: calc(50% - 0.3rem);
        min-width: calc(50% - 0.3rem);
    }

    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th,
    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td {
        padding: 9px 9px;
    }

    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(1),
    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(1) {
        min-width: 96px;
    }

    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(2),
    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(2),
    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(3),
    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(3) {
        min-width: 150px;
    }

    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(4),
    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(4) {
        min-width: 52px;
    }
}


.home-mini-ranking {
    margin: 0.75rem 0 0.5rem 1.1rem;
    padding: 0;
}

.home-mini-ranking li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.home-mini-ranking li strong {
    white-space: nowrap;
}


.svhs-page-card {
    width: 100%;
}

.home-mini-ranking--large li {
    font-size: 1rem;
    gap: 1rem;
}

.teambeheer-feed--score {
    overflow-x: auto;
}

.teambeheer-score-block table,
.teambeheer-score-table {
    width: 100%;
    border-collapse: collapse;
}

.teambeheer-score-table th,
.teambeheer-score-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}

.teambeheer-feed--score-page {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.teambeheer-feed--score-page table,
.teambeheer-feed--score-page .ui.table,
.teambeheer-feed--score-page .table {
    min-width: 100%;
}


.home-mini-ranking--podium {
    list-style: none;
    margin: 0.9rem 0 0.65rem;
}

.home-mini-ranking--podium .home-mini-ranking__item {
    display: grid;
    grid-template-columns: 1.9rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.2rem;
    margin-bottom: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-mini-ranking--podium .home-mini-ranking__place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    grid-row: 1 / span 2;
}

.home-mini-ranking--podium .home-mini-ranking__player {
    min-width: 0;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.home-mini-ranking--podium .home-mini-ranking__value {
    grid-column: 2;
    white-space: normal;
    line-height: 1.1;
    font-size: 0.98rem;
}

.home-mini-ranking--podium .home-mini-ranking__item--place-1 {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.home-mini-ranking--podium .home-mini-ranking__item--place-1 .home-mini-ranking__place {
    background: rgba(255, 255, 255, 0.18);
}

.home-mini-ranking--podium .home-mini-ranking__item--place-2 {
    background: rgba(255, 255, 255, 0.06);
}

.home-mini-ranking--podium .home-mini-ranking__item--place-3 {
    background: rgba(255, 255, 255, 0.045);
}

@media (max-width: 640px) {
    .home-mini-ranking--podium .home-mini-ranking__item {
        grid-template-columns: 1.75rem minmax(0, 1fr);
        column-gap: 0.55rem;
        padding: 0.6rem 0.65rem;
    }

    .home-mini-ranking--podium .home-mini-ranking__place {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.9rem;
    }

    .home-mini-ranking--podium .home-mini-ranking__player,
    .home-mini-ranking--podium .home-mini-ranking__value {
        font-size: 0.95rem;
    }
}


/* SVHS podium badges readable in light theme + score header alignment */
.home-mini-ranking--podium .home-mini-ranking__place {
    color: var(--text-inverse);
    background: color-mix(in srgb, var(--header-accent) 82%, var(--surface) 18%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent);
}

.home-mini-ranking--podium .home-mini-ranking__item--place-1 .home-mini-ranking__place {
    background: color-mix(in srgb, var(--accent) 78%, var(--header-accent) 22%);
}

.teambeheer-feed--score-page th,
.teambeheer-feed--score-page .ui.table th,
.teambeheer-feed--score-page .table th,
.teambeheer-score-table th {
    text-align: left;
}


.svhs-rules-card {
    margin-bottom: 1.25rem;
}

.svhs-rules-card p {
    margin: 0 0 0.85rem;
}

.svhs-rules-card p:last-child {
    margin-bottom: 0;
}

.svhs-source-link {
    margin-top: 0.85rem;
}


@media (max-width: 980px) {
    .main-nav__group { width: 100%; }
    .main-nav__submenu { position: static; transform: none; display: grid; width: 100%; min-width: 0; margin-top: 8px; background: rgba(255,255,255,0.06); box-shadow: none; }
    .teambeheer-special-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .competition-subnav { gap: 10px; }
    .competition-subnav__link { width: 100%; justify-content: flex-start; }
    .teambeheer-generic-table { min-width: 720px; }
}




/* Competition-related wide feed tables */
.teambeheer-pagewide-card,
.svhs-page-card {
    padding: 0.9rem;
    overflow: hidden;
}

.teambeheer-pagewide-card .teambeheer-feed,
.svhs-page-card .teambeheer-feed {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft);
    overflow-x: auto;
    overflow-y: hidden;
}

.teambeheer-pagewide-card table,
.svhs-page-card table,
.teambeheer-pagewide-card .teambeheer-generic-table,
.svhs-page-card .teambeheer-score-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.teambeheer-pagewide-card th,
.teambeheer-pagewide-card td,
.svhs-page-card th,
.svhs-page-card td {
    padding: 10px 12px;
    vertical-align: middle;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.teambeheer-pagewide-card thead th,
.svhs-page-card thead th,
.teambeheer-pagewide-card th,
.svhs-page-card th {
    text-align: left !important;
    background: color-mix(in srgb, var(--surface-soft) 65%, var(--surface) 35%);
    color: var(--text);
}

.teambeheer-pagewide-card tbody tr:nth-child(odd) td,
.svhs-page-card tbody tr:nth-child(odd) td {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.teambeheer-pagewide-card tbody tr:nth-child(even) td,
.svhs-page-card tbody tr:nth-child(even) td {
    background: color-mix(in srgb, var(--surface-soft) 96%, transparent);
}

.teambeheer-pagewide-card tbody tr:hover td,
.svhs-page-card tbody tr:hover td {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface-soft));
}

.teambeheer-pagewide-card tbody tr:last-child td,
.svhs-page-card tbody tr:last-child td {
    border-bottom: 0;
}

.teambeheer-special-grid--links {
    align-items: stretch;
}

.teambeheer-special-card--linkonly {
    min-height: 100%;
    border: 1px solid var(--border);
}

.teambeheer-special-card--linkonly .button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 640px) {
    .teambeheer-pagewide-card,
    .svhs-page-card {
        padding: 0.65rem;
    }

    .teambeheer-pagewide-card table,
    .svhs-page-card table,
    .teambeheer-pagewide-card .teambeheer-generic-table,
    .svhs-page-card .teambeheer-score-table {
        min-width: 760px;
    }
}


.theme-toggle { display: none !important; }

.teambeheer-special-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.teambeheer-special-card,
.teambeheer-pagewide-card {
    overflow: hidden;
}

.teambeheer-feed--generic,
.teambeheer-feed--pagewide {
    overflow-x: auto;
}

.teambeheer-generic-block {
    min-width: 100%;
}

.teambeheer-generic-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.teambeheer-generic-table th,
.teambeheer-generic-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line-color);
    vertical-align: top;
}

.teambeheer-generic-table th {
    font-weight: 700;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: var(--text-inverse);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.28);
}

.theme-toggle__icon {
    font-size: 1rem;
    line-height: 1;
}

.ticker-bar {
    background: color-mix(in srgb, var(--ticker-bg) 92%, transparent);
    border-top: 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ticker-marquee {
    overflow: hidden;
    width: 100%;
}

.ticker-track {
    display: flex;
    gap: 18px;
    width: max-content;
    padding: 12px 0;
    animation: ticker-scroll 38s linear infinite;
}

.ticker-bar:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    background: var(--ticker-pill);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.ticker-label {
    background: var(--accent);
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ticker-item a {
    color: var(--text);
    font-weight: 600;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 9px));
    }
}

.site-main {
    padding: 0 0 60px;
}

.hero {
    padding: 56px 0;
    background: linear-gradient(135deg, var(--header) 0%, var(--header-accent) 100%);
    color: var(--text-inverse);
}

.hero h1 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 2.5rem;
}

.hero p {
    max-width: 760px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.section {
    padding: 40px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section h1,
.section h2,
.section h3 {
    margin-top: 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-head p {
    margin: 0;
    color: var(--text-soft);
}

.text-link {
    color: var(--accent);
    font-weight: 600;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.card-featured {
    border: 2px solid color-mix(in srgb, var(--accent) 55%, var(--border));
}

.card p,
.card small {
    color: var(--text-soft);
}

.button {
    display: inline-block;
    background: var(--accent);
    color: var(--button-text);
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid transparent;
}

.button-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.news-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 20px;
}

.news-card__meta {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.news-card-large {
    min-height: 100%;
}

.list-cards {
    display: grid;
    gap: 16px;
}

.list-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.list-card__date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-right: 1px solid var(--border);
    padding-right: 20px;
}

.list-card__date strong {
    font-size: 1.25rem;
}

.list-card__date span,
.list-card__meta {
    color: var(--text-soft);
}

.list-card__content h2,
.list-card__content h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.promo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.feed-placeholder {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.feed-placeholder__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.feed-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-weight: 600;
}

.feed-pill--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.feed-placeholder__table {
    display: grid;
    gap: 8px;
}

.feed-row {
    display: grid;
    grid-template-columns: 50px 1.8fr 80px 90px 90px;
    gap: 12px;
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}

.feed-row--head {
    font-weight: 700;
    background: transparent;
    border: 0;
    color: var(--text-soft);
    padding: 0 14px 8px;
}

.doc-grid,
.album-grid,
.sponsor-grid {
    display: grid;
    gap: 20px;
}

.doc-grid {
    grid-template-columns: repeat(3, 1fr);
}

.doc-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: middle;
}

.album-grid {
    grid-template-columns: repeat(3, 1fr);
}

.album-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.album-card__image {
    height: 220px;
    background: linear-gradient(135deg, var(--header-accent) 0%, var(--accent) 100%);
    overflow: hidden;
}

.album-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-card__content {
    padding: 18px;
}

.album-card__content h2,
.album-card__content h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.album-card__content p {
    margin: 0 0 8px;
    color: var(--text-soft);
}

.sponsor-grid {
    grid-template-columns: repeat(4, 1fr);
}

.sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 18px;
    color: var(--text-soft);
    box-shadow: var(--shadow);
}

.page-hero {
    padding-top: 48px;
    padding-bottom: 28px;
}

.page-hero h1 {
    margin-bottom: 14px;
}

.page-hero p {
    max-width: 760px;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.news-list {
    display: grid;
    gap: 20px;
}

.news-list__item h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.news-list__item--featured {
    border-width: 2px;
}

.article-card {
    max-width: 820px;
}

.article-content {
    line-height: 1.8;
}

.breadcrumb-link {
    margin-bottom: 14px;
}

.breadcrumb-link a {
    color: var(--accent);
    font-weight: 600;
}

.empty-state-card {
    max-width: 720px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.board-card__role {
    color: var(--accent);
    font-weight: 700;
    margin-top: -4px;
    margin-bottom: 14px;
}

.contact-page {
    max-width: 950px;
}

.contact-intro {
    max-width: 780px;
    margin-bottom: 18px;
}

.contact-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.contact-form--minimal {
    display: grid;
    gap: 24px;
    margin-top: 10px;
}

.form-row {
    display: grid;
    gap: 10px;
}

.form-row label {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.3;
}

.form-row input,
.form-row select,
.form-row textarea {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 45%, transparent);
    color: var(--text);
    border-radius: 10px;
    padding: 14px 16px;
    font: inherit;
    line-height: 1.45;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row select {
    cursor: pointer;
}

.form-row textarea {
    resize: vertical;
    min-height: 220px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: var(--text-soft);
    opacity: 1;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 75%, white 10%);
    background: color-mix(in srgb, var(--surface) 75%, transparent);
    box-shadow: 0 0 0 3px rgba(47, 111, 255, 0.12);
}

.form-actions {
    padding-top: 4px;
}

.form-alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-weight: 600;
}

.form-alert--success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #15803d;
}

.form-alert--error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #b91c1c;
}

.form-error {
    color: #dc2626;
    font-size: 0.92rem;
    font-weight: 600;
}

.photo-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.photo-detail-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.photo-detail-card__image {
    aspect-ratio: 4 / 3;
    background: var(--surface-soft);
}

.photo-detail-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-detail-card__caption {
    padding: 14px 16px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.site-footer {
    padding: 24px 0 40px;
    background: var(--bg);
    color: var(--text-soft);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    margin-bottom: 0;
}

/* ADMIN - hard donker en eigen sfeer */
.admin-body {
    --bg: #09111d;
    --bg-alt: #0e1727;
    --surface: #141f31;
    --surface-soft: #1a2840;
    --text: #dde6f2;
    --text-soft: #98aac2;
    --border: #2a3b56;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.34);

    background: var(--bg);
    color: var(--text);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
}

.admin-topbar {
    position: relative;
    color: #f3f4f6;
    background:
        linear-gradient(rgba(9, 17, 29, 0.52), rgba(9, 17, 29, 0.58)),
        linear-gradient(90deg, rgba(28, 32, 39, 0.52) 0%, rgba(23, 50, 97, 0.44) 100%),
        url("https://beta.dbzp.nl/assets/images/headerbackground.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(9, 17, 29, 0) 0%,
        rgba(9, 17, 29, 0.10) 55%,
        rgba(9, 17, 29, 0.20) 100%
    );
}

.admin-topbar__inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    gap: 18px;
    padding: 20px 0 22px;
}

.admin-topbar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-brand__text {
    display: grid;
    gap: 3px;
}

.admin-brand__title {
    font-weight: 700;
    font-size: 1.05rem;
}

.admin-brand__subtitle {
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
}

.admin-userbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-userbar__meta {
    color: rgba(255,255,255,0.84);
    font-size: 0.94rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-nav__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.94);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.admin-nav a:hover,
.admin-nav a:focus-visible {
    color: #ffffff;
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.20);
    transform: translateY(-1px);
}

.admin-nav a.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(47, 111, 255, 0.28);
}

.admin-nav a.is-active:hover,
.admin-nav a.is-active:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: none;
}

.admin-nav a.is-disabled {
    opacity: 0.55;
}

.admin-nav a.is-disabled:hover,
.admin-nav a.is-disabled:focus-visible {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.10);
    transform: none;
}

.admin-main {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 40px;
}

.admin-content {
    color: var(--text);
}

.admin-login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(rgba(9, 17, 29, 0.54), rgba(9, 17, 29, 0.58)),
        linear-gradient(90deg, rgba(28, 32, 39, 0.50) 0%, rgba(23, 50, 97, 0.42) 100%),
        url("https://beta.dbzp.nl/assets/images/headerbackground.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.admin-login-card {
    width: min(520px, 100%);
    background: rgba(20, 31, 49, 0.92);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 28px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.admin-login-card h1 {
    color: var(--text);
}

.admin-login-card p {
    color: var(--text-soft);
}

.admin-page-head {
    margin-bottom: 24px;
}

.admin-page-head p {
    color: var(--text-soft);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stat-card,
.admin-panel,
.admin-table-card,
.admin-form-card,
.admin-login-card,
.admin-list__item {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.admin-stat-card p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0;
}

.admin-panels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-panel h2 {
    margin-bottom: 16px;
}

.admin-list {
    display: grid;
    gap: 12px;
}

.admin-list__item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    border-radius: 14px;
}

.admin-list__item span {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-toolbar__group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-table-card {
    overflow: hidden;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--text);
}

.admin-table th {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.admin-muted {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.admin-form-card {
    max-width: 980px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.form-row-checkbox {
    align-self: end;
}

.form-row-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-row-checkbox input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
    border: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 4px;
}


.form-help {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.form-help code {
    font-size: 0.9em;
}

.admin-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-body .card,
.admin-body .promo-card,
.admin-body .feed-placeholder {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.admin-body .admin-page-head p,
.admin-body .admin-muted,
.admin-body .admin-list__item span {
    color: var(--text-soft);
}

.admin-body .form-row label {
    color: var(--text);
}

.admin-body .form-row input,
.admin-body .form-row select,
.admin-body .form-row textarea {
    background: #0f1a2d;
    color: #eef4fb;
    border: 1px solid #30435f;
}

.admin-body .form-row input::placeholder,
.admin-body .form-row textarea::placeholder {
    color: #8fa3bd;
}

.admin-body .form-row input:focus,
.admin-body .form-row select:focus,
.admin-body .form-row textarea:focus {
    background: #13213a;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 255, 0.18);
}

.admin-body .button-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.admin-body .button-secondary:hover,
.admin-body .button-secondary:focus-visible {
    background: var(--surface-soft);
}

.admin-body .form-alert--success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #7ee2a8;
}

.admin-body .form-alert--error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ff9d9d;
}

@media (max-width: 1100px) {
    .admin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 980px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 16px 0;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .main-nav {
        width: 100%;
        align-items: center;
    }

    .main-nav__row {
        width: 100%;
        justify-content: center;
    }

    .theme-toggle {
        align-self: center;
    }

    .news-grid,
    .promo-grid,
    .doc-grid,
    .album-grid,
    .sponsor-grid,
    .photo-detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-topbar__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-nav__row {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 2rem;
    }

    .ticker-track {
        padding: 10px 0;
    }

    .theme-toggle__label {
        display: none;
    }

    .admin-panels-grid,
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .logo img {
        height: 160px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-grid,
    .promo-grid,
    .doc-grid,
    .album-grid,
    .sponsor-grid,
    .photo-detail-grid,
    .board-grid {
        grid-template-columns: 1fr;
    }

    .list-card {
        grid-template-columns: 1fr;
    }

    .list-card__date {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 14px;
    }

    .feed-row {
        grid-template-columns: 40px 1fr 60px 70px 70px;
        font-size: 0.95rem;
    }

    .contact-links-inline {
        gap: 8px;
        margin-bottom: 0;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-toolbar {
        justify-content: flex-start;
    }

    .admin-main,
    .admin-topbar__inner {
        width: min(1280px, calc(100% - 24px));
    }

    .admin-logo img,
    .admin-login-logo img {
        height: 160px;
    }
}

.admin-logo img {
    height: 160px;
    width: auto;
    max-width: 100%;
    display: block;
}

.admin-login-stack {
    display: grid;
    justify-items: center;
    gap: 20px;
    width: 100%;
}

.admin-login-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.admin-login-logo img {
    height: 160px;
    width: auto;
    max-width: 100%;
    display: block;
}

.admin-login-card {
    width: min(520px, 100%);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-brand__text {
    display: grid;
    gap: 3px;
}

.admin-brand__title {
    font-weight: 700;
    font-size: 1.05rem;
}

.admin-brand__subtitle {
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .admin-brand {
        flex-direction: column;
        align-items: flex-start;
    }
}


.teambeheer-feed-card {
    padding: 0 !important;
    overflow: hidden !important;
}

.teambeheer-feed {
    padding: 24px 26px !important;
    overflow-x: auto !important;
}

.teambeheer-stand-block {
    width: 100% !important;
}

table.teambeheer-stand-table {
    width: 100% !important;
    min-width: 840px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
    font-size: 0.89rem !important;
    line-height: 1.35 !important;
    background: transparent !important;
}

table.teambeheer-stand-table th,
table.teambeheer-stand-table td {
    padding: 12px 14px !important;
    white-space: nowrap !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

table.teambeheer-stand-table th {
    color: var(--text-soft) !important;
    font-weight: 700 !important;
    text-align: left !important;
    border-bottom: 2px solid rgba(255,255,255,0.14) !important;
}

table.teambeheer-stand-table td {
    color: var(--text) !important;
}

table.teambeheer-stand-table tbody tr:nth-of-type(even) td,
table.teambeheer-stand-table tr:nth-of-type(even) td {
    background: rgba(255,255,255,0.05) !important;
}

table.teambeheer-stand-table tbody tr:hover td,
table.teambeheer-stand-table tr:hover td {
    background: rgba(47,111,255,0.12) !important;
}

table.teambeheer-stand-table th:first-child,
table.teambeheer-stand-table td:first-child {
    width: 56px !important;
    min-width: 56px !important;
    text-align: center !important;
    font-weight: 700 !important;
}

table.teambeheer-stand-table th:nth-child(2),
table.teambeheer-stand-table td:nth-child(2) {
    min-width: 220px !important;
    text-align: left !important;
    font-weight: 600 !important;
}

table.teambeheer-stand-table th:nth-child(n+3),
table.teambeheer-stand-table td:nth-child(n+3) {
    text-align: center !important;
    min-width: 64px !important;
}

table.teambeheer-stand-table th:last-child,
table.teambeheer-stand-table td:last-child {
    min-width: 96px !important;
}

.teambeheer-program-block {
    display: grid;
    gap: 24px;
    width: 100%;
}

.teambeheer-program-group {
    width: 100%;
}

.teambeheer-program-title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: var(--text);
}

table.teambeheer-program-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    font-size: 0.89rem;
    line-height: 1.35;
    background: transparent;
}

table.teambeheer-program-table th,
table.teambeheer-program-table td {
    padding: 12px 14px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

table.teambeheer-program-table th {
    color: var(--text-soft);
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid rgba(255,255,255,0.14);
}

table.teambeheer-program-table td {
    color: var(--text);
}

table.teambeheer-program-table tbody tr:nth-of-type(even) td,
table.teambeheer-program-table tr:nth-of-type(even) td {
    background: rgba(255,255,255,0.05) !important;
}

table.teambeheer-program-table tbody tr:hover td,
table.teambeheer-program-table tr:hover td {
    background: rgba(47,111,255,0.12) !important;
}

table.teambeheer-program-table th:nth-child(1),
table.teambeheer-program-table td:nth-child(1) {
    min-width: 100px;
}

table.teambeheer-program-table th:nth-child(2),
table.teambeheer-program-table td:nth-child(2),
table.teambeheer-program-table th:nth-child(3),
table.teambeheer-program-table td:nth-child(3) {
    min-width: 170px;
}

table.teambeheer-program-table th:nth-child(4),
table.teambeheer-program-table td:nth-child(4) {
    min-width: 72px;
    text-align: center;
    font-weight: 700;
}

@media (max-width: 900px) {
    .teambeheer-feed-card,
    .teambeheer-feed,
    .teambeheer-stand-block {
        position: relative !important;
        isolation: isolate !important;
    }

    .teambeheer-feed {
        padding: 14px !important;
    }

    .competition-jump-nav--inline,
    .teambeheer-competition-head,
    .teambeheer-competition-block__heading {
        position: relative;
        z-index: 20;
    }

    table.teambeheer-stand-table {
        min-width: 640px !important;
        font-size: 0.8rem !important;
    }

    table.teambeheer-stand-table th,
    table.teambeheer-stand-table td,
    table.teambeheer-program-table th,
    table.teambeheer-program-table td {
        padding: 9px 10px !important;
    }

    table.teambeheer-stand-table th:first-child,
    table.teambeheer-stand-table td:first-child {
        min-width: 42px !important;
        width: 42px !important;
    }

    table.teambeheer-stand-table th:nth-child(2),
    table.teambeheer-stand-table td:nth-child(2) {
        min-width: 160px !important;
        position: sticky;
        left: 42px;
        z-index: 2;
        background: #162744 !important;
        background-clip: padding-box !important;
        box-shadow: 10px 0 12px -12px rgba(0,0,0,0.75) !important;
    }

    table.teambeheer-stand-table th:first-child,
    table.teambeheer-stand-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        background: #10203a !important;
        background-clip: padding-box !important;
    }

    table.teambeheer-stand-table th {
        z-index: 4 !important;
    }

    table.teambeheer-stand-table tbody tr:nth-of-type(even) td:first-child,
    table.teambeheer-stand-table tbody tr:nth-of-type(even) td:nth-child(2),
    table.teambeheer-stand-table tr:nth-of-type(even) td:first-child,
    table.teambeheer-stand-table tr:nth-of-type(even) td:nth-child(2) {
        background: #1e2f4a !important;
    }

    table.teambeheer-stand-table tbody tr:hover td:first-child,
    table.teambeheer-stand-table tbody tr:hover td:nth-child(2),
    table.teambeheer-stand-table tr:hover td:first-child,
    table.teambeheer-stand-table tr:hover td:nth-child(2) {
        background: #203964 !important;
    }

    table.teambeheer-stand-table th:nth-child(n+3),
    table.teambeheer-stand-table td:nth-child(n+3) {
        min-width: 54px !important;
    }

    table.teambeheer-stand-table th:last-child,
    table.teambeheer-stand-table td:last-child {
        min-width: 78px !important;
    }

    table.teambeheer-program-table {
        min-width: 420px;
        font-size: 0.8rem;
    }

    table.teambeheer-program-table th:nth-child(1),
    table.teambeheer-program-table td:nth-child(1) {
        min-width: 74px;
    }

    table.teambeheer-program-table th:nth-child(2),
    table.teambeheer-program-table td:nth-child(2),
    table.teambeheer-program-table th:nth-child(3),
    table.teambeheer-program-table td:nth-child(3) {
        min-width: 132px;
    }

    table.teambeheer-program-table th:nth-child(4),
    table.teambeheer-program-table td:nth-child(4) {
        min-width: 58px;
    }
}


.admin-action-separator {
    color: rgba(255,255,255,0.35);
    margin: 0 0.35rem;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}


.admin-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.admin-inline-form {
    display: inline;
    margin: 0;
}

.text-link-danger {
    color: #ff8f8f;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.text-link-danger:hover {
    color: #ffffff;
}

.button-danger {
    border-color: rgba(255, 107, 107, 0.55);
    color: #ffd0d0;
}

.button-danger:hover {
    border-color: rgba(255, 107, 107, 0.85);
    background: rgba(255, 107, 107, 0.12);
}


.teambeheer-competition-group {
    margin-top: 2.5rem;
}

.teambeheer-competition-group:first-of-type {
    margin-top: 0;
}

.teambeheer-competition-head {
    margin-bottom: 1rem;
}

.teambeheer-competition-block + .teambeheer-competition-block {
    margin-top: 1.25rem;
}

.teambeheer-competition-block__title {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
}

.section-compact {
    padding-top: 0;
}

.competition-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.competition-jump-nav--inline {
    margin-bottom: 1rem;
    position: sticky;
    top: 0.75rem;
    z-index: 5;
    padding: 0.85rem;
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.competition-jump-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.competition-jump-nav__link:hover,
.competition-jump-nav__link:focus-visible {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--surface) 85%, var(--accent) 15%);
    transform: translateY(-1px);
}

.competition-jump-nav__link.is-active {
    background: color-mix(in srgb, var(--accent) 22%, var(--surface));
    border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
    color: var(--text);
    box-shadow: 0 10px 24px rgba(47, 111, 255, 0.16);
}

.teambeheer-competition-group {
    scroll-margin-top: 1.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

.teambeheer-competition-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

.teambeheer-competition-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.teambeheer-competition-head__back {
    flex-shrink: 0;
    font-weight: 700;
}

.teambeheer-competition-block__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.teambeheer-competition-block__hint {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.teambeheer-feed-card--program-preview {
    overflow: hidden;
    padding: 0.5rem 0.75rem 0.75rem;
}

.teambeheer-feed--program-preview {
    overflow: hidden;
    padding: 0 !important;
}

.teambeheer-program-preview {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0.05rem 0.4rem;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
}

.teambeheer-program-preview__week {
    flex: 0 0 clamp(470px, 48vw, 560px);
    min-width: 320px;
    max-width: 100%;
    scroll-snap-align: start;
}

.teambeheer-program-preview__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.teambeheer-program-preview__table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
}

.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview {
    min-width: 100%;
}

.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th,
.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td {
    padding: 10px 10px;
}

.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(1),
.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(1) {
    min-width: 110px;
}

.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(2),
.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(2),
.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(3),
.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(3) {
    min-width: 170px;
}

.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(4),
.teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(4) {
    min-width: 58px;
}

@media (max-width: 900px) {
    .competition-jump-nav {
        gap: 0.5rem;
    }

    .competition-jump-nav--inline {
        top: 0.5rem;
        padding: 0.65rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .competition-jump-nav__link {
        min-height: 36px;
        padding: 0.55rem 0.8rem;
        font-size: 0.8rem;
    }

    .teambeheer-competition-head,
    .teambeheer-competition-block__heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .teambeheer-competition-group {
        margin-top: 2rem;
    }

    .teambeheer-program-preview {
        gap: 0.5rem;
    }

    .teambeheer-program-preview__week {
        flex-basis: 82vw;
        min-width: 82vw;
    }

    .teambeheer-program-preview__title {
        font-size: 0.98rem;
    }

    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview {
        min-width: 100%;
    }
}


.teambeheer-program-preview::-webkit-scrollbar,
.teambeheer-feed::-webkit-scrollbar {
    height: 10px;
}

.teambeheer-program-preview::-webkit-scrollbar-thumb,
.teambeheer-feed::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent) 70%, transparent);
    border-radius: 999px;
}

.teambeheer-program-preview::-webkit-scrollbar-track,
.teambeheer-feed::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
}


@media (min-width: 1200px) {
    .teambeheer-program-preview__week {
        flex-basis: calc(50% - 0.3rem);
        min-width: calc(50% - 0.3rem);
    }

    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th,
    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td {
        padding: 9px 9px;
    }

    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(1),
    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(1) {
        min-width: 96px;
    }

    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(2),
    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(2),
    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(3),
    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(3) {
        min-width: 150px;
    }

    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview th:nth-child(4),
    .teambeheer-program-preview__table-wrap .teambeheer-program-table--preview td:nth-child(4) {
        min-width: 52px;
    }
}


.home-mini-ranking {
    margin: 0.75rem 0 0.5rem 1.1rem;
    padding: 0;
}

.home-mini-ranking li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.home-mini-ranking li strong {
    white-space: nowrap;
}


.svhs-page-card {
    width: 100%;
}

.home-mini-ranking--large li {
    font-size: 1rem;
    gap: 1rem;
}

.teambeheer-feed--score {
    overflow-x: auto;
}

.teambeheer-score-block table,
.teambeheer-score-table {
    width: 100%;
    border-collapse: collapse;
}

.teambeheer-score-table th,
.teambeheer-score-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}

.teambeheer-feed--score-page {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.teambeheer-feed--score-page table,
.teambeheer-feed--score-page .ui.table,
.teambeheer-feed--score-page .table {
    min-width: 100%;
}


.home-mini-ranking--podium {
    list-style: none;
    margin: 0.9rem 0 0.65rem;
}

.home-mini-ranking--podium .home-mini-ranking__item {
    display: grid;
    grid-template-columns: 1.9rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.2rem;
    margin-bottom: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-mini-ranking--podium .home-mini-ranking__place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    grid-row: 1 / span 2;
}

.home-mini-ranking--podium .home-mini-ranking__player {
    min-width: 0;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.home-mini-ranking--podium .home-mini-ranking__value {
    grid-column: 2;
    white-space: normal;
    line-height: 1.1;
    font-size: 0.98rem;
}

.home-mini-ranking--podium .home-mini-ranking__item--place-1 {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.home-mini-ranking--podium .home-mini-ranking__item--place-1 .home-mini-ranking__place {
    background: rgba(255, 255, 255, 0.18);
}

.home-mini-ranking--podium .home-mini-ranking__item--place-2 {
    background: rgba(255, 255, 255, 0.06);
}

.home-mini-ranking--podium .home-mini-ranking__item--place-3 {
    background: rgba(255, 255, 255, 0.045);
}

@media (max-width: 640px) {
    .home-mini-ranking--podium .home-mini-ranking__item {
        grid-template-columns: 1.75rem minmax(0, 1fr);
        column-gap: 0.55rem;
        padding: 0.6rem 0.65rem;
    }

    .home-mini-ranking--podium .home-mini-ranking__place {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.9rem;
    }

    .home-mini-ranking--podium .home-mini-ranking__player,
    .home-mini-ranking--podium .home-mini-ranking__value {
        font-size: 0.95rem;
    }
}


/* SVHS podium badges readable in light theme + score header alignment */
.home-mini-ranking--podium .home-mini-ranking__place {
    color: var(--text-inverse);
    background: color-mix(in srgb, var(--header-accent) 82%, var(--surface) 18%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent);
}

.home-mini-ranking--podium .home-mini-ranking__item--place-1 .home-mini-ranking__place {
    background: color-mix(in srgb, var(--accent) 78%, var(--header-accent) 22%);
}

.teambeheer-feed--score-page th,
.teambeheer-feed--score-page .ui.table th,
.teambeheer-feed--score-page .table th,
.teambeheer-score-table th {
    text-align: left;
}


.svhs-rules-card {
    margin-bottom: 1.25rem;
}

.svhs-rules-card p {
    margin: 0 0 0.85rem;
}

.svhs-rules-card p:last-child {
    margin-bottom: 0;
}

.svhs-source-link {
    margin-top: 0.85rem;
}


@media (max-width: 980px) {
    .main-nav__group { width: 100%; }
    .main-nav__submenu { position: static; transform: none; display: grid; width: 100%; min-width: 0; margin-top: 8px; background: rgba(255,255,255,0.06); box-shadow: none; }
    .teambeheer-special-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .competition-subnav { gap: 10px; }
    .competition-subnav__link { width: 100%; justify-content: flex-start; }
    .teambeheer-generic-table { min-width: 720px; }
}




/* Competition-related wide feed tables */
.teambeheer-pagewide-card,
.svhs-page-card {
    padding: 0.9rem;
    overflow: hidden;
}

.teambeheer-pagewide-card .teambeheer-feed,
.svhs-page-card .teambeheer-feed {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft);
    overflow-x: auto;
    overflow-y: hidden;
}

.teambeheer-pagewide-card table,
.svhs-page-card table,
.teambeheer-pagewide-card .teambeheer-generic-table,
.svhs-page-card .teambeheer-score-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.teambeheer-pagewide-card th,
.teambeheer-pagewide-card td,
.svhs-page-card th,
.svhs-page-card td {
    padding: 10px 12px;
    vertical-align: middle;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.teambeheer-pagewide-card thead th,
.svhs-page-card thead th,
.teambeheer-pagewide-card th,
.svhs-page-card th {
    text-align: left !important;
    background: color-mix(in srgb, var(--surface-soft) 65%, var(--surface) 35%);
    color: var(--text);
}

.teambeheer-pagewide-card tbody tr:nth-child(odd) td,
.svhs-page-card tbody tr:nth-child(odd) td {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.teambeheer-pagewide-card tbody tr:nth-child(even) td,
.svhs-page-card tbody tr:nth-child(even) td {
    background: color-mix(in srgb, var(--surface-soft) 96%, transparent);
}

.teambeheer-pagewide-card tbody tr:hover td,
.svhs-page-card tbody tr:hover td {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface-soft));
}

.teambeheer-pagewide-card tbody tr:last-child td,
.svhs-page-card tbody tr:last-child td {
    border-bottom: 0;
}

.teambeheer-special-grid--links {
    align-items: stretch;
}

.teambeheer-special-card--linkonly {
    min-height: 100%;
    border: 1px solid var(--border);
}

.teambeheer-special-card--linkonly .button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 640px) {
    .teambeheer-pagewide-card,
    .svhs-page-card {
        padding: 0.65rem;
    }

    .teambeheer-pagewide-card table,
    .svhs-page-card table,
    .teambeheer-pagewide-card .teambeheer-generic-table,
    .svhs-page-card .teambeheer-score-table {
        min-width: 760px;
    }
}


.teambeheer-special-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.teambeheer-special-card--iframe {
    padding: 1rem;
}

.teambeheer-special-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.teambeheer-special-card__head h2 {
    margin-bottom: 0.35rem;
}

.teambeheer-special-card__head p {
    margin: 0;
    color: var(--muted);
}

.teambeheer-embed-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
}

.teambeheer-embed-frame {
    display: block;
    width: 100%;
    min-height: 720px;
    border: 0;
    background: #fff;
}

@media (max-width: 900px) {
    .teambeheer-special-card__head {
        flex-direction: column;
    }

    .teambeheer-special-card__head .button {
        width: 100%;
    }

    .teambeheer-embed-frame {
        min-height: 640px;
    }
}


.theme-toggle { display: none !important; }


/* Teambeheer iframes */
.teambeheer-pagewide-card--iframe,
.teambeheer-feed-card--iframe {
    padding: 1rem;
}

.teambeheer-iframe-card__title {
    margin: 0 0 0.85rem;
}

.teambeheer-iframe-shell {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
}

.teambeheer-iframe-shell::-webkit-scrollbar {
    display: none;
}

.teambeheer-iframe {
    display: block;
    width: 100%;
    min-width: 1180px;
    min-height: 760px;
    border: 0;
    background: #fff;
}

.teambeheer-iframe--compact {
    min-height: 680px;
}

.teambeheer-iframe--tall {
    min-height: 960px;
}

.teambeheer-iframe-shell--special {
    overflow-y: hidden;
}

.teambeheer-iframe--special {
    min-height: 1180px;
}

@media (max-width: 900px) {
    .teambeheer-iframe {
        min-width: 1100px;
        min-height: 720px;
    }

    .teambeheer-iframe--compact {
        min-height: 640px;
    }

    .teambeheer-iframe--tall {
        min-height: 860px;
    }

    .teambeheer-iframe--special {
        min-height: 980px;
    }
}


/* Competition menu mobile toggle and program page */
.main-nav__parent-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.main-nav__submenu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: var(--text);
    cursor: pointer;
    font: inherit;
}

.main-nav__submenu-toggle:hover,
.main-nav__submenu-toggle:focus-visible {
    background: rgba(255,255,255,0.14);
}

.teambeheer-iframe-shell--special {
    overflow-y: hidden;
}

.teambeheer-iframe--special {
    min-height: 1320px;
}

@media (max-width: 980px) {
    .main-nav__parent::after {
        content: none;
    }

    .main-nav__parent-wrap {
        width: 100%;
        justify-content: center;
    }

    .main-nav__submenu-toggle {
        display: inline-flex;
    }

    .main-nav__group .main-nav__submenu {
        display: none;
        position: static;
        transform: none;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        background: rgba(255,255,255,0.06);
        box-shadow: none;
    }

    .main-nav__group.is-open .main-nav__submenu,
    .main-nav__group:focus-within .main-nav__submenu {
        display: grid;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .teambeheer-iframe--special {
        min-height: 1180px;
    }
}

/* Quickjump layout fix: keep menus outside cards and non-sticky */
.competition-jump-nav--inline {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.teambeheer-special-section > .competition-jump-nav--inline {
  margin-bottom: 1rem;
}
.teambeheer-special-section > .card {
  margin-top: 0;
}
.teambeheer-special-grid {
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .competition-jump-nav--inline {
    margin-left: 0;
    margin-right: 0;
    padding: 0.65rem;
  }
}


/* Quickjump consistency fix */
.teambeheer-iframe-shell--special { overflow-y: hidden; min-height: 1460px; }
.teambeheer-iframe--special { min-height: 1460px; }
.teambeheer-special-grid { grid-template-columns: 1fr; }
.teambeheer-special-section > .competition-jump-nav { margin-bottom: 18px; }
.teambeheer-special-card { overflow: hidden; }
.competition-back-to-top, .teambeheer-competition-head__back { color: var(--primary); }
@media (max-width: 900px) { .teambeheer-iframe-shell--special, .teambeheer-iframe--special { min-height: 1180px; } }

/* Special results consistency patch */
.program-page .teambeheer-competition-head__back,
body[data-page-slug="programma"] .teambeheer-competition-head__back {
  color: var(--primary) !important;
}

/* Hide duplicate in-iframe jump pills/header on bijzondere resultaten by cropping the iframe top */
.teambeheer-iframe-shell--special {
  position: relative;
  overflow: hidden;
  min-height: 1440px;
}

.teambeheer-iframe--special {
  display: block;
  width: calc(100% + 28px);
  min-width: 1260px;
  min-height: 1580px;
  margin-top: -118px;
  margin-right: -28px;
  border: 0;
}

/* Keep the outer page jump row as the only visible quickjump row */
.teambeheer-special-section > .competition-jump-nav--inline {
  margin-bottom: 18px;
}

/* Slightly reduce card chrome loss after top crop */
.teambeheer-special-card--iframe {
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .teambeheer-iframe-shell--special {
    min-height: 1180px;
  }

  .teambeheer-iframe--special {
    min-width: 1120px;
    min-height: 1320px;
    margin-top: -110px;
    margin-right: -24px;
    width: calc(100% + 24px);
  }
}


/* Crop duplicate Teambeheer jump/header inside competitie en programma iframes */
.teambeheer-iframe-shell--cropped {
  position: relative;
  overflow: hidden;
  min-height: 660px;
}

.teambeheer-iframe--cropped {
  display: block;
  width: calc(100% + 28px);
  min-width: 1260px;
  min-height: 900px;
  margin-top: -118px;
  margin-right: -28px;
  border: 0;
}

@media (max-width: 900px) {
  .teambeheer-iframe-shell--cropped {
    min-height: 620px;
  }

  .teambeheer-iframe--cropped {
    min-width: 1120px;
    min-height: 860px;
    margin-top: -110px;
    margin-right: -24px;
    width: calc(100% + 24px);
  }
}


/* Fine-tune separate crops for standen and programma */
.teambeheer-iframe-shell--cropped-stand {
  min-height: 780px;
}

.teambeheer-iframe--cropped-stand {
  min-height: 1020px;
  margin-top: -118px;
}

.teambeheer-iframe-shell--cropped-program {
  min-height: 660px;
}

.teambeheer-iframe--cropped-program {
  min-height: 940px;
  margin-top: -172px;
}

@media (max-width: 900px) {
  .teambeheer-iframe-shell--cropped-stand {
    min-height: 700px;
  }

  .teambeheer-iframe--cropped-stand {
    min-height: 980px;
    margin-top: -110px;
  }

  .teambeheer-iframe-shell--cropped-program {
    min-height: 600px;
  }

  .teambeheer-iframe--cropped-program {
    min-height: 900px;
    margin-top: -158px;
  }
}


/* 94G: Programma volgt nu dezelfde brede iframe-basis als Bijzondere resultaten */
.program-page .teambeheer-feed-card--iframe {
    overflow: hidden;
}

.program-page .teambeheer-competition-group > .competition-jump-nav--inline {
    margin-bottom: 18px;
}

.program-page .teambeheer-iframe-shell--cropped-program {
    position: relative;
    overflow: hidden;
    min-height: 660px;
}

.program-page .teambeheer-iframe--cropped-program {
    display: block;
    width: calc(100% + 28px);
    min-width: 1260px;
    min-height: 940px;
    margin-top: -172px;
    margin-right: -28px;
    margin-left: 0;
    border: 0;
}

@media (max-width: 900px) {
    .program-page .teambeheer-iframe-shell--cropped-program {
        min-height: 600px;
    }

    .program-page .teambeheer-iframe--cropped-program {
        width: calc(100% + 24px);
        min-width: 1120px;
        min-height: 900px;
        margin-top: -158px;
        margin-right: -24px;
        margin-left: 0;
    }
}


/* 94H: Programma krijgt een zichtbare horizontale scrollbar in site-stijl */
.program-page .teambeheer-iframe-shell--cropped-program {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-alt);
    scrollbar-gutter: stable;
    padding-bottom: 4px;
}

.program-page .teambeheer-iframe-shell--cropped-program::-webkit-scrollbar {
    display: block;
    height: 12px;
}

.program-page .teambeheer-iframe-shell--cropped-program::-webkit-scrollbar-track {
    background: var(--bg-alt);
    border-radius: 999px;
}

.program-page .teambeheer-iframe-shell--cropped-program::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 999px;
    border: 2px solid var(--bg-alt);
}

.program-page .teambeheer-iframe-shell--cropped-program::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.program-page .teambeheer-iframe-shell--cropped-program::-webkit-scrollbar-corner {
    background: var(--bg-alt);
}


/* 94I: Mobiele Programma-weergave krijgt extra top-crop en een smalle iframe-viewport */
@media (max-width: 640px) {
    .program-page .teambeheer-iframe-shell--cropped-program {
        width: min(100%, 370px);
        max-width: 370px;
        min-height: 1240px;
        margin-inline: auto;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding-bottom: 8px;
    }

    .program-page .teambeheer-iframe--cropped-program {
        width: 392px;
        min-width: 392px;
        max-width: 392px;
        min-height: 1540px;
        margin-top: -196px;
        margin-right: 0;
        margin-left: 0;
    }

    .program-page .teambeheer-iframe-shell--cropped-program::-webkit-scrollbar {
        height: 10px;
    }
}


/* 94P: Mobiele weergave van Programma krijgt een extra brede sprong voor scorekolommen met dubbele cijfers */
@media (max-width: 640px) {
    .program-page .teambeheer-iframe--cropped-program {
        width: 720px;
        min-width: 720px;
        max-width: 720px;
    }
}


/* 94L: Mobiele landscape-weergave van Programma krijgt extra top-crop */
@media (max-width: 932px) and (orientation: landscape) {
    .program-page .teambeheer-iframe-shell--cropped-program {
        min-height: 780px;
    }

    .program-page .teambeheer-iframe--cropped-program {
        margin-top: -214px;
        min-height: 1280px;
    }
}


/* 94R: Competitie mobiel crop iets terug zodat tabelkoppen zichtbaar blijven, met behoud van scrollruimte */
.competition-page .teambeheer-feed-card--iframe {
    overflow: hidden;
}

.competition-page .teambeheer-competition-group > .competition-jump-nav--inline {
    margin-bottom: 18px;
}

.competition-page .teambeheer-iframe-shell--cropped-stand {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-alt);
    scrollbar-gutter: stable;
    padding-bottom: 4px;
}

.competition-page .teambeheer-iframe-shell--cropped-stand::-webkit-scrollbar {
    display: block;
    height: 12px;
}

.competition-page .teambeheer-iframe-shell--cropped-stand::-webkit-scrollbar-track {
    background: var(--bg-alt);
    border-radius: 999px;
}

.competition-page .teambeheer-iframe-shell--cropped-stand::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 999px;
    border: 2px solid var(--bg-alt);
}

.competition-page .teambeheer-iframe-shell--cropped-stand::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.competition-page .teambeheer-iframe-shell--cropped-stand::-webkit-scrollbar-corner {
    background: var(--bg-alt);
}

.competition-page .teambeheer-iframe--cropped-stand {
    display: block;
    width: calc(100% + 28px);
    min-width: 1260px;
    min-height: 1020px;
    margin-top: -126px;
    margin-right: -28px;
    margin-left: 0;
    border: 0;
}

@media (max-width: 900px) {
    .competition-page .teambeheer-iframe-shell--cropped-stand {
        min-height: 760px;
    }

    .competition-page .teambeheer-iframe--cropped-stand {
        width: calc(100% + 24px);
        min-width: 1260px;
        min-height: 1060px;
        margin-top: -148px;
        margin-right: -24px;
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .competition-page .teambeheer-iframe-shell--cropped-stand {
        width: min(100%, 370px);
        max-width: 370px;
        min-height: 1320px;
        margin-inline: auto;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding-bottom: 8px;
    }

    .competition-page .teambeheer-iframe--cropped-stand {
        width: 1040px;
        min-width: 1040px;
        max-width: 1040px;
        min-height: 1640px;
        margin-top: -152px;
        margin-right: 0;
        margin-left: 0;
    }

    .competition-page .teambeheer-iframe-shell--cropped-stand::-webkit-scrollbar {
        height: 10px;
    }
}

@media (max-width: 932px) and (orientation: landscape) {
    .competition-page .teambeheer-iframe-shell--cropped-stand {
        min-height: 980px;
    }

    .competition-page .teambeheer-iframe--cropped-stand {
        min-height: 1440px;
        margin-top: -168px;
    }
}


/* 94S: Competitie mobiel toont weer tabelkoppen en krijgt een compactere iframe-hoogte */
@media (max-width: 640px) {
    .competition-page .teambeheer-iframe-shell--cropped-stand {
        min-height: 980px;
    }

    .competition-page .teambeheer-iframe--cropped-stand {
        min-height: 1180px;
        margin-top: -118px;
    }
}

@media (max-width: 932px) and (orientation: landscape) {
    .competition-page .teambeheer-iframe-shell--cropped-stand {
        min-height: 760px;
    }

    .competition-page .teambeheer-iframe--cropped-stand {
        min-height: 1040px;
        margin-top: -132px;
    }
}


/* 154Ei: Bijzondere resultaten blijven dynamisch, maar laden nu vanaf de bovenkant zonder top-crop */
.special-results-page .teambeheer-special-card--iframe {
  padding: 1rem;
}

.special-results-page .teambeheer-iframe-shell--special {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(78, 130, 255, 0.95) rgba(9, 18, 36, 0.95);
  min-height: 1660px;
}

.special-results-page .teambeheer-iframe-shell--special::-webkit-scrollbar {
  display: block;
  height: 12px;
}

.special-results-page .teambeheer-iframe-shell--special::-webkit-scrollbar-track {
  background: rgba(9, 18, 36, 0.95);
  border-radius: 999px;
}

.special-results-page .teambeheer-iframe-shell--special::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(78, 130, 255, 0.98), rgba(38, 92, 224, 0.98));
  border-radius: 999px;
  border: 2px solid rgba(9, 18, 36, 0.95);
}

.special-results-page .teambeheer-iframe-shell--special::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(96, 146, 255, 1), rgba(48, 106, 240, 1));
}

.special-results-page .teambeheer-iframe-shell--special::-webkit-scrollbar-corner {
  background: rgba(9, 18, 36, 0.95);
}

.special-results-page .teambeheer-iframe--special {
  display: block;
  width: 100%;
  min-width: 1276px;
  min-height: 1660px;
  margin-top: 0;
  margin-right: 0;
  border: 0;
}

@media (max-width: 900px) {
  .special-results-page .teambeheer-special-card__head {
    align-items: flex-start;
  }

  .special-results-page .teambeheer-special-card__head .button {
    width: auto;
    align-self: flex-start;
    white-space: nowrap;
  }

  .special-results-page .teambeheer-iframe-shell--special {
    min-height: 1380px;
  }

  .special-results-page .teambeheer-iframe--special {
    width: 1520px;
    min-width: 1520px;
    min-height: 1520px;
    margin-top: 0;
    margin-right: 0;
  }
}


/* 94V: Speelgelegenheden krijgt dezelfde gerichte top-cropaanpak, met zoekbalk direct zichtbaar */
.venues-page .teambeheer-pagewide-card--iframe {
    overflow: hidden;
}

.venues-page .teambeheer-iframe-shell--cropped-venues {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 720px;
}

.venues-page .teambeheer-iframe--cropped-venues {
    display: block;
    width: 100%;
    min-width: 1180px;
    min-height: 920px;
    margin-top: -138px;
    margin-right: 0;
    margin-left: 0;
    border: 0;
}

@media (max-width: 900px) {
    .venues-page .teambeheer-iframe-shell--cropped-venues {
        min-height: 700px;
    }

    .venues-page .teambeheer-iframe--cropped-venues {
        min-width: 1180px;
        min-height: 900px;
        margin-top: -138px;
    }
}


/* 94Y: Speler van het seizoen krijgt op desktop nog meer rechterruimte; Verzette wedstrijden toont tabelkoppen vollediger op desktop en mobiel */
.postponed-page .teambeheer-pagewide-card--iframe,
.player-of-season-page .teambeheer-pagewide-card--iframe {
    overflow: hidden;
}

.postponed-page .teambeheer-iframe-shell--cropped-postponed,
.player-of-season-page .teambeheer-iframe-shell--cropped-player-season {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 720px;
}

.postponed-page .teambeheer-iframe--cropped-postponed,
.player-of-season-page .teambeheer-iframe--cropped-player-season {
    display: block;
    width: 100%;
    min-width: 1180px;
    min-height: 920px;
    margin-right: 0;
    margin-left: 0;
    border: 0;
}

.postponed-page .teambeheer-iframe--cropped-postponed {
    margin-top: -92px;
}

.player-of-season-page .teambeheer-iframe--cropped-player-season {
    width: calc(100% + 320px);
    min-width: 1520px;
    margin-top: -138px;
    margin-right: -320px;
}

@media (max-width: 900px) {
    .postponed-page .teambeheer-iframe-shell--cropped-postponed,
    .player-of-season-page .teambeheer-iframe-shell--cropped-player-season {
        min-height: 700px;
    }

    .postponed-page .teambeheer-iframe--cropped-postponed,
    .player-of-season-page .teambeheer-iframe--cropped-player-season {
        min-width: 1180px;
        min-height: 900px;
        width: 100%;
        margin-right: 0;
    }

    .postponed-page .teambeheer-iframe--cropped-postponed {
        margin-top: -92px;
    }

    .player-of-season-page .teambeheer-iframe--cropped-player-season {
        margin-top: -138px;
    }
}


/* 94Z: basisstructuur voor bekersectie */
.cup-landing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cup-landing-card {
  min-height: 100%;
}

.cup-page .teambeheer-feed-card--iframe {
  overflow: hidden;
}

.cup-page .teambeheer-competition-group > .competition-jump-nav--inline {
  margin-bottom: 18px;
}

.cup-page .teambeheer-iframe-shell--cup-poule,
.cup-page .teambeheer-iframe-shell--cup-knockout {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-alt);
  scrollbar-gutter: stable;
  padding-bottom: 4px;
}

.cup-page .teambeheer-iframe-shell--cup-poule::-webkit-scrollbar,
.cup-page .teambeheer-iframe-shell--cup-knockout::-webkit-scrollbar {
  display: block;
  height: 12px;
}

.cup-page .teambeheer-iframe-shell--cup-poule::-webkit-scrollbar-track,
.cup-page .teambeheer-iframe-shell--cup-knockout::-webkit-scrollbar-track {
  background: var(--bg-alt);
  border-radius: 999px;
}

.cup-page .teambeheer-iframe-shell--cup-poule::-webkit-scrollbar-thumb,
.cup-page .teambeheer-iframe-shell--cup-knockout::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
  border: 2px solid var(--bg-alt);
}

.cup-page .teambeheer-iframe-shell--cup-poule::-webkit-scrollbar-thumb:hover,
.cup-page .teambeheer-iframe-shell--cup-knockout::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.cup-page .teambeheer-iframe-shell--cup-poule::-webkit-scrollbar-corner,
.cup-page .teambeheer-iframe-shell--cup-knockout::-webkit-scrollbar-corner {
  background: var(--bg-alt);
}

.cup-page .teambeheer-iframe-shell--cup-poule {
  min-height: 720px;
}

.cup-page .teambeheer-iframe--cup-poule {
  display: block;
  width: calc(100% + 28px);
  min-width: 1260px;
  min-height: 1060px;
  margin-top: -132px;
  margin-right: -28px;
  margin-left: 0;
  border: 0;
}

.cup-page .teambeheer-iframe-shell--cup-knockout {
  min-height: 700px;
}

.cup-page .teambeheer-iframe--cup-knockout {
  display: block;
  width: calc(100% + 28px);
  min-width: 1260px;
  min-height: 980px;
  margin-top: -118px;
  margin-right: -28px;
  margin-left: 0;
  border: 0;
}

@media (max-width: 900px) {
  .cup-page .teambeheer-iframe-shell--cup-poule,
  .cup-page .teambeheer-iframe-shell--cup-knockout {
    min-height: 640px;
  }

  .cup-page .teambeheer-iframe--cup-poule,
  .cup-page .teambeheer-iframe--cup-knockout {
    width: calc(100% + 24px);
    margin-right: -24px;
  }
}

@media (max-width: 640px) {
  .cup-landing-grid {
    grid-template-columns: 1fr;
  }

  .cup-page .teambeheer-iframe-shell--cup-poule,
  .cup-page .teambeheer-iframe-shell--cup-knockout {
    width: min(100%, 370px);
    max-width: 370px;
    margin-inline: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 8px;
  }

  .cup-page .teambeheer-iframe-shell--cup-poule {
    min-height: 1180px;
  }

  .cup-page .teambeheer-iframe--cup-poule {
    width: 1040px;
    min-width: 1040px;
    max-width: 1040px;
    min-height: 1480px;
    margin-top: -148px;
    margin-right: 0;
  }

  .cup-page .teambeheer-iframe-shell--cup-knockout {
    min-height: 920px;
  }

  .cup-page .teambeheer-iframe--cup-knockout {
    width: 920px;
    min-width: 920px;
    max-width: 920px;
    min-height: 1280px;
    margin-top: -132px;
    margin-right: 0;
  }
}

/* 94AL: finetuning beker poulefase */
.cup-page--poulefase .teambeheer-iframe-shell--cup-poule {
  min-height: 580px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cup-page--poulefase .teambeheer-iframe-shell--cup-poule::-webkit-scrollbar {
  height: 0;
}

.cup-page--poulefase .teambeheer-iframe-shell--cup-poule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: linear-gradient(180deg, rgba(5, 15, 37, 0) 0%, rgba(5, 15, 37, 0.72) 58%, rgba(5, 15, 37, 1) 100%);
  pointer-events: none;
}

.cup-page--poulefase .teambeheer-iframe--cup-poule {
  width: calc(100% + 32px);
  min-height: 860px;
  margin-top: -128px;
  margin-right: -32px;
}

@media (max-width: 900px) {
  .cup-page--poulefase .teambeheer-iframe--cup-poule {
    width: calc(100% + 28px);
    margin-right: -28px;
  }
}

@media (max-width: 640px) {
  .cup-page--poulefase .teambeheer-iframe-shell--cup-poule {
    min-height: 700px;
  }

  .cup-page--poulefase .teambeheer-iframe-shell--cup-poule::after {
    height: 14px;
  }

  .cup-page--poulefase .teambeheer-iframe--cup-poule {
    width: 1080px;
    min-width: 1080px;
    max-width: 1080px;
    min-height: 900px;
    margin-top: -152px;
  }
}

@media (max-width: 932px) and (orientation: landscape) {
  .cup-page--poulefase .teambeheer-iframe-shell--cup-poule {
    width: min(100%, 100%);
    max-width: 100%;
    min-height: 620px;
  }

  .cup-page--poulefase .teambeheer-iframe--cup-poule {
    width: 1240px;
    min-width: 1240px;
    max-width: 1240px;
    min-height: 820px;
    margin-top: -126px;
  }
}


/* 94AJ: finetuning beker knock-out */
.cup-page--knockout .teambeheer-iframe-shell--cup-knockout {
  min-height: 500px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cup-page--knockout .teambeheer-iframe-shell--cup-knockout::-webkit-scrollbar {
  height: 0;
}

.cup-page--knockout .teambeheer-iframe-shell--cup-knockout::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background: linear-gradient(180deg, rgba(5, 15, 37, 0) 0%, rgba(5, 15, 37, 0.72) 58%, rgba(5, 15, 37, 1) 100%);
  pointer-events: none;
}

.cup-page--knockout .teambeheer-iframe--cup-knockout {
  width: calc(100% + 32px);
  min-height: 690px;
  margin-right: -32px;
}

@media (max-width: 900px) {
  .cup-page--knockout .teambeheer-iframe--cup-knockout {
    width: calc(100% + 28px);
    margin-right: -28px;
  }
}

@media (max-width: 640px) {
  .cup-page--knockout .teambeheer-iframe-shell--cup-knockout {
    min-height: 520px;
  }

  .cup-page--knockout .teambeheer-iframe-shell--cup-knockout::after {
    height: 16px;
  }

  .cup-page--knockout .teambeheer-iframe--cup-knockout {
    width: 920px;
    min-width: 920px;
    max-width: 920px;
    min-height: 640px;
    margin-top: -132px;
    margin-right: 0;
  }
}

@media (max-width: 932px) and (orientation: landscape) {
  .cup-page--knockout .teambeheer-iframe-shell--cup-knockout {
    width: min(100%, 100%);
    max-width: 100%;
    min-height: 520px;
  }

  .cup-page--knockout .teambeheer-iframe--cup-knockout {
    width: 1240px;
    min-width: 1240px;
    max-width: 1240px;
    min-height: 690px;
    margin-right: 0;
  }
}


/* Ranking stand iframe refinement: mirror bijzondere resultaten so Teambeheer dropdowns remain usable */
.ranking-stand-page .ranking-stand-card {
  padding: 1rem;
}

.ranking-stand-page .teambeheer-iframe-shell--ranking {
  overflow-x: hidden;
  overflow-y: hidden;
  min-height: 1440px;
}

.ranking-stand-page .teambeheer-iframe--ranking {
  display: block;
  width: calc(100% + 44px);
  min-width: 1276px;
  min-height: 1620px;
  margin-top: -122px;
  margin-right: -44px;
  border: 0;
}

@media (max-width: 900px) {
  .ranking-stand-page .teambeheer-special-card__head {
    align-items: flex-start;
  }

  .ranking-stand-page .teambeheer-special-card__head .button {
    width: auto;
    align-self: flex-start;
    white-space: nowrap;
  }

  .ranking-stand-page .teambeheer-iframe-shell--ranking {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(78, 130, 255, 0.95) rgba(9, 18, 36, 0.95);
    min-height: 1180px;
  }

  .ranking-stand-page .teambeheer-iframe-shell--ranking::-webkit-scrollbar {
    display: block;
    height: 12px;
  }

  .ranking-stand-page .teambeheer-iframe-shell--ranking::-webkit-scrollbar-track {
    background: rgba(9, 18, 36, 0.95);
    border-radius: 999px;
  }

  .ranking-stand-page .teambeheer-iframe-shell--ranking::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(78, 130, 255, 0.98), rgba(38, 92, 224, 0.98));
    border-radius: 999px;
    border: 2px solid rgba(9, 18, 36, 0.95);
  }

  .ranking-stand-page .teambeheer-iframe-shell--ranking::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(96, 146, 255, 1), rgba(48, 106, 240, 1));
  }

  .ranking-stand-page .teambeheer-iframe-shell--ranking::-webkit-scrollbar-corner {
    background: rgba(9, 18, 36, 0.95);
  }

  .ranking-stand-page .teambeheer-iframe--ranking {
    width: 1520px;
    min-width: 1520px;
    min-height: 1380px;
    margin-top: -122px;
    margin-right: 0;
  }
}

/* 104E1 ranking events and agenda */
.ranking-overview-page .ranking-next-event-card {
  margin-bottom: 1.5rem;
}

.ranking-event-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.ranking-event-highlight h3 {
  margin: 0 0 0.4rem;
}

.ranking-event-highlight p {
  margin: 0.2rem 0;
}

.ranking-event-highlight__meta,
.ranking-agenda-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.ranking-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(54, 110, 238, 0.18);
  border: 1px solid rgba(84, 138, 255, 0.35);
  color: #dfe8ff;
  font-weight: 700;
  font-size: 0.95rem;
}

.ranking-pill--outline {
  background: transparent;
}

.ranking-agenda-list {
  display: grid;
  gap: 1.25rem;
}

.ranking-agenda-card__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.ranking-agenda-card__grid strong {
  display: block;
  margin-bottom: 0.25rem;
}

.ranking-agenda-card__grid p,
.ranking-agenda-card__description {
  margin: 0;
}

.ranking-agenda-card__description {
  margin-top: 0.9rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .ranking-event-highlight,
  .ranking-agenda-card__grid {
    grid-template-columns: 1fr;
  }

  .ranking-event-highlight__meta,
  .ranking-agenda-card__meta {
    justify-content: flex-start;
  }
}


.ranking-event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ranking-event-actions .dartconnect-button {
  margin-left: auto;
}

.ranking-event-actions--compact {
  margin-top: 0.85rem;
}

.ranking-event-actions--compact .dartconnect-button {
  margin-left: 0;
}

.dartconnect-button {
  display: inline-flex;
  align-items: stretch;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  background: #c70f08;
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.dartconnect-button:hover,
.dartconnect-button:focus-visible {
  background: #1567b8;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 20, 48, 0.32);
}

.dartconnect-button__label,
.dartconnect-button__live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.3rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.dartconnect-button__label {
  text-align: center;
}

.dartconnect-button__live-badge {
  background: #ffc51f;
  color: #8d1900;
  font-size: 1rem;
  white-space: nowrap;
}

.dartconnect-button:not(.dartconnect-button--live) .dartconnect-button__live-badge {
  display: none;
}

@media (max-width: 700px) {
  .ranking-event-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ranking-event-actions .dartconnect-button {
    margin-left: 0;
  }

  .dartconnect-button {
    width: 100%;
  }

  .dartconnect-button__label,
  .dartconnect-button__live-badge {
    min-height: 52px;
    padding: 0 1rem;
  }

  .dartconnect-button__label {
    flex: 1 1 auto;
  }
}

.ranking-payment-card{max-width:760px;margin:0 auto;padding:2rem}.ranking-payment-status-badges{display:flex;gap:.75rem;flex-wrap:wrap;margin:1rem 0 1.25rem}.ranking-payment-page .ranking-event-actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.ranking-payment-page .dartconnect-button{margin-left:auto}@media (max-width:768px){.ranking-payment-page .dartconnect-button{margin-left:0;width:100%}}


/* 105Ga ranking capacity progress */
.ranking-capacity-progress {
  margin-top: 1rem;
}

.ranking-capacity-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.ranking-capacity-progress__track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ranking-capacity-progress__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.ranking-capacity-progress__fill--green {
  background: linear-gradient(90deg, #2fb34a 0%, #49ce68 100%);
}

.ranking-capacity-progress__fill--yellow {
  background: linear-gradient(90deg, #d4b11f 0%, #f2d54c 100%);
}

.ranking-capacity-progress__fill--orange {
  background: linear-gradient(90deg, #d97a17 0%, #f7a13c 100%);
}

.ranking-capacity-progress__fill--red {
  background: linear-gradient(90deg, #c80f09 0%, #f0413b 100%);
}


.admin-form-grid__full {
    grid-column: 1 / -1;
}

.button-small {
    padding: 0.48rem 0.72rem;
    font-size: 0.88rem;
}

@media (max-width: 720px) {
    .button-small {
        width: 100%;
    }
}


.form-label-meta {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-soft);
}

.ranking-registration-card .admin-form-grid > .form-row {
    align-self: start;
}





.ranking-members-search-card {
    scroll-margin-top: 24px;
}

.ranking-members-search-form {
    margin-bottom: 20px;
}

.ranking-members-search-field {
    position: relative;
}

.ranking-members-autocomplete {
    position: relative;
}

.ranking-members-autocomplete__menu[hidden] {
    display: none !important;
}

.ranking-members-autocomplete__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.ranking-members-autocomplete__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.ranking-members-autocomplete__item:hover,
.ranking-members-autocomplete__item.is-active {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.ranking-members-autocomplete__value {
    font-weight: 700;
}

.ranking-members-autocomplete__label {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.ranking-members-alpha-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ranking-members-alpha-filter__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.ranking-members-alpha-filter__item:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    transform: translateY(-1px);
}

.ranking-members-alpha-filter__item.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(47, 111, 255, 0.22);
}

@media (max-width: 640px) {
    .ranking-members-alpha-filter {
        gap: 8px;
    }

    .ranking-members-alpha-filter__item {
        width: 42px;
        min-width: 42px;
    }

    .ranking-members-autocomplete__item {
        flex-direction: column;
        align-items: flex-start;
    }
}


.admin-list-compact {
    margin: 0;
    padding-left: 18px;
}

.admin-list-compact li {
    margin: 6px 0;
}

/* 154C ranking results diagnostics + badges */
.results-diagnostics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin:1rem 0}.results-diagnostic-box{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:1rem;display:flex;flex-direction:column;gap:.35rem}.results-diagnostic-box strong{font-size:1.35rem;color:#fff}.results-diagnostic-box span{color:rgba(255,255,255,.72)}.status-badge{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;padding:.25rem .6rem;font-size:.85rem;font-weight:700;white-space:nowrap}.status-badge--registration.status-badge--registered,.status-badge--payment.status-badge--paid,.status-badge--attendance.status-badge--present{background:rgba(34,197,94,.18);color:#b4f0c7;border:1px solid rgba(34,197,94,.38)}.status-badge--registration.status-badge--waitlist,.status-badge--payment.status-badge--payment_open,.status-badge--payment.status-badge--open,.status-badge--payment.status-badge--cash_expected,.status-badge--attendance.status-badge--unknown{background:rgba(245,158,11,.16);color:#ffd48a;border:1px solid rgba(245,158,11,.34)}.status-badge--registration.status-badge--cancelled,.status-badge--payment.status-badge--cancelled,.status-badge--payment.status-badge--expired,.status-badge--attendance.status-badge--no_show,.status-badge--attendance.status-badge--absent{background:rgba(239,68,68,.16);color:#ffb0b0;border:1px solid rgba(239,68,68,.34)}.status-badge--registration.status-badge--pending{background:rgba(96,165,250,.16);color:#b6d7ff;border:1px solid rgba(96,165,250,.34)}


.regulation-layout { display:grid; grid-template-columns:minmax(0, 290px) minmax(0, 1fr); gap:20px; align-items:start; }
.regulation-main-column { min-width:0; }
.regulation-summary-card { scroll-margin-top: 100px; }
.regulation-action-row { display:flex; flex-wrap:wrap; gap:10px; }
.regulation-toc-card { position:sticky; top:92px; padding:24px; }
.regulation-toc-card h2 { margin-top:0; margin-bottom:14px; }
.regulation-toc ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.regulation-toc li { margin:0; }
.regulation-toc li.is-sublevel { padding-left:16px; }
.regulation-toc a { color:#fff; text-decoration:none; line-height:1.45; }
.regulation-toc a:hover { color:#ffb3ae; }
.regulation-content { line-height: 1.7; scroll-margin-top:100px; }
.regulation-content h1,.regulation-content h2,.regulation-content h3,.regulation-content h4 { margin-top: 1.6rem; margin-bottom: 0.7rem; scroll-margin-top: 100px; }
.regulation-content h2 { padding-top:0.25rem; border-top:1px solid rgba(255,255,255,0.08); }
.regulation-content p,.regulation-content ul,.regulation-content ol,.regulation-content blockquote { margin: 0 0 1rem; }
.regulation-content section + section { margin-top:1.25rem; }
.regulation-content ul,.regulation-content ol { padding-left:1.4rem; }
.regulation-meta-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin:18px 0 24px; }
.regulation-meta-card { padding:14px 16px; border-radius:14px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); }
.regulation-version-badge { display:inline-flex; align-items:center; gap:8px; padding:0.35rem 0.7rem; border-radius:999px; background:color-mix(in srgb, var(--accent) 18%, transparent); color:var(--accent); border:1px solid color-mix(in srgb, var(--accent) 38%, transparent); font-weight:700; box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent); }
.admin-code { font-family:Consolas,Monaco,monospace; font-size:0.92rem; }
@media (max-width: 980px) { .regulation-layout { grid-template-columns:1fr; } .regulation-toc-card { position:static; } }
.admin-stack { display:flex; flex-direction:column; gap:10px; }
.admin-inline-actions--wrap { flex-wrap:wrap; gap:8px; }
.admin-version-preview { display:inline-flex; align-items:center; gap:8px; font-size:0.95rem; font-weight:700; }
.form-help { margin-top:6px; color:var(--text-soft); font-size:0.9rem; }


.regulation-search-grid {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;}
.regulation-search-actions {display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.regulation-search-excerpt {background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:12px 14px;margin:14px 0;}
.regulation-inline-search-row {display:flex;gap:10px;margin-top:8px;flex-wrap:wrap;}
.regulation-content mark,.doc-card mark {background:rgba(255,214,10,0.35);color:inherit;padding:0 2px;border-radius:4px;}
.regulation-editor {padding:16px;}
.regulation-editor__toolbar {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;}
.regulation-editor__surface {min-height:420px;border:1px solid rgba(255,255,255,0.12);border-radius:14px;padding:16px;background:rgba(0,0,0,0.18);line-height:1.7;}
.regulation-editor__surface:focus {outline:2px solid rgba(255,255,255,0.18);outline-offset:0;}
.regulation-editor__source {margin-top:12px;}
@media (max-width:860px){.regulation-search-grid{grid-template-columns:1fr;}}

.regulation-search-match.is-active-search-match{background:rgba(224,11,0,0.45);box-shadow:0 0 0 1px rgba(255,255,255,0.18);}
.regulation-inline-search-row .button[disabled]{opacity:.45;cursor:not-allowed;}


.regulation-compare-meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px;}
.regulation-compare-meta-card{padding:20px;}
.regulation-compare-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px;}
.regulation-compare-summary__item{padding:12px 14px;border-radius:14px;border:1px solid var(--border);background:var(--surface-soft);display:flex;flex-direction:column;gap:4px;}
.regulation-compare-summary__label{font-size:.82rem;color:var(--text-soft);font-weight:700;}
.regulation-compare-summary__value{font-size:1.15rem;font-weight:800;line-height:1.1;}
.regulation-compare-summary__item--added{border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.10);}
.regulation-compare-summary__item--removed{border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.10);}
.regulation-compare-summary__item--changed{border-color:color-mix(in srgb, var(--accent) 35%, transparent);background:color-mix(in srgb, var(--accent) 12%, transparent);}
.regulation-compare-summary__item--same{border-color:var(--border);background:var(--surface-soft);}
.regulation-diff-list{display:flex;flex-direction:column;}
.regulation-diff-row{display:grid;grid-template-columns:44px 1fr;gap:0;border-top:1px solid rgba(255,255,255,0.08);}
.regulation-diff-row:first-child{border-top:none;}
.regulation-diff-sign{padding:14px 12px;font-weight:700;text-align:center;background:rgba(255,255,255,0.04);}
.regulation-diff-text{padding:14px 16px;white-space:pre-wrap;line-height:1.55;}
.regulation-diff-row--added .regulation-diff-sign,.regulation-diff-added{color:#94f7b6;}
.regulation-diff-row--removed .regulation-diff-sign,.regulation-diff-removed{color:#ff9c9c;}
.regulation-diff-row--same .regulation-diff-sign{color:#bdbdbd;}
.regulation-diff-row--added .regulation-diff-text{background:rgba(34,197,94,0.08);}
.regulation-diff-row--removed .regulation-diff-text{background:rgba(239,68,68,0.09);}
.regulation-diff-row--same .regulation-diff-text{background:rgba(255,255,255,0.02);}
@media (max-width: 900px){.regulation-compare-meta-grid{grid-template-columns:1fr;}.regulation-compare-summary{grid-template-columns:1fr;}}


.checkbox-label { display:inline-flex; align-items:center; gap:10px; cursor:pointer; }
.checkbox-label input[type="checkbox"] { appearance:auto; -webkit-appearance:checkbox; width:18px; height:18px; margin:0; accent-color:var(--accent); cursor:pointer; border:0; box-shadow:none; background:transparent; border-radius:4px; flex:0 0 auto; }
.checkbox-label input[type="checkbox"][disabled] { opacity:.45; cursor:not-allowed; }
.checkbox-note { margin-top:8px; }


.sponsor-card--rich {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 180px;
}

.sponsor-card--rich a {
    color: inherit;
    text-decoration: none;
}

.sponsor-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.sponsor-card__logo img {
    max-width: 180px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(224, 11, 0, 0.12);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}


/* Patch 154Eg: sponsor presentatie + uniforme velden */
.sponsor-section-block{margin-top:26px;display:grid;gap:14px;}
.sponsor-section-block--club50{padding:20px;border:1px solid var(--border);border-radius:22px;background:linear-gradient(180deg, rgba(47,111,255,0.10), rgba(255,255,255,0.02));}
.section-subhead{display:grid;gap:4px;}
.section-subhead h3{margin:0;}
.section-subhead p{margin:0;color:var(--text-soft);}
.sponsor-grid--featured{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.sponsor-grid--club50{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.sponsor-card--featured{border-color:color-mix(in srgb, var(--accent) 42%, transparent);background:linear-gradient(180deg, rgba(47,111,255,0.10), rgba(255,255,255,0.03));}
.sponsor-card--club50{background:rgba(255,255,255,0.03);}
.sponsor-type-badge{background:color-mix(in srgb, var(--accent) 18%, transparent);border:1px solid color-mix(in srgb, var(--accent) 45%, transparent);color:#eef4ff;}

.form-row input,
.form-row select,
.form-row textarea,
.admin-body .form-row input,
.admin-body .form-row select,
.admin-body .form-row textarea{
    border-radius:18px;
    min-height:64px;
    padding:16px 18px;
    border:1px solid #30435f;
    background:#0f1a2d;
    color:#eef4fb;
}
.form-row textarea,
.admin-body .form-row textarea{
    min-height:220px;
}
.form-row input::placeholder,
.form-row textarea::placeholder,
.admin-body .form-row input::placeholder,
.admin-body .form-row textarea::placeholder{
    color:#8fa3bd;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.admin-body .form-row input:focus,
.admin-body .form-row select:focus,
.admin-body .form-row textarea:focus{
    background:#13213a;
    border-color:var(--accent);
    box-shadow:0 0 0 3px rgba(47,111,255,0.18);
}
.form-row select,
.admin-body .form-row select{
    cursor:pointer;
}
.form-row input[type="checkbox"],
.form-row input[type="radio"],
.admin-body .form-row input[type="checkbox"],
.admin-body .form-row input[type="radio"]{
    min-height:auto;
    width:auto;
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
}

/* Patch 154Ej: sponsorbeheer finalisatie */
.admin-toolbar--split{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.admin-filter-form{margin:0 0 16px;padding:16px 18px;border:1px solid var(--border);border-radius:20px;background:rgba(255,255,255,0.03);}
.form-row-grid--4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end;}
.form-row--actions-end{display:flex;gap:10px;align-items:flex-end;justify-content:flex-start;flex-wrap:wrap;}
.admin-badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:.78rem;font-weight:700;line-height:1.1;}
.admin-badge--accent{background:color-mix(in srgb,var(--accent) 16%, transparent);border:1px solid color-mix(in srgb,var(--accent) 40%, transparent);color:#eef4ff;}
@media (max-width: 980px){.form-row-grid--4{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 640px){.form-row-grid--4{grid-template-columns:1fr;}}

.admin-badge--warning{background:rgba(245,158,11,.18);border:1px solid rgba(245,158,11,.45);color:#fff3d6;}
.admin-badge--muted{background:rgba(148,163,184,.15);border:1px solid rgba(148,163,184,.35);color:#e5edf8;}


.vacancy-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.vacancy-choice-card{position:relative;display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid rgba(255,255,255,.10);border-radius:14px;background:rgba(255,255,255,.03);cursor:pointer;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease,transform .12s ease}
.vacancy-choice-card:hover{border-color:color-mix(in srgb, var(--accent) 45%, transparent);background:rgba(255,255,255,.05)}
.vacancy-choice-card.is-selected{border-color:color-mix(in srgb, var(--accent) 72%, transparent);background:color-mix(in srgb, var(--accent) 14%, transparent);box-shadow:0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent) inset}
.vacancy-choice-card input{width:18px;height:18px;accent-color:var(--accent);flex:0 0 auto}
.vacancy-choice-card span{display:block;font-weight:600;color:#fff}


.admin-form-actions--left {
    justify-content: flex-start;
}


.admin-toolbar--spread {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.admin-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-search-form input[type="search"] {
  min-width: 280px;
}

.managed-page-card {
  padding: clamp(20px, 3vw, 36px);
}

.managed-page-content {
  display: grid;
  gap: 16px;
}

.managed-page-content h1,
.managed-page-content h2,
.managed-page-content h3 {
  margin: 0;
}

.managed-page-content p,
.managed-page-content ul,
.managed-page-content ol {
  margin: 0;
}

.managed-page-content ul,
.managed-page-content ol {
  padding-left: 1.25rem;
}


.menu-dnd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.menu-dnd-panel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 1rem; }
.menu-dnd-panel h3 { margin-top: 0; }
.menu-dnd-list { list-style: none; margin: 0; padding: 0; min-height: 2rem; }
.menu-dnd-list--child { margin-top: .65rem; margin-left: 1.5rem; padding-left: .75rem; border-left: 1px dashed rgba(255,255,255,0.14); }
.menu-dnd-item { margin-bottom: .6rem; }
.menu-dnd-card { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); cursor: grab; justify-content: space-between; flex-wrap: wrap; }
.menu-dnd-card:hover { border-color: rgba(0,123,255,0.45); }
.menu-dnd-item.is-dragging > .menu-dnd-card { opacity: .5; }
.menu-dnd-handle { color: rgba(255,255,255,0.5); font-size: 1rem; line-height: 1; }
.menu-dnd-content { display: flex; flex-direction: column; gap: .2rem; }

.menu-move-actions { margin-left: auto; justify-content: flex-end; }
.menu-move-actions .button { white-space: nowrap; }
.menu-dnd-card .menu-dnd-content { flex: 1 1 180px; }
.menu-dnd-card .menu-move-actions { flex: 0 0 auto; }


.access-denied-card {
    max-width: 760px;
    margin: 40px auto;
    padding: 32px;
}

.admin-inline-secret {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(6, 20, 46, 0.45);
    border: 1px solid rgba(94, 152, 255, 0.24);
    color: #ffffff;
}

.admin-inline-secret strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.04em;
}


.photo-detail-card--sortable {
    cursor: move;
}

.photo-detail-card--sortable.is-dragging {
    opacity: 0.55;
    transform: scale(0.98);
}

.photo-cover-preview {
    max-width: 320px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface-soft);
}

.photo-cover-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.photo-album-cover {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.photo-album-cover img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.photo-detail-card__button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.photo-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 20, 0.88);
}

.photo-lightbox__dialog {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
}

.photo-lightbox__figure {
    margin: 0;
    max-width: min(1000px, 86vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.photo-lightbox__figure img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.photo-lightbox__caption {
    color: #f3f6fb;
    text-align: center;
}

.photo-lightbox__close,
.photo-lightbox__nav {
    border: 0;
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    font-size: 1.8rem;
    cursor: pointer;
}

.photo-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
}

body.lightbox-open {
    overflow: hidden;
}


/* 174Ad photo album polish */
.admin-inline-actions--photo-cover {
  margin: 0 0 1rem;
}
@media (max-width: 767px) {
  .photo-album-cover {
    border-radius: 18px;
    overflow: hidden;
  }
  .photo-album-cover img {
    max-height: 240px;
    object-fit: cover;
  }
  .photo-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .photo-detail-card {
    border-radius: 18px;
    overflow: hidden;
  }
  .photo-detail-card__button {
    padding: 0;
    text-align: left;
  }
  .photo-detail-card__caption {
    padding: 0.7rem 0.8rem 0.9rem;
    font-size: 0.92rem;
    line-height: 1.4;
  }
  .photo-lightbox__dialog {
    width: min(100vw - 1rem, 820px);
    max-height: calc(100vh - 1rem);
    padding: 2.6rem 0.5rem 0.9rem;
    border-radius: 20px;
  }
  .photo-lightbox__figure {
    gap: 0.55rem;
  }
  .photo-lightbox__figure img {
    max-height: calc(100vh - 11rem);
    border-radius: 14px;
  }
  .photo-lightbox__caption {
    font-size: 0.92rem;
    padding: 0 0.4rem;
  }
  .photo-lightbox__close,
  .photo-lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .photo-lightbox__close {
    top: 0.45rem;
    right: 0.45rem;
  }
  .photo-lightbox__nav--prev {
    left: 0.3rem;
  }
  .photo-lightbox__nav--next {
    right: 0.3rem;
  }
}
@media (max-width: 480px) {
  .photo-detail-grid {
    grid-template-columns: 1fr;
  }
}


.admin-nav__group {display:flex;flex-direction:column;gap:.35rem;min-width:0;}
.admin-nav__group-link{display:inline-flex;align-items:center;justify-content:center;padding:.65rem 1rem;border-radius:999px;background:rgba(255,255,255,.06);color:#fff;text-decoration:none;font-weight:700;}
.admin-nav__group-link.is-active,.admin-nav__group.is-active .admin-nav__group-link{background:rgba(224,11,0,.18);border-color:rgba(224,11,0,.35);}
.admin-nav__submenu{display:flex;flex-wrap:wrap;gap:.4rem;}
.admin-nav__submenu a{display:inline-flex;align-items:center;padding:.4rem .7rem;border-radius:999px;background:rgba(255,255,255,.04);color:#d8dbe2;text-decoration:none;font-size:.9rem;}
.admin-nav__submenu a.is-active{background:rgba(255,255,255,.12);color:#fff;}

/* Patch 174Ai: admin nav active accent + menu checkbox visibility */
.admin-nav__group-link.is-active,
.admin-nav__group.is-active .admin-nav__group-link{
  background:color-mix(in srgb,var(--accent) 18%, transparent);
  border-color:color-mix(in srgb,var(--accent) 42%, transparent);
  color:#eef4ff;
}
.admin-checkbox-row{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  color:#eef4ff;
  font-weight:500;
}
.admin-checkbox-row input[type="checkbox"]{
  appearance:auto;
  -webkit-appearance:checkbox;
  inline-size:1rem;
  block-size:1rem;
  margin:0;
  accent-color:var(--accent);
  flex:0 0 auto;
}




/* === DBZP archief bundle 001Bd === */

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    flex-shrink: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.96);
    font-size: 1.05rem;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.brand-link:hover,
.brand-link:focus-visible {
    color: #ffffff;
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.20);
    transform: translateY(-1px);
}

.main-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.site-main {
    padding: 0 0 72px;
}

.content-section {
    padding: 34px 0;
}

.page-header {
    padding: 54px 0 28px;
}

.page-header h1 {
    margin: 0 0 12px;
    font-size: 2.2rem;
}

.page-header p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

.archive-table,
.archive-table thead,
.archive-table tbody,
.archive-table tr,
.archive-table td,
.archive-table th,
.archive-detail-table,
.archive-detail-table tbody,
.archive-detail-table tr,
.archive-detail-table td,
.archive-detail-table th {
    overflow: visible;
}

.archive-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

.archive-table th,
.archive-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.archive-table th {
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--surface-soft) 65%, var(--surface) 35%);
}

.archive-table td {
    color: var(--text);
    background: transparent;
}

.archive-table tbody tr:nth-child(odd) td,
.archive-table tbody tr:nth-child(odd) th {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.archive-table tbody tr:nth-child(even) td,
.archive-table tbody tr:nth-child(even) th {
    background: color-mix(in srgb, var(--surface-soft) 96%, transparent);
}

.archive-table tbody tr:hover td,
.archive-table tbody tr:hover th {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface-soft));
}

.archive-table a {
    color: inherit;
    font-weight: 700;
}

.archive-table thead th:first-child {
    border-top-left-radius: 12px;
}

.archive-table thead th:last-child {
    border-top-right-radius: 12px;
}

.archive-table tbody tr:last-child td,
.archive-table tbody tr:last-child th {
    border-bottom: 0;
}

.archive-detail-table {
    border-radius: 14px;
    overflow: visible;
    position: relative;
}

.archive-detail-table tbody th {
    width: 44%;
}

.archive-detail-table tbody th,
.archive-detail-table tbody td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.archive-align-numeric th:last-child,
.archive-align-numeric td:last-child {
    text-align: right;
    width: 220px;
    white-space: nowrap;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-search-input {
    width: 260px;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font: inherit;
    line-height: 1.3;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.header-search-input::placeholder {
    color: rgba(255,255,255,0.72);
    opacity: 1;
}

.header-search-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.26);
    background: rgba(255,255,255,0.14);
}

.header-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 10px 16px;
}

.archive-search-form {
    display: block;
}

.archive-search-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 140px;
    gap: 16px;
    align-items: center;
}

.archive-search-label label {
    display: block;
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.2;
}

.archive-search-field,
.archive-search-action {
    min-width: 0;
}

.archive-search-input {
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    background: color-mix(in srgb, var(--surface-soft) 45%, transparent);
    color: var(--text);
    font: inherit;
    line-height: 1.45;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.archive-search-input::placeholder {
    color: var(--text-soft);
    opacity: 1;
}

.archive-search-input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 75%, white 10%);
    background: color-mix(in srgb, var(--surface) 75%, transparent);
    box-shadow: 0 0 0 3px rgba(47, 111, 255, 0.12);
}

.archive-search-action .button {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.archive-finish-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.archive-finish-main {
    font-weight: 700;
}

.archive-finish-dropdown {
    position: relative;
    display: inline-block;
}

.archive-finish-dropdown[open] {
    z-index: 50;
}

.archive-finish-dropdown__summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.archive-finish-dropdown__summary::-webkit-details-marker {
    display: none;
}

.archive-finish-dropdown__summary:hover,
.archive-finish-dropdown__summary:focus-visible {
    background: rgba(255,255,255,0.16);
    outline: none;
}

.archive-finish-dropdown__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 999;
    width: min(520px, 80vw);
    max-height: 280px;
    overflow-y: auto;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f4f4f5;
    color: #171717;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    text-align: left;
}

.archive-finish-dropdown__panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 14px;
    width: 14px;
    height: 14px;
    background: #f4f4f5;
    transform: rotate(45deg);
}

.archive-finish-dropdown__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.archive-finish-dropdown__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.archive-finish-dropdown__item {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(23, 23, 23, 0.06);
    color: #171717;
    font-size: 0.92rem;
    line-height: 1.2;
}

.site-header {
    background-position: center center;
}

.header-inner {
    min-height: 132px;
    padding: 28px 0;
    align-items: center;
}

.main-nav a,
.brand-link,
.header-search-button {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.card h2 {
    margin-bottom: 18px;
}

.card > p:last-child {
    margin-bottom: 0;
}

.page-header + .content-section {
    padding-top: 20px;
}

.hero p,
.page-header p,
.card p {
    text-wrap: pretty;
}

@media (max-width: 1100px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        min-height: 150px;
        gap: 18px;
    }

    .main-nav {
        order: 2;
        width: 100%;
    }

    .header-search-form {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .archive-search-grid {
        grid-template-columns: 1fr;
    }

    .archive-finish-dropdown__panel {
        right: auto;
        left: 0;
        width: min(440px, 86vw);
        max-height: 240px;
    }

    .archive-finish-dropdown__panel::before {
        right: auto;
        left: 14px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 168px;
        padding: 24px 0;
    }

    .brand-link {
        min-height: 48px;
        font-size: 1rem;
    }

    .main-nav {
        gap: 10px;
    }

    .main-nav a {
        min-height: 40px;
        padding: 9px 14px;
    }

    .content-section {
        padding: 28px 0;
    }

    .page-header {
        padding: 42px 0 22px;
    }

    .page-header h1 {
        font-size: 1.95rem;
    }

    .header-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .header-search-input {
        width: 100%;
    }

    .archive-align-numeric th:last-child,
    .archive-align-numeric td:last-child {
        width: auto;
    }

    .archive-finish-inline {
        justify-content: flex-start;
    }
}
