:root {
    --bg: #e9edf2;
    --bg-alt: #dde4ec;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --surface-solid: #ffffff;
    --surface-stroke: rgba(255, 255, 255, 0.62);
    --text: #0f172a;
    --text-secondary: #324154;
    --text-tertiary: #56667b;
    --border: rgba(15, 23, 42, 0.1);
    --border-strong: rgba(15, 23, 42, 0.16);
    --green: #18784a;
    --green-strong: #145f3b;
    --green-soft: rgba(24, 120, 74, 0.12);
    --blue: #2b60b8;
    --blue-soft: rgba(43, 96, 184, 0.12);
    --gold: #9b6b24;
    --gold-soft: rgba(155, 107, 36, 0.14);
    --slate: #556475;
    --slate-soft: rgba(85, 100, 117, 0.14);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    --shadow-sm: 0 10px 26px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.12), 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 28px 68px rgba(15, 23, 42, 0.16), 0 6px 20px rgba(15, 23, 42, 0.08);
    --nav-bg: rgba(233, 237, 242, 0.88);
    --focus-ring: 0 0 0 3px rgba(24, 120, 74, 0.24);
    --blur: blur(14px);
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --radius-pill: 999px;
    --container-xl: 74rem;
    --container-lg: 66rem;
    --container-md: 56rem;
    --container-sm: 46rem;
    --section-pad: 4.25rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
}

[data-theme="dark"] {
    --bg: #0b121a;
    --bg-alt: #111926;
    --surface: rgba(22, 31, 44, 0.9);
    --surface-strong: rgba(24, 34, 48, 0.94);
    --surface-solid: #162131;
    --surface-stroke: rgba(255, 255, 255, 0.08);
    --text: #eef3f8;
    --text-secondary: #cad5df;
    --text-tertiary: #a8b5c4;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --green: #41b873;
    --green-strong: #2e9459;
    --green-soft: rgba(65, 184, 115, 0.18);
    --blue: #8db2f0;
    --blue-soft: rgba(141, 178, 240, 0.18);
    --gold: #d5a45f;
    --gold-soft: rgba(213, 164, 95, 0.18);
    --slate: #b1bfd0;
    --slate-soft: rgba(177, 191, 208, 0.18);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.24), 0 3px 10px rgba(0, 0, 0, 0.16);
    --shadow-md: 0 20px 48px rgba(0, 0, 0, 0.34), 0 4px 14px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 30px 72px rgba(0, 0, 0, 0.44), 0 6px 18px rgba(0, 0, 0, 0.28);
    --nav-bg: rgba(12, 18, 27, 0.9);
    --focus-ring: 0 0 0 3px rgba(65, 184, 115, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ol,
ul,
blockquote {
    margin: 0;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, sans-serif;
    line-height: 1.65;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.22), transparent 22%),
        radial-gradient(circle at 82% 14%, rgba(99, 115, 129, 0.1), transparent 20%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

body.menu-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--text);
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

