/* Simplifico Youth Readiness: design system
   Hierarchy rule: one big, two medium, the rest small. */
:root {
  --navy: #262a56; --navy-2: #1a1d3a; --navy-soft: #3a3f73;
  --sand: #e3ccae; --sand-dark: #b8935f; --sand-light: #f5ede2; --sand-faint: #faf6f0;
  --ink: #222222; --muted: #5b5f73; --line: rgba(38,42,86,0.12); --white: #ffffff;
  --ok: #2e7d5b; --ok-bg: #e8f3ed; --warn: #9a6b1f; --warn-bg: #fbf1e1; --bad: #a33a32; --bad-bg: #f9e9e7;
  --head: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
  --shadow: 0 18px 40px -28px rgba(38,42,86,0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.1; letter-spacing: -0.02em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sand-dark); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand img { width: 30px; height: 30px; }
.brand b { font-family: var(--head); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; margin-top: -2px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-size: 0.93rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--sand-faint); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 700; background: var(--sand-light); }
.nav .nav-cta { background: var(--navy); color: #fff; font-weight: 700; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--navy-soft); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 12px; padding: 14px 24px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); }
.btn-sand { background: var(--sand); color: var(--navy); }
.btn-sand:hover { background: #d8bd97; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-quiet { background: var(--sand-faint); color: var(--navy); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--navy); }
.btn-sm { padding: 9px 14px; font-size: 0.88rem; border-radius: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--sand-dark); }

/* Type scale: one big, two medium, the rest small */
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand-dark); margin-bottom: 12px; }
.big { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--muted); line-height: 1.7; max-width: 640px; }
.h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 10px; }
.h3 { font-size: 1.25rem; font-weight: 700; }
.small { font-size: 0.9rem; color: var(--muted); }
.tiny { font-size: 0.8rem; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section.tint { background: var(--sand-faint); }
.section-head { margin-bottom: 32px; max-width: 680px; }
.hero { padding: 76px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--sand-faint) 100%); }
.hero .big { margin-bottom: 18px; }

/* Search (Indeed-style) */
.search { display: grid; grid-template-columns: 1.4fr 1fr auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; gap: 6px; max-width: 860px; margin-top: 30px; }
.search label { display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 12px; min-width: 0; }
.search label + label { border-left: 1px solid var(--line); }
.search label svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search input, .search select { border: 0; outline: none; background: transparent; width: 100%; padding: 10px 0; font-size: 1rem; min-width: 0; }
.search label:focus-within { background: var(--sand-faint); }
.search .btn { padding: 14px 26px; }
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 0.86rem; font-weight: 500; color: var(--navy); text-decoration: none; cursor: pointer; }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
@media (max-width: 760px) {
  .search { grid-template-columns: 1fr; padding: 10px; }
  .search label + label { border-left: 0; border-top: 1px solid var(--line); }
  .search .btn { width: 100%; }
}

/* Medium cards (two per page) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card-m { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card-m.dark { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.85); }
.card-m.dark h2, .card-m.dark h3 { color: #fff; }
.card-m h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; margin: 4px 0 10px; }
.card-m p { color: var(--muted); }
.card-m.dark p { color: rgba(255,255,255,.8); }
.card-m .foot { margin-top: auto; padding-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
a.card-m:hover { border-color: var(--navy); }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } .card-m { padding: 24px; } }

/* Small tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; text-decoration: none; color: inherit; }
a.tile:hover { border-color: var(--navy); }
.tile .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--sand-light); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.tile .ico svg { width: 22px; height: 22px; }
.tile b { display: block; color: var(--navy); font-size: 0.98rem; }
.tile span { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { list-style: none; counter-increment: s; font-size: 0.92rem; color: var(--muted); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 0.85rem; margin-bottom: 10px; }
.steps b { display: block; color: var(--navy); margin-bottom: 4px; font-size: 1rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Browse (list + detail pane) */
.browse-top { padding: 28px 0 18px; border-bottom: 1px solid var(--line); background: var(--sand-faint); }
.browse-top .search { margin-top: 0; max-width: none; box-shadow: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.browse { display: grid; grid-template-columns: 430px 1fr; gap: 24px; padding: 24px 0 64px; align-items: start; }
.results-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
.result { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 18px 16px; margin-bottom: 12px; text-decoration: none; color: inherit; cursor: pointer; position: relative; }
.result:hover { border-color: var(--navy-soft); }
.result[aria-selected="true"] { border: 2px solid var(--navy); padding: 17px 17px 15px; }
.result h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; padding-right: 24px; }
.result .cat { font-size: 0.82rem; color: var(--muted); }
.result p { font-size: 0.9rem; color: var(--muted); margin: 8px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 600; background: var(--sand-faint); color: var(--navy); border-radius: 6px; padding: 4px 8px; }
.tag svg { width: 13px; height: 13px; }
.tag.path { background: var(--navy); color: #fff; }
.tag.done { background: var(--ok-bg); color: var(--ok); }
.pane { position: sticky; top: 88px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); max-height: calc(100vh - 110px); overflow: auto; box-shadow: var(--shadow); }
.pane-head { padding: 26px 28px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.pane-head h2 { font-size: 1.6rem; font-weight: 800; margin: 2px 0 8px; }
.pane-body { padding: 22px 28px 28px; }
.pane-body h4 { font-size: 0.98rem; margin: 18px 0 8px; }
.pane-body ul { padding-left: 18px; color: var(--muted); font-size: 0.93rem; }
.pane-body li { margin-bottom: 5px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
@media (max-width: 980px) { .browse { grid-template-columns: 1fr; } .pane { display: none; } }

/* Skill page */
.skill-hero { padding: 40px 0 28px; background: var(--sand-faint); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.skill-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; max-width: 900px; }
.skill-top { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.progress-ring { width: 120px; height: 120px; position: relative; }
.progress-ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.progress-ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-weight: 800; color: var(--navy); font-size: 1.5rem; }
.progress-ring .val small { display: block; font-family: var(--body); font-size: 0.68rem; font-weight: 600; color: var(--muted); text-align: center; margin-top: -4px; }
@media (max-width: 720px) { .skill-top { grid-template-columns: 1fr; } .progress-ring { display: none; } }
.pathway-note { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--r-sm); padding: 14px 16px; font-size: 0.92rem; margin-top: 18px; max-width: 900px; }
.pathway-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--navy); }

