/*
Theme Name: Third Branch PAC
Theme URI: https://www.thirdbranchnv.com/
Author: Gorai Strategies LLC
Author URI: https://goraistrategies.com/
Description: Custom WordPress theme for Third Branch PAC, a nonpartisan judicial political action committee in Clark County, Nevada. Converted from the approved Third Branch Nevada redesign.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary
Text Domain: tbpac
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --tb-ink: #14120F;
  --tb-ink-2: #221E19;
  --tb-ink-3: #332C22;
  --tb-cream: #F6F2EA;
  --tb-card: #FFFDF8;
  --tb-card-hi: #FFFFFF;
  --tb-gold: #C6A579;
  --tb-gold-light: #E4D3B8;
  --tb-gold-deep: #5B4526;
  --tb-bronze: #8A6A3B;
  --tb-text: #4A443B;
  --tb-text-gold-bg: #2E2820;
  --tb-muted: #6B6353;
  --tb-flag: #A81E28;

  --tb-rule: rgba(20, 18, 15, .12);
  --tb-rule-strong: rgba(20, 18, 15, .25);
  --tb-rule-gold: rgba(198, 165, 121, .35);
  --tb-on-dark: rgba(246, 242, 234, .78);

  --tb-display: 'Oswald', 'Arial Narrow', sans-serif;
  --tb-body: 'Barlow', system-ui, -apple-system, sans-serif;

  --tb-wrap: 1240px;
  --tb-gutter: 24px;
  --tb-header-h: 74px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--tb-cream);
  color: var(--tb-ink);
  font-family: var(--tb-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--tb-bronze); text-decoration: none; }
a:hover { color: var(--tb-ink); }

:focus-visible {
  outline: 2px solid var(--tb-gold);
  outline-offset: 3px;
}

.tb-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--tb-ink);
  color: var(--tb-cream);
  font-family: var(--tb-display);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 14px 22px;
}
.tb-skip:focus {
  left: 12px;
  top: 12px;
  color: var(--tb-cream);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.tb-wrap {
  max-width: var(--tb-wrap);
  margin: 0 auto;
  width: 100%;
}

.tb-section { padding: clamp(56px, 8vw, 104px) var(--tb-gutter); }
.tb-section--band { padding: clamp(48px, 6vw, 80px) var(--tb-gutter); }
.tb-section--intro { padding: clamp(48px, 7vw, 88px) var(--tb-gutter) 0; }
.tb-section--lead { padding: clamp(40px, 5vw, 64px) var(--tb-gutter) 0; }
.tb-section--rows { padding: 28px var(--tb-gutter) clamp(56px, 8vw, 96px); }
.tb-section--strip { padding: clamp(44px, 5vw, 64px) var(--tb-gutter); }
.tb-section--steps { padding: clamp(44px, 6vw, 72px) var(--tb-gutter) clamp(56px, 8vw, 96px); }
.tb-section--about { padding: clamp(56px, 8vw, 96px) var(--tb-gutter); }
.tb-section--apply { padding: clamp(48px, 6vw, 88px) var(--tb-gutter); }

.tb-bg-cream { background: var(--tb-cream); }
.tb-bg-ink { background: var(--tb-ink); }
.tb-bg-gold { background: var(--tb-gold); }

.tb-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.tb-split--top { align-items: start; }
.tb-split--narrow { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ==========================================================================
   4. Type
   ========================================================================== */

.tb-eyebrow {
  font-family: var(--tb-display);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tb-gold);
  margin: 0 0 16px;
}
.tb-eyebrow--sm {
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--tb-bronze);
}
.tb-eyebrow--onGold { color: var(--tb-gold-deep); }

.tb-h1 {
  font-family: var(--tb-display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--tb-cream);
  margin: 0;
}
.tb-h1--home {
  font-size: clamp(38px, 7vw, 84px);
  line-height: .98;
  letter-spacing: -.01em;
  max-width: 16ch;
  text-wrap: balance;
}
.tb-h1--donate {
  font-size: clamp(34px, 5.4vw, 64px);
  margin: 0 0 22px;
}

.tb-h2 {
  font-family: var(--tb-display);
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
}
.tb-h2--tight {
  font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: .01em;
}
.tb-h2--band {
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.1;
}
.tb-h2--group {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
}

