/* ============================================================
   Bridge of Hope Recovery — site.css
   All page-specific styles in one file.
   All selectors are already scoped (.about-page, .rules-page, etc.)
   so there is no collision risk between sections.
   Load order: Bootstrap → boh-theme.css → main.css → site.css
   ============================================================ */

/* ============================================================
   Bridge of Hope Recovery - About
   Page-specific styles
   ============================================================ */

.about-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 40px 120px;
    color: #2C2A26;
}

/* Header */
.about-page .bridge-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(60,50,40,0.15);
}

.about-page .eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7A7368;
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
}

.about-page h1.page-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1A1816;
    font-family: Georgia, 'Source Sans Pro', serif;
}

.about-page h1.page-title em {
    font-style: italic;
}

.about-page .header-lede {
    font-size: 18px;
    font-style: italic;
    color: #7A7368;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: Georgia, serif;
}

/* Ornament divider */
.about-page .ornament {
    display: block;
    text-align: center;
    color: #A89F94;
    font-size: 16px;
    letter-spacing: 0.5em;
    margin: 36px 0;
}

/* Opening block */
.about-page .opening-block {
    margin-bottom: 56px;
}

.about-page .opening-block p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 24px;
    color: #2C2A26;
    font-family: Georgia, serif;
}

/* Story sections */
.about-page .about-section {
    margin-bottom: 48px;
    padding: 40px 48px;
    background: #FFFDF9;
    border: 1px solid rgba(60,50,40,0.12);
    border-radius: 3px;
    position: relative;
}

.about-page .about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

