/* Scoped site chrome: independent of each page's legacy component styles. */
html body .ts-header { display: block; position: sticky; top: 0; z-index: 1040; width: 100%; padding: 0; }
html body .ts-navigation { display: block; padding: 0; margin: 0; border: 0; border-bottom: 1px solid var(--theme-border); background: var(--theme-glass) !important; backdrop-filter: blur(18px); }
.ts-nav-shell, .ts-footer-shell { width: min(100% - 3rem, 1200px); margin-inline: auto; }
.ts-nav-shell { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; flex-wrap: wrap; }
html body .ts-brand { display: inline-flex; align-items: center; gap: .625rem; font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -.05em; text-decoration: none; color: var(--theme-text) !important; white-space: nowrap; }
.ts-brand img { width: 40px; height: 40px; object-fit: contain; border-radius: .625rem; background: #fff; padding: 3px; }
.ts-brand-accent { color: var(--theme-link); }
.ts-nav-tools { display: flex; align-items: center; gap: .5rem; order: 3; }
.ts-nav-tools .ts-theme-toggle { margin: 0; font-size: .8125rem; }
.ts-nav-links { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
html body .ts-nav-link, html body .ts-nav-group summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .625rem .75rem; color: var(--theme-text) !important; text-decoration: none; font-size: .875rem; font-weight: 600; border-radius: .625rem; cursor: pointer; list-style: none; }
.ts-nav-group summary::-webkit-details-marker { display: none; }
html body .ts-nav-link:hover, html body .ts-nav-group summary:hover, html body .ts-nav-links [aria-current="page"] { background: var(--theme-elevated); color: var(--theme-link) !important; }
.ts-nav-group { position: relative; }
html body .ts-nav-panel { position: absolute; top: calc(100% + .5rem); left: 0; min-width: 240px; padding: .5rem; margin: 0; list-style: none; border: 1px solid var(--theme-border); border-radius: 1rem; background: var(--theme-surface); box-shadow: 0 16px 40px #0002; max-height: min(70vh, 500px); overflow-y: auto; }
html body .ts-nav-panel a { display: block; padding: .625rem .875rem; min-height: 44px; border-radius: .5rem; font-size: .875rem; color: var(--theme-text); text-decoration: none; }
html body .ts-nav-panel a:hover { background: var(--theme-elevated); color: var(--theme-link); }
html body a.ts-contact-link { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 46px; padding: .75rem 1.125rem; border-radius: .75rem; background: #2459d3; color: #fff !important; text-decoration: none; font-size: .875rem; font-weight: 700; white-space: nowrap; }
html body a.ts-contact-link:hover { background: #1947b5; }
.ts-menu-toggle { min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--theme-border); border-radius: .625rem; background: var(--theme-surface); color: var(--theme-text); font: inherit; }
html body .ts-footer { position: relative; inset: auto; width: 100%; margin: 0; padding: 0; text-align: left; background: var(--theme-surface); border-top: 1px solid var(--theme-border); color: var(--theme-muted); font-size: .9375rem; }
.ts-footer-intro { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 3rem; border-bottom: 1px solid var(--theme-border); }
.ts-footer-kicker { margin: 0 0 .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--theme-link); }
html body .ts-footer h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; font-weight: 700; letter-spacing: -.035em; color: var(--theme-text); }
.ts-footer-grid { display: grid; grid-template-columns: 1.6fr .8fr 1fr 1fr; gap: 2.5rem; padding-block: 3rem; }
.ts-footer-brand p { max-width: 31ch; margin: 1rem 0; line-height: 1.8; }
html body .ts-footer h3 { margin: 0 0 .875rem; font-size: .9375rem; font-weight: 700; letter-spacing: 0; color: var(--theme-text); }
.ts-footer ul { padding: 0; margin: 0; list-style: none; }
html body .ts-footer a:not(.ts-brand):not(.ts-contact-link) { display: inline-flex; align-items: center; min-height: 40px; padding-block: .35rem; color: var(--theme-muted); text-decoration: none; overflow-wrap: anywhere; }
.ts-footer-brand > a:not(.ts-brand) { display: flex !important; }
html body .ts-footer a:not(.ts-contact-link):hover { color: var(--theme-link); text-decoration: underline; text-underline-offset: .25em; }
.ts-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--theme-border); font-size: .8125rem; }
.ts-footer-bottom p { margin: 0; }
.ts-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.ts-header :is(a, button, summary):focus-visible, .ts-footer a:focus-visible { outline: 3px solid var(--theme-link); outline-offset: 3px; }
@media (max-width: 1199.98px) {
    .ts-nav-shell { gap: .75rem; padding-block: .875rem; min-height: 76px; }
    .ts-nav-tools { order: 0; margin-left: auto; }
    .ts-nav-links { width: 100%; flex-direction: column; align-items: stretch; padding-block: .5rem; max-height: calc(100dvh - 100px); overflow-y: auto; }
    .ts-nav-shell.ts-ready .ts-nav-links:not(.is-open) { display: none; }
    html body .ts-nav-panel { position: static; margin: .25rem 0 .75rem; min-width: 0; box-shadow: none; max-height: none; }
    .ts-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .ts-menu-toggle { display: none; } }
@media (max-width: 575.98px) {
    .ts-nav-shell, .ts-footer-shell { width: calc(100% - 2rem); }
    .ts-nav-shell { gap: .5rem; }
    html body .ts-brand { font-size: 1.25rem; gap: .35rem; }
    .ts-brand img { width: 30px; height: 30px; }
    .ts-nav-tools { gap: .35rem; }
    .ts-nav-tools .ts-theme-toggle { padding: .5rem; font-size: .75rem; }
    .ts-menu-toggle { font-size: .75rem; padding: .5rem; }
    .ts-footer-intro, .ts-footer-bottom { flex-direction: column; align-items: flex-start; }
    .ts-footer-intro { padding-block: 2rem; }
    .ts-footer-grid { gap: 2rem 1rem; padding-block: 2rem; }
    .ts-footer-brand { grid-column: 1 / -1; }
    .ts-footer-bottom nav { gap: 1rem; }
}