.site-masthead,
.company-footer {
    --nav-ink: var(--ti-ink);
    --nav-blue: var(--ti-accent);
    --nav-line: var(--ti-line);
}
html { scroll-padding-top: var(--masthead-offset, 83px); }
.site-masthead {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--nav-line);
    background: #fff;
    color: var(--nav-ink);
}
#site-content { isolation: isolate; }
.masthead-row.Hcontainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: clamp(24px, 3.6vw, 60px);
}
.masthead-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: none;
    white-space: nowrap;
}
.masthead-brand img { width: 76px; height: 41px; object-fit: contain; }
.masthead-brand span { display: grid; gap: 2px; padding-inline-start: 14px; border-inline-start: 1px solid #c2d7e5; }
.masthead-brand strong { font-size: 22px; line-height: 1.15; color: var(--ti-deep); }
.masthead-brand small { color: var(--ti-muted); font-size: 12px; }
.masthead-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: clamp(2px, .45vw, 9px);
}
.masthead-links > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 7px clamp(8px, 1vw, 17px);
    color: var(--ti-body);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}
.masthead-links > a:first-child { margin-inline-start: auto; }
.masthead-links > a:hover { color: var(--ti-accent-hover); background: var(--ti-paper); }
.masthead-links > a[aria-current]:not([aria-current=false]) { background: #e5f3fb; color: #055782; }
.masthead-links > .masthead-contact {
    margin-inline-start: auto;
    padding-inline: 18px;
    gap: 10px;
    background: var(--ti-deep);
    color: #fff;
}
.masthead-links > .masthead-contact:hover,
.masthead-links > .masthead-contact[aria-current]:not([aria-current=false]) { background: var(--ti-accent); color: #fff; }
.masthead-contact i { color: #b4e6ff; font-size: 13px; }
.masthead-mobile { display: none; position: relative; }
.masthead-mobile > summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 5px 14px;
    border: 1px solid var(--ti-deep);
    background: var(--ti-deep);
    border-radius: 9px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    list-style: none;
    user-select: none;
    cursor: pointer;
}
.masthead-mobile > summary::-webkit-details-marker { display: none; }
.masthead-mobile[open] > summary { background: var(--ti-accent); border-color: var(--ti-accent); }
.masthead-panel {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    width: min(310px, calc(100vw - 28px));
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid #cbdfea;
    border-radius: 14px;
    background: white;
    box-shadow: 0 14px 38px #112d4c24;
}
.masthead-panel a {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 5px 13px;
    border-radius: 7px;
    color: var(--nav-ink);
    font-size: 14px;
}
.masthead-panel a i { width: 19px; color: #53758b; text-align: center; }
.masthead-panel a:hover, .masthead-panel a[aria-current]:not([aria-current=false]) { color: #045c8f; background: #edf6fc; }
.masthead-panel h2 {
    margin: 6px 7px 2px;
    padding: 10px 6px 2px;
    border-top: 1px solid var(--nav-line);
    color: #4d6274;
    font-size: 12px;
}
.masthead-panel a.masthead-careers { margin-top: 7px; border-top: 1px solid var(--nav-line); border-radius: 0; }
.company-footer {
    margin-top: auto;
    background: var(--ti-deep);
    color: #edf7ff;
    border-top: 4px solid var(--ti-brand);
}
.footer-directory.Hcontainer {
    display: grid;
    grid-template-columns: minmax(250px, 1.6fr) repeat(3,minmax(0,1fr));
    gap: clamp(24px, 4.5vw, 78px);
    padding-block: clamp(36px, 5vw, 64px);
}
.footer-office { min-width: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 15px; margin-bottom: 17px; color: #fff; }
.footer-brand img { width: 70px; height: 38px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand strong { padding-inline-start: 15px; border-inline-start: 1px solid #44627b; font-size: 16px; }
.footer-office address, .footer-office .footer-contact {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 3px 0;
    color: #cbdbe8;
    font-size: 14px;
    font-style: normal;
    line-height: 1.9;
}
.footer-office .footer-contact { width: fit-content; }
.footer-office i { flex: 0 0 14px; color: #81c9e9; text-align: center; font-size: 12px; }
.footer-column { width: auto; }
.footer-column h2 { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: #fff; }
.footer-column a { display: table; padding-block: 3px; font-size: 14px; line-height: 1.9; color: #cedeea; }
.company-footer a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.footer-base.Hcontainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #36546e;
    padding-block: 15px;
}
.footer-base small { color: #c7d9e7; font-size: 12px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { display: inline-flex; align-items: center; gap: 16px; min-height: 36px; color: #dfeef7; font-size: 13px; }
.footer-social a + a::before { content: ''; width: 1px; height: 12px; background: #50718b; }
@media (min-width: 711px) and (max-width: 1010px) {
    html { --masthead-offset: 71px; }
    .masthead-row.Hcontainer { min-height: 70px; gap: 13px; }
    .masthead-links { gap: 0; }
    .masthead-links > a { padding-inline: clamp(6px, .9vw, 10px); font-size: 14px; }
    .masthead-brand { gap: 9px; }
    .masthead-brand img { width: 58px; height: 33px; }
    .masthead-brand span { padding-inline-start: 9px; }
    .masthead-brand strong { font-size: 19px; }
    .masthead-brand small { font-size: 11px; }
    .masthead-links > .masthead-contact { padding-inline: 11px; gap: 6px; }
}
@media (min-width: 711px) and (max-width: 800px) {
    .masthead-brand span { display: none; }
}
@media (max-width: 895px) {
    .footer-directory.Hcontainer { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 18px; }
    .footer-office { grid-column: 1 / -1; padding-bottom: 21px; border-bottom: 1px solid #36546e; }
    .footer-brand { margin-bottom: 9px; }
}
@media (max-width: 710px) {
    html { --masthead-offset: 67px; }
    .masthead-row.Hcontainer { min-height: 66px; gap: 15px; }
    .masthead-links { display: none; }
    .masthead-mobile { display: block; }
    .masthead-brand { gap: 10px; }
    .masthead-brand img { width: 62px; height: 34px; }
    .masthead-brand span { padding-inline-start: 10px; }
    .masthead-brand strong { font-size: 19px; }
    .masthead-brand small { font-size: 11px; }
}
@media (max-width: 480px) {
    .footer-directory.Hcontainer { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-column a { min-height: 35px; }
    .footer-base.Hcontainer { align-items: start; flex-direction: column; gap: 11px; }
}
