/* English Focus Daily — Engagement / gamification styles
   HUD bar, reward toasts, confetti, quick quiz, tap-reveal, viral card, learning feed */

:root {
    --efd-eg-primary: #C8553D;
    --efd-eg-primary-dark: #A8432F;
    --efd-eg-success: #4A7C59;
    --efd-eg-danger: #C8553D;
    --efd-eg-gold: #E1A33B;
    --efd-eg-blue: #3B7BBF;
    --efd-eg-text: #1A1A1A;
    --efd-eg-bg: #FFFFFF;
    --efd-eg-soft: #FAF0E6;
    --efd-eg-border: #E8E0D4;
    --efd-eg-radius: 16px;
    --efd-eg-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --efd-eg-shadow-strong: 0 12px 32px rgba(0,0,0,0.14);
}

/* ============================================================
   HUD — floating bar (top right on desktop, bottom on mobile)
   ============================================================ */
.efd-hud {
    position: fixed;
    top: 16px; right: 16px;
    z-index: 999;
    background: white;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--efd-eg-shadow-strong);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--efd-eg-text);
    border: 1px solid var(--efd-eg-border);
}
.efd-hud-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}
.efd-hud-streak { background: linear-gradient(135deg, #FFE0D6, #FFC1A8); color: #8B3E1F; }
.efd-hud-xp     { background: linear-gradient(135deg, #FFF1D6, #FFD980); color: #7A5D1F; }
.efd-hud-lessons{ background: linear-gradient(135deg, #DBEDDB, #B8DCB8); color: #2E5C2E; }
.efd-hud-icon   { font-size: 1rem; line-height: 1; }
.efd-hud-label  { font-size: 0.7rem; opacity: 0.75; }

@media (max-width: 720px) {
    .efd-hud {
        top: auto;
        bottom: 14px;
        right: 50%;
        transform: translateX(50%);
        font-size: 0.8125rem;
        padding: 0.35rem 0.5rem;
        gap: 0.25rem;
    }
    .efd-hud-item { padding: 0.2rem 0.4rem; }
}

/* ============================================================
   REWARD TOAST — compact "+10 XP" pill, top-right
   ============================================================ */
.efd-reward-toast {
    position: fixed;
    top: 14px;
    right: 14px;
    transform: translateX(40px);
    background: white;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-align: left;
    box-shadow: var(--efd-eg-shadow);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--efd-eg-gold);
    max-width: 260px;
    font-size: 0.8125rem;
    line-height: 1.2;
}
.efd-reward-toast.efd-toast-show {
    opacity: 1;
    transform: translateX(0);
}
.efd-reward-emoji {
    font-size: 1.0625rem;
    line-height: 1;
}
.efd-reward-amount {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--efd-eg-primary);
    line-height: 1;
    white-space: nowrap;
}
.efd-reward-reason {
    font-size: 0.75rem;
    color: var(--efd-eg-text);
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* If the HUD sits at top-right on desktop, slide the toast down so they don't overlap */
@media (min-width: 721px) {
    .efd-reward-toast { top: 64px; }
}

/* ============================================================
   CONFETTI
   ============================================================ */
.efd-confetti {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 998;
}
.efd-confetti-piece {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    animation: efd-confetti-fall 1.6s ease-out forwards;
}
@keyframes efd-confetti-fall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================================
   QUICK QUIZ card (above the fold on homepage)
   ============================================================ */
.efd-qq {
    background: linear-gradient(135deg, #FFFDF7 0%, #FFF5EB 100%);
    border: 2px solid var(--efd-eg-border);
    border-radius: 24px;
    padding: 1.5rem 1.25rem;
    box-shadow: var(--efd-eg-shadow);
    max-width: 600px;
    margin: 1.5rem auto;
}
.efd-qq-progress {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--efd-eg-primary);
    background: white;
    border: 1px solid var(--efd-eg-border);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.6rem;
}
.efd-qq-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--efd-eg-primary);
    margin-bottom: 0.75rem;
}
.efd-qq-question {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--efd-eg-text);
    margin-bottom: 1rem;
}
.efd-qq-options {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.efd-qq-option {
    background: white;
    border: 2px solid var(--efd-eg-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 180ms ease;
    color: var(--efd-eg-text);
    min-height: 50px;
}
.efd-qq-option:hover:not(:disabled) {
    border-color: var(--efd-eg-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(200,85,61,0.15);
}
.efd-qq-option:disabled { cursor: default; opacity: 0.75; }
.efd-qq-option.efd-qq-correct {
    background: #E8F5E9;
    border-color: var(--efd-eg-success);
    color: #1B5E20;
    opacity: 1;
    animation: efd-pulse-correct 0.5s ease;
}
.efd-qq-option.efd-qq-wrong {
    background: #FFEBEE;
    border-color: var(--efd-eg-danger);
    color: #B71C1C;
    animation: efd-shake 0.4s ease;
}
@keyframes efd-pulse-correct {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
@keyframes efd-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
.efd-qq-feedback {
    margin: 0.75rem 0;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    min-height: 1.5em;
}
.efd-qq-fb-correct { color: var(--efd-eg-success); }
.efd-qq-fb-wrong   { color: var(--efd-eg-danger); }
.efd-qq-explain {
    display: block;
    margin-top: 0.25rem;
    font-weight: 400;
    color: var(--efd-eg-text);
    opacity: 0.75;
    font-size: 0.875rem;
}
.efd-qq-next {
    display: none;
    background: var(--efd-eg-primary);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 180ms ease;
    margin: 0 auto;
}
.efd-qq.efd-qq-answered .efd-qq-next { display: inline-flex; }
.efd-qq-next:hover { background: var(--efd-eg-primary-dark); transform: translateY(-1px); }
.efd-qq-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.5rem;
}

@media (max-width: 720px) {
    .efd-qq { padding: 1.25rem 1rem; margin: 1rem 0; border-radius: 18px; }
    .efd-qq-question { font-size: 1.1875rem; }
    .efd-qq-option { padding: 0.875rem; font-size: 0.9375rem; min-height: 52px; }
}

/* ============================================================
   TAP-TO-REVEAL flip card
   ============================================================ */
.efd-reveal {
    background: linear-gradient(135deg, #F4E5D9, #FAF0E6);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 1.5rem auto;
    max-width: 560px;
    box-shadow: var(--efd-eg-shadow);
    position: relative;
    overflow: hidden;
}
.efd-reveal-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--efd-eg-primary);
    margin-bottom: 0.5rem;
}
.efd-reveal-hint {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E3A5F;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}
.efd-reveal-prompt {
    font-size: 0.875rem;
    color: #5C5C5C;
    margin-bottom: 1rem;
}
.efd-reveal-flip {
    background: var(--efd-eg-primary);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 200ms ease;
    min-height: 44px;
}
.efd-reveal-flip:hover { background: var(--efd-eg-primary-dark); }
.efd-reveal-answer {
    display: none;
    margin-top: 1rem;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--efd-eg-text);
    line-height: 1.2;
    animation: efd-fade-in 0.3s ease;
}
.efd-reveal-example {
    display: none;
    margin-top: 0.75rem;
    color: #5C5C5C;
    font-size: 0.9375rem;
    line-height: 1.4;
    animation: efd-fade-in 0.5s ease;
}
.efd-reveal.efd-revealed .efd-reveal-answer,
.efd-reveal.efd-revealed .efd-reveal-example { display: block; }
.efd-reveal.efd-revealed .efd-reveal-flip { display: none; }
@keyframes efd-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
    .efd-reveal { padding: 1.5rem 1rem; margin: 1rem 0; }
    .efd-reveal-hint { font-size: 1.25rem; }
    .efd-reveal-answer { font-size: 1.5rem; }
}

/* ============================================================
   VIRAL Wrong-vs-Correct card (with reveal + share buttons)
   ============================================================ */
.efd-viral {
    background: linear-gradient(180deg, #1E3A5F 0%, #2D5278 100%);
    border-radius: 24px;
    padding: 1.75rem 1.5rem;
    margin: 1.5rem auto;
    max-width: 480px;
    color: white;
    box-shadow: var(--efd-eg-shadow-strong);
    position: relative;
}
.efd-viral-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.efd-viral-wrong {
    background: rgba(200, 85, 61, 0.15);
    border-left: 4px solid #FFB4A8;
    padding: 0.75rem 1rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}
.efd-viral-wrong::before {
    content: '❌ ';
    margin-right: 0.25rem;
}
.efd-viral-wrong .efd-viral-text {
    text-decoration: line-through;
    text-decoration-color: rgba(255,180,168,0.8);
    text-decoration-thickness: 2px;
}
.efd-viral-correct {
    background: rgba(74, 124, 89, 0.2);
    border-left: 4px solid #A8DDA8;
    padding: 0.75rem 1rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #A8DDA8;
    display: none;
}
.efd-viral-correct::before { content: '✓ '; }
.efd-viral.efd-viral-revealed .efd-viral-correct { display: block; animation: efd-fade-in 0.3s ease; }
.efd-viral-why {
    display: none;
    background: rgba(255,255,255,0.08);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}
.efd-viral.efd-viral-revealed .efd-viral-why { display: block; animation: efd-fade-in 0.5s ease; }
.efd-viral-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.efd-viral-reveal-btn {
    background: white;
    color: var(--efd-eg-text);
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 180ms ease;
    flex: 1;
    min-height: 44px;
}
.efd-viral-reveal-btn:hover { background: #FFE5D6; }
.efd-viral.efd-viral-revealed .efd-viral-reveal-btn { display: none; }
.efd-viral-share {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    display: none;
    align-items: center;
    gap: 0.4rem;
    transition: all 180ms ease;
    min-height: 44px;
}
.efd-viral.efd-viral-revealed .efd-viral-share { display: inline-flex; }
.efd-viral-share:hover { background: #1FAE54; color: white; }

@media (max-width: 720px) {
    .efd-viral { padding: 1.25rem 1rem; margin: 1rem 0; border-radius: 18px; }
    .efd-viral-wrong, .efd-viral-correct { font-size: 1rem; }
}

/* ============================================================
   LEARNING FEED — vertical infinite scroll
   ============================================================ */
.efd-feed-page-header {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}
.efd-feed-page-header h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    margin: 0 0 0.4rem;
}
.efd-feed-page-header p {
    color: #5C5C5C;
    max-width: 32em;
    margin: 0 auto;
    font-size: 0.9375rem;
}

.efd-feed {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}
.efd-feed-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.efd-feed-card {
    /* Each card defines its own colors via inner classes (efd-qq, efd-reveal, etc.) */
    scroll-snap-align: start;
}

.efd-feed-load-more {
    display: block;
    width: 100%;
    margin: 1.5rem 0;
    padding: 1rem;
    border: 2px dashed var(--efd-eg-border);
    background: white;
    border-radius: 16px;
    font-weight: 700;
    color: var(--efd-eg-primary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 200ms ease;
    min-height: 56px;
}
.efd-feed-load-more:hover {
    background: #FFF5EB;
    border-color: var(--efd-eg-primary);
}

/* ============================================================
   HOMEPAGE ACTION CTA BUTTONS (used in hero override)
   ============================================================ */
.efd-cta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
}
.efd-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 200ms ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-height: 48px;
}
.efd-cta-primary {
    background: var(--efd-eg-primary);
    color: white;
}
.efd-cta-primary:hover { background: var(--efd-eg-primary-dark); transform: translateY(-2px); color: white; }
.efd-cta-secondary {
    background: white;
    color: var(--efd-eg-text);
    border: 2px solid var(--efd-eg-border);
}
.efd-cta-secondary:hover { border-color: var(--efd-eg-text); transform: translateY(-2px); }

/* ============================================================
   INLINE XP BAR — [efd_xp_bar]
   ============================================================ */
.efd-xp-inline {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem auto;
    max-width: 600px;
}
.efd-xp-inline-item {
    background: white;
    border: 1px solid var(--efd-eg-border);
    border-radius: 16px;
    padding: 0.8rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--efd-eg-shadow);
    flex: 1 1 auto;
    min-width: 130px;
}
.efd-xp-inline-icon { font-size: 1.25rem; line-height: 1; }
.efd-xp-inline-val  { font-weight: 800; font-size: 1.125rem; color: var(--efd-eg-text); }
.efd-xp-inline-label{ font-size: 0.8125rem; color: #5C5C5C; }

/* ============================================================
   HERO ENGAGE — [efd_hero_quick_quiz]
   ============================================================ */
.efd-hero-engage {
    background: linear-gradient(180deg, #FFF5EB 0%, #FAF0E6 100%);
    padding: 2rem 1rem 2.5rem;
    border-radius: 0 0 32px 32px;
}
.efd-hero-engage-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.efd-hero-engage-eyebrow {
    display: inline-block;
    background: white;
    border: 1px solid var(--efd-eg-border);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--efd-eg-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.efd-hero-engage-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: var(--efd-eg-text);
}
.efd-hero-engage-sub {
    color: #5C5C5C;
    max-width: 34em;
    margin: 0 auto 1rem;
    font-size: 1rem;
    line-height: 1.5;
}
.efd-hero-engage-ctas {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 1.75rem;
}
/* Breathing room between the hero CTAs and the inline Quick Quiz card. */
.efd-hero-engage-ctas + .efd-qq { margin-top: 0; }

@media (max-width: 720px) {
    .efd-hero-engage { padding: 1.5rem 0.75rem 2rem; border-radius: 0 0 24px 24px; }
    .efd-hero-engage-ctas { margin-bottom: 2rem; gap: 0.5rem; }
}

/* ============================================================
   FEED TEASER — drives front-page traffic into /learn/
   ============================================================ */
.efd-feed-teaser {
    background: linear-gradient(135deg, #1E3A5F 0%, #2D5278 100%);
    border-radius: 28px;
    padding: 2.5rem 1.5rem;
    margin: 2rem auto;
    max-width: 1000px;
    color: white;
    text-align: center;
    box-shadow: var(--efd-eg-shadow-strong);
}
.efd-feed-teaser-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.efd-feed-teaser-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: white;
}
.efd-feed-teaser-sub {
    color: rgba(255,255,255,0.85);
    margin: 0 auto 1.25rem;
    max-width: 30em;
    font-size: 1rem;
    line-height: 1.5;
}

/* ============================================================
   ENGAGE DOCK — two-column tap-reveal + viral card row
   ============================================================ */
.efd-engage-dock { padding: 1rem; }
.efd-engage-dock-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}
.efd-engage-dock-col > * { margin: 0; max-width: none; }

/* ============================================================
   LEARN PAGE FOOTER
   ============================================================ */
.efd-learn-foot {
    text-align: center;
    padding: 2rem 1rem 3rem;
}
.efd-learn-foot h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    margin: 0 0 1rem;
}

/* ============================================================
   Mobile polish — iOS auto-zoom prevention, touch targets, spacing
   ============================================================ */
.efd-qq-option, .efd-reveal-flip, .efd-qq-next, .efd-cta,
.efd-viral-reveal-btn, .efd-viral-share, .efd-feed-load-more {
    font-size: 16px;  /* prevents iOS Safari auto-zoom on tap-focus */
}

@media (max-width: 720px) {
    .efd-feed-teaser { padding: 1.75rem 1.1rem; margin: 1.25rem 0.5rem; border-radius: 22px; }
    .efd-engage-dock-inner { grid-template-columns: 1fr; }
    .efd-cta-row { gap: 0.5rem; }
    .efd-cta { width: 100%; justify-content: center; padding: 0.85rem 1.25rem; }
}

/* ============================================================
   HOMEPAGE SECTIONS — shared section-head pattern
   ============================================================ */
.efd-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}
.efd-section-eyebrow {
    display: inline-block;
    background: white;
    border: 1px solid var(--efd-eg-border);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--efd-eg-primary);
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.efd-section-eyebrow-light {
    background: rgba(255,255,255,0.18);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
.efd-section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.5rem, 4.5vw, 2.1rem);
    line-height: 1.2;
    margin: 0 0 0.45rem;
    color: var(--efd-eg-text);
}
.efd-section-sub {
    color: #5C5C5C;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* ============================================================
   START HERE — 3 level cards
   ============================================================ */
.efd-start-here { padding: 2.5rem 1rem 2rem; }
.efd-start-here-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 1.25rem auto 0;
}
.efd-start-here-card {
    background: white;
    border: 2px solid var(--efd-eg-border);
    border-radius: 22px;
    padding: 1.5rem 1.25rem;
    text-decoration: none;
    color: var(--efd-eg-text);
    display: flex;
    flex-direction: column;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    box-shadow: var(--efd-eg-shadow);
}
.efd-start-here-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--efd-eg-shadow-strong);
    border-color: var(--efd-eg-primary);
}
.efd-start-here-icon { font-size: 2.25rem; line-height: 1; margin-bottom: 0.5rem; }
.efd-start-here-label {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.375rem;
    margin: 0 0 0.4rem;
    color: var(--efd-eg-text);
}
.efd-start-here-desc {
    color: #5C5C5C;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    flex: 1;
}
.efd-start-here-cta {
    font-weight: 700;
    color: var(--efd-eg-primary);
    font-size: 0.9375rem;
}
.efd-start-here-beginner     { background: linear-gradient(135deg, #FFFDF7, #F4F8E8); }
.efd-start-here-intermediate { background: linear-gradient(135deg, #FFFDF7, #E8F1FA); }
.efd-start-here-advanced     { background: linear-gradient(135deg, #FFFDF7, #F2E8FA); }

/* ============================================================
   CATEGORY STRIP — 6 hub cards
   ============================================================ */
.efd-category-strip { padding: 2.5rem 1rem 2rem; background: #FAF0E6; }
.efd-category-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 1.25rem auto 0;
}
.efd-category-card {
    background: white;
    border: 1px solid var(--efd-eg-border);
    border-radius: 18px;
    padding: 1.25rem 1.2rem;
    text-decoration: none;
    color: var(--efd-eg-text);
    transition: transform 200ms ease, box-shadow 200ms ease;
    box-shadow: var(--efd-eg-shadow);
    display: flex;
    flex-direction: column;
}
.efd-category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--efd-eg-shadow-strong);
}
.efd-category-icon { font-size: 1.85rem; line-height: 1; margin-bottom: 0.5rem; }
.efd-category-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.25rem;
    margin: 0 0 0.4rem;
    color: var(--efd-eg-text);
}
.efd-category-desc {
    color: #5C5C5C;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.85rem;
    flex: 1;
}
.efd-category-cta {
    font-weight: 700;
    color: var(--efd-eg-primary);
    font-size: 0.875rem;
}

/* ============================================================
   FEATURED LESSONS — 6-card mixed grid
   ============================================================ */
.efd-featured-lessons { padding: 2.5rem 1rem 2rem; }
.efd-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 1.25rem auto 0;
}
.efd-featured-card {
    background: white;
    border: 1px solid var(--efd-eg-border);
    border-radius: 18px;
    padding: 1.25rem 1.2rem;
    text-decoration: none;
    color: var(--efd-eg-text);
    transition: transform 200ms ease, box-shadow 200ms ease;
    box-shadow: var(--efd-eg-shadow);
    display: flex;
    flex-direction: column;
}
.efd-featured-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--efd-eg-shadow-strong);
}
.efd-featured-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}
.efd-featured-icon { font-size: 1.1rem; }
.efd-featured-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--efd-eg-primary);
}
.efd-featured-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1875rem;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    color: var(--efd-eg-text);
}
.efd-featured-excerpt {
    color: #5C5C5C;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.85rem;
    flex: 1;
}
.efd-featured-cta {
    font-weight: 700;
    color: var(--efd-eg-primary);
    font-size: 0.875rem;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.efd-newsletter {
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, #1E3A5F 0%, #2D5278 100%);
    color: white;
}
.efd-newsletter-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.efd-newsletter-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: white;
}
.efd-newsletter-sub {
    color: rgba(255,255,255,0.88);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}
