/* ETNA Marathon - Itsy runner front tweaks */
.search-trigger { display: none !important; }
.etna-staff-footer a { color: inherit; text-decoration: underline; }
.etna-alert-bar { margin: 1rem auto; max-width: 720px; }
.etna-alert-bar .alert { margin-bottom: 0.5rem; }
.etna-step-card .inner h3 { margin-bottom: 0.35rem; }
.etna-qr-card { border: 1px solid #e8e8e8; padding: 1rem; margin-bottom: 1.5rem; background: #fff; }
.etna-qr-card img { max-width: 100%; height: auto; }
.etna-status-badge { display: inline-block; padding: 0.25rem 0.75rem; background: #333; color: #fff; font-size: 0.85rem; }

/* Hero background: anchor to top, crop bottom (not center) */
.hero.etna-hero-dark {
    background-position: center top !important;
    background-size: cover !important;
}

/* Hero: dark text, no panel background */
.hero.etna-hero-dark,
.hero.etna-hero-dark h1,
.hero.etna-hero-dark .hero-line-two,
.hero.etna-hero-dark .hero-line-two .border,
.hero.etna-hero-dark .etna-hero-tagline {
    color: #1a1a1a !important;
}
.hero.etna-hero-dark h1 .border.border-top,
.hero.etna-hero-dark h1 .border.border-bottom,
.hero.etna-hero-dark .hero-line-two .border.border-bottom {
    border-color: #1a1a1a !important;
}
.hero.etna-hero-dark .hero-inner .inner {
    display: block;
    width: fit-content;
    max-width: min(calc(100% - 2rem), 28rem);
    margin-left: auto;
    margin-right: clamp(1rem, 4vw, 3rem);
    padding: 0.55rem 0.85rem 0.65rem;
    text-align: right;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.hero.etna-hero-dark .hero-inner .inner > *:last-child {
    margin-bottom: 0;
}
.hero.etna-hero-dark h1,
.hero.etna-hero-dark .hero-line-two,
.hero.etna-hero-dark .hero-line-two .border,
.hero.etna-hero-dark .etna-hero-tagline,
.hero.etna-hero-dark .etna-hero-cta .more-link {
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 0 6px rgba(255, 255, 255, 1),
        0 0 18px rgba(255, 255, 255, 1),
        0 0 34px rgba(255, 255, 255, 0.92);
}
.hero.etna-hero-dark h1 {
    margin: 0;
    line-height: 0.85;
}
.hero.etna-hero-dark .hero-line-one {
    display: none;
}
.hero.etna-hero-dark .hero-line-two {
    margin-top: 0.15rem;
}
.hero.etna-hero-dark .etna-hero-tagline {
    line-height: 1.45;
    font-weight: 500;
    margin: 0.5rem 0 0 !important;
    font-size: 1rem !important;
}
.hero .hero-inner .inner {
    text-align: right;
}
.hero .etna-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 100%;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: 0;
}
.hero .etna-hero-tagline {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.5;
    text-align: right;
    max-width: 100%;
}
.hero .etna-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: max-content;
    max-width: 100%;
}
.hero .etna-hero-cta .more-link.etna-hero-cta-btn {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 11em;
    max-width: none !important;
    margin: 0 !important;
    padding: 0.3em 0.85em 0.35em;
    text-align: center;
    font-size: 1.85rem;
    color: #fff !important;
    border-color: #fff !important;
    text-decoration: none;
    line-height: 1.25;
}
.hero .etna-hero-cta .more-link.etna-hero-cta-btn:hover {
    color: #1a1a1a !important;
    background: #fff;
    border-color: #fff !important;
}

.hero.etna-hero-dark .etna-hero-cta {
    margin-top: 0.45rem;
}
.hero.etna-hero-dark .etna-hero-cta .more-link {
    color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    font-weight: 600;
}
.hero.etna-hero-dark .etna-hero-cta .more-link:hover {
    color: #fff !important;
    background: #1a1a1a;
    border-color: #1a1a1a !important;
}
@media (max-width: 768px) {
    .hero.etna-hero-dark .hero-inner .inner {
        width: auto;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        max-width: calc(100% - 1.5rem);
    }
    .hero .etna-hero-actions,
    .hero.etna-hero-dark .etna-hero-actions {
        margin-left: auto;
        margin-right: 0;
    }
}

/* Runner language switcher (nav) */
.etna-lang-item a {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    padding: 0.15em 0.35em;
}
header.header nav ul > li.etna-lang-item > a.etna-lang-active,
.etna-lang-item a.etna-lang-active {
    color: #f08c79 !important;
    font-weight: 700;
}

.etna-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}
.etna-category-card {
    border: 1px solid #e5e5e5;
    padding: 1.25rem 1.35rem;
    background: #fafafa;
}
.etna-category-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.etna-category-sub {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.9rem;
}
.etna-nav-logout {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}
.etna-nav-logout:hover {
    color: #f08c79;
}
