/* Government open-data blocks (school, park/pond, street guides and the
   neighbourhood page). Visual language matches the street-facts block in
   ecr-street.css (.ecr-city-facts). Enqueued in <head> by inc/ecr-open-data.php
   only on the templates that render these blocks. */

.ecr-od {
  background: #F7F3EC;
  padding: 48px 24px;
}
.ecr-od--white { background: #fff; }
.ecr-od__inner {
  margin: 0 auto;
  max-width: 1040px;
}
.ecr-od__eyebrow {
  color: #7f6418;
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.ecr-od__title {
  color: #2C3E2D;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0 0 8px;
}
.ecr-od__lede {
  color: #4A5568;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 72ch;
}
.ecr-od__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.ecr-od__item {
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.1);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  padding: 16px;
}
.ecr-od--white .ecr-od__item { background: #F7F3EC; }
.ecr-od__item > .material-symbols-outlined {
  color: #B08D2E;
  flex-shrink: 0;
  font-size: 1.5rem;
}
.ecr-od__item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ecr-od__label {
  color: #4A5568;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ecr-od__value {
  color: #2C3E2D;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.ecr-od__sub {
  color: #4A5568;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Results table (EQAO) */
.ecr-od__table-wrap {
  margin-top: 22px;
  overflow-x: auto;
}
.ecr-od__table {
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.1);
  border-collapse: collapse;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  min-width: 320px;
  width: 100%;
}
.ecr-od__table caption {
  color: #2C3E2D;
  font-weight: 700;
  padding: 0 0 10px;
  text-align: left;
}
.ecr-od__table th,
.ecr-od__table td {
  border-bottom: 1px solid rgba(44, 62, 45, 0.08);
  padding: 10px 14px;
  text-align: left;
}
.ecr-od__table thead th {
  color: #4A5568;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ecr-od__table td { color: #2C3E2D; font-weight: 600; }
.ecr-od__table tr:last-child td,
.ecr-od__table tr:last-child th { border-bottom: 0; }

/* Species / amenity chips */
.ecr-od__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.ecr-od__chips li {
  background: rgba(44, 62, 45, 0.06);
  border-radius: 999px;
  color: #2C3E2D;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  padding: 3px 10px;
}

.ecr-od__attribution {
  color: #4A5568;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.6;
  margin: 22px 0 0;
  max-width: 85ch;
}
.ecr-od__attribution a { color: #2C3E2D; text-decoration: underline; }
.ecr-od__attribution a:hover { color: #7f6418; }

@media (max-width: 640px) {
  .ecr-od { padding: 36px 16px; }
  .ecr-od__grid { grid-template-columns: 1fr; }
}
.ecr-od__lede--after { margin: 14px 0 0; }

/* Street market history (inc/ecr-street-market.php) */
.ecr-sm .ecr-od__lede + .ecr-od__lede { margin-top: -10px; }
.ecr-sm__table th,
.ecr-sm__table td { white-space: nowrap; }
.ecr-sm__table tbody th {
  color: #2C3E2D;
  font-weight: 700;
}
.ecr-sm__table td { font-variant-numeric: tabular-nums; }
.ecr-sm__years { margin-top: 18px; }
.ecr-sm__years summary {
  color: #2C3E2D;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
}
.ecr-sm__years summary:hover { color: #7f6418; }
.ecr-sm__note {
  color: #4A5568;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 14px 0 0;
  max-width: 85ch;
}
.ecr-sm__source { margin-top: 10px; }
@media (max-width: 640px) {
  .ecr-sm__table { font-size: 0.82rem; }
  .ecr-sm__table th,
  .ecr-sm__table td { padding: 8px 10px; }
  .ecr-od__grid.ecr-sm__grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecr-sm__grid .ecr-od__item { flex-direction: column; gap: 6px; padding: 12px; }
  .ecr-sm__grid .ecr-od__item > .material-symbols-outlined { font-size: 1.25rem; }
}
