:root {
  --blue: #242772;
  --navy: #151746;
  --green: #27813e;
  --yellow: #ffd54f;
  --paper: #f8f8ff;
  --mint: #e0f2e5;
  --lilac: #e8e8ff;
  --gold: #fff3c5;
  --rose: #fbe3f1;
  --ink: #21223c;
  --muted: #545672;
  --outline: #dcdcf0;
  --display: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --logo: url("cityu-nerds.webp");
  --doodles: url("doodles.webp");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
[hidden] { display: none !important; }
a { text-decoration: none; color: inherit; }
button, select { font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.03; color: var(--navy); font-weight: 900; }
h1 { font-size: clamp(3.05rem, 7vw, 6.3rem); letter-spacing: -.075em; }
h2 { font-size: clamp(1.9rem, 3.75vw, 3.1rem); letter-spacing: -.054em; }
h3 { font-size: 1.35rem; letter-spacing: -.031em; }
:focus-visible { outline: 3px solid #177230; outline-offset: 5px; }
.wrap { width: min(100% - 4rem, 76.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: -10rem; z-index: 12; left: 1rem; color: white; background: var(--navy); padding: .7rem 1rem; }
.skip:focus { top: 1rem; }
.masthead .wrap, .footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.masthead { border-bottom: 1px solid var(--outline); background: #fff; }
.masthead .wrap { min-height: 4.2rem; }
.brand { display: inline-flex; align-items: center; gap: .45rem; color: var(--navy); font: 900 1.3rem/1 var(--display); letter-spacing: -.045em; }
.brand-mark { flex: none; width: 2.7rem; height: 2.28rem; background: var(--logo) center top / 100% auto no-repeat; }
.brand .domain { font: 650 .8rem/1 var(--body); letter-spacing: 0; color: var(--muted); display: block; margin-top: .23rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 2.7rem; padding: .57rem .93rem; border: 2px solid var(--navy); border-radius: .71rem .95rem .73rem .9rem; background: var(--yellow); color: var(--navy); box-shadow: 0 3px 0 var(--navy); font-weight: 850; text-align: center; line-height: 1.18; }
.button:hover { background: #ffe27a; transform: translateY(-1px); box-shadow: 0 4px 0 var(--navy); }
.button.secondary { background: #fff; }
.microsoft { display: grid; grid: repeat(2,.39rem) / repeat(2,.39rem); gap: 2px; flex: none; }
.microsoft i:nth-child(1) { background: #f25022; }
.microsoft i:nth-child(2) { background: #7fba00; }
.microsoft i:nth-child(3) { background: #00a4ef; }
.microsoft i:nth-child(4) { background: #ffb900; }

.results { padding-top: 1.1rem; }
.banner {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: .6rem 1rem; min-height: 12rem; overflow: hidden;
  padding: clamp(1rem, 2.9vw, 2rem);
  background: radial-gradient(circle, #3d408a26 .8px, transparent 1px) right top / 10px 10px, var(--lilac);
  border: 2px solid var(--navy); border-radius: 1.7rem 2.5rem 1.45rem 2rem;
  box-shadow: 0 4px 0 var(--navy);
}
.banner-text { z-index: 1; }
.banner h1 em { color: var(--yellow); font-style: normal; -webkit-text-stroke: .023em var(--navy); text-shadow: .025em .038em var(--navy); display: inline-block; transform: rotate(-3.4deg); }
.eyebrow { display: block; color: var(--blue); margin-bottom: .36rem; font-size: .85rem; font-weight: 850; letter-spacing: .078em; text-transform: uppercase; }
.banner-meta { margin-top: .66rem; color: var(--blue); font-weight: 750; }
.archive { align-self: end; z-index: 2; }
.archive label { display: block; font-weight: 850; font-size: .88rem; color: var(--navy); margin-bottom: .21rem; }
.archive select { color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: .6rem .8rem .57rem .9rem; padding: .55rem .7rem; width: 100%; min-height: 2.65rem; font-weight: 750; }
.doodle { display: block; background-image: var(--doodles); background-size: 300% 300%; background-position: var(--x, 0%) var(--y, 0%); aspect-ratio: 1; flex: none; }
.celebrate { --x: 0%; --y: 0%; }
.trophy { --x: 50%; --y: 0%; }
.books { --x: 100%; --y: 0%; }
.robot { --x: 0%; --y: 50%; }
.bus { --x: 50%; --y: 50%; }
.sleep { --x: 100%; --y: 50%; }
.bubbles { --x: 0%; --y: 100%; }
.gaming { --x: 50%; --y: 100%; }
.coffee { --x: 100%; --y: 100%; }
.banner .celebrate { z-index: 0; position: absolute; right: 14.5rem; bottom: -.6rem; width: clamp(8rem, 18vw, 14rem); transform: rotate(6deg); filter: drop-shadow(3px 4px 0 #fff); }
.banner .burst { position: absolute; top: 1rem; left: 62%; width: 2.2rem; aspect-ratio: 1; background: var(--yellow); clip-path: polygon(50% 0,58% 38%,100% 50%,58% 59%,50% 100%,41% 59%,0 50%,41% 40%); }

.award-filter { display: flex; flex-wrap: wrap; gap: .54rem; margin: 1.48rem 0 1rem; }
.award-filter a {
  display: inline-flex; align-items: center; gap: .42rem; background: #fff;
  border: 1.5px solid var(--navy); border-radius: .58rem .86rem .54rem .77rem;
  color: var(--navy); font-weight: 780; padding: .48rem .77rem; min-height: 2.65rem; line-height: 1.15;
}
.award-filter a[aria-current="page"] { color: white; background: var(--blue); box-shadow: 0 3px 0 var(--navy); }
.award-filter a:hover:not([aria-current="page"]) { background: var(--lilac); }
.award-filter .glyph { font-size: 1.15rem; line-height: 1; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: .65rem 1.2rem; margin-bottom: .91rem; }
.section-title .context { color: var(--muted); font-size: .89rem; }
.podium { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)); gap: clamp(.55rem, 1.55vw, 1.2rem); padding: .32rem 0 .5rem; }
.finalist {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; align-items: start; gap: .56rem;
  min-width: 0; padding: clamp(.65rem, 1.3vw, 1rem);
  color: var(--navy); background: var(--tile, #fff); border: 2px solid var(--navy);
  border-radius: 1.28rem 1.66rem 1.05rem 1.62rem; box-shadow: 3px 4px 0 var(--navy); overflow: hidden;
}
.finalist:nth-child(2) { --tile: var(--mint); transform: rotate(.65deg); border-radius: .95rem 1.6rem 1.65rem 1.05rem; }
.finalist:nth-child(3) { --tile: var(--lilac); transform: rotate(-.65deg); border-radius: 1.57rem 1rem .91rem 1.5rem; }
.finalist:nth-child(4) { --tile: var(--rose); transform: rotate(.7deg); border-radius: 1.24rem 1.7rem 1.12rem .85rem; }
.finalist.winner {
  --tile: var(--yellow); border-width: 2.5px; transform: rotate(-.67deg); margin-top: -.2rem;
  background: radial-gradient(circle, #db9e232b 1px, transparent 1.1px) 0 0 / 9px 9px, var(--yellow);
  box-shadow: 4px 5px 0 var(--navy);
}
.finalist .rank {
  position: relative; z-index: 1; display: inline-block; width: max-content; max-width: 100%;
  color: var(--navy); background: #fff; border: 1.5px solid var(--navy); padding: .24rem .58rem;
  border-radius: .45rem .67rem .5rem .7rem; font-size: .83rem; font-weight: 900; line-height: 1.2;
}
.winner .rank { background: var(--navy); color: #fff; transform: rotate(-4deg); }
.portrait {
  position: relative; margin: 0 auto; width: min(100%, 8.45rem); aspect-ratio: 1; border: 2px solid var(--navy);
  border-radius: 24% 31% 22% 29%; display: block; height: auto; object-fit: cover; background: #fff;
  box-shadow: 2px 3px 0 var(--navy);
}
.winner .portrait { width: min(100%, 9.65rem); border-radius: 25% 33% 27% 34%; }
.winner .trophy { position: absolute; width: clamp(3.1rem, 6.2vw, 5.2rem); right: .2rem; top: .4rem; transform: rotate(9deg); z-index: 1; }
.finalist h3 { font-size: clamp(1.03rem, 1.8vw, 1.55rem); overflow-wrap: anywhere; }
.finalist p { margin-top: .15rem; font-size: .87rem; color: var(--muted); line-height: 1.36; }
.finalist .votes { font: 900 clamp(1.05rem, 2.35vw, 1.72rem)/1 var(--display); letter-spacing: -.035em; }
.finalist .votes small { font: 750 .82rem/1.1 var(--body); letter-spacing: 0; }
.finalist .votes { padding-top: .29rem; }
.finalist.winner p { color: #51420d; }

.stats-section { margin: 2.1rem 0 0; padding: clamp(.9rem, 2.6vw, 1.7rem); background: var(--navy); color: #fff; border-radius: 1.8rem 1.48rem 2.2rem 1.45rem; border: 2px solid var(--navy); }
.stats-section h2 { color: #fff; }
.stats-section .context { color: #e2e3ff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.chart {
  position: relative; min-width: 0; min-height: 13rem; border-radius: 1.15rem 1.6rem 1.25rem 1.55rem;
  border: 2px solid var(--navy); background: var(--gold); color: var(--navy); padding: .85rem 1rem 1rem;
}
.chart:nth-child(2) { background: var(--mint); border-radius: 1.4rem 1rem 1.5rem 1.3rem; }
.chart:nth-child(3) { background: var(--lilac); border-radius: 1rem 1.5rem 1.4rem 1.1rem; }
.chart:nth-child(4) { background: var(--rose); border-radius: 1.55rem 1.17rem 1rem 1.4rem; }
.chart-caption { display: flex; justify-content: space-between; align-items: center; min-height: 4.65rem; gap: .2rem; margin-bottom: .2rem; }
.chart-caption p { margin-top: .25rem; font-size: .88rem; color: var(--muted); }
.chart-caption .doodle { width: 5rem; margin: -.32rem -.1rem -.34rem .45rem; }
.mood { display: flex; height: 1.95rem; border: 2px solid var(--navy); background: var(--lilac); border-radius: .75rem 1rem .82rem .92rem; overflow: hidden; transform: rotate(-1deg); box-shadow: 2px 3px 0 var(--navy); margin: .75rem 0 .65rem; }
.mood span { height: 100%; width: var(--value); background: var(--fill); }
.mood span + span { border-left: 1.5px solid var(--navy); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem .85rem; font-size: .88rem; }
.legend span { display: inline-flex; align-items: center; gap: .28rem; }
.legend i { width: .71rem; height: .71rem; background: var(--fill); border: 1px solid var(--navy); border-radius: 38%; }
.ring-layout { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.1rem; margin-top: .45rem; }
.ring {
  position: relative; width: 6.6rem; aspect-ratio: 1; display: grid; place-items: center; isolation: isolate;
  border: 2px solid var(--navy); border-radius: 50%; box-shadow: 2px 3px var(--navy);
  background: var(--ring, #fff); color: var(--navy);
}
.ring::before { content: ""; position: absolute; z-index: -1; inset: .74rem; background: var(--mint); border: 1.5px solid var(--navy); border-radius: 50%; }
.ring b { font: 900 1.45rem/1 var(--display); }
.ring-layout p { max-width: 16rem; font-size: .91rem; color: var(--muted); }
.bar-chart { display: grid; grid-template-columns: minmax(5.7rem, auto) minmax(0, 1fr) auto; gap: .38rem .48rem; align-items: center; font-size: .88rem; }
.bar-chart .track { width: 100%; height: .66rem; border-radius: 2rem; background: #fff; outline: 1px solid #302b6f55; }
.bar-chart .bar { display: block; width: var(--value); height: 100%; border-radius: 2rem; background: var(--fill, var(--green)); }
.bar-chart b { font-variant-numeric: tabular-nums; text-align: right; }
.quest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .42rem; }
.quest span { display: flex; align-items: center; justify-content: space-between; gap: .25rem; min-width: 0; border: 1.5px solid var(--navy); border-radius: .55rem .82rem .57rem .75rem; padding: .35rem .48rem; background: #fff; font-size: .86rem; font-weight: 700; }
.quest span:first-child { background: var(--yellow); }
.quest b { font-size: 1.02rem; }

.slang {
  padding: clamp(1rem, 2.6vw, 1.55rem); margin-top: 1.6rem; background: var(--mint); color: var(--navy);
  border: 2px solid var(--navy); border-radius: 1.7rem 1.3rem 1.5rem 1.2rem;
  box-shadow: 3px 4px 0 var(--navy);
}
.slang .section-title { align-items: center; }
.slang .section-title .doodle { width: 5.8rem; margin: -1rem 0 -.7rem; }
.slang h2 { letter-spacing: -.055em; }
.phrases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: .1rem 0 0; gap: .65rem; }
.phrase { position: relative; min-width: 0; background: #fff; color: var(--navy); border: 1.5px solid var(--navy); border-radius: .75rem 1.08rem .9rem 1.2rem; padding: .6rem .74rem; }
.phrase:nth-child(even) { transform: rotate(.62deg); background: var(--gold); }
.phrase h3 { font: 900 1.14rem/1.16 var(--display); margin-bottom: .17rem; }
.phrase h3 [lang="ar"] { display: inline-block; margin-inline-start: .25rem; }
.phrase p { margin: 0; line-height: 1.35; color: var(--muted); font-size: .87rem; }

.inner-page { padding-block: 1.5rem 2.4rem; min-height: 55vh; }
.back { display: inline-block; color: var(--blue); text-decoration: underline; text-underline-offset: .17em; font-weight: 750; margin-block: .1rem .95rem; }
.info-banner { position: relative; overflow: hidden; padding: clamp(1.25rem, 4vw, 2.5rem); min-height: 13rem; border: 2px solid var(--navy); border-radius: 1.8rem 2.1rem 1.45rem 1.6rem; background: var(--lilac); box-shadow: 0 4px 0 var(--navy); }
.info-banner h1 { font-size: clamp(2.55rem, 6.2vw, 5.3rem); margin-bottom: .65rem; }
.info-banner p { max-width: 41rem; color: var(--blue); }
.info-banner > .doodle { position: absolute; width: clamp(6.7rem, 15vw, 11rem); right: 4%; bottom: -.05rem; transform: rotate(8deg); pointer-events: none; }
.info-banner .info-copy { position: relative; z-index: 1; max-width: 78%; }
.info-banner .button { margin-top: 1rem; }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.info-card { background: white; border: 1.5px solid var(--navy); border-radius: 1rem 1.5rem 1.12rem 1.38rem; box-shadow: 3px 3px var(--navy); padding: 1rem 1.12rem; }
.info-card:nth-child(2) { background: var(--gold); }
.info-card h2 { font-size: 1.65rem; }
.info-card ul, .info-card ol { margin: .65rem 0 .25rem; padding-left: 1.21rem; }
.info-card li + li { margin-top: .31rem; }
.flow { margin-top: 1.65rem; }
.flow h2 { font-size: 1.82rem; }
.flow p { margin-top: .47rem; color: var(--muted); max-width: 55rem; }
.plan-panel { margin-top: 1.5rem; }
.plan-panel h2 { font-size: 1.9rem; margin-bottom: .55rem; }
.plan-panel table { width: 100%; border-collapse: collapse; background: white; font-size: .93rem; }
.plan-panel th, .plan-panel td { border: 1px solid var(--outline); vertical-align: top; padding: .72rem; text-align: left; }
.plan-panel th { background: var(--lilac); color: var(--navy); }
.plan-panel td:first-child { font-weight: 750; color: var(--navy); }
.plan-panel p + p { margin-top: .7rem; }
.field-note { color: var(--muted); font-size: .9rem; }
.field-note a { text-decoration: underline; text-underline-offset: .17em; overflow-wrap: anywhere; }
.footer { padding: .8rem 0; margin-top: 1.7rem; border-top: 1px solid var(--outline); background: #fff; color: var(--muted); font-size: .86rem; }
.footer strong { color: var(--navy); }
.loader {
  position: fixed; inset: 0; z-index: 10; display: grid; place-content: center; justify-items: center; gap: .8rem;
  background: var(--paper); color: var(--navy); font-weight: 850;
}
.loader-logo { display: block; width: min(12rem, 60vw); height: auto; aspect-ratio: 1; object-fit: contain; background: white; border: 2px solid var(--navy); border-radius: 1.3rem 1.8rem 1.5rem 1.2rem; box-shadow: 4px 5px 0 var(--navy); animation: react .85s ease-in-out infinite alternate; }
@keyframes react { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
dialog { width: min(100% - 2rem, 33rem); padding: 1.25rem; background: #fff; color: var(--ink); border: 2px solid var(--navy); border-radius: 1.2rem 1.65rem 1.1rem 1.5rem; box-shadow: 0 4px 0 var(--navy); }
dialog::backdrop { background: #151746ab; }
dialog h2 { font-size: 1.8rem; margin-bottom: .6rem; }
dialog form { margin-top: .95rem; }

@media (max-width: 1010px) {
  .banner .celebrate { right: 11.2rem; }
  .banner h1 { font-size: clamp(2.85rem, 7.6vw, 5.25rem); }
  .banner .burst { left: 59%; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 1.8rem); }
  .banner { min-height: 10rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
  .banner h1 { font-size: clamp(2.9rem, 10vw, 4.6rem); }
  .banner .celebrate { width: 7.85rem; right: .2rem; z-index: 0; bottom: -.4rem; }
  .banner .burst { display: none; }
  .archive { width: max-content; max-width: calc(100% - 7rem); }
  .award-filter { gap: .42rem; }
  .award-filter a { padding-inline: .6rem; font-size: .9rem; }
  .section-title { align-items: start; flex-direction: column; gap: .25rem; }
  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .finalist { gap: .52rem; }
  .finalist.winner { grid-column: 1 / -1; grid-template: auto 1fr auto / minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
  .winner .rank { grid-area: 1 / 2; }
  .winner .portrait { grid-area: 1 / 1 / 4 / 2; }
  .winner .finalist-text { grid-area: 2 / 2; }
  .winner .votes { grid-area: 3 / 2; }
  .winner .trophy { width: 3.85rem; }
  .finalist:not(.winner) p { font-size: .8rem; }
  .stats-grid { gap: .75rem; }
  .slang .section-title { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 535px) {
  .brand { font-size: 1.16rem; }
  .brand .domain { font-size: .71rem; }
  .masthead .button { padding-inline: .65rem; font-size: .89rem; }
  .banner h1 { max-width: 90%; letter-spacing: -.07em; }
  .stats-grid { grid-template-columns: 1fr; }
  .phrases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-grid { grid-template-columns: 1fr; }
  .chart { min-height: auto; }
  .info-banner .info-copy { max-width: 100%; }
  .info-banner p { max-width: calc(100% - 3rem); }
  .info-banner > .doodle { width: 5rem; right: .12rem; }
  .footer .wrap { align-items: start; flex-direction: column; gap: .25rem; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 1.35rem); }
  .banner .celebrate { width: 6.1rem; }
  .archive { max-width: calc(100% - 5rem); }
  .finalist { padding: .5rem; }
  .finalist .rank { font-size: .77rem; padding-inline: .36rem; }
  .finalist h3 { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader-logo { animation: none; }
  .button:hover { transform: none; }
}

/* Results, comic navigation, and shareable content. */
.masthead .wrap { min-height: 4.55rem; }
.footer nav, .jump-links { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1.05rem; }
.footer a:hover, .source-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.jump-links { margin-top: .65rem; font-weight: 800; color: var(--blue); }
.jump-links a { text-decoration: underline; text-underline-offset: .18em; }
.election-status { margin-top: .9rem; padding: .7rem 1rem; background: var(--mint); border: 1px solid #abcdb2; border-radius: .8rem 1.1rem; color: var(--blue); }
.election-status .source-link { margin-top: 0; }
.category-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin: 1.35rem 0 1rem; }
.category-cards a {
  --card: var(--mint); position: relative; min-width: 0; display: grid; align-content: center; gap: .3rem;
  min-height: 6.8rem; padding: .62rem .68rem; background: var(--card); border: 1.75px solid var(--navy); border-radius: 1.1rem .9rem 1.15rem .68rem;
  box-shadow: 2px 3px 0 var(--navy); transform: rotate(-.65deg); color: var(--navy);
}
.category-cards a { grid-template-columns: minmax(2.46rem,.75fr) 1.25fr; align-items: center; font: 900 clamp(.94rem, 1.48vw, 1.19rem)/1.06 var(--display); }
.category-cards a > .doodle { width: min(4.9rem,100%); }
.category-cards strong { overflow-wrap: anywhere; }
.category-cards a:nth-child(even) { --card: var(--lilac); transform: rotate(.7deg); border-radius: .76rem 1rem .8rem 1.2rem; }
.category-cards a:nth-child(3) { --card: var(--rose); }
.category-cards a:hover, .category-cards [aria-current="page"] { background: var(--yellow); box-shadow: 3px 5px 0 var(--navy); }
.category-label { display: grid; gap: .2rem; }
.category-label small { color: var(--muted); font: 700 .75rem/1.15 var(--body); }
.award-preview-panel { display: grid; gap: .65rem; }
.award-preview-panel .button { justify-self: start; }
.award-banner { display: flex; gap: .7rem 1.1rem; align-items: center; background: var(--blue); color: white; border: 2px solid var(--navy); border-radius: 1.25rem .8rem 1.46rem 1rem; padding: .6rem 1.1rem; margin: 1rem 0 .85rem; box-shadow: 2px 3px 0 var(--navy); }
.award-banner h2, .award-banner .eyebrow { color: white; }
.award-banner .eyebrow { font-size: .75rem; color: var(--yellow); margin-bottom: .18rem; }
.award-banner .doodle { width: 3.8rem; transform: rotate(-8deg); }
.award-banner h2 { transform: rotate(-.8deg); }
.explore-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.8rem; }
.explore-card { position: relative; overflow: hidden; min-height: 8rem; border: 2px solid var(--navy); border-radius: 1.4rem 1.1rem 1.6rem .85rem; background: var(--gold); box-shadow: 3px 4px 0 var(--navy); padding: 1rem 5.3rem 1rem 1rem; }
.explore-card:nth-child(2) { background: var(--mint); border-radius: 1rem 1.55rem .85rem 1.6rem; }
.tech-home { margin-top: 1.8rem; background: var(--mint); }
.home-figures { margin-top: 2.2rem; }
.explore-card h2 { font-size: clamp(1.6rem,3.3vw,2.55rem); }
.explore-card h2 a:hover { text-decoration: underline; text-underline-offset: .16em; }
.explore-card p { color: var(--muted); margin-top: .32rem; }
.explore-card .doodle { position: absolute; top: .65rem; right: .2rem; width: 5rem; transform: rotate(6deg); }
.empty { padding: .8rem 1rem; border-radius: .75rem; border: 1px solid var(--outline); background: #fff; color: var(--muted); }
.resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.2rem; }
.resource-card { min-width: 0; position: relative; overflow: hidden; padding: 1rem; border-radius: 1.1rem 1.45rem 1rem 1.3rem; border: 2px solid var(--navy); box-shadow: 3px 4px var(--navy); background: #fff; }
.resource-card:nth-child(3n + 2) { background: var(--mint); border-radius: 1.45rem 1rem 1.3rem 1.2rem; }
.resource-card:nth-child(3n + 3) { background: var(--lilac); border-radius: 1.4rem .95rem 1.2rem 1rem; }
.resource-card .doodle { position: absolute; right: .35rem; top: .35rem; width: 5rem; transform: rotate(6deg); }
.resource-card > .eyebrow, .resource-card > h2, .resource-card > h3, .resource-card > .metric { position: relative; padding-right: 4.6rem; }
.resource-card h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
.resource-card h3, .resource-card p { margin-top: .35rem; }
.resource-card .metric { display: block; color: var(--navy); font: 900 clamp(2.4rem,5.7vw,4.2rem)/1 var(--display); letter-spacing: -.06em; }
.source-link { display: inline-block; margin-top: .52rem; color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: .17em; }
.stats-section .source-link { color: var(--yellow); }
.card-labels, .chart-labels, .open-polls { margin: .5rem 0; padding-left: 1.15rem; }
.chart-labels { list-style: none; padding-left: 0; font-size: .91rem; }
.chart-labels.inline { display: flex; flex-wrap: wrap; gap: .45rem .8rem; }
.chart-labels strong { margin-left: .25rem; }
.chart-dot { width: .66rem; height: .66rem; display: inline-block; border-radius: 35%; border: 1px solid var(--navy); margin-right: .35rem; }
.chart-select { display: flex; align-items: center; gap: .5rem; max-width: 21rem; margin: .4rem 0 .65rem; font-size: .88rem; font-weight: 770; }
.chart-select select { width: auto; min-width: 0; flex: 1; min-height: 2.1rem; padding: .35rem .45rem; }
.chart .mood span { width: var(--value,0%); background: var(--fill,white); }
.chart .bar-chart progress { width: 100%; height: .72rem; appearance: none; border: 0; border-radius: 2rem; overflow: hidden; background: #fff; }
.chart progress::-webkit-progress-bar { background: #fff; }
.chart progress::-webkit-progress-value { background: var(--green); border-radius: 2rem; }
.chart progress::-moz-progress-bar { background: var(--green); }
.chart { scroll-margin-top: 1rem; }
.chart:target, .resource-card:target, .phrase:target { outline: 3px solid var(--green); outline-offset: 4px; }
.share-menu { margin-top: .65rem; color: var(--navy); }
.share-menu summary {
  width: max-content; cursor: pointer; color: var(--blue); font-weight: 800; font-size: .88rem; text-underline-offset: .19em; text-decoration: underline;
}
.share-options { margin-top: .4rem; padding: .62rem; background: white; border-radius: .7rem 1rem; border: 1px solid var(--outline); max-width: 35rem; }
.share-options input { font-size: .83rem; }
.share-options .button { min-height: 2.25rem; padding: .37rem .65rem; font-size: .85rem; box-shadow: none; }
.share-options .field-note:empty { display: none; }
.phrase .share-menu { margin-top: .42rem; }

/* Candidacy, ballot, and moderation. */
.notice { margin-top: .9rem; padding: .7rem 1rem; background: var(--mint); border: 1px solid #a8c7ae; color: var(--navy); border-radius: .65rem .9rem; }
.notice.error { background: #ffe9e9; border-color: #e2abab; }
.dashboard form { margin-top: .64rem; }
label:not(.nominee):not(.check):not(.chart-select) { display: block; font-weight: 750; color: var(--navy); }
form > label, .form-grid > label, .share-options label { margin-bottom: .65rem; }
input:not([type=radio]):not([type=checkbox]):not([type=hidden]), textarea, select {
  width: 100%; display: block; min-height: 2.5rem; padding: .48rem .62rem; margin-top: .2rem;
  font: inherit; color: var(--navy); background: #fff; border: 1.5px solid #565886; border-radius: .57rem .8rem .62rem .67rem;
}
input[type=file] { font-size: .87rem; }
textarea { resize: vertical; }
.archive > label { margin-bottom: .15rem; }
.check { display: flex; align-items: start; gap: .5rem; line-height: 1.35; margin-block: .54rem .74rem; }
.check input, .nominee input { margin-top: .18rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--blue); }
.form-grid, .review-grid, .date-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem 1rem; }
.review-grid { margin-top: .7rem; }
.info-card h3 + p, .info-card > p, .info-card > ul { margin-top: .45rem; }
.info-card > summary { font-weight: 850; font-size: 1.11rem; color: var(--navy); cursor: pointer; }
.info-card > summary small { margin-left: .35rem; color: var(--muted); font-weight: 650; }
details.info-card { margin-top: .85rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.moderation .button { font-size: .86rem; min-height: 2.2rem; padding: .37rem .66rem; }
.subheading { margin-top: .87rem; }
.plain-list { list-style: none; padding: 0; margin-top: .55rem; }
.plain-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem; padding: .26rem .35rem; border-bottom: 1px solid var(--outline); }
.student-application { display: flex; align-items: center; gap: .85rem; margin-top: .6rem; }
.student-application .portrait { width: 5.2rem; margin: 0; flex: none; }
.ballot-panel { margin-top: .9rem; padding: .9rem; background: #fff; border-radius: 1.07rem 1.4rem; border: 1.5px solid var(--navy); box-shadow: 2px 3px 0 var(--navy); }
.ballot-options { border: 0; padding: 0; margin: 0 0 .62rem; min-width: 0; }
.ballot-options legend { margin-bottom: .48rem; font-weight: 800; color: var(--navy); }
.nominee-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.nominee {
  display: grid; align-items: start; grid-template-columns: auto minmax(2.8rem,5.7rem) minmax(0,1fr); gap: .48rem;
  padding: .6rem; border: 1px solid var(--outline); border-radius: .74rem 1.05rem .83rem .87rem; cursor: pointer;
}
.nominee:has(:checked) { background: var(--mint); border-color: var(--green); }
.nominee-preview { grid-template-columns: minmax(2.8rem,5.7rem) minmax(0,1fr); cursor: default; }
.ballot-panel > .nominee-grid { margin-top: .65rem; }
.nominee .portrait { width: 100%; }
.nominee-profile { display: grid; gap: .16rem; overflow-wrap: anywhere; }
.nominee-profile small { color: var(--muted); }
.statement { white-space: pre-line; }
.date-grid dt { color: var(--blue); font-weight: 800; }
.date-grid dd { margin: .25rem 0; color: var(--muted); }
.table-shell { overflow: auto; margin-top: .6rem; }
.table-shell table { border-collapse: collapse; width: 100%; }
.table-shell th, .table-shell td { padding: .56rem .66rem; border: 1px solid var(--outline); text-align: left; background: white; }
.table-shell th { color: var(--navy); background: var(--lilac); }
.logout { margin-top: 1.55rem; }
.flow h2, .slang h2, .stats-section h2 { display: inline-block; transform: rotate(-1.1deg); }
.chart h3, .explore-card h2 { transform: rotate(-1deg); }
@media (max-width: 800px) {
  .category-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .category-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
  .category-cards a { min-height: 4.4rem; padding: .52rem; }
  .category-cards a > .doodle { width: 100%; }
  .form-grid, .explore-grid, .resource-grid, .nominee-grid, .review-grid { grid-template-columns: 1fr; }
  .nominee { grid-template-columns: auto minmax(2.8rem,4.8rem) minmax(0,1fr); }
  .nominee-preview { grid-template-columns: minmax(2.8rem,4.8rem) minmax(0,1fr); }
  .stats-section .section-title { align-items: start; }
}
.info-banner h1 {
  display: inline-block; transform: rotate(-2deg);
  color: var(--yellow); -webkit-text-stroke: .022em var(--navy); text-shadow: .025em .038em var(--navy);
}
.chart h3 { display: inline-block; background: linear-gradient(transparent 61%, #ffffffb0 61% 96%, transparent 96%); }
.category-cards a { min-height: 5.45rem; grid-template-columns: minmax(2.45rem, 3.8rem) minmax(0, 1fr); font-size: clamp(.9rem, 1.35vw, 1.12rem); }
@media (max-width: 600px) {
  .category-cards a { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .category-cards a > .doodle { width: 3.45rem; }
}

.masthead {
  background: radial-gradient(circle, #8b91d646 1px, transparent 1.25px) 0 0 / 11px 11px, var(--blue);
  border-bottom: 3px solid var(--navy);
  color: white;
}
.masthead .wrap { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: .75rem 1.4rem; padding-block: .5rem; }
.masthead .brand { color: white; }
.masthead .brand-mark {
  width: 3.2rem; height: 3.15rem; padding: .18rem; transform: rotate(-5deg);
  background: white var(--logo) center / contain no-repeat; border: 2px solid var(--navy);
  border-radius: 28% 17% 24% 21%; box-shadow: 2px 3px var(--navy);
}
.brand-name { font-size: 1.45rem; white-space: nowrap; }
.brand-name em {
  display: inline-block; transform: rotate(-4deg); font-style: normal; color: var(--navy);
  padding: .14rem .31rem; background: var(--yellow); border: 1.7px solid var(--navy);
  border-radius: .34rem .52rem .31rem .51rem; box-shadow: 1.5px 2px var(--navy);
}
.masthead .domain { color: #e8e8ff; }
.masthead-links { display: flex; flex-wrap: wrap; gap: .26rem .5rem; justify-self: end; }
.masthead-links a {
  display: inline-flex; align-items: center; padding: .35rem .68rem;
  min-height: 2.65rem; border-radius: .62rem .8rem; font-weight: 800;
}
.masthead-links a:hover { color: var(--navy); background: var(--mint); }
.masthead-art { width: 3.55rem; transform: rotate(9deg); filter: drop-shadow(1px 2px 0 white); }
.masthead .button { min-height: 2.75rem; }
.masthead :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }

.footer {
  margin-top: 2.65rem; padding-block: 1.15rem 1.25rem; color: #fff;
  background: radial-gradient(circle, #80d69f40 1px, transparent 1.25px) 0 0 / 11px 11px, var(--navy);
  border-top: 4px solid var(--green);
}
.footer .wrap { flex-wrap: wrap; gap: .8rem 1.3rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; }
.footer-brand .doodle { width: 3.75rem; border-radius: 42% 37% 30% 44%; background-color: var(--mint); transform: rotate(-7deg); }
.footer-brand strong { display: block; font: 900 1.6rem/1 var(--display); color: var(--yellow); transform: rotate(-2deg); }
.footer-brand small { display: block; margin-top: .28rem; color: #ecedff; }
.footer nav { gap: .46rem .67rem; }
.footer nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .3rem .66rem;
  border: 1px solid #a3c9ad; border-radius: .61rem .93rem .54rem .77rem; font-weight: 800;
}
.footer nav a:hover { color: var(--navy); background: var(--mint); text-decoration: none; }
.poll-sign-in { margin-top: .85rem; }
.ballot-panel .check { padding: .48rem .6rem; min-height: 2.75rem; align-items: center; border: 1px solid var(--outline); border-radius: .62rem .9rem; }
.ballot-panel .check:has(:checked) { background: var(--mint); border-color: var(--green); }
.ballot-panel .button { min-height: 2.75rem; }
.ballot-panel form { margin-top: .65rem; }

@media (max-width: 860px) {
  .masthead .wrap { grid-template-columns: auto minmax(0,1fr) auto; }
  .masthead-art { display: none; }
}
@media (max-width: 640px) {
  .masthead .wrap { grid-template-columns: minmax(0,1fr) auto; gap: .22rem .45rem; }
  .masthead .button { grid-column: 2; grid-row: 1; max-width: 9.5rem; padding-inline: .55rem; font-size: .86rem; }
  .masthead .brand { gap: .28rem; }
  .masthead .brand-mark { width: 2.48rem; height: 2.49rem; }
  .brand-name { font-size: clamp(1rem, 4.25vw, 1.38rem); }
  .masthead .domain { font-size: .68rem; }
  .masthead-links { grid-column: 1 / -1; justify-self: start; gap: .25rem; }
  .masthead-links a { padding: .3rem .53rem; min-height: 2.75rem; font-size: .86rem; }
  .section-title { flex-wrap: wrap; align-items: start; }
  .banner h1, .info-banner h1 { font-size: clamp(2.28rem, 10.3vw, 3.7rem); }
  .resource-card .doodle { width: 3.6rem; }
  .resource-card > .eyebrow, .resource-card > h2, .resource-card > h3, .resource-card > .metric { padding-right: 3.45rem; }
  .footer .wrap { align-items: flex-start; }
}
@media (max-width: 365px) {
  .masthead .button { max-width: 7.25rem; }
  .masthead .brand-mark { width: 2.12rem; height: 2.14rem; }
  .banner h1, .info-banner h1 { font-size: 2.18rem; }
  .category-cards a > .doodle { width: 2.75rem; }
}

/* Illustrated ballots, timelines, and live tallies. */
.banner-links { margin-top: .45rem; gap: .35rem 1rem; }
.banner-links .source-link { margin-top: 0; }
.illustrated-categories { gap: .8rem; margin-block: 1.35rem; }
.illustrated-categories a {
  grid-template-columns: 1fr; align-content: start; justify-items: center; gap: .32rem;
  min-height: 9.8rem; padding: .7rem .45rem; text-align: center;
  background: radial-gradient(circle, #ffffff96 .9px, transparent 1px) 0 0 / 8px 8px, var(--card);
  border-width: 2px; box-shadow: 3px 4px var(--navy);
}
.illustrated-categories a:hover, .illustrated-categories a[aria-current="page"] {
  background: radial-gradient(circle, #d09c3856 1px, transparent 1.2px) 0 0 / 8px 8px, var(--yellow);
  transform: translateY(-2px) rotate(-.55deg);
}
.illustrated-categories a > .doodle { width: clamp(3rem, 7vw, 5.55rem); filter: drop-shadow(2px 2px 0 white); }
.illustrated-categories .category-label strong { font-size: clamp(1.06rem, 2vw, 1.6rem); }
.illustrated-categories .category-label small { color: var(--navy); font-size: .8rem; }
.election-timeline {
  margin-top: 1.25rem; padding: clamp(.65rem, 2vw, 1.15rem);
  border: 2px solid var(--navy); border-radius: 1.32rem 1.76rem 1.14rem 1.62rem;
  background: var(--lilac); box-shadow: 3px 4px var(--navy);
}
.timeline-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .7rem; margin-bottom: .65rem; }
.timeline-heading h2 { font-size: clamp(1.36rem, 3vw, 2rem); }
.timeline-heading p { margin-top: .22rem; font-weight: 750; color: var(--blue); }
.timeline-heading small { margin-left: auto; font-weight: 780; }
.timeline-heading .doodle { width: 3.35rem; transform: rotate(-7deg); }
.timeline-stages { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .64rem; }
.timeline-stage { min-width: 0; padding: .54rem .77rem .64rem; background: white; border: 1.5px solid var(--navy); border-radius: .7rem 1.1rem .66rem .88rem; }
.timeline-stage.current-stage { background: var(--mint); border-color: var(--green); box-shadow: 2px 2px var(--green); }
.timeline-stage h3 { font-size: 1.11rem; }
.timeline-stage dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .35rem .76rem; margin: .3rem 0 0; }
.timeline-stage dt { color: var(--muted); font-size: .76rem; font-weight: 820; text-transform: uppercase; letter-spacing: .04em; }
.timeline-stage dd { margin: .05rem 0 0; color: var(--navy); font-size: .92rem; font-weight: 750; overflow-wrap: anywhere; }

.contest-grid { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: .9rem; }
.contest-grid.has-ballot { grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr); }
.contest-grid .ballot-panel { margin-top: 0; }
.contest-grid .nominee-grid { grid-template-columns: minmax(0,1fr); margin: .35rem 0; }
.contest-grid .nominee { background: #eef4ff; border-color: #a5abc6; }
.contest-grid .nominee:nth-child(even) { background: var(--mint); }
.contest-grid .nominee:has(:checked) { background: var(--gold); border-color: var(--navy); box-shadow: 2px 2px var(--navy); }
.live-poll-card {
  margin-top: .9rem; padding: clamp(.67rem, 2.15vw, 1.15rem); background: var(--rose);
  border: 2px solid var(--navy); border-radius: 1.55rem 1.13rem 1.62rem 1.23rem; box-shadow: 3px 4px var(--navy);
}
.live-poll-card:nth-of-type(even) { background: var(--lilac); }
.poll-card-heading { display: flex; align-items: center; gap: .75rem; margin-bottom: .68rem; }
.poll-card-heading .doodle { width: 3.75rem; transform: rotate(-6deg); }
.poll-card-heading h3 { font-size: clamp(1.3rem, 3.4vw, 2.05rem); overflow-wrap: anywhere; }
.live-poll-card form { padding: .72rem .8rem; border: 1.5px solid var(--navy); border-radius: .87rem 1.12rem .83rem 1.2rem; background: white; }
.live-poll-card .check { min-height: 2.75rem; padding: .43rem .54rem; border: 1px solid var(--outline); border-radius: .5rem .77rem; }
.live-poll-card .check:has(:checked) { background: var(--gold); border-color: var(--navy); }
.tally-chart {
  margin: 0; min-width: 0; min-height: 0; padding: .73rem .88rem .9rem;
  background: radial-gradient(circle, #ffffff9e 1px, transparent 1.2px) 0 0 / 11px 11px, var(--gold);
  border-radius: 1.25rem .88rem 1.42rem 1rem;
}
.tally-caption { min-height: 3.85rem; }
.tally-caption h3 { font-size: clamp(1.15rem, 2.8vw, 1.57rem); overflow-wrap: anywhere; }
.tally-caption p { font-weight: 750; }
.tally-caption .doodle { width: clamp(2.85rem, 6vw, 4.55rem); }
.tally-chart .chart-select { margin-block: .38rem .63rem; }
.tally-chart .chart-select select { min-height: 2.72rem; background: white; }
.tally-bars, .tally-comics { list-style: none; margin: 0; padding: 0; }
.tally-bars { display: grid; gap: .38rem; }
.tally-bars li { padding: .34rem .51rem .48rem; border: 1px solid var(--navy); border-radius: .52rem .76rem; background: white; }
.tally-row { display: flex; justify-content: space-between; align-items: baseline; gap: .33rem; font-weight: 800; }
.tally-row span { overflow-wrap: anywhere; }
.tally-row b { white-space: nowrap; }
.tally-row small { color: var(--muted); }
.tally-chart .tally-bars progress { display: block; width: 100%; height: .74rem; margin-top: .23rem; appearance: none; border: 1px solid var(--navy); border-radius: 999px; background: var(--lilac); overflow: hidden; }
.tally-chart progress::-webkit-progress-bar { background: var(--lilac); }
.tally-chart progress::-webkit-progress-value { background: var(--fill, var(--green)); }
.tally-chart progress::-moz-progress-bar { background: var(--fill, var(--green)); }
.tally-comics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .49rem; }
.tally-comics li { display: grid; align-content: start; gap: .23rem; background: white; padding: .55rem .66rem; border: 1.65px solid var(--navy); border-radius: .58rem .91rem .69rem .92rem; box-shadow: 1.5px 2px var(--navy); }
.tally-comics li:nth-child(3n+1) { background: var(--mint); }
.tally-comics li:nth-child(3n+2) { background: var(--rose); }
.tally-comics span { font-weight: 800; overflow-wrap: anywhere; }
.tally-comics b { font: 900 clamp(1.38rem, 3vw, 1.95rem)/1 var(--display); }
.tally-comics small { color: var(--muted); font-weight: 750; }
.tally-chart .chart-labels li { overflow-wrap: anywhere; }
.published-chart { min-width: 0; padding: .42rem; border-radius: 1.2rem; background: var(--lilac); }
.published-chart > .share-menu { margin-inline: .35rem; }

.voting-history { margin-top: 1.75rem; padding: .65rem 1rem .85rem; border: 2px solid var(--navy); border-radius: 1.3rem 1.6rem 1.13rem 1.48rem; background: var(--mint); box-shadow: 3px 4px var(--navy); }
.voting-history .section-title { align-items: center; margin-bottom: .32rem; }
.voting-history .doodle { width: 3.45rem; transform: rotate(-8deg); }
.semester-history { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .55rem; padding: 0; margin: .48rem 0 0; list-style: none; }
.semester-history a { display: grid; gap: .12rem; min-height: 2.75rem; background: white; padding: .4rem .65rem; border: 1.5px solid var(--navy); border-radius: .6rem .95rem; }
.semester-history a:hover { background: var(--yellow); }
.semester-history strong { color: var(--navy); }
.semester-history small { color: var(--muted); }
@media (max-width: 720px) {
  .contest-grid.has-ballot { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  .timeline-stages { grid-template-columns: minmax(0,1fr); }
  .timeline-heading small { margin-left: 0; }
  .timeline-stage dd { font-size: .85rem; }
  .poll-card-heading .doodle { width: 2.75rem; }
  .illustrated-categories { gap: .55rem; }
  .illustrated-categories a { min-height: 7.7rem; }
}