.tb-h3 {
  font-family: var(--tb-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
}
.tb-h3--sm {
  font-size: 18px;
  letter-spacing: .05em;
  margin: 0 0 10px;
}

.tb-lead {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}

.tb-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--tb-text);
  text-wrap: pretty;
}
.tb-text--sm { font-size: 16px; line-height: 1.55; }
.tb-text--xs { font-size: 15px; line-height: 1.6; }
.tb-text--onDark { color: var(--tb-on-dark); }
.tb-text--onGold { color: var(--tb-text-gold-bg); }
.tb-text--hero {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  color: rgba(246, 242, 234, .86);
  max-width: 56ch;
}

.tb-measure { max-width: 56ch; }
.tb-measure--wide { max-width: 60ch; }
.tb-measure--narrow { max-width: 52ch; }

/* ==========================================================================
   5. Buttons and links
   ========================================================================== */

.tb-btn {
  display: inline-block;
  font-family: var(--tb-display);
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tb-btn--sm { font-size: 12px; padding: 11px 20px; }

.tb-btn--gold { background: var(--tb-gold); color: var(--tb-ink); }
.tb-btn--gold:hover, .tb-btn--gold:focus-visible { background: var(--tb-gold-light); color: var(--tb-ink); }

.tb-btn--ink { background: var(--tb-ink); color: var(--tb-cream); }
.tb-btn--ink:hover, .tb-btn--ink:focus-visible { background: var(--tb-ink-3); color: var(--tb-cream); }

.tb-btn--ghostLight { border-color: rgba(246, 242, 234, .55); color: var(--tb-cream); }
.tb-btn--ghostLight:hover, .tb-btn--ghostLight:focus-visible { border-color: var(--tb-gold); color: var(--tb-gold); }

.tb-btn--ghostDark { border-color: var(--tb-ink); color: var(--tb-ink); }
.tb-btn--ghostDark:hover, .tb-btn--ghostDark:focus-visible { background: rgba(20, 18, 15, .08); color: var(--tb-ink); }

.tb-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tb-arrowlink {
  font-family: var(--tb-display);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tb-bronze);
}
.tb-arrowlink--onDark { color: var(--tb-gold); }
.tb-arrowlink--onDark:hover { color: var(--tb-gold-light); }

.tb-underlink {
  font-family: var(--tb-display);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tb-ink);
  border-bottom: 2px solid var(--tb-ink);
  padding-bottom: 4px;
}
.tb-underlink:hover { color: var(--tb-ink); border-bottom-color: var(--tb-cream); }

/* ==========================================================================
   6. Header
   ========================================================================== */

.tb-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 18, 15, .96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tb-rule-gold);
}

.tb-header__inner {
  max-width: var(--tb-wrap);
  margin: 0 auto;
  padding: 14px var(--tb-gutter);
  display: flex;
  align-items: center;
  gap: 18px 28px;
}

.tb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.tb-brand img { width: 44px; height: 44px; display: block; }
.tb-brand__name {
  font-family: var(--tb-display);
  font-weight: 600;
  letter-spacing: .16em;
  font-size: 13px;
  line-height: 1.25;
  color: var(--tb-cream);
  text-transform: uppercase;
}

.tb-nav { margin-left: auto; }
.tb-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
}
.tb-nav a {
  display: inline-block;
  font-family: var(--tb-display);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tb-cream);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.tb-nav a:hover { color: var(--tb-gold); }
.tb-nav .current-menu-item > a,
.tb-nav .current_page_item > a,
.tb-nav .current-menu-ancestor > a,
.tb-nav .tb-nav__item--current > a {
  color: var(--tb-gold);
  border-bottom-color: var(--tb-gold);
}

.tb-header__actions { display: flex; gap: 10px; }

.tb-nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1px solid rgba(246, 242, 234, .45);
  color: var(--tb-cream);
  font-family: var(--tb-display);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 13px 18px;
  cursor: pointer;
}
.tb-nav-toggle:hover { border-color: var(--tb-gold); color: var(--tb-gold); }

.tb-nav-panel {
  display: none;
  flex-direction: column;
  background: var(--tb-ink);
  border-top: 1px solid rgba(198, 165, 121, .3);
  padding: 4px var(--tb-gutter) 22px;
}
.tb-nav-panel.is-open { display: flex; }
.tb-nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.tb-nav-panel a {
  display: block;
  font-family: var(--tb-display);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tb-cream);
  padding: 16px 0;
  border-bottom: 1px solid rgba(198, 165, 121, .22);
}
.tb-nav-panel a:hover { color: var(--tb-gold); }
.tb-nav-panel .current-menu-item > a,
.tb-nav-panel .current_page_item > a { color: var(--tb-gold); }
.tb-nav-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
}
.tb-nav-panel__actions .tb-btn {
  flex: 1 1 140px;
  text-align: center;
  font-size: 13px;
  padding: 16px 18px;
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.tb-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(280px, 38vh, 400px);
  background-color: var(--tb-ink);
  background-size: cover;
  background-position: center;
}
.tb-hero--home {
  min-height: clamp(460px, 72vh, 720px);
  background-position: center 40%;
}
.tb-hero--mid { min-height: clamp(300px, 42vh, 420px); }

