/* =====================================================================
   IODATA — site público
   Convertido do projeto Claude Design "IODATA website design"
   para CSS estático. As páginas são geradas por tools/build.py.
   ===================================================================== */

/* ---------------- sistema de design (tokens) ----------------
   Cores, tipos de letra, raios, sombras e movimento. Use sempre estas variáveis
   em vez de valores soltos, para o site manter a mesma linguagem visual. */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/site/fonts/manrope-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/site/fonts/instrument-serif-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/site/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}
:root {
  --c-brand: #0B3D6F;
  --c-brand-dark: #072A4E;
  --c-brand-mid: #3C6FA6;
  --c-brand-light: #8FB3DB;
  --c-brand-soft: #E8F0FA;
  --c-ink: #14212E;
  --c-text: #3E4C5C;
  --c-muted: #4B5A6B;
  --c-line: #DCE3EC;
  --c-line-strong: #C5D3E3;
  --c-bg: #F5F7FA;
  --c-white: #FFFFFF;
  --c-on-dark: #DCE7F3;
  --c-on-dark-muted: #C9D9EC;
  --c-success: #0E7A5A;
  --c-success-soft: #E6F5EF;
  --c-danger: #B3261E;
  --c-accent: #56B4FF;          /* azul de destaque (botões principais do cabeçalho e da página inicial) */
  --c-accent-2: #2F96F0;
  --c-on-accent: #072A4E;       /* texto sobre o azul de destaque */

  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 8px 20px -12px rgba(11,61,111,.25);
  --shadow-md: 0 24px 44px -24px rgba(11,61,111,.35);
  --shadow-lg: 0 30px 60px -30px rgba(11,61,111,.45);

  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: .25s;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: var(--c-brand); }
a:hover { color: var(--c-brand-dark); }
:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 3px; border-radius: 4px; }
.foot :focus-visible, .card.dark :focus-visible { outline-color: var(--c-white); }
section[id] { scroll-margin-top: 96px; }

@keyframes rise  { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(14,122,90,.45); } 70% { box-shadow: 0 0 0 10px rgba(14,122,90,0); } }
@keyframes drift { 0% { transform: translate(0,0); } 50% { transform: translate(-2%,3%); } 100% { transform: translate(0,0); } }
@keyframes bandzoom { from { transform: scale(1.16); } to { transform: scale(1); } }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: -9999px; top: 16px; z-index: 100;
  background: var(--c-brand); color: var(--c-white); padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 16px; color: var(--c-white); }

/* ---------------- tipografia partilhada ---------------- */
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-brand); }
.h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.h2-sm { margin: 0 0 40px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

.head { max-width: 680px; margin-bottom: 48px; }
.hint { font-size: 13px; color: var(--c-muted); margin: 0; }

/* ---------------- navegação ---------------- */
.nav-wrap { height: 0; position: sticky; top: 0; z-index: 50; }
.nav-head { padding: 12px 16px 0; pointer-events: none; }
.nav {
  pointer-events: auto; max-width: 1200px; margin: 0 auto;
  padding: 8px 10px 8px 20px; min-height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(11,61,111,.10);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 2px rgba(7,42,78,.06), 0 12px 32px -12px rgba(7,42,78,.18);
}
.nav-logo { display: flex; align-items: center; min-height: 44px; flex: none; }
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-wide { display: flex; align-items: center; gap: 4px; justify-content: center; }
.nav-drop { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 14px; min-height: 44px;
  font: inherit; font-weight: 600; font-size: 15px; color: #47596F;
  background: transparent; border: 0; border-radius: 999px;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s;
}
.nav-link:hover, .nav-btn[aria-expanded="true"], .nav-link[aria-current="page"] { background: #EAF0F8; color: var(--c-ink); }
.chev { display: inline-block; font-size: 11px; transition: transform .2s; }
.nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 14px); left: 0; min-width: 340px; z-index: 60;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(11,61,111,.35);
  padding: 8px; display: grid; gap: 2px;
}
.menu-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 14px; min-height: 44px; border-radius: 10px;
  text-decoration: none; color: var(--c-ink);
}
.menu-item:hover, .menu-item[aria-current="page"] { background: var(--c-bg); color: var(--c-ink); }
.menu-item b { display: block; font-weight: 700; font-size: 15px; }
.menu-item small { display: block; font-size: 13px; color: var(--c-muted); margin-top: 2px; }
.badge-sm {
  flex: none; width: 32px; height: 32px; border-radius: 8px;
  background: var(--c-brand-soft); color: var(--c-brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px;
}

.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-accent); color: var(--c-on-accent); padding: 12px 18px; min-height: 44px;
  border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s;
  box-shadow: 0 10px 24px -10px rgba(47,150,240,.8);
}
.nav-phone:hover { color: var(--c-on-accent); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(47,150,240,.9); }
.ph-short { display: none; }
.burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--c-brand); cursor: pointer;
}
.burger:hover, .burger[aria-expanded="true"] { background: var(--c-brand-soft); }

