/* =============================================================================
 * Beyond News — design system
 * Editorial reading UI: Google News (chips, top-story clusters, clean cards)
 * meets Flipboard (immersive full-bleed covers, magazine rhythm, swipe).
 * ===========================================================================*/

:root {
  --brand: #E4002B;
  --brand-ink: #B10021;

  --bg: #FBFBFA;
  --surface: #FFFFFF;
  --surface-2: #F3F3F1;
  --ink: #14161B;
  --ink-2: #43474F;
  --ink-3: #767B85;
  --line: #E7E7E4;
  --line-2: #EFEFEC;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(20,22,27,.06), 0 4px 16px rgba(20,22,27,.05);
  --shadow-2: 0 8px 30px rgba(20,22,27,.12);

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --topbar-h: 58px;
  --chips-h: 52px;
  --bottomnav-h: 62px;
  --maxw: 1180px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0F1115;
  --surface: #171A21;
  --surface-2: #1F232C;
  --ink: #F3F4F6;
  --ink-2: #C4C8D0;
  --ink-3: #8B909B;
  --line: #262A33;
  --line-2: #21252D;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.35);
  --shadow-2: 0 10px 34px rgba(0,0,0,.5);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1115; --surface: #171A21; --surface-2: #1F232C;
    --ink: #F3F4F6; --ink-2: #C4C8D0; --ink-3: #8B909B;
    --line: #262A33; --line-2: #21252D;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.35);
    --shadow-2: 0 10px 34px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }

/* ------------------------------------------------------------------ layout */
.app { min-height: 100dvh; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 20px; }
.topbar__brand .logo { width: 30px; height: 30px; border-radius: 9px; }
.topbar__brand em { font-style: normal; color: var(--brand); }
.topbar__spacer { flex: 1; }
.iconbtn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2);
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.iconbtn:active { transform: scale(.92); }
.iconbtn svg { width: 22px; height: 22px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #5B34D6);
  color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}

/* date strip under brand on wide screens */
.topbar__date { color: var(--ink-3); font-size: 12.5px; font-weight: 600; text-transform: capitalize; }
@media (max-width: 720px) { .topbar__date { display: none; } }

/* category chips (Google News style) */
.chips {
  position: sticky; top: var(--topbar-h); z-index: 39;
  height: var(--chips-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; scroll-snap-align: start;
  padding: 8px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 650; white-space: nowrap;
  color: var(--ink-2); background: var(--surface-2);
  border: 1px solid transparent;
  transition: all .16s ease;
}
.chip:hover { color: var(--ink); }
.chip[aria-selected="true"] {
  color: #fff; background: var(--ink);
  border-color: var(--ink);
}
:root[data-theme="dark"] .chip[aria-selected="true"] { background: var(--brand); border-color: var(--brand); }
.chip--follow { display: inline-flex; align-items: center; gap: 6px; }

/* main scroll area */
.main {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 16px calc(var(--bottomnav-h) + 28px);
}
@media (min-width: 900px) {
  .main { padding: 26px 24px 60px; }
}

/* section header */
.section-head {
  display: flex; align-items: baseline; gap: 10px;
  margin: 26px 4px 14px;
}
.section-head:first-child { margin-top: 6px; }
.section-head h2 {
  font-family: var(--serif); font-size: 22px; letter-spacing: -.01em;
  margin: 0; font-weight: 700;
}
.section-head .rule { flex: 1; height: 1px; background: var(--line); }
.section-head .accent { width: 22px; height: 3px; border-radius: 2px; background: var(--brand); }

/* ------------------------------------------------------------ hero (Flip) */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-1); margin-bottom: 20px;
  aspect-ratio: 16 / 10; max-height: 60vh;
  isolation: isolate;
}
@media (min-width: 720px) { .hero { aspect-ratio: 21 / 9; } }
.hero__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero:hover .hero__img { transform: scale(1.04); }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,9,12,.86) 0%, rgba(8,9,12,.35) 45%, rgba(8,9,12,0) 72%);
}
.hero__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px clamp(20px, 4vw, 40px); color: #fff;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--brand); padding: 5px 11px; border-radius: 999px;
  margin-bottom: 12px;
}
.hero__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(24px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.01em;
  margin: 0 0 10px; max-width: 20ch;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__meta { display: flex; align-items: center; gap: 10px; font-size: 13.5px; opacity: .95; }
.hero__meta img { width: 22px; height: 22px; border-radius: 6px; }

/* -------------------------------------------------- top stories cluster (GN) */
.cluster {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 6px 4px; margin-bottom: 20px;
}
.cluster__lead { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; padding: 16px; }
@media (max-width: 620px) { .cluster__lead { grid-template-columns: 1fr; } }
.cluster__lead .thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/10; }
.cluster__lead .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cluster__lead h3 {
  font-family: var(--serif); font-size: clamp(19px, 2.4vw, 24px); line-height: 1.18;
  margin: 4px 0 8px; font-weight: 700;
}
.cluster__lead p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; margin: 0; }
.cluster__more { border-top: 1px solid var(--line-2); }
.cluster__row {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-bottom: 1px solid var(--line-2); transition: background .15s ease;
}
.cluster__row:last-child { border-bottom: none; }
.cluster__row:hover { background: var(--surface-2); }
.cluster__row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }
.cluster__row h4 { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.35; }
.cluster__row .rmeta { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }

