/* Lumos Newsletter edition page (2026-10 redesign). Loaded after home.css (tokens, topbar, buttons, cards, footer). */
html { font-size: 100%; }
.lang-pt-inline { display: inline; }
.lang-en-inline { display: none; }
html[lang="en"] .lang-en-inline { display: inline; }
html[lang="en"] .lang-pt-inline { display: none !important; }
.wrap-n { max-width: 760px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.topnav > a { display: inline-block; }

/* Hero */
.ed-hero { padding-top: 56px; padding-bottom: 32px; }
.ed-hero__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.6vw, 2.75rem); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.ed-hero__lead { margin: 20px 0 0; font-size: 1.125rem; line-height: 1.7; color: var(--body-2); }
.ed-hero__facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.ed-hero__facts li { display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--ink-2); }
.ed-hero__facts svg { color: var(--blue); flex: none; }

/* Episode player */
.ep-wrap { padding-bottom: 24px; }
.ep { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 1px 2px rgba(var(--shadow-ink),.04), 0 12px 32px rgba(var(--shadow-ink),.06); }
.ep__head { display: flex; gap: 16px; align-items: center; }
.ep__cover { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; }
.ep__meta { min-width: 0; }
.ep__eyebrow { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.ep__title { margin: 4px 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.375rem; line-height: 1.25; color: var(--ink); }
.ep__sub { margin: 4px 0 0; font-size: .9375rem; line-height: 1.5; color: var(--muted); }

.ep__btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font-family: var(--sans); transition: background .15s, color .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.ep__controls { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 24px 0 8px; }
.ep__skip { width: 48px; height: 48px; border-radius: 999px; background: transparent; color: var(--navy); }
.ep__skip:hover { background: var(--mist); }
.ep__skip:active { background: var(--mist-2); }
.ep__play { position: relative; width: 64px; height: 64px; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(35,64,95,.22); }
.ep__play:hover { background: var(--navy-dark); }
.ep__play:active { transform: scale(.96); }
.ep__play svg { position: absolute; inset: 0; margin: auto; }
/* The play path is drawn with its centroid at the viewBox center, so plain centering is optically centered. */
.ep__play .i-pause, .ep__play .i-spin, .ep.is-playing .ep__play .i-play { display: none; }
.ep.is-playing .ep__play .i-pause { display: block; }
.ep.is-loading .ep__play .i-play, .ep.is-loading .ep__play .i-pause { display: none; }
.ep.is-loading .ep__play .i-spin { display: block; animation: ep-spin 1.2s linear infinite; }
@keyframes ep-spin { to { transform: rotate(360deg); } }
/* Soft "breathing" ring while playing: slow and subtle, off with reduced motion. */
.ep__play::after { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid var(--sky); opacity: 0; pointer-events: none; }
.ep.is-playing .ep__play::after { animation: ep-breathe 3.2s ease-in-out infinite; }
@keyframes ep-breathe { 0%, 100% { opacity: 0; transform: scale(.94); } 50% { opacity: .55; transform: scale(1.04); } }

/* Scrubber */
.ep__scrub { padding: 4px 0 0; }
.ep__seek { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; --p: 0%; --b: 0%; }
.ep__seek:disabled { cursor: default; opacity: .6; }
.ep__seek::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--navy) 0 var(--p), var(--mist-2) var(--p) var(--b), var(--mist) var(--b) 100%); }
.ep__seek::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--navy) 0 var(--p), var(--mist-2) var(--p) var(--b), var(--mist) var(--b) 100%); }
.ep__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 999px; background: var(--navy); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(var(--shadow-ink),.3); }
.ep__seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 999px; background: var(--navy); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(var(--shadow-ink),.3); }
.ep__seek:focus-visible { outline: none; }
.ep__seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(45,92,136,.35); }
.ep__seek:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(45,92,136,.35); }
.ep__times { display: flex; justify-content: space-between; margin-top: -6px; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.ep__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.ep__status { margin: 0; font-size: .875rem; color: var(--muted); }
.ep__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ep__chip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--mist); color: var(--navy); font-family: var(--sans); font-size: .9375rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.ep__chip:hover { background: var(--mist-2); }
.ep__chip[aria-pressed="false"] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--field); color: var(--ink-2); }
.ep__state { font-variant-numeric: tabular-nums; }
.ep__error { display: none; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: #FBEDEA; color: #8A2F23; font-size: .9375rem; align-items: center; gap: 12px; flex-wrap: wrap; }
.ep.is-error .ep__error { display: flex; }

/* Transcript */
.tx { position: relative; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 24px 16px; }
.tx__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.tx__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--ink); }
.tx__hint { margin: 0; font-size: .875rem; color: var(--muted); }
.tx__content { max-width: 66ch; }
.tx.is-collapsed .tx__content { max-height: 13.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.tx__p { margin: 0 0 1.1em; font-size: 1.0625rem; line-height: 1.75; color: var(--ink); }
.tx__s { display: inline; padding: 1px 2px; margin: 0 -2px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: left; cursor: pointer; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background .25s ease; }
.tx__s:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.tx__s:hover { background: var(--hl-soft); }
.tx__s.is-current { background: var(--hl); box-shadow: inset 0 -2px 0 var(--marigold); }
.tx__more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 4px; border: 0; border-radius: 12px; background: transparent; color: var(--navy); font-family: var(--sans); font-size: 1rem; font-weight: 700; cursor: pointer; }
.tx__more:hover { background: var(--mist); }
.tx__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.tx__jump { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-family: var(--sans); font-size: .9375rem; font-weight: 700; box-shadow: 0 8px 24px rgba(var(--shadow-ink),.25); cursor: pointer; }
.tx__jump[hidden] { display: none; }
body.has-mini .tx__jump { bottom: 96px; }
/* Legacy word spans before player.js rebuilds them (no-JS fallback stays readable). */
.transcript-word { padding: 0; }
.transcript-paragraph { margin: 0 0 1em; line-height: 1.75; }

