/* Optional appearance switcher for the pixel portal. Palette overrides never
   invert --paper: it is also used as foreground in the existing night panels. */
.fq-pixel-site .header-tools{display:flex;align-items:center;gap:12px;flex-shrink:0;min-width:0}
.fq-pixel-site .theme-switcher{display:none;align-items:stretch;gap:0;padding:2px;border:1px solid #a99c83;background:transparent;flex-shrink:0}
.fq-pixel-site.has-js .theme-switcher,html.has-js .fq-pixel-site .theme-switcher{display:inline-flex}
.fq-pixel-site .theme-switcher button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:9px 11px;border:0;background:transparent;color:var(--ink);font:700 12px/1.4 Arial,sans-serif;white-space:nowrap;box-shadow:none;border-radius:0}
.fq-pixel-site .theme-switcher button[aria-pressed="true"]{background:var(--ink);color:var(--paper-light)}
.fq-pixel-site .theme-switcher button:hover{background:rgba(24,32,34,.09)}
.fq-pixel-site .theme-switcher button[aria-pressed="true"]:hover{background:#2c3739}
.fq-pixel-site .theme-switcher button:focus-visible{position:relative;z-index:1;outline:3px solid var(--red);outline-offset:2px}
.fq-pixel-site .theme-switcher svg{display:block;flex-shrink:0;width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fq-pixel-site .header-tools .search-trigger{color:var(--ink);margin-left:0;flex-shrink:0}
.fq-pixel-site .fq-ui-icon{display:inline-block;width:1em;height:1em;max-width:none;flex:none;vertical-align:-.12em}
.fq-pixel-site :is(.button,.read-link,.support-discord) > .fq-ui-icon{margin-inline-start:.2em}
.fq-pixel-site :is(button,a,summary) > span[aria-hidden="true"] > .fq-ui-icon{display:block}
.fq-pixel-site .footer-band{background:#080a0b;color:#f0f1eb;--line:rgba(225,234,228,.2)}

/* Make room for the control without compressing the existing navigation. */
@media(max-width:1600px){
 .fq-pixel-site .site-header{flex-wrap:wrap}
 .fq-pixel-site .header-tools{margin-left:auto}
 .fq-pixel-site .nav-shell{order:3;flex:1 1 100%;width:100%;margin:0}
 .fq-pixel-site .nav-shell .main-nav{width:100%;justify-content:flex-start;gap:18px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:9px}
}
.fq-pixel-site :is(.main-nav,.footer-portal-nav) a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
@media(max-width:760px){
 .fq-pixel-site .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;row-gap:12px}
 .fq-pixel-site .site-header>.brand{grid-column:1/-1;grid-row:1;justify-self:start}
 .fq-pixel-site .site-header>.header-tools{grid-column:2;grid-row:2;align-self:start;margin:0;position:relative;z-index:3;gap:8px}
 .fq-pixel-site .site-header>.nav-shell{grid-column:1/-1;grid-row:2;margin:0;min-width:0;width:100%}
 .fq-pixel-site .nav-shell>.nav-toggle{width:calc(100% - 154px);padding-right:0;min-height:50px}
 .fq-pixel-site .nav-shell .main-nav{border-top:0;padding-top:12px;gap:4px}
 .fq-pixel-site .theme-choice-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .fq-pixel-site .theme-switcher button{padding:9px;min-width:44px}
 .fq-pixel-site .header-tools .search-trigger{padding:10px;min-width:44px}
 .fq-pixel-site .header-tools .search-trigger>span{display:none}
}

/* Dark content surfaces. Existing illustration, hero, podcast and support
   sections keep their deliberately composed colors and lighting. */
html[data-fq-theme="dark"] .fq-pixel-site{
 --fq-surface:#24282b;--fq-surface-raised:#2b3034;--fq-surface-inset:#191d20;
 --fq-text:#f0f1eb;--fq-muted:#bec6c2;--fq-link:#f09c8d;--fq-black:#080a0b;
 --line:rgba(225,234,228,.2);--paper-shade:#15191b;
 color-scheme:dark;background:var(--fq-surface);color:var(--fq-text)
}
html[data-fq-theme="dark"] .fq-pixel-site .site-header{background:var(--fq-black);color:var(--fq-text);border-bottom-color:var(--line)}
html[data-fq-theme="dark"] .fq-pixel-site .brand-by{color:#bec4bd}
html[data-fq-theme="dark"] .fq-pixel-site .brand>img{filter:brightness(0) invert(1)}
html[data-fq-theme="dark"] .fq-pixel-site :is(.search-trigger,.nav-toggle){color:var(--fq-text)}
html[data-fq-theme="dark"] .fq-pixel-site .theme-switcher{border-color:#6c756e;background:var(--fq-black)}
html[data-fq-theme="dark"] .fq-pixel-site .theme-switcher button{color:var(--fq-text)}
html[data-fq-theme="dark"] .fq-pixel-site .theme-switcher button:hover{background:#30373a}
html[data-fq-theme="dark"] .fq-pixel-site .theme-switcher button[aria-pressed="true"]{background:var(--gold-light);color:#111516}
html[data-fq-theme="dark"] .fq-pixel-site .main-nav{background:var(--fq-black)}
html[data-fq-theme="dark"] .fq-pixel-site :is(.news-section,.guide-section,.story-section){background:var(--fq-surface);color:var(--fq-text)}
html[data-fq-theme="dark"] .fq-pixel-site :is(.news-section,.guide-section,.story-section) .eyebrow{color:var(--gold-light)}
html[data-fq-theme="dark"] .fq-pixel-site :is(.section-heading>p,.result-count,.post-meta,.news-footer p,.prototype-note,.empty-state){color:var(--fq-muted)}
html[data-fq-theme="dark"] .fq-pixel-site :is(.news-item>p,.post-copy>p,.guide-entry p:not(.eyebrow),.story-copy>.story-lead,.story-copy>p:not(.eyebrow):not(.story-lead):not(.prototype-note)){color:var(--fq-muted)}
html[data-fq-theme="dark"] .fq-pixel-site :is(.post-meta .post-topic,.text-link){color:var(--fq-link)}
html[data-fq-theme="dark"] .fq-pixel-site :is(.title-button:hover,.guide-entry:hover h3){color:var(--gold-light)}
html[data-fq-theme="dark"] .fq-pixel-site .entry-number{color:#c4b48e}
html[data-fq-theme="dark"] .fq-pixel-site .topic-filters :is(a,button){color:var(--fq-text);border-color:var(--line);background:transparent}
html[data-fq-theme="dark"] .fq-pixel-site .topic-filters :is(a,button):hover{border-color:var(--gold)}
html[data-fq-theme="dark"] .fq-pixel-site .topic-filters :is(.is-active,[aria-current="page"]){background:var(--fq-black);color:var(--gold-light);border-color:var(--gold)}
html[data-fq-theme="dark"] .fq-pixel-site .button-dark{background:var(--fq-black);color:var(--fq-text);border-color:#626e65}
html[data-fq-theme="dark"] .fq-pixel-site .button-dark:hover{background:#151b1f}
html[data-fq-theme="dark"] .fq-pixel-site .button-paper{background:var(--fq-surface-raised);color:var(--fq-text);border-color:var(--gold)}
html[data-fq-theme="dark"] .fq-pixel-site .light-link{color:var(--gold-light)}

/* The footer stays black in both reading modes; no dark-only variables here.
   Its shared wrapper is full width; content width remains unchanged. */
.fq-pixel-site :is(.footer-portal-nav,.site-footer){background:#080a0b;color:#bec6c2;border-color:rgba(225,234,228,.2)}
.fq-pixel-site .footer-brand{color:#f0f1eb}
.fq-pixel-site .site-footer .back-top{color:var(--gold-light)}
.fq-pixel-site .site-footer .webdesign-credit{margin-top:16px}
.fq-pixel-site .site-footer .webdesign-credit a{color:var(--gold-light);text-decoration:underline;text-underline-offset:3px}
.fq-pixel-site :is(.site-footer,.footer-portal-nav) a:hover{color:var(--gold-light)}
.fq-pixel-site .footer-band a:focus-visible{outline:2px solid var(--gold-light);outline-offset:4px}

/* The new site omits visible path trails in every reading mode and viewport.
   Keep structured SEO data and all other navigation unchanged. Component
   styles load later, so this intentionally wins over their display rules. */
.fq-pixel-site nav:is(.editorial-breadcrumbs,.breadcrumb){display:none!important}

/* Search and lightweight fallback content follow the selected reading mode. */
html[data-fq-theme="dark"] .fq-pixel-site :is(.search-dialog,.article-dialog,.no-script,.skip-link){background:var(--fq-surface-raised);color:var(--fq-text);border-color:#69756c}
html[data-fq-theme="dark"] .fq-pixel-site .search-dialog :is(h2,label){color:var(--fq-text)}
html[data-fq-theme="dark"] .fq-pixel-site .search-dialog .eyebrow{color:var(--gold-light)}
html[data-fq-theme="dark"] .fq-pixel-site .search-dialog input{background:var(--fq-surface-inset);color:var(--fq-text);border-color:#778277}
html[data-fq-theme="dark"] .fq-pixel-site .search-dialog input::placeholder{color:#b4bfb8;opacity:1}
html[data-fq-theme="dark"] .fq-pixel-site :is(.search-results-note,.search-result span,.article-image figcaption){color:var(--fq-muted)}
html[data-fq-theme="dark"] .fq-pixel-site :is(.article-meta,.article-dialog .eyebrow){color:var(--gold-light)}
html[data-fq-theme="dark"] .fq-pixel-site .article-lead{color:var(--fq-muted)}
html[data-fq-theme="dark"] .fq-pixel-site .reading-content{color:var(--fq-text)}
html[data-fq-theme="dark"] .fq-pixel-site .reading-content a{color:var(--fq-link)}
html[data-fq-theme="dark"] .fq-pixel-site .reading-content .cq-context-link{background:var(--fq-surface-raised);color:var(--fq-text)}

/* News and article templates share the switcher instead of flashing back to
   parchment when a reader follows a headline. */
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial{background:var(--fq-surface);color:var(--fq-text)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial :is(.archive-title,.article-title,.article-content,.article-content h2,.article-content h3,.article-content h4,.article-content h5,.article-content h6){color:var(--fq-text)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial :is(.editorial-breadcrumbs,.archive-intro,.archive-count,.article-deck,.article-byline,.article-featured figcaption,.article-source-note,.article-content figcaption,.article-content .cq-lead){color:var(--fq-muted)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial :is(.archive-kicker,.editorial-aside-card .eyebrow,.editorial-aside-card .aside-kicker){color:var(--gold-light)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial :is(.archive-search,.article-toc,.editorial-aside-card,.article-update-note){background:var(--fq-surface-raised);color:var(--fq-text);border-color:var(--line);border-top-color:var(--gold)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .archive-search{border-left-color:var(--gold)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .archive-search input{background:var(--fq-surface-inset);color:var(--fq-text);border-color:#778277}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .archive-search input::placeholder{color:#b4bfb8;opacity:1}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .editorial-aside-card :is(h2,h3,strong){color:var(--fq-text)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .editorial-aside-card p{color:var(--fq-muted)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial :is(.article-toc summary,.article-toc a,.editorial-aside-card a,.article-byline a,.article-update-note strong,.article-taxonomy a,.article-featured figcaption a,.article-source-note a){color:var(--fq-link)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .article-toc a:hover{color:var(--gold-light)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .article-content a{color:var(--fq-link)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .article-content li::marker{color:var(--gold-light)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .article-content blockquote{color:#d5ded5}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .article-content pre{background:var(--fq-surface-inset);color:var(--fq-text)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .table-scroll{border-color:#59645c;scrollbar-color:var(--gold) var(--fq-surface-inset)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .article-content table{background:var(--fq-surface-raised);color:var(--fq-text)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .article-content :is(th,td){border-color:#59645c}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .article-content th{background:var(--fq-black);color:var(--fq-text)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .article-content :is(.cq-context-link,.cq-archive-notice,.cq-review-note,.cq-update-note,.cq-evidence-card,.cq-fact-card,.cq-wish-card,.cq-source-note,.source-video-note){background:var(--fq-surface-raised);color:var(--fq-text);border-color:var(--line);border-left-color:var(--gold)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .article-content :is(.cq-context-link,.cq-archive-notice,.cq-review-note,.cq-update-note,.cq-evidence-card,.cq-fact-card,.cq-wish-card) :is(h2,h3,h4){color:var(--fq-text)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .article-content :is(.cq-evidence-status,.cq-timeline-status){color:var(--gold-light)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .article-content :is(.cq-status-box,.cq-verdict-box,.cq-editorial-question,.cq-status-snapshot,.cq-video-embed) a{color:var(--gold-light)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .editorial-pagination :is(a,.current,.dots){color:var(--fq-text);border-color:var(--line)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .editorial-pagination .current{background:var(--fq-black);color:var(--gold-light);border-color:var(--gold)}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .editorial-pagination .dots{border-color:transparent}
html[data-fq-theme="dark"] .fq-pixel-site.pixel-editorial .editorial-pagination a:hover{color:var(--gold-light);border-color:var(--gold)}
