:root {
  --forest: #155327;
  --leaf: #2d7546;
  --ink: #17231d;
  --muted: #52655b;
  --line: #d7e1d8;
  --paper: #fff;
  --wash: #f4f8f5;
  --amber: #9a5b0b;
  --blue: #245e80;
  --gray: #5d675f;
}

* { box-sizing: border-box; }

body.coverage-page {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

a { color: inherit; }

.coverage-inner,
.coverage-header-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.coverage-header {
  color: #fff;
  background: var(--forest);
}

.coverage-header-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.coverage-brand,
.coverage-header nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coverage-brand {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.coverage-brand img { width: 30px; height: 30px; }
.coverage-header nav a { color: #fff; font-weight: 800; }

.coverage-hero {
  padding: 54px 0 42px;
  color: #fff;
  background: #1d5b35;
}

.coverage-kicker {
  margin: 0 0 8px;
  color: #f4cf82;
  font-size: 0.78rem;
  font-weight: 900;
}

.coverage-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.coverage-hero > .coverage-inner > p:not(.coverage-kicker) {
  max-width: 820px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.coverage-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
}

.coverage-summary > div {
  padding: 16px;
  background: rgba(10, 48, 27, 0.78);
}

.coverage-summary strong,
.coverage-summary span { display: block; }
.coverage-summary strong { font-size: 1.8rem; }
.coverage-summary span { margin-top: 5px; color: rgba(255, 255, 255, 0.84); font-size: 0.86rem; }

.coverage-principles,
.coverage-table-section,
.coverage-boundary { padding: 42px 0; }

.coverage-principles { background: #fff; }

.coverage-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.coverage-principles-grid > div { padding: 22px 24px 22px 0; }
.coverage-principles-grid > div + div { padding-left: 24px; border-left: 1px solid var(--line); }

.coverage-principles h2,
.coverage-heading h2,
.coverage-boundary h2 {
  margin: 0 0 8px;
  color: #143f22;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.coverage-principles p,
.coverage-heading p,
.coverage-boundary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.coverage-table-section { background: var(--wash); }
.coverage-heading { margin-bottom: 18px; }

.coverage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
}

.status-published { color: #1f6a3a; background: #edf8f0; }
.status-historical { color: var(--amber); background: #fff8e9; }
.status-permission { color: var(--blue); background: #edf6fb; }
.status-audit { color: var(--gray); background: #f2f4f2; }

.coverage-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.coverage-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.coverage-table th,
.coverage-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e1e9e3;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.coverage-table thead th {
  color: #3f5147;
  background: #edf4ef;
  font-size: 0.82rem;
}

.coverage-table tbody th { width: 84px; color: #143f22; white-space: nowrap; }
.coverage-table tbody td:nth-child(2) { width: 172px; }
.coverage-table tbody td:nth-child(3) { width: 39%; }
.coverage-table tbody tr:last-child > * { border-bottom: 0; }
.coverage-table a { color: #176534; font-weight: 900; }

.coverage-boundary { background: #fff; }
.coverage-boundary .coverage-inner { max-width: 900px; margin-left: max(16px, calc((100% - 1160px) / 2)); }

.coverage-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--forest);
  font-weight: 900;
  text-decoration: none;
}

footer { padding: 28px 0; color: var(--muted); background: #eaf2ec; }

@media (max-width: 760px) {
  .coverage-header-inner { align-items: flex-start; flex-direction: column; padding: 11px 0; }
  .coverage-summary,
  .coverage-principles-grid { grid-template-columns: 1fr 1fr; }
  .coverage-principles-grid > div { padding: 18px 14px; border: 0; border-bottom: 1px solid var(--line); }
  .coverage-principles-grid > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
  .coverage-principles-grid > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-bottom: 0; }
  .coverage-table-wrap { overflow: visible; border: 0; background: transparent; }
  .coverage-table { min-width: 0; }
  .coverage-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .coverage-table,
  .coverage-table tbody,
  .coverage-table tr,
  .coverage-table th,
  .coverage-table td { display: block; width: 100%; }
  .coverage-table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .coverage-table tbody th { width: 100%; padding: 14px; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .coverage-table tbody td:nth-child(2),
  .coverage-table tbody td:nth-child(3) { width: 100%; }
  .coverage-table td { padding: 12px 14px; }
  .coverage-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #65756c; font-size: 0.75rem; font-weight: 900; }
  .coverage-table tbody tr:last-child > * { border-bottom: 1px solid #e1e9e3; }
  .coverage-table tbody tr:last-child > td:last-child { border-bottom: 0; }
  .coverage-boundary .coverage-inner { margin: 0 auto; }
}

@media (max-width: 420px) {
  .coverage-summary { grid-template-columns: 1fr; }
  .coverage-principles-grid { grid-template-columns: 1fr; }
  .coverage-principles-grid > div + div { border-left: 0; }
  .coverage-principles-grid > div:nth-child(3) { grid-column: auto; }
}
