/* Calkoro, visual "calculadora de bolso": topo amarelo, contornos pretos e o resultado como um visor escuro
   com o valor principal em amarelo. Todas as cores ficam nas variáveis abaixo. Fontes hospedadas no próprio site. */
@font-face { font-family: 'Fira Sans'; font-weight: 400; font-display: swap; src: url('../fonts/fira-400.woff') format('woff'); }
@font-face { font-family: 'Fira Sans'; font-weight: 700; font-display: swap; src: url('../fonts/fira-700.woff') format('woff'); }
@font-face { font-family: 'Archivo Black'; font-weight: 400; font-display: swap; src: url('../fonts/archivo-black.woff') format('woff'); }
:root {
  --ink: #16181d;
  --muted: #565b66;
  --line: #16181d;
  --bg: #f1f2f4;
  --card: #ffffff;
  --brand: #16181d;
  --link: #1c3199;
  --hi: #ffd60a;
  --err: #b3261e;
  --lcd: #1d2126;
  --lcd-ink: #eef0f3;
  --lcd-muted: #aab0bc;
  --lcd-line: #3a4049;
  --radius: 10px;
  --titulo: 'Archivo Black', 'Arial Black', Impact, system-ui, sans-serif;
  font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* Topo */
.top { background: var(--hi); border-bottom: 2px solid var(--ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand, .brand:hover { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: var(--titulo); font-weight: 400; font-size: 1.3rem; letter-spacing: -0.02em; }
.logo-mark { width: 28px; height: 28px; color: var(--ink); }
.logo-mark path { stroke: var(--hi); }
.top-link { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 12px 0; }
.top-link:hover { color: var(--ink); text-decoration: underline; }
.top :focus-visible { outline-color: var(--ink); }

/* Navegação estrutural */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0 0; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* Títulos e texto */
h1, h2 { font-family: var(--titulo); font-weight: 400; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: clamp(1.8rem, 5.2vw, 2.7rem); line-height: 1.08; letter-spacing: -0.02em; margin: 16px 0 10px; }
h2 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.01em; margin: 2.4em 0 0.5em; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 1.7em 0 0.4em; }
.lead { font-size: 1.1rem; margin: 0 0 24px; max-width: 62ch; }
.meta { font-size: 0.85rem; color: var(--muted); margin: -12px 0 20px; }
.note { font-size: 0.9rem; color: var(--muted); }

/* Formulário */
.calc { background: var(--card); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); padding: 24px; margin-right: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 18px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.92rem; }
label small { font-weight: 400; color: var(--muted); }
label.full { grid-column: 1 / -1; }
.grid:has(label.op:not([hidden])) { grid-template-columns: repeat(auto-fit, 76px minmax(120px, 1fr)); }
label { min-width: 0; }
label > span { display: block; overflow-wrap: anywhere; }
.res td:first-child { overflow-wrap: anywhere; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; grid-column: 1 / -1; }
label.check input { flex: 0 0 22px; width: 22px; height: 22px; min-height: 0; margin-top: 1px; accent-color: var(--ink); }
input, select, .calc textarea, .embed textarea {
  font: inherit;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  padding: 11px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  min-height: 48px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--hi); outline-offset: 0; box-shadow: 0 0 0 5px var(--ink); }
button {
  margin-top: 20px;
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--card);
  cursor: pointer;
}
button:hover { color: var(--hi); }
button:active { transform: translateY(1px); }
.err { color: var(--err); font-weight: 700; margin: 12px 0 0; }
.private { font-size: 0.85rem; color: var(--muted); margin: 14px 2px 0; }

