/* Season profile branding is limited to brand surfaces and labels. Semantic
   status, achievement rules, participant cards and their palettes stay shared. */
[data-lan-preset] .entry-header h1,
[data-lan-preset] .admin-brand__name {
    color: var(--lan-brand-accent);
    font-family: var(--lan-brand-font), var(--gh-font-head);
}

[data-lan-preset] .mobile-brand a,
[data-lan-preset] .admin-brand {
    color: var(--lan-brand-accent);
}

[data-lan-preset] .entry-header .eyebrow { color: var(--lan-brand-accent); }
[data-lan-preset="neutral-default-v1"].mobile-page--onboarding .entry-header h1 {
    color: var(--lan-brand-accent);
    font-family: var(--lan-brand-font), var(--gh-font-head);
    letter-spacing: -.04em;
    text-transform: none;
}
[data-lan-preset] .continue-button {
    color: var(--lan-brand-accent-text);
    background: var(--lan-brand-accent);
}
[data-lan-preset] .continue-button:focus-visible { outline-color: var(--lan-brand-focus); }

[data-lan-preset] .mobile-brand a:focus-visible {
    outline: .18rem solid var(--lan-brand-focus);
    outline-offset: .2rem;
}

.mobile-brand a { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.mobile-brand__name { color: var(--lan-brand-accent); font: 600 1rem/1.1 var(--lan-brand-font), var(--gh-font-head); }
[data-lan-logo-treatment="mark-with-name"] .mobile-brand img {
    width: 2.35rem;
    height: 2.35rem;
    aspect-ratio: 1;
    filter: none;
}

.admin-brand__mark { overflow: hidden; background: var(--lan-brand-accent); color: var(--lan-brand-accent-text); }
.admin-brand__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.admin-brand > span { min-width: 0; }
.admin-brand__name { display: block; color: var(--admin-text); }

/* The masthead grows with its name instead of having a fixed height: a season name that wraps
   ("LAN demo-weekend-sim") used to overflow the box, above the top of the screen and down into the
   presentation stage. Short names ("LAN 2027") keep exactly the former box, mark and position: the
   mark is the former min(box height, 22 % of the former masthead width), and the box is at least the
   former height. A long name may use the centre column's width before it wraps. */
.grillhelg-brand--mark-with-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.8rem, 2vw, 1.6rem);
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: clamp(4.5rem, 7vw, 7rem);
    aspect-ratio: auto;
}
.grillhelg-brand--mark-with-name img {
    flex: none;
    width: auto;
    height: min(clamp(4.5rem, 7vw, 7rem), calc(.22 * clamp(20rem, 27vw, 33rem)));
    aspect-ratio: 1;
}
.grillhelg-brand--mark-with-name > div { min-width: 0; }
.grillhelg-brand__name {
    color: var(--lan-brand-accent);
    font: 400 clamp(2rem, 3.7vw, 4.2rem)/1 var(--lan-brand-font), var(--gh-font-head);
    text-align: center;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.grillhelg-brand__tagline {
    color: var(--gh-text-muted);
    font: 500 clamp(.8rem, 1vw, 1rem)/1.25 var(--gh-font-ui);
    text-align: center;
}

.admin-topbar { border-bottom-color: var(--lan-brand-accent); }
[data-lan-preset].admin-page .admin-nav__link--active,
[data-lan-preset].admin-page .admin-nav__link--active:hover {
    border-color: var(--lan-brand-accent);
    background: var(--lan-brand-accent);
    color: var(--lan-brand-accent-text);
}

[data-lan-preset="neutral-default-v1"].mobile-page--onboarding .entry-header::after {
    height: 2px;
    background: var(--lan-brand-accent);
}
[data-lan-preset="neutral-default-v1"].mobile-page--onboarding .entry-section {
    --sec: var(--lan-brand-accent);
    background: var(--lan-brand-surface);
    border-color: var(--lan-brand-accent);
}
[data-lan-preset="neutral-default-v1"].mobile-page--onboarding .entry-section--borderless {
    --sec: var(--lan-brand-accent);
}
[data-lan-preset="neutral-default-v1"].mobile-page--onboarding .entry-section > .section-heading {
    background: var(--lan-brand-surface);
    border-bottom: 1px solid var(--lan-brand-accent);
}
[data-lan-preset="neutral-default-v1"].mobile-page--onboarding .entry-section > .section-heading h2 {
    color: var(--lan-brand-accent);
    font-family: var(--lan-brand-font), var(--gh-font-head);
}
[data-lan-preset="neutral-default-v1"] .onboarding-form .input-action button {
    color: var(--lan-brand-accent-text);
    background: var(--lan-brand-accent);
    border-color: var(--lan-brand-accent);
}
.admin-brand__mark:focus-visible,
[data-lan-preset] a:focus-visible { outline-color: var(--lan-brand-focus); }
