/*
 * Before It's Gone — shared page system.
 * Design language: docs/before-its-gone/design-language.md
 * Same site, calmer: Hackney titles, Gotham text, rectangular buttons,
 * whitespace + thin rules instead of cards, real photos with credits.
 */
.bigp-page {
  --bigp-ink: #1a1a1a;
  --bigp-muted: #5c564d;
  --bigp-paper: #f7f6f3;
  --bigp-rule: #dcd8cf;
  --bigp-green: #00754a;
  --bigp-green-hover: #005a3a;
  --bigp-display: var(--font-hackney, "Hackney Bold", sans-serif);
  --bigp-text: var(--font-sans, "Gotham Book", system-ui, sans-serif);
  --bigp-strong: var(--font-medium, "Gotham Medium", system-ui, sans-serif);
  background: var(--bigp-paper);
  color: var(--bigp-ink);
  font-family: var(--bigp-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}
.bigp-page *, .bigp-page *::before, .bigp-page *::after { box-sizing: border-box; }
.bigp-wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }

/* Type: three heading steps. */
:where(.bigp-page) :is(h1, h2), .bigp-title, .bigp-h2 {
  font-family: var(--bigp-display);
  font-weight: normal;
  letter-spacing: -0.02em;
  color: var(--bigp-ink);
  text-wrap: balance;
  margin: 0;
}
.bigp-title { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 0.98; max-width: 18ch; }
.bigp-h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.02; max-width: 24ch; }
.bigp-h3 { font-family: var(--bigp-strong); font-weight: normal; font-size: 1.125rem; line-height: 1.35; margin: 0; color: var(--bigp-ink); }
.bigp-label {
  font-family: var(--bigp-strong);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bigp-muted);
  margin: 0 0 14px;
}
.bigp-lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--bigp-muted); max-width: 52ch; margin: 18px 0 0; }
:where(.bigp-page) p { margin: 0 0 1em; }
:where(.bigp-page) p:last-child { margin-bottom: 0; }
.bigp-prose { max-width: 62ch; }
.bigp-muted { color: var(--bigp-muted); }
.bigp-small { font-size: 0.8125rem; line-height: 1.5; color: var(--bigp-muted); }
:where(.bigp-page) a { color: var(--bigp-green); text-underline-offset: 0.18em; }
:where(.bigp-page) a:hover { color: var(--bigp-green-hover); }
.bigp-page :focus-visible { outline: 2px solid var(--bigp-green); outline-offset: 3px; }

/* Header block: text, optional photo on the right. */
.bigp-head { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 88px); }
.bigp-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.bigp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }

/* Sections: whitespace and a rule. */
.bigp-section { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--bigp-rule); }
.bigp-section--flush { border-top: 0; padding-top: 0; }
.bigp-section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 12px 48px; align-items: end; margin-bottom: 36px; }
.bigp-section__head > p { color: var(--bigp-muted); max-width: 46ch; margin: 0; }
.bigp-section__head--stack { display: block; }
.bigp-section__head--stack > p { margin-top: 14px; }
.bigp-cols { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; }

/* Buttons: the site's rectangle; one primary per screen. */
.bigp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--bigp-green); color: #fff !important; border: 0; border-radius: 6px;
  font-family: var(--bigp-strong); font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s;
}
.bigp-btn:hover { background: var(--bigp-green-hover); color: #fff; }
.bigp-link { font-family: var(--bigp-strong); text-decoration: none; }
.bigp-link:hover { text-decoration: underline; }
.bigp-link--button { background: none; border: 0; padding: 0; color: var(--bigp-green); font-size: 1rem; cursor: pointer; }

/* Photos. */
.bigp-photo { margin: 0; }
.bigp-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: #ebe8e1; }
.bigp-photo figcaption, .bigp-credit { margin-top: 10px; font-size: 0.8125rem; line-height: 1.5; color: var(--bigp-muted); }
.bigp-photo figcaption b { font-family: var(--bigp-strong); font-weight: normal; color: var(--bigp-ink); }

/* Steps and lists: rules, not cards. */
.bigp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); counter-reset: bigp-step; }
.bigp-steps > li { counter-increment: bigp-step; border-top: 1px solid var(--bigp-ink); padding-top: 16px; }
.bigp-steps > li::before { content: counter(bigp-step); display: block; font-family: var(--bigp-display); font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.bigp-steps h3, .bigp-steps .bigp-h3 { margin-bottom: 6px; }
.bigp-steps p { color: var(--bigp-muted); margin: 0; }
.bigp-list { list-style: none; margin: 0; padding: 0; max-width: 62ch; }
.bigp-list > li { padding: 14px 0; border-top: 1px solid var(--bigp-rule); }
.bigp-list > li:last-child { border-bottom: 1px solid var(--bigp-rule); }
.bigp-list strong { font-family: var(--bigp-strong); font-weight: normal; color: var(--bigp-ink); }

/* Peer choices: quiet cards. */
.bigp-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bigp-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--bigp-rule); border-radius: 6px; overflow: hidden; color: var(--bigp-ink) !important; text-decoration: none; transition: border-color 0.15s; }
.bigp-card:hover { border-color: var(--bigp-green); }
.bigp-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #ebe8e1; }
.bigp-card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.bigp-card__body .bigp-h3 { font-size: 1rem; }
.bigp-card__body span { font-size: 0.9375rem; line-height: 1.45; color: var(--bigp-muted); }
.bigp-credits { margin-top: 14px; font-size: 0.8125rem; line-height: 1.5; color: var(--bigp-muted); }

