/* ============================================
   Knowledge Nest: site styles (v6, Nov 2026)
   Crisp white ground, the original navy and sky
   blue, one warm accent. Phone first.
   Fonts are loaded with <link> tags in each page.
   ============================================ */

:root {
  --navy: #112e5b;
  --navy-deep: #0b2147;
  --navy-light: #1a4a8a;
  --sky: #beeaf8;
  --sky-soft: #e3f5fb;
  --sky-pale: #f3fafd;
  --orange: #f2a33a;
  --orange-soft: #fdf1dc;
  --accent-text: #b3441a;
  --green: #4f8364;
  --green-pale: #e6f1ea;
  --ink: #14233d;
  --body: #36435a;
  --muted: #5b677c;
  --line: #d9e2ec;
  --white: #ffffff;

  /* Names used by inline styles and older pages */
  --sky-hero: var(--sky);
  --text-dark: var(--ink);
  --text-body: var(--body);
  --text-light: var(--muted);
  --text-on-navy: rgba(255,255,255,0.88);
  --border: var(--line);
  --gold: var(--orange);
  --gold-light: #f8c97c;
  --gold-pale: var(--orange-soft);
  --terracotta: var(--accent-text);
  --terracotta-light: #e0a98f;
  --terracotta-pale: var(--orange-soft);
  --coral: var(--accent-text);
  --eucalyptus: var(--green);
  --eucalyptus-light: #8dba9a;
  --eucalyptus-pale: var(--green-pale);
  --sandstone: var(--sky-soft);
  --sandstone-light: var(--sky-soft);
  --sandstone-pale: var(--sky-pale);
  --cream: var(--white);
  --linen: var(--sky-pale);
  --parchment: var(--sky-pale);
  --shadow: rgba(17,46,91,0.07);
  --shadow-hover: rgba(17,46,91,0.14);

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --container: 1120px;
  --wide: 1120px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section-pad: clamp(3rem, 7vw, 5.5rem);
  --radius: 14px;
  --radius-sm: 9px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--body); background: var(--white); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-text); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--navy); line-height: 1.2; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.1rem; }
/* Colon house style: in a title or heading, the part up to the colon is the bold lead-in and the rest is lighter
   ("Watch:" bold, "Classroom videos" lighter). To switch this off sitewide, delete the two rules below
   (or set both to font-weight: inherit). Labels such as "Popular:" keep their own bold either way. */
