/* Documentação técnica pública do CCB. Só actua dentro de .ccb_docs. */

.ccb_docs {
    background: #f4f3ee;
    color: var(--ccb-text);
    overflow-x: clip;
}
.ccb_docs_hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(178, 171, 71, .28), transparent 28%),
        linear-gradient(160deg, #2c2c16 0%, #4e4d1f 58%, #787630 100%);
    color: #fff;
}
.ccb_docs_hero_inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px 20px 36px;
}
.ccb_docs_kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #e4df9a;
}
.ccb_docs_hero_row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}
.ccb_docs_hero h1 {
    margin: 0;
    max-width: 16ch;
    color: #fff;
    font-family: Farro, Inter, sans-serif;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
}
.ccb_docs_lead {
    max-width: 68ch;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
    line-height: 1.5;
}
.ccb_docs_lang {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.ccb_docs_lang button,
.ccb_docs button,
.ccb_docs a {
    -webkit-tap-highlight-color: transparent;
}
.ccb_docs_lang a,
.ccb_docs_lang button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: 700 12px/1 Inter, system-ui, sans-serif;
    letter-spacing: .06em;
    text-decoration: none;
    cursor: pointer;
}
.ccb_docs_lang a.is-on,
.ccb_docs_lang button.is-on {
    background: #b2ab47;
    border-color: #b2ab47;
    color: #1d1d10;
}
.ccb_docs_body { padding-top: 8px; }
.ccb_docs_switch,
.ccb_docs_toc {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
}
.ccb_docs_switch { margin: 8px 0 14px; }
.ccb_docs_switch a,
.ccb_docs_toc button,
.ccb_docs_node,
.ccb_docs_ctrl,
.ccb_docs_gloss button,
.ccb_docs_card {
    font-family: Inter, system-ui, sans-serif;
}
.ccb_docs_switch a {
    flex: none;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ccb-olive);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    border: 1px solid #e3e0d2;
}
.ccb_docs_switch a.is-on {
    background: var(--ccb-dark);
    border-color: var(--ccb-dark);
    color: #fff;
}
.ccb_docs_toc {
    position: sticky;
    top: 0;
    z-index: 4;
    margin: 0 -20px 28px;
    padding: 10px 20px;
    background: rgba(244, 243, 238, .94);
}
.ccb_docs_toc_toggle { display: none; }
.ccb_docs_toc ol {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}
.ccb_docs_toc li { flex: none; }
.ccb_docs_toc button {
    flex: none;
    appearance: none;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--ccb-olive);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 2px;
    cursor: pointer;
}
.ccb_docs_toc button.is-on { border-bottom-color: var(--ccb-gold); color: var(--ccb-dark); }
.ccb_docs_wiki { display: block; }
.ccb_docs_wiki .ccb_docs_toc {
    display: block;
    position: static;
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e4e1d4;
    border-radius: 18px;
}
.ccb_docs_wiki .ccb_docs_toc_toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    border: 0;
    border-bottom: 0;
    background: transparent;
    color: var(--ccb-olive);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}
