/* ============================================================
   Catholic Content Engine Theme — theme.css
   Aesthetic: Refined editorial. Warm parchment. Gold accents.
   Cormorant Garamond display + DM Sans body.
   ============================================================ */

:root {
    --gold: #9a7a3a;
    --gold-light: #f5edd6;
    --gold-mid: #c9a84c;
    --parchment: #faf8f3;
    --parchment-dark: #f2ede2;
    --ink: #1a1714;
    --ink2: #3d3830;
    --ink3: #7a7268;
    --border: #e4ddd0;
    --border2: #cfc6b4;
    --white: #ffffff;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --max-w: 1200px;
    --header-h: 72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--parchment);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Container ---- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}
.site-header__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
}
.site-logo__cross {
    display: block;
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}
.site-logo__cross::before,
.site-logo__cross::after {
    content: '';
    position: absolute;
    background: var(--gold);
    border-radius: 2px;
}
.site-logo__cross::before { width: 3px; height: 20px; left: 8.5px; top: 0; }
.site-logo__cross::after  { width: 20px; height: 3px; left: 0; top: 8.5px; }
.site-logo__cross--sm { width: 16px; height: 16px; }
.site-logo__cross--sm::before { width: 2.5px; height: 16px; left: 6.75px; }
.site-logo__cross--sm::after  { width: 16px; height: 2.5px; top: 6.75px; }
.site-logo__text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink);
}
.site-nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-nav__list a {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--ink2);
    padding: 7px 14px;
    border-radius: var(--radius);
    transition: background .15s, color .15s;
    text-decoration: none;
    white-space: nowrap;
}
.site-nav__list a:hover {
    background: var(--gold-light);
    color: var(--gold);
}
.site-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.site-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink2);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

/* ============================================================
   SAINTS ARCHIVE PAGE
   ============================================================ */
.saints-archive-page { min-height: 80vh; }

.saints-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 48px 0 0;
}
.saints-hero .container { padding-bottom: 0; }

.eyebrow {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 10px;
}
.saints-hero__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -.01em;
    margin-bottom: 8px;
}
.saints-hero__title em {
    font-style: italic;
    color: var(--gold);
}
.saints-hero__sub {
    font-size: 15px;
    color: var(--ink3);
    font-weight: 300;
    margin-bottom: 28px;
}

/* ---- Toolbar (from plugin shortcode) ---- */
.cce-saints-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 20px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---- Month blocks ---- */
.cce-month-block { margin: 32px 0; }
.cce-month-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.cce-month-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: .01em;
}
.cce-month-rule { flex: 1; height: 1px; background: var(--border); }
.cce-month-count { font-size: 12px; color: var(--ink3); font-weight: 300; }

/* ---- Saints grid ---- */
.cce-saints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* ---- Saint card ---- */
.cce-saint-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
.cce-saint-card:hover {
    border-color: var(--gold-mid);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(26,23,20,.08);
}
.cce-card-link { text-decoration: none; color: inherit; display: block; }
.cce-card-link:hover { text-decoration: none; }

.cce-card-thumb { position: relative; }
.cce-thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 160px;
    gap: 1px;
    background: var(--border);
    overflow: hidden;
}
.cce-thumb-cell {
    background: var(--parchment-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cce-thumb-cell img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cce-thumb-empty { color: var(--border2); }
.cce-thumb-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(26,23,20,.6);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 999px;
}

.cce-card-body { padding: 13px 15px 10px; }
.cce-card-feast {
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 4px;
}
.cce-card-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 6px;
}
.cce-card-bio {
    font-size: 12.5px;
    color: var(--ink3);
    font-weight: 300;
    line-height: 1.5;
}

