.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 100px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 90px;
}

.toc-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 8px;
  display: block;
  transition: all 0.2s ease;
}

.toc a:hover {
  background: var(--toc-hover);
  color: var(--dark-bg);
}

.content header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(10,20,51,.12);
}

.badge {
  display: inline-block;
  background: rgba(201,166,136,.18);
  color: var(--dark-bg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.content h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -.03em;
  margin-bottom: 12px;
  color: var(--dark-bg);
}

.meta {
  color: #5b6575;
  font-size: .88rem;
}

.section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(10,20,51,.10);
}

.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--dark-bg);
}

.section p {
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 14px;
}

.section a {
  color: var(--text-dark);
}

.section ul {
  list-style: none;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section ul li {
  color: var(--text-dark);
  padding-left: 22px;
  position: relative;
}

.section ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: .72em;
}

.highlight-box {
  background: var(--muted);
  border: 1px solid rgba(10,20,51,.10);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  color: var(--text-dark);
  box-shadow: 0 8px 24px rgba(10,20,51,.05);
}

/* =====================================================
   RESPONSIVE OVERRIDES
===================================================== */

/* Ultra Wide */
@media (min-width:1800px) {
  .page-wrapper {
    max-width:1200px;
  }

}


/* Desktop */
@media (max-width:1400px) {
  .page-wrapper {
    max-width:1000px;
    gap:48px;
  }

}


/* Laptop */
@media (max-width:1200px) {
  .page-wrapper {
    grid-template-columns:200px 1fr;
    gap:40px;
    padding-left:32px;
    padding-right:32px;
  }

  .content header {
    margin-bottom:40px;
  }

}

/* Tablet */
@media (max-width:992px) {
  .page-wrapper {
    grid-template-columns:1fr;
    gap:36px;
    padding:50px 32px 90px;
  }

  .toc {
    position:static;
  }

  .content h1 {
    font-size:2rem;
  }

}

/* Mobile Landscape / Large Mobile */
@media (max-width:768px) {
  .page-wrapper {
    padding:40px 24px 70px;
    gap:32px;
  }

  .toc-label {
    margin-bottom:12px;
  }

  .toc ul {
    flex-direction:column;
    gap:4px;
  }

  .toc a {
    padding:8px 10px;
    font-size:.86rem;
  }

  .content header {
    margin-bottom:36px;
    padding-bottom:24px;
  }

  .badge {
    font-size:.7rem;
  }

  .content h1 {
    font-size:1.8rem;
    line-height:1.15;
  }

  .meta {
    font-size:.82rem;
  }

  .section {
    margin-bottom:40px;
    padding-bottom:40px;
  }

  .section h2 {
    font-size:1.2rem;
  }

  .section p {
    line-height:1.65;
  }

  .highlight-box {
    padding:18px;
  }

}

/* Small Mobile */
@media (max-width:480px) {
  .page-wrapper {
    padding:32px 18px 60px;
  }

  .content h1 {
    font-size:1.55rem;
    letter-spacing:-.02em;
  }

  .badge {
    padding:4px 10px;
  }

  .section h2 {
    font-size:1.1rem;
  }

  .section p,
  .section li {
    font-size:.92rem;
  }

  .highlight-box {
    padding:16px;
    border-left-width:3px;
  }

}

/* Mobile Landscape height optimization */
@media (max-height:500px) and (max-width:900px) {
  .page-wrapper {
    padding-top:25px;
    padding-bottom:50px;
  }
  
}