.ccb_docs_wiki .ccb_docs_toc_toggle:after { content: "+"; font-size: 18px; letter-spacing: 0; }
.ccb_docs_wiki .ccb_docs_toc_toggle[aria-expanded="true"]:after { content: "–"; }
.ccb_docs_wiki .ccb_docs_toc > ol { display: none; overflow: visible; }
.ccb_docs_wiki .ccb_docs_toc > ol.is-open { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.ccb_docs_wiki .ccb_docs_toc ol ol { display: flex; flex-direction: column; gap: 0; margin: 0 0 6px; padding-left: 10px; overflow: visible; }
.ccb_docs_wiki .ccb_docs_toc li { flex: none; }
.ccb_docs_wiki .ccb_docs_toc button {
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: 0;
    border-radius: 8px;
    padding: 6px 8px;
}
.ccb_docs_wiki .ccb_docs_toc button.is-on { background: #f4f1d8; color: var(--ccb-dark); }
.ccb_docs_wiki h3[id] { scroll-margin-top: 24px; }
@media (min-width: 700px) {
    .ccb_docs_wiki {
        display: grid;
        grid-template-columns: 232px minmax(0, 1fr);
        column-gap: 32px;
        align-items: start;
    }
    .ccb_docs_wiki > div:first-child {
        position: sticky;
        top: 16px;
        grid-column: 1;
        grid-row: 1 / span 30;
        max-height: calc(100vh - 32px);
        overflow: auto;
    }
    .ccb_docs_wiki > section,
    .ccb_docs_wiki > div:not(:first-child) { grid-column: 2; }
    .ccb_docs_wiki .ccb_docs_toc_toggle { pointer-events: none; cursor: default; }
    .ccb_docs_wiki .ccb_docs_toc_toggle:after { content: none; }
    .ccb_docs_wiki .ccb_docs_toc > ol { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
}
.ccb_scheme {
    display: grid;
    gap: 16px;
    align-items: start;
    margin: 16px 0;
}
@media (min-width: 800px) { .ccb_scheme { grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); } }
.ccb_scheme_board {
    background: #fff;
    border: 1px solid #e4e1d4;
    border-radius: 18px;
    padding: 14px 16px 10px 8px;
}
.ccb_scheme_pin {
    display: grid;
    grid-template-columns: 34px 36px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 30px;
    margin: 0;
    padding: 1px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #2c2c16;
    font: 600 13px/1.3 Inter, system-ui, sans-serif;
    text-align: left;
    cursor: pointer;
}
.ccb_scheme_pin.is-gap { margin-top: 12px; }
.ccb_scheme_pin.is-on { background: #f4f1d8; }
.ccb_scheme_n { font-variant-numeric: tabular-nums; font-weight: 700; }
.ccb_scheme_line {
    position: relative;
    height: 1px;
    background: #2c2c16;
}
.ccb_scheme_line:before {
    content: "";
    position: absolute;
    left: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border: 1.5px solid #2c2c16;
    border-radius: 50%;
    background: #fff;
}
.ccb_scheme_board:not(.is-foto) .ccb_scheme_line:before { display: none; }
.ccb_scheme_pin.is-wire .ccb_scheme_line:before { background: #2c2c16; }
.ccb_scheme_label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccb_scheme_board .ccb_docs_fine { margin: 12px 8px 4px; }
.ccb_docs_src { margin: 8px 0 18px; }
.ccb_docs_src summary { cursor: pointer; color: var(--ccb-olive); font-weight: 700; }
.ccb_docs_sec { margin: 0 0 56px; scroll-margin-top: 120px; }
.ccb_docs_sec h2,
.ccb_docs_sheet h3,
.ccb_docs_card h3,
.ccb_docs_mod h3 {
    font-family: Farro, Inter, sans-serif;
    color: var(--ccb-olive);
}
.ccb_docs_sec h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 12px; }
.ccb_docs_sec > h3 {
    margin: 36px 0 10px;
    font-family: Farro, Inter, sans-serif;
    color: var(--ccb-olive);
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.25;
}
.ccb_docs_sec > p,
.ccb_docs_sec > .ccb_docs_note { margin: 0 0 14px; }
.ccb_docs_sheet h3,
.ccb_docs_card h3 { margin: 0 0 8px; }
.ccb_docs_k { margin: 0 0 6px; letter-spacing: .14em; text-transform: uppercase; color: var(--ccb-gold); font-size: 12px; font-weight: 700; }
.ccb_docs p { line-height: 1.6; }
.ccb_docs_note,
.ccb_docs_fine { color: #5d6258; font-size: 14px; }
.ccb_docs_grid,
.ccb_docs_split,
.ccb_docs_mods,
.ccb_docs_cards,
.ccb_docs_gallery { display: grid; gap: 16px; }
.ccb_docs_figure { margin: 16px 0; }
.ccb_docs_photo { width: 100%; max-height: 640px; object-fit: contain; background: #f4f2ea; border-radius: 18px; display: block; }
.ccb_docs_photo.is-scheme { max-height: none; background: #fff; }
.ccb_docs_figure figcaption { color: #5d6258; font-size: 14px; margin-top: 8px; }
.ccb_docs_seq { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; }
.ccb_docs_seq li { background: #fff; border: 1px solid #e4e1d4; border-radius: 18px; padding: 16px; }
.ccb_docs_qs { margin: 0 0 18px; padding-left: 1.2em; }
.ccb_docs_qs li { margin: 0 0 8px; }
@media (min-width: 800px) {
    .ccb_docs_mods { grid-template-columns: repeat(3, 1fr); }
    .ccb_docs_split { grid-template-columns: 1.2fr .8fr; align-items: start; }
    .ccb_docs_cards,
    .ccb_docs_gallery { grid-template-columns: 1fr 1fr; }
    .ccb_docs_facts { grid-template-columns: repeat(4, 1fr); }
}
.ccb_docs_mod,
.ccb_docs_card,
.ccb_docs_panel,
.ccb_docs_sheet,
.ccb_docs_table_wrap {
    background: #fff;
    border: 1px solid #e4e1d4;
    border-radius: 18px;
}
.ccb_docs_mod,
.ccb_docs_card { padding: 18px; color: inherit; text-decoration: none; display: block; }
.ccb_docs_mod:hover,
.ccb_docs_card:hover { border-color: var(--ccb-gold); }
.ccb_docs_illus { width: 100%; height: 120px; display: block; }
.ccb_docs_facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.ccb_docs_fact {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #e4e1d4;
}
.ccb_docs_fact strong {
    display: block;
    font-family: Farro, sans-serif;
    font-size: 22px;
    color: var(--ccb-dark);
}
.ccb_docs_ev {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    margin: 0 6px 6px 0;
}
.ccb_docs_ev.is-ensaio { background: #4e4d1f; color: #fff; }
.ccb_docs_ev.is-medido { background: #787630; color: #fff; }
.ccb_docs_ev.is-fabricante { background: #f4f1d8; color: #4e4d1f; border-color: #b2ab47; }
.ccb_docs_ev.is-codigo { background: #e7efe4; color: #24501f; }
.ccb_docs_ev.is-experimental { background: #fff; color: #4e4d1f; border: 1px dashed #b2ab47; }
.ccb_docs_ev.is-hipotese { background: #fff8e8; color: #6a5314; border-color: #e0c56a; }
.ccb_docs_ev.is-planeado { background: #f7f6f1; color: #5c6140; border-color: #d5d1c0; }
.ccb_docs_ev.is-pendente { background: #fff; color: #6b6548; border-color: #c8c2a4; }
.ccb_docs_ev.is-historico { background: #eee; color: #666; text-decoration: line-through; text-decoration-thickness: 1px; }
.ccb_docs_flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 12px 0; }
.ccb_docs_stage {
    flex: 1 1 140px;
    text-align: left;
    appearance: none;
    border: 1px solid #e4e1d4;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    color: inherit;
}
.ccb_docs_stage.is-on,
.ccb_docs_node.is-on,
.ccb_docs_gloss button.is-on,
.ccb_docs_ctrl.is-on { border-color: var(--ccb-dark); box-shadow: inset 0 0 0 1px var(--ccb-dark); }
.ccb_docs_arrow { align-self: center; color: var(--ccb-gold); font-weight: 700; }
.ccb_docs_svgwrap { overflow-x: auto; background: #f7f6f1; border-radius: 18px; border: 1px solid #e4e1d4; }
.ccb_docs_svgwrap svg { width: 100%; height: auto; display: block; min-width: 640px; }
.ccb_docs_svgwrap g { cursor: pointer; }
.ccb_docs_svgwrap g rect { fill: #fff; stroke: #cfcab4; }
.ccb_docs_svgwrap g.is-on rect { fill: #f7f4df; stroke: #4e4d1f; stroke-width: 2.5; }
.ccb_docs_svgwrap g:focus rect { stroke: #b2ab47; stroke-width: 3; }
.ccb_docs_svgwrap text { font-family: Inter, sans-serif; font-size: 13px; fill: #4e4d1f; }
.ccb_docs_sheet { padding: 16px 18px; }
.ccb_docs_nodes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ccb_docs_node {
    appearance: none;
    border: 1px solid #e4e1d4;
    background: #fff;
    border-radius: 999px;
    min-height: 40px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--ccb-dark);
    font-weight: 600;
}
.ccb_docs_table_wrap { overflow-x: auto; }
.ccb_docs_table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
.ccb_docs_table th,
.ccb_docs_table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee8d8; vertical-align: top; }
.ccb_docs_table th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ccb-olive); }
.ccb_docs_instrument {
    background: #222218;
    color: #f4f1df;
    border-radius: 22px;
    padding: 16px;
}
.ccb_docs_instrument_top,
.ccb_docs_controls,
.ccb_docs_readout { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ccb_docs_lamp {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid #b2ab47;
    background: #2a2a20;
    font-family: Farro, sans-serif;
    letter-spacing: .08em;
}
.ccb_docs_lamp.is-high { background: #b2ab47; color: #1d1d10; }
.ccb_docs_lamp.is-low { background: transparent; color: #e4df9a; }
.ccb_docs_ctrl {
    appearance: none;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(228, 223, 154, .45);
    background: transparent;
    color: #f4f1df;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
}
.ccb_docs_ctrl.is-on { background: #b2ab47; color: #1d1d10; border-color: #b2ab47; }
.ccb_docs_readout { margin-top: 12px; font-variant-numeric: tabular-nums; }
.ccb_docs_readout strong { font-size: 28px; font-family: Farro, sans-serif; }
.ccb_docs_chart { width: 100%; height: 84px; display: block; margin-top: 12px; background: #1a1a14; border-radius: 12px; }
.ccb_docs_bars { display: grid; gap: 8px; margin-top: 14px; }
.ccb_docs_bar { display: grid; grid-template-columns: 88px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.ccb_docs_bar span { height: 10px; background: #3a3a2c; border-radius: 99px; overflow: hidden; }
.ccb_docs_bar i { display: block; height: 100%; background: #b2ab47; }
.ccb_docs_bar.is-b i { background: #d9d48a; }
.ccb_docs_cmp { display: grid; gap: 12px; }
@media (min-width: 900px) { .ccb_docs_cmp { grid-template-columns: 1fr 1fr; } }
.ccb_docs_col { background: #fff; border: 1px solid #e4e1d4; border-radius: 18px; padding: 14px; }
.ccb_docs_col h3 { margin-top: 0; }
.ccb_docs_toggle { display: flex; gap: 8px; margin-bottom: 12px; }
@media (min-width: 900px) { .ccb_docs_toggle { display: none; } }
@media (max-width: 899px) {
    .ccb_docs_col { display: none; }
    .ccb_docs_col.is-show { display: block; }
}
.ccb_docs_monitor { display: grid; gap: 10px; }
@media (min-width: 700px) { .ccb_docs_monitor { grid-template-columns: 1fr 1fr; } }
.ccb_docs_kv { background: #fff; border-radius: 14px; padding: 12px 14px; border: 1px solid #e4e1d4; }
.ccb_docs_kv span { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ccb-olive); }
.ccb_docs_steps { display: flex; flex-wrap: wrap; gap: 8px; }
.ccb_docs_hex {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.55;
    background: #222218;
    color: #f4f1df;
    border-radius: 14px;
    padding: 12px;
    overflow-x: auto;
}
.ccb_docs_hex mark { background: #b2ab47; color: #1d1d10; border-radius: 4px; padding: 0 3px; }
.ccb_docs_gloss { display: flex; flex-wrap: wrap; gap: 8px; }
.ccb_docs_gloss button {
    appearance: none;
    border: 1px solid #e4e1d4;
    background: #fff;
    border-radius: 999px;
    min-height: 36px;
    padding: 6px 10px;
    cursor: pointer;
}
.ccb_docs_gloss_def { background: #fff; border-radius: 14px; padding: 12px 14px; border: 1px solid #e4e1d4; }
.ccb_docs_time { border-left: 3px solid var(--ccb-gold); margin: 0; padding: 0; list-style: none; }
.ccb_docs_time li { padding: 0 0 18px 16px; }
.ccb_docs_time time { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ccb-olive); }
.ccb_docs_legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; }
.ccb_docs_legend i { display: inline-block; width: 18px; height: 4px; margin-right: 6px; vertical-align: middle; background: #b2ab47; }
.ccb_docs_legend .is-block i { background: transparent; border-top: 2px dashed #a33; height: 0; }
.ccb_docs_statebtn.is-now { background: var(--ccb-dark); color: #fff; }
.ccb_docs button:focus-visible,
.ccb_docs a:focus-visible,
.ccb_docs g:focus-visible {
    outline: 2px solid #b2ab47;
    outline-offset: 3px;
}
@media (max-width: 700px) {
    .ccb_docs_hero_row { flex-direction: column; align-items: flex-start; }
    .ccb_docs_hero h1 { max-width: none; }
    .ccb_docs_lang { justify-content: flex-start; }
    .ccb_docs_bar { grid-template-columns: 72px 1fr; }
    .ccb_docs_bar em { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
    .ccb_docs_lamp,
    .ccb_docs_chart,
    .ccb_docs * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
