:root {
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --paper: #f5f5f7;
  --surface: #ffffff;
  --surface-alt: #fafafa;
  --topbar-bg: rgba(245, 245, 247, .82);
  --dock-bg: rgba(248, 248, 250, .88);
  --footer-bg: #ebebf0;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --navy: #0e1726;
  --accent: #a66f46;
  --radius: 24px;
  --radius-sm: 18px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .03);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
  --ease: cubic-bezier(.25, .1, .25, 1);
}

[data-theme="dark"] {
  --ink: #f5f5f7;
  --ink-soft: #d2d2d7;
  --muted: #98989d;
  --line: rgba(255, 255, 255, .11);
  --paper: #0b0c10;
  --surface: #16171d;
  --surface-alt: #1e2028;
  --topbar-bg: rgba(11, 12, 16, .84);
  --dock-bg: rgba(22, 23, 29, .9);
  --footer-bg: #111217;
  --blue: #2997ff;
  --blue-hover: #47a6ff;
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, .35);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s var(--ease), color .25s var(--ease);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* Navegação translúcida estilo Apple */
.topbar {
  height: 54px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--topbar-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.navin {
  height: 100%;
  max-width: 1160px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  flex-shrink: 0;
}
.brandLogo {
  height: 30px;
  width: auto;
  display: block;
}
[data-theme="dark"] .brandLogo {
  filter: invert(1) hue-rotate(180deg) brightness(1.06);
}
.navlinks {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}
.navlinks a { transition: color .2s var(--ease); white-space: nowrap; }
.navlinks a:hover,
.navlinks a[aria-current="page"] { color: var(--blue); }
.navTools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.navIconBtn {
  border: 1px solid transparent;
  background: none;
  color: var(--ink-soft);
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.navIconBtn:hover { background: var(--line); color: var(--blue); }
.navBadge {
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.navBadge[hidden] { display: none; }
.navKbdHint {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.mobileNav { display: none; }

.shell { max-width: 1140px; margin: auto; padding: 0 24px; }

/* Hero editorial com contraste calibrado */
.hero {
  height: min(640px, 76vw);
  min-height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  background: var(--navy);
  color: #fff;
}
.hero > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.01);
}
.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(12, 22, 36, .78) 0%, rgba(12, 22, 36, .38) 58%, rgba(12, 22, 36, .14) 100%),
    linear-gradient(0deg, rgba(12, 22, 36, .62) 0%, transparent 55%);
}
.heroContent {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  padding: 112px 24px 0;
  margin: auto;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c7def5;
  font-weight: 650;
}
.eyebrow.dark { color: var(--blue); }
.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-size: clamp(42px, 6.6vw, 74px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: 14px 0 18px;
  max-width: 680px;
  text-shadow: 0 4px 24px rgba(8, 16, 28, .45);
}
.hero p {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
  max-width: 540px;
  margin: 0;
  text-shadow: 0 2px 14px rgba(8, 16, 28, .4);
}
.hero .toolbar { max-width: 540px; margin-top: 26px; }
.hero .searchInput {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-color: transparent;
  color: #1d1d1f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.button {
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: transform .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.button.primary:hover { background: var(--blue-hover); }
.button.dark {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.button:hover { transform: translateY(-1px); }

/* Cabeçalhos de seção */
.intro { padding: 56px 0 24px; max-width: 720px; }
.intro h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.04em;
  margin: 10px 0 14px;
}
.intro p { font-size: 16px; color: var(--muted); margin: 0; line-height: 1.55; }
.section { padding: 26px 0 44px; }
.sectionHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.sectionHead h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.035em;
  margin: 0;
}
.sectionHead p { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

/* Grade de atalhos (Tiles) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative;
  min-height: 264px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1f2b3a;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .6s var(--ease);
}
.tile:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(14, 23, 38, .88) 0%, rgba(14, 23, 38, .22) 60%, transparent 100%);
}
.tile:hover img { transform: scale(1.05); }
.tileText { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.tileText small {
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tileText h3 { font-size: 21px; font-weight: 700; letter-spacing: -.03em; margin: 5px 0 6px; line-height: 1.15; }
.tileText span { font-size: 12px; color: rgba(255, 255, 255, .88); }

/* Destaques duplos */
.featureBand { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px 0 36px; }
.featureImage {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.featureImage img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: .88;
}
.featureImage:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 23, 38, .88) 0%, rgba(14, 23, 38, .22) 65%, transparent 100%);
}
.featureImageText { position: absolute; z-index: 1; left: 28px; bottom: 26px; right: 28px; }
.featureImageText h2 { font-size: 32px; line-height: 1.08; letter-spacing: -.035em; margin: 8px 0; }
.featureImageText p { font-size: 14px; color: rgba(255, 255, 255, .86); margin: 0; }

.featureBox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.featureBox .big {
  font-size: 44px;
  font-weight: 750;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
}
.featureBox h2 { font-size: 28px; font-weight: 700; letter-spacing: -.035em; margin: 14px 0 10px; }
.featureBox p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }

