/* =====================================================================
   BOOOT · Central de Tutoriais · camada sobre o PAINEL DS (GHL-nativo)
   Módulo do Painel logado (Área 2 · GHL). Herda _MARCA/patterns/painel.css
   (LIGHT, Inter, azul-royal, radius baixo) e imita o CABEÇALHO DE MÓDULO do
   GHL (título + abas) e as LISTAS de linhas (título forte + thumb pequeno),
   como as telas nativas Trechos/Links. Sem logo, sem footer. Só var() do DS.
   ===================================================================== */

.wrap{ width:min(1200px, 94vw); margin-inline:auto; }

/* ---- CABEÇALHO DE MÓDULO (GHL: título + abas + underline azul) ------ */
.topbar{ gap:0; overflow:visible; }
.mod-title{ font-size:22px; line-height:28px; font-weight:700; letter-spacing:-0.01em; color:var(--text-heading); white-space:nowrap; margin-right:28px; }
.mod-nav{ display:flex; align-items:stretch; gap:26px; height:88px; }
.mod-nav a{
  display:inline-flex; align-items:center; height:88px;
  color:var(--text-secondary); font-size:17px; line-height:1; font-weight:600;
  text-decoration:none; white-space:nowrap; border-bottom:3px solid transparent;
}
.mod-nav a:hover{ color:var(--text-heading); }
.mod-nav a.active{ color:var(--blue-primary); border-bottom-color:var(--blue-primary); }

/* overflow "Mais" (dropdown nativo · sem JS) */
.mod-more{ position:relative; }
.mod-more > summary{ list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:5px; height:88px; color:var(--text-secondary); font-size:17px; font-weight:600; border-bottom:3px solid transparent; }
.mod-more > summary::-webkit-details-marker{ display:none; }
.mod-more[open] > summary, .mod-more > summary:hover{ color:var(--text-heading); }
.mod-more > summary svg{ width:15px; height:15px; transition:transform .15s ease; }
.mod-more[open] > summary svg{ transform:rotate(180deg); }
.mod-more__menu{ position:absolute; left:0; top:72px; z-index:100; min-width:224px; background:var(--white); border:1px solid var(--border-card); border-radius:var(--radius-card); box-shadow:var(--shadow-md); padding:6px; }
.mod-more__menu a{ display:block; height:auto; padding:9px 12px; border-radius:8px; font-size:14px; font-weight:500; color:var(--text-secondary); text-decoration:none; border:0; }
.mod-more__menu a:hover{ background:var(--bg-card-soft); color:var(--text-heading); }
.mod-more__menu a.active{ background:var(--blue-soft); color:var(--blue-primary); font-weight:600; }

.mod-util{ margin-left:auto; display:flex; align-items:center; gap:10px; padding-left:16px; }
.mod-ic{ width:34px; height:34px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:var(--bg-track); color:var(--text-muted); border:0; cursor:pointer; }
.mod-ic svg{ width:17px; height:17px; }

/* ---- CABEÇALHO DA PÁGINA (título + descrição + busca à direita) ----- */
.page-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:24px; flex-wrap:wrap; }
.page-eyebrow{ font-size:12px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--blue-primary); margin:0 0 8px; }
.page-search{ position:relative; width:min(300px, 42vw); flex:0 0 auto; }
.page-search input{
  width:100%; height:40px; padding:0 14px 0 38px; font:inherit; font-size:14px;
  color:var(--text-heading); background:var(--white);
  border:1px solid var(--border-default); border-radius:var(--radius-input);
}
.page-search input::placeholder{ color:var(--text-soft); }
.page-search input:focus{ outline:none; border-color:var(--blue-primary); box-shadow:0 0 0 3px var(--blue-soft); }
.page-search svg{ position:absolute; left:13px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--text-soft); pointer-events:none; }
/* dropdown da busca */
.search-drop{ position:absolute; top:46px; left:0; right:0; z-index:100; background:var(--white); border:1px solid var(--border-card); border-radius:var(--radius-card); box-shadow:var(--shadow-md); padding:6px; max-height:60vh; overflow-y:auto; }
.search-drop a{ display:block; padding:9px 12px; border-radius:8px; text-decoration:none; }
.search-drop a:hover{ background:var(--bg-card-soft); }
.search-drop a strong{ display:block; font-size:14px; font-weight:600; color:var(--text-heading); }
.search-drop a span{ font-size:12px; color:var(--text-muted); }
.search-empty{ padding:12px; font-size:13px; color:var(--text-muted); text-align:center; }

.back{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--text-muted); text-decoration:none; margin-bottom:16px; }
.back:hover{ color:var(--blue-primary); }
.back svg{ width:15px; height:15px; }