.learn { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 32px 0 72px; align-items: start; }
@media (max-width: 1000px) { .learn { grid-template-columns: 1fr; } }
.player { background: var(--navy-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.player .frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy-2); }
.player .frame > div, .player .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .poster { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.85); padding: 24px; }
.player .poster button { margin-top: 14px; }
.player .poster svg { width: 54px; height: 54px; margin: 0 auto 10px; color: var(--sand); }
.player .bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 18px; color: rgba(255,255,255,.85); font-size: 0.9rem; flex-wrap: wrap; }
.player .bar b { color: #fff; }
.player .bar .btn { padding: 8px 14px; font-size: 0.85rem; }
.fallback { background: var(--warn-bg); color: var(--warn); padding: 12px 18px; font-size: 0.9rem; display: none; }
.fallback.show { display: block; }
.fallback a { color: var(--warn); font-weight: 700; }

.stages { margin-top: 26px; display: grid; gap: 14px; }
.stage { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.stage-head { display: flex; gap: 14px; align-items: center; padding: 18px 22px; cursor: pointer; background: #fff; border: 0; width: 100%; text-align: left; }
.stage-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--sand-light); color: var(--navy); flex-shrink: 0; }
.stage.done .stage-num { background: var(--ok); color: #fff; }
.stage.locked .stage-num { background: #eceef4; color: var(--muted); }
.stage-head h3 { font-size: 1.1rem; font-weight: 700; }
.stage-head p { font-size: 0.87rem; color: var(--muted); }
.stage-head .state { margin-left: auto; font-size: 0.8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.stage-body { padding: 0 22px 22px 72px; display: none; }
.stage.open .stage-body { display: block; }
@media (max-width: 600px) { .stage-body { padding: 0 16px 18px; } }
.lessons { list-style: none; display: grid; gap: 8px; margin: 4px 0 18px; }
.lesson { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.lesson button.play { display: flex; gap: 10px; align-items: center; background: none; border: 0; cursor: pointer; text-align: left; flex: 1; min-width: 0; }
.lesson .pi { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.lesson .pi svg { width: 16px; height: 16px; }
.lesson .lt { min-width: 0; }
.lesson .lt b { display: block; font-size: 0.92rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson .lt span { font-size: 0.78rem; color: var(--muted); }
.lesson.playing { border-color: var(--navy); background: var(--sand-faint); }
.lesson.bad { opacity: .6; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.task { background: var(--sand-faint); border-radius: var(--r-md); padding: 16px 18px; }
.task h4 { font-size: 0.95rem; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.task h4 svg { width: 18px; height: 18px; }
.task p { font-size: 0.93rem; margin-bottom: 12px; }
.task textarea { width: 100%; min-height: 120px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; background: #fff; resize: vertical; font-size: 0.95rem; }
.task .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.no-video { font-size: 0.9rem; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 16px; }

.side { display: grid; gap: 16px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.box.dark { background: var(--navy); color: rgba(255,255,255,.85); border-color: var(--navy); }
.box.dark h3 { color: #fff; }
.box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.box p, .box li { font-size: 0.9rem; }
.box ul { padding-left: 18px; }
.box li { margin-bottom: 6px; }
.box .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.box select, .box input[type=date], .field { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: #fff; width: 100%; }
.box.dark select { color: var(--ink); }
.reslist { list-style: none; padding: 0 !important; }
.reslist a { font-weight: 700; color: var(--navy); }
.ticks { list-style: none; padding: 0 !important; }
.ticks li { display: flex; gap: 8px; }
.ticks li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8935f' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); }

/* My learning */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.stat b { display: block; font-family: var(--head); font-size: 1.8rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: 0.84rem; color: var(--muted); }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.course { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 10px; }
.bar-track { height: 8px; border-radius: 99px; background: #eceef4; overflow: hidden; margin-top: 8px; }
.bar-fill { height: 100%; background: var(--navy); border-radius: 99px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.week span { aspect-ratio: 1; border-radius: 8px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; }
.week span.on { background: var(--sand); color: var(--navy); }
.box:not(.dark) .week span { background: #eceef4; color: var(--muted); }
.box:not(.dark) .week span.on { background: var(--navy); color: #fff; }

/* Notices */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 0.92rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.notice { border-radius: var(--r-md); padding: 14px 16px; font-size: 0.92rem; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }

/* Prose pages */
.prose h2 { font-size: 1.5rem; margin: 34px 0 10px; }
.prose h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.prose p, .prose li { color: #3b3e4f; margin-bottom: 10px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 12px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 52px 0 28px; margin-top: 0; font-size: 0.9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; font-family: var(--body); font-size: 0.85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; display: block; margin-bottom: 7px; }
.site-footer a:hover { color: var(--sand); }
.site-footer .fb { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 12px; }
.site-footer .fb img { width: 28px; height: 28px; }
.site-footer .fb b { font-family: var(--head); font-size: 1.1rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; font-size: 0.8rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { font-size: 11pt; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
.menu-btn svg { width: 26px; height: 26px; }
.check span { font-weight: 500; }
