/* IWEC Finalist Voting: navy, champagne gold, white. Solid colours only. */
:root {
  --navy: #0B1F3A;
  --navy-2: #13294B;
  --gold: #C9A961;
  --gold-dark: #A8873F;
  --gold-soft: #F4ECDA;
  --cream: #FAF7F0;
  --ink: #1A2233;
  --muted: #5B6474;
  --line: #E6E0D2;
  --white: #FFFFFF;
  --success: #2E7D5B;
  --danger: #B3261E;
  --radius: 16px;
  --serif: 'Besley', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.tiny { font-size: .85rem; color: var(--muted); margin: 18px 0 0; text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 14px; }
.eyebrow-gold { color: var(--gold); }

/* Top bar (matches the awards site: navy strip, white header, gold rule) */
.topstrip { background: var(--navy); color: #C9D1DE; font-size: .8rem; letter-spacing: .03em; }
.topstrip .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.topbar { background: var(--white); border-bottom: 2px solid var(--gold); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.brand-mark { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .08em; color: var(--navy); font-weight: 700; }
.brand-text { color: var(--navy); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; border-left: 1px solid var(--line); padding-left: 14px; max-width: 220px; line-height: 1.35; }
.topbar-link { flex: 0 0 auto; padding: 11px 20px; border-radius: 6px; background: var(--gold); color: var(--navy); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.topbar-link:hover { background: var(--gold-dark); color: var(--white); }
@media (max-width: 640px) {
  .topstrip-r { display: none; }
  .topstrip .wrap { justify-content: center; text-align: center; }
  .brand-text { display: none; }
  .brand img { height: 46px; }
  .topbar-link { padding: 9px 14px; font-size: .72rem; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 64px 0 76px; }
.hero h1 { color: var(--white); }
.hero .lead { color: #D8DEE8; font-size: 1.15rem; max-width: 620px; margin: 0 auto 30px; }
.status { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 1px solid var(--gold); color: var(--white); }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #5FD39A; box-shadow: 0 0 0 4px rgba(95,211,154,.25); }
.status-closed, .status-paused, .status-upcoming { border-color: rgba(255,255,255,.35); }
.countdown { color: var(--gold); }
.countdown:empty { display: none; }

/* Steps */
.steps { background: var(--white); border-bottom: 1px solid var(--line); }
.steps .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 34px; padding-bottom: 34px; }
.step { text-align: center; }
.step span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--navy); font-weight: 800; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.step strong { color: var(--navy); font-size: 1.02rem; }

/* Toolbar: search + category chips */
.toolbar { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 1px solid var(--line); padding: 16px 0 12px; }
.search input { width: 100%; max-width: 560px; display: block; margin: 0 auto 12px; padding: 14px 20px 14px 46px; font: inherit; border: 1px solid var(--line); border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235B6474' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 18px center; }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.25); }
.chips { display: flex; gap: 8px; overflow-x: auto; justify-content: safe center; padding: 2px 2px 6px; scrollbar-width: thin; }
.chip { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.chip:hover { border-color: var(--gold); }
.chip.is-voted { background: var(--gold-soft); border-color: var(--gold); }
.chip.is-voted::before { content: '\2713  '; color: var(--success); }
.no-results { padding: 50px 20px; color: var(--muted); }

/* Category + cards */
.category { padding: 64px 0 20px; }
.category-head { max-width: 720px; margin: 0 auto 34px; }
.voted-note { display: inline-block; margin: 8px 0 0; padding: 6px 14px; border-radius: 999px; background: #E4F2EA; color: var(--success); font-weight: 700; font-size: .88rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 272px)); gap: 24px; justify-content: center; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; text-align: center; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card.is-chosen { border: 2px solid var(--gold); background: #FFFDF7; }
.card-photo { display: block; margin-bottom: 18px; text-decoration: none; }
.card h3 { margin: 0 0 4px; }
.card h3 a { color: var(--navy); text-decoration: none; }
.biz { color: var(--ink); font-weight: 600; margin: 0 0 2px; }
.biz-lg { font-size: 1.15rem; }
.city { color: var(--muted); font-size: .92rem; margin: 0; }
.card-actions { margin-top: auto; padding-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.avatar { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: var(--navy); }
.avatar-initials { display: grid; place-items: center; color: var(--gold); font-family: var(--serif); font-size: 3.2rem; font-weight: 600; letter-spacing: .04em; }
.avatar-lg { width: 260px; max-width: 70vw; border-radius: 50%; margin: 0 auto; border: 4px solid var(--gold); }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; min-height: 50px; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover:not(:disabled) { background: var(--gold-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-block { width: 100%; }
.btn-xl { padding: 18px 40px; font-size: 1.12rem; min-width: 260px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.is-chosen, .btn.is-chosen:disabled { background: var(--success); color: var(--white); opacity: 1; }
.btn.is-done { background: var(--line); color: var(--muted); }
.link-btn { background: none; border: 0; color: var(--gold-dark); font: 600 .95rem var(--sans); text-decoration: underline; cursor: pointer; padding: 8px; }
.link { font-weight: 600; }

/* Profile page */
.profile { padding: 60px 0 70px; }
.profile-photo { margin: 10px 0 26px; }
.h-dark { color: var(--navy); }
.profile-cta { margin: 30px 0 34px; }
.profile-cta .voted-note { display: block; width: max-content; margin: 14px auto 0; }
.bio { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; margin: 0 auto 36px; max-width: 680px; }
.share-block { margin: 0 0 30px; }

/* Share */
.share-lead { font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.share-btn { padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--navy); text-decoration: none; font: 600 .9rem var(--sans); cursor: pointer; }
.share-btn:hover { border-color: var(--gold); background: var(--gold-soft); }

/* Rules */
.rules { padding: 70px 0 80px; }
.rule-list { list-style: none; padding: 0; margin: 20px 0 0; }
.rule-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.rule-list li:last-child { border-bottom: 0; }
.section { padding: 80px 0; }

/* Footer */
.footer { background: var(--navy); color: #C9D1DE; padding: 46px 0; text-align: center; }
.footer-title { font-family: var(--serif); color: var(--white); font-size: 1.2rem; }
.footer-small { font-size: .88rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.footer a { color: var(--gold); }

/* Modal */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,31,58,.72); }
.modal-card { position: relative; width: 100%; max-width: 470px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); border-radius: 20px; padding: 40px 32px 32px; text-align: center; }
.modal-card h2 { font-size: 1.7rem; }
.modal-x { position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; border: 0; background: none; font-size: 1.9rem; color: var(--muted); cursor: pointer; border-radius: 50%; }
.modal-x:hover { background: var(--cream); }
.form { text-align: left; margin-top: 20px; }
.form label { display: block; font-weight: 700; font-size: .92rem; color: var(--navy); margin-bottom: 16px; }
.form input[type=text], .form input[type=email] { display: block; width: 100%; margin-top: 6px; padding: 14px 16px; font: 500 1.05rem var(--sans); border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.25); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); font-size: .9rem; }
.form .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold-dark); flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--danger); font-weight: 600; font-size: .92rem; min-height: 1.2em; margin: 4px 0 12px; text-align: center; }
.error:empty { margin: 0; min-height: 0; }
.code-input { display: block; width: 100%; text-align: center; font: 700 2rem/1 'Courier New', monospace !important; letter-spacing: .5em; padding: 16px 0 16px .5em !important; border: 2px solid var(--gold) !important; border-radius: 14px; margin: 6px 0 14px; }
.code-links { display: flex; justify-content: center; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.tick { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: var(--white); font-size: 2.2rem; font-weight: 700; }
.tick-muted { background: var(--gold); color: var(--navy); }
[data-step="success"] .muted { font-size: 1.05rem; }
[data-step="success"] .share-lead { margin-top: 22px; font-size: .98rem; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 46px 0 54px; }
  .steps .wrap { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .step { display: flex; gap: 14px; text-align: left; align-items: center; }
  .step span { margin: 0; flex: 0 0 auto; }
  .chips { justify-content: flex-start; }
  .category { padding-top: 46px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 12px 12px 14px; }
  .card h3 { font-size: 1.05rem; }
  .biz { font-size: .88rem; }
  .city { font-size: .8rem; }
  .card-actions { grid-template-columns: 1fr; padding-top: 12px; }
  .card-actions .btn-ghost { display: none; }
  .card .btn { min-height: 46px; padding: 10px 14px; }
  .avatar-initials { font-size: 2.2rem; }
  .modal { padding: 0; place-items: end center; }
  .modal-card { border-radius: 22px 22px 0 0; max-height: 92vh; padding: 38px 22px calc(26px + env(safe-area-inset-bottom)); }
  .bio { padding: 22px; }
  .btn-xl { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Layout fixes: keep both card buttons inside the card, wrap category chips on wide screens */
.card-actions { grid-template-columns: 1fr 1fr; }
.card-actions .btn { padding: 12px 10px; min-width: 0; font-size: .95rem; }
.card.is-chosen { border: 1px solid var(--gold); box-shadow: 0 0 0 2px var(--gold); }
@media (min-width: 900px) {
  .chips { flex-wrap: wrap; justify-content: center; overflow: visible; }
}
@media (max-width: 640px) {
  .topstrip-venue { display: none; }
  .status { border-radius: 18px; }
  .hero { padding: 48px 0 56px; }
}
@media (min-width: 900px) { html { scroll-padding-top: 230px; } }
