/* Isolated menu/search presentation; preserves the website's content and tools. */
body .apple-globalnav .truth-nav-panel {
    display:grid !important;grid-template-rows:0fr;visibility:hidden;
    position:relative !important;inset:auto !important;width:100% !important;
    min-width:0 !important;max-width:none !important;padding:0 !important;
    margin:0;border:0;border-radius:0;box-shadow:none;
    background:var(--truth-nav-bg);color:var(--truth-nav-color);backdrop-filter:none;
    transition:grid-template-rows .28s cubic-bezier(.22,.61,.36,1),visibility 0s .28s;
}
body .apple-globalnav { --truth-nav-bg:#fbfbfd;--truth-nav-color:#1d1d1f;--truth-nav-line:#e5e5e7; }
body.theme-dark .apple-globalnav { --truth-nav-bg:#1d1d1f;--truth-nav-color:#f5f5f7;--truth-nav-line:#3a3a3c; }
body .apple-globalnav .truth-nav-panel.open { grid-template-rows:1fr;visibility:visible;transition:grid-template-rows .28s cubic-bezier(.22,.61,.36,1),visibility 0s; }
.truth-panel-clip { min-height:0;overflow:hidden; }
.truth-menu-inner,.truth-search-content { max-width:980px;margin:0 auto;box-sizing:border-box;padding:4px 24px 20px;opacity:0;transform:translateY(-6px);transition:opacity .2s ease,transform .28s ease; }
.truth-nav-panel.open .truth-menu-inner,.truth-nav-panel.open .truth-search-content { opacity:1;transform:translateY(0); }
body .apple-globalnav .nav-drawer .nav-tab { display:block !important;width:100%;height:auto !important;text-align:left;padding:12px 0 !important;margin:0;border:0 !important;border-bottom:1px solid var(--truth-nav-line) !important;border-radius:0;background:transparent !important;color:var(--truth-nav-color) !important;font:400 15px/22px -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; }
body .apple-globalnav .nav-drawer .nav-tab:last-child { border-bottom:0 !important; }
body .apple-globalnav button { -webkit-tap-highlight-color:transparent; }
body .apple-globalnav .apple-gn-icon:hover,body .apple-globalnav .apple-gn-icon:active { background:transparent !important;box-shadow:none; }
.apple-bars span { transition:transform .24s ease; }
.apple-bars[aria-expanded=true] span:first-child { transform:translateY(3.25px) rotate(45deg); }
.apple-bars[aria-expanded=true] span:last-child { transform:translateY(-3.25px) rotate(-45deg); }
.truth-search-content { padding-top:18px;padding-bottom:24px; }
.truth-search-content .apple-search-inner { max-width:none;gap:12px; }
body .truth-search-content input { min-width:0;width:100%;font-size:22px;color:var(--truth-nav-color); }
#truth-search-close { flex:0 0 44px;width:44px;height:44px;border:0;background:transparent;color:var(--truth-nav-color);font-size:28px;cursor:pointer; }
.apple-globalnav button:focus-visible,.truth-search-content input:focus-visible { outline:2px solid #0071e3;outline-offset:2px; }
@media(max-width:640px) { .truth-menu-inner,.truth-search-content { padding-inline:18px; } body .truth-search-content input { font-size:18px; } }
@media(prefers-reduced-motion:reduce) { body .apple-globalnav .truth-nav-panel,.truth-menu-inner,.truth-search-content,.apple-bars span { transition:none; } }

.mkt-quote-date { display:block;font-size:10px;font-weight:400;line-height:1.4;opacity:.65; }

.nav-drawer .nav-tab {touch-action:manipulation;cursor:pointer;}
.drag-handle {display:inline-flex;flex:0 0 14px;align-items:center;justify-content:center;color:inherit;}
.truth-back-gesture::before {content:"";position:fixed;z-index:9999;left:0;top:40%;width:4px;height:56px;border-radius:0 4px 4px 0;background:#86868b;pointer-events:none;}

/* Immediate, restrained feedback without waiting before click actions. */
button, a, .news-card, .market-card, .iphone-card, [role="button"] {
    -webkit-tap-highlight-color:transparent;
}
button, .news-card, .market-card, [role="button"] {
    transition:opacity 120ms ease,scale 120ms ease;
}
button:active:not(:disabled), .news-card:active, .market-card:active, [role="button"]:active {
    scale:.985;opacity:.82;
}
a:active {opacity:.7;}
#mini-reader-modal:not(.hidden) {
    animation:truth-reader-overlay-in 240ms ease-out both;
}
#mini-reader-modal:not(.hidden) > .reader-panel {
    animation:truth-reader-panel-in 320ms cubic-bezier(.22,.61,.36,1) both;
}
@keyframes truth-reader-overlay-in {from {opacity:0;} to {opacity:1;}}
@keyframes truth-reader-panel-in {
    from {opacity:0;transform:translateY(24px) scale(.98);}
    to {opacity:1;transform:translateY(0) scale(1);}
}
@media(prefers-reduced-motion:reduce) {
    button,.news-card,.market-card,[role="button"] {transition:none;}
    button:active,.news-card:active,.market-card:active,[role="button"]:active {scale:1;}
    #mini-reader-modal:not(.hidden) {animation:truth-reader-overlay-in 160ms ease-out both;}
    #mini-reader-modal:not(.hidden) > .reader-panel {animation:truth-reader-overlay-in 180ms ease-out both;}
}

/* CSS replays the entry only when a tab becomes visible; content updates do not restart it. */
.tab-content:not(.hidden) {animation:truth-tab-enter 220ms cubic-bezier(.22,.61,.36,1) both;}
@keyframes truth-tab-enter {
 from {opacity:0;transform:translateY(8px);}
 to {opacity:1;transform:translateY(0);}
}
@media(prefers-reduced-motion:reduce) {
 .tab-content:not(.hidden) {animation:truth-tab-fade 140ms ease-out both;}
}
@keyframes truth-tab-fade {from {opacity:.35;} to {opacity:1;}}
