/* ============================================================
   WOW Ministries — Theme
   Monochrome marble. Matches the logo: white linen/marble bg,
   pure black ink, Anton display + Montserrat body.
   ============================================================ */

:root {
    --bg:           #f1efee;   /* warm linen white from logo bg */
    --bg-alt:       #e8e5e3;   /* slightly deeper marble */
    --bg-card:      #ffffff;
    --ink:          #0a0a0a;   /* logo black */
    --ink-soft:     #1f1f1f;   /* body */
    --ink-muted:    #5a5755;   /* secondary text */
    --line:         #cfcbc7;   /* hairline divider */
    --accent:       #0a0a0a;   /* monochrome — black is the accent */
    --accent-dark:  #000000;
    --accent-soft:  #e6e3e0;   /* light gray for hover bg */
    --gold:         #b8a36b;   /* subtle warm highlight only */
    --shadow:       0 2px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg:    0 12px 40px rgba(0, 0, 0, 0.10);

    --font-display: 'Anton', 'Oswald', 'Arial Narrow', sans-serif;
    --font-sans:    'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --container:    1320px;
    --radius:       2px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink-soft);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* White marble photo, fixed so it doesn't scroll, with a soft warm tint overlay */
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(241, 239, 238, 0.55), rgba(241, 239, 238, 0.55)),
        url('/images/hero-marble.jpg');
    background-attachment: fixed, fixed;
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s ease, color 0.15s ease; }
a:hover { border-bottom-color: var(--ink); }
ul, ol { padding-left: 1.4rem; }
ul li, ol li { margin: 0.35rem 0; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.05;
    margin: 0 0 0.5em;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.7rem); letter-spacing: 0.04em; }
h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink);
}
p { margin: 0 0 1.1rem; }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--ink-muted);
    display: inline-block;
    margin-bottom: 0.9rem;
}
hr.divider {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 2.5rem 0;
}
hr.divider-center {
    width: 80px;
    height: 1px;
    background: var(--ink);
    border: 0;
    margin: 1.2rem auto 1.6rem;
}

/* ===== Layout ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section {
    padding: 5.5rem 0;
}
.section--alt {
    background: rgba(232, 229, 226, 0.55);
    backdrop-filter: blur(2px);
}
.section--white {
    background: rgba(255, 255, 255, 0.7);
}
.section--narrow .container { max-width: 920px; }
/* Dashboard uses full container width */
.dashboard-wrap { padding: 2rem 0 4rem; }
.dashboard-wrap .container { max-width: var(--container); }

/* ===== Header / Nav ===== */
.site-header {
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(241, 239, 238, 0.92);
    backdrop-filter: blur(10px);
}
.site-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
    border: none;
}
.site-logo:hover { border: none; }
.site-logo img { height: 72px; width: auto; }

.site-nav {
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
    align-items: center;
}
.nav-link {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
    padding: 0.7rem 1rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav-link.active { color: var(--ink); border-bottom-color: var(--ink); }

/* Dropdown groups */
.nav-group {
    position: relative;
}
.nav-link--has-children .nav-chev {
    font-size: 0.6rem;
    margin-left: 0.15rem;
    opacity: 0.7;
    transition: transform 0.18s ease;
}
.nav-group:hover .nav-link--has-children .nav-chev,
.nav-group:focus-within .nav-link--has-children .nav-chev {
    transform: translateY(2px);
}
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: rgba(241, 239, 238, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-top: 2px solid var(--ink);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 200;
}
.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-sublink {
    display: block;
    padding: 0.65rem 1.2rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-transform: none;
    letter-spacing: 0.04em;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}
.nav-sublink:hover {
    background: var(--accent-soft);
    color: var(--ink);
    border-bottom-color: transparent;
}
.nav-sublink.active {
    color: var(--ink);
    background: var(--accent-soft);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

@media (max-width: 1100px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1rem 1rem;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    .site-nav.open { display: flex; }
    .nav-link {
        padding: 0.95rem 0.5rem;
        border-bottom: 1px solid var(--line);
        justify-content: space-between;
    }
    .nav-group { width: 100%; }
    .nav-group .nav-link--has-children { width: 100%; }
    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        border: none;
        border-top: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .nav-group.open .nav-submenu { max-height: 600px; }
    .nav-sublink {
        padding: 0.7rem 1.2rem 0.7rem 1.8rem;
        border-bottom: 1px solid var(--line);
        font-size: 0.85rem;
        background: var(--bg-alt);
    }
    .nav-toggle { display: block; }
}

/* ===== Hero ===== */
.hero {
    padding: 5rem 0 3.5rem;
    text-align: center;
}
.hero--home {
    padding: 7rem 0 5rem;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/images/wow-cross-medallion.svg');
    background-repeat: no-repeat;
    background-position: 80% 50%;
    background-size: 320px;
    opacity: 0.08;
    transform: rotate(-8deg);
    color: var(--ink);
}
@media (max-width: 720px) {
    .hero__bg::before { background-size: 380px; background-position: 110% 50%; }
}
.hero__inner { position: relative; z-index: 1; }
.hero__logo {
    width: clamp(360px, 75vw, 780px);
    height: auto;
    margin: 0 auto 2.6rem;
    display: block;
    color: var(--ink);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.08));
}
.hero__title {
    margin-top: 0.2rem;
    margin-bottom: 0.6rem;
}
.hero__subtitle {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--ink-soft);
    max-width: 660px;
    margin: 0.5rem auto 1.5rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
}
.hero__cta {
    margin-top: 2rem;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.95rem 2rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}