/* Busca, chips e status */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0 20px; }
.searchInput, .selectPill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 11px 16px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.searchInput { min-width: 240px; flex: 1; }
.selectPill { font-size: 12px; font-weight: 550; cursor: pointer; }
.searchInput:focus, .selectPill:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .14); }
.filterGroup { display: flex; gap: 8px; overflow: auto; scrollbar-width: none; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.live {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-block: 1px solid var(--line);
  padding: 12px 0;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 12px;
  gap: 10px;
}
.liveLeft { display: flex; gap: 10px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2ea44f; box-shadow: 0 0 0 4px rgba(46, 164, 79, .18); flex-shrink: 0; }
.live button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.live button:hover { background: var(--surface-alt); }

/* Cartões de publicação */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 215px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  flex-wrap: wrap;
}
.badge {
  border-radius: 7px;
  background: rgba(0, 113, 227, .12);
  color: var(--blue);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge.stj { background: rgba(31, 100, 62, .14); color: #2a8a55; }
.badge.lei { background: rgba(166, 111, 70, .16); color: #b57a4b; }
.card h3 {
  font: 650 18px/1.3 -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  letter-spacing: -.02em;
  margin: 14px 0 9px;
  color: var(--ink);
}
.card p {
  font-size: 13px;
  line-height: 1.58;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.teseCard p.teseBody { -webkit-line-clamp: 6; color: var(--ink-soft); }
.cardFoot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.cardFoot a { color: var(--blue); font-weight: 600; }
.cardFoot a:hover { text-decoration: underline; }
.cardActionsInline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.miniAction {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.miniAction:hover { border-color: var(--blue); color: var(--blue); }
.miniAction.saved { background: rgba(0, 113, 227, .14); border-color: var(--blue); color: var(--blue); }

/* Leitor de Informativos */
.readerList { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.readerCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.readerCard h3 { font-size: 21px; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 8px; }
.readerCard p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.readerPanel {
  margin-top: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.readerPanel[hidden] { display: none; }
.readerHead {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
  font-size: 13px;
}
.readerHead a { color: var(--blue); font-weight: 600; }
.readerText {
  max-height: 72vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 28px clamp(20px, 7vw, 84px);
  font: 400 16px/1.85 Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  color: var(--ink-soft);
}

.empty {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
}
.notice {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(0, 113, 227, .09);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0;
}
.skeleton {
  height: 190px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-alt), var(--surface), var(--surface-alt));
  background-size: 200% 100%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { to { background-position: -200% 0; } }

.footer {
  background: var(--footer-bg);
  margin-top: 56px;
  padding: 28px 24px 96px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footerIn { max-width: 1140px; margin: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footerLinks { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footerLinks a:hover { color: var(--blue); }
.footerSubtle { opacity: .72; }
.footerSubtle:hover { opacity: 1; }
.mobileDock { display: none; }

/* Ferramentas, Biblioteca, Newsletter, Plano Pro e Legal */
.toolsGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.toolCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.toolHead h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 6px 0 4px;
}
.toolHead p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.toolForm { display: flex; flex-direction: column; gap: 12px; }
.toolRow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toolRow3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.toolField { display: flex; flex-direction: column; gap: 5px; }
.toolField label { font-size: 11px; font-weight: 650; color: var(--ink-soft); letter-spacing: .02em; }
.toolField input, .toolField select, .toolField textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.toolField input:focus, .toolField select:focus, .toolField textarea:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .14);
}
.toolCheck { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); cursor: pointer; }
.toolCheck input { width: auto; accent-color: var(--blue); }
.toolResult {
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 113, 227, .09);
  border: 1px solid rgba(0, 113, 227, .22);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}
.toolResult strong { color: var(--blue); }
.toolResult[hidden] { display: none; }
.toolCitation {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.65;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.affDisclosure {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 20px;
}
.bookGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bookCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.bookCard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bookCard h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.28; margin: 4px 0 0; }
.bookAuthor { font-size: 12px; font-weight: 600; color: var(--blue); margin: 0; }
.bookDesc { font-size: 13px; color: var(--muted); line-height: 1.58; margin: 0; }
.bookFoot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.bookStore { color: var(--muted); font-size: 11px; }

.promoStrip {
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.promoStrip h3 { font-size: 18px; font-weight: 700; letter-spacing: -.025em; margin: 4px 0 4px; }
.promoStrip p { font-size: 13px; color: var(--muted); margin: 0; max-width: 640px; }
.promoActions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

.nlBand {
  background: linear-gradient(135deg, #101d2e 0%, #192c44 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 20px 0 40px;
  box-shadow: var(--shadow-md);
}
.nlBand h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin: 10px 0 12px;
}
.nlBand p { color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.6; margin: 0; }
.nlCard {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.nlChecks { display: flex; flex-wrap: wrap; gap: 8px; }
.nlCheckPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.nlCheckPill input { accent-color: var(--blue); }
.nlStatus { font-size: 12px; margin-top: 8px; line-height: 1.5; }
.nlStatus.ok { color: #2a8a55; font-weight: 600; }
.nlStatus.err { color: #e5484d; font-weight: 600; }

.proGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0 36px; }
.proCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proCard.featured { border-color: rgba(0, 113, 227, .42); box-shadow: 0 14px 34px rgba(0, 113, 227, .12); }
.proPrice { font-size: 32px; font-weight: 750; letter-spacing: -.04em; color: var(--ink); }
.proPrice small { font-size: 13px; font-weight: 500; color: var(--muted); }
.proList { list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-direction: column; gap: 9px; }
.proList li { font-size: 13px; color: var(--ink-soft); padding-left: 20px; position: relative; }
.proList li:before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

.legalDoc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 42px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto 40px;
}
.legalDoc h2 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; margin: 28px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.legalDoc h2:first-of-type { margin-top: 10px; padding-top: 0; border-top: 0; }
.legalDoc p, .legalDoc li { font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.legalDoc ul { padding-left: 20px; }

/* Página Sobre — Biografia sucinta + Blog Pessoal / Medium */
.bioShell { max-width: 960px; margin: auto; padding: 44px 24px 32px; }
.bioHero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.bioPhoto {
  width: 190px;
  height: 190px;
  border-radius: 26px;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow-md);
  display: block;
}
.bioIdentity h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: 8px 0 10px;
  color: var(--ink);
}
.bioLead { font-size: 16px; line-height: 1.62; color: var(--ink-soft); margin: 0 0 18px; }
.bioLinks { display: flex; flex-wrap: wrap; gap: 10px; }
.bioCard {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}
.bioProse { font-size: 15.5px; line-height: 1.82; color: var(--ink-soft); margin: 0 0 14px; }
.bioProse:last-child { margin-bottom: 0; }
.cvTags { display: flex; flex-wrap: wrap; gap: 8px; }
.cvTag {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.bioIdsBar {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.bioIdsBar a { color: var(--blue); font-weight: 600; }
.bioIdsBar a:hover { text-decoration: underline; }
.cvCopyBtn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.cvCopyBtn:hover { border-color: var(--blue); color: var(--blue); }

/* Ensaios ("Fora dos Autos") & Blog Pessoal */
.blogSection { margin-top: 34px; }
.essayGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.essayCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.essayCard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.essayCard h3 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; line-height: 1.28; margin: 4px 0 0; }
.essayCard p { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.essayReaderBody {
  font: 400 16px/1.88 Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  color: var(--ink-soft);
  padding: 24px 28px 32px;
  max-height: 68vh;
  overflow: auto;
}
.essayReaderBody p { margin: 0 0 1.15em; }

/* Global Overlays: Spotlight, Caderno Drawer & Mobile Bottom Sheet */
.pdOverlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .44);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
}
.pdOverlay[hidden] { display: none; }
.pdOverlayRight { align-items: stretch; justify-content: flex-end; padding: 0; }
.pdOverlayBottom { align-items: flex-end; justify-content: center; padding: 0; }

.pdModal {
  width: min(620px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.pdModalHead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.pdSearchIcon { font-size: 20px; color: var(--muted); }
.pdModalHead input {
  flex: 1;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  outline: none;
}
.pdKbd {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}
.pdModalBody { max-height: 62vh; overflow: auto; padding: 8px; }
.pdSpotItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  transition: background .15s var(--ease);
}
.pdSpotItem:hover { background: var(--paper); }
.pdSpotItem strong { display: block; font-size: 14px; color: var(--ink); }
.pdSpotItem small { display: block; font-size: 12px; color: var(--muted); }
.pdSpotPrimary { background: rgba(0, 113, 227, .08); margin-bottom: 6px; }
.pdSpotTag { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.pdSpotEmpty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6; }

.pdDrawer {
  width: min(440px, 100%);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}
.pdDrawerHead {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.pdDrawerHead strong { display: block; font-size: 16px; }
.pdDrawerHead small { color: var(--muted); font-size: 12px; }
.pdDrawerBtns { display: flex; gap: 6px; }
.pdDrawerBody { flex: 1; overflow: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.pdSavedItem {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdSavedItem h4 { margin: 0; font-size: 15px; line-height: 1.3; }
.pdSavedItem p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.pdNoteInput {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 12px;
  resize: vertical;
}
.pdSavedLink { font-size: 12px; font-weight: 600; color: var(--blue); }

.pdSheet {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-md);
}
.pdSheetHandle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  margin: 0 auto 14px;
}
.pdSheetHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.pdSheetGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pdSheetGrid a,
.pdSheetGrid button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.pdSheetGrid span { font-size: 18px; color: var(--blue); }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 500px; height: 68vw; }
  .heroContent { padding-top: 90px; }
  .featureBand, .toolsGrid, .bookGrid, .nlBand, .proGrid, .essayGrid { grid-template-columns: 1fr; }
  .promoStrip { flex-direction: column; align-items: flex-start; }
  .navKbdHint { display: none; }
}
@media (max-width: 760px) {
  .bioHero { grid-template-columns: 1fr; padding: 26px 22px; gap: 20px; }
  .bioPhoto { width: 148px; height: 148px; border-radius: 22px; }
  .bioCard { padding: 24px 20px; }
  .navlinks { display: none; }
  .mobileNav {
    display: flex;
    gap: 16px;
    overflow: auto;
    white-space: nowrap;
    padding: 10px 16px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-soft);
    scrollbar-width: none;
  }
  .mobileNav a[aria-current="page"] { color: var(--blue); font-weight: 650; }
}
@media (max-width: 600px) {
  .navin, .shell { padding: 0 16px; }
  .brandLogo { height: 26px; }
  .bioShell { padding: 24px 16px 20px; }
  .hero { height: 570px; min-height: 0; border-radius: 0 0 24px 24px; }
  .heroContent { padding: 78px 18px 0; }
  .hero h1 { font-size: 42px; }
  .intro { padding: 40px 0 18px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 196px; border-radius: 18px; }
  .cards, .readerList { grid-template-columns: 1fr; }
  .toolRow, .toolRow3 { grid-template-columns: 1fr; }
  .nlBand { padding: 26px 20px; }
  .legalDoc { padding: 24px 18px; }
  .readerHead { align-items: flex-start; flex-direction: column; }
  .mobileDock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    justify-content: space-around;
    background: var(--dock-bg);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--line);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  }
  .mobileDock a,
  .mobileDock button {
    border: 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 56px;
    padding: 2px 0;
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
  }
  .mobileDock i { font-style: normal; font-size: 18px; line-height: 19px; }
  .mobileDock a[aria-current="page"] { color: var(--blue); }
}

/* Impressão limpa do Caderno de Estudos em PDF */
@media print {
  body > *:not(#pd-caderno) { display: none !important; }
  #pd-caderno {
    position: static !important;
    background: #fff !important;
    display: block !important;
    padding: 0 !important;
  }
  .pdDrawer { width: 100% !important; border: 0 !important; box-shadow: none !important; }
  .pdDrawerBtns, .miniAction { display: none !important; }
}

/* Destaque no link Sobre no rodapé (mesmo tamanho de fonte) */
.footerHighlight {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: inherit;
  font-weight: 650;
  color: var(--blue);
  background: rgba(0, 113, 227, .1);
  border: 1px solid rgba(0, 113, 227, .26);
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.4;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.footerHighlight::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.footerHighlight:hover,
.footerHighlight[aria-current="page"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.footerHighlight:hover::before,
.footerHighlight[aria-current="page"]::before {
  background: #fff;
}

/* Ajuste fino de contraste para ilustrações vetoriais SVG */
.featureImage img { opacity: 1; }
.tile:after {
  background: linear-gradient(0deg, rgba(10, 16, 26, .76) 0%, rgba(10, 16, 26, .12) 55%, transparent 100%);
}
.featureImage:after {
  background: linear-gradient(0deg, rgba(10, 16, 26, .78) 0%, rgba(10, 16, 26, .14) 58%, transparent 100%);
}

/* ============================================================
   Página Sobre — Citação e Cartões de Interesse (fiel ao layout aprovado)
   ============================================================ */
.bioCard h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0 0 16px;
  color: var(--ink);
}
.bioQuote {
  margin: 22px 0;
  padding: 16px 22px;
  border-left: 3px solid #c5905f;
  background: var(--paper);
  border-radius: 0 14px 14px 0;
  font-family: Georgia, 'Iowan Old Style', serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
}
.bioInterests {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bioInterestCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bioInterestIcon {
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
}
.bioInterestCard h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 2px 0 0;
  color: var(--ink);
}
.bioInterestCard p {
  font-size: 13px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   Arena & Jogos (Xadrez, JurisQuiz, Súmula ou Mito, Termo)
   ============================================================ */
.gameTabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 22px;
}
.gamePanel[hidden] { display: none; }

.chessWrap {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(260px, 1fr);
  gap: 22px;
  align-items: start;
}
.chessBoardCol {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.chessBoard {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  user-select: none;
}
.chessSq {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter .12s var(--ease);
}
.chessSq.light { background: #efece6; }
.chessSq.dark { background: #7b8c9d; }
[data-theme="dark"] .chessSq.light { background: #cbd3dc; }
[data-theme="dark"] .chessSq.dark { background: #4a5b6d; }
.chessSq.last { box-shadow: inset 0 0 0 99px rgba(197, 144, 95, .36); }
.chessSq.selected { box-shadow: inset 0 0 0 99px rgba(0, 113, 227, .42); }
.chessSq.check { box-shadow: inset 0 0 0 99px rgba(220, 38, 38, .48); }
.chessSq.hint::after {
  content: '';
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: rgba(0, 113, 227, .55);
  position: absolute;
}
.chessSq.capture::after {
  content: '';
  width: 82%;
  height: 82%;
  border-radius: 50%;
  border: 3px solid rgba(0, 113, 227, .65);
  position: absolute;
}
.chessPiece {
  font-size: clamp(22px, 4.2vw, 40px);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.chessPiece.whitePiece {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65), 0 0 1px #000;
}
.chessPiece.blackPiece {
  color: #16181d;
  text-shadow: 0 1px 1px rgba(255, 255, 255, .35);
}
.sqRank, .sqFile {
  position: absolute;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  opacity: .55;
  pointer-events: none;
}
.sqRank { top: 3px; left: 4px; color: #1d1d1f; }
.sqFile { bottom: 2px; right: 4px; color: #1d1d1f; }

.chessSide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chessSide h3 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; margin: 0; }
.chessStatus {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(0, 113, 227, .09);
  padding: 10px 14px;
  border-radius: 12px;
}
.chessBtns { display: flex; flex-wrap: wrap; gap: 8px; }
.chessCaptures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--paper);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
}
.chessCaptures small, .chessMovesBox small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.chessMoves {
  max-height: 170px;
  overflow: auto;
  background: var(--paper);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* Quiz, Súmula ou Mito e Termo Jurídico */
.quizCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  max-width: 780px;
}
.quizScorebar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.quizQuestion {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: -.02em;
  margin: 12px 0 18px;
}
.quizOpts { display: flex; flex-direction: column; gap: 10px; }
.quizOpt {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.quizOpt:hover:not(:disabled) { border-color: var(--blue); background: var(--surface); }
.quizOpt.correct { background: rgba(46, 164, 79, .15); border-color: #2ea44f; }
.quizOpt.wrong { background: rgba(229, 72, 77, .14); border-color: #e5484d; }
.quizFooter { margin-top: 16px; display: flex; justify-content: flex-end; }
.quizFinish { text-align: center; padding: 18px 10px; }
.quizFinish h3 { font-size: 26px; margin: 12px 0 8px; }
.quizFinish p { color: var(--muted); margin: 0 0 18px; }

.vfStatement {
  font-family: Georgia, 'Iowan Old Style', serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  margin: 18px 0 22px;
}
.vfBtns { display: flex; gap: 10px; flex-wrap: wrap; }

.termoCard h3 { font-size: 22px; margin: 8px 0 4px; }
.termoHint { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.termoGrid { display: flex; flex-direction: column; gap: 8px; max-width: 310px; margin: 0 auto 18px; }
.termoRow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.termoCell {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 750;
  color: var(--ink);
}
.termoCell.correct { background: #2a8a55; border-color: #2a8a55; color: #fff; }
.termoCell.present { background: #c5905f; border-color: #c5905f; color: #fff; }
.termoCell.absent { background: #6e6e73; border-color: #6e6e73; color: #fff; }
.termoForm { display: flex; gap: 10px; max-width: 380px; margin: 0 auto; }
.termoMsg { text-align: center; font-size: 13px; font-weight: 600; color: var(--blue); margin: 12px 0 0; min-height: 20px; }

/* Pomodoro & Glossário de Latim */
.toolCardWide { grid-column: 1 / -1; }
.pomoBox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  background: var(--paper);
  border-radius: 16px;
  padding: 20px 24px;
}
.pomoDisplay {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 42px;
  font-weight: 750;
  letter-spacing: -.03em;
  color: var(--ink);
}
.pomoControls, .pomoActions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pomoCount { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 6px; }

.latinGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.latinCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.latinCard strong {
  display: block;
  font-family: Georgia, 'Iowan Old Style', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--blue);
  margin-bottom: 6px;
}
.latinCard p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Barra de progresso de leitura + botão Voltar ao topo */
.pdProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), #c5905f);
  z-index: 50;
  pointer-events: none;
  transition: width .08s linear;
}
.pdTopBtn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 35;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.pdTopBtn:hover { transform: translateY(-2px); color: var(--blue); }
.pdTopBtn[hidden] { display: none; }

@media (max-width: 900px) {
  .chessWrap, .latinGrid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bioInterests { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pdTopBtn { bottom: 76px; right: 14px; }
  .quizCard { padding: 22px 18px; }
  .chessBoardCol { padding: 10px; }
}

/* ============================================================
   v8 — Refinamento de Topo, Hero, Busca, Tipografia e Xadrez
   ============================================================ */

/* 1. Topbar espaçada e equilibrada em todas as resoluções */
.topbar {
  height: 58px;
  z-index: 40;
}
.navin {
  max-width: 1220px;
  padding: 0 clamp(16px, 2.4vw, 28px);
  gap: 16px;
}
.navlinks {
  gap: clamp(12px, 1.45vw, 22px);
  font-size: 13px;
  font-weight: 500;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.navlinks a {
  padding: 6px 2px;
  position: relative;
}
.navlinks a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 99px;
  background: var(--blue);
}
.navTools {
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 4px;
  box-shadow: var(--shadow-sm);
}
.navIconBtn {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  font-size: 14px;
}

/* 2. Hero fluido em 2 colunas — ocupa o espaço com equilíbrio, nunca corta */
.hero {
  height: auto;
  min-height: clamp(500px, 64vh, 620px);
  display: flex;
  align-items: center;
  padding: clamp(48px, 6vw, 80px) 0 clamp(54px, 6.5vw, 84px);
  border-radius: 0 0 36px 36px;
}
.hero:after {
  background:
    linear-gradient(95deg, rgba(10, 18, 30, .82) 0%, rgba(10, 18, 30, .52) 56%, rgba(10, 18, 30, .28) 100%),
    linear-gradient(0deg, rgba(10, 18, 30, .58) 0%, transparent 60%);
}
.heroContent {
  width: 100%;
  max-width: 1180px;
  padding: 0 clamp(18px, 2.6vw, 28px);
  margin: auto;
}
.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, .88fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}
.heroEyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: .1em;
}
.hero h1 {
  font-size: clamp(38px, 5.1vw, 64px);
  line-height: 1.04;
  letter-spacing: -.042em;
  margin: 18px 0 16px;
  max-width: 14ch;
}
.hero p {
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.56;
  max-width: 54ch;
  color: rgba(255, 255, 255, .86);
}

/* Barra de busca integrada (estilo Spotlight / Command Bar) */
.heroSearchForm {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 590px;
  margin-top: 26px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.heroSearchForm:focus-within {
  box-shadow: 0 0 0 4px rgba(41, 151, 255, .32), 0 16px 40px rgba(0, 0, 0, .28);
}
.heroSearchIcon {
  font-size: 18px;
  color: #6e6e73;
  flex-shrink: 0;
  line-height: 1;
}
.heroSearchInput {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #1d1d1f;
  font-size: 14.5px;
  padding: 8px 4px;
  outline: none;
}
.heroSearchInput::placeholder { color: #6e6e73; }
.heroSearchBtn {
  padding: 10px 18px;
  flex-shrink: 0;
  font-size: 13px;
}
.hero .actions {
  margin-top: 18px;
  gap: 8px;
}
.hero .actions .button {
  padding: 9px 16px;
  font-size: 12.5px;
}

/* Painel lateral vítreo no Hero */
.heroGlassCard {
  background: rgba(16, 26, 40, .54);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}
.heroGlassHead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
  padding: 2px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.heroGlassDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5905f;
  box-shadow: 0 0 0 3px rgba(197, 144, 95, .25);
}
.heroGlassList {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.heroGlassItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.heroGlassItem:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .16);
  transform: translateX(2px);
}
.heroGlassItem strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: #fff;
  line-height: 1.25;
}
.heroGlassItem small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, .72);
  margin-top: 2px;
}
.heroGlassItem > span {
  color: #c5905f;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 3. Melhor aproveitamento de espaço nos títulos internos e barras de busca */
.intro {
  padding: 48px 0 22px;
  max-width: 820px;
}
.intro h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  margin: 10px 0 12px;
}
.intro p {
  font-size: 15.5px;
  max-width: 66ch;
}
.toolbar {
  gap: 10px;
  margin: 14px 0 22px;
}
.searchInput {
  min-width: 220px;
  height: 44px;
  padding: 0 18px;
}
.selectPill {
  height: 44px;
  padding: 0 16px;
}
.chip {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
}

/* 4. FIX DEFINITIVO DO BUG DO XADREZ (quadrados 100% rígidos e idênticos) */
.chessBoard {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  user-select: none;
  -webkit-user-select: none;
}
.chessSq {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
  cursor: pointer;
}
.chessPiece {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 4vw, 38px);
  line-height: 1;
  pointer-events: none;
  font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif;
  font-variant-emoji: text;
  z-index: 1;
}
.chessSq.hint::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(0, 113, 227, .58);
  pointer-events: none;
  z-index: 2;
}
.chessSq.capture::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84%;
  height: 84%;
  border-radius: 50%;
  border: 3px solid rgba(0, 113, 227, .72);
  pointer-events: none;
  z-index: 2;
}
.sqRank, .sqFile {
  line-height: 1;
  z-index: 2;
}
.chessBtns .button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

/* 5. Breakpoints calibrados para evitar aperto no topo em notebooks/tablets */
@media (max-width: 1040px) {
  .navlinks { display: none; }
  .mobileNav {
    display: flex;
    gap: 16px;
    overflow: auto;
    white-space: nowrap;
    padding: 10px 20px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-soft);
    scrollbar-width: none;
  }
  .mobileNav a[aria-current="page"] { color: var(--blue); font-weight: 650; }
  .heroGrid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .heroGlassCard {
    max-width: 590px;
  }
}
@media (max-width: 600px) {
  .hero {
    height: auto;
    min-height: 0;
    padding: 36px 0 42px;
    border-radius: 0 0 24px 24px;
  }
  .heroContent { padding: 0 16px; }
  .hero h1 { font-size: 36px; margin: 14px 0 12px; }
  .heroSearchForm {
    padding: 5px 5px 5px 12px;
    margin-top: 20px;
  }
  .heroSearchBtn {
    padding: 9px 14px;
    font-size: 12px;
  }
  .heroGlassCard { padding: 14px; }
  .heroGlassItem { padding: 9px 10px; }
  .chessPiece { font-size: clamp(18px, 7.6vw, 30px); }
}

/* ============================================================
   v9 — Páginas dedicadas de Ferramentas, Hub Limpo e Área de Membros
   ============================================================ */
.heroMain { min-width: 0; }
.introCompact {
  padding: 36px 0 18px;
  max-width: 780px;
}
.introCompact h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  margin: 8px 0 10px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a { color: var(--blue); font-weight: 550; }
.breadcrumb a:hover { text-decoration: underline; }

/* Hub de Ferramentas */
.toolHubGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 32px;
}
.toolHubCard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 215px;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.toolHubCard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 113, 227, .35);
}
.toolHubCard h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 4px 0 0;
  line-height: 1.25;
}
.toolHubCard p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}
.toolHubCta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--blue);
}

