.ncm-page {
  --ncm-ink: #082541;
  --ncm-muted: #425569;
  --ncm-line: #d7dfe7;
  --ncm-paper: #f7f6f4;
  --ncm-tint: #eef4f8;
  --ncm-orange: #ac4000;
  --ncm-serif: "Source Serif 4", Georgia, serif;
}

.ncm-page main { background: var(--ncm-paper); }
.ncm-page [hidden] { display: none !important; }
.ncm-page :is(a,button,input,select):focus-visible { outline: 3px solid #0673a5; outline-offset: 3px; }
.ncm-page .ncm-wrap { width: min(100% - 64px, 1424px); margin-inline: auto; }
.ncm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #061d31;
  color: #fff;
}
.ncm-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 47%;
  content: "";
  background: linear-gradient(90deg, #061d31, #061d3122 34%, transparent 67%),
    url('../img/artigos/nova-fronteira-brasil-bolivia-o-que-muda-para-transportadora.webp') 58% 57% / cover no-repeat;
}
.ncm-hero::after {
  position: absolute;
  inset: 0 auto 0 60%;
  z-index: -1;
  width: 15px;
  transform: skewX(-29deg);
  background: #ff8a2299;
  content: "";
}
.ncm-hero .ncm-wrap { padding-block: 18px 24px; }
.ncm-page .ncm-hero .breadcrumbs { margin: 0 0 7px 89px; padding: 0; }
.ncm-page .ncm-hero .breadcrumbs :is(a,li,li::after,li::before) { color: #e7edf4; }
.ncm-hero-heading { display: flex; align-items: center; gap: 22px; max-width: 735px; }
.ncm-hero-icon {
  flex: 0 0 67px;
  height: 67px;
  display: grid;
  place-items: center;
  border: 1px solid #ff870c;
  border-radius: 12px;
  color: #ff9b28;
}
.ncm-hero-icon svg { width: 44px; height: 44px; }
.ncm-page .ncm-hero h1 { color: #fff; font: 700 clamp(2rem, 3.3vw, 2.75rem)/1.05 var(--ncm-serif) !important; margin: 0 0 5px; }
.ncm-hero p { color: #f0f5fa; margin: 0; max-width: 62ch; font-size: clamp(.95rem, 1.35vw, 1.125rem); line-height: 1.35; }

.ncm-layout { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(285px, 1fr); gap: clamp(18px, 2vw, 30px); align-items: start; padding-block: 22px 48px; }
.ncm-guide { margin-bottom: 48px; }
.ncm-guide .prosa { max-width: 74ch; }
.ncm-guide #ncm-faq { margin-top: 32px; }
.ncm-guide #ncm-faq p + h3 { margin-top: 18px; }
.ncm-details .ncm-insurance { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-left: 3px solid #849fb4; background: #eaf2f7; color: var(--ncm-ink); font-size: .9rem; }
.ncm-card { min-width: 0; border: 1px solid #e4e5e7; border-radius: 13px; padding: clamp(16px, 1.85vw, 27px); background: #fff; box-shadow: 0 3px 12px #10233d13; }
.ncm-page :is(.ncm-card,.ncm-side) button { font: inherit; cursor: pointer; }
.ncm-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(10px, 1.35vw, 20px); }
.ncm-input-wrap { display: flex; align-items: center; border: 1px solid #9babb9; border-radius: 8px; padding: 0 8px 0 12px; min-width: 0; box-shadow: inset 0 1px 3px #13294210; }
.ncm-input-wrap:focus-within { outline: 2px solid #0673a5; outline-offset: 2px; }
.ncm-input-wrap svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--ncm-ink); }
.ncm-input-wrap input { width: 100%; min-width: 0; min-height: 48px; border: 0; color: var(--ncm-ink); font: inherit; font-size: 1.12rem; font-weight: 600; padding: 6px 9px; background: transparent; outline: none !important; }
.ncm-input-wrap input::-webkit-search-cancel-button { appearance: none; }
.ncm-input-wrap input::placeholder { color: #506478; font-size: .98rem; font-weight: 400; }
.ncm-clear { min-width: 42px; min-height: 44px; border: 0; border-radius: 5px; background: transparent; color: var(--ncm-ink); font-size: 1.55rem !important; }
.ncm-submit { min-width: 130px; border: 1px solid #ac3c00; border-radius: 8px; background: linear-gradient(115deg, #bd4300, #c64c00); color: white; font-weight: 700 !important; font-size: 1.12rem !important; padding: 0 16px; }
.ncm-submit:hover { background: #a93b00; }
.ncm-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; column-gap: clamp(10px, 1.5vw, 23px); margin-top: 19px; }
.ncm-filter { min-width: 0; }
.ncm-filter label { display: block; color: var(--ncm-ink); font-weight: 600; margin-bottom: 5px; }
.ncm-filter select { display: block; width: 100%; min-height: 44px; font: inherit; color: var(--ncm-ink); background: #fbfcfd; border: 1px solid #a9b6c2; border-radius: 7px; padding: 6px 9px; }
.ncm-active { display: flex; align-items: center; gap: 7px; min-height: 44px; color: var(--ncm-ink); font-size: .88rem; white-space: nowrap; }
.ncm-active input { appearance: none; width: 35px; height: 20px; border-radius: 18px; background: #0a629b; margin: 0; position: relative; opacity: 1; }
.ncm-active input::after { position: absolute; content: ""; width: 14px; height: 14px; inset: 3px 3px auto auto; border-radius: 50%; background: white; }
.ncm-reset { min-height: 44px; border: 0; background: transparent; color: #12547e; padding: 0 2px; text-decoration: underline; }
.ncm-reset:hover, .ncm-official:hover { color: var(--ncm-orange); }
.ncm-filter-note { margin: 5px 0 0; font-size: .82rem; color: var(--ncm-muted); }
.ncm-status { min-height: 28px; border-top: 1px solid var(--ncm-line); margin: 16px 0 10px; padding-top: 12px; color: var(--ncm-ink); }
.ncm-results { display: grid; gap: 8px; }
.ncm-result { min-width: 0; border: 1px solid var(--ncm-line); border-radius: 9px; background: #fff; }
.ncm-result.is-open { background: #edf3f8; border-color: #e3edf5; }
.ncm-result-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 11px; }
.ncm-expand { display: grid; grid-template-columns: minmax(7.8rem, 20%) minmax(0, 1fr) 16px; align-items: center; gap: 12px; text-align: left; min-height: 64px; padding: 9px 0; border: 0; border-radius: 4px; background: transparent; color: var(--ncm-ink); }
.ncm-expand:hover .ncm-code strong { color: var(--ncm-orange); }
.ncm-code { display: grid; justify-items: start; gap: 3px; }
.ncm-code strong { font: 700 clamp(1.21rem, 1.8vw, 1.62rem)/1.1 var(--ncm-serif); white-space: nowrap; }
.ncm-badge { padding: 1px 8px 2px; border-radius: 6px; color: #17412a; background: #d3efda; font-size: .75rem; font-weight: 600; }
.ncm-badge.ncm-level { color: #24475c; background: #e4eff6; }
.ncm-description { display: grid; gap: 2px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ncm-description small { font-size: .85rem; font-weight: 400; color: var(--ncm-muted); }
.ncm-chevron { justify-self: center; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.is-open .ncm-chevron { transform: rotate(225deg); }
.ncm-copy { align-self: center; min-height: 44px; min-width: 97px; border: 1px solid #35577e; border-radius: 6px; background: #fff; color: #10365a; font-weight: 600 !important; padding: 4px 8px; }
.ncm-copy:hover, .ncm-more:hover { background: #e9f2f9; }
.ncm-details { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 12px; border-top: 1px solid #dde7ef; padding: 13px; }
.ncm-details > section { min-width: 0; border: 1px solid #e0e9f1; border-radius: 9px; padding: 11px; background: #fff; }
.ncm-details .ncm-extra { background: #e6eef5; }
.ncm-page .ncm-details h3 { font-size: 1rem; margin: 0 0 5px; }
.ncm-details dl { margin: 0; font-size: .88rem; line-height: 1.4; }
.ncm-details dl > div { display: grid; gap: 7px; border-top: 1px solid var(--ncm-line); padding: 5px 0; }
.ncm-hierarchy dl > div { grid-template-columns: 9.6rem minmax(0,1fr); }
.ncm-hierarchy dt { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
.ncm-extra dl > div { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.ncm-details dt { color: var(--ncm-muted); }
.ncm-details dd { margin: 0; color: var(--ncm-ink); overflow-wrap: anywhere; }
.ncm-source { margin: 8px 0 4px; font-size: .85rem; }
.ncm-official { color: #124d79; text-decoration: underline; font-weight: 600; }
.ncm-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.ncm-pagination p, .ncm-copy-status { color: var(--ncm-muted); font-size: .87rem; margin: 0; }
.ncm-copy-status { min-height: 1.3em; margin-top: 6px; }
.ncm-copy-status:empty { min-height: 0; margin-top: 0; }
.ncm-more { min-height: 44px; border: 1px solid #7292a9; background: white; border-radius: 6px; color: #124d79; padding: 4px 12px; margin-top: 10px; }
.ncm-provenance { margin-top: 18px; border-top: 1px solid var(--ncm-line); padding-top: 12px; color: var(--ncm-muted); font-size: .87rem; }
.ncm-provenance p { margin: 3px 0 0; }
.ncm-provenance dl { display: flex; gap: 4px 16px; flex-wrap: wrap; margin: 5px 0; }
.ncm-provenance dl div { display: flex; gap: 5px; }
.ncm-provenance dt { font-weight: 600; }
.ncm-provenance dd { margin: 0; }

.ncm-side { display: grid; gap: 12px; min-width: 0; }
.ncm-side section { border: 1px solid #e9e4df; background: #fbf9f7; border-radius: 12px; padding: 11px 15px 12px; }
.ncm-side .ncm-notice { background: #eaf2f7; border-color: #e0ebf2; }
.ncm-page .ncm-side h2 { display: flex; align-items: center; gap: 10px; font: 700 1.35rem/1.1 var(--ncm-serif) !important; margin: 0 0 5px; }
.ncm-side h2 svg { flex: 0 0 34px; width: 34px; height: 31px; padding: 3px; border-radius: 7px; background: #ffe5c7; color: #a74000; }
.ncm-notice h2 svg { background: #d7eaf4; color: #075d85; }
.ncm-side ol { list-style: none; counter-reset: ncm-step; padding: 0; margin: 7px 0 0 12px; }
.ncm-side ol li { counter-increment: ncm-step; position: relative; min-height: 28px; margin-top: 7px; padding-left: 36px; line-height: 1.25; }
.ncm-side ol li::before { content: counter(ncm-step); position: absolute; inset: 0 auto auto 0; border-radius: 50%; width: 25px; height: 25px; display: grid; place-items: center; background: #b94b00; color: white; font-weight: 700; }
.ncm-examples, .ncm-related { list-style: none; padding: 0; margin: 0; }
.ncm-examples button { display: block; width: 100%; min-height: 37px; border: 0; background: transparent; color: var(--ncm-ink); text-align: left; padding: 2px 0 2px 15px; position: relative; }
.ncm-examples button::before { content: ""; position: absolute; left: 3px; top: 15px; width: 5px; height: 5px; background: #c35208; border-radius: 50%; }
.ncm-examples button:hover { text-decoration: underline; }
.ncm-related li + li { border-top: 1px solid #eae6e2; }
.ncm-related a { display: grid; grid-template-columns: 69px minmax(0,1fr) 8px; align-items: center; gap: 9px; min-height: 53px; padding: 4px 0; color: var(--ncm-ink); font-weight: 500; line-height: 1.2; }
.ncm-related a:hover { text-decoration: underline; }
.ncm-related img { width: 69px; height: 43px; object-fit: cover; border-radius: 5px; }
.ncm-related i { width: 7px; height: 7px; border-right: 2px solid #a84000; border-top: 2px solid #a84000; transform: rotate(45deg); }
.ncm-notice p { margin: 5px 0 1px; font-size: .92rem; line-height: 1.3; }

@media (max-width: 1030px) {
  .ncm-layout { grid-template-columns: minmax(0, 1fr); }
  .ncm-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ncm-page .ncm-wrap { width: calc(100% - 30px); }
  .ncm-hero .ncm-wrap { padding-block: 15px 19px; }
  .ncm-hero::before { inset-inline-start: 25%; opacity: .5; }
  .ncm-hero::after { display: none; }
  .ncm-page .ncm-hero .breadcrumbs { margin-left: 0; }
  .ncm-hero-heading { gap: 11px; align-items: flex-start; }
  .ncm-hero-icon { flex-basis: 43px; height: 43px; border-radius: 8px; }
  .ncm-hero-icon svg { width: 28px; height: 28px; }
  .ncm-layout { padding-block: 14px 28px; }
  .ncm-card { padding: 12px; }
  .ncm-submit { min-width: 72px; font-size: .98rem !important; padding-inline: 8px; }
  .ncm-input-wrap { padding-left: 8px; }
  .ncm-input-wrap input { font-size: 1rem; padding-inline: 5px; }
  .ncm-input-wrap input::placeholder { font-size: .84rem; }
  .ncm-input-wrap svg { flex-basis: 17px; }
  .ncm-clear { min-width: 28px; padding: 0; }
  .ncm-filters { grid-template-columns: 1fr auto; column-gap: 7px; margin-top: 13px; }
  .ncm-filter { grid-column: 1/-1; }
  .ncm-side, .ncm-details { grid-template-columns: minmax(0,1fr); }
  .ncm-result-head { align-items: start; gap: 7px; padding-inline: 8px; }
  .ncm-expand { grid-template-columns: minmax(0, 1fr) 14px; gap: 6px; align-items: start; }
  .ncm-description { grid-column: 1/-1; grid-row: 2; }
  .ncm-chevron { grid-column: 2; grid-row: 1; margin-top: 9px; }
  .ncm-copy { align-self: start; min-width: 83px; margin-top: 6px; font-size: .83rem !important; }
  .ncm-details { padding: 8px; }
  .ncm-hierarchy dl > div { grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); }
  .ncm-hierarchy dt { grid-template-columns: 1fr; gap: 1px; }
}
