/* Agora Europa — estilos do site público (mobile first) */

:root {
  --ink: #1c1817;
  --ink-2: #4a4442;
  --muted: #77706d;
  --line: #e8e3e0;
  --soft: #f6f3f1;
  --bg: #ffffff;
  --accent: #c1482f;        /* vermelho do logótipo */
  --accent-dark: #9c3824;
  --navy: #13153e;          /* azul do site antigo */
  --radius: 10px;
  --wrap: 1180px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Source Serif Pro", Georgia, Cambria, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  text-rendering: optimizeLegibility;
  /* rodapé sempre no fundo: o conteúdo estica quando a página é curta */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; }

/* ---------------------------------------------------------------- cabeçalho */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 8px; height: 60px; }
.logo { display: flex; align-items: center; margin-right: auto; }
.logo img { width: 190px; }
.logo-text { font-weight: 300; letter-spacing: 0.22em; font-size: 18px; color: var(--ink); white-space: nowrap; }
.logo-text b { font-weight: 300; color: var(--accent); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-toggle { display: none; }

.header-search { display: flex; align-items: center; }
.header-search input {
  width: 0; padding: 0; border: 0; opacity: 0;
  font: inherit; background: var(--soft); border-radius: 999px; height: 38px;
  transition: width .2s, opacity .2s, padding .2s;
}
.header-search:focus-within input,
.header-search.open input { width: min(52vw, 260px); padding: 0 14px; opacity: 1; }

.main-nav { border-top: 1px solid var(--line); }
.main-nav ul {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a {
  display: block; padding: 11px 10px; white-space: nowrap;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- cartões */

.kicker {
  display: inline-block; margin-bottom: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.kicker:hover { color: var(--accent-dark); }
.meta, .byline { font-size: 13px; color: var(--muted); }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.card-media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--soft); aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.03); }
/* matéria sem imagem: logótipo discreto no lugar da foto */
.card-media-empty { display: flex; align-items: center; justify-content: center; }
.card-media-empty img { width: 62%; height: auto; object-fit: contain; opacity: .55; }
.card:hover .card-media-empty img { transform: none; opacity: .75; }
.card-title { font-size: 18px; font-weight: 700; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { margin: 6px 0 4px; color: var(--ink-2); font-size: 15px; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; }

.card-lead .card-title { font-size: clamp(24px, 6vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.card-lead .card-excerpt { font-size: 17px; }

.card-compact { flex-direction: row; gap: 12px; align-items: flex-start; }
.card-compact .card-media { flex: 0 0 104px; aspect-ratio: 4 / 3; border-radius: 8px; }
.card-compact .card-title { font-size: 15.5px; line-height: 1.3; }

.card-row { flex-direction: row-reverse; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.card-row:first-child { padding-top: 4px; }
.card-row .card-media { flex: 0 0 112px; aspect-ratio: 1 / 1; border-radius: 8px; }
.card-row .card-body { flex: 1; min-width: 0; }
.card-row .card-title { font-size: 17px; }
.card-row .card-excerpt { display: none; }

/* ---------------------------------------------------------------- página inicial */

.front-top { display: grid; gap: 22px; padding: 20px 0 8px; }
.front-secondary { display: grid; gap: 16px; }
.front-secondary .card + .card { padding-top: 16px; border-top: 1px solid var(--line); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 36px 0 14px; padding-top: 14px; border-top: 2px solid var(--ink);
}
.section-head h2 { font-size: 20px; font-weight: 800; }
.more { font-size: 14px; font-weight: 600; color: var(--accent); }
.more::after { content: " →"; }

.grid-3, .grid-4 { display: grid; gap: 22px; grid-template-columns: 1fr; }
.grid-4 .card-title, .grid-3 .card-title { font-size: 17px; }

.with-sidebar { display: grid; gap: 28px; }
.sidebar:empty { display: none; }

/* ---------------------------------------------------------------- listas */

.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(28px, 7vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.page-intro { color: var(--muted); margin: 8px 0 0; }
.search-big { display: flex; gap: 8px; margin-top: 16px; max-width: 620px; }
.search-big input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; font: inherit; font-size: 17px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--soft);
}
.search-big input:focus { outline: none; border-color: var(--ink); background: #fff; }
.search-big button, .share button {
  height: 48px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: #fff; font: inherit; font-weight: 600;
}
.search-big button:hover { background: var(--accent); }

/* pesquisa: ordenação, filtro por secção e palavras destacadas */
.search-tools { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.search-sort { display: inline-flex; align-self: flex-start; padding: 3px; border-radius: 999px; background: var(--soft); }
.search-sort a { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.search-sort a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.search-cats { margin: 0; }
.search-cats a span { font-weight: 500; color: var(--muted); margin-left: 2px; }
.search-cats a[aria-current] { background: var(--ink); color: #fff; }
.search-cats a[aria-current] span { color: #d8d3d0; }
.card mark { background: #fbe3dc; color: inherit; padding: 0 1px; border-radius: 2px; }
.card-title mark { background: none; color: var(--accent-dark); }
.search-results .card-row .card-excerpt { display: block; font-size: 14.5px; }
.search-results .card-row .card-media { align-self: flex-start; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 8px; }
.pager a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager-info { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- matéria */

.article { min-width: 0; }
.article-head { padding: 24px 0 18px; }
.article-head h1 { font-size: clamp(27px, 7vw, 44px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }
.standfirst { font-size: 19px; line-height: 1.45; color: var(--ink-2); margin: 14px 0 0; }
.byline { margin: 14px 0 0; }
.byline a { color: var(--ink); font-weight: 600; }
.article-hero { margin: 0 -16px 24px; }
.article-hero img { width: 100%; }
.article-hero figcaption, .prose figcaption { font-size: 13px; color: var(--muted); padding: 8px 16px 0; }

.prose { font-family: var(--serif); font-size: 18px; line-height: 1.7; color: #23201f; max-width: 700px; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.1em; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); font-weight: 800; margin-top: 1.8em; line-height: 1.25; }
.prose h2 { font-size: 24px; }
.prose h3, .prose h4 { font-size: 21px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 6px; }
.prose figcaption { padding: 8px 0 0; font-family: var(--sans); }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent);
  font-size: 21px; font-style: italic; color: var(--ink-2);
}
.prose iframe, .prose video { max-width: 100%; border: 0; }
.prose iframe[src*="youtube"], .prose iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.prose .wp-block-embed, .prose .wp-block-image { margin: 1.6em 0; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.share span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; }
.share a, .share button {
  height: 38px; display: inline-flex; align-items: center; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600;
}
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.chips a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--soft); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.chips a:hover { background: var(--ink); color: #fff; }
.chips .chip-tag { background: transparent; border: 1px solid var(--line); font-weight: 500; }

.related { margin-bottom: 20px; }

/* ---------------------------------------------------------------- anúncios */

/* faixa discreta com etiqueta; a altura fica reservada para a página não saltar ao carregar */
.ad {
  margin: 28px 0; padding: 10px 12px 14px; text-align: center;
  background: var(--soft); border-radius: var(--radius); overflow: hidden;
}
.ad-label { display: block; font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #aaa39f; margin-bottom: 10px; }
.ad ins { min-height: 100px; }
.prose .ad { font-family: var(--sans); margin: 2em 0; }
.ad-article ins { min-height: 250px; }
.ad-banner { margin: 16px 0 4px; }
.ad-bottom { margin: 32px 0 0; }
.ad-mid { margin: 28px 0 8px; }
.ad-row { margin: 0; border-radius: 0; background: none; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sidebar .ad { margin-top: 4px; }
/* sem anúncio para mostrar: o espaço desaparece em vez de ficar vazio */
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* ---------------------------------------------------------------- rodapé */

.site-footer { margin-top: 56px; background: var(--navy); color: #c9cbe0; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; padding: 40px 16px 28px; }
.site-footer h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 12px; }
.site-footer li + li { margin-top: 6px; }
.site-footer p { margin: 12px 0 0; max-width: 340px; }
.logo-footer .logo-text { color: #fff; font-size: 17px; }
.logo-footer .logo-text b { color: #e2775f; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px; font-size: 13px; color: #8f92b3; }


/* ---------------------------------------------------------------- início: destaques deslizantes */

.essential { padding-top: 18px; }
.essential-head { margin-bottom: 12px; }
.swipe-hint { font-size: 13px; color: var(--muted); }
.story-rail {
  display: flex; gap: 14px; margin: 0 -16px; padding: 0 16px 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  overscroll-behavior-x: contain; scrollbar-width: none; list-style: none;
}
.story-rail::-webkit-scrollbar { display: none; }
.story { flex: 0 0 86%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.story-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.story:hover .story-media img { transform: scale(1.03); }
.story-media.card-media-empty { display: flex; align-items: center; justify-content: center; }
.story-media.card-media-empty img { width: 62%; height: auto; object-fit: contain; opacity: .55; }
.story-count {
  position: absolute; left: 10px; top: 10px; padding: 2px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 600;
}
.story-body { display: flex; flex-direction: column; align-items: flex-start; }
.story-title { font-size: 21px; font-weight: 800; line-height: 1.22; letter-spacing: -0.015em; }
.story-title a:hover { color: var(--accent); }
.story-excerpt {
  margin: 8px 0 6px; font-size: 15px; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.story .meta { margin: 6px 0 0; }
.rail-dots { display: flex; justify-content: center; gap: 6px; padding: 14px 0 4px; }
.rail-dots span { width: 6px; height: 6px; border-radius: 3px; background: #d6cfcb; transition: width .2s ease, background .2s ease; }
.rail-dots span.on { width: 20px; background: var(--accent); }

/* mais lidas (estatísticas próprias) */
.most-read-list { display: grid; gap: 0; counter-reset: none; }
.most-read-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.most-read-list li:first-child { border-top: 0; padding-top: 2px; }
.most-read-num { flex: 0 0 26px; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--accent); }
.most-read-title { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.most-read .meta { display: block; margin-top: 4px; }

@media (min-width: 640px) {
  .story { flex-basis: 62%; }
  .most-read-list { grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .most-read-list li:nth-child(2) { border-top: 0; padding-top: 2px; }
}

@media (min-width: 960px) {
  .essential { padding-top: 28px; }
  .swipe-hint, .rail-dots, .story-count { display: none; }
  .story-rail {
    display: grid; grid-template-columns: 1.7fr 1fr; gap: 0 32px;
    margin: 0; padding: 0; overflow: visible;
  }
  .story-lead { grid-row: 1 / span 4; }
  .story-lead .story-title { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.02em; }
  .story-lead .story-excerpt { font-size: 17px; }
  .story:not(.story-lead) { flex-direction: row; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
  .story:nth-child(2) { border-top: 0; padding-top: 0; }
  .story:not(.story-lead) .story-media { flex: 0 0 120px; aspect-ratio: 4 / 3; border-radius: 8px; }
  .story:not(.story-lead) .story-title { font-size: 16px; line-height: 1.3; }
  .story:not(.story-lead) .story-excerpt, .story:not(.story-lead) .kicker { display: none; }
  .most-read-list { grid-template-columns: repeat(5, 1fr); column-gap: 24px; }
  .most-read-list li { border-top: 0; padding-top: 2px; flex-direction: column; gap: 6px; }
}

/* ---------------------------------------------------------------- ecrãs maiores */

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-row .card-media { flex-basis: 200px; aspect-ratio: 16 / 10; }
  .card-row .card-excerpt { display: block; }
  .card-row .card-title { font-size: 19px; }
  .prose { font-size: 19px; }
  .article-hero { margin: 0 0 28px; }
  .article-hero img { border-radius: var(--radius); }
  .article-hero figcaption { padding-left: 0; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer .wrap ul { columns: 2; }
  .site-footer nav[aria-label="Institucional"] ul { columns: 1; }
}

@media (min-width: 960px) {
  .header-row { height: 72px; }
  .logo img { width: 240px; }
  .header-search input { width: 240px; padding: 0 14px; opacity: 1; }
  .main-nav ul { mask-image: none; margin: 0; padding: 0; justify-content: center; }
  .main-nav a { padding: 12px 12px; }
  .front-top { grid-template-columns: 1.7fr 1fr; gap: 32px; padding-top: 28px; }
  .front-secondary { align-content: start; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .with-sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .sidebar .ad-sticky { position: sticky; top: 140px; margin-top: 4px; }
  .ad-banner { margin-top: 20px; }
  .ad-mid { margin-top: 36px; }
  .ad-bottom { margin-top: 40px; }
  .ad-banner ins { min-height: 90px; }
  .card-row { flex-direction: row-reverse; }
  .article-head { padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* sem anúncios configurados: a coluna lateral desaparece e a matéria fica centrada */
@media (min-width: 960px) {
  .with-sidebar:has(> .sidebar:empty) { grid-template-columns: minmax(0, 1fr); }
  .with-sidebar:has(> .sidebar:empty) > .article { max-width: 760px; margin: 0 auto; width: 100%; }
  .with-sidebar:has(> .sidebar:empty) > .list-rows { max-width: 860px; }
}

/* ---------------------------------------------------------------- calculadora de salários */
.calc { padding-bottom: 40px; }
.calc-head { padding: 22px 0 6px; max-width: 720px; }
.calc-head h1 { font-size: 28px; font-weight: 800; margin-top: 6px; }
.calc-lead { color: var(--ink-2); font-size: 17px; line-height: 1.5; margin: 10px 0 0; }
.calc-verified { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: #2f7a4b; }
.calc-countries { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 16px -16px 0; padding: 2px 16px 4px; }
.calc-countries::-webkit-scrollbar { display: none; }
.calc-countries a, .calc-countries .soon {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.calc-countries a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.calc-countries .soon { color: #aaa39f; font-weight: 600; }
.calc-countries .soon small { font-size: 11px; font-weight: 500; }

.calc-grid { display: grid; gap: 16px; margin-top: 18px; }
.calc-form, .calc-result { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.calc-form .field + .field { margin-top: 18px; }
.calc-form label, .calc-form .label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.calc-form select, .money-input input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #cfc8c4; border-radius: 8px; padding: 11px 12px;
}
.money-input { position: relative; }
.money-input input { font-size: 24px; font-weight: 800; padding-right: 40px; }
.money-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 700; color: var(--muted); }
.calc-form input:focus, .calc-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.seg { display: flex; gap: 6px; margin-top: 8px; }
.seg label { flex: 1; margin: 0; font-weight: 600; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.seg input { accent-color: var(--accent); margin: 0 4px 0 0; }
.seg small { font-weight: 400; color: var(--muted); }
.seg-stack { flex-direction: column; margin-top: 0; }
.calc-form .check { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.calc-form .check input { width: 18px; height: 18px; accent-color: var(--accent); }
#c-jovem-box { margin-top: 12px; }
.field-hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.field-hint a { color: var(--accent-dark); }

.calc-result { background: var(--soft); border-color: transparent; }
.calc-net-label { margin: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.calc-net { margin: 4px 0 0; }
.calc-net strong { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.calc-net span { color: var(--muted); font-weight: 600; }
.calc-brl { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.calc-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); margin: 16px 0 6px; }
.calc-bar span { transition: width .25s; }
.b-net, .dot-net { background: #2f7a4b; }
.b-irs, .dot-irs { background: var(--accent); }
.b-ss, .dot-ss { background: var(--navy); }
.calc-lines { margin: 0; }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.calc-lines dt { color: var(--ink-2); }
.calc-lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-lines .total { border-bottom: 0; font-size: 17px; }
.calc-lines .total dt { color: var(--ink); font-weight: 800; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.calc-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.calc-note:empty { display: none; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn-share {
  font: inherit; font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  background: #1f8f4e; color: #fff; border: 1px solid #1f8f4e; text-decoration: none;
}
.btn-share.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }

.calc-info { margin-top: 32px; }
.calc-info h2 { font-size: 24px; }
.calc-sources { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 700px; }
.calc-sources h2 { font-size: 18px; font-weight: 800; }
.calc-sources ul { padding-left: 1.2em; margin: 10px 0; }
.calc-sources li + li { margin-top: 6px; }
.calc-sources a { color: var(--accent-dark); }
.calc-sources .muted { font-size: 13px; color: var(--muted); line-height: 1.5; }

@media (min-width: 960px) {
  .calc-head h1 { font-size: 36px; }
  .calc-countries { margin: 18px 0 0; padding: 2px 0 4px; }
  .calc-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
  .calc-form { padding: 24px; }
  .calc-result { position: sticky; top: 140px; padding: 24px; }
}
.calc-peek {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 15px;
  padding: 13px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.calc-peek[hidden] { display: none; }
.calc-peek strong { font-size: 17px; }
@media (min-width: 960px) { .calc-peek { display: none !important; } }
.calc-result, .calc-info h3 { scroll-margin-top: 130px; }
