@import url("./tokens.css");

/* Force light theme regardless of OS */
:root { color-scheme: light; }   /* tells the UA we’re light only */
html, body { background: var(--paper); color: var(--ink); }

/* If a prior dark mode existed, neutralize it */
.dark, [data-mode="dark"] html, [data-mode="dark"] body {
  background: var(--paper) !important;
  color: var(--ink) !important;
}

/* If a media-query dark mode exists, override it */
@media (prefers-color-scheme: dark) {
  html, body { background: var(--paper) !important; color: var(--ink) !important; }
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--brand-azul);
}

.brand,
.brand__text,
.nav,
.nav a,
.nav-parent,
.menu,
.menu a,
.nav-toggle,
.btn,
.btn.primary,
.btn.cta,
.btn--navy,
.btn--accent,
.btn-primary,
.btn-accent,
.btn-secondary {
  font-family: var(--font-head);
}

a { color: var(--brand-link); text-decoration: none; }
a:hover { text-decoration: underline; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100%, var(--layout-max));
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
}

.site-header { position: sticky; top: 0; background: var(--paper); border-bottom: 1px solid var(--border); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s-4);
}
.brand { font-weight: 700; font-size: calc(1.25rem * var(--brand-wordmark-scale, 1)); color: var(--brand-azul); }
.brand__home {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: inherit;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.brand__home:hover { text-decoration: none; }
.brand__home[aria-current] { cursor: default; }
.brand__ticker-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.brand__ticker-link:hover { text-decoration: none; }
.brand__logo {
  display: block;
  height: var(--brand-logo-height, clamp(2.25rem, 5vw, 2.75rem));
  max-height: var(--brand-logo-height, clamp(2.25rem, 5vw, 2.75rem));
  width: auto;
}
.nav { display: flex; gap: var(--s-4); align-items: center; }
.nav a { color: var(--brand-azul); }
.nav a.active { color: var(--brand-azul-deep); font-weight: 600; }

.menu__search {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: 0 1 auto;
}

.menu-search__panel {
  flex: 1 1 100%;
  width: 100%;
}

.menu-search {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  width: 100%;
}

.menu-search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--paper);
}

.menu-search__input:focus {
  outline: 2px solid var(--brand-link);
  outline-offset: 2px;
}

.menu-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--s-2) + 0.125rem) var(--s-4);
  border: 1px solid var(--brand-azul);
  border-radius: var(--btn-radius);
  background: var(--brand-azul);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
}

.menu-search__button:hover,
.menu-search__button:focus-visible {
  text-decoration: none;
  background: var(--brand-azul-deep);
  border-color: var(--brand-azul-deep);
}

.menu-search__button:focus-visible {
  outline: 2px solid var(--brand-link);
  outline-offset: 2px;
}

.menu-search__button:active {
  background: color-mix(in srgb, var(--brand-azul) 85%, #000 15%);
  border-color: color-mix(in srgb, var(--brand-azul) 85%, #000 15%);
}

.menu-search__toggle {
  display: none;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-2) var(--s-3);
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--brand-azul);
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.menu-search__toggle::before {
  content: "🔍";
  font-size: 1rem;
  line-height: 1;
}

.menu-search__toggle:hover,
.menu-search__toggle:focus-visible {
  text-decoration: none;
  background: color-mix(in srgb, var(--brand-azul) 8%, var(--paper));
  border-color: var(--brand-azul);
}

.menu-search__toggle:focus-visible {
  outline: 2px solid var(--brand-link);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }
  .nav {
    flex-wrap: wrap;
    gap: var(--s-2);
  }
}

