/* ==========================================================================
   Rachel Cuevas Campaign — PAGE-SPECIFIC STYLES
   Shared, reusable styles for interior content pages (biography-style pages,
   priorities/policy pages, and similar long-form pages added later).
   Requires tokens.css, base.css, layout.css, components.css to load first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Bio-style intro layout — portrait image + heading/copy side by side
   -------------------------------------------------------------------------- */
.bio-intro {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 800px) {
  .bio-intro {
    grid-template-columns: minmax(260px, 380px) 1fr;
  }
}

.bio-intro__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.bio-intro__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-bold);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.section--navy .bio-intro__eyebrow,
.section--red .bio-intro__eyebrow {
  color: var(--color-white);
}

.bio-intro h1 {
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Pull-quote / highlight callout box
   -------------------------------------------------------------------------- */
.pull-quote {
  margin-block: var(--space-lg) 0;
  padding: var(--space-lg);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-md);
  background-color: var(--color-offwhite);
}

.section--navy .pull-quote,
.section--red .pull-quote {
  background-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--color-white);
}

.pull-quote__text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.5vw + 1rem, 1.75rem);
  font-weight: var(--font-weight-heading);
  line-height: 1.3;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Community / press photo gallery grid
   -------------------------------------------------------------------------- */
.photo-gallery {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-gallery__item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.photo-gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-slow) var(--ease-standard);
}

