/* Marketing/landing pages - public, indexable surface (/, /features/**,
   /tools, /formats, /sports, /guides, /help, /about). Fully standalone -
   app.css is not loaded here - with a token block scoped to .mk-page
   (type, color, elevation, rhythm), so the dense workspace UI and the
   airy public site can evolve independently. All classes are namespaced
   mk- (plus hc- for the help center at the end). */

/* The border-box reset used to come from app.css; without it every
   width:100% control overflows its grid track by padding + border. */
.mk-page, .mk-page *, .mk-page *::before, .mk-page *::after { box-sizing: border-box; }

.mk-page {
    /* 1 in LTR, -1 under dir="rtl": multiplies horizontal nudges so
       hover motion follows the reading direction. */
    --mk-flow: 1;
    --mk-max: 72rem;
    --mk-gutter: 1.5rem;
    --mk-radius: 14px;
    --mk-bg: #ffffff;
    --mk-bg-alt: #f4f7f7;
    --mk-ink: #0f1f26;
    --mk-text: #3b4a52;
    /* WCAG AA: >= 4.5:1 on both --mk-bg and --mk-bg-alt. */
    --muted: #56626a;
    --mk-line: #e1e7e8;
    --mk-line-strong: #c5d0d2;
    --mk-accent: #0d6b68;
    --mk-accent-hover: #0a5754;
    --mk-accent-ink: #0b5f5c;
    --mk-accent-soft: #e2f0ee;
    --mk-on-accent: #ffffff;
    --mk-warm: #d97745;
    --mk-glow-1: rgba(13, 107, 104, .14);
    --mk-glow-2: rgba(217, 119, 69, .10);
    --mk-header-bg: rgba(255, 255, 255, .82);
    --mk-shadow-sm: 0 1px 2px rgba(15, 31, 38, .06);
    --mk-shadow: 0 1px 2px rgba(15, 31, 38, .04), 0 10px 24px -10px rgba(15, 31, 38, .16);
    --mk-shadow-lg: 0 2px 6px rgba(15, 31, 38, .05), 0 28px 56px -20px rgba(15, 31, 38, .28);
    --mk-ring: 0 0 0 4px rgba(13, 107, 104, .18);
    --mk-deep: #0b3533;
    --mk-deep-text: #d3e6e3;

    background: var(--mk-bg);
    color: var(--mk-text);
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

[dir="rtl"] .mk-page { --mk-flow: -1; }

html[data-theme="dark"] .mk-page {
    --mk-bg: #0d1215;
    --mk-bg-alt: #121a1e;
    --mk-ink: #eef3f4;
    --mk-text: #c3cdd2;
    --muted: #9ba8ae;
    --mk-line: #222d33;
    --mk-line-strong: #34434b;
    --mk-accent: #2f9d96;
    --mk-accent-hover: #3cb3ab;
    --mk-accent-ink: #72d1ca;
    --mk-accent-soft: #15302e;
    /* White on #2f9d96 is only ~3.3:1 - dark ink keeps buttons AA. */
    --mk-on-accent: #04201f;
    --mk-glow-1: rgba(47, 157, 150, .20);
    --mk-glow-2: rgba(232, 146, 95, .08);
    --mk-header-bg: rgba(13, 18, 21, .78);
    --mk-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --mk-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px -12px rgba(0, 0, 0, .6);
    --mk-shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 60px -20px rgba(0, 0, 0, .75);
    --mk-ring: 0 0 0 4px rgba(47, 157, 150, .28);
    --mk-deep: #0a2523;
}

@media screen {
    .mk-page {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .mk-page > main {
        flex: 1 0 auto;
        /* Soft brand glow behind the top of every page; clip keeps the
           full-bleed bands and hero pattern from causing sideways scroll
           without creating a scroll container (sticky still works). */
        background:
            radial-gradient(56rem 28rem at 88% -6rem, var(--mk-glow-1), transparent 70%),
            radial-gradient(40rem 22rem at 0% -4rem, var(--mk-glow-2), transparent 65%);
        background-repeat: no-repeat;
        overflow-x: clip;
    }
}

/* ---------- Typography ---------- */

.mk-page h1, .mk-page h2, .mk-page h3 {
    color: var(--mk-ink);
    text-wrap: balance;
    overflow-wrap: break-word;
}

.mk-page h1 {
    font-size: clamp(2rem, 1.35rem + 2.4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.025em;
    font-weight: 750;
    margin: 0 0 1rem;
}

.mk-page h2 { letter-spacing: -.015em; line-height: 1.25; }
.mk-page h3 { letter-spacing: -.01em; line-height: 1.3; }
.mk-page p { text-wrap: pretty; }

.mk-page a { color: var(--mk-accent-ink); text-underline-offset: .18em; }

.mk-page .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--mk-accent-ink);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 0 1.1rem;
}

.mk-page .eyebrow::before {
    content: "";
    align-self: flex-start;
    margin-block-start: .5em;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--mk-warm);
    box-shadow: 0 0 0 4px var(--mk-glow-2);
}

/* Tight tracking and uppercase are Latin conventions - CJK glyphs crowd. */
:lang(zh) .mk-page h1, :lang(ja) .mk-page h1,
:lang(zh) .mk-page h2, :lang(ja) .mk-page h2 { letter-spacing: 0; }
:lang(zh) .mk-page .eyebrow, :lang(ja) .mk-page .eyebrow { letter-spacing: .02em; }

.mk-page :focus-visible {
    outline: 2px solid var(--mk-accent);
    outline-offset: 2px;
}

/* ---------- Header ---------- */

.mk-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    min-height: 4rem;
    padding: .6rem max(var(--mk-gutter), calc((100% - var(--mk-max)) / 2 + var(--mk-gutter)));
    background: var(--mk-header-bg);
    -webkit-backdrop-filter: saturate(1.8) blur(14px);
    backdrop-filter: saturate(1.8) blur(14px);
    border-bottom: 1px solid var(--mk-line);
    box-shadow: none;
    color: var(--mk-ink);
}

.mk-header .brand {
    color: var(--mk-ink);
    font-weight: 750;
    font-size: 1.15rem;
    letter-spacing: -.01em;
    text-decoration: none;
    gap: .5rem;
}

.mk-header .brand-mark { width: 1.6em; height: 1.6em; }

.mk-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: .25rem;
    /* Long-locale labels can exceed the row width: scroll the nav strip
       instead of pushing the signup CTA off-canvas. */
    overflow-x: auto;
    scrollbar-width: none;
}

