/* SL25 Winners page — Stewardship Commons Design System v1.0.
 * Desktop: Figma 6jVr7YbefLWCQjcGuvD59L node 1155:14984.
 * Mobile:  Figma Qkw1rAqYvxShVppu34QlEv node 1413:11729.
 * Scoped under .sl25w. Desktop (.sl25w--desktop) / Mobile (.sl25w--mobile)
 * variants both render; media queries hide whichever doesn't fit (768px).
 * Data + filtering reuse the legacy pipeline (GetAllSL25Posts + sl25-see-more.js).
 */
.sl25w {
    --w-brand-600: #465da6;
    --w-brand-700: #5e69a8;
    --w-blue-9:    #1c2542;
    --w-blue-10:   #151c32;
    --w-blue-2:    #c8cee4;
    --w-blue-3:    #b5bedb;
    --w-teal:      #2fb8a9;
    --w-gray-2:    #fafafa;
    --w-gray-5:    #d9d9d9;
    --w-gray-300:  #d5d7da;
    --w-gray-700:  #414651;
    --w-gray-500:  #717680;
    --w-ink:       #1c1c1c;
    --w-white:     #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sl25w *, .sl25w *::before, .sl25w *::after { box-sizing: border-box; }

/* viewport gates */
.sl25w--desktop { display: block; }
.sl25w--mobile  { display: none; }
@media (max-width: 768px) {
    .sl25w--desktop { display: none; }
    .sl25w--mobile  { display: block; }
}

.sl25w__inner { max-width: 1280px; margin: 0 auto; }

/* shared button */
.sl25w-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 8px; padding: 12px 20px; font-size: 16px; line-height: 24px;
    font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent;
    box-shadow: 0 1px 2px 0 rgba(10,13,18,.05);
}
.sl25w-btn--primary { background: var(--w-brand-600); border-color: var(--w-brand-600); color: #fff; }
.sl25w-btn--primary:hover { background: var(--w-brand-700); border-color: var(--w-brand-700); color: #fff; }
.sl25w-btn--ghost { background: #fff; border-color: var(--w-gray-300); color: var(--w-gray-700); }
.sl25w-btn--ghost:hover { background: #f6f9ff; }

/* ============================= HERO ============================= */
.sl25w-hero { background: var(--w-blue-10); padding: 92px 112px; }
.sl25w-hero__text { max-width: 618px; display: flex; flex-direction: column; gap: 20px; }
.sl25w-hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0; color: var(--w-teal); font-size: 20px; line-height: 28px; }
.sl25w-hero__eyebrow svg { width: 28px; height: 28px; flex: 0 0 28px; }
.sl25w-hero__title { margin: 0; font-size: 48px; line-height: 60px; font-weight: 600; letter-spacing: -0.96px; color: #fff; }
.sl25w-hero__title em { font-style: normal; color: var(--w-teal); }
.sl25w-hero__sub { margin: 0; font-size: 20px; line-height: 30px; font-weight: 500; color: var(--w-blue-2); }
.sl25w-hero__actions { display: flex; gap: 20px; }
.sl25w-hero__note { margin: 0; font-size: 14px; line-height: 22px; color: var(--w-blue-3); }

/* ====================== SECTION SCAFFOLD ======================= */
.sl25w-sec { padding: 72px 80px; }
.sl25w-sec--featured { background: var(--w-gray-2); border-bottom: 1px solid var(--w-gray-5); }
.sl25w-sec--all { background: #fff; }
.sl25w-sec__title { margin: 0; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -0.72px; color: rgba(0,0,0,.88); }
.sl25w-featured__head { margin: 0 auto 36px; }
.sl25w-all__head { margin: 0 0 32px; text-align: center; }

/* ====================== WINNER CARD ======================= */
.sl25w-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; min-width: 0; }
.sl25w-card__img { height: 208px; border-radius: 12px; overflow: hidden; background: #e9eaeb; }
.sl25w-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.sl25w-card__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--w-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sl25w-card:hover .sl25w-card__title { text-decoration: underline; }
.sl25w-card__meta { display: flex; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid #f0f0f0; }
.sl25w-card__logo { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--w-gray-5);
    background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sl25w-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.sl25w-card__metatext { display: flex; flex-direction: column; min-width: 0; }
.sl25w-card__org { font-size: 14px; line-height: 20px; color: #000; }
.sl25w-card__cat { font-size: 14px; line-height: 20px; color: rgba(0,0,0,.45); }

/* featured: 4-up */
.sl25w-featured__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* ====================== FILTER BAR ======================= */
.sl25w-filter { display: flex; align-items: flex-end; gap: 16px; width: 100%; }
.sl25w-filter__fields { display: flex; align-items: flex-end; gap: 16px; flex: 1 0 0; min-width: 0; flex-wrap: wrap; }
.sl25w-field { display: flex; flex-direction: column; gap: 6px; }
.sl25w-field--search { width: 240px; }
.sl25w-field__label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--w-gray-700); }
.sl25w-field__control,
.sl25w-field select,
.sl25w-field input { height: 44px; border: 1px solid var(--w-gray-300); border-radius: 8px; padding: 10px 14px;
    font-family: inherit; font-size: 16px; line-height: 24px; color: var(--w-gray-700); background: #fff;
    box-shadow: 0 1px 2px 0 rgba(10,13,18,.05); width: 100%; }
.sl25w-field select { appearance: none; cursor: pointer; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%23717680' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; }
.sl25w-field select:focus, .sl25w-field input:focus { outline: none; border-color: var(--w-brand-600); }
.sl25w-field--year { width: 150px; }
.sl25w-field--geo { width: 196px; }
.sl25w-field--org { width: 212px; }
.sl25w-field--impact { width: 212px; }
.sl25w-filter__divider { width: 1px; height: 44px; background: var(--w-gray-5); flex: 0 0 1px; }

/* ====================== ALL WINNERS GRID ======================= */
.sl25w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 32px; width: 100%; margin: 0; }
.sl25w-gridcell { min-width: 0; }
.sl25w-all__inner { display: flex; flex-direction: column; gap: 32px; }
.sl25w-all__more { display: flex; justify-content: center; padding-top: 8px; }
.sl25w-all__more .spinner-border { color: var(--w-brand-600); }
.sl25w-hidden { display: none; }

/* ============================================================
   MOBILE (.sl25w--mobile)
   ============================================================ */
.sl25w--mobile .sl25w-hero { padding: 48px 16px; }
.sl25w--mobile .sl25w-hero__text { max-width: 100%; gap: 16px; }
.sl25w--mobile .sl25w-hero__eyebrow { font-size: 14px; line-height: 20px; gap: 8px; }
.sl25w--mobile .sl25w-hero__eyebrow svg { width: 16px; height: 16px; flex: 0 0 16px; }
.sl25w--mobile .sl25w-hero__title { font-size: 30px; line-height: 38px; letter-spacing: -0.6px; }
.sl25w--mobile .sl25w-hero__sub { font-size: 14px; line-height: 22px; }
.sl25w--mobile .sl25w-hero__actions { gap: 12px; }
.sl25w--mobile .sl25w-hero__actions .sl25w-btn { flex: 1 0 0; padding: 10px 12px; font-size: 14px; }

.sl25w--mobile .sl25w-sec { padding: 24px 16px; }
.sl25w--mobile .sl25w-sec__title { font-size: 20px; line-height: 28px; letter-spacing: 0; }

/* featured — horizontal scroll */
.sl25w--mobile .sl25w-featured__head { margin: 0 0 16px; }
.sl25w--mobile .sl25w-featured__sub { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--w-gray-500); }
.sl25w--mobile .sl25w-featured__track { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.sl25w--mobile .sl25w-featured__track::-webkit-scrollbar { display: none; }
.sl25w--mobile .sl25w-featured__track .sl25w-card { flex: 0 0 258px; width: 258px; }
.sl25w--mobile .sl25w-card__img { height: 132px; }
.sl25w--mobile .sl25w-card__title { font-size: 14px; }

/* all winners — search + chips + list */
.sl25w--mobile .sl25w-all__head { text-align: left; margin: 0 0 16px; }
.sl25w--mobile .sl25w-msearch input { width: 100%; height: 40px; border: 1px solid var(--w-gray-300); border-radius: 8px;
    padding: 8px 12px; font-family: inherit; font-size: 14px; color: var(--w-gray-700); background: #fff; }
.sl25w--mobile .sl25w-msearch input:focus { outline: none; border-color: var(--w-brand-600); }
.sl25w--mobile .sl25w-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 0; padding: 0 16px; }
.sl25w--mobile .sl25w-chips::-webkit-scrollbar { display: none; }
.sl25w--mobile .sl25w-chip { flex: 0 0 auto; height: 40px; border: 1px solid var(--w-gray-300); border-radius: 999px;
    padding: 8px 36px 8px 16px; font-family: inherit; font-size: 14px; color: var(--w-gray-700); background: #fff;
    appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6 8 10 12 6' stroke='%23717680' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; }
.sl25w--mobile .sl25w-chip:focus { outline: none; border-color: var(--w-brand-600); }
.sl25w--mobile .sl25w-mcount { display: flex; align-items: center; justify-content: space-between; margin-top: 16px;
    font-size: 14px; line-height: 20px; color: var(--w-gray-500); }
.sl25w--mobile .sl25w-clearlink { background: none; border: 0; padding: 0; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 600; color: var(--w-brand-600); }

.sl25w--mobile .sl25w-list { display: flex; flex-direction: column; gap: 24px; margin-top: 20px; }
.sl25w-row { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; }
.sl25w-row__img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #e9eaeb; }
.sl25w-row__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl25w-row__text { display: flex; flex-direction: column; min-width: 0; }
.sl25w-row__title { margin: 0 0 8px; font-size: 14px; line-height: 22px; font-weight: 600; color: var(--w-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sl25w-row:hover .sl25w-row__title { text-decoration: underline; }
.sl25w-row__org { font-size: 14px; line-height: 20px; color: #000; }
.sl25w-row__cat { font-size: 14px; line-height: 20px; color: rgba(0,0,0,.45); }
.sl25w-mmore { margin-top: 24px; }
.sl25w-mmore .sl25w-btn { width: 100%; }
