@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "HSE Sans";
  src: url("/fonts/HSESans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HSE Sans";
  src: url("/fonts/HSESans-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HSE Sans";
  src: url("/fonts/HSESans-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  --font-display: "HSE Sans", Arial, sans-serif;
  --blue: #123674;
  --blue-hover: #0b285a;
  --blue-soft: #e5edfa;
  --blue-wash: #f0f4fc;
  --line: #c9d2e1;
  --border: #8798b1;
  --muted: #4d5d76;
  --surface: #fff;
  --focus: #315fc0;
  font-family: "Inter", system-ui, sans-serif;
  color: #192942;
  background: #f6f7fa;
  font-synthesis: none;
}
*{box-sizing:border-box}body{max-width:1280px;margin:auto;padding:0 clamp(20px,5vw,76px)}
header,footer{border-color:var(--line);border-style:solid;border-width:0}header{height:96px;border-bottom-width:1px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0}.brand img{display:block}
.stamp,.eyebrow{font-family:var(--font-display);font-size:.75rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase}.stamp{border:1px solid var(--border);border-radius:22px;padding:6px 12px}
main{display:grid;grid-template-columns:1fr 1.1fr;align-items:start;gap:7vw;padding:clamp(44px,8vw,110px) 0}
h1,h2,.metric{font-family:var(--font-display);font-weight:600;margin:0}h1{font-size:clamp(78px,10vw,145px);line-height:.96;letter-spacing:-.04em;margin:30px 0}
h1 em{font-weight:400}h1 em,.metric{color:var(--blue)}.rule{display:inline-flex;align-items:center;gap:8px;font-size:14px}.rule:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--blue)}
.card{background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--blue);border-radius:3px;padding:clamp(20px,3vw,40px);min-width:0}
h2{font-size:clamp(32px,3.5vw,48px);letter-spacing:-.045em;line-height:1.05;margin:14px 0 22px}label,select,button{font:inherit}
label{display:block;font-weight:600;margin:20px 0 8px}select,button{width:100%;padding:13px 15px;border-radius:4px;border:1px solid var(--border);background:var(--surface);color:inherit;min-height:46px}
button{cursor:pointer}button.primary{margin-top:14px;background:var(--blue);color:white;border-color:var(--blue);font-weight:600}button:hover{border-color:var(--blue-hover);background:var(--blue-wash)}button.primary:hover{background:var(--blue-hover)}
button:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button:disabled{opacity:.65;cursor:wait}
.option{text-align:left;margin:4px 0}.option:after{content:'→';float:right}.plain{border:0;background:none;width:auto;font-size:.85rem;text-decoration:underline;padding:0;min-height:40px}
.meta,footer{font-size:.86rem;color:var(--muted)}.metric{font-size:72px;line-height:1.1}.member{border-top:1px solid var(--line);margin-top:22px;padding-top:14px}
#status{color:#963e25;margin:12px 0 0}#status:empty{margin:0}footer{padding:18px 0 28px;border-top-width:1px}
@media(max-width:700px){header{height:70px}.stamp{font-size:10px}main{grid-template-columns:1fr;gap:18px;padding:28px 0}.intro h1{font-size:clamp(40px,10vw,64px);margin:10px 0}.intro br{display:none}.intro em:before{content:' '}.intro p{margin:4px 0}}

