/* Baby Mantra — content pages (guides, hubs, app pages).
   Loaded after /styles.css, which provides the design tokens (:root), header,
   footer, buttons, store badge, stars (.sky) and the now-playing pill.
   Do not edit styles.css for content pages; override here. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.content-page { background: var(--cloud); }

/* ── Header additions: wider nav + mobile menu ── */
.content-page .top__nav { gap: 22px; }
.content-page .top__nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--peach); padding-bottom: 3px; }
.menu-btn {
  width: 42px; height: 42px; margin-left: 4px; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); cursor: pointer; position: relative;
}
.menu-btn i, .menu-btn i::before, .menu-btn i::after {
  position: absolute; left: 50%; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px;
  background: #fff; content: ""; transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-btn i { top: 50%; margin-top: -1px; }
.menu-btn i::before { left: 0; margin: 0; top: -5px; }
.menu-btn i::after { left: 0; margin: 0; top: 5px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-5px) rotate(-45deg); }
.mnav {
  display: grid; gap: 2px;
  width: min(var(--max), 100% - var(--gutter) * 2); margin: 0 auto; padding: 4px 0 18px;
}
.mnav[hidden] { display: none; }
.mnav a {
  padding: 12px 4px; color: rgba(255, 255, 255, 0.9); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 900px) {
  .menu-btn, .mnav { display: none !important; }
}

/* ── Hero ── */
.page-hero--content { padding: calc(92px + env(safe-area-inset-top)) 0 clamp(78px, 9vw, 116px); }
.page-hero--content::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 70% at 88% 0%, rgba(255, 220, 199, 0.16), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(169, 180, 230, 0.2), transparent 65%);
}
.page-hero__inner {
  position: relative; z-index: 2;
  width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto;
  display: grid; gap: 32px; align-items: center;
}
.page-hero__copy { max-width: 780px; }
.page-hero--content h1 {
  font-size: clamp(2.05rem, 1.5rem + 2.6vw, 3.35rem); line-height: 1.08; letter-spacing: -0.022em;
  max-width: 20ch;
}
.page-hero--content .page-hero__eyebrow {
  display: inline-block; margin: 18px 0 14px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 220, 199, 0.16); color: var(--peach);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}
