/* 20/7 policy series — restrained, editorial layout */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #1a1f26;
  --muted: #4a5568;
  --faint: #8b95a5;
  --rule: #c8cdd6;
  --accent: #2c4a6e;
  --accent-soft: #e8eef5;
  --max-read: 42rem;
  --font-body: "Georgia", "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.site-header__inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.5rem;
}

.site-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.doc-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

.doc-subtitle {
  margin: 0.65rem 0 0;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
  max-width: var(--max-read);
}

main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}

main > *:first-child {
  margin-top: 0;
}

h1 {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 400;
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

h2 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.75rem 0 0.65rem;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
  max-width: var(--max-read);
}

ul,
ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  max-width: var(--max-read);
}

li {
  margin-bottom: 0.4rem;
}

li::marker {
  color: var(--muted);
}

hr {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--rule) 12%,
    var(--rule) 88%,
    transparent
  );
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

table {
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0 1.75rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(26, 31, 38, 0.04);
}

th,
td {
  border: 1px solid var(--rule);
  padding: 0.65rem 0.85rem;
  vertical-align: top;
  text-align: left;
}

th,
table tr:first-child td {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--accent-soft);
}

table td p {
  margin: 0;
  max-width: none;
}

table tbody tr:not(:first-child) td:first-child {
  font-weight: 500;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 2rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.doc-nav--footer {
  margin: 3rem 0 0;
}

.doc-nav a {
  font-weight: 500;
}

.doc-nav .nav-index {
  color: var(--ink);
}

.doc-nav .is-disabled {
  color: var(--faint);
  pointer-events: none;
  text-decoration: none;
}

/* Index: contents list */
.contents {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
}

.contents li {
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.contents a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--ink);
}

.contents a:hover {
  color: var(--accent);
}

.contents__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.contents__desc {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: var(--max-read);
}

@media print {
  .doc-nav {
    display: none;
  }

  body {
    background: #fff;
  }

  main {
    padding: 0;
  }
}