/* About section accent colors — neutral identifiers */
.about-page .about-section-one::before   { background: #5C7A5E; }
.about-page .about-section-two::before   { background: #3A6B8A; }
.about-page .about-section-three::before { background: #C4884A; }
.about-page .about-section-four::before  { background: #7A5C8A; }
.about-page .about-section-five::before  { background: #4A7A8A; }

.about-page .section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.about-page .about-section-one   .section-label { color: #5C7A5E; }
.about-page .about-section-two   .section-label { color: #3A6B8A; }
.about-page .about-section-three .section-label { color: #C4884A; }
.about-page .about-section-four  .section-label { color: #7A5C8A; }
.about-page .about-section-five  .section-label { color: #4A7A8A; }

.about-page .section-title {
    font-size: 26px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #1A1816;
    font-family: Georgia, serif;
}

.about-page .about-section p {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #2C2A26;
    font-family: Georgia, serif;
    background: none;
}

.about-page .about-section p:last-child {
    margin-bottom: 0;
}

.about-page .about-section strong {
    font-style: italic;
    font-weight: 500;
}

/* Pull quote */
.about-page .pull-quote {
    margin: 48px 0;
    padding: 36px 48px;
    border-top: 1px solid rgba(60,50,40,0.15);
    border-bottom: 1px solid rgba(60,50,40,0.15);
    text-align: center;
}

.about-page .pull-quote p {
    font-size: 22px;
    font-style: italic;
    font-weight: 300;
    color: #1A1816;
    line-height: 1.55;
    margin: 0;
    font-family: Georgia, serif;
    background: none;
}

/* Inline CTA inside last section */
.about-page .about-cta-inline {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(60,50,40,0.1);
    text-align: center;
}

/* Closing block */
.about-page .closing-block {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(60,50,40,0.15);
}

.about-page .closing-block p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 22px;
    color: #2C2A26;
    font-family: Georgia, serif;
    background: none;
}

.about-page .closing-block .final-line {
    font-size: 20px;
    font-style: italic;
    color: #1A1816;
}

/* Responsive */
@media (max-width: 600px) {
    .about-page { padding: 40px 20px 80px; }
    .about-page .about-section { padding: 28px 24px; }
    .about-page .pull-quote { padding: 28px 24px; }
}/* Admin panel */
#admin_panel { max-width: 860px; margin: 0 auto; padding: 20px; }
.admin-section {
    background: #fff; border: 1px solid #ddd; border-radius: 10px;
    padding: 18px; margin-bottom: 14px;
}
.admin-section h2 { font-size: 1.15rem; margin-bottom: 10px; }
.admin-section-super { border-color: #e3b9b9; }
.admin-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ */
/* Unified admin panel: vertical rail + content pane (KAN-84)          */
/* ------------------------------------------------------------------ */

.admin-layout {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Left rail */
.admin-rail {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
}

.rail-group {
    background: #fff;
    border: 1px solid #e7e2da;
    border-left: 4px solid var(--rail-accent, #7A7368);
    border-radius: 10px;
    padding: 10px 10px 6px;
}
.rail-group-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rail-accent, #7A7368);
    padding: 2px 8px 8px;
}
.rail-tab {
    display: block;
    padding: 8px 10px;
    margin-bottom: 2px;
    border-radius: 7px;
    color: #2C2A26;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.2;
    transition: background-color 0.12s ease, color 0.12s ease;
}
.rail-tab:hover {
    background: color-mix(in srgb, var(--rail-accent, #7A7368) 12%, #fff);
}
.rail-tab.active {
    background: var(--rail-accent, #7A7368);
    color: #fff;
    font-weight: 600;
}

/* Per-role calm accents, all from the site palette */
.rail-group--overview { --rail-accent: #7A7368; } /* taupe   */
.rail-group--site     { --rail-accent: #4A7A8A; } /* blue    */
.rail-group--calendar { --rail-accent: #5C7A5E; } /* sage    */
.rail-group--it       { --rail-accent: #C4884A; } /* ochre   */
.rail-group--super    { --rail-accent: #9B3A3A; } /* red     */

/* Content pane */
.admin-pane {
    flex: 1 1 auto;
    min-width: 0;
}

/* Enrollment banner — soft tinted background matching the tab's role group */
.admin-enroll-banner {
    --banner-accent: #7A7368;
    background: color-mix(in srgb, var(--banner-accent) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--banner-accent) 25%, #fff);
    border-left: 4px solid var(--banner-accent);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--banner-accent) 60%, #1A1816);
}
.admin-enroll-banner[data-group="site"]     { --banner-accent: #4A7A8A; }
.admin-enroll-banner[data-group="calendar"] { --banner-accent: #5C7A5E; }
.admin-enroll-banner[data-group="it"]       { --banner-accent: #C4884A; }
.admin-enroll-banner[data-group="super"]    { --banner-accent: #9B3A3A; }

/* Overview tab: grouped quick-link cards, colour-matched to the rail */
.overview-groups {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.overview-group {
    background: #fff;
    border: 1px solid #e7e2da;
    border-left: 4px solid var(--rail-accent, #7A7368);
    border-radius: 10px;
    padding: 14px 16px;
}
.overview-group h2 {
    color: var(--rail-accent, #7A7368);
    margin-bottom: 10px;
}
.overview-links { display: flex; flex-direction: column; gap: 6px; }
.overview-link {
    display: block;
    padding: 7px 10px;
    border-radius: 7px;
    color: #2C2A26;
    text-decoration: none;
    background: color-mix(in srgb, var(--rail-accent, #7A7368) 8%, #fff);
}
.overview-link:hover {
    background: color-mix(in srgb, var(--rail-accent, #7A7368) 18%, #fff);
}

/* Typeahead option buttons (IT admins invite, identity lookup, etc.) */
.ita-who-option {
    display: block;
    width: 100%;
    text-align: left;
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #2C2A26;
}
.ita-who-option:hover { background: #eef4f8; }

/* Mobile: rail stacks above the pane */
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; padding: 12px; gap: 14px; }
    .admin-rail { flex-basis: auto; width: 100%; position: static; }
}
/* Content Management (KAN-55) */

#admin_content {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 16px;
}

#admin_content h1 {
    color: #3A6B8A;
    margin-bottom: 12px;
}

.ac-pill.active {
    background: #3A6B8A;
    color: #fff;
    border-color: #3A6B8A;
}

.ac-editor-card {
    border-left: 4px solid #3A6B8A;
}
/* Admin queues: calendar / IT / feedback (KAN-52) */

#admin_queues {
    max-width: 860px;
    margin: 40px auto 80px;
    padding: 0 16px;
}

#admin_queues h1 {
    color: #3A6B8A;
    margin-bottom: 12px;
}

.aq-card {
    border-left: 4px solid #3A6B8A;
}

.aq-card.aq-resolved {
    border-left-color: #adb5bd;
    opacity: 0.75;
}

.aq-reroute-group {
    max-width: 280px;
}
/* Member Management (KAN-51) */

#admin_users {
    max-width: 1000px;
    margin: 40px auto 80px;
    padding: 0 16px;
}

#admin_users h1 {
    color: #3A6B8A;
    margin-bottom: 12px;
}

.au-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

.au-role-row td {
    background: #f8f6f2;
}

.au-role-panel {
    padding: 8px 4px;
}

.au-role-panel .form-check-inline {
    margin-right: 18px;
}

@media (max-width: 576px) {
    .au-table td, .au-table th {
        font-size: 0.85rem;
    }
}
/* All Meetings admin view (KAN-57) */

#all_events {
    max-width: 1000px;
    margin: 40px auto 80px;
    padding: 0 16px;
}

#all_events h1 {
    color: #3A6B8A;
    margin-bottom: 12px;
}

.ae-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}
/* ============================================================
   Bridge of Hope Recovery - The Hearts Behind the Bridge
   Page-specific styles
   ============================================================ */

.bridge-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 40px 120px;
    color: #2C2A26;
}

/* Header */
.bridge-page .bridge-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(60,50,40,0.15);
}

.bridge-page .eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7A7368;
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
}

.bridge-page h1.page-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1A1816;
    font-family: Georgia, 'Source Sans Pro', serif;
}

.bridge-page h1.page-title em {
    font-style: italic;
}

.bridge-page .header-lede {
    font-size: 18px;
    font-style: italic;
    color: #7A7368;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: Georgia, serif;
}

/* Ornament divider */
.bridge-page .ornament {
    display: block;
    text-align: center;
    color: #A89F94;
    font-size: 16px;
    letter-spacing: 0.5em;
    margin: 36px 0;
}

/* Opening block */
.bridge-page .opening-block {
    margin-bottom: 56px;
}

.bridge-page .opening-block p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 24px;
    color: #2C2A26;
    font-family: Georgia, serif;
}

/* Story sections */
.bridge-page .story-section {
    margin-bottom: 48px;
    padding: 40px 48px;
    background: #FFFDF9;
    border: 1px solid rgba(60,50,40,0.12);
    border-radius: 3px;
    position: relative;
}

.bridge-page .story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

/* Heart section accent colors — neutral identifiers only, no names */
.bridge-page .section-heart-one::before   { background: #5C7A5E; }
.bridge-page .section-heart-two::before   { background: #3A6B8A; }
.bridge-page .section-heart-three::before { background: #C4884A; }
.bridge-page .section-heart-four::before  { background: #7A5C8A; }
.bridge-page .section-village::before     { background: #4A7A8A; }
.bridge-page .section-founding::before    { background: #8B6914; }

.bridge-page .section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.bridge-page .section-heart-one   .section-label { color: #5C7A5E; }
.bridge-page .section-heart-two   .section-label { color: #3A6B8A; }
.bridge-page .section-heart-three .section-label { color: #C4884A; }
.bridge-page .section-heart-four  .section-label { color: #7A5C8A; }
.bridge-page .section-village     .section-label { color: #4A7A8A; }
.bridge-page .section-founding    .section-label { color: #8B6914; }

.bridge-page .section-title {
    font-size: 26px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #1A1816;
    font-family: Georgia, serif;
}

.bridge-page .story-section p {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #2C2A26;
    font-family: Georgia, serif;
    background: none;
}

.bridge-page .story-section p:last-child {
    margin-bottom: 0;
}

.bridge-page .story-section strong {
    font-style: italic;
    font-weight: 500;
}

/* Pull quote */
.bridge-page .pull-quote {
    margin: 48px 0;
    padding: 36px 48px;
    border-top: 1px solid rgba(60,50,40,0.15);
    border-bottom: 1px solid rgba(60,50,40,0.15);
    text-align: center;
}

.bridge-page .pull-quote p {
    font-size: 22px;
    font-style: italic;
    font-weight: 300;
    color: #1A1816;
    line-height: 1.55;
    margin: 0;
    font-family: Georgia, serif;
    background: none;
}

/* Closing block */
.bridge-page .closing-block {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(60,50,40,0.15);
}

.bridge-page .closing-block p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 22px;
    color: #2C2A26;
    font-family: Georgia, serif;
    background: none;
}

.bridge-page .closing-block .final-line {
    font-size: 20px;
    font-style: italic;
    color: #1A1816;
}

/* CTA block */
.bridge-page .cta-block {
    margin-top: 64px;
    text-align: center;
    padding: 48px 40px;
    background: #1A1816;
    border-radius: 3px;
}

.bridge-page .cta-block p {
    font-size: 18px;
    font-style: italic;
    font-weight: 300;
    color: rgba(255,253,249,0.85);
    margin-bottom: 24px;
    line-height: 1.6;
    font-family: Georgia, serif;
    background: none;
}

/* Founding section */
.bridge-page .founding-note {
    font-size: 14px;
    color: #7A7368;
    font-style: italic;
    text-align: center;
    margin-bottom: 32px;
    padding: 12px 20px;
    border: 1px solid rgba(139,105,20,0.2);
    border-radius: 3px;
    background: rgba(139,105,20,0.04);
}

/* Founding image */
.bridge-page .founding-image-block {
    margin: 40px 0;
    text-align: center;
}

.bridge-page .founding-image {
    width: 100%;
    max-width: 680px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: block;
    margin: 0 auto 20px;
}

.bridge-page .founding-image-caption {
    font-size: 14px;
    color: #7A7368;
    font-style: italic;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
    font-family: Georgia, serif;
    background: none;
}

/* Fellowship grid — fifth heart / village section */
.bridge-page .fellowship-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
    margin: 36px 0 32px;
}

.bridge-page .fellowship-group {
    background: rgba(74,122,138,0.04);
    border: 1px solid rgba(74,122,138,0.15);
    border-radius: 3px;
    padding: 24px 28px;
}

.bridge-page .fellowship-group-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4A7A8A;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
}

.bridge-page .fellowship-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bridge-page .fellowship-list li {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: #2C2A26;
    font-family: Georgia, serif;
    padding: 5px 0;
    border-bottom: 1px solid rgba(60,50,40,0.07);
}

.bridge-page .fellowship-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bridge-page .fellowship-list strong {
    font-weight: 500;
    font-style: normal;
    color: #1A1816;
}

.bridge-page .fellowship-closing {
    font-size: 15px;
    font-style: italic;
    color: #7A7368;
    text-align: center;
    margin-top: 8px;
    padding: 16px 20px;
    border: 1px solid rgba(74,122,138,0.2);
    border-radius: 3px;
    background: rgba(74,122,138,0.04);
    font-family: Georgia, serif;
}

/* Responsive */
@media (max-width: 600px) {
    .bridge-page { padding: 40px 20px 80px; }
    .bridge-page .story-section { padding: 28px 24px; }
    .bridge-page .pull-quote { padding: 28px 24px; }
    .bridge-page .fellowship-grid { grid-template-columns: 1fr; gap: 20px; }
    .bridge-page .fellowship-group { padding: 20px 20px; }
}/* ============================================================
   Bridge of Hope Recovery - Safe Communication Boundaries
   Page-specific styles
   ============================================================ */

.boundaries-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 40px 120px;
    color: #2C2A26;
}

/* ── Header ─────────────────────────────────────────────────── */

.boundaries-page .bridge-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(60,50,40,0.15);
    background: transparent;
}

.boundaries-page .bridge-header .eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7A7368;
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
}

.boundaries-page h1.page-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1A1816;
    font-family: Georgia, serif;
    background: transparent;
}

.boundaries-page h1.page-title em {
    font-style: italic;
    color: #1A1816;
}

.boundaries-page .header-lede {
    font-size: 18px;
    font-style: italic;
    color: #7A7368;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: Georgia, serif;
    background: transparent;
}

/* ── Pull quote (Pooh) ──────────────────────────────────────── */

.boundaries-page .pull-quote {
    margin: 48px 0 56px;
    padding: 36px 48px;
    border-top: 1px solid rgba(60,50,40,0.15);
    border-bottom: 1px solid rgba(60,50,40,0.15);
    text-align: center;
}

.boundaries-page .pull-quote p {
    font-size: 21px;
    font-style: italic;
    font-weight: 300;
    color: #1A1816;
    line-height: 1.6;
    margin: 0 0 16px;
    font-family: Georgia, serif;
}

.boundaries-page .pull-quote cite {
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #A89F94;
    font-family: 'Poppins', sans-serif;
}

/* ── Opening / intro text ───────────────────────────────────── */

.boundaries-page .opening-block {
    margin-bottom: 56px;
}

.boundaries-page .opening-block p {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 22px;
    color: #2C2A26;
    font-family: Georgia, serif;
}

.boundaries-page .opening-block p:last-child {
    margin-bottom: 0;
}

/* ── Section header ─────────────────────────────────────────── */

.boundaries-page .section-header {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #3A6B8A;
    margin-bottom: 28px;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(58,107,138,0.2);
}

/* ── Boundary cards ─────────────────────────────────────────── */

.boundaries-list {
    list-style: none;
    padding: 0;
    margin: 0 0 56px;
}

.boundary-card {
    margin-bottom: 16px;
    padding: 28px 36px 28px 40px;
    background: #FFFDF9;
    border: 1px solid rgba(60,50,40,0.12);
    border-radius: 3px;
    position: relative;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.boundary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

/* Ten accent colors — cycling through the site palette */
.boundary-card:nth-child(1)::before  { background: #3A6B8A; }
.boundary-card:nth-child(2)::before  { background: #C4884A; }
.boundary-card:nth-child(3)::before  { background: #709775; }
.boundary-card:nth-child(4)::before  { background: #7A5C8A; }
.boundary-card:nth-child(5)::before  { background: #5C7A5E; }
.boundary-card:nth-child(6)::before  { background: #4A7A8A; }
.boundary-card:nth-child(7)::before  { background: #C4884A; }
.boundary-card:nth-child(8)::before  { background: #3A6B8A; }
.boundary-card:nth-child(9)::before  { background: #709775; }
.boundary-card:nth-child(10)::before { background: #8B6914; }
.boundary-card:nth-child(11)::before { background: #7A5C8A; }
.boundary-card:nth-child(12)::before { background: #4A7A8A; }
.boundary-card:nth-child(13)::before { background: #5C7A5E; }
.boundary-card:nth-child(14)::before { background: #8B6914; }
.boundary-card:nth-child(15)::before { background: #3A6B8A; }

.boundary-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(60,50,40,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #7A7368;
    font-family: 'Poppins', sans-serif;
    margin-top: 2px;
}

.boundary-body {
    flex: 1;
}

.boundary-title {
    font-size: 17px;
    font-weight: 500;
    font-style: italic;
    color: #1A1816;
    margin: 0 0 10px;
    font-family: Georgia, serif;
    line-height: 1.3;
}

.boundary-text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.85;
    color: #2C2A26;
    font-family: Georgia, serif;
    margin: 0;
}

/* ── Closing block ──────────────────────────────────────────── */

.boundaries-page .closing-block {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(60,50,40,0.15);
}

.boundaries-page .closing-block p {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 22px;
    color: #2C2A26;
    font-family: Georgia, serif;
}

.boundaries-page .closing-block .final-line {
    font-size: 19px;
    font-style: italic;
    color: #1A1816;
    margin-bottom: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 600px) {
    .boundaries-page {
        padding: 40px 20px 80px;
    }

    .boundaries-page .pull-quote {
        padding: 28px 20px;
    }

    .boundary-card {
        padding: 24px 20px 24px 28px;
        gap: 16px;
    }

    .boundary-number {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}/* ============================================================
   Bridge of Hope Recovery - Community Rules
   Page-specific styles
   ============================================================ */

.rules-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 40px 120px;
    color: #2C2A26;
}

/* Header */
.rules-page .bridge-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(60,50,40,0.15);
}

.rules-page .eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7A7368;
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
}

.rules-page h1.page-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1A1816;
    font-family: Georgia, 'Source Sans Pro', serif;
}

.rules-page h1.page-title em {
    font-style: italic;
}

.rules-page .header-lede {
    font-size: 18px;
    font-style: italic;
    color: #7A7368;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: Georgia, serif;
}

/* Opening block */
.rules-page .opening-block {
    margin-bottom: 56px;
}

.rules-page .opening-block p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 24px;
    color: #2C2A26;
    font-family: Georgia, serif;
}

/* Rule sections */
.rules-page .rules-section {
    margin-bottom: 56px;
}

.rules-page .rules-section-header {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #4A7A8A;
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(74,122,138,0.2);
}

/* Individual rule cards */
.rules-page .rule-card {
    margin-bottom: 20px;
    padding: 32px 40px;
    background: #FFFDF9;
    border: 1px solid rgba(60,50,40,0.12);
    border-radius: 3px;
    position: relative;
}

.rules-page .rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 3px 0 0 3px;
    background: #4A7A8A;
}

.rules-page .rule-title {
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.35;
    margin-bottom: 16px;
    color: #1A1816;
    font-family: Georgia, serif;
}

.rules-page .rule-explanation {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
    color: #2C2A26;
    font-family: Georgia, serif;
    margin: 0;
    background: none;
}

/* Pull quote */
.rules-page .pull-quote {
    margin: 48px 0;
    padding: 36px 48px;
    border-top: 1px solid rgba(60,50,40,0.15);
    border-bottom: 1px solid rgba(60,50,40,0.15);
    text-align: center;
}

.rules-page .pull-quote p {
    font-size: 22px;
    font-style: italic;
    font-weight: 300;
    color: #1A1816;
    line-height: 1.55;
    margin: 0;
    font-family: Georgia, serif;
    background: none;
}

/* Closing block */
.rules-page .closing-block {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(60,50,40,0.15);
}

.rules-page .closing-block p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 22px;
    color: #2C2A26;
    font-family: Georgia, serif;
    background: none;
}

.rules-page .closing-block .final-line {
    font-size: 20px;
    font-style: italic;
    color: #1A1816;
}

/* Responsive */
@media (max-width: 600px) {
    .rules-page { padding: 40px 20px 80px; }
    .rules-page .rule-card { padding: 24px 20px; }
    .rules-page .pull-quote { padding: 28px 24px; }
}/* ============================================================
   Bridge of Hope Recovery - Content Page Styles
   Used by: participation, about, mission, hosting, advocacy,
            meeting_info, contact, outreach_request
   ============================================================ */

.content-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 40px 100px;
    color: #2b2f34;
}

/* Page title block */
.content-page .page-title-block {
    margin-bottom: 52px;
    padding-bottom: 32px;
    border-bottom: 2px solid #e8e4df;
}

.content-page .page-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #A68A64;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

.content-page h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    color: #1A1816;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.content-page .page-intro {
    font-size: 18px;
    line-height: 1.75;
    color: #5a5a5a;
    font-weight: 300;
}

/* Section */
.content-page .content-section {
    margin-bottom: 52px;
}

.content-page h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1A1816;
    margin-bottom: 14px;
    margin-top: 36px;
    font-family: 'Poppins', sans-serif;
    padding-left: 14px;
    border-left: 3px solid #A68A64;
}

.content-page h2:first-child {
    margin-top: 0;
}

.content-page p {
    font-size: 16px;
    line-height: 1.85;
    color: #3a3a3a;
    margin-bottom: 18px;
    background: none;
}

.content-page p:last-child {
    margin-bottom: 0;
}

.content-page em {
    font-style: italic;
    color: #2b2f34;
}

.content-page strong {
    font-weight: 600;
    color: #1A1816;
}

/* Step cards — for numbered how-to sections */
.content-page .step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.content-page .step-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 24px 28px;
    background: #FDFBF8;
    border: 1px solid #e8e4df;
    border-radius: 4px;
}

.content-page .step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #A68A64;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin-top: 2px;
}

.content-page .step-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1A1816;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
}

.content-page .step-content p {
    font-size: 15px;
    margin-bottom: 0;
    color: #4a4a4a;
}

/* Info box */
.content-page .info-box {
    background: #F4F0EA;
    border-left: 4px solid #A68A64;
    border-radius: 0 4px 4px 0;
    padding: 20px 24px;
    margin: 28px 0;
}

.content-page .info-box p {
    margin-bottom: 0;
    font-size: 15px;
    color: #3a3a3a;
}

/* Gated box — for content that requires login */
.content-page .gated-box {
    background: #EFF5F9;
    border: 1px solid #c8dce8;
    border-radius: 4px;
    padding: 24px 28px;
    margin: 28px 0;
    text-align: center;
}

.content-page .gated-box p {
    color: #3A6B8A;
    margin-bottom: 16px;
    font-size: 15px;
}

/* Section divider */
.content-page .section-divider {
    border: none;
    border-top: 1px solid #e8e4df;
    margin: 48px 0;
}

/* CTA block */
.content-page .cta-block {
    margin-top: 52px;
    padding: 40px 36px;
    background: #1A1816;
    border-radius: 4px;
    text-align: center;
}

.content-page .cta-block p {
    color: rgba(255,253,249,0.85);
    font-size: 17px;
    margin-bottom: 20px;
}

/* Inline code/command styling */
.content-page .key-command {
    display: inline-block;
    background: #2b2f34;
    color: #fff;
    font-family: monospace;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 3px;
    margin: 0 2px;
}

/* Responsive */
@media (max-width: 600px) {
    .content-page {
        padding: 40px 20px 80px;
    }

    .content-page .step-list li {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
}
/* honeypot — visually gone, present for bots (KAN-75) */
.contact-website-field {
    position: absolute;
    left: -9999px;
    height: 1px;
    overflow: hidden;
}
/* ============================================================
   dashboard.css
   Bridge of Hope Recovery — My Journey Dashboard
   ============================================================ */

.dashboard-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

/* ── Intake Banner ─────────────────────────────────────────── */

.intake-banner {
    background: #FFFDF9;
    border: 1px solid rgba(196, 136, 74, 0.3);
    border-left: 4px solid #C4884A;
    border-radius: 6px;
    margin-bottom: 32px;
    padding: 24px 28px;
}

.intake-banner--progress {
    border-left-color: #709775;
    border-color: rgba(112, 151, 117, 0.3);
}

.intake-banner-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.intake-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.intake-body {
    flex: 1;
    min-width: 200px;
}

.intake-heading {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: #1A1816;
    margin: 0 0 8px;
}

.intake-sub {
    font-size: 14px;
    color: #7A7368;
    line-height: 1.7;
    margin: 0 0 8px;
}

.intake-sub:last-child {
    margin-bottom: 0;
}

.intake-actions {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.btn-intake-start {
    display: inline-block;
    background: #C4884A;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-intake-start:hover {
    background: #A0674B;
    color: #fff;
    text-decoration: none;
}

.intake-banner--progress .btn-intake-start {
    background: #709775;
}

.intake-banner--progress .btn-intake-start:hover {
    background: #5C7A5E;
}

/* Progress bar */
.intake-progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.intake-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(112, 151, 117, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.intake-progress-fill {
    height: 100%;
    background: #709775;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.intake-progress-label {
    font-size: 12px;
    color: #7A7368;
    white-space: nowrap;
}

/* ── Greeting ──────────────────────────────────────────────── */

.db-greeting {
    margin-bottom: 24px;
}

.db-date {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #A89F94;
    margin-bottom: 6px;
}

.db-welcome {
    font-family: Georgia, serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 300;
    color: #1A1816;
    margin: 0 0 6px;
}

.db-username {
    font-weight: 400;
    font-style: italic;
}

.db-tagline {
    font-size: 15px;
    color: #7A7368;
    margin: 0;
    font-style: italic;
}

/* ── Streak Card ───────────────────────────────────────────── */

.db-streak-card {
    background: #FFFDF9;
    border: 1px solid rgba(60, 50, 40, 0.12);
    border-radius: 6px;
    padding: 18px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.streak-number {
    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: 300;
    color: #C4884A;
    line-height: 1;
    min-width: 60px;
}

.streak-right {
    flex: 1;
}

.streak-label {
    font-size: 13px;
    color: #7A7368;
    margin: 0 0 8px;
}

.streak-label strong {
    color: #1A1816;
    font-weight: 500;
}

.streak-dots {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.streak-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(60, 50, 40, 0.12);
}

.streak-dot.filled {
    background: #C4884A;
}

.streak-best {
    font-size: 11px;
    color: #A89F94;
    margin-top: 6px;
}

.streak-loading {
    font-size: 13px;
    color: #A89F94;
    font-style: italic;
}

/* ── Writing Prompt Card ───────────────────────────────────── */

.db-prompt-card {
    background: #FFFDF9;
    border: 1px solid rgba(60, 50, 40, 0.12);
    border-left: 4px solid #709775;
    border-radius: 6px;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.prompt-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #709775;
    margin-bottom: 12px;
}

.prompt-text {
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
    color: #1A1816;
    font-style: italic;
    margin-bottom: 20px;
}

.prompt-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-prompt-write {
    display: inline-block;
    background: #709775;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-prompt-write:hover {
    background: #5C7A5E;
    color: #fff;
    text-decoration: none;
}

.btn-prompt-new {
    background: none;
    border: 1px solid rgba(60, 50, 40, 0.2);
    color: #7A7368;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-prompt-new:hover {
    border-color: rgba(60, 50, 40, 0.4);
    color: #1A1816;
}

.prompt-category {
    font-size: 11px;
    color: #A89F94;
    margin-left: auto;
    font-style: italic;
}

/* Skeleton */
.prompt-skeleton {
    height: 80px;
    background: linear-gradient(90deg, #f0ece4 25%, #f8f5ef 50%, #f0ece4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Section Label ─────────────────────────────────────────── */

.db-section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A89F94;
    margin: 0 0 14px;
}

/* ── Tile Grid ─────────────────────────────────────────────── */

.db-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 36px;
}

.db-tile {
    background: #FFFDF9;
    border: 1px solid rgba(60, 50, 40, 0.12);
    border-radius: 6px;
    padding: 18px 18px 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.db-tile:hover {
    border-color: rgba(60, 50, 40, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}

.tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.tile-label {
    font-size: 14px;
    font-weight: 500;
    color: #1A1816;
    margin: 0 0 3px;
}

.tile-desc {
    font-size: 12px;
    color: #7A7368;
    margin: 0;
    line-height: 1.5;
}

.tile-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 10px;
    width: fit-content;
    font-weight: 500;
}

.tile-badge--action   { background: #FAECE7; color: #A0674B; }
.tile-badge--new      { background: #FBEAF0; color: #993556; }
.tile-badge--meetings { background: #EEEDFE; color: #534AB7; }

/* ── Books Row ─────────────────────────────────────────────── */

.db-books-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(60,50,40,0.15) transparent;
}

.db-books-row::-webkit-scrollbar { height: 4px; }
.db-books-row::-webkit-scrollbar-track { background: transparent; }
.db-books-row::-webkit-scrollbar-thumb { background: rgba(60,50,40,0.15); border-radius: 2px; }

.db-book {
    min-width: 120px;
    max-width: 120px;
    background: #FFFDF9;
    border: 1px solid rgba(60, 50, 40, 0.12);
    border-radius: 6px;
    padding: 14px 12px;
    flex-shrink: 0;
    text-decoration: none;
    transition: border-color 0.2s;
    display: block;
}

.db-book:hover {
    border-color: rgba(60, 50, 40, 0.3);
    text-decoration: none;
}

.book-spine {
    width: 100%;
    height: 5px;
    border-radius: 2px;
    margin-bottom: 10px;
}

.book-title {
    font-size: 12px;
    font-weight: 500;
    color: #1A1816;
    line-height: 1.45;
    margin-bottom: 5px;
}

.book-tag {
    font-size: 11px;
    color: #A89F94;
    font-style: italic;
}

.books-loading {
    font-size: 13px;
    color: #A89F94;
    font-style: italic;
    padding: 16px 0;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 600px) {
    .dashboard-wrap {
        padding: 20px 16px 60px;
    }

    .intake-banner-inner {
        flex-direction: column;
        gap: 14px;
    }

    .intake-actions {
        width: 100%;
    }

    .btn-intake-start {
        width: 100%;
        text-align: center;
    }

    .db-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .db-streak-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .streak-number {
        font-size: 34px;
    }

    .prompt-category {
        margin-left: 0;
        width: 100%;
    }
}.error-container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.error-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #dc3545;
}
.error-container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #6c757d;
}
.error-container a {
    text-decoration: none;
    font-size: 1rem;
    color: #fff;
    background-color: #3A6B8A;
    padding: 10px 20px;
    border-radius: 5px;
}
.error-container a:hover {
    background-color: #2a4f6a;
}:root{
    --color-text: #616161;
    --color-text-btn: #ffffff;
    --card1-gradient-color1: #D4896A;
    --card1-gradient-color2: #ECC4A8;
    --card2-gradient-color1: #7EB8C9;
    --card2-gradient-color2: #B8DDE6;
    --card3-gradient-color1: #9B8FBF;
    --card3-gradient-color2: #C8C0DF;
    --card4-gradient-color1: #7F00FF;
    --card4-gradient-color2: #E100FF;
}

a {
    text-decoration: none;
}

/* General Calendar Container */
.fc {
    font-family: 'Arial', sans-serif; /* Cleaner font */
    background-color: #f9f9f9; /* Light background */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 5px;
}

/* Header Toolbar Styling */
.fc-header-toolbar {
    background-color: #4a5568; /* Darker header */
    color: white;
    padding: 10px;
    border-radius: 6px 6px 0 0;
}

.fc-header-toolbar .fc-button {
    background-color: #718096;
    color: white;
    border: none;
    margin: 0 3px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.fc-header-toolbar .fc-button:hover {
    background-color: #2d3748; /* Darker on hover */
}

/* Style for days of the week column headers only */
.fc-col-header-cell a {
    color: black;
    font-weight: bold;
    font-size: 1rem;
    text-transform: capitalize;
}

/* Toolbar title (Month Year) must be white on the dark header */
.fc-header-toolbar .fc-toolbar-title {
    color: white;
}

/* Calendar Day Grid Styling */
.fc-daygrid-day {
    border: 1px solid #e2e8f0; /* Grid border */
    background-color: #ffffff;
    transition: background 0.3s ease;
}

.fc-daygrid-day:hover {
    background-color: #edf2f7; /* Subtle hover effect */
}

/* Day Numbers Styling */
.fc-daygrid-day-number {
    font-weight: bold;
    color: #4a5568; /* Dark gray */
}

/* Highlight Today's Date */
.fc-day-today {
    background-color: #fefcbf; /* Light yellow for today's date */
    border: 1px solid #ecc94b;
}

/* Event Appearance */
.fc-event {
    color: black;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    padding: 3px 5px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc-event:hover {
    background-color: #2b6cb0; /* Darker blue */
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Multi-day Events Styling */
.fc-event-main {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust Event Title */
.fc-event-title {
    font-weight: bold;
}

/* Calendar event hover card — mirrors the details modal card style */
.cal-event-hover {
    position: absolute;
    z-index: 9999;
    min-width: 220px;
    max-width: 290px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: rgba(0,0,0,0.19) 0 8px 20px, rgba(0,0,0,0.22) 0 4px 6px;
    pointer-events: none;
    background: #fff;
    color: var(--color-text);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Wave header — same shape as the modal card-header */
.cal-hover-header {
    height: 80px;
    width: 100%;
    border-radius: 100% 0% 100% 0% / 0% 50% 50% 100%;
    display: grid;
    place-items: center;
    padding: 0 16px;
    background: #c8c0df; /* fallback */
}
.cal-hover-header.conference-line-meeting {
    background: linear-gradient(to bottom left, var(--card3-gradient-color1), var(--card3-gradient-color2));
}
.cal-hover-header.zoom-meeting {
    background: linear-gradient(to bottom left, var(--card2-gradient-color1), var(--card2-gradient-color2));
}
.cal-hover-header.in-person-meeting {
    background: linear-gradient(to bottom left, var(--card1-gradient-color1), var(--card1-gradient-color2));
}

.cal-hover-title {
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cal-hover-body {
    padding: 10px 14px 12px;
}
.cal-hover-body p {
    margin: 0 0 5px;
}

.cal-hover-format { }
.cal-hover-format-desc {
    font-size: 0.77rem;
    color: #555;
}
.cal-hover-desc {
    color: #444;
}
.cal-hover-field {
    font-size: 0.8rem;
}
.cal-hover-faith {
    font-size: 0.78rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 5px;
    margin-top: 4px !important;
}

@media (max-width: 768px) {
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc-daygrid-day {
        font-size: 0.8rem; /* Smaller text */
    }

    .fc-event {
        font-size: 0.75rem;
        padding: 2px;
    }
}

.fc .fc-daygrid-event {
    list-style-type: none; /* Remove list dots */
    padding-left: 10; /* Remove any padding */
    margin-left: 0; /* Adjust margin if necessary */
}

/* Optional: You might want to hide default bullet behavior in all list-like cases */
.fc-daygrid-event-dot {
    display: none; /* Removes the small dot typically rendered before event titles */
}

/* For Conference Line Meeting */
.fc-event.conference-line-meeting .fc-event-time::before {
    content: "\f095  "; /* Font Awesome phone icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
}

/* For Zoom Meeting */
.fc-event.zoom-meeting .fc-event-time::before {
    content: "\f03d  "; /* Font Awesome video camera icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
}

/* For In-Person Meeting */
.fc-event.in-person-meeting .fc-event-time::before {
    content: "\f007  "; /* Font Awesome user icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
}

.fc-v-event .fc-event-main {
    color: black;
}



/* Event Details Modal */
#eventDetailsModal .btn-close {
    color: #000000; /* Set the close button color */
    filter: none; /* Remove any default Bootstrap filter styles */
    opacity: 1; /* Ensure full opacity */
}

.modalButtons {
    background-color: transparent; /* Match the transparent background of the close button */
    border: none; /* Remove any borders */
    padding: 10px; /* Remove padding */
    cursor: pointer; /* Ensure it looks clickable */
}

#eventDetailsModal .card-wrap{
    width: 100%;
    background: #fff;
    border-radius: 20px;
    border: 5px solid #fff;
    overflow: hidden;
    color: var(--color-text);
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px,
    rgba(0, 0, 0, 0.23) 0px 6px 6px;
    cursor: pointer;
    transition: all .2s ease-in-out;
}


#eventDetailsModal .card-header{
    height: 200px;
    width: 100%;
    background: red;
    border-radius:100% 0% 100% 0% / 0% 50% 50% 100%;
    display: grid;
    place-items: center;

}
#eventDetailsModal .card-header i{
    color: #000;
    font-size: 20px;
}
#eventDetailsModal .card-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin: 0 auto;
}
#eventDetailsModal .card-title{
    color: #000;
    text-align: center;
    text-transform: uppercase;
    font-size: 22px;
    margin-top: 10px;
    margin-bottom: 20px;

}
#eventDetailsModal .card-text{
    text-align: center;
    font-size: 12px;
    margin-bottom: 20px;
}
#eventDetailsModal .card-btn{
    border: none;
    border-radius: 100px;
    padding: 5px 30px;
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
}
#eventDetailsModal .card-header.in-person-meeting{
    background: linear-gradient(to bottom left, var(--card1-gradient-color1), var(--card1-gradient-color2));
}
#eventDetailsModal .card-header.conference-line-meeting{
    background: linear-gradient(to bottom left, var(--card3-gradient-color1), var(--card3-gradient-color2));
}
#eventDetailsModal .card-header.zoom-meeting{
    background: linear-gradient(to bottom left, var(--card2-gradient-color1), var(--card2-gradient-color2));
}

#eventDetailsModal .card-btn.in-person-meeting{
    background: linear-gradient(to left, var(--card1-gradient-color1), var(--card1-gradient-color2));
}
#eventDetailsModal .card-btn.conference-line-meeting{
    background: linear-gradient(to left, var(--card3-gradient-color1), var(--card3-gradient-color2));
}
#eventDetailsModal .card-btn.zoom-meeting{
    background: linear-gradient(to left, var(--card2-gradient-color1), var(--card2-gradient-color2));
}

.recurrence-days-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 6px;
}

.recurrence-days-grid .form-check {
    margin: 0;
    min-width: 100px;
}

.details-report-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-details-report {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    color: #000;
    letter-spacing: 0.02em;
}

#addEventModal .modal-header.in-person-meeting, #saveEventButton.in-person-meeting{
    color: black;
    background: linear-gradient(to bottom left, var(--card1-gradient-color1), var(--card1-gradient-color2));
}

#addEventModal .modal-header.conference-line-meeting, #saveEventButton.conference-line-meeting {
    color: black;
    background: linear-gradient(to bottom left, var(--card3-gradient-color1), var(--card3-gradient-color2));
}

#addEventModal .modal-header.zoom-meeting, #saveEventButton.zoom-meeting{
    color: black;
    background: linear-gradient(to bottom left, var(--card2-gradient-color1), var(--card2-gradient-color2));
}

#errorFormErrors ul {
    list-style: none; /* Removes default bullet points */
    padding: 0;
    margin: 0;
}

#errorFormErrors li {
    color: red; /* Customize the color */
    margin-bottom: 5px;
    font-weight: bold; /* Optional for emphasis */
}

#meetingSummary{
    color: #5e5e5e;
}
/* Specific Gradients for Event Types */
.in-person-meeting {
    background: var(--card1-gradient-color2);
    color: #000;
}

.conference-line-meeting {
    background: var(--card3-gradient-color2);
    color: #000;
}

.zoom-meeting {
    background: var(--card2-gradient-color2);
    color: #000;
}

.default-event {
    background: #ddd;
    color: #000;
}


#eventDetailsModal .button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px; /* Optional spacing above the button */
}

#eventDetailsModal .alert{
    margin-top: 20px;
    color: black;
    background-color: lightpink;
}
#eventDetailsModal ul{
    list-style-type: none;
}

#eventDetailsModal h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#eventDetailsModal p {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Add Event Modal CSS */
#addEventModal {
    font-family: Arial, sans-serif;
    color: #333; /* Default text color */
}

#addEventModal .modal-content {
    background-color: #fff; /* Ensure the background is white */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#addEventModal .modal-header {
    background-color: #007bff; /* Bootstrap primary color */
    color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 16px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#addEventModal .modal-title {
    font-size: 1.5rem;
    font-weight: bold;
}

#addEventModal .btn-close {
    color: #fff;
    opacity: 1;
}

#addEventModal .modal-body {
    padding: 20px;
    background-color: #f9f9f9;
    max-height: 65vh;
    overflow-y: auto;
}

#addEventModal .form-group {
    margin-bottom: 1.5rem;
}

#addEventModal .form-control {
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    padding: 10px;
    background-color: #fff;
    color: #333;
}

#addEventModal .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#addEventModal .form-select {
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    padding: 10px;
    background-color: #fff;
    color: #333;
}

#addEventModal .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#addEventModal .modal-footer {
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
    padding: 16px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

#addEventModal .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
}

#addEventModal .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

#addEventModal label {
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
    color: #333;
}

#addEventModal input[type="checkbox"] {
    margin-right: 8px;
}

#addEventModal #faithSelection {
    margin-top: 10px;
}

#addEventModal #recurrenceFields {
    margin-top: 15px;
}

