/* Acontece Bem, direction Vidro (João, 23 Oct 2026): the photo lights the page,
   frosted layers float over it, app-like on the phone. Pistachio is the accent. */
@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #EEF1F8;
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .86);
  --edge: rgba(255, 255, 255, .85);
  --ink: #0F1733;
  --muted: #444D6C;
  --line: rgba(15, 23, 51, .12);
  --amb: .38;
  --amb-light: 1.25;
  --shadow: 0 24px 60px -28px rgba(15, 23, 51, .45);
  --btn: #D3EE7C;
  --btn-ink: #0F1733;
  --focus: #0F1733;
  --news: #8DBA22; --money: #E0A21F; --space: #5B5BF0; --mind: #2A9AD3;
  --spirit: #9070EC; --food: #F0603B; --guides: #2D5BFF; --made: #13A07A;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090E20;
    --glass: rgba(24, 31, 58, .74);
    --glass-strong: rgba(15, 21, 44, .9);
    --edge: rgba(255, 255, 255, .13);
    --ink: #F3F5FC;
    --muted: #B3BAD8;
    --line: rgba(255, 255, 255, .12);
    --amb: .4;
    --amb-light: 1;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
    --focus: #D3EE7C;
    --news: #D3EE7C; --money: #FFD34E; --space: #9A9AFF; --mind: #8FD3FF;
    --spirit: #C9B6FF; --food: #FF8A65; --guides: #86A2FF; --made: #5EE0B5;
    color-scheme: dark;
  }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: "Bricolage", "Geist", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--bg);
  border-radius: 10px;
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--btn); color: var(--btn-ink); padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.skip:focus { top: 12px; }

/* the photo of the page, blurred into light */
.ambient { position: fixed; inset: -12%; z-index: -1; opacity: var(--amb); pointer-events: none; }
.ambient img { width: 100%; height: 100%; object-fit: cover; filter: blur(90px) saturate(1.8) brightness(var(--amb-light, 1)); }
.glass {
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
}

/* topic colours */
[data-cat="news"] { --c: var(--news); } [data-cat="money"] { --c: var(--money); }
[data-cat="space"] { --c: var(--space); } [data-cat="mind"] { --c: var(--mind); }
[data-cat="spirit"] { --c: var(--spirit); } [data-cat="food"] { --c: var(--food); }
[data-cat="guides"] { --c: var(--guides); } [data-cat="made"] { --c: var(--made); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--c, var(--news)); vertical-align: 1px; flex: none; }
.chip {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--glass-strong); color: var(--ink);
  font: 600 13px/1 "Geist", sans-serif; text-decoration: none; white-space: nowrap;
}
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--news)); }
a.chip { min-height: 44px; padding: 0 16px; font-size: 14px; border: 1px solid var(--edge); }
a.chip:hover { background: var(--glass); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink);
  font: 600 15.5px/1 "Geist", sans-serif; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.sec-title { font-size: 30px; margin: 0 0 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }

