/* assets/css/pages/donation_category.css — v10.5.3 (F4)
   Ported from donation_category.php's 415-line $customStyles. Every selector is
   a page-specific class (verified: no bare element, .container or .btn rules),
   so nothing collides with Bootstrap. Legacy style.css custom properties are
   remapped to theme tokens because migrated pages no longer load style.css. */

.donation-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px auto 22px;
}

.flow-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    background: #f9fafb;
}

.flow-step.active {
    border-color: #fed7aa;
    color: #9a3412;
    background: #fff7ed;
}

.flow-step.done {
    border-color: #bbf7d0;
    color: #166534;
    background: #f0fdf4;
}

.flow-arrow {
    color: #9ca3af;
    font-size: 0.8rem;
}

.social-proof-inline {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 8px 0 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.social-proof-inline__item {
    background: #ffffff;
    border: 1px solid #dcfce7;
    border-radius: 9px;
    padding: 9px 10px;
}

.social-proof-inline__value {
    color: #166534;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.2;
}

.social-proof-inline__label {
    color: #4b5563;
    font-size: 0.75rem;
    margin-top: 3px;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Item Card */
.item-card {
    background: var(--pcd-surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--pcd-shadow);
    border-top: 4px solid var(--pcd-primary);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-3px);
}

/* Item media
   ----------
   Every declared colour below resolves to a token defined in theme.css. An undefined custom
   property is invalid at computed-value time, which takes the WHOLE declaration with it and
   reports nothing to the console — so nothing here invents a token name. */
.item-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--pcd-bg);
}

.item-media__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.item-card:hover .item-media__img {
    transform: scale(1.04);
}

/* No photograph yet: a quiet saffron wash with an Om mark, rather than an empty frame. */
.item-media--empty {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(var(--pcd-primary-rgb), .14), transparent 62%),
        var(--pcd-bg);
}

.item-media__mark {
    font-size: 3.2rem;
    line-height: 1;
    color: var(--pcd-primary);
    opacity: .38;
}

/* Measured, not guessed: white on --pcd-primary (#F26522) is 3.15:1, which fails AA for text
   this size. --pcd-primary-dark (#D94E0F) is 4.16:1, and at 1.2rem bold (19.2px) the text
   qualifies as LARGE under WCAG, where the threshold is 3:1 — so this now passes with room to
   spare while keeping the saffron identity. Maroon would have scored 10.95:1 but sits directly
   above the maroon name bar, which reads as one merged block. */
.item-media__price {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--pcd-primary-dark);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.item-header {
    background: var(--pcd-secondary);
    color: white;
    padding: 13px 20px;

    /* theme.css sets --bs-heading-color to the maroon --pcd-secondary, and Bootstrap applies it
       as `h1..h6 { color: var(--bs-heading-color) }`. That is a rule matching the heading
       DIRECTLY, so it beats the white this element passes down by INHERITANCE — inherited values
       lose to any matching declaration, however weak. The item name therefore rendered maroon on
       a maroon bar: present in the DOM, selectable, and completely invisible.
       Re-pointing the variable here fixes every heading level inside this bar, not just the h3
       that happens to be used today. */
    --bs-heading-color: #fff;
}

.item-header h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.35;
    /* Explicit as well as the variable above: this is the one that must not regress if the
       heading ever moves out of this container or Bootstrap changes how it applies the token. */
    color: #fff;
}

.item-body {
    padding: 15px 20px;
}

.item-body p {
    color: var(--pcd-text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.item-impact {
    margin: -4px 0 12px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.86rem;
    line-height: 1.4;
    font-weight: 600;
}

.about-description {
    position: relative;
    overflow: hidden;
    transition: max-height 0.28s ease;
    color: var(--pcd-text-muted);
    line-height: 1.7;
}

.about-description.is-collapsed {
    max-height: 168px;
}

.about-description.is-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(255, 245, 240, 0) 0%, #fff5f0 90%);
    pointer-events: none;
}

.about-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    border: 1px solid #f5c6aa;
    background: #ffffff;
    color: #9a3412;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.about-toggle-btn:hover {
    background: #fff7ed;
    border-color: #fdba74;
}