#addEventModal .mt-3 {
    margin-top: 1rem !important;
}

#addEventModal .mt-2 {
    margin-top: 0.5rem !important;
}

#addEventModal textarea {
    resize: vertical;
}

#addEventModal select {
    appearance: none;
}


/* Target the webkit calendar picker indicator */
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
    color: black; /* Change the color to black */
    background-color: black; /* Set background color to black */
    filter: invert(1); /* Ensures it appears black across browsers */
}

/* Optional: Remove default styling to ensure custom styles apply */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    appearance: none;
    border: none;
}





.modal {
    z-index: 1055; /* Ensure modal is above the backdrop */
}

.modal-backdrop {
    z-index: 1050; /* Ensure backdrop is below the modal */
}

.modal.fade.show {
    display: block; /* Ensure modal is visible */
}

/* Map Styling */
#mapContainer {
    width: 100%;
    margin-top: 20px;
}

#mapContainer iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
}

/* Form Field Styling */
.event_calendar_form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
}

.event_calendar_form .form-group {
    margin-bottom: 20px;
}

.event_calendar_form input,
.event_calendar_form select,
.event_calendar_form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.event_calendar_form textarea {
    resize: vertical;
}

/* Buttons */
.event_calendar_form button,
#eventModal .btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
}

#eventModal .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

