/* -------------------------------------------------------- migalhas --- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-block: 1.1rem 0.25rem;
  font-size: 0.78rem;
  color: var(--faint);
}

.breadcrumb a {
  color: var(--muted);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--blue-600);
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 700;
}

.breadcrumb span[aria-hidden="true"] {
  color: #aab6c8;
  font-size: 0.9em;
}

/* ----------------------------------------------------------- hero --- */

.page-hero {
  position: relative;
  padding-block: clamp(1.2rem, 2.6vw, 2.3rem) 0.4rem;
}

.kicker-geo {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.95rem;
  padding: 0.32rem 0.75rem;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--brutal-shadow-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker-tag {
  color: var(--blue-700);
}

.kicker-sep {
  color: var(--rio-gold);
  font-weight: 900;
}

.kicker-coord {
  color: var(--ink-soft);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 24ch;
}

.page-hero .hero-lead {
  margin: 1.1rem 0 0;
}

.page-hero .badge-row {
  margin: 0 0 0.9rem;
}

.hero-lead {
  max-width: 66ch;
  margin: 0.95rem 0 1.25rem;
  font-size: clamp(1.02rem, 0.96rem + 0.22vw, 1.14rem);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.45rem;
  margin-top: 1.35rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 1px 1px 0px var(--ink);
}

.hero-meta .icon {
  width: 15px;
  height: 15px;
  color: var(--blue-600);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--blue-700);
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-ribbon);
}

/* Sobrancelha e título formam um par: o espaço vai para o topo da seção. */
.eyebrow + h2 {
  margin-top: 0;
}
/* Depois da resposta direta, a próxima sobrancelha abre um novo bloco. */
.answer-card + .eyebrow,
.ai-summary-box + .eyebrow {
  margin-top: 2.4rem;
}

main section > .eyebrow:first-child {
  margin-top: clamp(2rem, 4.2vw, 3rem);
}

.grad-text {
  display: inline-block;
  position: relative;
  color: var(--ink);
}

.grad-text::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0.04em;
  height: 0.16em;
  border-radius: 2px;
  background: var(--grad-ribbon);
}

/* capa da home */
.cover {
  margin: 1.8rem 0 0;
}

.cover__frame {
  position: relative;
  overflow: hidden;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--blue-900);
  box-shadow: var(--brutal-shadow-lg);
}

.cover__crosshair {
  position: absolute;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
  pointer-events: none;
  line-height: 1;
}

.cover__crosshair--tl { top: 8px; left: 10px; }
.cover__crosshair--tr { top: 8px; right: 10px; }
.cover__crosshair--bl { bottom: 8px; left: 10px; }
.cover__crosshair--br { bottom: 8px; right: 10px; }

.cover__img {
  width: 100%;
  aspect-ratio: 1600 / 760;
  object-fit: cover;
}

.cover__chip {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  background: rgba(5, 13, 24, 0.88);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cover__chip .icon {
  width: 14px;
  height: 14px;
  color: var(--rio-gold);
}

.cover__river-badge {
  position: absolute;
  bottom: 1.1rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  background: rgba(5, 35, 23, 0.92);
  color: #e6f7ef;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cover__river-badge .icon {
  width: 14px;
  height: 14px;
  color: var(--forest-500);
}

.cover figcaption {
  margin-top: 0.75rem;
  padding-left: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

/* faixas das seções */
.figure {
  margin: 1.5rem 0 1.75rem;
}

.figure img {
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--blue-900);
  box-shadow: var(--brutal-shadow-sm);
}

.figure figcaption {
  margin-top: 0.6rem;
  padding-left: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--faint);
}

.figure.hero-figure img {
  aspect-ratio: 1600 / 760;
}

.figure.section-figure img {
  aspect-ratio: 1600 / 440;
  object-fit: cover;
}

/* --------------------------------------------- resposta direta / GEO --- */

.answer-card {
  position: relative;
  margin: 2rem 0 1.75rem;
  padding: 1.6rem 1.8rem 1.4rem;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow: var(--brutal-shadow);
}

.answer-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad-ribbon);
}

.answer-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1.5px dashed var(--line);
}

.answer-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.answer-card__code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--forest-700);
  background: var(--forest-100);
  padding: 0.15rem 0.5rem;
  border: 1px solid #9ad9b8;
  border-radius: 4px;
}

.answer-card__label .icon {
  width: 17px;
  height: 17px;
  color: var(--blue-600);
}

.answer-card__body {
  max-width: 78ch;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--ink);
  font-weight: 500;
}

.answer-card__body a {
  font-weight: 700;
}

.answer-card .verified-meta {
  margin-top: 0.95rem;
}

.verified-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.32rem 0.68rem;
  border: 1px solid #dbe7fa;
  border-radius: var(--radius-pill);
  background: var(--blue-50);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
}

.verified-meta .icon {
  width: 14px;
  height: 14px;
}

/* alias legado */
.ai-summary-box {
  position: relative;
  margin: 1.5rem 0 0;
  padding: 1.4rem 1.5rem 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grad-panel);
  box-shadow: var(--shadow-md);
}

.ai-summary-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-ribbon);
}

.ai-summary-box strong {
  color: var(--blue-700);
}

/* --------------------------------------------------- cabeçalho de seção --- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin: 3.4rem 0 1.4rem;
  padding-top: 1.8rem;
  border-top: 2.5px solid var(--ink);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-head .eyebrow {
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
}

.section-head > div {
  min-width: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 2px 2px 0px var(--ink);
  transition: all 0.15s ease;
}

.link-arrow .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.link-arrow:hover {
  background: #fdfaf3;
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ink);
  text-decoration: none;
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

/* ----------------------------------------------------------- fatos --- */

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 0.95rem;
  margin: 0 0 2rem;
}

.fact-card,
.fact-grid > div {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.3rem;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--brutal-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fact-card:hover,
.fact-grid > div:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--brutal-shadow);
}

.fact-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1.5px dashed var(--line);
}

.fact-card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--blue-200);
  border-radius: 4px;
}

.fact-card__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f0f4fc;
  color: var(--blue-800);
  border: 1px solid var(--line);
}

.fact-card__icon .icon {
  width: 16px;
  height: 16px;
}

.fact-grid dt {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.3rem;
}

.fact-grid dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

/* ----------------------------------------------------------- cartões --- */

.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.entity-card {
  --pad: 1.3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--brutal-shadow-sm);
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.entity-card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--ink);
  box-shadow: var(--brutal-shadow);
}

.entity-card__media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #e8f0fb 0%, #dce7f7 100%);
}

.entity-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.entity-card:hover .entity-card__media img {
  transform: scale(1.035);
}