.mk-nav::-webkit-scrollbar { display: none; }

.mk-nav a {
    flex-shrink: 0;
}

.mk-nav a,
.mk-login {
    color: var(--mk-text);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    padding: .45rem .75rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.mk-nav a:hover,
.mk-login:hover {
    color: var(--mk-ink);
    background: var(--mk-bg-alt);
}

.mk-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.mk-header .language-select {
    color: var(--mk-text);
    background: transparent;
    border: 1px solid var(--mk-line);
    border-radius: 8px;
    padding: .35rem .5rem;
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
}

.mk-header .theme-toggle {
    color: var(--mk-text);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: .5rem;
}

.mk-header .theme-toggle:hover {
    color: var(--mk-ink);
    background: var(--mk-bg-alt);
    border-color: transparent;
}

.mk-signup {
    background: var(--mk-accent);
    color: var(--mk-on-accent);
    font-size: .95rem;
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--mk-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .14);
    transition: background-color .15s ease;
}

.mk-page .mk-signup { color: var(--mk-on-accent); }
.mk-signup:hover { background: var(--mk-accent-hover); }

/* ---------- Buttons and form controls ---------- */

.mk-button,
.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .6rem 1.15rem;
    border-radius: 10px;
    border: 1px solid var(--mk-line-strong);
    background: var(--mk-bg);
    color: var(--mk-ink);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--mk-shadow-sm);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.mk-page .mk-button, .mk-page .mk-btn { color: var(--mk-ink); }

.mk-button:hover,
.mk-btn:hover {
    background: var(--mk-bg-alt);
    border-color: var(--muted);
}

.mk-page .mk-button-primary,
.mk-page .mk-btn:not(.mk-btn-secondary):not(.mk-btn-link) {
    background: var(--mk-accent);
    border-color: var(--mk-accent);
    color: var(--mk-on-accent);
    box-shadow: 0 1px 2px rgba(11, 53, 51, .25), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.mk-page .mk-button-primary:hover,
.mk-page .mk-btn:not(.mk-btn-secondary):not(.mk-btn-link):hover {
    background: var(--mk-accent-hover);
    border-color: var(--mk-accent-hover);
    box-shadow: 0 6px 16px -6px var(--mk-glow-1), 0 1px 2px rgba(11, 53, 51, .25);
}

.mk-page .mk-btn-link {
    border-color: transparent;
    background: none;
    box-shadow: none;
    color: var(--mk-accent-ink);
    padding-inline: .5rem;
}

.mk-page .mk-btn-link:hover { background: var(--mk-accent-soft); }

.mk-button-lg {
    min-height: 3.1rem;
    padding: .75rem 1.4rem;
    font-size: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
    .mk-button-primary:hover, .mk-btn:not(.mk-btn-secondary):not(.mk-btn-link):hover { transform: translateY(-1px); }
}

.mk-page main input:is([type="number"], [type="text"], [type="time"], [type="search"], [type="email"], :not([type])),
.mk-page main select,
.mk-page main textarea {
    font: inherit;
    font-size: .95rem;
    color: var(--mk-ink);
    background: var(--mk-bg);
    border: 1px solid var(--mk-line-strong);
    border-radius: 10px;
    padding: .55rem .75rem;
    min-height: 2.75rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mk-page main textarea { min-height: 6rem; line-height: 1.5; }

.mk-page main input:focus,
.mk-page main select:focus,
.mk-page main textarea:focus {
    outline: none;
    border-color: var(--mk-accent);
    box-shadow: var(--mk-ring);
}

.mk-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

.mk-field label,
.tools-form label > span {
    font-size: .825rem;
    font-weight: 600;
    color: var(--mk-text);
}

/* ---------- Hero ---------- */

.mk-hero {
    position: relative;
    isolation: isolate;
    max-width: var(--mk-max);
    margin: 0 auto;
    padding: 3rem var(--mk-gutter) 1.5rem;
}

.mk-hero-sub {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--mk-text);
    max-width: 46rem;
    margin: 0 0 .75rem;
}

.mk-hero-icon {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: var(--mk-accent-soft);
    color: var(--mk-accent-ink);
    box-shadow: inset 0 0 0 1px var(--mk-glow-1);
}

.mk-hero-icon svg { width: 26px; height: 26px; }

.mk-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 3.5rem;
    align-items: center;
    padding: 4.25rem var(--mk-gutter) 5rem;
}