#eventModal .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

#eventModal .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
}

.column {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1
}
.event_filter{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .event_calendar #calendar {
        width: 100%;
        margin: auto;
    }

    #eventModal .modal-dialog {
        margin: 20px;
    }
}

.fc-h-event .fc-event-main {
    color: black;
    background-color: #fff;
}

/* ----------------------------------------------------------------- */
/* Timezone label                                                      */
/* ----------------------------------------------------------------- */

.calendar-timezone-label {
    font-size: 0.78rem;
    color: #A89F94;
    font-style: italic;
    text-align: right;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
}

/* ----------------------------------------------------------------- */
/* Gated meeting info — shown to guests in place of access details    */
/* ----------------------------------------------------------------- */

#eventDetailsModal .gated-info {
    font-size: 0.9rem;
    font-style: italic;
    color: #7A7368;
    padding: 8px 0;
}

#eventDetailsModal .gated-info a {
    color: #3A6B8A;
    text-decoration: underline;
    font-weight: 500;
}

/* ----------------------------------------------------------------- */
/* Confirm Action Modal (#boh-confirm-modal)                          */
/* ----------------------------------------------------------------- */

#boh-confirm-modal .modal-content {
    background-color: #ffffff !important;
    color: #333 !important;
    border: none;
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 10px 24px,
    rgba(0, 0, 0, 0.12) 0px 4px 8px;
    overflow: hidden;
}

#boh-confirm-modal .boh-confirm-header {
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: none;
}

#boh-confirm-modal .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222 !important;
    text-transform: none;
    letter-spacing: 0.01em;
    margin: 0;
}

#boh-confirm-modal .btn-close {
    opacity: 0.5;
    filter: none;
}

#boh-confirm-modal .btn-close:hover {
    opacity: 1;
}

#boh-confirm-modal .modal-body {
    padding: 20px;
    background-color: #ffffff !important;
}

#boh-confirm-modal .modal-body p {
    font-size: 0.95rem;
    color: #555 !important;
    margin: 0;
    line-height: 1.6;
}

#boh-confirm-modal .modal-footer {
    background-color: #f7f7f7 !important;
    border-top: 1px solid #e8e8e8;
    padding: 14px 20px;
    gap: 10px;
}

#boh-confirm-modal .btn {
    border-radius: 100px;
    padding: 7px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

#boh-confirm-modal .btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

#boh-confirm-modal .boh-confirm-cancel {
    background-color: #e2e2e2 !important;
    color: #444 !important;
}

/* ----------------------------------------------------------------- */
/* Location Bar                                                        */
/* ----------------------------------------------------------------- */

