/*
 * eBulletin Showcase v2.1 — Frontend Styles
 * Premium Green & White Theme | SVG Icons
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ──────────────────────────────────────── */
:root {
    /* Greens */
    --ebs-green-50:  #f0fdf4;
    --ebs-green-100: #dcfce7;
    --ebs-green-200: #bbf7d0;
    --ebs-green-300: #86efac;
    --ebs-green-400: #4ade80;
    --ebs-green-500: #22c55e;
    --ebs-green-600: #16a34a;
    --ebs-green-700: #15803d;
    --ebs-green-800: #166534;
    --ebs-green-900: #14532d;

    /* Neutrals */
    --ebs-white:     #ffffff;
    --ebs-gray-50:   #f8fafc;
    --ebs-gray-100:  #f1f5f9;
    --ebs-gray-200:  #e2e8f0;
    --ebs-gray-400:  #94a3b8;
    --ebs-gray-500:  #64748b;
    --ebs-gray-700:  #334155;
    --ebs-gray-900:  #0f172a;

    /* Shadows */
    --ebs-shadow-sm: 0 1px 3px rgba(15,83,45,.06), 0 1px 2px rgba(15,83,45,.04);
    --ebs-shadow:    0 4px 16px rgba(15,83,45,.08), 0 2px 6px rgba(15,83,45,.04);
    --ebs-shadow-md: 0 8px 32px rgba(22,101,52,.12), 0 4px 12px rgba(22,101,52,.06);
    --ebs-shadow-lg: 0 16px 48px rgba(22,101,52,.16), 0 8px 20px rgba(22,101,52,.08);

    /* Radius */
    --ebs-r-sm: 8px;
    --ebs-r:    14px;
    --ebs-r-lg: 20px;
    --ebs-r-xl: 28px;

    /* Transition */
    --ebs-ease: cubic-bezier(.4,0,.2,1);
    --ebs-t:    0.28s var(--ebs-ease);
}

/* ── Base Wrapper ───────────────────────────────────────── */
.ebs-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--ebs-gray-900);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ── Anti-wpautop / Empty tags reset ────────────────────── */
.ebs-wrap p:empty,
.ebs-wrap > p:empty,
.ebs-month-cards > p,
.ebs-month-cards > br,
.ebs-thursday-list > p,
.ebs-thursday-list > br,
.ebs-current-grid > p,
.ebs-current-grid > br,
.ebs-prev-grid > p,
.ebs-prev-grid > br,
.ebs-day-grid > p,
.ebs-day-grid > br {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    width: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* ── SVG Icon ───────────────────────────────────────────── */
.ebs-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
}
.ebs-icon svg {
    width: 1em;
    height: 1em;
    stroke: currentColor;
}

/* ─────────────────────────────────────────────────────────
   SECTION HEADERS  (used by [ebulletin_current])
───────────────────────────────────────────────────────── */
.ebs-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    border-radius: var(--ebs-r-lg);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.ebs-section-header--current {
    background: linear-gradient(135deg, var(--ebs-green-800) 0%, var(--ebs-green-600) 50%, var(--ebs-green-500) 100%);
    color: var(--ebs-white);
    box-shadow: var(--ebs-shadow-md);
}
.ebs-section-header--current::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,.1) 0%, transparent 60%);
    pointer-events: none;
}

.ebs-section-header--waiting {
    background: linear-gradient(135deg, var(--ebs-green-50) 0%, var(--ebs-green-100) 100%);
    color: var(--ebs-green-800);
    border: 1.5px solid var(--ebs-green-200);
    box-shadow: var(--ebs-shadow-sm);
}

.ebs-section-header--prev {
    background: var(--ebs-gray-50);
    border: 1.5px solid var(--ebs-gray-200);
    color: var(--ebs-gray-700);
    box-shadow: var(--ebs-shadow-sm);
}

.ebs-section-header__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
}

.ebs-section-header--waiting .ebs-section-header__icon,
.ebs-section-header--prev    .ebs-section-header__icon {
    background: var(--ebs-green-100);
    color: var(--ebs-green-700);
}

