/* Shared Ternara navigation for standalone pages — 1:1 visual parity with global-nav.css + v29 spacing. */
:root { --tn-bar-height:44px; --tn-ink:#f5f5f7; --tn-muted:#aaaab0; --tn-surface:#101815; --serif:'Cormorant Garamond',Georgia,serif; --sans:'Manrope',Arial,sans-serif; }
html.tn-nav-ready { scroll-padding-top:110px; }
html.tn-nav-ready .topbar, html.tn-nav-ready .tech-header, html.tn-nav-ready .ag-header { display:none; }
html.tn-nav-ready .section-nav { top:var(--tn-bar-height); }
.tn-root { position:sticky; top:0; z-index:100; height:var(--tn-bar-height); color:var(--tn-ink); background:#171719; font-family:var(--sans); font-weight:400; line-height:1.4; text-align:left; -webkit-font-smoothing:antialiased; }
.tn-root *, .tn-root *::before, .tn-root *::after { box-sizing:border-box; }
.tn-root [hidden] { display:none!important; }
.tn-root a { color:inherit; text-decoration:none; }
.tn-root button, .tn-root input { font:inherit; color:inherit; }
.tn-root button { margin:0; border:0; border-radius:0; background:none; cursor:pointer; }
.tn-root a:focus-visible, .tn-root button:focus-visible, .tn-root input:focus-visible { outline:2px solid #90c9f5; outline-offset:3px; border-radius:2px; }
.tn-bar { position:relative; z-index:3; max-width:1240px; height:var(--tn-bar-height); padding:0 24px; margin:auto; display:flex; align-items:center; gap:30px; }
.tn-brand { display:flex; align-items:center; gap:10px; flex:none; height:44px; font-size:12px; font-weight:600; letter-spacing:.09em; }
.tn-brand img { display:block; width:25px; height:25px; object-fit:contain; }
.tn-categories { display:flex; flex:1; align-items:center; justify-content:space-between; gap:20px; }
.tn-category { height:44px; padding:0; font-size:12px!important; white-space:nowrap; color:#d6d6d9!important; transition:color .18s; }
.tn-category:hover, .tn-category[aria-expanded=true], .tn-category[aria-current=page] { color:#fff!important; }
.tn-actions { display:flex; align-items:center; gap:5px; margin-left:auto; }
.tn-icon { width:32px; height:44px; padding:6px!important; display:grid; place-items:center; color:#d6d6d9!important; }
.tn-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.45; stroke-linecap:round; stroke-linejoin:round; }
.tn-language { width:auto; min-width:32px; padding-inline:6px!important; font-size:11px!important; letter-spacing:.03em; white-space:nowrap; }
.tn-toggle, .tn-chevron { display:none; }
.tn-backdrop { position:fixed; inset:var(--tn-bar-height) 0 0; z-index:0; background:rgba(0,0,0,.22); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); opacity:0; visibility:hidden; transition:opacity .24s,visibility .24s; cursor:pointer; }
.tn-panel { position:absolute; top:var(--tn-bar-height); left:0; right:0; z-index:2; overflow:hidden; background:var(--tn-surface); height:0; visibility:hidden; transition:height .26s cubic-bezier(.22,1,.36,1),visibility 0s .26s; }
.tn-root[data-open=true] .tn-panel { visibility:visible; transition-delay:0s; }
.tn-root[data-open=true] .tn-backdrop { opacity:1; visibility:visible; }
.tn-panel-inner { max-width:1240px; margin:auto; padding:38px 24px 56px; display:grid; grid-template-columns:minmax(280px,1.5fr) 1fr 1fr; gap:60px; max-height:calc(100dvh - 44px); overflow-y:auto; }
.tn-panel-inner > * { min-width:0; }
.tn-root .tn-group-label { font-family:var(--sans); letter-spacing:0; text-wrap:wrap; margin:0 0 18px; color:var(--tn-muted); font-size:12px; font-weight:400; line-height:1.5; }
.tn-links { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.tn-links a { display:inline-block; font-size:14px; line-height:1.4; font-weight:500; color:#e8e8ed; }
.tn-links a:hover { color:#fff; text-decoration:underline; text-underline-offset:5px; }
.tn-primary .tn-links { gap:9px; }
.tn-root .tn-primary .tn-links a { font-family:var(--serif); font-size:38px; line-height:1.35; font-weight:500; letter-spacing:-.025em; }
.tn-links a[aria-current=page]::after, .tn-links a[aria-current=true]::after { content:""; display:inline-block; width:5px; height:5px; margin-left:10px; vertical-align:middle; border-radius:50%; background:#c8e7db; }
.tn-subhead { display:none; }
.tn-search-area { grid-column:1/-1; max-width:760px; width:100%; }
.tn-search-label { display:block; font-size:12px; color:var(--tn-muted); margin-bottom:15px; }
.tn-search-input { width:100%; background:transparent; border:0; border-bottom:1px solid #4a4a4f; border-radius:0; padding:6px 0 14px; font-size:30px!important; font-weight:500!important; letter-spacing:-.025em; }
.tn-search-input::placeholder { color:#929298; opacity:1; }
.tn-results { margin-top:28px; }
.tn-results .tn-links { grid-template-columns:1fr 1fr; gap:18px 32px; }
.tn-empty { font-size:15px; color:var(--tn-muted); margin:0; }
.tn-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.tn-root[data-open=true] .tn-panel-inner { animation:tn-enter .24s ease-out; }
@keyframes tn-enter { from { opacity:0; transform:translateY(-7px); } to { opacity:1; transform:translateY(0); } }
@media (min-width:901px) {
  .tn-bar { justify-content:center; }
  .tn-categories { flex:0 0 auto; justify-content:flex-start; gap:clamp(20px,2vw,30px); margin-left:clamp(24px,2.5vw,40px); }
  .tn-actions { margin-left:0; }
}
@media(max-width:900px) {
 :root { --tn-bar-height:48px; }
 .tn-bar { padding:0 16px; gap:12px; }
 .tn-brand { height:48px; font-size:11px; }
 .tn-brand img { width:20px; height:23px; }
 .tn-actions { gap:0; }
 .tn-icon { width:38px; height:48px; padding:12px!important; }
 .tn-language { width:auto; padding:12px 8px!important; }
 .tn-toggle { display:grid; }
 .tn-categories { display:none; }
 .tn-root[data-view=menu] .tn-categories { position:fixed; inset:48px 0 0; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; padding:32px 32px 70px; gap:4px; overflow:auto; background:var(--tn-surface); }
 .tn-root .tn-category { display:flex; justify-content:space-between; align-items:center; text-align:left; min-height:58px; height:auto; font-family:var(--serif); font-size:38px!important; font-weight:500!important; letter-spacing:-.02em; color:var(--tn-ink)!important; }
 .tn-chevron { display:block; width:12px; height:18px; flex:none; fill:none; stroke:#85858c; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
 .tn-root[data-open=true] { background:var(--tn-surface); }
 .tn-root[data-open=true] .tn-panel { height:calc(100dvh - 48px)!important; }
 .tn-root[data-view=menu] .tn-panel { visibility:hidden; }
 .tn-panel-inner { display:block; padding:0 32px 56px; max-height:calc(100dvh - 48px); }
 .tn-panel-inner > section { margin-top:32px; }
 .tn-primary .tn-links { gap:2px; }
 .tn-root .tn-primary .tn-links a { font-size:34px; min-height:46px; padding:5px 0; }
 .tn-group-label { margin-bottom:12px; }
 .tn-links { gap:0; }
 .tn-links a { padding:12px 0; min-height:44px; font-size:15px; }
 .tn-subhead { display:flex; align-items:center; gap:10px; min-height:56px; margin:0 -8px 14px; }
 .tn-back { color:var(--tn-muted)!important; display:flex; align-items:center; gap:10px; min-height:44px; padding:0 8px!important; font-size:14px!important; }
 .tn-back svg { width:12px; height:16px; fill:none; stroke:currentColor; stroke-width:1.5; }
 .tn-search-area { padding-top:12px; }
 .tn-search-input { font-size:26px!important; }
 .tn-results .tn-links { grid-template-columns:1fr; gap:0; }
}
@media(max-width:360px) {
  .tn-bar { padding-inline:12px; }
  .tn-brand { gap:7px; }
  .tn-icon { width:34px; padding:9px!important; }
}
@media(prefers-reduced-motion:reduce) {
 .tn-root *, .tn-root *::before, .tn-root *::after { animation:none!important; transition:none!important; }
}
