:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #64716b;
  --line: #d8ded7;
  --paper: #f6f5ef;
  --panel: #ffffff;
  --accent: #176b5b;
  --accent-2: #b54a3a;
  --gold: #c8943f;
  --sky: #d9edf3;
  --forest: #e2eadb;
  --shadow: 0 16px 42px rgba(31, 45, 39, .1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef4f2 0, var(--paper) 360px);
}

button,
input,
select {
  font: inherit;
}

button,
select,
.file-label {
  min-height: 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(16px, 4vw, 48px);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.build-badge {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.top-actions,
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-name-field {
  display: grid;
  gap: 4px;
  min-width: 180px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-name-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.profile-name-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.backup-note {
  flex-basis: 100%;
  max-width: 520px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

select,
input[type="search"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 12px;
}

button,
.file-label {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ghost {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}

.mini-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.mini-button[hidden] {
  display: none;
}

.file-label input {
  display: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 56px;
}

.runtime-warning {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #e1b765;
  border-radius: 8px;
  background: #fff5d9;
  color: #6b4a09;
  font-weight: 700;
}

.runtime-warning[hidden] {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 24px;
  align-items: stretch;
  min-height: 300px;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(23, 107, 91, .14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 28%, rgba(200, 148, 63, .22) 0 12%, transparent 13%),
    linear-gradient(110deg, rgba(255,255,255,.96) 0 47%, rgba(255,255,255,.64) 72%),
    repeating-linear-gradient(135deg, rgba(23, 107, 91, .09) 0 2px, transparent 2px 18px),
    #dfeae4;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -42px -60px auto;
  width: min(42vw, 440px);
  aspect-ratio: 1;
  border: 2px solid rgba(23, 107, 91, .32);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(23, 107, 91, .22) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(23, 107, 91, .22) 49% 51%, transparent 51%);
  opacity: .62;
}

.hero-copy,
.stats-grid {
  position: relative;
  z-index: 1;
}

.hero h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
}

.hero p {
  max-width: 620px;
  margin-bottom: 0;
  color: #3d4b45;
  font-size: 18px;
  line-height: 1.75;
}

.stats-grid {
  display: grid;
  gap: 12px;
}

.stats-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.82);
}

.age-card {
  align-items: flex-end;
}

.age-card > div {
  min-width: 0;
}

.age-input-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}

.age-input-row input {
  width: 76px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
  font-size: 24px;
  font-weight: 800;
}

.age-input-row small {
  color: var(--muted);
  font-weight: 700;
}

.stats-grid span,
.section-title p,
.site-meta,
.progress-text {
  color: var(--muted);
}

.stats-grid strong {
  font-size: 34px;
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}

.map-panel,
.passport-panel {
  padding: 20px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(31, 45, 39, .05);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.section-title p {
  margin-bottom: 0;
  font-size: 13px;
}

.list-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.list-meta p {
  margin-bottom: 0;
}

#dataStatus {
  color: var(--accent-2);
  font-weight: 700;
}

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

.region-card {
  min-height: 92px;
  padding: 14px;
  border-radius: 8px;
  background: var(--forest);
  border: 1px solid #ccd7c7;
}

.region-card.complete {
  border-color: rgba(200, 148, 63, .7);
  background: #fff7df;
}

.region-card:nth-child(even) {
  background: var(--sky);
  border-color: #c4dbe2;
}

.region-card.complete:nth-child(even) {
  background: #fff7df;
}

.region-card strong {
  display: block;
  margin-bottom: 10px;
}

.region-memorial-button {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  border: 0;
  background: #d5b45f;
  color: #17211d;
  font-size: 12px;
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.stamp {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 2px dashed #c9aa74;
  border-radius: 50%;
  color: #8b6230;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  background: #fffaf0;
  transform: rotate(-4deg);
  cursor: pointer;
}

.stamp.empty {
  border-color: var(--line);
  color: #a7b0ab;
  background: #f8faf8;
  transform: none;
  cursor: default;
}

.passport-link {
  width: 100%;
  margin-top: 14px;
}

.memorial-link {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: var(--accent-2);
  color: white;
}

.memorial-link[hidden] {
  display: none;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 22px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246,245,239,.94);
  backdrop-filter: blur(8px);
}

.view-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.view-toggle button {
  min-height: 36px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
}

.view-toggle button.active {
  background: var(--accent);
  color: white;
}

.search-wrap {
  flex: 1 1 260px;
}

