/* The ONE for Jesus — base stylesheet */

:root {
    --bg: #ffffff;
    --bg-soft: #f8f7f4;
    --bg-panel: #ffffff;
    --ink: #14171f;
    --ink-soft: #3f4757;
    --ink-mute: #7a8194;
    --line: #e5e2db;
    --line-soft: #f0ede6;
    --navy: #0f2647;
    --navy-dark: #061330;
    --navy-deep: #030a1f;
    --gold: #c2974a;
    --gold-soft: #dcb86c;
    --gold-bright: #e8c87a;
    --gold-deep: #8a6a28;
    --accent-bg: #f8f1de;
    --accent-glow: #fbe9b8;
    --success: #2e7d52;
    --success-bg: #e8f3ec;
    --error: #b3261e;
    --error-bg: #fbe9e8;
    --info: #0f2647;
    --info-bg: #e8eef6;
    --shadow: 0 1px 2px rgba(20, 30, 50, .04), 0 4px 12px rgba(20, 30, 50, .04);
    --radius: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg-soft);
    line-height: 1.55;
    font-size: 16px;
}
h1, h2, h3, h4 {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    color: var(--navy-dark);
    line-height: 1.2;
    margin: 0 0 .5em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .9rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    text-decoration: none;
}
.brand-the {
    font-family: "Iowan Old Style", Georgia, serif;
    font-style: italic;
    color: var(--gold);
    font-size: .95rem;
    letter-spacing: .02em;
}
.brand-mark {
    font-family: "Iowan Old Style", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: .04em;
}
.brand-name {
    font-family: "Iowan Old Style", Georgia, serif;
    font-style: italic;
    color: var(--gold);
    font-size: 1rem;
}
.brand:hover { text-decoration: none; }

