/* Mineratório · kit comum dos módulos de consulta normativa (Regimes, Licenciamento).
   Camadas Entender | Consultar, referência § com balão, cartão do ato, tabelas de consulta e siglas.
   Operações não carrega este arquivo. */

/* ---------- abertura e camadas ---------- */
.intro { padding-block: 40px 22px; display: grid; gap: 16px; }
.intro h1 { font-family: var(--am-f-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 72px); line-height: .98; letter-spacing: -.03em; text-transform: uppercase; overflow-wrap: anywhere; }
.intro .lead { font-size: 17px; color: var(--ct-text-soft); max-width: 62ch; }
.camadas { display: inline-flex; gap: 2px; padding: 4px; background: rgba(255,255,255,.05); border: 1px solid var(--ct-line); border-radius: 14px; justify-self: start; margin-top: 6px; }
.camadas button { height: 42px; padding: 0 22px; border: 0; border-radius: 11px; background: transparent; color: var(--ct-text-soft); font: 600 15px var(--ct-sans); cursor: pointer; }
.camadas button:hover { color: #fff; }
.camadas button[aria-selected="true"] { background: var(--am-grad-botao); color: #fff; }
.camadas button:focus-visible { outline: 2px solid var(--am-lima); outline-offset: 2px; }
.camada { display: block; }

.blk { padding-block: 22px 34px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.sec-head h2 { font-size: 28px; }
.tabs { display: inline-flex; gap: 2px; padding: 4px; background: rgba(255,255,255,.05); border: 1px solid var(--ct-line); border-radius: 14px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab { height: 38px; padding: 0 16px; border: 0; background: transparent; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--ct-text-soft); cursor: pointer; white-space: nowrap; transition: background .16s, color .16s; }
.tab:hover { color: var(--ct-text); }
.tab[aria-selected="true"] { background: var(--am-grad-botao); color: #fff; }
.tab:focus-visible { outline: 2px solid var(--am-lima); outline-offset: -2px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--ct-line-strong); background: rgba(255,255,255,.03); color: #fff; font: 600 14px var(--ct-sans); cursor: pointer; }
.btn:hover:not(:disabled) { border-color: rgba(255,255,255,.4); }
.btn.primary { background: var(--am-grad-botao); border-color: transparent; }

/* ---------- referência compacta ---------- */
.ref { all: unset; box-sizing: border-box; cursor: pointer; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; vertical-align: 1px; border-radius: 6px; border: 1px solid var(--ct-line-strong); color: var(--ct-text-soft); font: 600 11.5px/1 var(--ct-sans); }
.ref:hover, .ref[aria-expanded="true"] { color: #100E1B; background: var(--am-lima); border-color: var(--am-lima); }
.ref:focus-visible { outline: 2px solid var(--am-lima); outline-offset: 2px; }
.ref-pop { position: fixed; z-index: 60; max-width: 340px; padding: 12px 14px; border-radius: 12px; background: #fff; color: #100E1B; font-size: 13.5px; line-height: 1.45; box-shadow: 0 14px 32px rgba(0,0,0,.5); display: none; }
.ref-pop .label { color: #6a6557; display: block; margin-bottom: 4px; }
.ref-pop a { color: #3b1fd6; text-underline-offset: 2px; }
.ref-pop a:focus-visible { outline: 2px solid #3b1fd6; outline-offset: 2px; border-radius: 3px; }

/* ---------- cartão do ato ---------- */
.ato-card { padding: 22px 24px; display: grid; gap: 14px; position: sticky; top: calc(var(--top-h) + 16px); }
.ato-card h3 { font-size: 24px; }
.ato-card .oque { font-size: 16px; line-height: 1.6; }
.ato-card dl { margin: 0; display: grid; gap: 10px; padding: 14px 0; border-block: 1px solid var(--ct-line); }
.ato-card dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.ato-card dd { margin: 0; font-size: 15px; line-height: 1.45; }
.ato-card .sai dd { color: var(--am-lima); font-weight: 600; }
.ato-card .dep dd { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-ir { all: unset; box-sizing: border-box; cursor: pointer; font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--ct-line-strong); }
.chip-ir:hover, .chip-ir:focus-visible { border-color: var(--am-lima); outline: none; }
.chip-ir em { font-style: normal; color: var(--ct-text-soft); }
.desd { display: grid; gap: 10px; }
.desd-lista { display: grid; gap: 8px; position: relative; padding-left: 22px; }
.desd-lista::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 18px; width: 2px; background: rgba(255,255,255,.14); border-radius: 2px; }
.desd-item { all: unset; box-sizing: border-box; position: relative; display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ct-line); background: rgba(255,255,255,.02); }
.desd-item::before { content: ""; position: absolute; left: -22px; top: 18px; width: 16px; height: 2px; background: rgba(255,255,255,.14); }
.desd-item::after { content: ""; position: absolute; left: -19px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #17142a; }
.desd-item .tipo { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.desd-item b { font-size: 14.5px; color: #fff; }
.desd-item span:not(.tipo) { font-size: 14px; color: var(--ct-text-soft); line-height: 1.45; }
.desd-item.segue { --c: var(--am-lima); border-color: rgba(215,246,45,.35); background: rgba(215,246,45,.05); }
button.desd-item.segue { cursor: pointer; }
button.desd-item.segue:hover, button.desd-item.segue:focus-visible { border-color: var(--am-lima); outline: none; }
.desd-item.fim { --c: #FF8DA0; border-color: rgba(255,107,131,.4); background: rgba(255,26,64,.05); }
.desd-item.cond { --c: #F7C68F; border-color: rgba(247,198,143,.38); background: rgba(247,198,143,.05); }
.card-pe { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13.5px; }
.card-pe a, .lk { color: #fff; text-underline-offset: 3px; font-weight: 600; font-size: 13.5px; }

/* ---------- consultar ---------- */
.idx { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 4px 6px; }
.idx a { font-size: 13.5px; font-weight: 600; color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ct-line-strong); }
.idx a:hover, .idx a:focus-visible { border-color: var(--am-lima); outline: none; }
.tb { overflow-x: auto; }
.tb table { width: 100%; border-collapse: collapse; }
.tb th, .tb td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--ct-line); vertical-align: top; font-size: 14.5px; line-height: 1.45; }
.tb thead th { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ct-text-soft); border-bottom: 1px solid var(--ct-line-strong); }
.tb tbody th { font-size: 16px; font-weight: 600; color: #fff; }
.tb tbody th span { display: block; font-size: 12px; font-weight: 500; color: var(--ct-text-soft); }
.tb tr:last-child > * { border-bottom: 0; }
.tb .nw { white-space: nowrap; }
.tb .pz { font-weight: 600; color: var(--am-lima); white-space: nowrap; }
.tb .cs { color: #FF8DA0; }
.tb a { color: #fff; text-underline-offset: 3px; }
.vb { position: relative; display: block; width: 120px; height: 10px; margin: 6px 0 4px; border-radius: 4px; background: rgba(255,255,255,.06); }
.vb i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.vb .min { left: 0; background: rgba(93,51,251,.6); }
.vb .fx { background: repeating-linear-gradient(135deg, rgba(139,108,255,.55) 0 4px, rgba(139,108,255,.18) 4px 8px); }
.vb .seta { left: 0; right: 0; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, rgba(215,246,45,.6), rgba(215,246,45,.1)); }
.tb-nota { padding: 12px 18px; font-size: 13.5px; line-height: 1.5; color: var(--ct-text-soft); border-top: 1px solid var(--ct-line); }
.fontes ul { margin: 0; padding: 18px 22px 18px 40px; display: grid; gap: 8px; font-size: 14px; color: var(--ct-text-soft); }
.fontes a { color: #fff; text-underline-offset: 3px; }

/* ---------- siglas ---------- */
abbr.sg { text-decoration: underline dotted rgba(255,255,255,.45); text-underline-offset: 3px; cursor: help; }
abbr.sg:focus-visible { outline: 2px solid var(--am-lima); outline-offset: 2px; border-radius: 3px; }
.sg-pop { position: fixed; z-index: 50; max-width: 280px; padding: 10px 12px; border-radius: 10px; background: #fff; color: #100E1B; font-size: 13px; line-height: 1.45; box-shadow: 0 12px 28px rgba(0,0,0,.45); display: none; }
.sg-pop b { margin-right: 4px; }

@media (max-width: 760px) {
  .ato-card { padding: 18px 16px; }
  .ato-card dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sec-head h2 { font-size: 24px; }
  .tabs { width: 100%; }
  .tab { flex: 1 0 auto; padding: 0 12px; }
  .camadas { justify-self: stretch; }
  .camadas button { flex: 1; }
}
@media print {
  .camada[hidden] { display: block !important; content-visibility: visible !important; }
  .camadas, .top, .tabs { display: none !important; }
}