.menu-mobile {
  pointer-events: auto; max-width: 1200px; margin: 10px auto 0;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: 24px;
  box-shadow: 0 24px 48px -20px rgba(11,61,111,.35);
  padding: 12px; display: grid; gap: 4px;
  max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow: auto; overscroll-behavior: contain;
}
.burger .ic-close, .burger[aria-expanded="true"] .ic-open { display: none; }
.burger[aria-expanded="true"] .ic-close { display: block; }
html.menu-open { overflow: hidden; }
html.menu-open .action-bar { display: none; }
.mm-label { margin: 6px 14px 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.mm-item {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 14px; min-height: 48px; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-decoration: none; color: var(--c-ink);
}
.mm-item:hover { background: var(--c-bg); color: var(--c-ink); }
.mm-item.accent { color: var(--c-brand); gap: 10px; }
.mm-sep { height: 1px; background: var(--c-line); margin: 8px 14px; }

@media (max-width: 1079px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-wide { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 1080px) { .menu-mobile { display: none !important; } }
@media (max-width: 559px) { .ph-full { display: none; } .ph-short { display: inline; } }

/* ---------------- botões ---------------- */

.btn-sm {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; min-height: 44px; border-radius: 999px;
  background: var(--c-brand); color: var(--c-white); border: 2px solid var(--c-brand);
  font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-sm:hover { background: var(--c-brand-dark); border-color: var(--c-brand-dark); color: var(--c-white); }
.btn-sm.line { background: transparent; color: var(--c-brand); border-color: var(--c-line-strong); }
.btn-sm.line:hover { border-color: var(--c-brand); background: var(--c-white); color: var(--c-brand); }
.btn-sm[disabled] { opacity: .6; cursor: progress; }
.card.dark .btn-sm { background: var(--c-white); border-color: var(--c-white); color: var(--c-brand); }
.card.dark .btn-sm.ghost-w { background: transparent; border-color: rgba(255,255,255,.5); color: var(--c-white); }
.card.dark .btn-sm.ghost-w:hover { border-color: var(--c-white); background: rgba(255,255,255,.08); }

/* ---------------- títulos das páginas de artigos (api/blog/page.php) ---------------- */
.hero-eyebrow { margin: 0 0 20px; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-brand); animation: rise .7s ease both; }
.hero-lede { margin: 0 0 36px; max-width: 560px; font-size: 19px; line-height: 1.55; color: var(--c-text); text-wrap: pretty; animation: rise .8s .2s ease both; }

/* ---------------- área de cliente e painel: peças comuns ---------------- */
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--c-success); animation: pulse 2.2s ease-out infinite; flex: none; }

.spec { margin: 0; display: grid; gap: 14px; font-size: 15px; }
.spec > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.spec > div:last-child { padding-bottom: 0; border-bottom: 0; }
.spec dt { color: var(--c-muted); }
.spec dd { margin: 0; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.auth-visual picture { display: contents; }

/* barras horizontais (estatísticas do painel; site.js anima .bar-t) */
.bars { display: grid; gap: 22px; }
.bar-t { height: 40px; background: var(--c-bg); border-radius: 10px; position: relative; overflow: hidden; }
.bar-f { position: absolute; top: 0; bottom: 0; border-radius: 10px; transform-origin: left; transition: transform 1s var(--ease); }

/* ---------------- perguntas frequentes (base; aspeto final em home.css) ---------------- */
.faq-list { display: grid; gap: 10px; align-content: start; }
.faq-item { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; }
.faq-item h3 { margin: 0; }
.faq-btn {
  width: 100%; min-height: 56px; padding: 20px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 700; color: var(--c-ink);
}
.faq-btn:hover { background: var(--c-bg); }
.faq-ic {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-brand-soft); color: var(--c-brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; transition: transform .3s;
}
.faq-btn[aria-expanded="true"] .faq-ic { transform: rotate(45deg); }
.faq-panel { padding: 0 22px 22px; font-size: 16px; line-height: 1.6; color: var(--c-text); }

/* passos numerados (área de cliente: "Como tratamos o ticket") */
.start-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.start-steps li { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; line-height: 1.5; color: var(--c-text); }
.start-steps .n { flex: none; min-width: 36px; font-family: var(--f-serif); font-size: 28px; line-height: 1; color: var(--c-brand); }

/* ---------------- área de cliente ---------------- */
.cli { padding-top: 124px; padding-bottom: 96px; }
.cli-loading { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40vh; margin: 0; font-weight: 700; color: var(--c-muted); }

.auth {
  max-width: 1040px; margin: 0 auto; overflow: hidden;
  display: grid; grid-template-columns: 1fr;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(11,61,111,.3);
  animation: rise .7s ease both;
}
@media (min-width: 880px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth-visual { position: relative; min-height: 240px; background: var(--c-brand); color: var(--c-white); display: flex; align-items: flex-end; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,42,78,.05) 20%, rgba(7,42,78,.9) 100%); }
.auth-visual .cap { position: relative; z-index: 1; padding: 32px; }
.auth-visual .eyebrow { color: var(--c-on-dark-muted); }
.auth-visual h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.auth-visual .cap > p:last-child { margin: 0; font-size: 16px; line-height: 1.5; color: var(--c-on-dark); }
.auth-panel { padding: clamp(24px, 4vw, 44px); }
.auth-panel h2 { margin: 0 0 24px; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--c-brand-soft); padding: 4px; border-radius: 999px; margin-bottom: 24px; }
.seg button { min-height: 44px; padding: 12px; border: 0; border-radius: 999px; background: transparent; color: var(--c-muted); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--c-white); color: var(--c-brand); box-shadow: 0 2px 8px rgba(11,61,111,.12); }

.form { display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field input {
  min-height: 48px; padding: 12px 14px; border: 1px solid var(--c-line-strong); border-radius: 10px;
  background: var(--c-bg); color: var(--c-ink); font: inherit; font-size: 16px; width: 100%;
}
.field textarea, .field select {
  min-height: 48px; padding: 12px 14px; border: 1px solid var(--c-line-strong); border-radius: 10px;
  background: var(--c-bg); color: var(--c-ink); font: inherit; font-size: 16px; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-brand); background: var(--c-white); }