.photo-gallery__item:hover img {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   Page-level CTA row (Join the Campaign / Donate pairings)
   -------------------------------------------------------------------------- */
.page-cta {
  text-align: center;
}

.page-cta__lede {
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.page-cta__actions {
  justify-content: center;
}

/* Smaller in-content CTA callout used mid-page (e.g. within priorities list) */
.inline-cta {
  margin-block: var(--space-2xl);
  padding: var(--space-lg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background-color: var(--color-offwhite);
  text-align: center;
}

.inline-cta__actions {
  justify-content: center;
  margin-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   Priorities page — intro + sticky table of contents layout
   -------------------------------------------------------------------------- */
.priorities-intro__lede {
  max-width: 70ch;
}

.priorities-layout {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 900px) {
  .priorities-layout {
    grid-template-columns: 240px 1fr;
  }
}

/* Table of contents nav — horizontally-scrollable row on mobile,
   sticky vertical list on desktop (no JS required either way). */
.priorities-toc {
  background-color: var(--color-offwhite);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
}

.priorities-toc__title {
  margin: 0 0 var(--space-xs);
  padding-inline: var(--space-xs);
  font-size: 0.8rem;
  font-weight: var(--font-weight-body-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.priorities-toc__list {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: var(--space-xs);
}

.priorities-toc__list a {
  display: block;
  white-space: nowrap;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  color: var(--color-text-dark);
  font-weight: var(--font-weight-body-medium);
  text-decoration: none;
}

.priorities-toc__list a:hover,
.priorities-toc__list a:focus-visible {
  background-color: var(--color-white);
  color: var(--color-blue);
}

@media (min-width: 900px) {
  .priorities-toc {
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
    max-height: calc(100vh - var(--header-height) - var(--space-2xl));
    overflow-y: auto;
  }

  .priorities-toc__list {
    flex-direction: column;
    overflow-x: visible;
  }

  .priorities-toc__list a {
    white-space: normal;
  }
}

.priorities-content {
  display: flex;
  flex-direction: column;
}

.priority-section {
  padding-block: var(--space-xl);
}

.priority-section h2 {
  margin-bottom: var(--space-lg);
}

.priority-section:not(:first-child) {
  border-top: 1px solid var(--color-border-light);
}

.priority-section__pending {
  font-style: italic;
  color: var(--color-text-muted);
}

/* === Get Involved / Contact / Privacy styles === */

/* --------------------------------------------------------------------------
   Page intro (used at the top of get-involved.html / contact.html /
   privacy-policy.html)
   -------------------------------------------------------------------------- */
.page-intro__lede {
  max-width: 60ch;
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Shared form layout (volunteer-form, contact-form)
   Styled for use inside light (.section--white / .section--offwhite)
   sections, unlike the homepage's on-dark .signup-form treatment.
   -------------------------------------------------------------------------- */
.page-form {
  max-width: 44rem;
}

.form-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-md);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-field--full {
    grid-column: 1 / -1;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-field label {
  font-weight: var(--font-weight-body-bold);
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.7em 0.9em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  background-color: var(--color-white);
  color: var(--color-text-dark);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-muted);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field-error {
  display: block;
  font-size: 0.85rem;
  color: var(--color-red);
  min-height: 1.1em;
}

.form-status {
  margin-bottom: var(--space-md);
  font-weight: var(--font-weight-body-medium);
}

/* --------------------------------------------------------------------------
   Checkbox group ("How would you like to help?")
   -------------------------------------------------------------------------- */
.checkbox-group {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.checkbox-group legend {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  font-size: 1.15rem;
  padding: 0 var(--space-xs);
}

.checkbox-group__list {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
  margin-top: var(--space-xs);
}

@media (min-width: 640px) {
  .checkbox-group__list {
    grid-template-columns: 1fr 1fr;
  }
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: 0.95rem;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 0.2em;
  width: 1.1em;
  height: 1.1em;
  accent-color: var(--color-red);
}

/* Anchor target for the homepage Quick Action Band's #yard-sign deep link.
   scroll-margin-top keeps the item from being hidden under the sticky
   header when the page jumps to this anchor. */
#yard-sign {
  scroll-margin-top: calc(var(--header-height) + var(--space-md));
}

/* --------------------------------------------------------------------------
   Privacy / consent notice placeholders shown near submit buttons
   -------------------------------------------------------------------------- */
.form-privacy-notice {
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Honeypot field (spam deterrent) — visually hidden off-screen but not
   display:none, so it still participates in normal tab/DOM flow checks
   bots rely on, while being unreachable/unannounced for real users.
   -------------------------------------------------------------------------- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Contact page — verified contact info list
   -------------------------------------------------------------------------- */
.contact-methods {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .contact-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-method__label {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.contact-method__value {
  font-size: 1.15rem;
  font-weight: var(--font-weight-body-bold);
}

/* --------------------------------------------------------------------------
   Privacy policy page
   -------------------------------------------------------------------------- */
.policy-notice {
  border: 2px solid var(--color-red);
  border-radius: var(--radius-md);
  background-color: var(--color-offwhite);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  font-weight: var(--font-weight-body-bold);
}

.policy-section {
  margin-bottom: var(--space-xl);
}

.policy-section h2 {
  margin-bottom: var(--space-lg);
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}

.policy-effective-date {
  color: var(--color-text-muted);
}

/* === Endorsements & News page styles === */

/* --------------------------------------------------------------------------
   Empty-state message — used on endorsements.html and news.html in place of
   invented/placeholder content while no real endorsements/articles exist.
   -------------------------------------------------------------------------- */
.empty-state {
  padding: var(--space-xl) var(--space-lg);
  border: 1px dashed var(--color-border-light);
  border-radius: var(--radius-lg);
  background-color: var(--color-offwhite);
  text-align: center;
}

.section--navy .empty-state,
.section--red .empty-state {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.empty-state__message {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.section--navy .empty-state__message,
.section--red .empty-state__message {
  color: rgba(255, 255, 255, 0.85);
}

/* Empty-state variant sized to sit inside a grid container spanning all
   columns (used on news.html inside .news-grid). */
.empty-state--grid {
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   Endorsement card (endorsements.html sample cards)
   -------------------------------------------------------------------------- */
.endorsement-card {
  position: relative;
  text-align: center;
}

.endorsement-card__badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
}

.endorsement-card__avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-sm);
  border-radius: var(--radius-full);
  object-fit: cover;
}

.endorsement-card__name {
  display: block;
  margin-bottom: var(--space-xs);
}

.endorsement-card__title {
  display: block;
  color: var(--color-text-muted);
}

.endorsement-card__quote {
  margin: var(--space-sm) 0 0;
  padding-left: var(--space-sm);
  border-left: 3px solid var(--color-red);
  font-style: italic;
}

/* Endorsement cards whose sample text includes a longer written statement
   are rendered as a <button> (rather than a plain <div>) so the whole card
   opens the detail modal — keyboard and screen-reader accessible for free
   via the native button element. Cards with nothing extra to show stay
   plain, non-interactive <div>s (see the third sample card). */
.endorsement-card--clickable {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.endorsement-card__cta {
  display: block;
  margin-top: var(--space-sm);
  color: var(--color-red);
  font-weight: var(--font-weight-body-bold);
  font-size: 0.9rem;
}

/* Small italic disclosure note shown above sample/placeholder content
   grids (e.g. the sample endorsement cards) so it's clear at a glance that
   what follows isn't real, verified content yet. */
.sample-note {
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   News toolbar — search form + category filter chips (news.html)
   -------------------------------------------------------------------------- */
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.search-form {
  display: flex;
  gap: var(--space-xs);
  flex: 1 1 280px;
  max-width: 24rem;
}

.search-form__input {
  flex: 1;
  padding: 0.65em 0.9em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  background-color: var(--color-white);
  color: var(--color-text-dark);
}

.search-form__input:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.search-form__button {
  padding: 0.65em 1.25em;
  border-radius: var(--radius-sm);
  background-color: var(--color-navy-primary);
  color: var(--color-white);
  font-weight: var(--font-weight-body-bold);
  transition: background-color var(--transition-base);
}

.search-form__button:hover {
  background-color: var(--color-blue);
}

/* On a dark section (search.html's page header uses .section--navy, same as
   every other page's <h1> band) the navy-on-transparent button above would
   blend into the background, so flip it to match .btn--on-dark instead. */
.section--navy .search-form__button,
.section--red .search-form__button {
  background-color: var(--color-white);
  color: var(--color-navy-primary);
}

.section--navy .search-form__button:hover,
.section--red .search-form__button:hover {
  background-color: var(--color-offwhite);
}

/* --------------------------------------------------------------------------
   Site search results (search.html)
   -------------------------------------------------------------------------- */
.search-status {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.search-result {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result__title {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.search-result__excerpt {
  color: var(--color-text-muted);
  margin: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.filter-chip {
  padding: 0.5em 1.1em;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-light);
  background-color: var(--color-white);
  color: var(--color-text-dark);
  font-weight: var(--font-weight-body-medium);
  font-size: 0.9rem;
  transition: background-color var(--transition-base), color var(--transition-base),
    border-color var(--transition-base);
}

.filter-chip:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.filter-chip.is-active,
.filter-chip[aria-pressed="true"] {
  background-color: var(--color-navy-primary);
  border-color: var(--color-navy-primary);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   News article grid + card (future/commented-out template on news.html)
   -------------------------------------------------------------------------- */
.news-grid {
  margin-top: var(--space-lg);
}

.news-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.news-card__category {
  margin: 0 0 var(--space-xs);
  font-size: 0.8rem;
  font-weight: var(--font-weight-body-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-blue);
}

.news-card__date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.news-card__link {
  font-weight: var(--font-weight-body-bold);
}

/* --------------------------------------------------------------------------
   Sample-content badges — used on news.html/index.html preview cards (next
   to the category label) and on the sample-article-N.html detail pages, so
   placeholder lorem-ipsum content stays clearly marked even once the card's
   category label reads like a real category name.
   -------------------------------------------------------------------------- */
.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.news-card__meta .news-card__category {
  margin-bottom: 0;
}

/* .sample-badge--card now lives in components.css — it's used across
   home.css (homepage preview cards), this file (news/endorsements pages),
   and the shared detail modal, so it needed to be loadable everywhere
   rather than duplicated per page stylesheet. */

/* === Article detail pages (sample-article-1/2/3.html) === */

/* Larger badge shown near the top of each article detail page, distinct
   from the smaller .sample-badge--card variant used on preview cards. */
.sample-badge {
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: 0.35em 0.9em;
  border: 2px solid var(--color-red);
  border-radius: var(--radius-full);
  color: var(--color-red);
  background-color: var(--color-white);
  font-size: 0.8rem;
  font-weight: var(--font-weight-body-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Full-bleed featured image above the article's content column. */
.article-hero {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
}

.article-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.article-detail__container {
  max-width: 44rem;
}

.article-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.article-detail__category {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-bold);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin: 0;
}

.article-detail__date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.article-detail__title {
  margin-bottom: var(--space-sm);
}

.article-detail__byline {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-body-medium);
  margin-bottom: var(--space-lg);
}

.article-detail__body > * + * {
  margin-top: var(--space-md);
}

.article-detail__body h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

/* Social sharing controls (Facebook / email / copy-link) */
.article-share {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
}

.article-share__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.article-share__link {
  display: inline-flex;
  align-items: center;
  padding: 0.6em 1.1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-dark);
  font-weight: var(--font-weight-body-bold);
  text-decoration: none;
  transition: background-color var(--transition-base), color var(--transition-base),
    border-color var(--transition-base);
}

.article-share__link:hover,
.article-share__link:focus-visible {
  background-color: var(--color-offwhite);
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.share-copy-link {
  padding: 0.6em 1.1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  background-color: var(--color-white);
  color: var(--color-text-dark);
  font-weight: var(--font-weight-body-bold);
  transition: background-color var(--transition-base), color var(--transition-base),
    border-color var(--transition-base);
}

.share-copy-link:hover,
.share-copy-link:focus-visible {
  background-color: var(--color-offwhite);
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* aria-live="polite" status text (e.g. "Copied!") shown beside the button */
.share-copy-status {
  display: inline-block;
  margin-left: var(--space-xs);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  min-height: 1.1em;
}

.article-detail__back {
  margin-top: var(--space-xl);
  text-align: center;
}

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */
.not-found {
  text-align: center;
}

.not-found__eyebrow {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading-black);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: var(--space-sm);
}

.not-found__lede {
  max-width: 46ch;
  margin: 0 auto var(--space-lg);
  color: rgba(255, 255, 255, 0.85);
}

.not-found__search {
  max-width: 24rem;
  margin: 0 auto var(--space-xl);
}

.not-found__links {
  justify-content: center;
  flex-wrap: wrap;
}
