/* ==========================================================================
   GuiaNF Editorial — Components
   Todos os componentes visuais do design system.
   Extraído de app/globals.css (Next.js) linhas 86-1455.
   ========================================================================== */

/* ==========================================================================
   CONTENT HEADER (header das pages internas)
   ========================================================================== */
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px max(32px, calc((100% - 1280px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.content-header .search-box {
  width: auto;
  min-width: min(300px, 100%);
  min-height: 52px;
  border-radius: 12px;
  box-shadow: none;
  padding: 6px 6px 6px 16px;
}

.content-header .search-box button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: 100%;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 14px max(48px, calc((100% - var(--content-axis)) / 2));
  border: 0;
  border-bottom: 1px solid rgba(11, 59, 73, 0.08);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 22px rgba(17, 55, 66, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-name {
  color: var(--ink-deep);
  font-size: clamp(1.75rem, 2.55vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
}

.brand-name span {
  color: var(--teal);
}

.brand-divider {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink-deep);
}

.brand-subtitle {
  color: #244652;
  font-size: 1.08rem;
  font-weight: 500;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4.65vw, 74px);
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
  color: var(--ink-deep);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 4px;
  left: 50%;
  height: 3px;
  border-radius: 999px;
  background: var(--aqua);
  content: "";
  transition: right 180ms ease, left 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.active::after {
  right: 0;
  left: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions .back-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--aqua-soft);
  color: var(--petrol);
  font-size: 0.9rem;
  font-weight: 750;
  transition: background 180ms ease, transform 180ms ease;
}

.header-actions .back-link:hover,
.header-actions .back-link:focus-visible {
  background: #d4f1ed;
  transform: translateX(-2px);
}

.mobile-menu {
  display: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  width: min(var(--content-axis), calc(100% - 96px));
  min-height: calc(100svh - 84px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0 auto;
  padding: 20px 0 32px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 6;
  align-self: center;
  padding-top: 0;
  animation: hero-in 500ms ease-out both;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(3rem, 4.3vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.14;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-description {
  max-width: 590px;
  margin: clamp(24px, 1.9vw, 30px) 0 clamp(28px, 2.4vw, 38px);
  color: var(--muted);
  font-size: clamp(1rem, 1.28vw, 1.18rem);
  line-height: 1.55;
}

/* ==========================================================================
   SEARCH BOX
   ========================================================================== */
.search-box {
  display: grid;
  width: min(652px, 92%);
  min-height: clamp(70px, 5.8vw, 92px);
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 9px 9px 9px 24px;
  border: 1px solid rgba(11, 59, 73, 0.17);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(17, 55, 66, 0.1);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box:focus-within {
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(41, 195, 176, 0.16), var(--shadow);
}

.search-box svg {
  width: 26px;
  fill: none;
  stroke: #60747d;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.18rem;
}

.search-box input::placeholder {
  color: #71838a;
}

.search-box button {
  width: auto;
  min-height: clamp(54px, 4.55vw, 72px);
  padding: 0 36px;
  border: 0;
  border-radius: 14px;
  background: var(--petrol);
  color: white;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.search-box button:hover,
.search-box button:focus-visible {
  background: var(--petrol-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(7, 51, 65, 0.2);
}

/* ==========================================================================
   QUICK PILLS (cidades)
   ========================================================================== */
.search-quick-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.search-page-pills {
  margin: 0 0 36px;
}

.quick-pill-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 4px;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--petrol);
  font-size: 0.82rem;
  font-weight: 750;
  transition: all 180ms ease;
}

.quick-pill:hover,
.quick-pill:focus-visible {
  border-color: var(--teal);
  background: var(--aqua-soft);
  color: var(--ink-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 139, 137, 0.14);
}

.quick-pill.active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

/* ==========================================================================
   HERO ART (imagem ilustrativa)
   ========================================================================== */
.hero-art {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 0;
  display: block;
  width: min(876px, 55.23vw);
  aspect-ratio: 876 / 520;
  overflow: hidden;
  transform: translateY(-62%) scale(0.75);
  transform-origin: center right;
}

.project-reference-art {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 152px, 72px 152px);
}

/* ==========================================================================
   TOPIC GRID (4 cards temáticos)
   ========================================================================== */
.topic-grid {
  position: relative;
  z-index: 4;
  display: grid;
  width: 100%;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-self: center;
  gap: clamp(11px, 1vw, 16px);
  margin-top: clamp(34px, 3.2vw, 51px);
}

.topic-card {
  position: relative;
  display: grid;
  min-height: clamp(102px, 8.48vw, 131px);
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(10px, 0.92vw, 16px);
  overflow: hidden;
  padding: clamp(13px, 0.96vw, 16px) clamp(46px, 3.36vw, 56px)
    clamp(13px, 0.96vw, 16px) clamp(13px, 0.96vw, 16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(17, 55, 66, 0.08);
  text-decoration: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.topic-card:hover,
.topic-card:focus-visible {
  border-color: currentColor;
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-4px);
}

.topic-icon {
  display: grid;
  width: clamp(51px, 4.5vw, 72px);
  height: clamp(51px, 4.5vw, 72px);
  place-items: center;
  border-radius: 50%;
  background: var(--aqua-soft);
}

.topic-icon svg {
  width: clamp(26px, 2.51vw, 41px);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.topic-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.topic-content strong {
  color: var(--ink-deep);
  font-size: clamp(0.9rem, 1.32vw, 1.31rem);
  line-height: 1.1;
}

.topic-content small {
  color: var(--muted);
  font-size: clamp(0.62rem, 0.82vw, 0.8rem);
  line-height: 1.35;
}

.topic-arrow {
  position: absolute;
  right: -6px;
  bottom: -8px;
  display: grid;
  width: clamp(45px, 3.56vw, 51px);
  height: clamp(45px, 3.56vw, 51px);
  place-items: center;
  border-radius: 50% 0 0 0;
  background: var(--topic-accent);
  color: white;
  font-size: 1.32rem;
  transition: padding-left 180ms ease;
}

.topic-card:hover .topic-arrow,
.topic-card:focus-visible .topic-arrow {
  padding-left: 6px;
}

/* Tone variants */
.topic-card.teal,
.highlight-card.teal {
  --topic-accent: var(--teal);
  color: var(--teal);
}

.topic-card.aqua,
.highlight-card.aqua {
  --topic-accent: var(--aqua);
  color: var(--aqua);
}

.topic-card.coral,
.highlight-card.coral {
  --topic-accent: var(--coral);
  color: var(--coral);
}

.topic-card.orange,
.highlight-card.orange {
  --topic-accent: var(--orange);
  color: var(--orange);
}

.topic-card.coral .topic-icon {
  background: var(--coral-soft);
}

.topic-card.orange .topic-icon {
  background: var(--orange-soft);
}

/* ==========================================================================
   HIGHLIGHTS (destaques da região)
   ========================================================================== */
.highlights {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 24px 110px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
}

.section-heading > a {
  padding-bottom: 6px;
  border-bottom: 2px solid var(--aqua);
  color: var(--petrol);
  font-size: 0.92rem;
  font-weight: 800;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.highlight-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(17, 55, 66, 0.07);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.highlight-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: currentColor;
  content: "";
}

.highlight-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.highlight-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 30px 26px 24px;
}

.highlight-card a:focus-visible {
  border-radius: 20px;
  outline: 3px solid currentColor;
  outline-offset: -4px;
}

.highlight-type {
  margin-bottom: 36px;
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.highlight-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.35;
}

.highlight-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
  color: #6f8187;
  font-size: 0.75rem;
}

/* ==========================================================================
   THEME SECTIONS (seções temáticas)
   ========================================================================== */
.themes {
  display: flex;
  width: min(1380px, calc(100% - 48px));
  flex-direction: column;
  gap: 26px;
  margin: 0 auto;
  padding: 0 24px 110px;
}

.theme-section {
  display: grid;
  scroll-margin-top: 104px;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(36px, 6vw, 90px);
  padding: clamp(36px, 5vw, 70px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, color-mix(in srgb, currentColor 7%, white), white 56%);
  color: var(--teal);
  box-shadow: 0 16px 45px rgba(17, 55, 66, 0.06);
}

.theme-section.teal {
  --section-accent: var(--teal);
  color: var(--teal);
}

.theme-section.aqua {
  --section-accent: var(--aqua);
  color: var(--aqua);
}

.theme-section.coral {
  --section-accent: var(--coral);
  color: var(--coral);
}

.theme-section.orange {
  --section-accent: var(--orange);
  color: var(--orange);
}

.theme-intro {
  position: relative;
}

.theme-intro .eyebrow {
  color: currentColor;
}

.theme-intro h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.theme-intro > p:not(.eyebrow) {
  max-width: 470px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.theme-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--section-accent, var(--teal));
  color: white;
  font-size: 0.88rem;
  font-weight: 850;
  transition: filter 180ms ease, transform 180ms ease;
}

.theme-cta:hover,
.theme-cta:focus-visible {
  filter: brightness(0.93);
  outline: none;
  transform: translateY(-2px);
}

.theme-cta span {
  font-size: 1.25rem;
}

.theme-feed {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.theme-feed > a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 180ms ease, border-color 180ms ease;
}

.theme-feed > a:first-child {
  border-top: 1px solid var(--line);
}

.theme-feed > a:hover,
.theme-feed > a:focus-visible {
  padding-right: 0;
  padding-left: 16px;
  border-color: currentColor;
  outline: none;
}

.feed-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.feed-copy small {
  color: currentColor;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-copy strong {
  color: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.35;
}

.feed-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 12%, white);
  color: currentColor;
  font-size: 1.1rem;
}

/* ==========================================================================
   CONTENT PAGES (listagens e detalhes)
   ========================================================================== */
.content-page {
  min-height: 100vh;
  background: var(--paper);
}

.content-hero,
.post-list,
.post-detail {
  width: min(920px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.content-hero {
  padding: 82px 0 46px;
}

.content-hero h1,
.post-detail h1 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(2.9rem, 6vw, 5.25rem);
  letter-spacing: -.06em;
  line-height: 1;
}

.content-hero > p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.category-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--petrol);
  font-size: .82rem;
  font-weight: 800;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.category-links a:hover,
.category-links a:focus-visible {
  border-color: var(--teal);
  outline: none;
  background: var(--aqua-soft);
  color: var(--ink-deep);
}

/* ==========================================================================
   POST LIST (listagem editorial)
   ========================================================================== */
.post-list {
  padding-bottom: 96px;
}

.post-count {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
}

.post-list-item {
  border-top: 1px solid var(--line);
}

.post-list-item:last-child {
  border-bottom: 1px solid var(--line);
}

.post-list-item a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 29px 8px;
  text-decoration: none;
  transition: padding .18s ease, background .18s ease;
}

.post-list-item a:has(.post-list-thumb) {
  grid-template-columns: 160px 1fr auto;
}

.post-list-item a:hover,
.post-list-item a:focus-visible {
  padding-right: 16px;
  padding-left: 16px;
  outline: none;
  background: rgba(21, 159, 157, .06);
}

.post-list-thumb {
  width: 160px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.post-list-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.post-list-item a:hover .post-list-thumb-img {
  transform: scale(1.05);
}

.post-meta {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.post-meta span { color: #88a3a6; }

.post-list-item h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(1.22rem, 2.4vw, 1.65rem);
  letter-spacing: -.035em;
}

.post-list-item h2 + p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.post-list-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua-soft);
  color: var(--teal);
  font-size: 1.2rem;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--petrol);
  font-size: .9rem;
  font-weight: 800;
}

.pagination > a,
.pagination .page-numbers {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  color: var(--petrol);
}

.pagination .page-numbers.current {
  border-color: var(--teal);
  background: var(--aqua-soft);
}

.pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ==========================================================================
   POST DETAIL (detalhe do artigo)
   ========================================================================== */
.post-detail {
  max-width: 800px;
  padding: 88px 0 112px;
}

.post-detail .post-meta { margin-top: 18px; }

.post-detail h1 {
  margin-top: 18px;
  max-width: 760px;
  font-size: clamp(1.7rem, 3.4vw, 2.89rem);
  line-height: 1.1;
}

.post-lead {
  margin: 27px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.1vw, 1.35rem);
  line-height: 1.6;
}

.post-body {
  margin-top: 40px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.post-body p {
  color: #34525d;
  font-size: 1.05rem;
  line-height: 1.85;
}

.post-featured-image {
  width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 20px;
  object-fit: cover;
}

.return-cta {
  display: inline-block;
  margin-top: 34px;
  padding: 15px 18px;
  border-radius: 12px;
  background: var(--aqua-soft);
  color: var(--petrol);
  font-size: .92rem;
  font-weight: 800;
}

/* ==========================================================================
   WP-CONTENT (conteúdo de posts WordPress)
   ========================================================================== */
.wp-content {
  overflow-wrap: anywhere;
}

.wp-content > :first-child {
  margin-top: 0;
}

.wp-content > :last-child {
  margin-bottom: 0;
}

.wp-content p {
  margin: 1.15em 0;
}

.wp-content h2,
.wp-content h3,
.wp-content h4 {
  margin: 1.7em 0 .55em;
  color: var(--ink-deep);
  letter-spacing: -.025em;
  line-height: 1.2;
}

.wp-content h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.wp-content h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

.wp-content ul,
.wp-content ol {
  margin: 1.35rem 0;
  padding-left: 1.65rem;
  color: #34525d;
  line-height: 1.8;
}

.wp-content ul { list-style: disc; }
.wp-content ol { list-style: decimal; }
.wp-content ul ul { list-style: circle; }
.wp-content ol ol { list-style: lower-alpha; }

.wp-content li {
  padding-left: .3rem;
}

.wp-content li + li {
  margin-top: .55rem;
}

.wp-content li::marker {
  color: var(--teal);
  font-weight: 800;
}

.wp-content li > p {
  margin: .35em 0;
}

.wp-content strong {
  color: var(--ink-deep);
  font-weight: 800;
}

.wp-content a {
  color: var(--teal);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wp-content img,
.wp-content figure,
.wp-content video {
  max-width: 100%;
  height: auto;
}

.wp-content figure {
  margin: 30px 0;
}

.wp-content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

.wp-content blockquote {
  margin: 28px 0;
  padding: 8px 0 8px 24px;
  border-left: 4px solid var(--aqua);
  color: var(--muted);
}

.wp-content hr {
  margin: 2.25rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.wp-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.wp-content th,
.wp-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

/* Directory entries (Guia Comercial) */
.post-detail--directory .wp-content > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.post-detail--directory .wp-content > ul > li {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(17, 55, 66, .06);
}

.directory-entry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.directory-entry-name {
  font-size: 1.08rem;
  line-height: 1.35;
}

.directory-entry-location {
  margin-top: 7px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.directory-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.wp-content .directory-entry-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(21, 159, 157, .28);
  border-radius: 10px;
  background: var(--aqua-soft);
  font-size: .86rem;
  line-height: 1.2;
  text-decoration: none;
}

.wp-content .directory-entry-actions a:hover,
.wp-content .directory-entry-actions a:focus-visible {
  border-color: var(--teal);
  background: #d4f1ed;
  outline: 3px solid rgba(41, 195, 176, .25);
  outline-offset: 2px;
}

/* ==========================================================================
   SEARCH PAGE
   ========================================================================== */
.search-page {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0 96px;
}

.search-page h1 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(2.7rem, 6vw, 5rem);
  letter-spacing: -.06em;
  line-height: 1;
}

.search-page-form {
  width: 100%;
  margin: 34px 0 52px;
}

.search-page-form > span {
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
}

.empty-results {
  margin: 30px 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==========================================================================
   STATUS / 404 PAGE
   ========================================================================== */
.status-page {
  display: grid;
  width: min(680px, calc(100% - 48px));
  min-height: 100vh;
  align-content: center;
  margin: 0 auto;
  padding: 72px 0;
}

.status-page h1 {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--ink-deep);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -.05em;
  line-height: 1.05;
}

.status-page > p:not(.eyebrow) {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.status-actions a,
.status-actions button {
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--petrol);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.status-actions a:hover,
.status-actions a:focus-visible,
.status-actions button:hover,
.status-actions button:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}

/* ==========================================================================
   SERVICE MESSAGE
   ========================================================================== */
.service-message {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(237, 122, 92, .3);
  border-radius: 18px;
  background: #fff5f0;
  color: var(--ink-deep);
}

.service-message strong {
  font-size: 1.08rem;
}

.service-message p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   REGIONAL CTA
   ========================================================================== */
.regional-cta {
  display: flex;
  width: min(1332px, calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 0 auto 96px;
  padding: clamp(36px, 5vw, 68px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 87% 20%, rgba(41, 195, 176, 0.28), transparent 18rem),
    var(--petrol);
  color: white;
}

.regional-cta .eyebrow {
  color: #7be2d3;
}

.regional-cta h2 {
  max-width: 760px;
  margin: 0;
  color: white;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.regional-cta p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: #cbe0e2;
  line-height: 1.7;
}

.regional-cta > a {
  flex: 0 0 auto;
  padding: 18px 24px;
  border-radius: 14px;
  background: var(--aqua);
  color: var(--ink-deep);
  font-weight: 850;
  transition: background 180ms ease, transform 180ms ease;
}

.regional-cta > a:hover,
.regional-cta > a:focus-visible {
  background: white;
  outline: none;
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 72px max(24px, calc((100% - 1280px) / 2)) 26px;
  background: #082b38;
  color: white;
}

.footer-main {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand .brand-name {
  color: white;
}

.footer-brand .brand-divider {
  background: white;
}

.footer-brand .brand-subtitle {
  color: #c9d9dd;
}

.footer-main > p {
  max-width: 460px;
  margin: 0;
  color: #a9c0c6;
  line-height: 1.7;
  text-align: right;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px;
  padding: 52px 0;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links strong {
  margin-bottom: 6px;
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a,
.footer-links span {
  color: #a9c0c6;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #7be2d3;
  outline: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #88a5ad;
  font-size: 0.78rem;
}

.footer-bottom a {
  color: white;
  font-weight: 750;
}

/* ==========================================================================
   RELATED POSTS (Leia Também)
   ========================================================================== */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.related-posts h3 {
  margin: 0 0 24px;
  color: var(--ink-deep);
  font-size: 1.5rem;
  font-weight: 700;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.related-post-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.related-post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.related-post-card-image {
  height: 128px;
  width: 100%;
  overflow: hidden;
}

.related-post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.related-post-card:hover .related-post-card-image img {
  transform: scale(1.05);
}

.related-post-card-body {
  padding: 16px;
}

.related-post-card-body h4 {
  margin: 0;
  color: var(--ink-deep);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-card-body .related-date {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

/* ==========================================================================
   BOTTOM NAV (barra mobile fixa)
   ========================================================================== */
.bottom-nav {
  display: none;
}