.err { margin: 0; min-height: 20px; font-size: 14px; font-weight: 700; color: var(--c-danger); }
.err.ok-msg { color: var(--c-success); }
.btn-submit {
  min-height: 52px; padding: 16px; border: 0; border-radius: 999px;
  background: var(--c-brand); color: var(--c-white); font: inherit; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: background .2s;
}
.btn-submit:hover { background: var(--c-brand-dark); }
.btn-submit[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small-c { margin: 0; text-align: center; font-size: 14px; color: var(--c-muted); }

.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; animation: rise .6s ease both; }
.dash-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.dash-id .eyebrow { margin-bottom: 8px; }
.dash-head h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; overflow-wrap: anywhere; }
.dash-head h2:focus { outline: none; }
.avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: var(--c-brand-soft); color: var(--c-brand);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px;
}
.avatar.lg { width: 88px; height: 88px; font-size: 28px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-bottom: 28px; padding: 4px; background: var(--c-brand-soft); border-radius: 24px; }
.tabs button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--c-muted); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--c-white); color: var(--c-brand); box-shadow: 0 2px 8px rgba(11,61,111,.12); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; align-items: start; }
.card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 20px; padding: 28px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.card.dark { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-white); }
.card-l { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.card.dark .card-l { color: var(--c-on-dark-muted); }
.card h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c-text); }
.card.dark p { color: var(--c-on-dark); }
.photo-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.visually-hidden:focus-visible + label { outline: 3px solid var(--c-brand); outline-offset: 3px; }

.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px; }
.dl-t { font-weight: 800; font-size: 17px; }
.dl-d { margin-top: 2px; font-size: 14px; color: var(--c-muted); }
.dl-foot { margin-top: 14px; }

.empty { background: var(--c-white); border: 1px dashed var(--c-line-strong); border-radius: 20px; padding: 48px 24px; text-align: center; }
.empty p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c-muted); }
.empty p:first-child { margin-bottom: 6px; font-size: 20px; font-weight: 800; color: var(--c-ink); }
.empty .retry { margin-top: 18px; }

