/* Shared sitewide navigation. Deliberately independent of Casper .gh-head styles. */
@font-face {
    font-family: "TPG Cinzel";
    src: url("cinzel-500.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
#tpg-site-header, #tpg-site-header * {box-sizing: border-box;}
#tpg-site-header {
    position: relative;
    z-index: 2100;
    color: #f6fafc;
    background: linear-gradient(180deg,rgba(18,20,23,.48),rgba(18,20,23,.65)),url("banner.webp") center / cover no-repeat #111e2b;
    border-top: 2px solid #2fa8b8;
    border-bottom: 1px solid #ffffff1f;
    font-family: system-ui,sans-serif;
    line-height: 1.4;
}
#tpg-site-header .tpg-top {
    max-width: 1200px; margin: auto; min-height: 76px; padding: 10px 28px;
    display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 22px;
}
#tpg-site-header #tpg-disclosure {display: block; justify-self: start; margin: 0; padding: 0; border: 0;}
#tpg-site-header #tpg-toggle {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 82px; min-height: 44px; margin: 0; padding: 6px 8px;
    border: 1px solid transparent; border-radius: 4px; background: transparent; color: #f6fafc;
    cursor: pointer; list-style: none; font: 500 14px/1.4 "TPG Cinzel",Georgia,serif;
}
#tpg-toggle::-webkit-details-marker {display: none;}
#tpg-toggle::marker {content: "";}
#tpg-site-header #tpg-toggle:hover, #tpg-site-header details[open] #tpg-toggle {background: #203542; border-color: #48606e;}
#tpg-site-header .tpg-bars {display: flex; flex-direction: column; gap: 3px; width: 16px;}
#tpg-site-header .tpg-bars i {display: block; width: 16px; height: 1.5px; background: currentColor;}
#tpg-site-header .ed-descriptor {
    margin: 0; padding: 0; color: #edf1ee; text-align: center; white-space: nowrap;
    font: 500 18px/1.5 "TPG Cinzel",Georgia,serif; letter-spacing: .035em; text-shadow: 0 1px 4px #000b;
}
#tpg-site-header .tpg-actions {display: flex; justify-self: end; align-items: center; gap: 24px;}
#tpg-site-header .ed-search, #tpg-site-header .tpg-account {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
    padding: 0; border: 0; border-radius: 0; background: none; color: #f6fafc;
    font: 500 14px/1.4 "TPG Cinzel",Georgia,serif; text-decoration: none; white-space: nowrap; cursor: pointer; text-shadow: 0 1px 4px #000c;
}
#tpg-site-header .ed-search svg {width: 18px; height: 18px;}
#tpg-site-header .ed-search:hover, #tpg-site-header .tpg-account:hover {color: #b4edf2; text-decoration: underline; text-underline-offset: 4px;}
#tpg-site-header .ed-facebook.gh-facebook-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px !important; min-width: 44px; height: 44px !important; margin: 0 !important; padding: 0 !important;
    color: #1877f2 !important; text-decoration: none;
}
#tpg-site-header .ed-facebook.gh-facebook-btn {position: relative;}
#tpg-site-header .ed-facebook.gh-facebook-btn::before {content: ""; position: absolute; width: 30px; height: 30px; border-radius: 5px; background: #111e2b;}
#tpg-site-header .ed-facebook.gh-facebook-btn svg {position: relative; width: 24px !important; height: 24px !important; fill: currentColor !important; color: inherit !important;}
#tpg-site-header .ed-facebook.gh-facebook-btn:hover {color: #70aaff !important;}
#tpg-site-header :focus-visible {outline: 2px solid #8cdde8; outline-offset: 3px;}
#tpg-site-header #tpg-panel {
    position: absolute; top: 100%; left: max(24px,calc((100vw - 1144px)/2)); margin-top: 4px;
    width: 200px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 100px); overflow: auto;
    padding: 8px; background: #111e2b; color: #f6fafc;
    border: 1px solid #354b5a; border-radius: 6px; box-shadow: 0 10px 26px #0003;
    overscroll-behavior: contain;
}
#tpg-site-header details:not([open]) #tpg-panel {display: none;}
#tpg-site-header #tpg-panel .nav {display: grid; gap: 0; margin: 0; padding: 0; list-style: none;}
#tpg-site-header #tpg-panel li {margin: 0; padding: 0; list-style: none;}
#tpg-site-header #tpg-panel li a {
    display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 5px;
    color: #fff; font: 500 14px/1.4 "TPG Cinzel",Georgia,serif;
    text-decoration: underline; text-decoration-color: #90a5b0; text-decoration-thickness: 1px; text-underline-offset: 3px;
    white-space: normal; overflow-wrap: anywhere;
}
#tpg-site-header #tpg-panel li a:hover {background: #233a48; color: #fff;}
#tpg-site-header #tpg-panel .nav-current a {background: #203442; color: #d8f1f4; text-decoration-color: #b1e7ee;}
#tpg-site-header .tpg-quote-footer {margin-top: 8px; border-top: 2px solid #4e697a; padding: 14px 12px 8px;}
#tpg-site-header .ed-quote {margin: 0; padding: 0; border: 0; background: none;}
#tpg-site-header .ed-quote p {margin: 0; padding: 0; color: #c5dbe4; font: italic 13px/1.65 system-ui,sans-serif; white-space: normal; text-wrap: pretty;}
#tpg-site-header .ed-quote footer {margin: 8px 0 0; padding: 0; color: #a1cbd5; font: 400 11px/1.5 system-ui,sans-serif;}
@media (max-width: 980px) {
    #tpg-site-header .tpg-top {display: flex; gap: 16px;}
    #tpg-site-header .ed-descriptor {display: none;}
    #tpg-site-header .tpg-actions {margin-left: auto;}
}
@media (max-width: 600px) {
    #tpg-site-header .tpg-top {padding: 8px 16px; min-height: 64px; gap: 10px;}
    #tpg-site-header #tpg-toggle {font-size: 12px; width: 74px; padding: 6px; gap: 6px;}
    #tpg-site-header .tpg-actions {gap: 14px;}
    #tpg-site-header .tpg-account {font-size: 12px;}
    #tpg-site-header .ed-search {width: 44px; margin-right: -8px;}
    #tpg-site-header .ed-search span {display: none;}
    #tpg-site-header #tpg-panel {left: 16px; max-height: calc(100dvh - 84px);}
}
@media (prefers-reduced-motion: reduce) {#tpg-site-header * {transition: none !important;}}

/* Home keeps its existing geometry. Only interiors add the Home-linked icon. */
#tpg-site-header .tpg-left {display:contents;}
body:not(.home-template) #tpg-site-header .tpg-left {display:flex;align-items:center;gap:12px;min-width:0;justify-self:start;}
#tpg-site-header .tpg-home-link {display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;color:#f6fafc;font:500 12px/1.4 "TPG Cinzel",Georgia,serif;}
#tpg-site-header .tpg-home-link img {display:block;width:36px;height:36px;object-fit:contain;clip-path:circle(45% at 50% 51%);}
#tpg-site-header .tpg-home-link:hover {background:#203542;}
@media(max-width:600px){body:not(.home-template) #tpg-site-header .tpg-top{gap:6px;}body:not(.home-template) #tpg-site-header .tpg-left{gap:4px;}body:not(.home-template) #tpg-site-header .tpg-actions{gap:8px;}}

/* Preserve the contrast backing and existing hit target; remove square corners. */
#tpg-site-header .ed-facebook.gh-facebook-btn {border-radius:50%;}
#tpg-site-header .ed-facebook.gh-facebook-btn::before {border-radius:50%;}

#tpg-site-header .ed-quote{display:flex;flex-direction:column;justify-content:center;}
#tpg-site-header #ed-quote-text[role="button"]{cursor:pointer;}
#tpg-site-header .ed-quote footer a{display:inline-flex;align-items:center;min-height:24px;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;}