.lead-in { font-weight: 700; }
.lead-rest { font-weight: 500; }
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 700; }
ul, ol { padding-left: 1.2rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.nav :focus-visible, .footer :focus-visible, .skip-nav:focus-visible { outline-color: var(--orange); }
[id] { scroll-margin-top: 96px; }
#resultsHeading:focus { outline: none; }
#resultsHeading { overflow-wrap: anywhere; }
::selection { background: var(--gold-light); color: var(--navy); }

.container, .container-wide { width: 100%; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container { max-width: var(--container); }
.container-wide { max-width: var(--wide); }
.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-nav { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: 0.7rem 1.1rem; background: var(--navy); color: white; border-radius: var(--radius-sm); font-weight: 700; }
.skip-nav:focus { top: 1rem; color: white; }
.reveal { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: var(--navy); }
.nav.scrolled { box-shadow: 0 4px 24px rgba(11,33,71,0.28); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 92px; }
.nav-brand { display: flex; align-items: center; gap: 0.8rem; color: white; min-width: 0; }
.nav-brand img { width: 62px; height: 62px; flex-shrink: 0; }
.nav-brand-text { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; line-height: 1.05; color: white; white-space: nowrap; }
.nav-brand-text span { display: block; margin-top: 3px; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 0.5em; line-height: 1.2; color: var(--gold-light); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 0.35rem; padding: 0; }
.nav-links a { display: block; padding: 0.55rem 0.95rem; border-radius: 50px; font-weight: 600; font-size: 1rem; color: white; }
.nav-links a:hover { background: rgba(255,255,255,0.14); color: white; }
.nav-links a.active { background: white; color: var(--navy); }
.nav-links a.nav-cta-link { margin-left: 0.5rem; padding: 0.6rem 1.25rem; background: var(--orange); color: var(--navy-deep); }
.nav-links a.nav-cta-link:hover { background: #f6b458; color: var(--navy-deep); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1.5px solid rgba(255,255,255,0.45); border-radius: 12px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: white; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-inner { min-height: 72px; }
  .nav-brand img { width: 50px; height: 50px; }
  .nav-brand-text { font-size: 1.6rem; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0.25rem;
    padding: 1rem var(--gutter) 1.5rem; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.16); height: calc(100vh - 72px); height: calc(100dvh - 72px); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.95rem 1rem; font-size: 1.25rem; font-family: var(--font-display); border-radius: var(--radius-sm); }
  .nav-links a.nav-cta-link { margin: 0.75rem 0 0; text-align: center; font-family: var(--font-body); font-size: 1.05rem; border-radius: 50px; }
}
@media (max-width: 400px) {
  .nav-brand img { width: 44px; height: 44px; }
  .nav-brand-text { font-size: 1.5rem; }
}
/* Without JavaScript the menu button cannot open, so on small screens the links sit in the header itself. */
@media (max-width: 900px) {
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav-inner { flex-wrap: wrap; padding-bottom: 0.6rem; }
  html:not(.js) .nav-links { display: flex; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; height: auto; padding: 0; border-top: 0; overflow: visible; }
  html:not(.js) .nav-links a { padding: 0.5rem 0.75rem; font-family: var(--font-body); font-size: 1rem; border-radius: 50px; }
  html:not(.js) .nav-links a.nav-cta-link { margin: 0 0 0 0.35rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.6rem;
  border: 2px solid transparent; border-radius: 50px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-light); color: white; }
.btn-accent, .btn-coral { background: var(--orange); color: var(--navy-deep); }
.btn-accent:hover, .btn-coral:hover { background: #f6b458; color: var(--navy-deep); box-shadow: 0 6px 18px rgba(242,163,58,0.35); }
.btn-outline, .btn-sandstone { background: white; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover, .btn-sandstone:hover { background: var(--navy); color: white; }
.btn-ghost-white { background: transparent; color: white; border-color: rgba(255,255,255,0.6); }
.btn-ghost-white:hover { background: white; color: var(--navy); border-color: white; }
.btn-linkedin { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.65rem 1.4rem; border-radius: 50px; border: 2px solid var(--navy); color: var(--navy); font-weight: 700; }
.btn-linkedin:hover { background: var(--navy); color: white; }
.btn-sm { min-height: 44px; padding: 0.5rem 1.2rem; font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; position: relative; }
.section-tint, .section-linen, .section-sandstone-pale { background: var(--sky-pale); border-top: 1px solid var(--sky-soft); border-bottom: 1px solid var(--sky-soft); }
.section-header { max-width: 720px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-header h2 { position: relative; }
.section-header > p:not(.kn-eyebrow) { margin-top: 0.6rem; font-size: 1.15rem; color: var(--muted); }
.kn-eyebrow, .hero-tagline, .lib-eyebrow { margin-bottom: 0.45rem; font-family: var(--font-display); font-style: italic; font-size: 1.08rem; font-weight: 500; color: var(--accent-text); }

/* ---------- Home hero ---------- */
.hero { background: var(--sky); padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.hero-text h1 em { font-style: italic; color: var(--accent-text); }
.hero-text, .page-hero-text { min-width: 0; }
.hero-text > p:not(.hero-tagline) { margin-top: 1.1rem; max-width: 36em; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--body); }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; margin-top: 1.25rem; }
.hero-textlink { display: inline-flex; align-items: center; gap: 0.35em; min-height: 44px; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.hero-logo-area { position: relative; }
.hero-logo-blob { position: relative; }
.hero-logo-blob::before { content: ""; position: absolute; inset: 1.1rem -0.9rem -0.9rem 1.1rem; background: var(--navy); border-radius: 22px; }
.hero-logo-blob img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 40px var(--shadow-hover); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; } }

.tagline-ribbon { background: white; padding: 0.75rem 0; text-align: center; }
.tagline-ribbon-text { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 0.9rem; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--navy); }
.tagline-heart { width: 20px; height: 18px; object-fit: contain; }

@media (max-width: 520px) { .tagline-ribbon-text { flex-wrap: nowrap; gap: 0.4rem; font-size: clamp(0.72rem, 3.5vw, 0.95rem); white-space: nowrap; } .tagline-heart { width: 13px; height: 12px; } }

/* Search */
.lib-search { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; max-width: 640px; }
.lib-search input { flex: 1 1 240px; width: 100%; min-width: 0; min-height: 52px; padding: 0.75rem 1.3rem; border-radius: 50px; border: 2px solid var(--navy); font: inherit; font-size: 1.05rem; color: var(--ink); background: white; }
.lib-search input::placeholder { color: #6b7688; }
.lib-search .btn { min-height: 52px; }
.hero-search { margin-top: 1.6rem; }

/* ---------- Page hero (sub-pages and library) ---------- */
.page-hero { background: var(--sky); padding: clamp(2rem, 5vw, 3.75rem) 0 clamp(2rem, 5vw, 3.25rem); }
.page-hero-grid, .page-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; }
/* Library pages: the text starts at the same height on every shelf, whatever the length of its heading. */
.lib-hero .page-hero-inner { align-items: flex-start; }
.page-hero-text { max-width: 780px; }
.page-hero-text > p:not(.hero-tagline):not(.lib-practices):not(.page-hero-jump), .page-hero-lead { margin-top: 0.9rem; font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--body); max-width: 40em; }
.page-hero-illo { flex: 0 0 auto; width: clamp(180px, 24vw, 300px); height: auto; padding: 1rem; background: white; border-radius: 24px; }
.page-hero-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
.page-hero-jump a { display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; padding: 0.3rem 1rem; border-radius: 50px; background: white; border: 1.5px solid var(--navy); font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.page-hero-jump a:hover { background: var(--navy); color: white; }
.page-hero-jump span, .lib-practices span { font-size: 0.92rem; font-weight: 700; color: #4f5b70; }
.page-hero .hero-tagline { color: #9c3a15; }
@media (max-width: 640px) { .lib-popular { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0.2rem var(--gutter) 0.6rem; scrollbar-width: thin; } .lib-popular a, .lib-popular span { white-space: nowrap; flex-shrink: 0; } }
@media (max-width: 340px) { .lib-domain-title { font-size: 1rem; hyphens: auto; overflow-wrap: break-word; } .kn-tile-title { font-size: 1.1rem; } .nav-brand-text { font-size: 1.3rem; } }
.lib-crumbs { margin-bottom: 1rem; font-size: 0.92rem; color: #4f5b70; }
.lib-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(17,46,91,0.3); text-underline-offset: 3px; }
.lib-practices { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 1.1rem; }
.lib-practices em { font-style: normal; padding: 0.15rem 0.75rem; border-radius: 50px; background: rgba(255,255,255,0.7); font-size: 0.9rem; color: var(--ink); }
@media (max-width: 760px) { .page-hero-illo { display: none; } }

/* ---------- Library tiles ---------- */
.kn-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.kn-tile { display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.kn-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 34px var(--shadow-hover); border-color: var(--navy); color: inherit; }
.kn-tile-art { display: flex; align-items: flex-end; justify-content: space-between; min-height: 92px; padding: 0.9rem 1rem 0.5rem; background: var(--sky-soft); }
.kn-tile:nth-child(4n+2) .kn-tile-art { background: var(--orange-soft); }
.kn-tile:nth-child(4n+3) .kn-tile-art { background: var(--green-pale); }
.kn-tile:nth-child(4n+4) .kn-tile-art { background: var(--navy); }
.kn-tile-num { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; color: var(--navy); }
.kn-tile:nth-child(4n+4) .kn-tile-num { color: var(--sky); }
.kn-tile.kn-tile-pic .kn-tile-art { align-items: center; justify-content: center; min-height: 0; padding: 0.9rem 1rem 0.2rem; background: white; }
.kn-tile-illo { width: 100%; max-width: 190px; height: auto; margin: 0 auto; }
.kn-tile-body { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; padding: 0.95rem 1rem 1.1rem; }
.kn-tile-title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; color: var(--navy); }
.kn-tile-text { font-size: 0.96rem; line-height: 1.45; color: var(--body); }
.kn-tile-cta { margin-top: auto; padding-top: 0.5rem; font-size: 0.9rem; font-weight: 700; color: var(--accent-text); }
@media (min-width: 720px) { .kn-tiles { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } .kn-tile-art { min-height: 118px; } }
@media (max-width: 420px) { .kn-tile-text { display: none; } .kn-tile-art { min-height: 76px; } }

/* ---------- Start here ---------- */
.lib-starts { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.lib-start { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem 1.4rem; background: white; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); }
.lib-start:nth-child(even) { border-top-color: var(--orange); }
.lib-start-n { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--accent-text); }
.lib-start h3 { font-size: 1.3rem; }
.lib-start ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.lib-start li { line-height: 1.4; }
.lib-start li a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.lib-start-label { margin-top: 0.4rem; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.lib-start .lib-type { margin-right: 0.3rem; }
@media (min-width: 700px) { .lib-starts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .lib-starts { grid-template-columns: repeat(6, 1fr); } .lib-start { grid-column: span 2; } .lib-start:nth-child(4) { grid-column: 2 / span 2; } }

@media (min-width: 1040px) { .lib-starts-three .lib-start:nth-child(n) { grid-column: span 2; } }
.lib-starts-more { margin-top: 1.5rem; font-weight: 700; }
.lib-starts-more a { color: var(--accent-text); }

/* ---------- Resource cards ---------- */
.lib-list { padding-top: clamp(2rem, 4vw, 3rem); }
.lib-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .lib-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lib-grid { grid-template-columns: repeat(3, 1fr); } .lib-main .lib-grid { grid-template-columns: repeat(2, 1fr); } }
.lib-card { position: relative; display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; padding: 1.15rem 1.2rem 1rem; background: white; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.lib-card:hover { border-color: var(--navy); box-shadow: 0 10px 26px var(--shadow); transform: translateY(-2px); }
.lib-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.3; overflow-wrap: anywhere; }
.lib-card-title a { color: var(--navy); }
.lib-card-title a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.lib-by { font-size: 0.93rem; line-height: 1.45; color: var(--muted); }
.lib-focus { font-size: 0.9rem; font-weight: 700; color: var(--accent-text); }
.lib-summary { font-size: 0.98rem; line-height: 1.5; color: var(--body); }
.lib-card-foot { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: auto; padding-top: 0.6rem; }
.lib-tag { padding: 0.1rem 0.6rem; border-radius: 50px; background: var(--sky-soft); font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.lib-tag-free { background: var(--green-pale); color: #2c5a41; }
.lib-source { font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.lib-type { display: inline-block; align-self: flex-start; padding: 0.12rem 0.6rem; border-radius: 5px; font-size: 0.8rem; font-weight: 700; color: var(--navy); background: var(--sky); }
.lib-type-listen, .lib-type-voice { background: var(--orange-soft); color: #8a3a12; }
.lib-type-read, .lib-type-curriculum { background: var(--green-pale); color: #2c5a41; }
.lib-type-learn { background: var(--navy); color: white; }
.lib-type-research { background: var(--line); color: var(--navy); }
.lib-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lib-topics a { display: inline-flex; align-items: center; min-height: 36px; padding: 0.3rem 0.8rem; border-radius: 50px; border: 1px solid var(--line); background: white; font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.lib-topics a:hover { border-color: var(--navy); color: var(--navy); background: var(--sky-pale); }
.lib-staff ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.97rem; }
.lib-staff { border-top: 4px solid var(--orange); }
/* "Show all" expander (the rest of the staff sessions on Learn) */
.lib-expand { margin-top: 1rem; }
.lib-expand > summary { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 48px; padding: 0.5rem 1.4rem; border-radius: 50px; border: 2px solid var(--navy); background: white; color: var(--navy); font-weight: 700; cursor: pointer; list-style: none; }
.lib-expand > summary::-webkit-details-marker { display: none; }
.lib-expand > summary::after { content: "+"; font-size: 1.35rem; font-weight: 400; line-height: 1; }
.lib-expand[open] > summary::after { content: "\2212"; }
.lib-expand > summary:hover { background: var(--navy); color: white; }
.lib-expand[open] > summary { margin-bottom: 1rem; }
/* Phones and touch screens: the whole card opens the resource, so a one-line title is not the only thing to tap. */
@media (max-width: 640px), (hover: none) {
  .lib-card-title a::after { content: ""; position: absolute; inset: 0; }
  .lib-card .lib-topics a, .lib-card .lib-listen a, .lib-card .lib-card-foot a, .lib-card .lib-thumb { position: relative; z-index: 1; }
}

/* Video stills */
.lib-card.has-thumb { overflow: hidden; }
.lib-thumb { position: relative; display: flex; align-items: center; justify-content: center; margin: -1.15rem -1.2rem 0.45rem; aspect-ratio: 16 / 9; background: var(--sky-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.lib-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: white; transition: transform 0.3s ease; }
.lib-thumb-logo img { object-fit: contain; padding: 0.5rem; background: var(--sky-soft); }
.lib-card:hover .lib-thumb-still img { transform: scale(1.04); }
.lib-thumb-name { max-width: 78%; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; line-height: 1.25; color: var(--navy); }
.lib-thumb-play { position: absolute; left: 0.75rem; bottom: 0.75rem; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); border: 2px solid white; box-shadow: 0 2px 8px rgba(11,33,71,0.3); }
.lib-thumb-play::after { content: ""; position: absolute; left: 14px; top: 10px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent white; }
/* A small picture beside a card's heading: show cover art on episodes, the page's own preview image on reading. */
.lib-card-head { display: flex; align-items: flex-start; gap: 0.85rem; }
.lib-card-head > div { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; flex: 1; }
.lib-card-pic { flex-shrink: 0; width: 96px; height: 72px; aspect-ratio: 4 / 3; margin-top: 0.15rem; border-radius: 10px; object-fit: cover; background: var(--sky-soft); border: 1px solid var(--line); }
.lib-card-art { width: 56px; height: 56px; aspect-ratio: 1; }
/* On reading, research and curriculum cards the picture is small and sits to the right, so every title starts on the same left edge. */
.lib-card-side { order: 2; width: 64px; height: 64px; aspect-ratio: 1; }
@media (max-width: 420px) { .lib-card-side { width: 56px; height: 56px; } .lib-card-art { width: 48px; height: 48px; } }

/* Shows and Substacks */
.lib-show { flex-direction: row; align-items: flex-start; gap: 1rem; }
.lib-show > div { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; flex: 1; }
.lib-show-art { flex-shrink: 0; width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--sky-soft); box-shadow: 0 4px 12px var(--shadow-hover); }
.lib-show-initial { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-style: italic; font-size: 2.2rem; color: var(--navy); box-shadow: none; }
.lib-listen { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lib-listen a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.2rem 0.9rem; border-radius: 50px; background: var(--navy); color: white; font-size: 0.86rem; font-weight: 700; }
.lib-listen a:hover { background: var(--navy-light); color: white; }
.lib-stack { flex-direction: row; gap: 0.9rem; border-left: 4px solid var(--sky); }
.lib-stack > div { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; flex: 1; }
/* The publication's own icon, square, at the start of a Substack card; its initial on pale blue when it has none. */
.lib-stack-icon { position: relative; flex-shrink: 0; align-self: flex-start; width: 56px; height: 56px; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--sky-soft); border: 1px solid var(--line); }
.lib-stack-icon.lib-show-initial { font-size: 1.7rem; }
.lib-stack-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: white; }
@media (max-width: 420px) { .lib-stack-icon { width: 48px; height: 48px; } }
/* A Substack article's publication icon at the start of its byline. */
.lib-by-icon { display: inline-block; width: 20px; height: 20px; margin-right: 0.4rem; vertical-align: -4px; border-radius: 5px; object-fit: cover; background: var(--sky-soft); }
@media (max-width: 420px) { .lib-show-art { width: 64px; height: 64px; } }

@media (min-width: 1000px) { .lib-grid:has(> .lib-show) { grid-template-columns: repeat(2, 1fr); } }
/* An odd show out at the end of a two-column list takes the full row. */
@media (min-width: 640px) { .lib-grid > .lib-show:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Groups, headings, jump links */
.lib-group { margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.lib-group > h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-bottom: 0.9rem; }
.lib-group > h3 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.lib-group > h2 a { color: var(--navy); }
.lib-group > h2 a:hover { color: var(--accent-text); }
.lib-group-lead { margin: -0.3rem 0 1.25rem; max-width: 46em; color: var(--body); }
.lib-group-lead a, .lib-own a, .lib-empty a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lib-subhead { margin: 2rem 0 0.9rem; font-size: 1.25rem; }
.lib-subhead-first { margin-top: 2.5rem; font-size: 1.45rem; }
.lib-frame { margin: 2.5rem 0 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.lib-count { display: inline-block; margin-left: 0.3rem; padding: 0.05rem 0.6rem; border-radius: 50px; background: var(--sky-soft); font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0; color: var(--navy); vertical-align: middle; }
.lib-toc { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin-bottom: 2.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.lib-toc span { font-weight: 700; color: var(--muted); margin-right: 0.25rem; font-size: 0.92rem; }
.lib-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.25rem 0.9rem; border-radius: 50px; background: var(--sky-pale); border: 1px solid var(--sky); font-size: 0.92rem; font-weight: 600; color: var(--navy); }
.lib-toc a:hover { background: var(--navy); border-color: var(--navy); color: white; }
.lib-toc + .lib-frame { border-top: 0; padding-top: 0; margin-top: 0; }

/* Filters */
.lib-chips { margin-bottom: 1.1rem; }
.lib-chips p { margin-bottom: 0.55rem; font-weight: 700; color: var(--navy); }
.lib-chips div { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lib-chip { min-height: 44px; padding: 0.4rem 1rem; border-radius: 50px; border: 1.5px solid var(--navy); background: white; color: var(--navy); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.lib-chip span { margin-left: 0.25rem; font-weight: 600; opacity: 0.7; }
.lib-chip:hover { background: var(--sky-soft); }
.lib-chip[aria-pressed="true"] { background: var(--navy); color: white; }
.lib-filter-toggle { display: none; }
.lib-filters { margin-bottom: 1.5rem; padding: 1.1rem 1.2rem; background: var(--sky-pale); border: 1px solid var(--sky); border-radius: var(--radius); }
.lib-filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.8rem; }
.lib-field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.lib-field label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.lib-field select, .lib-field input { width: 100%; min-height: 46px; padding: 0.5rem 0.75rem; border: 1.5px solid #6b7a90; border-radius: var(--radius-sm); background: white; font: inherit; font-size: 1rem; color: var(--ink); }
.lib-filter-status { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.9rem; font-weight: 600; color: var(--body); }
.lib-reset { min-height: 44px; padding: 0.3rem 1rem; border-radius: 50px; border: 1.5px solid var(--navy); background: white; color: var(--navy); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.lib-reset:hover { background: var(--navy); color: white; }
.lib-more { margin-top: 1.75rem; text-align: center; }
.lib-empty { margin-top: 1rem; padding: 1.25rem; text-align: center; background: var(--sky-pale); border-radius: var(--radius); }
.lib-empty .lib-reset { margin-left: 0.4rem; }
/* Filters need JavaScript. Without it they are left out and the full list shows. */
html:not(.js) #libFilters, html:not(.js) #libChips, html:not(.js) #libFilterToggle, html:not(.js) .lib-more { display: none; }

/* Watch and Learn (November 2026): the kind of video on each card, the menus at the top of the shelf,
   the featured strip and the topic sections. */
.lib-kind { position: absolute; left: 0.7rem; top: 0.7rem; z-index: 2; margin: 0; padding: 0.15rem 0.6rem; border-radius: 5px; font-size: 0.8rem; font-weight: 700; line-height: 1.4; background: white; color: var(--navy); box-shadow: 0 1px 4px rgba(11,33,71,0.25); pointer-events: none; }
.lib-kind-learn { background: var(--navy); color: white; }
.lib-kind-inline { display: inline-block; position: static; margin-right: 0.35rem; padding: 0.08rem 0.55rem; border-radius: 5px; border: 1px solid var(--navy); font-size: 0.8rem; font-weight: 700; line-height: 1.4; background: white; color: var(--navy); box-shadow: none; white-space: nowrap; vertical-align: 0.08em; }
.lib-kind-inline.lib-kind-learn { background: var(--navy); color: white; }
.lib-cross { margin-top: 0.7rem; }
.lib-cross a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lib-filters-top { margin-bottom: 1.1rem; }
.lib-field select:disabled { background: #eef2f6; color: #4f5b70; border-color: #9aa6b8; opacity: 1; }
.lib-morefilters { margin-top: 0.85rem; }
.lib-morefilters > summary { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.2rem 1rem; border-radius: 50px; border: 1.5px solid var(--navy); background: white; font-size: 0.9rem; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
.lib-morefilters > summary::-webkit-details-marker { display: none; }
.lib-morefilters > summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; line-height: 1; }
.lib-morefilters[open] > summary::after { content: "\2212"; }
.lib-morefilters > summary:hover { background: var(--navy); color: white; }
.lib-morefilters > .lib-filter-row { margin-top: 0.5rem; }
.lib-chips-topics { margin-bottom: 1.6rem; }
.lib-featured { margin: 0 0 clamp(1.75rem, 4vw, 2.5rem); padding: 1.15rem 1.3rem 1.2rem; background: var(--sky-soft); border-radius: var(--radius); }
.lib-featured > h2 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); margin-bottom: 0.45rem; }
.lib-featured > p { margin-bottom: 0.5rem; max-width: 46em; color: var(--body); }
.lib-featured-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.lib-featured-list a { font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.lib-featured-list a:hover { color: var(--accent-text); }
.lib-featured-by { color: var(--body); }
.lib-featured .lib-expand > summary { min-height: 44px; }
.lib-topic { margin-bottom: clamp(2rem, 4.5vw, 2.9rem); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.lib-topic-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1.25rem; margin-bottom: 0.7rem; }
.lib-topic-head h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.lib-seeall { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.lib-seeall:hover { color: var(--accent-text); }
.lib-topic-areas, .lib-topic-more { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-bottom: 1.15rem; }
.lib-topic-areas a, .lib-topic-more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.25rem 0.5rem 0.25rem 0.9rem; border-radius: 50px; background: var(--sky-pale); border: 1px solid var(--sky); font-size: 0.92rem; font-weight: 600; color: var(--navy); }
.lib-topic-areas a:hover, .lib-topic-more a:hover { background: var(--navy); border-color: var(--navy); color: white; }
.lib-topic-areas .lib-count, .lib-topic-more .lib-count { background: white; }
.lib-topic-more { margin-bottom: clamp(2rem, 4.5vw, 2.9rem); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.lib-topic-more > .lead-in { margin-right: 0.3rem; color: var(--navy); }
.lib-all { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.lib-all > h2:focus { outline: none; }
.lib-all > h2:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (min-width: 900px) { .lib-filter-main { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  /* The topic buttons do the job of the topic sections on a phone, so the page stays short. */
  .lib-topic, .lib-topic-more { display: none; }
  .lib-filters-top { padding: 0.9rem 0.95rem; }
  .lib-featured-list .lib-kind-inline { display: block; width: fit-content; margin: 0 0 0.2rem; }
  .lib-featured-list { gap: 0.8rem; }
}
/* Without JavaScript the links that set the menus are left out; the topic samples and the full list still show. */
html:not(.js) .lib-seeall, html:not(.js) .lib-topic-areas, html:not(.js) .lib-topic-more { display: none; }
@media (max-width: 640px) {
  .lib-chips div { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0.2rem var(--gutter) 0.6rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .lib-filter-toggle { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-bottom: 1rem; border-radius: 50px; border: 2px solid var(--navy); background: white; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
  .lib-filter-toggle[aria-expanded="true"] { background: var(--navy); color: white; }
  .lib-filter-toggle:not([hidden]) ~ .lib-filters:not(.open) { display: none; }
  .lib-filter-row { grid-template-columns: 1fr; }
  .lib-toc { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 1.75rem; padding: 0.2rem var(--gutter) 1rem; scrollbar-width: thin; }
  .lib-toc a, .lib-toc span { white-space: nowrap; flex-shrink: 0; }
}

/* Areas index, bands, panels */
.lib-domains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
@media (min-width: 700px) { .lib-domains { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
@media (min-width: 1040px) { .lib-domains { grid-template-columns: repeat(5, 1fr); } }
.lib-domain, .lib-strand { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.1rem 1.2rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.lib-domain:hover, .lib-strand:hover { transform: translateY(-4px); box-shadow: 0 16px 34px var(--shadow-hover); border-color: var(--navy); color: inherit; }
.lib-domain-illo { width: 100%; max-width: 150px; height: auto; margin: 0 auto 0.4rem; }
.lib-domain-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.22; color: var(--navy); text-wrap: balance; }
.lib-domain-text { font-size: 0.95rem; line-height: 1.45; color: var(--body); }
.lib-strands { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .lib-strands { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lib-strands { grid-template-columns: repeat(3, 1fr); } }
.lib-strand { border-top: 4px solid var(--navy); padding: 1.3rem 1.3rem 1.2rem; }
.lib-strand:nth-child(3n+2) { border-top-color: var(--orange); }
.lib-strand:nth-child(3n+3) { border-top-color: var(--sky); }
.lib-strand .lib-domain-title { font-size: 1.25rem; }
.lib-side-box ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.lib-side-box ul a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
@media (max-width: 420px) { .lib-domain-text { font-size: 0.88rem; } .lib-domain { padding: 0.9rem 0.85rem 1rem; } }
.lib-band { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 20px; background: var(--navy); }
.lib-band-text { flex: 1 1 340px; }
.lib-band h2 { color: white; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.6rem; }
.lib-band p { color: var(--text-on-navy); margin-bottom: 1.1rem; }
.lib-band-chips { flex: 1 1 340px; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lib-band-chips span { padding: 0.3rem 0.9rem; border-radius: 50px; background: rgba(255,255,255,0.12); color: white; font-size: 0.92rem; }
.lib-band .lib-eyebrow, .lib-panel-navy .lib-eyebrow, .lib-side-navy .lib-eyebrow { color: var(--gold-light); }
.lib-own { margin-top: 1.75rem; color: var(--body); }
.lib-panels { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 820px) { .lib-panels { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.lib-panel { padding: clamp(1.5rem, 3.5vw, 2.4rem); border-radius: 20px; background: var(--sky-pale); border: 1px solid var(--sky); }
.lib-panel h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 0.9rem; }
.lib-panel p { margin-bottom: 0.85rem; }
.lib-panel .lib-small { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }
.lib-panel a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.lib-panel-navy { background: var(--navy); border-color: var(--navy); }
.lib-panel-navy h2 { color: white; }
.lib-panel-navy p { color: var(--text-on-navy); }
.lib-two { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: flex-start; }
.lib-main { flex: 999 1 560px; min-width: 0; }
.lib-side { flex: 1 1 250px; display: flex; flex-direction: column; gap: 1rem; }
/* Beside a long list the side column stays in view, so the page never shows an empty column. */
@media (min-width: 1000px) { .lib-side { position: sticky; top: 112px; align-self: flex-start; max-height: calc(100vh - 128px); overflow-y: auto; scrollbar-width: thin; } }
/* On a short laptop screen the column is tightened so all of it fits in view (the same illustration is on the library home). */
@media (min-width: 1000px) and (max-height: 1000px) { .lib-side { gap: 0.75rem; } .lib-side .lib-side-box { padding: 1.1rem 1.2rem; } .lib-side .lib-side-illo { display: none; } }
@media (min-width: 1000px) and (max-height: 820px) { .lib-side .lib-side-box:last-child { display: none; } }
.lib-side-box { padding: 1.3rem; border-radius: var(--radius); background: var(--sky-pale); border: 1px solid var(--sky); }
.lib-side-box h2 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.lib-side-box p { font-size: 0.98rem; margin-bottom: 0.8rem; }
.lib-side-box p:last-child { margin-bottom: 0; }
.lib-side-navy { background: var(--navy); border-color: var(--navy); }
.lib-side-navy h2 { color: white; }
.lib-side-navy p { color: var(--text-on-navy); }
.lib-side-navy a { color: var(--gold-light); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lib-end { max-width: 480px; margin: 1.5rem auto 0; }
/* An area page organised by strand (see STRANDS in library/build.py): a calm note, a "Jump to" list that wraps on phones,
   a rule above each strand so its heading is a clear landmark on a long page, and a way back to the list of strands. */
.lib-note { max-width: 46em; margin: 0 0 1.6rem; padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--sky); font-size: 0.98rem; color: var(--body); }
.lib-strand-group + .lib-strand-group { padding-top: clamp(1.9rem, 4vw, 2.6rem); border-top: 2px solid var(--sky); }
.lib-backtop { margin: 1.25rem 0 0; font-size: 0.92rem; }
.lib-backtop a { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 44px; font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.lib-backtop a:hover { color: var(--accent-text); }
.lib-side-toc { display: none; }
@media (min-width: 1000px) { .lib-side-toc { display: block; } }
/* A long list of strands is set a little tighter, and on a short laptop screen the Victorian box gives way to it, so the column never needs its own scrollbar. */
.lib-side-toc ul { gap: 0.4rem; }
.lib-side-toc li { font-size: 0.95rem; line-height: 1.4; }
@media (min-width: 1000px) and (max-height: 820px) { .lib-side-toc ~ .lib-side-navy { display: none; } }
@media (max-width: 640px) {
  .lib-toc.lib-toc-wrap { flex-wrap: wrap; overflow-x: visible; margin: 0 0 1.75rem; padding: 0 0 1.25rem; }
  .lib-toc.lib-toc-wrap a { white-space: normal; flex-shrink: 1; }
}
.lib-results-section { padding-bottom: 1rem; }
.lib-results-note { margin: 0.4rem 0 1.25rem; }
#resultsList { margin-bottom: 1.5rem; }
.library-banner { display: block; padding: 1.75rem; border-radius: 20px; background: var(--navy); color: white; }

/* ---------- General cards (About, Writing, Speaking) ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.card, .pillar-card, .service-item { padding: 1.6rem 1.5rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.card h3, .service-item h3 { margin-bottom: 0.6rem; }
.card-soon { background: var(--sky-pale); border-style: dashed; border-color: var(--sky); }
.soon-label { display: inline-block; margin-top: 0.9rem; padding: 0.15rem 0.8rem; border-radius: 50px; background: var(--orange-soft); font-size: 0.88rem; font-weight: 700; color: #8a3a12; }
.pillar-card { border-top: 4px solid var(--navy); }
.pillar-card.border-terracotta { border-top-color: var(--orange); }
.pillar-card.border-eucalyptus { border-top-color: var(--green); }
.pillar-card.border-gold { border-top-color: var(--sky); }
.pillar-header { margin-bottom: 0.6rem; }
.pillar-desc { margin-bottom: 0.9rem; }
.pillar-card ul { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.98rem; }
.service-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 760px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-item { border-top: 4px solid var(--orange); display: flex; flex-direction: column; }
.service-item-link { margin-top: auto; padding-top: 1rem; font-weight: 700; }
.service-item-link a { color: var(--accent-text); }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tags li { padding: 0.25rem 0.9rem; border-radius: 50px; background: var(--sky-soft); font-size: 0.9rem; font-weight: 600; color: var(--navy); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 820px) { .about-grid { grid-template-columns: 0.8fr 1.2fr; } }
.profile-photo { position: relative; max-width: 420px; }
.profile-photo::before { content: ""; position: absolute; inset: 1rem -0.8rem -0.8rem 1rem; background: var(--sky); border-radius: 20px; }
.profile-photo img { position: relative; width: 100%; border-radius: 20px; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; }
.pullquote { margin: 1.5rem 0; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 4px solid var(--orange); font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--navy); }
.passion-note, .availability-note, .growing-note { max-width: 760px; padding: 1.5rem 1.6rem; background: var(--orange-soft); border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; }
.passion-note p, .availability-note p { margin-bottom: 1rem; color: var(--ink); }
.passion-note p:last-child, .availability-note p:last-child { margin-bottom: 0; }
.availability-note { margin-bottom: 1.75rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.contact-row { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 1.5rem; }
.contact-item { font-weight: 600; color: var(--muted); }
.contact-item a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .cta-row .btn { width: 100%; } }

/* Mission and ribbon */
.section-paper { background: var(--white); }
.section-paper + .section-paper { padding-top: 0; }
.mission-patch { max-width: 820px; margin: 0 auto; padding: clamp(1.75rem, 5vw, 3.25rem); background: var(--sky-soft); border-radius: 24px; text-align: center; }
.mission-patch-title { margin-bottom: 1.1rem; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; font-weight: 500; color: var(--accent-text); }
.mission-patch p { margin-bottom: 0.9rem; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--navy); }
.mission-patch .mission-closing { margin: 1.4rem 0 0; font-style: italic; font-weight: 600; color: var(--accent-text); }
.navy-ribbon { background: var(--navy); padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.navy-ribbon p { max-width: 860px; margin: 0 auto; text-align: center; font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.45; color: white; }

/* Writing: featured cards and the Substack strip */
.featured-block { margin-bottom: 2.75rem; }
.featured-block:last-child { margin-bottom: 0; }
.featured-block-title { margin-bottom: 1.1rem; font-size: 1.3rem; }
.featured-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 760px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
.featured-card, .resource-card { position: relative; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.featured-card:hover, .resource-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px var(--shadow-hover); border-color: var(--navy); color: inherit; }
.featured-card-img, .resource-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sky-soft); }
.featured-card-body, .resource-card-body { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; padding: 1.2rem 1.25rem 1.3rem; }
.featured-card-body h4, .resource-card-body h3 { font-size: 1.18rem; line-height: 1.3; }
.featured-card-body p, .resource-card-body p { font-size: 0.98rem; line-height: 1.5; }
.featured-card-tag, .resource-card-tag { font-size: 0.9rem; font-weight: 700; color: var(--accent-text); }
.featured-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.6rem; font-size: 0.92rem; color: var(--muted); }
.featured-card-cta { font-weight: 700; color: var(--navy); }
.resource-card-accent { display: none; }
.resource-card-body .btn { align-self: flex-start; margin-top: auto; min-height: 44px; padding: 0.45rem 1.2rem; font-size: 0.95rem; }
.article-strip-wrap { position: relative; }
.article-strip { position: relative; display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.3rem 0.2rem 1rem; scrollbar-width: thin; }
.article-strip > .resource-card { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
.strip-arrow { position: absolute; top: 38%; z-index: 2; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: white; color: var(--navy); cursor: pointer; box-shadow: 0 6px 16px var(--shadow-hover); }
.strip-arrow svg { width: 20px; height: 20px; }
.strip-arrow:disabled { visibility: hidden; }
.strip-arrow-left { left: -0.6rem; }
.strip-arrow-right { right: -0.6rem; }
@media (min-width: 1100px) { .strip-arrow-left { left: -22px; } .strip-arrow-right { right: -22px; } }
@media (max-width: 760px) { .strip-arrow { display: none; } }

/* Forms */
.enquiry-form { max-width: 680px; margin: 0; padding: clamp(1.4rem, 4vw, 2.5rem); background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 34px var(--shadow); }
.enquiry-form label { display: block; margin: 1.1rem 0 0.35rem; font-weight: 700; color: var(--navy); }
.enquiry-form input[type="text"], .enquiry-form input[type="email"], .enquiry-form input[type="tel"], .enquiry-form select, .enquiry-form textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.9rem; border: 1.5px solid #6b7a90; border-radius: var(--radius-sm); background: white; font: inherit; color: var(--ink); }
.enquiry-form textarea { min-height: 150px; resize: vertical; }
.enquiry-form button[type="submit"] { margin-top: 1.5rem; width: 100%; }
.checkbox-fieldset { margin-top: 1.4rem; border: 0; }
.checkbox-fieldset legend { margin-bottom: 0.5rem; font-weight: 700; color: var(--navy); }
.checkbox-group { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 620px) { .checkbox-group { grid-template-columns: repeat(2, 1fr); } }
.enquiry-form .checkbox-label { display: flex; align-items: center; gap: 0.6rem; min-height: 48px; margin: 0; padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; color: var(--ink); cursor: pointer; }
.checkbox-label:hover { border-color: var(--navy); background: var(--sky-pale); }
.checkbox-label input { width: 20px; height: 20px; accent-color: var(--navy); flex-shrink: 0; }
.form-note { font-size: 0.92rem; color: var(--muted); }
.req { color: var(--accent-text); }
.form-success { max-width: 720px; margin: 0 auto 1.5rem; padding: 1.25rem 1.5rem; background: var(--green-pale); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
.prefer-chat { max-width: 720px; margin: 2rem auto 0; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: var(--text-on-navy); padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; }
.footer a { color: white; }
.footer a:hover { color: var(--gold-light); }
.footer-compact-main { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.footer-brand-row { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: white; }
.footer-brand-sub { font-family: var(--font-display); font-style: italic; font-size: 1rem; font-weight: 500; color: var(--gold-light); }
.footer-tagline { max-width: 30em; }
.footer-tagline a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.4); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.footer-connect-row { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center; font-size: 0.98rem; }
.footer-connect-row a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.4); }
.footer-sep { opacity: 0.4; }
@media (max-width: 600px) { .footer-sep { display: none; } }
@media (max-width: 560px) { .footer-nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 1.25rem; } }
.footer-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer .btn-accent { color: var(--navy-deep); }
.footer-credit { margin-top: 2rem; max-width: 46em; font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.footer-bottom { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.16); font-size: 0.86rem; color: rgba(255,255,255,0.7); }
@media (min-width: 860px) {
  .footer-compact-main { grid-template-columns: 1fr auto; column-gap: 3rem; align-items: start; }
  .footer-brand-row, .footer-tagline, .footer-cta-row { grid-column: 1; }
  .footer-nav { grid-column: 2; grid-row: 1; }
  .footer-connect-row { grid-column: 2; grid-row: 2; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .nav, .footer, .lib-filters, .lib-chips, .lib-search, .lib-more, .lib-filter-toggle, .lib-toc, .lib-backtop, .lib-topic, .lib-topic-more { display: none; }
  .lib-card { break-inside: avoid; }
  .lib-card[hidden] { display: flex !important; }
  .lib-card-title a::after { content: " (" attr(href) ")"; position: static; font-size: 0.8em; font-weight: 400; word-break: break-all; }
}

/* ---------- The Secrets of How We Learn (unlinked page, kept as it was) ---------- */
.status-pill {
  display: inline-block; margin-top: 1.25rem;
  padding: 0.4rem 1.1rem; border-radius: 50px;
  background: rgba(255,255,255,0.12); color: white;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
  border: 1.5px dashed rgba(255,255,255,0.45);
}
.page-hero .hero-subtitle {
  font-family: var(--font-display); font-style: italic;
  color: var(--navy) !important; font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
  margin-bottom: 0.75rem;
}
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.split.split-reverse { align-items: start; }
.split.split-reverse > :first-child { order: 2; }
.split.split-reverse .episode-figure { margin-top: 4.5rem; }
.split-text h2 { margin-bottom: 1.25rem; }
.split-text p { margin-bottom: 1rem; }
.split-text p:last-child { margin-bottom: 0; }
.episode-figure { margin: 0; }
.episode-figure img {
  width: 100%; height: auto; border-radius: 16px; background: white;
  box-shadow: 0 8px 30px var(--shadow);
  outline: 2px dashed var(--border); outline-offset: -8px;
}
.episode-figure figcaption {
  margin-top: 0.85rem; font-size: 0.95rem; line-height: 1.6;
  color: var(--text-light); text-align: center; font-style: italic;
}
.episode-label {
  font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: #a0532f; margin-bottom: 0.5rem;
}
.big-ideas { list-style: none; counter-reset: idea; margin: 1.5rem 0 0; }
.big-ideas li {
  counter-increment: idea; position: relative;
  padding: 0 0 1.1rem 3.25rem; line-height: 1.65;
}
.big-ideas li::before {
  content: counter(idea);
  position: absolute; left: 0; top: 0.1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--navy); color: white;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.big-ideas strong { color: var(--text-dark); }
.card-list { list-style: none; margin-top: 1rem; text-align: left; }
.card-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; font-size: 1.02rem; color: var(--text-body); line-height: 1.6; }
.card-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--eucalyptus); }

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: white; border-radius: 12px; margin-bottom: 0.75rem;
  box-shadow: 0 2px 12px var(--shadow);
  outline: 2px dashed var(--border); outline-offset: -8px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 3.5rem 1.2rem 1.5rem; position: relative;
  font-weight: 600; font-size: 1.08rem; color: var(--text-dark); border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--navy); line-height: 1;
}
.faq details[open] summary::after { content: '\2212'; }
.faq summary:hover { background: var(--sandstone-pale); }
.faq summary:focus-visible { outline-offset: -4px; }
.faq details > div { padding: 0 1.5rem 1.25rem; }
.faq details p { color: var(--text-body); font-size: 1.05rem; }

.cta-panel {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--sandstone-pale); border-radius: 16px; padding: 3rem 2rem;
  outline: 2.5px dashed var(--sandstone); outline-offset: -12px;
}
.cta-panel h2 { margin-bottom: 0.75rem; }
.cta-panel p { margin-bottom: 1.75rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Home page feature band for the curriculum */
.home-feature .split { gap: 3.5rem; }
.home-feature .episode-label { margin-bottom: 0.75rem; }
.home-feature h2 { margin-bottom: 0.5rem; }
.home-feature .home-feature-sub {
  font-family: var(--font-display); font-style: italic; color: var(--navy);
  font-size: 1.2rem; margin-bottom: 1.25rem;
}
.home-feature .btn { margin-top: 1.5rem; }

.resource-card h4 { font-size: 1.15rem; margin-bottom: 0.75rem; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.split-reverse > :first-child { order: 0; }
  .split.split-reverse .episode-figure { margin-top: 0; }
}


/* ---------- Illustrations ---------- */
.lib-panel-grow { background: white; border-color: var(--line); }
.lib-panel-illo { width: 150px; height: auto; margin: -0.5rem 0 0.6rem -0.4rem; }
.lib-side-box:has(.lib-side-illo) { background: white; border-color: var(--line); }
.lib-side-illo { width: 120px; height: auto; margin: -0.4rem 0 0.4rem -0.3rem; }
.section-header-illo { display: flex; align-items: center; gap: 1.5rem; max-width: 820px; }
.section-illo { flex: 0 0 auto; width: clamp(96px, 14vw, 150px); height: auto; border-radius: 18px; }
.section-tint .section-illo { padding: 0.5rem; background: white; }

/* ---------- This week's reading (home page and the top of Read), from library/data/featured.json ---------- */
.kn-week-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 860px) { .kn-week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kn-week-card { border-top: 4px solid var(--orange); }
.kn-week-card .lib-card-title { font-size: 1.18rem; }
.kn-week-why { margin-top: 0.15rem; }
.kn-week-more { margin-top: 1.4rem; }
.kn-week-more a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.kn-week-more a:hover { color: var(--accent-text); }
.kn-week-home .section-header { margin-bottom: clamp(1.25rem, 3vw, 1.75rem); }
.kn-week { margin: 0 0 clamp(2rem, 4.5vw, 2.9rem); padding: clamp(1.15rem, 3vw, 1.6rem); background: var(--sky-pale); border: 1px solid var(--sky); border-radius: var(--radius); }
.kn-week > .kn-eyebrow { margin-bottom: 0.25rem; }
.kn-week > h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-bottom: 0.45rem; }
.kn-week-intro { margin-bottom: 1.15rem; max-width: 46em; color: var(--body); }
/* "See key articles" on a Substack card sets the Publication menu on Read. */
.lib-stack-keys a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.lib-stack-keys a:hover { color: var(--accent-text); }
.lib-stack-keys .lib-count { text-decoration: none; }
@media (max-width: 640px), (hover: none) { .lib-card .lib-stack-keys a { position: relative; z-index: 1; } }
.lib-stacks { padding-top: 1.4rem; border-top: 1px solid var(--line); }
/* On a phone the three picks sit side by side in a strip you swipe, so the Read menus stay near the top. */
@media (max-width: 640px) {
  .kn-week-grid { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0.2rem var(--gutter) 0.8rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .kn-week-card { flex: 0 0 84%; scroll-snap-align: start; }
  .kn-week .kn-week-grid { margin: 0 -1.15rem; padding-left: 1.15rem; padding-right: 1.15rem; scroll-padding-left: 1.15rem; }
  .kn-week-home .kn-week-grid { scroll-padding-left: var(--gutter); }
}

/* Design pass, November 2026 */
.lib-fold > summary { margin-top: 0.25rem; }
@media (max-width: 640px) {
  .hero-logo-area { padding-right: 0.6rem; }
  .hero-logo-blob::before { inset: 0.8rem -0.6rem -0.6rem 0.8rem; }
}

/* Stand-in tiles for cards whose creator has no still image: on-brand rather than blank */
.lib-thumb { background: radial-gradient(circle at 92% 118%, rgba(242,163,58,0.30) 0 30%, transparent 31%), radial-gradient(circle at 4% -30%, rgba(255,255,255,0.75) 0 34%, transparent 35%), linear-gradient(135deg, #e6f6fc 0%, #c9ecf8 100%); }
.lib-thumb:not(.lib-thumb-read) { background: radial-gradient(circle at 92% 118%, rgba(242,163,58,0.38) 0 30%, transparent 31%), radial-gradient(circle at 4% -30%, rgba(255,255,255,0.10) 0 34%, transparent 35%), linear-gradient(135deg, #163a70 0%, var(--navy) 100%); }
.lib-thumb:not(.lib-thumb-read) .lib-thumb-name { color: white; }
.lib-thumb-name::after { content: ""; display: block; width: 34px; height: 3px; margin: 0.6rem auto 0; border-radius: 2px; background: var(--orange); }
.lib-thumb-play { border-color: var(--orange); }

/* Library drop-down in the top menu */
.nav-has-menu { position: relative; display: flex; align-items: center; }
.nav-sub-toggle { width: 30px; height: 36px; margin-left: -0.45rem; border: 0; border-radius: 50px; background: transparent; color: white; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nav-sub-toggle::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease; }
.nav-has-menu.open .nav-sub-toggle::before { transform: translateY(2px) rotate(-135deg); }
.nav-sub-toggle:hover { background: rgba(255,255,255,0.14); }
.nav-menu { display: none; position: absolute; top: calc(100% + 0.7rem); left: 50%; transform: translateX(-50%); width: min(620px, 92vw); padding: 1.3rem 1.4rem 1.1rem; background: white; border-radius: 18px; box-shadow: 0 18px 44px rgba(11,33,71,0.28); grid-template-columns: 0.8fr 1.2fr; gap: 0.4rem 1.6rem; z-index: 120; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; }
.nav-has-menu.open .nav-menu { display: grid; }
@media (hover: hover) and (min-width: 901px) { .nav-has-menu:hover .nav-menu { display: grid; } }
.nav-menu-head { margin: 0 0 0.35rem; font-family: var(--font-display); font-style: italic; font-size: 0.95rem; color: var(--rust, #b5481f); }
.nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu-wide ul { columns: 2; column-gap: 1.2rem; }
.nav-links .nav-menu a { padding: 0.32rem 0.5rem; margin-left: -0.5rem; border-radius: 8px; font-size: 0.95rem; font-weight: 600; color: var(--navy); break-inside: avoid; }
.nav-links .nav-menu a:hover { background: var(--sky-soft); color: var(--navy); }
.nav-menu-foot { grid-column: 1 / -1; margin: 0.5rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.nav-links .nav-menu .nav-menu-foot a { display: inline-block; color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
@media (max-width: 900px) {
  .nav-has-menu { flex-wrap: wrap; }
  .nav-has-menu > a { flex: 1; }
  .nav-sub-toggle { width: 52px; height: 52px; margin: 0; border: 1.5px solid rgba(255,255,255,0.3); border-radius: 12px; }
  .nav-menu { position: static; transform: none; width: 100%; margin: 0.35rem 0 0.5rem; padding: 0.9rem 1rem; grid-template-columns: 1fr; border-radius: var(--radius-sm); box-shadow: none; background: rgba(255,255,255,0.08); }
  .nav-menu-wide ul { columns: 1; }
  .nav-menu-head { color: var(--gold-light); }
  .nav-links .nav-menu a { font-family: var(--font-body); font-size: 1.05rem; color: white; padding: 0.55rem 0.5rem; }
  .nav-links .nav-menu a:hover { background: rgba(255,255,255,0.12); color: white; }
  .nav-menu-foot { border-color: rgba(255,255,255,0.2); }
  .nav-links .nav-menu .nav-menu-foot a { color: white; }
}
html:not(.js) .nav-sub-toggle { display: none; }

/* Newsletter sign-up */
.kn-news-box { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem 2.5rem; align-items: center; padding: 2.2rem 2.4rem; border-radius: 22px; background: var(--navy); color: white; }
.kn-news-box h2 { color: white; margin: 0.2rem 0 0.6rem; }
.kn-news-box p { color: rgba(255,255,255,0.88); margin: 0; }
.kn-news-box .kn-eyebrow { color: var(--gold-light); }
.kn-news-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.kn-news-form input { flex: 1 1 220px; min-height: 52px; padding: 0 1.1rem; border: 2px solid transparent; border-radius: 50px; font: inherit; font-size: 1rem; }
.kn-news-form input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.kn-news-small { grid-column: 2; margin-top: -0.6rem !important; font-size: 0.85rem; }
@media (max-width: 800px) { .kn-news-box { grid-template-columns: 1fr; padding: 1.6rem 1.3rem; } .kn-news-small { grid-column: 1; } }

/* A look inside the library (home page) */
.kn-look-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.kn-look { margin: 0; display: flex; flex-direction: column; }
.kn-look a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(11,33,71,0.14); transition: transform 0.2s ease, box-shadow 0.2s ease; background: white; }
.kn-look a:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11,33,71,0.2); }
.kn-look img { display: block; width: 100%; height: auto; }
.kn-look figcaption { margin-top: 0.8rem; color: var(--text-light, #4a5a70); font-size: 0.95rem; }
.kn-look figcaption strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
.kn-credit-line { margin-top: 1.4rem; font-size: 0.95rem; color: var(--text-light, #4a5a70); }
@media (max-width: 800px) { .kn-look-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 0.3rem var(--gutter) 1rem; } .kn-look { flex: 0 0 82%; scroll-snap-align: start; } }
/* Keep the menu on one line between phone and full laptop widths */
.nav-links a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1120px) {
  .nav-brand-text { font-size: 1.7rem; }
  .nav-brand img { width: 52px; height: 52px; }
  .nav-links { gap: 0.1rem; }
  .nav-links a { padding: 0.5rem 0.7rem; font-size: 0.95rem; }
  .nav-links a.nav-cta-link { margin-left: 0.3rem; padding: 0.55rem 1rem; }
}

/* Caption under the home page photo: the metaphor behind the site */
.hero-figure { margin: 0; }
.hero-caption { margin: 2.1rem 0 0; padding: 0 0.5rem; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; line-height: 1.4; color: var(--navy); }
.hero-caption::before { content: ""; display: block; width: 40px; height: 3px; margin: 0 auto 0.9rem; border-radius: 2px; background: var(--orange); }
@media (max-width: 640px) { .hero-caption { margin-top: 1.7rem; font-size: 1.15rem; } }
/* Phones and tablets: a smaller photo with the quote beside it */
@media (max-width: 900px) {
  .hero-figure { display: flex; align-items: center; gap: 1.4rem; max-width: 620px; }
  .hero-figure .hero-logo-blob { flex: 0 0 52%; }
  .hero-caption { flex: 1; margin: 0; padding: 0; text-align: left; font-size: 1.2rem; }
  .hero-caption::before { margin: 0 0 0.7rem; }
}
@media (max-width: 400px) {
  .hero-figure { gap: 1.1rem; }
  .hero-caption { font-size: 1.05rem; }
}

/* Jo's photo: small, circular, quiet */
.jo-avatar { display: block; width: 112px; height: 112px; border-radius: 50%; border: 3px solid white; box-shadow: 0 6px 18px rgba(11,33,71,0.14); }
.share-head .jo-avatar { margin: 0 0 1rem; }
.availability-note.has-avatar { display: flex; align-items: flex-start; gap: 1.1rem; }
@media (max-width: 600px) { .availability-note.has-avatar { display: block; } .availability-note.has-avatar .jo-avatar { margin-bottom: 0.8rem; } }
.jo-avatar-sm { width: 76px; height: 76px; flex: 0 0 76px; }
@media (max-width: 480px) { .jo-avatar { width: 96px; height: 96px; } .jo-avatar-sm { width: 64px; height: 64px; flex-basis: 64px; } }
