/* TBS Helper — Footer widget */

.tbs_helper_footer.tbs_helper_footer {
    width: 100%;
    background-color: var(--tbs-navy-900);
}

/* ── Top area ──
   Extra bottom padding (vs. the 48px it used to have) creates a quiet
   zone below the columns for the watermark to live in, instead of
   crowding the space directly behind readable text. */
.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__top {
    position: relative;
    overflow: hidden;
    padding: 72px 32px 96px;
}

/* Huge, very faint brand-name text living in the quiet strip below the
   columns — a premium signature, not a competing layer. A top-to-bottom
   fade keeps its upper half essentially invisible so it never reads
   through the link columns above it; only its lower half (past the
   columns) is even faintly legible. Purely decorative: aria-hidden and
   never intercepts clicks. */
.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__watermark {
    position: absolute;
    left: 50%;
    bottom: -0.32em;
    z-index: 0;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.028);
    font-family: var(--tbs-font-heading);
    font-size: 9vw;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 45%, #000 85%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 45%, #000 85%);
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
    gap: 48px;
    max-width: var(--tbs-container-max);
    margin: 0 auto;
}

/* ── Brand column ── */
.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__logo {
    display: inline-flex;
    align-items: center;
    color: var(--tbs-white);
    font-family: var(--tbs-font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__logo_img {
    display: block;
    width: auto;
    height: 32px;
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__tagline {
    margin: 16px 0 0;
    max-width: 32ch;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--tbs-font-body);
    font-size: 0.92rem;
    line-height: 1.65;
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__social_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    transition: background-color 0.25s var(--tbs-ease), color 0.25s var(--tbs-ease), transform 0.25s var(--tbs-ease);
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__social_link:hover,
.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__social_link:focus-visible {
    background-color: var(--tbs-gold);
    color: var(--tbs-white);
    transform: translateY(-2px);
}

/* ── Link columns ──
   The heading doubles as a <label> for a visually-hidden checkbox (the
   classic "checkbox hack") — on mobile this makes each column an
   independent accordion with zero JS; on desktop the checkbox/indicator
   are irrelevant since the list is always shown regardless of state. */
.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__col_toggle_input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__col_heading {
    display: block;
    margin: 0 0 18px;
    color: var(--tbs-white);
    font-family: var(--tbs-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__col_toggle_input:focus-visible + .tbs_helper_footer__col_heading {
    outline: 2px solid var(--tbs-gold);
    outline-offset: 3px;
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__link_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--tbs-font-body);
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.2s var(--tbs-ease);
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__link:hover,
.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__link:focus-visible {
    color: var(--tbs-gold);
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__address {
    max-width: 26ch;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--tbs-font-body);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ── Bottom bar ── */
.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__bottom_inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: var(--tbs-container-max);
    margin: 0 auto;
    padding: 22px 32px;
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--tbs-font-body);
    font-size: 0.85rem;
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__bottom_links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__bottom_link {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--tbs-font-body);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s var(--tbs-ease);
}

.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__bottom_link:hover,
.tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__bottom_link:focus-visible {
    color: var(--tbs-gold);
}

@media (prefers-reduced-motion: reduce) {
    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__social_link,
    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__link,
    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__bottom_link,
    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__link_list,
    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__col_heading::after {
        transition: none;
    }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
    }
}

@media (max-width: 600px) {
    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__top {
        padding: 56px 20px 36px;
    }

    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    /* Brand block still needs its own breathing room before the first
       accordion row, since it isn't part of the heading/divider rhythm. */
    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__brand {
        margin-bottom: 24px;
    }

    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__bottom_inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 20px;
    }

    /* Accordion behavior — each column's heading becomes a tappable
       toggle; the link list is collapsed (0 height) until its checkbox
       is checked. Author rules here only apply below this breakpoint,
       so desktop (above) is untouched — the list there stays the plain,
       always-visible flex column set earlier in the file. */
    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__col_heading {
        position: relative;
        margin-bottom: 0;
        padding: 14px 28px 14px 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__col_heading::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 4px;
        width: 9px;
        height: 9px;
        margin-top: -6px;
        border-right: 1.5px solid rgba(255, 255, 255, 0.5);
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
        transform: rotate(45deg);
        transition: transform 0.25s var(--tbs-ease);
    }

    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__col_toggle_input:checked + .tbs_helper_footer__col_heading::after {
        margin-top: -2px;
        transform: rotate(-135deg);
    }

    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0;
    }

    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__col:last-child {
        border-bottom: none;
    }

    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__link_list {
        max-height: 0;
        overflow: hidden;
        gap: 10px;
        transition: max-height 0.3s var(--tbs-ease), padding 0.3s var(--tbs-ease);
    }

    .tbs_helper_footer.tbs_helper_footer .tbs_helper_footer__col_toggle_input:checked ~ .tbs_helper_footer__link_list {
        max-height: 400px;
        padding-bottom: 14px;
    }
}
