@font-face {
  font-family: 'Open Sans'; src: url('/respondent-font.woff2') format('woff2');
  font-weight: 300 800; font-style: normal; font-display: swap;
}
:root {
  --purple: #6d1afe; --navy: #21325e; --ink: #30323a; --muted: #636775;
  --paper: #fbfafc; --white: #fff; --line: #d9deeb; --line-strong: #abb4ca; --soft: #f1f2f8;
  --display: Futura, 'Century Gothic', 'Avenir Next', sans-serif;
  --body: 'Open Sans', Arial, Helvetica, sans-serif;
  font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6;
  font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
a { color: var(--purple); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
button, a.cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--white); color: var(--navy); padding: 9px 16px; font-size: .78rem; line-height: 1.5; font-weight: 650; text-decoration: none; cursor: pointer; }
button:hover, a.cta:hover { color: var(--purple); border-color: var(--purple); background: var(--soft); }
button.primary { color: var(--white); background: var(--purple); border-color: var(--purple); }
button.primary:hover { background: #5710da; border-color: #5710da; }
button:disabled { opacity: .55; cursor: wait; }
button.text-button { padding-inline: 4px; background: transparent; border-color: transparent; }
button.text-button:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #005fcc; outline-offset: 4px; }
#main:focus, h1[tabindex]:focus { outline: none; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 20; }
.skip:focus { top: 12px; background: var(--white); padding: 12px 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.topbar { min-height: 72px; padding: 10px clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 22px; color: var(--navy); text-decoration: none; }
.brand img { display: block; object-fit: contain; }
.brand span { font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; }
.topbar nav { display: flex; align-items: center; gap: 26px; }
.topbar nav > a, .account-menu summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--navy); font-size: .8rem; font-weight: 650; text-decoration: none; cursor: pointer; }
.topbar nav > a:hover, .account-menu summary:hover { color: var(--purple); }
.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu > div { position: absolute; right: 0; top: calc(100% + 10px); width: 205px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 12px 32px #21325e15; background: var(--white); z-index: 5; }
.account-menu > div a, .account-menu > div button { display: flex; width: 100%; justify-content: start; border: 0; color: var(--navy); padding: 12px; font-size: .8rem; text-decoration: none; border-radius: 3px; }
.account-menu > div a:hover, .account-menu > div button:hover { background: var(--soft); }
.shell { width: min(1280px, 100%); margin: auto; padding: 0 48px; }
.page-heading { padding: 62px 0 42px; }
.eyebrow { margin: 0 0 16px; color: var(--purple); font-size: .68rem; line-height: 1.5; font-weight: 750; text-transform: uppercase; letter-spacing: .15em; }
h1 { color: var(--navy); font: 700 clamp(2.4rem, 5vw, 3.8rem)/1.1 var(--display); letter-spacing: -.045em; margin: 0; }
.intro { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: .98rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 22px; }
.search-field { display: flex; flex-direction: row; align-items: center; gap: 12px; min-width: 0; flex: 1; max-width: 600px; padding: 0 14px; border: 1px solid var(--line); background: var(--white); border-radius: 4px; color: var(--muted); }
.search-field input { width: 100%; min-width: 0; border: 0; padding: 12px 0; background: transparent; }
.view-switch { display: inline-flex; gap: 8px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.view-switch button { border-color: transparent; background: transparent; min-height: 36px; padding: 7px 11px; color: var(--muted); }
.view-switch button[aria-pressed=true] { color: var(--purple); background: var(--soft); }
.filters { display: grid; grid-template-columns: minmax(180px, 1.6fr) .75fr 1fr 1fr auto; align-items: end; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
label { display: flex; flex-direction: column; gap: 8px; color: var(--navy); font-size: .74rem; font-weight: 650; min-width: 0; }
input, select, textarea { min-width: 0; width: 100%; max-width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); font-size: .82rem; font-weight: 400; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
select { min-height: 43px; }
.filter-actions { display: flex; align-items: center; gap: 12px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: .73rem; color: var(--muted); }
.count { margin: 0; color: var(--navy); font-weight: 650; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.card-image { position: relative; aspect-ratio: 16/10; background: var(--soft); overflow: hidden; }
.card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.access-label { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--white); padding: 5px 9px; border-radius: 3px; color: var(--navy); font-size: .64rem; font-weight: 650; }
.access-label svg { width: 13px; height: 13px; }
.card-body { display: flex; flex-direction: column; flex: 1; align-items: start; padding: 22px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .64rem; line-height: 1.5; }
.meta span { color: var(--purple); font-weight: 650; }
.meta time { white-space: nowrap; }
.card h2 { font: 700 1.35rem/1.25 var(--display); color: var(--navy); letter-spacing: -.025em; margin: 14px 0 10px; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card-summary { color: var(--muted); font-size: .8rem; line-height: 1.7; margin: 0 0 15px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: var(--soft); color: var(--navy); font-size: .62rem; padding: 3px 7px; border-radius: 3px; }
.tag.format { background: var(--paper); border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.card .actions { align-self: stretch; margin-top: auto; padding-top: 22px; justify-content: space-between; gap: 10px; }
.resource-link { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; color: var(--purple); font-size: .78rem; font-weight: 700; text-decoration: none; }
.resource-link:hover { text-decoration: underline; }
.membership-link { font-size: .65rem; color: var(--muted); }
.timeline-month { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 28px; padding: 8px 0 34px; }
.month { font: 700 1.15rem/1.4 var(--display); color: var(--navy); margin: 0; padding-top: 20px; border-top: 2px solid var(--purple); }
.timeline-items { display: grid; gap: 18px; }
.timeline .card { display: grid; grid-template-columns: 210px minmax(0,1fr); }
.timeline .card-image { height: 100%; min-height: 200px; aspect-ratio: auto; }
.timeline .card h2 { margin-top: 10px; }
.timeline .card .actions { padding-top: 12px; }
.empty { text-align: center; padding: 70px 24px 80px; border-top: 1px solid var(--line); }
.empty > svg { width: 36px; height: 36px; color: var(--purple); margin-bottom: 20px; stroke-width: 1.2; }
.empty h2 { color: var(--navy); font: 700 1.6rem/1.3 var(--display); letter-spacing: -.025em; margin: 0; }
.empty p { max-width: 420px; margin: 14px auto 0; color: var(--muted); font-size: .85rem; }
.empty button { margin-top: 18px; }
.error { padding: 14px 18px; background: #fff2f4; border-left: 3px solid #a20f2d; color: #8d1730; font-size: .85rem; }
#message:empty { display: none; }
.load-more { text-align: center; margin-top: 36px; }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 58px; padding: 26px 0; border-top: 1px solid var(--line); font-size: .7rem; color: var(--muted); }
footer > span { color: var(--navy); font-weight: 700; }
footer p { margin: 0; }
footer a { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--navy); text-decoration: none; }
footer svg { width: 14px; height: 14px; }
.loading-state { min-height: 50vh; display: grid; place-items: center; color: var(--muted); }
.management-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.table-wrap { border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; background: var(--white); }
.management-list { width: 100%; border-collapse: collapse; text-align: left; }
.management-list th { background: var(--paper); color: var(--muted); font-size: .68rem; font-weight: 650; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.management-list td { padding: 22px 20px; border-bottom: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.management-list tr:last-child td { border-bottom: 0; }
.management-list td:first-child { width: 45%; }
.output-title { display: block; text-align: left; border: 0; background: transparent; padding: 0; min-height: 0; color: var(--navy); font-size: .87rem; }
.output-title:hover { background: transparent; text-decoration: underline; }
.output-kind { display: block; margin-top: 6px; font-size: .66rem; }
.edit-button { border-color: transparent; background: transparent; padding-inline: 0; }
.state-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 3px; background: var(--soft); color: var(--muted); font: 600 .66rem var(--body); text-transform: capitalize; white-space: nowrap; }
.state-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.state-badge.published { color: #17633f; background: #edf7f0; }
.state-badge.draft { color: var(--purple); background: #f2edff; }
.back-link { margin-top: 30px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.back-link:hover { background: transparent; }
.back-link svg { transform: rotate(180deg); }
.editor-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; }
.editor-page-heading h1 { font-size: clamp(2rem,4vw,3rem); }
.editor { border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.editor-section { padding: 30px; border-bottom: 1px solid var(--line); }
.editor-section-heading { display: flex; gap: 18px; margin-bottom: 25px; }
.editor-section-heading > span { color: var(--purple); font-size: .7rem; font-weight: 700; padding-top: 4px; }
.editor-section-heading h2 { color: var(--navy); font: 700 1.2rem/1.4 var(--display); margin: 0; }
.editor-section-heading p { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.editor-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.wide { grid-column: 1/-1; }
textarea { min-height: 120px; resize: vertical; }
.field-note { margin: 16px 0 0; font-size: .75rem; color: var(--muted); }
.upload-field { display: flex; flex-direction: column; align-items: start; padding: 22px; border: 1px dashed var(--line-strong); border-radius: 4px; gap: 12px; }
.upload-field > svg { color: var(--purple); width: 24px; height: 24px; }
.upload-field label { width: 100%; }
.upload-field p { margin: 0; font-size: .7rem; color: var(--muted); }
input[type=file] { padding: 8px 0; border: 0; font-size: .72rem; }
input::file-selector-button { font: inherit; color: var(--navy); background: var(--soft); border: 1px solid var(--line); border-radius: 3px; padding: 7px; margin-right: 8px; }
.tag-options { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; max-height: 150px; overflow-y: auto; }
.tag-option { display: inline-flex; flex-direction: row; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 4px; padding: 7px 9px; font-weight: 400; font-size: .72rem; cursor: pointer; }
.tag-option:has(input:checked) { border-color: var(--purple); background: #f6f2ff; color: var(--purple); }
.tag-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--purple); }
.tag-options p { color: var(--muted); font-size: .75rem; }
.audience-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.audience-fields label { padding: 18px; border: 1px solid var(--line); border-radius: 4px; }
.audience-fields label > span { font-size: .85rem; }
.audience-fields input { padding: 10px 8px; font-size: .75rem; }
.audience-fields small { color: var(--muted); font-size: .66rem; font-weight: 400; }
.optional-fields summary, .tag-admin > summary { cursor: pointer; color: var(--navy); font-size: .85rem; font-weight: 650; }
.optional-fields summary > span, .tag-admin > summary > span { color: var(--muted); font-size: .7rem; font-weight: 400; margin-left: 12px; }
.optional-fields[open] .editor-fields { margin-top: 22px; }
.editor-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 22px 30px; background: var(--paper); }
.tag-admin { margin-top: 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.tag-admin-body > p { font-size: .8rem; color: var(--muted); }
.tag-admin form { align-items: end; margin-top: 22px; }
.tag-admin form + form { padding-top: 22px; border-top: 1px solid var(--line); }
.embed .topbar { display: none; }
.embed .shell { padding: 0 24px 24px; }
.embed .page-heading { padding-top: 30px; }
.embed h1 { font-size: 2.4rem; }
@media (max-width: 1050px) {
  .shell { padding-inline: 28px; }
  .filters { grid-template-columns: 1.5fr .8fr 1fr 1fr; }
  .filter-actions { grid-column: 1/-1; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .audience-fields { grid-template-columns: 1fr; }
  .audience-fields label { display: grid; grid-template-columns: 100px 1fr; align-items: center; }
  .audience-fields small { grid-column: 2; }
}
@media (max-width: 640px) {
  .topbar { min-height: 64px; padding: 10px 18px; gap: 12px; }
  .brand { gap: 12px; }
  .brand span { display: none; }
  .brand img { width: 40px; height: 36px; }
  .topbar nav { gap: 18px; }
  .topbar nav > a, .account-menu summary { font-size: .72rem; }
  .topbar svg { width: 16px; height: 16px; }
  .shell { padding-inline: 20px; }
  .page-heading { padding: 38px 0 30px; }
  h1 { font-size: 2.6rem; }
  .intro { font-size: .85rem; }
  .eyebrow { font-size: .6rem; }
  .toolbar { align-items: start; flex-direction: column; gap: 18px; }
  .search-field { width: 100%; }
  .view-switch { align-self: flex-end; }
  .filters { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .filters label { font-size: .67rem; }
  .filters select { padding-inline: 8px; font-size: .75rem; }
  .filter-actions { justify-content: space-between; }
  .grid { grid-template-columns: 1fr; gap: 24px; }
  .results-heading { font-size: .68rem; align-items: start; }
  .results-heading > span { text-align: right; max-width: 150px; }
  .timeline-month { grid-template-columns: 1fr; gap: 16px; }
  .month { padding-top: 14px; }
  .timeline .card { display: flex; }
  .timeline .card-image { aspect-ratio: 16/10; min-height: 0; height: auto; }
  .empty { padding: 48px 12px; }
  .empty h2 { font-size: 1.35rem; }
  footer { margin-top: 36px; gap: 12px; }
  footer p { width: 100%; font-size: .65rem; }
  footer a { margin-left: 0; }
  .management-heading { align-items: start; flex-direction: column; }
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .management-list thead { display: none; }
  .management-list tr { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); background: var(--white); border-radius: 4px; padding: 18px; margin-bottom: 14px; }
  .management-list td { padding: 0; border: 0; }
  .management-list td:first-child { width: auto; grid-column: 1/-1; }
  .management-list td:nth-child(2) { grid-column: 1/-1; padding: 12px 0; }
  .management-list td:last-child { justify-self: end; }
  .edit-button { min-height: 24px; }
  .editor-section { padding: 22px 18px; }
  .editor-fields { grid-template-columns: 1fr; gap: 18px; }
  .editor-fields > div:empty { display: none; }
  .editor-section-heading { gap: 12px; }
  .editor-section-heading h2 { font-size: 1.1rem; }
  .editor-section-heading p { font-size: .75rem; }
  .audience-fields label { display: flex; padding: 16px; }
  .editor-actions { padding: 18px; }
  .editor-actions .actions { width: 100%; }
  .optional-fields summary > span { display: block; margin-left: 0; }
  .tag-admin form { display: grid; grid-template-columns: 1fr; }
  .embed .shell { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.access-notice { margin: 1.5rem 0; padding: 1.5rem; border: 1px solid var(--line, #d8def0); border-radius: 8px; background: white; }
.access-notice h2 { margin: 0 0 .6rem; font-size: 1.25rem; }
.access-notice p { margin: 0 0 .6rem; }
button.access-unavailable:disabled { opacity: 1; cursor: default; }

.report-kit { margin: 2rem 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.report-kit h2 { margin: 0; font-size: 1.35rem; }
.report-kit p { max-width: 65ch; }
.report-kit .actions { align-items: end; margin: 1rem 0; }
.report-kit summary { cursor: pointer; font-weight: 600; }
.report-kit details label { margin-top: 1rem; }
.report-kit textarea { width: 100%; min-height: 10rem; }
.report-kit pre { white-space: pre-wrap; font: inherit; overflow-wrap: anywhere; }
.report-kit .field-note { overflow-wrap: anywhere; }

.hidden-toggle{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-size:.875rem}.hidden-toggle input{width:1rem;height:1rem;accent-color:#6441a5}.preview-notice{font-size:.875rem;color:#52616b;margin:0 0 1.5rem}
