/* ============================================================
   AI SECURITY BLUEPRINT — GLOBAL DESIGN SYSTEM v2
   ============================================================ */

/* Reset base */
*, *::before, *::after { box-sizing: border-box; }

/* Site background */
html, body,
.wp-site-blocks,
.wp-block-post-content,
main { 
  background: #08090c !important; 
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove Ollie constraints */
.wp-site-blocks > *,
.is-layout-constrained,
.is-layout-flow,
.entry-content,
.alignwide,
.alignfull {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ============================================================
   BOOK PAGE CANVAS — o coração do layout
   ============================================================ */
.blueprint-canvas {
  max-width: 1040px;
  margin: 60px auto;
  padding: 72px 72px 56px;
  background: #111318;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
  border-radius: 4px;
  min-height: 80vh;
  font-family: Georgia, 'Times New Roman', serif;
  color: #c9d1d9;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.blueprint-canvas h1 {
  font-size: 38px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.blueprint-canvas h2 {
  font-size: 26px;
  color: #e6edf3;
  font-weight: 700;
  line-height: 1.25;
  margin: 56px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.blueprint-canvas h3 {
  font-size: 18px;
  color: #e6edf3;
  font-weight: 600;
  margin: 40px 0 16px 0;
}

.blueprint-canvas h4 {
  font-size: 12px;
  color: #8b949e;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 32px 0 12px 0;
}

.blueprint-canvas p {
  font-size: 16px;
  line-height: 1.85;
  color: #c9d1d9;
  margin: 0 0 20px 0;
  max-width: 820px;
}

.blueprint-canvas p.sub,
.blueprint-canvas .muted {
  color: #8b949e;
  font-style: italic;
}

.blueprint-canvas p.highlight,
.blueprint-canvas .strong {
  color: #e6edf3;
  font-weight: 600;
}

/* ============================================================
   TAGS
   ============================================================ */
.blueprint-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.blueprint-tag {
  font-size: 10px;
  font-family: 'Courier New', monospace;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 2px;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.blueprint-divider,
.blueprint-canvas hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 48px 0;
}

/* ============================================================
   TABLES
   ============================================================ */
.blueprint-canvas table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 40px 0;
  font-size: 14px;
}

.blueprint-canvas thead tr {
  background: #1c2030;
}

.blueprint-canvas th {
  padding: 11px 16px;
  text-align: left;
  font-size: 10px;
  font-family: 'Courier New', monospace;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(255,255,255,0.07);
  font-weight: 600;
}

.blueprint-canvas td {
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,0.06);
  line-height: 1.5;
}

.blueprint-canvas tr:nth-child(odd) td { background: #13161c; }
.blueprint-canvas tr:nth-child(even) td { background: #0f1117; }
.blueprint-canvas td:first-child { color: #c9d1d9; font-weight: 500; }
.blueprint-canvas td:not(:first-child) { color: #8b949e; }

/* ============================================================
   CODE BLOCKS
   ============================================================ */
.blueprint-canvas pre {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid #2f81f7;
  font-family: 'Courier New', 'SF Mono', monospace;
  font-size: 13px;
  color: #7ee787;
  padding: 24px 28px;
  margin: 0 0 36px 0;
  overflow-x: auto;
  line-height: 1.75;
  border-radius: 0 4px 4px 0;
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
.blueprint-section {
  margin-bottom: 72px;
}

/* ============================================================
   FOOTER EDITORIAL
   ============================================================ */
.blueprint-footer {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: #484f58;
  flex-wrap: wrap;
  gap: 8px;
}

.blueprint-footer a {
  color: #484f58;
  text-decoration: none;
}

.blueprint-footer a:hover { color: #8b949e; }

/* ============================================================
   PAGINATION PREV/NEXT
   ============================================================ */
.blueprint-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.blueprint-pagination a {
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: #484f58;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color 0.2s;
}

.blueprint-pagination a:hover { color: #8b949e; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .blueprint-canvas {
    margin: 0;
    padding: 40px 24px 40px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    min-height: 100vh;
  }

  .blueprint-canvas h1 { font-size: 28px; }
  .blueprint-canvas h2 { font-size: 22px; }

  .blueprint-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}