:root {
  color-scheme: light;
  --ink: #21172d;
  --muted: #665d70;
  --purple: #541cbd;
  --dark-purple: #401294;
  --lavender: #f2ebff;
  --line: #e6dfed;
  --accent: #ddfb91;
  --header: 68px;
  font-family: Arial, "Helvetica Neue", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.5; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9263f1; outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.12; letter-spacing: -.035em; }
svg { width: 21px; height: 21px; flex: none; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 10; background: #fff; padding: 10px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.header {
  --header-current: var(--header);
  --header-reduction: 18px;
  position: sticky;
  top: 0;
  z-index: 5;
  height: var(--header-current);
  margin-bottom: calc(var(--header) - var(--header-current));
  color: #fff;
  background: var(--purple);
  transition: height .18s ease, margin-bottom .18s ease;
}
.header[data-compact] { --header-current: calc(var(--header) - var(--header-reduction)); }
.header-inner { height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 950; font-size: 27px; line-height: 1; letter-spacing: -.075em; }
.wordmark-symbol { display: flex; width: 27px; height: 27px; align-items: center; justify-content: center; gap: 3px; transform: rotate(-17deg); }
.wordmark-symbol i { height: 22px; width: 9px; display: block; border-radius: 6px; background: var(--accent); }
.wordmark-symbol i:first-child { height: 14px; align-self: end; margin-bottom: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-action { min-height: 43px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: inherit; text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-action:hover, .nav-action[aria-current] { background: #ffffff24; }
.nav-action.profile { width: 43px; padding: 0; justify-content: center; background: #ffffff1a; }
.nav-action.menu { border: 1px solid #ffffff55; }
.hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); grid-template-areas: "intro callout" "count count" "controls controls"; column-gap: 64px; align-items: stretch; padding-top: 52px; }
.intro { grid-area: intro; padding: 3px 0 28px; }
.demo-label { display: inline-flex; gap: 8px; align-items: center; color: var(--purple); font-size: 13px; font-weight: 750; margin-bottom: 16px; }
.demo-label::before { content: ""; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; }
.intro h1 { max-width: 700px; font-size: clamp(36px, 4.7vw, 66px); line-height: 1.02; letter-spacing: -.058em; }
.intro h1 span { display: block; color: var(--purple); }
.intro p:not(.demo-label) { margin-top: 17px; max-width: 620px; line-height: 1.52; color: var(--muted); }
.callout { grid-area: callout; position: relative; min-height: 215px; margin-bottom: 28px; padding: 22px 23px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: end; border: 1px solid #e7dafa; border-radius: 18px; background: var(--lavender); isolation: isolate; }
.callout::after { content: ""; position: absolute; top: -70px; right: -80px; width: 250px; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: repeating-radial-gradient(circle, transparent 0 16px, #dac5f8 17px 18px, transparent 19px 26px); transform: rotate(-20deg); }
.callout-mark { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 11px; background: var(--accent); color: #321168; }
.callout h2 { max-width: 270px; font-size: 26px; }
.callout p { max-width: 280px; margin: 7px 0 13px; font-size: 14px; color: #574767; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-weight: 700; background: #fff; color: var(--ink); text-decoration: none; text-align: center; }
.btn:hover { border-color: #cdb7ee; background: #f8f4ff; }
.btn.primary { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn.primary:hover { background: var(--dark-purple); border-color: var(--dark-purple); }
.btn.light { color: var(--purple); background: var(--lavender); border-color: transparent; }
.btn .small { width: 17px; height: 17px; }
.subtle { padding: 4px; border: 0; color: var(--purple); background: transparent; font-size: 14px; font-weight: 700; }
.subtle:hover { text-decoration: underline; }
.count-panel { grid-area: count; margin-bottom: 14px; border: 1px solid #e7dafa; border-radius: 10px; background: #f7f2ff; }
.count-panel summary { display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 8px 14px; list-style: none; cursor: pointer; font-size: 15px; }
summary::-webkit-details-marker { display: none; }
.count-panel summary svg { color: var(--purple); width: 18px; height: 18px; }
.count-panel summary .chevron { margin-left: auto; }
details[open] > summary .chevron { transform: rotate(180deg); }
.type-counts { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px 13px; }
.type-counts button { min-height: 32px; padding: 3px 9px; background: white; border: 1px solid #e4d7f8; border-radius: 7px; color: var(--purple); font-size: 14px; }
.type-counts button:hover { background: var(--lavender); }
.catalog-tools { grid-area: controls; min-width: 0; scroll-margin-top: calc(var(--header) + 14px); }
.search-box { display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 0 14px; border: 1px solid #d8cce4; border-radius: 10px; }
.search-box > svg { color: var(--purple); }
.search-box:focus-within { border-color: #8653de; box-shadow: 0 0 0 3px var(--lavender); }
.search-box input { flex: 1; width: 0; min-width: 0; padding: 9px 0; outline: 0; border: 0; background: transparent; color: var(--ink); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box input::placeholder { color: #6f6677; }
.icon-button { display: inline-grid; place-items: center; min-width: 39px; min-height: 39px; padding: 7px; border: 0; border-radius: 9px; background: transparent; color: var(--purple); }
.icon-button:hover { background: var(--lavender); }
[hidden] { display: none !important; }
.filter-row { display: flex; gap: 8px; overflow: auto; scrollbar-width: thin; margin-top: 13px; padding: 3px 3px 6px; }
.chip { min-height: 39px; display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; padding: 6px 13px; border-radius: 100px; border: 1px solid var(--line); background: #faf8fc; color: #382d42; font-size: 14px; font-weight: 700; white-space: nowrap; }
.chip svg { width: 15px; height: 15px; }
.chip:hover,.chip[aria-pressed="true"] { background: var(--lavender); border-color: #d5bdf7; color: var(--purple); }
.filter-meta { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; color: var(--muted); min-height: 39px; font-size: 14px; }
.filter-meta-label { margin-right: auto; }
.selected-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.selected-filters .chip { min-height: 31px; color: var(--purple); padding-inline: 10px; }
.results { margin-top: 21px; min-height: 240px; padding-bottom: 40px; scroll-margin-top: calc(var(--header) + 12px); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0 15px; border-top: 1px solid var(--line); }
.results-head h2 { font-size: clamp(21px, 3vw, 33px); }
.results-head h2 span { font-weight: 400; color: var(--muted); font-size: .76em; white-space: nowrap; }
.sort { position: relative; flex: none; }
.sort svg { position: absolute; top: 50%; right: 13px; width: 15px; height: 15px; transform: translateY(-50%); pointer-events: none; color: var(--purple); }
.sort select { min-height: 39px; max-width: 100%; padding: 6px 35px 6px 11px; border: 1px solid var(--line); border-radius: 8px; appearance: none; color: var(--ink); background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 20px; }
.card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-bottom: 2px solid var(--purple); border-radius: 13px 13px 0 0; }
.cover { position: relative; height: auto; aspect-ratio: 2 / 1; overflow: hidden; background: var(--cover, #ebe0ff); border-radius: 12px 12px 0 0; }
.cover-link { display: block; height: 100%; }
.cover img, .detail-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-link:hover img { filter: brightness(1.06); }
.bookmark { position: absolute; top: 10px; right: 10px; border-radius: 50%; box-shadow: 0 2px 6px #29104622; background: #fff; }
.bookmark[aria-pressed="true"] svg,.detail-actions button[aria-pressed="true"] svg { fill: var(--purple); }
.card-content { padding: 13px 14px 12px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-type { color: var(--purple); font-size: 13px; font-weight: 750; line-height: 1.3; margin-bottom: 5px; }
.card h3 { font-size: 21px; line-height: 1.15; color: var(--ink); }
.card h3 a { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; }
.card h3 a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.organizers { min-width: 0; display: flex; gap: 4px; align-items: baseline; margin-top: 5px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.facts { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 5px; }
.facts li { display: flex; align-items: start; gap: 8px; min-width: 0; font-size: 14px; }
.facts svg { height: 17px; width: 17px; margin-top: 2px; color: var(--purple); }
.card .facts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts .closed { color: var(--muted); }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 3px; min-height: 38px; margin-top: auto; border-top: 1px solid #eee8f3; padding-top: 6px; }
.verify { display: inline-flex; gap: 5px; align-items: center; padding: 4px 3px; color: #225b3d; background: transparent; border: 0; font-size: 13px; font-weight: 750; text-align: left; }
.verify svg { width: 17px; height: 17px; }
.verify:hover { text-decoration: underline; }
.card-actions .calendar { margin-left: auto; }
.empty { min-height: 190px; display: grid; justify-items: center; gap: 8px; align-content: center; padding: 24px; text-align: center; background: #faf7fe; border: 1px solid var(--line); border-radius: 13px; }
.empty h3 { font-size: 22px; }
.empty p { color: var(--muted); }
.page { padding-block: 32px 50px; }
.page-header { margin: 15px 0 23px; }
.page-header h1 { font-size: clamp(34px,5.4vw,56px); }
.page-header p,.muted { color: var(--muted); }
.page-header p { margin-top: 8px; }
.back { display: inline-flex; gap: 7px; align-items: center; text-decoration: none; color: var(--purple); font-weight: 700; font-size: 14px; }
.back:hover { text-decoration: underline; }
.back svg { width: 17px; height: 17px; }
.opportunity-page > :not(header) + :not(header) { margin-top: 19px; }
.detail-cover { overflow: hidden; background: var(--cover); }
@media (min-width: 641px) {
  .opportunity-page .detail-cover { width: fit-content; max-width: min(760px, calc(100% - 40px)); margin-inline: auto; background: transparent; }
  .opportunity-page .detail-img { width: auto; max-width: 100%; max-height: min(440px, 55vh); }
}
.detail-body { display: grid; gap: 19px; min-width: 0; }
.detail-body > * { max-width: 760px; }
.detail-body h2,.detail-side h2,.surface h2 { font-size: 23px; margin-bottom: 8px; }
.detail-body ul { padding-left: 21px; margin: 6px 0 0; }
.opportunity-intro p + p { margin-top: 9px; }
.detail-side,.surface { padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: #faf7ff; }
.detail-band { padding: 19px 0; border-inline: 0; border-radius: 0; }
.detail-side .facts { margin-block: 0 10px; }
.detail-side .facts li { font-size: 15px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.tracker-action { min-height: 44px; padding-inline: 0; text-decoration: underline; text-underline-offset: 3px; }
.detail-disclosure { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.detail-disclosure summary { cursor: pointer; font-weight: 700; }
.detail-disclosure p { margin-top: 8px; color: var(--muted); }
.detail-title { max-width: 880px; }
.demo-note { display: block; font-size: 14px; color: var(--muted); margin-top: 9px; }
.schedule-paragraphs { display: grid; gap: 9px; }
.schedule-paragraphs p { margin: 0; }
.stack { display: grid; gap: 10px; }
.stack-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.stack-row > :first-child { margin-right: auto; }
.stack-row select { max-width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 7px; padding: 5px; color: var(--ink); background: #fff; }
dialog { width: min(520px,calc(100% - 24px)); max-height: calc(100% - 28px); padding: 0; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); box-shadow: 0 15px 65px #29114e38; }
dialog::backdrop { background: #21132d74; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 17px 10px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 25px; }
.dialog-body { padding: 15px 17px 18px; }
.dialog-body p { margin-bottom: 12px; }
.dialog-actions { margin-top: 15px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 7px; }
.choice { display: flex; align-items: center; gap: 7px; min-height: 39px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; cursor: pointer; }
.choice:has(input:checked) { background: var(--lavender); border-color: #d2b8f7; }
.choice input { accent-color: var(--purple); }
.fieldset { padding: 0; margin: 0 0 13px; border: 0; min-width: 0; }
.fieldset legend { font-weight: 700; margin-bottom: 7px; }
.field { display: grid; gap: 5px; margin-top: 12px; font-weight: 700; }
.field input,.field select { min-height: 40px; width: 100%; border: 1px solid #d9cae6; border-radius: 8px; padding: 5px 8px; background: #fff; color: var(--ink); font-weight: 400; }
.menu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.menu-list a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.menu-list a:hover,.menu-list a[aria-current] { background: var(--lavender); color: var(--purple); }
.menu-list svg { color: var(--purple); }
.menu-list li:nth-child(5) { border-top: 1px solid var(--line); padding-top: 5px; }
.toast { position: fixed; bottom: 16px; left: 50%; transform: translate(-50%,12px); z-index: 8; max-width: calc(100% - 26px); padding: 9px 13px; color: #fff; background: #311554; border-radius: 9px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 930px) {
  .shell { width: calc(100% - 40px); }
  .hero { column-gap: 24px; padding-top: 34px; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  :root { --header: 58px; }
  .header { --header-reduction: 10px; }
  .shell { width: auto; margin-inline: 16px; }
  .header-inner { margin-inline: 13px; }
  .wordmark { font-size: clamp(22px,6vw,29px); gap: 6px; }
  .wordmark-symbol { width: 20px; transform: rotate(-17deg) scale(.83); }
  .header-actions { gap: 2px; }
  .nav-action { width: 40px; height: 42px; min-height: 42px; padding: 0; justify-content: center; }
  .nav-action.profile { width: 40px; background: transparent; }
  .nav-action.menu { border: 0; }
  .nav-action .nav-label { display: none; }
  .hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "count" "controls" "callout"; padding-top: 22px; }
  .intro { padding: 0 0 17px; }
  .intro h1 { font-size: clamp(31px,8.4vw,53px); }
  .intro p:not(.demo-label) { margin-top: 12px; }
  .demo-label { margin-bottom: 11px; }
  .count-panel { margin-bottom: 12px; }
  .callout { min-height: 0; margin: 10px 0 0; padding: 13px; }
  .callout h2 { font-size: 21px; }
  .callout p { margin: 5px 0 8px; }
  .callout-mark { display: none; }
  .results { margin-top: 13px; }
  .results-head { gap: 6px; padding: 12px 0; }
  .results-head h2 { font-size: clamp(17px,4.8vw,25px); }
  .results-head .sort select { max-width: 137px; }
  .card-grid { grid-template-columns: minmax(0,1fr); gap: 0; margin-inline: -16px; }
  .card { border-width: 0 0 2px; border-radius: 0; }
  .cover { border-radius: 0; }
  .card-content { padding: 13px 16px 11px; }
  .card h3 { font-size: 22px; color: var(--purple); }
}
@media (max-width: 360px) {
  .wordmark-symbol { display: none; }
  .filter-meta { column-gap: 6px; }
  .filter-meta button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
/* Layout follows the homepage and feed mockups. */
:root {
  --ink: #151217;
  --muted: #55515b;
  --purple: #551bc0;
  --lavender: #f6f0fb;
}
.header-inner, .hero, .results { max-width: 860px; }
.wordmark { min-width: 0; }
.wordmark img { display: block; width: clamp(120px, 31vw, 200px); max-width: 100%; height: auto; }
.nav-action, .nav-action.profile, .nav-action.menu {
  width: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
  background: transparent;
  border: 0;
}
.nav-action .nav-label { display: none; }
.nav-action:hover, .nav-action[aria-current] { background: #ffffff24; }
.header-actions svg { width: 25px; height: 25px; }
.hero {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "callout" "count" "controls";
  padding-top: clamp(24px, 5vw, 55px);
  row-gap: clamp(17px, 3vw, 30px);
}
.intro { padding: 0; text-align: center; }
.intro h1 {
  max-width: none;
  font-size: clamp(28px, 7.6vw, 62px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.intro p:not(.demo-label) { max-width: 590px; margin: 12px auto 0; color: var(--ink); font-size: clamp(16px, 3.7vw, 23px); }
.callout {
  display: grid;
  justify-content: center;
  justify-items: center;
  min-height: 0;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  background: transparent;
  text-align: center;
}
.callout::after { content: none; }
.callout p { max-width: 450px; margin: 0 0 9px; color: var(--purple); font-size: clamp(16px, 3.6vw, 22px); }
.callout .btn { padding-inline: 20px; border-radius: 40px; font-size: clamp(16px, 3.7vw, 21px); }
.count-panel { margin: 0; border: 0; border-radius: 0; background: var(--lavender); }
.count-panel summary { justify-content: space-between; min-height: 48px; }
.count-toggle { display: inline-flex; align-items: center; gap: 5px; }
.count-panel summary svg { color: var(--ink); }
.search-box { border-radius: 0; border-color: #aaa4ad; }
.search-box > svg { color: #77717c; }
.filter-row { scrollbar-width: none; padding-inline: 1px; }
.filter-row::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .filter-row {
    margin-inline-end: -16px;
    padding-inline-end: 16px;
  }
  .filter-row[data-can-scroll-right] {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
}
.filter-row .chip { background: #e8e6e9; border-color: transparent; color: var(--ink); }
.filter-row .chip:hover, .filter-row .chip[aria-pressed="true"] { color: var(--purple); background: var(--lavender); border-color: #d5bdf7; }
.filter-meta { min-height: 0; justify-content: end; }
.filter-meta-label, .filter-meta button:disabled { display: none; }
.selected-filters:empty { display: none; }
.results-head {
  padding: 10px 16px;
  border-top: 2px solid var(--purple);
  background: var(--lavender);
}
.results-head h2 { font-size: clamp(17px, 4.1vw, 28px); letter-spacing: -.025em; }
.sort select { border: 0; background: transparent; font-weight: 400; }
.sort svg { color: var(--ink); }
.results-meta { padding: 9px 16px; color: var(--muted); font-size: 14px; }
#personal-summary:not(:empty) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.card-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; }
.card {
  --card-inset-x: 16px;
  --card-inset-y: clamp(12px, 3vw, 22px);
  position: relative;
  padding: var(--card-inset-y) var(--card-inset-x);
  cursor: pointer;
  border: 0;
  border-top: 1px solid var(--purple);
  border-radius: 0;
  background: #f8f3fc;
}
.card-top {
  --card-top-gap: clamp(9px, 2.8vw, 22px);
  display: grid;
  grid-template-columns: minmax(0, calc((100% - var(--card-top-gap) - var(--card-inset-x)) * .38 + var(--card-inset-x))) minmax(0, 1fr);
  gap: var(--card-top-gap);
  align-items: start;
  margin-top: calc(-1 * var(--card-inset-y));
  margin-left: calc(-1 * var(--card-inset-x));
}
.cover { aspect-ratio: 1; border: 1px solid var(--purple); border-radius: 0 0 12px 0; overflow: hidden; }
.card-top > .cover { border-top: 0; }
.cover img:is([src$="/itmo-realizuy-vk.jpg"], [src*="/itmo-realizuy-vk-card-"]) { transform: scale(1.05); }
[data-opportunity="vavilov-math-2026"] .cover img,
[data-opportunity="lomonosov-tech-2026"] .cover img { object-fit: contain; }
[data-opportunity="spbu-school-olympiad-2026"] .cover img {
  object-position: left center;
  transform: scale(1.31);
  transform-origin: 68% 19%;
}
.detail-img { height: auto; object-fit: contain; }
.bookmark { top: 4px; right: 4px; min-width: 44px; min-height: 44px; box-shadow: none; border-radius: 9px; }
.bookmark svg { width: 27px; height: 27px; }
.card-content { display: block; padding: var(--card-inset-y) 0 0; }
.card :is(.organizers, .facts) { cursor: text; }
.card h3 { font-size: clamp(18px, 4vw, 32px); letter-spacing: -.025em; line-height: 1.2; color: var(--purple); overflow-wrap: anywhere; }
.card h3 a { display: inline; overflow: visible; }
.organizers { flex-wrap: wrap; margin-top: 8px; white-space: normal; font-size: clamp(14px, 3.3vw, 20px); }
.card .organizers > :not([hidden]) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card .organizers button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  user-select: text;
}
.card .organizers button[aria-expanded="true"] { display: block; }
.card-meta { position: relative; margin-top: 10px; }
.card-meta .facts { margin-block: 0; }
.card-meta .facts li { font-size: clamp(14px, 3.4vw, 19px); }
.card .facts span { overflow: visible; white-space: normal; }
.card .facts svg { color: #747179; }
.card .facts .calendar-inline { display: inline-block; white-space: nowrap; }
.calendar-link { padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.calendar-link:hover { color: var(--purple); }
.card-content .verify {
  min-height: 28px;
  max-width: 100%;
  padding: 0;
  color: #27726d;
  font-size: 12px;
}
.card-content .verify svg { order: 1; }
.personal-topics { margin-top: 16px; }
@media (max-width: 640px) {
  .header-inner { gap: 5px; }
  .card { --card-inset-x: 12px; }
  .card-meta .facts li { font-size: clamp(13px, 3.6vw, 16px); column-gap: 6px; }
  .header-actions { gap: 0; }
  .nav-action.profile { width: 44px; }
  .results, .page .card-grid { margin-inline: 0; }
  .results-head .sort select { max-width: 135px; padding-right: 23px; }
  .sort svg { right: 5px; }
}
@media (max-width: 335px) {
  .header-inner { margin-inline: 8px; }
  .wordmark img { width: 106px; }
}
@media (min-width: 768px) {
  .nav-action.filters, .nav-action.search, .nav-action.menu { width: auto; padding-inline: 11px; }
  .nav-action .nav-label { display: inline; }
}
.multi-select, .fieldset select {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}
.multi-select summary { display: flex; align-items: center; gap: 9px; padding: 9px 11px; cursor: pointer; }
.multi-select summary svg { margin-left: auto; width: 16px; }
.multi-select[open] summary svg { transform: rotate(180deg); }
.multi-select .choices { padding: 0 9px 9px; }
.fieldset select { width: 100%; min-height: 42px; padding-inline: 8px; }
.save-line { display: flex; align-items: center; gap: 8px; min-height: 38px; cursor: pointer; }
.save-line { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; }
.save-line input { accent-color: var(--purple); }
.region-picker { display: grid; gap: 8px; }
.region-embedded .region-picker { padding: 0 10px 10px; }
.region-picker .field { margin-top: 0; }
.region-options { display: grid; gap: 5px; max-height: 15rem; overflow: auto; }
.region-options .btn { justify-content: start; }
.region-options .btn[aria-pressed="true"] { color: var(--purple); background: var(--lavender); }
.grade-field { margin: 0 0 13px; }
.organizers { display: block; }
.facts li { display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: start; column-gap: 8px; }
.facts li > svg, .format-icons { margin: max(0px, calc(.75em - 9px)) 0 0; }
.facts li > svg, .facts .format-icons svg { width: 18px; height: 18px; }
.format-icons { display: grid; gap: 2px; }
.facts .format-icons svg { margin: 0; }
.combined-format-icon { position: relative; display: block; width: 18px; height: 18px; }
.facts .combined-format-icon svg { position: absolute; width: 15px; height: 15px; top: 0; left: 0; }
.facts .combined-format-icon svg + svg { width: 11px; height: 11px; inset: auto 0 0 auto; fill: #fff; }
.card .facts .combined-format-icon svg + svg { fill: #f8f3fc; }
.bookmark {
  display: grid;
  place-items: center;
  inset: 0 0 auto auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
}
.bookmark:hover { background: transparent; }
.bookmark svg {
  width: 27px;
  height: 29px;
  padding: 3px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 4px #26163a40;
}
.bookmark:hover svg { background: var(--lavender); }