.location-bar {
    background: #FFFDF9;
    border: 1px solid rgba(60,50,40,0.12);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.location-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.btn-location-geo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #3A6B8A;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 7px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-location-geo:hover { background: #2a4f6a; }
.btn-location-geo:disabled { opacity: 0.6; cursor: not-allowed; }

.location-search-group {
    display: flex;
    flex: 1;
    min-width: 200px;
    gap: 0;
}

.location-search-input {
    flex: 1;
    padding: 7px 12px;
    font-size: 0.88rem;
    border: 1px solid rgba(60,50,40,0.2);
    border-right: none;
    border-radius: 100px 0 0 100px;
    background: #fff;
    color: #2C2A26;
    outline: none;
}

.location-search-input:focus { border-color: #3A6B8A; }

.btn-location-search {
    padding: 7px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    background: #fff;
    color: #3A6B8A;
    border: 1px solid rgba(60,50,40,0.2);
    border-left: none;
    border-radius: 0 100px 100px 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.btn-location-search:hover { background: #3A6B8A; color: #fff; }
.btn-location-search:disabled { opacity: 0.6; cursor: not-allowed; }

.location-radius-select {
    padding: 7px 12px;
    font-size: 0.88rem;
    border: 1px solid rgba(60,50,40,0.2);
    border-radius: 100px;
    background: #fff;
    color: #2C2A26;
    cursor: pointer;
    flex-shrink: 0;
}

.location-save-wrap { align-items: center; flex-shrink: 0; }

.location-save-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #7A7368;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.location-status {
    font-size: 0.82rem;
    color: #7A7368;
    font-style: italic;
    margin: 8px 0 0;
}

.location-inperson-note {
    font-size: 0.82rem;
    color: #fff;
    background: #2B5B8A;
    border-left: 3px solid #5BA3D9;
    padding: 6px 10px;
    margin: 8px 0 0;
    border-radius: 0 4px 4px 0;
}

/* Newcomer note — parchment paper with ripped edges */
.newcomer-note-wrap {
    position: relative;
    background: linear-gradient(160deg, #f5ecd4 0%, #ede0bc 40%, #f0e6c8 70%, #e8d9ae 100%);
    padding: 28px 18px;
    margin: 8px 0;
    box-shadow: 2px 3px 10px rgba(0,0,0,0.18), inset 0 0 30px rgba(180,140,60,0.08);
}

/* Ripped top edge */
.newcomer-note-wrap::before {
    content: '';
    display: block;
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 16' preserveAspectRatio='none'%3E%3Cpath fill='%23ede0bc' d='M0,16 L0,7 L8,10 L18,4 L28,11 L40,3 L50,9 L62,2 L74,8 L84,1 L96,7 L108,0 L118,6 L130,1 L142,8 L152,2 L164,9 L174,3 L186,10 L198,4 L210,11 L220,5 L232,12 L242,2 L254,9 L266,1 L276,7 L288,0 L298,6 L310,1 L322,8 L332,2 L344,9 L354,3 L366,10 L376,4 L388,11 L400,5 L400,16 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

/* Ripped bottom edge */
.newcomer-note-wrap::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -14px;
    left: 0;
    right: 0;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 16' preserveAspectRatio='none'%3E%3Cpath fill='%23e8d9ae' d='M0,0 L0,9 L8,6 L18,12 L28,5 L40,13 L50,7 L62,14 L74,8 L84,15 L96,9 L108,16 L118,10 L130,15 L142,8 L152,14 L164,7 L174,13 L186,6 L198,12 L210,5 L220,11 L232,4 L242,14 L254,7 L266,15 L276,9 L288,16 L298,10 L310,15 L322,8 L332,14 L344,7 L354,13 L366,6 L376,12 L388,5 L400,11 L400,0 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

.newcomer-note-heading {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: 600;
    color: #5C3D1E;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.newcomer-note-para {
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #3B2A14;
    margin-bottom: 0.6em;
}

@media (max-width: 768px) {
    .location-bar-inner { flex-direction: column; align-items: stretch; }
    .btn-location-geo { justify-content: center; }
    .location-search-group { min-width: 0; }
    .location-radius-select { width: 100%; }
}
/* *67 anonymity reminder in conference-line details (KAN-67) */
.anonymity-note {
    font-size: 0.85rem;
    color: #6c757d;
    background: #f8f6f1;
    border-radius: 4px;
    padding: 6px 10px;
    margin-top: 4px;
    list-style: none;
}
/* ============================================================
   Bridge of Hope Recovery - Host a Meeting
   Page-specific styles
   ============================================================ */

.hosting-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 40px 100px;
    color: #2C2A26;
}

/* ── Page title block ───────────────────────────────────────── */

.hosting-page .page-title-block {
    margin-bottom: 26px;
    padding-bottom: 32px;
    border-bottom: 2px solid #e8e4df;
}

.hosting-page .page-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #A68A64;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

.hosting-page h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    color: #1A1816;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.hosting-page .page-intro {
    font-size: 18px;
    line-height: 1.75;
    color: #5a5a5a;
    font-weight: 300;
    font-family: Georgia, serif;
}

/* ── Content sections ───────────────────────────────────────── */

.hosting-page .content-section {
    margin-bottom: 26px;
}

.hosting-page h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1A1816;
    margin-bottom: 14px;
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    padding-left: 14px;
    border-left: 3px solid #A68A64;
}

.hosting-page h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1A1816;
    margin-bottom: 10px;
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
}

.hosting-page p {
    font-size: 16px;
    line-height: 1.85;
    color: #3a3a3a;
    margin-bottom: 18px;
    font-family: Georgia, serif;
}

.hosting-page p:last-child {
    margin-bottom: 0;
}

.hosting-page a {
    color: #3A6B8A;
    text-decoration: underline;
}

.hosting-page a:hover {
    color: #2a4f6a;
}

/* ── Responsibility list ────────────────────────────────────── */

.responsibility-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}

.responsibility-item {
    padding: 32px 40px;
    background: #FFFDF9;
    border: 1px solid rgba(60,50,40,0.12);
    border-radius: 3px;
    position: relative;
}

.responsibility-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

.responsibility-item:nth-child(1)::before { background: #5C7A5E; }
.responsibility-item:nth-child(2)::before { background: #C4884A; }
.responsibility-item:nth-child(3)::before { background: #3A6B8A; }
.responsibility-item:nth-child(4)::before { background: #7A5C8A; }
.responsibility-item:nth-child(5)::before { background: #4A7A8A; }

.responsibility-item h3 {
    font-size: 17px;
    font-weight: 500;
    font-style: italic;
    color: #1A1816;
    margin-bottom: 14px;
    font-family: Georgia, serif;
    line-height: 1.3;
}

.responsibility-item p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
    color: #2C2A26;
    font-family: Georgia, serif;
    margin-bottom: 14px;
}

.responsibility-item p:last-child {
    margin-bottom: 0;
}

/* ── Meeting types grid ─────────────────────────────────────── */

.meeting-types-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.meeting-type-card {
    padding: 28px 32px;
    background: #FFFDF9;
    border: 1px solid rgba(60,50,40,0.12);
    border-radius: 3px;
    position: relative;
}

.meeting-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

.meeting-type-card:nth-child(1)::before  { background: #5C7A5E; }
.meeting-type-card:nth-child(2)::before  { background: #3A6B8A; }
.meeting-type-card:nth-child(3)::before  { background: #C4884A; }
.meeting-type-card:nth-child(4)::before  { background: #7A5C8A; }
.meeting-type-card:nth-child(5)::before  { background: #5C7A5E; }
.meeting-type-card:nth-child(6)::before  { background: #3A6B8A; }
.meeting-type-card:nth-child(7)::before  { background: #C4884A; }
.meeting-type-card:nth-child(8)::before  { background: #7A5C8A; }
.meeting-type-card:nth-child(9)::before  { background: #5C7A5E; }
.meeting-type-card:nth-child(10)::before { background: #3A6B8A; }
.meeting-type-card:nth-child(11)::before { background: #C4884A; }

.meeting-type-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1A1816;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.meeting-type-card p {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: #2C2A26;
    font-family: Georgia, serif;
    margin: 0;
}

/* ── Standard list ──────────────────────────────────────────── */

.hosting-page .standard-list {
    margin: 16px 0 20px 0;
    padding-left: 24px;
}

.hosting-page .standard-list li {
    font-size: 16px;
    line-height: 1.85;
    color: #3a3a3a;
    margin-bottom: 10px;
    font-family: Georgia, serif;
}

.hosting-page .standard-list li:last-child {
    margin-bottom: 0;
}

/* ── Section divider ────────────────────────────────────────── */

.hosting-page .section-divider {
    border: none;
    border-top: 1px solid #e8e4df;
    margin: 24px 0;
}

/* ── CTA block ──────────────────────────────────────────────── */

.hosting-page .cta-block,
.hosting-page .content-section:last-child {
    margin-top: 0;
}

.hosting-page .content-section:last-child p {
    margin-bottom: 20px;
}

.hosting-page .content-section:last-child .btn {
    margin-top: 8px;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 640px) {
    .hosting-page {
        padding: 40px 20px 80px;
    }

    .responsibility-item {
        padding: 24px 20px;
    }

    .meeting-type-card {
        padding: 24px 20px;
    }
}/* IT Health panel (KAN-56) */

#it_health {
    max-width: 860px;
    margin: 40px auto 80px;
    padding: 0 16px;
}

#it_health h1 {
    color: #3A6B8A;
    margin-bottom: 12px;
}

.it-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: #3A6B8A;
}

.it-bar {
    display: inline-block;
    height: 12px;
    background: #3A6B8A;
    border-radius: 3px;
    vertical-align: middle;
}

.it-log {
    background: #1e1e1e;
    color: #d4d4d4;
    font-size: 0.75rem;
    padding: 12px;
    border-radius: 6px;
    max-height: 320px;
    overflow: auto;
}
#loginForm {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  min-height: 100vh; /* Full viewport height */
  margin: 0; /* Remove default margin */
  background-color: #f5f5f5; /* Light background for the login page */
}

#loginForm .wrapper {
  margin: 40px;
}

#loginForm .form-signin {
  max-width: 380px;
  padding: 15px 35px 45px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 3rem 5rem -2rem rgba(0, 0, 0, 0.2);
  border-radius: 8px; /* Rounded corners */
}

#loginForm .form-control {
  font-size: 16px;
  padding: 10px;
  box-sizing: border-box;
  height: auto;
  border-radius: 4px;
  background-color: #FFFDF9;
  color: #2C2A26;
  border: 1px solid rgba(60,50,40,0.2);
}

#loginForm .inner-addon {
  position: relative;
  align-items: center; /* Vertically center elements */
}

#loginForm .inner-addon i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #6c757d;
}

#loginForm .inner-addon input {
  padding-left: 40px; /* Add padding to accommodate the icon */
}

#loginForm .form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 0;
  margin-right: 10px;
  vertical-align: middle;
  cursor: pointer;
}

#loginForm .form-check-label {
  font-size: 14px;
  color: #333;
  vertical-align: middle;
}

#loginForm .form-signin input {
  margin-bottom: 15px;
}

#loginForm .form-signin .forgot-password {
  display: block;
  font-size: 12px;
  color: #3A6B8A;
  text-decoration: underline;
  margin-top: -8px;
  margin-bottom: 30px;
}

#loginForm .account-signup {
  background-color: rgba(60,50,40,0.04);
  text-align: center;
  padding: 10px 0;
}

#loginForm .account-signup a {
  color: #3A6B8A;
  text-decoration: underline;
  font-weight: bold;
}

#loginForm .account-signup a:hover {
  color: #2a4f6a;
}/* Meeting Information & Scripts (KAN-66) — built for a phone in one hand */

#meeting_info {
    max-width: 640px;
    margin: 32px auto 80px;
    padding: 0 16px;
}

#meeting_info h1 {
    color: #3A6B8A;
}

