:root {
  --cream: #fbf6ee;
  --paper: #ffffff;
  --ink: #1f1a17;
  --muted: #6f6359;
  --line: #eadfd1;
  --terracotta: #b03a2e;
  --brand-blue: #1f4e8c;
  --brand-gold: #c99a00;
  --sea: #1f4e79;
  --lemon: #f4c430;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cat-food: #b03a2e;
  --cat-sightseeing: #1f4e79;
  --cat-going-out: #6a2c70;
  --cat-events: #2e7d5b;
  --cat-day-trips: #b5651d;
  --cat-journeys: #0f766e;
  --cat-transport: #3f5873;
  --cat-comments: #8a5a14;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream) url("/src/mosaic.svg") repeat;
  background-size: 120px 120px;
  color: var(--ink);
  font: 16px/1.45 var(--sans);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

button, input, select, textarea { font: inherit; color: inherit; }

/* Header */
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: calc(28px + env(safe-area-inset-top)) 20px 12px;
  max-width: 980px;
  margin: 0 auto;
}
body::before {
  content: "";
  display: block;
  height: 7px;
  background: linear-gradient(var(--brand-blue) 0 60%, #fcdd09 60%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { border-radius: 9px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.wordmark {
  font: italic 500 clamp(17px, 4.8vw, 21px)/1 var(--serif);
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--brand-blue);
}
.wordmark b { color: var(--brand-gold); font-weight: 700; }
[data-brand="sicily"] {
  --brand-blue: #3b2a24;
  --brand-gold: var(--terracotta);
}
[data-brand="sicily"] body::before { background: linear-gradient(#d9261c 0 60%, #fcdd09 60%); }
[data-brand="sicily"] .wordmark { font-style: normal; font-weight: 700; }
.hero { gap: 10px; }
.hero-text { min-width: 0; }
.hero h1 { margin-top: 10px; }
@media (max-width: 400px) {
  .brand { gap: 7px; }
  .brand img { width: 28px; height: 28px; }
}
.foot-brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--brand-blue);
}
.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
h1 {
  margin: 2px 0 0;
  font: 600 44px/1 var(--serif);
  letter-spacing: -0.01em;
}
.subtitle { margin: 6px 0 0; color: var(--muted); }

.icon-btn {
  border: 0;
  background: var(--paper);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12), 0 0 0 2px var(--terracotta) inset;
  flex: none;
}

