:root {
  --accent: #4F6F52;
  --accent-dark: #2F4331;
  --accent-tint: #DDE8DC;
  --accent-soft: #F2F6F1;
  --black: #0A0A0A;
  --text: #2C2C2C;
  --muted: #666666;
  --line: #D6D6D6;
  --bg: #F5F5F5;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
}

a {
  color: var(--black);
  font-weight: 700;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--black);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--white);
}

header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.crumb {
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 24px 30px;
}

.hero h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  margin: 14px 0 0;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  border-radius: 6px;
  padding: 5px 9px;
  font-weight: 800;
}

.pill-party {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 54px;
}

section { margin: 0 0 30px; }

h2 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 22px;
  line-height: 1.25;
}

h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 16px;
}

p { margin: 0 0 12px; }

.capability {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 18px 20px;
}

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

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
}

.stat strong {
  display: block;
  color: var(--black);
  font-size: 28px;
  line-height: 1.1;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.stat em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

.grid-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  min-height: 40px;
  padding: 8px 11px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-decoration: none;
  line-height: 1.25;
}

.button-link:hover {
  background: var(--white);
  color: var(--accent-dark);
  text-decoration: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--black);
  color: var(--white);
  font-size: 12px;
}

td:last-child,
th:last-child {
  text-align: right;
}

.cell-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.term-disclosure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0;
  padding: 12px 14px;
}

.term-disclosure summary {
  color: var(--black);
  cursor: pointer;
  font-weight: 800;
}

.term-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.term-group h3 {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.term-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.term-chip {
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: inline-flex;
  gap: 5px;
  max-width: 100%;
  padding: 4px 7px;
}

.term-chip span,
.term-chip em {
  display: inline;
  margin: 0;
}

.term-chip span {
  font-size: 12px;
  font-weight: 700;
}

.term-chip em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li { margin: 0 0 10px; }

li span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.note {
  color: var(--muted);
  font-size: 13px;
}

.office-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.office-index-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto;
  gap: 12px;
  align-items: end;
  margin: 22px 0 4px;
}

.field label {
  display: block;
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  padding: 8px 10px;
}

#mpOfficeCount {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--accent-dark);
  text-decoration: none;
}

.tile[hidden] { display: none; }

.tile strong {
  display: block;
  color: var(--black);
  font-size: 18px;
}

.tile span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 820px) {
  .grid,
  .sample-grid,
  .office-index-grid,
  .term-group-grid {
    grid-template-columns: 1fr 1fr;
  }

  .office-index-tools {
    grid-template-columns: 1fr 1fr;
  }

  #mpOfficeCount {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  main,
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .grid,
  .sample-grid,
  .grid-compact,
  .office-index-grid,
  .term-group-grid {
    grid-template-columns: 1fr;
  }

  .office-index-tools {
    grid-template-columns: 1fr;
  }

  th,
  td {
    display: block;
    text-align: left !important;
  }

  td::before {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  td:nth-child(1)::before { content: "Open this"; }
  td:nth-child(2)::before { content: "Use it for"; }
  td:nth-child(3)::before { content: "Records"; }

  thead { display: none; }

  tr {
    display: block;
    border-bottom: 1px solid var(--line);
  }
}
