/* Design values come from the Kidologist 2026 theme. See docs/design-foundation.md. */
:root {
  --red: #e3262f;
  --yellow: #ffc72c;
  --blue: #1f6fe0;
  --green: #2e9e44;
  --orange: #f07c1c;
  --purple: #7a4fd0;
  --navy: #14305c;
  --navy-deep: #0c1f3f;
  --ink: #1b2436;
  --muted: #5a6477;
  --line: #e2e8f1;
  --soft: #eef3fb;
  --page: #f5f7fb;
  --radius: 12px;
  --wide: 1200px;
  --gutter: 20px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --shadow: 0 2px 6px rgba(20, 48, 92, .06), 0 8px 24px rgba(20, 48, 92, .06);
  --shadow-hover: 0 4px 10px rgba(20, 48, 92, .08), 0 16px 40px rgba(20, 48, 92, .12);
  --swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10C55 3 130 2 197 6' stroke='%23ffc72c' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--page); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.center { text-align: center; }

.proto-note { background: var(--navy-deep); color: #dce7f8; text-align: center; font-size: 13px; padding: 6px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-yellow { background: var(--yellow); color: var(--navy-deep); }
.btn-red { background: var(--red); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }

/* Header */
.brand-band { background: #fff; }
/* The header scales with the window, so nothing drops out until space really runs out. */
.brand-row { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(10px, 2vw, 24px); padding-top: 10px; }
.brand-band .logo { align-self: center; flex: none; }
.brand-band .logo img { width: clamp(104px, 15vw, 190px); }
.brand-tag { align-self: center; flex: 0 1 290px; min-width: 0; font-family: var(--marker); font-size: clamp(13px, 1.9vw, 19px); line-height: 1.3; color: var(--navy); }
.tag-short { display: none; }
.brand-karl { flex: none; width: clamp(100px, 16.5vw, 208px); }
.brand-callout { align-self: center; flex: 0 1 220px; min-width: 0; font-family: var(--marker); font-size: clamp(13px, 1.9vw, 19px); line-height: 1.3; color: var(--navy); text-decoration: none; transform: rotate(-3deg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.primary-nav { display: flex; gap: 4px; margin-right: auto; }
.primary-nav a { padding: 8px 11px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.primary-nav a:hover { background: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border: 0; border-radius: 50%; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; }
.signin { font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: none; }
.btn-join { font-family: var(--marker); font-weight: 400; font-size: 18px; letter-spacing: .5px; padding: 8px 24px; }
.btn-login { font-family: var(--marker); font-weight: 400; font-size: 18px; letter-spacing: .5px; padding: 8px 20px; white-space: nowrap; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: #fff; color: var(--navy); border: 0; border-radius: 10px; font-weight: 600; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy-deep) url("/karl-preview/assets/hero.jpg") center right / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 31, 63, .86) 0%, rgba(12, 31, 63, .62) 42%, rgba(12, 31, 63, 0) 68%); }
.hero-inner { position: relative; min-height: 500px; display: flex; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.hero-copy { position: relative; z-index: 2; max-width: 530px; }
.hero h1 { font-family: var(--marker); font-weight: 400; font-size: clamp(36px, 4vw, 54px); line-height: 1.12; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.swoosh { display: inline-block; padding-bottom: 10px; background: var(--swoosh) bottom / 100% 12px no-repeat; }
.lede { margin-top: 12px; font-size: 18px; }
.hero-search { margin-top: 24px; }
.hero-search label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 17px; transition: opacity .25s; }
.hero-search label.changing { opacity: 0; }
.search-field { display: flex; gap: 6px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-hover); }
.search-field input { flex: 1; min-width: 0; padding: 0 16px; border: 0; background: none; font: inherit; color: var(--ink); outline: none; }
.search-field:focus-within { outline: 3px solid var(--yellow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips button { min-height: 36px; padding: 4px 14px; color: #fff; background: rgba(12, 31, 63, .6); border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; font-size: 14px; font-weight: 500; }
.chips button:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy-deep); }
.hero-note { position: absolute; z-index: 2; top: 26px; right: var(--gutter); width: 250px; padding: 10px 14px; font-family: var(--marker); font-size: 21px; line-height: 1.2; text-align: center; background: rgba(12, 31, 63, .78); border-radius: var(--radius); transform: rotate(-3deg); }
.hero-note strong { color: var(--yellow); font-weight: 400; font-size: 32px; }

/* Stats */
.stats { background: var(--navy); color: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 16px; padding-bottom: 16px; text-align: center; }
.stats strong { display: block; font-family: var(--marker); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--yellow); }
.stats span { font-size: 14px; }

/* Sections */
.section { padding: 64px 0; }
.marker-title { font-family: var(--marker); font-weight: 400; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.2; color: var(--navy); text-align: center; }
.marker-title.left { text-align: left; }
.marker-title.on-dark { color: #fff; }
.section-intro { max-width: 640px; margin: 10px auto 0; text-align: center; font-size: 18px; color: var(--muted); }
.section-intro.on-dark { color: #dce7f8; }

/* Areas */
.areas { padding-top: 48px; }
.area-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.area { --tone: var(--blue); display: flex; flex-direction: column; padding: 20px 18px; border-radius: var(--radius); text-decoration: none; background: var(--tint); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.area:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tone-blue { --tone: #1458b8; --tint: #e5f1fc; }
.tone-green { --tone: #1f7a33; --tint: #e8f6e3; }
.tone-amber { --tone: #a85400; --tint: #fff4dc; }
.tone-purple { --tone: #5c35b0; --tint: #f0e9fb; }
.tone-red { --tone: #c01a23; --tint: #fde9e9; }
.area-icon { width: 72px; height: 72px; }
.area h3 { margin-top: 10px; font-family: var(--marker); font-weight: 400; font-size: 23px; line-height: 1.2; color: var(--navy); }
.area p { margin: 8px 0 14px; font-size: 14.5px; line-height: 1.5; }
.area-link { margin-top: auto; font-weight: 700; font-size: 14.5px; color: var(--tone); }
.area-link::after { content: " \2192"; }

/* How it works */
.how { background: #fff; }
.steps { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 34px; margin: 36px 0 30px; }
.step { position: relative; display: flex; flex-direction: column; min-width: 0; }
.step > .step-card { flex: 1; justify-content: center; }
.choice { position: relative; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.choice .step-card { flex: 1; min-height: 0; }
.choice .or { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 3px 12px; background: var(--yellow); color: var(--navy-deep); border-radius: 999px; font-size: 13px; font-weight: 800; }
.step .step-save { background: var(--navy); }
.step .step-save small { color: var(--yellow); }
.step .step-save strong, .step .step-save span { color: #fff; }
.step:not(:last-child)::after { content: "\2192"; position: absolute; top: 50%; right: -28px; font-size: 26px; font-weight: 700; color: var(--orange); }
.step-tag { display: block; margin-bottom: 8px; font-weight: 700; color: var(--navy); }
.step-card { display: flex; flex-direction: column; gap: 3px; padding: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step-card small { font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .4px; font-size: 12px; }
.step-card strong { font-size: 18px; line-height: 1.3; color: var(--navy); }
.step-card span { color: var(--muted); font-size: 14.5px; }

/* Membership */
.membership { background: linear-gradient(180deg, var(--navy-deep), var(--navy)); color: #fff; }
.billing { display: flex; width: max-content; max-width: 100%; margin: 24px auto; padding: 4px; background: rgba(255, 255, 255, .12); border-radius: 999px; }
.billing button { min-height: 42px; padding: 6px 18px; color: #fff; background: none; border: 0; border-radius: 999px; font-weight: 600; }
.billing button span { font-size: 12.5px; font-weight: 500; }
.billing button[aria-pressed="true"] { background: var(--yellow); color: var(--navy-deep); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px; color: var(--ink); background: #fff; border-radius: var(--radius); }
.plan-featured { outline: 4px solid var(--yellow); }
.plan h3 { font-family: var(--marker); font-weight: 400; font-size: 30px; color: var(--navy); }
.plan-for { color: var(--muted); min-height: 3.2em; }
.price { margin: 8px 0 12px; font-size: 42px; font-weight: 800; line-height: 1.1; color: var(--navy); }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { margin-bottom: 20px; flex: 1; }
.plan li { position: relative; padding: 5px 0 5px 26px; font-size: 15px; }
.plan li::before, .both li::before { content: "\2713"; position: absolute; left: 0; font-weight: 800; color: var(--green); }
.both { max-width: 860px; margin: 28px auto 0; padding: 20px; background: rgba(255, 255, 255, .08); border-radius: var(--radius); }
.both h3 { font-size: 17px; margin-bottom: 8px; }
.both ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; }
.both li { position: relative; padding-left: 26px; font-size: 15px; }
.both li::before { color: var(--yellow); }
.free-note { margin-top: 18px; text-align: center; color: #dce7f8; }

/* Latest */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.text-link { font-weight: 700; color: var(--blue); }
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.post a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.post img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--navy-deep); }
.post div { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.post small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.k-blue { color: #1458b8; } .k-red { color: #c01a23; } .k-purple { color: #5c35b0; } .k-green { color: #1f7a33; }
.post h3 { margin: 4px 0 10px; font-size: 16px; line-height: 1.35; color: var(--navy); }
.post time { margin-top: auto; font-size: 13px; color: var(--muted); }

/* Voices */
.voices { background: #fff; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.quote-grid figure { padding: 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.quote-grid blockquote { font-size: 16px; }
.quote-grid figcaption { margin-top: 10px; font-weight: 700; color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #dce7f8; }
.footer-row { display: grid; grid-template-columns: 170px 1.2fr 1.5fr auto; gap: 28px; align-items: center; padding-top: 34px; padding-bottom: 26px; }
.footer-logo { width: 170px; }
.mission h2 { font-family: var(--marker); font-weight: 400; font-size: 22px; color: #fff; }
.mission .tag { margin-top: 6px; color: var(--yellow); font-weight: 600; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
.site-footer nav a { padding: 2px 0; font-size: 14.5px; text-decoration: none; color: #fff; }
.site-footer nav a:hover { text-decoration: underline; }
.copyright { padding: 12px var(--gutter); text-align: center; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .14); }

/* Search dialog */
dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 22px; color: var(--ink); border: 0; border-radius: 16px; box-shadow: var(--shadow-hover); }
dialog::backdrop { background: rgba(12, 31, 63, .7); }
.search-top { display: flex; align-items: center; justify-content: space-between; }
.search-top h2 { font-family: var(--marker); font-weight: 400; font-size: 24px; color: var(--navy); }
.close { width: 44px; height: 44px; background: var(--soft); border: 0; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--navy); }
#dialog-q { width: 100%; min-height: 50px; margin-top: 10px; padding: 8px 16px; font: inherit; border: 2px solid var(--line); border-radius: 12px; }
#dialog-q:focus { outline: none; border-color: var(--blue); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.filters button { min-height: 38px; padding: 4px 14px; background: var(--soft); color: var(--navy); border: 0; border-radius: 999px; font-weight: 600; font-size: 14px; }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.search-status { margin-top: 10px; font-size: 14px; color: var(--muted); }
.factory-tip { display: block; margin-top: 10px; padding: 12px 14px; background: #fff4dc; border-radius: 10px; font-weight: 600; color: var(--navy); text-decoration: none; }
.factory-tip[hidden] { display: none; }
.results li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.results a, .results .r-title { font-weight: 600; color: var(--navy); }
.results small { display: block; font-size: 13px; color: var(--muted); }
.results small a { font-weight: 600; color: var(--blue); }
.search-foot { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* Membership level bulbs: yellow Free, blue Teacher, green Leader */
.bulb { display: inline-block; flex: none; width: 1em; height: 1em; margin-right: .22em; vertical-align: -.12em; fill: var(--yellow); }
.bulb .base { fill: var(--muted); }
.bulb-t, .level-t .bulb { fill: var(--blue); }
.bulb-l, .level-l .bulb { fill: var(--green); }
.bulb-f, .level-f .bulb { fill: var(--yellow); }
.level-g .bulb path:first-child { fill: #fff; stroke: var(--muted); stroke-width: 1.4; }
.level { font-weight: 700; color: var(--navy); }
.level .bulb { width: 1.25em; height: 1.25em; vertical-align: -.28em; }
.free-note .bulb { width: 1.25em; height: 1.25em; vertical-align: -.26em; }
.free-note .bulb .base { fill: #dce7f8; }

/* Top bar */
.util-bar { color: #fff; background: var(--navy); }
.util-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.util-tag { font-family: var(--marker); font-size: 15px; color: var(--yellow); }
.util-row nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 18px; }
.util-row nav a { white-space: nowrap; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; }
.util-row nav a:hover { text-decoration: underline; }
.proto-note { background: #fff4dc; color: var(--navy-deep); font-weight: 600; }

/* Sponsor ads */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ad-slot { width: 100%; min-width: 0; }
.ad-slot a { display: block; max-width: 100%; }
.ad-slot img { max-width: 100%; height: auto; border-radius: 6px; }
.ad-label { font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.ad-wrap { padding-block: 24px; }
.lib-body .ad-wrap-top { margin-bottom: 28px; }
.with-rail { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 28px; align-items: start; }
.with-rail > [hidden] + .ad-rail { display: none; }
.with-rail:has(> [hidden]) { display: block; }
.ad-rail { display: flex; flex-direction: column; gap: 14px; }
.ad-rail .ad-slot + .ad-slot .ad-label { display: none; }

/* Backstage ads */
.ad-table { min-width: 960px; }
.ad-table td:first-child { min-width: 170px; }
.ad-table td:nth-child(4) { min-width: 210px; white-space: normal; font-variant-numeric: normal; }
.ad-table td:nth-child(n+7) { text-align: right; font-variant-numeric: tabular-nums; }
.ad-h2 { margin: 26px 0 10px; }
.ad-reset { margin-top: 16px; min-height: 40px; padding: 6px 16px; font-size: 14px; }
.ad-title { margin-bottom: 14px; font-size: 24px; color: var(--navy); }
.ad-preview { max-width: 100%; max-height: 180px; border-radius: 8px; }
.ad-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* My Kidology placeholder */
.mk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mk-grid div { padding: 14px 16px; background: #fff; border-radius: var(--radius); }
.mk-grid strong { display: block; color: var(--navy); }
.mk-grid span { font-size: 15px; color: var(--muted); }

/* Idea page */
.idea-wrap { padding-top: 28px; }
.view-as { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--navy); background: #fff4dc; border-radius: 10px; }
.view-as button { min-height: 34px; padding: 3px 12px; font: inherit; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.view-as button[aria-pressed="true"] { color: #fff; background: var(--navy); }
.idea-rail.with-rail { display: grid; }
.idea-page { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.idea-page h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; color: var(--navy); text-wrap: balance; overflow-wrap: anywhere; }
.idea-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; }
.idea-top .level { font-size: 16px; }
.idea-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.idea-key .bulb { width: 1.25em; height: 1.25em; vertical-align: -.28em; }
.idea-meta { font-size: 14px; color: var(--muted); }
.idea-meta a { color: #1458b8; }
.idea-summary { font-size: 19px; font-weight: 600; line-height: 1.45; color: var(--navy); }
.idea-body { min-width: 0; }
.idea-files { padding: 14px 16px; background: #fff; border-radius: var(--radius); }
.idea-files h2 { font-size: 18px; color: var(--navy); }
.idea-files ul { margin-top: 4px; padding-left: 1.2em; list-style: disc; }
.idea-download { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.idea-download-label { font-weight: 700; color: var(--navy); }
.idea-download .btn { min-height: 38px; padding: 5px 14px; font-size: 14px; }
.idea-download .bs-hint { flex-basis: 100%; }
.idea-customize { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.idea-customize span { font-size: 14px; color: var(--muted); }
.idea-gate { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; color: #fff; background: var(--navy); border-radius: var(--radius); }
.idea-gate h2 { font-family: var(--marker); font-weight: 400; font-size: 26px; line-height: 1.2; }
.idea-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.idea-share input { flex: 1 1 240px; min-width: 0; min-height: 44px; padding: 7px 12px; font: inherit; font-size: 14px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.idea-share-note { flex-basis: 100%; }

/* Customize page */
.custom-kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .4px; font-size: 13px; color: #1458b8; }
.custom-title { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; color: var(--navy); }
.custom-bulbs { margin: 4px 0 18px; font-weight: 600; color: var(--muted); }
.custom-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.custom-grid .ps-panel { max-width: none; }
.custom-side h2 { font-size: 17px; color: var(--navy); }
.custom-profile { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.custom-output { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding: 18px; background: #fff; border: 2px solid var(--yellow); border-radius: var(--radius); }
.custom-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--navy); }
.custom-brand img { max-height: 54px; width: auto; }
.profile-form { max-width: none; }
.profile-chips button { color: var(--navy); background: var(--soft); border-color: var(--line); }

/* Store Featured banner */
.feat { margin-bottom: 24px; overflow: hidden; color: #fff; background: var(--navy); border-radius: var(--radius); }
.feat-slide { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); min-height: 340px; color: #fff; text-decoration: none; }
.feat-pic { display: flex; align-items: center; justify-content: center; padding: 16px; background: #fff; }
.feat-img { width: 100%; height: 308px; object-fit: contain; }
.feat-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-width: 0; padding: 24px 32px; }
.feat-label { font-family: var(--marker); font-size: 18px; color: var(--yellow); }
.feat-name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.2; }
.feat-short { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 16px; }
.feat-price { font-size: 22px; font-weight: 800; }
.feat-nav { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px; background: var(--navy-deep); }
.feat-arrow, .feat-pause { min-height: 30px; padding: 0 10px; font: inherit; font-weight: 600; color: #fff; background: none; border: 0; cursor: pointer; }
.feat-arrow { font-size: 22px; line-height: 1; }
.feat-pause { font-size: 13px; text-decoration: underline; }
.feat-dot { width: 12px; height: 12px; padding: 0; background: none; border: 2px solid #fff; border-radius: 50%; cursor: pointer; }
.feat-dot[aria-current] { background: var(--yellow); border-color: var(--yellow); }

/* Reading areas stay white on the light grey page */
.idea-page, .blog-post, .store-product { padding: clamp(16px, 3vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.about-body { background: #fff; }
.blog-topic { box-shadow: 0 0 0 1px var(--line); }

/* Backstage Store topics */
.pt-panel { max-width: 820px; }
.pt-list { display: flex; flex-direction: column; }
.pt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pt-row strong { color: var(--navy); }
.pt-count { flex: 1 1 140px; font-size: 14px; color: var(--muted); }
.pt-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.pt-form .bs-field { flex: 1 1 240px; }

/* The Lab */
.lab-teaching { --lab: var(--yellow); --lab-text: var(--navy-deep); --lab-tint: #fff8e1; }
.lab-leading { --lab: var(--blue); --lab-text: #fff; --lab-tint: #e9f1fd; }
.lab-bulbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 8px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.lab-bulb-words { display: flex; flex-direction: column; min-width: 0; }
.lab-bulb-words strong { font-size: 18px; color: var(--navy); }
.lab-bulb-words span { font-size: 14px; color: var(--muted); }
.lab-group { margin-top: 24px; }
.lab-group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 12px 18px; color: var(--lab-text); background: var(--lab); border-radius: var(--radius); }
.lab-group-head h2 { font-family: var(--marker); font-weight: 400; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.lab-group-head span { font-size: 14px; font-weight: 700; }
.lab-group-line { margin: 10px 2px; color: var(--muted); }
.lab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lab-tool { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.lab-tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.lab-icon { display: grid; flex: none; place-items: center; width: 52px; height: 52px; font-size: 26px; background: var(--lab-tint, var(--soft)); border-radius: 50%; }
.lab-tool-text { display: flex; flex-direction: column; min-width: 0; }
.lab-tool-text strong { font-size: 18px; color: var(--navy); }
.lab-tool-text span { font-size: 14px; color: var(--muted); }
.lab-lock { margin-top: 2px; font-size: 12px; font-weight: 700; color: #1458b8; }
.lab-recent { margin-top: 28px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.lab-recent h2 { margin-bottom: 6px; font-size: 19px; color: var(--navy); }
.lab-saved-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.lab-saved-row span { font-size: 14px; color: var(--muted); }
.lab-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.lab-start-card { display: flex; flex-direction: column; padding: 16px 18px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.lab-start-card strong { color: var(--navy); }
.lab-start-card span { font-size: 14px; color: var(--muted); }
.lab-test { margin-top: 18px; }
.lab-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 960px; }
.lab-title-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.lab-title-row h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.2; color: var(--navy); }
.lab-title-row p { color: var(--muted); }
.lab-locked { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.lab-locked h2 { font-size: 22px; color: var(--navy); }
.lab-chat { gap: 10px; }
.lab-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; overflow-wrap: anywhere; }
.lab-bubble-ai { align-self: flex-start; font-weight: 600; color: var(--navy); background: #e9f1fd; }
.lab-bubble-me { align-self: flex-end; background: #fff8e1; }
.lab-answer { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.lab-answer input { width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; }
.lab-options { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-option { min-height: 38px; padding: 5px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid #9db8e2; border-radius: 999px; cursor: pointer; }
.lab-option:hover { background: #e9f1fd; }
.lab-doc { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 4vw, 36px); background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--yellow); border-radius: var(--radius); }
.lab-doc-leading { border-top-color: var(--blue); }
.lab-doc-title { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; color: var(--navy); }
.lab-doc-request { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.lab-doc-body { display: flex; flex-direction: column; gap: 6px; }
.lab-doc-body h3 { margin-top: 12px; font-size: 17px; color: #8a6400; }
.lab-doc-leading .lab-doc-body h3 { padding-bottom: 3px; color: #1458b8; border-bottom: 2px solid #cfe0f8; }
.lab-doc-list { padding-left: 20px; list-style: disc; }
.lab-doc [contenteditable="true"] { outline: 2px dashed var(--blue); outline-offset: 4px; }
.lab-actions { flex-wrap: wrap; }
.lab-revise { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-revise input { flex: 1 1 240px; min-width: 0; min-height: 44px; padding: 8px 12px; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; }

/* Save button on ideas and blog posts */
.save-control { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-block: 6px; }
.save-button { min-height: 38px; padding: 4px 16px; font: inherit; font-size: 15px; font-weight: 700; color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 999px; cursor: pointer; }
.save-button[aria-pressed="true"] { color: #fff; background: var(--navy); }
.save-note { font-size: 14px; color: var(--muted); }
.save-note a { font-weight: 700; color: #1458b8; }

/* My Kidology */
.mk-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.mk-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.mk-nav-link { padding: 9px 12px; font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none; border-radius: 8px; }
.mk-nav-link:hover { background: var(--soft); }
.mk-nav-link[aria-current] { color: #fff; background: var(--navy); }
.mk-main { min-width: 0; }
.mk-panel { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; padding: clamp(16px, 3vw, 28px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.mk-panel > .btn, .mk-panel > button.btn { align-self: flex-start; }
.mk-h2 { font-family: var(--marker); font-weight: 400; font-size: clamp(25px, 3vw, 32px); line-height: 1.2; color: var(--navy); }
.mk-h3 { margin-top: 14px; font-size: 18px; color: var(--navy); }
.mk-line { color: var(--muted); }
.mk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.mk-tile { display: flex; flex-direction: column; padding: 14px; text-decoration: none; background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); }
.mk-tile strong { font-size: 30px; line-height: 1.2; color: var(--navy); }
.mk-tile span { font-size: 14px; color: var(--muted); }
.mk-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 12px 14px; background: #fff8e1; border-radius: 10px; }
.mk-next { font-weight: 600; color: #1458b8; }
.mk-rows { display: flex; flex-direction: column; }
.mk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mk-row-words { display: flex; flex: 1 1 240px; flex-direction: column; min-width: 0; }
.mk-row-title { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
a.mk-row-title { color: #1458b8; }
.mk-row-words span { font-size: 14px; color: var(--muted); }
.mk-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; background: var(--page); border-radius: 10px; }
.mk-new-list { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.mk-new-list .bs-field { flex: 1 1 240px; }
.mk-list-card { padding: 12px 14px; background: var(--page); border: 1px solid var(--line); border-radius: 10px; }
.mk-list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.mk-list-head h3 { font-size: 19px; color: var(--navy); overflow-wrap: anywhere; }
.mk-count { flex: 1 1 auto; font-size: 14px; color: var(--muted); }
.mk-picker, .mk-piece { font-size: 14px; font-weight: 600; color: #1458b8; }
.mk-picker summary, .mk-piece summary { cursor: pointer; }
.mk-picker-body { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.mk-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mk-inline-form input { min-height: 38px; flex: 1 1 150px; min-width: 0; padding: 4px 10px; font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: 8px; }
.mk-piece { flex: 1 1 100%; }
.mk-piece-text { margin-top: 6px; padding: 12px; font-weight: 400; color: var(--ink); white-space: pre-wrap; background: var(--page); border-radius: 10px; }
.mk-ask { display: inline-flex; gap: 10px; }
.mk-plan { display: flex; flex-direction: column; padding: 14px; background: #e9f1fd; border-radius: 10px; }
.mk-plan strong { font-size: 20px; color: var(--navy); }
.mk-cancel { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Join and Sign In */
.join-wrap { display: flex; flex-direction: column; gap: 16px; }
.join-narrow { max-width: 560px; }
.join-title { font-family: var(--marker); font-weight: 400; font-size: clamp(34px, 5vw, 48px); line-height: 1.2; color: var(--navy); text-align: center; }
.join-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; counter-reset: joinstep; }
.join-steps li { counter-increment: joinstep; padding: 5px 12px; font-size: 14px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.join-steps li::before { content: counter(joinstep) ". "; }
.join-steps .is-now { color: #fff; background: var(--navy); border-color: var(--navy); }
.join-steps .is-done { color: #1f7a33; }
.join-billing { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.join-billing button { min-height: 40px; padding: 4px 16px; font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.join-billing button[aria-pressed="true"] { color: #fff; background: var(--navy); }
.join-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.join-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.join-best { border: 2px solid var(--yellow); }
.join-flag { position: absolute; top: -12px; right: 16px; padding: 2px 10px; font-size: 12px; font-weight: 800; color: var(--navy-deep); background: var(--yellow); border-radius: 999px; }
.join-card h2 { font-family: var(--marker); font-weight: 400; font-size: 28px; color: var(--navy); }
.join-price { font-size: 24px; font-weight: 800; color: var(--navy); }
.join-save { font-size: 14px; font-weight: 700; color: #1f7a33; }
.join-line { color: var(--muted); }
.join-perks { display: flex; flex: 1; flex-direction: column; gap: 4px; padding-left: 18px; font-size: 15px; list-style: disc; }
.join-card .btn { align-self: stretch; margin-top: 8px; justify-content: center; text-align: center; }
.join-note { text-align: center; }
.join-note a { font-weight: 700; color: #1458b8; }
.join-panel { width: 100%; max-width: 680px; margin-inline: auto; }
.join-panel > h2 { font-size: 24px; color: var(--navy); }
.join-h2 { font-family: var(--marker); font-weight: 400; font-size: clamp(25px, 3vw, 32px); color: var(--navy); }
.join-chosen { font-weight: 700; color: #1458b8; }
.join-summary { display: flex; flex-direction: column; margin: 0; }
.join-summary div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.join-summary dt { font-weight: 700; color: var(--navy); }
.join-summary dd { margin: 0; }
.join-coupon { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.join-coupon .bs-field { flex: 1 1 220px; }
.join-welcome { display: flex; flex-direction: column; gap: 10px; }
.join-left { align-self: flex-start; }
.join-first h2 { font-size: 19px; color: var(--navy); }

/* Site search */
.search-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 0; padding: 0; border: 0; }
.search-checks legend { float: left; margin-right: 12px; padding: 0; font-size: 14px; font-weight: 700; color: var(--navy); }
.search-checks label { display: flex; align-items: center; gap: 6px; min-height: 32px; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; }
.search-checks input { width: 18px; height: 18px; }
.search-everywhere { padding-right: 12px; font-weight: 800; border-right: 1px solid var(--line); }
.search-group { margin-top: 14px; }
.search-group h3 { padding-bottom: 4px; font-size: 18px; color: var(--navy); border-bottom: 2px solid var(--yellow); }
.search-group h3 span { font-size: 14px; font-weight: 600; color: var(--muted); }
.search-group .bs-link-btn { margin-top: 6px; }

/* Backstage: pages, menus, Library and home search */
.bs-gap { margin-top: 12px; }
.bs-row-actions { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.mn-panel, .hs-panel { max-width: none; gap: 8px; }
.mn-row, .hs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.mn-child { margin-left: 28px; padding-left: 10px; border-left: 3px solid var(--line); }
.mn-row input[type="text"], .mn-row input[type="url"], .mn-row select, .hs-row input, .zn-tools select, .zn-post select { min-height: 38px; min-width: 0; padding: 4px 8px; font: inherit; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.mn-row input[type="checkbox"], .hs-row input[type="checkbox"] { min-height: 0; }
.mn-row input[type="text"], .hs-row input[type="text"] { flex: 1 1 180px; }
.mn-add-kid { align-self: flex-start; margin-left: 28px; }
.mn-add { align-self: flex-start; margin-top: 6px; }
.hs-choice { max-width: 420px; margin-bottom: 8px; }
.zn-groups { display: flex; flex-direction: column; gap: 8px; }
.zn-group { padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.zn-group summary { cursor: pointer; color: var(--navy); }
.zn-group summary span { font-size: 14px; color: var(--muted); }
.zn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.zn-hidden { opacity: .55; }
.zn-pic { position: relative; display: grid; flex: none; place-items: center; width: 52px; height: 52px; overflow: hidden; font-weight: 800; color: var(--navy); background: var(--soft); border-radius: 50%; cursor: pointer; }
.zn-pic img { width: 100%; height: 100%; object-fit: cover; }
.zn-pic input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.zn-words { display: flex; flex: 1 1 260px; flex-direction: column; gap: 4px; min-width: 0; }
.zn-words input { min-height: 34px; padding: 3px 8px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; }
.zn-words input:first-child { font-weight: 700; color: var(--navy); }
.zn-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.zn-tools select { max-width: 210px; }
.zn-search { max-width: 480px; }
.zn-posts { display: flex; flex-direction: column; }
.zn-post { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.zn-zone-list { max-height: 220px; overflow-y: auto; }
.page-faq { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.page-faq summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.page-button { align-self: flex-start; }

/* Community Library */
.community-types { margin-bottom: 10px; }
button.blog-topic { border: 0; font-family: inherit; cursor: pointer; }
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.community-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.community-card h2 { font-size: 18px; line-height: 1.3; color: var(--navy); }
.community-meta { font-size: 13px; color: var(--muted); }
.community-note { padding: 10px 14px; font-size: 15px; background: #fff4dc; border-radius: 10px; }
.community-link { max-width: 560px; }

/* Weekly review */
.review-main { max-width: 860px; }
.review-summary { font-size: 19px; font-weight: 700; color: var(--navy); }
.review-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.review-item { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.review-flagged { border-color: var(--orange); background: #fff8f0; }
.review-item label { display: flex; gap: 12px; align-items: flex-start; }
.review-item input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.review-item span { display: flex; flex-direction: column; min-width: 0; }
.review-item strong { color: var(--navy); }
.review-item small { font-size: 13px; color: #1458b8; font-weight: 600; }
.review-text { font-size: 15px; color: var(--muted); }
.review-flag { margin-top: 4px; font-size: 14px; font-weight: 700; color: #a85400; }

.community-sample { display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--yellow); border-radius: 999px; }
.community-locked { margin-top: 16px; padding: 12px 14px; font-weight: 600; color: var(--navy); background: #fff; border-radius: 10px; }
.review-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 8px 0 0 30px; font-size: 14px; font-weight: 600; color: var(--navy); }
.review-controls label { align-items: center; gap: 6px; }
.review-controls input { margin-top: 0; }
.review-controls select { min-height: 34px; padding: 3px 8px; font: inherit; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.view-as-label { margin-right: 4px; }

/* About dropdown */
.nav-drop { position: relative; }
.nav-drop > a { display: block; }
.nav-drop > a::after { content: " \25BE"; font-size: 12px; }
.nav-sub { display: none; position: absolute; z-index: 30; top: 100%; left: 0; min-width: 180px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-hover); }
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { display: block; }
.nav-sub a { display: block; }

/* About pages */
.about-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 800px; font-size: 17px; }
.about-wrap h2 { margin-top: 18px; font-family: var(--marker); font-weight: 400; font-size: clamp(25px, 3vw, 32px); line-height: 1.2; color: var(--navy); }
.about-lead { font-size: 22px; font-weight: 600; line-height: 1.4; color: var(--navy); }
.about-why { display: flex; flex-direction: column; gap: 12px; padding-left: 1.4em; list-style: decimal; }
.about-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.about-links a { display: flex; flex-direction: column; padding: 14px 16px; text-decoration: none; background: #fff; border-radius: var(--radius); }
.about-links strong { color: var(--navy); }
.about-links span { font-size: 15px; color: var(--muted); }
.about-photo { width: 100%; max-width: 520px; align-self: center; border-radius: var(--radius); }
.about-quote { padding: 18px 22px; font-size: 19px; font-weight: 600; color: #fff; background: var(--navy); border-radius: var(--radius); }
.about-quote-label { margin-bottom: 6px; font-family: var(--marker); font-weight: 400; color: var(--yellow); }
.about-social { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.about-social a { font-weight: 600; color: #1458b8; }

/* Help page */
.help-cards { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.help-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; font-size: 16px; background: #fff; border-radius: var(--radius); }
.about-wrap .help-card h2 { margin-top: 0; font-size: 25px; }
.help-email { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.help-faq { display: flex; flex-direction: column; gap: 8px; }
.help-faq details { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.help-faq summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.help-faq p { margin-top: 8px; font-size: 16px; }

/* The Store page */
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.blog-card .store-card-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.store-price { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--navy); }
.store-product { max-width: 980px; margin: 0 auto; }
.store-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.store-main-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.store-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.store-side h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; color: var(--navy); overflow-wrap: anywhere; }
.store-type { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #1458b8; }
.store-big-price { font-size: 30px; font-weight: 800; color: var(--navy); }
.store-member { font-size: 15px; font-weight: 600; color: #1f7a33; }
.store-side .btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.store-note { font-size: 13px; color: var(--muted); }
.store-body { margin-top: 26px; }
.store-section { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.store-section h2 { font-size: 24px; line-height: 1.25; color: var(--navy); }
.store-sub { margin-bottom: 8px; font-weight: 600; color: var(--muted); }

/* The Podcast page */
.pod-hero { padding-block: 40px; color: #fff; background: var(--navy-deep); }
.pod-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.pod-cover { width: 100%; border-radius: var(--radius); }
.pod-hero h1 { font-family: var(--marker); font-weight: 400; font-size: clamp(32px, 4vw, 46px); line-height: 1.15; }
.pod-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.pod-sub { font-size: 19px; font-weight: 700; color: var(--yellow); }
.pod-tunein { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.3; text-align: center; color: var(--navy); }
.pod-tunein a { color: #1458b8; }
.pod-subscribe { margin-top: 8px; text-align: center; font-weight: 700; color: var(--navy); }
.pod-subscribe a { color: #1458b8; }
.pod-player { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 20px; text-align: center; color: var(--ink); background: var(--soft); border: 2px dashed #c9d4e6; border-radius: var(--radius); }
.pod-player span { color: var(--muted); }
.pod-player .btn { margin-top: 6px; }
.pod-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.pod-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 36px; }
.pod-head .zone-group-title { margin: 0; }
.pod-head input { flex: 0 1 320px; min-width: 0; min-height: 44px; padding: 8px 14px; font: inherit; border: 1px solid #c9d4e6; border-radius: 10px; }
#pod-count { margin-top: 6px; font-size: 14px; }
.pod-list { margin-top: 8px; border-top: 1px solid var(--line); }
.pod-episode { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pod-title { display: block; font-weight: 700; line-height: 1.35; color: var(--navy); overflow-wrap: anywhere; }
.pod-episode time { font-size: 13px; color: var(--muted); }
.pod-episode p { margin-top: 3px; font-size: 14.5px; color: var(--muted); }

/* Backstage preview */
.bs-body { background: var(--soft); }
.bs-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 8px 16px; color: #fff; background: var(--navy-deep); }
.bs-top img { width: 78px; }
.bs-top strong { font-size: 18px; }
.bs-top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
.bs-top nav a { color: #fff; font-weight: 600; font-size: 14px; }
.bs-top nav a[aria-current="page"] { background: none; color: var(--yellow); }
.bs-main { max-width: 1280px; margin: 0 auto; padding: 20px 16px 40px; }
.bs-list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.bs-list-head h1 { font-size: 24px; color: var(--navy); }
.bs-list-head input, .bs-list-head select { min-height: 42px; padding: 6px 12px; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
#bs-count { margin-left: auto; color: var(--muted); font-size: 14px; }
.bs-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.bs-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.bs-table th { padding: 10px 12px; text-align: left; color: var(--navy); background: #f7f9fd; border-bottom: 1px solid var(--line); }
.bs-table td { padding: 9px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.bs-table td:first-child { min-width: 300px; font-weight: 600; }
.bs-table td a { color: #1458b8; }
.bs-table td:nth-child(3) { color: var(--muted); }
.bs-table td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bs-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; font-size: 14px; }
.bs-pager .btn:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.bs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.bs-col-main, .bs-col-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bs-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; font-weight: 600; color: var(--navy); }
.bs-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.bs-field input, .bs-field textarea, .bs-field select, #cat-filter, #cat-new, .bs-linkbar input, .bs-linkbar select, .bs-html { width: 100%; min-height: 40px; padding: 7px 10px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #c9d4e6; border-radius: 8px; }
#f-title { font-size: 21px; font-weight: 600; }
.bs-path { margin-top: -8px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.bs-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #f7f9fd; border: 1px solid #c9d4e6; border-bottom: 0; border-radius: 8px 8px 0 0; }
.bs-toolbar button, .bs-toolbar select { min-height: 34px; padding: 3px 9px; font: inherit; font-size: 13px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.bs-field .bs-toolbar select { width: auto; min-height: 34px; padding: 3px 9px; }
.bs-toolbar button[aria-pressed="true"] { color: #fff; background: var(--navy); }
.bs-linkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; font-weight: 400; background: #f7f9fd; border: 1px solid #c9d4e6; border-bottom: 0; }
.bs-linkbar input[type="url"], .bs-linkbar input[type="text"] { flex: 1 1 200px; width: auto; }
.bs-linkbar select { width: auto; }
.bs-linkbar input[type="checkbox"] { width: auto; min-height: 0; }
.bs-linkbar .btn { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.bs-editor { min-height: 420px; max-height: 70vh; overflow-y: auto; padding: 16px; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #c9d4e6; border-radius: 0 0 8px 8px; }
.bs-editor .alignleft { float: left; margin: 0 14px 8px 0; }
.bs-editor .alignright { float: right; margin: 0 0 8px 14px; }
.bs-editor .aligncenter { display: block; margin-inline: auto; }
.bs-html { min-height: 420px; border-radius: 0 0 8px 8px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.bs-box { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.bs-box legend { padding: 0 6px; font-weight: 700; color: var(--navy); }
.bs-check { display: flex; gap: 7px; align-items: center; font-size: 14px; font-weight: 400; color: var(--ink); }
.bs-cats { display: flex; flex-direction: column; gap: 3px; max-height: 210px; overflow-y: auto; }
.bs-add { display: flex; gap: 8px; align-items: center; }
.bs-link-btn { padding: 2px; color: #1458b8; background: none; border: 0; font-size: 14px; font-weight: 600; text-decoration: underline; }
.bs-saved { font-size: 14px; color: #1f7a33; font-weight: 600; }
.bs-feat { width: 100%; border-radius: 8px; }
.bs-old { font-size: 13px; overflow-wrap: anywhere; }
.bs-hint { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .bs-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Backstage products */
.ps-create { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; }
.ps-create h1, .ps-head h1 { font-size: 24px; line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; }
.ps-types { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; }
.ps-types legend { margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.ps-types label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ps-types strong { display: block; color: var(--navy); }
.ps-types span { font-size: 14px; color: var(--muted); }
.ps-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; }
.ps-head > div:first-child { min-width: 0; }
.ps-crumb { font-size: 13px; color: var(--muted); }
.ps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ps-actions .btn { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.ps-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0 16px; border-bottom: 1px solid #c9d4e6; }
.ps-tabs button { padding: 8px 2px; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; }
.ps-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--red); }
.ps-panel { display: flex; flex-direction: column; gap: 14px; max-width: 820px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ps-image-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ps-image { width: 140px; height: 140px; object-fit: contain; background: var(--soft); border-radius: 10px; }
.ps-image-row .bs-field { flex: 1 1 220px; }
.ps-editor { min-height: 260px; }
.ps-h2 { font-size: 18px; color: var(--navy); }
.ps-section { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; padding: 12px; background: var(--soft); border-radius: 10px; }
.ps-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.ps-section-head strong { margin-right: auto; color: var(--navy); }
.ps-section input, .ps-section textarea, .ps-add select { width: 100%; min-height: 40px; padding: 7px 10px; font: inherit; background: #fff; border: 1px solid #c9d4e6; border-radius: 8px; }
.bs-link-btn:disabled { opacity: .4; cursor: default; text-decoration: none; }
.ps-add { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-add select { flex: 1 1 200px; width: auto; }
.ps-add .btn { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.ps-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
#ps-count { margin-left: auto; color: var(--muted); font-size: 14px; }

/* The Blog page */
.blog-body { padding-top: 32px; }
.blog-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.blog-topics-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.blog-topic { padding: 6px 13px; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; background: #fff; border-radius: 999px; }
.blog-topic:hover, .blog-topic[aria-current] { color: #fff; background: var(--navy); }
.blog-topic-clear { font-size: 14px; font-weight: 600; color: #1458b8; }
.blog-post-tags a { color: #1458b8; font-weight: 600; }
.blog-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; margin-bottom: 20px; }
.blog-filters label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; color: var(--navy); }
.blog-filters select { min-height: 42px; max-width: 260px; padding: 6px 10px; font: inherit; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
#blog-count { margin-left: auto; font-size: 14px; color: var(--muted); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; grid-auto-flow: dense; }
.blog-ad-row { grid-column: 1 / -1; padding-block: 14px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.blog-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--navy-deep); }
.blog-card-mark { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--soft); }
.blog-card-mark img { width: 52%; height: auto; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 14px; min-width: 0; }
.blog-card-body small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #1458b8; }
.blog-card-body strong { font-size: 17px; line-height: 1.3; color: var(--navy); overflow-wrap: anywhere; }
.blog-card-excerpt { font-size: 14px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-body time { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.blog-post { max-width: 780px; margin: 0 auto; }
.blog-post h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; color: var(--navy); text-wrap: balance; overflow-wrap: anywhere; }
.blog-post-cats { margin-bottom: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #1458b8; }
.blog-post-meta { margin: 8px 0 20px; font-size: 14px; color: var(--muted); }
.blog-post-image { width: 100%; margin-bottom: 22px; border-radius: var(--radius); }
.blog-post-body { font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.blog-post-body > * + * { margin-top: 1em; }
.blog-post-body h2, .blog-post-body h3, .blog-post-body h4 { line-height: 1.3; color: var(--navy); }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.4em; list-style: revert; }
.blog-post-body blockquote { padding-left: 16px; border-left: 4px solid var(--yellow); color: var(--muted); }
.blog-post-body img { border-radius: 8px; }
.blog-post-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.blog-post-body td, .blog-post-body th { padding: 6px 10px; border: 1px solid var(--line); }
.blog-post-body a { color: #1458b8; }
.blog-embed { padding: 12px 14px; background: var(--soft); border-radius: 10px; font-size: 15px; }
.blog-post-tags { margin-top: 24px; font-size: 14px; color: var(--muted); }
.blog-post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.blog-post-nav a { font-weight: 600; color: #1458b8; overflow-wrap: anywhere; }

/* The Lab placeholder page */
.lab-placeholder { padding-block: 96px; text-align: center; color: #fff; background: linear-gradient(rgba(12, 31, 63, .78), rgba(12, 31, 63, .78)), url("/karl-preview/assets/hero.jpg") center / cover no-repeat, var(--navy-deep); }
.lab-placeholder h1 { font-family: var(--marker); font-weight: 400; font-size: clamp(44px, 7vw, 76px); line-height: 1.15; }
.lab-placeholder p { max-width: 640px; margin: 14px auto 0; font-size: clamp(18px, 2.2vw, 22px); }

/* The Library page */
[aria-current="page"] { background: #fff; }
.lib-hero { padding-block: 40px; color: #fff; background: linear-gradient(90deg, rgba(12, 31, 63, .9), rgba(12, 31, 63, .62)), url("/karl-preview/assets/hero.jpg") center / cover no-repeat, var(--navy-deep); }
.lib-hero h1 { font-family: var(--marker); font-weight: 400; font-size: clamp(36px, 4.6vw, 52px); line-height: 1.15; }
.lib-intro { margin-top: 8px; font-size: 18px; }
.lib-search { max-width: 640px; margin-top: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.legend .bulb { width: 1.3em; height: 1.3em; vertical-align: -.3em; }
.legend .bulb .base { fill: #dce7f8; }
.lib-body { padding-top: 40px; }
.lib-section + .lib-section { margin-top: 48px; }
.lib-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; margin-bottom: 22px; padding: 14px 20px; color: #fff; background: var(--navy); border-radius: var(--radius); }
.lib-section-head h2 { font-family: var(--marker); font-weight: 400; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; }
.lib-section-head .level { font-size: 15px; color: #fff; }
.lib-section-head .bulb .base { fill: #dce7f8; }
.zone-group + .zone-group { margin-top: 32px; }
.zone-group-title { margin: 28px 0 14px; font-family: var(--marker); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--navy); }
.zone-group:first-child .zone-group-title { margin-top: 0; }
.zone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zone-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.zone-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.zone-icon { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; overflow: hidden; }
.zone-icon img { width: 100%; height: 100%; }
.zone-initial { background: var(--soft); font-family: var(--marker); font-size: 30px; color: var(--navy); }
.zone-body { display: flex; flex-direction: column; min-width: 0; }
.zone-title { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--navy); }
.zone-line { margin-top: 1px; font-size: 13.5px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zone-meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
.lib-back { display: inline-block; margin-bottom: 14px; font-weight: 700; color: var(--blue); }
.lib-back::before { content: "\2190  "; }
.zone-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.zone-head > div { min-width: 0; overflow-wrap: anywhere; }
.zone-head .zone-icon { width: 92px; height: 92px; }
.zone-head-title { font-family: var(--marker); font-weight: 400; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; color: var(--navy); }
.zone-head-line { color: var(--muted); }
.idea-list { border-top: 1px solid var(--line); }
.idea { padding: 12px 0; border-bottom: 1px solid var(--line); }
.idea-title { display: block; font-weight: 600; color: var(--navy); }
.idea small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.idea small a { font-weight: 600; color: var(--blue); }
.lib-more { margin-top: 18px; text-align: center; }
.lib-empty { color: var(--muted); }

/* Tablet */
@media (max-width: 1120px) {
  .zone-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .signin { font-size: 14px; }
  .primary-nav a { padding: 8px; font-size: 14px; }
  .chips { gap: 6px; }
  .chips button { padding: 4px 11px; font-size: 13.5px; }
  .area-grid { grid-template-columns: repeat(6, 1fr); }
  .area { grid-column: span 2; }
  .area:nth-child(n+4) { grid-column: span 3; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { background-position: 72% center; }
  .hero-copy { max-width: 480px; }
  .footer-row { grid-template-columns: 170px 1fr auto; }
  .site-footer .btn { order: 3; }
  .site-footer nav { order: 4; grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}

/* Phone and small tablet */
@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .header-row { flex-wrap: wrap; gap: 10px; min-height: 60px; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions { gap: 8px; }
  .btn-join, .btn-login { min-height: 40px; padding: 6px 14px; font-size: 16px; }
  .primary-nav { display: none; order: 5; flex-basis: 100%; flex-direction: column; margin: 0 0 10px; }
  .primary-nav.open { display: flex; }
  .nav-sub { display: block; position: static; min-width: 0; padding: 0 0 0 14px; background: none; border: 0; box-shadow: none; }
  .nav-drop > a::after { content: ""; }
  .primary-nav a { padding: 12px; font-size: 16px; }
  .hero { background-position: left center; }
  .hero-inner { display: block; min-height: 0; padding-top: 28px; padding-bottom: 32px; }
  .hero::before { background: rgba(12, 31, 63, .72); }
  .hero-note { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 44px 0; }
  .area-grid, .steps, .plans, .quote-grid, .both ul { grid-template-columns: 1fr; }
  .area, .area:nth-child(n+4) { grid-column: auto; }
  .step:not(:last-child)::after { content: "\2193"; top: auto; right: 50%; bottom: -30px; }
  .plan-for { min-height: 0; }
  .footer-row { grid-template-columns: 1fr; }
  .site-footer .btn { justify-self: start; }
  .site-footer nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .brand-callout { display: none; }
  .zone-grid, .blog-grid, .blog-post-nav, .pod-hero-row, .store-top, .about-links, .help-cards, .mk-grid, .ad-two, .with-rail, .custom-grid, .community-grid { grid-template-columns: minmax(0, 1fr); }
  .join-plans { grid-template-columns: minmax(0, 1fr); }
  .mk-layout { grid-template-columns: minmax(0, 1fr); }
  .mk-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .mk-nav-link { padding: 6px 10px; font-size: 14px; }
  .mk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-grid, .lab-start { grid-template-columns: minmax(0, 1fr); }
  .feat-slide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .feat-img { height: 200px; }
  .feat-body { padding: 16px 18px; min-height: 250px; justify-content: flex-start; }
  .ad-rail { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .ad-rail .ad-slot { width: auto; }
  .util-tag { font-size: 13px; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #blog-count { margin-left: 0; }
}

@media (max-width: 460px) {
  .tag-long { display: none; }
  .tag-short { display: inline; }
  .hero-search label { min-height: 3.1em; display: flex; align-items: flex-end; }
  .post-grid { grid-template-columns: 1fr; }
  .post a { flex-direction: row; }
  .post img { width: 112px; height: 112px; flex: none; }
  .post div { min-width: 0; padding: 10px 12px; }
  .post h3 { font-size: 15px; }
  .search-field { flex-direction: column; padding: 8px; border-radius: 18px; }
  .search-field input { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Backstage Members */
.mb-views { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 16px; border-bottom: 1px solid var(--line); }
.mb-views a { padding: 8px 2px; font-size: 15px; font-weight: 600; color: #1458b8; text-decoration: none; border-bottom: 3px solid transparent; }
.mb-views a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--red); }
.mb-search { flex: 1 1 280px; min-width: 0; }
.bs-list-head select { max-width: 100%; }
.mb-table td:first-child { min-width: 210px; }
.mb-table td:nth-child(3) { color: var(--ink); }
.mb-table td:nth-child(4) { white-space: normal; }
.mb-name { display: block; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.mb-sub { display: block; font-size: 13px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.mb-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.mb-src { padding: 1px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--navy); background: var(--soft); border-radius: 999px; }
.mb-src-old { color: #6b4400; background: #fff3cf; }
.mb-src-podia { color: #0d4c9e; background: #e0ecff; }
.mb-src-kmai { color: #1c6b2e; background: #e2f4e6; }
.mb-src-stripe { color: #4b3a99; background: #ece8fb; }
.mb-src-staff { color: var(--ink); background: #e7eaf0; }
.mb-level { padding: 2px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; border-radius: 999px; }
.mb-level-starter { color: #6b4400; background: var(--yellow); }
.mb-level-teacher { color: #fff; background: #1458b8; }
.mb-level-leader { color: #fff; background: #1f7a33; }
.mb-status { font-size: 14px; font-weight: 600; color: var(--muted); }
.mb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0; }
.mb-title { margin: 0; font-size: 26px; color: var(--navy); }
.mb-flag { margin: 8px 0; padding: 10px 14px; font-size: 14px; background: #fff8e1; border: 1px solid #f2dc9b; border-radius: 8px; }
.mb-grid { grid-template-columns: minmax(0, 1fr) 280px; margin-top: 14px; }
.mb-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-tab { min-height: 40px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.mb-tab[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.mb-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-filter select, .mb-action input, .mb-action select, .mb-action textarea { width: 100%; min-height: 40px; padding: 6px 10px; font: inherit; font-size: 14px; background: #fff; border: 1px solid #c9d4e6; border-radius: 8px; }
.mb-filter select { flex: 1 1 170px; width: auto; min-width: 0; }
.mb-events { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.mb-event { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.mb-event:first-child { border-top: 0; }
.mb-date { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.mb-event-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mb-event-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.mb-event-top strong { color: var(--navy); overflow-wrap: anywhere; }
.mb-type { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.mb-amount { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.mb-detail { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.mb-event-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.mb-ref { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.mb-empty { padding: 8px 0; color: var(--muted); list-style: none; }
.mb-state { padding: 2px 9px; font-size: 13px; font-weight: 600; border-radius: 6px; }
.mb-ok { color: #1c6b2e; background: #e2f4e6; }
.mb-warn { color: #7a4d00; background: #fff3cf; }
.mb-plain { color: var(--muted); background: #eef1f6; }
.mb-h3 { margin: 4px 0; font-size: 15px; color: var(--navy); }
.mb-bill { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 12px; background: var(--page); border: 1px solid var(--line); border-radius: 8px; }
.mb-bill-off { opacity: .7; }
.mb-bill-act { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 240px; }
.mb-side { position: sticky; top: 10px; }
.mb-action { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.mb-compare { margin-bottom: 14px; }
.mb-compare-top { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--navy); }
.mb-compare-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mb-compare-side { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 10px 12px; background: var(--page); border: 1px solid var(--line); border-radius: 8px; }
.mb-why { margin: 0; padding-left: 20px; font-size: 14px; }
.mb-count-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.bs-main > #mb-view .mk-tiles .mk-tile strong { font-size: 22px; }
@media (max-width: 860px) {
  .mb-grid { grid-template-columns: minmax(0, 1fr); }
  .mb-side { position: static; }
}
@media (max-width: 560px) {
  .mb-compare-sides, .mb-count-tiles { grid-template-columns: minmax(0, 1fr); }
  .mb-event { grid-template-columns: minmax(0, 1fr); }
}
.mb-table .mb-state { white-space: nowrap; }
.mb-note { margin-top: 10px; }

/* Backstage Coupons */
.cp-table td:first-child { min-width: 190px; }
.cp-table td:nth-child(3) { color: var(--ink); }
.cp-table td:nth-child(4) { white-space: normal; }
.cp-code { display: block; font-size: 15px; letter-spacing: .03em; color: var(--navy); overflow-wrap: anywhere; }
.cp-reset { margin-top: 12px; }
.cp-form { max-width: 560px; margin-top: 10px; }
.cp-form [hidden] { display: none; }
.cp-form .bs-link-btn { align-self: flex-start; }
.cp-summary { margin: 0; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--soft); border-radius: 8px; }
.cp-error { margin: 0; font-size: 14px; font-weight: 600; color: #b3121b; }
.cp-error:empty { display: none; }

/* Admin link in the footer */
.copyright { position: relative; }
.admin-link { position: absolute; top: 50%; right: var(--gutter); transform: translateY(-50%); color: #fff; font-weight: 600; }
@media (max-width: 560px) {
  .admin-link { position: static; display: block; margin-top: 4px; transform: none; }
}

/* Backstage Overview */
.ov-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.ov-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ov-tile-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.ov-tile strong { font-size: 26px; line-height: 1.2; color: var(--navy); }
.ov-spark { width: 100%; height: 34px; margin-top: 4px; }
.ov-spark polyline { fill: none; stroke: #1f6fe0; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; margin-bottom: 14px; }
.ov-grid-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.ov-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ov-head select { min-height: 38px; padding: 4px 10px; font: inherit; font-size: 14px; background: #fff; border: 1px solid #c9d4e6; border-radius: 8px; }
.ov-people, .ov-activity { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ov-person { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.ov-person:first-child { border-top: 0; }
.ov-name { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.ov-day { padding: 10px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ov-event { display: flex; gap: 10px; padding: 5px 0; font-size: 14px; }
.ov-event p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ov-mark { flex: 0 0 22px; height: 22px; font-size: 13px; font-weight: 700; line-height: 22px; text-align: center; color: var(--navy); background: var(--soft); border-radius: 50%; }
.ov-failed .ov-mark, .ov-canceled .ov-mark { color: #fff; background: var(--red); }
.ov-joined .ov-mark { color: #fff; background: var(--green); }
.ov-table-wrap { overflow-x: auto; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ov-table th { padding: 6px 8px 6px 0; text-align: left; color: var(--muted); border-bottom: 1px solid var(--line); }
.ov-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ov-total td { font-weight: 700; color: var(--navy); }
@media (max-width: 860px) {
  .ov-grid, .ov-grid-wide { grid-template-columns: minmax(0, 1fr); }
  .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Backstage Email */
.em-table td:first-child { min-width: 240px; }
.em-table td:nth-child(3) { color: var(--ink); }
.em-table td:nth-child(4) { white-space: normal; }
.em-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 10px; }
.em-blocks { display: flex; flex-direction: column; gap: 10px; }
.em-block { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.em-block-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.em-block-top strong { margin-right: auto; color: var(--navy); }
.em-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.em-add-btn { min-height: 36px; padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid #c9d4e6; border-radius: 8px; cursor: pointer; }
.em-preview { position: sticky; top: 10px; min-width: 0; padding: 12px; background: #e8edf5; border-radius: var(--radius); }
.em-preview-solo { position: static; max-width: 640px; margin-top: 10px; }
.em-subject { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.em-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border-radius: 8px; }
.em-logo { width: 110px; height: auto; }
.em-h { margin: 0; font-size: 22px; color: var(--navy); overflow-wrap: anywhere; }
.em-p { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.em-img { width: 100%; height: auto; border-radius: 6px; }
.em-line { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.em-center { margin: 0; text-align: center; }
.em-btn { display: inline-block; padding: 8px 18px; font-size: 14px; font-weight: 700; color: var(--navy-deep); background: var(--yellow); border-radius: 999px; }
.em-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.em-split-right .em-split-pic { order: 2; }
.em-split-pic { min-height: 80px; background: var(--soft); border-radius: 6px; overflow: hidden; }
.em-split-pic img { display: block; width: 100%; height: auto; }
.em-product { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.em-product img { width: 100%; min-height: 70px; object-fit: contain; background: #fff; }
.em-product div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; font-size: 14px; }
.em-product strong { color: var(--navy); overflow-wrap: anywhere; }
.em-foot { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.em-actions { margin-top: 12px; }
.em-campaign { flex-direction: row; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.em-setup { max-width: 560px; margin: 10px 0 16px; }
.em-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.em-step summary { cursor: pointer; overflow-wrap: anywhere; }
.em-when { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 860px) {
  .em-grid { grid-template-columns: minmax(0, 1fr); }
  .em-preview { position: static; }
}
@media (max-width: 480px) {
  .em-when, .em-split { grid-template-columns: minmax(0, 1fr); }
  .em-product { grid-template-columns: 80px minmax(0, 1fr); }
}

/* Staff levels */
.role-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--yellow); }
.role-no-money .role-money { display: none !important; }
.role-no-money .mb-amount { display: none; }
.role-no-money .bs-table.mb-table th:nth-child(6), .role-no-money .bs-table.mb-table td:nth-child(6) { display: none; }
.bs-top nav a[hidden] { display: none; }
.tm-table { min-width: 460px; }
.tm-table td:first-child { min-width: 180px; }
.tm-table td:nth-child(3) { color: var(--ink); }
.tm-table select { min-height: 38px; padding: 4px 10px; font: inherit; font-size: 14px; background: #fff; border: 1px solid #c9d4e6; border-radius: 8px; }
.tm-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 12px 0 6px; }
.tm-add .bs-field { flex: 1 1 180px; }
.tm-roles { margin: 6px 0 12px; padding-left: 20px; font-size: 14px; }
.tm-matrix { min-width: 640px; }
.tm-matrix td:first-child { min-width: 210px; }
.tm-matrix td:nth-child(3) { color: inherit; }
.tm-matrix td:nth-child(4) { white-space: normal; }
.tm-edit { color: #1c6b2e; font-weight: 600; }
.tm-view { color: #1458b8; }
.tm-none { color: var(--muted); }
.bs-main .ps-h2 { margin-top: 18px; margin-bottom: 8px; }
.join-trial { margin: 8px 0 14px; padding: 10px 14px; font-weight: 600; text-align: center; color: var(--navy); background: #fff4dc; border-radius: 10px; }

/* Personal Coach */
.coach-note { padding: 12px 16px; background: #fff8e1; border-left: 4px solid var(--yellow); border-radius: 8px; }
.coach-note strong { display: block; font-family: var(--marker); font-size: 19px; font-weight: 400; color: var(--navy); }
.coach-note p { margin: 4px 0 0; }
.coach-excerpt { margin: 12px 0 0; padding: 12px 16px; background: var(--soft); border-left: 4px solid var(--blue); border-radius: 8px; }
.coach-excerpt p { margin: 0; font-style: italic; }
.coach-excerpt cite { display: block; margin-top: 6px; font-size: 13px; font-style: normal; font-weight: 600; color: var(--muted); }
.coach-resources { margin-top: 12px; padding-top: 12px; border-top: 2px solid #cfe0f8; }
.coach-resources h3 { font-size: 17px; color: var(--navy); }
.coach-resources ul { margin: 6px 0 0; padding-left: 20px; }
.coach-resources a { font-weight: 600; color: #1458b8; }

/* Backstage Coach Library */
.ch-table { min-width: 720px; }
.ch-table td:first-child { min-width: 220px; }
.ch-table td:nth-child(3) { color: inherit; }
.ch-table td:nth-child(4) { white-space: normal; }
.ch-table select, .ch-table input[type="text"], .ch-row input, .ch-row textarea { width: 100%; min-height: 38px; padding: 5px 10px; font: inherit; font-size: 14px; background: #fff; border: 1px solid #c9d4e6; border-radius: 8px; }
.ch-upload { max-width: 520px; margin-top: 12px; }
.ch-rows { display: flex; flex-direction: column; gap: 10px; margin: 6px 0; }
.ch-row { align-items: flex-start; }
.ch-save { margin-top: 16px; }

/* Share This */
.share-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 8px 0; }
.share-panel { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 560px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.share-panel[hidden] { display: none; }
.share-panel textarea { width: 100%; padding: 8px 10px; font: inherit; font-size: 14px; border: 1px solid #c9d4e6; border-radius: 8px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-actions .btn { min-height: 40px; padding: 6px 16px; font-size: 14px; }

/* Support Kidology */
.gv-intro { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: start; }
.gv-image { width: 100%; height: auto; border-radius: var(--radius); }
.gv-words { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gv-words h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; color: var(--navy); overflow-wrap: anywhere; }
.gv-words h2 { margin-top: 8px; font-size: 22px; color: var(--navy); }
.gv-words p { margin: 0; }
.gv-eyebrow, .gv-subtitle { font-weight: 600; color: #1458b8; }
.gv-subtitle { font-size: 18px; }
.gv-body { display: flex; flex-direction: column; gap: 10px; }
.gv-check address { margin-top: 6px; padding-left: 14px; font-style: normal; font-weight: 600; white-space: pre-line; border-left: 3px solid var(--line); }
.gv-give { background: var(--soft); }
.gv-form-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gv-thanks { font-size: 26px; text-align: center; color: var(--navy); }
.gv-thanks-line { margin: 0 0 8px; text-align: center; color: #1458b8; font-weight: 600; }
.gv-box { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.gv-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.gv-amounts button { min-height: 52px; font: inherit; font-size: 18px; font-weight: 700; color: var(--navy); background: #fff; border: 2px solid #c9d4e6; border-radius: 10px; cursor: pointer; }
.gv-amounts button[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.gv-money { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.gv-money input { flex: 1; min-width: 0; }
.gv-summary { margin: 0; font-weight: 700; color: var(--navy); }
.gv-champion { margin: 0; padding: 10px 14px; font-size: 15px; background: #fff4dc; border-radius: 10px; }
.gv-paypal, .gv-manage { margin: 0; font-size: 15px; color: var(--muted); }
.gv-paypal a, .gv-manage a { font-weight: 600; color: #1458b8; }
.sp-main { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.sp-img { width: 180px; height: auto; border-radius: 8px; }
@media (max-width: 760px) {
  .gv-intro { grid-template-columns: minmax(0, 1fr); }
}

/* Footer legal links */
.copyright a:not(.admin-link) { color: #fff; }

/* The Lab matches the Library's bulb colors: Teacher blue, Leader green */
.lab-teaching { --lab: var(--blue); --lab-text: #fff; --lab-tint: #e9f1fd; }
.lab-leading { --lab: var(--green); --lab-text: #fff; --lab-tint: #e6f5e9; }
.lab-doc { border-top-color: var(--blue); }
.lab-doc-leading { border-top-color: var(--green); }
.lab-doc-body h3 { color: #1458b8; }
.lab-doc-leading .lab-doc-body h3 { color: #1f7a33; border-bottom-color: #cfe9d4; }
.lab-credit { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.custom-edit { min-height: 44px; }
.custom-edit[contenteditable="true"] { outline: 2px dashed var(--blue); outline-offset: 4px; }

/* Cards with icons on staff-built pages */
.icon-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; color: #fff; background: var(--navy); border-radius: var(--radius); }
.icon-card:nth-of-type(3n+2) { background: #1a4a8f; }
.icon-card:nth-of-type(3n) { background: #1458b8; }
.icon-card-pic svg { display: block; width: 64px; height: 64px; fill: none; stroke: var(--yellow); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-card-pic img { display: block; width: 64px; height: 64px; object-fit: contain; }
.icon-card-words { min-width: 0; }
.about-body .icon-card h2 { margin: 0 0 2px; font-size: 21px; color: #fff; }
.about-body .icon-card p { margin: 0; color: #fff; }
.about-body .icon-card .icon-card-ref { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--yellow); }
@media (max-width: 480px) {
  .icon-card { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .icon-card-pic svg, .icon-card-pic img { width: 46px; height: 46px; }
}

/* Coach privacy, receipts, returning members */
.coach-private { margin: 0; padding: 10px 14px; font-weight: 600; color: var(--navy); background: #e9f1fd; border-radius: 10px; }
.mk-receipt { flex-basis: 100%; padding: 12px 14px; background: var(--page); border: 1px solid var(--line); border-radius: 8px; }
.mk-receipt[hidden] { display: none; }
.mk-receipt strong { color: var(--navy); }
.mk-receipt p { margin: 4px 0 0; font-size: 14px; }
.join-exists { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; background: #fff4dc; border-radius: 10px; }
.join-exists[hidden] { display: none; }
.join-exists p { margin: 0; }

/* Top menu pop-ups: a short description on hover or keyboard focus. Not shown in the phone menu. */
@media (hover: hover) and (min-width: 821px) {
  .primary-nav a[data-tip] { position: relative; }
  .primary-nav a[data-tip]::after { content: attr(data-tip); position: absolute; z-index: 40; top: calc(100% + 10px); left: 0; width: max-content; max-width: 240px; padding: 8px 12px; background: var(--navy-deep); color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.35; white-space: normal; border-radius: 8px; box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility 0s .15s; pointer-events: none; }
  .primary-nav a[data-tip]::before { content: ""; position: absolute; z-index: 41; top: calc(100% + 4px); left: 18px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--navy-deep); opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s; pointer-events: none; }
  .primary-nav a[data-tip]:hover::after, .primary-nav a[data-tip]:focus-visible::after { opacity: 1; visibility: visible; transform: none; transition-delay: .25s, .25s, .25s; }
  .primary-nav a[data-tip]:hover::before, .primary-nav a[data-tip]:focus-visible::before { opacity: 1; visibility: visible; transition-delay: .25s, .25s; }
}

/* Numbered pages (Podcast) */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.pager-btn { min-width: 42px; min-height: 42px; padding: 6px 12px; font-weight: 700; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.pager-btn:hover:not(:disabled) { background: var(--soft); border-color: var(--navy); }
.pager-btn[aria-current="page"] { color: #fff; background: var(--navy); border-color: var(--navy); cursor: default; }
.pager-step:disabled { opacity: .4; cursor: default; }
.pager-gap { padding: 0 2px; color: var(--muted); }
@media (max-width: 520px) {
  .pager-btn { min-width: 38px; padding: 6px 9px; }
  .pager-step { flex-basis: 100%; order: 2; max-width: 140px; }
}

/* Blog list: the row 6 banner already sits at the bottom, so the "bottom of every page" banner steps aside.
   It comes back on blog posts and on short lists that do not reach row 6. */
body:has(#blog-list:not([hidden]) #blog-ad-3:not([hidden])) .ad-wrap:has(> [data-slot="footer-wide"]) { display: none; }

/* Backstage menu, grouped like the public site (assets/backstage-nav.js) */
.bs-top nav.bs-menu { flex: 1 1 auto; align-items: center; gap: 4px 6px; margin-left: 12px; }
.bs-menu > a, .bs-group-btn, .bs-right a { padding: 6px 10px; border-radius: 6px; color: #fff; font: 600 14px/1.2 'Poppins', sans-serif; text-decoration: none; }
.bs-group { position: relative; }
.bs-group-btn { border: 0; background: none; cursor: pointer; }
.bs-group-btn::after { content: ''; display: inline-block; margin-left: 6px; vertical-align: 2px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.bs-menu > a:hover, .bs-group-btn:hover, .bs-group.open .bs-group-btn, .bs-right a:hover { background: rgba(255, 255, 255, 0.12); }
.bs-group.is-here .bs-group-btn, .bs-menu > a[aria-current="page"], .bs-right a[aria-current="page"] { color: var(--yellow); }
.bs-drop { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 190px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(9, 23, 54, 0.28); }
.bs-group.open .bs-drop { display: block; }
@media (hover: hover) and (min-width: 821px) {
  .bs-group:hover .bs-drop { display: block; }
}
.bs-top nav .bs-drop a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--navy); font-size: 14px; text-decoration: none; white-space: nowrap; }
.bs-top nav .bs-drop a:hover { background: #eef3fb; }
.bs-top nav .bs-drop a[aria-current="page"] { color: var(--navy); background: var(--yellow); }
.bs-right { display: flex; gap: 4px 6px; margin-left: auto; }
.bs-group[hidden] { display: none; }
.bs-new-btn { padding: 8px 16px; font-size: 14px; }
@media (max-width: 820px) {
  .bs-top nav.bs-menu { flex-basis: 100%; margin-left: 0; }
  .bs-drop { left: 0; right: auto; }
  .bs-right { margin-left: 0; }
}
.bs-soon { max-width: 720px; }
.bs-soon ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; line-height: 1.6; }
.bs-soon-tag { display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--yellow); }

/* Tell Karl (assets/tell-karl.js) */
.tk-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 999px; font: 700 15px/1 'Poppins', sans-serif; color: var(--navy); background: var(--yellow); box-shadow: 0 6px 18px rgba(9, 23, 54, 0.28); cursor: pointer; }
.tk-float:hover { transform: translateY(-1px); }
.tk-shade { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(9, 23, 54, 0.55); }
.tk-shade[hidden] { display: none; }
.tk-box { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(9, 23, 54, 0.35); }
.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tk-head h2 { margin: 0; color: var(--navy); }
.tk-x { border: 0; background: none; font-size: 28px; line-height: 1; color: var(--navy); cursor: pointer; }
.tk-lede { margin: 8px 0 14px; }
.tk-box textarea { width: 100%; }
.tk-msg { min-height: 1.2em; margin: 6px 0; font-weight: 600; color: var(--navy); }
.tk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tk-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tk-note { padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.tk-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 6px; font-size: 13px; color: #55607a; }
.tk-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--navy); background: #eef3fb; }
.tk-tag.is-new { background: var(--yellow); }
.tk-tag.is-done { color: #fff; background: #2f8a4c; }
.tk-text { margin: 0; white-space: pre-wrap; }
.tk-reply { margin: 10px 0 0; padding: 10px 12px; border-left: 4px solid var(--yellow); border-radius: 6px; background: #fffbea; }
.tk-reply strong { display: block; font-size: 13px; }
.tk-reply-form { display: grid; gap: 8px; margin-top: 10px; }
.tk-reply-form textarea { width: 100%; }
.tk-reply-form .btn { justify-self: start; min-height: 38px; padding: 6px 16px; font-size: 14px; }
.tk-row-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
@media print { .tk-float { display: none; } }
.mk-gap { margin-top: 18px; }
.ov-tk { margin-top: 18px; }
.ov-tk .ov-head a { font-weight: 600; }
.ov-tk .tk-note { box-shadow: none; border: 1px solid #e3e9f3; }
.tk-form[hidden], .tk-lede[hidden], .tk-done[hidden] { display: none; }
.tk-done { padding: 10px 0 4px; text-align: center; }
.tk-done-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; font-size: 30px; font-weight: 800; color: #fff; background: #2f8a4c; }
.tk-done-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: var(--navy); outline: none; }
.tk-done .btn { margin-top: 10px; }
body:has(.tk-float) .site-footer { padding-bottom: 64px; }
.btn[hidden] { display: none; }

/* Homepage area cards on phones and small tablets: icon on the left, text beside it, so the list is short. */
@media (max-width: 820px) {
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .area, .area:nth-child(n+4) { grid-column: auto; }
  .area { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: start; align-content: start; padding: 14px 16px; }
  .area-icon { grid-row: 1 / span 3; width: 52px; height: 52px; }
  .area h3 { margin-top: 0; font-size: 20px; }
  .area p { margin: 4px 0 6px; font-size: 14px; line-height: 1.4; }
  .area-link { margin-top: 0; font-size: 14px; }
  .area-grid > .area:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .area-grid { grid-template-columns: 1fr; gap: 10px; }
  .area { grid-template-columns: 44px 1fr; padding: 12px 14px; }
  .area-icon { width: 44px; height: 44px; }
}

/* Welcome pop-up for first-time visitors (assets/welcome.js) */
.wl-shade { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(9, 23, 54, 0); transition: background .25s; }
.wl-shade.is-in { background: rgba(9, 23, 54, 0.55); }
.wl-shade .wl-card { opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s; }
.wl-shade.is-in .wl-card { opacity: 1; transform: none; }
.wl-card { position: relative; display: grid; grid-template-columns: 220px 1fr; width: 100%; max-width: 720px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(9, 23, 54, 0.4); }
.wl-photo { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: center top; background: #eef3fb; }
.wl-body { padding: 26px 26px 24px; }
.wl-body h2 { margin: 0 32px 8px 0; font-family: var(--marker); font-weight: 400; font-size: 30px; line-height: 1.15; color: var(--navy); }
.wl-intro { margin: 0 0 10px; line-height: 1.5; }
.wl-list { margin: 0 0 18px; padding-left: 20px; list-style: disc; line-height: 1.5; }
.wl-list li { margin-bottom: 4px; }
.wl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wl-x { position: absolute; top: 8px; right: 10px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--navy); background: rgba(255, 255, 255, 0.9); cursor: pointer; }
@media (max-width: 640px) {
  /* Phones: a card that slides up from the bottom instead of covering the screen. */
  .wl-shade { align-items: flex-end; padding: 0; }
  .wl-card { grid-template-columns: 76px 1fr; max-height: 80vh; border-radius: 18px 18px 0 0; }
  .wl-photo { width: 64px; height: 64px; min-height: 0; margin: 20px 0 0 14px; border-radius: 50%; }
  .wl-body { padding: 18px 18px 20px 6px; }
  .wl-body h2 { font-size: 24px; }
  .wl-intro, .wl-list { font-size: 14.5px; }
  .wl-actions .btn { flex: 1 1 auto; }
}
.wl-admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.wl-thumb { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; object-position: center top; background: #eef3fb; }
.wl-preview-wrap { position: sticky; top: 12px; }
.wl-preview .wl-card { grid-template-columns: 1fr; max-height: none; box-shadow: var(--shadow); }
.wl-preview .wl-photo { min-height: 0; height: 220px; }
.wl-preview .wl-x { pointer-events: none; }
@media (max-width: 900px) { .wl-admin { grid-template-columns: 1fr; } .wl-preview-wrap { position: static; } }

/* Notes from Karl: the header lightbulb and mailbox (assets/karl-notes.js) */
.kn-bulb { position: relative; }
.kn-bulb svg { width: 26px; height: 26px; fill: none; stroke: none; }
.kn-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; font: 700 12px/20px 'Poppins', sans-serif; color: #fff; background: var(--red, #e3262f); box-shadow: 0 0 0 2px #fff; }
.kn-count[hidden] { display: none; }
.kn-bulb.is-new svg { animation: kn-wiggle 2.4s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes kn-wiggle {
  0%, 60%, 100% { transform: rotate(0); }
  64% { transform: rotate(-14deg); } 70% { transform: rotate(12deg); } 76% { transform: rotate(-9deg); } 82% { transform: rotate(6deg); } 88% { transform: rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) { .kn-bulb.is-new svg { animation: none; } }
.kn-shade { position: fixed; inset: 0; z-index: 92; display: flex; align-items: flex-start; justify-content: center; padding: 70px 16px 16px; background: rgba(9, 23, 54, 0.5); }
.kn-shade[hidden] { display: none; }
.kn-box { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: calc(100vh - 90px); border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(9, 23, 54, 0.35); }
.kn-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 10px; border-bottom: 1px solid #e3e9f3; }
.kn-top h2 { margin: 0; font-family: var(--marker); font-weight: 400; font-size: 26px; color: var(--navy); }
.kn-x { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--navy); cursor: pointer; }
.kn-view { flex: 1 1 auto; overflow: auto; padding: 14px 20px; }
.kn-foot { margin: 0; padding: 10px 20px 14px; border-top: 1px solid #e3e9f3; font-size: 14px; font-weight: 600; }
.kn-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kn-row { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 1px solid #e3e9f3; border-radius: 10px; text-align: left; font: inherit; color: var(--navy); background: #fff; cursor: pointer; }
.kn-row:hover { background: #f5f8fd; }
.kn-row.is-new { border-color: var(--yellow); background: #fffbea; }
.kn-row-title { font-weight: 700; }
.kn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: #55607a; }
.kn-type { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); }
.kn-type.kn-tip { background: #2f8a4c; }
.kn-type.kn-news { background: #c0392b; }
.kn-new { padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--yellow); }
.kn-back { margin-bottom: 8px; }
.kn-title { margin: 6px 0 8px; font-size: 21px; line-height: 1.25; color: var(--navy); }
.kn-photo { display: block; width: 100%; max-height: 260px; margin: 0 0 10px; border-radius: 10px; object-fit: cover; }
.kn-body { margin: 0 0 10px; line-height: 1.55; }
.kn-sign { margin: 0 0 12px; font-family: var(--marker); font-size: 18px; color: var(--navy); }
.kn-link { min-height: 40px; padding: 6px 18px; font-size: 15px; }
.kn-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.kn-tool { padding: 7px 14px; border: 1px solid #c9d4e6; border-radius: 999px; font: 600 14px 'Poppins', sans-serif; color: var(--navy); background: #fff; cursor: pointer; }
.kn-tool.is-on { border-color: var(--navy); color: #fff; background: var(--navy); }
.kn-del { margin-left: auto; color: #b3261e; }
.kn-reply { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e3e9f3; }
.kn-reply textarea { width: 100%; }
.kn-reply .btn { justify-self: start; min-height: 40px; padding: 6px 18px; font-size: 15px; }
.kn-sent, .kn-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: #1d5e33; background: #e8f5ec; }
.kn-msg { margin: 0 0 10px; }
.kn-empty { margin: 8px 0; }
@media (max-width: 640px) {
  .kn-shade { align-items: flex-end; padding: 0; }
  .kn-box { max-height: 88vh; border-radius: 18px 18px 0 0; }
}
.kn-preview { padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); } .kn-preview .kn-reply, .kn-preview .kn-tools { pointer-events: none; opacity: .7; }

/* Social icons in the footer (assets/socials.js) */
.footer-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; padding-top: 4px; padding-bottom: 18px; }
.footer-social-label { margin-right: 4px; font-weight: 700; color: #fff; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.12); transition: background .15s, transform .15s; }
.social-icon:hover { background: var(--yellow); color: var(--navy); transform: translateY(-2px); }
.social-icon svg { width: 22px; height: 22px; }
.footer-social-more { margin-left: 6px; font-weight: 700; color: var(--yellow); }

/* Connect with Karl (connect.html) */
.cn-h2 { margin: 30px 0 14px; font-family: var(--marker); font-weight: 400; font-size: 28px; color: var(--navy); }
.cn-video-wrap .cn-h2 { margin-top: 0; }
.cn-video { position: relative; max-width: 800px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--navy-deep); box-shadow: var(--shadow); }
.cn-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cn-play { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: var(--navy-deep); cursor: pointer; }
.cn-play img { width: 100%; height: 100%; object-fit: cover; }
.cn-play-icon { position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); color: #e3262f; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.cn-play-icon svg { width: 100%; height: 100%; }
.cn-play:hover .cn-play-icon { color: #ff0000; transform: translate(-50%, -50%) scale(1.06); }
.cn-subscribe { margin: 14px 0 0; }
.cn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cn-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: var(--ink, #1c2b4a); background: #fff; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.cn-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.cn-icon { display: inline-flex; flex: 0 0 48px; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; color: #fff; background: var(--navy); }
.cn-icon svg { width: 26px; height: 26px; }
.cn-facebook .cn-icon, .cn-group .cn-icon { background: #1877f2; }
.cn-instagram .cn-icon { background: linear-gradient(45deg, #f9a03f, #e1306c 50%, #833ab4); }
.cn-youtube .cn-icon { background: #e3262f; }
.cn-linkedin .cn-icon { background: #0a66c2; }
.cn-x .cn-icon { background: #111; }
.cn-text { display: grid; gap: 2px; flex: 1 1 auto; font-size: 14px; line-height: 1.4; }
.cn-text strong { font-size: 16px; color: var(--navy); }
.cn-follow { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--yellow); }
@media (max-width: 560px) { .cn-follow { display: none; } }
.sl-group { margin-bottom: 16px; }
.sl-row { display: grid; grid-template-columns: 170px minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px 12px; align-items: end; padding: 10px 0; border-top: 1px solid #e3e9f3; }
.sl-row:first-child { border-top: 0; }
.sl-name { display: flex; align-items: center; gap: 10px; align-self: center; font-weight: 700; color: var(--navy); }
.sl-name .cn-icon { flex-basis: 36px; width: 36px; height: 36px; border-radius: 9px; }
.sl-name .cn-icon svg { width: 20px; height: 20px; }
.sl-need { display: block; font-size: 12px; font-weight: 600; color: #b3261e; }
.sl-row .bs-field { margin: 0; }
.sl-row .bs-check { align-self: center; white-space: nowrap; }
@media (max-width: 820px) { .sl-row { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cn-grid { grid-template-columns: 1fr; } }

/* Share Kidology and Save! (assets/referrals.js, mk.js, invite.html) */
.rf-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.rf-how-card { display: grid; align-content: start; gap: 4px; padding: 14px 16px; border-radius: 12px; background: #fffbea; border: 1px solid #f5dc8a; line-height: 1.45; }
.rf-how-card strong { color: var(--navy); }
.rf-link { padding: 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.rf-label { display: block; margin: 0 0 6px; font-weight: 700; color: var(--navy); }
.rf-link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rf-url { flex: 1 1 240px; min-height: 46px; padding: 8px 12px; border: 1px solid #c9d4e6; border-radius: 10px; font: 600 15px 'Poppins', sans-serif; color: var(--navy); background: #f5f8fd; }
.rf-share { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rf-share .btn { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.rf-text { width: 100%; margin-bottom: 4px; }
.rf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.rf-stat { display: grid; padding: 12px 14px; border-radius: 12px; background: #eef3fb; }
.rf-stat strong { font-size: 26px; color: var(--navy); }
.rf-stat span { font-size: 13.5px; }
.rf-coupon { padding: 10px 12px; border: 2px dashed var(--yellow); border-radius: 10px; background: #fffbea; }
.rf-coupon strong { letter-spacing: 1px; }
.iv-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 820px; }
.iv-card { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.iv-best { outline: 3px solid var(--yellow); }
.iv-card h3 { margin: 0; font-family: var(--marker); font-weight: 400; font-size: 28px; color: var(--navy); }
.iv-line { margin: 0; }
.iv-price { margin: 4px 0; font-size: 30px; font-weight: 800; color: var(--navy); }
.iv-price s { margin-right: 4px; font-size: 20px; font-weight: 600; color: #8a93a6; }
.iv-price small { font-size: 14px; font-weight: 600; color: #55607a; }
.iv-card .btn { justify-self: start; }
.iv-monthly { margin: 0; font-size: 14px; }
.iv-free { margin: 18px 0 0; }
.join-invite { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; font-weight: 600; color: var(--navy); background: #fffbea; border: 1px solid #f5dc8a; }
.join-invite-price { margin: -4px 0 6px; font-size: 14px; font-weight: 700; color: #1d5e33; }
.rf-tools { display: flex; gap: 12px; flex-wrap: wrap; } #rf-tiles { margin-bottom: 16px; } .bs-main > .bs-box { margin-bottom: 16px; }
#rf-tiles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* Zone post attachments (2026-11-14): pictures shown, files linked. */
.idea-images { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 16px; }
.idea-images a { display: block; max-width: 100%; }
.idea-images img { display: block; max-width: 100%; max-height: 420px; height: auto; border-radius: var(--radius); }
.idea-files li { margin: 4px 0; }
.idea-files a { color: var(--navy); font-weight: 700; text-decoration: underline; }
.idea-file-type { color: #6b7280; font-size: 13px; }