/* Quotes (guide excerpts, the invitation text). */
.bigp-quote { margin: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--bigp-green); font-size: 1.125rem; line-height: 1.55; max-width: 60ch; }

/* Closing: one line, one action. */
.bigp-close { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--bigp-rule); }
.bigp-close .bigp-h2 { margin-bottom: 14px; }
.bigp-close p { color: var(--bigp-muted); max-width: 52ch; }

@media (max-width: 860px) {
  .bigp-head--split { grid-template-columns: 1fr; }
  .bigp-section__head, .bigp-cols { grid-template-columns: 1fr; }
  .bigp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bigp-wrap { width: calc(100% - 32px); }
  .bigp-steps { grid-template-columns: 1fr; gap: 28px; }
  .bigp-cards { grid-template-columns: 1fr; }
  .bigp-actions .bigp-btn { width: 100%; }
}

/* Landing specifics. */
.bigp-returning { padding-block: 20px; }
.bigp-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(32px, 6vw, 96px); padding-block: clamp(40px, 5vw, 64px); }
.bigp-paths .bigp-h3 { margin-bottom: 8px; }
.bigp-paths p { color: var(--bigp-muted); max-width: 46ch; }
.bigp-after { margin-top: 28px !important; color: var(--bigp-muted); }
.bigp-relay-intro { margin-top: 16px; max-width: 46ch; }
.bigp-invite .bigp-small { margin-bottom: 12px; }
.bigp-invite .bigp-actions { margin-top: 22px; }
.bigp-copy-status { min-height: 1.4em; margin-top: 10px !important; color: var(--bigp-green); }
.bigp-copy-status[data-error="true"] { color: #a2361c; }
.bigp-copy-fallback { width: 100%; min-height: 86px; margin-top: 14px; padding: 10px; border: 1px solid var(--bigp-rule); border-radius: 4px; background: #fff; font: 14px/1.45 var(--bigp-text); }
.bigp-map { height: clamp(360px, 50vw, 560px); border: 1px solid var(--bigp-rule); border-radius: 4px; overflow: hidden; background: #ebe8e1; }
.bigp-counties { margin-top: 20px; }
.bigp-counties summary { cursor: pointer; font-family: var(--bigp-strong); color: var(--bigp-green); }
.bigp-counties ul { columns: 3; margin: 16px 0 0; padding: 0; list-style: none; }
.bigp-counties li { break-inside: avoid; margin: 0 0 8px; }
.bigp-card__cta { margin-top: 8px; font-family: var(--bigp-strong); color: var(--bigp-green) !important; }
.bigp-board-home { background: transparent; max-width: 56rem; margin: 0 auto 2rem; font-size: 1rem; }
body:has(.bigp-landing) .rovFooterPromo { display: none; }
@media (max-width: 640px) {
  .bigp-paths { grid-template-columns: 1fr; }
  .bigp-counties ul { columns: 1; }
  .bigp-map { height: 380px; }
}

/* Mission pages: the per-mission exercise and the closing strip. */
.bigp-activity .mission-activity { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px clamp(32px, 6vw, 96px); align-items: start; }
.bigp-activity .mission-activity > h2 { font-family: var(--bigp-display); font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.02; grid-row: span 4; }
.bigp-activity .mission-activity > :not(h2) { grid-column: 2; max-width: 60ch; margin: 0; }
.bigp-activity blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--bigp-green); font-size: 1.25rem; line-height: 1.5; }
.bigp-activity .mission-activity__note { font-size: 0.9375rem; color: var(--bigp-muted); }
.bigp-activity .mission-clues, .bigp-activity .mission-day { list-style: none; padding: 0; }
.bigp-activity .mission-clues li, .bigp-activity .mission-day li { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--bigp-rule); }
.bigp-activity .mission-clues li:last-child, .bigp-activity .mission-day li:last-child { border-bottom: 1px solid var(--bigp-rule); }
.bigp-activity b { font-family: var(--bigp-strong); font-weight: normal; }
.bigp-activity .mission-clues span, .bigp-activity .mission-day span { color: var(--bigp-muted); }
.bigp-activity .mission-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bigp-activity .mission-pair > div { border-top: 1px solid var(--bigp-ink); padding-top: 12px; }
.bigp-activity .mission-pair p { color: var(--bigp-muted); margin: 6px 0 0; }
.bigp-activity .mission-leads { display: grid; gap: 0; }
.bigp-activity .mission-leads p { margin: 0; padding: 12px 0; border-top: 1px solid var(--bigp-rule); color: var(--bigp-muted); }
.bigp-activity .mission-leads p:last-child { border-bottom: 1px solid var(--bigp-rule); }
.bigp-activity .mission-leads b { color: var(--bigp-ink); }
.bigp-mission-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 6vw, 96px); }
.bigp-mission-more .bigp-h3 { margin-bottom: 10px; }
.bigp-mission-more p { max-width: 46ch; }
.bigp-inline-links { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.bigp-inline-links li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--bigp-muted); }
.mission-print-frame { position: fixed; left: -10000px; top: 0; width: 794px; height: 1123px; overflow: hidden; }
@media (max-width: 860px) {
  .bigp-activity .mission-activity { grid-template-columns: 1fr; }
  .bigp-activity .mission-activity > h2 { grid-row: auto; }
  .bigp-activity .mission-activity > :not(h2) { grid-column: 1; }
  .bigp-mission-more { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bigp-activity .mission-clues li, .bigp-activity .mission-day li { grid-template-columns: 1fr; gap: 2px; }
  .bigp-activity .mission-pair { grid-template-columns: 1fr; }
}

/* Picker. */
.bigp-quiz { padding-block: clamp(32px, 4vw, 48px); }
.bigp-quiz .bigp-h3 { margin-bottom: 18px; }
.bigp-quiz__q { border: 0; margin: 0 0 22px; padding: 0; }
.bigp-quiz__q legend { padding: 0; margin-bottom: 10px; font-family: var(--bigp-strong); }
.bigp-options { display: flex; flex-wrap: wrap; gap: 8px; }
.bigp-option { min-height: 44px; padding: 8px 16px; border: 1px solid var(--bigp-rule); border-radius: 6px; background: #fff; color: var(--bigp-ink); font: 0.9375rem/1.2 var(--bigp-text); cursor: pointer; }
.bigp-option:hover { border-color: var(--bigp-green); color: var(--bigp-green); }
.bigp-option[aria-pressed="true"] { background: var(--bigp-green); border-color: var(--bigp-green); color: #fff; }
.bigp-quiz__status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--bigp-rule); }
.bigp-picker .bigp-cards li { transition: opacity 0.3s; }
.bigp-picker .bigp-cards li.is-dimmed { opacity: 0.55; }
.bigp-card.is-recommended { border-color: var(--bigp-green); box-shadow: inset 0 0 0 1px var(--bigp-green); }
.bigp-card__flag { font-family: var(--bigp-strong); font-size: 0.8125rem; color: var(--bigp-green) !important; }
[x-cloak] { display: none !important; }

/* Invitation pages and organizations page. */
.bigp-inline-form { display: inline; margin: 0; }
.bigp-status { margin-top: 18px !important; padding-left: 14px; border-left: 2px solid var(--bigp-green); color: var(--bigp-ink); }
.bigp-guide { margin-top: 40px; }
.bigp-guide .bigp-muted { margin-bottom: 12px; }
.bigp-why-line { margin-top: 16px; max-width: 34ch; }
.bigp-ask { margin-top: 24px !important; max-width: 62ch; }
.bigp-ask strong { font-family: var(--bigp-strong); font-weight: normal; }
.bigp-credit-preview .bigp-muted { margin-bottom: 8px; }
.bigp-credit-preview__badge { margin-bottom: 24px; }
.bigp-credit-preview__home { padding: 12px 0; border-top: 1px solid var(--bigp-rule); max-width: 320px; }
.bigp-close .bigp-actions .bigp-link + .bigp-link { margin-left: 0; }
.bigp-signature { margin-top: 32px !important; font-family: var(--bigp-strong); color: var(--bigp-ink) !important; }
.bigp-signature a { font-family: var(--bigp-text); }
.bigp-taking-part { columns: 2; column-gap: 48px; list-style: none; margin: 0; padding: 0; max-width: 640px; }
.bigp-taking-part li { break-inside: avoid; padding: 8px 0; border-top: 1px solid var(--bigp-rule); }
@media (max-width: 640px) { .bigp-taking-part { columns: 1; } }

/* Examples. */
.bigp-examples > li { display: grid; gap: 4px; padding: 22px 0; }
.bigp-examples .bigp-h3 a { color: var(--bigp-ink); text-decoration: none; }
.bigp-examples .bigp-h3 a:hover { color: var(--bigp-green); text-decoration: underline; }
.bigp-examples .bigp-small, .bigp-examples p { margin: 0; }
.bigp-prose-page { max-width: min(720px, calc(100% - 48px)); margin-inline: auto; }
.bigp-prose-page > .bigp-quote { margin-bottom: 48px; }
.bigp-prose-page > .bigp-h2 { margin-bottom: 18px; }
.bigp-prose-page > .bigp-h3 { margin: 32px 0 8px; }
.bigp-story { font-size: 1.1875rem; line-height: 1.65; }
@media (max-width: 640px) { .bigp-prose-page { max-width: calc(100% - 32px); } }
.bigp-guide--solo { margin-top: 20px; }
.bigp-head--split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.bigp-photo figcaption a { color: var(--bigp-ink); text-decoration: none; }
.bigp-photo figcaption a:hover { color: var(--bigp-green); text-decoration: underline; }
@media (max-width: 860px) { .bigp-head--split { grid-template-columns: 1fr; } }

/* Phones: peer cards become compact thumbnail rows so lists stay short. */
@media (max-width: 640px) {
  .bigp-cards { gap: 10px; }
  .bigp-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: stretch; }
  .bigp-card img { height: 100%; min-height: 84px; aspect-ratio: auto; }
  .bigp-card__body { padding: 10px 14px; justify-content: center; }
  .bigp-card__body .bigp-h3 { font-size: 0.9375rem; }
  .bigp-card__body span { font-size: 0.875rem; }
}