/* ----------------------------------------------------------- magazine grid */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); }
.card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__cat {
  position: absolute; top: 10px; left: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; padding: 4px 9px; border-radius: 999px; background: rgba(10,12,16,.55);
  backdrop-filter: blur(6px);
}
.card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-family: var(--serif); font-size: 18.5px; line-height: 1.22; font-weight: 700; margin: 0; }
.card__sum { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; display: flex; align-items: center; gap: 9px; padding-top: 4px; }
.card__foot img { width: 20px; height: 20px; border-radius: 6px; }
.card__src { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.card__sep { color: var(--ink-3); }
.card__time { font-size: 12.5px; color: var(--ink-3); }
.card__save {
  margin-left: auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-3);
}
.card__save:hover { background: var(--surface-2); color: var(--ink); }
.card__save.on { color: var(--brand); }
.card__save svg { width: 19px; height: 19px; }
.card.read .card__title { color: var(--ink-2); }
.card.read::after {
  content: "Letto"; position: absolute; top: 10px; right: 10px;
  font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(10,12,16,.5);
  padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* first card spans wider on large grids for magazine rhythm */
@media (min-width: 900px) {
  .grid--feature > .card:first-child { grid-column: span 2; flex-direction: row; }
  .grid--feature > .card:first-child .card__media { flex: 1 1 55%; aspect-ratio: auto; }
  .grid--feature > .card:first-child .card__body { flex: 1 1 45%; justify-content: center; }
  .grid--feature > .card:first-child .card__title { font-size: 26px; }
  .grid--feature > .card:first-child .card__sum { -webkit-line-clamp: 4; }
}

/* --------------------------------------------------------------- reader */
.reader { max-width: 720px; margin: 0 auto; }
.reader__back {
  display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2);
  font-weight: 600; font-size: 14px; margin: 2px 0 16px; padding: 6px 10px 6px 6px;
  border-radius: 999px;
}
.reader__back:hover { background: var(--surface-2); color: var(--ink); }
.reader__cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow-1); }
.reader__cover img { width: 100%; height: 100%; object-fit: cover; }
.reader__kicker { display: inline-block; margin: 20px 0 0; font-size: 12px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.reader__title { font-family: var(--serif); font-size: clamp(28px, 5vw, 40px); line-height: 1.12;
  letter-spacing: -.015em; margin: 10px 0 14px; font-weight: 700; }
.reader__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.reader__meta .who { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-weight: 600; }
.reader__meta img { width: 26px; height: 26px; border-radius: 7px; }
.reader__actions { display: flex; gap: 8px; margin-left: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 650;
  background: var(--surface-2); color: var(--ink-2); transition: all .15s ease;
}
.pill:hover { color: var(--ink); }
.pill.on { background: var(--brand); color: #fff; }
.pill svg { width: 17px; height: 17px; }
.reader__body { font-size: 18px; line-height: 1.72; color: var(--ink); margin-top: 22px; }
.reader__body p { margin: 0 0 20px; }
.reader__body p:first-child::first-letter {
  font-family: var(--serif); font-size: 3.4em; line-height: .82; font-weight: 700;
  float: left; padding: 6px 10px 0 0; color: var(--brand);
}
.reader__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.tag { font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); padding: 6px 12px; border-radius: 999px; }

/* progress bar at very top when reading */
.readprog { position: fixed; top: 0; left: 0; height: 3px; background: var(--brand); z-index: 60; width: 0; transition: width .1s linear; }

/* ------------------------------------------------------------- bottom nav */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; align-items: stretch;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.bottomnav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3); font-size: 11px; font-weight: 600;
  transition: color .15s ease;
}
.bottomnav button svg { width: 24px; height: 24px; }
.bottomnav button[aria-selected="true"] { color: var(--brand); }
.bottomnav button:active { transform: scale(.94); }
@media (min-width: 900px) { .bottomnav { display: none; } .main { padding-bottom: 60px; } }