@media (max-width: 900px) {
  .menu__search {
    width: 100%;
  }

  .mobile-nav .menu-search {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-nav .menu-search__button {
    width: 100%;
  }
}

@media (min-width: 901px) {
  .menu__search {
    margin-left: auto;
    position: relative;
  }

  .menu__search--desktop {
    align-items: center;
    flex: 0 0 auto;
  }

  .menu__search--desktop .menu-search__toggle {
    display: inline-flex;
  }

  .menu__search--desktop .menu-search__panel {
    position: absolute;
    right: 0;
    top: calc(100% + var(--s-2));
    width: min(22rem, 92vw);
    padding: var(--s-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 1000;
  }

  .menu__search--desktop:not(.is-open) .menu-search__panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.25rem);
    pointer-events: none;
  }

  .menu__search--desktop.is-open .menu-search__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu__search--desktop .menu-search {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-3);
  }

  .menu__search--desktop .menu-search__button {
    width: 100%;
  }
}

/* Base button · shared size */
.btn,
.btn.primary,
.btn.cta,
.btn--navy,
.btn--accent,
.btn-primary,
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;

  min-height: 48px;
  padding: 0 1rem;
  line-height: 1;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--btn-radius, .75rem);
  border: 1px solid transparent;
  text-decoration: none;
}

/* (variants keep ONLY visual differences) */
.btn--navy,
.btn.primary {
  background: var(--brand-azul);
  color: #fff;
  font-size: 1.2rem;
}

.btn--accent,
.btn.cta,
.btn-primary,
.btn-accent {
  background: var(--brand-sun);
  color: #fff;
  font-size: 1.2rem;
}

/* Optional: keep hover brightness without changing height */
.btn--navy:hover,
.btn.primary:hover { filter: brightness(.95); }

.btn--accent:hover,
.btn.cta:hover,
.btn-primary:hover,
.btn-accent:hover { filter: brightness(.95); }

.btn-secondary { background: none; border: 1px solid var(--brand-azul-deep); color: var(--brand-azul-deep); }
.btn-secondary:hover { background: var(--brand-azul-deep); color: #fff; }
.theme--light .btn-secondary,
.on-light .btn-secondary,
.btn-secondary.on-light {
  color: var(--navy);
  border-color: var(--navy);
}

.theme--light .btn-secondary:hover,
.on-light .btn-secondary:hover,
.btn-secondary.on-light:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn:disabled { opacity: .6; cursor: not-allowed; }

.display { font-size: var(--h1); }
.lead { font-size: 1.125rem; }
.h2 { font-size: var(--h2); }

.grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
.cards {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
}
.card .card-title { margin: 0 0 var(--s-3); font-weight: 700; }

.tabs { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-5); }
.tabs a { padding: var(--s-2) var(--s-4); border-radius: var(--btn-radius); border: 1px solid transparent; color: var(--brand-azul); }
.tabs a:hover, .tabs a.active { background: var(--brand-azul); color: #fff; }

/* Default vertical rhythm for sections */
.section {
  padding-block: var(--s-6);
  background: #fff;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--band-bg), var(--white));
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.08);
}
.search-form__field {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}
.search-form__field::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: var(--s-3);
  margin-block: auto;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--ink-2);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23000' d='M8.75 2a6.75 6.75 0 0 1 5.323 10.91l3.509 3.508a.75.75 0 0 1-.976 1.133l-.084-.073-3.507-3.508A6.75 6.75 0 1 1 8.75 2Zm0 1.5a5.25 5.25 0 1 0 0 10.5a5.25 5.25 0 0 0 0-10.5Z'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23000' d='M8.75 2a6.75 6.75 0 0 1 5.323 10.91l3.509 3.508a.75.75 0 0 1-.976 1.133l-.084-.073-3.507-3.508A6.75 6.75 0 1 1 8.75 2Zm0 1.5a5.25 5.25 0 1 0 0 10.5a5.25 5.25 0 0 0 0-10.5Z'/%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
}
.search-form__input {
  width: 100%;
  padding: var(--s-3);
  padding-inline-start: calc(1.25rem + var(--s-3) * 2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.search-form__input:focus {
  outline: none;
  border-color: var(--brand-link);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-link) 20%, transparent);
}
.search-status {
  margin: 0 0 var(--s-4);
  font-weight: 600;
}
.search-empty {
  margin: 0 0 var(--s-4);
  color: var(--ink-2);
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}
.search-result {
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
}
.search-result__title {
  margin: 0 0 var(--s-2);
  font-size: 1.1rem;
}
.search-result__title a {
  color: var(--brand-azul);
}
.search-result__description {
  margin: 0;
  color: var(--ink-2);
}
.search-result__meta {
  margin: var(--s-2) 0 0;
  color: var(--ink-2);
  font-size: .9rem;
}

