/* Diagram composition using the same locally bundled gov.br Core as the app. */
:root { font-synthesis: none; }
body { margin: 0; background: var(--gray-2); }
header, footer { max-width: 1360px; margin: auto; padding: 40px 32px 24px; }
header { border-bottom: 1px solid var(--gray-20); }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--gray-70); }
h1 { font-size: var(--font-size-scale-up-05); font-weight: 600; margin: 16px 0; line-height: var(--font-line-height-low); }
header p { max-width: 880px; font-size: 16.8px; color: var(--gray-70); line-height: 1.45; margin: 16px 0 24px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.map-actions .br-button { gap: 8px; white-space: normal; height: auto; min-height: 48px; padding: 8px 24px; line-height: 1.45; }
a:focus-visible { outline: var(--focus-width) var(--focus-style) var(--focus-color); outline-offset: var(--focus-offset); }
.map { padding: 40px 32px; max-width: 1360px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 224px minmax(0, 1fr); gap: 32px; align-items: center; }
.branches { position: relative; display: grid; gap: 24px; }
.branch.br-card { position: relative; margin: 0; }
.branch .card-content { padding: 24px; }
.branch h2 { font-size: var(--font-size-scale-up-02); font-weight: 600; line-height: 1.45; margin: 8px 0 16px; color: var(--blue-warm-vivid-90); }
.branch ul { padding-left: 20px; margin: 0; font-size: 14px; line-height: 1.45; }
.branch li + li { margin-top: 8px; }
.branch li::marker { color: var(--interactive); }
.feature { border-top: 4px solid var(--interactive); }
.center.br-card { position: relative; background: var(--blue-warm-vivid-90); color: var(--pure-0); text-align: center; margin: 0; }
.center .card-content { padding: 32px 16px; }
.center span { font-size: 12px; font-weight: 600; }
.center strong { font-size: var(--font-size-scale-up-04); font-weight: 600; line-height: 1.15; display: block; margin: 24px 0; }
.center p { color: var(--blue-warm-vivid-10); font-size: 14px; line-height: 1.45; margin: 16px 0; }
.center .project-team { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.85; }
.left.branches::after, .right.branches::after { content: ''; position: absolute; top: 112px; bottom: 112px; border-left: 2px solid var(--blue-warm-vivid-20); right: -17px; }
.right.branches::after { left: -17px; right: auto; bottom: 156px; }
.left .branch::after, .right .branch::before { content: ''; position: absolute; width: 17px; top: 50%; border-top: 2px solid var(--blue-warm-vivid-20); }
.left .branch::after { right: -17px; }
.right .branch::before { left: -17px; }
.center::before, .center::after { content: ''; position: absolute; top: 50%; width: 17px; border-top: 2px solid var(--blue-warm-vivid-20); }
.center::before { left: -17px; }
.center::after { right: -17px; }
footer { padding-top: 0; }
footer .br-message { margin: 0; }
footer .br-message .icon { padding: 0; margin: 24px 0 24px 24px; align-self: flex-start; }
footer .br-message .content { font-size: 12px; line-height: 1.6; padding: 24px; }
@media (max-width: 1100px) and (min-width: 851px) {
  .map { grid-template-columns: minmax(0, 1fr) 176px minmax(0, 1fr); }
  .branch .card-content { padding: 16px; }
  .branch h2 { font-size: var(--font-size-scale-up-01); }
  .center strong { font-size: var(--font-size-scale-up-03); }
}
@media (max-width: 850px) {
  header, footer { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: var(--font-size-scale-up-04); }
  header p { font-size: 14px; }
  .map { grid-template-columns: minmax(0, 1fr); padding: 24px 16px; gap: 24px; }
  .center { grid-row: 1; }
  .center .card-content { padding: 24px; }
  .center strong { margin: 16px 0; }
  .branches::after, .branch::before, .branch::after, .center::before, .center::after { display: none; }
}
@media (max-width: 470px) {
  .map-actions { flex-direction: column; }
  .map-actions .br-button { width: 100%; }
  .branch .card-content { padding: 16px; }
  footer .br-message .icon { margin: 16px 0 16px 16px; }
  footer .br-message .content { padding: 16px; }
}
@page { size: A4 landscape; margin: 10mm; }
@media print {
  html, body { margin: 0; padding: 0; background: white; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  header, footer { display: none; }
  .map { box-sizing: border-box; width: 277mm; height: 189mm; max-width: none; margin: 0; grid-template-columns: minmax(0, 1fr) 42mm minmax(0, 1fr); padding: 0; gap: 8mm; break-inside: avoid; }
  .center { grid-row: auto; }
  .branches { gap: 3mm; }
  .branch.br-card, .center.br-card { break-inside: avoid; box-shadow: none; border: 0.25mm solid var(--gray-20); }
  .branch .card-content { padding: 3mm; }
  .center .card-content { padding: 5mm 2mm; }
  .branch h2 { font-size: 11pt; line-height: 1.2; margin: 0 0 2mm; }
  .branch ul { padding-left: 4mm; font-size: 9pt; line-height: 1.3; }
  .branch li + li { margin-top: 1mm; }
  .center p, .center span, .center .project-team { font-size: 9pt; }
  .center p { margin: 3mm 0; }
  .center strong { font-size: 20pt; margin: 5mm 0; }
  .feature.br-card { border-top: 1mm solid var(--interactive); }
  .left.branches::after, .right.branches::after { display: block; top: 0; bottom: 0; right: -4mm; }
  .right.branches::after { left: -4mm; right: auto; }
  .left .branch::after, .right .branch::before, .center::before, .center::after { display: block; width: 4mm; }
  .left .branch::after, .center::after { right: -4mm; }
  .right .branch::before, .center::before { left: -4mm; }
}
