:root {
  color-scheme: light;
  /* Brand tokens mirrored from the PWA (frontend/src/ui/tokens.css) */
  --bg: #f6f5f3;
  --surface: #ffffff;
  --text: rgba(0, 0, 0, 0.92);
  --muted: rgba(60, 60, 67, 0.72);
  --faint: rgba(60, 60, 67, 0.42);
  --accent: #5b78c7;
  --accent-rgb: 91, 120, 199;
  --accent-hover: color-mix(in srgb, #5b78c7 86%, #000);
  --accent-contrast: #ffffff;
  --border: rgba(60, 60, 67, 0.12);
  --border-hairline: rgba(60, 60, 67, 0.06);
  --focus: rgba(91, 120, 199, 0.38);
  --radius: 24px;
  --radius-control: 16px;
  --shadow: 0 2px 4px rgba(40, 32, 22, 0.04), 0 6px 18px rgba(40, 32, 22, 0.05);
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer,
.page-main {
  width: min(100%, 42rem);
  margin: 0 auto;
  padding: 1rem 1.1rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1;
  color: var(--text);
}

.site-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 0.25rem 0;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Sign-in chip — mirrors the PWA secondary header button (.pc-headerSignIn) */
.site-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(248, 249, 252, 0.92) 100%
  );
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  color: rgba(52, 72, 132, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1),
    background 140ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 140ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-signin:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  text-decoration: none;
}

.site-signin:active {
  transform: scale(0.982);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: inset 0 1px 2px rgba(60, 72, 110, 0.06);
}

.site-signin:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.breadcrumbs {
  margin: 0 0 0.9rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--muted);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

.lang-switcher {
  margin: 0 0 1rem;
}

.lang-switcher-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.lang-switcher-link {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
}

.lang-switcher-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.lang-switcher-link.lang-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.lang-switcher-link.lang-active:hover {
  color: #fff;
}

.place-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero img {
  display: block;
  width: 100%;
  max-height: 16rem;
  object-fit: cover;
}

.place-header,
.content-section,
.cta-block,
.nearby-block {
  padding: 1.1rem 1.15rem;
}

.place-header h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 5vw, 2rem);
  line-height: 1.15;
}

.place-location {
  margin: 0;
  color: var(--muted);
}

.cta-block {
  background: linear-gradient(
    180deg,
    rgba(var(--accent-rgb), 0.08) 0%,
    rgba(var(--accent-rgb), 0.02) 100%
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-block h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.cta-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.25);
}

.cta-button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.content-section + .content-section {
  border-top: 1px solid var(--border);
}

.content-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.prose {
  white-space: pre-wrap;
}

.fact-list {
  margin: 0;
  padding-left: 1.15rem;
}

.fact-list li + li {
  margin-top: 0.45rem;
}

.nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nearby-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.nearby-list li:last-child {
  border-bottom: 0;
}

.nearby-distance {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.site-footer {
  color: var(--faint);
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid var(--border-hairline);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.6rem;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 0.25rem 0.25rem;
}

.footer-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-tagline {
  margin: 0;
  color: var(--faint);
}

@media (min-width: 640px) {
  .site-header,
  .site-footer,
  .page-main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero img {
    max-height: 20rem;
  }
}

.city-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.1rem;
}

.city-hub-link {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.city-place-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.city-place-card a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.city-place-card a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.city-place-thumb {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.city-place-name {
  font-weight: 600;
}