/* Faint grid paper fading out from the visual - texture without noise. */
.mk-hero-split::before {
    content: "";
    position: absolute;
    inset: 0 -50vw;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(var(--mk-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--mk-line) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 50% 60% at 72% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 50% 60% at 72% 40%, #000 0%, transparent 75%);
    opacity: .7;
}

.mk-hero-split h1 {
    font-size: clamp(2.25rem, 1.3rem + 2.6vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -.035em;
    margin-bottom: 1.25rem;
    background: linear-gradient(120deg, var(--mk-ink) 35%, var(--mk-accent-ink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mk-lead {
    font-size: 1.15rem;
    color: var(--mk-text);
    line-height: 1.65;
    max-width: 38rem;
    margin: 0;
}

.mk-hero-actions {
    display: flex;
    gap: .75rem;
    margin: 2rem 0 1.5rem;
    flex-wrap: wrap;
}

.mk-trust {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
}

.mk-trust-icon {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--mk-accent-soft);
    color: var(--mk-accent-ink);
}

.mk-trust-icon svg { width: 13px; height: 13px; stroke-width: 3; }

.mk-hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Decorative schedule board (aria-hidden) - fields across, times down. */
.mk-board {
    width: 92%;
    margin-inline-start: auto;
    padding: .9rem 1rem 1.1rem;
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: 18px;
    box-shadow: var(--mk-shadow-lg);
}

.mk-board-bar {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding-bottom: .8rem;
    margin-bottom: .8rem;
    border-bottom: 1px solid var(--mk-line);
}

.mk-board-bar i {
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: var(--mk-line-strong);
}

.mk-board-bar b {
    margin-inline-start: auto;
    width: 5rem;
    height: .6rem;
    border-radius: 999px;
    background: var(--mk-accent-soft);
}

.mk-board-grid {
    display: grid;
    grid-template-columns: 2.9rem repeat(3, minmax(0, 1fr));
    gap: .45rem;
    align-items: center;
}

.mk-board-head {
    font-size: .7rem;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
}

.mk-board-time {
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.mk-slot {
    --c: var(--mk-accent);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    height: 2.9rem;
    padding: 0 .6rem;
    border-radius: 9px;
    border-inline-start: 3px solid var(--c);
    background: color-mix(in srgb, var(--c) 11%, transparent);
}

.mk-slot em {
    display: block;
    height: .32rem;
    width: 72%;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c) 55%, transparent);
}

.mk-slot em + em { width: 48%; opacity: .7; }

.mk-c1 { --c: #0d6b68; }
.mk-c2 { --c: #d97745; }
.mk-c3 { --c: #5b6fd8; }
.mk-c4 { --c: #2e9b57; }
html[data-theme="dark"] .mk-c1 { --c: #3cb3ab; }
html[data-theme="dark"] .mk-c3 { --c: #8d9cf2; }

.mk-slot.mk-rest {
    border: 1px dashed var(--mk-line-strong);
    background: transparent;
}

.mk-slot-ok::after {
    content: "";
    position: absolute;
    top: -.4rem;
    inset-inline-end: -.4rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 2px solid var(--mk-bg);
    background: var(--mk-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 60% no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
    .mk-board { animation: mk-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
    .mk-hero-visual .mk-hero-tool { animation: mk-rise .7s .12s cubic-bezier(.2, .7, .2, 1) both; }
    .mk-slot-ok::after { animation: mk-pop .4s .75s cubic-bezier(.3, 1.6, .5, 1) both; }
}

@keyframes mk-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes mk-pop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.mk-hero-visual .mk-hero-tool {
    position: relative;
    width: min(100%, 26rem);
    /* Tucks the card under the board edge: the overlap stays inside the
       board's bottom padding so no schedule row gets clipped. */
    margin: -1.2rem 0 0;
    padding: 1.5rem;
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: 18px;
    box-shadow: var(--mk-shadow-lg);
}

.mk-hero-tool h2 {
    font-size: 1.15rem;
    margin: 0 0 .3rem;
}

.mk-hero-tool > p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
    margin: 0 0 1.1rem;
}

.mk-hero-tool-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: .85rem .75rem;
    align-items: end;
}

.mk-hero-tool-form .mk-field input,
.mk-hero-tool-form .mk-field select { width: 100%; }

.mk-hero-tool-form button { grid-column: 1 / -1; width: 100%; }

/* Inline generator on sport pages: one compact row under the intro. */
.mk-hero > form.tools-cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    width: fit-content;
    max-width: 100%;
    margin-top: 1.5rem;
    padding-block: .75rem;
    padding-inline: 1.1rem .75rem;
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: 14px;
    box-shadow: var(--mk-shadow);
}

.mk-hero > form.tools-cta-box label { font-weight: 600; font-size: .9rem; color: var(--mk-ink); }
.mk-hero > form.tools-cta-box input { width: 6rem; }
.mk-page .mk-hero > form.tools-cta-box .mk-button {
    background: var(--mk-accent);
    border-color: var(--mk-accent);
    color: var(--mk-on-accent);
}

/* ---------- Sections ---------- */

.mk-section {
    max-width: var(--mk-max);
    margin: 0 auto;
    padding: 2.25rem var(--mk-gutter);
}

.mk-landing .mk-section { padding-block: 5.5rem; }

.mk-section > h2 {
    font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem);
    margin: 0 0 .6rem;
}

.mk-landing .mk-section > h2 {
    font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.6rem);
    letter-spacing: -.025em;
}

.mk-landing .mk-section > h2,
.mk-landing .mk-section > .mk-section-sub {
    text-align: center;
    margin-inline: auto;
    max-width: 44rem;
}

.mk-section-sub {
    color: var(--muted);
    font-size: 1.075rem;
    line-height: 1.6;
    max-width: 44rem;
    margin: 0;
}

.mk-section > p {
    max-width: 46rem;
    line-height: 1.7;
}

.mk-section > h2 + p:not(.mk-section-sub) { margin-top: .25rem; }

/* Full-bleed tinted band without a wrapper element. */
.mk-band {
    background: var(--mk-bg-alt);
    box-shadow: 0 0 0 100vmax var(--mk-bg-alt);
    clip-path: inset(0 -100vmax);
}

.mk-dark {
    background: var(--mk-deep);
    box-shadow: 0 0 0 100vmax var(--mk-deep);
    clip-path: inset(0 -100vmax);
    color: var(--mk-deep-text);
}

.mk-page .mk-dark h2 { color: #ffffff; }

.mk-split {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 2rem 4rem;
    align-items: start;
}

.mk-split > h2 {
    font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.6rem);
    letter-spacing: -.025em;
    margin: 0;
}

.mk-split > h2::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 4px;
    border-radius: 2px;
    background: var(--mk-warm);
    margin-bottom: 1.25rem;
}

.mk-split p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0 0 1.1rem;
}

.mk-split p:last-child { margin-bottom: 0; }

/* ---------- Steps ---------- */

.mk-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.mk-landing .mk-steps { margin-top: 3rem; }

.mk-step {
    position: relative;
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    padding: 1.5rem;
    box-shadow: var(--mk-shadow-sm);
}

.mk-step-num {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: var(--mk-accent);
    color: var(--mk-on-accent);
    font-weight: 700;
    font-size: .95rem;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 5px var(--mk-accent-soft);
}

/* Connector between consecutive steps (desktop only - see media query). */
.mk-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.6rem;
    inset-inline-end: calc(-1.25rem - 1px);
    width: 1.25rem;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--mk-line-strong) 0 4px, transparent 4px 8px);
}

.mk-step h3 {
    font-size: 1.1rem;
    margin: 1.1rem 0 .4rem;
}

.mk-step p {
    color: var(--mk-text);
    margin: 0;
    line-height: 1.6;
    font-size: .95rem;
}

/* ---------- Cards ---------- */

.mk-cards,
.mk-cardgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.mk-landing .mk-cards { margin-top: 3rem; }

.mk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    padding: 1.5rem;
    text-decoration: none;
    box-shadow: var(--mk-shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mk-page .mk-card { color: var(--mk-ink); }

.mk-card:hover {
    border-color: color-mix(in srgb, var(--mk-accent) 45%, var(--mk-line));
    box-shadow: var(--mk-shadow);
}

@media (prefers-reduced-motion: no-preference) {
    .mk-card:hover, .mk-guide-links a:hover { transform: translateY(-2px); }
}

.mk-card::after {
    content: "\2192";
    position: absolute;
    top: 1.35rem;
    inset-inline-end: 1.4rem;
    font-size: 1.1rem;
    color: var(--mk-accent-ink);
    opacity: 0;
    translate: calc(-4px * var(--mk-flow)) 0;
    transition: opacity .2s ease, translate .2s ease;
}

[dir="rtl"] .mk-card::after { content: "\2190"; }

.mk-card:hover::after,
.mk-card:focus-visible::after {
    opacity: 1;
    translate: none;
}

.mk-card h2,
.mk-card h3 {
    margin: 0;
    padding-inline-end: 1.5rem;
    font-size: 1.075rem;
    font-weight: 650;
    color: var(--mk-ink);
}

.mk-card p {
    margin: 0;
    color: var(--mk-text);
    line-height: 1.55;
    font-size: .95rem;
}

.mk-card-icon {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: .6rem;
    border-radius: 12px;
    background: var(--mk-accent-soft);
    color: var(--mk-accent-ink);
    transition: background-color .2s ease, color .2s ease;
}

.mk-card:hover .mk-card-icon,
.mk-guide-links a:hover .mk-card-icon {
    background: var(--mk-accent);
    color: var(--mk-on-accent);
}

/* ---------- Feature points ---------- */

.mk-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: .5rem;
}

.mk-point {
    position: relative;
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    padding-block: 1.5rem;
    padding-inline: 4.25rem 1.5rem;
    box-shadow: var(--mk-shadow-sm);
}

.mk-point::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    inset-inline-start: 1.5rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    background: var(--mk-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d6b68' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 55% no-repeat;
}

html[data-theme="dark"] .mk-point::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2372d1ca' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.mk-point h2 {
    font-size: 1.1rem;
    margin: 0 0 .4rem;
}

