/* Year-End 2026 campaign pages (/yearend/ and /yearend/thank-you/). Built on styles.css tokens. */

.ye-staging { background: #FFF1DB; color: var(--soil); text-align: center; font-family: var(--font-display); font-size: 0.82rem; padding: 8px 16px; border-bottom: 1px solid #F2C38A; }
.ye-placeholder { background: #FFE3A3; color: var(--soil); padding: 0 3px; border-radius: 2px; }

.ye-hero { padding-top: 56px; padding-bottom: 72px; }
.ye-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) {
  .ye-hero { padding-top: 36px; padding-bottom: 48px; }
  .ye-grid { grid-template-columns: 1fr; gap: 32px; }
}
.ye-intro h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; margin-bottom: 28px; }

/* Progress */
.ye-progress { margin-bottom: 28px; }
.ye-progress-bar { height: 14px; background: #E8E2D4; border-radius: 999px; overflow: hidden; }
.ye-progress-bar > span { display: block; height: 100%; background: var(--soil); border-radius: 999px; transition: width 0.8s ease; }
.ye-progress-text { margin-top: 10px; font-family: var(--font-display); font-size: 1rem; min-height: 1.6em; }
.ye-progress-text strong { font-size: 1.5rem; font-weight: 700; }
.ye-progress-count { color: #555; font-size: 0.9rem; margin-left: 6px; }
.ye-skeleton { display: inline-block; width: 240px; max-width: 70%; height: 1.2em; border-radius: 4px; vertical-align: middle; background: linear-gradient(90deg, #ECE6D8 25%, #F6F2EA 50%, #ECE6D8 75%); background-size: 200% 100%; animation: ye-shimmer 1.4s infinite linear; }
@keyframes ye-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ye-progress.is-unavailable .ye-progress-bar { display: none; }
.ye-progress.is-unavailable .ye-progress-text { color: #555; font-size: 0.92rem; }

.ye-story p { font-size: var(--lead-size); line-height: var(--lead-leading); }
.ye-story p + p { margin-top: 16px; }

/* Giving form */
.ye-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
@media (min-width: 901px) { .ye-give { position: sticky; top: 24px; } }
@media (max-width: 480px) { .ye-card { padding: 22px 18px; } }
.ye-give-heading { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin-bottom: 18px; }
.ye-fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.ye-fieldset legend, .ye-label { display: block; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.ye-label { margin-top: 14px; }

.ye-toggle { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--soil); border-radius: var(--radius); overflow: hidden; }
.ye-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 360px) { .ye-levels { grid-template-columns: repeat(2, 1fr); } }
.ye-toggle label, .ye-levels label { position: relative; margin: 0; }
.ye-toggle input, .ye-levels input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ye-toggle span { display: block; text-align: center; padding: 11px 8px; font-family: var(--font-display); font-weight: 600; cursor: pointer; background: var(--white); }
.ye-toggle input:checked + span { background: var(--soil); color: var(--white); }
.ye-levels span { display: block; text-align: center; padding: 14px 6px; border: 2px solid var(--border); border-radius: var(--radius); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; cursor: pointer; background: var(--white); }
.ye-levels input:checked + span { border-color: var(--soil); background: #F1ECE0; box-shadow: inset 0 0 0 1px var(--soil); }
.ye-toggle input:focus-visible + span, .ye-levels input:focus-visible + span { outline: 3px solid var(--soil); outline-offset: 2px; position: relative; z-index: 1; }

.ye-other { position: relative; }
.ye-other span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-weight: 600; color: #555; }
.ye-other input, .ye-dedicate-fields input, .ye-dedicate-fields select, .ye-employer-fields input, .ye-show-name-fields input[type="text"] { width: 100%; font: inherit; font-size: 1rem; font-family: var(--font-display); padding: 11px 13px; border: 1px solid #CFC7B6; border-radius: var(--radius); background: var(--white); color: var(--soil); }
.ye-other input { padding-left: 28px; font-family: var(--font-display); font-weight: 600; }
.ye-other input[aria-invalid="true"] { border-color: #A12A1A; }
.ye-form :focus-visible, #ye-form input:focus-visible, #ye-form select:focus-visible, #ye-form button:focus-visible { outline: 3px solid var(--soil); outline-offset: 2px; }
.ye-hint { font-size: 0.82rem; font-family: var(--font-display); color: #555; margin-top: 6px; }
.ye-center { text-align: center; }

.ye-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; font-family: var(--font-display); cursor: pointer; margin-bottom: 14px; }
.ye-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--soil); flex-shrink: 0; }
.ye-dedicate-fields { display: grid; grid-template-columns: 150px 1fr; gap: 10px; margin: -4px 0 16px; }
.ye-dedicate-fields[hidden] { display: none; }
@media (max-width: 420px) { .ye-dedicate-fields { grid-template-columns: 1fr; } }
.ye-employer-fields { margin: -4px 0 16px; }
.ye-employer-fields .ye-label { margin-top: 0; }
.ye-combo { position: relative; }
.ye-combo-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--white); border: 1px solid #CFC7B6; border-radius: var(--radius); box-shadow: var(--shadow-md); max-height: 300px; overflow-y: auto; }
.ye-combo-list[hidden] { display: none; }
.ye-combo-list [role="option"] { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; font-family: var(--font-display); font-size: 1rem; line-height: 1.3; color: var(--soil); border-radius: var(--radius); cursor: pointer; }
.ye-combo-list [role="option"]:hover { background: var(--linen); }
.ye-combo-list [role="option"][aria-selected="true"] { background: var(--sage-light); outline: 2px solid var(--soil); outline-offset: -2px; }
.ye-match-note { font-family: var(--font-display); font-size: 0.9rem; line-height: 1.45; color: var(--soil); margin-top: 8px; }
.ye-match-note:empty { display: none; }

.ye-monthly { background: var(--sage-light); border-radius: var(--radius); padding: 14px 16px; font-size: 0.92rem; margin-bottom: 16px; }
.ye-monthly p + p { margin-top: 6px; }
.ye-monthly a, .ye-ways a, .ye-thanks a:not(.btn) { color: var(--accent); text-decoration: underline; }

.ye-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-size: 1rem; font-weight: 600; border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 14px; }
.ye-total strong { font-size: 1.2rem; }
.ye-error { background: #FBEAE7; border: 1px solid #E3B4AB; color: #A12A1A; border-radius: var(--radius); padding: 10px 12px; font-size: 0.92rem; margin-bottom: 14px; }
.ye-submit { width: 100%; font-size: 1rem; padding: 15px 20px; }
.ye-submit:disabled { opacity: 0.6; cursor: progress; transform: none; }
/* Payment step: Stripe's embedded form, mounted in #ye-checkout */
.ye-give.is-paying { position: static; }
.ye-give { scroll-margin-top: 96px; }
.ye-pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ye-pay-head .ye-give-heading { margin-bottom: 4px; }
#ye-pay-heading:focus { outline: none; }
.ye-pay-summary { font-family: var(--font-display); font-weight: 600; margin: 0; }
.ye-pay-back { flex-shrink: 0; padding: 8px 14px; font-size: 0.85rem; }
.ye-checkout { min-height: 360px; margin: 0 -8px; }
.ye-closed h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 10px; }
.ye-closed p { margin-bottom: 16px; }

/* Why a tractor: the chain from the machine to meals, on the site's dark stat band */
.ye-impact { padding: 72px 0; color: var(--soil); }
.ye-impact .eyebrow { color: var(--soil); }
.ye-impact h2 { color: var(--soil); max-width: 760px; }
.ye-impact-answer { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; color: var(--soil); margin-top: 12px; }
.ye-impact-lead { max-width: 720px; margin-top: 16px; font-size: var(--lead-size); line-height: var(--lead-leading); color: var(--soil); }
.ye-chain { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; text-align: center; }
.ye-chain li { position: relative; }
.ye-chain li + li::before { content: ""; position: absolute; left: -36px; top: 18px; width: 14px; height: 14px; border-top: 3px solid rgba(30,30,30,0.4); border-right: 3px solid rgba(30,30,30,0.4); transform: rotate(45deg); }
.ye-chain-num { display: block; font-family: var(--font-headline); font-weight: 400; letter-spacing: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--soil); }
.ye-chain-num::after { content: ""; display: block; width: 28px; height: 2px; background: rgba(30,30,30,0.4); margin: 14px auto; }
.ye-chain-label { display: block; max-width: 250px; margin: 0 auto; font-family: var(--font-display); font-size: 0.95rem; line-height: 1.45; color: var(--soil); }
.ye-impact-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 52px; padding-top: 36px; border-top: 1px solid rgba(30,30,30,0.2); }
.ye-impact-notes h3 { color: var(--soil); margin-bottom: 10px; }
.ye-impact-notes p { font-size: var(--copy-size); line-height: var(--copy-leading); color: var(--soil); }
.ye-impact-cta { margin-top: 36px; }
.ye-impact-footnote { margin-top: 20px; font-family: var(--font-display); font-size: 0.82rem; line-height: 1.5; color: var(--soil); }
@media (max-width: 800px) {
  .ye-impact { padding: 52px 0; }
  .ye-chain { grid-template-columns: 1fr; gap: 54px; margin-top: 36px; }
  .ye-chain li + li::before { left: 50%; top: -36px; margin-left: -7px; transform: rotate(135deg); }
  .ye-impact-notes { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
}

/* Supporters: the opt-in checkbox on the form, and the list of names */
.ye-show-name-fields { margin: -4px 0 16px; }
.ye-show-name-fields .ye-label { margin-top: 0; }
.ye-show-name-fields .ye-hint { margin-bottom: 12px; }
.ye-show-name-fields .ye-check { margin-bottom: 0; }
.ye-show-name-fields input[aria-invalid="true"] { border-color: #A12A1A; }
.ye-supporters { padding: 64px 0; }
.ye-supporters h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.ye-supporters-intro { max-width: 640px; margin-bottom: 24px; }
.ye-supporters-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 28px; font-family: var(--font-display); font-size: 1rem; line-height: 1.4; font-weight: 500; color: var(--soil); }
.ye-supporters-list li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.ye-supporters-list li[hidden] { display: none; }
.ye-supporter-name { min-width: 0; overflow-wrap: anywhere; }
.ye-supporter-amount { font-weight: 400; color: #555; white-space: nowrap; }
.ye-supporters-list li:focus { outline: none; }
.ye-supporters-more { margin-top: 24px; }
.ye-supporters-more[hidden] { display: none; }
@media (max-width: 800px) { .ye-supporters { padding: 48px 0; } }

/* Other ways to give */
.ye-other-ways { padding: 64px 0; }
.ye-ways { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .ye-ways { grid-template-columns: 1fr; gap: 20px; } .ye-other-ways { padding: 48px 0; } }
.ye-ways h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.ye-ways h3 { font-size: 1.05rem; margin-bottom: 8px; }

/* Photos */
.ye-photos-section { padding: 64px 0; }
.ye-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .ye-photos { grid-template-columns: 1fr; } .ye-photos-section { padding: 48px 0; } }
.ye-photos figure { margin: 0; }
.ye-photos img, .ye-photo-slot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.ye-photo-slot { background: var(--straw); border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.ye-photos figcaption { font-family: var(--font-display); font-size: 0.85rem; margin-top: 8px; color: #555; }

/* Thank-you page */
.ye-thanks { max-width: 640px; margin: 0 auto; }
.ye-thanks h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 16px; }
.ye-thanks p { font-size: var(--copy-size); line-height: var(--copy-leading); }
.ye-thanks p + p { margin-top: 12px; }
#ye-thanks-monthly, #ye-thanks-monthly + p { margin-top: 12px; }
.ye-match { background: var(--sage-light); border-radius: var(--radius); padding: 18px 20px; margin-top: 20px; }
.ye-match h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.ye-match-listed { margin-bottom: 12px; overflow-wrap: anywhere; }
.ye-match-listed a { display: block; margin-top: 6px; }
.ye-match-details { display: grid; gap: 6px; margin: 14px 0; font-family: var(--font-display); font-size: 0.95rem; }
.ye-match-details div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.ye-match-details dt { font-weight: 600; }
@media (max-width: 420px) { .ye-match-details div { grid-template-columns: 1fr; gap: 0; } }
.ye-share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ye-share .btn { padding: 9px 18px; }

@media (prefers-reduced-motion: reduce) {
  .ye-skeleton { animation: none; }
  .ye-progress-bar > span, .ye-big { transition: none; }
}