/* ---- GRADE DE SEÇÕES (cards nativos · Início) ----------------------- */
.sect-grid{ display:grid; gap:var(--dashboard-gap); grid-template-columns:repeat(auto-fill, minmax(258px,1fr)); }
.scard{
  display:flex; flex-direction:column; gap:9px; text-decoration:none;
  background:var(--bg-card); border:1px solid var(--border-card);
  border-radius:var(--radius-card); box-shadow:var(--shadow-sm);
  padding:18px 18px 16px; transition:box-shadow .15s ease, border-color .15s ease;
}
.scard:hover{ box-shadow:var(--shadow-md); border-color:var(--blue-primary); }
.scard__ico{ width:38px; height:38px; border-radius:10px; background:var(--blue-soft); color:var(--blue-primary); display:flex; align-items:center; justify-content:center; }
.scard__ico svg{ width:20px; height:20px; }
.scard h3{ margin:0; font-size:16px; line-height:22px; font-weight:600; color:var(--text-heading); }
.scard p{ margin:0; font-size:13px; line-height:19px; color:var(--text-secondary); }
.scard__meta{ margin-top:4px; font-size:12px; color:var(--text-muted); }
.scard__go{ margin-top:2px; font-size:13px; font-weight:600; color:var(--blue-primary); }

/* ---- CABEÇALHO DE PRATELEIRA ---------------------------------------- */
.shelf-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin:var(--space-8) 0 var(--space-4); }
.shelf-head h2{ margin:0; font-size:19px; line-height:26px; font-weight:700; letter-spacing:-0.01em; color:var(--text-heading); }
.shelf-head a{ font-size:13px; font-weight:600; color:var(--blue-primary); text-decoration:none; flex:0 0 auto; }

/* ---- LISTA DE TUTORIAIS (linhas · GHL-nativo · título forte) --------- */
.tut-list{ display:flex; flex-direction:column; background:var(--bg-card); border:1px solid var(--border-card); border-radius:var(--radius-card); box-shadow:var(--shadow-sm); overflow:hidden; }
.trow{ display:grid; grid-template-columns:150px 1fr 20px; gap:16px; align-items:center; padding:12px 16px; border-top:1px solid var(--border-soft); text-decoration:none; transition:background .12s ease; }
.trow:first-child{ border-top:0; }
.trow:hover{ background:var(--bg-card-soft); }
.trow__thumb{ width:150px; aspect-ratio:16/9; border-radius:6px; background:var(--blue-soft); border:1px solid var(--border-soft); display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.trow__thumb .pp{ width:34px; height:34px; border-radius:999px; background:var(--white); box-shadow:var(--shadow-sm); display:flex; align-items:center; justify-content:center; }
.trow__thumb .pp svg{ width:13px; height:13px; color:var(--blue-primary); margin-left:2px; }
.trow__body{ min-width:0; }
.trow__body h4{ margin:0 0 3px; font-size:15px; line-height:21px; font-weight:600; color:var(--text-heading); }
.trow__body p{ margin:0; font-size:13px; line-height:19px; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.trow__chev{ width:18px; height:18px; color:var(--text-soft); }

/* ---- PÁGINA DE TUTORIAL --------------------------------------------- */
.doc{ max-width:820px; }
.doc__lead{ margin:4px 0 0; font-size:15px; line-height:23px; color:var(--text-secondary); }

.video{ aspect-ratio:16/9; width:100%; margin:var(--space-6) 0; border:1px solid var(--border-card); border-radius:var(--radius-card); overflow:hidden; box-shadow:var(--shadow-sm); background:var(--bg-track); }
.video iframe{ width:100%; height:100%; border:0; display:block; }

.doc h2.block{ font-size:18px; line-height:26px; font-weight:700; letter-spacing:-0.01em; color:var(--text-heading); margin:var(--space-8) 0 var(--space-4); }

.tut-steps{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:14px; }
.tut-steps li{ display:grid; grid-template-columns:28px 1fr; gap:12px; align-items:start; color:var(--text-secondary); font-size:14px; line-height:21px; }
.tut-steps .n{ width:28px; height:28px; border-radius:999px; background:var(--blue-soft); color:var(--blue-primary); font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.tut-steps + .step-group{ margin-top:var(--space-5); }
.step-group{ font-size:14px; font-weight:700; color:var(--text-heading); margin:0 0 10px; }

.note{ margin:var(--space-5) 0; padding:14px 16px; border-radius:var(--radius-card); font-size:13px; line-height:20px; }
.note b{ display:flex; align-items:center; gap:8px; font-size:11px; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:6px; }
.note b svg{ width:15px; height:15px; }
.note--warn{ background:var(--warning-bg); border:1px solid var(--warning-bg); color:var(--text-secondary); }
.note--warn b{ color:var(--warning-text); }
.note--info{ background:var(--blue-soft); border:1px solid var(--blue-soft); color:var(--text-secondary); }
.note--info b{ color:var(--blue-primary); }

.links{ list-style:none; margin:var(--space-4) 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
.links a{ display:inline-flex; align-items:center; gap:8px; color:var(--blue-primary); font-weight:500; text-decoration:none; font-size:14px; }

.dl-wrap{ margin:var(--space-5) 0; }
.related{ margin-top:var(--space-9); padding-top:var(--space-8); border-top:1px solid var(--border-soft); }

@media (max-width:640px){
  .topbar{ height:auto; min-height:64px; padding:0 16px; flex-wrap:wrap; }
  .mod-nav{ height:56px; gap:20px; }
  .mod-nav a{ height:56px; font-size:15px; }
  .mod-util{ display:none; }
  .trow{ grid-template-columns:112px 1fr; }
  .trow__thumb{ width:112px; }
  .trow__chev{ display:none; }
  .trow__body p{ white-space:normal; }
}
