/* Mosaic Rising — main stylesheet */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee5;
  --ink: #1d2433;
  --muted: #5b6474;
  --line: #e7e1d6;
  --navy: #0f3a5f;
  --navy-2: #164c78;
  --sky: #3b7ea1;
  --maroon: #772432;
  --maroon-2: #8f2d3e;
  --gold: #d9a441;
  --gold-soft: #f6e7c6;
  --green: #2f855a;
  --yellow: #d69e2e;
  --red: #c53030;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(29, 36, 51, .06), 0 8px 24px rgba(29, 36, 51, .07);
  --shadow-lg: 0 2px 4px rgba(29, 36, 51, .06), 0 18px 48px rgba(29, 36, 51, .12);
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: .18em; }
a:hover { color: var(--maroon); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { flex: none; vertical-align: middle; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--maroon); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; background: var(--surface); color: var(--ink); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-accent { background: var(--maroon); color: #fff; }
.btn-accent:hover { background: var(--maroon-2); color: #fff; }
.btn-gold { background: var(--gold); color: #2a1d05; }
.btn-gold:hover { background: #e3b457; color: #2a1d05; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 700 1.12rem/1.1 var(--font-head); white-space: nowrap; }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.nav-toggle-close, .nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline; }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { display: block; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--maroon); }
.nav-open .site-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 68px); overflow-y: auto; }
.nav-open .site-nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.nav-open .nav-cta { margin-top: 16px; width: 100%; }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav, .nav-open .site-nav { display: flex; align-items: center; gap: 18px; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a:not(.btn), .nav-open .site-nav a:not(.btn) { padding: 8px 10px; border: 0; border-radius: 8px; font-size: .95rem; }
  .site-nav a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
  .site-nav a[aria-current="page"] { background: var(--surface-2); }
  .nav-open .nav-cta { margin: 0; width: auto; }
}

/* Hero (home) */
.home-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.home-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(1200px 500px at 85% 0%, rgba(217, 164, 65, .22), transparent 60%); pointer-events: none; }
.home-hero-grid { position: relative; z-index: 1; display: grid; gap: 36px; padding: 48px 0 56px; align-items: center; }
@media (min-width: 960px) { .home-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; padding: 88px 0; } }
.home-hero h1 { color: #fff; margin-bottom: 18px; }
.home-hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.home-hero .lead { color: rgba(255, 255, 255, .82); }
.home-hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn-ghost { color: #fff; }
.hero-actions .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 64px; gap: 10px; }
@media (min-width: 600px) { .hero-mosaic { grid-auto-rows: 84px; } }
.hero-mosaic > * { border-radius: 16px; overflow: hidden; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic .m1 { grid-column: 1 / 5; grid-row: 1 / 4; }
.hero-mosaic .m2 { grid-column: 5 / 7; grid-row: 1 / 3; background: var(--gold); }
.hero-mosaic .m3 { grid-column: 5 / 7; grid-row: 3 / 5; }
.hero-mosaic .m4 { grid-column: 1 / 3; grid-row: 4 / 6; background: var(--maroon); }
.hero-mosaic .m5 { grid-column: 3 / 5; grid-row: 4 / 6; }
.hero-mosaic .m6 { grid-column: 5 / 7; grid-row: 5 / 6; background: var(--sky); }
.hero-mosaic .tile-text { text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #fff; font: 600 .95rem/1.2 var(--font-head); }
.hero-mosaic .m2.tile-text { color: #2a1d05; }
.hero-mosaic .tile-text .icon { margin-bottom: auto; }
.hero-mosaic .tile-photo { position: relative; color: #fff; isolation: isolate; }
.hero-mosaic .tile-photo > img, .hero-mosaic .tile-collage { position: absolute; inset: 0; z-index: -2; }
.hero-mosaic .tile-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero-mosaic .tile-gold::after { background: linear-gradient(180deg, rgba(217,164,65,.35) 0%, rgba(217,164,65,.55) 45%, rgba(120,80,10,.92) 100%); }
.hero-mosaic .tile-maroon::after { background: linear-gradient(180deg, rgba(119,36,50,.25) 0%, rgba(119,36,50,.5) 45%, rgba(80,18,30,.94) 100%); }
.hero-mosaic .tile-sky::after { background: linear-gradient(90deg, rgba(20,70,100,.94) 0%, rgba(59,126,161,.75) 55%, rgba(59,126,161,.25) 100%); }
.hero-mosaic .m2.tile-photo { color: #fff; }
.hero-mosaic .tile-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hero-mosaic .tile-collage img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic .tile-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.92); margin-bottom: auto; }
.hero-mosaic .tile-gold .tile-icon { color: #8a5a06; }
.hero-mosaic .tile-maroon .tile-icon { color: var(--maroon); }
.hero-mosaic .tile-sky .tile-icon { color: #1f5f82; }
.hero-mosaic .tile-icon .icon { margin: 0; }
.hero-mosaic .tile-text { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero-mosaic .tile-row { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
.hero-mosaic .tile-row .tile-icon { margin-bottom: 0; }
.hero-mosaic .tile-photo { transition: transform .2s; }
.hero-mosaic .tile-photo:hover { transform: translateY(-2px); }
@media (max-width: 599px) { .hero-mosaic .tile-icon { width: 32px; height: 32px; border-radius: 10px; } .hero-mosaic .tile-icon .icon { width: 18px; height: 18px; } .hero-mosaic .tile-text { padding: 10px; font-size: .85rem; } }

/* Daily thought */
.thought { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow); display: grid; gap: 20px; }
@media (min-width: 800px) { .thought { grid-template-columns: auto 1fr auto; align-items: center; padding: 34px 40px; gap: 32px; } }
.thought-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-soft); color: var(--maroon); }
.thought blockquote { margin: 0; }
.thought blockquote p { font: 500 clamp(1.25rem, 2.6vw, 1.6rem)/1.35 var(--font-head); margin: 0 0 8px; }
.thought cite { font-style: normal; color: var(--muted); font-size: .95rem; }
.thought-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--maroon); margin-bottom: 8px; display: block; }
.home-thought { margin-top: -36px; position: relative; z-index: 2; }

/* Pillars */
.pillars { display: grid; gap: 16px; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.pillar h3 { margin: 4px 0 0; }
.pillar p { color: var(--muted); margin: 0; font-size: .98rem; }
.pillar .link-arrow { margin-top: auto; padding-top: 8px; color: var(--navy-2); }
.pillar-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.pi-navy { background: var(--navy); } .pi-maroon { background: var(--maroon); } .pi-gold { background: var(--gold); color: #2a1d05; } .pi-sky { background: var(--sky); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.hero-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.hero-card-top { display: flex; align-items: center; gap: 16px; padding: 22px 22px 0; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--gold); flex: none; background: var(--surface-2); }
.avatar-lg { width: 150px; height: 150px; }
.hero-card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.hero-card .role { font-size: .88rem; color: var(--muted); line-height: 1.4; margin: 0; }
.hero-card-body { padding: 16px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.hero-card-body p { color: var(--muted); font-size: .98rem; }
.hero-card-body .link-arrow { margin-top: auto; color: var(--maroon); }
.place { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.tag { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: #6b4a0d; }

.story-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.story-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.story-thumb { aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-thumb.contain img { object-fit: contain; width: 70%; height: 70%; }
.story-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.story-body h3 { font-size: 1.15rem; margin: 0; }
.story-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .82rem; color: var(--muted); }
.meta .cat { font-weight: 600; color: var(--maroon); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }

/* Feed */
.feed-list { display: grid; gap: 18px; }
@media (min-width: 700px) { .feed-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .feed-list.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.feed-item { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feed-item .story-thumb { aspect-ratio: 16 / 8; }
.feed-item-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feed-item h3 { font-size: 1.12rem; margin: 0; }
.feed-item h3 a { color: var(--ink); text-decoration: none; }
.feed-item h3 a:hover { color: var(--maroon); text-decoration: underline; }
.feed-item p { color: var(--muted); font-size: .95rem; margin: 0; }
.feed-item .feed-quote { font: italic 500 1rem/1.4 var(--font-head); color: var(--navy); border-left: 3px solid var(--gold); padding-left: 12px; }
.feed-item .read-more { margin-top: auto; padding-top: 6px; font-size: .92rem; }
.source-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.source-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; cursor: pointer; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-current="true"], .chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.notice { background: var(--gold-soft); border-radius: var(--radius); padding: 18px 20px; color: #5a3e0a; }

/* Page header */
.page-hero { background: var(--navy); color: #fff; padding: 52px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 60px; transform: rotate(18deg); background: linear-gradient(135deg, rgba(217, 164, 65, .35), rgba(119, 36, 50, .35)); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: rgba(255, 255, 255, .82); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero.maroon { background: var(--maroon); }
.breadcrumb { font-size: .9rem; margin-bottom: 14px; }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: #fff; }

/* Article / prose */
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h3 { font-size: 1.45rem; margin: 1.8em 0 .5em; }
.prose h3 + p { margin-top: 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); margin: 0 auto; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font: italic 500 1.25rem/1.45 var(--font-head); color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose .lede { font-size: 1.22rem; color: var(--ink); }
.prose .byline-note { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.article-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(255, 255, 255, .8); font-size: .92rem; margin-top: 18px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1000px) { .sidebar-sticky { position: sticky; top: 92px; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h2 { font-size: 1.15rem; margin-bottom: 12px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); font-weight: 500; line-height: 1.4; font-size: .96rem; }
.side-list a:hover { color: var(--maroon); }
.side-list small { display: block; color: var(--muted); font-weight: 400; }
.facts { margin: 0; }
.facts dt { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 12px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; line-height: 1.45; font-size: .96rem; }

/* Profile */
.profile-head { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 700px) { .profile-head { flex-direction: row; align-items: center; gap: 32px; } }
.profile-head .avatar { box-shadow: 0 0 0 3px var(--gold); border-color: var(--navy); }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
details.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
details.doc summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
details.doc summary::-webkit-details-marker { display: none; }
details.doc summary::after { content: '+'; font-size: 1.4rem; color: var(--maroon); }
details.doc[open] summary::after { content: '–'; }
details.doc img { margin: 0 auto; padding: 0 16px 16px; }

/* Learn */
.track { margin-bottom: 48px; }
.track-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.track-head h2 { margin: 0; font-size: 1.6rem; }
.track-head p { margin: 2px 0 0; color: var(--muted); }
.lesson-card { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.lesson-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.lesson-card h3 { font-size: 1.15rem; margin: 0; }
.lesson-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.lesson-num { font: 700 .8rem/1 var(--font-body); color: var(--maroon); letter-spacing: .08em; text-transform: uppercase; }
.lesson-done { position: absolute; top: 16px; right: 16px; display: none; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--green); background: #e5f4ec; padding: 4px 10px; border-radius: 999px; }
.is-done .lesson-done { display: inline-flex; }
.progress { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--maroon)); border-radius: inherit; transition: width .5s; }
.learn-progress { display: grid; gap: 10px; max-width: 460px; margin-top: 26px; }
.learn-progress p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.page-hero .progress { background: rgba(255, 255, 255, .2); }
.box { border-radius: var(--radius); padding: 22px 24px; }
.box h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.box-takeaways { background: var(--surface); border: 1px solid var(--line); }
.box-takeaways ul { list-style: none; padding: 0; margin: 0; }
.box-takeaways li { display: flex; gap: 10px; padding: 6px 0; }
.box-takeaways li .icon { color: var(--green); margin-top: 4px; }
.box-practice { background: #eaf2f7; }
.box-practice ol { margin: 0; padding-left: 1.3em; }
.box-practice li + li { margin-top: 6px; }
.box-reflect { background: var(--gold-soft); }
.box-reflect p { font: italic 500 1.2rem/1.45 var(--font-head); margin: 0 0 12px; color: #4a3309; }
.box-reflect textarea { width: 100%; min-height: 110px; border: 1px solid #e3cf9f; border-radius: 10px; padding: 12px; font: inherit; background: #fffdf7; }
.quiz { display: grid; gap: 22px; }
.quiz-q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.quiz-q > p { font-weight: 600; margin-bottom: 12px; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option { text-align: left; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); font: inherit; color: var(--ink); cursor: pointer; }
.quiz-option:hover:not([disabled]) { border-color: var(--navy); }
.quiz-option.correct { border-color: var(--green); background: #e5f4ec; }
.quiz-option.wrong { border-color: var(--red); background: #fbe9e9; }
.quiz-option[disabled] { cursor: default; }
.quiz-why { margin: 10px 0 0; font-size: .95rem; color: var(--muted); }
.lesson-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }

/* Games hub */
.game-card { display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius-lg); padding: 26px; text-decoration: none; color: #fff; min-height: 220px; transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.game-card h3 { color: inherit; margin: 0; font-size: 1.4rem; }
.game-card p { margin: 0; opacity: .88; font-size: .98rem; }
.game-card .link-arrow { margin-top: auto; color: inherit; }
.game-card .game-emoji { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.gc-1 { background: linear-gradient(145deg, #0f3a5f, #1f5f8b); }
.gc-2 { background: linear-gradient(145deg, #772432, #a33a4c); }
.gc-3 { background: linear-gradient(145deg, #b07a1c, #d9a441); color: #231703; }
.gc-3:hover { color: #231703; }
.gc-4 { background: linear-gradient(145deg, #2b6a58, #3f8f76); }
.gc-5 { background: linear-gradient(145deg, #3b3f73, #5a5fa3); }
.gc-6 { background: linear-gradient(145deg, #1d2433, #3b4660); }
.games-hub-progress { margin-top: 18px; color: rgba(255, 255, 255, .85); }

/* Forms */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 58, 95, .15); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; }
.alert { padding: 16px 18px; border-radius: 12px; }
.alert-ok { background: #e5f4ec; color: #1f5b3d; }
.alert-err { background: #fbe9e9; color: #8a1f1f; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--maroon), #5d1a26); color: #fff; border-radius: var(--radius-lg); padding: 40px 28px; display: grid; gap: 20px; align-items: center; }
@media (min-width: 850px) { .cta-band { grid-template-columns: 1fr auto; padding: 48px 56px; } }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 60ch; }

/* Footer */
.site-footer { background: #111827; color: rgba(255, 255, 255, .72); margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; padding: 56px 16px 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; padding-left: 28px; padding-right: 28px; } }
.footer-brand { font: 700 1.3rem/1.2 var(--font-head); color: #fff; margin-bottom: 10px; }
.footer-about p:not(.footer-brand) { max-width: 46ch; }
.footer-head { color: #fff; font-weight: 600; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { color: rgba(255, 255, 255, .72); text-decoration: none; display: inline-block; padding: 5px 0; }
.footer-links a:hover { color: var(--gold); }
.social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 16px 0 0; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: var(--gold); color: #111827; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .85rem; }
.footer-base p { margin: 0; }

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.stack > * + * { margin-top: 24px; }
.side-card .btn { width: 100%; }
.side-card .btn + .btn { margin-top: 10px; }
.feed-ph { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: #fff; font: 600 1.05rem/1.2 var(--font-head); }
.feed-ph-0 { background: linear-gradient(135deg, var(--navy), var(--sky)); }
.feed-ph-1 { background: linear-gradient(135deg, var(--maroon), #b0485a); }
.feed-ph-2 { background: linear-gradient(135deg, #b07a1c, var(--gold)); color: #231703; }
.feed-ph-3 { background: linear-gradient(135deg, #2b6a58, #4f9c83); }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .brand-name { font-size: 1rem; } .brand-tag { display: none; } .brand-mark { width: 32px; height: 32px; } .thought-icon { display: none; } }
/* The page banner already shows the game's name; keep the in-game title for screen readers only. */
.game-root .gm-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Featured event advert (home page) */
.event-promo-section { padding-bottom: 0; }
.event-promo { display: grid; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; overflow: hidden; }
@media (min-width: 900px) { .event-promo { grid-template-columns: 380px 1fr; gap: 48px; padding: 32px; align-items: center; } }
.event-flyer { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); transition: transform .2s; max-width: 420px; margin: 0 auto; }
.event-flyer:hover { transform: translateY(-3px); }
.event-flyer img { display: block; width: 100%; height: auto; }
.event-info h2 { margin: 6px 0 10px; }
.event-info h2 em { color: var(--maroon); font-style: normal; }
.event-facts { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 14px; }
.event-facts li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.event-facts .icon { flex: none; color: var(--maroon); margin-top: 2px; }
.event-facts small { color: var(--muted); }
.event-info .btn-ghost { color: var(--navy, #0f3a5f); border-color: currentColor; }