/* Sticky search + pills */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0 8px;
  border-bottom: 1px solid transparent;
}
.toolbar.stuck { border-bottom-color: var(--line); }
.search-row {
  display: flex;
  gap: 8px;
  margin: 0 auto;
  max-width: 940px;
  width: calc(100% - 40px);
}
.view-toggle {
  display: flex;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 0 0 2px var(--terracotta) inset;
  padding: 3px;
  flex: none;
}
.view-toggle button {
  border: 0;
  background: none;
  border-radius: 11px;
  padding: 0 12px;
  font-size: 15px;
  cursor: pointer;
}
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.subfilters { display: grid; grid-template-columns: minmax(0, 1fr); }
.subfilters > .pills { width: 100%; }
.pills.small { padding-top: 6px; }
.pills.small .pill { padding: 6px 12px; font-size: 14px; }
.pill:disabled { opacity: 0.4; cursor: default; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  background: var(--paper);
  border-radius: 14px;
  padding: 0 14px;
  box-shadow: 0 0 0 2px var(--terracotta) inset;
  color: var(--muted);
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 17px; /* >= 16px avoids iOS zoom */
  outline: none;
  color: var(--ink);
  min-width: 0;
}
.pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 20px 2px;
  scrollbar-width: none;
  max-width: 980px;
  margin: 0 auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 20px;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none;
  scroll-snap-align: start;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--paper);
  box-shadow: 0 0 0 1.5px var(--terracotta) inset;
  cursor: pointer;
  white-space: nowrap;
  font-size: 15px;
}
.pill .n { color: var(--muted); font-size: 13px; margin-left: 4px; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: none; }
.pill[aria-pressed="true"] .n { color: #cbbfb3; }

/* List */
main { max-width: 980px; margin: 0 auto; padding: 8px 20px 0; }
.list-actions { display: flex; justify-content: flex-end; margin: 4px 0 10px; }
.places {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) {
  .places { grid-template-columns: 1fr 1fr; }
}

.place {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line) inset, 0 6px 18px -14px rgba(60, 30, 10, 0.35);
  overflow: hidden;
  border-top: 4px solid var(--cat, var(--terracotta));
}
.place-body {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.photo {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #efe6da;
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  font-size: 10px;
  line-height: 1.3;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo figcaption a { color: inherit; text-decoration: none; }
.photo.placeholder {
  aspect-ratio: auto;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: color-mix(in srgb, var(--cat) 14%, var(--paper));
}
.facts { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.facts p { margin: 0; }
.meals { display: flex; flex-wrap: wrap; gap: 6px; }
.meal {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3ece2;
  color: var(--ink);
}
.tip {
  margin: 0;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--sea) 7%, var(--paper));
}
.tip strong { color: var(--sea); font-size: 12px; letter-spacing: 0.03em; }
.order {
  margin: 0;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--terracotta) 7%, var(--paper));
}
.order strong { color: var(--terracotta); font-size: 12px; letter-spacing: 0.03em; }
.chip.menu { background: color-mix(in srgb, var(--terracotta) 12%, var(--paper)); color: var(--ink); }
.place-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.place h3 { margin: 0; font: 600 22px/1.15 var(--serif); }
.meta {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.meta .cat { color: var(--cat); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.note {
  margin: 0;
  padding: 8px 12px;
  border-left: 3px solid var(--lemon);
  background: #fffaf0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
}
.address { margin: 0; font-size: 14px; color: var(--muted); }
.date { margin: 0; font-weight: 600; font-size: 14px; }
.star {
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #c9bcae;
  padding: 2px;
}
.star[aria-pressed="true"] { color: var(--lemon); text-shadow: 0 0 0 #d9a400; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: #f3ece2;
  color: var(--ink);
  cursor: pointer;
}
.chip.primary { background: var(--sea); color: #fff; }
.chip.card { background: var(--ink); color: var(--cream); }

.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.offline-badge {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}

.site-foot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 28px 20px calc(96px + env(safe-area-inset-bottom));
}
.site-foot p { margin: 14px 0 0; }

/* Language picker */
.hero-buttons { display: flex; align-items: flex-start; gap: 8px; flex: none; }
.hero-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.hero-action .icon-btn { display: grid; place-items: center; }
.hero-label {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  max-width: 64px;
  text-align: center;
}
.lang-btn { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.lang[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: none; }

/* Votes & suggestions */
.votes { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.vote, .vote-feedback {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 15px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line) inset;
  color: var(--ink);
  cursor: pointer;
}
.vote span { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); }
.vote[aria-pressed="true"] { background: #fdf0d5; box-shadow: 0 0 0 2px var(--lemon) inset; }
.vote[aria-pressed="true"] span { color: var(--ink); font-weight: 600; }
.vote-feedback { margin-left: auto; font-size: 13px; color: var(--muted); }
.journey-body > .votes { border-top: 0; padding-top: 0; }
.suggest-about { font-weight: 600; color: var(--ink); }
.sheet label.hp, .comment-form label.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Floating add button */
.fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--terracotta);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 10px 24px -8px rgba(176, 58, 46, 0.6);
  cursor: pointer;
  z-index: 6;
}

/* Bottom sheets */
.sheet {
  border: 0;
  padding: 0;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  margin: auto auto 0;
  border-radius: 22px 22px 0 0;
  background: var(--cream);
  color: var(--ink);
}
@media (min-width: 640px) {
  .sheet { margin: auto; border-radius: 22px; }
}
.sheet::backdrop { background: rgba(31, 26, 23, 0.45); }
.sheet[open] { animation: rise 0.22s ease-out; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.sheet form, .sheet > * { padding-left: 20px; padding-right: 20px; }
.sheet form { padding: 0 0 calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.sheet form > * { margin: 0 20px; }
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 1;
}
.sheet form > .sheet-head { margin: 0; padding: 16px 20px 4px; }
.sheet h2 { margin: 0; font: 600 24px/1.2 var(--serif); }
.sheet label, .comment-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sheet input, .sheet select, .sheet textarea, .comment-form input, .comment-form textarea {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line) inset;
  width: 100%;
}
.sheet small { font-weight: 400; }
.sheet small.ok { color: var(--cat-events); }
.sheet small.bad { color: var(--terracotta); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.sheet form > .sheet-foot { padding-bottom: 0; }
.hint { font-size: 14px; color: var(--muted); margin: 8px 0; }

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-ghost { background: var(--paper); box-shadow: 0 0 0 1px var(--line) inset; }
.btn-danger { background: #f6e1de; color: var(--terracotta); margin-right: auto; }
.btn:disabled { opacity: 0.5; }

.card-preview {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.card-preview img {
  width: min(100%, 360px);
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.5);
  scroll-snap-align: center;
  flex: none;
}
.card-preview.multi img { width: 72%; }

.menu-actions { display: grid; gap: 10px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.menu-actions .btn-danger { margin-right: 0; }
.file-btn input { display: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 20;
  max-width: calc(100% - 40px);
}

/* Map view */
.map-wrap {
  position: relative;
  height: calc(100dvh - var(--toolbar-h, 120px));
  min-height: 360px;
}
#map { position: absolute; inset: 0; background: #e8e4dc; }
.map-mode { padding-bottom: 0; }
.map-mode .hero { display: none; }
.map-mode .fab { display: none; }
.map-buttons {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 500;
  display: flex;
  gap: 6px;
}
.map-buttons .btn { padding: 8px 12px; font-size: 14px; box-shadow: 0 0 0 1px var(--line) inset, 0 4px 12px -6px rgba(0, 0, 0, 0.3); }
.pin { background: none; border: 0; }
.pin span {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #fff;
  border: 3px solid var(--pin);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.pin i { transform: rotate(45deg); font: normal 15px/1 var(--sans); }
.pin.fav span::after {
  content: "♥";
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%) rotate(45deg);
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--cat-food);
  color: #fff;
  border: 2px solid #fff;
  font-size: 9px;
  line-height: 1;
}
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 10px; font: 14px/1.35 var(--sans); }
.popup { display: grid; gap: 4px; }
.popup img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }
.popup strong { font: 600 17px/1.2 var(--serif); }
.popup .meta { color: var(--muted); font-size: 12px; }
.popup-tip { font-size: 13px; }
.popup .actions { margin-top: 6px; gap: 6px; }
.popup .chip { padding: 6px 10px; font-size: 13px; }
.popup a.chip.primary { color: #fff; }
.popup a.chip { color: var(--ink); }

/* Editor extras */
.meals-field { border: 0; padding: 0; margin: 0 20px; }
.meals-field legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 0 6px; }
#meal-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet label.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 0 0 1px var(--line) inset;
  font-size: 14px;
}
.sheet label.check input { width: auto; box-shadow: none; padding: 0; margin: 0; }

