/*
Theme Name: Best of Clarkston
Theme URI: https://clarkstonmichigan.org/
Author: ClarkstonMichigan.org
Author URI: https://clarkstonmichigan.org/
Description: A complete community voting theme for the Best of Clarkston awards, with nominee management, secure daily voting, nominations, SEO/AEO metadata, FAQ schema, and local category pages.
Version: 1.5.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: best-of-clarkston
License: GPL-2.0-or-later
*/

:root {
  --boc-ink: #10233d;
  --boc-deep: #08182b;
  --boc-blue: #0b6e8a;
  --boc-teal: #27b3a2;
  --boc-gold: #f4b942;
  --boc-cream: #fffaf0;
  --boc-paper: #ffffff;
  --boc-muted: #5f6f7e;
  --boc-line: #dfe7ec;
  --boc-success: #19734a;
  --boc-danger: #a12b2b;
  --boc-shadow: 0 20px 55px rgba(16,35,61,.12);
  --boc-radius: 22px;
  --boc-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--boc-ink);
  background: #f4f7f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--boc-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--boc-deep); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; left: 18px; top: 18px;
  width: auto; height: auto; padding: 12px 16px;
  clip: auto; z-index: 10000; background: #fff; color: #000;
}

.boc-container { width: min(calc(100% - 36px), var(--boc-max)); margin-inline: auto; }
.boc-section { padding: 78px 0; }
.boc-section--tight { padding: 48px 0; }
.boc-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 10px; color: var(--boc-blue);
  font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase;
}
.boc-kicker::before { content: ""; width: 24px; height: 3px; border-radius: 5px; background: var(--boc-gold); }
.boc-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 4.8rem); line-height: 1.04; letter-spacing: -.035em; }
.boc-section-title { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 3.5vw, 3.2rem); line-height: 1.08; letter-spacing: -.025em; }
.boc-lead { max-width: 760px; margin: 18px 0 0; color: #dce8ef; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.boc-copy { color: var(--boc-muted); font-size: 1.05rem; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(8,24,43,.94); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.11);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.site-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.78); border-radius: 50%;
  color: var(--boc-gold); font-family: Georgia, serif; font-weight: 800; font-size: 1.3rem;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.07);
}
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: Georgia, serif; font-size: 1.15rem; color: #fff; }
.brand-copy span { margin-top: 6px; color: #b9c8d2; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav a { padding: 10px 12px; color: #eaf2f6; text-decoration: none; border-radius: 999px; font-size: .92rem; font-weight: 750; }
.site-nav a:hover, .site-nav a:focus { background: rgba(255,255,255,.1); color: #fff; }
.site-nav .nav-cta { margin-left: 5px; background: var(--boc-gold); color: var(--boc-deep); }
.site-nav .nav-cta:hover { background: #ffd271; color: var(--boc-deep); }
.nav-toggle { display: none; padding: 9px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; color: #fff; background: transparent; }

.boc-hero {
  position: relative; overflow: hidden; min-height: 650px; display: grid; align-items: center;
  color: #fff; background:
    radial-gradient(circle at 80% 18%, rgba(244,185,66,.23), transparent 23%),
    radial-gradient(circle at 13% 78%, rgba(39,179,162,.22), transparent 30%),
    linear-gradient(135deg, #07182c 0%, #10334c 54%, #0b6e8a 100%);
}
.boc-hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 165px; opacity: .34;
  background:
    linear-gradient(150deg, transparent 0 14%, rgba(255,255,255,.12) 14% 15%, transparent 15% 30%, rgba(255,255,255,.12) 30% 31%, transparent 31% 48%, rgba(255,255,255,.12) 48% 49%, transparent 49%),
    linear-gradient(to top, rgba(1,12,24,.8), transparent);
  clip-path: polygon(0 55%, 6% 39%, 10% 47%, 16% 25%, 20% 49%, 27% 31%, 34% 52%, 40% 24%, 47% 48%, 53% 20%, 60% 47%, 67% 34%, 74% 52%, 81% 28%, 87% 44%, 93% 24%, 100% 47%, 100% 100%, 0 100%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 58px; align-items: center; padding: 84px 0 120px; }
.hero-badge { display: inline-flex; gap: 9px; align-items: center; padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #dcebf1; background: rgba(255,255,255,.07); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--boc-gold); box-shadow: 0 0 0 5px rgba(244,185,66,.14); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.boc-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 50px; padding: 12px 20px; border: 0; border-radius: 999px;
  background: var(--boc-gold); color: var(--boc-deep); text-decoration: none; font-weight: 850;
  box-shadow: 0 10px 26px rgba(0,0,0,.13); transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.boc-button:hover { transform: translateY(-2px); background: #ffd36e; color: var(--boc-deep); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.boc-button--ghost { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); box-shadow: none; }
.boc-button--ghost:hover { color: #fff; background: rgba(255,255,255,.15); }
.boc-button--small { min-height: 42px; padding: 9px 15px; font-size: .9rem; }
.hero-stats { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 24px; }
.hero-stat { display: grid; }
.hero-stat strong { font-size: 1.5rem; color: #fff; }
.hero-stat span { color: #b8cbd5; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; }

.ballot-preview { position: relative; padding: 25px; border: 1px solid rgba(255,255,255,.18); border-radius: 30px; background: rgba(255,255,255,.1); box-shadow: 0 34px 80px rgba(0,0,0,.26); backdrop-filter: blur(16px); transform: rotate(1.5deg); }
.ballot-preview::before { content: ""; position: absolute; inset: -10px 22px auto; height: 20px; border-radius: 8px 8px 0 0; background: rgba(244,185,66,.92); }
.ballot-sheet { padding: 28px; color: var(--boc-ink); border-radius: 20px; background: var(--boc-cream); }
.ballot-sheet h2 { margin: 0; font-family: Georgia, serif; font-size: 2rem; }
.ballot-sheet p { margin: 8px 0 20px; color: var(--boc-muted); }
.ballot-line { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #e5ded0; }
.ballot-box { width: 22px; height: 22px; border: 2px solid var(--boc-blue); border-radius: 6px; background: #fff; }
.ballot-line:nth-of-type(2) .ballot-box { position: relative; background: var(--boc-blue); }
.ballot-line:nth-of-type(2) .ballot-box::after { content: "✓"; position: absolute; inset: -5px 1px; color: #fff; font-weight: 900; }
.ballot-line span { font-weight: 800; }
.ballot-line small { color: var(--boc-muted); }

.answer-box { position: relative; z-index: 3; margin-top: -52px; }
.answer-box-inner { padding: 28px 34px; border-radius: var(--boc-radius); background: #fff; box-shadow: var(--boc-shadow); border-top: 5px solid var(--boc-gold); }
.answer-box h2 { margin: 0 0 8px; font-size: 1.15rem; }
.answer-box p { margin: 0; color: var(--boc-muted); }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 32px; }
.category-card { position: relative; overflow: hidden; min-height: 230px; display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--boc-line); border-radius: var(--boc-radius); color: var(--boc-ink); background: #fff; text-decoration: none; box-shadow: 0 10px 28px rgba(16,35,61,.06); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.category-card::after { content: ""; position: absolute; right: -35px; bottom: -45px; width: 125px; height: 125px; border-radius: 50%; background: linear-gradient(135deg, rgba(39,179,162,.16), rgba(11,110,138,.05)); }
.category-card:hover { transform: translateY(-5px); border-color: rgba(11,110,138,.35); box-shadow: 0 20px 40px rgba(16,35,61,.12); }
.category-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--boc-blue), var(--boc-teal)); font-size: 1.45rem; box-shadow: 0 10px 20px rgba(11,110,138,.22); }
.category-card h3 { margin: 22px 0 8px; font-size: 1.1rem; line-height: 1.2; }
.category-card p { margin: 0; color: var(--boc-muted); font-size: .9rem; }
.category-meta { position: relative; z-index: 1; margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; gap: 8px; color: var(--boc-blue); font-weight: 800; font-size: .82rem; }

.boc-panel { padding: 32px; border-radius: var(--boc-radius); background: #fff; box-shadow: var(--boc-shadow); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.step-card { position: relative; padding: 28px; border-radius: 20px; color: #fff; background: linear-gradient(145deg, #0d2942, #0b6e8a); overflow: hidden; }
.step-card .step-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--boc-deep); background: var(--boc-gold); font-weight: 900; }
.step-card h3 { margin: 19px 0 8px; }
.step-card p { margin: 0; color: #d2e1e8; }

.leaders-grid, .nominee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.nominee-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 100%; border: 1px solid var(--boc-line); border-radius: var(--boc-radius); background: #fff; box-shadow: 0 10px 30px rgba(16,35,61,.07); }
.nominee-card__top { min-height: 130px; display: flex; align-items: flex-end; padding: 24px; color: #fff; background: linear-gradient(135deg, #10233d, #0b6e8a); }
.nominee-card__initials { width: 62px; height: 62px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.5); border-radius: 18px; background: rgba(255,255,255,.1); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 900; }
.nominee-card__body { flex: 1; padding: 24px; }
.nominee-card__category { display: inline-block; margin-bottom: 10px; color: var(--boc-blue); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.nominee-card h2, .nominee-card h3 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.15; }
.nominee-card h2 a, .nominee-card h3 a { color: var(--boc-ink); text-decoration: none; }
.nominee-card h2 a:hover, .nominee-card h3 a:hover { color: var(--boc-blue); }
.nominee-details { display: grid; gap: 6px; margin: 15px 0 0; padding: 0; list-style: none; color: var(--boc-muted); font-size: .9rem; }
.nominee-card__footer { padding: 0 24px 24px; }
.vote-row { display: flex; align-items: center; gap: 10px; }
.boc-vote-button { flex: 1; min-height: 48px; padding: 10px 17px; border: 0; border-radius: 999px; color: #fff; background: var(--boc-blue); font-weight: 900; transition: background .2s ease, transform .2s ease; }
.boc-vote-button:hover { background: var(--boc-deep); transform: translateY(-1px); }
.boc-vote-button[disabled] { cursor: not-allowed; opacity: .7; transform: none; }
.boc-vote-button.is-voted { background: var(--boc-success); }
.share-button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--boc-line); border-radius: 50%; color: var(--boc-ink); background: #fff; font-weight: 900; }
.vote-total { margin-top: 13px; display: flex; justify-content: space-between; gap: 10px; color: var(--boc-muted); font-size: .82rem; font-weight: 700; }
.vote-progress { margin-top: 7px; height: 7px; overflow: hidden; border-radius: 999px; background: #edf2f4; }
.vote-progress span { display: block; height: 100%; min-width: 1%; border-radius: inherit; background: linear-gradient(90deg, var(--boc-teal), var(--boc-blue)); }
.vote-message { min-height: 24px; margin-top: 10px; color: var(--boc-success); font-size: .84rem; font-weight: 750; }
.vote-message.is-error { color: var(--boc-danger); }

.tax-hero, .page-hero { color: #fff; background: linear-gradient(135deg, #08182b, #0b6e8a); }
.tax-hero-inner, .page-hero-inner { padding: 78px 0; }
.tax-breadcrumbs { margin-bottom: 17px; color: #bfd0d9; font-size: .86rem; }
.tax-breadcrumbs a { color: #fff; }
.category-tools { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 30px 0 0; padding: 17px 20px; border: 1px solid var(--boc-line); border-radius: 16px; background: #fff; }
.category-tools input { width: min(100%, 360px); padding: 11px 14px; border: 1px solid var(--boc-line); border-radius: 10px; }
.category-tools p { margin: 0; color: var(--boc-muted); font-size: .9rem; }

.faq-list { display: grid; gap: 14px; margin-top: 28px; }
.faq-item { border: 1px solid var(--boc-line); border-radius: 16px; background: #fff; overflow: hidden; }
.faq-item summary { padding: 19px 22px; cursor: pointer; list-style: none; font-weight: 850; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--boc-blue); font-size: 1.25rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--boc-muted); }

.boc-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.boc-field { display: grid; gap: 7px; }
.boc-field label { font-weight: 800; }
.boc-field input, .boc-field select, .boc-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #cad6dc; border-radius: 10px; background: #fff; }
.boc-field input:focus, .boc-field select:focus, .boc-field textarea:focus { outline: 3px solid rgba(39,179,162,.18); border-color: var(--boc-teal); }
.form-notice { padding: 14px 16px; border-radius: 12px; background: #eaf7f1; color: var(--boc-success); font-weight: 750; }
.form-notice.is-error { background: #fff0f0; color: var(--boc-danger); }
.hp-field { position: absolute; left: -9999px; }

.single-layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
.single-main, .single-sidebar { padding: 30px; border-radius: var(--boc-radius); background: #fff; box-shadow: var(--boc-shadow); }
.single-main h1 { margin-top: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.05; }
.single-sidebar { position: sticky; top: 105px; }
.disclaimer { padding: 17px 19px; border-left: 4px solid var(--boc-gold); background: var(--boc-cream); color: var(--boc-muted); font-size: .9rem; }

.site-footer { color: #d5e1e8; background: var(--boc-deep); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 50px; padding: 64px 0 38px; }
.footer-brand h2 { margin: 0 0 10px; color: #fff; font-family: Georgia, serif; }
.footer-brand p { max-width: 480px; margin: 0; color: #aebfca; }
.footer-column h3 { margin: 0 0 12px; color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .09em; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #c7d5dd; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 22px; color: #91a5b1; font-size: .82rem; }

.content-area { padding: 70px 0; }
.entry-content { color: var(--boc-muted); }
.entry-content h2, .entry-content h3 { color: var(--boc-ink); font-family: Georgia, serif; }
.empty-state { padding: 40px; text-align: center; border: 1px dashed #b9c7cf; border-radius: var(--boc-radius); background: #fff; }

@media (max-width: 1050px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .leaders-grid, .nominee-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 78px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 15px 18px 20px; background: var(--boc-deep); border-top: 1px solid rgba(255,255,255,.1); }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 70px; }
  .ballot-preview { max-width: 620px; transform: none; }
  .steps-grid, .footer-grid { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
}
@media (max-width: 650px) {
  .boc-container { width: min(calc(100% - 24px), var(--boc-max)); }
  .boc-section { padding: 58px 0; }
  .brand-copy span { display: none; }
  .category-grid, .leaders-grid, .nominee-grid, .form-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 205px; }
  .answer-box-inner, .boc-panel, .single-main, .single-sidebar { padding: 23px; }
  .category-tools { align-items: stretch; flex-direction: column; }
  .category-tools input { width: 100%; }
  .footer-bottom { flex-direction: column; }
}

/* Version 1.2 brand system: Clarkston Michigan logo, colors, SEO/AEO content */
:root {
  --boc-ink: #102f50;
  --boc-deep: #071f37;
  --boc-blue: #0b6e8a;
  --boc-teal: #187f93;
  --boc-green: #4f7b32;
  --boc-gold: #e9aa16;
  --boc-cream: #fdf9ef;
  --boc-paper: #ffffff;
  --boc-muted: #5b6d79;
  --boc-line: #d9e3e5;
  --boc-shadow: 0 20px 55px rgba(7,31,55,.12);
}

body {
  background: #f5f7f4;
}

.site-header {
  background: rgba(253,249,239,.97);
  color: var(--boc-deep);
  border-bottom: 1px solid rgba(16,47,80,.13);
  box-shadow: 0 8px 28px rgba(7,31,55,.07);
}
.header-inner {
  min-height: 108px;
}
.site-branding {
  flex: 0 1 410px;
  min-width: 250px;
  color: var(--boc-deep);
}
.site-branding picture {
  display: flex;
  align-items: center;
}
.site-logo {
  display: block;
  width: min(100%, 390px);
  height: auto;
  max-height: 94px;
  object-fit: contain;
  object-position: left center;
}
.site-nav {
  gap: 3px;
}
.site-nav a {
  color: var(--boc-ink);
  font-size: .89rem;
}
.site-nav a:hover,
.site-nav a:focus {
  background: rgba(11,110,138,.09);
  color: var(--boc-deep);
}
.site-nav .nav-cta {
  background: var(--boc-gold);
  color: var(--boc-deep);
  box-shadow: 0 8px 20px rgba(233,170,22,.23);
}
.site-nav .nav-cta:hover {
  background: #f7c34f;
}
.nav-toggle {
  color: var(--boc-deep);
  border-color: rgba(16,47,80,.28);
  background: #fff;
}

.boc-hero {
  background:
    radial-gradient(circle at 82% 16%, rgba(233,170,22,.26), transparent 24%),
    radial-gradient(circle at 12% 78%, rgba(79,123,50,.19), transparent 31%),
    linear-gradient(135deg, #071f37 0%, #103b57 54%, #0b6e8a 100%);
}
.boc-hero::after {
  opacity: .28;
}
.hero-location {
  margin-top: 24px;
}
.boc-kicker--light {
  color: #d7edf0;
}
.boc-kicker--light::before {
  background: var(--boc-gold);
}
.hero-badge {
  border-color: rgba(255,255,255,.25);
  background: rgba(253,249,239,.08);
}
.ballot-preview {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.09);
}
.ballot-sheet {
  background: var(--boc-cream);
  border: 1px solid rgba(233,170,22,.2);
}
.ballot-line:nth-of-type(2) .ballot-box,
.boc-vote-button {
  background: var(--boc-blue);
}

.answer-box-inner {
  position: relative;
  overflow: hidden;
  border-top-color: var(--boc-gold);
  background: linear-gradient(120deg, #fff 0%, var(--boc-cream) 100%);
}
.answer-box-inner::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,110,138,.11), transparent 66%);
  pointer-events: none;
}
.answer-label {
  margin: 0 0 6px !important;
  color: var(--boc-blue) !important;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.answer-box h2,
.answer-box p {
  position: relative;
  z-index: 1;
}

.category-card {
  border-color: rgba(16,47,80,.12);
}
.category-card::after {
  background: linear-gradient(135deg, rgba(79,123,50,.14), rgba(11,110,138,.06));
}
.category-icon {
  background: linear-gradient(135deg, var(--boc-blue), var(--boc-green));
}
.step-card {
  background: linear-gradient(145deg, var(--boc-deep), var(--boc-blue));
}
.nominee-card__top {
  background: linear-gradient(135deg, var(--boc-deep), var(--boc-blue));
}
.vote-progress span {
  background: linear-gradient(90deg, var(--boc-green), var(--boc-blue));
}

.tax-hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 15%, rgba(233,170,22,.22), transparent 25%),
    linear-gradient(135deg, var(--boc-deep), #0c516d 75%, var(--boc-blue));
}
.tax-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -6% -95px auto;
  width: 330px;
  height: 220px;
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 50% 50% 0 0;
  transform: rotate(-8deg);
}
.tax-hero-inner,
.page-hero-inner {
  position: relative;
  z-index: 1;
}

.boc-faq-section {
  background: var(--boc-cream);
  border-top: 1px solid rgba(16,47,80,.06);
}
.faq-item {
  border-color: rgba(16,47,80,.13);
  box-shadow: 0 6px 18px rgba(7,31,55,.035);
}
.faq-item summary {
  color: var(--boc-ink);
}
.faq-item[open] {
  border-color: rgba(11,110,138,.28);
}
.faq-item[open] summary {
  background: rgba(11,110,138,.045);
}

.sidebar-title {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
}
.boc-vote-button--full,
.share-button--full {
  width: 100%;
}
.share-button--full {
  margin-top: 14px;
  border-radius: 999px;
}
.sidebar-link {
  margin: 18px 0 0;
}
.nominee-details--large {
  font-size: 1rem;
}
.post-list__item + .post-list__item {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--boc-line);
}
.post-list__item h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.site-footer {
  background:
    radial-gradient(circle at 12% 20%, rgba(11,110,138,.2), transparent 26%),
    var(--boc-deep);
}
.footer-grid {
  grid-template-columns: 1.5fr .65fr .65fr;
  align-items: center;
}
.footer-brand {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 24px;
  align-items: center;
}
.footer-logo {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
  padding: 7px;
  border-radius: 18px;
  background: var(--boc-cream);
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
}
.footer-brand h2 {
  color: #fff;
}

@media (max-width: 1080px) {
  .header-inner {
    gap: 12px;
  }
  .site-branding {
    flex-basis: 320px;
  }
  .site-logo {
    max-height: 82px;
  }
  .site-nav a {
    padding: 9px 9px;
    font-size: .83rem;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 92px;
  }
  .site-branding {
    flex-basis: 300px;
    min-width: 210px;
  }
  .site-logo {
    width: 300px;
    max-height: 76px;
  }
  .site-nav {
    top: 92px;
    padding: 16px 18px 22px;
    background: var(--boc-cream);
    border-top: 1px solid rgba(16,47,80,.12);
    box-shadow: 0 20px 35px rgba(7,31,55,.15);
  }
  .site-nav a {
    color: var(--boc-ink);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 650px) {
  .header-inner {
    min-height: 80px;
  }
  .site-branding {
    flex-basis: 230px;
    min-width: 0;
  }
  .site-logo {
    width: 230px;
    max-height: 67px;
  }
  .site-nav {
    top: 80px;
  }
  .footer-brand {
    grid-template-columns: 92px 1fr;
    gap: 16px;
  }
  .footer-logo {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 420px) {
  .site-branding {
    flex-basis: 195px;
  }
  .site-logo {
    width: 195px;
  }
  .nav-toggle {
    padding: 8px 10px;
    font-size: .88rem;
  }
}


/* Ranked nominee directory and website calls to action */
.nominee-card__top { position: relative; }
.nominee-rank-badge {
  position: absolute; top: 17px; right: 17px; z-index: 2;
  display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px;
  color: var(--boc-deep); background: var(--boc-gold);
  font-size: .76rem; font-weight: 900; letter-spacing: .045em; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0,0,0,.17);
}
.nominee-site-button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 46px; margin: 0 0 12px; padding: 10px 16px;
  border: 1px solid rgba(11,110,138,.26); border-radius: 13px;
  color: var(--boc-blue); background: #eef8fa; text-decoration: none;
  font-size: .9rem; font-weight: 900; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.nominee-site-button:hover, .nominee-site-button:focus {
  color: var(--boc-deep); background: #dff3f5; border-color: var(--boc-teal); transform: translateY(-1px);
}
.nominee-site-button--sidebar { margin: 16px 0 12px; }
.sidebar-rank {
  display: flex; align-items: center; gap: 13px; margin: 0 0 22px; padding: 15px;
  border: 1px solid #efd28f; border-radius: 16px; background: var(--boc-cream);
}
.sidebar-rank strong { color: var(--boc-blue); font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.sidebar-rank span { color: var(--boc-muted); font-size: .78rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.nominee-details--large a { font-weight: 850; }
@media (max-width: 540px) {
  .nominee-rank-badge { top: 13px; right: 13px; }
}

/* Category quick answer now follows the ranked nominee grid. */
.category-answer-wrap { padding: 0 0 18px; }
.category-answer-wrap .answer-box { margin-top: 0; }
@media (max-width: 720px) {
  .category-answer-wrap { padding-bottom: 8px; }
}
