/* Digitennis – the shared theme of the public pages (2026). No web fonts, no external URLs. */
:root {
    /* Palette: the Slovenian flag read as a brand, not a flag. Blue #005DA4 is 6.7:1 on white, #003DA5 9.4:1. */
    --dt-blue: #005da4;
    --dt-blue-deep: #003da5;
    --dt-blue-dark: #00457c;
    --dt-blue-bright: #0a72c8;         /* the light end of the hero gradient (white text stays 4.9:1+) */
    --dt-blue-tint: rgba(0, 93, 164, .07);
    --dt-blue-soft: #e8f0fa;
    --dt-navy: #0a1f44;                /* the footer band and the dark end of gradients */
    --dt-red: #ed1c24;                 /* graphic accent only (3.1:1 as text is not enough) */
    --dt-red-text: #c8102e;            /* 5.9:1 on white: red where red is readable */
    --dt-ball: #d9e64c;                /* tennis-ball optic yellow, decorative */
    --dt-ball-deep: #b9c81f;
    --dt-wa: #0f7368;                  /* WhatsApp action, 5.7:1 with white text */
    --dt-wa-dark: #0b5b52;
    --dt-ink: #0b1b2e;
    --dt-muted: #475467;               /* 7.6:1 on white */
    --dt-line: #e1e7f0;
    --dt-bg: #f3f6fb;
    --dt-surface: #fff;
    --dt-radius: 20px;
    --dt-radius-lg: 28px;
    --dt-radius-sm: 14px;
    --dt-pill: 999px;
    --dt-tap: 44px;
    --dt-btn-h: 48px;
    --dt-shadow: 0 1px 2px rgba(11, 27, 46, .04), 0 8px 24px -6px rgba(11, 27, 46, .08);
    --dt-shadow-lg: 0 24px 48px -20px rgba(0, 61, 165, .45);
    --dt-ring: 0 0 0 4px rgba(0, 93, 164, .22);
    /* The flag as a stripe: white, blue, red (used on the hero baseline and the footer). */
    --dt-flag: linear-gradient(90deg, #fff 0 33.4%, var(--dt-blue) 33.4% 66.7%, var(--dt-red) 66.7% 100%);

    /* Three sizes carry the whole public hierarchy: display, section, body. */
    --dt-size-h1: clamp(1.75rem, 7.2vw, 2.6rem);
    --dt-size-h2: clamp(1.35rem, 4.8vw, 1.85rem);
    --dt-size-h3: 1.08rem;
    --dt-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;

    /* Bootstrap's own controls and buttons (the web form loads the framework from wwwroot/lib) follow the palette. */
    --bs-body-font-family: var(--dt-font);
    --bs-body-color: var(--dt-ink);
    --bs-body-bg: var(--dt-bg);
    --bs-border-radius: var(--dt-radius-sm);
    --bs-link-color: var(--dt-blue);
    --bs-link-color-rgb: 0, 93, 164;
    --bs-link-hover-color: var(--dt-blue-dark);
    --bs-link-hover-color-rgb: 0, 69, 124;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
    margin: 0;
    background: var(--dt-bg);
    color: var(--dt-ink);
    font: 400 1rem/1.6 var(--dt-font);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* The string-built pages: one gutter that also clears the notch, so nothing ever scrolls sideways.
   A soft blue glow at the top gives the page depth without an image. */
body.dt-body {
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column;
    padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
    background:
        radial-gradient(90rem 28rem at 50% -12rem, rgba(0, 93, 164, .13), transparent 70%),
        var(--dt-bg);
    hyphens: auto;
}

h1, h2, h3 { margin: 0; font-weight: 750; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: var(--dt-size-h1); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--dt-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dt-blue-dark); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--dt-blue); outline-offset: 2px; border-radius: 6px; }

.dt-skip {
    position: absolute; left: .75rem; top: -4rem; z-index: 50;
    padding: .6rem 1rem; background: var(--dt-surface); color: var(--dt-ink);
    border: 2px solid var(--dt-blue); border-radius: var(--dt-radius-sm);
    text-decoration: none; font-weight: 600;
}

.dt-skip:focus { top: .75rem; }

.dt-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}

/* The brand bar: a floating glass pill that stays on top while scrolling. The digitennis.si mark and the name on
   the left, the language switch at the right edge. */