.mk-point p {
    margin: 0;
    color: var(--mk-text);
    line-height: 1.6;
}

/* ---------- Guide links and link lists ---------- */

.mk-guide-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.mk-guide-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    color: var(--mk-ink);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: var(--mk-shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mk-guide-links a:hover {
    border-color: color-mix(in srgb, var(--mk-accent) 45%, var(--mk-line));
    box-shadow: var(--mk-shadow);
}

.mk-guide-links .mk-card-icon { margin: 0; width: 2.5rem; height: 2.5rem; }

.mk-more {
    text-align: center;
    margin: 2rem 0 0;
}

.mk-more a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    text-decoration: none;
    padding: .4rem .2rem;
}

.mk-more a:hover { text-decoration: underline; }
.mk-more svg { width: 18px; height: 18px; transition: translate .2s ease; }
.mk-more a:hover svg { translate: calc(3px * var(--mk-flow)) 0; }
[dir="rtl"] .mk-more svg { transform: scaleX(-1); }

.mk-linklist {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.mk-linklist li + li { margin-top: .15rem; }

/* Inline anchors are ~17px tall - pad them into >=24px touch targets. */
.mk-linklist a {
    display: inline-flex;
    gap: .6rem;
    padding: .35rem 0;
    font-weight: 500;
    text-decoration: none;
}

.mk-linklist a::before {
    content: "\2192";
    color: var(--muted);
    transition: translate .15s ease, color .15s ease;
}

[dir="rtl"] .mk-linklist a::before { content: "\2190"; }

.mk-linklist a:hover { text-decoration: underline; }
.mk-linklist a:hover::before { color: var(--mk-accent-ink); translate: calc(2px * var(--mk-flow)) 0; }

/* ---------- FAQ ---------- */

.mk-faq {
    display: flex;
    flex-direction: column;
    max-width: 48rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--mk-line);
}

.mk-faq details { border-bottom: 1px solid var(--mk-line); }

.mk-faq summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.15rem .25rem;
    font-weight: 600;
    font-size: 1.025rem;
    color: var(--mk-ink);
    cursor: pointer;
}

.mk-faq summary::-webkit-details-marker { display: none; }

.mk-faq summary::after {
    content: "";
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 1px solid var(--mk-line-strong);
    color: var(--mk-text);
    background:
        linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
    transition: transform .2s ease, background-size .2s ease;
}

.mk-faq summary:hover::after { border-color: var(--mk-accent); color: var(--mk-accent-ink); }

.mk-faq details[open] summary::after {
    transform: rotate(180deg);
    background-size: 10px 1.5px, 1.5px 0;
}

.mk-faq details p {
    color: var(--mk-text);
    line-height: 1.7;
    margin: -.25rem 0 1.25rem;
    padding-inline: .25rem 3rem;
}

.mk-faq-section {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 2rem 4rem;
    align-items: start;
}

.mk-landing .mk-faq-section > h2 {
    text-align: start;
    margin: 0;
    position: sticky;
    top: 6rem;
}

.mk-faq-section .mk-faq { margin-top: 0; }

/* ---------- Breadcrumb ---------- */

.mk-breadcrumb {
    max-width: var(--mk-max);
    margin: 0 auto;
    padding: 1.5rem var(--mk-gutter) 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .875rem;
    color: var(--muted);
}

.mk-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.mk-breadcrumb a:hover { color: var(--mk-ink); text-decoration: underline; }
.mk-breadcrumb span[aria-hidden] { opacity: .5; }
.mk-breadcrumb > span:last-child { color: var(--mk-ink); font-weight: 500; }

/* Guides index: topic headings link to the topic page but read as h2s. */
.mk-section > h2 > a { color: var(--mk-ink); text-decoration: none; }
.mk-section > h2 > a:hover { color: var(--mk-accent-ink); }

/* ---------- CTA band ---------- */

.mk-cta-band {
    position: relative;
    overflow: hidden;
    width: min(calc(var(--mk-max) - 2 * var(--mk-gutter)), calc(100% - 2rem));
    margin: 3rem auto 4.5rem;
    padding: 4rem 2rem;
    border-radius: 24px;
    text-align: center;
    color: var(--mk-deep-text);
    background:
        radial-gradient(36rem 18rem at 12% 0%, rgba(217, 119, 69, .32), transparent 62%),
        radial-gradient(40rem 22rem at 100% 100%, rgba(47, 157, 150, .55), transparent 62%),
        var(--mk-deep);
    box-shadow: var(--mk-shadow-lg);
}

.mk-cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}

.mk-cta-band > * { position: relative; }

.mk-page .mk-cta-band h2 {
    color: #ffffff;
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
    letter-spacing: -.025em;
    margin: 0 auto .75rem;
    max-width: 36rem;
}

.mk-cta-band p {
    color: rgba(225, 240, 237, .85);
    max-width: 34rem;
    margin: 0 auto 1.75rem;
    font-size: 1.075rem;
}

