@import url("./site.css");

/* Camada de compatibilidade da entrega multipáginas.
   O layout-base permanece no CSS local; Tailwind é carregado em cada HTML. */
:root {
  --font-reference: "Outfit", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[x-cloak] {
  display: none !important;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-width: 320px;
  font-family: var(--font-reference);
  font-size: 16px;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
.brand-name,
.brand-mark,
.testimonial p,
.font-serif,
.font-display {
  font-family: var(--font-reference) !important;
}

.hero h1,
.page-header h1,
.content-flow > h2,
.card-body h2,
.card-body h3,
.site-footer h2,
.site-footer h3 {
  font-family: var(--font-reference) !important;
}

a,
button,
[role="button"],
summary {
  min-width: 44px;
  min-height: 44px;
}

.main-content p > a,
.main-content li > a,
.main-content h2 > a,
.main-content h3 > a,
.breadcrumbs a,
.footer-links a,
.footer-bottom a,
.card-link,
[data-consent-banner] a {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.main-nav a,
.footer-links a,
.card-link {
  display: inline-flex;
  align-items: center;
}

.menu-toggle {
  min-width: 44px;
  min-height: 44px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.85rem;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 0.4rem;
  content: "/";
  opacity: 0.58;
}

.breadcrumbs a {
  color: inherit;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 2.5rem;
}

.faq-item {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  color: var(--green-900);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.8rem 0 1.3rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.table-of-contents {
  margin: 1.5rem 0 2.5rem;
  padding: 1.25rem;
  background: var(--beige);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.table-of-contents h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.table-of-contents ol {
  margin: 0;
  padding-left: 1.25rem;
}

.author-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: 50% 44%;
  border-radius: 50%;
}

.cookie-banner {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  max-width: 980px;
  margin-inline: auto;
  padding: 1rem;
  color: var(--white);
  background: rgba(13, 41, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner a {
  color: #efc6ad;
}

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.6rem;
}

.cookie-button {
  display: inline-flex;
  min-width: 88px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  color: var(--green-950);
  background: var(--copper);
  border: 1px solid var(--copper);
  border-radius: 999px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.cookie-button--secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.consent-hidden {
  display: none !important;
}

.table-wrap {
  max-width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.table-wrap > table {
  min-width: 560px;
}

.placeholder-card {
  border-style: dashed;
}

.placeholder-label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-top: auto;
  padding: 0.25rem 0.6rem;
  color: var(--green-800);
  background: var(--beige);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
}

@media (max-width: 680px) {
  a:not(:has(img)),
  button,
  [role="button"],
  summary {
    display: inline-flex;
    min-width: 44px !important;
    min-height: 44px !important;
    align-items: center;
  }

  p,
  li,
  button,
  time,
  small,
  th,
  td,
  figcaption,
  .text-xs,
  .text-sm,
  .button,
  .eyebrow,
  .main-nav a,
  .footer-links a,
  .site-footer p,
  .breadcrumbs,
  .article-meta,
  .card-price,
  .card-link,
  .demo-note,
  .media figcaption,
  [data-consent-banner] p,
  [data-consent-banner] a,
  [data-consent-banner] button {
    font-size: 1rem !important;
  }

  .cookie-banner__inner,
  .cookie-banner__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-photo {
    width: 80px;
    height: 80px;
  }

  .table-wrap {
    margin-inline: 0;
  }
}
