/* PULSE — Editorial Flow (preview). Visual reference: the user's demo "index (2).html". */
:root {
  color-scheme: dark;
  --bg: #09090c; --panel: #141218; --panel-2: #17131d; --muted: #a8a2ae; --purple: #ae8bff; --purple-2: #c2a9ff;
  --text: #f4f0eb; --line: #302a35;
  --serif: 'Playfair Display', Georgia, serif; --sans: 'DM Sans', Arial, sans-serif;
  --pad: clamp(22px, 5vw, 85px);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ---------- Header ---------- */
body > header {
  height: calc(82px + var(--safe-t)); padding: var(--safe-t) calc(var(--pad) + var(--safe-r)) 0 calc(var(--pad) + var(--safe-l));
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; top: 0; z-index: 10; background: #09090cf5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.logo { font-family: var(--serif); font-size: 32px; letter-spacing: -1.5px; font-weight: 700; }
.logo span, .accent { color: var(--purple); }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { color: #a9a3af; padding: 8px; transition: color .2s; }
.nav a.active, .nav a:hover { color: #f5f0f9; }
.tools { display: flex; gap: 12px; }
.tools a, .tools button { background: none; border: 1px solid var(--line); border-radius: 30px; padding: 10px 15px; color: #a9a3af; transition: color .2s, border-color .2s; display: inline-flex; gap: 7px; align-items: center; }
.tools a:hover, .tools button:hover, .tools .active { color: #f5f0f9; border-color: #4b3d5c; }

/* ---------- Page ---------- */
.offline { display: none; text-align: center; font-size: 13px; padding: 9px; background: var(--panel); color: var(--muted); border-bottom: 1px solid var(--line); }
body.is-offline .offline { display: block; }
.shell { max-width: 1440px; margin: auto; padding: 40px var(--pad) 100px; }
.eyebrow { color: var(--purple); text-transform: uppercase; font-size: 11.5px; letter-spacing: 2px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
/* section colors: muted, used only as a small dot + placeholder tint (violet stays for Essenziali / active / main action) */
.cat-gaming { --c: #6fb5a0; } .cat-tech { --c: #7aa2d6; } .cat-politica { --c: #d29a76; } .cat-sport { --c: #93bf72; }
.cat-cinema { --c: #d6b25f; } .cat-mondo { --c: #c98d98; } .cat-economia { --c: #b3ad78; }
.eyebrow.plain, .eyebrow.cat { color: #c9c0b6; }
.eyebrow.cat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #8f8898); flex: none; }
.eyebrow.cat.ess { color: var(--purple); }
.eyebrow.ess::before { content: ''; width: 6px; height: 6px; background: var(--purple); transform: rotate(45deg); flex: none; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 35px; }
.intro h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 66px); margin: 10px 0; line-height: 1.08; }
.intro p { color: var(--muted); max-width: 340px; line-height: 1.7; margin: 0; }

/* ---------- Feature ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 485px; border-bottom: 1px solid var(--line); padding-bottom: 42px; gap: clamp(25px, 5vw, 80px); }
.feature-copy { display: flex; flex-direction: column; justify-content: center; align-items: start; }
.feature h2 { font-family: var(--serif); font-size: clamp(37px, 4.5vw, 68px); line-height: 1.12; letter-spacing: -1px; font-weight: 500; margin: 18px 0; cursor: pointer; text-wrap: balance; }
.feature p { font-size: 16px; color: #b7b0bd; line-height: 1.8; max-width: 510px; margin: 0 0 16px; }
.meta { font-size: 12.5px; color: #b3acb9; letter-spacing: .4px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.meta b { color: #d8d1de; font-weight: 600; }
.also { font-size: 12px; color: #9f97a8; margin-top: 8px; }
.also b { color: #d8d1de; font-weight: 600; }
.tag-en { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; border: 1px solid #4b3d5c; border-radius: 3px; padding: 2px 4px; color: var(--muted); }
.feature-image, .tile-image { position: relative; overflow: hidden; background: linear-gradient(130deg, #34204e, #10121e); }
.feature-image { min-height: 390px; cursor: pointer; }
.feature-image img, .tile-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.96) saturate(.95); transition: transform .5s; }
.feature-image:hover img, .tile:hover img { transform: scale(1.04); }
.feature-image::after, .tile-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #09090c40, transparent 40%); pointer-events: none; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c, #ae8bff); opacity: .7; background: radial-gradient(120% 100% at 80% 0%, color-mix(in srgb, var(--c, #ae8bff) 22%, transparent), transparent 70%); }
.ph svg { width: 42px; height: 42px; stroke-width: 1.2; }
.ph-src { position: absolute; left: 16px; bottom: 13px; z-index: 1; font: italic 500 15px var(--serif); color: #d8d1de; }
.cta { background: var(--purple); color: #100b19; border: 0; border-radius: 2px; padding: 14px 23px; font-weight: 700; margin-top: 26px; display: inline-flex; gap: 8px; align-items: center; }
.cta:hover { background: var(--purple-2); }
.outline { border: 1px solid #6a527e; color: #e2d0ff; background: none; padding: 12px 18px; display: inline-flex; gap: 8px; align-items: center; }
.outline:hover { border-color: var(--purple); }
.outline:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Section, chips, grid ---------- */
.sectionhead { display: flex; align-items: baseline; justify-content: space-between; margin: 45px 0 22px; gap: 12px; }
.sectionhead.first { margin-top: 0; }
.sectionhead h3 { font-family: var(--serif); font-size: 32px; font-weight: 500; margin: 0; }
.sectionhead small { color: var(--muted); }
.cats { display: flex; gap: 10px; overflow: auto; padding: 12px 0 13px; margin-bottom: 12px; scrollbar-width: none; position: sticky; top: calc(82px + var(--safe-t)); z-index: 5; background: var(--bg); }
.cats::-webkit-scrollbar { display: none; }
.cats button { background: none; color: #b3acb9; border: 1px solid #342e3b; border-radius: 40px; white-space: nowrap; padding: 10px 17px; transition: color .2s, border-color .2s; display: inline-flex; align-items: center; gap: 8px; }
.cats .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.cats button:hover { color: #f5f0f9; }
.cats button.active { background: #372448; border-color: #8b61c9; color: #f5f0f9; }
.searchrow { display: flex; gap: 12px; margin: 0 0 25px; flex-wrap: wrap; }
.searchbar { flex: 1; min-width: 240px; background: var(--panel-2); color: white; border: 1px solid #4b3d5c; padding: 16px 20px; outline: none; border-radius: 0; }
.searchbar:focus { border-color: var(--purple); }
.searchrow select { background: var(--panel-2); color: #d8d1de; border: 1px solid #342e3b; padding: 0 14px; min-height: 54px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.tile { border-bottom: 1px solid var(--line); padding-bottom: 18px; cursor: pointer; display: flex; flex-direction: column; }
.tile-image { aspect-ratio: 1.65; }
.tile .eyebrow { margin-top: 17px; }
.tile h4 { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.25; margin: 9px 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile:hover h4 { color: #fff; }
.tile p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* first row: one big story + two small ones */
.lead-block { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 25px; margin-bottom: 8px; }
.lead-block .big { grid-row: span 2; }
.lead-block .big .tile-image { aspect-ratio: 1.5; }
.lead-block .big h4 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; }
.lead-block .big p { font-size: 15px; -webkit-line-clamp: 3; }
.lead-block .small h4 { font-size: 20px; }

/* Essenziali: text-only strip, independent from interests */
.ess-strip { margin: 34px 0 40px; padding: 22px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ess-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ess-head small { color: var(--muted); font-size: 12.5px; }
.ess-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 34px; }
.ess-item { cursor: pointer; padding: 0 0 18px; }
.ess-item + .ess-item { border-left: 1px solid var(--line); padding-left: 34px; margin-left: -34px; }
.ess-item .eyebrow { font-size: 11px; }
.ess-item h5 { font: 500 20px/1.3 var(--serif); margin: 8px 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ess-item:hover h5 { color: #fff; }

/* quick save, read state */
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #09090c99; color: #f4f0eb; display: grid; place-items: center; opacity: 0; transition: opacity .2s, color .2s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fav svg { width: 17px; height: 17px; }
.tile:hover .fav, .tile:focus-within .fav, .fav.on { opacity: 1; }
.fav.on { color: var(--purple); }
@media (hover: none) { .fav { opacity: 1; } }
.tile.read, .ess-item.read { opacity: .5; transition: opacity .2s; }
.tile.read:hover, .ess-item.read:hover { opacity: .85; }
.read-tag { color: #b3acb9; border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; font-size: 11px; letter-spacing: .5px; }
.muted { color: #9f97a8 !important; }

/* "N nuove storie" */
.newpill { position: fixed; top: calc(96px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 15; background: var(--purple); color: #100b19; border: 0; border-radius: 30px; padding: 10px 18px; font-weight: 700; font-size: 13px; box-shadow: 0 8px 30px #0008; animation: fade .3s ease; }
.newpill[hidden] { display: none; }
.tile .meta { margin-top: auto; }
.more { display: flex; justify-content: center; margin-top: 34px; }
.empty { color: var(--muted); padding: 40px 0; grid-column: 1 / -1; line-height: 1.7; }
.empty strong { display: block; font: 500 26px var(--serif); color: var(--text); margin-bottom: 6px; }

/* ---------- Settings ---------- */
.settings { max-width: 760px; }
.settings section { padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.settings h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 0 0 8px; }
.settings .sub { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
.weight { display: grid; grid-template-columns: 200px 1fr 50px; gap: 18px; align-items: center; padding: 6px 0; }
.weight output { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--purple) var(--p, 50%), var(--line) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 2px; background: var(--purple); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--text); margin-top: -8px; border: 0; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 18px; }
.stats div { background: var(--bg); padding: 16px; }
.stats b { display: block; font: 500 28px var(--serif); }
.stats span { font-size: 12.5px; color: var(--muted); }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 8px 0; }
.src-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.src-table td { padding: 8px 6px; border-top: 1px solid var(--line); color: var(--muted); }
.src-table td:first-child { color: var(--text); }
.ok { color: #8fd19e !important; } .ko { color: #e58c8c !important; }
.actionrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Article page (desktop) ---------- */
.m-only { display: none; }
.article { max-width: 1040px; margin: 0 auto; }
.a-head { max-width: 860px; margin: 0 auto; padding-top: 8px; }
.a-back { background: none; border: 0; color: #a9a3af; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; margin-bottom: 26px; font-size: 14px; }
.a-back:hover { color: #f5f0f9; }
.article h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.12; letter-spacing: -1px; margin: 16px 0 22px; text-wrap: balance; }
.a-sub { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.a-tools { display: flex; gap: 8px; }
.a-btn { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 22px; border: 1px solid var(--line); background: none; color: #d8d1de; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; transition: border-color .2s, color .2s; }
.a-btn:hover { border-color: #6a527e; color: #fff; }
.a-btn.on { color: var(--purple); border-color: #6a527e; }
.a-fig { margin: 34px 0 0; aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: linear-gradient(130deg, #34204e, #10121e); }
.a-fig img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85) saturate(.85); }
.a-body { max-width: 680px; margin: 0 auto; padding-top: 36px; }
.a-body .lead { font-family: var(--serif); font-size: 21px; line-height: 1.7; color: #e6e0ea; margin: 0 0 22px; }
.a-body .note { color: #9f97a8; font-size: 14px; line-height: 1.7; margin: 0 0 28px; padding-left: 14px; border-left: 2px solid #6a527e; }
.a-body .cta { margin: 0 0 8px; }
.a-label { margin-top: 36px; }
.sources a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #2c2532; font-size: 14px; }
.sources a:first-of-type { margin-top: 10px; }
.sources a span:first-child { font-weight: 600; flex: none; }
.sources a span:last-child { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sources a:hover span:last-child { color: var(--purple); }
.why { margin-top: 26px; }
.why summary { font-size: 13px; color: #9f97a8; }
.why ul { color: #b7b0bd; font-size: 14px; line-height: 1.7; padding-left: 18px; margin: 8px 0 0; }
.article.s-1 .lead { font-size: 18px; } .article.s-3 .lead { font-size: 25px; }
.article.s-1 .note { font-size: 13px; } .article.s-3 .note { font-size: 16px; }
.a-more { margin-top: 20px; }
.article.bump { animation: bump .3s ease; }
@keyframes bump { 30% { transform: translateX(-8px); } 60% { transform: translateX(6px); } }
.article.enter-right { animation: inR .32s cubic-bezier(.2, .7, .2, 1); }
.article.enter-left { animation: inL .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes inR { from { transform: translateX(8%); opacity: 0; } }
@keyframes inL { from { transform: translateX(-8%); opacity: 0; } }

/* ---------- Footer, mobile nav, toast ---------- */
.foot { border-top: 1px solid var(--line); color: #79727f; padding: 30px 0; font-size: 12px; margin-top: 65px; letter-spacing: .4px; }
.mobile-nav { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 16px); background: #1c1722; border: 1px solid #463a50; padding: 12px 18px; font-size: 14px; z-index: 40; opacity: 0; transition: .25s; pointer-events: none; display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--purple); font-weight: 700; }

@media (max-width: 800px) {
  body > header { height: calc(68px + var(--safe-t)); padding-left: calc(22px + var(--safe-l)); padding-right: calc(22px + var(--safe-r)); }
  .logo { font-size: 28px; }
  .nav, .tools .lbl { display: none; }
  .tools a { width: 38px; height: 38px; padding: 0 !important; justify-content: center; }
  .cats { top: calc(68px + var(--safe-t)); }
  .newpill { top: calc(80px + var(--safe-t)); }
  .lead-block { grid-template-columns: 1fr 1fr; gap: 16px; }
  .lead-block .big { grid-column: 1 / -1; grid-row: auto; }
  .lead-block .big h4 { font-size: 28px; }
  .lead-block .small h4 { font-size: 18px; }
  .ess-strip { margin: 22px 0 30px; }
  .ess-list { grid-template-columns: 1fr; }
  .ess-item + .ess-item { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .intro h1 { margin-bottom: 0; }
  .tools { gap: 8px; }
  .tools a, .tools button { font-size: 12px; padding: 8px 11px; }
  .shell { padding: 28px 22px calc(70px + var(--safe-b)); }
  .intro { display: block; }
  .feature { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
  .feature-image { min-height: 250px; grid-row: 1; margin: 0 -22px; }
  .feature h2 { font-size: 36px; margin: 14px 0; }
  .feature p { font-size: 14px; }
  .cta { margin-top: 18px; }
  .cats { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tile h4 { font-size: 21px; }
  .weight { grid-template-columns: 1fr 50px; gap: 0 12px; }
  .weight input { grid-column: 1 / -1; grid-row: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  /* ---------- Article page on iPhone: full-screen story ---------- */
  body.is-article > header, body.is-article .mobile-nav { display: none; }
  body.is-article .shell { padding: 0 0 calc(20px + var(--safe-b)); }
  body.is-article .foot { margin: 30px 22px 0; }
  .d-only { display: none !important; }
  .m-only { display: block; }
  .article { animation: rise .35s cubic-bezier(.2, .7, .2, 1); }
  @keyframes rise { from { transform: translateY(30px); opacity: 0; } }
  @keyframes inR { from { transform: translateX(28%); opacity: 0; } }
  @keyframes inL { from { transform: translateX(-28%); opacity: 0; } }
  .m-hero { position: relative; height: 78svh; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(130deg, #34204e, #10121e); overflow: hidden; }
  .m-img { position: absolute; inset: 0; }
  .m-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(.85); }
  .m-img .ph svg { width: 64px; height: 64px; }
  .m-img .ph-src { display: none; }
  .m-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, #09090ccc 0%, transparent 20%, transparent 30%, #09090c8c 48%, #09090ce6 70%, #09090c 100%); }
  .m-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 12; display: flex; justify-content: space-between; align-items: center; padding: calc(10px + var(--safe-t)) calc(14px + var(--safe-r)) 10px calc(14px + var(--safe-l)); pointer-events: none; }
  .m-bar > * { pointer-events: auto; }
  .m-tools { display: flex; gap: 8px; }
  .m-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #09090c99; color: #f4f0eb; display: grid; place-items: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .m-btn svg { width: 19px; height: 19px; }
  .m-btn.on { color: var(--purple); }
  .m-count { font-size: 12px; color: #d8d1de; background: #09090c99; padding: 5px 10px; border-radius: 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; }
  .m-copy { position: relative; z-index: 2; padding: 0 22px 22px; }
  .m-copy h1 { font-family: var(--serif); font-weight: 600; font-size: 31px; line-height: 1.15; letter-spacing: 0; margin: 10px 0 12px; color: #fff; text-wrap: balance; }
  .m-copy h1, .m-copy .eyebrow, .m-copy .meta { text-shadow: 0 1px 12px #000c; }
  .m-copy .meta { color: #cfc8d6; }
  .m-copy .meta b { color: #fff; }
  .m-copy .tag-en, .m-copy .read-tag { color: #e6e0ea; border-color: #ffffff4d; }
  .m-actions { display: flex; gap: 10px; margin-top: 16px; }
  .m-round { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 22px; border: 1px solid #f4f0eb40; background: #09090c66; color: #f4f0eb; font-size: 13px; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .m-round svg { width: 17px; height: 17px; }
  .m-round.on { border-color: var(--purple); color: var(--purple); }
  .a-body { padding: 22px 22px 0; }
  .a-body .lead { font-size: 19px; line-height: 1.65; }
  .article.s-1 .lead { font-size: 17px; } .article.s-3 .lead { font-size: 22px; }
  .a-body .cta { width: 100%; justify-content: center; }
  .a-more { padding: 0 22px; }
  .swipe-hint { text-align: center; color: #6f6877; font-size: 12px; margin: 26px 0 0; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; justify-content: space-around;
    background: #0d0b10ed; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    /* compact: ~40px of controls; the home-indicator area is shared instead of stacked on top */
    padding: 2px calc(5px + var(--safe-r)) max(4px, calc(var(--safe-b) - 16px)) calc(5px + var(--safe-l));
  }
  .mobile-nav a { color: #8f8898; font-size: 10.5px; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 72px; min-height: 40px; justify-content: center; }
  .mobile-nav a svg { width: 19px; height: 19px; }
  .mobile-nav a.active { color: #f5f0f9; }
  .mobile-nav a.active svg { color: var(--purple); }
  .toast { bottom: calc(60px + var(--safe-b)); }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .intro h1 { font-size: 43px; }
  .sectionhead h3 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; animation: none !important; } }

/* ---------- Home end, Esplora follow + time groups ---------- */
.end { text-align: center; max-width: 560px; margin: 70px auto 0; }
.end-mark { width: 9px; height: 9px; background: var(--purple); transform: rotate(45deg); margin: 0 auto 24px; }
.end h3 { font: 500 34px var(--serif); margin: 0 0 10px; }
.end p { color: var(--muted); line-height: 1.7; margin: 0 0 24px; }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 18px; }
.follow-label { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: #c9c0b6; margin-right: 4px; }
.topic { display: inline-flex; align-items: center; border: 1px solid #4b3d5c; border-radius: 40px; overflow: hidden; }
.topic button { background: none; border: 0; color: #f4f0eb; padding: 8px 6px 8px 14px; display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.topic button b { background: var(--purple); color: #100b19; border-radius: 20px; font-size: 11px; padding: 1px 7px; }
.topic .x { color: var(--muted); padding: 8px 12px 8px 4px; font-size: 16px; line-height: 1; }
.topic .x:hover { color: #fff; }
.follow-add { flex: 1; min-width: 200px; }
.follow-add input { width: 100%; background: none; border: 1px dashed #4b3d5c; border-radius: 40px; color: #f4f0eb; padding: 9px 16px; outline: none; font-size: 14px; }
.follow-add input:focus { border-style: solid; border-color: var(--purple); }
.tgroup { margin-top: 10px; }
.tgroup-h { font: 500 22px var(--serif); margin: 26px 0 16px; display: flex; align-items: baseline; gap: 10px; }
.tgroup-h small { font: 500 12px var(--sans); color: var(--muted); }
@media (max-width: 800px) {
  .end { margin-top: 50px; }
  .end h3 { font-size: 28px; }
  .follow-add { min-width: 100%; }
}
.eyebrow.cat.ess::before { border-radius: 0; width: 6px; height: 6px; background: var(--purple); transform: rotate(45deg); }

/* ---------- header clock ---------- */
.brand { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.clock { font-size: 12.5px; color: #b3acb9; letter-spacing: .3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clock::first-letter { text-transform: uppercase; }
.zoom-seg { position: static; padding-top: 0; }
@media (max-width: 800px) {
  .brand { gap: 10px; }
  .clock { font-size: 11.5px; }
}
@media (max-width: 340px) { .clock { display: none; } }

/* ---------- Esplora search + filters, interest levels, size ---------- */
.searchrow { align-items: stretch; }
.filters-btn { background: var(--panel-2); color: #d8d1de; border: 1px solid #342e3b; padding: 0 18px; min-height: 54px; }
.filters-btn.on, .filters-btn[aria-expanded="true"] { border-color: #8b61c9; color: #f5f0f9; }
.filterrow { display: flex; gap: 12px; flex-wrap: wrap; margin: -12px 0 22px; }
.filterrow[hidden] { display: none; }
.filterrow select { background: var(--panel-2); color: #d8d1de; border: 1px solid #342e3b; padding: 0 14px; min-height: 46px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.level-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid #1f1b24; }
.level-row:last-of-type { border-bottom: 0; }
.seg3 { display: inline-flex; border: 1px solid #342e3b; border-radius: 30px; padding: 3px; gap: 2px; flex: none; }
.seg3 button { background: none; border: 0; color: #a9a3af; padding: 7px 14px; border-radius: 30px; font-size: 13px; }
.seg3 button.active { background: #372448; color: #f5f0f9; }
.seg3.wide { flex-wrap: wrap; }
@media (max-width: 480px) {
  .level-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .searchrow .searchbar { min-width: 0; }
  .filters-btn { padding: 0 14px; }
}

/* ---------- Login ---------- */
body.is-login > header, body.is-login .mobile-nav { display: none; }
.login { min-height: 80vh; display: grid; place-items: center; padding: 20px 0; }
.login-card { width: min(420px, 100%); background: #121016; border: 1px solid var(--line); padding: 38px 32px; }
.login-card .logo { font-size: 34px; margin-bottom: 26px; }
.login-card h1 { font: 500 34px/1.1 var(--serif); margin: 0 0 8px; }
.login-sub { color: var(--muted); margin: 0 0 26px; line-height: 1.6; }
.login form { display: grid; gap: 16px; }
.login label { display: grid; gap: 7px; font-size: 13px; color: #c9c0b6; letter-spacing: .3px; }
.login input { background: var(--panel-2); border: 1px solid #4b3d5c; color: #fff; padding: 14px 16px; font-size: 16px; outline: none; border-radius: 0; }
.login input:focus { border-color: var(--purple); }
.login .cta { margin-top: 6px; justify-content: center; }
.login .cta:disabled { opacity: .6; cursor: wait; }
.login-msg { min-height: 20px; margin: 0; color: #f0a3a3; font-size: 13.5px; }
.login-note { color: #79727f; font-size: 12px; margin: 22px 0 0; }
@media (max-width: 480px) { .login-card { padding: 30px 22px; border-left: 0; border-right: 0; } }
