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

body {
  margin: 0;
  color: #303943;
  background: #fff;
  font: 1rem/1.5 system-ui, sans-serif;
}

a { color: #1f55a0; text-underline-offset: .15em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
a[aria-current="page"] { font-weight: 700; }
[hidden] { display: none !important; }

#site { width: min(100% - 24px, 964px); margin: 12px auto 36px; }
#headrow1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 14px 18px;
  background: #ffeb00;
}

.partners, #menu, #systems {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.partners a { color: #174783; font-weight: 700; }
#menu a { color: #14365e; }
#systems { padding: 7px 18px; background: #245aa5; }
#systems a { color: #fff; }
#systems a:not(:hover):not([aria-current="page"]) { text-decoration: none; }

#siteimage {
  display: flex;
  align-items: end;
  min-height: 100px;
  padding: 12px 18px;
  background-color: #244e83;
  background-position: center;
  background-size: cover;
  color: #fff;
}

#siteimage span { padding: 3px 8px; background: #173a68; font-weight: 700; }
main { margin-top: 16px; }
h1 { margin: 0 0 .45em; font-size: 1.4rem; }
h2 { font-size: 1.15rem; }

#groupcontent {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  gap: 16px;
}

#groupmenu, #groupmain { min-width: 0; }
#menutitle, #grouptitle, .contentblockhead {
  padding: 5px 12px;
  color: #fff;
  background: #245aa5;
  overflow-wrap: anywhere;
}

#menutitle, .contentblockhead { margin: 0; font-size: 1rem; font-weight: 700; }
#groupmenu a { display: block; padding: 5px 10px; }
#groupmenu p { margin: 8px 0 0; font-size: .9rem; }
#groupdescription { padding: 0 12px; }
#systemmenu { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 5px 12px; }
#groupmain img { display: block; max-width: 100%; height: auto; }

.park-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.contentblock { background: #f3f6fa; }
.contentblockhead a { color: inherit; }
.contentblockpicture { height: 85px; background: #d3e2f1 center / cover no-repeat; }
.contentblocktext { padding: 10px 12px; }

#systemmenu .systemMenuLink.is-active,
#groupmenu .subMenuLink.is-active {
  color: #1f4b8f;
  font-weight: 700;
  text-decoration: underline;
}

.graph-content {
  padding: 8px 12px 16px;
}

.graph-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.graph-content figure {
  margin: 0 0 12px;
}

.graph-status:empty {
  display: none;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table caption,
.comparison-table th,
.comparison-table td {
  padding: 4px 6px;
  text-align: left;
}

.comparison-table tbody th {
  font-weight: normal;
}

.comparison-table tr {
  border-bottom: 1px solid #ddd;
}

.comparison-table td {
  width: 60%;
}

.comparison-bar {
  display: block;
  width: var(--bar-width);
  height: 8px;
  background: #537c34;
}

@media (max-width: 640px) {
  #groupcontent { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