.ebs-section-header__icon--live {
    animation: ebsPulseRing 2s ease-in-out infinite;
}
@keyframes ebsPulseRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); }
    50%       { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

.ebs-section-header__icon--wait {
    animation: ebsTickTock 1.5s ease-in-out infinite;
}
@keyframes ebsTickTock {
    0%, 100% { transform: rotate(0deg); }
    25%       { transform: rotate(8deg); }
    75%       { transform: rotate(-8deg); }
}

.ebs-section-header__text { flex: 1; }

.ebs-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
}
.ebs-section-subtitle {
    font-size: .875rem;
    margin: 0;
    opacity: .8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ebs-section-header--current h2,
.ebs-section-header--current .ebs-section-title {
    color: #ffffff !important;
}
.ebs-section-header--current p,
.ebs-section-header--current .ebs-section-subtitle {
    color: rgba(255, 255, 255, 0.92) !important;
    opacity: 1;
}

.ebs-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    flex-shrink: 0;
    animation: ebsLiveBlink 2s ease-in-out infinite;
}
@keyframes ebsLiveBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .6; }
}

/* ── Divider ────────────────────────────────────────────── */
.ebs-divider {
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--ebs-green-200) 30%, var(--ebs-green-200) 70%, transparent);
    margin: 36px 0;
}

/* ── Empty State ────────────────────────────────────────── */
.ebs-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
    background: var(--ebs-green-50);
    border: 1.5px dashed var(--ebs-green-200);
    border-radius: var(--ebs-r-lg);
    color: var(--ebs-green-700);
    font-size: .95rem;
}
.ebs-empty-state .ebs-icon { font-size: 40px; opacity: .5; }

/* ─────────────────────────────────────────────────────────
   CARDS
───────────────────────────────────────────────────────── */
.ebs-current-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
    margin-bottom: 8px;
}
.ebs-current-grid .ebs-card:first-child { grid-column: span 2; }

.ebs-prev-grid,
.ebs-day-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ebs-day-grid .ebs-card:first-child { grid-column: span 2; }

.ebs-card {
    background: var(--ebs-white);
    border-radius: var(--ebs-r);
    border: 1.5px solid var(--ebs-gray-200);
    box-shadow: var(--ebs-shadow-sm);
    overflow: hidden;
    transition: transform var(--ebs-t), box-shadow var(--ebs-t), border-color var(--ebs-t);
    display: flex;
    flex-direction: column;
}
.ebs-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ebs-shadow-lg);
    border-color: var(--ebs-green-300);
}

.ebs-card__thumb-link { display: block; }

.ebs-card__thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--ebs-green-100) 0%, var(--ebs-green-200) 100%);
}
.ebs-card--featured .ebs-card__thumb { height: 280px; }

.ebs-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ebs-ease);
}
.ebs-card:hover .ebs-card__thumb img { transform: scale(1.06); }

.ebs-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ebs-green-400);
    font-size: 52px;
}

.ebs-card__pdf-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--ebs-green-700);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ebs-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ebs-card--featured .ebs-card__body { padding: 24px 28px; }

.ebs-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ebs-green-700);
    font-size: .78rem;
    font-weight: 500;
}
.ebs-card__meta .ebs-icon { font-size: 14px; }

.ebs-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--ebs-gray-900);
}
.ebs-card--featured .ebs-card__title { font-size: 1.25rem; }

.ebs-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ebs-t);
}
.ebs-card__title a:hover { color: var(--ebs-green-700); }

.ebs-card__excerpt {
    font-size: .85rem;
    color: var(--ebs-gray-500);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.ebs-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ── Buttons ────────────────────────────────────────────── */
.ebs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--ebs-r-sm);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--ebs-t);
    font-family: inherit;
    white-space: nowrap;
}
.ebs-btn .ebs-icon { font-size: 15px; }

