/* Grad Assistantships USA
   Palette: night forest (hero), lichen and paper (page), spruce (ink and actions), goldenrod (deadlines),
   ember (closing very soon). Each research field has its own colour, set as --field on the element. */
@font-face { font-family: "Young Serif"; src: url("fonts/YoungSerif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/PublicSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/PublicSans-600.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/PublicSans-800.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  /* Sunrise meadow: cream and peach, sage for the land, forest green for actions, terracotta accents */
  --cream: #fffaf3;
  --cream-2: #fbf3e8;
  --peach: #ffe9d6;
  --sand: #f3e7d6;
  --sage: #dcebd2;
  --sage-2: #c7e0b8;
  --night: #234f35;          /* footer and dark panels: deep forest */
  --night-line: #f0e4d4;
  --lichen: #f6ecdf;         /* soft fills: tabs, tags */
  --lichen-2: #fdf6ec;
  --paper: #fffaf3;
  --card: #ffffff;
  --ink: #2a2118;
  --ink-soft: #6c5d4f;
  --ink-faint: #9a8b7c;
  --spruce: #2f6b46;
  --spruce-deep: #234f35;
  --moss: #dcebd2;
  --rule: #f0e4d4;
  --gold: #d9961c;
  --gold-deep: #8f5d00;
  --gold-wash: #fcefd6;
  --ember: #e0703c;
  --terra: #e0703c;
  --terra-deep: #b4521f;
  --ember-wash: #fde6d9;
  --mint: #e0703c;
  --field: #2f6b46;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(80, 50, 20, .06), 0 2px 8px -2px rgba(80, 50, 20, .08);
  --shadow: 0 2px 4px rgba(80, 50, 20, .05), 0 18px 40px -18px rgba(80, 50, 20, .25);
  --ease: cubic-bezier(.22, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--spruce); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--spruce-deep); text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--terra); color: #fff; padding: 8px 14px; z-index: 50; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- top bar */
.bar { position: relative; z-index: 5; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.12rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 46% 54%, var(--gold) 0 2.5px, transparent 3px),
              repeating-radial-gradient(circle at 46% 54%, transparent 0 3px, currentColor 3px 4.4px);
  color: var(--spruce); box-shadow: inset 0 0 0 2px currentColor; }
