/* --primary-color is consumed here (.hb-divider-text, .div-sub-divider)
   and also by the Legislative References section's inline style= color
   and by footer.css's `footer { background-color: ... }` rule. The
   reference project defines it (plus several unused siblings) in an
   inline <head> <style> block; this project doesn't carry that whole
   block over (most of those variables aren't used by anything ported
   here), so just the one variable that's actually referenced is defined
   below instead. */
:root {
    --primary-color: #004643;
}

body {
    font-family: "Ariana Pro", Roboto, "Segoe UI", "Open Sans", sans-serif;
}

/* Prevent wide responsive elements from creating a horizontal page pan on
   narrow touch screens. Vertical scrolling remains unchanged. */
html, body {
    max-width: 100%;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

@supports not (overflow: clip) {
    html, body {
        overflow-x: hidden;
    }
}

h1, h2, h3, h4, h5, h6,
caption, figcaption, .carousel-caption {
    font-family: "Montserrat", sans-serif;
}

button, .btn,
input[type="button"], input[type="submit"], input[type="reset"] {
    font-family: Roboto, sans-serif;
}

/* "Magnet" scroll: as the visitor scrolls down past the carousel and
   #presiding-officer's top edge gets close to passing under the fixed
   header+nav, the browser nudges the scroll position the rest of the
   way so that edge lands flush against the header/nav's bottom edge,
   instead of stopping wherever normal scroll momentum happened to run
   out. "proximity" (not "mandatory") means this only kicks in near that
   point -- it doesn't hijack scrolling elsewhere on the page or force a
   snap on every scroll gesture. scroll-padding-top is set dynamically
   by js/header.js (to the fixed header+nav's actual rendered height,
   which changes with viewport height/breakpoint) so the snap target is
   measured from below the fixed chrome, not the true top of the page. */
html {
    scroll-snap-type: y proximity;
}
#presiding-officer {
    scroll-snap-align: start;
}

.hb-div-title{
    margin-top: 16px;
    color: #fff;
    text-align: center;
    /* Was a flat forestgreen (set inline in index.html before -- moved
       here so it's a proper gradient instead). Dark emerald at the top,
       fading all the way to white at the bottom. */
    background: linear-gradient(to bottom, #014421, #ffffff);
}
.hb-div-container {
    width: 100%;
    background-color: forestgreen;
    text-align: center;
    padding: 16px 0;
    font-family: "Segoe UI", sans-serif;
    font-size: 14px;
    position: relative;
    bottom: 0;
}
.hb-divider-text{
    display: flex;
    margin-top: 4px;
    color: var(--primary-color);
    align-items: center;
}
.hb-divider-text::before{
    content: "";
    width: 72px;
    border-top: 3px solid forestgreen;
}
.hb-divider-text::after{
    content: "";
    width: 72px;
    border-top: 3px solid red;
}
.hidden{
    display: none;
}
.visible {
    display: block;
}
section {
    margin: 0;
    padding: 0;
    position: relative;
    transition: opacity 0.5s ease;
}

section.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

section.visible {
    opacity: 1;
    visibility: visible;
    height: auto;
}
.section-sub-divider{
    display: flex;
    margin-top: 4px;
    color: white;
    align-items: center;
}
.section-sub-divider::before{
    content: "";
    width: 72px;
    border-top: 3px solid white;
}
.section-sub-divider::after{
    content: "";
    width: 72px;
    border-top: 3px solid red;
}
.div-sub-divider{
    display: flex;
    margin-top: 4px;
    color: var(--primary-color);
    align-items: center;
}

/* Fifth Homebase section: live Facebook / YouTube broadcast. */
#live-broadcast {
    color: #173d2b;
    background: linear-gradient(to bottom, #f3faf4, #ffffff);
}

.live-broadcast-title {
    color: forestgreen;
    text-align: center;
    background: linear-gradient(to bottom, lightgray, #f3faf4);
}

.live-stream-card {
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #d8e7db;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .5rem 1.25rem rgba(1, 68, 33, .12);
}

.live-stream-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #fff;
    background: #014421;
}

.live-stream-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.live-stream-status::before {
    width: .65rem;
    height: .65rem;
    content: "";
    border-radius: 50%;
    background: #ff4040;
    box-shadow: 0 0 0 .2rem rgba(255, 64, 64, .22);
}

.live-stream-body {
    padding: 1.25rem;
}

.live-stream-body h2 {
    margin: 0 0 .4rem;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

.live-stream-body p {
    margin-bottom: 1rem;
}

.live-stream-frame {
    width: 100%;
    min-height: 500px;
    border: 0;
    border-radius: .6rem;
    background: #f5f5f5;
}

.live-stream-empty {
    padding: 2.5rem 1.25rem;
    text-align: center;
}

@media (max-width: 575.98px) {
    .live-stream-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-stream-frame {
        min-height: 440px;
    }
}