.entity-card__media .badge {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  z-index: 2;
  max-width: calc(100% - 1.6rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  text-overflow: ellipsis;
  box-shadow: 0 8px 18px -14px rgba(10, 27, 51, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.entity-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.55rem;
  padding: var(--pad);
}

.entity-card__body > .badge {
  align-self: flex-start;
}

.entity-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.32;
}

.entity-card h3 a {
  color: var(--ink);
}

.entity-card h3 a:hover {
  color: var(--blue-600);
  text-decoration: none;
}

.card-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.entity-card .distance {
  margin: 0.1rem 0;
}

.entity-card .btn {
  margin-top: auto;
  justify-content: space-between;
  width: 100%;
  border-color: var(--line-strong);
  background: #fbfcfe;
  color: var(--blue-700);
  font-size: 0.84rem;
}

.entity-card .btn:hover {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: #fff;
}

.entity-card[data-silo="guia"] .entity-card__body {
  padding-top: 1.35rem;
}

.entity-card[data-silo="guia"]::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  height: 3px;
  background: var(--grad-ribbon);
}
/* ------------------------------------------------- hub de categorias --- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #cfddf3;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.category-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dbe7fa;
  border-radius: 13px;
  background: linear-gradient(150deg, #eef4ff 0%, #e2ecfd 100%);
  color: var(--blue-700);
}

.category-card__icon .icon {
  width: 22px;
  height: 22px;
}

.category-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.category-card__head h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.category-card__activities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-card__activities li {
  padding: 0.14rem 0.46rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.category-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--line-strong);
  color: var(--blue-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.category-card__more .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.category-card:hover .category-card__more .icon {
  transform: translateX(3px);
}

/* atividades típicas da categoria */
.activity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  padding: 0.25rem 0.62rem;
  border: 1px solid #dbe7fa;
  border-radius: var(--radius-pill);
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.74rem;
  font-weight: 700;
}

