/* JAV Assessoria · Kinbox: CSS compartilhado do calendário, dos boletins e do manual dos atendentes.
   Tema claro único, identidade High Level. Cada página marca o <body> com uma classe (p-boletim, p-manual, p-calendario) e as
   poucas regras que diferem entre elas ficam sob essa classe. O resto é comum. Fonte: docs/boletins/_base/assets/jav.css. */
:root {
  --bg: #FFFFFF; --soft: #FAF6F0; --ink: #1E1E1E; --muted: #5F5A52; --faint: #A39C91; --line: #E8E1D7;
  --accent: #E8573F; --accent-ink: #B63A26; --metric: #8A6508;
  --ok: #2F7A4B; --ok-soft: #E6F2EA; --wait: #8A5A00; --wait-soft: #FBF0D5; --jav: #2F5F7E; --jav-soft: #E7F0F6; --ext: #4F4A42; --ext-soft: #EEEAE3;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  display: flex; flex-direction: column; min-height: 100vh; padding-bottom: 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.p-manual { padding-bottom: 48px; }
.p-calendario { padding-bottom: 0; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; flex: 1; display: flex; flex-direction: column; }
.p-manual .wrap { max-width: 920px; }
.p-calendario .wrap { max-width: 640px; }
main { flex: 1; }

/* Barra do site (cabeçalho padrão) */
.site-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; padding: 4px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-data); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.site-bar .name { color: var(--ink); font-weight: 500; padding: 10px 0; }
.site-bar .links { display: flex; gap: 6px 18px; }
.site-bar a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.site-bar a:hover { color: var(--accent-ink); text-decoration: underline; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Bloco de título */
header.top { padding: 34px 0 18px; border-bottom: 2px solid var(--ink); }
.eyebrow { font-family: var(--font-data); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 5vw, 42px); line-height: 1.1; margin: 8px 0 8px; text-wrap: balance; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0 0 6px; text-wrap: balance; }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 14px 0 4px; }
p { margin: 0 0 8px; }
.lead { color: var(--muted); max-width: 64ch; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-family: var(--font-data); font-size: 12px; color: var(--muted); }
section { margin-top: 32px; }
.note { color: var(--muted); max-width: 72ch; margin: 4px 0 12px; }
.small { font-size: 13px; color: var(--muted); }

