html, body{
  margin:0;
  padding:0;
  min-height:100%;
  box-sizing:border-box;
}
*, *::before, *::after{ box-sizing:inherit; }

:root{
  --bg:#f4f7fb;
  --surface:#ffffff;
  --surface-soft:#f8fbff;
  --border:#dce7f5;
  --text:#15304e;
  --text-soft:#4a6481;
  --primary:#174ea6;
  --primary-strong:#0d2f72;
  --accent:#1f8dd6;
  --shadow:0 18px 40px rgba(13, 47, 114, 0.08);
  --radius-lg:22px;
  --radius-md:16px;
}

body{
  font-family:'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 141, 214, 0.08), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
  color:var(--text);
}

.arquivos-doc{
  min-height:100vh;
  padding-bottom: 96px;
}

.hero{
  padding:54px 5vw 36px;
  background:linear-gradient(135deg, #0d2f72 0%, #174ea6 55%, #2a8bd3 100%);
  color:#fff;
  position:relative;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(13, 47, 114, 0.18);
}

.hero::after{
  content:'';
  position:absolute;
  inset:auto -100px -140px auto;
  width:360px;
  height:360px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  filter:blur(10px);
}

.hero-inner{
  max-width:1180px;
  margin:0 auto;
  position:relative;
  z-index:1;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.18);
  font-size:0.92rem;
  font-weight:600;
  letter-spacing:0.02em;
}

.eyebrow--soft{
  background:#eaf3ff;
  color:var(--primary);
  border-color:#d7e6fb;
}

.hero h1{
  margin:16px 0 12px;
  font-size:clamp(2rem, 4vw, 3.2rem);
  line-height:1.06;
}

.hero-text{
  max-width:860px;
  margin:0;
  color:rgba(255,255,255,0.9);
  font-size:1.08rem;
  line-height:1.72;
}

.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.hero-badges span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.16);
  font-weight:600;
}
.hero-badges i{ width:16px; height:16px; }

.page-shell{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:26px;
  max-width:1180px;
  margin:-30px auto 0;
  padding:0 22px;
  position:relative;
  z-index:2;
}

.quick-nav{
  align-self:start;
  position:sticky;
  top:24px;
  padding:20px;
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(220,231,245,0.95);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
}
.quick-nav__title{
  font-weight:700;
  margin-bottom:14px;
  color:var(--primary-strong);
}
.quick-nav a{
  display:block;
  padding:11px 12px;
  margin-bottom:8px;
  color:var(--text);
  text-decoration:none;
  border-radius:12px;
  transition:.2s ease;
  border:1px solid transparent;
}
.quick-nav a:hover{
  background:#edf4ff;
  border-color:#d4e4fb;
  color:var(--primary);
}

.content{
  display:grid;
  gap:22px;
}

.intro-card,
.section-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
}
.intro-card{ padding:28px 30px; }
.section-card{ padding:28px 30px; }

.intro-card h2,
.section-heading h2{
  margin:12px 0 8px;
  font-size:clamp(1.45rem, 2vw, 2rem);
  color:var(--primary-strong);
}
.intro-card p,
.section-heading p,
.info-card p,
.feature-card p,
.mini-card p,
.catalog-intro,
.unused-card__desc,
.callout{
  color:var(--text-soft);
  line-height:1.75;
}

.section-tag{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:#eaf3ff;
  color:var(--primary);
  font-weight:700;
  font-size:0.82rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

.stats-grid,
.grid{
  display:grid;
  gap:18px;
}
.stats-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); margin-top:20px; }
.grid.two{ grid-template-columns:repeat(2, minmax(0,1fr)); }
.grid.three{ grid-template-columns:repeat(3, minmax(0,1fr)); }

.stat-card,
.info-card,
.feature-card,
.mini-card{
  border-radius:18px;
  border:1px solid var(--border);
  background:var(--surface-soft);
  padding:20px;
}
.stat-label{
  display:block;
  color:var(--primary);
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:8px;
  font-weight:700;
}
.stat-card strong{ font-size:1.02rem; color:var(--primary-strong); }

.info-card__top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.pill{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:6px 10px;
  font-size:.75rem;
  font-weight:700;
  background:#edf4ff;
  color:var(--primary);
  text-transform:uppercase;
  letter-spacing:.05em;
}
.anchor-link,
.feature-card a,
.doc-link{
  color:var(--primary);
  text-decoration:none;
  font-weight:700;
}
.anchor-link:hover,
.feature-card a:hover,
.doc-link:hover{ text-decoration:underline; }

.info-card h3,
.feature-card h3,
.mini-card h3{
  margin:0 0 10px;
  color:var(--primary-strong);
  font-size:1.08rem;
}

.feature-card{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:14px;
  align-items:flex-start;
}
.feature-card__icon{
  width:52px;
  height:52px;
  border-radius:16px;
  background:#edf4ff;
  color:var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
}
.feature-card__icon i{ width:24px; height:24px; }

.callout{
  margin-top:18px;
  padding:16px 18px;
  border-radius:16px;
  background:#f1f7ff;
  border:1px solid #d9e8ff;
}

.unused-catalog{
  display:grid;
  gap:18px;
  margin-top:22px;
}
.catalog-intro{
  margin:0 0 8px;
}
.unused-card{
  background:#fbfdff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px;
  box-shadow:0 10px 22px rgba(13, 47, 114, 0.04);
}
.unused-card__header{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:12px;
}
.unused-card__eyebrow{
  display:inline-block;
  margin-bottom:6px;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--primary);
  font-weight:700;
}
.tabela-nome{
  margin:0;
  color:var(--primary-strong);
  font-size:1.45rem;
}
.unused-card__meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  white-space:nowrap;
}
.unused-card__meta span{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  background:#eef5ff;
  color:var(--primary);
  font-weight:700;
  font-size:.82rem;
}
.unused-card__meta a{
  color:var(--text-soft);
  text-decoration:none;
  font-weight:600;
}
.unused-card__meta a:hover{ color:var(--primary); text-decoration:underline; }

