@font-face {
    font-family: "Inter";
    src: url("fonts/inter-latin.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400 900;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("fonts/instrument-serif-latin.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

.cex-v032-page {
    --cex-detail-ink: #142539;
    --cex-detail-muted: #4c6277;
    --cex-detail-line: #dbe4ed;
    --cex-detail-accent: var(--cex-v13-secondary, #1e5a8e);
    --cex-detail-strong: var(--cex-v13-primary, #102e4a);
    --cex-detail-soft: color-mix(in srgb, var(--cex-detail-accent) 6%, white);
    --cex-detail-heading: "Inter", system-ui, sans-serif;
    font-family: "Inter", system-ui, sans-serif;
    color: var(--cex-detail-ink);
}
.cex-v032-page.cex-land {
    max-width: 1220px;
    margin: 24px auto;
    padding: clamp(18px, 3vw, 40px);
    border-radius: 18px;
    border: 1px solid var(--cex-detail-line);
    box-shadow: 0 12px 48px #102e4a0b;
}
.cex-v032-page [hidden] { display: none !important; }
.cex-v032-page :is(a, button, summary, input, select):focus-visible {
    outline: 2px solid var(--cex-detail-accent);
    outline-offset: 3px;
}
.cex-v032-page .cex-breadcrumb {
    margin: 3px 0 16px;
    font-size: 12px;
    color: var(--cex-detail-muted);
    line-height: 1.5;
}
.cex-v032-page .cex-breadcrumb a { text-underline-offset: 3px; }

.cex-v032-hero {
    display: grid;
    gap: clamp(20px, 4vw, 44px);
    align-items: stretch;
    padding: clamp(20px, 3.5vw, 38px);
    border: 1px solid var(--cex-detail-line);
    border-top: 3px solid var(--cex-detail-accent);
    border-radius: 16px;
    background: var(--cex-detail-soft);
}
.cex-v032-hero.has-cover {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, .9fr);
}
.cex-v032-hero-copy { min-width: 0; align-self: center; }
.cex-v032-hero-meta {
    display: flex;
    gap: 9px 13px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--cex-detail-muted);
    font-size: 13px;
    font-weight: 650;
}
.cex-v032-phase {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    background: #e8edf4;
    color: #29455f;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 720;
}
.cex-v032-phase::before { content: ""; height: 7px; width: 7px; background: currentColor; border-radius: 50%; }
.cex-v032-phase.phase-open { color: #065f48; background: #d9f2e6; }
.cex-v032-phase.phase-warn { color: #79500e; background: #fff0cd; }
.cex-v032-phase.phase-done { color: #3e5268; background: #e8edf4; }
.cex-v032-page .cex-v032-hero h1 {
    max-width: 22ch;
    color: var(--cex-detail-strong);
    font: 730 clamp(30px, 4vw, 56px)/1.09 var(--cex-detail-heading);
    letter-spacing: -.041em;
    margin: 15px 0 12px;
    overflow-wrap: anywhere;
}
.cex-v032-origin {
    font-size: 15px;
    color: var(--cex-detail-muted);
    margin: 0;
    line-height: 1.55;
}
.cex-v032-bank {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.cex-v032-bank img {
    width: 90px;
    height: 46px;
    object-fit: contain;
    padding: 5px;
    border-radius: 7px;
    border: 1px solid #dbe4ed;
    background: #fff;
}
.cex-v032-bank small {
    display: block;
    line-height: 1.3;
    font-size: 11px;
    color: var(--cex-detail-muted);
}
.cex-v032-bank a,
.cex-v032-bank strong {
    display: block;
    line-height: 1.4;
    font-weight: 720;
    font-size: 15px;
    text-decoration: none;
    color: var(--cex-detail-strong);
}
.cex-v032-bank a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cex-v032-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cex-v032-actions a {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 710;
    text-decoration: none;
    border: 1px solid transparent;
}
.cex-v032-actions .cex-v032-primary-action { background: var(--cex-detail-strong); color: #fff; }
.cex-v032-actions .cex-v032-secondary-action { color: var(--cex-detail-strong); background: #fff; border-color: var(--cex-detail-line); }
.cex-v032-actions a:hover { box-shadow: 0 3px 12px #1323381f; text-decoration: underline; text-underline-offset: 3px; }
.cex-v032-cover {
    margin: 0;
    min-width: 0;
    align-self: center;
}
.cex-v032-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 44%;
    border-radius: 10px;
    background: #d8e4ed;
}
.cex-v032-cover figcaption {
    line-height: 1.45;
    margin-top: 7px;
    color: var(--cex-detail-muted);
    font-size: 11px;
}
.cex-v032-keyfacts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 20px;
}
.cex-v032-keyfact {
    min-width: 0;
    padding: 14px clamp(12px, 2.2vw, 22px);
    border: 1px solid var(--cex-detail-line);
    border-radius: 11px;
    background: #fff;
}
.cex-v032-keyfact dt, .cex-v032-role-facts dt {
    color: var(--cex-detail-muted);
    font-weight: 650;
    font-size: 12px;
    margin-bottom: 5px;
}
.cex-v032-keyfact dd, .cex-v032-role-facts dd {
    color: var(--cex-detail-ink);
    font-size: clamp(16px, 1.65vw, 23px);
    font-weight: 740;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    margin: 0;
    overflow-wrap: anywhere;
}
.cex-v032-keyfact dd small, .cex-v032-role-facts dd small {
    display: block;
    color: var(--cex-detail-muted);
    font-size: 11px;
    font-weight: 560;
    margin-top: 5px;
    line-height: 1.4;
}
.cex-v032-keyfact.fact-prazo { border-top: 3px solid var(--cex-detail-accent); }
.cex-v032-page .cex-v013-quicknav { margin: 18px 0; padding: 7px; }
.cex-v032-page .cex-v013-quicknav a { font-size: 13px; border-radius: 7px; padding: 9px 12px; }
.cex-v032-page .cex-v013-section > h2 { color: var(--cex-detail-strong); margin-bottom: 14px; }
.cex-v032-cover-editor { margin: 8px 0; font-size: 13px; }
.cex-v032-cover-editor a { color: var(--cex-detail-accent); text-underline-offset: 3px; }

.cex-v032-roles { margin-top: 25px; }
.cex-v032-cargo-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    align-items: end;
    padding: 13px;
    border: 1px solid var(--cex-detail-line);
    border-radius: 10px;
    background: var(--cex-detail-soft);
}
.cex-v032-cargo-tools label {
    display: grid;
    gap: 5px;
    min-width: 0;
    font-size: 12px;
    font-weight: 680;
    color: var(--cex-detail-ink);
}
.cex-v032-cargo-tools :is(input, select) {
    min-width: 0;
    width: 100%;
    height: 42px;
    padding: 7px 9px;
    border: 1px solid #bdcedd;
    border-radius: 7px;
    background: white;
    color: var(--cex-detail-ink);
    font: 500 13px/1.2 "Inter", system-ui, sans-serif;
}
.cex-v032-role-count { color: var(--cex-detail-muted); font-size: 13px; margin: 11px 0 14px; }
.cex-v032-role-group { margin: 0 0 16px; }
.cex-v032-role-group h3 {
    color: var(--cex-detail-strong);
    font-size: 15px;
    letter-spacing: -.015em;
    margin: 0 0 7px;
    padding-left: 9px;
    border-left: 3px solid var(--cex-detail-accent);
}
.cex-v032-role-list { display: grid; gap: 7px; }
.cex-v032-role, .cex-v032-role-chart {
    border: 1px solid var(--cex-detail-line);
    border-radius: 10px;
    background: white;
}
.cex-v032-role > summary, .cex-v032-role-chart > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: inherit;
    color: var(--cex-detail-ink);
    list-style: none;
    cursor: pointer;
}
.cex-v032-role > summary::-webkit-details-marker,
.cex-v032-role-chart > summary::-webkit-details-marker { display: none; }
.cex-v032-role > summary:hover, .cex-v032-role[open] > summary, .cex-v032-role-chart > summary:hover { background: var(--cex-detail-soft); }
.cex-v032-role-title { display: grid; min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
.cex-v032-role-title strong { font-size: 15px; font-weight: 700; }
.cex-v032-role-title > span { font-size: 12px; color: var(--cex-detail-muted); margin-top: 2px; }
.cex-v032-expand, .cex-v032-role-chart > summary::after {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--cex-detail-soft);
    color: var(--cex-detail-strong);
    font-size: 18px;
    line-height: 1;
}
.cex-v032-expand::before, .cex-v032-role-chart > summary::after { content: "+"; }
.cex-v032-role[open] .cex-v032-expand::before, .cex-v032-role-chart[open] > summary::after { content: "−"; }
.cex-v032-role-body {
    padding: 14px;
    border-top: 1px solid var(--cex-detail-line);
}
.cex-v032-role-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
}
.cex-v032-role-facts > div { background: var(--cex-detail-soft); padding: 11px; border-radius: 7px; }
.cex-v032-role-facts dd { font-size: 15px; }
.cex-v032-role-code, .cex-v032-requirement { font-size: 13px; margin: 10px 0; color: var(--cex-detail-muted); }
.cex-v032-requirement > :is(strong, span) { display: block; }
.cex-v032-role-related, .cex-v032-more {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
    color: var(--cex-detail-strong); font-size: 13px; font-weight: 700;
}
.cex-v032-more { background: var(--cex-detail-soft); border: 1px solid var(--cex-detail-line); border-radius: 7px; cursor: pointer; padding: 8px 13px; }
.cex-v032-role-chart { margin-top: 13px; }
.cex-v032-role-chart > summary { font-size: 13px; font-weight: 680; }
.cex-v032-role-chart > section { margin: 0; border: 0; box-shadow: none; }
.cex-v032-page .cex-v032-event-note { line-height: 1.55; margin-top: 5px; }
.cex-v032-page .cex-v013-timeline { border-radius: 12px; background: #f7fafc; padding: 9px; }
.cex-v032-page .cex-v013-timeline .cex-v013-event { border-radius: 7px; }

.cex-v032-page.cex-v013-layout-dashboard .cex-v032-hero {
    border: 0;
    border-radius: 12px;
    background: var(--cex-detail-strong);
    padding: clamp(19px, 3vw, 32px);
}
.cex-v032-page.cex-v013-layout-dashboard .cex-v032-hero.has-cover { grid-template-columns: minmax(0, 1.5fr) minmax(0, .72fr); }
.cex-v032-page.cex-v013-layout-dashboard .cex-v032-hero h1 {
    max-width: 25ch;
    font-size: clamp(28px, 3.45vw, 48px);
    color: white;
}
.cex-v032-page.cex-v013-layout-dashboard .cex-v032-hero :is(.cex-v032-hero-meta, .cex-v032-origin, .cex-v032-bank small, figcaption) { color: #e2eaf5; }
.cex-v032-page.cex-v013-layout-dashboard .cex-v032-bank :is(a, strong) { color: white; }
.cex-v032-page.cex-v013-layout-dashboard .cex-v032-primary-action { background: white; color: var(--cex-detail-strong); }
.cex-v032-page.cex-v013-layout-dashboard .cex-v032-secondary-action { color: white; background: transparent; border-color: #9baec4; }
.cex-v032-page.cex-v013-layout-dashboard .cex-v032-keyfacts {
    gap: 0; border: 1px solid var(--cex-detail-line); border-radius: 10px; overflow: hidden;
}
.cex-v032-page.cex-v013-layout-dashboard .cex-v032-keyfact {
    border: 0; border-radius: 0; border-right: 1px solid var(--cex-detail-line);
}
.cex-v032-page.cex-v013-layout-dashboard .cex-v032-keyfact:last-child { border-right: 0; }
.cex-v032-page.cex-v013-layout-dashboard .cex-v032-keyfact.fact-prazo { background: var(--cex-detail-soft); }

.cex-v032-page.cex-v013-layout-jornal {
    --cex-detail-line: #e4ddd0;
    --cex-detail-soft: #f8f4ec;
    --cex-detail-heading: "Instrument Serif", Georgia, serif;
    background: #fffdf8;
}
.cex-v032-page.cex-v013-layout-jornal .cex-v032-hero,
.cex-v032-page.cex-v013-layout-jornal .cex-v032-hero.has-cover {
    grid-template-columns: minmax(0, 1fr);
    padding: 21px 0 0;
    border: 0;
    border-top: 3px solid var(--cex-detail-strong);
    border-radius: 0;
    background: transparent;
    gap: 22px;
}
.cex-v032-page.cex-v013-layout-jornal .cex-v032-hero h1 {
    max-width: 29ch;
    font: 400 clamp(40px, 6.1vw, 72px)/1 var(--cex-detail-heading);
    letter-spacing: -.018em;
}
.cex-v032-page.cex-v013-layout-jornal .cex-v032-cover img { aspect-ratio: 3.5 / 1; border-radius: 4px; object-position: 50% 48%; }
.cex-v032-page.cex-v013-layout-jornal .cex-v032-keyfact { border-radius: 3px; border-width: 1px 0 0; background: #f8f4ec; }
.cex-v032-page.cex-v013-layout-jornal .cex-v032-keyfact.fact-prazo { border-top: 2px solid var(--cex-v13-accent); }

.cex-land .cex-card-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cex-land .cex-card-stats div { min-width: 0; background: #f3f7fa; border: 1px solid #e2eaf0; padding: 9px 11px; }
.cex-land .cex-card-stats div:nth-child(3) { border-top: 2px solid var(--cex-blue, #145da0); }
.cex-land .cex-card-stats span { display: block; color: #4b6076; font-size: 12px; font-weight: 620; }
.cex-land .cex-card-stats strong { font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.35; margin-top: 4px; overflow-wrap: anywhere; }
.cex-map-popup .cex-map-title { margin: 3px 0; }
.cex-map-popup .cex-map-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 6px 0; }
.cex-map-popup .cex-map-facts div { border-radius: 6px; padding: 5px; background: #f0f4f8; line-height: 1.35; }
.cex-map-popup .cex-map-facts dt { color: #405469; font-size: 10px; }
.cex-map-popup .cex-map-facts dd { margin: 3px 0 0; color: #142539; font-size: 12px; font-weight: 725; }

@media (max-width: 780px) {
    .cex-v032-page.cex-land { margin: 12px; }
    .cex-v032-hero.has-cover,
    .cex-v032-page.cex-v013-layout-dashboard .cex-v032-hero.has-cover { grid-template-columns: minmax(0, 1fr); }
    .cex-v032-cover img { aspect-ratio: 16 / 9; }
    .cex-v032-page.cex-v013-layout-jornal .cex-v032-cover img { aspect-ratio: 2.1 / 1; }
    .cex-v032-keyfacts, .cex-land .cex-card-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cex-v032-page.cex-v013-layout-dashboard .cex-v032-keyfact { border-bottom: 1px solid var(--cex-detail-line); }
    .cex-v032-page.cex-v013-layout-dashboard .cex-v032-keyfact:nth-child(2n) { border-right: 0; }
    .cex-v032-page.cex-v013-layout-dashboard .cex-v032-keyfact:nth-last-child(-n+2) { border-bottom: 0; }
    .cex-v032-cargo-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cex-v032-cargo-tools label:first-child { grid-column: 1 / -1; }
    .cex-v032-page .cex-v013-section { scroll-margin-top: 68px; }
}
@media (max-width: 430px) {
    .cex-v032-page.cex-land { margin: 7px; padding: 12px; }
    .cex-v032-actions { gap: 6px; }
    .cex-v032-actions a { padding-inline: 9px; font-size: 13px; }
    .cex-v032-role-facts { grid-template-columns: minmax(0, 1fr); gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .cex-land .cex-card { transition: none; }
}