/* desktop side rail */
.sidenav { display: none; }
@media (min-width: 900px) {
  .with-rail { display: grid; grid-template-columns: 210px 1fr; gap: 30px;
    max-width: var(--maxw); margin: 0 auto; padding: 26px 24px 60px; }
  .with-rail .main { padding: 0; max-width: none; margin: 0; }
  .sidenav { display: block; position: sticky; top: calc(var(--topbar-h) + 18px); height: max-content; }
  .sidenav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    color: var(--ink-2); font-weight: 600; font-size: 14.5px; margin-bottom: 2px;
  }
  .sidenav a svg { width: 21px; height: 21px; }
  .sidenav a:hover { background: var(--surface-2); color: var(--ink); }
  .sidenav a[aria-selected="true"] { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
  .sidenav .sn-head { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-3); margin: 18px 12px 8px; }
}

/* ---------------------------------------------------------------- skeleton */
.sk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sk .b { background: linear-gradient(100deg, var(--surface-2) 30%, var(--line-2) 50%, var(--surface-2) 70%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.sk .m { aspect-ratio: 16/10; }
.sk .t { height: 16px; margin: 14px 15px 8px; border-radius: 6px; }
.sk .t2 { width: 70%; }
.sk .f { height: 12px; width: 45%; margin: 8px 15px 16px; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------- empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty svg { width: 54px; height: 54px; opacity: .5; margin-bottom: 14px; }
.empty h3 { font-family: var(--serif); color: var(--ink); font-size: 20px; margin: 0 0 6px; }
.empty p { margin: 0 auto; max-width: 34ch; line-height: 1.5; }

/* -------------------------------------------------- banners / toast / prompt */
.offline-banner {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bottomnav-h) + 14px); z-index: 55;
  display: none; align-items: center; gap: 9px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-2);
}
.offline-banner.show { display: inline-flex; }
.offline-banner .d { width: 8px; height: 8px; border-radius: 50%; background: #FFB020; }
@media (min-width: 900px) { .offline-banner { bottom: 20px; } }

.toast {
  position: fixed; left: 50%; transform: translate(-50%, 20px);
  bottom: calc(var(--bottomnav-h) + 14px); z-index: 56;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

.install {
  position: fixed; z-index: 57; left: 16px; right: 16px;
  bottom: calc(var(--bottomnav-h) + 14px);
  display: none; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-2); border-radius: 16px; padding: 14px 16px;
  max-width: 460px; margin: 0 auto;
}
.install.show { display: flex; }
.install img { width: 42px; height: 42px; border-radius: 11px; }
.install .txt strong { display: block; font-size: 15px; }
.install .txt span { font-size: 13px; color: var(--ink-3); }
.install .grow { flex: 1; }
.install .btn { background: var(--brand); color: #fff; font-weight: 700; padding: 9px 16px; border-radius: 10px; font-size: 14px; }
.install .x { color: var(--ink-3); font-size: 20px; padding: 4px 8px; }
@media (min-width: 900px) { .install { left: auto; right: 24px; bottom: 24px; } }

/* onboarding sheet */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(8,9,12,.5);
  display: none; align-items: flex-end; justify-content: center;
}
.sheet-backdrop.show { display: flex; }
.sheet {
  background: var(--surface); width: 100%; max-width: 520px;
  border-radius: 22px 22px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0));
  box-shadow: var(--shadow-2); animation: slideup .28s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 640px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 22px; margin: 20px; } }