.cce-card-foot {
    padding: 8px 15px 11px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.cce-format-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.cce-fmt-tag {
    font-size: 10px;
    color: var(--ink3);
    background: var(--parchment-dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
}
.cce-card-cta { font-size: 12px; color: var(--gold); font-weight: 500; white-space: nowrap; }

/* ---- Search / filter ---- */
.cce-saints-search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.cce-search-icon {
    position: absolute; left: 11px; top: 50%;
    transform: translateY(-50%); color: var(--ink3); pointer-events: none;
}
.cce-saints-search-wrap input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    background: var(--parchment);
    font-size: 13px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color .15s;
}
.cce-saints-search-wrap input:focus { border-color: var(--gold-mid); background: var(--white); }
#cce-saints-month {
    padding: 9px 30px 9px 11px;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    background: var(--parchment);
    font-size: 13px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237a7268' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}
#cce-saints-month:focus { border-color: var(--gold-mid); }
.cce-saints-count { font-size: 12px; color: var(--ink3); font-weight: 300; margin-left: auto; white-space: nowrap; }
.cce-saints-empty { padding: 3rem 0; text-align: center; color: var(--ink3); font-size: 14px; font-weight: 300; }

/* ============================================================
   SINGLE SAINT PAGE
   ============================================================ */
.saint-single { min-height: 80vh; }

.saint-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 40px 0 36px;
}

/* Breadcrumb */
.cce-breadcrumb {
    font-size: 12px;
    color: var(--ink3);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cce-breadcrumb a { color: var(--gold); text-decoration: none; }
.cce-breadcrumb a:hover { text-decoration: underline; }
.cce-breadcrumb span[aria-hidden] { color: var(--border2); }

/* Saint bio block */
.cce-saint-bio-block {}
.cce-saints-eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 8px;
}
.cce-saints-h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -.01em;
    margin-bottom: 14px;
}
.cce-saint-bio {
    font-size: 16px;
    color: var(--ink2);
    font-weight: 300;
    line-height: 1.75;
    max-width: 680px;
    margin-bottom: 18px;
}
.cce-saint-why {
    font-size: 14px;
    color: var(--ink2);
    font-weight: 300;
    line-height: 1.65;
    padding: 14px 18px;
    background: var(--gold-light);
    border-left: 3px solid var(--gold-mid);
    max-width: 680px;
}
.cce-saint-why strong { color: var(--gold); font-weight: 500; }

/* Assets section */
.saint-assets-wrap { padding: 40px 0 56px; }

.cce-saint-assets-section {}
.cce-assets-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.cce-assets-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
}
.cce-assets-count { font-size: 13px; color: var(--ink3); font-weight: 300; }

.cce-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.cce-asset-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .15s, transform .15s;
}
.cce-asset-item:hover {
    border-color: var(--gold-mid);
    transform: translateY(-2px);
}
.cce-asset-preview {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--parchment-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.cce-asset-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cce-asset-placeholder { color: var(--border2); }
.cce-asset-fmt-badge { display: none !important; }
.cce-asset-foot {
    padding: 9px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.cce-asset-label {
    font-size: 12px;
    color: var(--ink3);
    font-weight: 300;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cce-asset-dl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gold);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.cce-asset-dl:hover { text-decoration: underline; }
.cce-saint-no-assets { color: var(--ink3); font-size: 14px; font-weight: 300; padding: 2rem 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.65);
    padding: 40px 0;
    margin-top: auto;
}
.site-footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-footer__name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,.85);
}
.site-footer__list {
    list-style: none;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.site-footer__list a {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    padding: 4px 10px;
    border-radius: 6px;
    transition: color .15s;
    text-decoration: none;
}
.site-footer__list a:hover { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer__copy { font-size: 12px; color: rgba(255,255,255,.35); }

/* ============================================================
   GENERAL PAGE CONTENT
   ============================================================ */
.page-content { padding: 48px 0; }
.page-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 24px;
}
.page-body { max-width: 740px; }
.page-body p { margin-bottom: 1.2em; color: var(--ink2); line-height: 1.75; }
.page-body h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 600; margin: 2em 0 .6em; }
.page-body h3 { font-size: 18px; font-weight: 500; margin: 1.5em 0 .5em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .cce-saints-toolbar { flex-direction: column; align-items: stretch; }
    .cce-saints-search-wrap { max-width: 100%; }
    .cce-saints-count { margin-left: 0; }
    .cce-saints-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cce-assets-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 480px) {
    .cce-saints-grid { grid-template-columns: 1fr 1fr; }
    .cce-assets-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   HOMEPAGE
   ============================================================ */

/* ---- Hero ---- */
.home-hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 64px 0 56px;
    overflow: hidden;
    position: relative;
}
.home-hero__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}
.home-hero__eyebrow {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 14px;
}
.home-hero__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -.01em;
    margin-bottom: 16px;
}
.home-hero__title em {
    color: var(--gold);
    font-style: italic;
}
.home-hero__sub {
    font-size: 16px;
    color: var(--ink3);
    font-weight: 300;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 28px;
}
.home-hero__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.home-hero__note {
    font-size: 12px;
    color: var(--ink3);
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 6px;
}
.home-hero__note svg { flex-shrink: 0; opacity: .6; }