.ebs-btn--primary {
    background: linear-gradient(135deg, var(--ebs-green-600), var(--ebs-green-700));
    color: #fff;
    box-shadow: 0 2px 8px rgba(22,163,74,.3);
}
.ebs-btn--primary:hover {
    background: linear-gradient(135deg, var(--ebs-green-700), var(--ebs-green-800));
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(22,163,74,.4);
    color: #fff;
    text-decoration: none;
}

.ebs-btn--outline {
    background: transparent;
    color: var(--ebs-green-700);
    border: 1.5px solid var(--ebs-green-400);
}
.ebs-btn--outline:hover {
    background: var(--ebs-green-50);
    border-color: var(--ebs-green-700);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--ebs-green-800);
}

/* ─────────────────────────────────────────────────────────
   ARCHIVE — HEADER
───────────────────────────────────────────────────────── */
.ebs-archive-wrap { padding-bottom: 40px; }

.ebs-archive-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, var(--ebs-green-800) 0%, var(--ebs-green-600) 100%);
    color: #ffffff !important;
    padding: 32px 36px;
    border-radius: var(--ebs-r-xl);
    margin-bottom: 28px;
    box-shadow: var(--ebs-shadow-lg);
    position: relative;
    overflow: hidden;
}
.ebs-archive-header::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 60%);
    pointer-events: none;
}

.ebs-archive-header__icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--ebs-r);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    color: #ffffff !important;
    backdrop-filter: blur(8px);
}

.ebs-archive-header__text { flex: 1; }

.ebs-archive-header h2,
.ebs-archive-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #ffffff !important;
    line-height: 1.2;
}
.ebs-archive-header p,
.ebs-archive-subtitle {
    font-size: .9rem;
    color: rgba(255, 255, 255, 0.92) !important;
    margin: 0;
    opacity: 1;
}

.ebs-archive-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}
.ebs-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    color: #ffffff !important;
}
.ebs-stat-pill strong {
    color: #ffffff !important;
}

/* ─────────────────────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────────────────────── */
.ebs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 12px 18px;
    background: var(--ebs-green-50);
    border: 1px solid var(--ebs-green-200);
    border-radius: var(--ebs-r-sm);
    font-size: .85rem;
}
.ebs-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ebs-green-700);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--ebs-t);
}
.ebs-breadcrumb__item:hover { color: var(--ebs-green-900); text-decoration: underline; }
.ebs-breadcrumb__item--active {
    color: var(--ebs-gray-500);
    font-weight: 600;
    pointer-events: none;
}
.ebs-breadcrumb__sep { color: var(--ebs-gray-400); font-size: 14px; }

/* ─────────────────────────────────────────────────────────
   ARCHIVE LEVEL 1 — Month Cards
───────────────────────────────────────────────────────── */
.ebs-month-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ebs-month-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--ebs-white);
    border: 1.5px solid var(--ebs-gray-200);
    border-radius: var(--ebs-r);
    box-shadow: var(--ebs-shadow-sm);
    text-decoration: none;
    color: var(--ebs-gray-900);
    transition: all var(--ebs-t);
    position: relative;
    overflow: hidden;
}
.ebs-month-card:hover {
    border-color: var(--ebs-green-400);
    box-shadow: var(--ebs-shadow-md);
    transform: translateY(-3px);
    text-decoration: none;
    color: var(--ebs-gray-900);
    background: var(--ebs-green-50);
}

.ebs-month-card__icon {
    width: 48px;
    height: 48px;
    background: var(--ebs-green-100);
    border-radius: var(--ebs-r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ebs-green-700);
    font-size: 22px;
    flex-shrink: 0;
    transition: background var(--ebs-t);
}
.ebs-month-card:hover .ebs-month-card__icon {
    background: var(--ebs-green-200);
}

.ebs-month-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ebs-month-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ebs-gray-900);
}
.ebs-month-card__year {
    font-size: .78rem;
    color: var(--ebs-gray-400);
    font-weight: 500;
}

.ebs-month-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.ebs-month-card__thursdays,
.ebs-month-card__count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 50px;
}
.ebs-month-card__thursdays {
    background: var(--ebs-green-100);
    color: var(--ebs-green-700);
}
.ebs-month-card__count {
    background: var(--ebs-gray-100);
    color: var(--ebs-gray-500);
}

