/* ============================================================
   Horsforth shared component styles
   Referenced by both horsforthtownteam.co.uk and horsforthlocallottery.co.uk
   ============================================================ */

:root {
    --hll-green: #1B3A2D;
    --hll-green-dark: #162F24;
    --hll-gold: #D4A843;
    --hll-gold-hover: #C49530;
    --hll-cream: #FAF9F6;
    --hll-max-width: 1080px;
    --hll-font: 'Inter', system-ui, sans-serif;
    --hll-radius: 4px;
    --hll-transition-panel: transform 280ms ease;
    --hll-transition-hover: 150ms ease;
}


/* ── Header bar ─────────────────────────────────────────────── */

.hll-header {
    background: var(--hll-green);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hll-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
    max-width: var(--hll-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.hll-header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    flex-shrink: 0;
}

.hll-header__burger:hover { opacity: 0.75; }

.hll-header__burger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.hll-header__brand {
    margin-left: 10px;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    text-decoration: none;
    color: #fff;
    font-size: 1.375rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.hll-header__brand:hover { opacity: 0.9; }

.hll-header__brand-light { font-weight: 400; }
.hll-header__brand-bold  { font-weight: 800; }

/* ── Slide-out nav panel: brand header strip ─────────────────── */
/* Sits over the padding-top gap at the top of .hll-nav          */

.hll-nav__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hll-nav__header-brand {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
}

.hll-nav__header-brand-bold { font-weight: 800; }

.hll-nav__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--hll-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.hll-nav__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}


/* ── Slide-out nav panel ────────────────────────────────────── */

.hll-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: var(--hll-green);
    color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
    transform: translateX(-100%);
    transition: var(--hll-transition-panel);
    padding-top: 60px;
    overflow-y: auto;
}

.hll-nav--open {
    transform: translateX(0) !important;
}

.hll-nav__backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--hll-transition-hover);
}

.hll-nav__backdrop--open {
    opacity: 1;
    pointer-events: auto;
}

.hll-nav__section {
    padding: 0.25rem 0;
}

.hll-nav__section--divided {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hll-nav__section-label {
    padding: 0 2rem;
    margin-bottom: 0.25rem;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.40);
}

.hll-nav__link {
    display: block;
    padding: 0.5rem 2rem;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--hll-transition-hover), background var(--hll-transition-hover);
}

.hll-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.hll-nav__link--discreet {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.40);
}

.hll-nav__link--discreet:hover {
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.07);
}

.hll-nav__link--highlight {
    color: var(--hll-gold);
    font-weight: 700;
}

.hll-nav__link--highlight:hover {
    color: #E8C065;
    background: rgba(212, 168, 67, 0.08);
}

.hll-nav__link--external {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--hll-gold);
}

.hll-nav__link--external:hover {
    color: #E8C065;
    background: rgba(212, 168, 67, 0.08);
}

.hll-nav__icon-row {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hll-nav__icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.40);
    text-decoration: none;
    border-radius: var(--hll-radius);
    transition: color var(--hll-transition-hover), background var(--hll-transition-hover);
}

.hll-nav__icon-link:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.07);
}

/* ── CMS page prose typography ──────────────────────────────── */
.htt-prose h1,
.htt-prose h2,
.htt-prose h3,
.htt-prose h4 {
    font-family: var(--hll-font);
    font-weight: 700;
    color: var(--hll-green);
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.htt-prose h1 { font-size: 2.25rem; }
.htt-prose h2 { font-size: 1.5rem; }
.htt-prose h3 { font-size: 1.25rem; }

.htt-prose p {
    color: #374151;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.htt-prose ul,
.htt-prose ol {
    color: #374151;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.htt-prose ul { list-style-type: disc; }
.htt-prose ol { list-style-type: decimal; }

.htt-prose li { margin-bottom: 0.25rem; }

.htt-prose strong { font-weight: 700; }
.htt-prose em     { font-style: italic; }

.htt-prose a {
    color: var(--hll-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.htt-prose a:hover { color: var(--hll-gold); }

.htt-prose img {
    max-width: 100%;
    border-radius: var(--hll-radius);
    margin: 1.5rem 0;
}

.htt-prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.htt-prose th {
    background: var(--hll-green);
    color: #fff;
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

.htt-prose td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.htt-prose blockquote {
    border-left: 4px solid var(--hll-gold);
    padding: 0.5rem 1rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-style: italic;
}


/* ── Map ──────────────────────────────────────────────────── */

.hll-map {
    width: 100%;
    height: 90vh;
    display: block;
}

.hll-map__container {
    width: 100%;
}

/* ── Footer ─────────────────────────────────────────────────── */

.hll-footer {
    background: var(--hll-green-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 1rem 1.5rem;
}

.hll-footer__inner {
    max-width: var(--hll-max-width);
    margin: 0 auto;
}

.hll-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hll-footer__grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.hll-footer__brand {
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.hll-footer__desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.hll-footer__heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hll-gold);
    margin-bottom: 0.75rem;
}

.hll-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hll-footer__link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.15s;
}

.hll-footer__link:hover {
    color: #fff;
}

.hll-footer__social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hll-footer__social-link {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.15s;
}

.hll-footer__social-link:hover {
    color: #fff;
}

.hll-footer__legal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

@media (min-width: 640px) {
    .hll-footer__legal {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.hll-footer__legal-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .hll-footer__legal-nav {
        justify-content: flex-end;
    }
}

.hll-footer__legal-link {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.15s;
}

.hll-footer__legal-link:hover {
    color: rgba(255, 255, 255, 0.75);
}

.hll-footer__legal-sep {
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
}

/* ── Sponsor strip ──────────────────────────────────────────────── */

.htt-sponsor-strip {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    padding: 1rem 0 1.25rem;
    margin: 0.5rem 0;
}

.htt-sponsor-strip__header {
    max-width: var(--hll-max-width);
    margin: 0 auto 0.75rem;
    padding: 0 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.htt-sponsor-strip__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111;
}


.htt-sponsor-strip__track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.25rem 1rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.htt-sponsor-strip__track::-webkit-scrollbar {
    display: none;
}

.htt-sponsor-strip__card {
    flex: 0 0 230px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--hll-radius);
    border: 1px solid #e8e8e8;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.htt-sponsor-strip__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-bottom: 1px solid #e8e8e8;
}

.htt-sponsor-strip__img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 700;
    font-size: 2.5rem;
    color: #aaa;
}

.htt-sponsor-strip__card:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.htt-sponsor-strip__name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #111;
    text-align: left;
    line-height: 1.3;
    padding: 0.5rem 0.625rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 639px) {
    .htt-sponsor-strip__header {
        padding: 0 0.5rem;
    }
    .htt-sponsor-strip__track {
        padding: 0.25rem 0.5rem 0.5rem;
    }
}

/* ── Sponsor Ad banners ────────────────────────────────────── */
.htt-sponsor-ad {
    position: relative;
}

.htt-sponsor-ad__img {
    display: block;
    width: 100%;
    border-radius: var(--hll-radius);
    object-fit: cover;
}

.htt-sponsor-ad__label {
    position: absolute;
    bottom: 0.5rem;
    right: 0.625rem;
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    pointer-events: none;
    font-weight: 500;
    letter-spacing: 0.02em;
}