.mk-page .mk-cta-band .mk-button-primary {
    background: #ffffff;
    border-color: #ffffff;
    color: #0b3533;
    min-height: 3.1rem;
    padding: .75rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45);
}

.mk-page .mk-cta-band .mk-button-primary:hover { background: #e7f3f1; border-color: #e7f3f1; }

.mk-cta-band .mk-updated {
    font-size: .825rem;
    color: rgba(225, 240, 237, .7);
    margin: 1.5rem auto 0;
}

/* ---------- Footer ---------- */

.mk-footer {
    border-top: 1px solid var(--mk-line);
    background: var(--mk-bg-alt);
}

.mk-footer-inner {
    max-width: var(--mk-max);
    margin: 0 auto;
    padding: 3.5rem var(--mk-gutter) 2.5rem;
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 2fr);
    gap: 2.5rem 3rem;
}

.mk-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--mk-ink);
    font-size: 1.1rem;
    text-decoration: none;
}

.mk-page .mk-footer-logo { color: var(--mk-ink); }
.mk-footer-logo .brand-mark { width: 1.6em; height: 1.6em; }

.mk-footer-brand p {
    color: var(--muted);
    margin: .75rem 0 0;
    font-size: .925rem;
    max-width: 20rem;
}

.mk-footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1.5rem;
}

.mk-footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .35rem;
    align-content: start;
}

.mk-footer-links a {
    display: inline-block;
    padding: .2rem 0;
    color: var(--mk-text);
    font-size: .925rem;
    text-decoration: none;
    overflow-wrap: break-word;
}

.mk-footer-links a:hover { color: var(--mk-ink); text-decoration: underline; }

.mk-footer-bottom {
    width: min(calc(var(--mk-max) - 2 * var(--mk-gutter)), calc(100% - 2 * var(--mk-gutter)));
    margin: 0 auto;
    padding: 1.25rem 0 2rem;
    border-top: 1px solid var(--mk-line);
}

.mk-footer-rights {
    color: var(--muted);
    font-size: .85rem;
    margin: 0;
}

/* ---------- Misc content blocks ---------- */

.guides-byline,
.mk-legal-note {
    color: var(--muted);
    font-size: .875rem;
}

.tools-privacy-note,
.tools-sport-note {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-size: .9rem;
    margin: .25rem 0 0;
}

.mk-note {
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: .95rem;
}

/* Generator call-out inside guides and help articles. */
.mk-page :not(.mk-hero-visual):not(.mk-hero) > div.tools-cta-box {
    display: grid;
    gap: .35rem;
    justify-items: start;
    margin: 1.5rem 0;
    padding: 1.4rem 1.5rem;
    background: var(--mk-accent-soft);
    border: 1px solid color-mix(in srgb, var(--mk-accent) 25%, transparent);
    border-radius: var(--mk-radius);
}

.mk-page :not(.mk-hero-visual):not(.mk-hero) > div.tools-cta-box h2 { font-size: 1.15rem; margin: 0; }
.mk-page :not(.mk-hero-visual):not(.mk-hero) > div.tools-cta-box p { margin: 0 0 .75rem; color: var(--mk-text); }

/* Sport fact list - dt/dd pairs in a two-column grid. */
.mk-factlist {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0 1.5rem;
    max-width: 42rem;
    margin: 1rem 0 1.25rem;
    padding: .5rem 1.5rem;
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    box-shadow: var(--mk-shadow-sm);
}

.mk-factlist dt,
.mk-factlist dd {
    padding: .65rem 0;
    border-bottom: 1px solid var(--mk-line);
}

.mk-factlist dt:nth-last-of-type(1),
.mk-factlist dd:nth-last-of-type(1) { border-bottom: 0; }

.mk-factlist dt {
    font-weight: 600;
    color: var(--muted);
}

.mk-factlist dd {
    margin: 0;
    color: var(--mk-ink);
    font-weight: 500;
}

/* ---------- Responsive ---------- */

@media (max-width: 56rem) {
    .mk-hero-split,
    .mk-split,
    .mk-faq-section {
        grid-template-columns: 1fr;
    }

    .mk-hero-split {
        gap: 3rem;
        padding-block: 3rem 3.5rem;
    }

    .mk-landing .mk-section { padding-block: 3.75rem; }

    .mk-landing .mk-faq-section > h2 { position: static; text-align: center; }

    .mk-points { grid-template-columns: 1fr; }

    .mk-step:not(:last-child)::after { display: none; }

    .mk-footer-inner { grid-template-columns: 1fr; }

    .mk-nav {
        flex-basis: 100%;
        order: 3;
        margin-inline: -.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    /* Brand + actions can exceed a phone's width - let the header wrap
       instead of clipping the signup button. */
    .mk-header {
        flex-wrap: wrap;
        gap: .35rem 1rem;
        padding-block: .6rem .35rem;
    }

    .mk-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-inline-start: auto;
    }
}

