:root {
  color-scheme: light dark;
  --paper: #f4f0e7;
  --surface: #fffdf8;
  --ink: #202522;
  --muted: #66706a;
  --line: #d8d2c6;
  --teal: #175b56;
  --teal-soft: #dcebe7;
  --blue-soft: #e3e8ee;
  --orange: #a84f23;
  --orange-soft: #f5dfd1;
  --gray-soft: #ebe9e3;
  --shadow: 0 18px 50px rgb(39 47 43 / 8%);
  --radius-large: 28px;
  --radius-medium: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  line-height: 1.65;
}

button,
input,
select {
  min-height: 44px;
  font: inherit;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
.exhibition-card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero,
main,
footer {
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
}

.site-credit {
  width: min(calc(100% - 48px), 1180px);
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0 36px;
}

.hero::before {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: Georgia, "Times New Roman", "Nanum Myeongjo", serif;
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--teal);
  opacity: 0.08;
  white-space: nowrap;
  pointer-events: none;
  content: "觀物帖";
  user-select: none;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: -20px;
  right: clamp(-60px, 3vw, 40px);
  width: clamp(160px, 26vw, 300px);
  aspect-ratio: 7 / 10;
  border: 1px solid rgb(23 91 86 / 15%);
  border-radius: 4px 6px 6px 4px;
  background:
    linear-gradient(160deg, rgb(170 190 185 / 50%) 0%, rgb(150 172 166 / 35%) 100%);
  box-shadow:
    inset 0 0 40px rgb(23 91 86 / 10%),
    3px 6px 24px rgb(39 47 43 / 12%);
  content: "";
  transform: rotate(-3deg);
}

.hero__jecheom {
  position: absolute;
  z-index: 0;
  top: clamp(10px, 4vw, 40px);
  right: clamp(-10px, 5vw, 90px);
  width: clamp(36px, 5.5vw, 56px);
  padding: clamp(14px, 3vw, 24px) clamp(6px, 1.2vw, 10px);
  border: 1px solid rgb(23 91 86 / 12%);
  border-radius: 3px;
  background: rgb(245 240 230 / 85%);
  box-shadow: 1px 2px 8px rgb(39 47 43 / 10%);
  color: rgb(23 91 86 / 50%);
  font-family: Georgia, "Times New Roman", "Nanum Myeongjo", serif;
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.6;
  writing-mode: vertical-rl;
  text-orientation: upright;
  pointer-events: none;
  transform: rotate(-3deg);
}

.hero__eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", "Nanum Myeongjo", serif;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.hero__copy {
  margin: 20px 0 0;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero__meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.freshness {
  max-width: 720px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--orange);
  border-radius: 12px;
  background: var(--orange-soft);
  font-size: 0.92rem;
  font-weight: 650;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
}

.summary-grid > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: rgb(255 253 248 / 84%);
  box-shadow: var(--shadow);
}

.summary-grid dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.summary-grid dd {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  line-height: 1.2;
}

main {
  padding-bottom: 72px;
}