.search-wrap input {
  width: 100%;
  min-height: 44px;
}

.search-wrap small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.toolbar select {
  min-width: 160px;
}

.country-panel {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(31, 45, 39, .05);
}

.country-panel[hidden] {
  display: none;
}

.country-index {
  display: grid;
  gap: 10px;
}

.region-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fbfcfa;
}

.region-group summary {
  padding: 12px 14px;
  background: #eef4f2;
}

.region-group:not([open]) > :not(summary) {
  display: none !important;
}

.country-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.country-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 44px 18px 18px 18px 8px 16px;
  gap: 6px;
  justify-items: center;
  align-items: start;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: center;
}

.country-card:hover,
.country-card.active {
  background: #f3f7f4;
  border-color: rgba(23, 107, 91, .38);
}

.country-card strong {
  display: -webkit-box;
  width: 100%;
  height: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 18px;
  line-height: 1.22;
  text-align: center;
}

.country-stat,
.country-percent {
  display: block;
  width: 100%;
  max-width: 220px;
  box-sizing: border-box;
  line-height: 1.25;
  font-size: 13px;
  text-align: left;
}

.country-percent {
  align-self: end;
}

.country-progress {
  width: 100%;
  max-width: 220px;
  box-sizing: border-box;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ede9;
}

.country-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.site-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.site-card {
  min-height: 252px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.site-tile {
  min-height: 222px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.site-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 107, 91, .38);
  box-shadow: 0 10px 24px rgba(31, 45, 39, .08);
}

.site-tile-image {
  height: 116px;
  background: #edf2ee;
}

.site-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-tile-image.has-preset {
  position: relative;
  background: #f5efe3;
}

.site-tile-image.has-preset span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 86%);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.site-tile-image.image-error::after {
  content: "image load error";
  display: grid;
  height: 100%;
  place-items: center;
  color: #9a4c42;
  font-size: 12px;
  font-weight: 800;
}

