/* ==========================================================================
   Inner pages — hero band, breadcrumbs, prose, forms, timeline, FAQ
   Loaded on every page alongside app.css.
   ========================================================================== */

/* --- Page hero band ------------------------------------------------------ */
.page-hero {
    background:
        radial-gradient(circle at 22% 30%, rgba(201,150,63,.18), transparent 58%),
        linear-gradient(150deg, var(--brown-800), var(--maroon-900) 82%);
    color: var(--c-text-invert);
    padding-block: var(--sp-7);
    border-bottom: 3px solid var(--c-accent);
}
.page-hero h1 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--sp-3);
    text-wrap: balance;
}
.page-hero p {
    color: var(--cream-300);
    max-width: 68ch;
    font-size: var(--fs-md);
}

.breadcrumb {
    margin-bottom: var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--gold-300);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; }
.breadcrumb a { text-decoration: none; opacity: .9; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "›"; margin-inline-end: var(--sp-2); opacity: .6; }
.breadcrumb [aria-current] { color: var(--cream-200); }

/* --- Long-form prose ----------------------------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 {
    font-size: var(--fs-xl);
    color: var(--c-primary);
    margin-top: var(--sp-7);
    padding-bottom: var(--sp-2);
    border-bottom: 2px solid var(--c-accent-soft);
}
.prose h3 { font-size: var(--fs-lg); color: var(--maroon-600); margin-top: var(--sp-6); }
.prose p { color: var(--c-text-muted); }
.prose ul { padding-inline-start: var(--sp-5); }
.prose ul li {
    position: relative;
    color: var(--c-text-muted);
    padding-inline-start: var(--sp-4);
    margin-bottom: var(--sp-3);
}
.prose ul li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .72em;
    width: 7px; height: 7px;
    transform: rotate(45deg);
    background: var(--c-accent);
}
.prose ol { padding-inline-start: var(--sp-6); }
.prose ol li { color: var(--c-text-muted); margin-bottom: var(--sp-3); }
.prose strong { color: var(--c-text); }

.page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--sp-7);
    align-items: start;
}
.sidebar { position: sticky; top: 100px; display: grid; gap: var(--sp-5); }

.side-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-top: 4px solid var(--c-accent);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
}
.side-card h3 { font-size: var(--fs-md); color: var(--c-primary); margin-bottom: var(--sp-4); }
.side-card ul li + li { margin-top: var(--sp-3); }
.side-card a { color: var(--maroon-600); text-decoration: none; font-size: var(--fs-sm); }
.side-card a:hover { text-decoration: underline; }
.side-card--deep {
    background: linear-gradient(165deg, var(--maroon-700), var(--maroon-900));
    color: var(--c-text-invert);
    border-color: var(--gold-700);
    text-align: center;
}
.side-card--deep h3 { color: var(--gold-300); }
.side-card--deep p { color: var(--cream-300); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }

/* --- Cause cards --------------------------------------------------------- */
.cause-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-5);
}
.cause-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cause-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-accent); }
.cause-card__icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: var(--radius);
    background: var(--c-success-soft);
    border: 1px solid var(--green-400);
    color: var(--green-800);
}
.cause-card__icon svg { width: 26px; height: 26px; }
.cause-card h3 { font-size: var(--fs-lg); color: var(--c-primary); }
.cause-card p { color: var(--c-text-muted); font-size: var(--fs-sm); }

/* --- Timeline ------------------------------------------------------------ */
.timeline { position: relative; padding-inline-start: var(--sp-6); }
.timeline::before {
    content: "";
    position: absolute;
    inset-inline-start: 7px;
    top: 6px; bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--c-accent), var(--c-border));
}
.timeline li { position: relative; padding-bottom: var(--sp-6); }
.timeline li::before {
    content: "";
    position: absolute;
    inset-inline-start: calc(-1 * var(--sp-6) + 2px);
    top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--c-surface);
    border: 3px solid var(--c-accent);
}
.timeline b { display: block; color: var(--c-primary); font-size: var(--fs-md); }
.timeline time { font-size: var(--fs-xs); color: var(--c-accent-deep); font-weight: 700; }
.timeline p { color: var(--c-text-muted); font-size: var(--fs-sm); margin-top: var(--sp-2); }

/* --- Founder / profile blocks -------------------------------------------- */
.founder {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: var(--sp-5);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
}
.founder + .founder { margin-top: var(--sp-5); }
.founder__photo {
    aspect-ratio: 4/5;
    border-radius: var(--radius);
    background: linear-gradient(150deg, var(--cream-300), var(--cream-200));
    display: grid; place-items: center;
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--brown-500);
    overflow: hidden;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder h3 { font-size: var(--fs-lg); color: var(--c-primary); }
.founder .role { color: var(--c-accent-deep); font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--sp-3); }
.founder dl { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); margin-top: var(--sp-3); }
.founder dt { color: var(--c-text); font-weight: 700; }
.founder dd { color: var(--c-text-muted); margin: 0; }

/* --- Forms --------------------------------------------------------------- */
.form-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-top: 4px solid var(--c-accent);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-5); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: var(--fs-sm); }
.field .req { color: var(--maroon-500); }
.field .hint { font-size: var(--fs-xs); color: var(--c-text-muted); }

.field input, .field select, .field textarea {
    font: inherit;
    font-size: var(--fs-sm);
    color: var(--c-text);
    background: var(--cream-50);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius);
    padding: var(--sp-3);
    width: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(201,150,63,.22);
}
.field .error { color: var(--maroon-500); font-size: var(--fs-xs); font-weight: 700; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
    border-color: var(--maroon-500);
}