.mi-jump {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.mi-jump a {
    padding: 6px 12px;
    border: 1px solid #3A6B8A;
    border-radius: 16px;
    color: #3A6B8A;
    text-decoration: none;
    font-size: 0.9rem;
}

.mi-jump-disruption {
    border-color: #C96F4A !important;
    color: #C96F4A !important;
    font-weight: 600;
}

.mi-section {
    margin-bottom: 36px;
    scroll-margin-top: 64px;
}

.mi-section h2 {
    color: #3A6B8A;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.mi-script {
    background: #f8f6f1;
    border-left: 4px solid #3A6B8A;
    border-radius: 6px;
    padding: 16px 18px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.mi-top-group {
    border: 1px solid #d0ccc6;
    border-radius: 8px;
    margin-bottom: 16px;
}

.mi-top-group > summary {
    font-weight: 600;
    cursor: pointer;
    color: #3A6B8A;
    padding: 12px 16px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mi-top-group > summary::before {
    content: '▶';
    font-size: 0.65rem;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.mi-top-group[open] > summary::before {
    transform: rotate(90deg);
}

.mi-top-group-body {
    padding: 4px 16px 14px;
}

.mi-format-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mi-format-item:last-child {
    border-bottom: none;
}

.mi-format-item strong {
    display: block;
    margin-bottom: 4px;
    color: #3A4A5A;
}

.mi-format-item p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.55;
}

.mi-rules-group {
    border: 1px solid #e8e2d8;
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 10px 14px;
}

.mi-rules-group summary {
    font-weight: 600;
    cursor: pointer;
    color: #3A4A5A;
}

.mi-rules-group ul {
    margin: 10px 0 4px;
}

.mi-rules-group li {
    margin-bottom: 8px;
    line-height: 1.55;
}

.mi-disruption h2 {
    color: #C96F4A;
}

.mi-playbook li {
    margin-bottom: 14px;
    line-height: 1.6;
}

.mi-warning {
    background: #FBF3EC;
    border: 1px solid #C96F4A;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 16px;
}

.mi-warning h3 {
    font-size: 1rem;
    color: #C96F4A;
    margin-bottom: 8px;
}

.mi-warning--privacy {
    background: #EFF4F8;
    border-color: #3A6B8A;
}

.mi-warning--privacy h3 {
    color: #3A6B8A;
}

@media print {
    .mi-jump, nav, footer { display: none !important; }
}
/* ============================================================
   Bridge of Hope Recovery - Mission
   Page-specific styles
   ============================================================ */

.mission-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 40px 120px;
    color: #2C2A26;
}

/* Header */
.mission-page .bridge-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(60,50,40,0.15);
}

.mission-page .eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7A7368;
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
}

.mission-page h1.page-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1A1816;
    font-family: Georgia, 'Source Sans Pro', serif;
}

.mission-page h1.page-title em {
    font-style: italic;
}

.mission-page .header-lede {
    font-size: 18px;
    font-style: italic;
    color: #7A7368;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: Georgia, serif;
}

/* Ornament divider */
.mission-page .ornament {
    display: block;
    text-align: center;
    color: #A89F94;
    font-size: 16px;
    letter-spacing: 0.5em;
    margin: 36px 0;
}

/* Opening block */
.mission-page .opening-block {
    margin-bottom: 56px;
}

.mission-page .opening-block p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 24px;
    color: #2C2A26;
    font-family: Georgia, serif;
}

/* Mission sections */
.mission-page .mission-section {
    margin-bottom: 48px;
    padding: 40px 48px;
    background: #FFFDF9;
    border: 1px solid rgba(60,50,40,0.12);
    border-radius: 3px;
    position: relative;
}

.mission-page .mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

/* Section accent colors — neutral identifiers */
.mission-page .mission-section-one::before   { background: #5C7A5E; }
.mission-page .mission-section-two::before   { background: #3A6B8A; }
.mission-page .mission-section-three::before { background: #C4884A; }
.mission-page .mission-section-four::before  { background: #7A5C8A; }
.mission-page .mission-section-five::before  { background: #4A7A8A; }

.mission-page .section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.mission-page .mission-section-one   .section-label { color: #5C7A5E; }
.mission-page .mission-section-two   .section-label { color: #3A6B8A; }
.mission-page .mission-section-three .section-label { color: #C4884A; }
.mission-page .mission-section-four  .section-label { color: #7A5C8A; }
.mission-page .mission-section-five  .section-label { color: #4A7A8A; }

.mission-page .section-title {
    font-size: 26px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #1A1816;
    font-family: Georgia, serif;
}

.mission-page .mission-section p {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 20px;
    color: #2C2A26;
    font-family: Georgia, serif;
    background: none;
}

.mission-page .mission-section p:last-child {
    margin-bottom: 0;
}

.mission-page .mission-section strong {
    font-style: italic;
    font-weight: 500;
}

/* DB-sourced content — pulled dynamically, styled distinctly */
.mission-page .db-content {
    font-size: 19px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.85;
    color: #1A1816;
    border-left: 3px solid rgba(60,50,40,0.15);
    padding-left: 24px;
    margin: 28px 0;
    font-family: Georgia, serif;
}

/* TRAUMA framework list */
.mission-page .trauma-list {
    list-style: none;
    padding: 0;
    margin: 28px 0;
}

.mission-page .trauma-list li {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
    color: #2C2A26;
    font-family: Georgia, serif;
    padding: 16px 0;
    border-bottom: 1px solid rgba(60,50,40,0.08);
    display: flex;
    gap: 20px;
    align-items: baseline;
}

.mission-page .trauma-list li:last-child {
    border-bottom: none;
}

.mission-page .trauma-letter {
    font-size: 28px;
    font-weight: 300;
    font-style: italic;
    color: #4A7A8A;
    font-family: Georgia, serif;
    min-width: 28px;
    line-height: 1;
}

.mission-page .trauma-word {
    font-weight: 500;
    font-style: normal;
    color: #1A1816;
}

/* Commitments list */
.mission-page .commitments-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
}

.mission-page .commitments-list li {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
    color: #2C2A26;
    font-family: Georgia, serif;
    padding: 14px 0 14px 20px;
    border-bottom: 1px solid rgba(60,50,40,0.08);
    position: relative;
}

.mission-page .commitments-list li:last-child {
    border-bottom: none;
}

.mission-page .commitments-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C4884A;
}

.mission-page .commitment-label {
    font-weight: 500;
    font-style: normal;
    color: #1A1816;
}

/* Inline CTA */
.mission-page .mission-cta-inline {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(60,50,40,0.1);
    text-align: center;
}

/* Pull quote */
.mission-page .pull-quote {
    margin: 48px 0;
    padding: 36px 48px;
    border-top: 1px solid rgba(60,50,40,0.15);
    border-bottom: 1px solid rgba(60,50,40,0.15);
    text-align: center;
}

.mission-page .pull-quote p {
    font-size: 22px;
    font-style: italic;
    font-weight: 300;
    color: #1A1816;
    line-height: 1.55;
    margin: 0;
    font-family: Georgia, serif;
    background: none;
}

/* Closing block */
.mission-page .closing-block {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(60,50,40,0.15);
}

.mission-page .closing-block p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 22px;
    color: #2C2A26;
    font-family: Georgia, serif;
    background: none;
}

.mission-page .closing-block .final-line {
    font-size: 20px;
    font-style: italic;
    color: #1A1816;
}

/* Responsive */
@media (max-width: 600px) {
    .mission-page { padding: 40px 20px 80px; }
    .mission-page .mission-section { padding: 28px 24px; }
    .mission-page .pull-quote { padding: 28px 24px; }
    .mission-page .trauma-list li { gap: 14px; }
    .mission-page .trauma-letter { font-size: 22px; min-width: 22px; }
}/* My Meetings — host management page */

#my_meetings {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.my-meeting-card {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.my-meeting-main {
    flex: 1 1 0;
    min-width: 0;
}

.my-meeting-script-panel {
    width: 100%;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.mi-script-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin: 16px 0 4px;
}

.mi-boundaries-list {
    padding-left: 1.25rem;
    margin-bottom: 4px;
}

.my-meeting-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.my-meeting-title {
    font-size: 1.1rem;
}

.my-meeting-status {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active { background: #e3f5e9; color: #1e7c41; }
.status-break  { background: #e8f1fa; color: #2a5d8f; }
.status-paused { background: #f5e9e3; color: #8f5d2a; }

.my-meeting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 6px;
    font-size: 0.9rem;
    color: #555;
}

.my-meeting-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.my-meetings-empty {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

/* Mobile: stack actions under the meeting info */
@media (max-width: 600px) {
    .my-meeting-card {
        flex-direction: column;
        align-items: stretch;
    }
    .my-meeting-actions {
        justify-content: flex-end;
    }
}

.my-meetings-venue-note {
    background: #f4f0ea;
    border-left: 4px solid #5C7A5E;
    border-radius: 6px;
    padding: 12px 14px;
    margin-top: 18px;
}

.my-meetings-hosting-info {
    background: #f4f0ea;
    border-left: 4px solid #3A6B8A;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 6px 0 18px;
}

.my-meetings-hosting-info .btn {
    margin-top: 4px;
    margin-right: 6px;
}
/* My Profile page */

#my_profile {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
}

.profile-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.profile-section h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.profile-value {
    margin-bottom: 8px;
}

.profile-password-form {
    max-width: 360px;
}

.profile-marks {
    padding-left: 20px;
}

.profile-danger {
    border-color: #e3b9b9;
}
/* ============================================================
   Bridge of Hope Recovery - How to Participate
   Page-specific styles
   ============================================================ */

.participation-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 40px 100px;
    color: #2b2f34;
}

/* Page title block */
.participation-page .page-title-block {
    margin-bottom: 52px;
    padding-bottom: 32px;
    border-bottom: 2px solid #e8e4df;
}

.participation-page .page-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #A68A64;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

.participation-page h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    color: #1A1816;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.participation-page .page-intro {
    font-size: 18px;
    line-height: 1.75;
    color: #5a5a5a;
    font-weight: 300;
    font-family: Georgia, serif;
}

/* Sections */
.participation-page .content-section {
    margin-bottom: 24px;
}

.participation-page h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1A1816;
    margin-bottom: 14px;
    margin-top: 36px;
    font-family: 'Poppins', sans-serif;
    padding-left: 14px;
    border-left: 3px solid #A68A64;
}

.participation-page h2:first-child {
    margin-top: 0;
}

.participation-page p {
    font-size: 16px;
    line-height: 1.85;
    color: #3a3a3a;
    margin-bottom: 18px;
    background: none;
    font-family: Georgia, serif;
}

.participation-page p:last-child {
    margin-bottom: 0;
}

.participation-page em {
    font-style: italic;
    color: #2b2f34;
}

.participation-page strong {
    font-weight: 600;
    color: #1A1816;
}

.participation-page a {
    color: #3A6B8A;
    text-decoration: underline;
}

.participation-page a:hover {
    color: #2a4f6a;
}

/* Step list */
.participation-page .step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.participation-page .step-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 24px 28px;
    background: #FDFBF8;
    border: 1px solid #e8e4df;
    border-radius: 4px;
}

.participation-page .step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #A68A64;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin-top: 2px;
}

.participation-page .step-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1A1816;
    margin-bottom: 6px;
    font-family: 'Poppins', sans-serif;
}

.participation-page .step-content p {
    font-size: 15px;
    margin-bottom: 0;
    color: #4a4a4a;
}

/* Info box */
.participation-page .info-box {
    background: #F4F0EA;
    border-left: 4px solid #A68A64;
    border-radius: 0 4px 4px 0;
    padding: 20px 24px;
    margin: 28px 0;
}

.participation-page .info-box p {
    margin-bottom: 0;
    font-size: 15px;
    color: #3a3a3a;
}

/* Gated box */
.participation-page .gated-box {
    background: #EFF5F9;
    border: 1px solid #c8dce8;
    border-radius: 4px;
    padding: 24px 28px;
    margin: 28px 0;
    text-align: center;
}

.participation-page .gated-box p {
    color: #3A6B8A;
    margin-bottom: 16px;
    font-size: 15px;
}

/* Section divider */
.participation-page .section-divider {
    border: none;
    border-top: 1px solid #e8e4df;
    margin: 24px 0;
}

/* Key command badge */
.participation-page .key-command {
    display: inline-block;
    background: #2b2f34;
    color: #fff;
    font-family: monospace;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 3px;
    margin: 0 2px;
}

/* ── Expandable platform instructions ────────────────────────
   Used for the desktop / mobile setup sections under
   Zoom and Discord. Collapsed by default, toggled by JS.
   ----------------------------------------------------------- */

.platform-setup {
    margin: 24px 0;
    border: 1px solid #e8e4df;
    border-radius: 4px;
    overflow: hidden;
}

.platform-setup-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #FDFBF8;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1A1816;
    gap: 12px;
    transition: background 0.15s ease;
}

.platform-setup-toggle:hover {
    background: #F4F0EA;
}

.platform-setup-toggle .toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-setup-toggle .toggle-icon {
    font-size: 18px;
    color: #A68A64;
    flex-shrink: 0;
}

.platform-setup-toggle .toggle-arrow {
    font-size: 12px;
    color: #A68A64;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.platform-setup-toggle[aria-expanded="true"] .toggle-arrow {
    transform: rotate(180deg);
}

.platform-setup-body {
    display: none;
    padding: 0 24px 24px;
    background: #FFFDF9;
    border-top: 1px solid #e8e4df;
}

.platform-setup-body.open {
    display: block;
}

.platform-setup-body ol {
    margin: 20px 0 0;
    padding-left: 24px;
}

.platform-setup-body ol li {
    font-size: 15px;
    line-height: 1.8;
    color: #3a3a3a;
    margin-bottom: 10px;
    font-family: Georgia, serif;
}

.platform-setup-body ol li:last-child {
    margin-bottom: 0;
}

.platform-setup-body .setup-note {
    margin-top: 16px;
    padding: 14px 18px;
    background: #F4F0EA;
    border-left: 3px solid #A68A64;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: #3a3a3a;
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1.7;
}

/* CTA block */
.participation-page .cta-block {
    margin-top: 52px;
    padding: 40px 36px;
    background: #1A1816;
    border-radius: 4px;
    text-align: center;
}

.participation-page .cta-block p {
    color: rgba(255,253,249,0.85);
    font-size: 17px;
    margin-bottom: 20px;
    font-family: Georgia, serif;
}

/* Responsive */
@media (max-width: 600px) {
    .participation-page { padding: 40px 20px 80px; }
    .participation-page .step-list li {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }
    .platform-setup-toggle { padding: 14px 18px; }
    .platform-setup-body { padding: 0 18px 20px; }
}/* General Registration Container */
#registrationContainer {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

/* Rascal and Message Section */
#raccoonMessage {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

/* Rascal Image */
#rascalImage {
    max-width: 150px;
    margin-right: 20px;
    transition: transform 0.3s ease; /* Smooth flipping animation */
}

/* Message Text */
#messageText {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #333;
}