.table-wrap{
  overflow:auto;
  border-radius:14px;
  border:1px solid #e1ebf7;
}
.unused-table{
  width:100%;
  min-width:540px;
  border-collapse:collapse;
  background:#fff;
}
.unused-table th,
.unused-table td{
  padding:12px 14px;
  border-bottom:1px solid #e9f0f7;
  text-align:left;
}
.unused-table th{
  background:#12387e;
  color:#fff;
  font-weight:700;
}
.unused-table tbody tr:nth-child(even){ background:#f8fbff; }
.unused-table tbody td:first-child{ font-weight:600; color:#173b67; }

.link-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
  margin-top:22px;
}
.doc-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#f8fbff;
}

@media (max-width: 980px){
  .page-shell{
    grid-template-columns:1fr;
    margin-top:-18px;
  }
  .quick-nav{
    position:relative;
    top:0;
  }
  .stats-grid,
  .grid.two,
  .grid.three,
  .link-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 680px){
  .hero{ padding:42px 18px 28px; }
  .page-shell{ padding:0 14px; }
  .intro-card,
  .section-card{ padding:22px 18px; }
  .unused-card{ padding:18px; }
  .unused-card__header{
    flex-direction:column;
    align-items:flex-start;
  }
  .unused-card__meta{
    align-items:flex-start;
    white-space:normal;
  }
  .feature-card{
    grid-template-columns:1fr;
  }
}

.arquivos-doc .cards-stack{
  display:grid;
  gap:14px;
}
.arquivos-doc .role-card{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:20px;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--surface-soft);
}
.arquivos-doc .role-card__icon{
  width:52px;
  height:52px;
  flex:0 0 52px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#edf4ff;
  color:var(--primary);
}
.arquivos-doc .role-card__icon i{
  width:24px;
  height:24px;
}
.arquivos-doc .role-card h3{
  margin:0 0 8px;
  color:var(--primary-strong);
  font-size:1.08rem;
}
.arquivos-doc .code-panel{
  margin-top:20px;
  border:1px solid #d7e4f7;
  border-radius:18px;
  overflow:hidden;
  background:#0f1f3a;
  box-shadow:0 16px 30px rgba(15,31,58,0.12);
}
.arquivos-doc .code-panel__header{
  padding:14px 18px;
  background:#16315d;
  color:#fff;
  font-weight:700;
}
.arquivos-doc .code-panel pre{
  margin:0;
  padding:18px;
  overflow:auto;
}
.arquivos-doc .code-panel code{
  color:#d9e6ff;
  font-family:Consolas, "Courier New", monospace;
  font-size:.95rem;
  line-height:1.6;
}
.arquivos-doc .warning-card{
  margin-top:18px;
  padding:18px 20px;
  border-radius:18px;
  border:1px solid #f0d287;
  background:#fff8e9;
}
.arquivos-doc .warning-card h3{
  margin:0 0 10px;
  color:#a96808;
}
@media (max-width:680px){
  .arquivos-doc .role-card{
    flex-direction:column;
  }
}

.arquivos-doc .role-card ul{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--text-soft);
}
.arquivos-doc .role-card li{
  margin:8px 0;
  line-height:1.65;
}
.arquivos-doc .role-card__subtitle{
  margin:0 0 8px;
  color:var(--primary);
  font-weight:700;
}


/* --- blocos adicionados na auditoria de estrutura --- */
.stack-block{margin-top:28px;}
.stack-block h3{margin:0 0 14px;color:var(--primary-strong);font-size:1.15rem;}
.deep-card{
  background:var(--surface-soft);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:18px;
  box-shadow:0 8px 24px rgba(13,47,114,.06);
  margin-bottom:16px;
}
.deep-card__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}
.deep-card__header h3{margin:0;font-size:1.06rem;color:var(--primary-strong);}
.deep-card__header span{
  background:#e7f1ff;
  color:var(--primary-strong);
  border-radius:999px;
  padding:6px 10px;
  font-size:.86rem;
  font-weight:600;
  white-space:nowrap;
}
.deep-card__text{margin:0 0 12px;color:var(--text-soft);}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.chips span{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:#eef5ff;
  color:var(--primary-strong);
  border:1px solid #d6e5fb;
  font-size:.92rem;
}
.chips--large span{font-size:.95rem;padding:10px 14px;}
.links-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}
.doc-link{
  display:flex;
  gap:14px;
  align-items:flex-start;
  text-decoration:none;
  background:var(--surface-soft);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:18px;
  color:var(--text);
  box-shadow:0 8px 24px rgba(13,47,114,.06);
}
.doc-link:hover{transform:translateY(-2px);transition:.2s ease;}
.doc-link i{color:var(--accent);margin-top:2px;}
.doc-link strong{display:block;margin-bottom:4px;color:var(--primary-strong);}
.doc-link span{color:var(--text-soft);}
.section-card--accent{
  border:1px solid rgba(23,78,166,.18);
  background:linear-gradient(180deg,#f9fbff 0%,#f1f7ff 100%);
}
.bullet-list{margin:0;padding-left:18px;color:var(--text-soft);}
.bullet-list li{margin-bottom:10px;}
.muted{color:var(--text-soft);}
@media (max-width: 900px){
  .deep-card__header{flex-direction:column;}
}