/* Rodapé padrão */
footer { margin-top: 38px; padding: 12px 0 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
footer .links { display: flex; gap: 6px 14px; }
footer a { color: var(--muted); padding: 8px 0; }
footer a:hover { color: var(--accent-ink); }

/* Boletim */
.goal { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 14px 16px; margin-top: 12px; }
.goal .k { font-family: var(--font-data); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }
.goal p { margin: 4px 0 0; }
.start { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.stat { background: var(--soft); border: 1px solid var(--line); padding: 12px 14px; min-width: 0; }
.stat b { display: block; font-family: var(--font-data); font-size: 28px; line-height: 1.1; color: var(--metric); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 3px; white-space: nowrap; }
.t-ok { background: var(--ok-soft); color: var(--ok); } .t-wait { background: var(--wait-soft); color: var(--wait); } .t-jav { background: var(--jav-soft); color: var(--jav); } .t-ext { background: var(--ext-soft); color: var(--ext); }
.t-done { background: var(--ok); color: #fff; }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--font-data); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--ink); }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 0; }
.tbl td.f { font-family: var(--font-display); font-weight: 600; }
.tbl td.f small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--muted); }
.tbl ul { margin: 0; padding-left: 18px; } .tbl li { margin: 2px 0; }
.stack { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.scroll { overflow-x: auto; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

details { border-top: 1px solid var(--line); padding: 10px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "abrir"; font-family: var(--font-data); font-size: 11px; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
details[open] summary::after { content: "fechar"; }
.in { padding-top: 8px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.box { background: var(--soft); border: 1px solid var(--line); padding: 12px 14px; min-width: 0; }
.box b { font-family: var(--font-display); font-size: 14px; }
.rec { white-space: pre-wrap; background: var(--bg); border-left: 3px solid var(--ink); padding: 8px 12px; font-family: var(--font-data); font-size: 12.5px; margin: 8px 0; }
ol.ask { margin: 8px 0 0; padding-left: 22px; max-width: 80ch; } ol.ask li { margin: 7px 0; }
ul.l { margin: 6px 0 0; padding-left: 20px; max-width: 80ch; } ul.l li { margin: 6px 0; }
.shot { margin: 12px 0 4px; }
.shot img { display: block; width: 100%; max-width: 800px; height: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 80ch; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 8px 0; }
.shots .shot { margin: 0; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.cmp th { text-align: left; font-family: var(--font-data); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--ink); }
.cmp td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp td.f { font-family: var(--font-display); font-weight: 600; width: 22%; }
.delta { font-size: 12px; color: var(--muted); display: block; }

@media (max-width: 760px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: 3px 0; }
  .tbl td[data-l]::before { content: attr(data-l); display: block; font-family: var(--font-data); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp td { border: 0; padding: 3px 0; }
  .cmp tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cmp td.f { width: 100%; }
}
@media print { details { break-inside: avoid; } details > summary::after { display: none; } .copiar { display: none; } }

/* Manual dos atendentes */
.p-manual h1 { font-size: clamp(26px, 5vw, 38px); }
.p-manual h2 { font-size: 20px; margin: 0 0 8px; }
.p-manual h3 { margin: 0 0 4px; }
.p-manual .lead { max-width: 62ch; margin-bottom: 8px; }
.p-manual section { margin-top: 30px; }
.p-manual footer { margin-top: 36px; }
.gold { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.g { border-top: 3px solid var(--accent); padding-top: 8px; min-width: 0; }
.g b { display: block; font-family: var(--font-display); font-size: 14px; }
.g span { font-size: 13.5px; color: var(--muted); }
ol.steps { padding-left: 22px; margin: 6px 0; } ol.steps li { margin: 5px 0; }
.card { border: 1px solid var(--line); background: var(--soft); padding: 14px 16px; margin: 12px 0; min-width: 0; }
.card .when { font-family: var(--font-data); font-size: 12px; color: var(--accent-ink); letter-spacing: .04em; }
.msg { background: var(--bg); border-left: 3px solid var(--ink); padding: 8px 12px; margin: 8px 0; white-space: pre-wrap; font-size: 14px; }
.why { font-size: 13px; color: var(--muted); }
.why b { color: var(--ink); }
.p-manual table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-manual th { text-align: left; font-family: var(--font-data); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--ink); }
.p-manual td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 0; }
@media (max-width: 700px) {
  .p-manual th { display: none; }
  .p-manual table, .p-manual tbody, .p-manual tr, .p-manual td { display: block; width: 100%; }
  .p-manual tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .p-manual td { border: 0; padding: 3px 0; }
  .p-manual td[data-l]::before { content: attr(data-l); display: block; font-family: var(--font-data); font-size: 11px; text-transform: uppercase; color: var(--muted); }
}
/* Botão Copiar (criado pelo jav.js; sem script, a página lê igual) */
.copiar { display: block; margin: 8px 0 0 auto; padding: 6px 12px; min-height: 32px; cursor: pointer; background: var(--soft); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; font-family: var(--font-data); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; white-space: normal; }
.copiar:hover { border-color: var(--ink); background: var(--bg); }

/* Calendário dos boletins */
.p-calendario h1 { font-size: clamp(28px, 6vw, 42px); }
.p-calendario h2 { font-size: 18px; margin: 0 0 8px; }
.p-calendario .lead { max-width: 52ch; }
.p-calendario section { margin-top: 28px; }
.p-calendario .cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.p-calendario .cal-title { font-size: 20px; margin: 0; text-align: center; flex: 1; }
.nav { appearance: none; width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; cursor: pointer;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font: 600 18px/1 var(--font-display); }
.nav:hover { background: var(--soft); border-color: var(--ink); }
table.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; margin: 0 -4px; width: calc(100% + 8px); }
.cal th { font-family: var(--font-data); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 0 6px; text-align: center; }
.cal td { padding: 0; }
.day { display: grid; place-items: center; aspect-ratio: 1 / 1; min-height: 40px; border-radius: 4px;
  font-family: var(--font-data); font-size: 14px; font-variant-numeric: tabular-nums; }
.day.off { color: var(--faint); background: var(--soft); cursor: default; }
.day.today { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); font-weight: 500; }
.day a { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 4px; text-decoration: none;
  background: var(--accent); color: #FFFFFF; font-weight: 500; }
.day a:hover { background: var(--accent-ink); }
.day.today a { box-shadow: inset 0 0 0 2px var(--ink); }
.empty-month { margin: 10px 0 0; color: var(--muted); font-size: 14px; min-height: 1.55em; }
.p-calendario .legend { gap: 8px 18px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.p-calendario .legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.sw.has { background: var(--accent); } .sw.today { box-shadow: inset 0 0 0 2px var(--ink); } .sw.off { background: var(--soft); border: 1px solid var(--line); }
ol.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
ol.list li { border-bottom: 1px solid var(--line); }
ol.list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; color: var(--ink); text-decoration: none; }
ol.list a:hover b { text-decoration: underline; }
ol.list b { font-family: var(--font-display); font-weight: 600; }
ol.list time { font-family: var(--font-data); font-size: 13px; color: var(--muted); white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