/* Resultado: visor da calculadora */
.res {
  --muted: var(--lcd-muted);
  --link: var(--hi);
  background: var(--lcd);
  color: var(--lcd-ink);
  border-radius: 16px;
  margin: 28px 0 30px;
  padding: 26px 24px 22px;
  scroll-margin-top: 16px;
}
.res :focus-visible { outline-color: var(--hi); }
.res a:hover { color: var(--lcd-ink); }
.res-hero { padding: 0 0 16px; margin-bottom: 6px; border-bottom: 2px solid var(--lcd-line); }
.res-hero span { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.res-hero strong { display: block; color: var(--hi); font-size: clamp(2.2rem, 9vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.res-hero small { display: block; color: var(--lcd-muted); margin-top: 6px; font-size: 0.92rem; }
.res h3 { margin-top: 1.2em; }
.res table { font-variant-numeric: tabular-nums; }
.res td, .res th { border-bottom: 1px solid var(--lcd-line); padding: 10px 0; }
.res td + td, .res th + th { padding-left: 14px; }
.res thead th { color: var(--lcd-muted); border-bottom: 1px solid var(--lcd-muted); }
.res tr:last-child td { border-bottom: 0; }
.res tr.total td { font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--hi); border-bottom: 0; }
.res-frase { font-size: 0.98rem; margin: 14px 0 0; }
.res input, .res select { border-color: var(--lcd-muted); }
.res .table-wrap { background: none; border: 1px solid var(--lcd-line); }
.prop { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px 12px; max-width: 320px; margin: 14px 0 0; text-align: center; font-variant-numeric: tabular-nums; }

/* Tabelas do conteúdo */
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
td, th { padding: 10px 12px; border-bottom: 1px solid var(--lcd-muted); text-align: left; vertical-align: top; }
thead th { font-size: 0.85rem; font-weight: 700; border-bottom: 2px solid var(--ink); }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-top: 2px solid var(--ink); }
.table-wrap { overflow-x: auto; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; margin: 14px 0; }
.table-wrap table { min-width: 460px; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Conteúdo */
article { margin-top: 10px; }
article p, article li { max-width: 68ch; }
article li { margin: 0.25em 0; }

/* Perguntas frequentes */
.faq details { border-bottom: 2px solid var(--ink); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; padding: 15px 0; }
.faq summary:hover { color: var(--link); }
.faq details div { padding: 0 0 16px; max-width: 68ch; }

/* Índice de calculadoras (home e relacionadas) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin: 10px 0 18px; }
.card { display: block; padding: 14px 16px; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; text-decoration: none; color: var(--ink); }
.card strong { display: block; font-size: 1.02rem; font-weight: 700; }
.card span { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.4; margin-top: 2px; }
a.card:hover { background: var(--hi); }
a.card:hover span { color: var(--ink); }
.related { margin-top: 2.4em; }

/* Páginas iniciais */
.country { margin-top: 1.6em; }
.country h2 a { color: var(--ink); text-decoration: none; }
.country h2 a:hover { text-decoration: underline; }
.cards.trust { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.trust .card { cursor: default; background: none; border-style: dashed; }

/* Anúncios */
.ad { margin: 22px 0; min-height: 100px; }

/* Rodapé */
.foot { margin-top: 64px; background: var(--ink); padding: 28px 0 36px; font-size: 0.88rem; color: var(--lcd-muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.foot a { color: var(--card); display: inline-block; padding: 4px 0; }
.foot a:hover { color: var(--hi); }
.foot :focus-visible { outline-color: var(--hi); }
.countries a { margin-right: 12px; }
.countries span { margin-right: 8px; }
.copy { margin: 12px 0 0; }

@media (max-width: 520px) {
  .calc { padding: 16px; box-shadow: 4px 4px 0 var(--ink); margin-right: 4px; }
  .res { padding: 20px 16px 16px; }
  .res .num { white-space: normal; }
  .wrap { padding: 0 14px; }
}

/* Grade semanal (Arbeitszeitrechner) */
.semana { display: grid; grid-template-columns: minmax(84px, auto) 1fr 1fr minmax(64px, 0.7fr); gap: 8px 10px; align-items: center; margin-bottom: 16px; }
.semana .cab { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.semana .dia { font-size: 0.92rem; }
.semana input { width: 100%; min-width: 0; }
.res-hero strong.cf { letter-spacing: 0.04em; word-break: break-all; }
button.link { background: none; border: 0; padding: 0; margin: 0; min-height: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; width: auto; }
button.link:hover { background: none; color: var(--ink); }
.res button.link:hover { color: var(--lcd-ink); }
.escala { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 16px 0 6px; }
.escala span { font-size: 0.72rem; line-height: 1.2; text-align: center; padding: 8px 4px; border-radius: 4px; background: var(--lcd-line); color: var(--lcd-ink); }
.escala span.on { background: var(--hi); color: var(--ink); font-weight: 700; }
@media (max-width: 520px) { .escala { grid-template-columns: repeat(3, 1fr); } }
.langs { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 22px 0 0; font-size: 0.88rem; }
.langs a { color: var(--muted); display: inline-block; padding: 4px 0; }
.embed { margin: 28px 0 8px; border: 2px solid var(--ink); border-radius: 12px; padding: 12px 16px; background: var(--card); }
.embed summary { cursor: pointer; font-weight: 700; }
.embed textarea { font: 0.8rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 8px 0; padding: 10px; resize: vertical; }
body.embedado { background: var(--bg); }
body.embedado main { max-width: 720px; margin: 0 auto; padding: 14px 20px 20px 14px; }
body.embedado h1 { font-size: 1.25rem; margin: 0 0 12px; }
.frac sup, .frac sub { font-size: 0.75em; }

/* Ferramentas: contador de texto, cronômetro, timer, dados */
.calc textarea { min-height: 180px; resize: vertical; font-variant-numeric: normal; }
.tempo { font-variant-numeric: tabular-nums; }
.res-hero strong.tempo { font-size: clamp(2.8rem, 13vw, 4.6rem); }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.acoes button { flex: 1 1 120px; width: auto; margin-top: 0; background: var(--hi); color: var(--ink); border-color: var(--hi); }
.acoes button:hover { color: var(--ink); background: var(--card); border-color: var(--card); }
.acoes button.sec { background: none; color: var(--lcd-ink); border-color: var(--lcd-muted); }
.acoes button.sec:hover { background: var(--lcd-line); color: var(--lcd-ink); border-color: var(--lcd-ink); }
.dados { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.dados span { min-width: 58px; padding: 12px 10px; border: 2px solid var(--hi); border-radius: var(--radius); font-size: 1.6rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }

/* Aviso de cookies: os dois botões com o mesmo peso (exigência na UE) */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; background: var(--lcd); color: var(--lcd-ink); border-radius: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); font-size: 0.92rem; }
.consent p { margin: 0; flex: 1 1 320px; }
.consent a { color: var(--hi); }
.consent :focus-visible { outline-color: var(--hi); }
.consent-btns { display: flex; gap: 10px; flex: 1 1 220px; }
.consent-btns button { margin: 0; flex: 1; min-height: 44px; padding: 10px 14px; background: var(--card); color: var(--ink); border-color: var(--card); font-size: 0.95rem; }
.consent-btns button:hover { background: var(--hi); border-color: var(--hi); color: var(--ink); }
.foot button.link { color: var(--card); font-size: inherit; padding: 4px 0; }
.foot button.link:hover { color: var(--hi); }

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