/* brasil-kto-app.com · family E: layout denso de fichas e tabelas · prefixo tb · ardósia clara com vermelho KTO */
:root{--tb-bg:#EEF1F5;--tb-card:#FFFFFF;--tb-ink:#17202C;--tb-mut:#4C5868;--tb-line:#D5DCE5;--tb-line2:#C2CBD7;--tb-head:#1B2330;--tb-red:#D00000;--tb-red2:#A80000;--tb-soft:#F6F8FB}
body.tb{margin:0;background:var(--tb-bg);color:var(--tb-ink);font:400 17px/1.65 "IBM Plex Sans","Segoe UI",system-ui,Arial,sans-serif;-webkit-text-size-adjust:100%}
.tb *,.tb *::before,.tb *::after{box-sizing:border-box}
.tb img{max-width:100%;height:auto;display:block}
.tb a{color:var(--tb-red2);text-underline-offset:3px}
.tb a:hover{color:var(--tb-ink)}
.tb h1,.tb h2{font-family:"IBM Plex Sans",system-ui,sans-serif;font-weight:700;margin:0;letter-spacing:-.015em;overflow-wrap:break-word}
.tb h2{font-size:clamp(23px,2.4vw,28px);line-height:1.25;margin:0 0 14px;padding-left:14px;border-left:4px solid var(--tb-red)}
.tb p{margin:0 0 14px}
.tb .shell{width:min(1240px,calc(100% - 32px));margin:0 auto}
.tb-narrow{max-width:900px}
.tb-mono{font-family:"IBM Plex Mono",Consolas,monospace;font-weight:600;font-size:.94em}
.tb a:focus-visible,.tb summary:focus-visible{outline:3px solid var(--tb-red);outline-offset:2px}

/* botões */
.tb .btn,.tb a.tb-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:6px;background:var(--tb-red);color:#fff;text-decoration:none;font:600 16px/1.1 "IBM Plex Sans",sans-serif;border:1px solid var(--tb-red2);transition:background .15s}
.tb .btn:hover,.tb a.tb-btn:hover{background:var(--tb-red2);color:#fff}
.tb a.tb-btn-w{background:#fff;color:var(--tb-ink);border-color:#fff}
.tb a.tb-btn-w:hover{background:#E8ECF1;color:var(--tb-ink)}
.tb-ghost{display:inline-flex;align-items:center;min-height:48px;padding:0 18px;border-radius:6px;border:1px solid var(--tb-line2);background:#fff;color:var(--tb-ink)!important;text-decoration:none;font-weight:600}
.tb-ghost:hover{border-color:var(--tb-ink)}
.tb-ad{display:block;margin:10px 0 0;font-size:14.5px;color:#66717F}

/* cabeçalho */
.tb .top{position:sticky;top:0;z-index:50;background:var(--tb-head);color:#fff}
.tb .top-in{display:flex;align-items:center;gap:8px 18px;min-height:60px;flex-wrap:wrap}
.tb .top-in>a:first-child{line-height:0;flex:none;background:#fff;padding:7px 10px;border-radius:4px}
.tb .top-in>a:first-child img{height:20px;width:auto}
.tb .top .tag{font:600 15px/1 "IBM Plex Mono",Consolas,monospace;color:#C9D2DE;letter-spacing:.02em}
.tb .top nav{display:flex;margin-left:auto;border-left:1px solid #364254}
.tb .top nav a{display:inline-flex;align-items:center;min-height:60px;padding:0 18px;color:#fff;text-decoration:none;font-weight:500;font-size:15.5px;border-right:1px solid #364254;white-space:nowrap}
.tb .top nav a:hover{background:#263142}
.tb .top .btn-main{min-height:42px;padding:0 16px;font-size:15px}

/* cabeçalho da ficha */
.tb-head{background:var(--tb-card);border-bottom:1px solid var(--tb-line)}
.tb-head-in{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.9fr);gap:40px;padding:42px 0 44px;align-items:start}
.tb-head-one{grid-template-columns:minmax(0,900px)}
.tb-head-sm .tb-head-in{padding:36px 0 38px}
.tb-crumbline{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 18px;color:var(--tb-mut);font-size:14.5px}
.tb-pill{display:inline-block;padding:5px 10px;border-radius:4px;background:var(--tb-red);color:#fff;font:600 14.5px/1.2 "IBM Plex Mono",monospace;letter-spacing:.02em}
.tb-head h1{font-size:clamp(30px,3.8vw,46px);line-height:1.12;margin:0 0 16px}
.tb-lead{font-size:clamp(17.5px,1.5vw,19px);color:var(--tb-mut);max-width:760px}
.tb-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.tb-status{margin:0;border:1px solid var(--tb-line2);border-radius:8px;overflow:hidden;background:var(--tb-soft)}
.tb-status div{display:grid;grid-template-columns:140px 1fr;border-bottom:1px solid var(--tb-line)}
.tb-status div:last-child{border-bottom:0}
.tb-status dt{padding:12px 14px;font:600 14.5px/1.4 "IBM Plex Mono",monospace;color:var(--tb-mut);background:#E6EBF1;text-transform:uppercase;letter-spacing:.03em}
.tb-status dd{margin:0;padding:12px 14px;font-weight:600;font-size:16px;display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.tb-dot{width:10px;height:10px;border-radius:50%;background:var(--tb-red);box-shadow:0 0 0 4px rgba(208,0,0,.15);flex:none}

/* seções */
.tb-sec{padding:46px 0}
.tb-alt{background:var(--tb-soft);border-top:1px solid var(--tb-line);border-bottom:1px solid var(--tb-line)}
.tb-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:36px;align-items:start}
.tb-grid-r{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}
.tb-grid>*,.tb-head-in>*{min-width:0}
.tb-fig{margin:0;background:var(--tb-card);border:1px solid var(--tb-line);border-radius:8px;padding:10px}
.tb-fig img{border-radius:4px;background:var(--tb-head);margin:0 auto;max-height:440px;width:auto}
.tb-fig figcaption{padding:10px 4px 2px;font-size:14.5px;color:var(--tb-mut)}
.tb-fig .tb-mono{color:var(--tb-red);margin-right:6px}
.tb-ol{margin:0 0 16px;padding-left:24px}
.tb-ol li{margin-bottom:8px;padding-left:4px}
.tb-ol li::marker{font-family:"IBM Plex Mono",monospace;font-weight:600;color:var(--tb-red)}
.tb-warn{margin:18px 0;padding:14px 18px;border:1px solid #EBC3C3;border-left:4px solid var(--tb-red);background:#FFF5F5;border-radius:6px}
.tb-inline-cta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin:18px 0!important}
.tb-inline-cta .tb-ad{margin:0}

/* tabelas */
.tb-tw{overflow-x:auto;margin:6px 0 16px;background:var(--tb-card);border:1px solid var(--tb-line2);border-radius:8px}
.tb table{width:100%;border-collapse:collapse;font-size:16px}
.tb caption{caption-side:top;text-align:left;padding:12px 14px;font:600 14.5px/1.3 "IBM Plex Mono",monospace;color:var(--tb-mut);border-bottom:1px solid var(--tb-line);text-transform:uppercase;letter-spacing:.04em}
.tb th,.tb td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--tb-line);vertical-align:top}
.tb thead th{background:var(--tb-head);color:#fff;font:600 14.5px/1.3 "IBM Plex Sans",sans-serif;letter-spacing:.02em;white-space:nowrap}
.tb tbody tr:nth-child(even) td,.tb tbody tr:nth-child(even) th{background:var(--tb-soft)}
.tb tbody tr:hover td{background:#FFF7F7}
.tb tbody tr:last-child td,.tb tbody tr:last-child th{border-bottom:0}
.tb td:first-child{font-weight:600}
.tb tbody th[scope=row]{width:34%;font-weight:600;background:#E9EEF4}
.tb-steps td:first-child{font-family:"IBM Plex Mono",monospace;color:var(--tb-red);width:44px}
.tb-index a{font-weight:600}

/* FAQ */
.tb-faq{border:1px solid var(--tb-line2);border-radius:8px;overflow:hidden;background:var(--tb-card)}
.tb-faq-r{border-bottom:1px solid var(--tb-line)}
.tb-faq-r:last-child{border-bottom:0}
.tb-faq-r summary{list-style:none;cursor:pointer;padding:14px 46px 14px 16px;position:relative;font-weight:600;font-size:17px}
.tb-faq-r summary::-webkit-details-marker{display:none}
.tb-faq-r summary::after{content:"+";position:absolute;right:16px;top:12px;font:600 20px/1 "IBM Plex Mono",monospace;color:var(--tb-red)}
.tb-faq-r[open] summary::after{content:"−"}
.tb-faq-r summary b,.tb-faq-r p b{font-family:"IBM Plex Mono",monospace;color:var(--tb-red);margin-right:4px}
.tb-faq-r p{margin:0;padding:0 16px 16px;color:var(--tb-mut)}

/* fim */
.tb-end{background:var(--tb-head);color:#E4E9F0}
.tb-end-in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 30px;padding:34px 0}
.tb-end p{margin:0;font-size:18px}
.tb-end b{color:#fff}
.tb-end .tb-ad{color:#AFB9C7}
.tb-prose h2{margin-top:30px}
.tb-prose h2:first-child{margin-top:0}

/* rodapé */
.tb .foot{background:#121923;color:#A9B3C1;padding:38px 0 32px;font-size:15px}
.tb .foot-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #2A3443}
.tb .foot-top>a{line-height:0;background:#fff;padding:6px 9px;border-radius:4px}
.tb .foot-top img{height:20px;width:auto}
.tb .foot nav{display:flex;flex-wrap:wrap;gap:0 2px}
.tb .foot nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;color:#E8EDF3;text-decoration:none}
.tb .foot nav a:hover{text-decoration:underline}
.tb .foot p{margin:0 0 6px;max-width:900px}

@media (max-width:980px){
  .tb-head-in,.tb-grid,.tb-grid-r{grid-template-columns:1fr;gap:26px}
  .tb-grid-r .tb-fig{order:2}
}
@media (max-width:720px){
  body.tb{font-size:16.5px}
  .tb .top{position:relative}
  .tb .top-in{min-height:0;padding:10px 0 0;gap:8px 10px}
  .tb .top .tag{font-size:14.5px}
  .tb .top .btn-main{margin-left:auto}
  .tb .top nav{order:3;width:100%;margin:0 -16px;width:calc(100% + 32px);border-left:0;border-top:1px solid #364254;overflow-x:auto;scrollbar-width:none}
  .tb .top nav::-webkit-scrollbar{display:none}
  .tb .top nav a{min-height:46px;flex:1;justify-content:center;padding:0 12px}
  .tb .top nav a:last-child{border-right:0}
  .tb-acts .tb-btn,.tb-acts .tb-ghost{width:100%;justify-content:center}
  .tb-status div{grid-template-columns:118px 1fr}
  .tb-sec{padding:36px 0}
  .tb table{font-size:15px}
  .tb th,.tb td{padding:9px 8px;overflow-wrap:anywhere;hyphens:auto}
  .tb-steps td:first-child{width:28px}
  .tb thead th{white-space:normal}
  .tb-end-in .tb-btn{width:100%}
}
@media (max-width:440px){
  .tb .top .tag{order:2;width:100%}
  .tb .top .btn-main{order:1}
}
