:root {
  --ink: #16211d;
  --muted: #5d6b65;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --line: #dfe6df;
  --deep: #14211d;
  --deep-2: #26382f;
  --teal: #16766a;
  --amber: #d99a18;
  --shadow: 0 18px 46px rgba(20, 32, 28, .10);
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body { margin: 0; min-width: 320px; }

a { color: inherit; }

.topbar {
  align-items: center;
  background: rgba(20, 33, 29, .98);
  color: #fff;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand::before {
  align-items: center;
  background: var(--amber);
  border-radius: 8px;
  color: var(--deep);
  content: attr(data-initials);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  margin-right: 10px;
  vertical-align: middle;
  width: 36px;
}

nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

nav a {
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: #eef6f1;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  min-height: 34px;
  padding: 10px 13px;
  text-decoration: none;
}

nav a:hover { background: rgba(255, 255, 255, .1); }

main { margin: 0 auto; max-width: 1180px; padding: 30px 22px 70px; }

.hero {
  background: radial-gradient(circle at 88% 16%, rgba(217, 154, 24, .24), transparent 30%), linear-gradient(135deg, var(--deep), var(--deep-2));
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
  padding: clamp(26px, 4vw, 48px);
}

.hero p { color: #dce7e1; font-size: clamp(17px, 2vw, 21px); max-width: 760px; }

.parent-link { color: #ffe39c; font-size: 14px; font-weight: 900; text-decoration: none; }
.parent-link:hover { text-decoration: underline; }

.eyebrow { color: #ffd979; font-size: 12px; font-weight: 900; letter-spacing: 0; margin: 0; text-transform: uppercase; }

h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1; margin: 0; max-width: 880px; }
h2 { font-size: clamp(23px, 2.4vw, 34px); line-height: 1.12; margin: 0 0 14px; }

p { color: var(--muted); font-size: 17px; line-height: 1.66; margin: 12px 0 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.cta-button {
  align-items: center;
  background: var(--amber);
  border: 1px solid #f2c65c;
  border-radius: 8px;
  color: var(--deep);
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
}

.section { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 26px rgba(20,32,28,.045); margin-bottom: 18px; padding: clamp(22px, 3vw, 32px); }

.topic-grid, .section-grid { display: grid; gap: 18px; }
.topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }
.section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.topic-card { background: #fffdf8; border: 1px solid #e3ded0; border-radius: 8px; min-height: 178px; padding: 20px; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.topic-card:hover { border-color: var(--amber); box-shadow: 0 14px 34px rgba(20,32,28,.09); transform: translateY(-2px); }
.topic-card strong, .topic-card span { display: block; }
.topic-card strong { font-size: 18px; line-height: 1.2; }
.topic-card span { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 10px; }

.related-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 8px 0 0; padding: 0; }
.related-links a { background: #eef2ed; border: 1px solid var(--line); border-radius: 999px; color: #145c54; display: inline-flex; font-size: 14px; font-weight: 900; padding: 10px 13px; text-decoration: none; }

details { border-top: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-size: 17px; font-weight: 900; }
footer { color: #66736d; font-size: 14px; padding: 28px 22px 42px; text-align: center; }

nav a:focus, .brand:focus, .cta-button:focus, .parent-link:focus, .topic-card:focus, .related-links a:focus, summary:focus { outline: 3px solid #f2c65c; outline-offset: 3px; }

@media (max-width: 1040px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px 22px; position: static; }
  nav { justify-content: flex-start; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar { gap: 10px; padding: 14px 22px; }
  .brand { font-size: 19px; }
  .brand::before { height: 34px; width: 34px; }
  main { padding: 18px 14px 50px; }
  nav { gap: 6px; }
  nav a { font-size: 12px; min-height: 30px; padding: 8px 10px; }
  .hero { gap: 17px; padding: 24px; }
  .hero p { font-size: 18px; line-height: 1.48; }
  h1 { font-size: clamp(30px, 9.2vw, 39px); line-height: 1.04; max-width: 12ch; }
  h2 { font-size: 24px; }
  .cta-button { width: 100%; }
  .topic-grid, .section-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 0; }
}

.seo-related nav { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-related nav a { border: 1px solid rgba(80, 90, 100, .25); border-radius: 8px; padding: 10px 12px; text-decoration: none; }
.seo-related nav a:hover { border-color: currentColor; }
