/* Learning Lions Hub. Brand sheet of 9 September 2026: green 3F8A5A, dark green 237046,
   light green E8F1EA, grey 4F4E55, orange F58020 as a single accent, borders BFBFBF.
   Headings Poppins, body Roboto. Lists are numbered. */
:root {
  --green: #3F8A5A;
  --green-dark: #237046;
  --green-light: #E8F1EA;
  --grey: #4F4E55;
  --orange: #F58020;
  --rule: #BFBFBF;
  --ink: #222222;
  --paper: #FFFFFF;
  --paper-2: #F6F8F6;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
h1, h2, h3 { font-family: Poppins, Roboto, system-ui, Arial, sans-serif; font-weight: 700; line-height: 1.2; margin: 0 0 .5rem; color: var(--green); }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; color: var(--grey); }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green); }
p { margin: 0 0 .8rem; }
ol { padding-left: 1.4rem; margin: 0 0 .8rem; }
ol li { margin: .25rem 0; }
pre { white-space: pre-wrap; word-wrap: break-word; font: 15px/1.5 Roboto, system-ui, sans-serif; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 8px; padding: 1rem; margin: 0; }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: var(--green-dark); color: #fff; display: flex; align-items: center; gap: 1rem; padding: .55rem 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: Poppins, sans-serif; font-weight: 700; font-size: 1.05rem; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 2px; }
.nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; padding: .45rem .7rem; border-radius: 6px; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { background: rgba(255,255,255,.14); color: #fff; }
.menu { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; padding: .4rem .8rem; font: inherit; }
@media (max-width: 720px) {
  .menu { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: .4rem; }
  .nav.open { display: flex; }
}

/* sections */
.hero { padding: 2.2rem 0 1.2rem; }
.hero.small { padding: 1.4rem 0 .6rem; }
.lead { font-size: 1.1rem; color: var(--grey); max-width: 46rem; }
.kicker { display: inline-block; font-family: Poppins, sans-serif; font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); margin-bottom: .3rem; }
.metaline { color: var(--grey); font-size: .95rem; }
.metaline span + span::before { content: " · "; }
.crumbs { font-size: .9rem; color: var(--grey); padding-top: .8rem; }
.crumbs span { color: var(--rule); padding: 0 .2rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: .5rem 0 1.5rem; }
.card { display: block; background: var(--green-light); border-radius: 12px; padding: 1.2rem 1.2rem 1rem; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.card:hover { border-color: var(--green); }
.card h2 { color: var(--green-dark); }
.card .meta { display: block; margin-top: .4rem; }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 0 0 1.2rem; }
.panel { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px; padding: 1.1rem 1.2rem; margin: 0 0 1rem; }
.panel > ol:last-child, .panel > p:last-child { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.panel-head h2 { margin: 0; }
.panel.prompt pre { font-size: 1rem; }

.track { margin: 1rem 0 1.4rem; }
.track > h2 { border-bottom: 2px solid var(--green); padding-bottom: .3rem; margin-bottom: .8rem; }
.module { margin: 0 0 .6rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper-2); }
.module > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; cursor: pointer; list-style: none; }
.module > summary::-webkit-details-marker { display: none; }
.module > summary::before { content: "+"; font-family: Poppins, sans-serif; font-weight: 700; color: var(--green); margin-right: .6rem; }
.module[open] > summary::before { content: "\2013"; }
.module > summary h3 { margin: 0; flex: 1; }
.module > .sessions, .module > p { margin: 0 1rem .8rem; border-top: 0; }
.module > .sessions { padding-top: .2rem; }
.collection details summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; width: 100%; }
.collection details summary::-webkit-details-marker { display: none; }
.collection { display: block; }
.collection .files { border-top: 0; margin: .4rem 0 0 1rem; }
.sessions, .files { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.sessions li, .files li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--rule); margin: 0; flex-wrap: wrap; }
.sessions a, .files a { text-decoration: none; font-weight: 500; }
.sessions a:hover, .files a:hover { text-decoration: underline; }
.code { display: inline-block; min-width: 4.2rem; font-family: Poppins, sans-serif; font-weight: 600; color: var(--green); }
.meta { color: var(--grey); font-size: .9rem; }
.title { font-weight: 500; }
.note { background: #FFF4E8; border-left: 3px solid var(--orange); padding: .6rem .9rem; border-radius: 0 8px 8px 0; margin-top: .9rem; }
.note:empty { display: none; }

.button { display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 8px; padding: .55rem 1rem; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--green-dark); color: #fff; }
.button.copy[data-done] { background: var(--green-dark); }

.ai { list-style: decimal; padding-left: 1.4rem; }
.ai li { margin: .5rem 0; }

.prevnext { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 1.5rem; flex-wrap: wrap; }
.prevnext a { text-decoration: none; font-weight: 500; }

.form label { display: block; margin: 0 0 .9rem; font-weight: 500; color: var(--grey); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: .3rem; padding: .55rem .7rem; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }

.filters { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: .8rem; }
.filters label { font-weight: 500; color: var(--grey); display: block; }
.filters select, .filters input { display: block; margin-top: .3rem; padding: .45rem .6rem; font: inherit; border: 1px solid var(--rule); border-radius: 8px; background: #fff; min-width: 12rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; background: var(--green-dark); color: #fff; padding: .5rem .6rem; font-family: Poppins, sans-serif; font-weight: 600; font-size: .85rem; }
.table td { padding: .5rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table .note-cell { max-width: 28rem; white-space: pre-wrap; }
.button:disabled { opacity: .5; cursor: default; }

.foot { color: var(--grey); font-size: .9rem; padding: 1.5rem 16px 2.5rem; border-top: 1px solid var(--rule); margin-top: 2rem; }
.foot p { margin: .2rem 0; }