.tb-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, .45) 0%, rgba(20, 18, 15, .9) 100%);
}
.tb-hero--home .tb-hero__scrim {
  background: linear-gradient(180deg, rgba(20, 18, 15, .55) 0%, rgba(20, 18, 15, .35) 45%, rgba(20, 18, 15, .92) 100%);
}
.tb-hero--mid .tb-hero__scrim {
  background: linear-gradient(180deg, rgba(20, 18, 15, .5) 0%, rgba(20, 18, 15, .9) 100%);
}

.tb-hero__inner {
  position: relative;
  max-width: var(--tb-wrap);
  margin: 0 auto;
  padding: 0 var(--tb-gutter) 50px;
  width: 100%;
}
.tb-hero--home .tb-hero__inner { padding-bottom: 72px; }
.tb-hero--mid .tb-hero__inner { padding-bottom: 54px; }
.tb-hero .tb-eyebrow { margin-bottom: 14px; }
.tb-hero--home .tb-eyebrow { margin-bottom: 18px; }
.tb-hero .tb-text--hero { margin: 22px 0 32px; }

/* ==========================================================================
   8. Home: section heads, cards, process strip
   ========================================================================== */

.tb-sectionhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 40px;
  margin-bottom: 44px;
}
.tb-sectionhead p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--tb-text);
  max-width: 44ch;
  margin: 0 0 6px;
  text-wrap: pretty;
}

.tb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--tb-rule);
}

.tb-card {
  background: var(--tb-card);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  color: var(--tb-ink);
  transition: background .2s;
}
.tb-card:hover { background: var(--tb-card-hi); color: var(--tb-ink); }
.tb-card--dark { background: var(--tb-ink); color: var(--tb-cream); }
.tb-card--dark:hover { background: var(--tb-ink-2); color: var(--tb-cream); }

.tb-card__num {
  font-family: var(--tb-display);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--tb-bronze);
}
.tb-card--dark .tb-card__num { color: var(--tb-gold); }
.tb-card p { margin: 0; }
.tb-card--dark p { color: rgba(246, 242, 234, .75); }
.tb-card .tb-arrowlink { margin-top: auto; }

.tb-figure {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--tb-ink);
  background-size: cover;
  background-position: center;
}
.tb-figure__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--tb-ink);
  color: rgba(246, 242, 234, .8);
  font-family: var(--tb-display);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 9px 14px;
}

.tb-stepstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: baseline;
  border-top: 1px solid rgba(20, 18, 15, .16);
  padding-top: 20px;
}
.tb-stepstrip__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.tb-stepstrip__num,
.tb-stepstrip__label {
  font-family: var(--tb-display);
  font-size: 15px;
}
.tb-stepstrip__num { color: var(--tb-gold); }
.tb-stepstrip__label { text-transform: uppercase; letter-spacing: .1em; }
.tb-stepstrip .tb-arrowlink { margin-left: auto; }

/* ==========================================================================
   9. CTA band
   ========================================================================== */

.tb-band {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
}
.tb-band--apply { gap: 26px 48px; }
.tb-band .tb-h2--band { max-width: 26ch; }

/* ==========================================================================
   10. About page
   ========================================================================== */

.tb-prose p { margin: 0 0 18px; }
.tb-prose p:last-child { margin-bottom: 0; }
.tb-prose .tb-lead { margin: 0 0 26px; }

.tb-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(20, 18, 15, .14);
  align-self: start;
}
.tb-stack__item { background: var(--tb-card); padding: 28px 26px; }
.tb-stack__item p { margin: 0; }
.tb-stack__item--dark { background: var(--tb-ink); }
.tb-stack__item--dark .tb-h3--sm { color: var(--tb-cream); }
.tb-stack__item--dark p { color: rgba(246, 242, 234, .75); margin-bottom: 16px; }

/* ==========================================================================
   11. Process page
   ========================================================================== */

