/* ==========================================================================
   Trans Awareness Month fundraiser
   Used by: /fundraiser and the store's Trans Pack entry.
   ========================================================================== */

:root {
    --tf-blue: #5bcefa;
    --tf-pink: #f5a9b8;
}

/* One plain progress bar: blue to pink, nothing else on it. */
.tf-progress {
    height: 12px;
    border-radius: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.tf-progress-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--tf-blue), var(--tf-pink));
}

/* ── Store entry ─────────────────────────────────────────────────────────── */

.store-tp {
    display: grid;
    grid-template-columns: minmax(0, 440px) 1fr;
    gap: 1.75rem;
    align-items: start;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--store-shadow, var(--shadow-card));
}

.store-tp-art { display: block; width: 100%; }

.store-tp-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.4rem 0;
    min-width: 0;
}

.store-tp-name {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    color: var(--text-heading);
    line-height: 1.1;
    margin: 0;
}

.store-tp-price .js-fixed-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-heading);
    line-height: 1;
}

.store-tp-approx {
    margin-left: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.store-tp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 0.45rem 2rem;
}

.store-tp-list li {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.store-tp-list i {
    color: var(--accent-green);
    font-size: 0.72rem;
    margin-right: 6px;
}

.store-tp-note {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.store-tp-note a { color: var(--primary-light); font-weight: 800; }

.store-tp-btn { margin-top: 0.2rem; }

@media (max-width: 700px) {
    .store-tp { grid-template-columns: 1fr; }
    .store-tp-btn { width: 100%; }
}

@media (max-width: 380px) {
    .store-tp-list { grid-template-columns: 1fr; }
}

/* ── /fundraiser page ────────────────────────────────────────────────────── */

.fr-hero {
    padding: calc(var(--header-height) + 3.5rem) 0 3.5rem;
    background: var(--bg-primary);
}

.fr-hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3.5rem;
    align-items: center;
}

.fr-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.08;
    color: var(--text-heading);
    margin: 0 0 1rem;
}

.fr-lede {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 52ch;
    margin: 0 0 2rem;
}

.fr-total {
    max-width: 520px;
    margin-bottom: 2rem;
}

.fr-total-line {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.fr-total-line strong {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 2.2rem;
    color: var(--text-heading);
    margin-right: 4px;
}

.fr-art,
.fr-art img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-lg);
}

.fr-section {
    padding: 3.5rem 0;
    background: var(--bg-primary);
}
.fr-section.fr-alt { background: var(--bg-secondary); }

.fr-h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.8vw, 1.9rem);
    color: var(--text-heading);
    margin: 0 0 0.6rem;
    line-height: 1.15;
}

.fr-sub {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 62ch;
    margin: 0 0 1.75rem;
}

/* Goals */
.fr-milestones {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.fr-ms {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
}

.fr-ms-amount {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-heading);
    line-height: 1;
}

.fr-ms-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.fr-ms-state {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.fr-ms.is-reached { border-color: var(--tf-blue); }
.fr-ms.is-reached .fr-ms-state { color: var(--tf-blue); }
[data-theme="light"] .fr-ms.is-reached .fr-ms-state { color: #11799f; }

/* Pack + how it works */
.fr-cols {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
}

.fr-list {
    margin: 0.5rem 0 1rem;
    padding-left: 1.1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.9;
}

.fr-prose {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.7;
}

.fr-prose p { margin: 0 0 1rem; }
.fr-prose a { color: var(--primary-light); font-weight: 800; }

.fr-prose h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-heading);
    margin: 1.6rem 0 0.4rem;
}

@media (max-width: 960px) {
    .fr-hero-grid, .fr-cols { grid-template-columns: 1fr; gap: 2rem; }
    .fr-art { max-width: 380px; }
}

@media (max-width: 720px) {
    .fr-hero { padding-top: calc(var(--header-height) + 2rem); }
    .fr-section { padding: 2.6rem 0; }
}

@media (max-width: 520px) {
    .section-container.fr-wrap { padding: 0 16px; }
    .fr-hero .btn { width: 100%; }
}

/* ── "Where the money goes" (#details) ──────────────────────────────────────
   Restored as-is from the first version (2fa916e) at Skye's request, scoped to
   #details so its eyebrow/label styling doesn't spread to the rest of the page. */

