:root{color-scheme:light;--paper:#f6f4ef;--card:#fffefa;--ink:#20221f;--muted:#555b54;--field-border:#777d6d;--control-line:#777d6d;--selected-option:#e8efea;--line:#deded6;--accent:#254c3b;--accent-2:#e8eee7;--danger:#9b3027;--radius:20px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);line-height:1.55}.topbar,.footer{max-width:1080px;margin:auto;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar{border-bottom:1px solid var(--line)}.wordmark{font-size:.8rem;letter-spacing:.16em;font-weight:800;text-decoration:none;color:var(--ink)}.language-picker select{background:transparent;border:1px solid var(--line);border-radius:999px;padding:8px 12px;color:var(--ink)}.shell{max-width:780px;margin:0 auto;padding:54px 24px 72px}.intro{padding:8px 0 30px}.eyebrow{font-size:.72rem;letter-spacing:.16em;font-weight:800;color:var(--accent);margin:0 0 14px}.intro h1,.results-page h1,.legal-page h1{font-size:clamp(2.2rem,6vw,4.25rem);line-height:1.06;letter-spacing:-.055em;margin:0 0 24px;max-width:780px}.lead{font-size:1.16rem;line-height:1.7;color:#3f433d}.intro p:not(.eyebrow):not(.prompt){max-width:690px}.prompt{font-size:1.55rem;font-weight:750;letter-spacing:-.025em;margin-top:26px}.survey-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:clamp(20px,4vw,36px);box-shadow:0 10px 40px #20221f08}.form-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:24px}.step-number{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:12px;background:var(--accent-2);color:var(--accent);font-size:.8rem;font-weight:800}.form-heading h2{font-size:1.12rem;line-height:1.45;margin:2px 0 5px;letter-spacing:-.02em}.form-heading p,.field-meta,.privacy-copy,.turnstile-wrap p{font-size:.84rem;color:var(--muted);margin:0}.field-label{display:block;font-size:.88rem;font-weight:700;margin:20px 0 12px}textarea{display:block;width:100%;resize:vertical;min-height:130px;padding:15px;border:1px solid var(--field-border);border-radius:12px;background:#fff;color:var(--ink);font:inherit;outline-offset:3px}textarea:focus,select:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #92b9a1;outline-offset:3px}.field-meta{margin-top:8px;text-align:end}.question-block{padding-top:30px;margin-top:30px;border-top:1px solid var(--line)}.options{display:grid;gap:12px}.option{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:13px 14px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}.option:hover{border-color:#9eafa1;background:#fcfdfb}.option input{accent-color:var(--accent);margin-top:5px;flex:0 0 auto}.option span{font-size:.94rem}.optional-block{margin-top:30px;border-top:1px solid var(--line);padding-top:22px}.optional-block summary{cursor:pointer;font-weight:750}.optional-block h3{font-size:1rem;margin:0 0 14px}.question-block.compact{margin-top:18px;padding-top:18px}.turnstile-wrap{margin-top:30px;padding-top:22px;border-top:1px solid var(--line)}.turnstile-wrap p{margin-bottom:12px}.submit-button{width:100%;border:0;border-radius:999px;background:var(--accent);color:white;font:inherit;font-weight:750;padding:16px 20px;margin-top:22px;cursor:pointer}.submit-button:hover{background:#193b2c}.submit-button:disabled{opacity:.6;cursor:wait}.form-status{min-height:24px;margin:14px 0 0;font-weight:650}.form-status.error{color:var(--danger)}.form-status.success{color:var(--accent)}.privacy-copy{margin-top:14px;line-height:1.6}
#public-answer-note{margin-bottom:16px}.results-teaser{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding:42px 0 0}.results-teaser h2{margin:0 0 8px;font-size:1.5rem;letter-spacing:-.03em}.results-teaser p:not(.eyebrow){margin:0;color:var(--muted)}.text-link{color:var(--accent);font-weight:750;text-decoration:none;white-space:nowrap}.text-link:hover{text-decoration:underline}.footer{border-top:1px solid var(--line);font-size:.78rem;color:var(--muted)}.footer a{color:var(--muted)}.results-page .lead{max-width:660px}.status-panel{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--card);margin:28px 0;color:var(--muted)}.stat-card{display:grid;gap:4px;padding:22px;border-radius:16px;background:var(--accent);color:white;margin:28px 0}.stat-card strong{font-size:3rem;line-height:1.1;letter-spacing:-.05em}.stat-label{font-size:.82rem;opacity:.82}.result-section{padding:24px 0;border-top:1px solid var(--line)}.result-section h2{font-size:1.2rem;margin:0 0 18px}.bar-list{display:grid;gap:15px}.bar-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px}.bar-label{font-size:.92rem}.bar-value{font-size:.9rem;font-weight:750;font-variant-numeric:tabular-nums}.bar-track{grid-column:1/-1;height:9px;border-radius:99px;background:#e2e4dc;overflow:hidden}.bar-fill{height:100%;background:var(--accent);border-radius:99px}.method-note{font-size:.84rem;color:var(--muted);line-height:1.65}.legal-page h2{margin-top:30px;font-size:1.2rem}.legal-page p{max-width:720px}.setup-warning{color:var(--danger)!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:600px){.topbar,.footer{padding:17px 18px}.shell{padding:36px 18px 52px}.wordmark{font-size:.68rem}.results-teaser{align-items:flex-start;flex-direction:column}.intro h1{font-size:2.55rem}.survey-card{border-radius:16px}.lead{font-size:1.05rem}}
/* Keep header layout stable when Arabic RTL is active */
.topbar {
  direction: ltr;
}

.topbar .wordmark,
.topbar .language-picker {
  direction: ltr;
}

.topbar .language-picker select {
  text-align: start;
}

/* Shared links for informational pages */
.footer-links,.page-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.footer-links a{color:var(--muted);text-decoration:none}
.footer-links a:hover{text-decoration:underline}
.page-controls select{background:transparent;border:1px solid var(--line);border-radius:999px;padding:8px 12px;color:var(--ink);max-width:45vw}
.goal-page .lead{max-width:720px}
.goal-page h2{margin-top:32px}
.goal-page .goal-note{margin-top:32px;padding:20px 22px;background:var(--accent-2);border-radius:14px;font-weight:650}
.topbar{direction:ltr}
.topbar .wordmark,.topbar .page-controls{direction:ltr}
@media(max-width:600px){.page-controls{gap:8px;justify-content:flex-end}.footer-links{gap:12px}.footer{align-items:flex-start}}


/* Homepage heading refinement and long-term goal call-to-action */
.intro h1{font-size:clamp(2.15rem,5.3vw,3.85rem);line-height:1.08;max-width:740px;text-wrap:balance}
.goal-cta{margin-top:28px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:rgba(255,254,250,.62);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.goal-cta p{margin:0;color:var(--muted);max-width:440px}
.goal-cta .text-link{display:inline-flex;align-items:center;gap:6px}
@media(max-width:600px){.intro h1{font-size:clamp(2.05rem,9vw,2.65rem);line-height:1.1}.goal-cta{align-items:flex-start;flex-direction:column;gap:10px;padding:16px}}


/* A quiet support invitation at the bottom of every page. */
.footer-support-note{flex:0 0 100%;width:100%;margin:2px 0 0;padding:10px 0 0;border-top:1px solid var(--line);text-align:center;color:var(--muted);font-size:.84rem;line-height:1.6}
.footer-support-note a{color:var(--accent);font-weight:700;white-space:nowrap}

/* Share controls */
.share-button{border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--accent);font:inherit;font-size:.88rem;font-weight:750;padding:10px 15px;cursor:pointer}
.share-button:hover{border-color:var(--accent);background:var(--accent-2)}
.share-button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.post-submit-share{margin-top:10px}
.post-submit-share[hidden]{display:none}
.footer-share{font-size:.78rem;padding:7px 11px}
.share-feedback{font-size:.78rem;color:var(--accent);max-width:260px}
@media(max-width:600px){.footer-links{align-items:flex-start;flex-direction:column}.share-feedback{max-width:100%}}

/* Human-crowd identity shared by the survey and all project pages */
.brand-lockup{display:inline-flex;align-items:center;gap:10px;min-width:0;text-decoration:none;color:var(--ink)}
.brand-mark{display:block;width:64px;height:64px;object-fit:contain;object-position:center;flex:0 0 auto}
.brand-lockup .wordmark{display:block}
.topbar .brand-lockup{max-width:calc(100% - 90px)}
.footer-brand .brand-mark{width:30px;height:30px}
.footer-brand .wordmark{font-size:.67rem;letter-spacing:.12em}
@media(max-width:600px){.brand-mark{width:48px;height:48px}.brand-lockup{gap:7px}.topbar .brand-lockup{max-width:calc(100% - 70px)}.wordmark{font-size:.62rem;letter-spacing:.1em}.footer-brand .brand-mark{width:26px;height:26px}}

/* Public response library */
.results-page>h1{margin-bottom:14px}
.statistics-section,.public-answers-section{margin-top:42px}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 20px}
.section-heading h2{font-size:clamp(1.45rem,3vw,2rem);line-height:1.15;letter-spacing:-.035em;margin:0 0 8px}
.section-heading .eyebrow{margin-bottom:8px}
.section-intro{color:var(--muted);margin:0;max-width:620px}
.status-chip,.answer-total{font-size:.78rem;color:var(--muted);border:1px solid var(--line);background:var(--card);padding:7px 11px;border-radius:999px;white-space:nowrap}
.answer-tools{display:grid;grid-template-columns:minmax(220px,2fr) minmax(170px,1.25fr) auto minmax(130px,1fr) minmax(145px,1fr) minmax(145px,1fr);align-items:end;gap:12px;margin:24px 0 16px}.answer-tools .answer-number-jump{display:grid;grid-template-columns:1fr;gap:4px}.answer-tools .answer-number-jump>span{font-size:.76rem;color:var(--muted);line-height:1.25}.answer-tools #answer-number-go{align-self:end;min-height:43px;white-space:nowrap}.answer-tools #reset-filters,.answer-tools #all-participants{min-height:43px;white-space:nowrap}
.answer-tools label{min-width:0}
.answer-tools input,.answer-tools select{width:100%;min-width:0;min-height:43px;border:1px solid var(--line);border-radius:11px;background:var(--card);padding:9px 11px;color:var(--ink);font:inherit;font-size:.88rem}
.answer-list{display:grid;gap:14px}
.author-answer-shortcut{font-size:.85em;color:var(--muted);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.answer-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:clamp(16px,3vw,24px);box-shadow:0 6px 24px #20221f05}
.answer-card-top,.answer-meta,.answer-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.answer-code{font-size:.75rem;letter-spacing:.04em;font-weight:800;color:var(--accent)}
.answer-date,.answer-language{font-size:.76rem;color:var(--muted)}
.answer-text{font-size:1.05rem;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;margin:18px 0}
.answer-meta{justify-content:flex-start;padding-top:12px;border-top:1px solid var(--line)}
.topic-tag{font-size:.76rem;font-weight:750;color:var(--accent);background:var(--accent-2);padding:5px 9px;border-radius:999px}
.answer-actions{justify-content:flex-start;margin-top:16px}
#all-participants[hidden]{display:none}
.reaction-button,.subtle-button,.show-more-button{border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--accent);font:inherit;font-size:.82rem;font-weight:750;padding:9px 13px;cursor:pointer}
.reaction-button:hover,.subtle-button:hover,.show-more-button:hover{border-color:var(--accent);background:var(--accent-2)}
.reaction-button:disabled,.show-more-button:disabled{opacity:.55;cursor:wait}
.answer-context{margin-top:16px;padding:14px 16px;background:var(--accent-2);border-radius:12px;color:var(--ink)}
.answer-context p{margin:6px 0;font-size:.88rem;line-height:1.55}
.answer-context-choice-list{display:grid;gap:6px;margin:4px 0 10px;padding-left:1.35rem;font-size:.88rem;line-height:1.55}
.answer-context-choice-list li{padding-left:3px}
.show-more-button{display:block;margin:20px auto 0;padding:12px 24px;background:var(--card)}
#show-more[hidden]{display:none!important}
#answers-status:empty{display:none}
@media(min-width:761px) and (max-width:1050px){.answer-tools{grid-template-columns:minmax(180px,2fr) minmax(150px,1.3fr) auto minmax(120px,1fr)}.answer-tools .date-filter-label{min-width:0}}@media(max-width:760px){.answer-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.answer-tools .search-field{grid-column:1/-1}.answer-tools .answer-number-jump{grid-column:span 1}.answer-tools #answer-number-go{width:100%}.section-heading{align-items:flex-start;flex-direction:column;gap:10px}}
@media(max-width:420px){.answer-tools{grid-template-columns:1fr}.answer-tools .search-field{grid-column:auto}.answer-actions{gap:7px}.reaction-button,.subtle-button{font-size:.77rem;padding:8px 10px}}
.topic-correction{margin-top:12px;font-size:.8rem;color:var(--muted)}
.topic-correction summary{cursor:pointer;display:inline-block}
.topic-correction-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.topic-correction-form select{max-width:100%;min-height:38px;border:1px solid var(--line);border-radius:10px;padding:7px 10px;background:var(--card);color:var(--ink);font:inherit}
.topic-feedback{font-size:.78rem;color:var(--accent)}


/* Free-text details for “Other” survey choices */
.other-answer-wrap{margin-top:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--accent-2)}
.other-answer-wrap[hidden]{display:none}
.other-answer-label{display:grid;gap:12px;font-size:.84rem;font-weight:700;color:var(--muted)}
.other-answer-input{width:100%;min-height:44px;border:1px solid var(--control-line);border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink);font:inherit;font-size:.94rem}
.other-answer-input:focus-visible{outline:3px solid var(--accent);outline-offset:2}