/* Nav: scope text styles to non-button anchors so .btn keeps its own colors */
.site-nav { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.site-nav a { font-size: .95rem; }
.site-nav a:not(.btn) { color: var(--ink-soft); }
.site-nav a:not(.btn):hover { color: var(--navy); text-decoration: none; }
.site-nav a.nav-admin { color: var(--gold); font-weight: 600; }
.site-nav a.nav-secondary { color: var(--ink-mute); }

/* ---------- Main ---------- */
.site-main { padding: 2rem 0 4rem; min-height: calc(100vh - 200px); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: .55rem 1.1rem;
    font-size: .95rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: all .12s ease;
}
.btn:hover { border-color: var(--navy); text-decoration: none; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn-danger { background: #fff; border-color: #d8a8a4; color: var(--error); }
.btn-danger:hover { background: var(--error-bg); border-color: var(--error); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--line-soft); border-color: var(--line-soft); }
.btn-sm { padding: .35rem .85rem; font-size: .85rem; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
    color: var(--ink-soft);
    font-size: .9rem;
}
input[type=text], input[type=email], input[type=password],
input[type=date], input[type=time], input[type=url], input[type=number],
select, textarea {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-family: inherit;
    font-size: .95rem;
    color: var(--ink);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, .12);
}
textarea { min-height: 110px; resize: vertical; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row > .form-group { flex: 1 1 200px; }
.form-help { font-size: .85rem; color: var(--ink-mute); margin-top: .25rem; }
.checkbox-row { display: flex; gap: .5rem; align-items: center; }
.checkbox-row input { width: auto; }

/* ---------- Cards / panels ---------- */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }

/* ---------- Alerts ---------- */
.alert {
    padding: .8rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.2rem;
    border: 1px solid;
}
.alert-success { background: var(--success-bg); border-color: #b8d8c4; color: var(--success); }
.alert-error   { background: var(--error-bg);   border-color: #e6b8b3; color: var(--error); }
.alert-info    { background: var(--info-bg);    border-color: #b8c7dc; color: var(--info); }

/* ============================================================
   LANDING PAGE — split hero, proof strip, features, CTA band
   ============================================================ */

/* Deep-navy hero echoing the book cover. Subtle paper-grain noise + warm
   light radiating from where the cover sits. The gradient is anchored to
   the same near-black navy as the cover itself. */
.hero {
    background:
        radial-gradient(ellipse at 78% 50%, rgba(232, 200, 122, .14) 0%, rgba(232, 200, 122, 0) 55%),
        radial-gradient(ellipse at 25% 30%, rgba(15, 38, 71, .55) 0%, rgba(3, 10, 31, 0) 70%),
        linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-dark) 65%, #0a1c3a 100%);
    color: #fff;
    border-bottom: none;
    margin: -2rem -1.25rem 0;
    padding: 5rem 1.25rem 4.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    /* paper-grain noise layered over the navy, very subtle */
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: .55;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.hero::after {
    /* gold spotlight where the cover sits */
    content: "";
    position: absolute;
    top: 50%; right: 6%;
    transform: translateY(-50%);
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(232, 200, 122, .22) 0%, rgba(232, 200, 122, .06) 35%, rgba(232, 200, 122, 0) 65%);
    pointer-events: none;
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.hero-text { flex: 1 1 540px; }
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .78rem;
    color: var(--gold-bright);
    margin: 0 0 1.4rem;
    font-weight: 500;
    opacity: .92;
}
.hero h1 {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: 4.4rem;
    line-height: 1.0;
    letter-spacing: .005em;
    margin-bottom: 1.4rem;
    color: #fff;
    font-weight: 600;
}
.hero h1 .hero-the {
    display: block;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: .22em;
    font-style: italic;
    color: var(--gold-bright);
    letter-spacing: .35em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: .7em;
    margin-left: .25em;
    opacity: .85;
}
.hero h1 .hero-one {
    background: linear-gradient(135deg, #f4dc9e 0%, var(--gold-bright) 30%, var(--gold) 60%, var(--gold-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--gold-bright); /* fallback */
    text-shadow: 0 2px 30px rgba(232, 200, 122, .25);
    letter-spacing: .01em;
}
.hero h1 .hero-for {
    display: block;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-style: italic;
    color: rgba(255, 255, 255, .7);
    font-size: .32em;
    font-weight: 400;
    letter-spacing: .04em;
    margin-top: .5em;
    margin-left: .15em;
    -webkit-text-fill-color: rgba(255, 255, 255, .7);
}
.hero .lede {
    font-size: 1.18rem;
    line-height: 1.55;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, .82);
    max-width: 540px;
}
.hero .cta { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero .btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-deep);
    font-weight: 600;
}
.hero .btn-primary:hover {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    color: var(--navy-deep);
}
.hero .btn:not(.btn-primary) {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}
.hero .btn:not(.btn-primary):hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

.hero-cover {
    flex: 0 0 auto;
    width: 310px;
    aspect-ratio: 5 / 8;
    border-radius: 3px;
    overflow: hidden;
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
    box-shadow:
        0 1px 1px rgba(0, 0, 0, .15),
        0 2px 8px rgba(0, 0, 0, .25),
        0 18px 50px rgba(194, 151, 74, .35),
        0 40px 90px rgba(0, 0, 0, .5);
    position: relative;
}
.hero-cover::before {
    /* soft gold ring behind the cover */
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(232, 200, 122, .4), rgba(194, 151, 74, .15));
    z-index: -1;
    filter: blur(8px);
    pointer-events: none;
}
.hero-cover::after {
    /* subtle gloss on the cover, top-left */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 35%);
    pointer-events: none;
}
.hero-cover:hover { transform: translateY(-6px) scale(1.02); }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.proof-strip {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2.5rem 1.25rem;
    margin: 0 -1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.proof-item { text-align: center; }
.proof-number {
    font-family: "Iowan Old Style", Georgia, serif;
    font-size: 2.6rem;
    color: var(--navy-dark);
    line-height: 1;
    margin-bottom: .25rem;
}
.proof-label {
    font-size: .85rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 4rem 0 2rem;
}
.feature {
    text-align: left;
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--gold-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature h3 {
    font-size: 1.25rem;
    margin-bottom: .4rem;
}
.feature p {
    color: var(--ink-soft);
    margin: 0;
    font-size: .98rem;
}

.cta-band {
    background: var(--navy-deep);
    color: #fff;
    margin: 3rem -1.25rem;
    padding: 3.5rem 1.25rem;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(232, 200, 122, .12) 0%, rgba(232, 200, 122, 0) 50%),
        linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    position: relative;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: .5;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.cta-band-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.cta-band h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.9rem;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-weight: 600;
}
.cta-band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}
.cta-band-grid h4 {
    color: var(--gold-bright);
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: .5rem;
    font-weight: 500;
}
.cta-band-grid p {
    color: rgba(255,255,255,.78);
    margin: 0;
    font-size: .95rem;
}

.closing {
    text-align: center;
    padding: 3rem 0 1rem;
    max-width: 720px;
    margin: 0 auto;
}
.closing h2 { margin-bottom: 1rem; }
.closing p { font-size: 1.05rem; color: var(--ink-soft); }

/* ============================================================
   GROUP / DASHBOARD shared (unchanged from earlier)
   ============================================================ */

