:root {
  --navy: #08284a;
  --green: #0e5a73;
  --green-light: #f4b942;
  --cream: #fffaf0;
  --white: #ffffff;
  --text: #29465b;
  --muted: #617080;
  --blue: #0e5a73;
  --gold: #f4b942;
  --coral: #e56b5d;
  --pale: #edf7f7;
  --line: rgb(8 40 74 / 15%);
}

body {
  color: var(--text);
  background: var(--cream);
}

h1,
h2,
h3,
h4,
.designation,
.endorsement-statement {
  font-family: Georgia, "Times New Roman", serif;
}

a:focus-visible {
  outline-color: var(--coral);
}

.eyebrow,
.text-link,
.sources a,
.guidance-link strong {
  color: var(--blue);
}

.button,
button,
.campaign-header .campaign-donate,
.campaign-header .campaign-meet {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff !important;
  border-radius: 999px;
}

.button:hover,
.button:focus-visible,
button:hover,
.campaign-header .campaign-donate:hover,
.campaign-header .campaign-meet:hover {
  background: #c95044;
}

.button.secondary {
  border-color: #fff;
  background: transparent;
}

.site-header.campaign-header {
  background: var(--navy);
  color: #fff;
  border-bottom-color: rgb(255 255 255 / 12%);
}

.campaign-header .campaign-brand,
.campaign-header .campaign-primary a,
.campaign-header .campaign-actions a,
.campaign-header summary {
  color: #fff;
}

.campaign-header .campaign-menu-panel {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 16px 36px rgb(8 40 74 / 22%);
}

.campaign-header .campaign-menu-panel a,
.campaign-header .campaign-menu-panel summary {
  color: var(--navy);
}

.campaign-header .campaign-current,
.campaign-header .campaign-menu-panel [aria-current="page"] {
  color: var(--blue);
}

.campaign-header .campaign-current,
.campaign-header .campaign-involved {
  border-bottom-color: var(--gold);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--navy);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 82% 24%, rgb(244 185 66 / 92%) 0 12%, transparent 12.2%),
    linear-gradient(135deg, var(--cream), #fff 52%, var(--pale));
}

.hero::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 7%;
  width: clamp(220px, 27vw, 390px);
  height: clamp(120px, 15vw, 220px);
  border: 38px solid var(--coral);
  border-bottom: 0;
  border-radius: 390px 390px 0 0;
  transform: rotate(-8deg);
  opacity: .85;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: var(--blue);
}

.page-hero,
.election-hero,
.housing-hero,
.mk-hero,
.ai-hero {
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 88% 18%, rgb(244 185 66 / 30%), transparent 25%),
    linear-gradient(145deg, var(--cream), #fff 68%, var(--pale));
}

.page-hero h1,
.election-hero h1,
.housing-hero h1,
.mk-hero h1,
.ai-hero h1,
.page-hero p,
.page-hero .lead,
.election-hero p,
.election-hero .lead,
.housing-hero p,
.housing-hero .lead,
.mk-hero p,
.mk-hero .lead,
.ai-hero .lead,
.ai-hero .position-line {
  color: var(--navy);
}

.page-hero .button,
.election-hero .button,
.housing-hero .button,
.mk-hero .button,
.ai-hero .button {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff !important;
}

.page-hero .button.secondary,
.election-hero .button.secondary,
.housing-hero .button.secondary,
.mk-hero .button.secondary,
.ai-hero .button.secondary {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy) !important;
}

.featured-endorsement,
.simple-panel.story-panel,
.applied-card,
.peer-band,
.support-campaign-band {
  background: var(--navy);
  color: #fff;
}

.featured-endorsement .eyebrow,
.simple-panel.story-panel .eyebrow,
.support-campaign-band .eyebrow,
.peer-band .eyebrow {
  color: var(--gold);
}

.featured-endorsement h2,
.featured-endorsement .endorsement-title,
.featured-endorsement .endorsement-statement,
.featured-endorsement p {
  color: #fff;
}

