/* iSupport People's Choice Awards. Uses the iSupport Small Biz brand tokens. */
:root {
  --bg: #F7F4EF; --surface: #F2F0EB; --card: #FFFFFF; --ink: #0A2640; --ink-2: #44546A; --muted: #6B7280;
  --border: #E6E1D9; --border-2: #D7D1C7; --amber: #F5A623; --amber-dark: #B86E0B; --amber-bg: #FDEFD2;
  --green: #1A6B4A; --green-2: #15573C; --green-bg: #E4F2EC; --navy-deep: #061A2E; --navy-mid: #0E3358;
  --red: #A32D2D; --red-bg: #FBEAEA;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
  --fdisplay: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --fbody: 'DM Sans', system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(10,38,64,.05), 0 6px 20px rgba(10,38,64,.07);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--fbody); }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-2); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--fdisplay); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer (mirrors the main site) */
.nav { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 5px; font-family: var(--fdisplay); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 1rem; transform: rotate(-4deg); }
.brand .sb { color: #D4891A; }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a[aria-current] { color: var(--ink); font-weight: 700; }
.nav-links .btn { color: #fff; }
@media (max-width: 860px) { .nav-links a:not(.btn):not(.keep) { display: none; } }
.foot { border-top: 1px solid var(--border); margin-top: 80px; padding: 32px 0 48px; font-size: .9rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.foot a { color: var(--ink-2); }
.foot .spacer { flex: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 1rem/1 var(--fbody); padding: 14px 22px; border-radius: 12px; background: var(--green); color: #fff; min-height: 48px; }
.btn:hover { background: var(--green-2); color: #fff; }
.btn.alt { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border-2); }
.btn.alt:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn.gold { background: var(--amber); color: var(--navy-deep); }
.btn.gold:hover { background: #E89A12; color: var(--navy-deep); }
.btn.small { padding: 9px 14px; min-height: 38px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { background: var(--navy-deep); color: #F4F1EA; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding: 72px 0 64px; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero .lede { font-size: 1.2rem; color: #C9D3DE; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero .btn.alt { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.hero .btn.alt:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.hero .meta { font-size: .95rem; color: #9FB0C2; }
.prize { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; max-width: 520px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.prize strong { display: block; font-family: var(--fdisplay); font-size: 1.35rem; color: var(--amber); line-height: 1.15; }
.prize span { color: #C9D3DE; font-size: .95rem; }
.seal { width: min(340px, 100%); justify-self: center; aspect-ratio: 1; }
.seal svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .seal .ring { transform-origin: 50% 50%; animation: spin 60s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 48px 0; }
  .seal { width: 190px; order: -1; justify-self: start; }
}

/* Sections */
.section { padding: 72px 0 0; }
.section > .wrap > p.intro, .intro { color: var(--ink-2); max-width: 60ch; font-size: 1.08rem; }

/* Schedule */
.timeline { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; counter-reset: none; }
.timeline li { position: relative; padding: 22px 12px 0 0; border-top: 3px solid var(--border-2); }
.timeline li::before { content: ''; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 3px solid var(--border-2); }
.timeline li.done { border-top-color: var(--green); }
.timeline li.done::before { background: var(--green); border-color: var(--green); }
.timeline li.now { border-top-color: var(--amber); }
.timeline li.now::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 5px var(--amber-bg); }
.timeline .when { font-size: .85rem; color: var(--muted); display: block; }
.timeline .what { font-weight: 700; display: block; line-height: 1.25; margin: 2px 0; }
.timeline .note { font-size: .85rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { border-top: 0; border-left: 3px solid var(--border-2); padding: 0 0 18px 22px; }
  .timeline li::before { top: 2px; left: -9px; }
  .timeline li.done { border-left-color: var(--green); }
  .timeline li.now { border-left-color: var(--amber); }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.steps > div { border-left: 3px solid var(--amber); padding: 4px 0 4px 18px; }
.steps b { display: block; font-family: var(--fdisplay); font-size: 1.15rem; margin-bottom: 4px; }
.steps p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; margin-top: 28px; }
.cats > div { background: var(--card); padding: 22px; }
.cats b { display: block; font-family: var(--fdisplay); font-size: 1.1rem; }
.cats span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .cats { grid-template-columns: 1fr; } }

/* Prize table */
.prizes { width: 100%; border-collapse: collapse; margin-top: 24px; background: var(--card); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
.prizes th, .prizes td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prizes th { font-family: var(--fdisplay); font-size: 1.05rem; width: 32%; }
.prizes tr:last-child th, .prizes tr:last-child td { border-bottom: 0; }
.prizes tr.top th { color: var(--amber-dark); }

/* FAQ */
details.faq { border-bottom: 1px solid var(--border); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--muted); }
details.faq[open] summary::after { content: '\2212'; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* Leaders */
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.board { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; }
.board h3 { margin-bottom: 10px; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.board li:first-child { border-top: 0; }
.rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--surface); flex: 0 0 auto; }
.rank.r1 { background: var(--amber); color: var(--navy-deep); }
.board a { color: var(--ink); text-decoration: none; font-weight: 600; }
.board a:hover { text-decoration: underline; }

/* Cards and forms */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow); }
.page-head { padding: 48px 0 8px; }
.page-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .row.three { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 640px) { form .row, form .row.three { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--fbody); color: var(--ink); background: #fff; border: 1.5px solid var(--border-2); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--amber-bg); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--green); }
.err { color: var(--red); font-size: .9rem; margin-top: 4px; display: block; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--red); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-family: var(--fdisplay); font-weight: 700; font-size: 1.25rem; margin-bottom: 14px; padding: 0; }
.radio-cards { display: grid; gap: 10px; }
.radio-cards label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--border-2); border-radius: 10px; cursor: pointer; font-weight: 500; }
.radio-cards input { margin-top: 3px; accent-color: var(--green); }
.radio-cards label:has(input:checked) { border-color: var(--green); background: var(--green-bg); }

.notice { padding: 14px 16px; border-radius: 10px; margin: 0 0 20px; font-weight: 500; }
.notice.ok { background: var(--green-bg); color: var(--green-2); }
.notice.error { background: var(--red-bg); color: var(--red); }
.notice.info { background: var(--amber-bg); color: #6B4206; }

/* Business page */
.biz { display: grid; grid-template-columns: 1fr 380px; gap: 36px; padding-top: 40px; align-items: start; }
@media (max-width: 900px) { .biz { grid-template-columns: 1fr; } }
.biz-photo { aspect-ratio: 16 / 10; border-radius: var(--r-lg); background: var(--surface) center / cover no-repeat; border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--fdisplay); font-size: 4rem; font-weight: 800; color: var(--border-2); }
.biz h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 24px; }
.biz .where { color: var(--ink-2); font-size: 1.05rem; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 100px; background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-right: 6px; }
.tag.gold { background: var(--amber-bg); color: #6B4206; }
.vote-panel { position: sticky; top: 88px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.vote-panel h2 { font-size: 1.5rem; }
.standing { display: flex; gap: 16px; align-items: baseline; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.standing .big { font-family: var(--fdisplay); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.share { margin-top: 36px; }
.share-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.copy-row { display: flex; gap: 8px; margin-top: 10px; }
.copy-row input { flex: 1; }

/* Standings table */
table.list { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
table.list th, table.list td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
table.list th { font-size: .85rem; color: var(--muted); font-weight: 600; background: var(--surface); }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.result { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; text-decoration: none; color: var(--ink); }
.result:hover { border-color: var(--ink); color: var(--ink); }
.thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--surface) center / cover; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--fdisplay); font-weight: 800; color: var(--muted); }
.searchbar { display: flex; gap: 10px; margin-top: 18px; max-width: 560px; }
.searchbar input { flex: 1; }

.big-cta { background: var(--amber-bg); border-radius: var(--r-lg); padding: 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.big-cta h2 { margin: 0; max-width: 22ch; }
.biz-photo.empty { aspect-ratio: auto; height: 160px; font-size: 3rem; }