.dt-topbar {
    position: sticky; top: max(.6rem, env(safe-area-inset-top)); z-index: 20;
    display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem;
    width: 100%; max-width: 62rem; margin: .6rem auto 0; padding: .3rem .35rem .3rem .55rem;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
    border: 1px solid rgba(225, 231, 240, .9); border-radius: var(--dt-pill);
    box-shadow: 0 6px 24px -10px rgba(11, 27, 46, .18);
}

/* The auto margin takes the free space: the brand stays on the left and the switch on the right, on one row. */
.dt-topbar .lang-switch { margin-left: auto; margin-bottom: 0; }
.dt-topbar .lang-switch .nav-link { white-space: nowrap; }

.dt-brand {
    display: inline-flex; align-items: center; gap: .55rem; min-height: var(--dt-tap);
    color: var(--dt-ink); font-size: 1.08rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none;
}

.dt-brand:hover { color: var(--dt-ink); }
.dt-logo { display: block; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; }

.dt-ball {
    position: relative; display: inline-block; flex: 0 0 auto; width: 1em; height: 1em;
    border-radius: 50%; overflow: hidden;
    background: radial-gradient(120% 120% at 30% 25%, #f1f88f, var(--dt-ball) 55%, var(--dt-ball-deep));
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
}

.dt-ball::before, .dt-ball::after {
    content: ""; position: absolute; top: -22%; bottom: -22%; width: 76%;
    border: 1px solid rgba(255, 255, 255, .95); border-radius: 50%;
}

.dt-ball::before { left: -44%; }
.dt-ball::after { right: -44%; }

.dt-main { flex: 1 0 auto; width: 100%; max-width: 62rem; margin: 0 auto; padding: 1rem 0 2.5rem; }
.dt-narrow { max-width: 46rem; }
.dt-topbar.dt-narrow { max-width: 46rem; }

/* The hero: a deep blue card with a tennis court drawn in white hairlines, the flag as its baseline. White text
   on #005DA4..#003DA5 is 6.7:1 and more; the light corner (#0A72C8) still carries white text at 4.9:1. */
.dt-hero {
    position: relative; overflow: hidden; isolation: isolate;
    margin: .5rem 0 1.25rem; padding: 1.5rem 1.25rem 1.85rem;
    color: #fff;
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(255, 255, 255, .14), transparent 60%),
        linear-gradient(135deg, var(--dt-blue-bright) 0%, var(--dt-blue) 42%, var(--dt-blue-deep) 100%);
    border-radius: var(--dt-radius-lg); box-shadow: var(--dt-shadow-lg);
}

/* The court: outline, net and service line, tilted, low alpha so it never fights the text. */
.dt-hero::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    top: -35%; bottom: -35%; left: 52%; width: 70%;
    border: 2px solid rgba(255, 255, 255, .16); border-radius: 6px;
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .2) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(0deg, transparent calc(30% - 1px), rgba(255, 255, 255, .12) calc(30% - 1px) calc(30% + 1px), transparent calc(30% + 1px)),
        linear-gradient(0deg, transparent calc(70% - 1px), rgba(255, 255, 255, .12) calc(70% - 1px) calc(70% + 1px), transparent calc(70% + 1px));
    transform: rotate(-14deg);
}

/* The baseline: the flag as a thin stripe — white, blue, red. */
.dt-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
    background: var(--dt-flag);
}

