h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.content-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin: 8px 0;
  color: var(--muted);
}

.license {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.notice {
  padding: 18px 20px;
  border: 1px solid #ffd8b8;
  border-left: 5px solid var(--accent);
  border-radius: 18px;
  background: #fff7ef;
  color: #5d3212;
  margin-bottom: 28px;
}

.notice strong {
  color: #3c210c;
}

section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 3vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

li {
  margin: 7px 0;
}

.callout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.callout {
  padding: 18px;
  border-radius: 18px;
  background: #f6f8fc;
  border: 1px solid var(--line);
}

@media (max-width: 880px) {
  .content-layout,
  .callout-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: relative;
    top: auto;
  }

  .license {
    padding: 24px;
  }
}

@media print {
      body {
        background: white;
      }

      .hero,
      .footer {
        color: #111;
      }

      .nav,
      .toc {
        display: none;
      }

      .hero-card,
      .content-layout {
        display: block;
      }

      .hero-copy,
      .summary-card,
      .license {
        box-shadow: none;
        border: 1px solid #ddd;
      }

      a {
        color: #111;
        text-decoration: underline;
      }
    }