/* Journeys */
.summary { margin: 0; font-size: 15px; }
.stops-line { margin: 0; font-size: 13px; color: var(--muted); }
.transport, .tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.transport li { display: flex; gap: 8px; }
.tips li { padding-left: 14px; position: relative; }
.tips li::before { content: "•"; position: absolute; left: 0; color: var(--cat-journeys); }
.journey-sheet { overflow-y: auto; }
.journey-body { display: grid; gap: 10px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.journey-body > p { margin: 0; }
.journey-body h3 { margin: 8px 0 0; font: 600 18px/1.2 var(--serif); }
.journey-body .photo { border-radius: 14px; overflow: hidden; }
.stops { margin: 0; padding: 0; list-style: none; counter-reset: stop; display: grid; gap: 10px; }
.stops li {
  counter-increment: stop;
  position: relative;
  padding: 10px 12px 10px 48px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line) inset;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.stops li::before {
  content: counter(stop);
  position: absolute;
  left: 12px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cat-journeys);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.stops strong { font-size: 15px; }
.stops .actions { margin-top: 2px; }
.stops .chip { padding: 5px 10px; font-size: 13px; }
.check { font-size: 13px; color: var(--muted); font-style: italic; }
.sheet-actions { position: sticky; bottom: 0; background: var(--cream); padding: 10px 0 4px; }
.stop-pin, .journey-pin { background: none; border: 0; }
.stop-pin span, .journey-pin span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cat-journeys);
  color: #fff;
  font: 700 14px/1 var(--sans);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.stop-pin.fav span { position: relative; }
