/* Oaka Digital - public topic pages (/topics/, /topics/<slug>; 28 Oct 2026, Content\TopicLanding, layout-landing.php).
 * Linked after tokens.css and app.css, so it reads the --oaka-* palette and defines no colours of its own except white
 * text on the purple band. Every class starts with .lp-. No inline styles anywhere (CSP). */

.lp-body { background: var(--oaka-surface); color: var(--oaka-text); }
.lp-skip { position: absolute; left: 1rem; top: .5rem; z-index: 10; background: var(--oaka-surface); padding: .4rem .8rem; border-radius: var(--oaka-radius-pill); }

.lp-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .lp-wrap { padding: 0 1.5rem; } }
.lp-narrow { max-width: 50rem; }

/* ------------------------------------------------------------- bar --- */
.lp-bar { background: var(--oaka-surface); border-bottom: 3px solid var(--oaka-accent); box-shadow: var(--oaka-shadow-soft); position: relative; z-index: 2; }
.lp-bar-inner { max-width: 72rem; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
@media (min-width: 768px) { .lp-bar-inner { padding: .6rem 1.5rem; } }
.lp-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--oaka-brand-dark); font-weight: 800; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.lp-brand img { width: 40px; height: 40px; }
.lp-bar-links { display: flex; align-items: center; gap: .4rem; }
.lp-bar-links .btn { font-weight: 700; white-space: nowrap; }

/* ------------------------------------------------------------ hero --- */
.lp-hero {
  background: linear-gradient(180deg, var(--oaka-tint) 0%, var(--oaka-bg) 100%);
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--oaka-border);
}
.lp-hero-short { padding-bottom: 1.25rem; }
.lp-hero-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) {
  .lp-hero { padding: 2.5rem 0 2.25rem; }
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr) 17rem; gap: 3rem; }
}
@media (min-width: 1200px) { .lp-hero-grid { grid-template-columns: minmax(0, 1fr) 19rem; } }

.lp-crumbs { display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin: 0 0 .9rem; padding: 0; list-style: none; font-size: .9rem; }
.lp-crumbs li + li::before { content: "\203A"; margin-right: .5rem; color: var(--oaka-muted); }
.lp-crumbs a { color: var(--oaka-brand); font-weight: 700; text-decoration: none; }
.lp-crumbs a:hover { text-decoration: underline; }
.lp-crumbs [aria-current] { color: var(--oaka-muted); }

.lp-title { margin: 0 0 .6rem; font-weight: 800; color: var(--oaka-brand-dark); font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; letter-spacing: -.01em; }
.lp-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.lp-chip { display: inline-block; padding: .25rem .8rem; border-radius: var(--oaka-radius-pill); background: var(--oaka-surface); border: 1.5px solid var(--oaka-border); color: var(--oaka-brand-dark); font-weight: 700; font-size: .9rem; }
.lp-chip-ks { background: var(--oaka-brand); border-color: var(--oaka-brand); color: #fff; }
.lp-chip-quiet { color: var(--oaka-muted); font-weight: 600; }
/* 28 Oct 2026: "Last updated" beside the years chip (the same date as the structured data's dateModified). */
.lp-chips { align-items: center; }
.lp-updated { color: var(--oaka-muted); font-size: .9rem; }
.lp-lead { font-size: 1.12rem; line-height: 1.6; margin: 0 0 .8rem; max-width: 44rem; }
@media (min-width: 768px) { .lp-lead { font-size: 1.2rem; } }

.lp-ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 .5rem; }
.lp-ctas .btn { font-weight: 800; }
@media (max-width: 575.98px) { .lp-ctas .btn { flex: 1 1 100%; } }
.lp-ctas-school { margin: .25rem 0 0; color: var(--oaka-muted); }
.lp-ctas-school a { color: var(--oaka-brand); font-weight: 700; }

/* 28 Oct 2026: it is online (the heading's second line and the line under it), and the printed Topic Pack, secondary. */
.lp-title-sub { display: block; margin-top: .45rem; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; color: var(--oaka-brand); letter-spacing: 0; line-height: 1.25; }
.lp-online { font-size: 1.05rem; font-weight: 600; color: var(--oaka-text); margin: 0 0 .9rem; max-width: 44rem; }
.lp-paper { display: flex; align-items: flex-start; gap: .45rem; margin: .6rem 0 0; color: var(--oaka-muted); font-size: .95rem; }
.lp-paper a { color: var(--oaka-brand); font-weight: 700; }
.lp-paper-icon { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .15rem; color: var(--oaka-brand); }

.lp-cover { margin: 0; justify-self: center; width: min(12.5rem, 60%); }
@media (min-width: 900px) { .lp-cover { width: 100%; } }
.lp-cover img {
  display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; object-fit: cover; object-position: center top;
  border-radius: .75rem; box-shadow: var(--oaka-shadow-lift); transform: rotate(1.5deg);
  background: var(--oaka-surface);
}