.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}
.group-card {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.group-card h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.group-card .meta { font-size: .85rem; color: var(--ink-mute); margin-bottom: .6rem; }
.group-card .desc { color: var(--ink-soft); font-size: .92rem; flex: 1; margin-bottom: 1rem; }
.group-card .actions { display: flex; gap: .5rem; }

.badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: var(--line-soft);
    color: var(--ink-soft);
}
.badge-open { background: #e8f3ec; color: var(--success); }
.badge-private { background: var(--accent-bg); color: var(--gold-deep); }
.badge-pending { background: #fff3cd; color: #8a6d1a; }
.badge-archived { background: var(--line-soft); color: var(--ink-mute); }
.badge-admin { background: #e8eef6; color: var(--navy); }
.badge-time { background: #f2e9f6; color: #6a3f8a; }

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.table th, .table td {
    padding: .7rem .9rem;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    font-size: .92rem;
}
.table th { background: var(--bg-soft); font-weight: 600; color: var(--ink-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: none; }
.table-actions { white-space: nowrap; }

.discussion-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-soft);
}
.discussion-item:last-child { border-bottom: none; }
.discussion-item h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.discussion-item .meta { font-size: .85rem; color: var(--ink-mute); margin-bottom: .5rem; }
.discussion-item .preview { color: var(--ink-soft); font-size: .92rem; }

.thread-post {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.thread-post .post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .8rem;
    flex-wrap: wrap;
    gap: .5rem;
}
.thread-post .author { font-weight: 600; color: var(--navy); }
.thread-post .timestamp { color: var(--ink-mute); font-size: .85rem; }
.thread-post .body { white-space: pre-wrap; }
.reply-list { margin-left: 2rem; padding-left: 1.5rem; border-left: 2px solid var(--line); }
.reply { padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
.reply:last-child { border-bottom: none; }

.row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.col-main { flex: 1 1 600px; }
.col-side { flex: 0 1 300px; }
.muted { color: var(--ink-mute); font-size: .9rem; }
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.section-title h2 { margin: 0; }
.empty-state { text-align: center; padding: 2rem; color: var(--ink-mute); }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
}
.stat-card .stat-value {
    font-family: "Iowan Old Style", Georgia, serif;
    font-size: 2.2rem;
    color: var(--navy-dark);
    line-height: 1;
    margin-bottom: .25rem;
}
.stat-card .stat-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-mute);
}

/* Modal */
.modal-root {
    position: fixed; inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-root[hidden] { display: none; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(20, 30, 50, .4);
}
.modal-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal-header { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink-mute); padding: 0 .3rem; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 1.2rem; overflow-y: auto; }
.modal-footer { padding: .9rem 1.2rem; border-top: 1px solid var(--line); display: flex; gap: .5rem; justify-content: flex-end; }

/* Footer */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 1.5rem 0;
    color: var(--ink-mute);
    font-size: .9rem;
}
.site-footer p { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
    .hero { padding: 3rem 1.25rem 2.5rem; }
    .hero-inner { flex-direction: column-reverse; text-align: center; gap: 2.5rem; }
    .hero-text { flex: 1 1 100%; }
    .hero h1 { font-size: 2.4rem; }
    .hero .lede { margin-left: auto; margin-right: auto; }
    .hero .cta { justify-content: center; }
    .hero-cover { width: 220px; transform: rotate(0); }
    .hero-cover:hover { transform: translateY(-4px); }
    .hero::before { display: none; }
}

@media (max-width: 640px) {
    h1 { font-size: 1.6rem; }
    .hero h1 { font-size: 2rem; }
    .site-nav { gap: .8rem; }
    .site-nav a { font-size: .9rem; }
    .panel { padding: 1.1rem; }
    .feature-grid { padding: 2.5rem 0 1rem; gap: 1.5rem; }
    .cta-band { padding: 2.5rem 1.25rem; }
    .cta-band h2 { font-size: 1.4rem; }
    .proof-number { font-size: 2rem; }
}