@keyframes slideup { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet h2 { font-family: var(--serif); font-size: 24px; margin: 6px 0 6px; }
.sheet p.lead { color: var(--ink-2); margin: 0 0 18px; line-height: 1.5; }
.sheet .picks { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.sheet .pick {
  padding: 9px 15px; border-radius: 999px; font-weight: 650; font-size: 14px;
  border: 1.5px solid var(--line); color: var(--ink-2); transition: all .15s;
}
.sheet .pick.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sheet .cta { width: 100%; background: var(--ink); color: var(--surface); font-weight: 700;
  padding: 14px; border-radius: 12px; font-size: 15px; }
:root[data-theme="dark"] .sheet .cta { background: var(--brand); color: #fff; }

/* search */
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
.searchbar input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font-size: 16px; }
.searchbar svg { width: 20px; height: 20px; color: var(--ink-3); }

/* view transitions */
.view { animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* focus a11y */
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* Link-out dal lettore alla case completa su Beyond (aggiunto per l'integrazione). */
.reader__deep{
  display:inline-flex;align-items:center;gap:9px;margin:6px 0 4px;
  padding:13px 18px;border-radius:12px;text-decoration:none;
  background:var(--brand);color:#fff;font:600 15px/1 var(--sans);
  box-shadow:var(--shadow-1);transition:transform .12s,filter .15s;
}
.reader__deep:hover{filter:brightness(1.06)}
.reader__deep:active{transform:translateY(1px)}
.reader__deep svg{width:17px;height:17px}

/* Footer in-app: link alle altre superfici del portale (raggiungibili dalla PWA). */
.pwafoot{margin:34px 2px 8px;padding:20px 2px 8px;border-top:1px solid var(--line)}
.pwafoot__h{font:700 12px/1 var(--sans);letter-spacing:.6px;text-transform:uppercase;color:var(--ink-3);margin-bottom:12px}
.pwafoot__links{display:flex;flex-wrap:wrap;gap:9px 10px;margin-bottom:14px}
.pwafoot__links a{font:600 13.5px/1 var(--sans);color:var(--ink-2);background:var(--surface-2);padding:8px 13px;border-radius:999px;text-decoration:none;transition:color .15s,background .15s}
.pwafoot__links a:hover{color:var(--ink);background:var(--line)}
.pwafoot__copy{font-size:12.5px;color:var(--ink-3)}

/* Analisi completa nativa nel lettore (executive summary, timeline, insights, entità, fonti). */
.reader__analysis{margin:8px 0 2px}
.an-loading{color:var(--ink-3);font-size:14px;margin:14px 2px}
.reader__analysis .an{margin:22px 0;padding-top:18px;border-top:1px solid var(--line)}
.reader__analysis .an:first-child{border-top:0;padding-top:0}
.reader__analysis .an h2{font:700 20px/1.2 var(--serif);color:var(--ink);margin:0 0 12px}
.reader__analysis .an h3{font:700 13px/1.2 var(--sans);letter-spacing:.3px;text-transform:uppercase;color:var(--ink-3);margin:16px 0 7px}
.reader__analysis .an p{color:var(--ink-2);font-size:15.5px;line-height:1.65;margin:0 0 10px}
.reader__analysis .an ul{margin:0 0 6px;padding-left:20px}
.reader__analysis .an li{color:var(--ink-2);font-size:15px;line-height:1.55;margin:5px 0}
.an-tl li{list-style:none}
.an-tl{padding-left:0!important}
.an-tl time{display:inline-block;font-variant-numeric:tabular-nums;color:var(--brand);font-weight:700;font-size:13px;margin-right:6px}
.an-tl cite{color:var(--ink-3);font-style:normal;font-size:13px}
.an-ents{display:flex;flex-wrap:wrap;gap:8px}
.an-ents .ent{font:600 13.5px/1 var(--sans);color:var(--ink-2);background:var(--surface-2);padding:8px 13px;border-radius:999px;text-decoration:none;transition:background .15s,color .15s}
.an-ents .ent:hover{background:var(--line);color:var(--ink)}
.an-src li{font-size:14px}
.an-src a{color:var(--brand-ink);text-decoration:none}
.an-src a:hover{text-decoration:underline}
.an-conf{background:var(--surface-2);border-radius:12px;padding:12px 14px;margin:8px 0}
.an-conf b{display:block;color:var(--ink);font-size:15px;margin-bottom:3px}
.an-conf span{color:var(--ink-3);font-size:14px}
