/* SHRM Bucks County. Colours from the chapter's own logo and site: navy
   #1B3C69 and blue #0076BE, gold #FBB533 from the chapter's email palette.
   Gold only ever sits behind dark text or on navy, never as text on white.
   The logo has navy lettering, so every bar that carries it is white. */
:root {
  --navy: #1b3c69;
  --night: #0f2647;
  --blue: #0076be;
  --blue-deep: #005a91;
  --link: #00609c;
  --gold: #fbb533;
  --gold-soft: #fde6b0;
  --sky: #c5e5ff;
  --ink: #0f172a;
  --ink-soft: #3f4a5c;
  --canvas: #ffffff;
  --surface: #f5f8fb;
  --surface-2: #e4edf6;
  --line: #c9d6e3;
  --danger: #b3261e;
  --ok: #1d6b33;

  --sc-canvas: var(--canvas);
  --sc-surface: var(--surface);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--blue);
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Figtree", system-ui, sans-serif;
  --sc-font-text: "Figtree", system-ui, sans-serif;
  --sc-maxw: 1240px;
  --bar-h: 76px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 38, 71, .06), 0 8px 24px -12px rgba(15, 38, 71, .24);
  color-scheme: light;
}

body { font-size: 1.0625rem; background: var(--canvas); color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--link); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
h1, h2, h3 { font-family: var(--sc-font-display); color: var(--navy); text-wrap: balance; }
a { color: var(--link); }
.wrap { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }
.muted { color: var(--ink-soft); }
.nums { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------- the bar -- */
.bar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.bar__in { height: var(--bar-h); display: flex; align-items: center; gap: 28px; }
.bar__logo { flex: none; display: block; padding-block: 8px; }
.bar__logo img { height: 34px; width: auto; }
.bar__nav { display: flex; gap: 2px; margin-left: auto; }
.bar__nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 10px 12px; border-radius: 8px; }
.bar__nav a:hover { background: var(--surface); }
.bar__nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.bar__acts { display: flex; align-items: center; gap: 10px; }
.bar--signed .bar__in { max-width: 1400px; }
.bar__nav a, .bar__acts .btn { white-space: nowrap; }
.bar__acct { display: none; }
.bar__acts .lbl-sm { display: none; }
@media (max-width: 560px) { .bar__acts .lbl-lg { display: none; } .bar__acts .lbl-sm { display: inline; } }
.bar__menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 700; color: var(--ink); cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--night); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--surface); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #ffc552; }
.btn--white { background: #fff; color: var(--navy); }
.btn--danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .95rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Signed in, the bar carries two or three more buttons, so it folds into the
   menu at a wider width. The account links and Sign out move into the menu. */
/* 1520, not 1400: with the Home link an admin's bar ran 30px off a 1440 screen. */
@media (max-width: 1520px) {
  .bar--signed .bar__menu { display: inline-flex; }
  .bar--signed .bar__nav { display: none; position: absolute; top: var(--bar-h); left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--sc-gutter) 16px; box-shadow: var(--shadow); }
  .bar--signed.bar--open .bar__nav { display: flex; }
  .bar--signed .bar__nav a, .bar--signed .bar__acct { padding: 14px 8px; font-size: 1.1rem; }
  .bar--signed .bar__nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .bar--signed .bar__acct { display: block; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); color: var(--link); font: 700 1.1rem var(--sc-font-text); text-decoration: none; cursor: pointer; }
  .bar--signed .bar__acct ~ .bar__acct { border-top: 0; }
  .bar--signed .bar__acts .btn--ghost, .bar--signed .bar__acts .signout { display: none; }
}
/* 1200, not 1100: the Home link (board meeting 2026-11-13) made the open menu wider. */
@media (max-width: 1200px) {
  .bar__menu { display: inline-flex; }
  .bar__nav { display: none; position: absolute; top: var(--bar-h); left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--sc-gutter) 16px; box-shadow: var(--shadow); }
  .bar--open .bar__nav { display: flex; }
  .bar__nav a { padding: 14px 8px; font-size: 1.1rem; }
  .bar__nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .bar__acts .btn--ghost { display: none; }
}
@media (max-width: 560px) {
  :root { --bar-h: 64px; }
  .bar__logo img { height: 24px; }
  .bar__in { gap: 10px; }
  .bar__acts .btn { padding: 8px 14px; min-height: 40px; }
}
@media (max-width: 380px) { .bar__logo img { height: 20px; } }