.featured-endorsement .endorsement-title,
.featured-endorsement p {
  color: #d8e6ef;
}

.featured-endorsement .text-link {
  color: var(--gold);
}

.simple-panel.story-panel h2,
.simple-panel.story-panel h3,
.simple-panel.story-panel p,
.simple-panel.story-panel li,
.applied-card h2,
.applied-card h3,
.applied-card p,
.applied-card li,
.peer-band h2,
.peer-band h3,
.peer-band p,
.peer-band li,
.support-campaign-band h2,
.support-campaign-band h3,
.support-campaign-band p,
.support-campaign-band li {
  color: #fff;
}

.simple-panel.story-panel a,
.applied-card a,
.peer-band a,
.support-campaign-band a {
  color: var(--gold);
}

.support-campaign-band .support-campaign-action,
.support-campaign-band .support-campaign-action h2,
.support-campaign-band .support-campaign-action h3,
.support-campaign-band .support-campaign-action p {
  color: var(--navy);
}

.support-campaign-band .support-campaign-action {
  background: #fff;
}

.support-campaign-band .support-campaign-inner {
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.support-campaign-band h2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  align-items: center;
  column-gap: 1.25rem;
  font-size: clamp(1.65rem, 2.7vw, 2.65rem);
}

.support-campaign-band h2 > span:first-child {
  white-space: nowrap;
}

.support-campaign-band .measure-k-letter {
  position: relative;
  display: inline-block;
  width: 6.5rem;
  margin-left: 0;
  padding-right: .25em;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gold);
  font-size: clamp(4.75rem, 7vw, 6.5rem);
  font-weight: 950;
  letter-spacing: -.08em;
  line-height: .72;
  text-shadow: none;
  transform: none;
  justify-self: end;
}

.support-campaign-band .measure-k-letter span {
  position: absolute;
  top: 50%;
  right: -.05em;
  color: inherit;
  font-size: .48em;
  line-height: 1;
  text-shadow: none;
  transform: translateY(-50%);
}

@media (max-width: 760px) {
  .support-campaign-band h2 {
    grid-template-columns: minmax(0, 1fr) 5rem;
  }

  .support-campaign-band h2 > span:first-child {
    white-space: normal;
  }

  .support-campaign-band .measure-k-letter {
    width: 5rem;
    font-size: 4.75rem;
  }
}

.statement-section,
.credentials-panel,
.senior-band,
.community-band,
.simple-panel,
.simple-panel.alt {
  background: var(--cream);
}

#parcel-tax.highlight {
  max-width: none;
  padding-inline: max(5vw, calc((100vw - 1180px) / 2));
  background:
    radial-gradient(circle at 88% 22%, rgb(229 107 93 / 28%), transparent 18rem),
    var(--gold);
  color: var(--navy);
}

#parcel-tax.highlight .eyebrow,
#parcel-tax.highlight h2,
#parcel-tax.highlight p {
  color: var(--navy);
}

#parcel-tax.highlight .button {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff !important;
}

.cards article,
.guidance-link,
.credential-list li,
.timeline-card,
.endorsement-card,
.fact-card,
.source-card,
.coffee-card,
.feedback-step,
.capstone-lesson {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgb(8 40 74 / 7%);
}

.cards article:nth-child(2),
.metric-strip,
.rooted-line {
  background: var(--gold);
  color: var(--navy);
}

.cards article:nth-child(4),
.context-note,
.research-note,
.guidance-note,
.host-option {
  background: var(--pale);
  color: var(--text);
}

.context-note h2,
.context-note h3,
.context-note p,
.research-note h2,
.research-note h3,
.research-note p,
.guidance-note h2,
.guidance-note h3,
.guidance-note p,
.host-option h2,
.host-option h3,
.host-option p {
  color: inherit;
}

.peer-band .context-note,
.peer-band .context-note strong {
  color: var(--text);
}

.cards,
.principles-grid,
.guidance-links,
.capstone-lessons {
  gap: 1rem;
}

