/*
 * Shared site chrome: one header and one footer on every landing page.
 * Markup comes from /js/site-nav.js; pages only hold the two placeholders:
 *   <div id="ttp-header" class="ttp-header" role="banner"></div>
 *   <div id="ttp-footer"></div>
 * Every selector is under .ttp-header / .ttp-foot so page styles for bare
 * nav, footer or a elements never reach it, and it never reaches them.
 * Broadcast Light: cream bar, navy type, one gold button. Navy footer.
 */
.ttp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 245, 240, 0.95);
    border-bottom: 1px solid rgba(0, 41, 62, 0.08);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #00293E;
}
.ttp-header *, .ttp-foot * { box-sizing: border-box; }
.ttp-header .ttp-bar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.ttp-header .ttp-brand,
.ttp-foot .ttp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00293E;
    text-decoration: none;
    font-family: Montserrat, sans-serif;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: 0.14em;
    white-space: nowrap;
    flex: none;
}
.ttp-header .ttp-brand img { width: 32px; height: 36px; object-fit: contain; display: block; }
.ttp-header .ttp-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ttp-header .ttp-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }

.ttp-header .ttp-navbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #45626F;
    font: 700 14px Inter, sans-serif;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.ttp-header .ttp-navbtn:hover,
.ttp-header .ttp-dd.is-open > .ttp-navbtn { color: #00293E; background: rgba(0, 41, 62, 0.06); }
.ttp-header .ttp-navbtn.is-current,
.ttp-header .ttp-navbtn[aria-current="page"] { color: #00293E; box-shadow: inset 0 -2px 0 #DDB65C; border-radius: 0; }
.ttp-header .ttp-chev { transition: transform .25s; }
.ttp-header .ttp-dd.is-open .ttp-chev { transform: rotate(180deg); }

.ttp-header .ttp-dd { position: relative; }
.ttp-header .ttp-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 10px; /* hover bridge */
    z-index: 5;
}
.ttp-header .ttp-dd-right .ttp-panel { left: auto; right: 0; }
.ttp-header .ttp-dd.is-open .ttp-panel { display: block; }
.ttp-header .ttp-menu {
    width: 340px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 28px 60px -24px rgba(0, 41, 62, 0.45);
    border: 1px solid rgba(0, 41, 62, 0.08);
    animation: ttp-drop .22s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes ttp-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.ttp-header .ttp-mitem,
.ttp-header .ttp-mobile .ttp-mitem {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 11px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #00293E;
    transition: background .2s;
}
.ttp-header .ttp-mitem:hover { background: #F7F5F0; }
.ttp-header .ttp-mico {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #F7F5F0;
    color: #00293E;
    display: grid;
    place-items: center;
    transition: background .2s, color .2s;
}
.ttp-header .ttp-mitem:hover .ttp-mico { background: #00293E; color: #DDB65C; }
.ttp-header .ttp-mtitle { display: block; font: 800 15px Montserrat, sans-serif; }
.ttp-header .ttp-msub { display: block; margin-top: 2px; font: 500 13px Inter, sans-serif; color: #5E7480; }
.ttp-header .ttp-mfoot {
    display: block;
    margin-top: 4px;
    padding: 12px;
    border-top: 1px solid rgba(0, 41, 62, 0.08);
    font: 700 13.5px Inter, sans-serif;
    color: #7A5E1C;
    text-decoration: none;
}
.ttp-header .ttp-mfoot:hover { color: #00293E; }

.ttp-header .ttp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #DDB65C;
    color: #0B0B0C;
    text-decoration: none;
    font: 800 14px Montserrat, sans-serif;
    white-space: nowrap;
    transition: transform .2s, box-shadow .2s;
}
.ttp-header .ttp-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(122, 94, 28, 0.7); color: #0B0B0C; }
.ttp-header .ttp-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #00293E;
    cursor: pointer;
}
.ttp-header button:focus-visible,
.ttp-header a:focus-visible,
.ttp-foot a:focus-visible,
.ttp-foot button:focus-visible,
.ttp-foot input:focus-visible { outline: 2px solid #DDB65C; outline-offset: 2px; }

/* Mobile panel */
.ttp-header .ttp-mobile {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 8px 16px 20px;
    border-top: 1px solid rgba(0, 41, 62, 0.08);
    background: #F7F5F0;
}
.ttp-header .ttp-mgroup { padding: 10px 0; border-bottom: 1px solid rgba(0, 41, 62, 0.08); }
.ttp-header .ttp-mhead { margin: 4px 12px 6px; font: 700 11px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #7A5E1C; }
.ttp-header .ttp-mrow { display: flex; gap: 10px; border: 0; }
.ttp-header .ttp-mbtn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1.5px #00293E;
    color: #00293E;
    font: 800 15px Montserrat, sans-serif;
    text-decoration: none;
}
.ttp-header .ttp-cta-block { display: flex; width: 100%; min-height: 52px; margin-top: 6px; }

@media (max-width: 1080px) {
    .ttp-header .ttp-navbtn { padding: 0 9px; font-size: 13.5px; }
}
@media (max-width: 960px) {
    .ttp-header .ttp-links, .ttp-header .ttp-hide-sm { display: none; }
    .ttp-header .ttp-actions { margin-left: auto; }
    .ttp-header .ttp-toggle { display: inline-flex; }
    .ttp-header .ttp-bar { padding: 0 16px; }
}
@media (max-width: 480px) {
    .ttp-header .ttp-actions > .ttp-cta { display: none; }
}

/* Minimal header for funnel pages (free checks, opt-ins, applications):
   logo only, so nothing pulls people away mid-form. */
.ttp-header.is-minimal .ttp-links,
.ttp-header.is-minimal .ttp-actions,
.ttp-header.is-minimal .ttp-mobile { display: none !important; }

/* Footer */
.ttp-foot {
    background: #00293E;
    color: rgba(255, 255, 255, 0.78);
    padding: 72px 0 32px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}
.ttp-foot .ttp-foot-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 48px; }
.ttp-foot .ttp-foot-top { display: flex; flex-wrap: wrap; gap: 48px; }
.ttp-foot .ttp-foot-pitch { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.ttp-foot .ttp-brand { color: #FFFFFF; }
.ttp-foot .ttp-brand img { width: 30px; height: 34px; object-fit: contain; display: block; }
.ttp-foot .ttp-foot-about { margin: 0; color: rgba(255, 255, 255, 0.7); }
.ttp-foot .ttp-foot-form label { display: block; margin-bottom: 8px; font: 800 15px Montserrat, sans-serif; color: #FFFFFF; }
.ttp-foot .ttp-foot-form div { display: flex; gap: 8px; flex-wrap: wrap; }
.ttp-foot .ttp-foot-form input {
    flex: 1 1 200px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    font: 500 15px Inter, sans-serif;
}
.ttp-foot .ttp-foot-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.ttp-foot .ttp-foot-form button {
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #DDB65C;
    color: #0B0B0C;
    font: 800 14px Montserrat, sans-serif;
    cursor: pointer;
}
.ttp-foot .ttp-foot-ok { margin: 0; color: #ABFFEF; font-weight: 700; }
.ttp-foot .ttp-foot-grid { flex: 999 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; }
.ttp-foot h2 {
    margin: 0 0 12px;
    font-family: Montserrat, sans-serif;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #DDB65C;
}
.ttp-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ttp-foot a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.ttp-foot a:hover { color: #FFFFFF; }
.ttp-foot .ttp-foot-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
}
.ttp-foot .ttp-foot-bottom span:last-child { display: flex; gap: 18px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
    .ttp-header *, .ttp-foot * { animation: none !important; transition: none !important; }
}