/* Studies */
.studies { padding-top: 40px; }
.section-h { margin: 0 0 20px; font-family: var(--serif); font-weight: 500; font-size: 1.75rem; color: var(--ink); }
.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin-bottom: 20px; }
.article-card__position { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--navy); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.article-card__title { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: 1.375rem; line-height: 1.3; color: var(--ink); }
.article-card__summary, .article-card__summary p { font-size: 1.0625rem; line-height: 1.7; color: var(--ink); margin: 0 0 12px; }
/* "What this means for your family": a note on lined notebook paper, written by hand. */
.article-card__why { position: relative; margin: 22px 0 18px; padding: 20px 22px 16px 3.4rem; border-radius: 3px;
  --line: 2rem;
  background-color: #FFFCF2;
  background-image:
    linear-gradient(90deg, transparent 2.55rem, rgba(214,116,104,.55) 2.55rem, rgba(214,116,104,.55) calc(2.55rem + 1.5px), transparent calc(2.55rem + 1.5px)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), rgba(126,166,203,.45) calc(var(--line) - 1px), rgba(126,166,203,.45) var(--line));
  background-position: 0 0, 0 14px;
  box-shadow: 0 1px 2px rgba(var(--shadow-ink),.08), 0 8px 18px rgba(var(--shadow-ink),.07);
  transform: rotate(-.35deg); }
.article-card__why::before { content: ""; position: absolute; top: -11px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%) rotate(-2.5deg);
  background: rgba(211,150,45,.38); border-left: 1px dashed rgba(255,255,255,.6); border-right: 1px dashed rgba(255,255,255,.6); }