.alert {
    border-radius: var(--radius);
    padding: var(--sp-4) var(--sp-5);
    margin-bottom: var(--sp-5);
    font-size: var(--fs-sm);
    border: 1px solid;
}
.alert--ok { background: var(--c-success-soft); border-color: var(--green-400); color: var(--green-800); }
.alert--err { background: var(--maroon-50); border-color: var(--maroon-200); color: var(--maroon-700); }
.alert strong { display: block; margin-bottom: var(--sp-1); }

/* --- FAQ accordion ------------------------------------------------------- */
.faq details {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: var(--sp-4) var(--sp-5);
}
.faq details + details { margin-top: var(--sp-3); }
.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--c-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: var(--fs-lg);
    color: var(--c-accent-deep);
    flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { margin-bottom: var(--sp-3); }
.faq p { color: var(--c-text-muted); font-size: var(--fs-sm); }

/* --- Share row ----------------------------------------------------------- */
.share { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-6); }
.share span { font-size: var(--fs-sm); font-weight: 700; }
.share a {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    border: 1px solid var(--c-border-strong);
    border-radius: 999px;
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: background .15s ease, border-color .15s ease;
}
.share a:hover { background: var(--c-accent-soft); border-color: var(--c-accent); }
.share svg { width: 17px; height: 17px; }

/* --- Contact rows -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-5); }
.contact-item {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    text-align: center;
}
.contact-item__icon {
    width: 52px; height: 52px;
    margin: 0 auto var(--sp-4);
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--c-accent-soft);
    border: 2px solid var(--gold-400);
    color: var(--c-primary);
}
.contact-item__icon svg { width: 24px; height: 24px; }
.contact-item h3 { font-size: var(--fs-md); color: var(--c-primary); margin-bottom: var(--sp-2); }
.contact-item p, .contact-item a { color: var(--c-text-muted); font-size: var(--fs-sm); text-decoration: none; }
.contact-item a:hover { color: var(--c-primary); text-decoration: underline; }

/* --- Notice band --------------------------------------------------------- */
.notice {
    background: var(--c-accent-soft);
    border: 1px solid var(--gold-400);
    border-inline-start: 4px solid var(--c-accent-deep);
    border-radius: var(--radius);
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--fs-sm);
    color: var(--brown-700);
}
.notice strong { color: var(--c-primary); }

/* --- Back to top --------------------------------------------------------- */
.to-top {
    position: fixed;
    inset-block-end: var(--sp-5);
    inset-inline-end: var(--sp-5);
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--c-primary);
    color: var(--c-text-invert);
    border: 2px solid var(--c-accent);
    text-decoration: none;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* --- Payment preference on the registration form -------------------------
   Two large tap targets rather than a dropdown: this is answered on a phone,
   often by someone reading carefully, and the explanatory line under each
   option is the part that actually prevents a wrong choice. */
.pay-choice { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.pay-choice legend { font-weight: 700; font-size: var(--fs-sm); padding: 0; margin-bottom: var(--sp-1); }

.pay-opt {
    display: flex; align-items: flex-start; gap: var(--sp-3);
    padding: var(--sp-4);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius);
    background: var(--c-surface);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.pay-opt:hover { border-color: var(--c-accent); }
.pay-opt input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.pay-opt:has(input:checked) { border-color: var(--c-accent); background: var(--c-accent-soft); }
.pay-opt b { display: block; font-size: var(--fs-sm); }
.pay-opt small { display: block; color: var(--c-text-muted); font-size: var(--fs-xs); margin-top: 2px; }

/* --- पदाधिकारी ------------------------------------------------------------
   Five to seven people, shown as cards rather than the stacked biography rows
   the founders use — an office-bearer entry is a name, a पद and a line of
   professional identity, not a story. Contact rows appear only for the fields
   the samiti has deliberately switched on. */
.bearer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--sp-5);
    max-width: 1000px;
    margin-inline: auto;
}
.bearer {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-top: 4px solid var(--c-accent);
    border-radius: var(--radius-lg);
    padding: var(--sp-5) var(--sp-4);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.bearer:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bearer__photo {
    width: 104px; height: 104px;
    margin: 0 auto var(--sp-4);
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--c-accent);
    background: var(--maroon-700);
    color: var(--cream-100);
    display: grid; place-items: center;
    font-size: var(--fs-2xl); font-weight: 700;
}
.bearer__photo img { width: 100%; height: 100%; object-fit: cover; }
.bearer h3 { font-size: var(--fs-md); color: var(--c-primary); }
.bearer__pad {
    color: var(--c-accent-deep); font-size: var(--fs-sm);
    font-weight: 700; margin-top: var(--sp-1);
}
.bearer__work { color: var(--c-text-muted); font-size: var(--fs-sm); margin-top: var(--sp-2); }
.bearer__bio {
    color: var(--c-text-muted); font-size: var(--fs-sm);
    margin-top: var(--sp-3); text-align: start;
}
.bearer__contact {
    list-style: none; padding: var(--sp-3) 0 0; margin-top: var(--sp-3);
    border-top: 1px solid var(--c-border);
    font-size: var(--fs-sm);
}
.bearer__contact li + li { margin-top: var(--sp-1); }
.bearer__contact a { color: var(--maroon-600); text-decoration: none; }
.bearer__contact a:hover { text-decoration: underline; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 700px) {
    .form-grid { grid-template-columns: 1fr; }
    .founder { grid-template-columns: 1fr; }
    .founder__photo { max-width: 190px; }
    .page-hero { padding-block: var(--sp-6); }
}