.btn--primary {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn--primary:hover {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn--outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--ink); }
.btn--sm { padding: 0.6rem 1.3rem; font-size: 0.72rem; }

a.btn { border-bottom-width: 1px; }
a.btn:hover { border-bottom-width: 1px; }

/* ===== Cards / Tiles ===== */
.tile-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 2rem 0;
}
.tile {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
a.tile { color: inherit; border-bottom: 1px solid var(--line); }
a.tile:hover { border-bottom: 1px solid var(--ink); }
.tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--ink);
}
.tile h3 {
    margin-top: 0;
    font-size: 1.45rem;
    color: var(--ink);
}
.tile p { color: var(--ink-muted); font-size: 0.92rem; flex-grow: 1; line-height: 1.65; }
.tile__link {
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.tile__link::after { content: ' →'; transition: margin 0.18s ease; }
.tile:hover .tile__link::after { margin-left: 0.25rem; }

/* Cover image inside a tile (used by /shop) — fixed 4:3 ratio */
.tile__cover {
    position: relative;
    width: calc(100% + 3.2rem);
    margin: -1.8rem -1.6rem 1.2rem;
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.tile__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tile__cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.tile__price {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--ink);
}
.tile__category {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.4rem;
}

/* Shop grid: exactly 3 cards per row on desktop, 2 on tablet, 1 on phone. */
.tile-grid--shop {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
@media (max-width: 1100px) {
    .tile-grid--shop { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .tile-grid--shop { grid-template-columns: 1fr; gap: 1.25rem; }
}

.tile__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.tile__body p { flex-grow: 1; }

/* Shop card actions row pinned to the bottom of the card. */
.tile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}
.tile__actions .btn { margin: 0 !important; }

/* ===== Resource list ===== */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.resource-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.resource-list li:last-child { border-bottom: none; }
.resource-list a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    word-break: break-word;
}
.resource-list .res-desc {
    font-size: 0.86rem;
    color: var(--ink-muted);
    font-weight: 400;
}

/* ===== Mission / pull blocks ===== */
.mission-block {
    background: rgba(255, 255, 255, 0.7);
    border-left: 3px solid var(--ink);
    padding: 1.8rem 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.mission-block h3 {
    color: var(--ink);
    margin-top: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
}
.mission-block p {
    font-family: var(--font-sans);
    font-size: 1.02rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.7;
}

/* ===== Book list ===== */
.book-list {
    list-style: none;
    padding: 0;
    columns: 2;
    column-gap: 2.5rem;
}
.book-list li {
    break-inside: avoid;
    padding: 0.55rem 0;
    border-bottom: 1px dotted var(--line);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--ink);
}
@media (max-width: 700px) {
    .book-list { columns: 1; }
}

/* ===== Footer ===== */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.5rem 0 1.5rem;
    margin-top: 5rem;
    font-size: 0.88rem;
}
.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
}
.site-footer__brand img {
    height: 60px;
    width: auto;
    filter: invert(1) brightness(1.05);
    margin-bottom: 1.2rem;
}
.site-footer__brand p { color: rgba(255, 255, 255, 0.55); max-width: 340px; }
.site-footer h4 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin: 0.35rem 0; }
.site-footer a { color: rgba(255, 255, 255, 0.65); border-bottom-color: transparent; }
.site-footer a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.4); }
.site-footer__bottom {
    max-width: var(--container);
    margin: 2.8rem auto 0;
    padding: 1.4rem 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 720px) {
    .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== Forms ===== */
.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; }
.form-field label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea,
.form-field select {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.8rem 0.9rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.form-field textarea { min-height: 140px; resize: vertical; }

/* ===== Cookie banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    border-top: 1px solid var(--gold);
    padding: 1.2rem 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-content {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.cookie-banner-text p { margin: 0 0 0.2rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); font-weight: 300; }
.cookie-banner-text a { color: var(--gold); border-bottom-color: var(--gold); }
.cookie-banner-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn-primary, .cookie-btn-secondary {
    padding: 0.6rem 1.4rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid transparent;
}
.cookie-btn-primary { background: #fff; color: var(--ink); }
.cookie-btn-primary:hover { background: var(--gold); color: var(--ink); }
.cookie-btn-secondary { background: transparent; color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.25); }
.cookie-btn-secondary:hover { color: #fff; border-color: #fff; }
@media (max-width: 600px) {
    .cookie-banner-content { flex-direction: column; gap: 1rem; }
    .cookie-banner-actions { width: 100%; }
    .cookie-btn-primary, .cookie-btn-secondary { flex: 1; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.muted { color: var(--ink-muted); }
.placeholder-block {
    text-align: center;
    padding: 4rem 1.5rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.5);
}
.placeholder-block p {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    margin: 0;
    text-transform: uppercase;
}

/* ===== Tabs (dashboard) ===== */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--line);
    margin: 1.5rem 0 2rem;
    overflow-x: auto;
}
.tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 0.85rem 1.1rem;
    margin-bottom: -1px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--ink-soft); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 600px) {
    .tab { padding: 0.7rem 0.85rem; font-size: 0.66rem; letter-spacing: 0.14em; }
}