/* Hero decorative graphic */
.home-hero__graphic {
    width: 200px;
    height: 200px;
    position: relative;
    flex-shrink: 0;
}
.home-hero__cross {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
}
.home-hero__cross::before,
.home-hero__cross::after {
    content: '';
    position: absolute;
    background: var(--gold);
    border-radius: 3px;
    opacity: .35;
}
.home-hero__cross::before { width: 8px; height: 60px; left: 26px; top: 0; }
.home-hero__cross::after  { width: 60px; height: 8px; left: 0; top: 26px; }
.home-hero__orb {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--gold-mid);
    opacity: .18;
}
.home-hero__orb--1 { width: 160px; height: 160px; top: 20px; left: 20px; }
.home-hero__orb--2 { width: 200px; height: 200px; top: 0; left: 0; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
    background: var(--ink);
    color: var(--white);
}
.btn--primary:hover { background: var(--ink2); color: var(--white); }
.btn--outline {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold-mid);
}
.btn--outline:hover { background: var(--gold-light); }
.btn--gold {
    background: var(--gold);
    color: var(--white);
}
.btn--gold:hover { background: var(--gold-mid); color: var(--white); }

/* ---- Trust bar ---- */
.home-trust {
    background: var(--parchment-dark);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.home-trust__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.home-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 32px;
}
.home-trust__num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 2px;
}
.home-trust__label { font-size: 11px; color: var(--ink3); font-weight: 300; text-transform: uppercase; letter-spacing: .08em; }
.home-trust__divider { width: 1px; height: 36px; background: var(--border2); }

/* ---- How it works ---- */
.home-how {
    padding: 64px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.home-how__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--ink);
    text-align: center;
    margin-bottom: 40px;
}
.home-how__steps {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}
.home-how__step {
    flex: 1;
    text-align: center;
    padding: 0 16px;
}
.home-how__step-num {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gold-light);
    border: 1.5px solid var(--gold-mid);
    color: var(--gold);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.home-how__step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}
.home-how__step-body {
    font-size: 13.5px;
    color: var(--ink3);
    font-weight: 300;
    line-height: 1.6;
}
.home-how__step-arrow {
    font-size: 20px;
    color: var(--border2);
    margin-top: 12px;
    flex-shrink: 0;
}

/* ---- Library section ---- */
.home-library {
    padding: 56px 0 80px;
    background: var(--parchment);
}
.home-library__header {
    text-align: center;
    margin-bottom: 32px;
}
.home-library__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.home-library__sub {
    font-size: 14px;
    color: var(--ink3);
    font-weight: 300;
}

/* ============================================================
   EMAIL GATE — MODAL + BANNER
   ============================================================ */

/* Overlay */
#cce-email-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 23, 20, .55);
    z-index: 9998;
    backdrop-filter: blur(2px);
}
#cce-email-overlay.is-open { display: block; }

/* Modal */
#cce-email-modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 40px 40px;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 24px 60px rgba(26,23,20,.18);
    text-align: center;
}
#cce-email-modal.is-open { display: block; }

.cce-gate-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--ink3);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .15s;
}
.cce-gate-close:hover { background: var(--parchment-dark); }

.cce-modal-cross {
    width: 28px; height: 28px;
    position: relative;
    margin: 0 auto 16px;
}
.cce-modal-cross::before,
.cce-modal-cross::after {
    content: '';
    position: absolute;
    background: var(--gold);
    border-radius: 2px;
}
.cce-modal-cross::before { width: 4px; height: 28px; left: 12px; top: 0; }
.cce-modal-cross::after  { width: 28px; height: 4px; left: 0; top: 12px; }

.cce-modal-eyebrow {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 8px;
}
.cce-modal-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 12px;
}
.cce-modal-sub {
    font-size: 14px;
    color: var(--ink3);
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 24px;
}

