* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #f3f4f6;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f3f4f6;
  color: #1f2937;
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  color: #fff;
  background: #006eff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  width: 100%;
  max-width: 896px;
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-decoration: none;
}

.header-brand img {
  display: block;
  width: auto;
  height: 32px;
  max-width: 100%;
  object-fit: contain;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 8px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}

.header-icon:last-child {
  justify-self: end;
}

.header-icon:hover,
.header-icon:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.category-nav {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(37, 99, 235, 0.2);
  background: #fff;
}

.category-inner {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding: 6px 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.category-inner a {
  display: inline-block;
  padding: 8px 12px;
  color: #4b5563;
  font-size: 14px;
  text-decoration: none;
}

.category-inner a:hover,
.category-inner a:focus-visible {
  color: #006eff;
  outline: none;
}

.header-panel {
  width: 100%;
  padding: 14px max(16px, calc((100vw - 864px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: #005fdc;
}

.header-panel[hidden] {
  display: none;
}

.header-panel > a {
  display: block;
  padding: 10px 2px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.search-row {
  display: flex;
  gap: 8px;
}

.search-row input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 7px;
  background: #fff;
  color: #111827;
}

.search-row button {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #006eff;
  font-weight: 700;
  cursor: pointer;
}

#searchStatus {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 12px;
}

.main-content {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding: 24px 16px;
}

.article-card,
.related-card {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.article-body {
  padding: 24px 32px;
}

.article-kicker {
  margin: 0 0 8px;
  color: #006eff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(1.35rem, 4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
}

.article-lead {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
}

.article-date {
  margin: 0 0 20px;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.45;
}

.article-date i {
  margin-right: 4px;
  color: #006eff;
}

.video-box {
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.06);
}

.video-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.video-ratio iframe,
.video-ratio video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 16px;
  color: #fff;
  border: 0;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.share.facebook { background: #1877f2; }
.share.twitter { background: #1da1f2; }
.share.whatsapp { background: #25d366; }

.article-body h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 20px;
  font-weight: 700;
}

.steps-list {
  margin: 0 0 24px;
  padding-left: 20px;
  color: #374151;
  line-height: 1.7;
}

.steps-list li + li {
  margin-top: 4px;
}

.info-box {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #374151;
  font-size: 14px;
}

.info-box p {
  margin: 0;
}

.info-note {
  margin-top: 8px !important;
  color: #6b7280;
  font-size: 12px;
}

.cta-area {
  padding: 8px 0;
  text-align: center;
}

.main-cta {
  display: inline-flex;
  min-width: 280px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(#1a7fff 0%, #006eff 100%);
  box-shadow: 0 4px 14px rgba(0, 110, 255, 0.35);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.main-cta:hover,
.main-cta:focus-visible {
  filter: brightness(0.96);
  outline: none;
}

.cta-arrow {
  font-size: 13px;
  opacity: 0.8;
}

.cta-area p {
  margin: 12px 0 0;
  color: #9ca3af;
  font-size: 12px;
}

.related-card {
  margin-top: 24px;
  padding: 24px;
}

.related-card h2 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.related-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-card li {
  padding: 12px 8px;
  border-bottom: 1px solid #f3f4f6;
}

.related-card li:last-child {
  border-bottom: 0;
}

.related-card a {
  text-decoration: none;
}

.related-card strong,
.related-card span {
  display: block;
}

.related-card strong {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.related-card span {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

mark.site-search-hit {
  padding: 0 2px;
  border-radius: 2px;
  background: #fff1a8;
  color: inherit;
}

.site-footer {
  margin-top: 40px;
  background: #006eff;
  color: #fff;
}

.footer-inner {
  width: 100%;
  max-width: 896px;
  margin: 0 auto;
  padding: 32px 16px;
  text-align: center;
}

.footer-inner > img {
  display: block;
  width: auto;
  height: 32px;
  margin: 0 auto 16px;
  opacity: 0.95;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 18px;
}

.footer-social a {
  color: #fff;
}

.footer-inner p {
  margin: 0 0 8px;
  font-size: 12px;
  opacity: 0.75;
}

.footer-inner .copyright {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

@media (max-width: 520px) {
  .header-inner {
    min-height: 64px;
    padding-inline: 12px;
  }

  .main-content {
    padding: 24px 15px;
  }

  .article-body {
    padding: 24px 32px;
  }

  .main-cta {
    width: 100%;
    min-width: 0;
    padding-inline: 18px;
  }
}

@media (max-width: 380px) {
  .article-body {
    padding: 22px 24px;
  }
}

@media (min-width: 768px) {
  .article-body {
    padding: 32px;
  }
}

/* Ícones SVG locais: não dependem de fontes externas. */
.icon-svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  overflow: visible;
  vertical-align: -0.125em;
}

.header-icon .icon-svg {
  width: 22px;
  height: 22px;
}

.inline-icon {
  margin-right: 4px;
  color: #006eff;
}

.article-date {
  display: flex;
  align-items: flex-start;
}

.article-date .inline-icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.share .icon-svg {
  width: 15px;
  height: 15px;
}

.main-cta .icon-svg {
  width: 18px;
  height: 18px;
}

.main-cta .cta-arrow {
  width: 15px;
  height: 15px;
}

.footer-social .icon-svg {
  width: 19px;
  height: 19px;
}

/* Mantém o visual dos botões, mas bloqueia qualquer ação de compartilhamento. */
.share:disabled,
.share[aria-disabled="true"] {
  opacity: 1;
  cursor: default;
  filter: none;
}
