/* Home page (/ and /es/). Markup: _includes/pages/home.html.
   New-design rules use the hm- prefix and only appear on the home page.
   This file is also loaded by the poll and path pages (see _layouts/default.html),
   which use none of these classes. */

/* ---------- Shared pieces ---------- */
.hm {
  --hm-mist: #C9D1E6;
  --hm-line: #E6DECB;
  --hm-rust: #BB6329;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
}
.hm h2, .hm h3 { text-wrap: wrap; }
.hm-wrap {
  display: block;
  width: 100%;
  max-width: calc(1120px + 2 * var(--hm-gutter, 24px));
  margin-inline: auto;
  padding-inline: var(--hm-gutter, 24px);
}
.hm-section { padding-block: clamp(48px, 7vw, 96px); }
.hm-section--cream { background: var(--cream); }
.hm-section--white { background: var(--white); }
.hm-section--navy { background: var(--navy); color: var(--white); }

.hm-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8125rem;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.hm-eyebrow--gold { color: var(--gold); }
.hm-mark {
  padding: 0 .12em;
  background: var(--gold);
  color: var(--navy);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hm-h2 {
  margin: 0 0 18px;
  max-width: 860px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.hm-h2--xl { margin-bottom: 22px; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.05; }
.hm-intro { margin: 0 0 40px; max-width: 760px; font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.hm-intro--wide { max-width: 800px; }
.hm-body { margin: 0 0 16px; font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.hm-body:last-child { margin-bottom: 0; }
.hm-text-gold { color: var(--gold); }
.hm-rust { color: var(--hm-rust); }
.hm-bg-orange { background: var(--orange); }
.hm-bg-navy { background: var(--navy); }
.hm-bg-mist { background: var(--hm-mist); }
.hm-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 13px 18px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.hm-btn--lg { padding: 15px 22px; font-size: 17px; }
.hm-btn--display { gap: 10px; padding: 16px 24px; font-family: var(--font-display); }
.hm-btn--gold { background: var(--gold); color: var(--navy); }
.hm-btn--gold:hover { background: #E6CA86; color: var(--navy); }
.hm-btn--navy { background: var(--navy); color: var(--white); }
.hm-btn--navy:hover { background: var(--blue); color: var(--white); }
.hm-btn--white { background: var(--white); color: var(--navy); }
.hm-btn--white:hover { background: var(--cream); color: var(--navy); }
.hm-btn--ghost { padding: 13px 20px; border: 2px solid var(--hm-mist); background: transparent; color: var(--white); font-weight: 700; }
.hm-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.hm-arrow { flex: none; }
.hm-linkbtn {
  min-height: 44px;
  padding: 13px 6px;
  border: 0;
  background: none;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* Cards and grids */
.hm-grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hm-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--hm-line);
  border-radius: var(--radius);
}
.hm-card--navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.hm-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 28px;
}
.hm-foot--wide { gap: 24px 40px; margin-top: 36px; }
.hm-foot__text { flex: 1 1 360px; margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.hm-foot--wide .hm-foot__text { flex-basis: 480px; }
.hm-foot__text a { color: inherit; }

/* ---------- Hero ---------- */
.hm-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hm-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: 72px 88px;
}
.hm-hero__copy { flex: 1 1 540px; min-width: 0; }
.hm-hero__copy .hm-eyebrow { margin-bottom: 20px; }
.hm-hero__title {
  max-width: 565px;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: wrap;
}
.hm-hero__lead { max-width: 580px; margin: 0 0 32px; font-size: 19px; line-height: 1.6; color: var(--hm-mist); }
.hm-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hm-sig {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--blue);
}
.hm-sig__count { margin: 0; }
.hm-sig__number {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.hm-sig__label {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hm-sig__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hm-hero__media { flex: 1 1 380px; min-width: 0; position: relative; padding-bottom: 72px; }
.hm-photo { position: relative; margin: 0; }
.hm-photo img { display: block; width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); }
.hm-photo__credit {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 2px;
  background: rgba(11, 22, 56, .75);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
}
.hm-event {
  position: absolute;
  left: -32px;
  bottom: 0;
  width: 300px;
  max-width: 90%;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--navy);
  box-shadow: 0 18px 40px rgba(11, 22, 56, .35);
}
.hm-event__eyebrow { margin-bottom: 8px; font-size: 12px; }
.hm-event__date {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.hm-event__times { margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.hm-event__times b { color: var(--navy); }
.hm-event__place { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 16px; font-size: 16px; color: var(--ink-soft); }
.hm-event__place svg { flex: none; margin-top: 2px; color: var(--blue); }
.hm-event .cal-menu > summary { min-height: 48px; padding: 13px 16px; font-weight: 800; font-size: 16px; }

/* Add-to-calendar menu (_includes/calendar-menu.html) */
.cal-menu { position: relative; }
.cal-menu > summary { list-style: none; }
.cal-menu > summary::-webkit-details-marker { display: none; }
.cal-menu__list {
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 5;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-top: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.cal-menu__list a {
  display: block;
  padding: 11px 14px;
  border-top: 1px solid #E1E6EF;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.cal-menu__list a:hover { background: var(--tint); }

/* ---------- The problem: poll cards ---------- */
.hm-poll { display: flex; flex-direction: column; gap: 14px; padding: 30px; }
.hm-poll .hm-eyebrow { margin: 0; }
.hm-poll__big {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 72px;
  line-height: .95;
  letter-spacing: -.04em;
}
.hm-poll__text { margin: 0; font-weight: 800; font-size: 18px; line-height: 1.4; }
.hm-poll__note { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.hm-bar { display: flex; height: 16px; margin-top: 4px; overflow: hidden; border-radius: 2px; background: var(--tint); }
.hm-bar__fill { display: block; height: 100%; }
.hm-poll__rows { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.hm-poll__row { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.hm-poll__row--muted { font-weight: 700; color: var(--hm-mist); }
.hm-poll__swatch { display: block; flex: none; height: 14px; border-radius: 2px; }

/* ---------- Statement band ---------- */
.hm-statement { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; }
.hm-statement__title {
  flex: 1 1 560px;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: wrap;
}
.hm-statement__text {
  flex: 1 1 340px;
  min-width: 0;
  margin: 0;
  padding-left: 24px;
  border-left: 4px solid var(--gold);
  font-size: 18px;
  line-height: 1.65;
  color: var(--hm-mist);
}
.hm-statement__text b { color: var(--white); }

/* ---------- Band-aid ---------- */
.hm-bandaid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; }
.hm-bandaid__copy { flex: 1 1 480px; min-width: 0; }
.hm-bandaid__side { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hm-runout { padding: 28px; border-radius: var(--radius); background: var(--cream); }
.hm-runout__label { margin-bottom: 18px; }
.hm-runout__rows { display: flex; flex-direction: column; gap: 14px; }
.hm-runout__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 6px; font-weight: 700; font-size: 16px; }
.hm-runout__year { font-family: var(--font-display); font-weight: 900; font-size: 20px; }
.hm-runout__track { display: flex; height: 18px; border-radius: 2px; background: var(--white); overflow: hidden; }
.hm-runout__track span { display: block; height: 100%; }
.hm-runout__note { margin: 18px 0 0; font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }
.hm-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
}
.hm-error__big {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--gold);
}
.hm-error__text { flex: 1 1 200px; margin: 0; font-size: 16px; line-height: 1.55; color: var(--hm-mist); }
.hm-error__text b { color: var(--white); }
.hm-source { margin: 24px 0 0; font-size: 16px; color: var(--ink-soft); }
.hm-source a { color: var(--navy); }

/* ---------- Options ---------- */
.hm-lever { display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.hm-lever__num {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: .06em;
}
.hm-lever__title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.hm-lever__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

.hm-charts { margin: 40px 0 0; padding: 32px; }
.hm-charts__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.hm-charts__title { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -.01em; }
.hm-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 16px; font-weight: 700; color: var(--ink-soft); }
.hm-legend__item { display: flex; align-items: center; gap: 8px; }
.hm-legend__key { display: inline-block; width: 24px; height: 4px; }
.hm-legend__key--base { height: 0; border-top: 3px dashed #7A84A3; }
.hm-legend__key--int { background: var(--hm-rust); }
.hm-legend__key--open { background: var(--navy); }
.hm-charts__row { display: flex; flex-wrap: wrap; gap: 20px; }
.hm-chart { flex: 1 1 440px; min-width: 0; padding: 14px 18px 18px; border: 1px solid var(--hm-line); border-radius: var(--radius); }
.hm-chart__title { margin: 0 0 12px; font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.hm-chart img { width: 100%; height: auto; }
.hm-chart__caption { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.hm-chart__caption strong { color: var(--navy); }
.hm-chart__caption strong.hm-rust { color: var(--hm-rust); }
.hm-charts__note { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.hm-charts__note b { color: var(--navy); }
.hm-charts__note a { display: inline-block; padding-block: 6px; font-weight: 800; color: var(--navy); }

/* ---------- Scrap this plan (#act) ---------- */
.hm-act { position: relative; overflow: hidden; padding-block: clamp(56px, 7.5vw, 104px); }
.hm-act__sun { position: absolute; right: -140px; top: -120px; width: 420px; height: 420px; max-width: none; opacity: .14; pointer-events: none; }
.hm-act__inner { position: relative; }
.hm-act__title {
  max-width: 880px;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: wrap;
}
.hm-act__lead { max-width: 760px; margin: 0 0 48px; font-size: 18px; line-height: 1.65; color: var(--hm-mist); }
.hm-act__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.hm-step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
}
.hm-step--gold { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.hm-step__label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hm-step--gold .hm-step__label { color: var(--navy); }
.hm-step__title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
.hm-step__title--grow { flex: 1; }
.hm-step__text { flex: 1; margin: 0; font-size: 16px; line-height: 1.55; color: var(--hm-mist); }
.hm-step__btn { align-self: flex-start; }
.hm-share { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hm-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hm-mist);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.hm-share__btn:hover { background: rgba(255, 255, 255, .1); color: var(--white); }

/* ---------- Next link ---------- */
.hm-next { display: block; background: var(--gold); color: var(--navy); text-decoration: none; }
.hm-next:hover { background: #E6CA86; color: var(--navy); }
.hm-next__inner { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 36px; }
.hm-next__text { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -.02em; }
.hm-next svg { flex: none; }

/* ---------- Tablets and phones (same breakpoints as the previous home page) ---------- */
@media (max-width: 760px) {
  .hm { --hm-gutter: var(--gutter); }
  .hm-hero__inner { gap: 32px; padding-block: 44px 56px; }
  .hm-hero__title { font-size: clamp(2rem, 9vw, 3.25rem); }
  .hm-hero__lead { font-size: 1.0625rem; }
  .hm-hero__ctas { margin-bottom: 32px; }
  .hm-hero__media { padding-bottom: 0; }
  .hm-photo img { height: auto; aspect-ratio: 3 / 2; }
  .hm-event { position: relative; z-index: 1; left: auto; bottom: auto; width: auto; max-width: none; margin-top: -24px; margin-inline: 12px; padding: 18px; }
  .hm-event__date { font-size: 1.5rem; }
  .hm-poll__big { font-size: 60px; }
  .hm-statement__text { padding-left: 18px; font-size: 17px; }
  .hm-bandaid { gap: 32px; }
  .hm-charts { padding: 18px; }
  .hm-chart { padding: 12px; }
  .hm-lever { padding: 24px; }
  .hm-act__sun { right: -200px; top: -170px; }
}
@media (max-width: 700px) {
  .hm-grid3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hm-grid3 > * { width: 100%; max-width: 400px; justify-self: center; }
  .hm-foot { flex-direction: column; align-items: flex-start; }
  .hm-foot .hm-foot__text { flex-basis: auto; }
  .hm-intro, .hm-body, .hm-act__lead { font-size: 17px; }
  .hm-act__lead { margin-bottom: 32px; }
}
@media (max-width: 420px) {
  .hm-hero__ctas, .hm-sig__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hm-hero__ctas .hm-btn, .hm-sig__actions .hm-btn { width: 100%; }
  .hm-foot .hm-btn { width: 100%; }
  .hm-step__btn { align-self: stretch; }
  .hm-error__big { font-size: 48px; }
}

/* ---------- Share dialog ---------- */
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.share-grid__btn {
  display: grid;
  place-items: center;
  min-height: 56px;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}
.share-grid__btn:hover { background: var(--blue); }
.share-status { min-height: 1.4em; margin: 10px 0 0; font-size: .8125rem !important; font-weight: 700; color: var(--blue); }
.share-image { margin-top: 12px; text-align: center; }
.share-image img { width: 170px; margin: 0 auto 8px; border: 1px solid #ddd; }
.share-image p { font-size: .8125rem !important; }