.item-body > button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--pcd-primary) 0%, var(--pcd-secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.item-body > button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.item-body > button i {
    margin-right: 8px;
}

/* Quantity Controls */
.qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.qty-row span {
    color: var(--pcd-text-muted);
    font-weight: 500;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.qty-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--pcd-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0;
}

.qty-btn:hover {
    background: var(--pcd-primary-dark);
    transform: none;
}

.qty-btn:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.qty-input {
    width: 56px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--pcd-border);
    border-radius: 6px;
    font-weight: 600;
    padding: 5px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.qty-input.qty-flash {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

/* View Sewa Patra Button */
.sewa-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--pcd-primary) 0%, var(--pcd-secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.sewa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.cart-feedback {
    position: fixed;
    right: 20px;
    bottom: 120px;
    width: min(340px, calc(100vw - 24px));
    border-radius: 12px;
    padding: 2px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
    z-index: 106;
    display: none;
    overflow: hidden;
}

.cart-feedback::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: conic-gradient(#16a34a, #4ade80, #16a34a);
    animation: cartRingSpin 1.6s linear infinite;
    z-index: 0;
}

.cart-feedback.error::before {
    background: conic-gradient(#dc2626, #fca5a5, #dc2626);
}

.cart-feedback.active {
    display: block;
}

.cart-feedback__body {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 14px 10px 14px;
}

.cart-feedback__title {
    font-weight: 700;
    color: #166534;
    margin-bottom: 4px;
}

.cart-feedback__meta {
    color: var(--pcd-text-muted);
    font-size: 0.9rem;
}

.cart-feedback.error .cart-feedback__title {
    color: #b91c1c;
}

.cart-feedback.error .cart-feedback__meta {
    color: #7f1d1d;
}

@keyframes cartRingSpin {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   Floating Sewa Patra
   --------------------------------------------------------------------------
   Replaces the old .sticky-donate-cta, which was declared display:none and only
   switched on inside the max-width:768px block — so a desktop devotee had no
   persistent cart at all and only a four-second toast to confirm an add.

   Visibility is driven by class + visibility, never by the `hidden` attribute:
   [hidden] is a UA rule at the weakest possible weight, and any display value
   set here would silently beat it. visibility:hidden also removes the panel
   from the tab order, which display-swapping alone would not.
   ========================================================================== */

.dc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Enough clearance for the closed button plus its shadow, so the last row of
   cards is never sitting underneath it. */
.container.has-floating-cart {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.sewa-cart {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* ---- the closed button ---- */

.sewa-cart__fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    margin: 0;
    padding: 12px 20px 12px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pcd-primary) 0%, var(--pcd-secondary) 100%);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(var(--pcd-secondary-rgb), 0.32);

    /* Scaled out until there is something in the patra. An empty floating cart is
       clutter; the entrance is what signals that the add worked. */
    transform: scale(0.4);
    opacity: 0;
    pointer-events: none;
    transition: transform .34s cubic-bezier(.2, .9, .3, 1.4), opacity .22s ease;
}

.sewa-cart.is-active .sewa-cart__fab {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.sewa-cart__fab:hover { filter: brightness(1.06); }

.sewa-cart__fab:focus-visible {
    outline: 3px solid var(--pcd-gold);
    outline-offset: 3px;
}

.sewa-cart__fab-icon {
    width: 26px;
    height: 26px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sewa-cart__fab-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    text-align: left;
}

.sewa-cart__fab-label {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.9;
}

.sewa-cart__fab-total {
    font-size: 1.02rem;
    font-weight: 700;
    white-space: nowrap;
}

.sewa-cart__badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--pcd-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

/* The attention cue: a ring that expands out of the button once per add, rather
   than a permanent animation. A cart that pulses forever stops being a signal and
   becomes something to ignore. */
.sewa-cart__fab-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2px solid var(--pcd-primary);
    opacity: 0;
    pointer-events: none;
}

.sewa-cart.is-bumped .sewa-cart__fab-ring {
    animation: sewaRing 0.85s ease-out 2;
}

.sewa-cart.is-bumped .sewa-cart__fab {
    animation: sewaBump 0.42s ease-out;
}

@keyframes sewaRing {
    0%   { opacity: .85; transform: scale(1); }
    100% { opacity: 0;   transform: scale(1.45); }
}

@keyframes sewaBump {
    0%, 100% { transform: scale(1); }
    35%      { transform: scale(1.11); }
    70%      { transform: scale(0.97); }
}

/* ---- the open panel ---- */

.sewa-cart__panel {
    display: flex;
    flex-direction: column;
    width: min(380px, calc(100vw - 32px));
    max-height: min(560px, calc(100vh - 120px));
    background: var(--pcd-surface);
    border: 1px solid var(--pcd-border);
    border-radius: var(--pcd-radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .24s cubic-bezier(.2, .9, .3, 1.2), visibility .24s;
}

.sewa-cart.is-open .sewa-cart__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sewa-cart__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    background: linear-gradient(135deg, var(--pcd-primary) 0%, var(--pcd-secondary) 100%);
    color: #fff;
    /* theme.css points --bs-heading-color at the maroon --pcd-secondary and Bootstrap applies it
       straight to h1..h6, which beats the white inherited from here. Without this the title
       renders maroon on maroon — the same defect the item cards carry a fix for. */
    --bs-heading-color: #fff;
}

.sewa-cart__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.sewa-cart__sub {
    margin: 2px 0 0;
    font-size: 0.8rem;
    opacity: 0.92;
}

.sewa-cart__close {
    width: 32px;
    height: 32px;
    flex: none;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.sewa-cart__close:hover { background: rgba(255, 255, 255, 0.3); }

.sewa-cart__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.sewa-cart__list {
    margin: 0;
    padding: 6px 0;
    list-style: none;
    overflow-y: auto;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
}

.sewa-cart__row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--pcd-border);
}

.sewa-cart__row:last-child { border-bottom: none; }

.sewa-cart__row.is-leaving {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity .18s ease, transform .18s ease;
}

.sewa-cart__thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(var(--pcd-primary-rgb), 0.1);
}

.sewa-cart__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pcd-primary);
    font-size: 1.2rem;
}