.efd-newsletter-form {
    background: white;
    color: var(--efd-eg-text);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--efd-eg-shadow-strong);
}
.efd-newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--efd-eg-border);
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 0.6rem;
    outline: none;
    transition: border-color 180ms ease;
}
.efd-newsletter-form input[type="email"]:focus {
    border-color: var(--efd-eg-primary);
}
.efd-newsletter-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}
.efd-newsletter-note {
    font-size: 0.75rem;
    color: #6C6C6C;
    margin: 0.6rem 0 0;
    text-align: center;
}
.efd-newsletter-note a { color: var(--efd-eg-primary); }
.efd-newsletter-thanks {
    text-align: center;
    font-weight: 700;
    color: var(--efd-eg-success);
    padding: 0.5rem 0;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.efd-trust-strip {
    padding: 2rem 1rem;
    background: #FFFDF7;
    border-top: 1px solid var(--efd-eg-border);
    border-bottom: 1px solid var(--efd-eg-border);
}
.efd-trust-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.efd-trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.efd-trust-stat { padding: 0.5rem; }
.efd-trust-num {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 700;
    color: var(--efd-eg-primary);
    line-height: 1;
}
.efd-trust-label {
    font-size: 0.875rem;
    color: #5C5C5C;
    margin-top: 0.35rem;
}
.efd-trust-blurb {
    color: #5C5C5C;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    max-width: 36em;
    margin-inline: auto;
}

/* ============================================================
   LATEST ARTICLES GRID
   ============================================================ */
.efd-latest-articles { padding: 2.5rem 1rem 2.5rem; }
.efd-latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 1.25rem auto 0;
}
.efd-latest-card {
    background: white;
    border: 1px solid var(--efd-eg-border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--efd-eg-text);
    transition: transform 200ms ease, box-shadow 200ms ease;
    box-shadow: var(--efd-eg-shadow);
    display: flex;
    flex-direction: column;
}
.efd-latest-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--efd-eg-shadow-strong);
}
.efd-latest-thumb {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #f1ebe2;
}
.efd-latest-body { padding: 1rem 1.1rem 1.25rem; }
.efd-latest-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--efd-eg-primary);
    margin-bottom: 0.45rem;
}
.efd-latest-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}
.efd-latest-excerpt {
    color: #5C5C5C;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   Mobile polish for new sections
   ============================================================ */
@media (max-width: 720px) {
    .efd-newsletter-inner { grid-template-columns: 1fr; gap: 1rem; }
    .efd-start-here, .efd-category-strip, .efd-featured-lessons,
    .efd-latest-articles, .efd-trust-strip, .efd-newsletter {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
    .efd-start-here-grid, .efd-category-strip-grid,
    .efd-featured-grid, .efd-latest-grid {
        grid-template-columns: 1fr;
    }
    .efd-trust-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}

/* ============================================================
   BYLINE — top of every lesson/post
   ============================================================ */
.efd-byline {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: #FFFDF7;
    border: 1px solid var(--efd-eg-border);
    border-radius: 14px;
    margin: 1rem 0 1.5rem;
    max-width: 720px;
}
.efd-byline-avatar {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}
.efd-byline-img,
.efd-byline-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.efd-byline-body { line-height: 1.4; }
.efd-byline-author {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--efd-eg-text);
}
.efd-byline-author a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}
.efd-byline-author a:hover { border-bottom-color: var(--efd-eg-primary); }
.efd-byline-headline {
    color: #5C5C5C;
    font-weight: 500;
}
.efd-byline-meta {
    color: #6C6C6C;
    font-size: 0.8125rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.15rem;
}
.efd-byline-review {
    color: #6C6C6C;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px dashed var(--efd-eg-border);
}
.efd-byline-review a { color: var(--efd-eg-primary); text-decoration: none; }
.efd-byline-review a:hover { text-decoration: underline; }

