/* Layout Geral do Lab */
.lab-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 100px;
  box-sizing: border-box;
}

.intro h2 {
  color: var(--brand-light);
  margin-bottom: 8px;
  font-size: 24px;
}

.intro p {
  color: var(--text-body);
  font-size: 15px;
  margin-bottom: 32px;
}

.sub-title {
  color: var(--text-heading);
  font-size: 18px;
  margin: 40px 0 16px;
  border-left: 4px solid var(--brand-light);
  padding-left: 12px;
}

.preview-box {
  background: #0d0f10;
  border: 1px solid var(--input-stroke);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 24px;
}

/* 1. Holy Grail */
.grid-holy-grail {
  display: grid;
  grid-template-areas:
    "header header header"
    "nav main aside"
    "footer footer footer";
  grid-template-columns: 80px 1fr 80px;
  grid-template-rows: 40px 120px 40px;
  gap: 8px;
  width: 100%;
}

.grid-holy-grail * {
  background: var(--input-base);
  border: 1px solid var(--input-stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

header {
  grid-area: header;
  color: var(--brand-light);
}
nav {
  grid-area: nav;
}
main {
  grid-area: main;
  border-color: var(--brand-light);
}
aside {
  grid-area: aside;
}
footer {
  grid-area: footer;
}

/* 2. Bento Grid */
.grid-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 60px;
  gap: 12px;
  width: 100%;
}

.card {
  background: var(--input-base);
  border: 1px solid var(--input-stroke);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
}

.tall {
  grid-row: span 2;
  border-color: var(--brand-light);
}
.wide {
  grid-column: span 2;
}

/* Cards de Documentação */
.code-card {
  background: var(--input-base);
  border: 1px solid var(--input-stroke);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #292d31;
  border-bottom: 1px solid var(--input-stroke);
  font-size: 12px;
  color: var(--brand-light);
}

.code-header button {
  background: var(--brand-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  color: #131516;
  font-weight: bold;
  cursor: pointer;
}

pre {
  margin: 0;
  padding: 20px;
  background: #131516;
  overflow-x: auto;
}

code {
  font-family: "Consolas", monospace;
  font-size: 14px;
  color: #c8cdd0;
  line-height: 1.6;
}