.sewa-cart__row-main { min-width: 0; }

.sewa-cart__row-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pcd-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sewa-cart__row-sub {
    display: block;
    margin-top: 2px;
    font-size: 0.82rem;
    color: var(--pcd-text-muted);
}

.sewa-cart__row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sewa-cart__qty-btn,
.sewa-cart__remove {
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--pcd-border);
    border-radius: 6px;
    background: var(--pcd-surface);
    color: var(--pcd-secondary);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

.sewa-cart__qty-btn:hover:not(:disabled),
.sewa-cart__remove:hover { border-color: var(--pcd-primary); color: var(--pcd-primary); }

.sewa-cart__qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sewa-cart__qty-value {
    min-width: 22px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pcd-text);
}

.sewa-cart__remove { color: #b91c1c; }
.sewa-cart__remove:hover { border-color: #b91c1c; color: #b91c1c; }

.sewa-cart__empty {
    margin: 0;
    padding: 28px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--pcd-text-muted);
}

.sewa-cart.has-rows .sewa-cart__empty { display: none; }

.sewa-cart__foot {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--pcd-border);
    background: var(--pcd-bg);
}

.sewa-cart__totals {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sewa-cart__totals-label {
    font-size: 0.85rem;
    color: var(--pcd-text-muted);
}

.sewa-cart__totals-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pcd-secondary);
}

