/* One visual shell for the main site's information pages and compiled rules. */
:root {
  --paper: #f4f5ee;
  --ink: #19302a;
  --muted: #536358;
  --accent: #3e6545;
  --line: #dce3d7;
  font-family: Inter, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: normal;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  line-height: normal;
}
.site-header a,
.site-footer a {
  color: var(--accent);
  text-underline-offset: 4px;
}
.site-header .info-brand {
  font-size: 21px;
  font-weight: 750;
  text-decoration: none;
}
.site-footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: normal;
}
.site-footer nav {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
}
.site-footer nav a {
  text-decoration: none;
}
.site-header a:hover,
.site-footer a:hover {
  text-decoration: underline;
}
.wiki-page .layout {
  max-width: 1120px;
  gap: 40px;
  padding: 48px 24px;
  line-height: 1.9;
}
.wiki-page .hero h1 {
  font-size: clamp(30px, 5vw, 40px);
  letter-spacing: -0.02em;
  margin: 12px 0 22px;
}
.wiki-page .wiki-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 20px 0;
  font-size: 14px;
}
.wiki-page .wiki-attribution {
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 850px) {
  .wiki-page .layout {
    gap: 20px;
    padding-top: 32px;
  }
}
.school-search {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.school-count {
  font-size: 13px;
}
.school-entry {
  margin: 30px 0;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}
.school-entry[hidden],
#school-empty[hidden] {
  display: none;
}
.school-entry ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.school-entry li {
  padding: 0;
}
.school-entry a {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}
.school-entry a:hover {
  background: #eef2e8;
  text-decoration: none;
}
.school-entry small {
  color: var(--muted);
}
.school-entry a > span:last-child {
  font-size: 13px;
  margin-top: 8px;
}
.school-back {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
}

.wiki-page .rule-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 22px;
}
.wiki-page .rule-heading-row h1 {
  margin: 0;
}
.rule-home {
  font-size: 14px;
  white-space: nowrap;
}