.weekly-overview,
.map-overview,
.institution-browser {
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.section-heading p {
  margin-top: 0;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  letter-spacing: -0.035em;
}

.section-heading > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-event {
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  background: var(--teal-soft);
}

.timeline-event--ending {
  border-left-color: var(--orange);
  background: var(--orange-soft);
}

.timeline-event__link {
  display: grid;
  gap: 4px;
  min-height: 100%;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
}

.timeline-event__label {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
}

.timeline-event--ending .timeline-event__label {
  color: var(--orange);
}

.timeline-event__title {
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.timeline-event__meta,
.timeline-placeholder {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.timeline-placeholder {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.institution-all {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--teal);
  font-weight: 750;
}

.institution-all[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.institution-all[aria-pressed="true"]::before {
  content: "✓ ";
}

.institution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.institution-card {
  display: grid;
  width: 100%;
  min-height: 190px;
  gap: 7px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: #fbf8f1;
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

.institution-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.institution-card[aria-pressed="true"] {
  border: 2px solid var(--teal);
  background: var(--teal-soft);
  box-shadow: 0 0 0 3px rgb(23 91 86 / 12%);
}

.institution-card__wrapper {
  position: relative;
}

.institution-card__home {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 253 248 / 90%);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
}

.institution-card__home:hover,
.institution-card__home:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.institution-card--has-photo {
  color: #fff;
  min-height: 220px;
  align-content: end;
}

.institution-card--has-photo .institution-card__region {
  color: rgba(255, 255, 255, 0.85);
}

.institution-card--has-photo .institution-card__name {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.institution-card--has-photo .institution-card__counts,
.institution-card--has-photo .institution-card__detail,
.institution-card--has-photo .institution-card__verified {
  color: rgba(255, 255, 255, 0.8);
}

.institution-card--has-photo .institution-card__counts--empty {
  color: rgba(255, 255, 255, 0.6);
}

.institution-card--has-photo:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.institution-card--has-photo[aria-pressed="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.institution-card__region {
  color: var(--teal);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.institution-card__name {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", "Nanum Myeongjo", serif;
  font-size: 1.32rem;
  letter-spacing: -0.035em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.institution-card__counts {
  font-size: 0.92rem;
  font-weight: 750;
}

.institution-card__detail {
  color: var(--muted);
  font-size: 0.84rem;
}

.institution-card__verified {
  align-self: end;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
}

.controls,
.exhibition-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.controls {
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-large);
}

.controls__heading,
.results__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.controls h2,
.results h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  letter-spacing: -0.035em;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.status-tabs button,
.secondary-button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease,
    color 160ms ease, transform 160ms ease;
}

.status-tabs button:hover,
.secondary-button:hover {
  border-color: var(--teal);
}

.status-tabs button[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--search {
  grid-column: span 2;
}

.field label,
.check-field {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
}

.field input::placeholder {
  color: #8b938e;
}

.check-field {
  display: flex;
  grid-column: span 2;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.check-field input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--teal);
}

.results {
  padding-top: 44px;
}

.results__heading {
  margin-bottom: 18px;
}

.results__note {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.exhibition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.exhibition-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-top: 5px solid var(--line);
  border-radius: var(--radius-medium);
  overflow-wrap: anywhere;
}

.exhibition-card--ongoing {
  border-top-color: var(--teal);
}

.exhibition-card--ending_soon {
  border-top-color: var(--orange);
}

.exhibition-card--upcoming {
  border-top-color: #60758b;
}

.exhibition-card--date_unconfirmed,
.exhibition-card--ended {
  border-top-color: #8c8a84;
}

.exhibition-card__heading,
.exhibition-card__body,
.exhibition-card__actions {
  padding-inline: clamp(20px, 3vw, 30px);
}

.exhibition-card__heading {
  padding-top: 24px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gray-soft);
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.2;
}

.badge--ongoing {
  background: var(--teal-soft);
  color: var(--teal);
}

.badge--ending_soon {
  background: var(--orange-soft);
  color: var(--orange);
}

.badge--upcoming {
  background: var(--blue-soft);
  color: #43596f;
}

.badge--date_unconfirmed,
.badge--ended,
.badge--type {
  background: var(--gray-soft);
  color: #555b57;
}

.badge--warning {
  border: 1px solid var(--orange);
  background: var(--surface);
  color: var(--orange);
}

.exhibition-card__title {
  margin: 17px 0 0;
  font-family: Georgia, "Times New Roman", "Nanum Myeongjo", serif;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.28;
}

.exhibition-card__subtitle,
.exhibition-card__description {
  color: var(--muted);
}

.exhibition-card__subtitle {
  margin: 8px 0 0;
}

.exhibition-card__body {
  flex: 1;
  padding-top: 18px;
  padding-bottom: 22px;
}

.exhibition-card__place {
  margin: 0;
  font-weight: 750;
}

.exhibition-card__location {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.exhibition-card__facts {
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}

.fact-row {
  display: grid;
  grid-template-columns: minmax(82px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.fact-row__term {
  color: var(--muted);
  font-weight: 700;
}

.fact-row__description {
  margin: 0;
}

.exhibition-card__description {
  margin: 18px 0 0;
}

.exhibition-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-top: 16px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  background: #fbf8f1;
}

.official-link,
.secondary-link {
  color: var(--teal);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.official-link:hover,
.official-link:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.message {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  text-align: center;
}

.message h3,
.message p {
  margin-top: 0;
}

.message--error {
  margin-bottom: 18px;
  border: 1px solid var(--orange);
  background: var(--orange-soft);
  color: #673017;
  font-weight: 650;
  text-align: left;
}

.message--empty .secondary-button {
  margin-top: 4px;
}

footer {
  padding: 0 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

footer p {
  margin: 18px 0 0;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.map-legend__item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.map-legend__item--ending_soon::before {
  background: var(--orange);
}

.map-legend__item--ongoing::before {
  background: var(--teal);
}

.map-legend__item--upcoming::before {
  background: #60758b;
}

.map-legend__item--candidate::before {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line);
  background: #cfcabe;
}

.map-frame {
  position: relative;
  max-width: 480px;
  margin: 10px auto 0;
}

.map-frame--google {
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
}

.map-frame__svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-outline {
  fill: var(--gray-soft);
  stroke: var(--line);
  stroke-width: 2;
  stroke-linejoin: round;
}

.map-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

.map-dot::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #cfcabe;
  transition: background 160ms ease, transform 160ms ease;
}

.map-dot:hover::before,
.map-dot:focus-visible::before {
  background: var(--muted);
  transform: scale(1.35);
}

.map-marker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  transform: translate(-13px, -50%);
}

.map-marker__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgb(39 47 43 / 30%);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.map-marker--ending_soon .map-marker__dot {
  background: var(--orange);
}

.map-marker--ongoing .map-marker__dot {
  background: var(--teal);
}

.map-marker--upcoming .map-marker__dot {
  background: #60758b;
}

.map-marker--date_unconfirmed .map-marker__dot {
  background: #8c8a84;
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker[aria-pressed="true"] {
  z-index: 2;
}

.map-marker__label {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgb(255 253 248 / 90%);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.map-marker:hover .map-marker__label,
.map-marker:focus-visible .map-marker__label,
.map-marker[aria-pressed="true"] .map-marker__label {
  background: var(--ink);
  color: var(--paper);
}

.map-marker[aria-pressed="true"] .map-marker__dot {
  border-color: var(--ink);
}

.map-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.results__export {
  flex-shrink: 0;
}

.secondary-button:disabled {
  opacity: 0.45;
  border-color: var(--line);
  cursor: not-allowed;
}

.visit-button {
  padding: 8px 16px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease,
    color 160ms ease;
}

.visit-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.visit-button--wish {
  border-style: solid;
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange);
}

.visit-button--visited {
  border-style: solid;
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.series-card {
  grid-column: 1 / -1;
  padding: clamp(20px, 3vw, 30px);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.series-card__title {
  margin: 10px 0 4px;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
}

.series-card__meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.series-card__summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 700;
  cursor: pointer;
}

.series-card__details[open] .series-card__summary {
  margin-bottom: 14px;
}

.series-card__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.series-card__list .exhibition-card {
  border: 1px solid var(--line);
  border-top-width: 5px;
  box-shadow: none;
}

.exhibition-card__poster {
  max-height: 240px;
  overflow: hidden;
}

.exhibition-card__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-button {
  font-size: 0.82rem;
  padding: 6px 12px;
}

.visit-memo {
  flex: 1;
  min-width: 120px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 0.82rem;
}

.visit-memo::placeholder {
  color: #8b938e;
}

.institution-card__counts--empty {
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
}

#weekly-title {
  cursor: pointer;
}

#weekly-title:hover {
  color: var(--teal);
}

[hidden] {
  display: none !important;
}

.status-tab--my {
  border-style: dashed;
}

.status-tab--my[aria-pressed="true"] {
  border-style: solid;
}

.load-more {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 14px 28px;
  font-size: 1rem;
}

#sort-nearby {
  margin-left: 8px;
}

@media (max-width: 720px) {
  .hero,
  main,
  footer {
    width: min(calc(100% - 32px), 1180px);
  }

  .hero {
    padding-top: 58px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-grid,
  .exhibition-grid,
  .institution-grid,
  .series-card__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .field--search,
  .check-field {
    grid-column: auto;
  }

  .map-frame--google {
    aspect-ratio: 1;
  }

  .controls__heading,
  .results__heading,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .results__heading {
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-marker__label {
    display: none;
  }

  .map-marker:hover .map-marker__label,
  .map-marker:focus-visible .map-marker__label,
  .map-marker[aria-pressed="true"] .map-marker__label {
    display: inline;
  }

  .status-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-tabs button {
    width: 100%;
  }

  .timeline-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .institution-all {
    width: 100%;
  }

  .fact-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1d1b;
    --surface: #242824;
    --ink: #e8e5df;
    --muted: #9a9e9b;
    --line: #3a3d38;
    --teal: #4ecdc4;
    --teal-soft: #1a3533;
    --blue-soft: #1e2a38;
    --orange: #e8854a;
    --orange-soft: #3a2518;
    --gray-soft: #2e312c;
    --shadow: 0 18px 50px rgb(0 0 0 / 30%);
  }

  .institution-card {
    background: #2a2e2a;
  }

  .exhibition-card__actions {
    background: #2a2e2a;
  }

  .field input,
  .field select,
  .visit-memo {
    background: #2e322e;
    border-color: var(--line);
    color: var(--ink);
  }

  .map-outline {
    fill: #2e312c;
    stroke: #3a3d38;
  }

  .map-marker__label {
    background: rgb(36 40 36 / 90%);
  }

  .summary-grid > div {
    background: rgb(36 40 36 / 84%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