/* ------------------------------------------------------------- hero -- */
/* Planes, back to front: glow, back thread, headline, front thread, ticket.
   Both threads draw themselves once on load, then drift at different rates. */
.hero { position: relative; overflow: hidden; background: linear-gradient(170deg, var(--night) 0%, #14335c 55%, var(--navy) 100%); color: #fff; isolation: isolate; padding-bottom: clamp(36px, 5vw, 72px); }
.hero__glow { position: absolute; inset: -20% 0 0; z-index: 0; background: radial-gradient(900px 520px at 78% 30%, rgba(0, 118, 190, .42), transparent 64%), radial-gradient(700px 480px at 6% 4%, rgba(251, 181, 51, .12), transparent 60%); }
.hero__thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero__thread path { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: thread-draw 2.4s cubic-bezier(.65, 0, .35, 1) .2s forwards; }
.hero__thread--back { z-index: 0; opacity: .5; }
.hero__thread--back path { stroke-width: 3; }
.hero__thread--front { z-index: 2; }
.hero__thread--front path { stroke-width: 6; animation-delay: .7s; }
@keyframes thread-draw { to { stroke-dashoffset: 0; } }
.hero__copy { position: relative; z-index: 1; padding-top: clamp(56px, 10vh, 120px); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .7fr); column-gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero__kicker { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; color: var(--gold); margin: 0 0 18px; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 1rem + 5.6vw, 6.8rem); line-height: .96; letter-spacing: -0.035em; font-weight: 800; margin: 0; }
.hero__lede { color: #e8f1fa; font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); line-height: 1.55; margin: 0 0 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__foot { position: relative; z-index: 3; display: flex; justify-content: flex-end; margin-top: clamp(40px, 7vw, 96px); }
.ticket { width: min(420px, 100%); background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); padding: 14px 18px 14px 20px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-decoration: none; border-left: 6px solid var(--gold); }
.ticket:hover h3 { text-decoration: underline; }
.ticket .lbl { grid-column: 1 / -1; font-size: .9rem; font-weight: 800; color: var(--navy); letter-spacing: .06em; text-transform: uppercase; }
.ticket .dt { grid-row: 2 / 4; text-align: center; font-family: var(--sc-font-display); line-height: 1; color: var(--blue-deep); }
.ticket .dt b { display: block; font-size: 2.4rem; font-weight: 800; }
.ticket .dt span { font-size: .95rem; font-weight: 800; text-transform: uppercase; }
.ticket h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
@media (max-width: 1000px) {
  .hero__copy { grid-template-columns: 1fr; }
  .hero__side { padding-top: 24px; max-width: 600px; }
  .hero__foot { justify-content: flex-start; margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .hero__thread path { animation: none; stroke-dashoffset: 0; } }

/* ------------------------------------------------------------- sections -- */
.sect { padding-block: clamp(64px, 9vw, 128px); }
.sect--tint { background: var(--surface); }
.sect__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.sect__head h2, .h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.sect__head p { max-width: 52ch; margin: 12px 0 0; color: var(--ink-soft); font-size: 1.12rem; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

/* events rail (home) and event cards */
.rail-act .sc-stage { display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.rail { gap: 20px; padding-inline: var(--sc-gutter); align-items: stretch; }
.rail-flat { background: var(--surface); padding-block: clamp(56px, 9vh, 110px); }
.rail-act--flat .rail { display: flex; flex-wrap: wrap; }
.rail-act--flat .rail__lead { flex: 1 1 100%; padding-right: 0; }
.rail-act--flat .ev { flex: 1 1 300px; max-width: 400px; }
.rail__lead { flex: 0 0 min(400px, 80vw); padding-right: 24px; display: flex; flex-direction: column; justify-content: center; }
.ev { flex: 0 0 340px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.ev:hover { border-color: var(--blue); transform: translateY(-3px); }
.ev__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ev__date { font-family: var(--sc-font-display); color: var(--blue); line-height: 1; }
.ev__date b { font-size: 2.6rem; font-weight: 800; display: block; }
.ev__date span { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ev h3 { font-size: 1.25rem; line-height: 1.25; margin: 4px 0 0; }
.ev__meta { font-size: .98rem; color: var(--ink-soft); margin: 0; }
.ev__price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; gap: 14px; font-size: .98rem; }
.ev__price b { color: var(--ink); }
.tag { display: inline-flex; align-items: center; font-size: .85rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--navy); white-space: nowrap; }
.tag--sky { background: var(--sky); color: #0b2c4d; }
.tag--gold { background: #fde6b0; color: #4a3300; }


/* ---------------------------------------------------- the common thread -- */
/* One gold line, drawn by the act's progress. Each need lights as it arrives.
   Desktop: left to right across a fixed-ratio map, so the dots placed in
   percent sit exactly on the line. Phones: a vertical strip beside a list. */
.thread .sc-stage { background: var(--night); color: #fff; display: flex; align-items: center; }
.thread__in { display: grid; gap: clamp(12px, 2.4vh, 28px); padding-block: 24px; }
.thread__head { max-width: 760px; }
.thread h2 { color: #fff; margin: 0 0 12px; }
.thread__head p { color: #dbe7f3; font-size: 1.15rem; margin: 0; }
.thread__map { position: relative; width: min(100%, calc((100svh - var(--bar-h) - 300px) * 1200 / 520)); aspect-ratio: 1200 / 520; margin-inline: auto; }
.thread__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.thread__svg--v { display: none; }
.thread__guide { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.thread__line { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--draw0)) / var(--draw1), 1)); }
.thread__needs { list-style: none; margin: 0; padding: 0; }
.need { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.need__dot { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(251, 181, 51, .25); }
.need__lbl { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: max-content; max-width: 190px; text-align: center; font-weight: 700; font-size: 1.08rem; line-height: 1.3; color: #fff; background: rgba(15, 38, 71, .92); border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; padding: 8px 12px; }
.need--low .need__lbl { bottom: auto; top: 26px; }
.thread__close { max-width: 62ch; color: #fff; font-size: 1.18rem; font-weight: 600; margin: 0; }
@media (max-width: 1000px) {
  .thread__map { width: 100%; aspect-ratio: auto; height: min(62svh, 520px); }
  .thread__svg--h { display: none; }
  .thread__svg--v { display: block; width: 60px; right: auto; }
  .thread__needs { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(6, 1fr); }
  .need { position: relative; left: auto; top: auto; width: auto; height: auto; display: flex; align-items: center; gap: 0; padding-left: 64px; }
  .need__dot { left: 19px; top: 50%; margin-top: -11px; width: 22px; height: 22px; box-shadow: 0 0 0 5px rgba(251, 181, 51, .25); }
  .need__lbl, .need--low .need__lbl { position: static; translate: none; max-width: none; text-align: left; background: none; border: 0; padding: 0; font-size: 1.05rem; }
  .thread__head p { font-size: 1.02rem; }
  .thread h2 { font-size: 1.8rem; }
  .thread__close { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  .thread__line { stroke-dashoffset: 0; }
  .thread [data-sc-cue] { opacity: 1 !important; }
}

/* ------------------------------------------------------------- why -- */
.why { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.why ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.why li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 1.1rem; }
.why li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230f172a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.dues { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.dues__big { font: 800 clamp(4rem, 3rem + 4vw, 6.4rem)/1 var(--sc-font-display); color: var(--gold); margin: 0; }
.dues__lbl { font-weight: 800; font-size: 1.2rem; margin: 6px 0 18px; color: #fff; }
.dues p { color: #e8f1fa; margin: 0; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- people -- */
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; }
.face { margin: 0; text-align: left; }
.face .face__ph { width: 100%; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font: 800 2.6rem var(--sc-font-display); color: #fff; background: linear-gradient(150deg, var(--navy), var(--blue)); }
.face figcaption { margin-top: 10px; line-height: 1.3; }
.face b { display: block; font-size: 1.02rem; color: var(--ink); }
.face span { display: block; font-size: .95rem; color: var(--navy); font-weight: 600; }
.face small { display: block; font-size: .95rem; color: var(--ink-soft); margin-top: 2px; }

/* sponsors */
.logos { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.logos a, .logos span { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 24px; height: 96px; min-width: 180px; }
.logos img { max-height: 56px; max-width: 200px; width: auto; object-fit: contain; }

/* ------------------------------------------------------------- close -- */
.close__box { background: var(--night); color: #fff; display: flex; flex-direction: column; }
.close__in { flex: 1; display: grid; place-items: center; text-align: center; padding: clamp(64px, 11vh, 130px) var(--sc-gutter); }
.close h2 { color: #fff; font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem); letter-spacing: -0.035em; line-height: .98; margin: 0 0 36px; font-weight: 800; font-stretch: 110%; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin-inline: auto; }
.door { display: block; text-align: left; padding: 26px 26px 24px; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 1.3rem; line-height: 1.25; border: 2px solid transparent; transition: transform .2s; }
.door small { display: block; font-weight: 500; font-size: 1rem; margin-top: 8px; }
.door:hover { transform: translateY(-3px); }
.door--join { background: var(--gold); color: var(--ink); }
.door--sign { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.door--sign small { color: #dbe8f1; }
@media (max-width: 640px) { .doors { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- footer -- */
.foot { background: #fff; color: var(--ink); border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: .98rem; }
.close .foot { margin-top: auto; }
.foot__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.foot__grid img { height: 44px; width: auto; margin-bottom: 14px; }
.foot h4 { margin: 0 0 10px; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--blue); text-decoration: underline; }
.foot__fine { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------- inner pages -- */
.phead { background: var(--surface); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.phead h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); line-height: 1; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 14px; }
.phead p { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; margin: 0; }
.crumb { font-size: .95rem; margin-bottom: 14px; }
.crumb a { text-decoration: none; }
.prose { max-width: 70ch; }
.prose p { line-height: 1.65; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid2--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.grid2--main { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.grid2--form { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
/* The first section under a page title starts close to it, so a phone shows content on the first screen. */
@media (max-width: 860px) { .phead + .sect, .phead + .sect[hidden] + .sect { padding-top: 28px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.3rem; }
.spot { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
.spot img { border-radius: 12px; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 420px) { .spot { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; } }
.card p { margin: 0 0 10px; }
.card--tint { background: var(--surface); }
.evlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.evlist .ev { flex: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.note { font-size: .98rem; color: var(--ink-soft); }
.notice { border-radius: 12px; padding: 14px 18px; background: #fff8e6; border: 1px solid #e8cf8a; color: #4a3800; }
.notice--blue { background: var(--surface); border-color: var(--line); color: var(--ink); }

/* forms */
/* Anything with display set still has to obey hidden; the shared table bar's own rule outranks this one. */
[hidden] { display: none !important; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.field { min-width: 0; }
.field { display: grid; gap: 6px; }
.field label, .lbl-strong { font-weight: 600; font-size: 1rem; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { width: 100%; max-width: 100%; border: 1.5px solid #7a8896; border-radius: 10px; padding: 12px 14px; font-size: 1.05rem; background: #fff; color: var(--ink); min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(0, 91, 142, .3); border-color: var(--blue); }
.field small { color: var(--ink-soft); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.err { color: var(--danger); font-weight: 600; min-height: 1.4em; margin: 0; }

/* levels */
.levels { display: grid; gap: 12px; }
.level { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; background: #fff; }
.level:has(input:checked) { border-color: var(--blue); background: var(--surface); }
.level input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--blue); }
.level b { font-size: 1.12rem; }
.level p { margin: 4px 0 0; color: var(--ink-soft); font-size: .98rem; }
.level .amt { font: 800 1.5rem var(--sc-font-display); color: var(--blue); white-space: nowrap; }

/* ------------------------------------------------------- edit mode -- */
.editbar { position: fixed; left: 50%; bottom: 20px; translate: -50% 0; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); font-weight: 600; max-width: calc(100vw - 24px); flex-wrap: wrap; }
.editbar .btn { min-height: 40px; }
.editbar__msg { font-size: .98rem; }
body.editing [data-edit] { outline: 2px dashed var(--blue); outline-offset: 4px; border-radius: 4px; cursor: text; }
body.editing [data-edit]:hover { outline-style: solid; }
body.editing [data-edit]:focus { outline: 3px solid var(--blue); background: rgba(0, 118, 190, .08); }
body.editing .hero [data-edit], body.editing .thread [data-edit] { outline-color: var(--gold); }
body.editing .hero [data-edit]:focus { background: rgba(255, 255, 255, .12); }
body.editing [data-edit].changed { outline-color: #f8a31d; outline-style: solid; }
.toast { position: fixed; top: calc(var(--bar-h) + 14px); right: 16px; z-index: 70; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); max-width: min(420px, calc(100vw - 32px)); }
.toast--err { background: var(--danger); }
.preview-flag { background: #fff3cd; color: #3f2f00; text-align: center; font-size: .95rem; padding: 8px 12px; border-bottom: 1px solid #e8cf8a; }
.preview-flag a { color: #3f2f00; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .ev, .door, .btn { transition: none; }
}

/* ------------------------------------------------------- preview start -- */
.personas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.persona { text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.persona:hover { border-color: var(--blue); transform: translateY(-2px); }
.persona b { font: 800 1.35rem var(--sc-font-display); }
.persona span { color: var(--ink-soft); flex: 1; }
.persona em { font-style: normal; font-weight: 700; color: var(--blue); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; }
.plain li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.plain li:last-child { border-bottom: 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.dl dt { color: var(--ink-soft); }
.dl dd { margin: 0; font-weight: 600; }
.signout { background: none; color: var(--ink-soft); border: 0; padding-inline: 8px; }
.signout:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 560px) { .signout { display: none; } }

/* ------------------------------------------------------ answers page -- */
.answers { display: grid; gap: 28px; max-width: 860px; }
.answer { position: relative; padding: clamp(24px, 4vw, 40px); padding-left: clamp(24px, 7vw, 96px); }
.answer h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.2; margin: 0 0 16px; }
.answer p { margin: 0 0 14px; font-size: 1.08rem; line-height: 1.6; }
.answer__n { position: absolute; left: clamp(24px, 2.4vw, 36px); top: clamp(22px, 3.6vw, 38px); font: 800 2.6rem/1 var(--sc-font-display); color: var(--blue); }
.answer__try { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 22px 0 0 !important; }
.answer__try .note { margin: 0; font-size: .98rem; }
@media (max-width: 640px) { .answer__n { position: static; margin: 0 0 8px; } }

/* ---------------------------------------------------------- filters -- */
.filters { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.filters .chips { margin-bottom: 0; }
.field--inline { grid-template-columns: auto minmax(180px, 260px); align-items: center; gap: 12px; }
@media (max-width: 560px) { .field--inline { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.linkish:hover { text-decoration: underline; }

/* --------------------------------------------------------------- faq -- */
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 14px 0; list-style-position: outside; }
.faq summary:focus-visible { outline: 3px solid rgba(0, 91, 142, .35); outline-offset: 2px; border-radius: 4px; }
.faq p { margin: 0 0 16px; }

/* ---------------------------------------------------------- sponsors -- */
.logos b { font-size: 1.15rem; color: var(--navy); text-align: center; }
.logos--page { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.logos--page a.sponsor { display: grid; gap: 6px; align-content: start; place-items: stretch; height: auto; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--ink); text-decoration: none; }
.logos--page a.sponsor:hover { border-color: var(--blue); box-shadow: 0 10px 24px -16px rgba(15, 23, 42, .45); }
.logos--page .sponsor span { display: block; height: auto; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.logos--page .sponsor .sponsor__logo { display: grid; place-items: center; height: 96px; }
.sponsor__name { font-weight: 700; }
.logos--page .sponsor .sponsor__cat { font-size: .95rem; color: var(--ink-soft); }
.tier-h { color: var(--navy); }

/* Forms that send a request to the chapter (careers, sponsors, contact). */
.hp, .hp * { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); }
.filedrop { display: grid; gap: 4px; justify-items: center; text-align: center; border: 2px dashed #7a8896; border-radius: 12px; padding: 22px 16px; background: #fff; cursor: pointer; }
.filedrop:hover, .filedrop.is-over { border-color: var(--blue); background: var(--surface); }
.filedrop:focus-within { outline: 3px solid rgba(0, 91, 142, .3); }
.filedrop small { color: var(--ink-soft); }
.linkbtn { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--link); text-decoration: underline; font: inherit; cursor: pointer; }
.form progress { width: 100%; height: 10px; accent-color: var(--blue); }
.sent { border-left: 4px solid var(--ok); background: #fff; border-radius: 10px; padding: 18px 20px; }
.sent h3 { margin: 0 0 6px; color: var(--ok); }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.jobs li { border-top: 1px solid var(--line); padding-top: 14px; }
.jobs h4 { margin: 0 0 2px; font-size: 1.1rem; }
.jobs p { margin: 4px 0 0; }