.bar nav { display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.bar nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; display: inline-flex; align-items: center; gap: 6px; }
.bar nav a:hover { color: var(--ink); background: rgba(45, 90, 67, .08); }
.bar nav .pill { border: 1.5px solid currentColor; color: var(--spruce); font-weight: 600; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--terra); color: #fff; font-size: .75rem; font-weight: 800; }
.bar-dark .brand { color: var(--ink); }
.bar-dark nav .pill { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.bar-dark nav .pill:hover { background: var(--spruce-deep); color: #fff; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; color: var(--ink); overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #ffe7d2 0%, #fdf2e2 46%, #e3f0dc 100%); }
.hero-top { position: relative; z-index: 3; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: 8%; top: -220px; background: #ffc9a3; opacity: .55; }
.hero::after { width: 480px; height: 480px; left: -160px; bottom: -220px; background: #bfe3b4; opacity: .6; }
.hero-rings { position: absolute; z-index: -1; left: -260px; bottom: -330px; width: 760px; height: 760px; opacity: .35; pointer-events: none; }
.hero-rings path { fill: none; stroke: #c3a98a; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-top: 24px; padding-bottom: 92px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(224, 112, 60, .13); color: var(--terra-deep); font-size: .9rem; font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 0 rgba(224, 112, 60, .6); }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px; color: var(--ink); }
.rot-wrap { display: block; height: 1.12em; overflow: hidden; }
.rot { display: inline-block; color: var(--terra); border-bottom: .07em solid var(--terra); line-height: 1.02; white-space: nowrap; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.rot.out { transform: translateY(-70%); opacity: 0; }
.rot.in { transform: translateY(70%); opacity: 0; transition: none; }
.lede { font-size: 1.12rem; line-height: 1.65; max-width: 34em; margin: 0 0 26px; color: var(--ink-soft); }
.search { position: relative; display: block; max-width: 620px; }
.search svg { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--spruce); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; font: inherit; font-size: 1.1rem; color: var(--ink); padding: 19px 52px 19px 54px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .8); background: #fff; box-shadow: 0 24px 48px -22px rgba(120, 70, 30, .45); transition: box-shadow .25s; }
.search input::placeholder { color: #a29484; }
.search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(224, 112, 60, .3), 0 24px 48px -22px rgba(120, 70, 30, .45); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cream-2); color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.search .clear svg { position: static; transform: none; width: 16px; height: 16px; stroke: currentColor; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: .9rem; color: var(--ink-soft); min-height: 34px; }
.quick button { border: 1px solid var(--rule); background: rgba(255, 255, 255, .75); color: var(--ink); border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.quick button:hover { background: #fff; border-color: var(--terra); color: var(--terra-deep); transform: translateY(-1px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 30px 0 0; max-width: 620px; }
.stats div { padding: 14px 14px 12px; border-radius: 16px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(240, 228, 212, .9); box-shadow: var(--shadow-sm); }
.stats dd { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats dt { margin-top: 6px; font-size: .8rem; line-height: 1.3; color: var(--ink-soft); }
.stats .gold dd { color: var(--terra); }

/* map */
.hero-map { margin: 0; position: relative; }
.map-card { position: relative; border-radius: 28px; padding: 18px 18px 14px; background: rgba(255, 252, 246, .82); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 70px -36px rgba(120, 70, 30, .5); backdrop-filter: blur(6px); }
.map-svg { width: 100%; height: auto; overflow: hidden; border-radius: 18px; }
.map-svg .region { fill: var(--sand); stroke: #fffaf3; stroke-width: 1.1; stroke-linejoin: round; transition: fill .3s; vector-effect: non-scaling-stroke; }
.map-svg .region.has { fill: var(--sage); cursor: pointer; }
.map-svg .region.has:hover, .map-svg .region.has:focus-visible { fill: var(--sage-2); outline: none; }
.map-svg .region.is-selected { fill: #a9d29a; }
.map-svg .region.is-dim { fill: #f6eee2; }
.map-svg .dot { fill: var(--spruce); transition: opacity .3s, transform .4s var(--ease); transform-box: fill-box; transform-origin: center; pointer-events: none; }
.map-svg .dot.ms { fill: var(--terra); }
.map-svg .glow { filter: url(#glow); opacity: .28; }
.map-svg .pulse { fill: none; stroke: var(--terra); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; opacity: 0; pointer-events: none; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; font-size: .84rem; color: var(--ink-soft); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--spruce); }
.map-legend i.ms { background: var(--terra); }
.map-tip { position: absolute; z-index: 4; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); padding: 7px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); opacity: 0; transition: opacity .15s; }
.map-tip.on { opacity: 1; }
.map-tip small { display: block; font-weight: 400; color: rgba(255, 255, 255, .75); }
.map-chip { position: absolute; top: 28px; left: 28px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 999px; background: var(--terra); color: #fff; font-size: .88rem; font-weight: 700; border: 0; cursor: pointer; box-shadow: var(--shadow); }
.map-chip svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; fill: none; }

/* ---------------------------------------------------------------- closing soon */
.soon { position: relative; z-index: 2; margin-top: -52px; }
.soon-panel { background: var(--card); border-radius: 26px; padding: 24px 0 22px 24px; box-shadow: var(--shadow); border: 1px solid var(--rule); }
.soon-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-right: 24px; margin-bottom: 16px; }
.soon-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.soon-head h2 .flame { width: 26px; height: 26px; color: var(--ember); }
.soon-head p { margin: 2px 0 0; color: var(--ink-soft); font-size: .95rem; }
.soon-nav { display: flex; gap: 8px; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--card); cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: border-color .2s, background .2s; }
.round:hover { border-color: var(--spruce); background: var(--lichen-2); }
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.soon-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 8px 2px; scrollbar-width: thin; }
.soon-card { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border-radius: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--field) 9%, #fff), #fff 60%); border: 1px solid color-mix(in srgb, var(--field) 22%, var(--rule)); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; min-height: 196px; }
.soon-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.soon-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.soon-card .kicker { font-size: .78rem; font-weight: 700; color: color-mix(in srgb, var(--field) 80%, #000); text-transform: uppercase; letter-spacing: .06em; }
.soon-card .t { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.soon-card .u { font-size: .88rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.soon-card .when { margin-top: auto; display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--gold-wash); color: var(--gold-deep); font-size: .82rem; font-weight: 700; }
.soon-card .when.hot { background: var(--ember-wash); color: #9b3412; }

/* ---------------------------------------------------------------- field icon */
.ficon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--field); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.ficon svg { width: 24px; height: 24px; }
.ficon-sm { width: 34px; height: 34px; border-radius: 11px; }
.ficon-sm svg { width: 19px; height: 19px; }
.ficon-lg { width: 60px; height: 60px; border-radius: 18px; }
.ficon-lg svg { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- results */
.results { padding-top: 56px; padding-bottom: 72px; scroll-margin-top: 10px; }
#list-top { scroll-margin-top: 16px; }
.results-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--lichen); flex-wrap: wrap; }
.tab { border: 0; background: transparent; border-radius: 999px; padding: 9px 16px; cursor: pointer; color: var(--ink-soft); font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s, box-shadow .2s; }
.tab .n { font-size: .78rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(80, 50, 20, .08); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tab svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.tab[aria-selected="true"] svg.heart-ico { fill: var(--ember); stroke: var(--ember); }
.filters-toggle { display: none; align-items: center; gap: 8px; border: 1.5px solid var(--rule); background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 600; cursor: pointer; }
.filters-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.filters { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: thin; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--rule); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px 6px 7px; font-size: .9rem; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--field, var(--spruce)); transform: translateY(-1px); }
.chip .dotico { width: 24px; height: 24px; border-radius: 8px; background: var(--field, var(--spruce)); color: #fff; display: grid; place-items: center; }
.chip .dotico svg { width: 15px; height: 15px; }
.chip .n { color: var(--ink-faint); font-size: .8rem; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--field, var(--spruce)); border-color: var(--field, var(--spruce)); color: #fff; }
.chip[aria-pressed="true"] .n { color: rgba(255, 255, 255, .8); }
.chip[aria-pressed="true"] .dotico { background: rgba(255, 255, 255, .2); }
.selects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 10px; }
.selects label { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.selects select { font: inherit; font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink); padding: 10px 34px 10px 12px; border: 1.5px solid var(--rule); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2355645b' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.selects select:focus { outline: none; border-color: var(--spruce); }
.filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; user-select: none; }
.toggle input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #e6d8c6; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.toggle input:checked { background: var(--spruce); }
.toggle input:checked::after { transform: translateX(18px); }
.textbtn { border: 0; background: none; color: var(--spruce); font-weight: 600; cursor: pointer; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; }

.note { margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; background: var(--gold-wash); color: #5d4300; font-size: .95rem; max-width: 62em; }
.count { font-family: var(--display); font-weight: 400; font-size: 1.55rem; margin: 0 0 6px; }
.count-sub { margin: 0 0 18px; color: var(--ink-soft); font-size: .95rem; }
.notice { padding: 22px; border-radius: 16px; background: var(--lichen); text-align: center; color: var(--ink-soft); }

/* ---------------------------------------------------------------- rows */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item { --field: #2f6b46; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); position: relative; }
.item:hover { border-color: color-mix(in srgb, var(--field) 40%, var(--rule)); box-shadow: var(--shadow); }
.item:has(details[open]) { border-color: color-mix(in srgb, var(--field) 55%, var(--rule)); box-shadow: var(--shadow); }
.item summary { list-style: none; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 44px; gap: 16px; align-items: center; padding: 18px 16px 18px 18px; cursor: pointer; border-radius: var(--radius); }
.item summary::-webkit-details-marker { display: none; }
.item .main { min-width: 0; }
.item .title { font-weight: 600; font-size: 1.08rem; line-height: 1.32; color: var(--ink); }
.item .new { display: inline-block; vertical-align: 2px; margin-left: 8px; padding: 1px 7px; border-radius: 6px; background: var(--gold-wash); color: var(--gold-deep); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.item .where { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; background: var(--lichen); color: var(--ink); font-size: .8rem; font-weight: 600; }
.tag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tag.degree { background: var(--spruce); color: #fff; }
.tag.field { background: color-mix(in srgb, var(--field) 12%, #fff); color: color-mix(in srgb, var(--field) 75%, #000); }
.tag.money { background: #e3f1e4; color: #1d5a33; }
.tag.intl { background: #e2eefb; color: #1f4f86; }
.tag.us { background: #f4e7e7; color: #7c3030; }
.tag.ca { background: #fde8e4; color: #9b2f1d; }
.tag.maybe { background: #efe9f7; color: #5a3f86; }

.due { display: flex; align-items: center; gap: 12px; min-width: 150px; justify-content: flex-end; text-align: right; }
.due-text { display: flex; flex-direction: column; line-height: 1.25; }
.due-date { font-weight: 700; font-size: .98rem; color: var(--ink); white-space: nowrap; }
.due-left { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.ring { width: 52px; height: 52px; position: relative; flex: none; }
.ring svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .track { stroke: var(--sand); }
.ring .bar-c { stroke: var(--spruce); stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; transition: stroke-dashoffset 1.1s var(--ease); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ring .num small { display: block; font-size: .58rem; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; margin-top: -3px; }
.ring .num span { display: block; text-align: center; line-height: 1.05; }
.item.is-soon .ring .bar-c { stroke: var(--gold); }
.item.is-hot .ring .bar-c { stroke: var(--ember); }
.item.is-hot .due-left { color: #9b3412; font-weight: 700; }
.item.is-soon .due-left { color: var(--gold-deep); font-weight: 700; }
.item.is-rolling .ring .track { stroke-dasharray: 3 5; stroke: #d8c6ad; }
.item.is-past { background: #fdfcf8; }
.item.is-past .title { color: var(--ink-soft); }
.item.is-past .ring .track { stroke: #eee6d5; }

.heart { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink-faint); transition: background .2s, color .2s, transform .2s var(--ease); }
.heart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: fill .2s; }
.heart:hover { background: var(--ember-wash); color: var(--ember); }
.heart[aria-pressed="true"] { color: var(--ember); }
.heart[aria-pressed="true"] svg { fill: var(--ember); }
.heart.pop svg { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.body { padding: 0 22px 22px 80px; }
.callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.callout { padding: 14px 16px; border-radius: 14px; background: #eef6ea; border: 1px solid #d3e7cb; }
.callout .lbl { display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #2c6a43; margin-bottom: 4px; }
.callout .lbl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.callout strong { display: block; font-size: 1.02rem; line-height: 1.35; }
.callout span.more { display: block; margin-top: 3px; font-size: .9rem; color: var(--ink-soft); }
.callout.missing { background: var(--gold-wash); border-color: #f0dca6; }
.callout.missing .lbl { color: var(--gold-deep); }
.callout.elig { background: #eaf2fb; border-color: #d3e3f5; }
.callout.elig .lbl { color: #1f4f86; }
.callout.elig.missing { background: var(--gold-wash); border-color: #f0dca6; }
.callout.elig.missing .lbl { color: var(--gold-deep); }
.body .summary { margin: 0 0 14px; font-size: 1.02rem; max-width: 62em; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 24px; margin: 0 0 14px; }
.facts dt { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); }
.facts dd { margin: 2px 0 0; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.topic { border: 1px solid var(--rule); background: #fff; color: var(--ink-soft); border-radius: 999px; padding: 4px 11px; font-size: .85rem; cursor: pointer; text-decoration: none; transition: border-color .2s, color .2s; }
.topic::before { content: "#"; color: var(--ink-faint); margin-right: 1px; }
.topic:hover { border-color: var(--spruce); color: var(--spruce); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--rule); background: #fff; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { border-color: var(--spruce); color: var(--spruce-deep); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--spruce); border-color: var(--spruce); color: #fff; box-shadow: 0 10px 24px -12px rgba(45, 90, 67, .9); }
.btn-primary:hover { background: var(--spruce-deep); border-color: var(--spruce-deep); color: #fff; }
.btn-save[aria-pressed="true"] { border-color: var(--ember); color: var(--ember); }
.btn-save[aria-pressed="true"] svg { fill: var(--ember); }
.report { font-size: .9rem; color: var(--ink-soft); }
.meta { margin: 14px 0 0; font-size: .84rem; color: var(--ink-faint); }
.more-wrap { display: flex; justify-content: center; margin-top: 26px; }

/* entrance animation for rows and cards */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 45ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .item details[open] .body { animation: open .35s var(--ease); }
  @keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .live-dot { animation: live 2.2s infinite; }
  @keyframes live { 0% { box-shadow: 0 0 0 0 rgba(224, 112, 60, .6); } 70% { box-shadow: 0 0 0 10px rgba(224, 112, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 112, 60, 0); } }
  .map-svg .pulse.on { animation: ping 2.6s ease-out infinite; animation-delay: var(--d, 0s); }
  @keyframes ping { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3.2); } }
  .map-svg .dot.enter { animation: dotin .6s var(--ease) both; animation-delay: var(--d, 0s); }
  @keyframes dotin { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
  .hero-rings path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------------------------------------------------------------- how it works */
.how { background: linear-gradient(180deg, var(--cream-2), #f3eadc); padding: 76px 0 70px; }
.how h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 10px; }
.how .intro { margin: 0 0 34px; max-width: 46em; color: var(--ink-soft); font-size: 1.05rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--rule); }
.step .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--spruce); color: #fff; margin-bottom: 14px; }
.step .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step h3::before { counter-increment: step; content: counter(step) ". "; color: var(--gold-deep); }
.step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.advice { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.advice > div { padding: 24px; border-radius: var(--radius); background: var(--spruce-deep); color: #f7efe3; }
.advice > div:last-child { background: #fff; color: var(--ink); border: 1px solid var(--rule); }
.advice h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: inherit; }
.advice p { margin: 0 0 10px; }
.advice ul { margin: 0; padding-left: 20px; }
.advice li { margin: 4px 0; }
.advice a { color: #ffc49c; }
.advice > div:last-child a { color: var(--spruce); }
.linklist { display: flex; flex-direction: column; gap: 10px; }
.linklist a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.linklist svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.updated { margin: 12px 0 0; font-size: .88rem; color: var(--ink-faint); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--night); color: rgba(255, 246, 234, .82); padding: 30px 0; font-size: .92rem; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot p { margin: 0; }
.foot a { color: #ffc49c; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 14px; background: var(--night); color: #fff; font-weight: 600; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- position page */
.page-position { background: radial-gradient(900px 440px at 90% -10%, #ffe2c8 0%, transparent 70%), radial-gradient(700px 400px at 0% 0%, #e3f0dc 0%, transparent 70%), var(--paper); }
.pos { padding-top: 8px; padding-bottom: 64px; max-width: 1000px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 18px; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.back:hover svg { transform: translateX(-3px); }
.pos-card { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 28px; padding: 34px 38px 30px; box-shadow: var(--shadow); overflow: hidden; }
.pos-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--field); }
.pos-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.kicker { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; color: color-mix(in srgb, var(--field) 80%, #000); }
.kicker .deg { padding: 3px 10px; border-radius: 8px; background: var(--spruce); color: #fff; font-size: .85rem; }
.pos-card h1 { color: var(--ink); font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.1; margin: 0 0 14px; }
.pos-where { margin: 0; font-size: 1.12rem; font-weight: 600; }
.pos-place { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.pos-place svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 22px; padding: 8px 14px; border-radius: 999px; font-weight: 700; background: var(--lichen); color: var(--spruce-deep); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status-soon, .status-today { background: var(--gold-wash); color: var(--gold-deep); }
.status-past { background: #f1ede3; color: #6a5c3c; }
.status-closed { background: #f3e4df; color: #8a3418; }
.closed-note { margin: -8px 0 22px; padding: 14px 16px; border-radius: 14px; background: #fbf3ef; color: #6c3b2b; }
.pos-card .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.fact { padding: 14px 16px; border-radius: 14px; background: var(--lichen-2); border: 1px solid var(--rule); }
.fact dd { margin-top: 4px; }
.fact-head { display: block; font-weight: 600; font-size: 1.02rem; }
.fact-more { display: block; margin-top: 3px; font-size: .92rem; color: var(--ink-soft); }
.fact-funding { background: #eef6ea; border-color: #d3e7cb; }
.fact.is-missing { background: var(--gold-wash); border-color: #f0dca6; }
.about h2, .similar h2 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 0 0 8px; }
.about p { margin: 0 0 16px; font-size: 1.08rem; line-height: 1.65; max-width: 44em; }
.pos-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 26px; }
.share { padding: 20px; border-radius: 18px; background: var(--lichen-2); border: 1px dashed #e6d3bb; }
.share-label { margin: 0 0 12px; font-weight: 700; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--rule); background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, color .2s, background .2s; }
.share-btn svg { width: 17px; height: 17px; fill: currentColor; }
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn[data-net="linkedin"]:hover { background: #0a66c2; border-color: #0a66c2; }
.share-btn[data-net="facebook"]:hover { background: #1877f2; border-color: #1877f2; }
.share-btn[data-net="x"]:hover { background: #111; border-color: #111; }
.share-btn[data-net="whatsapp"]:hover { background: #1fa855; border-color: #1fa855; }
.share-btn[data-net="email"]:hover, .share-btn[data-copy]:hover, .share-native:hover { background: var(--spruce); border-color: var(--spruce); }
.pos-card .meta { margin-top: 20px; }
.is-closed h1 { color: var(--ink-soft); }
.similar { margin-top: 38px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.mini { display: flex; gap: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--field) 45%, var(--rule)); color: var(--ink); }
.mini .ficon { width: 40px; height: 40px; border-radius: 12px; }
.mini .ficon svg { width: 20px; height: 20px; }
.mini-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-kicker { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: color-mix(in srgb, var(--field) 80%, #000); }
.mini-title { font-weight: 600; line-height: 1.3; }
.mini-where { font-size: .9rem; color: var(--ink-soft); }
.mini-due { margin-top: 4px; font-size: .82rem; font-weight: 700; color: var(--gold-deep); }

/* ---------------------------------------------------------------- results layout: filter sidebar on wide screens */
.side-h { display: none; margin: 0 0 8px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
@media (min-width: 1100px) {
  .results-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; align-items: start; }
  .filters { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; margin-bottom: 0; padding: 20px; scrollbar-width: thin; }
  .side-h { display: block; }
  .chips { flex-direction: column; overflow: visible; gap: 2px; padding: 0 0 14px; margin-bottom: 14px; }
  .chip { width: 100%; border-color: transparent; background: transparent; border-radius: 12px; padding: 6px 8px; font-size: .92rem; }
  .chip > span:nth-last-child(2) { flex: 1; text-align: left; line-height: 1.25; }
  .chip:hover { background: var(--cream-2); transform: none; border-color: transparent; }
  .chip[aria-pressed="true"] { background: var(--field, var(--spruce)); }
  .selects { grid-template-columns: 1fr; gap: 12px; margin-top: 0; }
  .filter-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 80px; }
  .hero-map { max-width: 720px; }
  .selects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .bar nav .hide-sm { display: none; }
  .hero-grid { padding-top: 12px; padding-bottom: 72px; }
  h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .lede { font-size: 1.04rem; }
  .search input { font-size: 1rem; padding: 16px 48px 16px 50px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
  .map-card { padding: 10px 10px 10px; border-radius: 22px; }
  .map-chip { top: 18px; left: 18px; }
  .soon { margin-top: -44px; }
  .soon-panel { padding: 18px 0 16px 16px; border-radius: 22px; }
  .soon-nav { display: none; }
  .soon-track { grid-auto-columns: 78%; padding-right: 16px; }
  .results { padding-top: 40px; }
  .filters-toggle { display: inline-flex; }
  .filters { display: none; padding: 14px; }
  .filters.open { display: block; animation: open .3s var(--ease); }
  .selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tab { flex: none; padding: 8px 12px; }
  .item summary { grid-template-columns: 38px minmax(0, 1fr) 40px; gap: 12px; padding: 16px 12px 14px 14px; }
  .item .ficon { width: 38px; height: 38px; border-radius: 12px; align-self: start; }
  .item .ficon svg { width: 20px; height: 20px; }
  .item .due { grid-column: 2 / 4; grid-row: 2; justify-content: flex-end; text-align: left; min-width: 0; flex-direction: row-reverse; gap: 10px; margin-top: -2px; }
  .item .heart { grid-column: 3; grid-row: 1; align-self: start; width: 40px; height: 40px; }
  .ring, .ring svg { width: 42px; height: 42px; }
  .ring .num { font-size: .82rem; }
  .body { padding: 0 14px 18px; }
  .callouts { grid-template-columns: 1fr; }
  .steps, .advice { grid-template-columns: 1fr; }
  .pos-card { padding: 26px 20px 22px; border-radius: 22px; }
  .pos-card .facts, .mini-grid { grid-template-columns: 1fr; }
  .share-btn span { font-size: .88rem; }
  .share-btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
