/* Stay Focus Family
   One stylesheet for the whole site. Brand values come from the SFF web
   brand kit (sff-brand.css). TALA and ZOE pages switch accent colours and
   heading font through the body class. */

:root {
  --blue: #1414c8;
  --blue-deep: #0c0c8a;
  --blue-light: #b9c0f5;
  --mist: #f3f4fe;
  --white: #fff;
  --ink: #12122e;
  --muted: #4e5170;
  --line: #dfe2fb;

  --accent: var(--blue);
  --accent-ink: #fff;
  --heading: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 12px;
}

.theme-tala {
  --accent: #b8892b;
  --accent-ink: #111;
  --gold: #c99a3b;
  --gold-soft: #f6efe0;
  --dark: #0b0b0b;
  --heading-alt: "Cinzel", Georgia, serif;
}

.theme-zoe {
  --navy: #141a6b;
  --accent: #141a6b;
  --accent-ink: #fff;
  --gold: #b88a2e;
  --gold-soft: #f8f3e8;
  --heading-alt: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.1; margin: 0 0 .5em; color: inherit; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-size: .9em; background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Header ---------------- */

.demo-bar {
  background: #fff6d6;
  color: #5c4500;
  font-size: .85rem;
  padding: 8px var(--pad);
  text-align: center;
  border-bottom: 1px solid #f0e1a8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a.btn, .site-nav a.btn:hover { color: var(--accent-ink); }
.theme-tala .site-nav a.btn:hover, .theme-zoe .site-nav a.btn:hover, .site-nav a.btn:hover { color: #fff; }
.site-nav a[aria-current="page"] { font-weight: 700; }
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Section nav used inside TALA and ZOE */
.subnav { background: var(--dark, var(--navy, var(--blue))); }
.theme-zoe .subnav { background: var(--navy); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; }
.subnav a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 12px 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.subnav a:hover { color: #fff; }
.subnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold, #fff); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--heading);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.theme-tala .btn:hover { background: #9a7020; border-color: #9a7020; color: #fff; }
.theme-zoe .btn:hover { background: #0c1050; border-color: #0c1050; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--outline { background: transparent; color: var(--accent); }
.btn--outline:hover { color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--blue); }
.btn--white:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: 8px 16px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------------- Type ---------------- */

.eyebrow {
  display: block;
  font-family: var(--heading);
  font-stretch: 112%;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); font-weight: 800; letter-spacing: -.01em; }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--muted); max-width: 640px; }

/* ---------------- Sections ---------------- */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--mist { background: var(--mist); }
.section--blue { background: var(--blue); color: #fff; }
.section--blue .eyebrow { color: var(--blue-light); }
.section--blue .lede { color: rgba(255,255,255,.82); }
.section-head { margin-bottom: 44px; }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 > *, .grid-3 > *, .feature > *, .profile > * { min-width: 0; }

.card {
  background: #fff;
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 28px;
}
.section--blue .card { border-color: transparent; color: var(--ink); }

/* ---------------- Home: hero ---------------- */

.hero { background: var(--blue); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero .eyebrow { color: var(--blue-light); }
.hero h1 {
  font-weight: 900;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
  line-height: .95;
  margin-bottom: 22px;
}
.hero h1 span { display: block; font-stretch: 75%; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 520px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
/* Brand clips: the light grey matches the video background while it loads */
/* The finished logo shows at once; the video fades in over it when it starts playing */
.clip { position: relative; background: #e8e8ea; aspect-ratio: 16 / 9; overflow: hidden; }
.clip__still, .clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip__still { position: absolute; inset: 0; }
.clip video { position: relative; opacity: 0; transition: opacity .45s ease; }
.clip.is-playing video { opacity: 1; }
.clip--hero { border-radius: var(--radius); }
.clip--tala { border: 1px solid rgba(201, 154, 59, .55); }
.clip--zoe { border: 1px solid #e6e1d3; }

/* About: rings */
.rings { width: 100%; max-width: 440px; margin: 0 auto; }
.rings circle { fill: none; stroke: var(--blue); }
.rings text { font-family: var(--heading); font-weight: 700; font-size: 13px; fill: var(--blue); letter-spacing: .08em; text-transform: uppercase; }
.pull {
  border-left: 4px solid var(--blue);
  padding: 4px 0 4px 20px;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0;
}
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }

/* Solutions */
.solution .num { font-family: var(--heading); font-weight: 800; color: var(--blue-light); font-size: 2.6rem; line-height: 1; }
.solution h3 { margin-top: 14px; font-size: 1.35rem; }
.solution .tag { font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.solution ul { padding-left: 18px; margin: 0 0 1em; color: var(--muted); font-size: .95rem; }

/* TIF */
.tif { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); }
.tif > div { padding: 32px 28px; }
.tif > div + div { border-left: 1px solid rgba(255,255,255,.25); }
.tif .letter { font-family: var(--heading); font-weight: 900; font-size: 3.4rem; line-height: 1; color: #fff; }
.tif h3 { font-size: 1.3rem; margin-top: 12px; }
.tif p { color: rgba(255,255,255,.82); margin: 0; }

/* Who we serve */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.chips span { border: 1px solid var(--blue-light); border-radius: 999px; padding: 6px 14px; font-size: .92rem; background: #fff; }
.steps { display: flex; flex-wrap: wrap; gap: 0; counter-reset: s; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--blue-light); }
.steps li { counter-increment: s; flex: 1 1 0; min-width: 110px; padding: 18px 16px 0 0; font-family: var(--heading); font-weight: 700; }
.steps li::before { content: "0" counter(s); display: block; color: var(--blue); font-size: .85rem; }

/* Programmes */
.prog-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.prog-list .card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.prog-list .when { font-size: .85rem; font-weight: 600; color: var(--blue); margin-bottom: 10px; }

.feature { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.feature img { border-radius: var(--radius); border: 1px solid var(--line); }
.feature .phones { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.feature .phones a { font-weight: 700; text-decoration: none; border: 1px solid var(--blue-light); border-radius: 999px; padding: 8px 16px; }

/* Initiatives */
.initiative { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.initiative .clip { border-bottom: 1px solid var(--line); }
.initiative .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.initiative .body p { color: var(--muted); }
.initiative .links { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Affirmation */
.affirm { background: var(--blue-deep); color: #fff; }
.affirm blockquote { margin: 0; font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); line-height: 1.55; max-width: 860px; }
.affirm strong { display: block; margin-top: 20px; font-family: var(--heading); font-size: 1.4em; text-transform: uppercase; }

/* Engage */
.pathways { display: grid; gap: 12px; }
.pathways button {
  text-align: left;
  background: #fff;
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
}
.pathways button:hover, .pathways button[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.pathways strong { display: block; }
.pathways span { color: var(--muted); font-size: .92rem; }
.pathway-result { margin-top: 16px; padding: 16px 20px; background: var(--mist); border-radius: var(--radius); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border: 0; }
.contact-list b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--blue); color: #fff; padding: 56px 0 28px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 64px; width: auto; margin-bottom: 16px; }
.site-footer p { color: rgba(255,255,255,.8); font-size: .95rem; }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .motto { font-family: var(--heading); font-weight: 800; color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.2); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.7); }

/* ---------------- TALA ---------------- */

.theme-tala h1, .theme-tala h2, .theme-tala .title { font-family: var(--heading-alt); font-weight: 700; letter-spacing: .01em; }
.tala-hero { background: #000; color: #fff; }
.tala-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.tala-hero h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); color: var(--gold); }
.tala-hero p { color: rgba(255,255,255,.78); font-size: 1.08rem; }
.tala-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.theme-tala .eyebrow { color: var(--accent); }
.theme-tala .section--dark { background: var(--dark); color: #fff; }
.theme-tala .section--dark .lede, .theme-tala .section--dark .muted { color: rgba(255,255,255,.7); }
.theme-tala .section--soft { background: var(--gold-soft); }
.theme-tala .card { border-color: #e7dcc4; }
.theme-tala .ticks li::before { background: var(--gold); }
.theme-tala .badge:not(.badge--green) { background: var(--gold-soft); color: #6b4f12; }
.track { border-top: 4px solid var(--gold); }
.track h3 { font-family: var(--heading-alt); font-size: 1.4rem; }
.price-tag { display: inline-block; font-weight: 700; background: var(--gold-soft); color: #6b4f12; border-radius: 999px; padding: 3px 12px; font-size: .85rem; margin-bottom: 12px; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timeline li { border-top: 2px solid rgba(255,255,255,.25); padding-top: 16px; }
.timeline li.is-now { border-top-color: var(--gold); }
.timeline b { display: block; font-family: var(--heading); font-size: 1.05rem; margin-bottom: 4px; }
.timeline span { color: rgba(255,255,255,.65); font-size: .92rem; }
.timeline .now { display: inline-block; margin-top: 8px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--heading); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------------- ZOE ---------------- */

.theme-zoe h1, .theme-zoe h2, .theme-zoe .title { font-family: var(--heading-alt); font-weight: 700; }
.theme-zoe .eyebrow { color: var(--gold); }
.zoe-hero { border-bottom: 1px solid var(--line); background: #fff; }
.zoe-hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.zoe-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); color: var(--navy); }
.zoe-hero .tagline { font-family: var(--heading-alt); font-style: italic; color: var(--gold); font-size: 1.3rem; }
.zoe-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.theme-zoe .section--navy { background: var(--navy); color: #fff; }
.theme-zoe .section--navy .lede { color: rgba(255,255,255,.78); }
.theme-zoe .section--soft { background: var(--gold-soft); }
.theme-zoe .card { border-color: #e6e1d3; }
.theme-zoe .ticks li::before { background: var(--gold); }
.theme-zoe .avatar--blank { font-family: var(--heading-alt); }
.pillar h3 { font-family: var(--heading-alt); color: var(--navy); font-size: 1.35rem; }
.theme-zoe .timeline li { border-top-color: rgba(255,255,255,.3); }

/* ---------------- Forms ---------------- */

.form { display: grid; gap: 18px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 6px; margin: 0; }
.form legend { font-family: var(--heading); font-weight: 700; padding: 0 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .req { color: #b42318; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #c8cbe0;
  border-radius: 8px;
  background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #d92d20; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.photo-pick { display: flex; gap: 14px; align-items: center; }
.photo-pick img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.counter { font-size: .8rem; color: var(--muted); text-align: right; }

.notice { border-radius: var(--radius); padding: 18px 20px; background: var(--mist); border: 1px solid var(--blue-light); }
.notice--warn { background: #fff8e6; border-color: #f3dca0; }
.notice--ok { background: #ecfdf3; border-color: #abefc6; }
.notice h3 { font-size: 1.15rem; margin-bottom: 6px; }

/* ---------------- Voting ---------------- */

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

.voter-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.category { margin-bottom: 36px; }
.category > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.category h3 { font-size: 1.3rem; margin: 0; }
.category > p { color: var(--muted); margin-bottom: 14px; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--blue); }
.badge--gold { background: var(--gold-soft, #f6efe0); color: #6b4f12; }
.badge--green { background: #ecfdf3; color: #067647; }
.badge--grey { background: #f2f4f7; color: #475467; }
.badge--red { background: #fef3f2; color: #b42318; }

.nominee {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: #fff;
}
.nominee.is-mine { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.nominee.is-target { animation: flash 1.6s ease-out 1; }
@keyframes flash { from { background: #fff4d6; } to { background: #fff; } }
.nominee h4 { margin: 0; font-size: 1.05rem; }
.nominee .sub { font-size: .88rem; color: var(--muted); }
.bar { height: 6px; background: #eef0f6; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.votes-n { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.nominee .actions { display: flex; gap: 6px; align-items: center; }

.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.avatar--blank { display: grid; place-items: center; background: var(--mist); color: var(--blue); font-weight: 800; font-family: var(--heading); }
.theme-tala .avatar--blank { background: var(--gold-soft); color: #6b4f12; }
.theme-zoe .avatar--blank { background: var(--gold-soft); color: var(--navy); }

.icon-btn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; font-size: .85rem; font-weight: 600; }
.icon-btn:hover { border-color: var(--accent); }

/* ZOE contestants */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.toolbar input, .toolbar select { padding: 10px 12px; border: 1px solid #c8cbe0; border-radius: 8px; background: #fff; }
.toolbar input { flex: 1 1 220px; }
.contestants { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.contestant { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.contestant .photo { display: block; text-decoration: none; position: relative; aspect-ratio: 4 / 5; background: var(--gold-soft); }
.contestant .photo img, .contestant .photo .avatar--blank { width: 100%; height: 100%; border-radius: 0; object-fit: cover; font-size: 2.6rem; }
.contestant .no { position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff; font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.contestant .rank { position: absolute; top: 10px; right: 10px; background: var(--gold); color: #fff; font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.contestant .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.contestant h3 { font-size: 1.15rem; margin: 0; }
.contestant h3 a { color: inherit; text-decoration: none; }
.contestant .meta { font-size: .88rem; color: var(--muted); }
.contestant .btn { margin-top: 10px; }

.leaderboard { list-style: none; padding: 0; margin: 0; counter-reset: lb; }
.leaderboard li { counter-increment: lb; display: grid; grid-template-columns: 32px 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.leaderboard li::before { content: counter(lb); font-weight: 800; color: var(--muted); text-align: center; }
.leaderboard li:nth-child(-n+3)::before { color: var(--gold, var(--blue)); }
.leaderboard .avatar { width: 44px; height: 44px; font-size: .85rem; }
.leaderboard b { font-variant-numeric: tabular-nums; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #12b76a; }

.profile { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.profile .photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--gold-soft); }
.profile .photo img, .profile .photo .avatar--blank { width: 100%; height: 100%; border-radius: 0; font-size: 4rem; object-fit: cover; }
.stat-row { display: flex; gap: 28px; margin: 20px 0; flex-wrap: wrap; }
.stat-row div b { display: block; font-size: 1.8rem; font-family: var(--heading); }
.stat-row div span { font-size: .85rem; color: var(--muted); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- Dialog ---------------- */

dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(460px, calc(100vw - 32px));
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
dialog::backdrop { background: rgba(10, 10, 34, .55); }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
dialog .dlg-head h3 { margin: 0; font-size: 1.15rem; }
dialog .dlg-body { padding: 22px; }
dialog .x { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; }
.qty button { width: 40px; height: 40px; border-radius: 8px; border: 1px solid #c8cbe0; background: #fff; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 90px; text-align: center; padding: 9px; border: 1px solid #c8cbe0; border-radius: 8px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.presets button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: .85rem; }
.presets button:hover { border-color: var(--accent); }
.total { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 8px; font-weight: 700; }

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: .95rem;
  max-width: calc(100vw - 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: #b42318; }
.toast--ok { background: #067647; }

/* ---------------- Policies ---------------- */

.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5em; }
.prose li { margin-bottom: 6px; }

/* ---------------- TALA and ZOE footers and details use their own palette ---------------- */

.theme-tala .site-footer { background: #000; border-top: 1px solid rgba(201, 154, 59, .55); }
.theme-tala .site-footer h4 { color: var(--gold); }
.theme-tala .site-footer .bottom { border-top-color: rgba(201, 154, 59, .3); }
.theme-tala main a:not(.btn):not(.icon-btn) { color: #8a6417; }
.theme-tala .form fieldset { border-color: #e7dcc4; }

.theme-zoe .site-footer { background: var(--navy); border-top: 3px solid var(--gold); }
.theme-zoe .site-footer h4 { color: #e3c987; }
.theme-zoe main a:not(.btn):not(.icon-btn) { color: var(--navy); }
.theme-zoe .form fieldset { border-color: #e6e1d3; }

/* ---------------- Loading feedback ---------------- */

.topbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.topbar.is-on { opacity: 1; }
.topbar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .25s ease-out; }

.loader { display: none; position: fixed; inset: 0; z-index: 300; overflow: hidden; background: #fff; align-items: center; justify-content: center; transition: opacity .4s ease; }
html.show-loader { overflow: hidden; }
.show-loader .loader { display: flex; animation: loader-safety .4s ease 10s forwards; }
.loader.is-done { opacity: 0; pointer-events: none; }
/* The video sits on a feathered edge so its studio background melts into the page colour */
.loader__stage { position: relative; flex: none; width: clamp(560px, 100vw, 920px); aspect-ratio: 16 / 9; }
.loader__still, .loader__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(ellipse closest-side at center, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse closest-side at center, #000 55%, transparent 100%); }
.loader__video { opacity: 0; transition: opacity .4s ease; }
.loader.is-playing .loader__video { opacity: 1; }
@keyframes loader-safety { to { opacity: 0; visibility: hidden; } }

/* Placeholder shapes shown while data loads */
.skel { display: block; position: relative; overflow: hidden; background: #e9ebf7; border-radius: 6px; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); transform: translateX(-100%); animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { to { transform: translateX(100%); } }
.skel-row { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.skel--circle { width: 56px; height: 56px; border-radius: 50%; }
.skel-lines { display: grid; gap: 10px; }
.skel-lines .skel { height: 12px; }
.skel-lines .skel:first-child { height: 16px; width: 45%; }
.skel-title { height: 22px; width: 38%; margin: 0 0 14px; }
.skel-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.skel-card .skel { border-radius: 0; }
.skel-card .skel--photo { aspect-ratio: 4 / 5; }
.skel-card .skel-lines { padding: 14px 16px 18px; }
.skel--block { height: 190px; }
.skel--profile { aspect-ratio: 4 / 5; border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  .skel::after { display: none; }
  .loader, .topbar i { transition: none; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 960px) {
  .hero .wrap, .tala-hero .wrap, .zoe-hero .wrap, .grid-2, .feature, .profile { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .tif { grid-template-columns: 1fr; }
  .tif > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.25); }
  .timeline { grid-template-columns: 1fr 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .feature img { max-width: min(360px, 100%); }
  .profile .photo { max-width: min(380px, 100%); }
}

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 18px;
  }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; border-bottom: 2px solid var(--accent); }
  .menu-open .site-nav { display: flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .steps { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
  .steps li { padding: 18px 8px 6px; }
  .steps li:last-child { grid-column: 1 / -1; }
  .prog-list, .form-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .nominee { grid-template-columns: 48px 1fr; }
  .nominee .avatar { width: 48px; height: 48px; }
  .nominee .actions { grid-column: 1 / -1; }
  .nominee .actions .btn { flex: 1; }
  .contestants { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contestant .body { padding: 12px; }
  .contestant .btn { padding: 10px 12px; }
  .logo img { height: 40px; }
}