.ebs-month-card__arrow {
    color: var(--ebs-green-500);
    font-size: 18px;
    flex-shrink: 0;
    transition: transform var(--ebs-t);
}
.ebs-month-card:hover .ebs-month-card__arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────
   ARCHIVE LEVEL 2 — Thursday List
───────────────────────────────────────────────────────── */
.ebs-thursday-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ebs-thursday-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--ebs-white);
    border: 1.5px solid var(--ebs-gray-200);
    border-radius: var(--ebs-r);
    box-shadow: var(--ebs-shadow-sm);
    text-decoration: none;
    color: var(--ebs-gray-900);
    transition: all var(--ebs-t);
}
.ebs-thursday-item:hover {
    border-color: var(--ebs-green-400);
    box-shadow: var(--ebs-shadow-md);
    transform: translateX(4px);
    background: var(--ebs-green-50);
    text-decoration: none;
    color: var(--ebs-gray-900);
}
.ebs-thursday-item--empty {
    opacity: .55;
    pointer-events: none;
}

.ebs-thursday-item__icon {
    width: 44px;
    height: 44px;
    background: var(--ebs-green-100);
    border-radius: var(--ebs-r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ebs-green-700);
    font-size: 20px;
    flex-shrink: 0;
}

.ebs-thursday-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ebs-thursday-item__label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ebs-green-600);
}
.ebs-thursday-item__date {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ebs-gray-900);
}

.ebs-thursday-item__count { flex-shrink: 0; }

.ebs-thursday-item__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--ebs-green-100);
    color: var(--ebs-green-700);
    font-size: .78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
}
.ebs-thursday-item__badge--none {
    background: var(--ebs-gray-100);
    color: var(--ebs-gray-400);
}

.ebs-thursday-item__arrow {
    color: var(--ebs-green-500);
    font-size: 18px;
    flex-shrink: 0;
    transition: transform var(--ebs-t);
}
.ebs-thursday-item:hover .ebs-thursday-item__arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE — TABLET & MOBILE (2-COLUMN GRID)
───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ebs-wrap { padding: 0 12px 32px; }

    /* All Grids → 2 columns */
    .ebs-current-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
    .ebs-current-grid .ebs-card:first-child { grid-column: span 2; }
    .ebs-prev-grid,
    .ebs-day-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
    .ebs-day-grid .ebs-card:first-child { grid-column: span 2; }
    .ebs-month-cards { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }

    /* Archive header */
    .ebs-archive-header { flex-wrap: wrap; padding: 24px; gap: 16px; }
    .ebs-archive-stats { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }

    /* Section header */
    .ebs-section-header { padding: 18px 22px; gap: 14px; }
    .ebs-archive-title { font-size: 1.4rem; }

    /* Thursday list */
    .ebs-thursday-item { padding: 16px 18px; gap: 12px; }
    .ebs-thursday-item__date { font-size: .9rem; }
}