/* ---------- Utility ---------- */
.text-right { text-align: right; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.gap-sm { gap: .5rem; }
.inline-form { display: inline; }

/* ============================================================
   INSPIRATIONS — Bill's weekly broadcasts
   ============================================================ */

.inspiration-marker {
    color: var(--gold);
    font-size: 1.1em;
    margin-right: .15rem;
}

.discussion-item.is-inspiration {
    background: linear-gradient(90deg, rgba(184,146,63,.06) 0%, transparent 60%);
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
    margin: .5rem -1rem .5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.inspiration-badge {
    background: var(--accent-bg);
    color: var(--gold-deep);
    font-weight: 600;
    margin-left: .5rem;
}

.thread-post.is-inspiration {
    border-left: 4px solid var(--gold);
    background: linear-gradient(135deg, #fff 0%, #fdfaf3 100%);
    box-shadow:
        0 1px 2px rgba(20, 30, 50, .04),
        0 4px 14px rgba(184, 146, 63, .12);
}

.thread-post .inspiration-header {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold-deep);
    margin-bottom: .8rem;
    font-weight: 600;
}

.inspiration-card {
    border-left: 3px solid var(--gold);
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION — fixed icon bar for phones/tablets
   ============================================================ */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    /* Hide the desktop top nav (brand stays visible) */
    .site-nav {
        display: none;
    }

    /* Show the bottom nav */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: white;
        border-top: 1px solid var(--line);
        box-shadow: 0 -2px 12px rgba(20, 30, 50, 0.06);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-bottom-nav a {
        position: relative;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .2rem;
        padding: .55rem .25rem .5rem;
        color: var(--ink-mute, #888);
        text-decoration: none;
        font-size: .68rem;
        font-weight: 600;
        line-height: 1.1;
        text-align: center;
        min-width: 0;
        transition: color .15s;
    }

    .mobile-bottom-nav a span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav a:focus {
        color: var(--navy);
        outline: none;
    }

    .mobile-bottom-nav a.is-active {
        color: var(--navy);
    }

    .mobile-bottom-nav a.is-active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 28px;
        height: 3px;
        background: var(--gold);
        border-radius: 0 0 3px 3px;
    }

    .mobile-bottom-nav svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    /* Push site content above the fixed bottom nav so nothing gets hidden */
    .site-main,
    .site-footer {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }
}

/* Tighter labels on very small phones */
@media (max-width: 360px) {
    .mobile-bottom-nav a {
        font-size: .62rem;
        gap: .15rem;
    }
    .mobile-bottom-nav svg {
        width: 20px;
        height: 20px;
    }
}

/* ====================================================================
   Help links — small "?" icon next to titles/labels for quick reference
   ==================================================================== */
.help-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: .35em;
    border-radius: 50%;
    background: var(--bg-soft, #f3f1ec);
    color: var(--ink-mute, #888);
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: background .15s, color .15s;
    vertical-align: middle;
}
.help-link:hover,
.help-link:focus {
    background: var(--gold, #c2974a);
    color: #fff;
    text-decoration: none;
}

/* ====================================================================
   Welcome banner — shown on dashboard for new users, dismissible
   ==================================================================== */
.welcome-banner {
    background: linear-gradient(135deg, var(--navy, #0f2647) 0%, var(--navy-deep, #030a1f) 100%);
    color: #fff;
    border-radius: var(--radius, 8px);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 16px rgba(15, 38, 71, 0.15);
}
.welcome-banner h2 {
    color: var(--gold-bright, #e8c87a);
    margin-top: 0;
    margin-bottom: .5rem;
    font-size: 1.35rem;
}
.welcome-banner p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}
.welcome-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}
.welcome-banner-actions .btn {
    background: var(--gold, #c2974a);
    color: var(--navy-deep, #030a1f);
    border: none;
    font-weight: 600;
}
.welcome-banner-actions .btn:hover {
    background: var(--gold-bright, #e8c87a);
    color: var(--navy-deep, #030a1f);
}
.welcome-banner-actions .btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.welcome-banner-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.welcome-banner-dismiss {
    position: absolute;
    top: .75rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: .25rem .5rem;
    line-height: 1;
}
.welcome-banner-dismiss:hover {
    color: #fff;
}

/* ====================================================================
   Help page sections
   ==================================================================== */
.help-toc {
    background: var(--bg-soft, #f3f1ec);
    border-radius: var(--radius, 8px);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.help-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 2rem;
}
@media (max-width: 600px) {
    .help-toc ul { columns: 1; }
}
.help-toc li {
    padding: .25rem 0;
    break-inside: avoid;
}
.help-section {
    scroll-margin-top: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line, #e5e1d8);
}
.help-section:last-child { border-bottom: none; }
.help-section h2 {
    margin-bottom: .5rem;
    color: var(--navy, #0f2647);
}
.help-section h3 {
    margin-top: 1.25rem;
    margin-bottom: .35rem;
    font-size: 1.05rem;
}
.help-section p { margin-top: 0; }
.help-section .help-tip {
    background: var(--bg-soft, #f3f1ec);
    border-left: 3px solid var(--gold, #c2974a);
    padding: .75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}

/* ====================================================================
   Feedback form — category picker cards
   ==================================================================== */
.feedback-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .6rem;
    margin-top: .4rem;
}
.feedback-category input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.feedback-category-card {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: 1rem;
    border: 2px solid var(--line, #e5e1d8);
    border-radius: var(--radius, 8px);
    background: #fff;
    cursor: pointer;
    transition: border-color .12s, background .12s, transform .08s;
    height: 100%;
    box-sizing: border-box;
}
.feedback-category-card:hover {
    border-color: var(--gold, #c2974a);
    background: #fffdf6;
}
.feedback-category input[type="radio"]:checked + .feedback-category-card {
    border-color: var(--navy, #0f2647);
    background: #f7f9fd;
}
.feedback-category input[type="radio"]:focus-visible + .feedback-category-card {
    outline: 2px solid var(--gold, #c2974a);
    outline-offset: 2px;
}
.feedback-category-emoji {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: .15rem;
}
.feedback-category strong {
    color: var(--navy, #0f2647);
    font-size: .98rem;
}
.feedback-category-help {
    font-size: .82rem;
    line-height: 1.35;
    margin-top: .1rem;
}

/* ====================================================================
   App download section + badges
   - .app-cta-section : full-width hero-style band (homepage, about page)
   - .app-panel       : compact sidebar variant (per-group page)
   - .app-badges      : the row of store badges (used in both contexts)
   - Welcome popup    : first-login onboarding modal content
   ==================================================================== */

.app-cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #fff;
    border-radius: var(--radius);
    margin: 2.5rem 0;
    padding: 2.25rem 1.75rem;
    box-shadow: 0 4px 16px rgba(15, 38, 71, 0.15);
}
.app-cta-inner {
    max-width: 760px;
    margin: 0 auto;
}
.app-cta-section h2 {
    color: var(--gold-bright);
    margin: 0 0 .6rem;
    font-size: 1.6rem;
}
.app-cta-lede {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 1.25rem;
}
.app-cta-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: .65rem;
}
.app-cta-features li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.45;
}
.app-cta-features li svg {
    flex-shrink: 0;
    color: var(--gold-bright);
    margin-top: .15rem;
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}
.app-badges-compact {
    margin-top: .6rem;
    gap: .5rem;
}
.app-badge {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
    transition: transform .15s ease, opacity .15s ease;
}
.app-badge img { display: block; height: auto; max-width: 100%; }
a.app-badge:hover { transform: translateY(-2px); text-decoration: none; }
.app-badge-disabled {
    opacity: .85;
    cursor: not-allowed;
    filter: grayscale(.15);
}

/* Compact sidebar variant inside a group's right column */
.app-panel {
    border-left: 3px solid var(--gold);
}
.app-panel h3 { margin-top: 0; }
.app-panel-features {
    list-style: none;
    margin: 0 0 .9rem;
    padding: 0;
    font-size: .9rem;
    color: var(--ink-soft);
}
.app-panel-features li {
    padding: .25rem 0 .25rem 1.1rem;
    position: relative;
    line-height: 1.4;
}
.app-panel-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .25rem;
    color: var(--gold);
    font-weight: 700;
}
/* On narrow sidebar, let badges shrink so they always fit two-up if the column is wide
   enough, or stack cleanly if not. */
.app-panel .app-badges img {
    max-width: 100%;
    width: 160px;
}

/* Welcome onboarding popup (rendered via the existing modal system) */
.welcome-popup {
    color: var(--ink);
}
.welcome-popup-lede {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.5;
}
.welcome-popup-steps {
    margin: 0 0 1.1rem;
    padding-left: 1.25rem;
    display: grid;
    gap: .65rem;
}
.welcome-popup-steps li {
    line-height: 1.5;
    color: var(--ink-soft);
}
.welcome-popup-steps li strong {
    color: var(--ink);
    display: inline;
}
.welcome-popup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1rem;
    padding: .9rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
    justify-content: center;
}
.welcome-popup-badges img { display: block; height: auto; }
.welcome-popup-help-line {
    margin: 0;
    font-size: .9rem;
    color: var(--ink-mute);
    text-align: center;
}

/* Responsive: stack neatly on small screens */
@media (max-width: 640px) {
    .app-cta-section { padding: 1.75rem 1.25rem; margin: 2rem 0; }
    .app-cta-section h2 { font-size: 1.35rem; }
    .app-cta-lede { font-size: 1rem; }
    .app-badges { gap: .5rem; }
    .welcome-popup-badges { padding: .7rem; }
}

/* ====================================================================
   Get the book — print + Kindle CTA
   - .book-cta : large card on About page, with cover + heading + button
   - small inline book links inside the group sidebar panel + welcome popup
   ==================================================================== */

.book-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}
.book-cta-cover {
    flex-shrink: 0;
    line-height: 0;
}
.book-cta-cover img {
    display: block;
    width: 140px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(15, 38, 71, 0.2);
}
.book-cta-text {
    flex: 1 1 auto;
    min-width: 0;
}
.book-cta-text h2 {
    margin-top: 0;
    margin-bottom: .5rem;
}
.book-cta-text p {
    color: var(--ink-soft);
    margin-bottom: 1rem;
}

/* Small "Need the book?" link inside the group sidebar app panel */
.app-panel-book-link {
    margin: .9rem 0 0;
    padding-top: .9rem;
    border-top: 1px dashed var(--line);
    font-size: .85rem;
    text-align: center;
}
.app-panel-book-link a {
    color: var(--ink-soft);
}
.app-panel-book-link a:hover {
    color: var(--navy);
}

/* Book line inside the welcome popup, between badges and the help footer */
.welcome-popup-book-line {
    margin: 0 0 .6rem;
    font-size: .9rem;
    color: var(--ink-soft);
    text-align: center;
}

/* Mobile: stack the book card on small screens */
@media (max-width: 640px) {
    .book-cta {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1.25rem;
    }
    .book-cta-cover img { width: 120px; }
}

/* ====================================================================
   Reading header — full-width promoted "This week's reading" banner
   on group pages, with a recent-inspirations rail on the right.
   ==================================================================== */

.reading-header {
    border-left: 4px solid var(--gold);
    margin-bottom: 1.5rem;
}
.reading-header-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.75rem;
    align-items: start;
}
.reading-header-section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    margin-bottom: .5rem;
}
.reading-header-section-title h2 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold-deep);
}
.reading-header-manage {
    font-size: .85rem;
    color: var(--ink-mute);
}
.reading-header-title {
    margin: 0 0 .25rem;
    font-size: 1.4rem;
    line-height: 1.25;
}
.reading-header-byline {
    font-size: .85rem;
    color: var(--ink-mute);
    margin-bottom: .65rem;
}
.reading-header-excerpt {
    position: relative;
    max-height: 5.4em;
    overflow: hidden;
    font-size: .95rem;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: .85rem;
}
.reading-header-excerpt > .reading-header-excerpt-body {
    white-space: pre-wrap;
}
.reading-header-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1.8em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--bg-panel));
    pointer-events: none;
}
.reading-header-actions {
    margin: 0;
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    align-items: center;
}
.reading-header-past-link {
    font-size: .9rem;
    color: var(--ink-soft);
}
.reading-header-empty {
    margin: 0 0 .5rem;
    color: var(--ink-mute);
    font-size: .95rem;
}

/* Inspirations rail */
.reading-header-inspirations {
    border-left: 1px solid var(--line-soft);
    padding-left: 1.5rem;
    align-self: stretch;
}
.reading-header-section-heading {
    margin: 0 0 .65rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold-deep);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.reading-header-section-heading .inspiration-marker {
    color: var(--gold);
    font-size: 1rem;
}
.inspiration-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.inspiration-list li {
    padding: .55rem 0;
    border-bottom: 1px dashed var(--line-soft);
}
.inspiration-list li:first-child { padding-top: 0; }
.inspiration-list li:last-child { border-bottom: none; padding-bottom: 0; }
.inspiration-link {
    display: block;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.35;
}
.inspiration-link:hover { text-decoration: none; }
.inspiration-link:hover .inspiration-link-title { color: var(--navy); text-decoration: underline; }
.inspiration-link-title {
    display: block;
    font-weight: 600;
    color: var(--ink);
    font-size: .95rem;
    margin-bottom: .15rem;
    /* Clip to two lines on narrow rail */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.inspiration-link-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: .87rem;
    line-height: 1.4;
    margin-bottom: .25rem;
    /* Preserve internal whitespace just enough that double-newlines don't all collapse,
       but the line-clamp keeps the box compact regardless of paragraph breaks. */
    white-space: normal;
}
.inspiration-link-meta {
    display: block;
    font-size: .8rem;
    color: var(--ink-mute);
}
.inspiration-link-more {
    color: var(--gold);
    font-weight: 600;
    white-space: nowrap;
}
.inspiration-link:hover .inspiration-link-more {
    text-decoration: underline;
}

/* Stack on narrow viewports */
@media (max-width: 880px) {
    .reading-header { padding: 1.2rem 1.25rem; }
    .reading-header-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .reading-header-inspirations {
        border-left: none;
        border-top: 1px solid var(--line-soft);
        padding-left: 0;
        padding-top: 1rem;
    }
    .reading-header-title { font-size: 1.2rem; }
}

/* ====================================================================
   Inspirations admin
   ==================================================================== */

.inspiration-sent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.inspiration-sent-item {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: .9rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    margin-bottom: .6rem;
}
.inspiration-sent-body {
    flex: 1 1 auto;
    min-width: 0;
}
.inspiration-sent-body h3 {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
}
/* Body preview: clamp to 2 lines to keep cards uniform height */
.inspiration-queue-preview {
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Right-side action cluster (Edit / Delete) */
.inspiration-queue-actions {
    display: flex;
    gap: .35rem;
    flex-shrink: 0;
    align-self: center;
}
.inspiration-queue-actions .inline-form {
    display: inline;
    margin: 0;
}

@media (max-width: 640px) {
    .inspiration-sent-item { flex-wrap: wrap; }
    .inspiration-queue-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: .25rem;
    }
}

/* ====================================================================
   Weekly readings — page-break separator + admin upload row
   ==================================================================== */

/* Page-break separator inside a rendered reading body */
.reading-page-break {
    text-align: center;
    color: var(--gold);
    letter-spacing: .5em;
    font-size: 1rem;
    margin: 1.8rem 0;
    user-select: none;
}

/* Make sure the body text inside the pre-wrap container doesn't inherit
   weird margin from the inserted div. The pre-wrap surrounds raw text
   with a few inline page-break divs in the middle. */
.reading-body .reading-page-break {
    /* Already block-level by default; explicit for clarity */
    display: block;
}

/* Admin upload row: file picker + helper text on one line on desktop,
   stacking gracefully on narrow screens. Sits above the textarea. */
.reading-upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
    padding: .65rem .8rem;
    background: var(--bg-soft);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.reading-upload-row input[type="file"] {
    flex: 0 0 auto;
}
.reading-upload-help {
    flex: 1 1 240px;
    margin: 0;
    color: var(--ink-mute);
    font-size: .85rem;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .reading-upload-row { padding: .65rem; }
}

/* ====================================================================
   Clickable group cards
   - .group-card-link : the whole card is an <a> (Browse — non-member members case)
   - .group-card-clickable : div with JS click handler (My groups)
   Both share the same hover treatment for a consistent feel.
   ==================================================================== */

.group-card-link {
    /* Strip default anchor styling so the card looks like the others */
    text-decoration: none;
    color: inherit;
    display: flex; /* match .group-card */
    flex-direction: column;
}
.group-card-link:hover { text-decoration: none; }
.group-card-link h3 { color: inherit; }

.group-card-link,
.group-card-clickable {
    cursor: pointer;
    transition: box-shadow .15s ease, transform .12s ease, border-color .15s ease;
}
.group-card-link:hover,
.group-card-clickable:hover {
    box-shadow: 0 4px 16px rgba(15, 38, 71, 0.1);
    border-color: var(--gold);
    transform: translateY(-1px);
}
.group-card-clickable:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ====================================================================
   Group help panel — collapsed accordion in sidebar for group admins
   Uses native <details>/<summary>; no JavaScript required.
   ==================================================================== */

.group-help-panel {
    /* Override default summary marker; we'll provide our own chevron */
    padding: 0;
}
.group-help-panel > summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    user-select: none;
    color: var(--ink);
    transition: background .15s ease;
}
.group-help-panel > summary::-webkit-details-marker { display: none; }
.group-help-panel > summary:hover { background: var(--bg-soft); }
.group-help-panel[open] > summary { border-bottom: 1px solid var(--line-soft); }
.group-help-icon { font-size: 1.15rem; flex-shrink: 0; }
.group-help-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
}
.group-help-chevron {
    color: var(--ink-mute);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform .2s ease;
}
.group-help-panel[open] > summary > .group-help-chevron {
    transform: rotate(90deg);
}
.group-help-body {
    padding: 0 1.5rem 1.25rem;
    font-size: .92rem;
    line-height: 1.5;
}
.group-help-body h4 {
    margin: 1rem 0 .35rem;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--gold-deep);
}
.group-help-body p {
    margin: .35rem 0;
    color: var(--ink-soft);
}
.group-help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.group-help-list li {
    padding: .4rem 0;
    border-bottom: 1px dashed var(--line-soft);
    color: var(--ink-soft);
    font-size: .9rem;
}
.group-help-list li:last-child { border-bottom: none; }
.group-help-list a {
    font-weight: 600;
    color: var(--ink);
}

/* ====================================================================
   Weekly readings sidebar list — title-first stacked cards
   Title spans full width; week number + actions sit on a second row.
   ==================================================================== */

.weekly-readings-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.weekly-readings-item {
    padding: .75rem 0;
    border-bottom: 1px solid var(--line-soft);
}
.weekly-readings-item:first-child { padding-top: 0; }
.weekly-readings-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.weekly-readings-title {
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: .35rem;
    /* Wrap normally — full panel width is now available */
    word-wrap: break-word;
}
.weekly-readings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.weekly-readings-week {
    font-size: .82rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.weekly-readings-actions {
    display: flex;
    gap: .35rem;
    align-items: center;
}
.weekly-readings-actions .inline-form {
    display: inline;
    margin: 0;
}

/* ====================================================================
   Inline submit buttons styled to look like text links
   Used for inline delete actions in discussion bylines.
   ==================================================================== */

.link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--gold);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}
.link-button:hover {
    text-decoration: underline;
}
.link-button:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ====================================================================
   Attachment row in edit forms
   File icon + filename + size + small × delete button, all in one line.
   Used by discussion-edit.php and admin/inspiration-edit.php.
   ==================================================================== */