/* ============================================================
   AUTHOR BIO BLOCK — end of post + author archive top
   ============================================================ */
.efd-author-bio {
    background: white;
    border: 1px solid var(--efd-eg-border);
    border-radius: 22px;
    padding: 1.5rem 1.4rem;
    margin: 2.5rem auto 1.5rem;
    max-width: 720px;
    box-shadow: var(--efd-eg-shadow);
}
.efd-author-bio-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.efd-author-bio-avatar {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}
.efd-author-bio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.efd-author-bio-meta { flex: 1; }
.efd-author-bio-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.375rem;
    margin: 0 0 0.25rem;
    color: var(--efd-eg-text);
}
.efd-author-bio-name a { color: inherit; text-decoration: none; }
.efd-author-bio-role {
    font-size: 0.8125rem;
    color: var(--efd-eg-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.efd-author-bio-headline {
    color: #5C5C5C;
    font-size: 0.9375rem;
    line-height: 1.45;
    margin: 0;
}
.efd-author-bio-text {
    color: #4A4A4A;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.efd-author-bio-text p { margin: 0 0 0.5rem; }
.efd-author-bio-credentials {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
}
.efd-author-bio-credentials li {
    background: #FAF0E6;
    border-left: 3px solid var(--efd-eg-primary);
    padding: 0.4rem 0.75rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.875rem;
    color: var(--efd-eg-text);
}
.efd-author-bio-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.efd-author-bio-social {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--efd-eg-border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--efd-eg-text);
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease;
}
.efd-author-bio-social:hover {
    background: var(--efd-eg-soft);
    border-color: var(--efd-eg-primary);
}

/* ============================================================
   AUTHOR ARCHIVE PAGE
   ============================================================ */
.efd-author-main { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.efd-author-hero { padding: 1.5rem 0; }
.efd-author-posts { padding: 1.5rem 0 3rem; }
.efd-author-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

@media (max-width: 720px) {
    .efd-byline { padding: 0.85rem; gap: 0.7rem; }
    .efd-author-bio { padding: 1.25rem 1rem; margin: 1.75rem auto 1.25rem; }
    .efd-author-bio-head { flex-direction: column; gap: 0.85rem; align-items: flex-start; }
    .efd-author-bio-avatar img { width: 64px; height: 64px; }
    .efd-author-posts-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HUB / LEVEL ARCHIVE HEROES
   ============================================================ */
.efd-hub-main, .efd-level-main { max-width: 1100px; margin: 0 auto; padding: 0 1rem 2.5rem; }
.efd-hub-hero {
    background: linear-gradient(135deg, #FFFDF7 0%, #FAF0E6 100%);
    border-radius: 24px;
    padding: 2rem 1.5rem 2.25rem;
    margin: 1.5rem 0;
}
.efd-hub-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.efd-hub-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.875rem, 5.5vw, 2.625rem);
    line-height: 1.15;
    margin: 0.85rem 0 0.75rem;
    color: var(--efd-eg-text);
}
.efd-hub-desc {
    color: #4A4A4A;
    font-size: 1.0625rem;
    line-height: 1.6;
    margin: 0 auto 1.25rem;
    max-width: 38em;
}
.efd-hub-level-filter {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.efd-hub-filter-label {
    font-size: 0.875rem;
    color: #5C5C5C;
    margin-right: 0.25rem;
}
.efd-hub-filter-pill {
    display: inline-block;
    padding: 0.4rem 0.95rem;
    background: white;
    border: 1px solid var(--efd-eg-border);
    border-radius: 999px;
    color: var(--efd-eg-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 180ms ease;
}
.efd-hub-filter-pill:hover {
    border-color: var(--efd-eg-primary);
    background: var(--efd-eg-soft);
}
.efd-hub-filter-pill-active {
    background: var(--efd-eg-primary);
    color: white;
    border-color: var(--efd-eg-primary);
}
.efd-hub-empty {
    text-align: center;
    padding: 3rem 1rem 4rem;
    color: #5C5C5C;
}
.efd-hub-empty p { margin: 0 0 1rem; font-size: 1.0625rem; }
.efd-hub-posts { padding: 1rem 0 2.5rem; }
.efd-hub-siblings { padding: 1.5rem 0 2rem; }

@media (max-width: 720px) {
    .efd-hub-hero { padding: 1.5rem 1rem; border-radius: 18px; }
}

/* ============================================================
   BLOG PAGE HEADER — h1 above the [efd_all_blogs] grid
   ============================================================ */
.efd-blog-main { max-width: 1100px; margin: 0 auto; padding: 1rem 1.25rem 2.5rem; }
.efd-blog-header { text-align: center; margin: 1rem 0 0.5rem; }
.efd-blog-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.15;
    margin: 0;
    color: var(--efd-eg-text);
}

/* ============================================================
   ALL BLOGS — paginated index, used on the /blog/ page
   ============================================================ */
.efd-all-blogs { padding: 0.5rem 0 2rem; }
.efd-blog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
}
.efd-blog-page-link {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.85rem;
    border: 1px solid var(--efd-eg-border);
    background: white;
    color: var(--efd-eg-text);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.efd-blog-page-link:hover {
    background: var(--efd-eg-soft);
    border-color: var(--efd-eg-primary);
    color: var(--efd-eg-primary);
}
.efd-blog-page-link-active {
    background: var(--efd-eg-primary);
    color: white;
    border-color: var(--efd-eg-primary);
}
.efd-blog-page-link-active:hover { color: white; background: var(--efd-eg-primary-dark); }

/* ============================================================
   HEADER — force brand palette regardless of theme.json cache
   ============================================================ */
.hostinger-ai-menu,
.wp-block-template-part.site-header,
header.wp-block-group {
    background: #ffffff !important;
    border-bottom: 1px solid var(--efd-eg-border);
}

/* Site title — ink black, no underline */
.hostinger-ai-site-title,
.hostinger-ai-site-title a,
.wp-block-site-title a {
    color: var(--efd-eg-text) !important;
    text-decoration: none !important;
    font-family: 'Lora', Georgia, serif !important;
    font-weight: 700 !important;
}
.hostinger-ai-site-title a:hover,
.wp-block-site-title a:hover {
    color: var(--efd-eg-primary) !important;
}

/* Nav links — ink black, orange on hover/active */
.wp-block-navigation-item__content,
.hostinger-ai-site-navigation a {
    color: var(--efd-eg-text) !important;
    font-weight: 500;
    transition: color 160ms ease;
}
.wp-block-navigation-item__content:hover,
.hostinger-ai-site-navigation a:hover {
    color: var(--efd-eg-primary) !important;
}
.wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.wp-block-navigation-item__content[aria-current="page"] {
    color: var(--efd-eg-primary) !important;
    font-weight: 700;
}

/* ============================================================
   PAGE LAYOUT — sidebar (left) + main (right) on content pages
   ============================================================ */
.efd-page-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
    align-items: start;
}
.efd-page-main { min-width: 0; }
.efd-page-main .efd-main { margin: 0; padding-top: 0; }

/* Sticky sidebar */
.efd-sidebar {
    position: sticky;
    top: 1rem;
    align-self: start;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}
.efd-sidebar-inner {
    background: #ffffff;
    border: 1px solid var(--efd-eg-border);
    border-radius: 16px;
    padding: 1.1rem 0.85rem 1rem;
}
.efd-sidebar-heading {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.1875rem;
    color: var(--efd-eg-text);
    margin: 0 0 0.6rem;
    padding: 0 0.4rem;
}
.efd-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.efd-sidebar-nav li { margin: 0; }
.efd-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    color: var(--efd-eg-text);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background 160ms ease, color 160ms ease;
}
.efd-sidebar-link:hover {
    background: #FAF0E6;
    color: var(--efd-eg-primary);
}
.efd-sidebar-link-active {
    background: var(--efd-eg-primary);
    color: white !important;
    font-weight: 600;
}
.efd-sidebar-link-active:hover { background: var(--efd-eg-primary-dark); }
.efd-sidebar-icon { font-size: 1rem; line-height: 1; flex-shrink: 0; width: 1.25rem; text-align: center; }
.efd-sidebar-label { line-height: 1.3; }

/* Mobile — sidebar collapses into a horizontal scroll chip strip at the top */
@media (max-width: 960px) {
    .efd-page-layout {
        display: block;
        padding: 0;
    }
    .efd-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0.75rem 0;
        background: #FFFDF7;
        border-bottom: 1px solid var(--efd-eg-border);
        margin-bottom: 0.5rem;
    }
    .efd-sidebar-inner {
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 0;
    }
    .efd-sidebar-heading { display: none; }
    .efd-sidebar-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .efd-sidebar-nav::-webkit-scrollbar { display: none; }
    .efd-sidebar-nav ul {
        display: flex;
        gap: 0.4rem;
        padding: 0 0.85rem;
        white-space: nowrap;
        width: max-content;
    }
    .efd-sidebar-link {
        flex-shrink: 0;
        padding: 0.45rem 0.85rem;
        border: 1px solid var(--efd-eg-border);
        background: white;
        border-radius: 999px;
        font-size: 0.875rem;
    }
    .efd-sidebar-link:hover { background: var(--efd-eg-soft); }
    .efd-sidebar-link-active {
        background: var(--efd-eg-primary);
        color: white !important;
        border-color: var(--efd-eg-primary);
    }
}

/* ============================================================
   LESSON PAGE — single.php
   ============================================================ */
.efd-lesson-main { max-width: 760px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.efd-lesson { padding-top: 1rem; }
.efd-lesson-header { margin: 1rem 0 0.5rem; }
.efd-lesson-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--efd-eg-primary);
    margin-bottom: 0.5rem;
}
.efd-lesson-cat a { color: inherit; text-decoration: none; }
.efd-lesson-cat a:hover { text-decoration: underline; }
.efd-lesson-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.18;
    margin: 0 0 0.6rem;
    color: var(--efd-eg-text);
}
.efd-lesson-hook {
    font-size: 1.1875rem;
    line-height: 1.55;
    color: #4A4A4A;
    margin: 0;
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.efd-toc {
    background: #FFFDF7;
    border: 1px solid var(--efd-eg-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0 2rem;
}
.efd-toc-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--efd-eg-primary);
    margin-bottom: 0.5rem;
}
.efd-toc-list {
    list-style: decimal inside;
    margin: 0;
    padding: 0;
    color: #5C5C5C;
}
.efd-toc-list li { margin: 0.25rem 0; line-height: 1.45; }
.efd-toc-list a { color: var(--efd-eg-text); text-decoration: none; }
.efd-toc-list a:hover { color: var(--efd-eg-primary); text-decoration: underline; }

