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

html {
  font-family: system-ui, sans-serif;
  color: #1f2933;
  background: #f7f9fb;
}

body {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header,
footer {
  padding: 1rem 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

a {
  color: #075985;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 1.5rem;
}

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

main,
aside section {
  padding: 1rem;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 0.5rem;
}

@media (max-width: 40rem) {
  .page-layout {
    grid-template-columns: 1fr;
  }
}

.result-count {
  color: #52606d;
}

.result-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.result-card {
  padding: 1rem;
  border: 1px solid #d9e2ec;
  border-radius: 0.5rem;
}

.result-card-paid {
  border-color: #f0b429;
  background: #fffaf0;
}

.result-card-free {
  background: #f8fafc;
}

.result-card header,
.result-phones,
.result-hours table {
  width: 100%;
}

.result-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.result-card h2 {
  margin: 0;
}

.result-subject {
  font-weight: 600;
}

.result-parking {
  color: #8a4b08;
  font-size: 0.875rem;
  white-space: nowrap;
}

.result-hours {
  margin-top: 1rem;
  overflow-x: auto;
}

.result-hours table {
  border-collapse: collapse;
  text-align: center;
}

.result-hours th,
.result-hours td {
  padding: 0.35rem;
  border: 1px solid #d9e2ec;
}

.result-hours th span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  white-space: nowrap;
}

.result-notice,
.result-pr {
  padding: 0.75rem;
  background: #fff;
  border-left: 0.25rem solid #9fb3c8;
}

.result-pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.page-layout:has(> aside:empty) {
  grid-template-columns: 1fr;
}

.page-content main > section,
.page-content main > ol {
  margin-top: 1.5rem;
}

.page-content main > ol {
  padding-left: 1.5rem;
}

.page-content main > ol h2 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.page-content dl {
  display: grid;
  gap: 0.75rem;
}

.page-content dl > div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #d9e2ec;
}

.page-content dt {
  font-weight: 700;
}

.page-content dd {
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #9fb3c8;
  border-radius: 0.35rem;
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 0.35rem;
  color: #fff;
  background: #075985;
  font: inherit;
  cursor: pointer;
}

.form-error,
.field-error {
  color: #9b1c1c;
}

.form-error {
  padding: 0.75rem;
  border-left: 0.25rem solid #d64545;
  background: #fff5f5;
}

.field-error {
  margin: 0;
  font-size: 0.9rem;
}

.contact-summary {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-summary > div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #d9e2ec;
}

.contact-summary dt {
  margin-bottom: 0.35rem;
}

.contact-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cf-turnstile {
  min-height: 65px;
}

@media (max-width: 40rem) {
  .page-content dl > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
