/* ---------------------------------------------------------------------------
   area.css — the area landing pages (/trivia-in-{city}/).

   Loaded after style.css and blog.css, so it inherits the site shell and the
   .tt-btn styles. These pages are marketing bands like home.php, not the
   light reading surface the blog uses — hence full-width alternating sections.

   Palette (from style.css):  #022850 navy · #0069B5 blue · #8FBD28 green
   --------------------------------------------------------------------------- */

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

.tt-area-hero {
    background: #022850;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    text-align: center;
}

/* No photo on file yet — a brand gradient beats a stock crowd shot, which on an
   AREA page is actively counterproductive: it is the opposite of local. */
.tt-area-hero--nophoto {
    background: radial-gradient(circle at 20% 20%, #0a3f77 0%, #022850 55%, #01203f 100%);
}

.tt-area-hero h1 {
    font-weight: 800;
    font-size: clamp(2.1rem, 5.2vw, 3.6rem);
    margin: .2rem 0 .6rem;
    color: #fff;
}

.tt-area-eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .72rem;
    font-weight: 700;
    color: #8FBD28;
    margin: 0;
}

.tt-area-tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #cddcec;
    max-width: 62ch;
    margin: 0 auto 1.6rem;
}

.tt-area-cta-row {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tt-btn--ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .55);
    color: #fff !important;
}

.tt-btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

.tt-btn--ghost-dark {
    background: transparent;
    border: 2px solid #022850;
    color: #022850 !important;
}

.tt-btn--ghost-dark:hover { background: #022850; color: #fff !important; }

/* --- Fact strip ---------------------------------------------------------- */

.tt-area-facts {
    background: #0069B5;
    color: #fff;
    padding: 1.1rem 0;
}

.tt-area-facts .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.2rem, 5vw, 4rem);
    text-align: center;
}

.tt-area-fact strong {
    display: block;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    font-weight: 800;
    line-height: 1.1;
}

.tt-area-fact span {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .85;
}

/* --- Generic band -------------------------------------------------------- */

.tt-area-band {
    background: #fff;
    color: #22364d;
    padding: clamp(2rem, 4.5vw, 3.5rem) 0;
}

.tt-area-band--light { background: #f4f6f9; }

.tt-area-h2 {
    color: #022850;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: .3rem;
}

.tt-area-sub {
    color: #7387a0;
    font-size: .95rem;
    margin-bottom: 1.4rem;
}

.tt-area-prose { max-width: 68ch; }
.tt-area-prose p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1rem; }

.tt-area-empty {
    background: #f4f6f9;
    border: 1px dashed #c8d4e2;
    border-radius: 10px;
    padding: 1.75rem;
    text-align: center;
}

.tt-area-empty p { color: #55687f; margin-bottom: 1rem; }

/* --- Tonight ------------------------------------------------------------- */

.tt-area-tonight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
    gap: .85rem;
}

.tt-area-tonight-card {
    position: relative;
    display: block;
    background: #022850;
    color: #fff !important;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.tt-area-tonight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 40, 80, .25);
}

.tt-area-time {
    display: block;
    color: #8FBD28;
    font-weight: 800;
    font-size: .95rem;
}

.tt-area-venue {
    display: block;
    font-weight: 700;
    font-size: 1.06rem;
    margin: .15rem 0 .2rem;
    padding-right: 46px;   /* clears the logo */
}