#details .tf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tf-pink);
}

#details .tf-eyebrow i { color: var(--tf-blue); }
[data-theme="light"] #details .tf-eyebrow { color: #b34a63; }
#details .fr-h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--text-heading);
    margin: 0.5rem 0 0.6rem;
    line-height: 1.1;
}

#details .fr-sub {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 62ch;
    margin: 0 0 2rem;
}
/* Legal / where the money goes */
#details .fr-legal-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: start;
}

#details .fr-prose {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.7;
}

#details .fr-prose p { margin: 0 0 1rem; }
#details .fr-prose strong { color: var(--text-primary); }
#details .fr-prose a { color: var(--tf-blue); font-weight: 800; }
[data-theme="light"] #details .fr-prose a { color: #11799f; }

#details .fr-prose h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-heading);
    margin: 1.6rem 0 0.5rem;
}

#details .fr-prose h3:first-child { margin-top: 0; }

#details .fr-prose ul {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
}

#details .fr-prose li { margin-bottom: 0.35rem; }

#details .fr-facts {
    position: sticky;
    top: calc(var(--header-height) + 1.25rem);
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

#details .fr-facts-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

#details .fr-facts dl {
    margin: 0;
    padding: 0.4rem 1.25rem 1rem;
}

#details .fr-facts dt {
    margin-top: 0.85rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

#details .fr-facts dd {
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
}

#details .fr-facts dd a { color: var(--tf-blue); }
[data-theme="light"] #details .fr-facts dd a { color: #11799f; }

#details .fr-statement {
    margin: 1.25rem 0 0;
    padding: 1rem 1.15rem;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--tf-pink);
    background: rgba(245, 169, 184, 0.07);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.6;
}

#details .fr-todo {
    display: inline;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px dashed rgba(245, 158, 11, 0.5);
    color: var(--accent-warm);
    font-weight: 800;
    font-size: 0.85em;
}

@media (max-width: 960px) {
    #details .fr-legal-grid { grid-template-columns: 1fr; }
    #details .fr-facts { position: static; }
}

#pack { scroll-margin-top: calc(var(--header-height, 80px) + 1rem); }

/* ── Trans Pack gallery (partials/pack_gallery.html, js/pack-gallery.js) ── */
.pack-gallery {
    --pg-bg: radial-gradient(circle at 50% 45%, #4fb3f2 0%, #3a9fe4 55%, #2f93da 100%);
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.pg-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pg-thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--pg-bg);
    overflow: hidden;
    cursor: pointer;
}
.pg-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pg-thumb:first-child img { object-fit: cover; }
.pg-thumb img.pg-pixel { width: 60%; height: 60%; margin: 20%; image-rendering: pixelated; }
.pg-thumb.is-active { border-color: var(--tf-pink); box-shadow: 0 0 0 2px rgba(245, 169, 184, 0.35); }
.pg-thumb:focus-visible { outline: 2px solid var(--tf-blue); outline-offset: 2px; }
.pg-main {
    position: relative;
    margin: 0;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-lg, 16px);
    background: var(--pg-bg);
    overflow: hidden;
    display: grid;
    place-items: center;
}
.pg-main-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pg-main[data-kind="item"] .pg-main-img { width: 78%; height: 78%; }
.pg-main[data-kind="icon"] .pg-main-img { width: 34%; height: 34%; image-rendering: pixelated; }
.pg-caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(10, 12, 30, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    line-height: 1.2;
}
.pg-main[data-kind="promo"] .pg-caption { display: none; }

@media (max-width: 700px) {
    .pack-gallery { grid-template-columns: 1fr; }
    .pg-thumbs { flex-direction: row; order: 2; overflow-x: auto; padding-bottom: 4px; }
    .pg-thumb { flex: 0 0 56px; width: 56px; height: 56px; }
}

/* /fundraiser pack section: gallery + details side by side */
.fr-pack {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.fr-pack-list {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.fr-pack-list i { color: var(--accent-green); font-size: 0.8rem; margin-right: 8px; }
@media (max-width: 900px) {
    .fr-pack { grid-template-columns: 1fr; gap: 2rem; }
}
.pg-hover .pg-thumb { cursor: default; }
.pg-hover .pg-thumb:hover { border-color: var(--tf-pink); }