/* Titles stay within three lines at every width. */
.bigp-title { max-width: 22ch; }
@media (max-width: 640px) { .bigp-title { font-size: clamp(2rem, 8.6vw, 2.4rem); } }

/* Invitation hero: a 1938 guide plate keeps its own (portrait) shape; text-only heroes stay a calm measure. */
.bigp-photo--plate { justify-self: center; max-width: 420px; }
.bigp-photo--plate img { aspect-ratio: auto; max-height: 560px; width: auto; max-width: 100%; margin-inline: auto; filter: sepia(0.12); }

/* Homepage mission board, in the same language. */
.watching-board:has(.bigp-board-head) { background: #f7f6f3 !important; border-block: 1px solid #dcd8cf; }
.bigp-board-head { background: transparent; max-width: 56rem; margin: 0 auto 28px; }
.bigp-board-head .bigp-h2 { max-width: 26ch; }
.bigp-board-head__line { margin-top: 14px !important; color: var(--bigp-muted); max-width: 52ch; }
.bigp-board-head__line strong { font-family: var(--bigp-strong); font-weight: normal !important; }
.bigp-board-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 56rem; margin: 0 auto; padding-top: 22px; border-top: 1px solid #dcd8cf; }
.bigp-board-foot .r1v-btn-brand { border-radius: 6px; padding: 12px 22px; font-family: var(--font-medium, "Gotham Medium", system-ui, sans-serif); }