.tab-panel { padding-top: 1.5rem; }
.tab-panel[hidden] { display: none; }
.sub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}
.sub-actions .btn { margin: 0 !important; }

/* ===== Form status & misc dashboard helpers ===== */
.form-status {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0.75rem 0 0;
    min-height: 1.2em;
}
.form-status--ok::before { content: "\2713  "; font-weight: 700; }
.form-status--err::before { content: "\2717  "; font-weight: 700; }

.profile-card {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.7);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
}
.profile-card h3 { margin-top: 0; }

.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}
.toggle-row:last-child { border-bottom: 0; }
.toggle-row input[type="checkbox"] { margin-top: 0.3rem; transform: scale(1.2); accent-color: var(--ink); }
.toggle-row__body { flex: 1; }
.toggle-row__label { font-weight: 600; color: var(--ink); display: block; }
.toggle-row__desc  { font-size: 0.85rem; color: var(--ink-muted); margin-top: 0.15rem; }

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.history-table th, .history-table td {
    text-align: left;
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid var(--line);
}
.history-table th {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

/* ============================================================
   TESTIMONIES
   ============================================================ */

/* ----- Dashboard "My Stories" tab ----- */
.stories-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap;
}
.stories-list { display: flex; flex-direction: column; gap: 0.75rem; }
.story-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
}
.story-row__thumb {
    width: 110px; height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--bg-alt);
}
.story-row__thumb--empty {
    background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 8px, var(--bg) 8px, var(--bg) 16px);
}
.story-row__title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.15; margin-bottom: 0.25rem; }
.story-row__meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-muted); }
.story-row__summary { margin-top: 0.4rem; font-size: 0.92rem; color: var(--ink-soft); }
.story-row__decline { margin-top: 0.4rem; font-size: 0.85rem; color: #a33; font-style: italic; }
.story-row__date { color: var(--ink-muted); }
.story-row__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
@media (max-width: 720px) {
    .story-row { grid-template-columns: 1fr; }
    .story-row__thumb { width: 100%; height: 160px; }
}

/* ----- Status badges (used in dashboard + admin) ----- */
.status-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-card);
    color: var(--ink-muted);
    white-space: nowrap;
}
.status-badge--submitted { background: #fff7e0; border-color: #e8d28a; color: #6b4f00; }
.status-badge--published { background: #e3f4e6; border-color: #95c79f; color: #1e5b2e; }
.status-badge--declined  { background: #fbe4e4; border-color: #d29696; color: #8b1f1f; }

/* ----- Editor + dropzone ----- */
.story-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.link-btn {
    background: none; border: 0; padding: 0;
    color: var(--ink); text-decoration: underline; cursor: pointer;
    font: inherit;
}
.dropzone {
    margin-top: 0.4rem;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone--hover { border-color: var(--ink); background: var(--accent-soft); }
.dropzone__hint { margin: 0.25rem 0; color: var(--ink-muted); font-size: 0.9rem; }

.story-media-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}
.media-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: grab;
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tile--drag { opacity: 0.5; }
.media-tile--cover { outline: 3px solid var(--gold); outline-offset: -3px; }
.media-tile--uploading,
.media-tile--err {
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-muted); font-size: 0.8rem;
}
.media-tile--err { background: #fbe4e4; color: #8b1f1f; }
.media-tile__badge {
    position: absolute; top: 0.4rem; left: 0.4rem;
    background: var(--gold); color: #1a1a1a;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
}
.media-tile__overlay {
    position: absolute; inset: auto 0 0 0;
    padding: 0.4rem;
    display: flex; justify-content: flex-end; gap: 0.3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
    opacity: 0; transition: opacity 0.15s ease;
}
.media-tile:hover .media-tile__overlay { opacity: 1; }
.media-tile__btn {
    background: rgba(255,255,255,0.92); color: #1a1a1a;
    border: 0; border-radius: 999px;
    width: 28px; height: 28px;
    font-size: 0.85rem; line-height: 1;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.media-tile__btn:hover { background: #fff; }
.media-tile__btn--del { color: #a13; }

/* ----- Public listing (success-stories.html) ----- */
.story-filter {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    margin: 1.25rem 0 1.5rem;
}
.story-filter__btn {
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.story-filter__btn:hover { border-color: var(--ink); }
.story-filter__btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}
.story-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--ink); }
.story-card__cover { aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.story-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.story-card:hover .story-card__cover img { transform: scale(1.04); }
.story-card__cover--empty {
    background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 10px, var(--bg) 10px, var(--bg) 20px);
}
.story-card__body { padding: 1.1rem 1.15rem 1.25rem; }
.story-card__cat {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}
.story-card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.1;
    margin: 0 0 0.5rem;
    color: var(--ink);
}
.story-card__summary { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--ink-soft); }
.story-card__meta { margin: 0; font-size: 0.78rem; color: var(--ink-muted); letter-spacing: 0.04em; }

.story-cta {
    margin-top: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    text-align: center;
}

/* ----- Public detail page (testimony.html) ----- */
.testimony-article { padding-bottom: 4rem; }
.testimony-header { text-align: center; padding: 1rem 0 2rem; }
.testimony-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    margin: 0.25rem 0 0.6rem;
}
.testimony-byline {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0;
}
.testimony-cover {
    margin: 0 0 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
}
.testimony-cover img { width: 100%; max-height: 540px; object-fit: cover; }
.testimony-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.85;
}
.testimony-body p { margin: 0 0 1.1rem; }
.testimony-gallery { margin-top: 3rem; }
.testimony-gallery__heading {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 0 0 1.25rem;
    letter-spacing: 0.04em;
}
.testimony-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.testimony-gallery__tile {
    border: 0; padding: 0;
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}
.testimony-gallery__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.testimony-gallery__tile:hover img { transform: scale(1.05); }

.lightbox {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    padding: 2rem;
    cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: default; }
.lightbox__close {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.9);
    border: 0; border-radius: 999px;
    width: 40px; height: 40px;
    font-size: 1.2rem; cursor: pointer;
}

/* ----- Admin testimonies tab ----- */
.testimony-filter { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.testimony-filter__btn {
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
}
.testimony-filter__btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.testimonies-tab .users-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.story-media-grid--review { margin-top: 0.75rem; }
