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

html {
  background: #fff;
  color: #000;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

a {
  color: inherit;
  text-underline-offset: 2px;
}

h1,
h2,
h3,
p,
ul,
ol,
table {
  margin-top: 0;
}

p,
li,
th,
td {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-weight: 600;
  text-transform: lowercase;
}

.site-header,
.section-block,
.column-block,
.site-footer {
  margin-bottom: 18px;
}

.page-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 12px;
}

.page-sidebar {
  position: sticky;
  top: 12px;
  align-self: start;
}

.page-content {
  min-width: 0;
}

.page-nav {
  border: 1px solid #000;
  padding: 10px 12px;
}

.page-sidebar-credit {
  margin: 8px 0 0;
  border: 1px solid #000;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.page-sidebar-credit p {
  margin: 0;
}

.page-sidebar-credit p + p {
  margin-top: 6px;
}

.page-nav-label {
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: lowercase;
}

.page-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-nav li + li {
  border-top: 1px solid #d6d6d6;
}

.page-nav a {
  display: block;
  min-height: 44px;
  padding: 10px 0;
  color: #1a0dab;
  text-decoration: underline;
  text-transform: lowercase;
}

.page-nav a[aria-current="page"] {
  margin: 0 -8px;
  padding: 10px 8px;
  background: #f2f2f2;
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

.site-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.site-title-row h1 {
  margin-bottom: 4px;
}

.site-market {
  margin-bottom: 4px;
}

.site-summary {
  max-width: 1000px;
}

.section-note {
  margin-bottom: 12px;
}

.record-legend {
  display: grid;
  gap: 6px;
}

.record-legend-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.record-legend-note {
  display: block;
}

.status-table,
.data-table,
.calendar-table {
  width: 100%;
  border-collapse: collapse;
}

.status-table th,
.status-table td,
.data-table th,
.data-table td,
.calendar-table th,
.calendar-table td {
  border: 1px solid #000;
  padding: 6px 8px;
  vertical-align: top;
  text-align: left;
  transition: background-color 0.4s ease-out, box-shadow 0.4s ease-out;
}

.status-table th {
  width: 200px;
}

.data-table--current-status {
  table-layout: fixed;
}

.current-status-item-column {
  width: 18%;
}

.current-status-status-column {
  width: 39%;
}

.current-status-quality-column {
  width: 25%;
}

.current-status-source-column {
  width: 18%;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.column-block {
  min-width: 0;
}

.directory-block {
  margin-bottom: 14px;
}

.directory-block--jump a::after {
  content: "->";
  flex: none;
  text-decoration: none;
}

.directory-block ul,
.site-footer p {
  margin-bottom: 8px;
}

.directory-block--jump ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.directory-block--jump li {
  margin: 0;
  padding: 8px 0;
}

.directory-block--jump li + li {
  border-top: 1px solid #d6d6d6;
}

.directory-block--jump a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: underline;
}

.context-read {
  margin-bottom: 10px;
  font-weight: 600;
}

.snapshot-note {
  max-width: 960px;
}

.snapshot-note + .snapshot-table {
  margin-top: 6px;
}

.snapshot-table {
  margin-bottom: 12px;
}

.snapshot-meta,
.snapshot-pending {
  display: block;
  font-size: 0.88rem;
}

.snapshot-meta {
  margin-top: 4px;
}

.snapshot-pending,
.snapshot-meta {
  color: #4a4a4a;
}

.search-panel {
  margin-bottom: 16px;
}

.search-panel label {
  display: block;
  margin-bottom: 4px;
}

.search-panel > p {
  font-size: 0.94rem;
}

.search-results {
  margin-top: 10px;
  border: 1px solid #000;
  padding: 10px 12px;
}

.search-results-title {
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: lowercase;
}

.search-results-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-results-list li + li {
  border-top: 1px solid #d6d6d6;
}

.search-result-link {
  display: block;
  padding: 10px 0;
  text-decoration: none;
}

.search-result-title,
.search-result-meta,
.search-result-note {
  display: block;
}

.search-result-title {
  font-weight: 600;
}

.search-result-meta,
.search-result-note {
  font-size: 0.92rem;
}

.search-result-note {
  padding-top: 10px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 4px 0;
}

input[type="search"],
select,
button {
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #000;
  padding: 6px 8px;
  min-height: 44px;
}

button {
  cursor: pointer;
}

.calendar-wrap {
  margin-bottom: 14px;
}

.calendar-watch-list {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calendar-watch-list li + li {
  margin-top: 8px;
}

.calendar-watch-list a {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #000;
  text-decoration: none;
}

.calendar-watch-list strong {
  display: block;
  min-width: 0;
}

.calendar-table td,
.calendar-table th {
  width: 14.285%;
}

.calendar-table td {
  min-height: 44px;
}

.section-block h2 {
  margin-bottom: 6px;
  transition: background-color 0.4s ease-out;
}

.section-block:target h2 {
  background-color: #fff3a6;
}

tr:target {
  background-color: #fff3a6;
}

tr:target td,
tr:target th {
  background-color: #fff3a6;
  box-shadow: inset 0 0 0 999px rgba(255, 243, 166, 0.9);
}

.record-label {
  display: inline-block;
  border: 1px solid var(--record-label-border, #000);
  background: var(--record-label-bg, #fff);
  color: var(--record-label-color, #000);
  padding: 1px 6px;
  margin-right: 6px;
  white-space: nowrap;
  font-weight: 600;
}

.record-label--official {
  --record-label-bg: #edf4ee;
  --record-label-border: #597460;
  --record-label-color: #25452d;
}

.record-label--reporting {
  --record-label-bg: #f8eddf;
  --record-label-border: #a46d2a;
  --record-label-color: #6d4510;
}

.record-label--agenda-only {
  --record-label-bg: #eaf1f8;
  --record-label-border: #5b7da4;
  --record-label-color: #234c79;
}

.record-label--not-yet-verified {
  --record-label-bg: #f8eceb;
  --record-label-border: #ac6b67;
  --record-label-color: #7a2f2a;
}

.record-label--open-question {
  --record-label-bg: #f3efdf;
  --record-label-border: #948149;
  --record-label-color: #5d4d1f;
}

.record-detail {
  display: block;
  margin-top: 4px;
}

.hidden-by-search {
  display: none;
}

@media (max-width: 960px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-sidebar {
    position: static;
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .site-title-row {
    align-items: flex-start;
  }

  .site-market {
    width: 100%;
  }

  .directory-block li a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 0;
  }

  .directory-block--jump li {
    padding: 10px 0;
  }

  .directory-block--jump a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .search-result-link {
    min-height: 44px;
  }

  .calendar-table td,
  .calendar-table th {
    padding: 4px;
    font-size: 13px;
  }

  .calendar-table a {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-height: 44px;
    padding-top: 4px;
  }

}

@media (max-width: 760px) {
  body {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-shell {
    padding: 10px;
  }

  .site-title-row h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1.05;
  }

  .record-legend {
    gap: 8px;
  }

  .calendar-table {
    display: none;
  }

  .calendar-watch-list {
    display: block;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row button {
    justify-self: start;
    min-width: 88px;
  }

  .status-table,
  .status-table tbody,
  .data-table,
  .data-table tbody {
    display: block;
  }

  .status-table,
  .data-table {
    border: 0;
  }

  .data-table thead {
    display: none;
  }

  .status-table tr,
  .data-table tbody tr {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #000;
  }

  .status-table tr:last-child,
  .data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .status-table th,
  .status-table td,
  .data-table td {
    display: block;
    width: auto;
    border: 0;
    padding: 0;
  }

  .status-table th {
    font-size: 0.92rem;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: lowercase;
  }

  .data-table td:first-child {
    font-size: 1.02rem;
    font-weight: 600;
  }

  .snapshot-pending,
  .snapshot-meta {
    font-size: 0.9rem;
  }

  .record-label {
    margin-bottom: 4px;
  }

  .context-read {
    font-size: 1rem;
  }

}