/* floating header */
.top { position: sticky; top: 12px; z-index: 20; max-width: 1240px; margin: 12px auto 0; padding: 0 28px; }
.has-cover .top { position: fixed; left: 0; right: 0; }
.bar { position: relative; display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 0 10px 0 24px; border-radius: 999px; overflow: hidden; }
.brand { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.wm { height: 26px; width: auto; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; }
.nav a:hover { background: var(--glass); }
.nav a[aria-current="page"] { background: var(--glass-strong); }
.progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--btn); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* home: stories */
.stories ul { position: relative; display: flex; gap: 18px; list-style: none; margin: 0; padding: 26px 0 8px; overflow-x: auto; scrollbar-width: none; }
.stories ul::-webkit-scrollbar { display: none; }
.stories a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 98px; text-decoration: none; font-size: 12.5px; font-weight: 500; color: var(--ink); }
.ring { display: block; padding: 3px; border-radius: 50%; background: conic-gradient(from 200deg, #D3EE7C, #8FD3FF, #C9B6FF, #FFD34E, #D3EE7C); transition: transform .25s ease; }
.ring img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.stories a:hover .ring { transform: scale(1.06); }
.st-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* home: lead story */
.hero { padding-top: 18px; }
.hero-card { position: relative; display: block; border-radius: 34px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); background: var(--glass); }
.hero-img { width: 100%; height: auto; aspect-ratio: 16 / 7.2; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.hero-card:hover .hero-img { transform: scale(1.03); }
.hero-glass { position: absolute; left: 22px; bottom: 22px; max-width: 620px; display: flex; flex-direction: column; gap: 12px; padding: 26px 28px; border-radius: 26px; background: var(--glass-strong); }
.hero-glass h2 { font-size: clamp(28px, 3vw, 42px); }
.hero-glass .dek { font-size: 17px; color: var(--muted); }

/* home: topics and guides */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding-top: 48px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: block; border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); background: var(--glass); }
.tile-img { width: 100%; height: auto; aspect-ratio: 1 / 1.08; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-img { transform: scale(1.06); }
.tile-glass { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 18px; background: var(--glass-strong); box-shadow: none; }
.tile-name { display: flex; align-items: center; font: 650 17px/1.2 "Bricolage", sans-serif; letter-spacing: -0.01em; }
.tile-sub { font-size: 13px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-title { font: 650 15.5px/1.25 "Bricolage", sans-serif; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-sec { display: flex; align-items: center; font-size: 12.5px; color: var(--muted); }
.panel { border-radius: 30px; padding: 26px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; min-height: 64px; padding: 12px 0; text-decoration: none; }
.rows img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.row-title { font: 650 15.5px/1.25 "Bricolage", sans-serif; }
.rows a:hover .row-title { text-decoration: underline; text-underline-offset: 3px; }
.fact { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding: 22px; border-radius: 22px; text-decoration: none; border: 1px solid var(--edge); background: linear-gradient(135deg, color-mix(in srgb, var(--space) 22%, transparent), color-mix(in srgb, var(--mind) 22%, transparent)); }
.fact-big { font: 800 60px/.9 "Bricolage", sans-serif; letter-spacing: -0.05em; }
.fact-txt { font: 650 18px/1.25 "Bricolage", sans-serif; }
.fact-link { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* newsletter */
.nl-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 28px; padding: 36px; }
.nl-panel h2 { font-size: clamp(24px, 2.4vw, 34px); max-width: 20ch; }
.nl-row { display: flex; gap: 8px; }
.nl input[type="email"] { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 16px; }
.nl input[type="email"]::placeholder { color: var(--muted); }
.nl button { height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font: 600 16px/1 "Geist", sans-serif; cursor: pointer; }
.nl-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.nl-consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.nl-consent a { color: var(--ink); }
.nl-msg { font-size: 14px; margin-top: 10px; font-weight: 600; }
.nl-msg:empty { display: none; }
.page-form { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* english guides */
.en-card { position: relative; display: block; margin-top: 28px; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); background: var(--glass); }
.en-img { width: 100%; height: auto; aspect-ratio: 16 / 6; object-fit: cover; }
.en-glass { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; max-width: 400px; padding: 28px; border-radius: 26px; background: var(--glass-strong); color: var(--ink); }
.en-glass h2 { font-size: 32px; }
.en-glass p { color: var(--muted); }
.en-glass .btn { align-self: flex-start; }

/* section and English home pages */
.page-head { margin-top: 28px; padding: 32px 36px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 8px; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 56px); }
.page-head .lede { margin-top: 12px; font-size: 18.5px; color: var(--muted); max-width: 52ch; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.grid .tile-img { aspect-ratio: 4 / 3.4; }
.grid .d-wide { grid-column: span 2; }
.grid .d-wide .tile-img { aspect-ratio: 2.4 / 1; }
.empty { margin-top: 24px; padding: 26px; border-radius: 26px; color: var(--muted); }

/* article */
.cover { position: relative; margin: 0; }
.cover-img { width: 100%; height: 76vh; min-height: 420px; max-height: 900px; object-fit: cover; }
.sheet { position: relative; max-width: 860px; margin: 28px auto 0; padding: 48px 80px 56px; border-radius: 36px; background: var(--glass-strong); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); border: 1px solid var(--edge); box-shadow: var(--shadow); }
.cover + .sheet { margin-top: -120px; }
.sheet h1 { font-size: clamp(32px, 3.6vw, 48px); }
.sheet .lede { margin-top: 16px; font-size: 19.5px; color: var(--muted); }
.post-meta { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.post-meta li { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--edge); }
.post-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.post-meta li:has(a) { padding: 0; }
.post-meta li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }
.post-by, .post-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.toc { margin-top: 24px; border-radius: 20px; box-shadow: none; }
.toc summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; padding: 0 18px; font-weight: 600; }
.toc ol { margin: 0; padding: 0 18px 16px 38px; font-size: 15px; }
.toc li { margin: 2px 0; }
.toc a { display: inline-block; padding: 10px 0; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose { margin-top: 30px; font-size: 18.5px; line-height: 1.72; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose h2 { font-size: 28px; margin: 1.7em 0 .5em; scroll-margin-top: 100px; }
.prose h3 { font-size: 21px; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--muted); }
.prose a, .sources a {
  text-decoration: underline; text-decoration-color: var(--c, var(--news));
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.prose a:hover, .sources a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--c, var(--news)); font: 500 21px/1.45 "Bricolage", sans-serif; }
.prose blockquote p { margin: 0; }
.tip { margin: 0 0 1.4em; padding: 20px 22px; border-radius: 22px; background: color-mix(in srgb, var(--c, var(--news)) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--news)) 30%, transparent); }
.tip p { margin: 0; }
.fig { margin: 1.6em 0; }
.fig img { width: 100%; height: auto; border-radius: 20px; background: #FFFFFF; }
.fig figcaption, .video figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.video { margin: 1.6em 0; }
.video video { display: block; width: 100%; max-width: 340px; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 22px; background: #000; }
.video-wide video { max-width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; }
.video figcaption { text-align: center; }
.video details { margin-top: 8px; font-size: 15px; }
.video summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.video details p { margin: .4em 0; color: var(--muted); }
.correction { margin-top: 28px; padding: 14px 18px; border-radius: 16px; background: var(--glass); font-size: 15px; }
.sources { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 19px; }
.sources ul { list-style: none; padding: 0; margin: 10px 0 14px; font-size: 15px; }
.sources li { margin: 6px 0; }
.sources li a { display: inline-flex; align-items: center; min-height: 44px; }
.sources p { font-size: 14px; color: var(--muted); }
.more { padding-top: 44px; }
.credits { list-style: none; padding: 0; margin: 28px 0 0; }
.credits li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.credits img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; }
.credits-line { font-weight: 600; font-size: 15px; }
.credits-use { margin-top: 4px; font-size: 14px; color: var(--muted); }
.credits a { text-underline-offset: 3px; }
.more .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* footer */
.foot { margin-top: 28px; padding-bottom: 32px; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: start; }
.foot .brand .wm { height: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; justify-content: flex-end; font-size: 15px; }
.foot-links a, .foot-base a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot-links a:hover, .foot-base a:hover { text-decoration: underline; }
.foot-base { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 4px; }
.tabbar { display: none; }

/* stories viewer */
.viewer { width: min(460px, 100vw); height: min(860px, 100dvh); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 32px; overflow: hidden; background: #000; color: #FFFFFF; }
.viewer::backdrop { background: rgba(6, 10, 24, .72); backdrop-filter: blur(18px); }
.viewer[open] { animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.v-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-bars { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 4px; z-index: 2; }
.v-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.v-bars i { display: block; height: 100%; background: #FFFFFF; transform-origin: 0 50%; transform: scaleX(0); }
.v-bars .done i { transform: scaleX(1); }
.v-bars .now i { animation: fill 7s linear forwards; }
.viewer.paused .v-bars .now i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.v-tools { position: absolute; top: 30px; right: 14px; z-index: 3; display: flex; gap: 8px; }
.v-close, .v-pause { min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--ink); font: 600 14px "Geist", sans-serif; cursor: pointer; }
.v-prev svg, .v-next svg { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; padding: 10px; border-radius: 50%; background: rgba(0, 0, 0, .45); fill: none; stroke: #FFFFFF; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.v-prev svg { left: 12px; } .v-next svg { right: 12px; }
.v-prev, .v-next { position: absolute; top: 80px; bottom: 40%; width: 40%; z-index: 1; border: 0; background: none; cursor: pointer; }
.v-prev { left: 0; } .v-next { right: 0; }
.v-card { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 24px; background: var(--glass-strong); color: var(--ink); }
.v-title { font-size: 26px; }
.v-dek { color: var(--muted); font-size: 15.5px; }
.v-card .btn { align-self: flex-start; }

@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; }
  .sheet { margin-left: 20px; margin-right: 20px; padding: 40px 40px 48px; }
  .cover + .sheet { margin-top: -80px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid .d-wide { grid-column: auto; }
  .grid .d-wide .tile-img { aspect-ratio: 4 / 3.4; }
  .grid .p-wide { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { padding-bottom: 104px; }
  .wrap, .top { padding: 0 12px; }
  .top { top: 8px; margin-top: 8px; }
  .bar { min-height: 56px; padding: 0 6px 0 18px; }
  .wm { height: 22px; }
  .nav { display: none; }
  .bar .btn { display: none; }
  .stories ul { padding: 18px 0 4px; gap: 12px; }
  .stories a { width: 84px; font-size: 11.5px; }
  .ring img { width: 66px; height: 66px; }
  .hero-card { border-radius: 28px; }
  .hero-img { aspect-ratio: 4 / 5.2; }
  .hero-glass { left: 10px; right: 10px; bottom: 10px; padding: 18px; border-radius: 22px; gap: 9px; }
  .hero-glass h2 { font-size: 25px; }
  .hero-glass .dek { display: none; }
  .split { padding-top: 32px; gap: 32px; }
  .sec-title { font-size: 25px; }
  .tiles, .more .tiles, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { border-radius: 22px; }
  .tile-glass { left: 6px; right: 6px; bottom: 6px; padding: 9px 10px; border-radius: 15px; }
  .tile-name { font-size: 15px; }
  .tile-sub { display: none; }
  .tile-title { font-size: 13.5px; }
  .panel { padding: 18px; border-radius: 24px; }
  .nl-panel { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .nl-row { flex-direction: column; }
  .nl input[type="email"] { flex: none; }
  .nl button { width: 100%; }
  .en-img { aspect-ratio: 4 / 5; }
  .en-glass { left: 10px; right: 10px; top: auto; bottom: 10px; transform: none; padding: 20px; }
  .en-glass h2 { font-size: 26px; }
  .page-head { margin-top: 18px; padding: 22px 20px; }
  .page-head .lede { font-size: 17px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-radius: 26px; padding: 6px; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: 20px; font-size: 11.5px; font-weight: 600; text-decoration: none; color: var(--muted); }
  .tabbar a[aria-current="page"] { background: var(--glass-strong); color: var(--ink); }
  .tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .cover-img { height: 62vh; min-height: 360px; }
  .sheet { margin: 18px 0 0; padding: 28px 18px 36px; border-radius: 28px; }
  .cover + .sheet { margin-top: -44px; }
  .sheet h1 { font-size: 30px; }
  .sheet .lede { font-size: 17.5px; }
  .prose { font-size: 17.5px; }
  .viewer { border-radius: 0; height: 100dvh; width: 100vw; }
  .v-prev svg, .v-next svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.sec-title a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.sec-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ph { display: block; background: linear-gradient(135deg, var(--c, var(--news)), color-mix(in srgb, var(--c, var(--news)) 35%, var(--bg))); }
.ring .ph { width: 78px; height: 78px; border-radius: 50%; }
.rows .ph { width: 64px; height: 64px; border-radius: 16px; }
.tile-img.ph { aspect-ratio: 1 / 1.08; }
@media (max-width: 720px) { .ring .ph { width: 66px; height: 66px; } }

/* drawings sit whole in the phone column and stay a readable size on desktop */
.fig-draw { max-width: 460px; margin-left: auto; margin-right: auto; }
.fig-draw picture { display: block; }
.fig-draw img { background: none; }
.fig-photo img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 20px; }
picture { display: contents; }
.fig-draw picture { display: block; }

/* credits: a small «Créditos» arrow on each photo opens author, licence and source */
.ph-wrap { position: relative; }
.credit-toggle { position: absolute; right: 8px; bottom: 8px; z-index: 3; font-size: 12.5px; }
.cover .credit-toggle { right: 18px; bottom: 132px; }
.credit-toggle summary { list-style: none; display: flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; cursor: pointer; }
.credit-toggle summary::-webkit-details-marker { display: none; }
.credit-toggle summary span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: rgba(0, 0, 0, .52); color: #FFFFFF; font: 600 12px/1 "Geist", sans-serif; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.credit-toggle summary span::after { content: ""; width: 5px; height: 5px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; }
.credit-toggle[open] summary span::after { transform: rotate(45deg); }
.credit-toggle summary:focus-visible { outline-color: #FFFFFF; box-shadow: none; }
.credit-toggle p { position: absolute; right: 0; bottom: 100%; width: max-content; max-width: min(320px, 78vw); margin: 0 0 4px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .78); color: #FFFFFF; line-height: 1.55; text-align: left; }
.credit-toggle a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 2px; }
.photo-credits { margin-top: 22px; }
.photo-credits h2 { font-size: 17px; }
.photo-credits ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.photo-credits li { margin: 4px 0; line-height: 1.6; }
.photo-credits a { color: var(--muted); }
@media (max-width: 720px) { .cover .credit-toggle { right: 10px; bottom: 50px; } }
.fig-tall .ph-wrap { width: fit-content; max-width: 100%; margin: 0 auto; }
.fig-tall img { width: auto; max-width: 100%; height: auto; max-height: 560px; object-fit: contain; }

/* generated: a tile's photo grows into its article cover (cross-document view transitions) */
[data-vt="consumir-ate-ou-consumir-de-preferencia"] { view-transition-name: vt-consumir-ate-ou-consumir-de-preferencia; }
[data-vt="fruta-e-legumes-da-epoca-em-portugal"] { view-transition-name: vt-fruta-e-legumes-da-epoca-em-portugal; }
[data-vt="roda-dos-alimentos"] { view-transition-name: vt-roda-dos-alimentos; }
[data-vt="certificados-de-aforro-como-funcionam"] { view-transition-name: vt-certificados-de-aforro-como-funcionam; }
[data-vt="declaracao-de-irs-o-essencial"] { view-transition-name: vt-declaracao-de-irs-o-essencial; }
[data-vt="poupar-no-supermercado-o-que-funciona"] { view-transition-name: vt-poupar-no-supermercado-o-que-funciona; }
[data-vt="caibalion-principios-hermeticos"] { view-transition-name: vt-caibalion-principios-hermeticos; }
[data-vt="chakras-o-que-sao"] { view-transition-name: vt-chakras-o-que-sao; }
[data-vt="cristais-significado"] { view-transition-name: vt-cristais-significado; }
[data-vt="frequencia-vibracional"] { view-transition-name: vt-frequencia-vibracional; }
[data-vt="abrir-atividade-nas-financas-recibos-verdes-2026"] { view-transition-name: vt-abrir-atividade-nas-financas-recibos-verdes-2026; }
[data-vt="nif-o-que-e-e-como-pedir-2026"] { view-transition-name: vt-nif-o-que-e-e-como-pedir-2026; }
[data-vt="niss-o-que-e-e-como-pedir-2026"] { view-transition-name: vt-niss-o-que-e-e-como-pedir-2026; }
[data-vt="como-dormir-melhor"] { view-transition-name: vt-como-dormir-melhor; }
[data-vt="como-meditar-para-acalmar-a-mente"] { view-transition-name: vt-como-meditar-para-acalmar-a-mente; }
[data-vt="quantos-passos-por-dia"] { view-transition-name: vt-quantos-passos-por-dia; }
[data-vt="geminidas-2026-quando-e-como-ver-em-portugal"] { view-transition-name: vt-geminidas-2026-quando-e-como-ver-em-portugal; }
[data-vt="leis-da-fisica-que-regem-o-universo"] { view-transition-name: vt-leis-da-fisica-que-regem-o-universo; }
[data-vt="o-que-e-a-entropia"] { view-transition-name: vt-o-que-e-a-entropia; }
[data-vt="porque-e-que-o-ceu-e-azul"] { view-transition-name: vt-porque-e-que-o-ceu-e-azul; }
[data-vt="how-to-get-a-nif-in-portugal-2026"] { view-transition-name: vt-how-to-get-a-nif-in-portugal-2026; }
[data-vt="how-to-get-a-niss-in-portugal-2026"] { view-transition-name: vt-how-to-get-a-niss-in-portugal-2026; }
[data-vt="how-to-open-activity-self-employed-portugal-2026"] { view-transition-name: vt-how-to-open-activity-self-employed-portugal-2026; }
[data-vt="portugal-tax-return-irs-expats"] { view-transition-name: vt-portugal-tax-return-irs-expats; }