.section--notice {
  background: var(--paper);
}

.section--carousel {
  background: var(--paper);
}

/* If one .section follows another, don’t add full top padding twice */
.section + .section { padding-top: var(--s-4); }

.section.alt { background: var(--muted); }

/* Headings at the top of a section shouldn’t push content down */
.section h2,
.section .h2 { margin-top: 0; }

/* Avoid stray bottom margins from last child elements inside sections */
.section > :last-child { margin-bottom: 0; }

.section__header {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  max-width: 60ch;
}

.section__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-azul);
}

.section__lead,
.section__header .lead {
  margin: 0;
  color: var(--ink-2);
}

.section__lead { font-size: 1.05rem; }

.notice-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-4);
  box-shadow: 0 12px 24px rgba(16,24,40,.08);
}

.notice-card__intro,
.notice-card__footnote {
  margin: 0;
}

.notice-card__footnote {
  font-size: 0.95rem;
  color: var(--ink-2);
}

.notice-card__list {
  margin: 0;
  display: grid;
  gap: var(--s-3);
}

.notice-card__item {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--border-accent);
  box-shadow: 0 6px 12px rgba(16,24,40,.06);
}

.notice-card__item dt {
  margin: 0;
  font-weight: 700;
  color: var(--brand-azul);
}

.notice-card__item dd {
  margin: 0;
}

.notice-card a {
  color: var(--brand-link);
  font-weight: 600;
}

.carousel {
  display: grid;
  gap: var(--s-4);
}

.carousel__viewport {
  position: relative;
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: 0 12px 24px rgba(16,24,40,.08);
  background: var(--paper);
}

.carousel__track {
  display: grid;
  gap: var(--s-4);
}

.carousel__slide {
  min-width: 0;
  display: flex;
}

.carousel__slide > * {
  flex: 1 1 auto;
}

.carousel__controls,
.carousel__dots {
  display: none;
}

.carousel__controls {
  align-items: center;
  gap: var(--s-3);
  justify-content: center;
}

.carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--brand-azul);
  background: var(--white);
  color: var(--brand-azul);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.carousel__btn:hover,
.carousel__btn:focus-visible {
  background: var(--brand-azul);
  color: var(--white);
}

.carousel__btn:focus-visible {
  outline: 3px solid var(--brand-sun);
  outline-offset: 2px;
}

.carousel__status {
  margin: 0;
  font-weight: 600;
  color: var(--brand-azul);
}

.carousel__dots {
  justify-content: center;
  gap: var(--s-2);
}

.carousel__dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  padding: 0;
  cursor: pointer;
  transition: all .2s ease;
}

.carousel__dots button.is-active,
.carousel__dots button[aria-pressed="true"] {
  width: 32px;
  background: var(--brand-azul);
}

.carousel__dots button:focus-visible {
  outline: 3px solid var(--brand-sun);
  outline-offset: 2px;
}

.carousel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 24px rgba(16,24,40,.08);
  height: 100%;
}

.carousel-card__title {
  margin: 0;
}

.carousel-card__role,
.carousel-card__summary {
  margin: 0;
}

.carousel-card__summary {
  color: var(--ink-2);
}

.carousel-card__cta {
  margin-top: auto;
  padding-top: var(--s-3);
}

.carousel-card--photo {
  padding: 0;
  min-height: 420px;
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  box-shadow: 0 18px 32px rgba(11,44,102,.28);
}

