:root {
  --page: #f4f3ef;
  --paper: #ffffff;
  --ink: #1a2a22;
  --muted: #59665f;
  --green: #0e5c49;
  --green-dark: #0b4034;
  --mint: #e2f3e8;
  --yellow: #f4c24a;
  --line: #dedfd9;
  --shadow: 0 18px 55px rgba(26, 42, 34, 0.09);
  --font: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

.site-header {
  background: var(--green-dark);
  color: #fff;
}

.site-header__inner,
.page,
.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 14px;
  background: #fff;
}

.brand img { width: 156px; height: auto; display: block; }

.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.nav a { color: #e9f6ed; font-size: 14px; font-weight: 700; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--yellow); }

.page { padding: 68px 0 84px; }

.hero {
  max-width: 800px;
  margin-bottom: 38px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; }
h1 { margin: 0; font-size: clamp(36px, 7vw, 60px); }
h2 { margin: 0 0 14px; font-size: clamp(24px, 4vw, 31px); }
h3 { margin: 26px 0 8px; font-size: 19px; }

.lede { margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.updated { margin-top: 15px; color: var(--muted); font-size: 14px; }

.layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  min-width: 0;
}

.toc {
  position: sticky;
  top: 22px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
}

.toc strong { display: block; margin-bottom: 10px; font-size: 14px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.toc a:hover { color: var(--green); }

.content {
  min-width: 0;
  padding: clamp(25px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.content section { scroll-margin-top: 24px; }
.content section + section { margin-top: 42px; padding-top: 42px; border-top: 1px solid var(--line); }
.content p { margin: 0 0 15px; }
.content ul, .content ol { margin: 10px 0 16px; padding-left: 23px; }
.content li + li { margin-top: 7px; }

.summary,
.notice {
  margin: 0 0 28px;
  padding: 20px 22px;
  border-radius: 17px;
  background: var(--mint);
}

.notice { background: #fcf2d8; }
.summary p:last-child,
.notice p:last-child { margin-bottom: 0; }

.details {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr);
  margin: 17px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.details dt,
.details dd { margin: 0; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.details dt { background: #f8f8f5; font-weight: 800; }
.details dt:last-of-type,
.details dd:last-of-type { border-bottom: 0; }

.table-wrap { max-width: 100%; overflow-x: auto; margin: 17px 0; }
table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f8f8f5; }

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

.card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.button:hover { background: var(--green-dark); color: #fff; }

.site-footer { padding: 30px 0; border-top: 1px solid var(--line); background: #fff; }
.site-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { font-size: 14px; font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
  .site-header__inner { padding: 17px 0; align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .page { padding: 44px 0 64px; }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .site-header__inner, .page, .site-footer__inner { width: min(100% - 24px, 1120px); }
  .details { grid-template-columns: 1fr; }
  .details dt { border-bottom: 0; padding-bottom: 3px; }
  .details dd { padding-top: 3px; }
}

@media print {
  body { background: #fff; }
  .site-header, .toc, .site-footer { display: none; }
  .page { width: 100%; padding: 0; }
  .layout { display: block; }
  .content { padding: 0; border: 0; box-shadow: none; }
}