.cce-gate-field { margin-bottom: 12px; text-align: left; }
.cce-gate-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink2);
    margin-bottom: 6px;
}
.cce-gate-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border2);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: var(--parchment);
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}
.cce-gate-input:focus { border-color: var(--gold-mid); background: var(--white); }
.cce-gate-input::placeholder { color: var(--ink3); }

.cce-gate-error {
    font-size: 13px;
    color: #b42318;
    margin-bottom: 8px;
    text-align: left;
}

.cce-gate-submit {
    width: 100%;
    padding: 14px;
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
    margin-bottom: 16px;
}
.cce-gate-submit:hover:not(:disabled) { background: var(--ink2); }
.cce-gate-submit:disabled { opacity: .6; cursor: not-allowed; }

.cce-modal-fine {
    font-size: 11px;
    color: var(--ink3);
    font-weight: 300;
    line-height: 1.5;
}

/* Gate banner on single saint page */
.cce-gate-banner {
    background: var(--gold-light);
    border: 1px solid var(--gold-mid);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.cce-gate-banner__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cce-gate-banner__icon {
    font-size: 18px;
    color: var(--gold);
    flex-shrink: 0;
}
.cce-gate-banner__text {
    flex: 1;
    font-size: 14px;
    color: var(--ink2);
    line-height: 1.55;
    min-width: 180px;
}
.cce-gate-banner__text strong { color: var(--ink); }
.cce-gate-btn {
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}
.cce-gate-btn:hover { background: var(--ink2); }

/* Locked download button */
.cce-asset-dl--locked {
    background: none;
    border: 1px solid var(--border2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink3);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: border-color .15s, color .15s;
}
.cce-asset-dl--locked:hover { border-color: var(--gold-mid); color: var(--gold); }

/* ============================================================
   RESPONSIVE — HOMEPAGE
   ============================================================ */
@media (max-width: 768px) {
    /* Hero */
    .home-hero { padding: 28px 0 24px; }
    .home-hero__inner { grid-template-columns: 1fr; gap: 0; }
    .home-hero__graphic { display: none; }
    .home-hero__eyebrow { font-size: 10px; margin-bottom: 8px; }
    .home-hero__title { font-size: 30px; line-height: 1.15; margin-bottom: 12px; }
    .home-hero__sub { font-size: 14px; margin-bottom: 20px; }
    .home-hero__actions { flex-direction: row; gap: 8px; flex-wrap: wrap; }

    /* Buttons — make sure they look like buttons on mobile */
    .btn {
        padding: 11px 18px;
        font-size: 13px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        text-decoration: none;
    }
    .btn--primary {
        background: var(--ink);
        color: var(--white) !important;
    }
    .btn--outline {
        background: transparent;
        color: var(--gold) !important;
        border: 1.5px solid var(--gold-mid);
    }

    /* Library section */
    .home-library { padding: 24px 0 48px; }

    /* Toolbar */
    .cce-saints-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
    .cce-saints-search-wrap { max-width: 100%; }
    .cce-saints-count { margin-left: 0; font-size: 12px; }

    /* Saints grid — 2 columns on mobile */
    .cce-saints-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cce-assets-grid { grid-template-columns: 1fr 1fr; }

    /* Saint cards */
    .cce-saint-card { border-radius: 10px; }
    .cce-saint-card__thumb { height: 110px; }
    .cce-saint-card__body { padding: 8px 10px 6px; }
    .cce-saint-card__feast { font-size: 8px; margin-bottom: 2px; }
    .cce-saint-card__name { font-size: 13px; margin-bottom: 3px; }
    .cce-saint-card__bio { font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .cce-saint-card__foot { padding: 6px 10px 8px; }

    /* Modal */
    #cce-email-modal { padding: 36px 20px 28px; width: 94%; border-radius: 16px; }
    .cce-modal-title { font-size: 24px; }
    .cce-modal-sub { font-size: 13px; }

    /* Gate banner */
    .cce-gate-banner__inner { flex-wrap: wrap; gap: 10px; }

    /* Footer */
    .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }

    /* Header */
    :root { --header-h: 56px; }
    .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px; }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; gap: 4px; }
    .site-nav__toggle { display: flex; }
    .saints-hero { padding: 32px 0 0; }
}
