* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #f8f5f0;
  color: #2d2d2d;
  line-height: 1.7;
}

a { color: #c58794; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top nav */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  color: #fff;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar a { color: #fff; font-size: 14px; }
.topbar .site-title { font-weight: 600; font-size: 16px; letter-spacing: 0.5px; }
.topbar .back-link { opacity: 0.7; }
.topbar .back-link:hover { opacity: 1; }

/* Hero / landing */
.hero {
  background: linear-gradient(135deg, #f5c6d0 0%, #b8d4e3 50%, #f5c6d0 100%);
  text-align: center;
  padding: 60px 24px;
}
.hero h1 {
  font-size: 2.5rem;
  color: #2d2d2d;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.1rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto;
}

/* Card grid for landing */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: -40px auto 40px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.card-link { text-decoration: none; color: inherit; }
.card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid #c58794;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card .icon { font-size: 2rem; margin-bottom: 12px; }
.card h2 { font-size: 1.3rem; margin-bottom: 8px; color: #2d2d2d; }
.card p { font-size: 0.95rem; color: #666; }

/* Content pages */
.page-header {
  background: linear-gradient(135deg, #f5c6d0 0%, #b8d4e3 100%);
  padding: 48px 24px;
  text-align: center;
}
.page-header h1 {
  font-size: 2.2rem;
  color: #2d2d2d;
  margin-bottom: 8px;
}
.page-header .subtitle {
  color: #555;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* Table of contents */
.toc {
  background: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.toc h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 12px;
}
.toc ul { list-style: none; }
.toc li { padding: 4px 0; }
.toc a {
  font-size: 0.95rem;
  color: #c58794;
  font-weight: 500;
}

/* Sections */
.section {
  background: #fff;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.section h2 {
  font-size: 1.5rem;
  color: #c58794;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f5c6d0;
}
.section h3 {
  font-size: 1.15rem;
  color: #2d2d2d;
  margin: 20px 0 10px;
}
.section h4 {
  font-size: 1rem;
  color: #555;
  margin: 16px 0 8px;
}
.section p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.section ul, .section ol {
  margin: 8px 0 16px 24px;
  font-size: 0.95rem;
}
.section li { margin-bottom: 6px; }

/* Info boxes */
.info-box {
  background: #e8f4f8;
  border-left: 4px solid #5ba3c9;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 0.9rem;
}
.info-box.warning {
  background: #fef3e2;
  border-left-color: #e8a838;
}
.info-box.important {
  background: #fde8ec;
  border-left-color: #c58794;
}
.info-box strong { display: block; margin-bottom: 4px; }

/* Tables */
.section table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.9rem;
}
.section th, .section td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}
.section th {
  background: #f8f5f0;
  font-weight: 600;
  color: #555;
}
.section tr:hover { background: #fafafa; }

/* Footer */
.page-footer {
  text-align: center;
  padding: 24px;
  color: #999;
  font-size: 0.85rem;
  border-top: 1px solid #e5e0da;
  margin-top: 20px;
}

/* Nav between pages */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}
.page-nav a {
  background: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #c58794;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.page-nav a:hover {
  background: #f5c6d0;
  color: #2d2d2d;
  text-decoration: none;
}
.page-nav a.active {
  background: #c58794;
  color: #fff;
}

/* Disclaimer */
.disclaimer {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  font-size: 0.88rem;
  color: #888;
  text-align: center;
  font-style: italic;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .page-header h1 { font-size: 1.6rem; }
  .section { padding: 20px 18px; }
  .section h2 { font-size: 1.25rem; }
  .card-grid { grid-template-columns: 1fr; margin-top: -24px; }
}