.attachment-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .55rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.attachment-row-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attachment-row-size {
    font-size: .82rem;
    flex-shrink: 0;
}
.attachment-row-delete {
    display: inline;
    margin: 0;
    line-height: 1;
}
.attachment-delete-btn {
    background: transparent;
    border: none;
    color: var(--ink-mute);
    font-size: 1.3rem;
    line-height: 1;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
    flex-shrink: 0;
}
.attachment-delete-btn:hover {
    background: var(--danger, #c0382b);
    color: #fff;
}
.attachment-delete-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}

/* ====================================================================
   Discussion card — attachment indicator + inline audio player
   ==================================================================== */

/* Small paperclip next to titles that have any attachment */
.attachment-indicator {
    display: inline-block;
    margin-left: .2rem;
    font-size: .9em;
    vertical-align: baseline;
    opacity: .7;
}

/* Inline audio player on discussion cards in the group's Discussions list */
.discussion-audio-inline {
    margin-top: .55rem;
}
.discussion-audio-inline audio {
    display: block;
    height: 36px;
}

/* ====================================================================
   Inspirations: compact list on narrow viewports
   Defined after the desktop rules above so the cascade applies correctly
   even though both target the same selectors.
   ==================================================================== */

@media (max-width: 880px) {
    .inspiration-link-preview { display: none; }
    .inspiration-link-meta { display: none; }
    .inspiration-link-title {
        -webkit-line-clamp: 1;
        font-size: .92rem;
        margin-bottom: 0;
    }
    .inspiration-list-item { padding: .5rem 0; }
    .inspiration-list-item + .inspiration-list-item {
        border-top: 1px solid var(--line-soft);
    }
    .inspiration-link::after {
        content: "›";
        float: right;
        color: var(--gold);
        font-size: 1.2rem;
        line-height: 1;
        margin-left: .5rem;
    }
}