@media (max-width: 40rem) {
    .mk-page { --mk-gutter: 1.1rem; }

    /* Phones: brand + icon menu on row one; the signup CTA takes row two
       full-width (bigger target, survives long locales). Language, theme
       and log in live inside the menu panel. */
    .mk-header { position: static; gap: 0 .5rem; padding-block: .6rem .35rem; }
    .mk-header .brand { margin-inline-end: auto; }
    .mk-actions { display: contents; }
    .mk-header .brand { font-size: 1.05rem; }
    .mk-signup {
        order: 1;
        flex: 1 1 100%;
        padding: .5rem .75rem;
        font-size: .85rem;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }

    .mk-hero-split { padding-block: 2.25rem 2.5rem; }
    .mk-hero-actions .mk-button { flex: 1 1 auto; }
    .mk-board { display: none; }
    .mk-hero-visual .mk-hero-tool { margin: 0; width: 100%; }
    /* First column fits the label's longest word instead of a fixed
       5.5rem - German compounds like "Mannschaften" would overflow it. */
    .mk-hero-tool-form { grid-template-columns: minmax(5.5rem, min-content) minmax(0, 1fr); }
    .mk-hero-tool-form .mk-field label { hyphens: auto; }
    .mk-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-footer-links ul:last-child { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
    .mk-trust { align-items: flex-start; }
    .mk-cta-band { padding: 3rem 1.25rem; border-radius: 18px; }
    .mk-faq details p { padding-inline-end: .25rem; }
    .mk-point { padding-block: 1.25rem; padding-inline: 3.75rem 1.25rem; }
    .mk-point::before { top: 1.25rem; inset-inline-start: 1.25rem; }
}

/* Help center (/help) - hc- classes on top of the shared mk- chrome. */
.hc-hero {
    text-align: center;
    padding-top: 3.5rem;
}

.hc-hero .mk-section-sub { margin-inline: auto; }

.hc-search {
    display: flex;
    gap: .6rem;
    max-width: 34rem;
    margin: .9rem auto;
}

.hc-search input[type="search"] {
    flex: 1;
    padding: .65rem .9rem;
    font-size: 1rem;
}

.hc-article-list {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0;
    display: grid;
    gap: .7rem;
    max-width: 44rem;
}

.hc-article-list li {
    border: 1px solid var(--mk-line);
    border-radius: 8px;
    padding: .7rem 1rem;
    background: var(--mk-bg);
}

.hc-article-list li > a {
    font-weight: 700;
    text-decoration: none;
}

.hc-article-list li > p {
    margin: .3rem 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.hc-layout {
    display: grid;
    grid-template-columns: minmax(0, 46rem) 15rem;
    justify-content: space-between;
    gap: 1.75rem;
    align-items: start;
    max-width: 72rem;
    margin: 0 auto;
}

.hc-article {
    line-height: 1.65;
}

.hc-article > h1 {
    margin-top: 0;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--mk-line);
    font-size: 1.9rem;
    line-height: 1.2;
}

/* The first paragraph doubles as the listing summary - give it lead weight. */
.hc-article > h1 + p {
    margin-top: .8rem;
    font-size: 1.08rem;
    color: var(--mk-text);
}

.hc-article p {
    margin: .7rem 0;
}

.hc-article h2 {
    margin: 1.6rem 0 .45rem;
    font-size: 1.3rem;
}

.hc-article h3 {
    margin: 1.25rem 0 .4rem;
    font-size: 1.1rem;
}

.hc-article ul, .hc-article ol {
    margin: .7rem 0;
    padding-inline-start: 1.5rem;
}

.hc-article li {
    margin: .3rem 0;
}

.hc-article li::marker {
    color: var(--mk-accent);
}

.hc-article li > ul, .hc-article li > ol {
    margin: .25rem 0;
}

.hc-article a {
    text-underline-offset: .15em;
}

.hc-article a:hover {
    color: var(--mk-accent);
}

.hc-article blockquote {
    margin: .9rem 0;
    padding: .65rem 1rem;
    border-inline-start: 3px solid var(--mk-accent);
    border-start-end-radius: .5rem;
    border-end-end-radius: .5rem;
    background: var(--mk-accent-soft);
    color: var(--mk-text);
}

.hc-article blockquote p {
    margin: .3rem 0;
}

.hc-article code {
    background: var(--mk-accent-soft);
    border: 1px solid var(--mk-line);
    padding: .1rem .3rem;
    border-radius: 4px;
    font-size: .9em;
}

.hc-article pre {
    background: var(--mk-bg-alt);
    border: 1px solid var(--mk-line);
    border-radius: .5rem;
    padding: .7rem .9rem;
    overflow-x: auto;
}

.hc-article pre code {
    background: none;
    border: 0;
    padding: 0;
}

.hc-article table {
    width: 100%;
    border-collapse: collapse;
    margin: .8rem 0;
    font-size: .92rem;
}

.hc-article th, .hc-article td {
    text-align: start;
    padding: .35rem .5rem;
    border-bottom: 1px solid var(--mk-line);
}

.hc-article thead th {
    background: var(--mk-accent-soft);
    color: var(--mk-accent-ink);
}

.hc-article hr {
    border: 0;
    border-top: 1px solid var(--mk-line);
    margin: 1.4rem 0;
}

.hc-article img {
    max-width: 100%;
}

.hc-related {
    position: sticky;
    top: 1rem;
    margin-top: 1.75rem;
    padding: .85rem 1rem;
    border: 1px solid var(--mk-line);
    border-radius: .75rem;
    background: var(--mk-bg);
    font-size: .92rem;
}

.hc-related h2 {
    margin: 0;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}

.hc-related ul {
    list-style: none;
    padding: 0;
    margin: .6rem 0 0;
    display: grid;
    gap: .4rem;
}

.hc-related a {
    text-decoration: none;
}

.hc-related a:hover {
    text-decoration: underline;
}

.hc-result-count {
    margin-top: 1.1rem;
    color: var(--muted);
}

@media (max-width: 56rem) {
    .hc-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hc-related {
        position: static;
        margin-top: 0;
    }
}


/* ---------- Shared utilities ported from app.css ----------
   The workspace stylesheet is not loaded on public pages, so the few
   app-level classes they still use live here, themed to mk tokens. */
.mk-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mk-page .muted { color: var(--mk-text); }
.mk-page .notice { padding: .5rem .8rem; border-inline-start: 4px solid var(--mk-accent); background: var(--mk-accent-soft); margin-bottom: .6rem; }
.mk-page .notice.error { border-color: #dc2626; background: rgb(220 38 38 / .12); }
.mk-page .notice.success { border-color: #16a34a; background: rgb(22 163 74 / .12); }
.mk-page .notice.warning { border-color: #d97706; background: rgb(217 119 6 / .14); color: var(--mk-ink); }
.mk-page .maintenance-notice { padding: .4rem .8rem; background: rgb(217 119 6 / .18); color: var(--mk-ink); border-bottom: 1px solid rgb(217 119 6 / .45); text-align: center; font-weight: 600; }
.mk-page .locale-suggestion { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: flex; justify-content: center; align-items: center; gap: .6rem; padding: .35rem .8rem; background: var(--mk-bg-alt); border-top: 1px solid var(--mk-line); box-shadow: 0 -2px 10px rgb(0 0 0 / .25); font-size: .85rem; color: var(--mk-ink); }
.mk-page .locale-suggestion[hidden] { display: none; }
.mk-page .locale-suggestion-dismiss { border: none; background: none; color: var(--mk-text); cursor: pointer; font-size: 1rem; padding: 0 .2rem; line-height: 1; }
.mk-page .locale-suggestion-dismiss:hover { color: var(--mk-ink); }
.mk-page .secondary-button { display: inline-block; border: 1px solid var(--mk-line); border-radius: 6px; background: var(--mk-bg-alt); color: var(--mk-ink); padding: 7px 14px; font: inherit; cursor: pointer; text-decoration: none; }
.mk-page .secondary-button:hover { border-color: var(--mk-line-strong); }
.mk-page .compact-button { padding: .25rem .6rem; font-size: .78rem; }
.mk-page .icon-button { border: 0; background: transparent; cursor: pointer; color: var(--mk-text); font-size: 1.05rem; line-height: 1; padding: .15rem .3rem; }
.mk-page .icon-button:hover { color: var(--mk-ink); }

/* ---------- Help panel (floating dialog on public pages) ---------- */
.mk-page .help-panel { max-width: 34rem; width: calc(100% - 2rem); max-height: calc(100dvh - 3rem); border: 1px solid var(--mk-line); border-radius: 10px; background: var(--mk-bg); color: var(--mk-ink); padding: .9rem 1.1rem; line-height: 1.5; box-shadow: var(--mk-shadow-lg); }
.mk-page .help-panel[open] { display: flex; flex-direction: column; }
.mk-page .help-panel::backdrop { background: rgb(0 0 0 / .45); }
.mk-page .help-panel h2 { margin-top: 0; }
.mk-page .help-panel h3 { margin: 1.15rem 0 .4rem; font-size: .95rem; }
.mk-page .help-panel p { margin: .4rem 0; }
.mk-page .help-panel ol, .mk-page .help-panel ul { margin: .4rem 0 .8rem; padding-inline-start: 1.35rem; }
.mk-page .help-panel li { margin: .3rem 0; }
.mk-page .help-panel-page { flex: 1; min-height: 0; overflow-y: auto; }
.mk-page .help-glossary { margin: .4rem 0 .8rem; }
.mk-page .help-glossary dt { font-weight: 600; }
.mk-page .help-glossary dt:not(:first-child) { margin-top: .6rem; }
.mk-page .help-glossary dd { margin: .1rem 0 0; margin-inline-start: .8rem; color: var(--mk-text); font-size: .85rem; }
.mk-page .help-panel-close { position: absolute; top: .5rem; inset-inline-end: .5rem; margin: 0; }
.mk-page .help-panel-footer { flex-shrink: 0; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--mk-line); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: .8rem; }
.mk-page .help-panel-footer p { flex-basis: 100%; margin: .25rem 0 0; }
.mk-page .help-panel-toggle { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }

/* ---------- Nav: current section + mobile menu ---------- */
.mk-nav a.active {
    background: var(--mk-accent-soft);
    color: var(--mk-accent-ink);
}
.mk-menu { display: none; }
@media (max-width: 56rem) {
    .mk-nav, .mk-login,
    .mk-header .mk-actions .language-select, .mk-header .mk-actions .theme-toggle { display: none; }
    /* The panel anchors to the header, not the button - it spans the
       whole header width like a real mobile nav drawer. */
    .mk-menu { display: block; position: static; }
    .mk-header { position: relative; }
    .mk-menu > summary {
        display: inline-flex; align-items: center; gap: .45rem;
        list-style: none; cursor: pointer;
        padding: .5rem .8rem; border: 1px solid var(--mk-line); border-radius: 999px;
        color: var(--mk-ink); font-weight: 600; font-size: .9rem;
    }
    .mk-menu > summary::-webkit-details-marker { display: none; }
    .mk-menu > summary svg { width: 17px; height: 17px; }
    .mk-menu[open] > summary { background: var(--mk-accent-soft); border-color: var(--mk-accent); }
    .mk-menu-panel {
        position: absolute; inset-inline: 0; top: calc(100% + .4rem);
        min-width: 13.5rem; background: var(--mk-bg);
        border: 1px solid var(--mk-line); border-radius: 12px;
        box-shadow: var(--mk-shadow-lg); padding: .45rem;
        display: grid; gap: .1rem; z-index: 80;
    }
    .mk-menu-panel > a { padding: .6rem .8rem; border-radius: 8px; color: var(--mk-ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
    .mk-menu-panel > a:hover { background: var(--mk-accent-soft); }
    .mk-menu-panel > a.active { background: var(--mk-accent-soft); color: var(--mk-accent-ink); }
    .mk-menu-login { border-top: 1px solid var(--mk-line); margin-top: .25rem; }
    .mk-menu-utils { display: flex; align-items: center; gap: .5rem; border-top: 1px solid var(--mk-line); padding-top: .5rem; margin-top: .25rem; }
    .mk-menu-utils .language-select { flex: 1; max-width: none; }
}

/* ---------- Tap targets: >=24px hit areas (WCAG 2.2) ---------- */
.mk-breadcrumb a, .mk-breadcrumb span { display: inline-block; padding-block: .45rem; }
.tools-counts { display: flex; flex-wrap: wrap; gap: .15rem .3rem; }
.tools-counts a { display: inline-block; padding: .4rem .42rem; }

/* ---------- Feature pages: deep sections as cards ---------- */
.mk-deep {
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-inline-start: 3px solid var(--mk-accent);
    border-radius: var(--mk-radius);
    padding: 1.5rem 1.75rem;
    margin-block: 1.25rem;
    box-shadow: var(--mk-shadow-sm);
}
.mk-deep h2 { margin-top: 0; font-size: 1.35rem; }
.mk-deep p:last-child { margin-bottom: 0; }

/* ---------- About page: info card grid ---------- */
.mk-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.25rem;
    margin-block: 1.5rem;
}
.mk-info-card {
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--mk-shadow-sm);
}
.mk-info-card h2 { margin-top: 0; font-size: 1.2rem; }
.mk-info-card p:last-child { margin-bottom: 0; }

/* ---------- Sports index: filter + group icons ---------- */
/* Direct child of <main> - .mk-main carries no box itself, so page-level
   toolbars need the same max-width + gutter as .mk-section. */
.mk-toolbar {
    max-width: var(--mk-max);
    margin: 0 auto;
    padding: .75rem var(--mk-gutter) 0;
}

.mk-filter {
    display: flex; align-items: center; gap: .6rem;
    max-width: 26rem; margin-block: 0 1.5rem;
}
.mk-filter input {
    flex: 1; font: inherit; color: var(--mk-ink);
    background: var(--mk-bg); border: 1px solid var(--mk-line);
    border-radius: 999px; padding: .6rem 1.1rem;
}
.mk-filter input:focus { outline: 2px solid var(--mk-ring); border-color: var(--mk-accent); }
.mk-filter-empty { color: var(--mk-text); }
.mk-sport-icon {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 2.4rem; height: 2.4rem; border-radius: 10px;
    background: var(--mk-accent-soft); color: var(--mk-accent-ink);
}
.mk-sport-icon svg { width: 22px; height: 22px; }
.sports-card-head { display: flex; align-items: center; gap: .7rem; }
.sports-card-head h3 { margin: 0; }
.mk-card .sports-blurb {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.mk-group-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.mk-group-jump a {
    padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
    border: 1px solid var(--mk-line); color: var(--mk-ink); text-decoration: none;
}
.mk-group-jump a:hover { background: var(--mk-accent-soft); border-color: var(--mk-accent); }

/* ---------- Tools: sticky action bar above results ---------- */
.tools-actions-top {
    position: sticky; top: calc(var(--mk-header-h, 4.25rem) + .5rem); z-index: 30;
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
    background: var(--mk-bg); border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius); padding: .6rem .8rem;
    margin-block: .75rem .25rem; box-shadow: var(--mk-shadow-sm);
}
.tools-actions-top .tools-stats { margin: 0; margin-inline-end: auto; }

/* ---------- Features index: proof strip ---------- */
.mk-proof {
    display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem;
    margin-block: 1.75rem; text-align: center;
}
.mk-proof a {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--mk-ink); font-weight: 600;
}
.mk-proof a svg { width: 20px; height: 20px; color: var(--mk-accent); }

/* Captioned product screenshot: a clipped UI region placed next to the
   copy it proves. No forced 16:9 crop - the captured element keeps its
   natural aspect. */
.mk-figure {
    margin: 0;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    overflow: hidden;
    background: var(--mk-bg);
    box-shadow: var(--mk-shadow-sm);
}
.mk-figure img { display: block; width: 100%; height: auto; }
.mk-figure figcaption {
    padding: .6rem .9rem;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--muted);
    border-top: 1px solid var(--mk-line);
}
.mk-figure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.25rem;
    margin-block: 1.75rem;
    /* Top-aligned cards: stretch would keep every frame at the row's
       tallest height and strand dead space under a short shot's caption. */
    align-items: start;
}
.mk-figure-grid .mk-figure img {
    /* Natural aspect - never stretched to fill the cell. Only captures
       taller than the cap are cropped, anchored to their meaningful top
       (the old height:100% ballooned a thin strip into a blank wall). */
    width: 100%; height: auto;
    max-height: 22rem;
    object-fit: cover; object-position: top;
}
/* Deep-section and hero shots keep natural aspect as well, but very
   tall captures (a full standings table, the whole check-in desk) are
   cropped to a couple of viewports instead of dwarfing the page. */