.carousel-card--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,25,60,.1) 20%, rgba(7,25,60,.82) 100%);
}

.carousel-card--photo .carousel-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-2);
  padding: var(--s-5);
  margin-top: auto;
  color: var(--white);
  align-content: end;
}

.carousel-card--photo .carousel-card__title,
.carousel-card--photo .carousel-card__role,
.carousel-card--photo .carousel-card__summary {
  color: var(--white);
}

.carousel-card--photo .carousel-card__cta {
  margin-top: auto;
  padding-top: var(--s-4);
}

.carousel-card--platform {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.2);
  box-shadow: 0 12px 24px rgba(16,24,40,.08);
  text-align: center;
}

.carousel-card--platform .carousel-card__title {
  color: var(--brand-azul);
  font-size: var(--h2-lg);
  line-height: 1.2;
}

.carousel-card--platform .carousel-card__summary {
  color: var(--ink-2);
  text-align: center;
}

.carousel-card--platform .carousel-card__cta {
  display: flex;
  justify-content: center;
}

.carousel.is-ready .carousel__viewport {
  overflow: hidden;
}

.carousel.is-ready .carousel__track {
  display: flex;
  gap: 0;
  transition: transform .45s ease;
  align-items: stretch;
}

.carousel.is-ready .carousel__slide {
  flex: 0 0 100%;
}

.carousel.is-ready .carousel__controls,
.carousel.is-ready .carousel__dots {
  display: flex;
}

@media (min-width: 768px) {
  .carousel-card--photo { min-height: 480px; }
}

/* Full-bleed band that expands with content */
.band,
.band.section {   /* ensure band wins even if the element also has 'section' */
  background: linear-gradient(180deg, var(--band-bg) 0%, var(--band-bg2) 100%);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Spacing inside the band */
.band .container { padding-block: var(--s-6); }
@media (min-width: 768px) {
  .band .container { padding-block: var(--s-7); }
}

/* Readable text on the light band */
.band .display { color: var(--brand-azul); }
.band .lead    { color: var(--ink-2); }

.band--hero {
  background: var(--bg);
}

/* Hero lockup */

.hero-lockup {
  --logo-h: clamp(8rem, 20.8vw, 16rem);
  --lines: 3;
  --lh: 1.05;
  --min-font: 1.75rem;
  --max-font: 8rem;
  --gap: clamp(var(--s-3), 4vw, var(--s-6));

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  box-sizing: border-box;
  width: min(100%, 62.5rem);
  margin-bottom: var(--s-6);
  margin-inline: auto;
  color: inherit;
  text-decoration: none;
}

.hero-lockup > * {
  flex: 0 0 auto;
}

.hero-lockup:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: var(--s-1);
}

.hero-logo {
  display: block;
  height: clamp(4.8rem, 16vw, 12rem);
  width: auto;
  order: -1;
}

@media (max-width: 480px) {
  .hero-logo {
    height: clamp(calc((var(--s-7) * 2 + var(--s-4)) * 0.8), 28.8vw, 12rem);
  }
}

.hero-slogan {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: var(--logo-h);
  display: grid;
  align-content: space-between;
  line-height: var(--lh);
  font-weight: 800;
  font-family: var(--font-head);
  font-size: clamp(var(--min-font), calc(var(--logo-h) / (var(--lines) * var(--lh))), var(--max-font));
  color: var(--brand-azul);
  text-align: left;
  flex: 0 1 auto;
}

.hero-slogan .line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .hero-lockup {
    flex-wrap: wrap;
    text-align: center;
  }

  .hero-slogan {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero-lockup {
    gap: var(--s-3);
  }
}