/* ── MOBILE (≤ 640px) — 2 Grid Per Row ────────────────── */
@media (max-width: 640px) {
    .ebs-wrap { padding: 0 8px 28px; }

    /* ── 2 Columns for All Card Grids on Mobile ── */
    .ebs-month-cards,
    .ebs-current-grid,
    .ebs-prev-grid,
    .ebs-day-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
    }

    .ebs-current-grid .ebs-card:first-child,
    .ebs-day-grid .ebs-card:first-child {
        grid-column: span 2 !important;
    }

    /* ── Mobile Month Card (compact 2-col) ── */
    .ebs-month-card {
        padding: 12px 10px;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
        border-radius: var(--ebs-r-sm);
    }
    .ebs-month-card__icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
        border-radius: 6px;
    }
    .ebs-month-card__body {
        width: 100%;
        gap: 1px;
    }
    .ebs-month-card__name {
        font-size: .88rem;
        font-weight: 700;
        line-height: 1.2;
    }
    .ebs-month-card__year {
        font-size: .7rem;
    }
    .ebs-month-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
    }
    .ebs-month-card__thursdays,
    .ebs-month-card__count {
        font-size: .65rem;
        padding: 2px 6px;
        gap: 3px;
        width: fit-content;
    }
    .ebs-month-card__arrow {
        display: none;
    }

    /* ── Mobile Post Cards (compact 2-col) ── */
    .ebs-card {
        border-radius: var(--ebs-r-sm);
    }
    .ebs-card__thumb {
        height: 120px;
    }
    .ebs-card--featured .ebs-card__thumb {
        height: 150px;
    }
    .ebs-card__thumb-placeholder {
        font-size: 32px;
    }
    .ebs-card__pdf-badge {
        font-size: .6rem;
        padding: 2px 6px;
        top: 6px;
        right: 6px;
    }
    .ebs-card__body {
        padding: 10px 8px;
        gap: 6px;
    }
    .ebs-card__meta {
        font-size: .68rem;
        gap: 4px;
    }
    .ebs-card__title {
        font-size: .82rem;
        line-height: 1.3;
    }
    .ebs-card--featured .ebs-card__title {
        font-size: .95rem;
    }
    .ebs-card__excerpt {
        display: none; /* Clean look on 2-col mobile cards */
    }
    .ebs-card--featured .ebs-card__excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        font-size: .75rem;
    }
    .ebs-card__actions {
        margin-top: 4px;
        gap: 4px;
        flex-direction: column;
    }
    .ebs-btn {
        padding: 6px 8px;
        font-size: .72rem;
        justify-content: center;
        width: 100%;
        gap: 4px;
        border-radius: 6px;
    }
    .ebs-btn .ebs-icon {
        font-size: 12px;
    }

    /* ── Section headers ── */
    .ebs-section-header {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 10px;
        border-radius: var(--ebs-r-sm);
        margin-bottom: 18px;
    }
    .ebs-live-badge { display: none; }
    .ebs-section-title { font-size: 1.1rem; }
    .ebs-section-subtitle { font-size: .78rem; }
    .ebs-section-header__icon { width: 38px; height: 38px; font-size: 18px; }

    /* ── Archive header ── */
    .ebs-archive-header {
        flex-direction: column;
        padding: 20px 16px;
        border-radius: var(--ebs-r);
        gap: 12px;
        margin-bottom: 20px;
    }
    .ebs-archive-header__icon { width: 44px; height: 44px; font-size: 20px; }
    .ebs-archive-title { font-size: 1.25rem; }
    .ebs-archive-subtitle { font-size: .8rem; }
    .ebs-archive-stats {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 6px;
    }
    .ebs-stat-pill { font-size: .7rem; padding: 4px 10px; }

    /* ── Breadcrumb ── */
    .ebs-breadcrumb {
        margin-bottom: 16px;
        padding: 8px 12px;
        font-size: .76rem;
    }

    /* ── Thursday list ── */
    .ebs-thursday-list { gap: 8px; }
    .ebs-thursday-item {
        padding: 12px 14px;
        gap: 10px;
        border-radius: var(--ebs-r-sm);
    }
    .ebs-thursday-item__icon { width: 32px; height: 32px; font-size: 14px; }
    .ebs-thursday-item__label { font-size: .65rem; }
    .ebs-thursday-item__date { font-size: .84rem; }
    .ebs-thursday-item__badge { font-size: .68rem; padding: 3px 8px; }
    .ebs-thursday-item__arrow { font-size: 14px; }

    /* ── Divider ── */
    .ebs-divider { margin: 20px 0; }
}

/* Extra small phones (≤ 380px) */
@media (max-width: 380px) {
    .ebs-wrap { padding: 0 4px 24px; }
    .ebs-month-cards,
    .ebs-current-grid,
    .ebs-prev-grid,
    .ebs-day-grid {
        gap: 6px !important;
    }
    .ebs-month-card { padding: 10px 6px; }
    .ebs-month-card__name { font-size: .8rem; }
    .ebs-card__thumb { height: 100px; }
    .ebs-card__title { font-size: .76rem; }
}