.mk-media .mk-figure img {
    max-height: 38rem;
    object-fit: cover; object-position: top;
}
.mk-section > .mk-figure img {
    max-height: 44rem;
    object-fit: cover; object-position: top;
}
.mk-dark .mk-figure { background: transparent; border-color: rgba(255, 255, 255, .18); }
.mk-dark .mk-figure figcaption { color: var(--mk-deep-text); border-top-color: rgba(255, 255, 255, .14); }

/* Copy + screenshot side by side; mk-media-alt parks the shot on the
   left so consecutive rows alternate. */
.mk-media {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.5rem 3.5rem;
    align-items: center;
}
.mk-media h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); margin: 0 0 .6rem; }
.mk-media p { line-height: 1.7; margin: 0; }
.mk-media-alt .mk-figure { order: -1; }
@media (max-width: 56rem) {
    .mk-media { grid-template-columns: 1fr; }
    .mk-media-alt .mk-figure { order: 0; }
}

/* ---------- Free tools vs workspace ("the tools are a taste") ---------- */
.mk-taste {
    margin-top: 2rem; border: 1px solid var(--mk-line); border-radius: var(--mk-radius);
    padding: 1.5rem 1.75rem; background: var(--mk-bg); box-shadow: var(--mk-shadow-sm);
}
.mk-taste > h3 { margin: 0 0 1.1rem; font-size: 1.05rem; }
.mk-taste-cols { display: grid; grid-template-columns: 2fr 3fr; gap: 1.5rem; }
.mk-taste h4 {
    margin: 0 0 .5rem; font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.mk-taste ul { margin: 0; padding: 0; list-style: none; }
.mk-taste li { padding: .28rem 0; padding-inline-start: 1.5rem; position: relative; }
.mk-taste li::before {
    content: "✓"; position: absolute; inset-inline-start: .2rem;
    color: var(--mk-accent); font-weight: 700;
}
.mk-taste-ws {
    background: var(--mk-accent-soft); border-radius: calc(var(--mk-radius) - 4px);
    padding: 1rem 1.25rem;
}
.mk-taste-ws .mk-button { margin-top: 1rem; }
@media (max-width: 48rem) { .mk-taste-cols { grid-template-columns: 1fr; } }

/* ---------- Pricing page ---------- */
.mk-plan {
    max-width: 26rem; margin: 0 auto 1.5rem;
    background: var(--mk-bg); border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius); padding: 1.75rem 2rem;
    box-shadow: var(--mk-shadow-sm); text-align: center;
}
.mk-plan-name { color: var(--mk-accent-ink); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.mk-plan-price { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .6rem; margin: .25rem 0 .75rem; }
.mk-plan-price > span:first-child { font-size: 3rem; font-weight: 700; color: var(--mk-ink); line-height: 1; white-space: nowrap; }
.mk-plan-period { color: var(--mk-text); font-size: .9rem; }
.mk-plan-list { list-style: none; margin: 0 0 1.25rem; padding: 0; text-align: start; }
.mk-plan-list li { padding: .35rem 0; padding-inline-start: 1.6rem; position: relative; color: var(--mk-ink); }
.mk-plan-list li::before { content: "✓"; position: absolute; inset-inline-start: .2rem; color: var(--mk-accent); font-weight: 700; }
.mk-plan-note { max-width: 26rem; margin: 0 auto; }
.mk-guidelist li { margin-bottom: .9rem; }
.mk-guidelist li .muted { margin: .15rem 0 0; font-size: .88rem; }
.mk-shot-dark { margin-top: 2rem; }

@media (max-width: 40rem) {
    /* Icon-only menu button - the word would push the signup CTA to a
       second row; the summary still carries an aria-label. */
    .mk-menu > summary span { display: none; }
    .mk-menu > summary { padding: .5rem .65rem; }
}

@media (pointer: coarse) {
    /* Same >=16px control-text floor as app.css - iOS Safari auto-zooms the
       page when focusing a field set below 16px. */
    .mk-page main input:is([type="number"], [type="text"], [type="time"], [type="search"], [type="email"], [type="password"], [type="url"], [type="tel"], :not([type])),
    .mk-page main select,
    .mk-page main textarea {
        font-size: max(1rem, 16px);
    }
}
