/* ===========================================
  Reset / Base CSS (Use no topo do style.css)
  - Modern reset: box-sizing, margin reset, form fixes, image/media defaults, accessibility-friendly focus
  - Comentários explicam cada bloco
=========================================== */

/* 1) Box-sizing: facilita cálculos de largura */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%; /* evita zoom em iOS quando mudar font-size */
  -ms-text-size-adjust: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* 2) Remove margens/paddings default e define base */
:root {
  /* define uma base neutra de tipografia para o reset */
  --base-line-height: 1.5;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  font-size: 100%;
  font-weight: inherit;
  font-style: inherit;
  line-height: var(--base-line-height);
  /* força herança de fonte para elementos form/controls */
  font-family: inherit;
}

/* 3) HTML5 display defaults for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}

/* 4) Body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff; /* sugestão neutra - pode overridear no tema */
  color: inherit;
  line-height: var(--base-line-height);
  -webkit-tap-highlight-color: rgba(0,0,0,0); /* mobile */
}

/* 5) Headings: reset apenas espaçamento; mantêm semântica */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.15;
}

/* 6) Lists */
ol, ul {
  list-style: none;
}

/* 7) Links */
a {
  background-color: transparent;
  color: inherit; /* controle de link via tema */
  text-decoration: none;
}
a:active, a:hover {
  outline: 0;
}

/* 8) Images and media */
img, picture, svg, video, iframe {
  max-width: 100%;
  height: auto;
  display: block; /* evita gaps por inline images */
}
picture, img { display: block; }

/* 9) Responsive embeds (videos, iframes) */
iframe, embed, object, video {
  max-width: 100%;
}

/* 10) Forms: inputs/buttons inherit font and reset inconsistent styles */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-shadow: none;
  vertical-align: middle;
}
textarea { resize: vertical; }

/* 11) Buttons: restore cursor and basic accessibility */
button, [type="button"], [type="reset"], [type="submit"] {
  cursor: pointer;
  background: none;
  border: none;
}
button:disabled, [disabled] {
  cursor: default;
  pointer-events: none;
  opacity: 0.6;
}

/* 12) Inputs: remove clear X on IE/Edge & Safari specifics */
input::-ms-clear, input::-ms-expand { display: none; }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* 13) Fieldset/legend */
fieldset { border: 0; margin: 0; padding: 0; }
legend { display: block; white-space: normal; }

/* 14) Tables */
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
caption { text-align: left; caption-side: top; }

/* 15) Accessibility: focus styles
   - usamos :focus-visible quando disponível; fallback para :focus
   - não removemos outline sem prover substituto */
:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid Highlight; /* browser default color fallback */
  outline-offset: 2px;
  /* opção para developers: substituir por box-shadow no tema principal */
}

/* 16) Reduce motion for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 17) Utility resets often desejados */
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 18) Word-wrap / text-overflow defaults */
p, li, span, a, label {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* 19) Prevent font inflation on iOS when using large text */
@supports (-webkit-touch-callout: none) {
  html { -webkit-text-size-adjust: 100%; }
}

/* 20) Print styles minimal (keep readable) */
@media print {
  * { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  a::after { content: " (" attr(href) ")"; }
  nav, .no-print { display: none !important; }
}

/* 21) Small helpers for predictable layout behavior */
.container, .content {
  box-sizing: border-box;
}

/* 22) Comments e instruções úteis
   - Não sobrescreva o reset: aplique seu estilo em arquivos posteriores.
   - Para focos visuais consistentes, no CSS do tema acrescente:
     :focus-visible { outline: 2px solid var(--cor-primaria); outline-offset: 3px; }
   - Se precisar suportar browser muito antigo, adicione polyfills se necessário.
*/



/* DEFINIÇÕES CONTRA RESET */
.box-conteudo-ctp p { 
    margin-bottom: 16px; 
}

.box-conteudo-ctp strong {
    font-weight: bold;
}

.box-conteudo-ctp em, 
.box-conteudo-ctp i {
    font-style: italic;
}