.site-tile-body {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.site-tile-body h4 {
  margin: 0;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.35;
}

.site-tile-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-tile-body span {
  width: fit-content;
  border-radius: 999px;
  background: #edf3ef;
  color: var(--accent);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.visited-tile .site-tile-body span {
  background: #f8e8df;
  color: var(--accent-2);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.pagination[hidden] {
  display: none;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.site-thumb {
  width: 82px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf2ee;
}

.site-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 72% 24%, rgba(255,255,255,.9) 0 10%, transparent 11%),
    linear-gradient(150deg, #eaf4f5 0 42%, #d8e7dd 43% 64%, #b8d2bd 65%);
}

.placeholder-visual::before,
.placeholder-visual::after {
  content: "";
  position: absolute;
  inset: auto 8px 10px;
  height: 28px;
  border-radius: 8px 8px 2px 2px;
}

.placeholder-visual.cultural::before {
  background:
    linear-gradient(135deg, transparent 0 34%, #9b6950 35% 64%, transparent 65%),
    linear-gradient(#b98763, #9b6950);
  clip-path: polygon(50% 0, 100% 38%, 82% 38%, 82% 100%, 18% 100%, 18% 38%, 0 38%);
}

.placeholder-visual.natural {
  background:
    radial-gradient(circle at 74% 25%, rgba(255,255,255,.9) 0 10%, transparent 11%),
    linear-gradient(155deg, #d6eef5 0 45%, #a8cfbd 46% 68%, #527f68 69%);
}

.placeholder-visual.natural::before {
  background: #5d846e;
  clip-path: polygon(0 100%, 28% 22%, 46% 66%, 64% 12%, 100% 100%);
}

.placeholder-visual.mixed::before {
  background: #8b7356;
  clip-path: polygon(0 100%, 22% 42%, 38% 100%, 58% 28%, 100% 100%);
}

.placeholder-visual.mixed::after {
  inset: auto 10px 8px auto;
  width: 28px;
  height: 34px;
  background: #a8745d;
  clip-path: polygon(0 100%, 0 35%, 50% 0, 100% 35%, 100% 100%);
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--muted);
  font-weight: 700;
}

.site-photo {
  height: 128px;
  background: linear-gradient(135deg, #dbe9dc, #f4ecd8);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.site-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.site-body h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.site-meta {
  font-size: 13px;
}

.site-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.site-actions button {
  flex: 1;
}

.visited {
  background: var(--accent-2);
}

.site-footer {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--accent);
  font-weight: 700;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  width: min(420px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.legal-page {
  max-width: 860px;
  padding-bottom: 56px;
}

.legal-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(31, 45, 39, .05);
}

.legal-panel h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.legal-panel p,
.legal-panel li {
  color: #3d4b45;
  line-height: 1.8;
}

.legal-panel a {
  color: var(--accent);
  font-weight: 700;
}

.photo-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

pre {
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: #18231f;
  color: #eef8f0;
}

dialog {
  width: min(920px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(18, 28, 24, .48);
}

.memorial-dialog {
  width: min(1080px, calc(100% - 28px));
}

.dialog-card {
  position: relative;
  padding: 26px;
}

.memorial-card {
  position: relative;
  max-height: calc(100vh - 28px);
  overflow: hidden;
  overflow-y: auto;
  padding: 0;
  background: #f9f6ed;
}

.icon-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  padding: 0;
  border-radius: 50%;
  background: #eef2ef;
  color: var(--ink);
  font-size: 24px;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) 1.1fr;
  gap: 24px;
}

.dialog-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #edf2ee;
}

.dialog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-photo span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 88%);
  font-size: 12px;
  font-weight: 800;
}

.dialog-fields {
  display: grid;
  gap: 12px;
}

.dialog-fields textarea,
.dialog-fields input[type="date"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.dialog-fields textarea {
  min-height: 92px;
  resize: vertical;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.memorial-hero {
  padding: 34px clamp(22px, 5vw, 56px) 18px;
  background: #fffaf0;
}

.memorial-hero h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.05;
}

.memorial-hero p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-weight: 700;
}

.memorial-timeline {
  overflow: hidden;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.memorial-timeline.all-items {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.memorial-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding-inline: 18px;
  animation: memorial-flow 58s linear infinite;
}

.memorial-track.all-items {
  animation: none;
  padding-bottom: 8px;
}

.memorial-timeline:hover .memorial-track {
  animation-play-state: paused;
}

.memorial-slide {
  width: clamp(180px, 24vw, 260px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  box-shadow: 0 8px 24px rgba(31, 45, 39, .06);
}

.memorial-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf2ee;
}

.memorial-photo img,
.memorial-photo .placeholder-visual {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.memorial-slide-text {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.memorial-slide-text span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.memorial-slide-text strong {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.memorial-slide-text p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.completion-card {
  display: grid;
  gap: 10px;
  margin: 24px clamp(18px, 5vw, 56px);
  padding: clamp(24px, 5vw, 44px);
  border: 2px solid #d5b45f;
  border-radius: 8px;
  background: #fffaf0;
  text-align: center;
}

.completion-card h3 {
  margin-bottom: 0;
  font-size: clamp(28px, 5vw, 52px);
}

.completion-card strong {
  color: var(--accent);
  font-size: clamp(22px, 4vw, 42px);
}

.completion-card small {
  color: var(--muted);
  font-weight: 700;
}

.memorial-done {
  display: block;
  width: min(260px, calc(100% - 36px));
  margin: 0 auto 26px;
}

@keyframes memorial-flow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .memorial-track {
    animation: none;
  }
}

@media (max-width: 800px) {
  .topbar,
  .hero,
  .dashboard,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions select,
  .profile-name-field,
  .top-actions button,
  .file-label {
    flex: 1 1 130px;
  }

  .hero {
    min-height: auto;
  }

  .hero h2 {
    font-size: 38px;
  }

  .region-map {
    grid-template-columns: 1fr;
  }

  .view-toggle {
    width: 100%;
  }

  .country-table,
  .site-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .country-card {
    grid-template-rows: 36px 15px 15px 15px 8px 14px;
    min-height: 118px;
    padding: 10px;
  }

  .country-card strong {
    height: 36px;
    font-size: 14px;
  }

  .country-stat,
  .country-percent {
    font-size: 11px;
  }

  .site-tile {
    min-height: 176px;
  }

  .site-tile-image {
    height: 82px;
  }

  .site-tile-body {
    padding: 8px;
    gap: 5px;
  }

  .site-tile-body h4 {
    min-height: 40px;
    font-size: 12px;
  }

  .site-tile-body p,
  .site-tile-body span {
    font-size: 10px;
  }

  .memorial-hero {
    padding: 28px 20px 16px;
  }

  .memorial-slide {
    width: 190px;
  }

  .completion-card {
    margin: 18px;
    padding: 22px 16px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .country-table,
  .site-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