/* Goal page: clear paragraph rhythm and selective emphasis */
.goal-page .goal-copy{max-width:720px;font-size:1rem;line-height:1.85;color:var(--ink)}
.goal-page .goal-copy p{max-width:none;margin:0 0 1.15em}
.goal-page .goal-copy p:last-child{margin-bottom:0}
.goal-page .goal-copy strong{font-weight:800;color:var(--accent)}
.goal-page .lead{line-height:1.75;margin-bottom:30px}
.goal-page h2{line-height:1.25;letter-spacing:-.025em;margin-bottom:18px}
.goal-page .goal-note{line-height:1.8}
@media(max-width:600px){.goal-page .goal-copy{line-height:1.8}.goal-page .goal-copy p{margin-bottom:1em}}

/* Centered site header with compact navigation */
.topbar-centered{
  position:relative;
  isolation:isolate;
  z-index:10;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  min-height:82px;
}
.topbar-centered .header-brand-centered{
  display:flex;
  justify-self:center;
  max-width:100%;
  gap:9px;
}
.topbar-centered .header-controls{
  margin-inline-start:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px 12px;
  min-width:0;
}
.topbar-centered .header-controls select{
  max-width:100%;
  min-height:32px;
  padding:4px 8px;
  border:1px solid var(--field-border);
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:.85rem;
}
.topbar-centered .header-controls .text-link{white-space:normal;overflow-wrap:anywhere}
.site-menu{position:relative;z-index:20;flex:0 0 auto}
.site-menu-details{position:relative}
.site-menu-trigger {
  list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:9px;
  width:max-content; min-height:44px; padding:0 15px; white-space:nowrap;
  border:1px solid #b8c9bd; border-radius:999px; background:#e8efe9;
  color:var(--accent); font-family:inherit;
  font-size:.9rem; font-weight:600; line-height:1.2;
}
.site-menu-trigger::before {
  content:""; width:15px; height:12px; box-sizing:border-box;
  border-block:2px solid currentColor;
  background:linear-gradient(currentColor,currentColor) left center / 11px 2px no-repeat;
}
.site-menu-trigger:hover { background:#dae6dd; border-color:#94ac9b; }
.site-menu-details[open] > .site-menu-trigger {
  background:var(--accent); border-color:var(--accent); color:white;
}
.site-menu-details[open] > .site-menu-trigger::before {
  border:0; background:linear-gradient(45deg,transparent 44%,currentColor 45% 55%,transparent 56%),
    linear-gradient(-45deg,transparent 44%,currentColor 45% 55%,transparent 56%);
  width:15px; height:15px;
}
.site-menu-trigger::-webkit-details-marker{display:none}
.site-menu-panel{position:absolute;inset-inline-start:0;top:calc(100% + 9px);width:min(250px,calc(100vw - 36px));padding:8px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px #20221f18;display:grid;gap:2px}
.site-menu-panel a,.site-menu-panel button{display:block;width:100%;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-size:.9rem;text-align:start;text-decoration:none;cursor:pointer}
.site-menu-panel a:hover,.site-menu-panel button:hover{background:var(--accent-2)}
/* Keep the shared dropdown menu fully styled above page content. */
.topbar-centered .site-menu{position:relative;z-index:1000}
.topbar-centered .site-menu-details{position:relative}
.topbar-centered .site-menu-panel{
  position:absolute;inset-inline-start:0;top:calc(100% + 9px);
  display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:2px;
  width:min(270px,calc(100vw - 36px));padding:8px;
  background:var(--card,#fffefa);border:1px solid var(--line,#deded6);
  border-radius:14px;box-shadow:0 12px 32px #20221f18;z-index:1001;
}
.topbar-centered .site-menu-panel>a,
.topbar-centered .site-menu-panel>button{
  display:flex;align-items:center;justify-content:flex-start;
  width:100%;min-height:44px;margin:0;padding:10px 12px;
  border:0;border-radius:8px;background:transparent;
  color:var(--ink,#20221f);font:inherit;font-size:.9rem;
  line-height:1.35;text-align:start;text-decoration:none;white-space:normal;
}
.topbar-centered .site-menu-panel>a:hover,
.topbar-centered .site-menu-panel>button:hover{background:var(--accent-2,#e8eee7)}

[dir="rtl"] .site-menu-panel a,[dir="rtl"] .site-menu-panel button{text-align:right}
.topbar-centered .header-brand-centered .brand-mark{
  display:block;
  width:51px;
  height:51px;
  flex:0 0 51px;
  object-fit:contain;
}
.topbar-centered .header-brand-centered .wordmark{
  display:block;
  font-size:1.3rem;
  line-height:1.05;
  letter-spacing:.08em;
  font-weight:800;
}
@media(max-width:900px){
  .topbar-centered .header-brand-centered{gap:7px}
  .topbar-centered .header-brand-centered .brand-mark{width:44px;height:44px;flex-basis:44px}
  .topbar-centered .header-brand-centered .wordmark{font-size:clamp(.98rem,2.2vw,1.2rem);letter-spacing:.055em}
}

/* Keep the footer compact and readable, with links flowing horizontally when space allows. */
.footer{flex-direction:row;align-items:flex-start;justify-content:space-between;gap:24px}
.footer-links{width:auto;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px 20px}
.footer-links a,.footer-links button{display:inline-block;max-width:100%;text-align:start}
@media(max-width:600px){.footer{flex-direction:column;align-items:flex-start;gap:12px}.footer-links{width:100%;flex-direction:row;align-items:center;flex-wrap:wrap;gap:10px 16px}}

/* Align the footer brand and navigation on a shared baseline. */
.footer{align-items:center;gap:28px}
.footer-brand{display:flex;align-items:center;gap:7px;flex:0 0 auto;text-decoration:none}
.footer-brand .brand-mark{width:24px;height:24px;flex:0 0 24px}
.footer-brand .wordmark{font-size:.68rem;letter-spacing:.08em;white-space:nowrap}
.footer-links{justify-content:flex-end;align-items:center}
@media(max-width:600px){.footer{align-items:flex-start;gap:12px}.footer-brand .brand-mark{width:22px;height:22px;flex-basis:22px}.footer-links{justify-content:flex-start}}

/* Footer: logo and navigation flow together; contact is centered on its own line. */
.footer{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 22px}
.footer-links{display:contents}
.footer-links a,.footer-links button{display:inline-block;max-width:100%;text-align:start}
.footer-links .share-feedback{display:none}
.footer-links .footer-contact-copy{flex:0 0 100%;width:100%;justify-self:auto;text-align:center;cursor:pointer}
@media(max-width:600px){
  .footer{flex-direction:row;align-items:center;justify-content:center;gap:10px 14px}
  .footer-brand{margin-inline-end:4px}
  .footer-links .footer-contact-copy{flex-basis:100%;width:100%;text-align:center}
}

/* Footer layout: logo and links on the first row, contact centered below. */
.footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:12px 22px;
}
.footer-brand{flex:0 0 auto}
.footer-links{
  display:contents;
  width:auto;
}
.footer-links a,
.footer-links button{
  display:inline-flex;
  align-items:center;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:var(--muted);
  font:inherit;
  line-height:inherit;
  text-decoration:none;
  cursor:pointer;
}
.footer-links a:hover,
.footer-links button:hover{text-decoration:underline}
.footer-links .footer-share{font-size:inherit;padding:0}
.footer-links .share-feedback{display:none}
.footer-links .footer-contact-copy{
  flex:0 0 100%;
  width:100%;
  justify-content:center;
  text-align:center;
  color:var(--muted);
}
@media(max-width:600px){
  .footer{justify-content:flex-start;gap:12px 16px}
  .footer-brand{flex:0 0 100%}
  .footer-links .footer-contact-copy{flex-basis:100%;width:100%;justify-content:center}
}

/* Contact copy control should look exactly like a plain footer link. */
.footer-links .footer-contact-copy{
  appearance:none;
  -webkit-appearance:none;
  border:0 !important;
  outline-offset:3px;
  border-radius:0 !important;
  background:none !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0;
  color:var(--muted) !important;
  font:inherit !important;
  line-height:inherit;
  text-decoration:none;
}
.footer-links .footer-contact-copy:hover{text-decoration:underline}

/* Keep the share action highlighted and visibly separated from plain links. */
.footer-links .footer-share.share-button{
  display:inline-block;
  border:1px solid var(--line) !important;
  border-radius:999px !important;
  background:var(--card) !important;
  color:var(--accent) !important;
  font:inherit;
  font-weight:750;
  padding:7px 12px !important;
  text-decoration:none;
}
.footer-links .footer-share.share-button:hover{
  border-color:var(--accent) !important;
  background:var(--accent-2) !important;
}
.footer-contact-copy span + span{margin-inline-start:0.3em}

/* Final footer overrides: preserve the highlighted share pill and visible contact spacing. */
.footer-links .footer-share.share-button{
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  background:var(--card)!important;
  color:var(--accent)!important;
  padding:7px 12px!important;
  font-weight:750!important;
  text-decoration:none!important;
}
.footer-links .footer-share.share-button:hover{
  border-color:var(--accent)!important;
  background:var(--accent-2)!important;
}
.footer-links .footer-contact-copy{white-space:nowrap}

.post-submit-support{
  margin-top:16px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
}
.post-submit-support p{margin:0 0 7px;color:var(--muted);font-size:.9rem}
.post-submit-support p:first-child{color:var(--ink);font-weight:750}
.post-submit-support a{display:inline-block;margin-top:4px;color:var(--accent);font-weight:750;text-decoration:none}
.post-submit-support a:hover{text-decoration:underline}


.open-data-section{margin:34px 0}
.open-data-card{border:1px solid var(--line);border-radius:18px;background:var(--card);padding:clamp(16px,3vw,24px);box-shadow:0 8px 28px #20221f08}
.open-data-card>p:first-child{margin-top:0;color:var(--muted);line-height:1.65}
.open-data-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0}
.open-data-actions .submit-button{width:auto;margin:0}
.open-data-actions .subtle-button,.open-data-api-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--ink);font:inherit;text-decoration:none;cursor:pointer}
.open-data-actions button:disabled{opacity:.6;cursor:wait}
.open-data-status{min-height:1.4em;color:var(--muted);font-size:.9rem}
.open-data-instructions{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}
.open-data-instructions h3{margin:0 0 8px}
.open-data-instructions ol{padding-inline-start:22px;line-height:1.7}
@media(max-width:600px){.open-data-actions{align-items:stretch;flex-direction:column}.open-data-actions>*{width:100%;box-sizing:border-box}}


.results-teaser{margin:26px 0 34px;padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--card);align-items:center}
.results-teaser h2{font-size:clamp(1.45rem,3vw,2rem);margin:0 0 8px}
.results-teaser .text-link{display:inline-flex;align-items:center;gap:6px;padding:11px 16px;border-radius:999px;background:var(--accent);color:#fff;font-weight:750;text-decoration:none;white-space:nowrap}
.results-teaser .text-link:hover{background:#193b2c}
@media(max-width:600px){.results-teaser{align-items:flex-start;flex-direction:column;gap:14px;padding:18px}.results-teaser .text-link{white-space:normal}}

.role-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.intro-action{display:flex;margin:22px 0;width:fit-content;min-width:220px}
@media(max-width:600px){
  .shell:has(> .intro){padding-top:16px}
  .intro h1{margin-bottom:14px}
  .intro .lead{line-height:1.55;margin:0 0 12px}
  .intro .intro-action{width:100%;min-height:52px;margin:0 0 12px}
  .intro-action + p{margin-top:0}
}
.role-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:clamp(18px,4vw,24px);border:1px solid var(--line);border-radius:var(--radius);background:var(--card);overflow-wrap:anywhere}
.role-card h2{margin:0;font-size:1.35rem;line-height:1.3}
.role-card p{margin:0}
.role-card .role-note{font-size:.88rem;color:#51574f}
.role-action{align-self:stretch;display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:70px;margin-top:auto;padding:10px 18px;border-radius:999px;background:var(--accent);color:#fff;font-weight:750;text-align:center;text-decoration:none}
.role-action:hover{background:#193b2c}
.role-action:focus-visible,#survey-form:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:600px){.role-paths{grid-template-columns:minmax(0,1fr)}}
@media(min-width:601px){@supports(grid-template-rows:subgrid){.role-card{display:grid;grid-row:span 4;grid-template-rows:subgrid}.role-card h2{grid-row:1}.role-card p:not(.role-note){grid-row:2}.role-card .role-note{grid-row:3}.role-card .role-action{grid-row:4;align-self:stretch;margin-top:0}}}

/* Keep the menu and brand above navigation controls on narrow screens. */
.site-menu-trigger:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:760px){
  .topbar-centered{
    grid-template-columns:max-content minmax(0,1fr) auto;
    gap:8px;
    padding:10px 16px;
  }
  .topbar-centered .site-menu{grid-column:1;grid-row:1}
  .topbar-centered .header-brand-centered{
    grid-column:2;
    grid-row:1;
    gap:5px;
  }
  .topbar-centered .header-brand-centered .brand-mark{
    width:38px;
    height:38px;
    flex-basis:38px;
  }
  .topbar-centered .header-brand-centered .wordmark{
    font-size:clamp(.78rem,3vw,1rem);
    min-width:0;
    overflow-wrap:anywhere;
    text-align:start;
  }
  .topbar-centered .header-controls{
    grid-column:1 / -1;
    grid-row:2;
  }
}


/* Accessible touch targets for the compact site menu. */
.site-menu-trigger{min-width:44px;min-height:44px}
.site-menu-panel a,
.site-menu-panel button{min-height:44px;display:flex;align-items:center}

.participation-note{
  padding:14px 16px;
  border-radius:12px;
  background:#eeece5;
  color:var(--ink);
}
.participation-note p{margin:4px 0 0}
.participation-note p+p{margin-top:8px}

#feedback-email,#deletion-token{
  display:block;
  width:100%;
  padding:13px 15px;
  border:1px solid var(--field-border);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font:inherit;
}
.option:has(input:checked),.preference-option:has(input:checked){
  border-color:var(--accent);
  background:var(--selected-option);
}
.preference-option input{accent-color:var(--accent)}
:is(.survey-card,.preference-card) :is(textarea,input,button,a,summary):focus-visible,
.topbar-centered :is(select,a,button,summary):focus-visible{
  outline:3px solid var(--accent);
  outline-offset:3px;
}

/* Results page: deliberate RTL filter layout. */
[dir="rtl"] .answer-tools {
  display: grid;
  direction: rtl;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
[dir="rtl"] .answer-tools .search-field {
  grid-column: 1 / -1;
}
[dir="rtl"] .answer-tools > label {
  min-width: 0;
}
[dir="rtl"] .answer-tools input[type="search"],
[dir="rtl"] .answer-tools select {
  width: 100%;
  min-width: 0;
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .answer-tools input[type="date"] {
  width: 100%;
  min-width: 0;
  direction: ltr;
  text-align: left;
  padding-inline: 7px;
  font-size: .82rem;
}
[dir="rtl"] .answer-tools > label:has(#answer-sort) {
  grid-column: 1 / 2;
  grid-row: 3;
}
[dir="rtl"] .answer-tools #reset-filters {
  grid-column: 2 / 3;
  grid-row: 3;
  justify-self: start;
  align-self: center;
  width: auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
  overflow-wrap: anywhere;
  padding: 9px 14px;
}
[dir="rtl"] .answer-tools #all-participants {
  grid-column: 2 / 4;
  justify-self: stretch;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}
[dir="rtl"] .footer-brand {
  direction: ltr;
}
[dir="rtl"] .footer-links {
  direction: rtl;
  justify-content: flex-start;
}
@media (max-width: 760px) {
  [dir="rtl"] .answer-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  [dir="rtl"] .answer-tools .search-field {
    grid-column: 1 / -1;
  }
  [dir="rtl"] .answer-tools > label:has(#answer-sort) {
    grid-column: 1 / 2;
  }
  [dir="rtl"] .answer-tools #reset-filters,
  [dir="rtl"] .answer-tools #all-participants {
    grid-column: 2 / 3;
  }
}
@media (max-width: 420px) {
  [dir="rtl"] .answer-tools {
    grid-template-columns: minmax(0, 1fr);
  }
  [dir="rtl"] .answer-tools .search-field,
  [dir="rtl"] .answer-tools > label:has(#answer-sort),
  [dir="rtl"] .answer-tools #reset-filters,
  [dir="rtl"] .answer-tools #all-participants {
    grid-column: 1;
  }
}


/* Share options dialog */
.share-dialog{width:min(440px,calc(100% - 32px));border:1px solid var(--line);border-radius:20px;padding:22px;background:var(--card);color:var(--ink);box-shadow:0 24px 80px #20221f30}
.share-dialog::backdrop{background:#20221f80;backdrop-filter:blur(3px)}
.share-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.share-dialog-head h2{font-size:1.2rem;margin:0}
.share-dialog-close{border:0;background:transparent;color:var(--ink);font-size:1.6rem;line-height:1;cursor:pointer;padding:4px 8px}
.share-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.share-options a,.share-options button{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--accent);font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
.share-options a:hover,.share-options button:hover{background:var(--accent-2);border-color:var(--accent)}
.share-dialog-status{min-height:1.4em;margin:12px 0 0;color:var(--accent);font-size:.9rem}
@media(max-width:420px){.share-dialog{padding:18px}.share-options{grid-template-columns:1fr}}


/* Mobile Results: make empty native date controls self-explanatory. */
.date-filter-label .filter-caption{display:none}
@media(max-width:760px){
  .date-filter-label .filter-caption{
    display:block;
    margin:0 0 5px 2px;
    color:var(--muted);
    font-size:.78rem;
    font-weight:700;
    line-height:1.35;
  }
  .answer-tools .date-filter-label input[type="date"]{
    display:block;
    min-height:48px;
    width:100%;
    padding:9px 10px;
    color:var(--ink);
    background:var(--card);
  }
}

/* Footer navigation: give every destination a quiet, rounded outline. */
.footer-links a,
.footer-links button,
.footer-links .footer-contact-copy,
.footer-links .footer-share.share-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  max-width:100%;
  padding:8px 12px!important;
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  background:var(--card)!important;
  color:var(--muted)!important;
  box-shadow:none!important;
  font:inherit;
  line-height:1.4;
  text-decoration:none!important;
  white-space:normal;
}
.footer-links a:hover,
.footer-links button:hover{
  border-color:#a8b8aa!important;
  background:var(--accent-2)!important;
  color:var(--accent)!important;
}
.footer-links .footer-contact-copy{
  flex:0 1 auto;
  width:auto;
  text-align:center;
  cursor:pointer;
}
@media(max-width:600px){
  .footer{gap:12px}
  .footer-brand{flex:0 0 100%}
  .footer-links a,
  .footer-links button,
  .footer-links .footer-contact-copy{
    min-height:40px;
    padding:8px 11px!important;
  }
  .footer-links .footer-contact-copy{
    flex:0 1 auto;
    width:auto;
    justify-content:center;
    text-align:center;
  }
}


/* Author answers stay discoverable without setting the tone of the results page. */
/* The experiment author's answer is a pinned first card, visually distinct but still part of the shared feed. */
#author-answer-collective{min-width:0}
#author-answer-collective.author-answer-exiting{overflow:hidden;transition:max-height .45s ease,opacity .35s ease,transform .45s ease;}
@media(prefers-reduced-motion:reduce){#author-answer-collective.author-answer-exiting{transition:none;}}
:is(#author-answer-collective,#author-answer-hypothetical) .author-answer-card{
  position:relative;
  overflow:hidden;
  padding:clamp(20px,3.5vw,30px);
  margin:0 0 8px;
  border:1px solid color-mix(in srgb,var(--accent) 32%,var(--line));
  border-radius:20px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--accent-2) 72%,var(--card)) 0%,var(--card) 58%);
  box-shadow:0 10px 30px #20221f0a;
}
:is(#author-answer-collective,#author-answer-hypothetical) .author-answer-card:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:var(--accent);
}
:is(#author-answer-collective,#author-answer-hypothetical) .answer-card-top{margin-bottom:14px}
:is(#author-answer-collective,#author-answer-hypothetical) .answer-code{font-size:.78rem;letter-spacing:.025em}
:is(#author-answer-collective,#author-answer-hypothetical) .author-answer-intro{
  max-width:68ch;
  margin:0 0 18px;
  font-size:1.02rem;
  line-height:1.7;
}
:is(#author-answer-collective,#author-answer-hypothetical) .author-answer-toggle{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
:is(#author-answer-collective,#author-answer-hypothetical) .author-answer-toggle:hover{filter:brightness(1.08)}
:is(#author-answer-collective,#author-answer-hypothetical) .author-answer-full{padding-top:18px;border-top:1px solid var(--line)}
:is(#author-answer-collective,#author-answer-hypothetical) .author-answer-title{margin:0 0 18px;font-size:clamp(1.15rem,2.4vw,1.45rem);line-height:1.35}
:is(#author-answer-collective,#author-answer-hypothetical) .author-answer-body{max-width:72ch}
:is(#author-answer-collective,#author-answer-hypothetical) .author-answer-body p{line-height:1.78;margin:0 0 1.1rem}
:is(#author-answer-collective,#author-answer-hypothetical) .author-answer-central{font-weight:700;font-size:1.05rem}
:is(#author-answer-collective,#author-answer-hypothetical) .author-answer-note{margin:18px 0 0;padding-top:12px;border-top:1px solid var(--line);font-size:.88rem;color:var(--muted)}
.author-answer-card{padding:14px 16px;margin:12px 0 18px}
.author-answer-card .answer-card-top{margin-bottom:8px}
.author-answer-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--accent);
  font:inherit;
  font-size:.84rem;
  font-weight:700;
  cursor:pointer;
}
.author-answer-toggle:hover{border-color:var(--accent);background:var(--accent-2)}
.author-answer-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.author-answer-full{margin-top:14px}
.author-answer-full[hidden]{display:none}
.author-answer-full .author-answer-title{margin:0 0 14px;font-size:1.12rem;line-height:1.4}
.author-answer-shortcut{display:inline-flex;align-items:center;min-height:28px;padding:2px 9px;border:1px solid var(--line);border-radius:999px;background:var(--card);text-decoration:none}
.author-answer-shortcut:hover{border-color:var(--accent);background:var(--accent-2);color:var(--accent)}


/* Participant answers: show a short preview first, with the full text optional. */
.answer-text-wrap{margin:18px 0}
.answer-text-wrap .answer-text{margin:0 0 10px}
.answer-text-wrap .answer-full-text[hidden],
.answer-text-wrap .answer-preview[hidden]{display:none}
.answer-expand-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--accent);
  font:inherit;
  font-size:.82rem;
  font-weight:750;
  cursor:pointer;
}
.answer-expand-toggle:hover{border-color:var(--accent);background:var(--accent-2)}
.answer-expand-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* The author's answer is absent from the page until its shortcut is selected. */
#author-answer-collective[hidden],
#author-answer-hypothetical[hidden]{display:none!important}
.author-answer-shortcut{font-size:.8em;font-weight:700}


/* Compact footer pills: keep each outline close to its link text. */
.footer-links a,
.footer-links button,
.footer-links .footer-contact-copy,
.footer-links .footer-share.share-button{
  min-height:32px;
  padding:4px 8px!important;
}
@media(max-width:600px){
  .footer-links a,
  .footer-links button,
  .footer-links .footer-contact-copy,
  .footer-links .footer-share.share-button{
    min-height:32px;
    padding:4px 7px!important;
  }
}

.brand-inline{display:inline;white-space:normal;vertical-align:baseline;font-weight:700;letter-spacing:.015em;unicode-bidi:isolate;line-height:inherit}.brand-inline img{display:inline-block;width:1em;height:1em;object-fit:contain;vertical-align:-.12em;margin-right:.2em;flex:0 0 auto;opacity:1}.brand-inline.notranslate{translate:no}

/* Results page desktop layout: give the answer feed and filters enough room. */
@media(min-width:1060px){.shell.results-page{max-width:1160px}.results-page .answer-tools{grid-template-columns:minmax(220px,2fr) minmax(150px,1.3fr) auto minmax(130px,1fr) minmax(150px,1.1fr) minmax(150px,1.1fr)}.results-page .answer-tools #reset-filters,.results-page .answer-tools #all-participants{justify-self:start}}
@media(min-width:761px) and (max-width:1059px){.shell.results-page{max-width:960px}.results-page .answer-tools{grid-template-columns:minmax(200px,2fr) minmax(145px,1.3fr) auto minmax(125px,1fr)}.results-page .answer-tools .date-filter-label{min-width:0}}

/* Results view tabs: shared visual language for all result views */
.results-view-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:28px 0 24px}
.results-view-tab{min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.55);color:var(--ink);font:inherit;font-size:.92rem;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.results-view-tab:hover{border-color:var(--accent)}
.results-view-tab.is-active{background:var(--accent);border-color:var(--accent);color:#fff}
.results-view-tab:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.results-question-picker{display:flex;align-items:center;gap:12px;margin:0 0 22px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.results-question-picker[hidden],.results-page [hidden]{display:none!important}
.results-question-picker label{font-weight:650}
.results-question-picker select{flex:1;min-width:0;max-width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);font:inherit}
.results-page .statistics-section,.results-page .public-answers-section{scroll-margin-top:18px}
@media(max-width:760px){.results-view-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.results-view-tab{font-size:.84rem;padding:9px 5px}.results-question-picker{align-items:stretch;flex-direction:column}}

.answer-pagination-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:18px 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.answer-pagination-controls label{display:flex;align-items:center;gap:10px;font-size:.9rem;font-weight:700}
.answer-pagination-controls select{min-width:78px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit}
.answers-page-summary{font-size:.86rem;color:var(--muted)}
@media(max-width:520px){.answer-pagination-controls{align-items:flex-start;flex-direction:column}}

.results-stream-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0 18px}
.results-stream-link{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);text-decoration:none;transition:border-color .15s,background .15s,box-shadow .15s}
.results-stream-link:hover{border-color:var(--accent);box-shadow:0 5px 18px #20221f08}
.results-stream-link.is-active{border-color:var(--accent);background:var(--accent-2)}
.results-stream-kicker{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;color:var(--accent);font-size:.78rem;font-weight:800}
.results-stream-link strong,.results-stream-link small{display:block}
.results-stream-link strong{font-size:.96rem;line-height:1.35}
.results-stream-link small{margin-top:4px;color:var(--muted);font-size:.8rem;line-height:1.4}
.results-stream-arrow{color:var(--accent);font-size:1.15rem}
@media(max-width:760px){.results-stream-links{grid-template-columns:1fr;gap:8px}.results-stream-link{padding:13px 14px}}


/* Results dashboard prototype */
.results-page{max-width:1160px;padding-top:34px}
.results-page>.eyebrow{margin-bottom:8px}
.results-page h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.7rem,5vw,4rem);margin-bottom:8px}
.results-page .lead{margin-top:0;color:#515b73;font-size:1.15rem}
.results-stream-links{margin:24px 0 18px}
.results-stream-link{min-height:78px}
.results-view-tabs{margin:18px 0 24px;gap:8px}
.results-view-tab{border-radius:9px;background:#f1f1ef;color:#15191d;border-color:#e7e7e4}
.results-view-tab.is-active{background:#075746;border-color:#075746;color:white}
.statistics-section{scroll-margin-top:20px}
.results-page .section-heading{align-items:center;margin-bottom:18px}
.results-page .section-heading h2,.results-page .result-section h3{font-family:Georgia,"Times New Roman",serif;color:#101a32}
.results-page .result-section{border:1px solid #e1e2df;border-radius:12px;background:rgba(255,255,255,.5);padding:16px 18px;margin:18px 0}
.results-page .result-section h3{font-size:1.25rem;margin:0 0 14px}
.results-page .stat-card{background:#eef1eb;color:#064d40;border:1px solid #dfe5de;margin:18px 0;padding:18px 22px}
.results-page .stat-card strong{font-family:Georgia,"Times New Roman",serif;font-size:2.8rem}
.results-page .stat-label{color:inherit;opacity:.82}
.results-page .bar-list{gap:10px}
.results-page .bar-row{grid-template-columns:minmax(190px,1fr) minmax(120px,1.65fr) minmax(76px,auto);align-items:center;gap:8px 14px}
.results-page .bar-track{grid-column:2;grid-row:1;height:14px}
.results-page .bar-value{grid-column:3;grid-row:1;text-align:right;font-weight:500}
.results-page .bar-label{grid-column:1;grid-row:1}
.results-page .answer-card{border-radius:12px;box-shadow:none}
.results-page .public-answers-section,.results-page .hypothetical-answers-section{scroll-margin-top:20px}
.results-page .hypothetical-data-notice{margin:18px 0;background:#f0f2ed}
.results-page .hypothetical-empty-state{background:rgba(255,255,255,.62)}
.results-page .answer-tools[hidden],.results-page .result-section[hidden]{display:none!important}
.results-page .hypothetical-ai-analysis-section[hidden],.results-page .ai-analysis-section[hidden]{display:none!important}
@media(max-width:760px){
 .results-page{padding-top:28px}
 .results-page .bar-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 10px}
 .results-page .bar-label{grid-column:1;grid-row:1}
 .results-page .bar-value{grid-column:2;grid-row:1}
 .results-page .bar-track{grid-column:1/-1;grid-row:2}
 .results-view-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
}


/* Match the approved Results reference: editorial header, compact stream switcher,
   six equal view tabs, question cards and readable answer cards. */
.results-page{position:relative;max-width:1200px;padding:28px 24px 64px}
.results-page>.eyebrow{font-size:.76rem;letter-spacing:.12em}
.results-page h1{font-size:clamp(2.8rem,5vw,3.7rem);line-height:1.02;letter-spacing:-.04em;color:#101a32;margin:0 0 8px;max-width:calc(100% - 290px)}
.results-page>.lead{max-width:calc(100% - 290px);font-size:1.12rem;line-height:1.5;margin:0;color:#515b73}
.results-page .results-stream-links{display:flex;gap:8px;margin:22px 0 14px}
.results-page .results-stream-link{min-height:0;flex:1;grid-template-columns:minmax(0,1fr) auto;padding:10px 13px;border-radius:9px;background:transparent;box-shadow:none}
.results-page .results-stream-kicker{display:none}
.results-page .results-stream-link strong{font-size:.88rem}
.results-page .results-stream-link small{font-size:.75rem;margin-top:2px}
.results-page .results-stream-arrow{font-size:.9rem}
.results-page .results-stream-link.is-active{background:#e9efea;border-color:#b7c9bf}
.results-page .results-view-tabs{margin:14px 0 24px;gap:8px}
.results-page .results-view-tab{min-height:40px;border-radius:8px;font-size:.9rem;background:#f2f2f0;border-color:#e7e8e5}
.results-page .results-view-tab.is-active{background:#075746;border-color:#075746}
.results-page .statistics-section>.section-heading{align-items:flex-end;margin:0 0 10px}
.results-page .statistics-section>.section-heading h2{font-size:1.7rem;margin:0;color:#101a32}
.results-page .statistics-section>.section-heading .eyebrow{display:none}
.results-page .stat-card{position:absolute;top:0;right:24px;width:246px;min-height:112px;display:grid;grid-template-columns:1fr;align-content:center;gap:0;padding:12px 18px;margin:0;border-radius:9px;background:#eef1eb;color:#064d40;border:1px solid #dfe5de}
.results-page .stat-card strong{font-size:2.7rem;line-height:1.05}
.results-page .stat-card .stat-label{font-size:.82rem}
.results-page .stat-card #updated-at{margin-top:4px}
.results-page .result-section{padding:0;margin:16px 0;border-radius:9px;overflow:hidden}
.results-page .result-section h3{margin:0;padding:11px 16px;border-bottom:1px solid #e5e6e2;font-size:1.15rem;line-height:1.4}
.results-page .result-section .bar-list{padding:12px 16px 16px;gap:8px}
.results-page .bar-row{grid-template-columns:minmax(230px,1fr) minmax(140px,1.65fr) minmax(90px,auto);gap:7px 14px}
.results-page .bar-track{height:14px;background:#e7e9e5}
.results-page .bar-fill{background:linear-gradient(90deg,#367b68,#17614f)}
.results-page .method-note{margin-top:12px}
.results-page .public-answers-section{border-top:1px solid var(--line);padding-top:24px;margin-top:22px}
.results-page .public-answers-section>.section-heading h2{font-size:1.65rem;margin:0 0 3px}
.results-page .public-answers-section>.section-heading .eyebrow{display:none}
.results-page .section-intro{margin:0;color:#626b7d;font-size:.95rem}
.results-page .answer-tools{margin:16px 0 12px}
.results-page .answer-card{border:1px solid #e1e2df;background:rgba(255,255,255,.58);padding:17px;border-radius:10px}
.results-page .answer-card h3,.results-page .answer-card h4{font-family:Georgia,"Times New Roman",serif;color:#101a32}
.results-page .answer-pagination-controls{background:transparent;border:0;padding:8px 0}
@media(max-width:760px){
 .results-page{padding:25px 16px 48px}
 .results-page h1,.results-page>.lead{max-width:100%}
 .results-page .stat-card{position:static;width:100%;min-height:0;margin:16px 0;grid-template-columns:1fr}
 .results-page .results-stream-links{display:grid;grid-template-columns:1fr}
 .results-page .results-stream-link{flex:initial}
 .results-page .bar-row{grid-template-columns:minmax(0,1fr) auto}
 .results-page .bar-label{grid-column:1;grid-row:1}
 .results-page .bar-value{grid-column:2;grid-row:1}
 .results-page .bar-track{grid-column:1/-1;grid-row:2}
}


/* Mobile refinement for the approved Results dashboard.
   Keep the desktop composition intact while preventing filters from becoming
   a long stack of full-width controls on narrow screens. */
@media(max-width:760px){
 .results-page .results-stream-links{display:flex;gap:6px;margin:16px 0 12px}
 .results-page .results-stream-link{min-width:0;padding:10px 9px;gap:5px}
 .results-page .results-stream-link strong{font-size:.78rem;line-height:1.25}
 .results-page .results-stream-link small{display:none}
 .results-page .results-stream-arrow{display:none}
 .results-page .results-view-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0 20px}
 .results-page .results-view-tab{min-height:38px;padding:8px 4px;font-size:.82rem;line-height:1.2}
 .results-page .section-heading{gap:12px}
 .results-page .statistics-section>.section-heading h2,
 .results-page .public-answers-section>.section-heading h2{font-size:1.35rem;line-height:1.2}
 .results-page .result-section h3{font-size:1rem;padding:11px 12px}
 .results-page .result-section .bar-list{padding:11px 12px 13px}
 .results-page .bar-label{font-size:.82rem;line-height:1.3}
 .results-page .bar-value{font-size:.8rem;white-space:nowrap}
 .results-page .bar-track{height:11px}
 .results-page .answer-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 .results-page .answer-tools .search-field{grid-column:1/-1}
 .results-page .answer-tools label{min-width:0}
 .results-page .answer-tools input,
 .results-page .answer-tools select{width:100%;min-width:0;max-width:100%;font-size:.85rem}
 .results-page .answer-tools .answer-number-jump{grid-column:1}
 .results-page .answer-tools #answer-number-go{grid-column:2;align-self:end}
 .results-page .answer-tools #reset-filters,
 .results-page .answer-tools #all-participants{grid-column:1/-1;width:100%}
 .results-page .answer-pagination-controls{display:flex;align-items:center;gap:8px;flex-direction:row;flex-wrap:wrap}
 .results-page .answer-pagination-controls label{font-size:.82rem}
 .results-page .answer-pagination-controls select{width:auto}
 .results-page .answers-page-summary{font-size:.78rem}
 .results-page .answer-card{padding:14px}
 .results-page .ai-analysis-card{padding:16px}
 .results-page .ai-analysis-form textarea{min-height:100px}
}
@media(max-width:420px){
 .results-page{padding-left:12px;padding-right:12px}
 .results-page .results-stream-link{padding:9px 6px}
 .results-page .results-stream-link strong{font-size:.72rem}
 .results-page .results-view-tab{font-size:.76rem}
 .results-page .bar-label{font-size:.78rem}
 .results-page .bar-value{font-size:.75rem}
}


/* Mobile Results refinement: compact controls, clearer hierarchy, less vertical waste. */
.results-page .results-status,
.results-page #results-status{margin:12px 0;padding:12px 16px;font-size:.9rem}
.results-page .results-stream-links{margin:14px 0 10px}
.results-page .results-stream-link{min-height:44px}
.results-page .results-view-tabs{margin:10px 0 18px}
.results-page .results-question-picker{margin:0 0 14px;padding:10px 12px}
.results-page .statistics-section>.section-heading{margin-bottom:8px}
.results-page .stat-card{box-shadow:none}
.results-page .public-answers-section{padding-top:18px;margin-top:18px}
.results-page .public-answers-section>.section-heading{align-items:flex-start;gap:12px}
.results-page .public-answers-section>.section-heading>div{min-width:0}
.results-page .public-answers-section .answer-total{flex:0 0 auto}
.results-page .answer-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:10px}
.results-page .answer-tools>label{display:flex;flex-direction:column;gap:5px;min-width:0}
.results-page .answer-tools input,.results-page .answer-tools select{width:100%;min-width:0;max-width:100%}
.results-page .answer-tools .search-field{grid-column:1/-1}
.results-page .answer-tools .answer-number-jump{grid-column:span 2}
.results-page .answer-tools #answer-number-go{min-height:42px}
.results-page .answer-tools #reset-filters{grid-column:span 2}
.results-page .answer-tools #all-participants{grid-column:span 1}
.results-page .answer-tools label>span:not(.sr-only){font-size:.78rem;color:var(--muted)}
.results-page .answer-pagination-controls{margin:10px 0;padding:8px 0}
.results-page .answer-list{gap:10px}
.results-page .answer-card{overflow-wrap:anywhere}
.results-page .ai-analysis-section{margin-top:24px}
.results-page .ai-analysis-section .section-heading{margin-bottom:10px}
.results-page .ai-analysis-section .section-heading h2{font-size:1.4rem;line-height:1.25}
.results-page .ai-analysis-card{border-radius:12px}
@media(max-width:760px){
  .results-page{padding:20px 14px 36px}
  .results-page>.eyebrow{margin-bottom:7px;font-size:.68rem}
  .results-page h1{font-size:clamp(2.15rem,9vw,2.75rem);line-height:1.04;letter-spacing:-.045em;margin-bottom:8px}
  .results-page>.lead{font-size:.94rem;line-height:1.45}
  .results-page .results-stream-links{gap:6px;margin:12px 0 8px}
  .results-page .results-stream-link{padding:9px 8px;justify-content:center;text-align:center;border-radius:8px}
  .results-page .results-stream-link strong{font-size:.76rem;line-height:1.25}
  .results-page .results-view-tabs{gap:5px;margin:9px 0 14px}
  .results-page .results-view-tab{min-height:35px;padding:7px 3px;font-size:.76rem}
  .results-page .stat-card{margin:10px 0 14px;padding:12px 15px;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center}
  .results-page .stat-card .stat-label:first-child{grid-column:1/-1}
  .results-page .stat-card strong{grid-column:1;grid-row:2;font-size:2.35rem}
  .results-page .stat-card #updated-at{grid-column:2;grid-row:2;align-self:center;margin:0}
  .results-page .statistics-section>.section-heading h2,
  .results-page .public-answers-section>.section-heading h2{font-size:1.2rem;line-height:1.22}
  .results-page .result-section{margin:10px 0;border-radius:9px}
  .results-page .result-section h3{padding:9px 10px;font-size:.92rem}
  .results-page .result-section .bar-list{padding:9px 10px 11px;gap:7px}
  .results-page .bar-label{font-size:.78rem;line-height:1.25}
  .results-page .bar-value{font-size:.76rem}
  .results-page .bar-track{height:9px}
  .results-page .method-note{font-size:.78rem;line-height:1.5}
  .results-page .public-answers-section{padding-top:15px;margin-top:16px}
  .results-page .public-answers-section>.section-heading{display:block}
  .results-page .public-answers-section .answer-total{display:inline-block;margin-top:7px}
  .results-page .answer-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 8px}
  .results-page .answer-tools .search-field{grid-column:1/-1}
  .results-page .answer-tools .answer-number-jump{grid-column:1}
  .results-page .answer-tools #answer-number-go{grid-column:2;align-self:end}
  .results-page .answer-tools .date-filter-label{grid-column:span 1}
  .results-page .answer-tools #reset-filters{grid-column:1}
  .results-page .answer-tools #all-participants{grid-column:2}
  .results-page .answer-tools>label{gap:4px}
  .results-page .answer-tools input,.results-page .answer-tools select{font-size:.82rem;padding:9px 8px}
  .results-page .answer-tools .subtle-button{width:100%;min-width:0;padding:9px 7px;font-size:.8rem}
  .results-page .answer-pagination-controls{justify-content:space-between;gap:8px}
  .results-page .answer-pagination-controls label{font-size:.78rem}
  .results-page .answer-card{padding:12px}
  .results-page .ai-analysis-section{margin-top:20px}
  .results-page .ai-analysis-section .section-heading h2{font-size:1.2rem}
}
@media(max-width:360px){
  .results-page{padding-left:10px;padding-right:10px}
  .results-page .results-stream-link strong{font-size:.7rem}
  .results-page .results-view-tab{font-size:.7rem}
  .results-page .answer-tools input,.results-page .answer-tools select{font-size:.76rem}
}


/* Results mobile pass 2: match the reference hierarchy and reduce filter height. */
@media(max-width:760px){
  .results-page .results-page > .eyebrow{margin-bottom:5px}
  .results-page .results-stream-links{margin:10px 0 7px}
  .results-page .results-stream-link{min-height:38px;padding:7px 6px}
  .results-page .results-view-tabs{margin:7px 0 12px}
  .results-page .statistics-section>.section-heading{display:none}
  .results-page #results-status{margin:8px 0 10px;padding:9px 11px;font-size:.78rem;line-height:1.4;border-radius:9px}
  .results-page #statistics-section #results-content>.stat-card{margin:0 0 12px;padding:10px 13px;min-height:0;border-radius:9px}
  .results-page #statistics-section #results-content>.stat-card .stat-label:first-child{font-size:.76rem}
  .results-page #statistics-section #results-content>.stat-card strong{font-size:2.15rem}
  .results-page #statistics-section #results-content>.stat-card #updated-at{font-size:.72rem;line-height:1.3}
  .results-page .result-section{margin:9px 0}
  .results-page .result-section h3{font-size:.9rem;padding:9px 10px}
  .results-page .result-section .bar-list{padding:8px 10px 10px}
  .results-page .method-note{margin:9px 0 12px}
  .results-page .public-answers-section{margin-top:14px;padding-top:13px}
  .results-page .public-answers-section>.section-heading h2{font-size:1.15rem}
  .results-page .public-answers-section .section-intro{font-size:.82rem;line-height:1.4}
  .results-page .answer-tools{gap:6px;margin:10px 0 7px}
  .results-page .answer-tools .filter-caption,
  .results-page .answer-tools label>span:not(.sr-only){font-size:.72rem}
  .results-page .answer-tools input,
  .results-page .answer-tools select{min-height:36px;padding:7px 8px;border-radius:8px}
  .results-page .answer-tools .subtle-button{min-height:36px;padding:7px 6px}
  .results-page .answer-pagination-controls{margin:6px 0;padding:5px 0}
  .results-page .answers-page-summary{width:100%;font-size:.72rem}
  .results-page .answer-card{padding:11px}
}


/* Results dashboard: stronger reference-like hierarchy on narrow screens. */
@media(max-width:760px){
  .results-page{padding-top:17px}
  .results-page>.eyebrow{font-size:.65rem;letter-spacing:.1em;margin-bottom:4px}
  .results-page h1{font-size:clamp(2rem,8.5vw,2.55rem);line-height:1.02;margin-bottom:6px}
  .results-page>.lead{font-size:.88rem;line-height:1.38;max-width:95%}
  .results-page .results-stream-links{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:10px 0 6px}
  .results-page .results-stream-link{display:flex;align-items:center;justify-content:center;min-height:40px;padding:6px 5px;text-align:center}
  .results-page .results-stream-link strong{font-size:.7rem;line-height:1.2}
  .results-page .results-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:6px 0 10px}
  .results-page .results-view-tab{min-height:32px;padding:6px 2px;font-size:.72rem;border-radius:7px}
  .results-page #results-status{margin:6px 0 8px;padding:7px 10px;font-size:.72rem}
  .results-page .statistics-section>.section-heading{display:none}
  .results-page #statistics-section #results-content{display:block}
  .results-page #statistics-section #results-content>.stat-card{margin:0 0 9px;padding:9px 12px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center}
  .results-page #statistics-section #results-content>.stat-card .stat-label:first-child{grid-column:1/-1;font-size:.72rem}
  .results-page #statistics-section #results-content>.stat-card strong{grid-column:1;grid-row:2;font-size:2rem;line-height:1}
  .results-page #statistics-section #results-content>.stat-card #updated-at{grid-column:2;grid-row:2;font-size:.7rem;line-height:1.25}
  .results-page .result-section{margin:7px 0;border-radius:8px}
  .results-page .result-section h3{padding:8px 9px;font-size:.84rem;line-height:1.25}
  .results-page .result-section .bar-list{padding:7px 9px 9px;gap:6px}
  .results-page .bar-label{font-size:.74rem}
  .results-page .bar-value{font-size:.72rem}
  .results-page .bar-track{height:8px}
  .results-page .public-answers-section{margin-top:12px;padding-top:12px}
  .results-page .public-answers-section>.section-heading h2{font-size:1.08rem;line-height:1.2}
  .results-page .public-answers-section .section-intro{font-size:.78rem}
  .results-page .answer-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:8px 0 5px}
  .results-page .answer-tools .search-field{grid-column:1/-1}
  .results-page .answer-tools .answer-number-jump{grid-column:1}
  .results-page .answer-tools #answer-number-go{grid-column:2}
  .results-page .answer-tools .date-filter-label{grid-column:span 1}
  .results-page .answer-tools #reset-filters{grid-column:1}
  .results-page .answer-tools #all-participants{grid-column:2}
  .results-page .answer-tools input,.results-page .answer-tools select{min-height:33px;padding:6px 7px;font-size:.76rem}
  .results-page .answer-tools .subtle-button{min-height:33px;padding:6px 5px;font-size:.74rem}
  .results-page .answer-tools label>span:not(.sr-only){font-size:.68rem}
  .results-page .answer-pagination-controls{margin:4px 0;padding:4px 0;gap:5px}
  .results-page .answer-pagination-controls label{font-size:.72rem}
  .results-page .answer-pagination-controls select{padding:5px 7px;font-size:.75rem}
  .results-page .answers-page-summary{font-size:.68rem}
  .results-page .answer-card{padding:10px}
}


/* Reference layout pass: desktop Results dashboard and answer-card grid. */
@media(min-width:761px){
  .results-page{max-width:1240px;padding:34px 40px 64px}
  .results-page>.eyebrow{margin-bottom:8px}
  .results-page h1{font-size:clamp(3rem,4.3vw,4rem);max-width:calc(100% - 300px);line-height:1.03}
  .results-page>.lead{max-width:calc(100% - 300px);font-size:1.18rem;line-height:1.5}
  .results-page .results-stream-links{margin:18px 0 10px;gap:8px}
  .results-page .results-stream-link{min-height:38px;padding:8px 12px}
  .results-page .results-stream-link strong{font-size:.84rem}
  .results-page .results-stream-link small{display:none}
  .results-page .results-view-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:10px 0 22px}
  .results-page .results-view-tab{min-height:40px;padding:9px 10px;font-size:.9rem}
  .results-page .statistics-section>.section-heading{margin-bottom:12px}
  .results-page .statistics-section>.section-heading h2{font-size:1.85rem}
  .results-page .result-section{margin:18px 0;padding:0}
  .results-page .result-section h3{font-size:1.18rem;padding:13px 18px}
  .results-page .result-section .bar-list{padding:12px 18px 16px;gap:9px}
  .results-page .bar-row{grid-template-columns:minmax(240px,1fr) minmax(180px,1.65fr) minmax(100px,auto);gap:8px 16px}
  .results-page .bar-label{font-size:.92rem}
  .results-page .bar-value{font-size:.9rem}
  .results-page .bar-track{height:14px}
  .results-page .public-answers-section{margin-top:22px;padding-top:22px}
  .results-page .public-answers-section>.section-heading{display:flex;align-items:flex-end;justify-content:space-between}
  .results-page .public-answers-section>.section-heading h2{font-size:1.8rem}
  .results-page .public-answers-section .section-intro{font-size:.96rem}
  .results-page .answer-tools{grid-template-columns:minmax(220px,2fr) minmax(140px,1.2fr) auto minmax(110px,1fr) minmax(120px,1fr) minmax(120px,1fr);gap:9px;align-items:end}
  .results-page .answer-tools .search-field{grid-column:auto}
  .results-page .answer-tools .answer-number-jump{grid-column:auto}
  .results-page .answer-tools #answer-number-go{grid-column:auto}
  .results-page .answer-tools #reset-filters{grid-column:auto}
  .results-page .answer-tools #all-participants{grid-column:auto}
  .results-page .answer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px}
  .results-page .answer-card{display:flex;flex-direction:column;min-width:0;padding:18px;border-radius:10px}
  .results-page .answer-text-wrap{flex:1}
  .results-page .answer-text{font-size:.96rem;line-height:1.5}
  .results-page .answer-card-top{gap:12px;align-items:flex-start}
  .results-page .answer-code{overflow-wrap:anywhere}
  .results-page .answer-meta,.results-page .answer-actions{flex-wrap:wrap}
  .results-page .answer-pagination-controls{margin:12px 0;padding:8px 0}
  .results-page .ai-analysis-section{margin-top:28px}
}
@media(max-width:760px){
  .results-page .results-stream-links{grid-template-columns:repeat(2,minmax(0,1fr))}
  .results-page .results-stream-link{min-width:0}
  .results-page .results-stream-link strong{overflow-wrap:anywhere}
  .results-page .answer-list{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
}


/* Primary experiment-stream switcher: visually distinct from result-view tabs. */
.results-page .results-stream-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:20px 0 12px;
}
.results-page .results-stream-link{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:76px;
  padding:15px 17px;
  border:1px solid #cbd8d0;
  border-radius:13px;
  background:#f0f3ef;
  color:#173d32;
  text-decoration:none;
  box-shadow:0 1px 2px #172e2508;
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.results-page .results-stream-link>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.results-page .results-stream-link .results-stream-kicker{
  display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;
  border-radius:9px;background:#dce8e0;color:#175c49;font-size:.78rem;font-weight:800;
}
.results-page .results-stream-link strong{font-size:1rem;line-height:1.3;font-weight:750}
.results-page .results-stream-link small{display:block;font-size:.82rem;line-height:1.35;color:#586b62}
.results-page .results-stream-link .results-stream-arrow{font-size:1rem;font-weight:700;opacity:.8}
.results-page .results-stream-link.is-active{
  background:#075744;border-color:#075744;color:#fff;
  box-shadow:0 4px 12px #07574424;
}
.results-page .results-stream-link.is-active .results-stream-kicker{background:#ffffff20;color:#fff}
.results-page .results-stream-link.is-active small{color:#e0eee8}
.results-page .results-stream-link:not(.is-active):hover{background:#e5eee8;border-color:#8eafa0;box-shadow:0 3px 10px #173d3210}
.results-page .results-stream-link:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(min-width:761px){
  .results-page .results-stream-link{min-height:68px}
  .results-page .results-stream-link small{display:block}
}
@media(max-width:760px){
  .results-page .results-stream-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0 9px}
  .results-page .results-stream-link{min-height:64px;gap:7px;padding:9px 8px;border-radius:10px;align-items:flex-start}
  .results-page .results-stream-link .results-stream-kicker{flex-basis:25px;width:25px;height:25px;font-size:.65rem;border-radius:7px}
  .results-page .results-stream-link strong{font-size:.78rem;line-height:1.25}
  .results-page .results-stream-link small{font-size:.68rem;line-height:1.3}
  .results-page .results-stream-link .results-stream-arrow{display:none}
}
@media(max-width:390px){
  .results-page .results-stream-links{grid-template-columns:1fr}
  .results-page .results-stream-link{min-height:58px;align-items:center}
  .results-page .results-stream-link>span:nth-child(2){gap:2px}
}


/* Results header count card: align the live response count with the page title. */
@media(min-width:761px){
  .results-page{position:relative}
  .results-page .results-stat-card{
    position:absolute;top:32px;right:40px;width:250px;min-height:116px;
    margin:0;padding:17px 18px;display:grid;grid-template-columns:1fr auto;
    grid-template-rows:auto auto;align-content:center;align-items:center;gap:4px 12px;
    border:1px solid #d7e1d9;border-radius:12px;background:#eef2ed;
  }
  .results-page .results-stat-card .stat-label:first-child{grid-column:1/-1;font-size:.82rem;color:#5e7065}
  .results-page .results-stat-card strong{grid-column:1;grid-row:2;font-size:2.8rem;line-height:1;color:#075744}
  .results-page .results-stat-card #updated-at{grid-column:1/-1;font-size:.78rem;line-height:1.35;color:#5e7065}
  .results-page>.eyebrow,.results-page>h1,.results-page>.lead{max-width:calc(100% - 290px)}
  .results-page .statistics-section{margin-top:24px}
  .results-page .statistics-section>.section-heading{display:none}
  .results-page #results-content>.stat-card{display:none}
}
@media(max-width:760px){
  .results-page .results-stat-card{
    position:static;width:100%;min-height:0;margin:10px 0 12px;padding:10px 13px;
    display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;
    align-items:center;gap:3px 10px;border:1px solid #d7e1d9;border-radius:10px;background:#eef2ed;
  }
  .results-page .results-stat-card .stat-label:first-child{grid-column:1/-1;font-size:.72rem;color:#5e7065}
  .results-page .results-stat-card strong{grid-column:1;grid-row:2;font-size:2.1rem;line-height:1;color:#075744}
  .results-page .results-stat-card #updated-at{grid-column:2;grid-row:2;font-size:.7rem;line-height:1.3;color:#5e7065}
  .results-page .statistics-section>.section-heading{display:none}
  .results-page #results-content>.stat-card{display:none}
}


/* Keep the personal-preferences stream structurally consistent with collective Results. */
.results-page .hypothetical-answers-section{
  margin-top:24px;padding-top:0;border-top:1px solid var(--line);
}
.results-page .hypothetical-answers-section>.section-heading{
  display:flex;align-items:flex-end;justify-content:space-between;gap:20px;
  margin:0 0 16px;padding-top:20px;
}
.results-page .hypothetical-answers-section>.section-heading h2{
  font-size:clamp(1.55rem,2.5vw,2rem);line-height:1.16;letter-spacing:-.035em;margin:0 0 8px;
}
.results-page .hypothetical-answers-section .section-intro{max-width:650px}
.results-page .hypothetical-data-notice{
  margin:14px 0 28px;padding:16px 18px;border:1px solid #dbe2d8;border-radius:12px;
  background:#eef2eb;color:#58635a;line-height:1.55;
}
.results-page .hypothetical-answer-tools{margin:16px 0}
.results-page .hypothetical-empty-state{
  padding:22px 20px;border:1px solid var(--line);border-radius:12px;background:var(--card);
}
.results-page .hypothetical-empty-state h3{margin:0 0 8px;font-size:1.15rem}
.results-page .hypothetical-empty-state p{max-width:850px}
.results-page .hypothetical-ai-analysis-section{margin-top:32px;padding-top:22px;border-top:1px solid var(--line)}
.results-page .hypothetical-ai-analysis-section>.section-heading{margin-bottom:14px}
@media(min-width:761px){
  .results-page .hypothetical-answers-section>.section-heading h2{max-width:780px}
  .results-page .hypothetical-data-notice{font-size:.95rem}
  .results-page .hypothetical-ai-analysis-section .ai-analysis-card{max-width:none}
}
@media(max-width:760px){
  .results-page .hypothetical-answers-section{margin-top:16px}
  .results-page .hypothetical-answers-section>.section-heading{display:flex;align-items:flex-start;gap:8px;margin-bottom:10px;padding-top:14px}
  .results-page .hypothetical-answers-section>.section-heading h2{font-size:1.2rem;line-height:1.22;margin-bottom:6px}
  .results-page .hypothetical-answers-section .section-intro{font-size:.8rem;line-height:1.4}
  .results-page .hypothetical-answers-section .answer-total{white-space:normal;max-width:105px;text-align:center;font-size:.68rem;padding:6px 8px}
  .results-page .hypothetical-data-notice{margin:10px 0 18px;padding:11px 12px;font-size:.8rem;line-height:1.45}
  .results-page .hypothetical-empty-state{padding:14px 12px}
  .results-page .hypothetical-empty-state h3{font-size:1rem}
  .results-page .hypothetical-empty-state p{font-size:.82rem;line-height:1.45}
  .results-page .hypothetical-ai-analysis-section{margin-top:22px;padding-top:16px}
}


/* Final hierarchy pass for the personal-preferences stream. */
.results-page .hypothetical-answers-section{
  margin-top:12px;
  padding-top:0;
  border-top:1px solid var(--line);
}
.results-page .hypothetical-answers-section>.section-heading{
  padding-top:14px;
  margin-bottom:10px;
}
.results-page .hypothetical-answers-section>.section-heading .eyebrow,
.results-page .hypothetical-answers-section>.section-heading h2,
.results-page .hypothetical-answers-section>.section-heading .section-intro{
  display:none;
}
.results-page .hypothetical-answers-section>.section-heading{
  justify-content:flex-end;
  min-height:28px;
}
.results-page .hypothetical-data-notice{
  margin:8px 0 18px;
}
.results-page .hypothetical-empty-state{
  margin:0;
}
.results-page .hypothetical-ai-analysis-section{
  margin-top:22px;
  padding-top:18px;
}
.results-page .hypothetical-ai-analysis-section .ai-analysis-card{
  margin-top:10px;
}
@media(min-width:761px){
  .results-page .hypothetical-answers-section{margin-top:10px}
  .results-page .hypothetical-answers-section>.section-heading{padding-top:12px}
  .results-page .hypothetical-data-notice{margin-bottom:14px}
  .results-page .hypothetical-ai-analysis-section{margin-top:20px;padding-top:18px}
}
@media(max-width:760px){
  .results-page .hypothetical-answers-section{margin-top:8px}
  .results-page .hypothetical-answers-section>.section-heading{padding-top:10px;margin-bottom:8px}
  .results-page .hypothetical-data-notice{margin:6px 0 12px}
  .results-page .hypothetical-ai-analysis-section{margin-top:16px;padding-top:14px}
}


/* Remove the orphaned status row above the personal-stream notice. */
.results-page .hypothetical-answers-section>.section-heading{display:none}
.results-page .hypothetical-answers-section{border-top:0;margin-top:4px}
.results-page .hypothetical-data-notice{margin-top:8px}
@media(max-width:760px){
  .results-page .hypothetical-answers-section{margin-top:2px}
  .results-page .hypothetical-data-notice{margin-top:6px}
}


/* Explicitly suppress the personal-stream status badge; it duplicates the empty-state notice. */
.results-page .hypothetical-answers-section > .section-heading,
.results-page .hypothetical-answers-section > .section-heading .answer-total{
  display:none !important;
}
.results-page .hypothetical-answers-section{
  border-top:0 !important;
  margin-top:0 !important;
  padding-top:0 !important;
}


/* Restore full visual parity for the personal-preferences stream. */
.results-page .hypothetical-answers-section>.section-heading{
  display:flex !important;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  min-height:0;
  margin:0 0 20px;
  padding-top:0;
}
.results-page .hypothetical-answers-section>.section-heading .eyebrow,
.results-page .hypothetical-answers-section>.section-heading h2,
.results-page .hypothetical-answers-section>.section-heading .section-intro{
  display:block;
}
.results-page .hypothetical-answers-section>.section-heading h2{
  font-size:clamp(1.45rem,3vw,2rem);
  line-height:1.15;
  letter-spacing:-.035em;
  margin:0 0 8px;
}
.results-page .hypothetical-answers-section>.section-heading .section-intro{
  color:var(--muted);
  margin:0;
  max-width:620px;
  font-size:inherit;
  line-height:inherit;
}
.results-page .hypothetical-answer-tools{
  display:grid;
  grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) minmax(145px,1fr) minmax(170px,1.1fr);
  align-items:end;
  gap:12px;
  margin:24px 0 16px;
}
@media(max-width:760px){
  .results-page .hypothetical-answers-section>.section-heading{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:20px}
  .results-page .hypothetical-answers-section>.section-heading h2{font-size:clamp(1.45rem,3vw,2rem);line-height:1.15}
  .results-page .hypothetical-answer-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
  .results-page .hypothetical-answer-tools .search-field{grid-column:1/-1}
}
@media(max-width:420px){
  .results-page .hypothetical-answer-tools{grid-template-columns:1fr}
  .results-page .hypothetical-answer-tools .search-field{grid-column:auto}
}


/* Keep written answers as the primary content; secondary questionnaire choices open on demand. */
.answer-text-wrap .answer-preview,
.preview-sample-answer .sample-answer-preview {
  max-width: 72ch;
  font-size: 1.04rem;
  line-height: 1.8;
  white-space: pre-wrap;
}
.preview-sample-answer .sample-answer-preview { margin: 14px 0 8px; }
.preview-sample-answer .sample-answer-expand {
  min-height: 30px;
  padding: 4px 9px;
  font-size: .76rem;
}
.preview-sample-answer .author-questionnaire-choices[hidden] { display: none !important; }


/* Match demo questionnaire details to the author's numbered, readable answer panel. */
.preview-sample-answer .author-questionnaire-choices {
  padding: 16px 17px;
}
.preview-sample-answer .author-questionnaire-choices-title {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}
.preview-sample-answer .author-questionnaire-section {
  margin-top: 12px;
}
.preview-sample-answer .author-questionnaire-question {
  display: block;
  margin-bottom: 3px;
  line-height: 1.55;
}
.preview-sample-answer .author-questionnaire-answer-text {
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
}
.preview-sample-answer .author-questionnaire-answer-list {
  display: grid;
  gap: 7px;
  margin: 7px 0 0;
  padding-left: 1.4rem;
  font-size: .92rem;
  line-height: 1.6;
}
.preview-sample-answer .author-questionnaire-answer-list li {
  padding-left: 2px;
}


/* Personal author answer: keep the opening paragraph visible before expanding the rest. */
.author-answer-preview {
  margin: 14px 0 10px;
  font-size: 1.02rem;
  line-height: 1.8;
  white-space: pre-wrap;
}
.preview-sample-answer .author-questionnaire-choices {
  margin-top: 14px;
}


/* Keep previous/next history navigation consistent in both answer streams. */
.answer-history-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 24px}
.answer-history-controls button{min-width:132px}
.answer-history-controls button[hidden]{display:none!important}
@media(max-width:520px){.answer-history-controls{gap:8px}.answer-history-controls button{flex:1;min-width:0}}

/* THE HUMAN EXPERIMENT: shared layout foundations.
   Keep these tokens as the single reference for the next incremental UX passes. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --page-gutter: 24px;
  --results-content-width: 960px;
  --results-page-width: 1200px;
  --answer-card-padding: 24px;
  --answer-card-gap: 16px;
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 16px;
    --answer-card-padding: 16px;
    --answer-card-gap: 12px;
  }
}

/* Results streams: one readable column for long-form answers on every device. */
.shell.results-page {
  width: 100%;
  max-width: var(--results-page-width);
  padding-inline: var(--page-gutter);
}

.results-page .answer-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--answer-card-gap);
  width: 100%;
  max-width: var(--results-content-width);
  margin-inline: auto;
  align-items: start;
}

.results-page .answer-list[data-answer-layout="cards"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.answer-display-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0}
.answer-layout-toggle {display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--card)}
.answer-layout-toggle button {width:44px;height:40px;border:0;background:transparent;color:var(--ink);font-size:1.2rem;cursor:pointer}
.answer-layout-toggle button[aria-pressed="true"] {background:var(--accent-2);color:var(--accent)}
.answer-layout-toggle button:focus-visible,.back-to-top:focus-visible {outline:3px solid var(--accent);outline-offset:2px}
.answer-history-top {margin:0;justify-content:flex-end}
.answer-history-top[hidden] {display:none}
.back-to-top {position:fixed;right:20px;bottom:20px;z-index:50;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--card);color:var(--accent);font-size:1.4rem;box-shadow:0 3px 14px #0002;cursor:pointer}
.back-to-top[hidden] {display:none}
@media(max-width:760px) {.results-page .answer-list[data-answer-layout="cards"] {grid-template-columns:minmax(0,1fr)} .back-to-top {right:14px;bottom:14px}}

.results-page .answer-list > .answer-card,
.results-page .answer-list > .author-answer-card,
.results-page .answer-list > article {
  min-width: 0;
  width: 100%;
}

.results-page .answer-card {
  padding: clamp(var(--answer-card-padding), 3vw, 28px);
}

.results-page .answer-pagination-controls {
  gap: var(--space-3);
  margin-block: var(--space-4) var(--space-3);
}

@media (max-width: 760px) {
  .shell.results-page {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .results-page .answer-card {
    padding: var(--answer-card-padding);
  }

  .results-page .answer-pagination-controls {
    align-items: flex-start;
  }
}

/* Results page hierarchy: title first, stream choice second, tools and content after. */
.results-page > .eyebrow {
  margin: 0 0 var(--space-2);
}

.results-page > h1 {
  max-width: 780px;
  margin: 0 0 var(--space-3);
  color: var(--ink);
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.results-page > .lead {
  max-width: 700px;
  margin: 0 0 var(--space-5);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.results-page .results-stream-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}

.results-page .results-stream-link {
  min-width: 0;
  min-height: 76px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.results-page .results-stream-link strong {
  font-size: .95rem;
  line-height: 1.35;
}

.results-page .results-stream-link small {
  line-height: 1.45;
}

.results-page .results-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.results-page .results-view-tab {
  flex: 0 0 auto;
}

.results-page :is(#results-status, #hypothetical-stats) {
  font-size: .875rem;
  line-height: 1.5;
}

.results-page #results-status {
  margin-block: var(--space-3) var(--space-4);
}

.results-page .results-breakdown {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
}

.results-page .statistics-section {
  margin-top: var(--space-5);
}

.results-page .statistics-section > .section-heading,
.results-page .public-answers-section > .section-heading {
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.results-page .statistics-section > .section-heading h2,
.results-page .public-answers-section > .section-heading h2 {
  color: var(--ink);
  line-height: 1.2;
}

@media (min-width: 761px) {
  .results-page > .eyebrow,
  .results-page > h1,
  .results-page > .lead {
    max-width: calc(100% - 290px);
  }

  .results-page .results-stat-card {
    top: 32px;
    right: var(--page-gutter);
    width: 250px;
  }
}

@media (max-width: 760px) {
  .results-page > h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 2.65rem);
    line-height: 1.08;
    margin-bottom: var(--space-2);
  }

  .results-page > .lead {
    max-width: 100%;
    font-size: .95rem;
    line-height: 1.55;
    margin-bottom: var(--space-4);
  }

  .results-page .results-stream-links {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
    margin-bottom: var(--space-4);
  }

  .results-page .results-stream-link {
    min-height: 0;
    padding: var(--space-3);
    align-items: center;
  }

  .results-page .results-stream-link strong {
    font-size: .9rem;
  }

  .results-page .results-stream-link small {
    font-size: .76rem;
  }

  .results-page .results-view-tabs {
    gap: 6px;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
  }

  .results-page .results-view-tab {
    min-height: 44px;
    padding: 8px 10px;
    font-size: .875rem;
  }

  .results-page .statistics-section {
    margin-top: var(--space-4);
  }

  .results-page .statistics-section > .section-heading,
  .results-page .public-answers-section > .section-heading {
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
  }
}

/* Results tools: group search, navigation, filters and reset actions. */
.results-page .ai-analysis-form label{display:block;margin-bottom:12px}
.results-page .answer-tools{
  grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);
  grid-template-areas:
    "search search search"
    "jump go topic"
    "from to sort"
    "reset reset participants";
  align-items:end;
  gap:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:color-mix(in srgb,var(--card) 72%,var(--paper));
}
.results-page .answer-tools .search-field{grid-area:search;grid-column:auto}
.results-page .answer-tools .answer-number-jump{grid-area:jump;grid-column:auto}
.results-page .answer-tools #answer-number-go{grid-area:go;grid-column:auto}
.results-page .answer-tools>label:has(#topic-filter){grid-area:topic}
.results-page .answer-tools .date-filter-label:has(#date-from){grid-area:from}
.results-page .answer-tools .date-filter-label:has(#date-to){grid-area:to}
.results-page .answer-tools>label:has(#answer-sort){grid-area:sort}
.results-page .answer-tools #reset-filters{grid-area:reset;grid-column:auto;width:100%}
.results-page .answer-tools #all-participants{grid-area:participants;grid-column:auto;width:100%}
.results-page .answer-tools>label{display:flex;flex-direction:column;gap:8px}
.results-page .answer-tools label>span:not(.sr-only){font-size:.78rem;color:var(--muted)}
@media(max-width:760px){
  .results-page .answer-tools{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:
      "search search"
      "jump go"
      "topic topic"
      "from to"
      "sort sort"
      "reset participants";
    gap:9px;
    padding:12px;
  }
  .results-page .answer-tools .search-field{grid-column:auto}
  .results-page .answer-tools .answer-number-jump{grid-column:auto}
  .results-page .answer-tools #answer-number-go{grid-column:auto;width:100%}
  .results-page .answer-tools #reset-filters,
  .results-page .answer-tools #all-participants{grid-column:auto;width:100%;min-width:0}
}
@media(max-width:420px){
  .results-page .answer-tools{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:
      "search"
      "jump"
      "go"
      "topic"
      "from"
      "to"
      "sort"
      "reset"
      "participants";
    gap:8px;
    padding:10px;
  }
}

/* Shared answer-card system across collective and personal-preference streams. */
.results-page .answer-card,
.results-page .author-answer-card{
  border-radius:16px;
  border:1px solid var(--line);
  overflow-wrap:anywhere;
}
.results-page .answer-card{
  background:var(--card);
  box-shadow:0 5px 18px #20221f06;
  padding:var(--answer-card-padding);
}
.results-page .answer-card-top{
  margin-bottom:12px;
  align-items:flex-start;
}
.results-page .answer-code,
.results-page .answer-date{
  font-size:.78rem;
  line-height:1.45;
}
.results-page .answer-text{
  max-width:76ch;
  line-height:1.75;
}
.results-page .answer-preview,
.results-page .answer-full-text{
  margin:0 0 12px;
}
.results-page .answer-meta{
  justify-content:flex-start;
  margin-top:14px;
}
.results-page .answer-actions{
  margin-top:14px;
  justify-content:flex-start;
}
.results-page .author-answer-card{
  margin:0;
  padding:var(--answer-card-padding);
  border-radius:16px;
  box-shadow:0 5px 18px #20221f06;
}
.results-page :is(#author-answer-collective,#author-answer-hypothetical) .author-answer-card{
  border-color:color-mix(in srgb,var(--accent) 28%,var(--line));
  background:linear-gradient(135deg,color-mix(in srgb,var(--accent-2) 42%,var(--card)) 0%,var(--card) 62%);
}
.results-page :is(#author-answer-collective,#author-answer-hypothetical) .author-answer-card:before{
  width:3px;
}
@media(max-width:760px){
  .results-page .answer-card,
  .results-page .author-answer-card{
    padding:var(--answer-card-padding);
    border-radius:14px;
  }
  .results-page .answer-card-top{gap:8px}
  .results-page .answer-text{line-height:1.68}
}

/* Final alignment: the author card shares the feed card geometry while retaining its subtle accent. */
.results-page :is(#author-answer-collective,#author-answer-hypothetical) .author-answer-card{
  margin:0;
  padding:var(--answer-card-padding);
  border-radius:16px;
  box-shadow:0 5px 18px #20221f06;
}


/* Preserve the same compact corner radius on mobile for author and participant cards. */
@media(max-width:760px){
  .results-page :is(#author-answer-collective,#author-answer-hypothetical) .author-answer-card{
    border-radius:14px;
  }
}


/* Author examples use the same quiet card treatment as participant answers. */
.results-page :is(#author-answer-collective,#author-answer-hypothetical) .author-answer-card {
  padding: var(--answer-card-padding, 16px);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: none;
  overflow: visible;
}
.results-page :is(#author-answer-collective,#author-answer-hypothetical) .author-answer-card::before {
  content: none;
}
.results-page :is(#author-answer-collective,#author-answer-hypothetical) .author-answer-toggle {
  background: transparent;
  border-color: var(--line);
  color: var(--accent);
}
.results-page :is(#author-answer-collective,#author-answer-hypothetical) .author-answer-intro {
  font-size: inherit;
  line-height: inherit;
}

.topbar-centered .header-controls select{min-height:44px;font-size:.875rem}