/* ---------------- rodapé ---------------- */
.foot { background: var(--c-brand-dark); color: #9DB4CE; border-top: 1px solid rgba(255,255,255,.08); }
.foot-in {
  padding-top: 28px; padding-bottom: 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 14px;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.foot-links { display: flex; gap: 6px; flex-wrap: wrap; }
.foot-links a { color: var(--c-white); text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--c-white); text-decoration: underline; }

/* ---------------- revelação ao scroll ---------------- */
.rv { transition: opacity .7s ease, transform .7s var(--ease) !important; }
.rv-hidden { opacity: 0; transform: translateY(24px); }

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

/* ---------------- WhatsApp no menu ---------------- */
.nav-phone .wa-ic { flex: none; }

/* ---------------- nota dos formulários ---------------- */
.form-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.form-note a { font-weight: 700; }

/* ---------------- mapa das zonas ---------------- */
.zmap { position: relative; }
.zmap-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(11,61,111,.16)); }
.zm-land { fill: #E8EDF3; stroke: #98B7D6; stroke-width: 1; }
.zm-pt { fill: var(--c-white); }
.zm-water { fill: #9EC2E6; }
.zm-river { fill: none; stroke: #5B93CF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.zm-trib { fill: none; stroke: #9EC2E6; stroke-width: 1.1; opacity: .8; }
.zm-road-c { fill: none; stroke: #C2CCD8; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.zm-road { fill: none; stroke: var(--c-white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zm-ring { fill: none; stroke: var(--c-brand); stroke-opacity: .25; stroke-width: 1.2; stroke-dasharray: 4 6; }
.zm-country { font-size: 15px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; fill: #7D93AB; text-anchor: middle; }
.zm-sea { font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; fill: #5F82A8; text-anchor: middle; }
.zm-rivername { font-size: 12px; font-style: italic; font-weight: 600; fill: var(--c-brand-mid); }
.zm-route { fill: none; stroke: var(--c-brand); stroke-opacity: .35; stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; }
.zm-route.is-on { stroke-opacity: .85; stroke-width: 2.4; stroke-dasharray: 6 6; animation: zm-dash 1.2s linear infinite; }
@keyframes zm-dash { to { stroke-dashoffset: -24; } }
.zm-dot { fill: var(--c-white); stroke: var(--c-brand); stroke-width: 3; transition: fill .2s; }
.zm-pt-link.is-hq .zm-dot, .zm-pt-link.is-on .zm-dot { fill: var(--c-brand); stroke: var(--c-white); }
.zm-pulse { fill: var(--c-brand); transform-box: fill-box; transform-origin: center; animation: zm-pulse 2.4s ease-out infinite; }
@keyframes zm-pulse { from { transform: scale(1); opacity: .45; } to { transform: scale(3.4); opacity: 0; } }
.zm-pill rect { fill: var(--c-white); transition: fill .2s; }
.zm-pill text { font-size: 15px; }
.zm-n { font-weight: 800; fill: var(--c-ink); }
.zm-t { font-weight: 600; font-size: 13px; fill: var(--c-muted); }
.zm-pill.is-on rect { fill: var(--c-brand); }
.zm-pill.is-on .zm-n { fill: var(--c-white); }
.zm-pill.is-on .zm-t { fill: var(--c-on-dark-muted); }
.zm-scale path { fill: none; stroke: var(--c-muted); stroke-width: 1.5; }
.zm-scale text { font-size: 11px; font-weight: 700; fill: var(--c-muted); text-anchor: middle; }
.zm-attr { font-size: 10px; fill: #6B7C8F; text-anchor: end; }
.zm-frame { fill: none; stroke: var(--c-line); stroke-width: 1; }
@media (prefers-reduced-motion: reduce) { .zm-pulse, .zm-route.is-on { animation: none; } }

/* ---------------- zonas: página inicial ---------------- */

.zone-times { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.zt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; border-radius: 16px; background: var(--c-bg); border: 1px solid #E3E9F0;
}
.zt.is-hq { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-white); }
.zt-place { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.zt-name { font-size: 18px; font-weight: 800; white-space: nowrap; }
.zt-country { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.zt.is-hq .zt-country { color: var(--c-on-dark-muted); }
.zt-time { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.zt-time b { font-size: 18px; font-weight: 800; color: var(--c-brand); }
.zt-time small { font-size: 14px; color: var(--c-muted); }
.zt.is-hq .zt-time b { color: var(--c-white); font-size: 15px; }
.zt.is-hq .zt-time small { color: var(--c-on-dark-muted); }

/* ---------------- fotografias: tratamento de cor comum ---------------- */
.auth-visual img {
  filter: saturate(.9) contrast(1.03) brightness(1.01);
}

/* ---------------- barra de ação (telemóvel) ---------------- */
.action-bar { display: none; }
@media (max-width: 759px) {
  .action-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--c-line); border-radius: var(--r-pill); box-shadow: var(--shadow-md);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 8px;
    border-radius: var(--r-pill); font-size: 14px; font-weight: 700; color: var(--c-brand); text-decoration: none;
    white-space: nowrap;
  }
  .action-bar a:first-child { background: var(--c-brand); color: var(--c-white); }
  .action-bar a:active { transform: scale(.97); }
  .foot { padding-bottom: 96px; }
}
@media (max-width: 380px) { .action-bar a span { font-size: 13px; } .action-bar a svg { display: none; } }
@media (max-width: 759px) {
  .nav-right .nav-phone { display: none; }

}

.foot-brand span { font-size: 14px; line-height: 1.5; }

/* ---------------- ajustes de telemóvel ---------------- */
.zm-m { display: none; font-size: 30px; font-weight: 800; fill: var(--c-ink); paint-order: stroke; stroke: #fff; stroke-width: 7px; stroke-linejoin: round; }
@media (max-width: 640px) {
  .zm-pill { display: none; }
  .zm-m { display: inline; }
  .zm-dot { stroke-width: 4; }
  .zm-scale text, .zm-attr { font-size: 18px; }
  .zm-country { font-size: 22px; }
  .zm-sea, .zm-rivername { font-size: 18px; }
}

/* área de cliente: estados de carregamento/erro com largura de leitura e afastados do menu */
.cli > .empty, .cli-loading { max-width: 640px; margin-left: auto; margin-right: auto; }
.cli > .empty { margin-top: 24px; }

.link-btn { justify-self: start; background: none; border: 0; padding: 8px 0; min-height: 44px; font: inherit; font-size: 14px; font-weight: 700; color: var(--c-brand); text-decoration: underline; cursor: pointer; }
.link-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------- área de cliente: contas e tickets ---------------- */
[hidden] { display: none !important; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: var(--c-brand-soft); color: var(--c-brand); font-size: 15px; font-weight: 700; line-height: 1.4; }
.notice svg { flex: none; margin-top: 1px; }
.auth-lead { margin: -8px 0 22px; font-size: 16px; line-height: 1.55; color: var(--c-text); }
.field-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.opt { font-weight: 500; color: var(--c-muted); }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.label-row .link-btn { min-height: 0; padding: 0; }
.link-btn.inline { display: inline; min-height: 0; padding: 0 4px; }
.link-btn.center { justify-self: center; }
.btn-sm[aria-disabled="true"] { opacity: .55; }

.banner { display: flex; gap: 14px; align-items: flex-start; margin: -8px 0 28px; padding: 18px 20px; border-radius: 16px; background: #FFF6E5; border: 1px solid #F2D8A7; color: #6B4A0E; }
.banner svg { flex: none; color: #B7791F; margin-top: 1px; }
.banner strong { display: block; margin-bottom: 2px; font-size: 16px; color: #4A3309; }
.banner span { font-size: 15px; line-height: 1.5; }
.banner a { font-weight: 700; color: inherit; }

.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: var(--c-danger); color: var(--c-white); font-size: 12px; font-weight: 800; line-height: 1; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat-row > div { display: grid; gap: 2px; }
.stat-n { font-size: 34px; font-weight: 800; line-height: 1; color: var(--c-ink); letter-spacing: -.02em; }
.stat-l { font-size: 13px; color: var(--c-muted); font-weight: 600; }

.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.seg-sm { display: inline-grid; grid-auto-flow: column; grid-template-columns: none; margin: 0; }
.seg-sm button { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--c-white); color: var(--c-brand); box-shadow: 0 2px 8px rgba(11,61,111,.12); }

.tk-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.tk-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px; color: inherit; text-decoration: none; transition: border-color var(--dur), box-shadow var(--dur); }
.tk-row:hover { border-color: var(--c-brand-light); box-shadow: var(--shadow-sm); }
.tk-row.is-waiting { border-left: 4px solid #D69E2E; }
.tk-main { display: grid; gap: 2px; min-width: 0; }
.tk-num { font-size: 13px; font-weight: 700; color: var(--c-muted); }
.tk-subj { font-size: 17px; font-weight: 800; color: var(--c-ink); overflow-wrap: anywhere; }
.tk-sub { font-size: 14px; color: var(--c-muted); }
.tk-side { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
@media (max-width: 559px) { .tk-row { flex-direction: column; align-items: flex-start; padding: 16px 18px; } .tk-side { justify-content: flex-start; } }

.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; background: var(--c-brand-soft); color: var(--c-brand); }
.st-open { background: var(--c-brand-soft); color: var(--c-brand); }
.st-in_progress { background: #E9E4FB; color: #4B3A9A; }
.st-waiting_customer, .st-wait, .st-pending { background: #FFF1D6; color: #7A5205; }
.st-resolved, .st-ok { background: var(--c-success-soft); color: var(--c-success); }
.st-closed { background: #ECEFF3; color: #4B5A6B; }
.st-suspended, .pr-urgent { background: #FDE7E5; color: var(--c-danger); }
.st-admin { background: var(--c-brand); color: var(--c-white); }
.pr-low { background: #ECEFF3; color: #4B5A6B; }
.pr-normal { background: var(--c-brand-soft); color: var(--c-brand); }

.cards-main { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .cards-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }

.back-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 8px; font-weight: 700; text-decoration: none; }
.tk-detail { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 24px; }
.tk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.tk-head .eyebrow { margin-bottom: 6px; font-size: 13px; }
.tk-head h3 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tk-head h3:focus { outline: none; }
.tk-meta { margin: 6px 0 0; font-size: 14px; color: var(--c-muted); overflow-wrap: anywhere; }
.tk-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.msg { max-width: min(680px, 92%); padding: 14px 18px; border-radius: 16px; background: var(--c-bg); border: 1px solid var(--c-line); }
.msg.from-me { justify-self: end; background: var(--c-brand-soft); border-color: #CFE0F3; border-bottom-right-radius: 4px; }
.msg.from-staff { justify-self: start; border-bottom-left-radius: 4px; background: var(--c-white); box-shadow: var(--shadow-sm); }
.msg.from-customer { justify-self: start; background: var(--c-bg); border-bottom-left-radius: 4px; }
.adm .msg.from-staff { justify-self: end; background: var(--c-brand-soft); border-color: #CFE0F3; box-shadow: none; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.msg.is-internal { justify-self: end; background: #FFF8E8; border: 1px dashed #E3B964; }
.msg-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.msg-author { font-weight: 800; color: var(--c-ink); }
.msg-time { color: var(--c-muted); margin-left: auto; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; color: var(--c-text); }
.reply { padding-top: 20px; border-top: 1px solid var(--c-line); }
.reply.is-internal textarea { background: #FFF8E8; border-color: #E3B964; }
.actions.spread { justify-content: space-between; }
.tk-closed { margin: 0; padding: 14px 18px; border-radius: 12px; background: #ECEFF3; color: var(--c-muted); font-weight: 600; }

/* ---------------- painel de gestão ---------------- */
.adm-title { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; overflow-wrap: anywhere; }
.adm-title:focus { outline: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { display: grid; gap: 6px; padding: 20px 22px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 18px; text-decoration: none; color: inherit; transition: border-color var(--dur), box-shadow var(--dur); }
.kpi:hover { border-color: var(--c-brand-light); box-shadow: var(--shadow-sm); }
.kpi-n { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--c-ink); }
.kpi-l { font-size: 14px; font-weight: 700; color: var(--c-muted); }
.kpi.warn .kpi-n { color: #B7791F; }
.kpi.danger .kpi-n { color: var(--c-danger); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mini-list li + li { border-top: 1px solid var(--c-line); }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; color: inherit; text-decoration: none; }
.mini-row:hover b { color: var(--c-brand); text-decoration: underline; }
.mini-main { display: grid; gap: 2px; min-width: 0; }
.mini-main b { font-size: 15px; color: var(--c-ink); overflow-wrap: anywhere; }
.mini-main span { font-size: 13px; color: var(--c-muted); overflow-wrap: anywhere; }
.mini-side { flex: none; font-size: 13px; color: var(--c-muted); }
.mini-empty { padding: 12px 4px; font-size: 14px; color: var(--c-muted); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .field { min-width: 0; }
.toolbar .field.grow { flex: 1 1 260px; }
.toolbar .field select { min-width: 190px; }
.filter-note { margin: 0 0 12px; font-size: 15px; }
.table-wrap { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 18px; overflow: hidden; }
.dtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.dtable th { text-align: left; padding: 12px 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); background: var(--c-bg); border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.dtable td { padding: 14px 16px; border-bottom: 1px solid var(--c-line); vertical-align: middle; overflow-wrap: anywhere; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable a { font-weight: 800; color: var(--c-ink); text-decoration: none; }
.dtable a:hover { color: var(--c-brand); text-decoration: underline; }
.dtable .clickable { cursor: pointer; }
.dtable .clickable:hover td { background: #F8FAFD; }
.dtable .needs-reply td:first-child { box-shadow: inset 4px 0 0 #D69E2E; }
.cell-main .badge { margin-left: 8px; }
.cell-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--c-muted); font-weight: 500; }
.empty-row td { text-align: center; padding: 36px 16px; color: var(--c-muted); }
.btn-sm.xs { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.pager { margin-top: 12px; }
@media (max-width: 759px) {
  .table-wrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; }
  .dtable thead { display: none; }
  .dtable tr { margin-bottom: 10px; padding: 14px 16px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px; }
  .dtable td { padding: 4px 0; border: 0; }
  .dtable td[data-label]:not(:empty)::before { content: attr(data-label) " · "; font-size: 13px; color: var(--c-muted); font-weight: 600; }
  .dtable td.cell-main { padding-bottom: 8px; font-size: 16px; }
  .dtable .clickable:hover td { background: transparent; }
  .dtable .needs-reply { border-left: 4px solid #D69E2E; }
  .dtable .needs-reply td:first-child { box-shadow: none; }
  .toolbar .field, .toolbar .field select { width: 100%; }
}

.drawer { width: min(760px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--c-bg); color: var(--c-ink); box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; }
.drawer.narrow { width: min(560px, 100vw); }
.drawer.wide { width: min(880px, 100vw); }
.drawer[open] { animation: drawer-in .28s var(--ease) both; }
.drawer::backdrop { background: rgba(7,42,78,.45); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px clamp(18px, 3vw, 32px); background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.drawer-head .eyebrow { margin-bottom: 6px; font-size: 12px; overflow-wrap: anywhere; }
.drawer-head h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; font-weight: 800; overflow-wrap: anywhere; }
.drawer-head .tk-meta a { font-weight: 800; }
.drawer-body { display: grid; gap: 18px; padding: 22px clamp(18px, 3vw, 32px) 40px; }
.drawer-h { margin: 12px 0 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.drawer .form { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px; padding: 20px; }
.drawer form.drawer-body { border: 0; border-radius: 0; background: transparent; padding: 22px clamp(18px, 3vw, 32px) 40px; }
.drawer .mini-list { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px; padding: 4px 14px; }
.icon-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--c-line-strong); border-radius: 50%; background: var(--c-white); color: var(--c-ink); font-size: 18px; cursor: pointer; }
.icon-btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
.action-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.action-grid .hint { flex-basis: 100%; }
.btn-sm.line.warn { color: #8A5A00; border-color: #E3B964; }
.btn-sm.line.danger { color: var(--c-danger); border-color: #EBB0AB; }
.btn-sm.line.danger:hover { background: #FDE7E5; border-color: var(--c-danger); color: var(--c-danger); }
.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.log-list li { display: grid; gap: 2px; overflow-wrap: anywhere; }
.log-when { font-size: 12px; color: var(--c-muted); font-weight: 700; }
.reply-opts { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.check { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--c-brand); flex: none; }
.field.inline { display: flex; align-items: center; gap: 10px; }
.field.inline label { white-space: nowrap; }
.field.inline select { width: auto; }
.drawer .thread { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px; padding: 16px; }
.tel-link { font-weight: 800; }
html:has(dialog[open]) { overflow: hidden; }

/* alvos de navegação por # ficam abaixo do menu fixo */
#dash-title, .tk-head h3, #n-subject, #auth-title, .adm-title { scroll-margin-top: 120px; }

/* descarga ainda não disponível: botão visível, inativo */
[data-download].is-soon { opacity: .6; cursor: not-allowed; pointer-events: none; box-shadow: none; }
[data-download].is-soon svg { display: none; }

/* ---------------- artigos (páginas públicas) ---------------- */
.blog { padding-top: 150px; padding-bottom: 96px; }
.blog-head { max-width: 760px; margin-bottom: 32px; }
.blog-head h1 { margin: 0 0 18px; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
.blog-head .hero-lede { margin-bottom: 0; }
.post-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.post-filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--c-line-strong); background: var(--c-white); color: var(--c-text); font-weight: 700; font-size: 15px; text-decoration: none; }
.post-filters a:hover { border-color: var(--c-brand); color: var(--c-brand); }
.post-filters a[aria-current="page"] { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-white); }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 20px; color: inherit; text-decoration: none; transition: box-shadow var(--dur), transform var(--dur), border-color var(--dur); }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--c-brand-light); }
.post-img { display: block; aspect-ratio: 16 / 9; background: var(--c-brand-soft); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-img.is-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-mid) 100%); }
.post-img.is-empty span { font-family: var(--f-serif); font-style: italic; font-size: 72px; color: rgba(255,255,255,.85); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.post-meta { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-brand); }
.post-title { font-size: 21px; line-height: 1.25; font-weight: 800; color: var(--c-ink); text-wrap: balance; }
.post-excerpt { font-size: 15px; line-height: 1.55; color: var(--c-text); }
.post-more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--c-brand); }
.post-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; font-weight: 700; }
.post-pager span { color: var(--c-muted); font-weight: 600; }

.post { padding-bottom: 96px; }
.post-head { max-width: 860px; padding-top: 150px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 14px; font-weight: 600; }
.crumbs a { color: var(--c-muted); }
.crumbs span { color: var(--c-line-strong); }
.post-head h1 { margin: 12px 0 18px; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
.post-lead { margin: 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--c-text); text-wrap: pretty; }
.post-cover { margin: 36px auto 0; max-width: 1100px; }
.post-cover img { display: block; width: 100%; max-height: 560px; object-fit: cover; border-radius: 24px; }
.post-layout { display: grid; gap: 40px; margin-top: 44px; }
@media (min-width: 1080px) { .post-layout { grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; } }
.post-side { display: grid; gap: 18px; align-content: start; }
@media (min-width: 1080px) { .post-side { position: sticky; top: 120px; } }
.post-cta { padding: 26px; border-radius: 20px; background: var(--c-brand); color: var(--c-white); display: grid; gap: 12px; }
.post-cta p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c-on-dark); }
.post-cta .post-cta-t { font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--c-white); }
.post-cta .btn-sm { justify-self: start; background: var(--c-white); border-color: var(--c-white); color: var(--c-brand); }
.post-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-share p { margin: 0 6px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.post-share a { display: inline-flex; min-height: 40px; align-items: center; padding: 6px 14px; border: 1px solid var(--c-line-strong); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; background: var(--c-white); }
.post-related { margin-top: 72px; }
.post .back-link { margin-top: 28px; }

/* corpo dos artigos (também usado na pré-visualização do painel) */
.article-body { font-size: 18px; line-height: 1.7; color: var(--c-text); min-width: 0; overflow-wrap: anywhere; }
.article-body > * + * { margin-top: 1.1em; }
.article-body p { margin: 0; }
.article-body p + p { margin-top: 1em; }
.article-body h2 { margin: 1.9em 0 .5em; font-size: clamp(26px, 3vw, 32px); line-height: 1.2; letter-spacing: -.015em; font-weight: 800; color: var(--c-ink); }
.article-body h3 { margin: 1.6em 0 .4em; font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--c-ink); }
.article-body h4 { margin: 1.4em 0 .3em; font-size: 18px; font-weight: 800; color: var(--c-ink); }
.article-body > :first-child { margin-top: 0; }
.article-body a { color: var(--c-brand); font-weight: 600; }
.article-body strong, .article-body b { color: var(--c-ink); }
.article-body ul, .article-body ol { margin: 0; padding-left: 1.3em; display: grid; gap: .45em; }
.article-body li::marker { color: var(--c-brand); font-weight: 700; }
.article-body .lead { font-size: 21px; line-height: 1.6; color: var(--c-ink); }
.article-body blockquote { margin: 1.6em 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--c-brand); }
.article-body blockquote p { font-family: var(--f-serif); font-style: italic; font-size: 26px; line-height: 1.35; color: var(--c-ink); }
.article-body cite { display: block; margin-top: 10px; font-style: normal; font-size: 15px; font-weight: 700; color: var(--c-muted); }
.article-body figure { margin: 1.8em 0; }
.article-body figure img, .article-body > img, .article-body p img { display: block; max-width: 100%; height: auto; border-radius: 16px; }
.article-body figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--c-muted); text-align: center; }
.article-body hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.2em 0; }
.article-body code, .article-body kbd { padding: 2px 6px; border-radius: 6px; background: var(--c-brand-soft); font-size: .88em; }
.article-body pre { padding: 18px 20px; border-radius: 14px; background: var(--c-ink); color: #E6EDF5; overflow-x: auto; font-size: 15px; line-height: 1.55; }
.article-body pre code { padding: 0; background: none; color: inherit; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.article-body th, .article-body td { padding: 12px 14px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.article-body th { background: var(--c-brand-soft); color: var(--c-ink); font-weight: 800; }
.article-body .destaque, .article-body .aviso { padding: 20px 22px; border-radius: 16px; background: var(--c-brand-soft); border-left: 4px solid var(--c-brand); }
.article-body .aviso { background: #FFF6E5; border-left-color: #D69E2E; }
.article-body .cta { padding: 26px 28px; border-radius: 20px; background: var(--c-brand); color: var(--c-on-dark); }
.article-body .cta strong { color: var(--c-white); }
.article-body .cta a { color: var(--c-white); }
.article-body .btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--c-brand); color: var(--c-white); font-weight: 700; text-decoration: none; }
.article-body .cta .btn { background: var(--c-white); color: var(--c-brand); }
.article-body .grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.article-body .numeros { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.article-body .numero { padding: 18px; border-radius: 16px; background: var(--c-white); border: 1px solid var(--c-line); font-size: 15px; }
.article-body .numero strong { display: block; font-size: 34px; line-height: 1.1; color: var(--c-brand); }

/* ---------------- painel: estatísticas ---------------- */
.kpi-d { font-size: 13px; font-weight: 700; color: var(--c-muted); }
.kpi-d.up { color: var(--c-success); }
.kpi-d.down { color: var(--c-danger); }
.chart-card { margin-bottom: 20px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-legend { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--c-muted); font-weight: 600; }
.chart-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.lg-visitors { background: var(--c-brand-mid); }
.lg-contacts { background: #D69E2E; border-radius: 50% !important; }
.chart svg { display: block; width: 100%; height: 240px; }
.chart .grid { stroke: var(--c-line); stroke-width: 1; }
.chart .b-visitors { fill: var(--c-brand-mid); }
.chart .b-visitors:hover { fill: var(--c-brand); }
.chart .b-contacts { fill: #D69E2E; stroke: var(--c-white); stroke-width: 2; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-muted); margin-top: 6px; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bar-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 4px; }
.bar-label { color: var(--c-ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.bar-value { font-weight: 800; color: var(--c-ink); flex: none; }
.bar-track { display: block; height: 8px; border-radius: 999px; background: var(--c-brand-soft); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--c-brand-mid); }

/* ---------------- painel: editor de artigos ---------------- */
.drawer.editor { width: 100vw; max-width: 100vw; }
.editor-head { align-items: center; flex-wrap: wrap; }
.editor-head .actions { justify-content: flex-end; }
.editor-switch { display: none; gap: 4px; margin: 14px clamp(18px, 3vw, 32px) 0; padding: 4px; background: var(--c-brand-soft); border-radius: 999px; }
.editor-switch button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 700; color: var(--c-muted); cursor: pointer; }
.editor-switch button[aria-pressed="true"] { background: var(--c-white); color: var(--c-brand); box-shadow: 0 2px 8px rgba(11,61,111,.12); }
.editor-msg { margin: 12px clamp(18px, 3vw, 32px) 0; min-height: 0; }
.editor-grid { display: grid; gap: 24px; padding: 18px clamp(18px, 3vw, 32px) 40px; }
@media (min-width: 1100px) {
  .editor-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .editor-preview { position: sticky; top: 104px; max-height: calc(100dvh - 128px); overflow-y: auto; }
}
@media (max-width: 1099px) {
  .editor-switch { display: flex; }
  .editor-grid[data-view="edit"] .editor-preview, .editor-grid[data-view="preview"] .editor-form { display: none; }
}
.drawer .editor-form { padding: 22px; }
.field-row.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.field .label { font-weight: 700; font-size: 14px; }
.slug-row { display: flex; align-items: stretch; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--c-bg); overflow: hidden; }
.slug-row span { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--c-muted); font-size: 15px; white-space: nowrap; }
.slug-row input { border: 0 !important; border-radius: 0 !important; padding-left: 2px !important; background: transparent !important; min-width: 0; }
.cover-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.cover-thumb { display: grid; place-items: center; width: 120px; height: 68px; border-radius: 10px; overflow: hidden; background: var(--c-brand-soft); color: var(--c-muted); font-size: 12px; font-weight: 700; }
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--c-line-strong); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--c-white); }
.md-toolbar button { min-height: 36px; min-width: 36px; padding: 4px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--c-ink); cursor: pointer; }
.md-toolbar button:hover { background: var(--c-brand-soft); border-color: var(--c-line); }
.md-sep { flex: 1; }
.field textarea.code-area { min-height: 420px; border-radius: 0 0 10px 10px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 14px; line-height: 1.6; tab-size: 2; white-space: pre-wrap; }
.field textarea.code-area.is-drop { border-color: var(--c-brand); background: var(--c-brand-soft); }
.serp { display: grid; gap: 2px; padding: 16px 18px; margin-bottom: 16px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px; font-family: Arial, sans-serif; }
.serp-l { margin-bottom: 6px; font-family: var(--f-sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.serp-url { font-size: 13px; color: #4D5156; overflow-wrap: anywhere; }
.serp-title { font-size: 20px; line-height: 1.3; color: #1A0DAB; overflow-wrap: anywhere; }
.serp-desc { font-size: 14px; line-height: 1.5; color: #4D5156; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preview-page { padding: clamp(20px, 3vw, 36px); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 20px; }
.preview-title { margin: 10px 0 14px; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; color: var(--c-ink); }
.preview-page .post-lead { margin-bottom: 8px; font-size: 18px; }
.preview-page .post-cover { margin: 22px 0; }
.preview-page .post-cover img { max-height: 320px; border-radius: 16px; }
.preview-page .article-body { margin-top: 24px; font-size: 17px; }
.article-body th, .article-body td { overflow-wrap: normal; word-break: normal; min-width: 7em; }

/* ---------------- rapidez de navegação ----------------
   Entradas curtas só na primeira página da visita; depois o conteúdo aparece logo
   (html.seen é posto por site/lang.js antes de a página ser desenhada). */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-eyebrow, .hero-lede, .auth, .dash-head {
  animation-duration: .32s !important; animation-delay: 0s !important;
}
html.seen .hero-eyebrow, html.seen .hero-lede, html.seen .auth, html.seen .dash-head { animation: none !important; }
.rv { transition: opacity .4s ease, transform .4s var(--ease) !important; }
.rv-hidden { transform: translateY(12px); }

/* transição suave e curta entre páginas (Chrome, Edge, Safari recentes) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .15s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------------- cabeçalho: idioma (globo) e conta (fotografia) ---------------- */
.nav-pop { position: relative; }
.icon-round {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: transparent; color: var(--c-brand); cursor: pointer; transition: background .2s;
}
.icon-round:hover, .icon-round[aria-expanded="true"] { background: var(--c-brand-soft); }
.nav-lang { margin-right: 4px; }
.pop-menu {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 70; min-width: 210px;
  display: grid; gap: 2px; padding: 6px;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(11,61,111,.35);
}
.pop-menu a, .pop-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px;
  border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--c-ink); text-decoration: none; text-align: left; cursor: pointer;
}
.pop-menu a:hover, .pop-menu button:hover { background: var(--c-bg); color: var(--c-ink); }
.pop-menu a[aria-current="page"] { color: var(--c-brand); font-weight: 800; }
.pop-menu a[aria-current="page"]::after { content: "✓"; margin-left: auto; }
.lang-code { display: inline-grid; place-items: center; min-width: 30px; height: 22px; border-radius: 6px; background: var(--c-brand-soft); color: var(--c-brand); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.pop-head { margin: 0 0 4px; padding: 8px 12px 10px; border-bottom: 1px solid var(--c-line); font-size: 13px; color: var(--c-muted); overflow-wrap: anywhere; }
.pop-head b { display: block; font-size: 15px; color: var(--c-ink); }
.pop-menu [data-nav-logout] { color: var(--c-danger); }
.nav-user { display: none; margin-left: 6px; }
html.has-user .nav-user { display: block; }
html.has-user [data-guest-only] { display: none !important; }
.nav-avatar { display: grid; place-items: center; padding: 2px; border: 0; border-radius: 50%; background: var(--c-white); box-shadow: 0 0 0 2px var(--c-brand-soft); cursor: pointer; transition: box-shadow .2s; }
.nav-avatar:hover, .nav-avatar[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--c-brand); }
.avatar.sm { width: 38px; height: 38px; font-size: 13px; }
@media (max-width: 1079px) { .nav-right > .nav-lang { display: block; } }

/* cabeçalho: logótipo à esquerda; menu encostado à direita, junto do idioma, contacto e conta */
@media (min-width: 1080px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 8px; }
  .nav-wide { justify-content: flex-end; }
  .nav-right { padding-left: 10px; margin-left: 4px; border-left: 1px solid var(--c-line); }
}
/* ecrãs médios: menus um pouco mais compactos e só "WhatsApp" no botão, para tudo caber */
@media (min-width: 1080px) and (max-width: 1279px) {
  .nav-wide { gap: 0; }
  .nav-link { padding: 12px 10px; font-size: 14px; }
  .ph-full { display: none; }
  .ph-short { display: inline; }
}