.site-footer { background: var(--brand-azul-deep); color: var(--white); padding: var(--s-4) 0; font-size: .875rem; }
.site-footer p { color: var(--white); }
.site-footer__text {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
}
.site-footer__disclaimer {
  margin: var(--s-2) 0 0;
  color: color-mix(in srgb, var(--white) 85%, var(--brand-azul-deep) 15%);
  font-size: .75rem;
  line-height: 1.4;
}
.site-footer__divider { color: var(--white); }
.site-footer a {
  color: var(--white);
}

.platform-summary {
  margin: 0 0 var(--s-3);
  padding-left: 1.25rem;
}
.platform-summary li { margin: var(--s-1) 0; }

.platform-blurb { margin: 0 0 var(--s-3); }

/* Platform index only */
.platform-cards .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.platform-cards .card .card-title {
  text-align: center;
}

/* Center the Read More button row on platform index */
.platform-cards .card .cta-row {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

/* Ensure list content stays left-aligned even when title/CTA are centered */
.platform-cards .card ul {
  text-align: left;
  margin-left: 0; /* maintain existing list indent */
}

.breadcrumb {
  margin-bottom: var(--s-4);
}

.breadcrumb a {
  color: var(--brand-link);
  font-weight: 600;
}

.candidate-cards {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-5);
}

.candidate-card {
  position: relative;
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--paper);
  box-shadow: 0 12px 24px rgba(16,24,40,.08);
}

@media (min-width: 720px) {
  .candidate-card {
    grid-template-columns: minmax(0, 260px) 1fr;
    align-items: start;
  }
}

.candidate-card__media {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--radius) * .9);
  box-shadow: 0 8px 16px rgba(16,24,40,.12);
  overflow: hidden;
  aspect-ratio: var(--photo-aspect, 4 / 5);
}

.candidate-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.candidate-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-3);
}

.candidate-card__role {
  margin: 0;
  font-weight: 600;
  color: var(--brand-azul);
}

.candidate-card__body p {
  margin: 0;
}

.candidate-card__body p + p {
  margin-top: var(--s-2);
}

.candidate-card__cta {
  margin-top: var(--s-3);
}

.candidate-card__cta .btn-secondary {
  border-width: 2px;
}

.candidate-profile {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-6) var(--s-5);
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
  display: grid;
  gap: var(--s-5);
}

.candidate-profile__header {
  display: grid;
  gap: var(--s-4);
}

@media (min-width: 720px) {
  .candidate-profile__header {
    grid-template-columns: minmax(0, clamp(200px, 30vw, 300px)) minmax(0, 1fr);
    align-items: start;
    gap: var(--s-3);
  }
}

@media (min-width: 1024px) {
  .candidate-profile__header {
    gap: var(--s-4);
  }
}

.candidate-profile__header > div {
  min-width: 0;
}

.candidate-profile__photo {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 16px rgba(16,24,40,.12);
  display: block;
  aspect-ratio: var(--photo-aspect, 4 / 5);
  object-fit: cover;
}

.candidate-profile__tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-azul);
  margin: 0;
}

.candidate-profile__intro {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.candidate-profile__intro p {
  margin: 0;
}

.candidate-profile__contact {
  margin: var(--s-2) 0 0;
  font-weight: 600;
}

.candidate-profile__contact a {
  color: var(--brand-azul);
}

.candidate-profile__body {
  display: grid;
  gap: var(--s-5);
}

.candidate-profile__body section {
  margin: 0;
}

.candidate-profile__body section > p {
  margin: var(--s-2) 0 0;
}

.candidate-profile__body ul {
  padding-left: 1.25rem;
  margin: var(--s-2) 0 0;
}

.candidate-profile__body li + li {
  margin-top: var(--s-1);
}

/* FAQ list styling for platform pillars */
.faq-list {
  margin: var(--s-5) 0 0;
  border-top: 1px solid var(--border);
  padding: 0;
}

.faq-list dt,
.faq-list dd {
  margin: 0;
}

.faq-list dt {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-4) var(--s-4) var(--s-2);
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--brand-azul);
}