p,
li {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

ol,
ul {
    padding: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.container {
    width: min(100% - 1.5rem, 100%);
    margin-left: auto;
    margin-right: auto;
}

.container-xl {
    max-width: var(--container-xl);
}

.container-lg {
    max-width: var(--container-lg);
}

.container-md {
    max-width: var(--container-md);
}

.container-sm {
    max-width: var(--container-sm);
}

.section {
    position: relative;
    padding: var(--section-pad) 0;
}

.section-anchor {
    scroll-margin-top: 5.8rem;
}

.final-section {
    padding-bottom: 5rem;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.z-40 {
    z-index: 40;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.85rem 1rem;
    border-bottom-right-radius: 14px;
    background: var(--green);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
}

.skip-link:focus {
    left: 0;
}

.surface {
    border: 1px solid var(--surface-stroke);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-inset), var(--shadow-sm);
}

.surface-strong {
    background: var(--surface-strong);
    box-shadow: var(--shadow-inset), var(--shadow-md);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
}

.hero-panel,
.topic-panel,
.course-card,
.info-card,
.sentence-card,
.final-card,
.session-panel,
.topic-of-day-card {
    padding: 1.35rem;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--nav-bg);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
}

.nav-shell {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0.9rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.nav-brand {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
}

.nav-brand-title {
    color: var(--text);
    font-size: 0.97rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-brand-subtitle {
    color: var(--text-tertiary);
    font-size: 0.78rem;
    font-weight: 650;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.15rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-links a,
.mobile-nav a,
.footer-links a,
.footer-meta a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-links a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.footer-meta a:hover {
    color: var(--text);
}

.nav-links a.nav-active,
.mobile-nav a.nav-active {
    color: var(--green);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-cta {
    display: none;
}

.theme-toggle,
.mobile-menu-toggle {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.45);
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(24, 34, 48, 0.72);
}

.theme-toggle:hover {
    color: var(--green);
}

[data-theme="dark"] .theme-icon-sun {
    display: none;
}

[data-theme="light"] .theme-icon-moon {
    display: none;
}

.mobile-menu-toggle .menu-icon-close {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon-open {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon-close {
    display: block;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 0.2rem 1rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--nav-bg);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
}

.mobile-nav:not([hidden]) {
    display: flex;
}

.mobile-nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 600;
}

.mobile-nav a:last-child {
    border-bottom: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.92rem 1.3rem;
    border-radius: var(--radius-pill);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.button-primary {
    border: 1px solid rgba(24, 120, 74, 0.14);
    background: linear-gradient(180deg, #23945a 0%, var(--green) 100%);
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(24, 120, 74, 0.24);
}

.button-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, var(--green) 0%, var(--green-strong) 100%);
    box-shadow: 0 18px 40px rgba(24, 120, 74, 0.3);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    box-shadow: var(--shadow-inset), var(--shadow-sm);
}

[data-theme="dark"] .button-secondary {
    background: rgba(24, 34, 48, 0.74);
    border-color: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
    transform: translateY(-1px);
    color: var(--green);
}

.button-sm {
    min-height: 2.55rem;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
}

.button-lg {
    min-height: 3.2rem;
    padding: 1rem 1.3rem;
}

.button-block {
    width: 100%;
}

.hero {
    position: relative;
    overflow: hidden;
    padding-top: 5.6rem;
    padding-bottom: 3.9rem;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(34px);
    pointer-events: none;
}

.hero-glow-a {
    top: -4rem;
    left: 50%;
    width: min(88vw, 42rem);
    height: min(88vw, 42rem);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    transform: translateX(-50%);
}

.hero-glow-b {
    top: 6rem;
    right: 8%;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(103, 121, 139, 0.12), transparent 72%);
}

.hero-grid {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy {
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.48);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
}

[data-theme="dark"] .eyebrow {
    background: rgba(24, 34, 48, 0.62);
    border-color: rgba(255, 255, 255, 0.08);
}

.eyebrow-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--green);
}

.hero-title {
    max-width: 13ch;
    margin: 1.15rem auto 1rem;
    font-size: 2.8rem;
    line-height: 1.08;
}

.hero-text {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.9rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1rem;
    list-style: none;
}

.hero-meta li {
    padding: 0.48rem 0.74rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.46);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 650;
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
}

[data-theme="dark"] .hero-meta li {
    background: rgba(24, 34, 48, 0.58);
    border-color: rgba(255, 255, 255, 0.08);
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.92rem;
    color: var(--text-tertiary);
}

.hero-panel {
    max-width: 34rem;
    margin: 0 auto;
}

.panel-header {
    margin-bottom: 1.05rem;
}