.page-hero--content .page-hero__lede {
  margin-top: 16px; max-width: 40em;
  font-size: var(--step-1); line-height: 1.55; color: rgba(239, 241, 255, 0.86);
}
.page-hero__meta {
  margin-top: 22px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-size: 0.88rem !important; color: rgba(239, 241, 255, 0.72) !important;
}
.page-hero__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.page-hero__meta > span + span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(239, 241, 255, 0.4); margin-right: 10px;
}
.page-hero__meta > .meta__reviewed { flex-basis: 100%; }
.page-hero__meta > .meta__reviewed::before { display: none; }
.meta__reviewed { color: #cfe8d3; }
.meta__reviewed a { color: #cfe8d3; text-decoration: none; border-bottom: 1px dotted rgba(207, 232, 211, 0.6); }
.meta__reviewed svg { width: 16px; height: 16px; fill: none; stroke: #cfe8d3; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-hero__art img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-lift); }
@media (min-width: 960px) {
  .page-hero--art .page-hero__inner { grid-template-columns: 1fr 340px; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 0.86rem; }
.crumbs li { color: rgba(239, 241, 255, 0.66); display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: "›"; flex: none; margin: 0 9px; font-size: 1.05rem; line-height: 1; color: rgba(239, 241, 255, 0.45);
}
.crumbs a { color: rgba(239, 241, 255, 0.86); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }

/* ── Document layout ── */
.doc {
  position: relative; z-index: 3;
  width: min(var(--max), 100% - var(--gutter) * 2); margin: -48px auto 0;
  padding: clamp(28px, 4.5vw, 56px) clamp(20px, 4.5vw, 64px) clamp(44px, 6vw, 72px);
  background: var(--white); border-radius: var(--radius-l);
  box-shadow: 0 30px 70px -50px rgba(38, 45, 82, 0.45);
}
.doc__main { min-width: 0; max-width: 720px; margin-inline: auto; }
.doc__side { display: none; }
@media (min-width: 1080px) {
  .doc--toc { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; align-items: start; }
  .doc--toc .doc__main { margin-inline: 0; }
  .doc__side { display: block; position: sticky; top: 92px; }
  .toc[data-toc-inline] { display: none; }
}

/* ── Article typography ── */
.article-body { color: var(--ink-body); font-size: clamp(1.02rem, 0.99rem + 0.15vw, 1.1rem); line-height: 1.75; }
.article-body > * + * { margin-top: 1.05em; }
.article-body h2 {
  margin-top: 2.1em; font-size: clamp(1.45rem, 1.25rem + 0.9vw, 1.95rem); font-weight: 800; line-height: 1.2;
  scroll-margin-top: 90px;
}
.article-body h3 { margin-top: 1.7em; font-size: var(--step-1); font-weight: 800; line-height: 1.3; scroll-margin-top: 90px; }
.article-body h4 { margin: 1.5em 0 0; font-family: var(--display); font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.article-body h2 + *, .article-body h3 + *, .article-body h4 + * { margin-top: 0.55em; }
.article-body > :first-child { margin-top: 0; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a, .faq-block a, .tldr a, .callout a, .disclaimer a, .author a {
  color: var(--primary-deep); text-decoration: underline; text-decoration-color: rgba(108, 113, 181, 0.4);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.article-body a:hover { text-decoration-color: var(--primary); }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body li + li { margin-top: 0.45em; }
.article-body li > ul, .article-body li > ol { margin-top: 0.45em; }
.article-body ul li::marker { color: var(--primary); }
.article-body ol li::marker { color: var(--primary); font-family: var(--display); font-weight: 800; }
.article-body img { border-radius: var(--radius-m); }
.article-body hr { border: 0; height: 1px; background: var(--hairline); margin: 2.4em 0; }
.article-body code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--cloud); }
.article-body blockquote {
  margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--lavender);
  font-family: var(--display); font-weight: 700; font-size: 1.18em; line-height: 1.5; color: var(--ink);
}
.article-body blockquote > * + * { margin-top: 0.6em; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-s); border: 1px solid var(--hairline); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; min-width: 480px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.table-wrap thead th { background: var(--primary-soft); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
.table-wrap tbody tr:nth-child(even) td { background: #fafbfe; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--ink); font-weight: 600; }
.fine-print { font-size: 0.84rem !important; color: var(--ink-subtle); line-height: 1.55; }

/* ── Key takeaways (answer-first) ── */
.tldr {
  margin: 0 0 30px; padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-m);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 220, 199, 0.5), transparent 60%),
    linear-gradient(160deg, #eef0fb, #f7f3fb);
  border: 1px solid #e3e6f6;
  color: var(--ink);
}
.tldr__label {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--primary-deep);
}
.tldr__label::before {
  content: ""; width: 16px; height: 16px; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tldr__answer { font-size: 1.08rem; line-height: 1.65; color: var(--ink); }
.tldr ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.tldr li { position: relative; padding-left: 28px; line-height: 1.55; color: var(--ink-body); }
.tldr li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ── Table of contents ── */
.toc { font-size: 0.93rem; }
.toc summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1rem;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px;
  color: var(--ink-body); text-decoration: none; line-height: 1.4;
}
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; color: var(--ink-subtle); font-variant-numeric: tabular-nums; font-size: 0.82rem; padding-top: 1px; }
.toc a:hover { background: var(--cloud); color: var(--ink); }
.toc a.is-active { background: var(--primary-soft); color: var(--primary-deep); font-weight: 500; }
.toc a.is-active::before { color: var(--primary); }
.toc[data-toc-inline] { margin: 0 0 32px; padding: 14px 18px; border: 1px solid var(--hairline); border-radius: var(--radius-m); background: var(--cloud); }
.toc[data-toc-inline] summary::after {
  content: ""; width: 26px; height: 26px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c71b5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform 0.2s ease;
}
.toc[data-toc-inline] details[open] summary::after { transform: rotate(180deg); }
.doc__side .toc summary { pointer-events: none; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-subtle); font-family: var(--body); font-weight: 600; }
.doc__side .toc ol { max-height: calc(100vh - 380px); overflow-y: auto; }

.side-cta {
  margin-top: 26px; padding: 22px; border-radius: var(--radius-m); text-align: center;
  background: radial-gradient(120% 100% at 100% 0%, rgba(255, 220, 199, 0.22), transparent 60%), linear-gradient(160deg, #2b3360, #4a548c);
  color: rgba(239, 241, 255, 0.84); font-size: 0.9rem; line-height: 1.5;
}
.side-cta__icon { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 15px; box-shadow: var(--shadow-soft); }
.side-cta__title { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: #fff; }
.side-cta .btn { margin-top: 14px; width: 100%; }

/* ── Callouts ── */
.callout {
  padding: 18px 22px; border-radius: var(--radius-m);
  background: var(--primary-soft); color: var(--ink-body);
  font-size: 0.98em; line-height: 1.65;
}
.article-body .callout { margin-top: 1.6em; margin-bottom: 1.6em; }
.callout > * + * { margin-top: 0.6em; }
.callout ul, .callout ol { padding-left: 1.2em; }
.callout__title {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--ink);
}
.callout__title::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--primary) center/13px no-repeat; }
.callout--tip { background: var(--primary-soft); }
.callout--tip .callout__title::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9V16h7v-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.callout--safety { background: var(--sage); color: #36503d; }
.callout--safety .callout__title { color: #2f5a3a; }
.callout--safety .callout__title::before { background-color: #5b8f67; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 5-3.5 8.5-7 10-3.5-1.5-7-5-7-10V6z'/%3E%3C/svg%3E"); }
.callout--safety strong { color: #24452d; }
.callout--safety a { color: #2f5a3a !important; text-decoration-color: rgba(47, 90, 58, 0.45) !important; }
.callout--note { background: #fff4ea; }
.callout--note .callout__title::before { background-color: #d9814f; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M12 8h.01M12 11v6'/%3E%3C/svg%3E"); }
.callout--answer { background: linear-gradient(160deg, #eef0fb, #f6f2fb); border-left: 4px solid var(--primary); border-radius: 6px var(--radius-m) var(--radius-m) 6px; }
.callout--answer .callout__title::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.callout--support { background: var(--blush); color: #6b3a43; }
.callout--support .callout__title { color: #6b2f3a; }
.callout--support .callout__title::before { background-color: #d06576; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.callout--support a { color: #8e2f40 !important; }
.callout--evidence { background: var(--cloud); border: 1px solid var(--hairline); }
.callout--evidence .callout__title::before { background-color: var(--midnight); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 4h10l4 4v12H5zM9 12h6M9 16h6'/%3E%3C/svg%3E"); }

/* ── Audio previews ── */
.audio-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.article-body .audio-grid { margin-top: 1.4em; }
.audio-grid--one { grid-template-columns: minmax(0, 420px); }
.audio-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 10px 16px 10px 10px; border: 1px solid var(--hairline); border-radius: 20px;
  background: var(--white); text-align: left; cursor: pointer;
  box-shadow: 0 8px 22px -18px rgba(45, 54, 87, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.audio-card:hover { transform: translateY(-1px); border-color: #d5d9f0; box-shadow: 0 14px 30px -18px rgba(45, 54, 87, 0.55); }
.audio-card__art { position: relative; flex: none; width: 64px; height: 64px; border-radius: 15px; overflow: hidden; background: linear-gradient(150deg, #2b3360, #5a5fa5); }
.audio-card__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.audio-card__glyph { position: absolute; inset: 0; background: radial-gradient(60% 60% at 70% 20%, rgba(255, 220, 199, 0.45), transparent 70%); }
.audio-card__pp {
  position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.3); border: 1.5px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.audio-card__pp::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-style: solid; border-width: 5.5px 0 5.5px 9px; border-color: transparent transparent transparent #fff;
  transform: translateX(1.5px);
}
.audio-card__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.audio-card__text strong { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.02rem; line-height: 1.25; }
.audio-card__text small { font-size: 0.84rem; color: var(--ink-subtle); line-height: 1.4; }
.audio-card__hint { flex: none; font-size: 0.78rem; font-weight: 600; color: var(--primary); padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); }
.audio-card[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 113, 181, 0.18), 0 14px 30px -18px rgba(45, 54, 87, 0.55); }
.audio-card[aria-pressed="true"] .audio-card__pp { background: var(--primary); border-color: var(--primary); }
.audio-card[aria-pressed="true"] .audio-card__pp::after {
  width: 10px; height: 11px; border: 0; transform: none;
  background: linear-gradient(90deg, #fff 0 3.5px, transparent 3.5px 6.5px, #fff 6.5px 10px);
}
.audio-card[aria-pressed="true"] .audio-card__hint { color: #fff; background: var(--primary); }
.audio-card[aria-pressed="true"] .audio-card__hint { font-size: 0; }
.audio-card[aria-pressed="true"] .audio-card__hint::after { content: "Playing"; font-size: 0.78rem; }
.audio-card--quote .audio-card__text strong { font-style: italic; }
.audio-note { margin-top: 8px !important; font-size: 0.84rem; color: var(--ink-subtle); }

/* ── CTA card ── */
.cta-card {
  display: grid; gap: 18px; align-items: center;
  padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-l);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 220, 199, 0.2), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(169, 180, 230, 0.25), transparent 60%),
    linear-gradient(150deg, #2b3360, #3d4679);
  color: rgba(239, 241, 255, 0.86); box-shadow: var(--shadow-soft);
  font-size: 0.98rem; line-height: 1.6;
}
.article-body .cta-card { margin-top: 2em; margin-bottom: 2em; }
.cta-card__art img { width: 96px; height: 96px; object-fit: cover; border-radius: 22px !important; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
.cta-card__title { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; color: #fff; }
.cta-card__body > p + p { margin-top: 6px; }
.cta-card a:not(.store-badge) { color: var(--peach); }
.cta-card__actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cta-card .store-badge { height: 48px; padding: 0 18px 0 14px; text-decoration: none; }
.cta-card .store-badge span { font-size: 1.12rem; }
.cta-card .store-badge svg { width: 22px; height: 22px; }
.cta-card__fine { font-size: 0.82rem; color: rgba(239, 241, 255, 0.66); }
@media (min-width: 640px) { .cta-card { grid-template-columns: auto 1fr; gap: 24px; } }

/* ── Disclaimer, author ── */
.disclaimer {
  margin-top: 40px; padding: 18px 22px; border-radius: var(--radius-m);
  border: 1px dashed #bcd6c1; background: #f5faf6; color: #44604b; font-size: 0.92rem; line-height: 1.6;
}
.disclaimer__title { font-family: var(--display); font-weight: 800; color: #2f5a3a; margin-bottom: 4px; }
.author {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--hairline); font-size: 0.92rem; line-height: 1.6;
}
.author__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--night); display: grid; place-items: center; }
.author__icon img { width: 34px; height: 34px; }
.author__name { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }

/* ── FAQ ── */
.faq-block { margin-top: 48px; }
.faq-block > h2 { font-size: clamp(1.45rem, 1.25rem + 0.9vw, 1.95rem); font-weight: 800; margin-bottom: 10px; scroll-margin-top: 90px; }
.faq-block details { border-bottom: 1px solid var(--hairline); }
.faq-block summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0;
}
.faq-block summary h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.35; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c71b5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform 0.25s ease;
}
.faq-block details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 20px; color: var(--ink-body); line-height: 1.7; max-width: 64ch; }
.faq__a > * + * { margin-top: 0.7em; }

/* ── Cards (related, hub spokes) ── */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.article-body .card-grid { margin-top: 1.2em; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--hairline);
  text-decoration: none !important; color: inherit;
  box-shadow: 0 10px 30px -24px rgba(45, 54, 87, 0.5);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(45, 54, 87, 0.6); }
.card__art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--primary-soft); }
.card__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform 0.4s ease; }
.card:hover .card__art img { transform: scale(1.03); }
.card__body { display: grid; gap: 6px; padding: 16px 18px 20px; }
.card__eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--primary); }
.card__title { font-size: 1.12rem !important; font-weight: 800; line-height: 1.3; color: var(--ink); margin: 0 !important; }
.card__text {
  font-size: 0.9rem; line-height: 1.5; color: var(--ink-body);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.related-wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin: clamp(48px, 7vw, 80px) auto; }
.related h2 { font-size: var(--step-2); font-weight: 800; margin-bottom: 22px; }

/* ── End CTA ── */
.end-cta {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(255, 220, 199, 0.18), transparent 60%),
    linear-gradient(180deg, #2e3664, #232a4f);
  color: rgba(239, 241, 255, 0.84);
  margin-top: clamp(48px, 7vw, 80px);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
}
.related-wrap + .end-cta { margin-top: 0; }
.end-cta__inner {
  position: relative; z-index: 2; width: min(640px, 100% - var(--gutter) * 2); margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0; display: flex; flex-direction: column; align-items: center;
}
.end-cta__icon { width: 80px; height: 80px; border-radius: 19px; box-shadow: var(--shadow-lift); }
.end-cta h2 { margin-top: 22px; color: #fff; font-size: var(--step-3); font-weight: 800; }
.end-cta__inner > p { margin-top: 12px; font-size: var(--step-1); line-height: 1.55; max-width: 32em; }
.end-cta .store-badge { margin-top: 26px; border-color: rgba(255, 255, 255, 0.35); }
.end-cta__inner > .end-cta__fine { margin-top: 14px; font-size: 0.86rem; color: rgba(239, 241, 255, 0.6); }

/* ── Footer (content pages) ── */
.foot--content { padding-top: clamp(48px, 7vw, 72px); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.foot--content .foot__inner { gap: 18px; }
.foot__top { display: grid; gap: 36px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.foot__brandcol { display: grid; gap: 10px; align-content: start; max-width: 320px; }
.foot__about { font-size: 0.9rem; line-height: 1.55; }
.foot__cols { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.foot__h { font-family: var(--display); font-weight: 800; color: #fff; font-size: 0.98rem; margin-bottom: 10px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot__col a { color: rgba(239, 241, 255, 0.72); text-decoration: none; font-size: 0.9rem; line-height: 1.4; }
.foot__col a:hover { color: #fff; text-decoration: underline; }
.foot--content .foot__copy { max-width: 70ch; line-height: 1.55; }
@media (min-width: 980px) { .foot__top { grid-template-columns: 300px 1fr; gap: 56px; } }

/* ── Sticky mobile download bar ── */
.dlbar {
  position: fixed; z-index: 55; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  padding: 9px 9px 9px 10px; border-radius: 20px;
  background: rgba(38, 45, 82, 0.94); color: #fff;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -16px rgba(20, 24, 50, 0.7);
  transform: translateY(0); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease;
}
.dlbar[hidden] { display: none; }
.dlbar.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.dlbar__icon { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.dlbar__text { display: grid; line-height: 1.25; min-width: 0; flex: 1; }
.dlbar__text strong { font-family: var(--display); font-weight: 800; font-size: 0.98rem; }
.dlbar__text small { font-size: 0.76rem; color: rgba(239, 241, 255, 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlbar__btn {
  flex: none; padding: 9px 20px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(135deg, var(--cream-1), var(--cream-2)); color: var(--night);
  font-family: var(--display); font-weight: 800; font-size: 0.95rem;
}
.dlbar__close { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; line-height: 1; cursor: pointer; }
@media (min-width: 900px) { .dlbar { display: none !important; } }
body.has-dlbar .np { bottom: calc(86px + env(safe-area-inset-bottom)); }
@media (max-width: 899px) { body.has-dlbar .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* ── Hub pages ── */
.content-page--hub .doc__main { max-width: 760px; }
.card-grid--spokes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

@media (max-width: 520px) {
  .doc { width: 100%; border-radius: 26px 26px 0 0; padding-inline: var(--gutter); }
  .audio-card__hint { display: none; }
}

@media print {
  .top, .dlbar, .np, .end-cta, .doc__side, .toc, .related-wrap, .foot { display: none !important; }
  .page-hero--content { background: none; color: #000; padding: 0; }
  .page-hero--content h1, .page-hero__lede { color: #000 !important; }
  .doc { box-shadow: none; margin: 0; }
}

/* Store badge inside prose must keep its own colors */
.article-body .store-badge, .cta-card .store-badge { color: #fff; text-decoration: none; }

/* Sources list (an H2 titled "Sources", conventionally last in the body) */
.article-body #sources { font-size: var(--step-1); margin-top: 2.6em; padding-top: 1.6em; border-top: 1px solid var(--hairline); }
.article-body #sources ~ ul, .article-body #sources ~ ol { font-size: 0.9rem; line-height: 1.6; color: var(--ink-subtle); }
.article-body #sources ~ ul a, .article-body #sources ~ ol a { overflow-wrap: anywhere; }

/* Mobile refinements */
.content-page .brand span { white-space: nowrap; }
@media (max-width: 959px) { .page-hero__art { display: none; } }
@media (max-width: 600px) {
  .page-hero__meta { gap: 6px 14px; }
  .page-hero__meta > span + span::before { display: none; }
}
@media (max-width: 370px) { .content-page .top .btn--sm { padding: 0 14px; } .content-page .brand { font-size: 1.05rem; } }
@media (max-width: 479px) {
  .content-page .top .btn--sm { display: none; }
  .content-page .menu-btn { margin-left: auto; }
}