.lp-stats { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 640px) { .lp-stats { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } }
.lp-stats li { background: var(--oaka-surface); border: 1px solid var(--oaka-border); border-radius: var(--oaka-radius-surface); padding: .8rem 1rem; box-shadow: var(--oaka-shadow-soft); }
.lp-stat-n { display: block; font-size: 1.9rem; font-weight: 800; color: var(--oaka-brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-stat-l { display: block; color: var(--oaka-muted); font-weight: 700; font-size: .92rem; }

/* -------------------------------------------------------- sections --- */
.lp-section { padding: 2.5rem 0; }
@media (min-width: 768px) { .lp-section { padding: 3.5rem 0; } }
.lp-section-tint { background: var(--oaka-bg); border-top: 1px solid var(--oaka-border); border-bottom: 1px solid var(--oaka-border); }
.lp-h2 { font-weight: 800; color: var(--oaka-brand-dark); font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 .4rem; }
.lp-h2::after { content: ""; display: block; width: 3rem; height: 4px; border-radius: 4px; background: var(--oaka-accent); margin-top: .5rem; }
.lp-h3 { font-weight: 800; color: var(--oaka-brand-dark); font-size: 1.4rem; margin: 0 0 .75rem; }
.lp-h4 { font-weight: 800; font-size: 1.05rem; margin: 1.25rem 0 .5rem; color: var(--oaka-brand-dark); }
.lp-sub { color: var(--oaka-muted); font-size: 1.05rem; margin: .6rem 0 1.5rem; max-width: 46rem; }

/* parts */
.lp-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
@media (min-width: 900px) { .lp-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-part { background: var(--oaka-surface); border: 1px solid var(--oaka-border); border-radius: var(--oaka-radius-surface); padding: 1.1rem 1.2rem 1.2rem; box-shadow: var(--oaka-shadow-soft); }
.lp-part-head { display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; align-items: baseline; margin-bottom: .7rem; }
.lp-part-num { grid-row: span 2; align-self: start; background: var(--oaka-brand); color: #fff; font-weight: 800; font-size: .8rem; border-radius: var(--oaka-radius-pill); padding: .3rem .7rem; white-space: nowrap; }
.lp-part-title { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--oaka-brand-dark); }
.lp-part-range { color: var(--oaka-muted); font-size: .88rem; font-weight: 600; }
.lp-headings { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.lp-headings li { background: var(--oaka-tint); color: var(--oaka-brand-dark); border-radius: var(--oaka-radius-pill); padding: .22rem .7rem; font-size: .9rem; font-weight: 600; }

/* sample section */
.lp-sample { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .lp-sample { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; } }
.lp-sample-card { margin: 0; }
@media (min-width: 900px) { .lp-sample-card { position: sticky; top: 1.5rem; } }
.lp-sample-card img { display: block; width: 100%; height: auto; border-radius: var(--oaka-radius-surface); box-shadow: var(--oaka-shadow-lift); background: var(--oaka-surface); }
.lp-sample-card figcaption { margin-top: .6rem; color: var(--oaka-muted); font-size: .9rem; font-weight: 600; }
.lp-sample-side .narration { margin: 0 0 1rem; }
.lp-terms { margin: 0; display: grid; gap: .5rem; }
.lp-terms > div { background: var(--oaka-surface); border: 1px solid var(--oaka-border); border-left: 4px solid var(--oaka-accent); border-radius: .6rem; padding: .55rem .8rem; }
.lp-terms dt { font-weight: 800; color: var(--oaka-brand-dark); }
.lp-terms dd { margin: .1rem 0 0; }

/* quiz */
.lp-quiz { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 900px) { .lp-quiz { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-q { background: var(--oaka-surface); border: 1px solid var(--oaka-border); border-radius: var(--oaka-radius-surface); padding: 1.1rem 1.2rem; box-shadow: var(--oaka-shadow-soft); display: flex; flex-direction: column; }
.lp-q-prompt { font-weight: 800; font-size: 1.08rem; margin: 0 0 .75rem; display: flex; gap: .6rem; align-items: flex-start; }
.lp-q-num { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--oaka-tint); color: var(--oaka-brand); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.lp-q-choices { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .35rem; }
.lp-q-choices li { border: 1.5px solid var(--oaka-border); border-radius: var(--oaka-radius-pill); padding: .35rem .9rem; font-weight: 600; }
.lp-q-answer { margin-top: auto; }
.lp-q-answer summary { cursor: pointer; display: inline-block; font-weight: 800; color: var(--oaka-brand); border: 1.5px solid var(--oaka-brand); border-radius: var(--oaka-radius-pill); padding: .3rem .9rem; list-style: none; }
.lp-q-answer summary::-webkit-details-marker { display: none; }
.lp-q-answer[open] summary { background: var(--oaka-brand); color: #fff; }
.lp-q-answer p { margin: .7rem 0 0; padding: .55rem .8rem; background: var(--oaka-stage-published-bg); color: var(--oaka-stage-published-fg); border-radius: .6rem; }

/* glossary */
.lp-glossary { margin: 0; display: grid; gap: .6rem; }
@media (min-width: 768px) { .lp-glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; } }
@media (min-width: 1200px) { .lp-glossary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-glossary > div { background: var(--oaka-surface); border: 1px solid var(--oaka-border); border-radius: .75rem; padding: .7rem .95rem; break-inside: avoid; }
.lp-glossary dt { font-weight: 800; color: var(--oaka-brand-dark); }
.lp-glossary dd { margin: .15rem 0 0; line-height: 1.5; }

/* how it helps */
.lp-help { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .lp-help { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lp-help { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-help li { border: 1px solid var(--oaka-border); border-radius: var(--oaka-radius-surface); padding: 1.2rem; background: var(--oaka-surface); }
.lp-help h3 { font-size: 1.15rem; font-weight: 800; margin: .6rem 0 .35rem; color: var(--oaka-brand-dark); }
.lp-help p { margin: 0; line-height: 1.55; }
.lp-help-icon { width: 2.6rem; height: 2.6rem; padding: .55rem; border-radius: .75rem; background: var(--oaka-tint); color: var(--oaka-brand); }

/* faq */
.lp-faq { display: grid; gap: .6rem; }
.lp-faq details { background: var(--oaka-surface); border: 1px solid var(--oaka-border); border-radius: .75rem; padding: .85rem 1.1rem; }
.lp-faq summary { cursor: pointer; font-weight: 800; color: var(--oaka-brand-dark); font-size: 1.05rem; }
.lp-faq details p { margin: .6rem 0 0; line-height: 1.6; }

/* band */
.lp-band { background: var(--oaka-brand-dark); color: #fff; padding: 2.75rem 0; }
@media (min-width: 768px) { .lp-band { padding: 3.75rem 0; } }
.lp-band-title { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 1.4rem; color: #fff; }
.lp-band-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .lp-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-band-card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--oaka-radius-surface); padding: 1.3rem; }
.lp-band-card h3 { font-weight: 800; font-size: 1.3rem; color: #fff; margin: 0 0 .4rem; }
.lp-band-card p { margin: 0 0 1rem; color: rgba(255, 255, 255, .9); }
.lp-band-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.lp-band-btns .btn { font-weight: 800; }
.lp-band-primary { color: var(--oaka-brand-dark); }
@media (max-width: 575.98px) { .lp-band-btns .btn { flex: 1 1 100%; } }
.lp-band-more { margin: 1.4rem 0 0; color: rgba(255, 255, 255, .85); }
.lp-band-more a { color: #fff; font-weight: 700; }

/* the list of topics */
.lp-topics { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.lp-topic { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--oaka-text); }
.lp-topic img { width: 100%; height: auto; aspect-ratio: 210 / 297; object-fit: cover; object-position: center top; border-radius: .75rem; box-shadow: var(--oaka-shadow-soft); }
.lp-topic-title { font-weight: 800; color: var(--oaka-brand-dark); }
.lp-topic-meta { color: var(--oaka-muted); font-size: .9rem; font-weight: 600; }
.lp-topic:hover .lp-topic-title { text-decoration: underline; }
/* a topic with no cover: a plain A4 tile with its title (28 Oct 2026) */
.lp-topic-blank {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem;
  aspect-ratio: 210 / 297; border-radius: .75rem; box-shadow: var(--oaka-shadow-soft);
  background: var(--oaka-tint); color: var(--oaka-brand-dark); font-weight: 800; font-size: 1.1rem; line-height: 1.25;
}
/* the list by Key Stage, then subject (28 Oct 2026) */
.lp-jump { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 0; }
.lp-jump .lp-chip { text-decoration: none; }
.lp-jump .lp-chip:hover { background: var(--oaka-tint); }
.lp-ks + .lp-ks { margin-top: 2.5rem; }
.lp-ks { scroll-margin-top: 1rem; }
.lp-subject { margin: 1.4rem 0 .8rem; font-size: 1.2rem; }
.lp-subject a { color: var(--oaka-brand-dark); text-decoration: none; }
.lp-subject a:hover { text-decoration: underline; }
.lp-topics-more { margin-top: 1.25rem; }
@media (min-width: 900px) { .lp-topics-more { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.lp-all-link { color: var(--oaka-brand); font-weight: 800; }

.lp-body .site-footer { margin-top: 0; }