.eyebrow-label {
    margin-bottom: 0.45rem;
    color: var(--text-tertiary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.panel-title {
    font-size: 1.54rem;
    margin-bottom: 0.4rem;
}

.panel-title-sm {
    font-size: 1.28rem;
    margin-bottom: 0.48rem;
}

.panel-text {
    font-size: 0.96rem;
}

.panel-actions {
    margin-top: 1rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 1.55rem;
}

.section-heading h2 {
    font-size: 2rem;
    margin-bottom: 0.52rem;
    line-height: 1.12;
}

.section-heading p {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    width: 4.9rem;
    height: 0.3rem;
    margin: 0 auto 1rem;
    border-radius: var(--radius-pill);
}

.section-divider-left {
    margin-left: 0;
    margin-right: 0;
}

.divider-green {
    background: linear-gradient(90deg, rgba(24, 120, 74, 0.16), rgba(24, 120, 74, 1), rgba(24, 120, 74, 0.16));
    box-shadow: 0 10px 24px rgba(24, 120, 74, 0.16);
}

.divider-blue {
    background: linear-gradient(90deg, rgba(43, 96, 184, 0.16), rgba(43, 96, 184, 1), rgba(43, 96, 184, 0.16));
    box-shadow: 0 10px 24px rgba(43, 96, 184, 0.14);
}

.divider-gold {
    background: linear-gradient(90deg, rgba(155, 107, 36, 0.16), rgba(155, 107, 36, 1), rgba(155, 107, 36, 0.16));
    box-shadow: 0 10px 24px rgba(155, 107, 36, 0.14);
}

.divider-slate {
    background: linear-gradient(90deg, rgba(85, 100, 117, 0.16), rgba(85, 100, 117, 1), rgba(85, 100, 117, 0.16));
    box-shadow: 0 10px 24px rgba(85, 100, 117, 0.12);
}

.sentence-shell {
    position: relative;
}

.sentence-card {
    text-align: center;
    padding: 1.9rem 1.35rem;
}

.sentence-label {
    color: var(--text-tertiary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sentence-quote {
    margin-top: 0.95rem;
    color: var(--text);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.68rem;
    line-height: 1.24;
}

.sentence-note {
    margin-top: 0.95rem;
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.cards-grid,
.two-column-layout,
.course-grid,
.approach-grid,
.footer-grid {
    display: grid;
    gap: 1rem;
}

.cards-grid-three,
.cards-grid-four {
    grid-template-columns: 1fr;
}

.info-card {
    height: 100%;
}

.info-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.68rem;
    border-radius: var(--radius-pill);
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
}

.info-card-title {
    margin-top: 0.92rem;
    font-size: 1.32rem;
}

.info-card-text {
    margin-top: 0.55rem;
    font-size: 0.95rem;
}

.info-card-actions {
    margin-top: 1rem;
}

.topic-card-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topic-card-icon svg {
    width: 0.95rem;
    height: 0.95rem;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.video-trigger {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-trigger:hover {
    transform: translateY(-1px);
}

.thumbnail {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background-color: #d8dee6;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
}

.thumbnail::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.08) 0%,
            rgba(15, 23, 42, 0.12) 34%,
            rgba(15, 23, 42, 0.22) 68%,
            rgba(15, 23, 42, 0.38) 100%
        );
    pointer-events: none;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.78) saturate(0.88) contrast(1.08);
}

.thumbnail-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.9rem 0.9rem 1.1rem;
    color: var(--text);
    gap: 0.5rem;
}

.thumb-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.thumb-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.64rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);
    background: rgba(12, 19, 31, 0.68);
    color: #eef3f8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.thumb-mark {
    padding: 0.3rem 0.56rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    background: rgba(12, 19, 31, 0.6);
    color: rgba(238, 243, 248, 0.95);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.thumb-bottom {
    max-width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: rgba(10, 18, 30, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.thumb-kicker {
    margin-bottom: 0.22rem;
    color: rgba(226, 234, 242, 0.84);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.thumb-title {
    color: #f8fbff;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1rem;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
    overflow-wrap: break-word;
}

.thumb-subtitle {
    margin-top: 0.3rem;
    color: rgba(239, 245, 250, 0.94);
    font-size: 0.74rem;
    line-height: 1.4;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Topic of the Day: anchor the caption card midway down the image */
.topic-of-day-video .thumbnail-content {
    justify-content: flex-start;
}

.topic-of-day-video .thumb-bottom {
    margin-top: auto;
    margin-bottom: auto;
    transform: translateY(-10%);
}

.play-button {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 3.45rem;
    height: 3.45rem;
    margin: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
    pointer-events: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-icon {
    margin-left: 2px;
}

.video-trigger:hover .play-button,
.video-trigger:focus-visible .play-button {
    transform: scale(1.04);
    box-shadow: 0 20px 42px rgba(24, 120, 74, 0.24);
}

.video-trigger:hover .thumb-bottom,
.video-trigger:focus-visible .thumb-bottom {
    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .thumbnail {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .thumbnail::before {
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.1) 0%,
            rgba(15, 23, 42, 0.18) 38%,
            rgba(15, 23, 42, 0.28) 72%,
            rgba(0, 0, 0, 0.42) 100%
        );
}

[data-theme="dark"] .thumbnail-image {
    filter: brightness(0.72) saturate(0.9) contrast(1.1);
}

[data-theme="dark"] .thumb-badge,
[data-theme="dark"] .thumb-mark {
    background: rgba(10, 18, 30, 0.78);
    border-color: rgba(255, 255, 255, 0.12);
    color: #eef3f8;
}

[data-theme="dark"] .thumb-bottom {
    background: rgba(8, 14, 24, 0.72);
    border-color: rgba(255, 255, 255, 0.1);
}

.topic-of-day-shell {
    max-width: var(--container-lg);
    margin: 0 auto;
}

.topic-of-day-card {
    display: grid;
    gap: 1rem;
}

.topic-of-day-copy {
    display: flex;
    flex-direction: column;
}

.topic-of-day-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    list-style: none;
}

.topic-of-day-meta li {
    padding: 0.42rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.42);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
}

[data-theme="dark"] .topic-of-day-meta li {
    background: rgba(24, 34, 48, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.topic-of-day-text {
    font-size: 1rem;
    max-width: 38rem;
}

.topic-of-day-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.topic-of-day-archive {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 0.9rem;
}

.topic-of-day-video {
    max-width: 100%;
}

.topic-sequence {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.topic-sequence-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--border);
}

.topic-sequence-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.topic-sequence-number {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 800;
}

.topic-sequence-body h4 {
    font-size: 1.08rem;
    margin-bottom: 0.12rem;
}

.explanation-list {
    display: grid;
    gap: 0.75rem;
}

.explanation-item {
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.56);
}

[data-theme="dark"] .explanation-item {
    background: rgba(24, 34, 48, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.explanation-item h4 {
    font-size: 1.08rem;
    margin-bottom: 0.28rem;
}

.lesson-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
    font-weight: 600;
}

.lesson-number {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 800;
}

.session-panel {
    align-items: center;
}

.session-copy {
    text-align: center;
}

.session-note {
    margin-top: 0.55rem;
    color: var(--text-tertiary);
    font-size: 0.94rem;
}

.session-action {
    width: 100%;
}

.session-action .button {
    width: 100%;
}

.faq-list {
    display: grid;
    gap: 0.9rem;
}

.faq-item {
    border: 1px solid var(--surface-stroke);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-inset), var(--shadow-sm);
    padding: 1.1rem 1.15rem;
}

[data-theme="dark"] .faq-item {
    background: rgba(24, 34, 48, 0.72);
    border-color: rgba(255, 255, 255, 0.08);
}

.faq-item[open] {
    box-shadow: var(--shadow-inset), var(--shadow-md);
}

summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
    min-height: 44px;
}

summary::-webkit-details-marker {
    display: none;
}

.faq-plus {
    color: var(--green);
    font-size: 1.28rem;
    line-height: 1;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

details[open] .faq-plus {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 0.72rem;
    font-size: 0.94rem;
}

.final-card {
    padding: 1.9rem 1.35rem;
}

.final-title {
    margin-top: 1.05rem;
    font-size: 2.28rem;
    line-height: 1.1;
}

.final-text {
    max-width: 38rem;
    margin: 0.95rem auto 0;
    font-size: 1.05rem;
}

.final-actions {
    justify-content: center;
}

.site-footer {
    padding: 2rem 0 1.5rem;
    border-top: 1px solid var(--border);
    background: transparent;
}

.footer-grid {
    align-items: start;
}

.footer-title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
}

.footer-text {
    margin-top: 0.35rem;
    font-size: 0.92rem;
}

.footer-links,
.footer-meta {
    display: grid;
    gap: 0.5rem;
    font-size: 0.92rem;
}

.footer-bottom {
    margin-top: 1.45rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.86rem;
    color: var(--text-tertiary);
}

.shortcut-note {
    margin-top: 0.5rem;
}

kbd {
    display: inline-block;
    min-width: 1.5rem;
    padding: 0.2rem 0.35rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

[data-theme="dark"] kbd {
    background: rgba(24, 34, 48, 0.78);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.65s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

#bible-sentence,
#start-here,
#four-topics,
#topics,
#course,
#go-deeper,
#approach,
#topic-of-day,
#context-session,
#faq,
#final-cta {
    content-visibility: auto;
    contain-intrinsic-size: auto 760px;
}

@media (min-width: 640px) {
    .container {
        width: min(100% - 2rem, 100%);
    }

    .hero-actions,
    .topic-of-day-actions {
        flex-direction: row;
        justify-content: center;
    }

    .cards-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-title {
        font-size: 3.3rem;
    }

    .sentence-quote {
        font-size: 2rem;
    }

    .thumb-bottom {
        padding: 0.75rem 0.9rem;
    }

    .thumb-title {
        font-size: 1.1rem;
    }

    .thumb-subtitle {
        font-size: 0.78rem;
    }
}

@media (min-width: 768px) {
    .nav-shell {
        padding: 0.95rem 1.35rem;
    }

    .nav-links {
        display: flex;
    }

    .nav-cta {
        display: inline-flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .hero {
        padding-top: 6rem;
        padding-bottom: 4.2rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.06fr) minmax(20rem, 0.86fr);
        gap: 1.5rem;
    }

    .hero-copy {
        text-align: left;
    }

    .hero-title,
    .hero-text {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-meta {
        justify-content: flex-start;
    }

    .cards-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column-layout,
    .course-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .approach-grid,
    .topic-of-day-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .session-panel {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2rem;
    }

    .session-copy {
        text-align: left;
    }

    .session-action {
        width: auto;
    }

    .session-action .button {
        width: auto;
    }

    .topic-of-day-copy {
        justify-content: center;
    }

    .topic-of-day-actions {
        justify-content: flex-start;
    }

    .final-title {
        font-size: 2.7rem;
    }

    .thumb-bottom {
        max-width: 92%;
    }
}

@media (min-width: 1024px) {
    .cards-grid-three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cards-grid-four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .two-column-layout {
        grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    }

    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .hero-title {
        font-size: 4.4rem;
    }

    .thumb-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 767px) {
    .thumbnail-content {
        padding: 0.75rem 0.75rem 0.85rem;
    }

    .thumb-title {
        font-size: 0.95rem;
    }

    .thumb-subtitle {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
    }

    .thumb-bottom {
        padding: 0.6rem 0.7rem;
    }

    .thumb-badge,
    .thumb-mark {
        font-size: 0.66rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .animate-fade-up {
        opacity: 1 !important;
        transform: none !important;
    }
}