.cta-slogan {
  display: flex;
  flex-wrap: wrap;
  gap: .25em;
}

/* Carry the Arts & Music geometry and color rhythm across the campaign site. */
.page-hero,
.housing-hero,
.mk-hero,
.ai-hero,
.service-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-hero > *,
.housing-hero > *,
.mk-hero > *,
.ai-hero > *,
.service-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero::before,
.housing-hero::before,
.ai-hero::before {
  content: "✦";
  position: absolute;
  top: clamp(1.5rem, 5vw, 4rem);
  right: clamp(2rem, 8vw, 8rem);
  color: var(--blue);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1;
  opacity: .9;
  transform: rotate(10deg);
}

.page-hero::after,
.housing-hero::after,
.ai-hero::after {
  content: "";
  position: absolute;
  right: clamp(-7rem, -4vw, -2rem);
  bottom: clamp(-8rem, -6vw, -4rem);
  width: clamp(16rem, 30vw, 27rem);
  height: clamp(8rem, 15vw, 13.5rem);
  border: clamp(1.5rem, 3vw, 2.75rem) solid var(--coral);
  border-bottom: 0;
  border-radius: 30rem 30rem 0 0;
  opacity: .72;
  transform: rotate(-9deg);
}

.service-hero {
  background-image:
    radial-gradient(circle at 86% 22%, rgb(244 185 66 / 92%) 0 6.5rem, transparent 6.6rem),
    linear-gradient(125deg, #08284a 0%, #173e66 70%, #0e5a73 100%);
}

.service-hero::before {
  content: "✦";
  position: absolute;
  top: 18%;
  right: 12%;
  color: var(--navy);
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1;
  transform: rotate(12deg);
}

.service-hero::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -6rem;
  width: clamp(18rem, 32vw, 30rem);
  height: clamp(9rem, 16vw, 15rem);
  border: clamp(1.75rem, 3vw, 3rem) solid var(--coral);
  border-bottom: 0;
  border-radius: 30rem 30rem 0 0;
  opacity: .7;
  transform: rotate(-10deg);
}

#leadership {
  position: relative;
  max-width: none;
  padding-inline: max(5vw, calc((100vw - 1180px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 78%, rgb(229 107 93 / 24%), transparent 15rem),
    linear-gradient(135deg, var(--pale), #fffaf0 72%);
}

#leadership::after {
  content: "✦";
  position: absolute;
  top: 12%;
  right: 8%;
  color: var(--gold);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 1;
  opacity: .9;
  transform: rotate(10deg);
}

#leadership > * {
  position: relative;
  z-index: 1;
}

.section > .eyebrow::before,
.section-heading-row .eyebrow::before,
.service-kicker::before,
.wide-inner > .eyebrow::before {
  content: "●";
  margin-right: .55em;
  color: var(--coral);
  font-size: .8em;
}

.cards article,
.principle,
.guidance-link,
.fact-card,
.source-card,
.feedback-step,
.capstone-lesson {
  border-top: 5px solid var(--gold);
}

.cards article:nth-child(3n + 2),
.principle:nth-child(3n + 2),
.guidance-link:nth-child(3n + 2),
.fact-card:nth-child(3n + 2),
.source-card:nth-child(3n + 2),
.feedback-step:nth-child(3n + 2),
.capstone-lesson:nth-child(3n + 2) {
  border-top-color: var(--blue);
}

.cards article:nth-child(3n),
.principle:nth-child(3n),
.guidance-link:nth-child(3n),
.fact-card:nth-child(3n),
.source-card:nth-child(3n),
.feedback-step:nth-child(3n),
.capstone-lesson:nth-child(3n) {
  border-top-color: var(--coral);
}

.oath-photo img,
.simple-figure img,
.ai-ta-figure img,
.service-photo img,
.headshot {
  border-color: var(--gold);
  box-shadow: 0 24px 52px rgb(8 40 74 / 18%);
}

.timeline-item,
.commitment,
.ta-story,
.guidance-note,
.research-note {
  border-color: var(--coral);
}

