/* Decoreba: páginas de conteúdo (verbos e lista completa)
   Mesma identidade do app: fundo bege, barra com textura de papel e as cores das abas. */

@font-face {
  font-family: "DecorebaHand";
  src: url("/fonts/kalam-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #e9e5da;
  --ink: #3f3f3f;
  --muted: #6b6960;
  --line: #d6d1c3;
  --dark: #404141;
  --red: #e24a3b;
  --red-d: #b9362e;
  --cyan: #12bccb;
  --cyan-d: #0a8f9b;
  --olive: #b1b264;
  --olive-d: #86873f;
  --yellow: #ffd21f;
  --card: #f6f3ea;
  --helvetica: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --hand: Noteworthy, "DecorebaHand", "Marker Felt", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--helvetica);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: var(--cyan-d); }
a:hover { color: var(--red-d); }
img { max-width: 100%; }

/* ---------- Cabeçalho ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: url(/img/navigation.png) center / cover;
  border-bottom: 5px solid #333;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-head .in {
  max-width: 860px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; gap: 14px;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.brand { display: block; height: 46px; }
.brand img { height: 46px; width: auto; display: block; }
.head-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.head-nav a { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.head-nav a:hover { color: var(--red-d); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 21px;
  font: 700 15px/1 var(--helvetica); text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.btn-dark { background: var(--dark); color: #fff !important; }
.btn-red { background: var(--red); color: #fff !important; }
.btn-ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--ink); }
.btn:hover { filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; flex: none; }
.head-nav .btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
@media (max-width: 560px) {
  .head-nav .hide-sm { display: none; }
  .brand img { height: 34px; }
}

/* ---------- Estrutura ---------- */
main { max-width: 860px; margin: 0 auto; padding: 18px max(18px, env(safe-area-inset-right, 0px)) 40px max(18px, env(safe-area-inset-left, 0px)); }
.crumbs { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 700; }
h1 { margin: 6px 0 4px; font: 700 clamp(40px, 9vw, 64px)/1.25 var(--hand); color: var(--ink); text-shadow: 0 2px 0 #fff; }
h1 small { display: block; font: 400 clamp(17px, 3.6vw, 20px)/1.35 var(--helvetica); color: var(--muted); text-shadow: none; margin-top: 8px; }
h2 { margin: 42px 0 12px; font-size: 24px; line-height: 1.25; }
h3 { margin: 22px 0 6px; font-size: 18px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; }
section { scroll-margin-top: 80px; }

/* ---------- Abas das formas (como no app) ---------- */
.forms { position: relative; margin: 22px 0 8px; }
.form {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px;
  padding: 16px 22px 34px;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 50% 100%, 0 calc(100% - 20px));
  border-radius: 14px 14px 0 0;
}
.form + .form { margin-top: -14px; padding-top: 28px; }
.form .lbl { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; opacity: .85; }
.form .word { display: block; font: 700 clamp(30px, 7.5vw, 44px)/1.35 var(--hand); overflow-wrap: anywhere; }
.form.inf { background: #cfcab9 url(/img/navigation.png) center / cover; color: var(--ink); z-index: 4; }
.form.inf .word { text-shadow: 0 2px 0 #fff; }
.form.past { background: var(--red); z-index: 3; }
.form.past .word { text-shadow: 0 2px 0 var(--red-d); }
.form.part { background: var(--cyan); z-index: 2; }
.form.part .word { text-shadow: 0 2px 0 var(--cyan-d); }
.form.trad { background: var(--olive); z-index: 1; }
.form.trad .word { font-size: clamp(24px, 5.6vw, 34px); text-shadow: 0 2px 0 var(--olive-d); }
.play {
  width: 46px; height: 46px; border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent center / contain no-repeat;
}
.play:active { filter: brightness(.7); }
.play:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Blocos ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.examples { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.examples li { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--ink)); border-radius: 10px; padding: 12px 16px; }
.examples .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--c); border-radius: 10px; padding: 2px 8px; margin-bottom: 4px; }
.examples .en { display: block; font-size: 19px; }
.examples .en b { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.examples .pt { display: block; color: var(--muted); font-style: italic; font-size: 15.5px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 16px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: #efebe0; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td code { font: inherit; font-weight: 700; }
.conj { min-width: 0; }
.conj td:first-child { color: var(--muted); font-size: 14px; width: 40%; }
.conj code { white-space: normal; }

.note { border-left: 6px solid var(--yellow); background: #fff8d9; border-radius: 10px; padding: 12px 16px; margin: 14px 0; }
.note.bad { border-left-color: var(--red); background: #fdecea; }
.note strong:first-child { display: block; font-size: 13px; letter-spacing: .8px; text-transform: uppercase; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.chips a {
  display: inline-block; padding: 7px 13px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 15px;
}
.chips a:hover { border-color: var(--ink); }
.chips a b { color: var(--red-d); }

.pattern { display: inline-block; font-weight: 700; padding: 2px 10px; border-radius: 12px; color: #fff; background: var(--dark); font-size: 14px; }

/* Chamada para o app */
.cta {
  margin: 40px 0 10px; padding: 24px 22px 26px; border-radius: 16px;
  background: var(--dark); color: #f4f2ea;
  display: grid; gap: 12px;
}
.cta h2 { margin: 0; color: #fff; }
.cta h2 span { color: var(--yellow); }
.cta p { margin: 0; color: #d9d6cc; }
.cta .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cta .btn-ghost { color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }

/* Perguntas frequentes */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 13px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.faq details p:last-child { margin-bottom: 14px; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin: 34px 0 0; }
.pager a { flex: 1; display: block; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pager a small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.pager a b { font-size: 18px; }
.pager .next { text-align: right; }

/* ---------- Lista completa (página-pilar) ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; margin: 6px 0 0; padding: 0; list-style: none; }
.patterns { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.patterns .card h3 { margin: 0 0 4px; }
.patterns .card p { margin: 0 0 8px; font-size: 15.5px; }
.patterns .card .ex { font-size: 15px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.filters input {
  flex: 1 1 220px; height: 44px; padding: 0 14px; border-radius: 22px;
  border: 2px solid var(--line); background: #fff; font: 16px var(--helvetica); color: var(--ink);
}
.filters input:focus { outline: none; border-color: var(--cyan); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  height: 34px; padding: 0 12px; border-radius: 17px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 700 13px var(--helvetica);
}
.seg button[aria-pressed="true"] { background: var(--dark); color: #fff; border-color: var(--dark); }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; padding: 0; list-style: none; }
.letters a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; }
.verbs td:nth-child(2) { color: var(--red-d); font-weight: 700; }
.verbs td:nth-child(3) { color: var(--cyan-d); font-weight: 700; }
.verbs td:nth-child(4) { color: var(--muted); font-size: 15px; }
.verbs td a { font-weight: 700; color: var(--ink); }
.verbs tr.letter-row td { background: #efebe0; font-weight: 700; color: var(--muted); font-size: 13px; letter-spacing: 1px; padding: 6px 14px; }
.count { font-size: 14px; color: var(--muted); }
.empty { padding: 18px; text-align: center; color: var(--muted); display: none; }

/* ---------- Rodapé ---------- */
.site-foot { background: var(--dark); color: #cfccc2; margin-top: 40px; }
.site-foot .in { max-width: 860px; margin: 0 auto; padding: 26px max(18px, env(safe-area-inset-left, 0px)) calc(26px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.site-foot a { color: #fff; }
.site-foot p { margin: 0 0 8px; }
.stripes { height: 14px; background: linear-gradient(var(--red) 0 33%, var(--cyan) 33% 66%, var(--olive) 66%); }

/* ---------- Impressão (lista completa) ---------- */
@media print {
  .site-head, .site-foot, .stripes, .cta, .filters, .letters, .no-print, .crumbs, .pager, .faq, .toc,
  .lead, #regulares-e-irregulares, #padroes, #como-decorar, #lista > h2 { display: none !important; }
  @page { margin: 12mm 10mm; }
  body { background: #fff; font-size: 11pt; }
  main { max-width: none; padding: 0; }
  h1 { font-size: 22pt; text-shadow: none; }
  h1 small { font-size: 11pt; }
  .table-wrap { border: 0; overflow: visible; }
  table { font-size: 9.5pt; min-width: 0; }
  th { position: static; }
  th, td { padding: 2px 6px; line-height: 1.25; }
  .verbs td:nth-child(4) { font-size: 9pt; }
  .verbs tr { break-inside: avoid; }
  .verbs tr.letter-row { display: none; }
  .verbs td a { text-decoration: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

main > ul { padding-left: 22px; }
main > ul li { margin-bottom: 8px; }