/* Align Rascal Based on Step */
#step2 #rascalImage {
    margin-left: 20px;
    margin-right: 0;
    transform: scaleX(-1); /* Flip Rascal to face left */
}

/* Step Content */
.step {
    display: none;
}

.step-content {
    text-align: left;
    margin-top: 10px;
}

/* Input Fields */
input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff; /* Ensure background is white */
    color: #000; /* Ensure text is black */
}

/* Placeholder Text */
input::placeholder {
    color: #888; /* Grey placeholder text for better visibility */
}

/* Validation Styles */
input:focus {
    border-color: #3A6B8A;
    outline: none;
    box-shadow: 0 0 5px rgba(58,107,138,0.3);
}

input.error {
    border-color: #dc3545;
    background-color: #f8d7da;
}

/* Navigation Buttons */
#navigationButtons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

#registrationContainer button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    background-color: #3A6B8A;
    transition: background-color 0.3s ease;
}

#registrationContainer button:hover:not(:disabled) {
    background-color: #2a4f6a;
}

#registrationContainer button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Submit Button */
#submitForm {
    margin-top: 20px;
    width: 100%;
    background-color: #5C7A5E;
    transition: background-color 0.3s ease;
}

#submitForm:hover:not(:disabled) {
    background-color: #4a6349;
}

/* Step Indicators */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.step-indicator span {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s ease;
}

.step-indicator .active {
    background-color: #3A6B8A;
}

/* Success Messages */
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Inline Verification Block */
.verify-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.verify-inline .d-flex {
    justify-content: center;
    align-items: stretch;
}

.verify-inline #inlineEmailCode {
    height: 48px;
    width: 160px;
    flex-shrink: 0;
}

.verify-inline #inlineVerifyBtn {
    height: 48px;
    padding-top: 0;
    padding-bottom: 0;
    white-space: nowrap;
}

/* Responsiveness */
@media (max-width: 768px) {
    #raccoonMessage {
        flex-direction: column;
        align-items: center;
    }

    #rascalImage {
        margin-right: 0;
        margin-bottom: 10px;
    }

    #step2 #rascalImage {
        margin-left: 0;
    }

    #navigationButtons {
        flex-direction: column;
    }

    button {
        width: 100%;
        margin-bottom: 10px;
    }
}
/* Email guidance (KAN-28) — shown before the email field */
.email-guidance {
    background: #f4f0ea;
    border-left: 4px solid #3A6B8A;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.email-guidance ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.email-guidance li {
    margin-bottom: 6px;
}

/* Acknowledgements (KAN-34) */
.registration-acks {
    margin: 16px 0 8px;
}

.registration-acks .form-check {
    margin-bottom: 6px;
}

.under18-panel {
    background: #f4f0ea;
    border-left: 4px solid #C08497;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 10px 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.under18-panel ul {
    padding-left: 20px;
}

/* Pre-launch wipe notice (KAN-74) */
.prelaunch-wipe-banner {
    max-width: 560px;
    margin: 0 auto 18px;
    background: #FBF3EC;
    border: 1px solid #C96F4A;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    line-height: 1.55;
}
/* Review Pool — identity-blind conduct reviews */

#review_pool {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px;
}

.review-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.review-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
}

.review-details {
    white-space: pre-wrap;
}

.review-their-side {
    background: #f4f0ea;
    border-left: 4px solid #7A7368;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 8px 0;
}

.review-corroboration {
    border-left: 3px solid #ccc;
    padding-left: 10px;
    margin-top: 6px;
}

.review-system-findings {
    background: #eef4f8;
    border-radius: 6px;
    padding: 8px 10px;
    color: #2a4f6a;
}

.review-evidence-thumb {
    max-height: 110px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin: 4px 6px 4px 0;
}
/* Right Now crisis page (KAN-65) */

#right_now {
    max-width: 680px;
    margin: 32px auto 80px;
    padding: 0 16px;
}

#right_now h1 {
    color: #3A6B8A;
}

.rn-lead {
    font-size: 1.05rem;
    line-height: 1.6;
}

.rn-hotlines {
    background: #FBF3EC;
    border: 2px solid #C96F4A;
    border-radius: 10px;
    padding: 18px;
    margin: 20px 0 32px;
}

.rn-hotline-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.rn-hotline {
    flex: 1 1 240px;
    display: block;
    background: #fff;
    border: 1px solid #e3d4c8;
    border-radius: 8px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
}

.rn-hotline:hover {
    border-color: #C96F4A;
}

.rn-hotline-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #C96F4A;
}

.rn-hotline-label {
    font-size: 0.9rem;
    color: #555;
}

.rn-hotline-911 {
    margin: 4px 0 0;
    font-size: 0.9rem;
}

.rn-tools-heading {
    color: #3A6B8A;
    font-size: 1.2rem;
}

.rn-category {
    margin-bottom: 10px;
}

.rn-cat-toggle {
    width: 100%;
    text-align: left;
    background: #f4f0ea;
    border: 1px solid #e0d8cc;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #3A4A5A;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s, border-color 0.15s;
}

.rn-cat-toggle:hover {
    background: #ebe5dc;
    border-color: #c8bfb0;
    color: #2a3a4a;
}

.rn-cat-toggle .rn-chev {
    margin-left: auto;
    transition: transform 0.15s;
}

.rn-cat-toggle.rn-open .rn-chev {
    transform: rotate(180deg);
}

.rn-cat-tools {
    padding: 8px 6px 2px;
}

.rn-tool-toggle {
    width: 100%;
    text-align: left;
    background: #fff;
    color: #3A4A5A;
    border: 1px solid #e8e2d8;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    transition: background 0.15s, border-color 0.15s;
}

.rn-tool-toggle:hover {
    background: #f4f0ea;
    border-color: #c8bfb0;
    color: #1A1816;
}

.rn-timed {
    margin-left: auto;
    font-size: 0.82rem;
    color: #3A6B8A;
    white-space: nowrap;
}

.rn-tool-body {
    padding: 10px 14px 14px;
    background: #fbfaf7;
    border-radius: 6px;
    margin: -4px 0 10px;
}

.rn-instructions {
    line-height: 1.7;
    white-space: normal;
}

.rn-timer {
    margin-top: 10px;
}

.rn-timer-display {
    font-weight: 600;
    color: #3A6B8A;
}

.rn-evidence {
    font-size: 0.85rem;
    color: #777;
    margin: 10px 0 0;
}

.rn-helped {
    margin-top: 10px;
}

.rn-suggest {
    margin-top: 28px;
    padding: 14px 18px;
    background: #f0f4ff;
    border-left: 4px solid #6c8ebf;
    border-radius: 6px;
    font-size: .95rem;
    color: #444;
}
.rn-suggest p { margin: 0; }

.rn-footer-note {
    margin-top: 28px;
    color: #555;
    line-height: 1.6;
}

/* the always-there header link */
.nav-right-now {
    color: #C96F4A !important;
    font-weight: 600;
}
/* Site Configuration editor (KAN-53) */

#site_config {
    max-width: 760px;
    margin: 40px auto 80px;
    padding: 0 16px;
}

#site_config h1 {
    color: #3A6B8A;
    margin-bottom: 12px;
}

.sc-field .form-label {
    text-transform: capitalize;
    margin-bottom: 4px;
}

.sc-diff {
    font-size: 0.9rem;
    line-height: 1.4;
}

.sc-old {
    background: #fdecea;
    text-decoration: line-through;
    padding: 1px 4px;
    border-radius: 3px;
}

.sc-new {
    background: #e7f4e9;
    padding: 1px 4px;
    border-radius: 3px;
}

.sc-arrow {
    margin: 0 6px;
    color: #6c757d;
}
/* Super Admin Panel (KAN-54) */

#super_admin {
    max-width: 760px;
    margin: 40px auto 80px;
    padding: 0 16px;
}

#super_admin h1 {
    color: #8a3a3a;
    margin-bottom: 12px;
}

.sa-matches {
    position: absolute;
    z-index: 10;
    width: calc(100% - 24px);
}

.sa-detail {
    border-left: 4px solid #8a3a3a;
}

/* Username blocklist chips (KAN-82) */
#blockList .badge {
    font-size: 0.85rem;
    font-weight: 500;
}
#blockList .block-del {
    font-size: 0.5rem;
    padding: 0.15rem;
}
/*** Trauma Section ***/
@supports selector(::details-content) {
	.warning {
		display: none;
	}
}

.trauma-section {
    margin-bottom: 50px; /* Adds spacing between trauma section and footer */
    position: relative; /* Ensures it stays within its boundaries */
    z-index: 0; /* Avoid overlapping the footer */
}

.accordion-wrapper {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	width: min-content;
	margin: 0 auto;
    overflow-x: auto; /* Allow horizontal scroll for smaller screens */
}

.accordion-wrapper details {
	display: flex;
	flex-direction: row;

	background: transparent;
	color: white;

	height: 30rem;
	border-radius: 2rem;
	overflow: hidden;

	/* To make the image work …*/
	position: relative;
	z-index: 1;

	/* Hide marker */
	::marker {
		content: '';
	}

	/* The image is tucked in the summary, because otherwise it would be hidden when not [open] as it ends up in the ::details-content pseudo */
	summary img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		z-index: -1;
		transition: filter 0.5s ease;
	}
	/* Animate the image */
	&[open] summary img {
		filter: brightness(0.5);
	}

	summary {
		padding: 1rem 1em;
		width: 5rem;
		flex-shrink: 0; /* Prevent shrinking */
		text-align: center;

		span {
			display: grid;
			place-content: center;
			width: 100%;
			aspect-ratio: 1;
			border-radius: 50%;
			background: rgb(0 0 0 / 0.25);
		}

		&:focus {
			outline: none;
		}
	}

	.details-content-wrapper {
		padding: 1.5rem 1em;
		width: 300px;
	}

	&:hover, &:has(summary:focus) {
		outline: 3px solid cadetblue;
		outline-offset: 3px;
	}
}