.dt-hero > * { position: relative; }
.dt-hero .dt-marks { justify-content: flex-start; margin-bottom: 1.25rem; }
.dt-hero .dt-mark { border-color: transparent; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.dt-hero a:not(.dt-btn):not(.sponsor-link) { color: #fff; }
.dt-hero :focus-visible { outline-color: #fff; }

.dt-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; padding: .3rem .75rem .3rem .4rem;
    color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--dt-pill);
    font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.dt-eyebrow .dt-ball { width: 1.15em; height: 1.15em; }

.dt-lead { margin: .75rem 0 0; color: rgba(255, 255, 255, .9); font-size: 1.06rem; max-width: 46ch; }

/* The thank-you page: a check in a white disc above the title. */
.dt-check {
    display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin: 0 0 1rem;
    border-radius: 50%; background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45);
}

.dt-check::before {
    content: ""; width: 1.05rem; height: .55rem; margin-top: -.25rem;
    border: solid var(--dt-blue); border-width: 0 0 4px 4px; border-radius: 2px; transform: rotate(-45deg);
}

.dt-card {
    margin: 0 0 1.25rem; padding: 1.25rem 1.15rem; background: var(--dt-surface);
    border: 1px solid var(--dt-line); border-radius: var(--dt-radius); box-shadow: var(--dt-shadow);
}

.dt-h2 { font-size: var(--dt-size-h2); }
.dt-h3 { font-size: var(--dt-size-h3); }

/* One competition. */
.competition { position: relative; overflow: hidden; }
.competition h1, .competition h2 { margin: .2rem 0 0; overflow-wrap: anywhere; font-size: var(--dt-size-h2); }
.competition-head { display: flex; align-items: center; gap: .9rem; }
.competition-logo {
    flex: 0 0 auto; width: 68px; height: 68px; object-fit: contain; padding: .35rem;
    background: #fff; border: 1px solid var(--dt-line); border-radius: var(--dt-radius-sm);
}

/* One language: the QR card, the WhatsApp action and the way to the web form. */
.variants { display: grid; gap: 1rem; margin: 1.15rem 0 0; }

.variant {
    display: grid; gap: 1rem; padding: 1.1rem; border: 1px solid var(--dt-line);
    border-radius: var(--dt-radius); background: linear-gradient(180deg, #fbfcfe, #f2f6fb);
}

.variant .language {
    justify-self: start; margin: 0; padding: .2rem .65rem; border-radius: var(--dt-pill);
    background: var(--dt-blue-soft); color: var(--dt-blue-deep);
    font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* The QR code sits on a white tile with a soft lift, centred on phones. */
.variant > a:has(img) { justify-self: center; }
.variant img {
    width: min(208px, 100%); padding: .6rem; background: #fff;
    border: 1px solid var(--dt-line); border-radius: var(--dt-radius-sm); box-shadow: var(--dt-shadow);
}

.variant a img { display: block; }
.variant .dt-btn { align-self: stretch; }

.instructions { color: var(--dt-muted); font-size: .95rem; overflow-wrap: anywhere; }
.variant > p { overflow-wrap: anywhere; }

/* Buttons (the string-built pages have no Bootstrap, so they come from here): pills, 48px tall. */
.dt-btn {
    --_bg: var(--dt-blue);
    --_hover: var(--dt-blue-dark);
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: var(--dt-btn-h); padding: .65rem 1.35rem;
    border: 1px solid transparent; border-radius: var(--dt-pill);
    background: var(--_bg); color: #fff; font: inherit; font-weight: 650; letter-spacing: -.005em;
    text-decoration: none; text-align: center; -webkit-tap-highlight-color: transparent;
    box-shadow: 0 6px 16px -8px rgba(0, 61, 165, .55);
    transition: background-color .15s ease, box-shadow .15s ease, transform .08s ease;
}

.dt-btn:hover { color: #fff; background: var(--_hover); box-shadow: 0 10px 22px -10px rgba(0, 61, 165, .6); }
.dt-btn:active { transform: translateY(1px) scale(.99); }
.dt-btn-wa { --_bg: var(--dt-wa); --_hover: var(--dt-wa-dark); box-shadow: 0 6px 16px -8px rgba(15, 115, 104, .6); }

.dt-btn-quiet {
    --_bg: var(--dt-surface);
    --_hover: var(--dt-blue-soft);
    border-color: rgba(0, 93, 164, .35); color: var(--dt-blue); box-shadow: none;
}

.dt-btn-quiet:hover { color: var(--dt-blue-dark); box-shadow: none; }
.dt-btn-full { width: 100%; }

.icon-wa { width: 1.2em; height: 1.2em; flex: 0 0 auto; fill: currentColor; }
.icon-wa .bubble { fill: currentColor; }
.icon-wa .handset { fill: var(--dt-wa); }
.dt-btn .icon-wa .handset { fill: var(--_bg); }

.web-form-link, .terms-link { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.web-form-link .dt-btn { flex: 1 1 auto; }
.terms-link a { font-weight: 600; }

/* /prijava: the options in one row — WhatsApp | "or" | web form — with the terms centred below.
   Phones (below 40rem) stack them in that order; without the web form the WhatsApp column stands alone. */
.reg-options { display: grid; gap: 1rem; margin: 1.15rem 0 0; }
.reg-option { align-content: start; justify-items: center; text-align: center; }
.reg-option .reg-option-title { margin: 0; font-size: var(--dt-size-h3); }
.reg-option .dt-btn { justify-self: stretch; }
.variant.reg-option > a:has(img) { justify-self: center; width: min(208px, 100%); }
.reg-option a img { width: 100%; height: auto; }
.reg-option .instructions { margin: 0; font-size: .9rem; }
.reg-option-web { align-content: center; }
.reg-option-web .web-form-link { justify-self: stretch; margin: 0; }
.reg-option-web .web-form-link .dt-btn { flex: 1 1 auto; }
.reg-or {
    display: flex; align-items: center; gap: .75rem;
    color: var(--dt-blue-deep); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.reg-or::before, .reg-or::after { content: ""; flex: 1 1 auto; height: 2px; border-radius: 2px; background: var(--dt-line); }
.reg-or span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 3.25rem; height: 3.25rem; padding: 0 .7rem;
    background: var(--dt-surface); border: 2px solid var(--dt-blue-soft); border-radius: var(--dt-pill);
    box-shadow: 0 0 0 4px var(--dt-surface);
}
.reg-options ~ .terms-link { justify-content: center; margin-top: 1.25rem; }

/* /prijava/{keyword} and its web form: the competition logo and the sponsor are larger in the hero, still two equal boxes. */
.dt-hero-lg-marks .dt-mark { height: 112px; max-width: 12rem; }

/* The terms page. */
.terms-text {
    white-space:pre-wrap; overflow-wrap: anywhere; line-height: 1.7;
    padding-left: 1rem; border-left: 3px solid var(--dt-blue-soft);
}

.version {
    display: inline-block; margin: 0 0 .75rem; padding: .2rem .65rem; border-radius: var(--dt-pill);
    background: var(--dt-blue-soft); color: var(--dt-blue-deep); font-size: .8rem; font-weight: 700;
}

.note, .untranslated { margin: .5rem 0 0; color: var(--dt-muted); font-size: .95rem; }

/* The language switch (markup shared with the Razor pages through PublicLanguage): a segmented control. */
.lang-switch ul, .dt-segmented {
    display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 4px; list-style: none;
    background: #e7edf6; border-radius: var(--dt-pill);
}

.lang-switch .nav-link, .dt-segmented .nav-link {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .4rem 1rem;
    border: 0; border-radius: var(--dt-pill); background: transparent;
    color: var(--dt-blue-deep); font-weight: 650; font-size: .95rem; text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.lang-switch .nav-link:hover, .dt-segmented .nav-link:hover { color: var(--dt-blue-dark); background: rgba(255, 255, 255, .7); }

.lang-switch .nav-link.active, .lang-switch .nav-link[aria-current],
.dt-segmented .nav-link.active {
    background: var(--dt-surface); color: var(--dt-ink); box-shadow: 0 1px 2px rgba(11, 27, 46, .1), 0 4px 10px -4px rgba(11, 27, 46, .18);
}

/* The code is always shown; the language name only where there is room (it stays readable for screen readers). */
.lang-name { white-space: pre; }

/* On the Razor pages the switch opens main: right-aligned above the hero, like the bar on the other pages. */
.dt-main > .lang-switch { display: flex; justify-content: flex-end; margin-bottom: .25rem; }

/* The footer is a dark band the same width as the main column (62rem), not a full-bleed bar.
   The brand and the "by Digithrone" mark are grouped: stacked on small screens, one row from 40rem.
   The logo is the light version from digithrone.com, so it stays on this dark surface. */
.dt-footer {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: .35rem 1.25rem; width: 100%; max-width: 62rem; margin: 2rem auto 0;
    padding: 1.15rem 1.15rem; background: var(--dt-navy); color: #f2f4f7;
    border-radius: var(--dt-radius) var(--dt-radius) 0 0;
    padding-bottom: max(1.15rem, calc(1rem + env(safe-area-inset-bottom)));
}

.dt-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--dt-flag); }
.dt-footer p { margin: 0; font-size: .92rem; font-weight: 650; }
.by-digithrone { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--dt-tap); color: #f2f4f7; text-decoration: none; }
.by-digithrone:hover, .by-digithrone:focus-visible { color: #fff; }
.by-digithrone img { display: block; width: 72px; height: auto; }
.dt-footer :focus-visible { outline-color: #fff; }

/* ---- Bootstrap pages (the web form, the landing page): the vendored framework follows the palette. ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: var(--dt-btn-h); padding: .6rem 1.35rem; border-radius: var(--dt-pill); font-weight: 650;
}

.btn-lg { min-height: 52px; padding: .7rem 1.6rem; font-size: 1.05rem; border-radius: var(--dt-pill); }

.btn-primary, .btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--dt-blue);
    --bs-btn-border-color: var(--dt-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--dt-blue-dark);
    --bs-btn-hover-border-color: var(--dt-blue-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--dt-blue-deep);
    --bs-btn-active-border-color: var(--dt-blue-deep);
    --bs-btn-focus-shadow-rgb: 0, 93, 164;
    box-shadow: 0 6px 16px -8px rgba(0, 61, 165, .55);
}

.btn-outline-dark {
    --bs-btn-color: var(--dt-ink); --bs-btn-border-color: rgba(11, 27, 46, .25); --bs-btn-bg: var(--dt-surface);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--dt-ink); --bs-btn-hover-border-color: var(--dt-ink);
}

.form-label { margin-bottom: .35rem; font-size: .92rem; font-weight: 650; color: var(--dt-ink); }

/* 16px is the point below which iOS Safari zooms the page on focus — inputs never go smaller. */
.form-control, .form-select {
    min-height: var(--dt-btn-h); font-size: 1rem; border: 1px solid #cdd6e3; background-color: #fbfcfe;
    border-radius: var(--dt-radius-sm); padding: .65rem .9rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.form-control:hover, .form-select:hover { border-color: #aebbd0; }
.form-control:focus, .form-select:focus { border-color: var(--dt-blue); box-shadow: var(--dt-ring); background-color: #fff; }
.form-control.is-invalid, .form-select.is-invalid, .form-check-input.is-invalid { border-color: var(--dt-red-text); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--dt-blue); }
.form-check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .25rem .6rem; padding-left: 0; }
.form-check .form-check-input { float: none; width: 1.4rem; height: 1.4rem; margin: .1rem 0 0; flex: 0 0 auto; border-radius: 6px; border-color: #aebbd0; }
.form-check-label { flex: 1 1 0; min-width: 0; }
.form-check > a { flex-basis: 100%; margin-left: 2rem !important; font-weight: 600; }
.form-check > .invalid-feedback { flex-basis: 100%; margin-left: 2rem; }
.form-check-input:checked { background-color: var(--dt-blue); border-color: var(--dt-blue); }
.invalid-feedback { color: var(--dt-red-text); font-weight: 600; font-size: .88rem; }
.form-text { color: var(--dt-muted); }

.alert { border-radius: var(--dt-radius-sm); }

.alert-danger { background: #fdf3f4; border: 1px solid var(--dt-red-text); color: #7d0f22; }

fieldset {
    margin: 0 0 1.25rem; padding: 1.25rem 1.15rem 1.35rem; border: 1px solid var(--dt-line);
    border-radius: var(--dt-radius); background: var(--dt-surface); box-shadow: var(--dt-shadow);
}

legend {
    float: left; width: 100%; margin: 0 0 1rem; padding: 0;
    font-size: 1.1rem; font-weight: 750; letter-spacing: -.015em; color: var(--dt-ink);
}

legend + * { clear: left; }
legend.h5 { font-size: 1.1rem; font-weight: 750; }

.badge.text-bg-dark { background: var(--dt-blue-deep) !important; }

/* The self / child tabs of the web form: the same segmented control as the language switch, full width. */
.nav-pills { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 4px; list-style: none; background: #e7edf6; border-radius: var(--dt-pill); }
.nav-pills .nav-item { flex: 1 1 auto; }
.nav-pills .nav-link {
    display: flex; align-items: center; justify-content: center; min-height: var(--dt-tap); padding: .4rem 1rem;
    border: 0; border-radius: var(--dt-pill); color: var(--dt-blue-deep); background: transparent;
    font-weight: 650; text-decoration: none; text-align: center;
}

.nav-pills .nav-link:hover { color: var(--dt-blue-dark); background: rgba(255, 255, 255, .7); }
.nav-pills .nav-link.active { background: var(--dt-surface); color: var(--dt-ink); box-shadow: 0 1px 2px rgba(11, 27, 46, .1), 0 4px 10px -4px rgba(11, 27, 46, .18); }
.lang-switch .nav-pills { display: inline-flex; }
.lang-switch .nav-pills .nav-item { flex: 0 0 auto; }

/* The web form's submit: full width on a phone, a large pill from 40rem. */
.dt-submit { width: 100%; }

/* Bootstrap's rows only live inside the form's fieldsets, whose padding absorbs the negative gutter margins. */
.dt-main .row { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }

/* Small phones: the bar keeps one row — the language codes stay, the names are read but not shown. */
@media (max-width: 33.99rem) {
    .dt-topbar .lang-name {
        position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
    }
    .dt-topbar .lang-switch .nav-link { min-width: 44px; padding: .4rem .7rem; }
}

@media (min-width: 40rem) {
    .dt-hero { padding: 2.25rem 2rem 2.5rem; }
    .dt-card, .competition { padding: 1.5rem 1.75rem; }
    fieldset { padding: 1.5rem 1.75rem 1.75rem; }
    .variants { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
    .variant > a:has(img) { justify-self: start; }
    .dt-btn-full { width: auto; }
    .dt-submit { width: auto; min-width: 14rem; }
    .web-form-link .dt-btn { flex: 0 0 auto; }
    .dt-main { padding-bottom: 3rem; }
    .dt-footer { flex-direction: row; padding-left: 1.75rem; padding-right: 1.75rem; }
}

@media (min-width: 40rem) {
    .reg-options { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .reg-options-single { grid-template-columns: minmax(0, 24rem); justify-content: center; }
    .variant.reg-option > a:has(img) { justify-self: center; }  /* undo the start-aligned QR of the other cards */
    .reg-or { flex-direction: column; }
    .reg-or::before, .reg-or::after { width: 2px; height: auto; }
    .dt-hero-lg-marks .dt-mark { height: 128px; max-width: 14rem; }
}

@media (min-width: 64rem) {
    .dt-hero { padding: 2.75rem 2.75rem 3rem; }
    .dt-hero::before { left: 58%; width: 60%; }
}

/* Browsers without env() keep the plain padding above. */
@supports not (padding: env(safe-area-inset-left)) {
    body { padding-left: 1rem; padding-right: 1rem; }
    .dt-footer { padding-bottom: 1rem; }
}

/* High contrast: drop the painted court/ball decoration, keep every border and the focus ring. */
@media (forced-colors: active) {
    .dt-hero, .dt-card, .competition, .variant, .dt-mark, .reg-or span, .dt-topbar, .dt-footer, .terms { border: 1px solid CanvasText; }
    .dt-hero::before, .dt-hero::after, .dt-footer::before, .dt-ball, .dt-check { display: none; }
    .dt-btn { border: 1px solid ButtonText; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
.dt-marks{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem .75rem;margin:0 0 1rem}.dt-mark{display:flex;flex:1 1 0;min-width:0;max-width:9rem;flex-direction:column;align-items:center;justify-content:center;position:relative;height:88px;padding:.4rem;background:var(--dt-surface);border:1px solid var(--dt-line);border-radius:var(--dt-radius-sm)}.dt-mark img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.dt-mark .competition-logo{padding:0;border:0;background:none;border-radius:0}.sponsor,.sponsor-link{display:flex;min-width:0;min-height:0;width:100%;height:100%;align-items:center;justify-content:center;margin:0}.dt-marks .sponsor-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.dt-mark .sponsor-link{position:absolute;inset:0;padding:.4rem;cursor:pointer;color:inherit;text-decoration:none;border-radius:var(--dt-radius-sm)}.dt-mark .sponsor-link:focus-visible{outline:3px solid var(--dt-blue);outline-offset:2px}.sponsor img.sponsor-logo{display:block;max-height:100%;width:auto;max-width:100%;height:auto;object-fit:contain}.sponsor-name{font-weight:600;font-size:.8rem;text-align:center;overflow-wrap:anywhere}.dt-mark .sponsor-link:has(img.sponsor-logo) .sponsor-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}