.article-card__doodle { position: absolute; left: 10px; top: 14px; color: var(--marigold); }
.article-card__sticker { position: absolute; right: -10px; bottom: -12px; width: 40px; height: 36px; object-fit: contain; transform: rotate(12deg); filter: drop-shadow(0 2px 2px rgba(var(--shadow-ink),.18)); }
.article-card__why-label { display: inline-block; margin: 0; font-family: 'Kalam', 'Comic Neue', cursive; font-size: 1.25rem; font-weight: 700; line-height: var(--line); letter-spacing: 0; text-transform: none; color: var(--navy); }
.article-card__why-text { font-family: 'Kalam', 'Comic Neue', cursive; font-size: 1.2rem; font-weight: 400; line-height: var(--line); color: #2A3540; }
html[lang="en"] .article-card__why-label.lang-en, html:not([lang="en"]) .article-card__why-label.lang-pt { display: inline-block !important; }
.article-card__source { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.article-card__source a, .article-card__references a { color: var(--blue); word-break: break-word; }
.article-card__references { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.article-card__references summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--navy); }
.article-card__references-list { margin: 4px 0 0; padding-left: 18px; line-height: 1.6; }

/* Share */
.share-wrap { padding-top: 8px; padding-bottom: 8px; }
.share-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.share-label { margin-right: auto; font-weight: 700; color: var(--ink); }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--mist); color: var(--navy); cursor: pointer; transition: background .15s, color .15s; }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-btn:hover { background: var(--navy); color: #fff; }
.share-label.lang-en { display: none; }
html[lang="en"] .share-label.lang-en { display: inline; }

/* CTA with inline signup */
.cta { display: block; margin: 40px 0; }
.cta .signup { margin-top: 20px; max-width: none; }
.cta .signup input { border-color: transparent; }
.cta .signup__msg.is-ok { color: #BFE3C9; }
.cta .signup__msg.is-err { color: #F6C3BA; }

/* More editions */
.more { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 64px; }
.more .wrap { max-width: 760px; }
.more__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.more__head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.75rem; }
.more__all { font-weight: 700; text-decoration: none; }
.more__all:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Mini player */
.ep-mini { position: fixed; left: 50%; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 8px; width: min(560px, calc(100% - 24px)); padding: 8px 10px; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 12px 32px rgba(var(--shadow-ink),.3); transform: translate(-50%, 140%); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility .3s; }
.ep-mini.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.ep-mini .ep__btn { width: 44px; height: 44px; border-radius: 999px; background: transparent; color: #fff; flex: none; }
.ep-mini .ep__btn:hover { background: rgba(255,255,255,.12); }
.ep-mini__play { background: #fff !important; color: var(--navy) !important; }
.ep-mini__play svg { position: absolute; inset: 0; margin: auto; }
.ep-mini__play { position: relative; }
.ep-mini__play .i-pause, .ep-mini.is-playing .ep-mini__play .i-play { display: none; }
.ep-mini.is-playing .ep-mini__play .i-pause { display: block; }
.ep-mini__title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .9375rem; font-weight: 700; }

/* Gentle entrance */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.edition-card a { transition: background .15s, border-color .15s, transform .2s ease; }
.edition-card a:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .article-card__why { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .ep.is-playing .ep__play::after, .ep.is-loading .ep__play .i-spin { animation: none; }
  .edition-card a:hover { transform: none; }
}
@media (max-width: 640px) {
  .wrap-n { padding-left: 16px; padding-right: 16px; }
  .topnav > a { display: inline-block; font-size: .875rem; }
  .ed-hero { padding-top: 32px; padding-bottom: 24px; }
  .ed-hero__lead { font-size: 1.0625rem; }
  .ep, .tx { padding: 18px; border-radius: 18px; }
  .ep__cover { width: 56px; height: 56px; border-radius: 12px; }
  .ep__title { font-size: 1.1875rem; }
  .ep__controls { gap: 20px; }
  .ep__row { flex-direction: column; align-items: stretch; }
  .ep__opts { justify-content: space-between; }
  .ep__chip { flex: 1; justify-content: center; }
  .article-card { padding: 20px; border-radius: 16px; }
  .article-card__title { font-size: 1.25rem; }
  .article-card__why { padding: 18px 16px 14px 3rem; background-image: linear-gradient(90deg, transparent 2.2rem, rgba(214,116,104,.55) 2.2rem, rgba(214,116,104,.55) calc(2.2rem + 1.5px), transparent calc(2.2rem + 1.5px)), repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--line) - 1px), rgba(126,166,203,.45) calc(var(--line) - 1px), rgba(126,166,203,.45) var(--line)); }
  .article-card__doodle { left: 4px; width: 28px; height: 28px; }
  .article-card__sticker { right: -4px; }
  .share-label { width: 100%; }
  .more { padding: 40px 0 48px; }
}

/* Chapters ("In this episode") */
.ep__chapters { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.ep__ch-h { margin: 0 0 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.ep__chapters ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ep__ch { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-family: var(--sans); font-size: .9688rem; line-height: 1.4; text-align: left; cursor: pointer; transition: background .15s; }
.ep__ch:hover { background: var(--surface-2); }
.ep__ch-t { font-variant-numeric: tabular-nums; font-size: .875rem; font-weight: 700; color: var(--muted); }
.ep__ch.is-current { background: var(--hl-soft); box-shadow: inset 3px 0 0 var(--marigold); }
.ep__ch.is-current .ep__ch-t { color: var(--hl-ink); }
.ep__scrub { position: relative; }
.ep__ticks { position: absolute; left: 10px; right: 10px; top: 19px; height: 6px; pointer-events: none; z-index: 1; }
.ep__ticks i { position: absolute; top: -2px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: var(--marigold); opacity: .85; }

/* Speaker turns */
.tx__p[data-spk] { position: relative; padding-left: 14px; border-left: 2px solid var(--line); }
.tx__p[data-spk="1"] { border-left-color: rgba(211,150,45,.55); }
.tx__p[data-spk="0"] { border-left-color: rgba(35,64,95,.35); }
.tx__who { display: block; margin-bottom: 2px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tx__s--aside { color: var(--muted); font-style: italic; }