.faq-list dt::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 var(--s-2);
  border-radius: 999px;
  background: var(--brand-azul);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-list dd {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: 0 var(--s-4) var(--s-4);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--brand-sun);
  background: color-mix(in srgb, var(--brand-azul) 4%, var(--paper) 96%);
  color: var(--ink-2);
}

.faq-list dd::before {
  content: "A";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 var(--s-2);
  border-radius: 999px;
  background: var(--brand-sun-tint);
  color: var(--brand-sun);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-list dd p {
  margin: 0;
}

.faq-list dd p + p {
  margin-top: var(--s-2);
}

.faq-list dd:last-of-type {
  border-bottom: none;
}

@media (max-width: 600px) {
  .faq-list dt,
  .faq-list dd {
    padding-inline: var(--s-3);
  }

  .faq-list dt::before,
  .faq-list dd::before {
    min-width: 1.75rem;
    height: 1.75rem;
  }
}

.resource-group {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.resource-group:first-of-type {
  margin-top: var(--s-4);
  padding-top: 0;
  border-top: none;
}
.resource-group__description {
  margin: var(--s-2) 0 var(--s-4);
  color: var(--ink-2);
}
.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.resource-list li { margin: 0; }
.resource-list--columns { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.resource-placeholder {
  margin: 0;
  color: var(--ink-2);
  font-style: italic;
}

.bylaw-controls {
  display: none;
  margin: var(--s-5) 0;
}

.has-js .bylaw-controls {
  display: block;
}

.bylaw-controls__panel {
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--band-bg);
}

.bylaw-controls__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--s-3);
}

.btn-secondary.bylaw-controls__toggle {
  min-width: 10rem;
  background: var(--brand-sun);
  border-color: var(--brand-sun);
  color: var(--white);
}

.btn-secondary.bylaw-controls__toggle:hover,
.btn-secondary.bylaw-controls__toggle:focus-visible {
  background: var(--brand-sun-hover);
  border-color: var(--brand-sun-hover);
  color: var(--white);
}

.btn-secondary.bylaw-controls__toggle:active {
  background: var(--brand-sun-pressed);
  border-color: var(--brand-sun-pressed);
}

.btn-secondary.bylaw-controls__toggle:focus-visible {
  outline: 2px solid var(--brand-link);
  outline-offset: 2px;
}

.bylaw-toc {
  display: grid;
  gap: var(--s-2);
}

.bylaw-toc__title {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.bylaw-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}

.bylaw-toc__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  color: var(--brand-link);
  font-weight: 600;
}

.bylaw-toc__link::before {
  content: "→";
  font-size: 0.875rem;
  color: var(--ink-2);
  transition: transform 0.2s ease;
}

.bylaw-toc__link:hover::before,
.bylaw-toc__link:focus-visible::before {
  transform: translateX(2px);
}

.bylaw-article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: var(--s-4);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent 90%);
  scroll-margin-top: calc(var(--header-height, 4rem) + var(--s-3));
}

.bylaw-article > h2 {
  margin: 0;
  font-size: var(--h2);
}

.bylaw-article__toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s-3);
  width: 100%;
  border: none;
  background: none;
  font: inherit;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--brand-azul-deep);
  padding: var(--s-4);
  cursor: pointer;
  text-align: left;
}

.bylaw-article__toggle:focus-visible {
  outline: 2px solid var(--brand-azul);
  outline-offset: 2px;
}

.bylaw-article__toggle::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.bylaw-article.is-open .bylaw-article__toggle::before {
  transform: rotate(45deg);
}

.bylaw-article__content {
  padding: 0 var(--s-4) var(--s-4);
}

.bylaw-section,
.bylaw-subsection {
  margin-top: var(--s-3);
}

.bylaw-section:first-of-type,
.bylaw-subsection:first-of-type {
  margin-top: 0;
}

@media (max-width: 720px) {
  .bylaw-controls__panel {
    padding: var(--s-3);
  }
}