/* ============================================================
   HERO-EMBEDDED SONG PLAYER
   Sits inside the navy .hero section, below the existing two-column
   hero-inner. Native <audio> controls render as a light pill on the
   dark background, which looks fine across browsers without custom
   skinning.
   ============================================================ */
.hero-song {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
    text-align: center;
}
.hero-song-meta {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
    font-size: .9rem;
    color: rgba(255, 255, 255, .7);
}
.hero-song-eyebrow {
    font-family: "Iowan Old Style", Georgia, serif;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .72rem;
    font-style: italic;
}
.hero-song-title {
    font-family: "Iowan Old Style", Georgia, serif;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: .02em;
}
.hero-song-credit {
    font-style: italic;
    color: rgba(255, 255, 255, .6);
}
.hero-song-player {
    width: 100%;
    max-width: 480px;
    display: block;
    margin: 0 auto;
}
.hero-song-actions {
    margin: .9rem 0 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .55);
}
.hero-song-actions a {
    color: var(--gold-bright);
    text-decoration: none;
    padding: .25rem .5rem;
    border-radius: 4px;
    transition: background .2s ease, color .2s ease;
}
.hero-song-actions a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    text-decoration: none;
}
.hero-song-sep { margin: 0 .35rem; opacity: .5; }

@media (max-width: 600px) {
    .hero-song { margin-top: 2rem; padding-top: 1.5rem; }
    .hero-song-meta { font-size: .85rem; gap: .35rem; }
    .hero-song-credit { width: 100%; }
}