.tb-process {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(20, 18, 15, .14);
  border-top: 1px solid rgba(20, 18, 15, .14);
  border-bottom: 1px solid rgba(20, 18, 15, .14);
}
.tb-process__row {
  background: var(--tb-cream);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 48px;
  padding: 34px 4px;
}
.tb-process__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.tb-process__num {
  font-family: var(--tb-display);
  font-size: clamp(38px, 5vw, 58px);
  line-height: .9;
  color: var(--tb-gold);
}
.tb-process__title {
  font-family: var(--tb-display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0;
}
.tb-process__row p { margin: 0; }

/* ==========================================================================
   12. Endorsements
   ========================================================================== */

.tb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.tb-legend p { margin: 0; max-width: 58ch; }
.tb-legend__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  align-items: center;
}
.tb-legend__key {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--tb-display);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tb-text);
}
.tb-legend__swatch {
  width: 12px;
  height: 12px;
  background: var(--tb-gold);
  display: inline-block;
}

.tb-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 22px 0 20px;
  position: sticky;
  top: var(--tb-header-h);
  background: var(--tb-cream);
  z-index: 40;
  border-bottom: 1px solid var(--tb-rule);
  margin-bottom: 26px;
}
.tb-filterbar__chips { display: flex; flex-wrap: wrap; gap: 10px; }

.tb-chip {
  font-family: var(--tb-display);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--tb-rule-strong);
  background: transparent;
  color: var(--tb-text);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tb-chip:hover { border-color: var(--tb-ink); color: var(--tb-ink); }
.tb-chip.is-active {
  border-color: var(--tb-ink);
  background: var(--tb-ink);
  color: var(--tb-cream);
}

.tb-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  border: 1px solid var(--tb-rule-strong);
  padding: 0 14px;
  background: var(--tb-card);
  min-width: 290px;
}
.tb-search__icon {
  font-family: var(--tb-display);
  font-size: 13px;
  color: var(--tb-bronze);
}
.tb-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--tb-body);
  font-size: 15px;
  color: var(--tb-ink);
  padding: 12px 0;
  width: 100%;
}
.tb-search:focus-within { border-color: var(--tb-ink); }

.tb-resultcount {
  font-family: var(--tb-display);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tb-bronze);
  flex: 0 0 auto;
}

.tb-group { margin-bottom: 56px; }
.tb-group[hidden] { display: none; }
.tb-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  border-bottom: 2px solid var(--tb-ink);
  padding-bottom: 12px;
  margin-bottom: 28px;
}
.tb-group__count {
  font-family: var(--tb-display);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tb-bronze);
}
.tb-group__rows { display: flex; flex-direction: column; }

.tb-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr auto;
  gap: 10px 28px;
  align-items: baseline;
  padding: 16px 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--tb-rule);
  transition: background .18s, padding-left .18s;
}
.tb-row:hover { background: var(--tb-card); padding-left: 20px; }
.tb-row[hidden] { display: none; }
.tb-row__seat {
  font-family: var(--tb-display);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tb-bronze);
}
.tb-row__name {
  font-family: var(--tb-display);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.15;
  text-transform: uppercase;
}

.tb-badge {
  font-family: var(--tb-display);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 9px;
  background: var(--tb-gold);
  color: var(--tb-ink);
  white-space: nowrap;
}
.tb-badge--flag { background: var(--tb-flag); color: #FFF6F0; }

.tb-empty { padding: 56px 0; text-align: center; }
.tb-empty[hidden] { display: none; }
.tb-empty p {
  font-family: var(--tb-display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 14px;
}
.tb-empty button {
  font-family: var(--tb-display);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--tb-ink);
  background: transparent;
  color: var(--tb-ink);
  cursor: pointer;
}
.tb-empty button:hover { background: var(--tb-ink); color: var(--tb-cream); }

/* ==========================================================================
   13. Donate
   ========================================================================== */

.tb-donatebox {
  background: var(--tb-card);
  padding: clamp(26px, 3vw, 40px);
}
.tb-donatebox__label {
  font-family: var(--tb-display);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tb-bronze);
  display: block;
  margin-bottom: 18px;
}
.tb-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.tb-amount {
  font-family: var(--tb-display);
  font-size: 17px;
  letter-spacing: .06em;
  padding: 16px 10px;
  border: 1px solid var(--tb-rule-strong);
  background: transparent;
  color: var(--tb-ink);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tb-amount:hover { border-color: var(--tb-ink); }
.tb-amount.is-active {
  border-color: var(--tb-ink);
  background: var(--tb-ink);
  color: var(--tb-cream);
}
.tb-amount-summary {
  border-top: 1px solid var(--tb-rule);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 22px;
}
.tb-amount-summary__label {
  font-family: var(--tb-display);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tb-text);
}
.tb-amount-summary__value {
  font-family: var(--tb-display);
  font-size: 34px;
  line-height: 1;
  color: var(--tb-ink);
}
.tb-donate-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 17px 24px;
}
.tb-fineprint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--tb-muted);
  margin: 16px 0 0;
  text-wrap: pretty;
}

