/* ===== NUCLEAR ACTION CENTER PAGE ===== */
/* Loaded only on the Nuclear Action Center page template */


/* ===== SHARED ===== */

/* Safety net against horizontal scroll on phones: no-wrap highlighted phrases can stick out while
   the fonts load (fallback fonts are wider). This file loads only on this page, so it is page-scoped.
   clip (not hidden) keeps position: sticky working and does not create a scroll container. */
.page-top,
.nuclear-action-center,
.page-bottom {
  overflow-x: clip;
}

/* The theme registers only PP Air Mono SemiBold (600); Figma uses Medium (500) for form fields */
@font-face {
  font-family: "PP Air Mono";
  src: url(../fonts/pp-air/MediumMono.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


.nuclear-action-center .nac-section-title {
  color: var(--wp--preset--color--text-color);
  font-family: var(--wp--preset--font-family--font-family-headings);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

@media only screen and (min-width: 992px) {
  .nuclear-action-center .nac-section-title {
    font-size: 4.375rem;
  }
}


/* Red button with the long double-chevron arrow from Figma (shown on mobile too) */
.nuclear-action-center .nac-arrow-btn .btn-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: left;
}

@media only screen and (min-width: 768px) {
  .nuclear-action-center .nac-arrow-btn .btn-text {
    gap: 40px;
  }
}

.nuclear-action-center .nac-arrow-btn .btn-text::after {
  content: "";
  flex: 0 0 60px;
  height: 16px;
  background: url(../images/arrow-long-light.svg) center / contain no-repeat;
  transition: transform .3s ease-in-out;
}

.nuclear-action-center .nac-arrow-btn:hover .btn-text::after,
.nuclear-action-center .nac-arrow-btn:focus .btn-text::after {
  transform: translateX(4px);
}


/* Flat rectangle (Figma) instead of the theme's hand-drawn button shape: Download, Explore and Meet Ricky buttons */
.nuclear-action-center .nac-flat-btn {
  background-color: var(--wp--preset--color--primary);
  transition: background-color .3s ease-in-out;
}

.nuclear-action-center .nac-flat-btn .btn-bg {
  display: none;
}

.nuclear-action-center .nac-flat-btn:hover,
.nuclear-action-center .nac-flat-btn:focus {
  background-color: #e60000; /* same hover as the theme's .btn-svg.btn-accent */
}

/* PP Air Mono caps sit above the line box center: shift the text down and the arrow back up */
.nuclear-action-center .nac-flat-btn .btn-text {
  padding-top: 19.5px;
  padding-bottom: 16.5px;
}

.nuclear-action-center .nac-flat-btn .btn-text::after {
  transform: translateY(-1.5px);
}

.nuclear-action-center .nac-flat-btn:hover .btn-text::after,
.nuclear-action-center .nac-flat-btn:focus .btn-text::after {
  transform: translate(4px, -1.5px);
}


/* ===== SECTION 1: HERO ===== */

.nac-hero {
  background: url(../images/bg-hero-dk.jpg) center / cover no-repeat;
}

.nac-hero .hero-main {
  background: var(--wp--preset--color--secondary-dark) var(--nac-hero-bg) center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  min-height: 440px;
}

.nac-hero .hero-container {
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 40px 41px;
}

.nac-hero .page-title {
  color: var(--wp--preset--color--text-white);
  font-family: var(--wp--preset--font-family--font-family-headings);
  font-size: clamp(2.25rem, 12.8vw, 3rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.nac-hero .nac-title-lead {
  display: block;
  position: relative;
  z-index: 1;
}

.nac-hero .nac-title-main {
  display: inline-block;
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}

.nac-hero .nac-title-main::before {
  content: "";
  position: absolute;
  top: -0.25em;
  right: -0.15em;
  bottom: -0.03em;
  left: -0.04em;
  z-index: -1;
  background: url(../images/highlight-red-dotted.svg) center / 100% 100% no-repeat;
}

@media only screen and (min-width: 768px) {
  .nac-hero .page-title {
    font-size: 4.5rem;
  }
}

@media only screen and (min-width: 992px) {
  .nac-hero {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    background: var(--wp--preset--color--secondary-dark) var(--nac-hero-bg) center / cover no-repeat;
  }

  .nac-hero .hero-main {
    flex-grow: 1;
    min-height: 0;
    background: none;
  }

  .nac-hero .hero-container {
    padding: 60px;
  }

  .nac-hero .page-title {
    font-size: 6rem;
  }
}


/* ===== SECTION 2: INTRO ===== */

.nac-intro {
  background-color: var(--wp--preset--color--text-white);
  color: var(--wp--preset--color--text-color);
  padding: 40px 16px;
  text-align: center;
}

.nac-intro .intro-content {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--wp--preset--font-family--font-family-base);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}

.nac-intro .intro-content p {
  margin: 0;
}

.nac-intro .intro-content p + p {
  margin-top: 1em;
}

@media only screen and (min-width: 768px) {
  .nac-intro {
    padding: 60px 40px;
  }

  .nac-intro .intro-content {
    line-height: 1.5;
  }
}

@media only screen and (min-width: 992px) {
  .nac-intro {
    padding: 80px 60px;
    text-align: left;
  }
}


/* ===== SECTION 3: LEGISLATIVE SUCCESSES ===== */
/* Cards reuse .impact-card from the Impact page; all cards use the dark variant */

.nac-legislative {
  background-color: #14213d;
  color: var(--wp--preset--color--text-white);
  padding-top: 60px;
  padding-bottom: 20px;
}

.nac-legislative .nac-section-title {
  color: var(--wp--preset--color--text-white);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.nac-legislative .impact-feed .impact-card {
  background-color: #17213b;
  color: #f1eee2;
}

.nac-legislative .impact-feed .impact-card a {
  color: #f7725f;
}

.nac-legislative .impact-feed .impact-card .card-title,
.nac-legislative .impact-feed .impact-card .content-section-title {
  color: var(--wp--preset--color--text-white);
}

.nac-legislative .impact-feed .impact-card .top-wrapper .wrapper-content {
  padding-left: 2px;
  padding-right: 0;
  padding-top: 0;
}

.nac-legislative .impact-feed .impact-card .card-lead {
  color: #f7725f;
  float: none;
  transform: rotate(-7deg);
}

.nac-legislative .impact-feed .impact-card .card-toggle .bg-path {
  stroke: #f1eee2;
}

.nac-legislative .impact-feed .impact-card .card-toggle .btn-text {
  color: #f1eee2;
}

.nac-legislative .impact-feed .impact-card .card-toggle:focus .bg-path,
.nac-legislative .impact-feed .impact-card .card-toggle:hover .bg-path {
  fill: #f1eee2;
}

.nac-legislative .impact-feed .impact-card .card-toggle:focus .btn-text,
.nac-legislative .impact-feed .impact-card .card-toggle:hover .btn-text {
  color: var(--wp--preset--color--text-color);
}

@media only screen and (min-width: 992px) {
  .nac-legislative {
    padding-top: 80px;
  }

  .nac-legislative .impact-feed .impact-card .container {
    flex-direction: row;
  }

  .nac-legislative .impact-feed .impact-card .card-body {
    padding-right: 0;
    padding-left: 50px;
  }
}

@media only screen and (min-width: 1200px) {
  .nac-legislative .impact-feed .impact-card .card-body {
    padding-left: 80px;
  }

  .nac-legislative .impact-feed .impact-card .top-wrapper {
    margin-left: -30px;
  }
}


/* ===== SECTION 4: STATE NUCLEAR POLICY TRACKER ===== */

.nac-tracker {
  background-color: var(--wp--preset--color--text-white);
  color: var(--wp--preset--color--text-color);
  padding: 40px 16px;
}

.nac-tracker .nac-container {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.nac-tracker .tracker-header {
  margin-bottom: 40px;
}

.nac-tracker .tracker-intro,
.nac-tracker .tracker-description {
  font-family: var(--wp--preset--font-family--font-family-base);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.5;
}

.nac-tracker .tracker-intro {
  max-width: 740px;
  margin: 12px auto 0;
  text-align: center;
}

.nac-tracker .tracker-kicker {
  color: var(--wp--preset--color--secondary-dark);
  font-family: var(--wp--preset--font-family--font-family-headings);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.34;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.nac-tracker .tracker-heading {
  font-family: var(--wp--preset--font-family--font-family-headings);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.nac-tracker .tracker-description {
  margin: 0;
}

/*
 * The tracker is a cross-origin embed, so it cannot be styled or measured from here.
 * The embed has a 20px padding, the year select row, then the dark map card
 * (75% of its width + 36.5px tall, starting 54px below the frame top).
 * The frame hides the padding on the sides and top, and crops the bottom 18px inside the card:
 * the embed's stat cards follow right below it, and Safari/Firefox render the map a few px
 * shorter, which used to reveal them. The legend stays visible.
 */
.nac-tracker .tracker-frame {
  position: relative;
  height: 0;
  margin-top: 24px;
  overflow: hidden;
  padding-bottom: calc(75% + 73px);
}

.nac-tracker .tracker-frame iframe {
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  max-width: none;
  height: calc(100% + 600px);
  border: 0;
}

/*
 * Cover the embed's light background around the year select (83x38, top right, 16px above the map).
 * pointer-events: none keeps the select and the map clickable.
 */
.nac-tracker .tracker-frame {
  border-radius: 0 0 12px 12px;
}

.nac-tracker .tracker-frame::before,
.nac-tracker .tracker-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Area left of the select, plus the map card's top-left rounded corner */
.nac-tracker .tracker-frame::before {
  top: 0;
  left: 0;
  right: 83px;
  height: 66px;
  background-image:
    linear-gradient(var(--wp--preset--color--text-white), var(--wp--preset--color--text-white)),
    radial-gradient(circle at 100% 100%, transparent 12px, var(--wp--preset--color--text-white) 12.5px);
  background-position: 0 0, 0 54px;
  background-size: 100% 54px, 12px 12px;
}

/* Gap under the select, plus the map card's top-right rounded corner */
.nac-tracker .tracker-frame::after {
  top: 38px;
  right: 0;
  width: 83px;
  height: 28px;
  background-image:
    linear-gradient(var(--wp--preset--color--text-white), var(--wp--preset--color--text-white)),
    radial-gradient(circle at 0 100%, transparent 12px, var(--wp--preset--color--text-white) 12.5px);
  background-position: 0 0, 100% 16px;
  background-size: 100% 16px, 12px 12px;
}

.nac-tracker .tracker-more {
  margin-top: 24px;
}

.nac-tracker .tracker-more .btn-svg {
  display: block;
}

/* "Explore the full tracker" always stays on one line */
.nac-tracker .tracker-more .btn-text {
  white-space: nowrap;
}

/* Mobile: keep "Explore the full tracker" on one line - smaller arrow, and the label
   shrinks a little on the narrowest phones (label ≈ 13.5em wide, minus paddings, gap and arrow) */
@media only screen and (max-width: 767px) {
  .nac-tracker .tracker-more .btn-text {
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: min(17px, calc((100vw - 32px - 32px - 12px - 40px) / 13.6));
    white-space: nowrap;
  }

  .nac-tracker .tracker-more .btn-text::after {
    flex-basis: 40px;
    height: 11px;
  }
}

@media only screen and (min-width: 768px) {
  .nac-tracker .tracker-more {
    margin-top: 40px;
    text-align: center;
  }

  .nac-tracker .tracker-more .btn-svg {
    display: inline-block;
  }
}

@media only screen and (min-width: 992px) {
  .nac-tracker {
    padding: 80px 60px;
  }

  .nac-tracker .tracker-intro {
    margin-top: 24px;
  }

  .nac-tracker .tracker-heading {
    font-size: 1.875rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .nac-tracker .tracker-kicker {
    margin-bottom: 24px;
  }
}


/* ===== SECTION 5: NUCLEAR POLICY, EXPLAINED ===== */

.nac-explained {
  background-color: var(--wp--preset--color--secondary-dark);
  padding: 40px 16px;
}

.nac-explained .nac-container {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.nac-explained .nac-section-title {
  color: var(--wp--preset--color--text-white);
  margin-bottom: 24px;
}

.nac-explained .explained-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.nac-explained .report-card {
  display: flex;
  flex-direction: column;
}

.nac-explained .report-media {
  aspect-ratio: 343 / 279;
  background-color: var(--wp--preset--color--text-color);
}

.nac-explained .report-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nac-explained .report-details {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
  margin: -116px 20px 0;
  padding: 20px 16px;
  background-color: var(--wp--preset--color--text-white);
  color: #18213a;
}

.nac-explained .report-title {
  color: #18213a;
  font-family: var(--wp--preset--font-family--font-family-headings);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.nac-explained .report-subtitle {
  font-family: var(--wp--preset--font-family--font-family-headings);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.34;
  margin: 0;
  text-transform: uppercase;
}

.nac-explained .report-marks {
  display: block;
  width: 36px;
  height: 7px;
  margin-top: auto;
  background: url(../images/directional-marks.svg) center / contain no-repeat;
}

.nac-explained .report-btn {
  display: block;
  margin: 0 20px;
}

.nac-explained .report-btn .btn-text {
  justify-content: center;
  gap: 40px;
}

@media only screen and (min-width: 992px) {
  .nac-explained {
    padding: 80px 60px;
  }

  .nac-explained .nac-section-title {
    margin-bottom: 40px;
  }

  .nac-explained .explained-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    max-width: none;
  }

  .nac-explained .report-media {
    aspect-ratio: 330 / 269;
  }

  .nac-explained .report-details {
    margin-top: -106px;
  }

  .nac-explained .report-title {
    font-size: 1.875rem;
    line-height: 1.2;
  }
}


/* ===== SECTION 6: HOW TO TALK ABOUT NUCLEAR ===== */

.nac-talk {
  background-color: var(--wp--preset--color--text-white);
  color: var(--wp--preset--color--text-color);
  padding: 40px 16px;
}

.nac-talk .nac-container {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.nac-talk .talk-header {
  margin-bottom: 24px;
}

.nac-talk .nac-section-title {
  text-align: left;
}

.nac-talk .talk-description,
.nac-talk .talk-text {
  font-family: var(--wp--preset--font-family--font-family-base);
  letter-spacing: 0;
}

.nac-talk .talk-description {
  font-size: 1rem;
  line-height: 1.5;
  margin: 12px 0 0;
}

/* Manual line breaks are for desktop only */
@media only screen and (max-width: 767px) {
  .nac-talk .talk-description br {
    display: none;
  }
}

.nac-talk .talk-labels {
  display: none;
}

.nac-talk .talk-label {
  font-family: var(--wp--preset--font-family--font-family-alt);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
  text-transform: uppercase;
}

.nac-talk .talk-label.is-community {
  color: var(--wp--preset--color--primary);
}

.nac-talk .talk-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mobile: vertical arrow on the left, statehouse text above community text */
.nac-talk .talk-row {
  display: grid;
  grid-template-columns: 16px 1fr;
  grid-template-areas:
    "arrow statehouse"
    "arrow community";
  column-gap: 10px;
  row-gap: 10px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #dad8ca;
}

.nac-talk .talk-row:last-child {
  border-bottom: 0;
}

.nac-talk .talk-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.nac-talk .talk-text.is-statehouse {
  grid-area: statehouse;
}

.nac-talk .talk-text.is-community {
  grid-area: community;
  font-weight: 700;
}

.nac-talk .talk-arrow {
  grid-area: arrow;
  width: 16px;
  height: 82px;
  background: url(../images/arrow-long-red-down.svg) center / contain no-repeat;
}

/* Tablet and desktop: three columns, statehouse → community */
@media only screen and (min-width: 768px) {
  .nac-talk .talk-header {
    margin-bottom: 40px;
    text-align: center;
  }

  .nac-talk .nac-section-title {
    text-align: center;
  }

  .nac-talk .talk-description {
    margin-top: 24px;
  }

  .nac-talk .talk-labels,
  .nac-talk .talk-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    grid-template-areas: "statehouse arrow community";
    column-gap: 40px;
    align-items: center;
  }

  .nac-talk .talk-labels {
    min-height: 45px;
  }

  .nac-talk .talk-label.is-community {
    grid-column: 3;
  }

  .nac-talk .talk-row {
    min-height: 80px;
    padding: 16px 0;
  }

  .nac-talk .talk-arrow {
    width: 60px;
    height: 16px;
    background-image: url(../images/arrow-long-red.svg);
  }
}

@media only screen and (min-width: 992px) {
  .nac-talk {
    padding: 80px 60px;
  }
}


/* ===== SECTION 7: TAKE ACTION ===== */
/* Same content as the Take Action post (single-action-hero.twig), letter form is the Speak4 widget in plain mode */

.nac-action {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 40px 16px;
  color: var(--wp--preset--color--text-white);
  background: #000 var(--nac-action-bg) center / cover no-repeat;
}

/* Photo dimmed by 60% black, then the theme noise texture */
.nac-action::before,
.nac-action::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.nac-action::before {
  background-color: rgba(0, 0, 0, .6);
}

.nac-action::after {
  background: url(../images/noise-overlay.jpg) center / cover;
  mix-blend-mode: exclusion;
  opacity: .8;
}

.nac-action .nac-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.nac-action .action-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.nac-action .action-kicker {
  display: inline-block;
  color: var(--wp--preset--color--secondary);
  font-family: var(--wp--preset--font-family--font-family-accent);
  font-size: 3.75rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: .87;
  margin: 0 0 12px;
  transform: rotate(-7deg);
  transform-origin: left bottom;
}

.nac-action .action-title {
  color: var(--wp--preset--color--text-white);
  font-family: var(--wp--preset--font-family--font-family-headings);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 12px;
  text-transform: uppercase;
}

/* Blue hand-drawn outline around one word of the title */
.nac-action .action-title-accent {
  position: relative;
  display: inline-block;
}

.nac-action .action-title-accent::before {
  content: "";
  position: absolute;
  /* Figma: 295x89 box starting 251px / 18px from the title at 70px font size, in em relative to the word */
  top: -.17em;
  right: -.39em;
  bottom: .07em;
  left: -.21em;
  background: url(../images/outline-blue.svg) center / 100% 100% no-repeat;
  pointer-events: none;
}

.nac-action .action-description,
.nac-action .action-share-label {
  color: #f7f4ec;
  font-family: var(--wp--preset--font-family--font-family-alt);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 2.08px;
  line-height: 1.375;
}

.nac-action .action-description p,
.nac-action .action-share-label {
  margin: 0;
}

.nac-action .nac-share {
  display: flex;
  gap: 17px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.nac-action .nac-share .social-item + .social-item {
  margin-left: 0;
}

.nac-action .nac-share .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 47px;
  border-radius: 2px;
  background-color: var(--wp--preset--color--text-white);
  color: #10172b;
  font-size: 1.5rem;
  transition: background-color .3s ease-in-out, color .3s ease-in-out;
}

.nac-action .nac-share .social-link:focus,
.nac-action .nac-share .social-link:hover {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--text-white);
}

.nac-action .action-content {
  font-family: var(--wp--preset--font-family--font-family-base);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.25;
}

.nac-action .action-content p {
  margin: 0;
}

.nac-action .action-more {
  display: block;
  margin-top: 16px;
  border: 2px solid var(--wp--preset--color--text-white);
  transition: background-color .3s ease-in-out;
}

/* Straight 2px frame (Figma) instead of the theme's hand-drawn outline */
.nac-action .action-more .btn-bg {
  display: none;
}

/* 53px total like Figma; caps of PP Air Mono sit high, so more space on top */
.nac-action .action-more .btn-text {
  padding: 18.5px 12px 13.5px; /* narrower sides on mobile keep the label on one line */
}

.nac-action .action-more:focus,
.nac-action .action-more:hover {
  background-color: var(--wp--preset--color--text-white);
}

.nac-action .action-more:focus .btn-text,
.nac-action .action-more:hover .btn-text {
  color: var(--wp--preset--color--text-color);
}

/* --- Speak4 letter form --- */

.nac-action .action-form {
  --nac-field-bg: rgba(242, 240, 229, .1);
  --nac-field-border: 1px solid var(--wp--preset--color--text-white);
  --nac-field-muted: #afaea9;
}

.nac-action .action-speak4-form > p {
  margin: 0;
}

.nac-action .speak4-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
}

.nac-action .speak4-form__row {
  display: contents;
}

.nac-action .speak4-form__item {
  position: relative;
  min-width: 0;
  margin: 0;
}

/*
 * Letter preview: the whole frame scrolls, with a 5px white track and grey thumb 5px from the frame line.
 * The frame line is an outline so a transparent right border can push the scrollbar away from it.
 */
.nac-action .speak4-form__item--message {
  display: block;
  height: 230px;
  overflow-y: auto;
  padding: 10px 6px 10px 10px;
  background-color: var(--nac-field-bg);
  border: 0;
  border-right: 5px solid transparent;
  outline: var(--nac-field-border);
  outline-offset: -1px;
  backdrop-filter: blur(14px);
}

/* Firefox has no ::-webkit-scrollbar (and Chrome ignores it when scrollbar-color is set) */
@supports not selector(::-webkit-scrollbar) {
  .nac-action .speak4-form__item--message {
    scrollbar-color: var(--nac-field-muted) #fff;
    scrollbar-width: thin;
  }
}

.nac-action .speak4-form__item--message::-webkit-scrollbar {
  width: 5px;
}

.nac-action .speak4-form__item--message::-webkit-scrollbar-track {
  margin: 5px 0;
  border-radius: 3px;
  background: #fff;
}

.nac-action .speak4-form__item--message::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--nac-field-muted);
}

.nac-action .speak4-embed__bread--top {
  font-family: var(--wp--preset--font-family--font-family-base);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 12px;
}

.nac-action .speak4-embed__bread--bottom {
  display: none;
}

.nac-action .speak4-form__input--textarea {
  display: block;
  width: 100%;
  height: 176px;
  overflow-y: auto;
  padding: 0 6px 0 0;
  border: 0;
  background: transparent;
  color: var(--wp--preset--color--text-white);
  font-family: var(--wp--preset--font-family--font-family-base);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.25;
  resize: none;
}

.nac-action .speak4-form__input--textarea:focus {
  outline: none;
}

/*
 * With field-sizing the textarea grows to its text and the whole frame scrolls (like Figma).
 * Without it (Firefox, Safari) the textarea keeps 176px and scrolls on its own inside the frame.
 */
@supports (field-sizing: content) {
  .nac-action .speak4-form__input--textarea {
    height: auto;
    field-sizing: content;
    overflow: hidden;
  }
}

@supports not (field-sizing: content) {
  .nac-action .speak4-form__item--message {
    overflow: hidden;
  }
}

/* Inputs and select */
.nac-action .speak4-form__input--input,
.nac-action .speak4-form__input--select {
  display: block;
  width: 100%;
  height: 40px;
  padding: 10px;
  border: var(--nac-field-border);
  border-radius: 0;
  background-color: var(--nac-field-bg);
  backdrop-filter: blur(14px);
  color: var(--wp--preset--color--text-white);
  font-family: var(--wp--preset--font-family--font-family-alt);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}

.nac-action .speak4-form__input--select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath stroke='%23F2F0E5' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.nac-action .speak4-form__input--select option {
  color: var(--wp--preset--color--text-color);
}

.nac-action .speak4-form__input--input:focus,
.nac-action .speak4-form__input--select:focus {
  outline: 2px solid var(--wp--preset--color--secondary);
  outline-offset: 0;
}

/* Labels sit inside the field like placeholders and hide once the field has a value */
.nac-action .speak4-form__label {
  position: absolute;
  top: 50%;
  left: 11px;
  right: 40px;
  transform: translateY(-50%);
  color: var(--nac-field-muted);
  font-family: var(--wp--preset--font-family--font-family-alt);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  overflow: hidden;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nac-action .speak4-form__label--prefix {
  color: var(--wp--preset--color--text-white);
}

.nac-action .speak4-form__input--hasval + .speak4-form__label,
.nac-action .speak4-form__input--input:focus + .speak4-form__label {
  visibility: hidden;
}

/* Send */
.nac-action .speak4-form__btn {
  display: block;
  width: 100%;
  min-height: 53px;
  padding: 18px 20px;
  border: 0;
  border-radius: 0;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--text-white);
  font-family: var(--wp--preset--font-family--font-family-alt);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s ease-in-out;
}

.nac-action .speak4-form__btn:focus,
.nac-action .speak4-form__btn:hover {
  background-color: #e60000;
}

.nac-action .lp-btn--sending,
.nac-action .form--sending .speak4-form__btn {
  opacity: .6;
  pointer-events: none;
}

@media only screen and (min-width: 768px) {
  .nac-action .speak4-form {
    grid-template-columns: 1fr 1fr;
  }

  .nac-action .speak4-form__item {
    grid-column: 1 / -1;
  }

  .nac-action .speak4-form__item--nameFirst,
  .nac-action .speak4-form__item--nameLast {
    grid-column: auto;
  }
}

@media only screen and (min-width: 992px) {
  .nac-action {
    padding: 0 60px;
  }

  .nac-action .nac-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 66px;
  }

  .nac-action .action-main {
    flex: 0 1 594px;
    justify-content: space-between;
    padding: 80px 0;
  }

  .nac-action .action-form {
    flex: 0 0 420px;
    padding: 80px 0;
  }

  .nac-action .action-kicker {
    margin-bottom: 24px;
  }

  .nac-action .action-title {
    font-size: 4.375rem;
    margin-bottom: 24px;
  }

  .nac-action .nac-share {
    margin-top: 18px;
  }

  .nac-action .action-more {
    display: inline-block;
    margin-top: 24px;
  }

  .nac-action .action-more .btn-text {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* ===== SECTION 8: CULTURAL MOMENT ===== */

.nac-culture {
  background-color: var(--wp--preset--color--text-white);
  color: var(--wp--preset--color--text-color);
  padding: 40px 16px;
}

.nac-culture .nac-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "media"
    "body";
  gap: 24px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.nac-culture .culture-title {
  grid-area: title;
  color: var(--wp--preset--color--text-color);
  font-family: var(--wp--preset--font-family--font-family-headings);
  /* The highlighted phrase does not wrap (~7.6em wide with the brush): shrink the title on narrow screens so it never overflows */
  font-size: min(2.5rem, calc((100vw - 32px) / 7.9));
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

/* Words on the red brush highlight (same shape as the hero), also used in the How to Talk title */
.nac-culture .culture-title-highlight,
.nuclear-action-center .nac-title-highlight {
  position: relative;
  display: inline-block;
  isolation: isolate;
  color: var(--wp--preset--color--text-white);
  white-space: nowrap;
}

.nac-culture .culture-title-highlight::before,
.nuclear-action-center .nac-title-highlight::before {
  content: "";
  position: absolute;
  top: -.18em;
  right: -.09em;
  bottom: -.03em;
  left: -.09em;
  z-index: -1;
  background: url(../images/highlight-red-dotted.svg) center / 100% 100% no-repeat;
}

.nac-culture .culture-media {
  grid-area: media;
  aspect-ratio: 343 / 284;
  background-color: #fff;
  overflow: hidden;
}

.nac-culture .culture-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nac-culture .culture-body {
  grid-area: body;
}

.nac-culture .culture-content {
  font-family: var(--wp--preset--font-family--font-family-base);
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.5;
}

.nac-culture .culture-content p {
  margin: 0;
}

.nac-culture .culture-content p + p {
  margin-top: 16px;
}

.nac-culture .culture-btn {
  margin-top: 20px;
}

/* 20px sides like Figma; letter-spacing -1px leaves a trailing pixel, so 1px less on the left */
.nac-culture .culture-btn .btn-text {
  padding-left: 19px;
  padding-right: 21px;
}

@media only screen and (min-width: 768px) {
  .nac-culture .nac-container {
    grid-template-columns: minmax(0, 515fr) minmax(0, 525fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "media title"
      "media body";
    column-gap: 40px;
    row-gap: 24px;
  }

  .nac-culture .culture-media {
    aspect-ratio: auto;
    min-height: 560px;
  }

  .nac-culture .culture-title {
    padding-top: 40px;
  }

  .nac-culture .culture-body {
    align-self: end;
    padding-bottom: 40px;
  }

  .nac-culture .culture-content p + p {
    margin-top: 20px;
  }
}

@media only screen and (min-width: 992px) {
  .nac-culture {
    padding: 80px 60px;
  }

  .nac-culture .culture-title {
    font-size: min(4.375rem, calc((100vw - 175px) * .064)); /* column ≈ 50.5% of (viewport − scrollbar − paddings − gap) */
  }
}


/* ===== SECTION 9: NUCLEAR NEWS ===== */

.nac-news {
  background-color: var(--wp--preset--color--text-white);
  color: var(--wp--preset--color--text-color);
  padding: 40px 16px;
}

.nac-news .nac-container {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.nac-news .news-title {
  margin-bottom: 24px;
}

.nac-news .news-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

/* Square photo card with a dark overlay and the text at the bottom */
.nac-news-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--wp--preset--color--secondary-dark);
}

.nac-news-card .card-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease-in-out;
}

.nac-news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, .6);
  transition: background-color .3s ease-in-out;
}

.nac-news-card .card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 20px;
  color: var(--wp--preset--color--text-white);
}

.nac-news-card .card-title {
  font-family: var(--wp--preset--font-family--font-family-headings);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1667;
  margin: 0;
  text-transform: uppercase;
}

.nac-news-card .card-link {
  color: var(--wp--preset--color--text-white);
}

/* Whole card is clickable, same as the theme cards */
.nac-news-card .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}

.nac-news-card .card-link:hover,
.nac-news-card .card-link:focus {
  color: var(--wp--preset--color--text-white);
  text-decoration: none;
}

.nac-news-card:hover::before,
.nac-news-card:focus-within::before {
  background-color: rgba(0, 0, 0, .75);
}

.nac-news-card:hover .card-thumbnail,
.nac-news-card:focus-within .card-thumbnail {
  transform: scale(1.05);
}

.nac-news-card:focus-within {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

.nac-news-card .card-date {
  font-family: var(--wp--preset--font-family--font-family-alt);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

/* --- "View more news": extra rows open smoothly (0fr → 1fr) --- */

.nac-news .news-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s ease-in-out;
}

.nac-news .news-more-inner {
  min-height: 0;
  overflow: hidden;
}

/* Spacing lives inside the clipped area, so the collapsed block has no height */
.nac-news .news-more .news-cards {
  padding-top: 16px;
}

.nac-news .news-more .nac-news-card {
  opacity: 0;
  transition: opacity .4s ease-in-out;
}

.nac-news.is-open .news-more,
.nac-news .news-more.is-shown {
  grid-template-rows: 1fr;
}

.nac-news.is-open .news-more .nac-news-card,
.nac-news .news-more.is-shown .nac-news-card {
  opacity: 1;
  transition-delay: .2s;
}

/* "Show All Posts": the button is hidden once every post is shown */
.nac-news .news-footer[hidden] {
  display: none;
}

.nac-news .news-toggle[aria-busy="true"] {
  cursor: progress;
  opacity: .6;
}

.nac-news .news-footer {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.nac-news .news-toggle {
  width: 295px;
  max-width: 100%;
  cursor: pointer;
}

.nac-news .news-toggle .btn-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 20px 17px;
  color: var(--wp--preset--color--text-color);
  text-align: left;
}

.nac-news .news-toggle .btn-text::after {
  content: "";
  flex: 0 0 60px;
  height: 16px;
  background: url(../images/arrow-long-dark.svg) center / contain no-repeat;
  transition: transform .3s ease-in-out;
}

.nac-news .news-toggle:hover .btn-text::after,
.nac-news .news-toggle:focus .btn-text::after {
  background-image: url(../images/arrow-long-light.svg);
  transform: translateX(4px);
}

.nac-news .toggle-less,
.nac-news.is-open .toggle-more {
  display: none;
}

.nac-news.is-open .toggle-less {
  display: inline;
}

@media (prefers-reduced-motion: reduce) {
  .nac-news .news-more,
  .nac-news .news-more .nac-news-card {
    transition: none;
  }
}

@media only screen and (max-width: 767px) {
  .nac-news .is-desktop-only {
    display: none;
  }
}

@media only screen and (min-width: 768px) {
  .nac-news .is-mobile-only {
    display: none;
  }

  .nac-news .news-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 20px;
  }

  .nac-news .news-more .news-cards {
    padding-top: 20px;
  }

  .nac-news-card .card-title {
    font-size: 1.25rem;
  }
}

@media only screen and (min-width: 992px) {
  .nac-news {
    padding: 80px 60px;
  }

  .nac-news .news-title {
    margin-bottom: 40px;
  }

  .nac-news .news-cards {
    column-gap: 45px;
    row-gap: 40px;
  }

  .nac-news .news-more .news-cards {
    padding-top: 40px;
  }

  .nac-news-card .card-title {
    font-size: 1.5rem;
  }

  .nac-news .news-footer {
    margin-top: 40px;
  }

  .nac-news .news-toggle {
    width: 303px;
  }

  .nac-news .news-toggle .btn-text {
    padding-top: 22px;
    padding-bottom: 20px;
  }
}
