/* Magic Learning Land theme. Daytime storybook look; "Bedtime" is the dark colors. Fonts are stored in the theme (no Google calls). */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/baloo2.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(../fonts/nunito.woff2) format("woff2"); }

:root {
  --sky: #cfeeff; --sky-2: #f3fbff; --paper: #fffaf0; --card: #ffffff; --ink: #1d2550; --soft: #56608c;
  --line: #e6e1d3; --sea: #4bb4e6; --sea-2: #2a86c9; --sun: #ffc928; --berry: #e8322f; --blue: #1f6fe0;
  --go: #ff6900; --go-ink: #ffffff; --chip: #eef4ff; --gold-card: #fff3c4; --gold-line: #f2cf55; --shadow: 0 10px 30px #1d255022;
  --cloud: #ffffff;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --sky: #0d1540; --sky-2: #141d55; --paper: #10173f; --card: #1a2357; --ink: #f4f1ff; --soft: #b8bfe6;
  --line: #2c3672; --sea: #1b3f86; --sea-2: #10295e; --sun: #efe9c8; --berry: #ff6b67; --blue: #7fb2ff;
  --go: #ff8a33; --go-ink: #1a1000; --chip: #232d68; --gold-card: #2e2a18; --gold-line: #a88a2a; --shadow: 0 10px 30px #00000066;
  --cloud: #2a3470; color-scheme: dark } }
:root[data-theme="dark"] {
  --sky: #0d1540; --sky-2: #141d55; --paper: #10173f; --card: #1a2357; --ink: #f4f1ff; --soft: #b8bfe6;
  --line: #2c3672; --sea: #1b3f86; --sea-2: #10295e; --sun: #efe9c8; --berry: #ff6b67; --blue: #7fb2ff;
  --go: #ff8a33; --go-ink: #1a1000; --chip: #232d68; --gold-card: #2e2a18; --gold-line: #a88a2a; --shadow: 0 10px 30px #00000066;
  --cloud: #2a3470; color-scheme: dark }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 "Nunito", system-ui, sans-serif; overflow-x: hidden; }
h1, h2, h3, .btn, .brand, nav a { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; text-wrap: balance; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 800 13px "Nunito", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--go); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand img { width: auto; height: 84px; object-fit: contain; filter: drop-shadow(0 3px 6px #0002); }
.top nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 14px; border-radius: 999px; }
.top nav a:hover, .top nav a.on { background: var(--chip); }
.bedtime { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 800 14px "Nunito", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .brand span { display: none; }
  .brand img { height: 66px; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
  .top nav.open { display: flex; }
  .menu-btn { display: inline-block; margin-left: auto; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 800 14px "Nunito", system-ui, sans-serif; }
}

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 24px; font-size: 18px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.go { background: var(--go); color: var(--go-ink); box-shadow: 0 6px 0 color-mix(in srgb, var(--go) 60%, #000); }
.btn.quiet { background: var(--card); color: var(--ink); border: 2px solid var(--line); }
.chip { display: inline-block; background: var(--chip); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 800; }
.listen { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-card); border: 1px solid var(--gold-line); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 800; }

/* Hero */
.hero { position: relative; background: linear-gradient(var(--sky), var(--sky-2) 70%, var(--paper)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 56px 90px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, 6vw, 70px); }
.hero h1 em { font-style: normal; color: var(--go); }
.hero p.lead { font-size: 20px; color: var(--soft); max-width: 34em; margin: 16px 0 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.sun { position: absolute; right: 6%; top: 34px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--sun) 55%, transparent 72%); box-shadow: 0 0 80px var(--sun); opacity: .85; z-index: 1; }
.cloud { position: absolute; z-index: 1; width: 180px; height: 54px; background: var(--cloud); border-radius: 60px; opacity: .9; animation: drift 60s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: var(--cloud); border-radius: 50%; }
.cloud::before { width: 80px; height: 80px; left: 28px; top: -40px; }
.cloud::after { width: 60px; height: 60px; left: 90px; top: -28px; }
.cloud.c2 { top: 190px; transform: scale(.7); animation-duration: 85s; animation-delay: -30s; }
.cloud.c1 { top: 60px; animation-delay: -12s; }
.cloud.c3 { top: 330px; transform: scale(.55); animation-duration: 110s; animation-delay: -70s; }
@keyframes drift { from { left: -220px; } to { left: 105%; } }

/* Tonight's story stack */
.stack { position: relative; height: 430px; }
.stack .card { position: absolute; inset: 0 8% 0 8%; background: var(--card); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.stack .card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.stack .card .body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.stack .card .h3 { font-size: 24px; }
.stack .card[data-pos="0"] { transform: rotate(-2deg); z-index: 3; }
.stack .card[data-pos="1"] { transform: translate(28px, 18px) rotate(4deg) scale(.95); z-index: 2; opacity: .9; }
.stack .card[data-pos="2"] { transform: translate(-30px, 30px) rotate(-7deg) scale(.9); z-index: 1; opacity: .75; }
.stack .tag { position: absolute; top: -14px; left: 4%; z-index: 5; background: var(--berry); color: #fff; font: 800 15px "Baloo 2", "Nunito", system-ui, sans-serif; padding: 6px 16px; border-radius: 999px; transform: rotate(-4deg); box-shadow: var(--shadow); }

/* Worlds map */
.sea { position: relative; background: linear-gradient(var(--sea), var(--sea-2)); color: #fff; padding-block: 70px 80px; margin-top: -30px; }
.sea::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 40px; background: radial-gradient(40px 22px at 40px 0, var(--paper) 98%, transparent) 0 0 / 80px 40px repeat-x; }
.sea h2 { font-size: clamp(32px, 4.5vw, 50px); text-align: center; }
.sea .sub { text-align: center; max-width: 36em; margin: 10px auto 40px; font-size: 19px; opacity: .92; }
.islands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 26px; }
.island { --land: #7fc77a; --deep: #2f7a43; position: relative; text-decoration: none; color: #fff; display: flex; flex-direction: column; align-items: center; animation: bob 6s ease-in-out infinite; }
.island:nth-child(3n+2) { animation-delay: -2s; } .island:nth-child(3n) { animation-delay: -4s; }
.island .land { width: 100%; aspect-ratio: 1.25; border-radius: 58% 42% 52% 48% / 55% 50% 50% 45%; background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--land) 70%, #fff) 0%, var(--land) 55%, var(--deep) 100%); box-shadow: 0 0 0 8px #f6e3a6, 0 0 0 14px #ffffff33, 0 18px 0 6px #0003; display: grid; place-items: center; padding: 14%; transition: transform .25s; }
.island:nth-child(even) .land { border-radius: 45% 55% 40% 60% / 50% 45% 55% 50%; }
.island img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px #0005); }
.island .name { margin-top: 22px; font: 800 19px "Baloo 2", "Nunito", system-ui, sans-serif; text-align: center; text-shadow: 0 2px 6px #0006; }
.island .hook { font-size: 14px; opacity: 0; transform: translateY(-4px); transition: .25s; text-align: center; max-width: 16em; }
.island:hover .land, .island:focus-visible .land { transform: translateY(-8px) rotate(-2deg) scale(1.04); }
.island:hover .hook, .island:focus-visible .hook { opacity: 1; transform: none; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@media (max-width: 900px) { .islands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .islands { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; } .island .hook { opacity: 1; transform: none; } .island .name { font-size: 16px; } }

/* Sections */
section.block { padding-block: 70px; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.head h2 { font-size: clamp(30px, 4vw, 44px); }
.head p { margin: 6px 0 0; color: var(--soft); }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 20px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.story { scroll-snap-align: start; background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .2s; min-width: 0; }
.story:hover { transform: translateY(-5px) rotate(-.6deg); }
.story img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.story .body, .stack .card .body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.story .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.story .h3 { font-size: 21px; }
.story .p { margin: 0; font-size: 15px; color: var(--soft); }

/* Kristen band */
.kristen { background: var(--gold-card); border-block: 1px solid var(--gold-line); }
.kristen .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding-block: 60px; }
.kristen h2 { font-size: clamp(30px, 4vw, 44px); }
.player { background: var(--card); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: center; }
.player img { width: 110px; height: 110px; border-radius: 16px; object-fit: cover; flex: none; }
.player .info { flex: 1; min-width: 0; }
.player .play { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--go); color: var(--go-ink); font-size: 26px; cursor: pointer; flex: none; box-shadow: 0 5px 0 color-mix(in srgb, var(--go) 60%, #000); }
.bar-track { height: 8px; border-radius: 8px; background: var(--chip); margin-top: 10px; overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; background: var(--go); }
.wave { display: flex; gap: 4px; align-items: end; height: 24px; margin-top: 8px; }
.wave b { width: 5px; background: var(--go); border-radius: 3px; height: 30%; }
.playing .wave b { animation: eq .9s ease-in-out infinite; }
.wave b:nth-child(2n) { animation-delay: -.3s; } .wave b:nth-child(3n) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* How every story ends */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--card); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: #1d2550; display: grid; place-items: center; font: 800 20px "Baloo 2", "Nunito", system-ui, sans-serif; }
.step h3 { font-size: 22px; margin: 10px 0 6px; }
.step p { margin: 0; color: var(--soft); }
.step q { display: block; margin-top: 12px; font-style: italic; color: var(--ink); }

/* Sign-up */
.signup { background: linear-gradient(135deg, var(--blue), color-mix(in srgb, var(--blue) 60%, #0b1650)); color: #fff; border-radius: 30px; padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.signup h2 { font-size: clamp(28px, 3.6vw, 40px); }
.signup form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input { flex: 1 1 200px; min-width: 0; border: 0; border-radius: 999px; padding: 14px 20px; font: 600 17px "Nunito", system-ui, sans-serif; color: #1d2550; background: #fff; }
.signup .ok { font-weight: 800; }

/* Footer */
footer { margin-top: 70px; background: var(--card); border-top: 1px solid var(--line); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-block: 40px; }
footer h4 { margin: 0 0 10px; font: 800 17px "Baloo 2", "Nunito", system-ui, sans-serif; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--ink); text-decoration: none; } footer a:hover { color: var(--go); }
footer small { color: var(--soft); }

@media (max-width: 900px) {
  .hero .wrap, .kristen .wrap, .signup { grid-template-columns: 1fr; }
  .stack { height: 400px; max-width: 460px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  footer .wrap { grid-template-columns: 1fr; }
  .signup { padding: 28px 20px; }
}

/* Show page */
.world-hero { background: radial-gradient(90% 120% at 80% 0%, color-mix(in srgb, var(--land) 75%, #fff) 0%, var(--land) 45%, var(--deep) 100%); color: #fff; }
.world-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; padding-block: 50px 70px; }
.world-hero h1 { font-size: clamp(38px, 5.5vw, 62px); text-shadow: 0 3px 12px #0004; }
.world-hero .hook { font: 800 22px "Baloo 2", "Nunito", system-ui, sans-serif; color: #fff6c9; margin-top: 8px; }
.world-hero p { font-size: 19px; max-width: 32em; }
.world-hero .logo { filter: drop-shadow(0 12px 24px #0006); max-height: 300px; margin: 0 auto; animation: bob 6s ease-in-out infinite; }
.world-hero .chip { background: #ffffff2e; color: #fff; }
.crumbs { font-size: 14px; opacity: .9; margin-bottom: 14px; } .crumbs a { color: #fff; }
@media (max-width: 800px) { .world-hero .wrap { grid-template-columns: 1fr; } .world-hero .logo { max-height: 200px; order: -1; } }
.others { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.others a { flex: none; width: 130px; text-align: center; text-decoration: none; color: var(--ink); font: 700 14px "Baloo 2", "Nunito", system-ui, sans-serif; }
.others img { width: 130px; height: 90px; object-fit: contain; background: var(--chip); border-radius: 18px; padding: 10px; margin-bottom: 6px; }

/* Story page */
.reader { max-width: 760px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.reader-head { text-align: center; padding-block: 40px 20px; }
.reader-head h1 { font-size: clamp(36px, 5.5vw, 58px); margin: 10px 0; }
.reader-head .meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px auto 26px; }
.tools button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 800 14px "Nunito", system-ui, sans-serif; cursor: pointer; box-shadow: var(--shadow); }
.story-text { font-size: var(--size, 21px); line-height: 1.75; }
.story-text p { margin: 0 0 1em; }
.story-text figure { margin: 30px -40px; } .story-text figure img { border-radius: 26px; box-shadow: var(--shadow); width: 100%; }
@media (max-width: 860px) { .story-text figure { margin: 24px 0; } }
.learned { background: var(--gold-card); border: 2px dashed var(--gold-line); border-radius: 26px; padding: 26px 28px; margin: 40px 0 26px; }
.learned h2 { font-size: 30px; margin-bottom: 10px; }
.learned ul { margin: 0; padding-left: 1.2em; font-size: 19px; }
.qs h2 { font-size: 30px; margin-bottom: 6px; }
.qs .hint { color: var(--soft); margin: 0 0 16px; }
.qcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qcard { perspective: 900px; height: 190px; cursor: pointer; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: center; }
.qcard .in { position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.qcard.flip .in { transform: rotateY(180deg); }
.qcard .f, .qcard .b { position: absolute; inset: 0; border-radius: 22px; display: grid; place-items: center; padding: 18px; backface-visibility: hidden; box-shadow: var(--shadow); }
.qcard .f { background: #2456c9; color: #fff; font: 800 44px "Baloo 2", "Nunito", system-ui, sans-serif; }
.qcard .f small { display: block; font: 700 14px "Nunito", system-ui, sans-serif; opacity: .9; }
.qcard .b { background: var(--card); transform: rotateY(180deg); font: 700 18px/1.4 "Nunito", system-ui, sans-serif; }
@media (max-width: 700px) { .qcards { grid-template-columns: 1fr; } .qcard { height: 150px; } }
.sticky-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px #1d255022; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sticky-player .in { max-width: 760px; margin: 0 auto; display: flex; gap: 14px; align-items: center; }
.sticky-player .play { width: 52px; height: 52px; font-size: 20px; }
.sticky-player .info { flex: 1; min-width: 0; }
.sticky-player b { font-family: "Baloo 2"; font-size: 17px; }
.reader-end { padding-bottom: 110px; }
.stack .card .p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stack .card:not([data-pos="0"]) .body { visibility: hidden; }
@media (max-width: 520px) { .player { padding: 14px; gap: 12px; } .player img { width: 72px; height: 72px; } .player h3 { font-size: 20px !important; } .player .play { width: 54px; height: 54px; font-size: 22px; } }
.qcard { width: 100%; display: block; }
.qcard .in { display: block; }
.qcard .f small { margin-top: 4px; }

/* ---------- WordPress parts ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.story .h3, .stack .card .h3 { display: block; font-family: "Baloo 2", "Nunito", system-ui, sans-serif; font-weight: 700; line-height: 1.15; }
.story .p, .stack .card .p { display: block; }
.story .tags, .stack .card .tags, .kristen .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.kristen .tags a { text-decoration: none; }
.story .no-pic { display: block; aspect-ratio: 16/10; background: var(--chip); }
.player h3 { font-size: 24px; margin-top: 6px; } .player h3 a { color: var(--ink); text-decoration: none; }
.eyebrow.light { color: #ffe08a; }
h2.small { font-size: 30px; }
.world-hero .learn { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.others-wrap { padding-bottom: 50px; }
.signup-wrap { padding-block: 20px 0; }
.signup p { margin: 8px 0 0; }

/* Newsletter form (MailPoet) inside the blue box */
.signup .mailpoet_form { padding: 0 !important; }
.signup .mailpoet_form p, .signup .mailpoet_paragraph { margin: 0 0 10px !important; }
.signup .mailpoet_form h2, .signup .mailpoet_form .mailpoet-heading { display: none; }
.signup .mailpoet_text, .signup input[type="email"], .signup input[type="text"] { width: 100% !important; border: 0 !important; border-radius: 999px !important; padding: 14px 20px !important; font: 600 17px "Nunito", system-ui, sans-serif !important; color: #1d2550 !important; background: #fff !important; }
.signup .mailpoet_submit, .signup input[type="submit"] { border: 0 !important; border-radius: 999px !important; padding: 12px 26px !important; background: var(--go) !important; color: var(--go-ink) !important; font: 700 18px "Baloo 2", "Nunito", system-ui, sans-serif !important; cursor: pointer; width: auto !important; }
.signup label, .signup .mailpoet_form_paragraph, .signup .mailpoet_message { color: #fff !important; }
.signup a { color: #ffe08a; }

/* Story page */
.reader-head .show-logo { height: 90px; width: auto; margin: 0 auto; }
.reader .meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 1em; }
.story-text .meta { justify-content: flex-start; }
.lead-pic { margin: 0 -40px 30px; } .lead-pic img { width: 100%; height: auto; border-radius: 26px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .lead-pic { margin: 0 0 24px; } }
.story-text figure.wp-block-image, .story-text .wp-block-image { margin: 30px -40px; }
.story-text figure img { height: auto; }
.story-text figcaption { font-size: 15px; color: var(--soft); text-align: center; margin-top: 8px; }
@media (max-width: 860px) { .story-text figure.wp-block-image, .story-text .wp-block-image { margin: 24px 0; } }
.story-text h2, .story-text h3 { margin: 1.4em 0 .5em; }
.story-text .learned h2, .story-text .qs h2 { margin: 0 0 10px; font-size: 30px; }
.story-text .learned li { margin-bottom: .3em; }
.story-text .mll-printable-box { background: var(--chip); border-radius: 22px; padding: 22px 24px; margin-top: 36px; font-size: 17px; }
.story-text .mll-printable-box h3 { margin-top: 0; }
main.has-player { padding-bottom: 90px; }
.sticky-player .play { border: 0; border-radius: 50%; background: var(--go); color: var(--go-ink); cursor: pointer; box-shadow: 0 5px 0 color-mix(in srgb, var(--go) 60%, #000); }
.sticky-player .wave { height: 30px; }

/* Plain pages (About, Meet the Family, policies) */
.page-hero { background: linear-gradient(var(--sky), var(--paper)); }
.page-hero .wrap { padding-block: 50px 30px; text-align: center; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); }
.page-hero p { color: var(--soft); font-size: 19px; }
.page-hero .search-form { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.search-form input[type="search"] { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 10px 18px; font: 600 16px "Nunito", system-ui, sans-serif; min-width: 0; }
.search-form input[type="submit"] { border: 0; border-radius: 999px; padding: 10px 20px; background: var(--go); color: var(--go-ink); font: 700 16px "Baloo 2", "Nunito", system-ui, sans-serif; cursor: pointer; }
.page-body { padding-block: 20px 60px; max-width: 1100px; }
.entry { font-size: 18px; }
.entry > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry > .alignwide, .entry > .wp-block-group, .entry > .wp-block-columns, .entry > .wp-block-query, .entry > .wp-block-cover, .entry > .woocommerce { max-width: 1100px; }
.entry > .alignfull { max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.entry h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 1.4em 0 .5em; }
.entry h3 { font-size: 22px; margin: 1.2em 0 .4em; }
.entry img { height: auto; border-radius: 14px; }
.entry a { color: var(--blue); }
.wp-block-button__link { border-radius: 999px !important; background: var(--go); color: var(--go-ink) !important; font-family: "Baloo 2", "Nunito", system-ui, sans-serif; font-weight: 700; text-decoration: none; padding: 10px 22px; }
.empty { text-align: center; color: var(--soft); font-size: 19px; }

/* Meet the Family cards and the Stories & Songs list (they used to be styled in the old theme's extra CSS) */
.mll-family-grid.wp-block-group { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; margin-top: 2rem; max-width: 1100px; }
.mll-family-card { min-width: 0; display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }
.mll-family-card > * { margin: 0 !important; }
.mll-family-card h3 { font-size: 22px; line-height: 1.3; }
.mll-family-artwork { width: 100%; aspect-ratio: 5 / 3; overflow: hidden; border-radius: 14px; }
.mll-family-artwork img { width: 100%; height: 100%; object-fit: contain; }
.mll-family-card .mll-show-status { margin-top: auto !important; }
.mll-story-grid.wp-block-post-template { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.mll-story-grid > li { min-width: 0; padding: 1rem; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }
.mll-story-grid .wp-block-post-featured-image { margin: 0 0 1rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; }
.mll-story-grid .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.mll-story-grid h3 { font-size: 21px; margin: 0 0 .6rem; }
.mll-story-grid h3 a { color: var(--ink); text-decoration: none; }
@media (max-width: 1023px) { .mll-family-grid.wp-block-group, .mll-story-grid.wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mll-family-grid.wp-block-group, .mll-story-grid.wp-block-post-template { grid-template-columns: minmax(0, 1fr); } }

/* Page numbers */
.pagination, .wp-block-query-pagination { margin-top: 34px; text-align: center; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers { display: inline-block; min-width: 42px; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 800; box-shadow: var(--shadow); }
.page-numbers.current { background: var(--go); color: var(--go-ink); }

/* Footer extras */
.foot { margin-top: 70px; background: var(--card); border-top: 1px solid var(--line); }
.foot .cols { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 30px; padding-block: 40px; }
.foot h4 { margin: 0 0 10px; font: 800 17px "Baloo 2", "Nunito", system-ui, sans-serif; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot ul.two { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.foot a { color: var(--ink); text-decoration: none; } .foot a:hover { color: var(--go); }
.foot small { color: var(--soft); }
.foot .legal { padding-block: 0 30px; }
.foot .social ul { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.foot .social a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--chip); font-weight: 800; font-size: 14px; }
@media (max-width: 900px) { .foot .cols { grid-template-columns: 1fr; } }
.top nav a { text-transform: none; }

/* Learning Shop (WooCommerce) */
.shop-body ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; padding: 0; margin: 0; list-style: none; }
.shop-body ul.products::before, .shop-body ul.products::after { display: none; }
.shop-body ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: var(--card); border-radius: 22px; padding: 14px; box-shadow: var(--shadow); text-align: center; }
.shop-body ul.products li.product img { border-radius: 14px; }
.shop-body .woocommerce-loop-product__title { font: 700 19px "Baloo 2", "Nunito", system-ui, sans-serif; color: var(--ink); }
.shop-body .price { color: var(--go); font-weight: 800; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { border-radius: 999px !important; background: var(--go) !important; color: var(--go-ink) !important; font-family: "Baloo 2", "Nunito", system-ui, sans-serif !important; }
.woocommerce-info, .woocommerce-message { border-radius: 14px; }
.foot .legal { display: block; }
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .top { top: 0; } }
.story-text.entry { font-size: var(--size, 21px); }