.tt-area-meta { display: block; font-size: .8rem; color: #a9c2da; }

.tt-area-tonight-logo {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 3px;
}

/* --- Championship -------------------------------------------------------- */

.tt-area-champ {
    background: linear-gradient(100deg, #022850 0%, #0069B5 100%);
    color: #fff;
    padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}

.tt-area-champ-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tt-area-champ h2 {
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin: .15rem 0 .35rem;
    color: #fff;
}

.tt-area-champ-when { margin: 0; color: #cddcec; font-size: 1rem; }

.tt-area-countdown {
    display: inline-block;
    background: #8FBD28;
    color: #12240a;
    font-weight: 800;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .18rem .55rem;
    border-radius: 999px;
    margin-left: .5rem;
}

/* --- Top teams ----------------------------------------------------------- */

.tt-area-teams {
    list-style: none;
    counter-reset: none;
    margin: 0 0 1.4rem;
    padding: 0;
    max-width: 640px;
}

.tt-area-teams li {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .6rem .2rem;
    border-bottom: 1px solid #edf1f6;
}

.tt-area-rank {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #022850;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tt-area-teams li:nth-child(1) .tt-area-rank { background: #d4a017; }
.tt-area-teams li:nth-child(2) .tt-area-rank { background: #9aa5b1; }
.tt-area-teams li:nth-child(3) .tt-area-rank { background: #b0713a; }

.tt-area-teamname { flex: 1 1 auto; font-weight: 700; color: #022850; }

.tt-area-teamscore {
    flex: 0 0 auto;
    font-weight: 800;
    color: #0069B5;
    text-align: right;
}

.tt-area-teamscore small {
    display: block;
    font-weight: 500;
    font-size: .72rem;
    color: #7387a0;
}

/* --- Nights -------------------------------------------------------------- */

.tt-area-nights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: .6rem;
}

.tt-area-night {
    display: block;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    padding: .9rem .6rem;
    text-align: center;
    text-decoration: none !important;
    color: #022850 !important;
    transition: border-color .15s ease, transform .15s ease;
}

.tt-area-night:hover { border-color: #0069B5; transform: translateY(-2px); }
.tt-area-night strong { display: block; font-size: .98rem; }
.tt-area-night span { font-size: .76rem; color: #7387a0; }

/* --- Venue wall ---------------------------------------------------------- */
/* 95% of venues have a logo on file, which makes a wall of real local
   businesses — far more convincing than stock photography. */

.tt-area-venues {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .7rem;
}

/* Navy, not white. A large share of venue logos are white artwork on a
   transparent background, which was completely invisible on a white card. */
.tt-area-venue-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .35rem;
    padding: .85rem .55rem;
    background: #022850;
    border: 1px solid #0a3a68;
    border-radius: 10px;
    text-decoration: none !important;
    color: #fff !important;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.tt-area-venue-card:hover {
    background: #0a3f77;
    border-color: #0069B5;
    transform: translateY(-2px);
}

.tt-area-venue-card img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    /* Measured across a 25-logo sample: 32% of venue logos are near-white
       (luminance >200) and were INVISIBLE on the old white card — that is why
       this is navy. But 24% are dark (<90) and would now be the mirror-image
       problem, so every logo gets a soft white halo: invisible behind pale
       artwork, and it lifts dark artwork clear of the navy. */
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .95))
            drop-shadow(0 0 2px rgba(255, 255, 255, .75))
            drop-shadow(0 0 5px rgba(255, 255, 255, .45));
}

.tt-area-venue-noimg {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #cddcec;
    font-weight: 800;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tt-area-venue-name { font-size: .84rem; font-weight: 700; line-height: 1.25; color: #fff; }
.tt-area-venue-city { font-size: .74rem; color: #a9c2da; }

/* --- Bottom CTAs --------------------------------------------------------- */

.tt-area-cta {
    background: #022850;
    color: #fff;
    padding: clamp(2rem, 4.5vw, 3.25rem) 0;
}

.tt-area-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.75rem;
}

.tt-area-cta h3 {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: .35rem;
}

.tt-area-cta p { color: #cddcec; font-size: .93rem; margin-bottom: .9rem; }

/* The global .body-below-nav pads 20vh to clear the fixed navbar; the hero
   supplies its own breathing room, so trim it back here. */
.body-below-nav { padding-top: 16vh; }

@media (max-width: 991.98px) {
    .body-below-nav { padding-top: 13vh; }
}

/* Themed night tag lives in style.css so /locations/ (which does not load this
   file) gets it too. Only the on-navy spacing tweak stays here. */
.tt-theme-tag--onnavy { margin-top: .45rem; }

/* --- Upcoming themed nights ---------------------------------------------- */

.tt-area-themed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: .85rem;
}

.tt-area-themed-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #FF9300;
    border-radius: 10px;
    padding: .95rem 1.05rem;
    text-decoration: none !important;
    color: #022850 !important;
    transition: transform .15s ease, box-shadow .15s ease;
}

.tt-area-themed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(2, 40, 80, .14);
}

.tt-area-themed-date {
    display: block;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #a05a00;
    margin-bottom: .35rem;
}

.tt-area-themed-venue {
    display: block;
    font-weight: 700;
    font-size: 1.03rem;
    margin-top: .45rem;
}

.tt-area-themed-meta {
    display: block;
    font-size: .8rem;
    color: #7387a0;
    margin-top: .15rem;
}

/* --- Day switcher --------------------------------------------------------
   Tonight / Tomorrow / next five days. All panels are in the HTML; JS just
   toggles which is visible, so switching is instant and every day's venue
   links are crawlable. With JS off, .tt-area-daypanel stays visible (the
   is-active rule only ADDS display), so the week still reads top-to-bottom.
   ------------------------------------------------------------------------- */

.tt-area-daytabs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    margin-bottom: 1.1rem;
    -webkit-overflow-scrolling: touch;
}

.tt-area-daytab {
    flex: 0 0 auto;
    min-width: 84px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    padding: .55rem .75rem;
    text-align: center;
    cursor: pointer;
    color: #022850;
    font-family: inherit;
    line-height: 1.2;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.tt-area-daytab:hover { border-color: #0069B5; }

.tt-area-daytab strong { display: block; font-size: .92rem; font-weight: 800; }
.tt-area-daytab span   { display: block; font-size: .72rem; color: #7387a0; }

/* the game count */
.tt-area-daytab em {
    display: inline-block;
    font-style: normal;
    font-size: .68rem;
    font-weight: 800;
    margin-top: .25rem;
    padding: .05rem .4rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #55687f;
}

.tt-area-daytab.is-active {
    background: #022850;
    border-color: #022850;
    color: #fff;
}

.tt-area-daytab.is-active span { color: #a9c2da; }
.tt-area-daytab.is-active em   { background: #8FBD28; color: #12240a; }

/* Only hide panels once JS has taken over — see the .tt-js-days guard. */
.tt-js-days .tt-area-daypanel { display: none; }
.tt-js-days .tt-area-daypanel.is-active { display: block; }
