/* Shared shell; the base tokens and card treatment come from Video Inbox. */
[hidden]{display:none!important}
/* clip avoids a new scrolling container, so the shared header stays sticky. */
html,body{overflow-x:clip}
:focus-visible{outline:3px solid var(--hx-blue);outline-offset:4px}
#main-content:focus{outline:none}
.page-shell{max-width:1360px;padding-top:0}
.app-header{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0 0;margin-bottom:28px;background:var(--hx-bg);border-bottom:1px solid var(--hx-line)}
.app-brand{display:flex;align-items:center;gap:10px;color:var(--hx-ink);font-size:16px;font-weight:750;border:0;padding-bottom:14px;letter-spacing:-.02em}
.app-brand img{object-fit:contain}
.app-tabs{display:flex;align-self:stretch;gap:8px}
.app-tabs a{display:flex;align-items:center;justify-content:center;min-height:50px;padding:0 18px 12px;color:var(--hx-muted);font-weight:700;font-size:14px;border:0;border-bottom:3px solid transparent;white-space:nowrap}
.app-tabs a[aria-current=page]{color:var(--hx-blue2);border-bottom-color:var(--hx-blue);background:linear-gradient(transparent,rgba(37,99,235,.06))}
.app-tabs a:hover{color:var(--hx-blue2);background:rgba(37,99,235,.05)}
.skip-link{position:fixed;top:-80px;left:16px;z-index:100;background:var(--hx-surface);padding:12px 18px;border:2px solid var(--hx-blue)}
.skip-link:focus{top:8px}
.section-heading{margin:28px 0 22px}
.section-heading h1{font-size:clamp(28px,4vw,38px);margin:0 0 10px;line-height:1.15;letter-spacing:-.035em}
.section-heading p{margin:0;max-width:700px}
.muted,.meta,.footer,.result-count{color:var(--hx-muted)}
.take{color:var(--hx-ink)}
.section-nav{display:flex;flex-wrap:wrap;gap:8px 16px;margin:12px 0 24px;border-bottom:1px solid var(--hx-line);padding-bottom:12px}
.section-nav a{display:inline-flex;align-items:center;min-height:36px;font-size:14px;border:0}
.section-nav a:hover{text-decoration:underline}
.news-latest{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:24px 0 32px;border-top-color:var(--hx-blue);padding:24px}
.news-latest:hover{transform:none}
.news-latest h2{font-size:22px;border:0;padding:0;margin:8px 0 10px;line-height:1.3}
.eyebrow{font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.08em;color:var(--hx-muted)}
.news-latest .button{flex-shrink:0;min-height:44px}
.news-filters{gap:14px;align-items:end}
.filter-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.filter-field:first-child{flex:1 1 280px}
.filter-field label,.article-filter label{font-size:12px;font-weight:700;color:var(--hx-muted);letter-spacing:0;text-transform:none}
.news-filters input[type=search]{min-width:0;width:100%;min-height:44px}
.filter-field select,.filter-reset{font:inherit;font-size:14px;min-height:46px;padding:10px 12px;border:1px solid var(--hx-line);border-radius:10px;background:var(--hx-surface);color:var(--hx-ink)}
.filter-reset{cursor:pointer}.filter-reset:hover{border-color:var(--hx-blue)}
.result-count{font-size:13px;margin:12px 0 18px}
.empty-state{padding:24px;border:1px dashed var(--hx-line);border-radius:14px;color:var(--hx-muted)}
.news-grid .news-run h3{font-size:19px;line-height:1.3;margin:8px 0 12px}
.current-themes{border:1px solid var(--hx-line);border-radius:14px;background:var(--hx-surface);padding:16px 22px;margin:24px 0}.current-themes h2{border:0;padding:0;margin:0 0 12px;font-size:20px}.current-themes ul{margin:0;padding-left:20px;color:var(--hx-muted);font-size:14px}.current-themes li{margin:8px 0}
.day-browser{margin-top:32px}.day-links{display:flex;flex-wrap:wrap;gap:10px}
.day-links .pill{min-height:44px;display:flex;align-items:center;text-transform:none;letter-spacing:0}
.reading-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;max-width:100%;align-items:start;gap:26px;margin:0}
.reading-layout>.doc{min-width:0;overflow:visible}
.reading-layout>.toc-panel{position:sticky!important;top:100px!important;right:auto!important;width:auto!important;z-index:10;margin:0}
.toc-details{position:static!important}
.doc h1{font-size:clamp(27px,4vw,42px);line-height:1.12}
.doc h2,.doc h3,.doc h4{scroll-margin-top:120px}
.doc table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.news-body>h1:first-child{display:none}
.news-doc .news-body td,.news-doc .news-body th{text-align:left;white-space:normal;font-weight:400}
.news-doc .news-body th{font-weight:750}
.news-doc .news-body td:first-child{min-width:34px;font-weight:700}
.news-doc .news-body td:nth-child(2){min-width:235px}
.news-doc .news-body td:nth-child(3){min-width:280px}
.news-doc .news-body td:nth-child(7){min-width:360px}
.article-filter{display:grid;gap:8px;margin:20px 0}
.article-filter input[type=search]{min-width:0;width:100%;max-width:640px}
.article-filter .result-count{margin:0}
.workflow-doc{max-width:1000px;margin:0 auto}
.doc img{max-width:100%}
:root[data-theme=dark] .app-header{background:var(--hx-bg)}
/* Keep white primary labels readable on dark mode's otherwise pale blue. */
:root[data-theme=dark] .button:not(.secondary),:root[data-theme=dark] .article-controls a.button:not(.secondary){background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
@media(max-width:900px){
 .app-header{flex-direction:column;align-items:stretch;gap:0;padding-top:12px}
 .app-brand{padding-bottom:8px;font-size:15px}
 .app-tabs{gap:0}.app-tabs a{flex:1;min-height:46px;padding:8px 10px;font-size:14px}
 .reading-layout{display:flex;flex-direction:column;gap:16px}
 .reading-layout>.doc{width:100%}
 .reading-layout>.toc-panel{position:static!important;order:-1;width:100%!important}
 .toc-body{max-height:45vh}
 .doc h2,.doc h3,.doc h4{scroll-margin-top:140px}
}
@media(max-width:720px){
 .page-shell{padding-top:0}
 .app-header{padding-top:calc(10px + env(safe-area-inset-top));margin-bottom:22px}
 .app-brand img{width:28px;height:28px}
 .section-heading{margin:20px 0}.section-heading h1{font-size:29px}
 .section-heading p{font-size:14px}
 .news-latest{flex-direction:column;align-items:stretch;padding:18px;gap:14px}
 .news-latest h2{font-size:20px}.news-latest .meta{margin:0}
 .news-filters{grid-template-columns:1fr 1fr;gap:12px}
 .news-filters .filter-field:first-child{grid-column:1/-1}
 .filter-reset{grid-column:1/-1}
 .section-nav{gap:4px 16px}.section-nav a{min-height:40px}
 .news-grid .news-run{padding:18px}
 .news-grid .news-run h3{font-size:18px}
 /* Without JavaScript, tables retain their horizontally scrollable fallback. */
 .news-body table.labelled-table{border:0!important;box-shadow:none;background:transparent;overflow:visible}
 .news-body .labelled-table thead{display:none}
 .news-body .labelled-table tbody,.news-body .labelled-table tr,.news-body .labelled-table td{display:block;width:100%;min-width:0!important}
 .news-body .labelled-table tr{border:1px solid var(--hx-line);border-radius:12px;padding:14px;margin:16px 0;background:var(--hx-bg)}
 .news-body .labelled-table td{border:0!important;padding:8px 0;font-size:14px;background:none!important;line-height:1.55}
 .news-body .labelled-table td::before{content:attr(data-label);display:block;font-size:11px;font-weight:750;letter-spacing:.05em;text-transform:uppercase;color:var(--hx-muted);margin-bottom:5px}
 .news-body .labelled-table td:first-child{display:none}
 .news-body .labelled-table td:empty{display:none}
 .news-body .labelled-table td:nth-child(2){font-size:16px;font-weight:700}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