.stop-pin.fav span::after {
  content: "♥";
  position: absolute;
  top: -9px;
  right: -9px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--cat-food);
  border: 2px solid #fff;
  font-size: 10px;
}
.journey-pin span { background: #fff; border-color: var(--cat-journeys); font-size: 16px; }

.guide-head { list-style: none; padding: 8px 4px 0; grid-column: 1 / -1; }
.guide-head h2 { margin: 0; font-family: var(--serif); font-size: 21px; }
.guide-item .place-body { display: grid; gap: 10px; }
.guide-item h3 { margin: 0; }
.guide-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.guide-facts li { padding-left: 14px; position: relative; }
.guide-facts li::before { content: "•"; position: absolute; left: 0; color: var(--cat-transport); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.disclaimer-body { font-size: 15px; line-height: 1.5; }
.disclaimer-body h3 { margin: 18px 0 0; font: 600 18px/1.3 var(--serif); }
.comment-box { grid-column: 1 / -1; }
.coming-soon .place-body { display: grid; gap: 12px; }
.coming-soon h3 { margin: 0; font: 600 22px/1.2 var(--serif); }
.coming-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.coming-list li { display: grid; gap: 2px; font-size: 14px; }
.coming-list span { color: var(--muted); }
.coming-soon .btn { justify-self: start; }
.suggest-page #suggest-close { display: none; }
.suggest-page form { display: grid; gap: 12px; }
.suggest-page .sheet-head { position: static; background: none; padding: 0; margin: 0; }
.suggest-page .sheet-head h2 { margin: 0; font: 600 22px/1.2 var(--serif); }
.suggest-page label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.suggest-page :is(input, select, textarea) {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line) inset;
  width: 100%;
}
.suggest-page label.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.weather { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0 0; font-size: 13px; color: var(--ink); }
.weather[hidden] { display: none; }
.weather .uv { font-weight: 600; }
.weather .uv-high, .weather .uv-very-high, .weather .uv-extreme { color: #9a3412; }
.comment-form { display: grid; gap: 12px; }
.comment-form h3, .comment-form .hint { margin: 0; }
.comment-form .btn { justify-self: end; }
.comment .summary { white-space: pre-line; }
.visitor-count { font-weight: 600; }
.message-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(100% - 32px, 752px);
  margin: 0 auto 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff6e0;
  border: 1px solid #f0d9a0;
  font-size: 15px;
}
.message-banner[hidden] { display: none; }
.message-banner p { margin: 0; flex: 1; }
.ztl-status { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.ztl-status strong { font-size: 16px; }
.ztl-status.on { background: #fdecea; color: #8a1c12; }
.ztl-status.off { background: #e6f4ec; color: #1d5e3c; }

@media (prefers-reduced-motion: reduce) {
  .sheet[open] { animation: none; }
}