/* The signed-in cabinet uses the full column width for browsing editions. */
[hidden]{display:none!important}
#nav{display:flex;gap:24px;margin-left:auto;margin-right:20px}
a{color:inherit;text-underline-offset:4px}
#nav a,.filters a,.poll-tile{text-decoration:none}
#nav a{font-size:.94rem;padding:12px 0;border-bottom:2px solid transparent}
#nav a[aria-current]{border-color:var(--blue);color:var(--blue);font-weight:650}
a:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.signed-in .intro{display:none}
.signed-in main{display:block;padding:36px 0 44px}
.signed-in .card{padding:0;border:0;background:transparent}
.page-title{font-size:clamp(46px,6.2vw,84px);line-height:1;letter-spacing:-.04em;margin:12px 0 24px}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 24px}
.filters a{border:1px solid var(--border);border-radius:20px;padding:7px 14px;font-size:.88rem}
.filters a:hover{background:var(--blue-soft)}
.filters a[aria-current]{background:var(--blue);color:#fff;border-color:var(--blue)}
.editions{border-bottom:1px solid var(--line);gap:25px;margin-bottom:0}
.editions a,.editions a[aria-current]{border:0;border-bottom:2px solid transparent;border-radius:0;padding:8px 0;background:none;color:var(--muted)}
.editions a[aria-current]{border-color:var(--blue);font-weight:650}
.poll-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.poll-tile{display:flex;flex-direction:column;justify-content:space-between;width:100%;aspect-ratio:19 / 10;min-height:0;container-type:inline-size;padding:clamp(12px,2vw,22px) clamp(14px,2.4vw,26px);background:var(--blue-soft);border-top:3px solid var(--blue);transition:transform .15s}
.poll-tile:hover{transform:translateY(-2px)}
.poll-tile.identity{background:#f0e4da;border-color:#a17c63}
.poll-tile.exchange{background:#e0e9ed;border-color:#6f8f9a}
.poll-tile.culture{background:#ebe5ee;border-color:#937c9a}
h3{margin:0;font-family:var(--font-display);font-weight:400}
.tile-info h3{font-size:clamp(1.125rem,6.4cqi,2.125rem);line-height:1.09;letter-spacing:-.035em;max-width:25ch;margin:8px 0;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.tile-end,.people li{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tile-end{font-size:.87rem}.tile-end span:last-child{font-size:1.35rem}
.turnout{color:var(--muted);font-size:.8rem;font-variant-numeric:tabular-nums}
.tile-end .turnout{margin-inline-start:auto;text-align:right}
.back{display:inline-block;font-size:.95rem;margin:3px 0 18px}
.question,.profile-panel{max-width:660px;background:var(--surface);border-top:4px solid var(--blue);padding:clamp(18px,4vw,46px)}
.question p{line-height:1.45}.profile-panel h3{font-size:2rem;margin-bottom:8px}
.demo-label{display:inline-block;border:1px solid var(--border);border-radius:14px;padding:3px 10px;font-size:.75rem}
dl{display:grid;grid-template-columns:min-content 1fr;gap:12px 28px}dt{color:var(--muted)}dd{margin:0}
#search{font:inherit;border-radius:4px;background:var(--surface);color:inherit;border:1px solid var(--border);padding:10px 12px;width:min(100%,600px);min-height:44px}
.people{list-style:none;padding:0;max-width:760px}.people li{border-bottom:1px solid var(--line);padding:17px 0}
.people h3{font-size:1.45rem}.people p{margin:4px 0 0}.empty{padding:16px 0;color:var(--muted)}
@media(max-width:700px){
  .signed-in header{height:auto;flex-wrap:wrap;padding-top:14px;gap:6px 10px}.signed-in .stamp{margin-left:auto}
  #nav{order:3;flex-basis:100%;margin:0;justify-content:space-between;gap:8px}
  .signed-in main{padding:22px 0}.poll-grid{grid-template-columns:1fr}
  .filters{gap:6px;margin:12px 0 16px}.filters a{padding:6px 10px}.editions a{padding:8px 0}
  .page-title{margin-bottom:16px}
}

.tag-filter{border:1px solid var(--line);padding:12px 16px;max-width:760px;margin:18px 0}
.tag-filter legend{padding:0 5px;font-size:.9rem;font-weight:600}
.tag-chip{width:auto;min-height:32px;font-size:.85rem;background:var(--blue-soft);margin:8px 6px 0 0;padding:4px 10px}

/* Reserve the actual height of the fixed bar, including wrapped links. */
html { scroll-padding-bottom: var(--footer-height, 0px); }
footer { margin-bottom: var(--footer-height, 0px); }

.footer-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid #dcdcdc;
  background: #f1f1f1;
  color: #626262;
  font: 16px/1.3 Arial, Helvetica, sans-serif;
}
.footer-inner {
  position: relative;
  max-width: 1280px;
  margin-inline: auto;
  padding: 7px clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 24px;
}
.footer-inner a {
  padding-block: 5px;
  text-decoration: none;
}
.footer-inner a:hover { color: #393939; }
.footer-support {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-inline-start: auto;
  color: #101010;
  font-weight: bold;
}
.footer-support span {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}
.footer-inner .footer-support:hover { color: #000; text-decoration: underline; }
.footer-top {
  position: absolute;
  bottom: calc(100% + 7px);
  right: clamp(20px, 5vw, 76px);
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border: 1px solid #ccc;
  background: #f1f1f1;
  color: #505050;
  font: 20px/1 Arial, sans-serif;
}
.footer-top:hover { color: #202020; border-color: #aaa; background: #e6e6e6; }
@media (min-width: 641px) and (max-width: 1100px) {
  .footer-inner { column-gap: 20px; font-size: 15px; }
}
@media (max-width: 640px) {
  .footer-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    padding-block: 5px;
    font-size: 14px;
  }
  .footer-inner a { padding-block: 4px; }
  .footer-support { grid-column: 1 / -1; }
}

.cohort-controls { max-width: 760px; margin: 16px 0; }
.cohort-controls details { border: 1px solid var(--border); border-radius: 4px; padding: 10px 14px; background: var(--surface); }
.cohort-controls summary { cursor: pointer; }
.cohort-controls input[type=search] { font: inherit; width: 100%; padding: 8px; margin: 10px 0; }
.cohort-options { max-height: 15rem; overflow: auto; }
.cohort-options label { display: flex; gap: 9px; align-items: center; margin: 0; padding: 6px; font-weight: 400; }
.cohort-options input[type=checkbox] { width: auto; margin: 0; }
.cohort-controls fieldset { border: 0; padding: 0; margin: 12px 0; }
.cohort-controls legend { font-weight: 600; margin-bottom: 5px; }
.cohort-controls button { width: auto; min-height: 34px; padding: 5px 12px; margin: 3px 5px 3px 0; border-radius: 20px; }
.cohort-controls button[aria-pressed=true] { background: var(--blue); color: white; }

.topic-faculties { min-width: 0; padding: 0; border: 0; }
.topic-faculties legend { padding: 0; }

.interest-search{display:flex;gap:8px;max-width:640px;margin:12px 0 22px}
.interest-search input{flex:1;min-width:0;padding:10px 12px;border:1px solid var(--border);border-radius:4px;font:inherit}
.interest-search button{width:auto}
.interest-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.interest-tile{aspect-ratio:auto;min-height:128px;gap:8px}
.interest-tile.answered{border-top-color:var(--blue);background:var(--blue-soft)}
.question .option[aria-pressed=true]{border-color:var(--blue);background:var(--blue-soft);font-weight:600}
.interest-resource{display:inline-block;margin-top:18px;color:var(--blue)}
.interest-clarify,.interest-mirror{margin-top:20px}
.interest-clarify summary{cursor:pointer;font-weight:600;padding:10px 0}
.interest-clarify label{margin:8px 0}
.interest-mirror h3{margin:18px 0 8px}
.back + .back{margin-left:16px}
@media(max-width:480px){#nav{flex-wrap:wrap}}

.mirror-result { margin-top: 20px; }
.mirror-result h3 { padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.45rem; }
.mirror-chart { list-style: none; margin: 12px 0 24px; padding: 0; }
.mirror-chart li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px;
  align-items: start; margin: 0 0 16px; overflow-wrap: anywhere;
}
.mirror-chart strong { text-align: right; font: 600 1.2rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.mirror-chart small { display: block; margin-top: 4px; color: var(--muted); font: 400 .8rem/1.3 Inter, sans-serif; }
.mirror-chart .is-selected > span, .mirror-chart .is-selected > strong { color: var(--blue); font-weight: 600; }
.mirror-chart .is-selected small { color: var(--blue); }
.mirror-chart progress {
  grid-column: 1 / -1; display: block; width: 100%; height: 7px; border: 0;
  border-radius: 4px; overflow: hidden; appearance: none; background: var(--blue-wash); color: var(--bar-color);
  --bar-color: var(--border);
}
.mirror-chart .is-selected progress { --bar-color: var(--blue); }
.mirror-chart progress::-webkit-progress-bar { background: var(--blue-wash); }
.mirror-chart progress::-webkit-progress-value { background: var(--bar-color); }
.mirror-chart progress::-moz-progress-bar { background: var(--bar-color); }
.mirror-match, .mirror-empty { padding: 16px 20px; background: var(--blue-wash); border-left: 3px solid var(--blue); }
.mirror-match .metric { display: block; font-size: clamp(48px, 8vw, 72px); }
.mirror-match p { margin: 6px 0 0; }
.mirror-empty { color: var(--muted); }

.vote-sort{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:14px 0;color:var(--muted);font-size:.875rem}
.vote-sort select{width:auto;max-width:100%;min-height:40px;padding:6px 10px}