.sewa-cart__proceed {
    display: block;
    padding: 13px 16px;
    border-radius: var(--pcd-radius);
    background: linear-gradient(135deg, var(--pcd-primary) 0%, var(--pcd-secondary) 100%);
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.sewa-cart__proceed:hover { filter: brightness(1.06); color: #fff; }

/* The backdrop only exists for the mobile sheet; on a desktop the panel is a popover
   and the page behind it stays usable. */
.sewa-cart__backdrop { display: none; }

/* ---- in-cart state on the cards ---- */

.item-card { position: relative; }

.item-incart-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: #15803d;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity .18s ease, transform .18s cubic-bezier(.2, .9, .3, 1.4);
    pointer-events: none;
}

.item-card.is-in-cart .item-incart-chip {
    opacity: 1;
    transform: scale(1);
}

.dc-add-btn.is-added {
    background: #15803d;
}

.dc-add-btn.is-added:hover:not(:disabled) {
    background: #166534;
}

.dc-add-btn.is-busy {
    opacity: 0.75;
    cursor: progress;
}

@media (max-width: 768px) {
    /* Bottom sheet rather than a shrunken popover: full width, rounded at the top only,
       and rising from the edge the thumb is already near. */
    .sewa-cart {
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(12px + env(safe-area-inset-bottom));
        align-items: stretch;
    }

    .sewa-cart__fab {
        justify-content: center;
        padding: 13px 18px;
    }

    .sewa-cart__panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-height: 78vh;
        border-radius: var(--pcd-radius-lg) var(--pcd-radius-lg) 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        transform: translateY(100%);
        transform-origin: bottom center;
    }

    .sewa-cart.is-open .sewa-cart__panel { transform: translateY(0); }

    .sewa-cart__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s;
    }

    .sewa-cart.is-open .sewa-cart__backdrop {
        opacity: 1;
        visibility: visible;
    }

    /* The button would otherwise sit on top of the open sheet. */
    .sewa-cart.is-open .sewa-cart__fab {
        opacity: 0;
        pointer-events: none;
    }
}

/* Motion is decoration here — every state it conveys is also carried by the count,
   the total and the button label. */
@media (prefers-reduced-motion: reduce) {
    .sewa-cart__fab,
    .sewa-cart__panel,
    .sewa-cart__backdrop,
    .item-incart-chip,
    .sewa-cart__row.is-leaving {
        transition-duration: 0.01ms;
    }

    .sewa-cart.is-bumped .sewa-cart__fab,
    .sewa-cart.is-bumped .sewa-cart__fab-ring {
        animation: none;
    }
}

@media (max-width: 768px) {
    .items-grid { grid-template-columns: 1fr; }

    .social-proof-inline {
        grid-template-columns: 1fr;
    }

    /* The .sticky-donate-cta rules that stood here were removed with the markup they styled.
       donation_cart.php keeps its own copy of that component in donation_cart.css and is
       unaffected; this page's cart is now the floating Sewa Patra defined above. */
}

/* The "Add to Sewa Cart" and quantity buttons previously inherited legacy
   style.css's global `button` rule, which migrated pages no longer load.
   They are given explicit page-scoped styling here instead. */
/* Pushes the Add button to the bottom of a stretched card. Harmless on a card that is already
   the tallest in its row, which is why it is unconditional rather than a modifier class. */
.item-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.item-body > .dc-add-btn {
    margin-top: auto;
}

.dc-add-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: none;
    border-radius: var(--pcd-radius);
    background: var(--pcd-secondary);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.dc-add-btn:hover:not(:disabled) {
    background: var(--pcd-secondary-dark);
}

.dc-add-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

/* Section headings promoted from <h4> to <h2> for a valid heading hierarchy;
   this keeps their original visual size. */
.dc-section-h {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ==========================================================================
   v10.6.0 inline-style sweep.

   The "about" card's 4px accent and the banner's shadow were authored as
   `var(--primary)` and `var(--shadow)`. Neither token has existed since
   assets/css/style.css was retired, which made those declarations invalid at
   computed-value time — the accent bar and the shadow simply never rendered.
   Both now use the real --pcd-* tokens.
   ========================================================================== */

.dc-back-link {
    color: var(--pcd-primary);
    text-decoration: none;
}

.dc-back-link:hover {
    text-decoration: underline;
}

.dc-banner {
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--pcd-shadow);
}

.dc-banner__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* .info-card and its --about / --options / --warning variants live in app.css:
   index.php and donation_category.php both use them, so keeping a copy here
   would be the duplication this sweep exists to remove. */

.info-card--about .dc-section-h {
    color: var(--pcd-primary);
    margin-bottom: 15px;
}

.info-card--options .dc-section-h {
    color: #1b5e20;
    margin-bottom: 5px;
}