/* Página Individual de Ferramenta */
.toolSingleShell { padding-bottom: 16px; }
.toolSingleWrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .85fr);
  gap: 20px;
  align-items: start;
  margin: 8px 0 28px;
}
.toolLegalBox {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.toolLegalBox h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.toolLegalBox ul {
  margin: 0 0 14px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toolLegalBox li {
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-soft);
}
.toolDisclaimer {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.toolRelated {
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toolRelatedLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pomoStandalone {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 24px;
  gap: 20px;
}
.pomoStandalone .pomoDisplay {
  font-size: clamp(54px, 9vw, 76px);
  line-height: 1;
}

/* Área de Membros */
.memberGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 12px 0 32px;
}

@media (max-width: 960px) {
  .toolHubGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolSingleWrap, .memberGrid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .toolHubGrid { grid-template-columns: 1fr; }
  .introCompact { padding: 26px 0 14px; }
}

/* ============================================================
   v10 — Newsletter Fix, Mobile-First Hardening, Pomodoro & LGPD
   ============================================================ */

/* Previne rolagem horizontal acidental em telas estreitas (320px–414px) */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

/* Fix definitivo de botões: texto nunca corta, quebra limpa e área de toque confortável */
.button {
  min-height: 44px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  max-width: 100%;
}

/* Fix definitivo dos campos e checkboxes na Newsletter e Calculadoras */
.toolField input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.toolField select,
.toolField textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.35;
}
.toolCheck {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.toolCheck input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.toolCheck a {
  color: var(--blue);
  text-decoration: underline;
  font-weight: 550;
}

/* Newsletter: proporção equilibrada, pílulas clicáveis sem corte e botão amplo */
.nlBand {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  padding: 36px 34px;
}
.nlCopy { min-width: 0; }
.nlCard {
  padding: 26px;
  min-width: 0;
}
.nlFieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.nlFieldset legend {
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-soft);
  letter-spacing: .02em;
  margin-bottom: 8px;
  padding: 0;
}
.nlChecks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nlCheckPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  line-height: 1.25;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.nlCheckPill:hover { border-color: var(--blue); }
.nlCheckPill:has(input:checked) {
  background: rgba(0, 113, 227, .12);
  border-color: var(--blue);
  color: var(--blue);
}
.nlCheckPill input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.nlSubmitBtn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  padding: 12px 20px;
  margin-top: 4px;
}