/* categoria ainda sem fichas */
.empty-state {
  margin: 1.25rem 0 2rem;
  padding: 1.6rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-state h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.empty-state p:not(.eyebrow) {
  max-width: 62ch;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1.1rem 0 0.65rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.95;
}

.badge-Azul {
  border-color: #d3e2fb;
  background: var(--blue-100);
  color: var(--blue-700);
}

.badge-Vermelho {
  border-color: #f7d4da;
  background: var(--red-100);
  color: var(--red-600);
}

.badge-Fluvial,
.badge-Neutro {
  border-color: #dde8f7;
  background: #edf4fe;
  color: #0a4a8f;
}

.badge-Premium {
  border-color: #b9cff7;
  background: var(--blue-900);
  color: #fff;
}

.badge-Premium::before {
  background: var(--red-500);
}

.badge-Legal {
  border-color: #9ad9b8;
  background: #e6f7ee;
  color: #086337;
  font-weight: 800;
}

.badge-Legal::before {
  background: #0d9657;
}

.badge-Score {
  border-color: #f7d794;
  background: #fff8e8;
  color: #8a5300;
  font-weight: 800;
}

.badge-Score::before {
  background: #d98200;
}

.badge-Open {
  border-color: #a3e635;
  background: #f0fdf4;
  color: #15803d;
  font-weight: 800;
}

.badge-Open::before {
  background: #22c55e;
}

.badge-Closed {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
}

.badge-Closed::before {
  background: #f43f5e;
}

.badge-Polo {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.badge-Polo::before {
  background: var(--rio-gold);
}

.entity-card__badge-row {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: calc(100% - 1.6rem);
}

.entity-card__badge-row .badge {
  position: static;
  max-width: 100%;
}

.entity-card__media .badge-Azul::before {
  background: var(--blue-600);
}

.entity-card__media .badge-Vermelho::before {
  background: var(--red-500);
}

.entity-card__media .badge-Fluvial::before,
.entity-card__media .badge-Neutro::before {
  background: #0a7a4f;
}

.entity-card__media .badge-Premium {
  border-color: transparent;
  background: rgba(6, 21, 46, 0.92);
  color: #fff;
}

.entity-card__media .badge-Legal {
  border-color: rgba(154, 217, 184, 0.85);
  background: rgba(230, 247, 238, 0.96);
  color: #086337;
}

.entity-card__media .badge-Score {
  border-color: rgba(247, 215, 148, 0.85);
  background: rgba(255, 248, 232, 0.96);
  color: #8a5300;
}

.distance {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.28rem 0.6rem;
  border: 1px solid #dbe7fa;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.77rem;
  font-weight: 700;
}

.distance .icon {
  width: 15px;
  height: 15px;
}

dl.specs {
  display: grid;
  grid-template-columns: minmax(min-content, auto) minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  margin: 0.1rem 0 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.84rem;
}

dl.specs dt {
  align-self: baseline;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
  max-width: 140px;
  word-break: normal;
  overflow-wrap: break-word;
}

dl.specs dd {
  align-self: baseline;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  word-break: normal;
  overflow-wrap: break-word;
}

/* ----------------------------------------------------------- tabelas --- */

.table-wrap {
  overflow: auto;
  margin: 0 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.table-wrap[role="region"]:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.89rem;
}

caption {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: #f7fafe;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}

th,
td {
  padding: 0.72rem 1.1rem;
  vertical-align: top;
}

thead th {
  border-bottom: 1px solid var(--line);
  background: #f7fafe;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody td {
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

tbody tr:hover td {
  background: #f5f9ff;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td a {
  font-weight: 700;
}

th[scope="col"]:first-child,
td:first-child {
  padding-left: 1.15rem;
}

.table--phones td:nth-child(2) {
  color: var(--blue-700);
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.table--phones td:nth-child(3) {
  white-space: nowrap;
}

/* A ficha técnica já tem título na página: a legenda fica só para leitores de tela. */
.table--specs caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.count {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  vertical-align: middle;
}

.count-pill {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

/* ----------------------------------------------------------- filtros --- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.35rem;
  padding: 0;
  border: 0;
}

.filter-bar label,
.filter-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.filter-bar a:hover {
  border-color: #b9cae4;
  background: #f8fbff;
  color: var(--blue-700);
  text-decoration: none;
}

.filter-bar label:hover {
  border-color: #b9cae4;
  background: #f8fbff;
}

.filter-bar--directory {
  align-items: center;
  padding-top: 0.25rem;
}

.filter-label {
  margin-right: 0.2rem;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-bar label:has(input:checked),
.filter-bar a[aria-current="page"],
.filter-bar a[aria-current="true"] {
  border-color: var(--blue-600);
  background: linear-gradient(180deg, #1a5fe0 0%, #0f4cbf 100%);
  color: #fff;
  box-shadow: 0 10px 20px -16px rgba(15, 76, 191, 0.95);
}

.filter-bar label:has(input:checked) .count,
.filter-bar a[aria-current="page"] .count,
.filter-bar a[aria-current="true"] .count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.filter-bar input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.filter-bar label:has(input:focus-visible) {
  outline: 3px solid var(--blue-700);
  outline-offset: 2px;
}

main:has(#f-lancha:checked) .entity-card:not([data-sub="lancha-rapida"]) {
  display: none;
}

main:has(#f-barco:checked) .entity-card:not([data-sub="barco-regional"]) {
  display: none;
}

main:has(#f-azul:checked) .entity-card:not([data-side="Azul"]) {
  display: none;
}

main:has(#f-vermelho:checked) .entity-card:not([data-side="Vermelho"]) {
  display: none;
}

/* ------------------------------------------------------------ botões --- */

/* Em telas estreitas, tabelas de rotas viram fichas empilhadas (sem rolagem lateral). */
@media (max-width: 720px) {
  .table--stack {
    display: block;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .table--stack table,
  .table--stack tbody,
  .table--stack tr,
  .table--stack td {
    display: block;
    width: 100%;
  }

  .table--stack caption {
    display: block;
    width: 100%;
    margin-bottom: 0.6rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.7rem;
  }

  .table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .table--stack tr {
    margin-bottom: 0.6rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
  }

  .table--stack tbody tr:nth-child(even) td,
  .table--stack tbody tr:hover td {
    background: transparent;
  }

  .table--stack td {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.32rem 0;
    border: 0;
    font-size: 0.86rem;
  }

  .table--stack td::before {
    content: attr(data-label);
    color: var(--faint);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.8;
    text-transform: uppercase;
  }

  .table--stack td:first-child {
    display: block;
    margin-bottom: 0.35rem;
    padding: 0 0 0.55rem;
    border-bottom: 1px dashed var(--line-strong);
    font-size: 0.95rem;
    font-weight: 700;
  }

  .table--stack td:first-child::before {
    display: none;
  }

  .table--stack td:last-child {
    padding-bottom: 0;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.52rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 2px 2px 0px var(--ink);
  transition: all 0.15s ease;
}

.btn:hover {
  border-color: var(--ink);
  background: #ffffff;
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ink);
  text-decoration: none;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px var(--ink);
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-primary {
  border-color: #051428;
  background: linear-gradient(135deg, #1253d4 0%, #0d3b8f 100%);
  color: #fff;
  box-shadow: 2px 2px 0px #051428;
}

.btn-primary:hover {
  border-color: #051428;
  background: linear-gradient(135deg, #1f6ff0 0%, #1253d4 100%);
  color: #fff;
  box-shadow: 3px 3px 0px #051428;
}

.btn-wa {
  border-color: #052418;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 2px 2px 0px #052418;
}

.btn-wa:hover {
  border-color: #052418;
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #fff;
  box-shadow: 3px 3px 0px #052418;
}

.btn-wa .icon {
  width: 18px;
  height: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.35rem 0 2rem;
}

.cta-row .btn-wa {
  width: auto;
  margin-top: 0;
}

/* ----------------------------------------------------------- acordeão --- */

details {
  position: relative;
  margin-bottom: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

details[open] {
  border-color: #d3e0f5;
  box-shadow: var(--shadow-sm);
}

summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.95rem 3.3rem 0.95rem 1.15rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "";
  position: absolute;
  right: 0.7rem;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--blue-50);
  transition: background-color 0.18s ease;
}

summary::after {
  content: "";
  position: absolute;
  right: 1.13rem;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid var(--blue-700);
  border-bottom: 2px solid var(--blue-700);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

details[open] summary::before {
  background: var(--blue-600);
}

details[open] summary::after {
  margin-top: -2px;
  border-color: #fff;
  transform: rotate(-135deg);
}

details p {
  max-width: 80ch;
  padding: 0 1.15rem 1.05rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

details p a {
  font-weight: 700;
}

/* ------------------------------------------------------------ listas --- */

.plain-list {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.55;
}

.plain-list li a {
  font-weight: 700;
}

.plain-list li:hover {
  border-color: #d3e0f3;
}

.plain-list--grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.plain-list--grid li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.plain-list--grid li a::after {
  content: "→";
  margin-left: 0.5rem;
  color: var(--blue-500);
  font-weight: 700;
}

.methodology-section {
  margin: 2.8rem 0 2rem;
}

.methodology-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
}

.methodology-stamp {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  color: var(--forest-700);
}

.steps {
  display: grid;
  gap: 0.95rem;
  margin: 1.25rem 0 1.85rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.4rem 1.25rem 4.7rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.62;
  counter-increment: step;
  box-shadow: var(--brutal-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.steps li:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--brutal-shadow);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 2px 2px 0px var(--ink);
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--blue-700);
}

.step-tag .icon {
  width: 14px;
  height: 14px;
}

.steps strong {
  color: var(--ink);
  font-weight: 800;
}

/* -------------------------------------------------- artigo / guia --- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 68ch) minmax(250px, 290px);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  justify-content: center;
  margin-top: 0.75rem;
}

.article-rail {
  position: sticky;
  top: 9.5rem;
  display: grid;
  gap: 1rem;
}

.toc {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.toc .eyebrow {
  margin-bottom: 0.7rem;
}

.toc ol {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 0.55rem;
  padding: 0.42rem 0;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.4;
}

.toc li:first-child a {
  border-top: 0;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  color: var(--blue-500);
  font-size: 0.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding-top: 0.1rem;
}

.toc a:hover {
  color: var(--blue-700);
  text-decoration: none;
}

.rail-cta {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #f4f8ff 0%, #ffffff 60%);
  box-shadow: var(--shadow-xs);
}

.rail-cta .eyebrow {
  margin-bottom: 0.45rem;
}

.rail-cta p {
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.rail-cta .btn {
  width: 100%;
  font-size: 0.83rem;
}

.rail-cta .btn + .btn {
  margin-top: 0.45rem;
}

.guide-body {
  max-width: none;
  min-width: 0;
  color: #1e2e47;
  font-size: 1.015rem;
  line-height: 1.78;
}

.guide-body p {
  margin-bottom: 1.1rem;
}

.guide-body h2 {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.25rem, 1.08rem + 0.7vw, 1.6rem);
}

.guide-body h3 {
  margin: 1.9rem 0 0.6rem;
  font-size: 1.12rem;
}

.guide-body ul,
.guide-body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.3rem;
}

.guide-body li {
  margin-bottom: 0.4rem;
}

.guide-body a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 76, 191, 0.32);
  text-underline-offset: 0.18em;
}

.guide-body a:hover {
  text-decoration-color: currentColor;
}

.guide-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.3rem;
  border-left: 3px solid var(--red-500);
  border-radius: 0 12px 12px 0;
  background: var(--red-50);
  color: var(--ink-soft);
}

.guide-body blockquote p:last-child {
  margin-bottom: 0;
}

.guide-body img {
  margin: 1.5rem 0;
  border-radius: 14px;
}

.guide-body table {
  margin-bottom: 1.5rem;
  width: 100%;
  border-collapse: collapse;
}

.guide-body table th,
.guide-body table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  font-size: 0.91rem;
}

.guide-body table th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.guide-body table tbody tr:nth-child(even) {
  background: var(--surface-subtle);
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.guide-table-wrap table {
  margin-bottom: 0;
  border: none;
}

.guide-figure {
  margin: 1.8rem 0;
  padding: 1.25rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  text-align: center;
}

.guide-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.guide-grid-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1.15rem;
  margin: 1.6rem 0;
}

.guide-vessel-card {
  padding: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--brutal-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.guide-vessel-card--speed {
  border-top: 5px solid var(--blue-600);
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--surface) 38%);
}

.guide-vessel-card--regional {
  border-top: 5px solid var(--red-500);
  background: linear-gradient(180deg, var(--red-50) 0%, var(--surface) 38%);
}

.guide-vessel-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}

.guide-vessel-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.guide-callout {
  position: relative;
  margin: 1.8rem 0;
  padding: 1.2rem 1.35rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--brutal-shadow-sm);
}

.guide-callout--alert {
  border-left: 6px solid var(--red-500);
  background: linear-gradient(135deg, var(--red-50) 0%, var(--surface) 65%);
}

.guide-callout--info {
  border-left: 6px solid var(--blue-600);
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--surface) 65%);
}

.guide-callout--verified {
  border-left: 6px solid var(--forest-700);
  background: linear-gradient(135deg, var(--forest-100) 0%, var(--surface) 65%);
}

.guide-callout__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.guide-callout p:last-child {
  margin-bottom: 0;
}

.guide-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.guide-badge-pill--azul {
  background: var(--blue-100);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
}

.guide-badge-pill--vermelho {
  background: var(--red-100);
  color: var(--red-700);
  border: 1px solid var(--red-200);
}

.guide-badge-pill--branco {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.guide-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin: 1.4rem 0;
}

.guide-stat-box {
  padding: 0.85rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface-subtle);
  text-align: center;
}

.guide-stat-box__val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--blue-700);
  line-height: 1.2;
}

.guide-stat-box__label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

.guide-body code {
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  font-size: 0.88em;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  margin: 0.35rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.byline span + span {
  padding-left: 0.9rem;
  border-left: 1px solid var(--line-strong);
}

.byline strong {
  color: var(--ink);
  font-weight: 700;
}

/* ------------------------------------------- transparência e citações --- */

.cite-block {
  position: relative;
  margin: 3rem 0 1rem;
  padding: 1.4rem 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.cite-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad-ribbon);
}

.cite-block::after {
  content: "\201C";
  position: absolute;
  top: -1.1rem;
  right: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(15, 76, 191, 0.08);
  pointer-events: none;
}

.cite-block h2 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.cite-text {
  position: relative;
  z-index: 1;
  max-width: 88ch;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.62;
}

.cite-text cite {
  font-style: normal;
}

.cite-block .muted {
  position: relative;
  z-index: 1;
  margin-top: 0.6rem;
  font-size: 0.82rem;
}

.co-citation {
  margin: 2rem 0 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--grad-panel);
  box-shadow: var(--shadow-xs);
}

.co-citation h2 {
  margin: 0 0 0.35rem;
  font-size: 1.16rem;
}

.co-citation .muted {
  max-width: 80ch;
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.partner-list li {
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.partner-list li:hover {
  transform: translateY(-1px);
  border-color: #cfddf3;
  box-shadow: var(--shadow-sm);
}

.partner-list a {
  display: block;
  color: var(--blue-700);
  font-size: 0.875rem;
  font-weight: 700;
}

.partner-list span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.editorial-citation {
  position: relative;
  margin: 1.75rem 0;
  padding: 1.1rem 1.3rem 1.1rem 1.45rem;
  overflow: hidden;
  border: 1px solid #f6d7dd;
  border-radius: var(--radius);
  background: var(--red-50);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.editorial-citation::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red-500), var(--blue-600));
}

.editorial-citation strong {
  color: var(--red-700);
}

.editorial-citation small {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ------------------------------------------------------------ galeria --- */

.gallery {
  display: flex;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0 0 0.7rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery img {
  flex: 0 0 min(92%, 780px);
  height: 340px;
  border: 1px solid rgba(10, 27, 51, 0.09);
  border-radius: var(--radius);
  background: var(--bg-soft);
  object-fit: cover;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
}

.entity-photo {
  width: 100%;
  max-height: 380px;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.card-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
}

/* ------------------------------------------------------------- modal --- */

[popover] {
  position: relative;
  width: min(640px, calc(100% - 2rem));
  max-height: min(86vh, 760px);
  margin: auto;
  padding: 1.6rem 1.7rem;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px -15px rgba(4, 12, 26, 0.45), 0 0 0 1px rgba(10, 27, 51, 0.08);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              overlay 0.22s allow-discrete,
              display 0.22s allow-discrete;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
}

[popover]:popover-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  [popover]:popover-open {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
}

#modal-mapa-ilha {
  width: min(720px, calc(100% - 2rem));
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.modal-close:hover {
  background: var(--bg-soft);
  color: var(--ink);
  transform: scale(1.05);
}

.modal-close .icon {
  width: 18px;
  height: 18px;
}

[popover]::backdrop {
  background: rgba(4, 12, 26, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.22s ease, overlay 0.22s allow-discrete, display 0.22s allow-discrete;
  opacity: 0;
}

[popover]:popover-open::backdrop {
  opacity: 1;
}

@starting-style {
  [popover]:popover-open::backdrop {
    opacity: 0;
  }
}

.modal-title {
  margin-bottom: 0.9rem;
  padding-right: 2.6rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.map-sub {
  margin: -0.55rem 0 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.island-map {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: #061426;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.map-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.map-dot--azul {
  background: var(--blue-600);
}

.map-dot--vermelho {
  background: var(--red-500);
}

.map-dot--arena {
  background: #fff;
  border: 2px solid var(--ink);
}

.map-dot--divisa {
  width: 15px;
  height: 0;
  border-top: 2px dashed var(--ink-soft);
  border-radius: 0;
}

.map-note {
  margin: -0.4rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------- forms --- */

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.32rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.field input[type="text"],
.field input[type="number"],
.field input[type="url"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="search"],
.field input[type="file"],
.field select,
.field textarea,
.conta-form input[type="text"],
.conta-form input[type="number"],
.conta-form input[type="email"],
.conta-form input[type="password"],
.conta-form input[type="tel"],
.conta-form select,
.conta-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.58rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.93rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea,
.conta-form textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.conta-form input:focus,
.conta-form select:focus,
.conta-form textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(15, 76, 191, 0.2), inset 0 0 0 1px var(--blue-600);
}

.field input[type="file"] {
  padding: 0.5rem;
  font-size: 0.85rem;
}

.field input:disabled,
.field input[readonly] {
  background: var(--bg-soft);
  color: var(--muted);
}

.field .help,
.help {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.field-error {
  margin-top: 0.25rem;
  color: var(--red-600);
  font-size: 0.78rem;
  font-weight: 700;
}

.field-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.field-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue-600);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.flash {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.89rem;
  font-weight: 600;
}

.flash-ok {
  border-color: #b7e4cc;
  background: #effaf4;
  color: #0a6b40;
}

.flash-erro {
  border-color: #f6c9d1;
  background: var(--red-50);
  color: var(--red-700);
}

.status {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.status-pendente {
  background: #fdf1d8;
  color: #8a5a00;
}

.status-aprovado {
  background: #e6f7ee;
  color: #0a6b40;
}

.status-rejeitado {
  background: var(--red-100);
  color: var(--red-700);
}
.status-novo {
  background: var(--blue-100);
  color: var(--blue-700);
}

.status-em_analise {
  background: #fdf1d8;
  color: #8a5a00;
}

.status-concluido {
  background: #e6f7ee;
  color: #0a6b40;
}

.status-recusado {
  background: var(--red-100);
  color: var(--red-700);
}

/* canal de privacidade (LGPD) */
.privacy-channel {
  margin: 1.4rem 0 1.75rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #dbe7fa;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #f4f8ff 0%, #ffffff 75%);
}

.privacy-channel .eyebrow {
  margin-bottom: 0.45rem;
}

.privacy-channel p {
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.privacy-channel p:last-of-type {
  margin-bottom: 1rem;
}

.privacy-channel .btn {
  margin-right: 0.4rem;
}

.request-protocol {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.55rem 1rem;
  border: 1px dashed var(--blue-200);
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* admin: fila de solicitações de titulares */
.status-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.status-form select {
  min-height: 34px;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.8rem;
}

.status-form .btn {
  min-height: 34px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
}

.request-details td {
  padding-top: 0 !important;
  background: #fbfcfe !important;
}

.request-details details {
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.request-details summary {
  min-height: 40px;
  padding: 0.6rem 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.request-details p {
  padding: 0 0 0.6rem;
  max-width: 80ch;
}

/* ------------------------------------------------- segurança / golpes --- */

.safety-note {
  display: flex;
  gap: 0.85rem;
  margin: 1.4rem 0 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid #dbe7fa;
  border-radius: 14px;
  background: linear-gradient(160deg, #f4f8ff 0%, #ffffff 70%);
}

.safety-note__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
}

.safety-note__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.safety-note__title {
  margin-bottom: 0.2rem !important;
  color: var(--blue-700) !important;
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.safety-note__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  color: var(--blue-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.safety-note__link .icon {
  width: 14px;
  height: 14px;
}

.safety-note--alert {
  border-color: #f6d7dd;
  background: linear-gradient(160deg, var(--red-50) 0%, #ffffff 75%);
}

.safety-note--alert .safety-note__icon {
  background: var(--red-100);
  color: var(--red-600);
}

.safety-note--alert .safety-note__title,
.safety-note--alert .safety-note__link {
  color: var(--red-600) !important;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.safety-card {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid #f4dbe0;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--red-50) 0%, #ffffff 80%);
}

.safety-card .icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  color: var(--red-600);
}

.safety-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.checklist,
.never-list {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.checklist .icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 0.15rem;
  color: var(--blue-600);
}

.never-list {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.never-list li {
  display: flex;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.never-list .icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
  color: var(--red-600);
}
/* ------------------------------------------------------------ rodapé --- */

.site-footer {
  position: relative;
  margin-top: 4.5rem;
  padding-bottom: 2rem;
  background: linear-gradient(180deg, #051020 0%, #030812 100%);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  border-top: 2px solid #000;
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--grad-ribbon);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: 2.25rem;
  padding-block: 3.2rem 2.25rem;
}

.footer-brand .brand {
  margin-bottom: 0.85rem;
}

.footer-brand p {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-brand .verified-meta {
  margin-top: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--rio-sand);
  font-family: var(--font-mono);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.6);
}

.footer-title {
  margin-bottom: 0.85rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--rio-gold);
}

.footer-cta {
  padding: 1.2rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.6);
}

.footer-cta .footer-title {
  margin-bottom: 0.45rem;
  color: var(--rio-gold);
}

.footer-cta p {
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.83rem;
  line-height: 1.55;
}

.footer-cta .btn {
  width: 100%;
  min-height: 42px;
  border: 2px solid #000;
  border-radius: 6px;
  background: #fff;
  color: #050d18;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 2px 2px 0px var(--rio-gold);
}

.footer-cta .btn:hover {
  background: #fbf7ee;
  color: #050d18;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--rio-gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 0.45rem;
  font-size: 0.76rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
  color: #fff;
}

/* documento legal reaproveita a coluna de leitura dos guias */
.legal-body h2 {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
}

.legal-body h2:first-child {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: 0;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.legal-body code {
  font-size: 0.86em;
}
.footer-credits {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.74rem;
  line-height: 1.5;
}

.footer-note {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
}

/* ------------------------------------------------ compat: conta/admin --- */

.conta-card {
  max-width: 560px;
  margin: 1.25rem auto 2rem;
  padding: 1.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.conta-card h1 {
  font-size: 1.65rem;
}

.conta-card .btn {
  margin-top: 0.35rem;
}

.conta-form .field {
  margin-bottom: 0.9rem;
}

.conta-form label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.conta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.4rem 0 1.25rem;
}

.conta-top h1 {
  font-size: 1.8rem;
}

.conta-top form {
  margin: 0;
}

.conta-entity {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.conta-entity img {
  width: 104px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
}

.conta-entity .info {
  flex: 1 1 240px;
}

.conta-entity h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.conta-entity .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.conta-entity .muted {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
}

.photo-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.photo-item {
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.photo-item img {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
}

.photo-item .btn {
  min-height: 34px;
  font-size: 0.78rem;
}

/* admin: página autônoma */
body.admin {
  background: var(--bg);
  background-image: none;
}

.admin-bar {
  position: relative;
  color: #fff;
  background: var(--grad-ink);
}

.admin-bar::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--grad-ribbon);
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 66px;
  padding-block: 0.7rem;
}

.admin-header .brand {
  font-size: 1.05rem;
}

.admin-header .brand .icon {
  width: 20px;
  height: 20px;
}

.admin-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
}

.admin-user form {
  margin: 0;
}

.admin-user .btn {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 0.8rem;
}

.admin-user .btn:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.admin-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin: 1.25rem 0;
}

.admin-nav a {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.81rem;
  font-weight: 700;
}

.admin-nav a:hover {
  border-color: #b9cae4;
  color: var(--blue-700);
  text-decoration: none;
}

.admin-nav a[aria-current="page"],
.admin-nav a[aria-current="true"] {
  border-color: var(--blue-600);
  background: linear-gradient(180deg, #1a5fe0 0%, #0f4cbf 100%);
  color: #fff;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-card {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.admin-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad-ribbon);
}

.admin-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.admin-card span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.admin-form {
  max-width: 860px;
}

.admin-form .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.admin-form > .field,
.admin-form .row .field {
  margin-bottom: 0.85rem;
}

.audit-list {
  padding: 0;
  font-size: 0.85rem;
  list-style: none;
}

.audit-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.audit-list small {
  color: var(--faint);
}

.login-wrap {
  max-width: 420px;
  margin: 6vh auto 0;
  padding: 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.login-wrap h1 {
  margin-bottom: 1.1rem;
  font-size: 1.5rem;
}

.login-wrap .field {
  margin-bottom: 1rem;
}

.login-hint {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

.danger-box {
  padding: 1.1rem 1.25rem;
  border: 1px solid #f6c9d1;
  border-radius: var(--radius);
  background: var(--red-50);
}

.danger-box p {
  margin-bottom: 0.9rem;
  color: var(--red-700);
}

.form-footer .btn-danger {
  border-color: var(--red-600);
  background: var(--red-600);
  color: #fff;
}

/* ------------------------------------------------------------ tablet --- */

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .footer-cta {
    grid-column: 1 / -1;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-rail {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header__bar {
    min-height: 66px;
  }

  .hero-meta {
    gap: 0.4rem 1rem;
  }

  .cover__img {
    aspect-ratio: 1600 / 900;
  }
}

/* ----------------------------------------------------------- celular --- */

@media (max-width: 720px) {
  :root {
    --fs-h1: clamp(1.95rem, 1.35rem + 3.6vw, 2.6rem);
    --radius-lg: 18px;
  }

  .site-header__bar {
    gap: 0.7rem;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand__text small {
    display: none;
  }

  .site-header__actions {
    gap: 0.4rem;
  }

  .site-header__actions .btn {
    min-height: 40px;
    padding: 0.45rem 0.75rem;
  }

  .site-header .search-form {
    display: none;
  }

  .site-header .search-toggle {
    display: inline-flex;
    width: 40px;
    padding: 0;
  }

  .site-header__actions .btn-ghost-invert {
    width: 40px;
    padding: 0;
  }

  .site-header__actions .map-label {
    display: none;
  }

  .nav-hint {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: #0b1f3a;
    color: #fff;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .nav-hint .icon {
    width: 15px;
    height: 15px;
  }

  .site-nav__inner {
    gap: 0.25rem 1.1rem;
  }

  .site-nav {
    position: relative;
  }

  .site-nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.75rem;
    background: linear-gradient(90deg, rgba(8, 26, 50, 0), #081a32);
    pointer-events: none;
  }

  .site-nav a {
    min-height: 44px;
    font-size: 0.82rem;
  }

  .site-nav a .icon {
    width: 15px;
    height: 15px;
  }

  .breadcrumb {
    padding-block: 0.9rem 0.15rem;
    font-size: 0.74rem;
  }

  .page-hero h1 {
    max-width: none;
  }

  .cover__img {
    aspect-ratio: 4 / 3;
  }

  .cover__chip {
    top: 0.7rem;
    left: 0.7rem;
    font-size: 0.7rem;
  }

  .answer-card {
    padding: 1.15rem 1.15rem 1rem;
  }

  .answer-card__body {
    font-size: 0.97rem;
  }

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

  .section-head {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }

  .section-head h2 {
    font-size: 1.45rem;
  }

  .entity-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .entity-card {
    --pad: 1.1rem;
  }

  .gallery img {
    height: 230px;
  }

  th,
  td {
    padding: 0.6rem 0.8rem;
  }

  caption {
    padding: 0.7rem 0.9rem;
  }

  th[scope="col"]:first-child,
  td:first-child {
    padding-left: 0.9rem;
  }

  table {
    font-size: 0.84rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    padding-block: 2.25rem 1.75rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-cta {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .conta-card {
    padding: 1.35rem;
  }

  .conta-top h1 {
    font-size: 1.55rem;
  }

  .cta-row .btn {
    flex: 1 1 auto;
  }

  .admin-header {
    gap: 0.5rem;
  }

  .admin-user {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .entity-card .badge {
    max-width: calc(100% - 1.2rem);
  }

  .hero-meta {
    font-size: 0.76rem;
  }

  .cta-label {
    display: none;
  }

  .site-header__actions .btn-solid-invert {
    width: 40px;
    padding: 0;
  }
}

/* ------------------------------------------------- navbar fixa no desktop --- */

@media (min-width: 980px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

/* ==========================================================================
   Evolução Mobile-First & Identidade Tricolor (Azul · Branco · Vermelho)
   Zero-JS: :has(), popover="auto", <search>, <datalist>, <meter>, <details>
   ========================================================================== */

.header-search {
  display: flex;
  flex: 1 1 300px;
  max-width: 460px;
  min-width: 0;
}

.header-search .search-form {
  width: 100%;
}

/* Botão SOS no Header */
.btn-sos-header,
.site-header .btn-sos-header {
  border-color: rgba(255, 110, 130, 0.45);
  background: linear-gradient(180deg, #d0142f 0%, #a50e25 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 18px -12px rgba(208, 20, 47, 0.9);
}

.btn-sos-header:hover,
.site-header .btn-sos-header:hover {
  border-color: #ff99a8;
  background: linear-gradient(180deg, #e01936 0%, #b00f28 100%);
  color: #fff;
}

.eyebrow--red {
  color: var(--red-600);
}

.eyebrow--red::before {
  background: linear-gradient(90deg, var(--red-600), var(--red-500));
}

/* Cartões de entidade com assinatura por lado da ilha (Azul, Vermelho, Neutro) */
.entity-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-ribbon);
  opacity: 0.85;
  pointer-events: none;
}

.entity-card[data-side="Azul"]::after {
  background: linear-gradient(90deg, var(--blue-700), var(--blue-400));
}

.entity-card[data-side="Vermelho"]::after {
  background: linear-gradient(90deg, var(--red-600), #ff4760);
}

.entity-card[data-side="Azul"]:hover {
  border-color: var(--blue-200);
  box-shadow: 0 20px 42px -26px rgba(15, 76, 191, 0.45);
}

.entity-card[data-side="Vermelho"]:hover {
  border-color: #f5b9c3;
  box-shadow: 0 20px 42px -26px rgba(208, 20, 47, 0.35);
}

.entity-card[data-side="Vermelho"] .btn:hover {
  border-color: var(--red-600);
  background: var(--red-600);
  color: #fff;
}

/* Divisor Marajoara / Grafismo Indígena Tupinambarana */
.indigenous-ribbon {
  display: block;
  width: 100%;
  height: 14px;
  margin: 2.8rem 0 2rem;
  color: var(--rio-gold);
}

/* Bússola Cultural Interativa (Azul × Branco × Vermelho sem JS) */
.duality-compass {
  position: relative;
  margin: 2.5rem 0 2.2rem;
  padding: clamp(1.4rem, 3.4vw, 2.2rem);
  overflow: hidden;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background:
    radial-gradient(42rem 22rem at 0% 0%, rgba(18, 83, 212, 0.10), transparent 65%),
    radial-gradient(42rem 22rem at 100% 0%, rgba(214, 20, 52, 0.09), transparent 65%),
    var(--surface);
  box-shadow: var(--brutal-shadow-lg);
}

.duality-compass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad-ribbon);
}

.duality-compass__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.duality-compass__header h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.duality-compass__header .muted {
  max-width: 68ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.btn-compass-map {
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--brutal-shadow-sm);
}

.btn-compass-map:hover {
  background: #fdfaf3;
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ink);
}

/* Abas da Bússola */
.compass-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.compass-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--brutal-shadow-sm);
  transition: all 0.15s ease;
}

.compass-tab:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ink);
}

.compass-tab input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.compass-tab:has(input:focus-visible) {
  outline: 3px solid var(--blue-700);
  outline-offset: 2px;
}

.compass-tab__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.compass-tab__dot--tricolor {
  background: linear-gradient(135deg, var(--blue-600) 0%, #fff 50%, var(--red-500) 100%);
  border: 1px solid var(--ink);
}

.compass-tab__dot--azul {
  background: var(--blue-600);
  border: 1px solid var(--blue-900);
}

.compass-tab__dot--branco {
  background: #fff;
  border: 2px solid var(--ink);
}

.compass-tab__dot--vermelho {
  background: var(--red-500);
  border: 1px solid var(--red-700);
}

.compass-tab--all:has(input:checked) {
  border-color: var(--ink);
  background: #051020;
  color: #fff;
  box-shadow: 3px 3px 0px var(--ink);
}

.compass-tab--azul:has(input:checked) {
  border-color: var(--ink);
  background: #1253d4;
  color: #fff;
  box-shadow: 3px 3px 0px var(--ink);
}

.compass-tab--branco:has(input:checked) {
  border-color: var(--ink);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 3px 3px 0px var(--ink);
}

.compass-tab--vermelho:has(input:checked) {
  border-color: var(--ink);
  background: #d61434;
  color: #fff;
  box-shadow: 3px 3px 0px var(--ink);
}

/* Painéis da Bússola */
.compass-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.compass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--brutal-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.compass-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--brutal-shadow);
}

.compass-card--azul {
  border-top: 6px solid #1253d4;
  background: linear-gradient(180deg, #f2f7ff 0%, #ffffff 40%);
}

.compass-card--branco {
  border-top: 6px solid #050d18;
  background: linear-gradient(180deg, #fafbfe 0%, #ffffff 40%);
}

.compass-card--vermelho {
  border-top: 6px solid #d61434;
  background: linear-gradient(180deg, #fff3f5 0%, #ffffff 40%);
}

.compass-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.compass-card__territory-tag {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.territory-emblem {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.compass-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.compass-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.compass-stats {
  display: grid;
  gap: 0.65rem;
  margin: 0.2rem 0 0.4rem;
  padding-top: 0.8rem;
  border-top: 1.5px dashed var(--line);
}

.compass-stats dt {
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compass-stats dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.2rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

meter {
  width: 96px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #eef2f8;
  vertical-align: middle;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: #eef2f8;
}

.compass-card--azul meter::-webkit-meter-optimum-value,
.modal-compare__card--blue meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: #1253d4;
}

.compass-card--branco meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: #050d18;
}

.compass-card--vermelho meter::-webkit-meter-optimum-value,
.modal-compare__card--red meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: #d61434;
}

.btn-compass-blue,
.btn-compass-white,
.btn-compass-red {
  margin-top: auto;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 2px 2px 0px var(--ink);
  transition: all 0.15s ease;
}

.btn-compass-blue {
  background: #1253d4;
  color: #fff;
}

.btn-compass-blue:hover {
  background: #1f6ff0;
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ink);
}

.btn-compass-white {
  background: #ffffff;
  color: var(--ink);
}

.btn-compass-white:hover {
  background: #fbf7ee;
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ink);
}

.btn-compass-red {
  background: #d61434;
  color: #fff;
}

.btn-compass-red:hover {
  background: #f03e5c;
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ink);
}

/* Filtragem Zero-JS da Bússola via :has() */
.duality-compass:has(#b-lado-azul:checked) .compass-panels {
  grid-template-columns: minmax(0, 1fr);
}
.duality-compass:has(#b-lado-azul:checked) .compass-card:not([data-territory="azul"]) {
  display: none;
}

.duality-compass:has(#b-eixo-branco:checked) .compass-panels {
  grid-template-columns: minmax(0, 1fr);
}
.duality-compass:has(#b-eixo-branco:checked) .compass-card:not([data-territory="branco"]) {
  display: none;
}

.duality-compass:has(#b-lado-vermelho:checked) .compass-panels {
  grid-template-columns: minmax(0, 1fr);
}
.duality-compass:has(#b-lado-vermelho:checked) .compass-card:not([data-territory="vermelho"]) {
  display: none;
}

/* Comparador de Travessia Fluvial (Azul vs Vermelho em estilo Blueprint Naval) */
.modal-compare {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 1.15rem;
  margin: 1.6rem 0 2rem;
}

.modal-compare__card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.45rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--brutal-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.modal-compare__card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--brutal-shadow-lg);
}

.modal-compare__card--blue {
  border-top: 6px solid #1253d4;
  background: linear-gradient(180deg, #f2f7ff 0%, #ffffff 45%);
}

.modal-compare__card--red {
  border-top: 6px solid #d61434;
  background: linear-gradient(180deg, #fff3f5 0%, #ffffff 45%);
}

.modal-compare__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.modal-compare__time {
  padding: 0.25rem 0.65rem;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 2px 2px 0px var(--ink);
}

.vessel-blueprint {
  width: 100%;
  height: auto;
  max-height: 105px;
  margin: 0.35rem 0 0.15rem;
  padding: 0.4rem 0.6rem;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
}

.modal-compare__card h3 {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.modal-compare__card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.modal-compare__specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1.5px dashed var(--line);
}

.modal-compare__specs dt {
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-compare__specs dd {
  margin-top: 0.25rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
}

.modal-compare__vs {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-compare__vs span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 2px 2px 0px var(--ink);
}

/* Botão de discagem 1-toque nas tabelas de emergência */
.phone-call {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.26rem 0.65rem;
  border: 1px solid #f5c6ce;
  border-radius: var(--radius-pill);
  background: var(--red-50);
  color: var(--red-600);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.phone-call .icon {
  width: 14px;
  height: 14px;
}

.phone-call:hover {
  border-color: var(--red-600);
  background: var(--red-600);
  color: #fff;
  text-decoration: none;
}

/* Índice colapsável para leitura mobile nos guias */
.mobile-toc {
  display: none;
  margin: 1.25rem 0 0.5rem;
  border-color: #cfe0fb;
  background: linear-gradient(180deg, var(--blue-50) 0%, #ffffff 100%);
}

.mobile-toc summary {
  gap: 0.5rem;
  color: var(--blue-700);
}

.mobile-toc ol {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0 1.15rem 1rem 2.3rem;
}

.mobile-toc a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Popover de Busca Rápida e SOS */
.search-form--modal {
  max-width: none;
  margin: 0.5rem 0 1.25rem;
}

.quick-chips__title {
  margin-bottom: 0.55rem;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.42rem 0.78rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chip:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.chip .icon {
  width: 15px;
  height: 15px;
}

.chip--azul {
  border: 1px solid #cde0fc;
  background: var(--blue-50);
  color: var(--blue-700);
}

.chip--vermelho {
  border: 1px solid #f7cdd4;
  background: var(--red-50);
  color: var(--red-600);
}

.chip--branco {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.sos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 1.15rem;
}

.sos-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.sos-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.sos-card--red {
  border: 1px solid #f5c2cb;
  background: linear-gradient(145deg, var(--red-50) 0%, #ffffff 100%);
  color: var(--red-700);
}

.sos-card--blue {
  border: 1px solid #c9dcfb;
  background: linear-gradient(145deg, var(--blue-50) 0%, #ffffff 100%);
  color: var(--blue-800);
}

.sos-card__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sos-card__label {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--ink);
}

.sos-card small {
  color: var(--muted);
  font-size: 0.72rem;
}

.sos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sos-actions .btn {
  flex: 1 1 200px;
}

/* Mobile Dock (oculto no desktop, fixo na Thumb-Zone no celular) */
.mobile-dock {
  display: none;
}

@media (max-width: 1080px) {
  .mobile-toc {
    display: block;
  }
}

@media (max-width: 860px) {
  .compass-panels {
    grid-template-columns: 1fr;
  }

  .modal-compare {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .modal-compare__vs {
    margin: -0.2rem 0;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  }

  .site-header__actions .sos-label {
    display: none;
  }

  .site-header__actions .btn-sos-header {
    width: 40px;
    padding: 0;
  }

  /* Pílulas de filtro deslizantes no mobile (sem empilhar 4 linhas) */
  .filter-bar,
  .compass-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .filter-bar::-webkit-scrollbar,
  .compass-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-bar label,
  .filter-bar a,
  .compass-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  /* Barra inferior Mobile-First (Thumb-Zone) */
  .mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(10, 27, 51, 0.1);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -10px 28px -16px rgba(6, 21, 46, 0.32);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .mobile-dock::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-600) 0%, #ffffff 50%, var(--red-500) 100%);
  }

  .mobile-dock__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-height: 48px;
    padding: 0.25rem 0.15rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-dock__item:hover {
    color: var(--blue-700);
    text-decoration: none;
  }

  .mobile-dock__item .icon {
    width: 19px;
    height: 19px;
  }

  .mobile-dock__item[aria-current="page"] {
    color: var(--blue-700);
    font-weight: 800;
  }

  .mobile-dock__item--sos {
    color: var(--red-600);
  }

  .mobile-dock__item--sos:hover {
    color: var(--red-700);
  }

  .mobile-dock__fab {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-top: -14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--red-500) 100%);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(15, 76, 191, 0.75);
  }

  .mobile-dock__fab .icon {
    width: 17px;
    height: 17px;
  }

  .sos-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------ consentimento (LGPD) --- */

/* Banner fixo, escondido por padrão: aparece só quando o carregador de
   consentimento não encontra escolha gravada. No celular sobe acima do dock. */
.cookie-banner {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  left: 0.9rem;
  z-index: 60;
  max-width: 34rem;
  margin-inline: auto;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.cookie-banner .cookie-banner__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cookie-banner__title .icon {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
}

.cookie-banner p:not(.cookie-banner__title) {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.cookie-banner a {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cookie-banner__actions .btn {
  flex: 1 1 10rem;
  min-height: 42px;
}

.footer-legal__btn {
  border: 0;
  padding: 0;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal__btn:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .cookie-banner {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

/* ------------------------------------------------ impressão e movimento --- */

@media print {
  .site-header,
  .site-footer,
  .mobile-dock,
  .cookie-banner,
  .breadcrumb,
  .cta-row,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .entity-card,
  .fact-grid > div,
  .table-wrap {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* --------------------------------------------------- recursos premium --- */

.entity-card--premium {
  border-color: #d1b15c;
  box-shadow: 0 4px 16px rgba(209, 177, 92, 0.18);
}

.badge-Locked {
  border-color: #d8dee8;
  background: #f1f4f8;
  color: #556274;
  font-weight: 700;
}

.field--premium-locked {
  background: #fbfcfe;
  border: 1px dashed #c8d3e2;
  border-radius: var(--radius);
  padding: 1rem;
}

.field--premium-locked textarea:disabled {
  background: #f4f6fa;
  cursor: not-allowed;
  opacity: 0.8;
}

.entity-videos-section {
  margin: 2rem 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.video-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.video-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #06152e;
}

.video-card--instagram .video-aspect,
.video-card--tiktok .video-aspect {
  aspect-ratio: 9 / 14;
  max-height: 480px;
}

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

.video-card__footer {
  padding: 0.65rem 0.9rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.video-card__link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-700);
  text-decoration: none;
}

.video-card__link:hover {
  text-decoration: underline;
}

/* ------------------------------------------- comentários de clientes --- */

.comments-section {
  margin: 2.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.comments-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.comments-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-900);
}

.comments-stars-summary {
  color: #e09200;
  letter-spacing: 2px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.comment-card {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.comment-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-card__author {
  font-weight: 800;
  color: var(--blue-900);
}

.comment-card__date {
  font-size: 0.78rem;
  color: var(--muted);
}

.comment-card__stars {
  color: #e09200;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.comment-card__text {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-line;
}

.comment-form-wrap {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.comment-form-wrap h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.comment-flash {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
}

.comment-flash--ok {
  background: #e6f7ee;
  color: #086337;
  border: 1px solid #9ad9b8;
}

.comment-flash--erro {
  background: #feeef0;
  color: #b31628;
  border: 1px solid #f9b7bf;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .entity-card:hover,
  .fact-grid > div:hover,
  .partner-list li:hover {
    transform: none;
  }
}

/* ----------------------------------------------------------- food menu --- */
.food-menu {
  margin: 2.2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.food-menu__head {
  margin-bottom: 1.25rem;
}
.food-menu__category {
  margin-top: 1.25rem;
}
.food-menu__category-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-800);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.food-menu__list {
  display: grid;
  gap: 0.75rem;
}
.food-menu__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  background: var(--blue-50);
  border: 1px solid rgba(18, 83, 212, 0.08);
}
@media (max-width: 600px) {
  .food-menu__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
.food-menu__item-main {
  flex: 1;
}
.food-menu__item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.food-menu__item-name {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.food-menu__item-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.2rem 0 0;
}
.food-menu__item-side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.food-menu__item-price {
  font-weight: 800;
  color: var(--blue-700);
  font-size: 1.05rem;
  white-space: nowrap;
}
.btn-wpp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #25d366 !important;
  color: #fff !important;
  border: none !important;
  font-size: 0.82rem !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: 700;
}
.btn-wpp:hover {
  background: #1ebc59 !important;
}

@view-transition {
  navigation: auto;
};