/* ==========================================================================
   14. Footer and help pill
   ========================================================================== */

.tb-footer {
  background: var(--tb-ink-2);
  padding: clamp(44px, 6vw, 72px) var(--tb-gutter) 30px;
  color: rgba(246, 242, 234, .72);
}
.tb-footer__grid {
  max-width: var(--tb-wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.tb-footer img { width: 64px; height: 64px; display: block; margin-bottom: 18px; }
.tb-footer p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 8px;
  max-width: 38ch;
}
.tb-footer p:last-child { margin-bottom: 0; }
.tb-footer__col { display: flex; flex-direction: column; gap: 12px; }
.tb-footer__label {
  font-family: var(--tb-display);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tb-gold);
}
.tb-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tb-footer__col a { font-size: 15px; color: var(--tb-on-dark); }
.tb-footer__col a:hover { color: var(--tb-gold); }
.tb-footer__legal {
  max-width: var(--tb-wrap);
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(198, 165, 121, .25);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.tb-footer__legal span {
  font-family: var(--tb-display);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tb-helppill {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tb-ink);
  color: var(--tb-cream);
  border: 1px solid var(--tb-gold);
  padding: 14px 22px;
  font-family: var(--tb-display);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
  transition: background .2s, color .2s;
}
.tb-helppill:hover { background: var(--tb-gold); color: var(--tb-ink); }
.tb-helppill__dot {
  width: 8px;
  height: 8px;
  background: var(--tb-gold);
  display: inline-block;
  border-radius: 50%;
}
.tb-helppill:hover .tb-helppill__dot { background: var(--tb-ink); }

/* ==========================================================================
   15. Generic page and archive fallbacks
   ========================================================================== */

.tb-page-content { max-width: 72ch; }
.tb-page-content h2 { font-family: var(--tb-display); font-weight: 600; text-transform: uppercase; margin: 40px 0 14px; }
.tb-page-content h3 { font-family: var(--tb-display); font-weight: 600; text-transform: uppercase; margin: 32px 0 12px; }
.tb-page-content p, .tb-page-content li { color: var(--tb-text); }
.tb-page-content img { display: block; }
.tb-entrylist { display: flex; flex-direction: column; gap: 1px; background: rgba(20, 18, 15, .14); }
.tb-entrylist article { background: var(--tb-card); padding: 28px 26px; }
.tb-entrylist h2 { font-family: var(--tb-display); font-weight: 600; font-size: 24px; text-transform: uppercase; margin: 0 0 10px; }
.tb-pagination { margin-top: 36px; font-family: var(--tb-display); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }

/* ==========================================================================
   16. Motion
   ========================================================================== */

.tb-js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.tb-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .tb-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .tb-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .tb-header, .tb-nav-panel, .tb-helppill, .tb-filterbar, .tb-skip { display: none !important; }
  .tb-hero { min-height: 0; background: none; color: var(--tb-ink); }
  .tb-hero__scrim { display: none; }
  .tb-h1 { color: var(--tb-ink); }
  .tb-row, .tb-group { break-inside: avoid; }
  body { background: #FFF; }
}

/* ==========================================================================
   17. Responsive
   ========================================================================== */

@media (min-width: 901px) {
  .tb-nav-panel { display: none !important; }
}

@media (max-width: 900px) {
  .tb-nav,
  .tb-header__actions { display: none; }
  .tb-nav-toggle { display: flex; }
  .tb-search {
    min-width: 0;
    margin-left: 0;
    width: 100%;
  }
  .tb-filterbar { top: 68px; }
}

@media (max-width: 620px) {
  .tb-row {
    grid-template-columns: 1fr auto;
    gap: 4px 14px;
  }
  .tb-row__seat { grid-column: 1 / -1; }
  .tb-row:hover { padding-left: 12px; }
  .tb-helppill {
    right: 12px;
    bottom: 12px;
    padding: 12px 16px;
  }
}