.feedback-icon,
.senior-icon {
  background: var(--blue);
}

table thead,
table .featured {
  color: var(--navy);
}

.metric-strip div:not([aria-hidden]) {
  background: var(--navy);
  color: #fff;
}

.metric-strip strong {
  color: var(--gold);
}

.metric-strip span {
  color: #fff;
}

footer {
  background: #051d37;
}

.footer-slogan {
  color: var(--gold);
}

/* Endorsements: keep longer titles and supporting copy comfortably readable. */
.endorsements-list {
  max-width: 1120px;
  position: relative;
}

.endorsements-list .section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, 1.2fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.endorsements-list .section-heading-row > p {
  max-width: 54ch;
  margin: 0;
  color: #40566a;
  font-size: 1.08rem;
  line-height: 1.7;
}

.endorsement-grid {
  display: grid;
  gap: 1.5rem;
}

.endorsement-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-top: 7px solid var(--gold);
  border-radius: 18px;
  color: var(--text);
}

.endorsement-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -70px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  border: 28px solid rgb(229 107 93 / 24%);
  border-radius: 50%;
  pointer-events: none;
}

.endorsement-card > * {
  position: relative;
  z-index: 1;
}

.endorsement-card:nth-child(1) {
  background: linear-gradient(135deg, #fff8df, #fffdf7 68%);
  border-top-color: var(--gold);
}

.endorsement-card:nth-child(2) {
  background: linear-gradient(135deg, #e8f7f5, #ffffff 70%);
  border-top-color: var(--blue);
}

.endorsement-card:nth-child(2)::after {
  border-color: rgb(244 185 66 / 35%);
}

.endorsement-card h3 {
  color: var(--navy);
}

.endorsement-card .endorsement-title,
.endorsement-card .endorsement-about,
.endorsement-disclaimer {
  color: #40566a;
  font-size: 1rem;
  line-height: 1.75;
}

.endorsement-card .endorsement-statement {
  margin: 1.35rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--coral);
  background: rgb(255 255 255 / 82%);
  color: var(--navy);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.5;
}

.endorsement-disclaimer {
  margin-top: 1.5rem;
}

.endorsement-cta {
  background:
    radial-gradient(circle at 88% 14%, rgb(244 185 66 / 32%), transparent 22rem),
    linear-gradient(135deg, #fffaf0, #edf7f7);
}

/* Candidate statement: balance the portrait with the copy instead of dominating it. */
.statement-page-layout {
  display: block;
  max-width: 900px;
}

.statement-page-layout .oath-photo {
  float: left;
  width: 100%;
  max-width: 240px;
  margin: .4rem clamp(1.5rem, 4vw, 2.75rem) 1.25rem 0;
}

.statement-page-layout .oath-photo img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.statement-page-layout .statement-copy {
  max-width: none;
}

.statement-page-layout .statement-copy::after {
  content: "";
  display: table;
  clear: both;
}

/* Homepage statement: keep the oath photo supportive rather than dominant. */
#statement .statement-layout {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1040px;
}

#statement .oath-photo {
  width: 100%;
  max-width: 220px;
}

#statement .oath-photo img {
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 600px) {
  .page-hero::before,
  .housing-hero::before,
  .ai-hero::before,
  .service-hero::before {
    right: 1rem;
    font-size: 3rem;
    opacity: .45;
  }

  .page-hero::after,
  .housing-hero::after,
  .ai-hero::after,
  .service-hero::after {
    right: -10rem;
    opacity: .35;
  }

  .hero::after {
    right: -135px;
    opacity: .45;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }

  .endorsements-list .section-heading-row,
  .endorsement-card.union-endorsement,
  .statement-page-layout {
    grid-template-columns: 1fr;
  }

  .statement-page-layout .oath-photo {
    float: none;
    max-width: 210px;
    margin: 1.25rem auto 1.5rem;
  }

  #statement .statement-layout {
    grid-template-columns: 1fr;
  }

  #statement .oath-photo {
    max-width: 190px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