.accordion-wrapper .details-content-wrapper {
	/* We need margin-trim … */
	:first-child { margin-top: 0; }
	:last-child {	margin-bottom: 0;	}

	/* Animate-in the text when open */
	p {
		transform: translateY(2rem);
		opacity: 0;
		transition: all 0.5s ease;
		transition-delay: 0.5s;
	}

	[open] & p {
		transform: none;
		opacity: 1;
		transition-delay: 0.5s;
	}
}

/*** Responsive Adjustments for Trauma Section ***/
@media (max-width: 768px) {
    .trauma-section {
        display: none;
    }

    .accordion-wrapper {
        width: 100%; /* Take up the full width of the screen */
        overflow-x: hidden; /* Hide horizontal scroll on small screens */
        justify-content: flex-start; /* Align items to the left */
        padding: 0 1rem; /* Add padding to the sides */
        box-sizing: border-box;
    }

    .accordion-wrapper details {
        flex: 0 0 85%; /* Make each item take up 85% of the viewport width */
        max-width: none; /* Prevent limiting the width */
        height: auto; /* Adjust height for better mobile experience */
        border-radius: 1rem; /* Reduce border-radius for smaller screens */
    }

    .accordion-wrapper .details-content-wrapper {
        padding: 1rem; /* Reduce padding for smaller screens */
    }

    .accordion-wrapper summary {
        text-align: center;
    }
}/* Volunteering hub */

#volunteering {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
}

.vol-section-title {
    font-size: 1.15rem;
    margin: 22px 0 10px;
}

.vol-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.vol-card-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .vol-card { flex-direction: column; align-items: stretch; }
    .vol-card-actions { justify-content: flex-end; }
}

/* Upcoming meetings widget — nav dropdown */
.upcoming-meeting-item {
    padding: 8px 4px;
    border: none;
    border-bottom: 1px solid #f0ece6;
    background: transparent;
    cursor: pointer;
}
.upcoming-meeting-item:last-child { border-bottom: none; }
.upcoming-meeting-item:hover { background: rgba(0,0,0,0.04); }

.upcoming-meeting-time {
    display: block;
    font-size: 0.75rem;
    color: #7A7368;
    margin-top: 1px;
}

.upcoming-meeting-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
    color: #000;
}
.upcoming-meeting-badge.conference-line-meeting {
    background: var(--card3-gradient-color2);
}
.upcoming-meeting-badge.zoom-meeting {
    background: var(--card2-gradient-color2);
}
.upcoming-meeting-badge.in-person-meeting {
    background: var(--card1-gradient-color2);
}
.upcoming-meeting-badge.default-event {
    background: #e2e8f0;
}

/* Mobile nav — allow scrolling when menu is open */
@media (max-width: 991px) {
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Upcoming meetings widget — nav dropdown */
.upcoming-meeting-item {
    padding: 8px 4px;
    border: none;
    border-bottom: 1px solid #f0ece6;
    background: transparent;
    cursor: pointer;
}
.upcoming-meeting-item:last-child { border-bottom: none; }
.upcoming-meeting-item:hover { background: rgba(0,0,0,0.04); }

.upcoming-meeting-time {
    display: block;
    font-size: 0.75rem;
    color: #7A7368;
    margin-top: 1px;
}

.upcoming-meeting-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
    color: #000;
}
.upcoming-meeting-badge.conference-line-meeting { background: var(--card3-gradient-color2); }
.upcoming-meeting-badge.zoom-meeting            { background: var(--card2-gradient-color2); }
.upcoming-meeting-badge.in-person-meeting       { background: var(--card1-gradient-color2); }
.upcoming-meeting-badge.default-event           { background: #e2e8f0; }

/* Mobile nav — allow scrolling when community menu is open */
@media (max-width: 991px) {
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ── Journal ──────────────────────────────────────────────────────────── */
.journal-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 3rem;
    min-height: 70vh;
}

/* Book shell */
.journal-book {
    display: flex;
    width: 100%;
    max-width: 820px;
    min-height: 560px;
    background: #fff;
    border-radius: 4px 8px 8px 4px;
    box-shadow: -4px 4px 18px rgba(0,0,0,.18), 4px 4px 18px rgba(0,0,0,.10);
    position: relative;
}

/* Spine */
.journal-spine {
    width: 36px;
    min-height: 100%;
    background: linear-gradient(180deg, #4a3728 0%, #2e1f14 100%);
    border-radius: 4px 0 0 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.journal-spine-title {
    color: rgba(255,255,255,.7);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    white-space: nowrap;
}

/* Pages area */
.journal-pages {
    flex: 1;
    position: relative;
    padding: 2rem 2.25rem 2rem 2rem;
    border-left: 2px solid #e8ddd3;
    overflow: hidden;
}

/* Individual page */
.journal-page {
    width: 100%;
}
.journal-page--loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}
.journal-loading-inner {
    text-align: center;
}

/* Page turn animation */
@keyframes pageTurnIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}
.page-turn-in {
    animation: pageTurnIn .3s ease-out forwards;
}

/* Page header */
.journal-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8ddd3;
    padding-bottom: .5rem;
    margin-bottom: 1.25rem;
}
.journal-entry-date {
    font-size: .82rem;
    color: #8a7968;
    font-style: italic;
}
.journal-page-actions {
    display: flex;
    gap: .25rem;
}
.journal-page-actions .btn-link {
    color: #8a7968;
    padding: .2rem .4rem;
    font-size: 1rem;
    text-decoration: none;
}
.journal-page-actions .btn-link:hover { color: #3d2b1f; }

/* Entry content */
.journal-entry-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2e1f14;
    margin-bottom: .75rem;
}
.journal-entry-body {
    font-size: .97rem;
    line-height: 1.85;
    color: #3d3028;
    min-height: 120px;
}
.journal-entry-body p { margin-bottom: .6rem; }
.journal-entry-meta {
    margin-top: 1.5rem;
    font-size: .8rem;
}

/* Bookmark ribbon */
.journal-ribbon {
    position: absolute;
    top: 0;
    right: 18px;
    width: 18px;
    height: 52px;
    background: #f0c040;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    border-radius: 0 0 2px 2px;
}

/* Prompt banner */
.journal-prompt-banner {
    background: #f0f4ff;
    border-left: 3px solid #6c8ebf;
    border-radius: 4px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
}
.journal-prompt-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6c8ebf;
    display: block;
    margin-bottom: .25rem;
}

/* Title input */
.journal-title-input {
    border: none;
    border-bottom: 1px solid #e0d8d0;
    border-radius: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2e1f14;
    padding-left: 0;
    background: transparent;
}
.journal-title-input:focus {
    box-shadow: none;
    border-bottom-color: #6c8ebf;
    background: transparent;
}

/* Formatting toolbar */
.journal-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: .3rem .25rem;
    background: #f9f6f3;
    border: 1px solid #e8ddd3;
    border-radius: 4px 4px 0 0;
    flex-wrap: wrap;
}
.jt-btn {
    background: none;
    border: none;
    padding: .25rem .45rem;
    color: #6b5a4e;
    border-radius: 3px;
    font-size: .95rem;
    cursor: pointer;
    line-height: 1;
}
.jt-btn:hover { background: #ede8e3; color: #2e1f14; }
.jt-sep {
    width: 1px;
    height: 18px;
    background: #d8cfc7;
    margin: 0 3px;
}

/* Contenteditable editor */
.journal-editor {
    min-height: 260px;
    border: 1px solid #e8ddd3;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: .9rem 1rem;
    font-size: .97rem;
    line-height: 1.85;
    color: #3d3028;
    outline: none;
    background: #fffdf9;
}
.journal-editor:focus { border-color: #b0a090; background: #fff; }
.journal-editor.is-empty::before {
    content: attr(data-placeholder);
    color: #b0a090;
    pointer-events: none;
}
.journal-editor p  { margin-bottom: .5rem; }
.journal-editor h3 { font-size: 1.05rem; font-weight: 600; margin: .75rem 0 .4rem; }

/* Navigation bar */
.journal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 820px;
    margin-top: 1.25rem;
    gap: 1rem;
}
.journal-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    flex: 1;
}
.journal-page-indicator {
    font-size: .8rem;
    color: #8a7968;
}
.journal-date-jump input {
    font-size: .8rem;
    max-width: 160px;
    border-color: #ddd5cb;
    color: #5a4a3e;
}

/* Post-write modal */
.post-write-prompt {
    padding: .75rem;
    border-radius: 6px;
    background: #f9f6f3;
    transition: opacity .2s;
}

/* Mobile */
@media (max-width: 600px) {
    .journal-pages { padding: 1.25rem 1.1rem 1.25rem 1rem; }
    .journal-spine { width: 24px; }
    .journal-spine-title { font-size: .55rem; }
    .journal-editor { min-height: 180px; }
}

/* ── Journal outer layout (book + TOC panel side by side) ─────────── */
.journal-outer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    position: relative;
}

/* TOC panel */
.journal-toc-panel {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e8ddd3;
    border-radius: 6px;
    box-shadow: 2px 2px 10px rgba(0,0,0,.08);
    max-height: 600px;
    overflow-y: auto;
    position: sticky;
    top: 1.5rem;
    display: none; /* hidden until toggled on mobile; always shown on desktop */
}
.journal-toc-panel.toc-open,
@media (min-width: 1000px) {
    .journal-toc-panel { display: block; }
}
.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem .85rem;
    border-bottom: 1px solid #e8ddd3;
    background: #f9f6f3;
    border-radius: 6px 6px 0 0;
}
.toc-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7a6658;
}
.toc-close-btn {
    color: #9a8878;
    padding: .1rem .3rem;
    font-size: .85rem;
    display: none; /* shown only on mobile */
}
.toc-list {
    list-style: none;
    margin: 0;
    padding: .35rem 0;
}
.toc-entry { display: block; }
.toc-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: .45rem .85rem;
    font-size: .82rem;
    color: #4a3728;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.3;
    border-left: 3px solid transparent;
    transition: background .12s;
}
.toc-btn:hover { background: #f3ede8; }
.toc-entry--active .toc-btn {
    background: #f0ebe4;
    border-left-color: #8a6a50;
    font-weight: 600;
}
.toc-entry--new .toc-btn { color: #6c8ebf; font-style: italic; }
.toc-bm { font-size: .7rem; margin-left: .25rem; }
.toc-date { font-size: .72rem; color: #9a8878; }
.toc-empty { padding: .6rem .85rem; font-size: .82rem; color: #9a8878; }

/* Remove wrap's own padding since outer handles it */
.journal-wrap { padding: 0; }

/* On desktop the TOC is always visible; on mobile it overlays */
@media (min-width: 1000px) {
    .journal-toc-panel { display: block; }
    .toc-close-btn { display: none; }
}
@media (max-width: 999px) {
    .journal-outer { flex-direction: column; align-items: center; padding-top: 1rem; }
    .journal-toc-panel {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 260px;
        max-height: 100vh;
        border-radius: 0;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform .25s ease;
        display: block;
    }
    .journal-toc-panel.toc-open { transform: translateX(0); }
    .toc-close-btn { display: inline-flex; }
}

/* Post-write inline prompts */
.journal-postwrite { border-top: 1px solid #e8dfd6; padding-top: .5rem; }
.postwrite-heading { font-size: .9rem; font-weight: 600; color: #5c4a3a; margin-bottom: .25rem; }
.postwrite-item { font-size: .875rem; }
.postwrite-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