/* ============================================================
   CALLOUT — note / warn / example / mistake
   ============================================================ */
.efd-callout {
    background: white;
    border: 1px solid var(--efd-eg-border);
    border-left: 4px solid var(--efd-eg-primary);
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.1rem;
    margin: 1.25rem 0;
    box-shadow: var(--efd-eg-shadow);
}
.efd-callout-note    { border-left-color: var(--efd-eg-blue);    background: #F0F6FD; }
.efd-callout-warn    { border-left-color: var(--efd-eg-gold);    background: #FFF7E6; }
.efd-callout-example { border-left-color: var(--efd-eg-success); background: #F0F8F1; }
.efd-callout-mistake { border-left-color: var(--efd-eg-primary); background: #FFF1ED; }
.efd-callout-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
}
.efd-callout-icon { font-size: 1.0625rem; line-height: 1; }
.efd-callout-body p { margin: 0 0 0.5rem; font-size: 1rem; line-height: 1.6; }
.efd-callout-body p:last-child { margin-bottom: 0; }

/* ============================================================
   COMPARE TABLE
   ============================================================ */
.efd-compare {
    border: 1px solid var(--efd-eg-border);
    border-radius: 14px;
    overflow: hidden;
    margin: 1.25rem 0;
    background: white;
}
.efd-compare-head, .efd-compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.efd-compare-head {
    background: var(--efd-eg-soft);
    font-weight: 700;
    color: var(--efd-eg-text);
}
.efd-compare-row + .efd-compare-row { border-top: 1px solid var(--efd-eg-border); }
.efd-compare-col { padding: 0.8rem 1rem; font-size: 0.9375rem; line-height: 1.5; }
.efd-compare-row .efd-compare-left { color: #B71C1C; background: #FFF5F3; text-decoration: line-through; text-decoration-color: rgba(183,28,28,0.45); }
.efd-compare-row .efd-compare-right { color: #1B5E20; background: #F0F8F1; font-weight: 600; }

/* ============================================================
   TAKEAWAYS
   ============================================================ */
.efd-takeaways {
    background: linear-gradient(135deg, #FFFDF7, #FFF5EB);
    border: 1px solid var(--efd-eg-border);
    border-radius: 16px;
    padding: 1.1rem 1.3rem;
    margin: 1.75rem 0;
}
.efd-takeaways-head {
    font-weight: 700;
    color: var(--efd-eg-primary);
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}
.efd-takeaways ul {
    list-style: '✓ ';
    padding-left: 1.1rem;
    margin: 0;
}
.efd-takeaways li { margin: 0.3rem 0; line-height: 1.55; }

/* ============================================================
   SOURCES
   ============================================================ */
.efd-sources {
    border-top: 1px dashed var(--efd-eg-border);
    padding-top: 1.25rem;
    margin: 2.25rem 0 1.5rem;
}
.efd-sources-head {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.0625rem;
    margin: 0 0 0.6rem;
    color: var(--efd-eg-text);
}
.efd-sources ul {
    list-style: '↗ ';
    padding-left: 1.1rem;
    margin: 0;
    color: #5C5C5C;
}
.efd-sources li { margin: 0.3rem 0; font-size: 0.9375rem; }
.efd-sources a { color: var(--efd-eg-primary); text-decoration: none; }
.efd-sources a:hover { text-decoration: underline; }

/* ============================================================
   FAQ
   ============================================================ */
.efd-faq { margin: 2rem 0 1.5rem; }
.efd-faq-head {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem;
    margin: 0 0 0.85rem;
    color: var(--efd-eg-text);
}
.efd-faq-list {
    border: 1px solid var(--efd-eg-border);
    border-radius: 14px;
    overflow: hidden;
    background: white;
}
.efd-faq-item { border-bottom: 1px solid var(--efd-eg-border); }
.efd-faq-item:last-child { border-bottom: 0; }
.efd-faq-item summary {
    cursor: pointer;
    padding: 0.95rem 1.1rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--efd-eg-text);
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
}
.efd-faq-item summary::marker { display: none; }
.efd-faq-item summary::-webkit-details-marker { display: none; }
.efd-faq-item summary::after {
    content: '＋';
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--efd-eg-primary);
    font-weight: 700;
    transition: transform 200ms ease;
}
.efd-faq-item[open] summary::after { content: '－'; }
.efd-faq-item summary:hover { background: var(--efd-eg-soft); }
.efd-faq-answer {
    padding: 0 1.1rem 1rem;
    color: #4A4A4A;
    line-height: 1.6;
    font-size: 0.9375rem;
}
.efd-faq-answer p { margin: 0 0 0.5rem; }

/* ============================================================
   RELATED LESSONS
   ============================================================ */
.efd-related-lessons { margin-top: 2.5rem; }

/* ============================================================
   FOOTER — rebuilt for trust-page links
   ============================================================ */
.efd-footer { color: white; }
.efd-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.efd-footer-col {}
.efd-footer-heading {
    color: white;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.125rem;
    margin: 0 0 0.85rem;
}
.efd-footer-brand .efd-footer-heading {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}
.efd-footer-tag {
    color: rgba(255,255,255,0.78);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 0.85rem;
}
.efd-footer-cta {
    display: inline-block;
    color: var(--efd-eg-gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(225,163,59,0.5);
    padding-bottom: 1px;
}
.efd-footer-cta:hover { color: white; border-bottom-color: white; }

.efd-footer-social {
    display: flex;
    gap: 0.55rem;
    margin-top: 1.1rem;
}
.efd-footer-social-link {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.92);
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.efd-footer-social-link:hover {
    background: var(--efd-eg-primary);
    color: white;
    transform: translateY(-1px);
}
.efd-footer-social-link svg { display: block; }
.efd-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.efd-footer-list li { margin: 0 0 0.5rem; }
.efd-footer-list a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 180ms ease;
}
.efd-footer-list a:hover { color: white; text-decoration: underline; }
.efd-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 2.25rem;
    padding-top: 1.25rem;
}
.efd-footer-bottom-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    text-align: center;
}
.efd-footer-copy {
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    margin: 0 0 0.4rem;
}
.efd-footer-mini {
    color: rgba(255,255,255,0.55);
    font-size: 0.8125rem;
    margin: 0;
}
.efd-footer-mini a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.efd-footer-mini a:hover { color: white; }

@media (max-width: 720px) {
    .efd-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .efd-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
    .efd-footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.efd-cookie {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 1100;
    background: white;
    border: 1px solid var(--efd-eg-border);
    border-radius: 16px;
    box-shadow: var(--efd-eg-shadow-strong);
    padding: 0.85rem 1rem;
    animation: efd-cookie-in 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes efd-cookie-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.efd-cookie-hide { opacity: 0; transition: opacity 300ms ease; }
.efd-cookie-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.efd-cookie-text {
    flex: 1 1 320px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--efd-eg-text);
}
.efd-cookie-text a { color: var(--efd-eg-primary); }
.efd-cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.efd-cookie-btn {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 180ms ease;
}
.efd-cookie-btn-secondary {
    background: white;
    color: var(--efd-eg-text);
    border: 1px solid var(--efd-eg-border);
}
.efd-cookie-btn-secondary:hover { background: var(--efd-eg-soft); }
.efd-cookie-btn-primary {
    background: var(--efd-eg-primary);
    color: white;
}
.efd-cookie-btn-primary:hover { background: var(--efd-eg-primary-dark); }

@media (max-width: 720px) {
    .efd-cookie { bottom: 80px; }  /* clear of mobile HUD */
}

/* ============================================================
   TRUST-PAGE TYPOGRAPHY — About, Contact, Privacy, Terms, etc.
   Applies via body class for page slugs we own.
   ============================================================ */
.efd-trust-content,
body.page-id-about .entry-content,
body.page-id-privacy .entry-content,
body.page-id-terms .entry-content,
body.page-id-disclaimer .entry-content,
body.page-id-contact .entry-content,
body.page-id-editorial-policy .entry-content,
body.page-id-cookie-policy .entry-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2A2A2A;
    line-height: 1.7;
    font-size: 1.0625rem;
}
.entry-content h1,
.entry-content h2,
.entry-content h3 { font-family: 'Lora', Georgia, serif; color: var(--efd-eg-text); }
.entry-content h2 { font-size: 1.625rem; margin-top: 2.25rem; margin-bottom: 0.85rem; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.75rem; margin-bottom: 0.6rem; }
.entry-content p, .entry-content li { line-height: 1.7; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 1rem 0; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content code {
    background: var(--efd-eg-soft);
    padding: 0.1rem 0.4rem;
    border-radius: 5px;
    font-size: 0.9em;
}

/* ============================================================
   Adjust HUD position so it doesn't overlap content on long pages
   ============================================================ */
body { padding-bottom: 0; }
@media (max-width: 720px) {
    body { padding-bottom: 70px; }  /* room for fixed bottom HUD */
}