/* Pomodoro de Meditação */
.pomoCard { gap: 18px; }
.pomoModeTabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pomoPhaseBadge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.pomoProgressTrack {
  width: min(320px, 100%);
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.pomoProgressFill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #c5905f);
  transition: width .35s var(--ease);
}
.pomoCue {
  margin: 0;
  min-height: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.pomoMainBtn { min-width: 132px; }
.pomoSettings {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.pomoSettingGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pomoLabel {
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.pomoPresetRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pomoAudioBar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.pomoRange {
  width: 100%;
  accent-color: var(--blue);
  cursor: pointer;
  margin: 6px 0;
}

/* Banner LGPD discreto (só exibido se GA4 ou Clarity estiver configurado) */
.pdConsentBar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.pdConsentBar p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1 1 260px;
}
.pdConsentBar a { color: var(--blue); text-decoration: underline; }
.pdConsentBtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pdConsentBtns .button { min-height: 36px; padding: 7px 14px; font-size: 12px; }

/* Hardening Mobile-First (tablets, celulares padrão e telas compactas 320px–420px) */
@media (max-width: 960px) {
  .nlBand { grid-template-columns: 1fr; padding: 28px 24px; gap: 22px; }
}
@media (max-width: 760px) {
  /* Evita zoom automático do iOS Safari ao focar campos */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }
  .toolRow, .toolRow3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .searchInput {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .selectPill { width: 100%; }
  .filterGroup { width: 100%; padding-bottom: 2px; }
  .nlBand { padding: 22px 16px; border-radius: 20px; }
  .nlCard { padding: 18px 16px; }
  .pdConsentBar { bottom: 72px; padding: 14px; }
  .pomoAudioBar { flex-direction: column; align-items: stretch; }
  .pomoAudioBar .button { width: 100%; }
}
@media (max-width: 440px) {
  .heroSearchForm {
    flex-wrap: wrap;
    border-radius: 18px;
    padding: 8px;
    gap: 8px;
  }
  .heroSearchIcon { display: none; }
  .heroSearchInput {
    width: 100%;
    padding: 8px 10px;
  }
  .heroSearchBtn {
    width: 100%;
    border-radius: 12px;
  }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { min-height: 168px; }
  .tileText { left: 14px; right: 14px; bottom: 14px; }
  .tileText h3 { font-size: 16.5px; }
  .termoForm { flex-direction: column; }
  .termoForm .button { width: 100%; }
}
@media (max-width: 350px) {
  .tiles { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

/* Ícone SVG do menu waffle no topo */
.navSvgIcon { display: block; flex-shrink: 0; }

/* ============================================================
   v12 — Menu Waffle (App Launcher organizado em grade)
   ============================================================ */
.pdWaffleModal {
  width: min(720px, 100%);
  border-radius: 22px;
}
.pdWaffleTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.pdWaffleTitle strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.pdWaffleTitle small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.pdWaffleBody {
  padding: 14px 18px 20px;
  max-height: 68vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pdWaffleGroup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdWaffleGroupTitle {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 2px;
}
.pdWaffleGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pdWaffleTile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.pdWaffleTile:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, .38);
  background: var(--surface-alt);
}
.pdWaffleTile.isCurrent {
  border-color: var(--blue);
  background: rgba(0, 113, 227, .09);
}
.pdWaffleIcon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.pdWaffleTile.isCurrent .pdWaffleIcon {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.pdWaffleMeta {
  min-width: 0;
}
.pdWaffleMeta strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.25;
}
.pdWaffleMeta small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdWaffleSearchActions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 600px) {
  .pdOverlay { padding: 4vh 10px 12px; }
  .pdWaffleModal { border-radius: 20px; }
  .pdWaffleTop { padding: 14px 16px 10px; }
  .pdWaffleBody { padding: 12px 14px 18px; max-height: 74vh; }
  .pdWaffleGrid { grid-template-columns: 1fr; }
}

/* ============================================================
   v13 — Xadrez (Temas, Relógio, Animação Soft), Quiz, Termo & Membros
   ============================================================ */
.chessBoardStage {
  position: relative;
  width: 100%;
}
.chessBoard {
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

/* 3 Temas visuais de tabuleiro */
.chessBoard.theme-wood .chessSq.light { background: #f0d9b5; }
.chessBoard.theme-wood .chessSq.dark { background: #b58863; }
.chessBoard.theme-slate .chessSq.light { background: #eceef2; }
.chessBoard.theme-slate .chessSq.dark { background: #6f8296; }
.chessBoard.theme-emerald .chessSq.light { background: #eeeed2; }
.chessBoard.theme-emerald .chessSq.dark { background: #769656; }

/* Peça fantasma para transição visual suave (zero alteração de grid) */
.chessGhostPiece {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 4vw, 38px);
  line-height: 1;
  pointer-events: none;
  z-index: 12;
  font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif;
  font-variant-emoji: text;
  transition: transform .19s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.chessGhostPiece.whitePiece {
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .6), 0 0 1px #000;
}
.chessGhostPiece.blackPiece {
  color: #16181d;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .38);
}

/* Relógios de Xadrez */
.chessClocks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.chessClocksBottom {
  margin-top: 10px;
  margin-bottom: 0;
}
.chessClock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.chessClock.active {
  border-color: var(--blue);
  background: rgba(0, 113, 227, .1);
}
.chessClock.low .chessClockTime {
  color: #dc2626;
}
.chessClockLabel {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.chessClockTime {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
  min-width: 48px;
  text-align: right;
}
.chessEvalTag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.chessSoundBtn {
  height: 32px;
  padding: 0 12px;
}

/* Quiz & Súmula ou Mito — Controles e Barra de Progresso */
.quizControlsBar {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.gameProgressTrack {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 18px;
}
.gameProgressFill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #c5905f);
  transition: width .3s var(--ease);
}

/* Termo Jurídico — Teclado Virtual Interativo */
.termoKeyboard {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 480px;
  margin-inline: auto;
}
.termoKbdRow {
  display: flex;
  justify-content: center;
  gap: 5px;
}
.termoKey {
  flex: 1;
  max-width: 42px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: background .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}
.termoKey:active { transform: scale(.94); }
.termoKeyWide { max-width: 56px; flex: 1.4; }
.termoKey.correct { background: #2a8a55; border-color: #2a8a55; color: #fff; }
.termoKey.present { background: #c5905f; border-color: #c5905f; color: #fff; }
.termoKey.absent { background: #6e6e73; border-color: #6e6e73; color: #fff; opacity: .72; }

/* Área de Membros — Barra de login + FAQ */
.memberTopBar {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.memberTopBar[hidden] { display: none; }
.memberFaq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 28px;
  max-width: 860px;
}
.faqItem {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.faqItem summary {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faqItem summary::-webkit-details-marker { display: none; }
.faqItem p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 600px) {
  .quizControlsBar { grid-template-columns: 1fr; }
  .chessGhostPiece { font-size: clamp(18px, 7.6vw, 30px); }
  .termoKey { min-height: 42px; font-size: 12px; }
}
