:root {
  color-scheme: light;
  --ink: #0b1220;
  --text: #1a1a1a;
  --muted: #6b7280;
  --surface: #ffffff;
  --surface-soft: #f6f7f9;
  --surface-selected: #eef3f8;
  --line: #eeeeee;
  --brand: #2f6fd6;
  --brand-strong: #1e4e9d;
  --brand-soft: #eef3f8;
  --brand-tint: #f6f9ff;
  --accent: #2f6fd6;
  --pin-food: #f07c24;
  --pin-shopping: #c69214;
  --pin-collect: #16a34a;
  --pin-report: #c2413a;
  --pin-place: #8b3ed4;
  --shadow: 0 8px 28px rgba(11, 18, 32, 0.07);
  --radius: 14px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand-strong);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.13em;
}

a:focus-visible,
button:focus-visible {
  border-radius: 5px;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
}

.nav-shell,
.page-shell,
.footer-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.nav-shell {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: cover;
}

span.brand {
  cursor: default;
}

.brand-wordmark {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a,
.nav-links span[aria-current="page"] {
  display: inline-flex;
  min-height: 44px;
  padding: 9px 12px;
  align-items: center;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--surface-selected);
  color: var(--ink);
}

.nav-links a[aria-current="page"],
.nav-links span[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--ink);
}

.page-shell {
  padding-block: 0 80px;
}

.hero {
  display: grid;
  min-height: 560px;
  padding-block: 74px 82px;
  align-items: center;
  gap: 48px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 1.56rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-blue {
  color: #245cb4;
}

.eyebrow-green {
  color: #267346;
}

.eyebrow-purple {
  color: #6f42a8;
}

.eyebrow-pink {
  color: #a92d6c;
}

.eyebrow-red {
  color: #b32b33;
}

.eyebrow-orange {
  color: #a95a13;
}

.eyebrow-teal {
  color: #087f82;
}

.eyebrow-cyan {
  color: #00b8d9;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.14;
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 6vw, 4.7rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  letter-spacing: -0.015em;
}

p {
  margin-top: 0;
}

.lede {
  max-width: 690px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 5px 14px rgba(47, 111, 214, 0.18);
}

.button-web-app {
  max-width: 100%;
  gap: 10px;
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(47, 111, 214, 0.12);
}

.button-web-app-arrow {
  flex: 0 0 auto;
  font: 400 1rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
}

.button:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.button-web-app:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  transform: none;
}

.button-web-app:active {
  box-shadow: none;
}

.hero-panel,
.card,
.notice,
.legal-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  border-radius: 18px;
}

.hero-panel .panel-title {
  margin-bottom: 18px;
  font-size: 1rem;
  font-weight: 800;
}

.fact-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.fact-list li {
  display: grid;
  align-items: start;
  gap: 11px;
  grid-template-columns: 24px 1fr;
}

.fact-list li::before {
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  content: "✓";
  font-size: 0.78rem;
  font-weight: 900;
  place-items: center;
}

.section {
  padding-block: 64px;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 700px;
  margin-bottom: 32px;
  color: var(--muted);
}

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

.card {
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: 0 3px 18px rgba(11, 18, 32, 0.05);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-split {
  display: grid;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  gap: 36px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
}

.feature-split p:last-child {
  margin-bottom: 0;
}

.feature-split-share {
  align-items: center;
}

/* A WhatsApp message as it arrives, so its colours are WhatsApp's. */
.share-message {
  justify-self: center;
  width: min(100%, 508px);
  margin: 0;
  padding: 5px 5px 12px;
  border-radius: 14px;
  background: #d9fdd3;
  box-shadow: 0 1px 3px rgb(11 20 26 / 20%);
  color: #111b21;
  font-size: 1.125rem;
  line-height: 1.38;
}

.share-message img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.share-message-link {
  display: block;
  min-height: 44px;
  margin: 10px 9px 0;
  color: inherit;
  text-decoration: none;
}

.share-message-url {
  display: block;
  color: #0e7a4b;
  overflow-wrap: anywhere;
  text-decoration: underline;
}

.share-message p {
  margin: 18px 9px 0;
  color: inherit;
}

.share-message-time {
  float: right;
  margin: 6px 0 0 14px;
  color: #54656f;
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
}

.share-message-time span {
  color: #0b7fbc;
}

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

.limits li {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.limits strong {
  display: block;
  color: var(--brand-strong);
  font-size: 1.06rem;
}

.legal-header {
  max-width: 800px;
  padding: 48px 0 38px;
}

.legal-header h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.effective-date {
  color: var(--muted);
  font-weight: 700;
}

.legal-layout {
  display: grid;
  align-items: start;
  gap: 32px;
  grid-template-columns: 240px minmax(0, 1fr);
}

.toc {
  position: sticky;
  top: 104px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.toc p {
  margin-bottom: 9px;
  font-weight: 800;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc a {
  display: inline-block;
  padding-block: 3px;
}

.legal-card {
  padding: clamp(26px, 5vw, 54px);
  border-radius: 16px;
}

.prose section + section {
  margin-top: 44px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  scroll-margin-top: 100px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.prose h3 {
  margin-top: 28px;
}

.prose p,
.prose li {
  max-width: 76ch;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 9px;
}

.notice {
  margin-block: 28px;
  padding: 20px 22px;
  border-color: rgba(47, 111, 214, 0.18);
  border-radius: 16px;
  background: var(--brand-tint);
  box-shadow: none;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

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

.support-grid .card {
  box-shadow: none;
}

.contact-card {
  display: grid;
  margin-block: 10px 44px;
  padding: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  gap: 20px;
  grid-template-columns: 1fr auto;
}

.contact-card p {
  margin-bottom: 0;
}

.contact-card .eyebrow {
  margin-bottom: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.breadcrumb {
  display: flex;
  margin: 0 0 clamp(18px, 2vw, 28px);
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.3vw, 0.9rem);
  list-style: none;
}

.breadcrumb li + li::before {
  margin-right: 8px;
  color: #8b98aa;
  content: "/";
}

.hero-authority {
  position: relative;
  display: grid;
  min-height: 0;
  padding-block: clamp(38px, 5.5vw, 72px) clamp(52px, 7vw, 88px);
  align-items: start;
  gap: clamp(36px, 6vw, 76px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.hero-copy {
  min-width: 0;
}

.hero-brand-row {
  display: grid;
  margin-bottom: clamp(22px, 3vw, 34px);
  align-items: start;
  grid-template-columns: 190px minmax(0, 1fr);
}

.hero-brand-row .button-web-app {
  justify-self: center;
}

.hero-brand-lockup {
  position: relative;
  display: inline-flex;
  width: 190px;
  align-items: center;
  color: var(--ink);
  flex-direction: column;
  text-align: center;
  text-decoration: none;
}

.hero-brand-lockup-link {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.hero-brand-mark {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: cover;
}

.hero-brand-wordmark {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.625rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  /* Keep the approved brand stack and CTA positions while refining the glyph. */
  line-height: 1.8rem;
}

.hero-brand-signal {
  display: flex;
  height: 22px;
  margin-top: 6px;
  align-items: center;
  justify-content: center;
}

/* Keep the app's bar geometry; continuous fades avoid stacked subpixel edges. */
.brand-signal-fade {
  width: 48px;
  height: 2px;
  border-radius: 1px;
  opacity: 0.5;
}

.brand-signal-fade-left {
  margin-right: 1px;
  background: linear-gradient(to right, transparent, var(--brand));
}

.brand-signal-fade-right {
  margin-left: 1px;
  background: linear-gradient(to left, transparent, var(--brand));
}

.brand-signal-bars {
  display: flex;
  height: 22px;
  align-items: center;
  justify-content: center;
}

.brand-signal-bars > span {
  width: 2px;
  margin-inline: 1px;
  border-radius: 1px;
  background: var(--brand);
}

.brand-signal-bars > span:nth-child(1),
.brand-signal-bars > span:nth-child(9) {
  height: 7px;
}

.brand-signal-bars > span:nth-child(2),
.brand-signal-bars > span:nth-child(8) {
  height: 10px;
}

.brand-signal-bars > span:nth-child(3),
.brand-signal-bars > span:nth-child(7) {
  height: 14px;
}

.brand-signal-bars > span:nth-child(4),
.brand-signal-bars > span:nth-child(6) {
  height: 18px;
}

.brand-signal-bars > span:nth-child(5) {
  height: 22px;
}

.hero-brand-tagline {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  line-height: 1.4;
  white-space: nowrap;
}

.hero-authority h1 {
  max-width: 760px;
  margin-top: calc(6px - 0.222em);
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
}

.hero-subtitle {
  display: block;
  margin-top: 0.18em;
  color: var(--brand-strong);
  font-size: clamp(1.25rem, 2.9vw, 2.15rem);
  letter-spacing: -0.035em;
}

.hero-copy .lede {
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 400;
}

.hero-start {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.hero-location-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.store-presentation {
  display: grid;
  width: fit-content;
  max-width: 100%;
  margin: 24px 0;
  padding: 12px 16px;
  gap: 4px;
  border: 1px solid rgba(47, 111, 214, 0.18);
  border-radius: 8px;
  background: var(--brand-tint);
}

.store-presentation p {
  margin: 0;
}

.store-presentation-label {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}

.store-presentation-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.store-presentation-publisher {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.store-badge-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  border-radius: 6px;
  text-decoration: none;
}

.store-badge-link img {
  display: block;
  width: auto;
  height: 40px;
}

.store-presentation-status {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.homepage-pin-preview {
  width: min(100%, 408px);
  min-width: 0;
  justify-self: end;
}

.preview-caption {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.homepage-pin-preview [hidden] {
  display: none;
}

.preview-help {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
}

.preview-tabs {
  display: inline-flex;
  width: fit-content;
  align-self: flex-start;
  margin: 0 0 8px;
  padding: 3px;
  gap: 2px;
  border: 1px solid #7896c2;
  border-radius: 999px;
  background: #eef4ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.preview-tab {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1e4e9d;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.preview-tab:not(.is-selected):hover {
  background: #ddeaff;
}

.preview-tab.is-selected {
  background: #2f6fd6;
  color: #ffffff;
}

.preview-tab:focus-visible,
.preview-travel-back:focus-visible {
  outline: 2px solid #2f6fd6;
  outline-offset: 2px;
}

.preview-explain {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.preview-travel-back {
  display: flex;
  width: 100%;
  min-height: 44px;
  margin-bottom: 4px;
  padding: 0 4px;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: #0f172a;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  text-align: start;
}

.preview-travel-back svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
  transform: rotate(180deg);
}

.homepage-pin-preview[dir="rtl"] .preview-travel-back svg {
  transform: none;
}

.preview-pin-number {
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  display: flex;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #2f6fd6;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.hero-map.is-walk::after {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: #334155;
  font-size: 11px;
  content: "© OpenStreetMap";
  pointer-events: none;
}

.preview-list-head {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.preview-list-title {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

.preview-list-count {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.preview-built-in {
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}

.preview-stage {
  min-width: 0;
}

.preview-pins {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.preview-pins > li {
  margin-bottom: 8px;
}

/* The web app's example pin card: components/ExamplePinCard.tsx, its workspace surface. */
.preview-pin {
  display: flex;
  width: 100%;
  height: 120px;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce2e8;
  border-inline-start-width: 0;
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.preview-pin::before {
  width: 4px;
  flex: none;
  background: var(--preview-pin-colour);
  content: "";
}

.preview-pin:disabled {
  cursor: default;
}

.preview-pin:not(:disabled):hover {
  background: #eef4ff;
}

.preview-pin:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* A city or a pack is a selection, not a pin: its photo's height, with the same space above and below it. */
.preview-pin-choice {
  height: 82px;
}

.preview-pin-choice .preview-pin-body {
  height: 80px;
}

.preview-pin-general {
  --preview-pin-colour: #2f6fd6;
}

.preview-pin-place {
  --preview-pin-colour: #8b3ed4;
}

.preview-pin-food {
  --preview-pin-colour: #f07c24;
}

.preview-pin-shopping {
  --preview-pin-colour: #c69214;
}

.preview-pin-collect {
  --preview-pin-colour: #16a34a;
}

.preview-pin-report {
  --preview-pin-colour: #c2413a;
}

.preview-pin-visual {
  position: relative;
  width: 80px;
  flex: none;
}

.preview-pin-photo {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  width: 64px;
  height: 64px;
  border-radius: 9px;
  background: #e5e7eb;
  object-fit: cover;
}

.preview-pin-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--preview-pin-colour);
}

.preview-pin-symbol svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
}

.preview-pin-category {
  display: flex;
  position: absolute;
  top: 76px;
  inset-inline-start: 8px;
  width: 64px;
  height: 34px;
  padding-inline: 3px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: color-mix(in srgb, var(--preview-pin-colour) 12%, transparent);
  color: #0b1220;
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.preview-pin-body {
  display: block;
  height: 118px;
  min-width: 0;
  padding-block: 8px;
  padding-inline: 4px 8px;
  flex: 1 1 0;
}

.preview-pin-title {
  display: block;
  height: 20px;
  overflow: hidden;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.preview-pin-note {
  display: -webkit-box;
  height: 40px;
  margin-top: 4px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #374151;
  font-size: 15px;
  line-height: 20px;
}

.preview-pin-date {
  display: block;
  height: 18px;
  margin-top: 4px;
  overflow: hidden;
  color: #6b7280;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-pin-address {
  display: block;
  height: 16px;
  overflow: hidden;
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-pin-arrow {
  display: flex;
  padding-inline-end: 8px;
  align-items: center;
  flex: none;
  color: #6b7280;
}

.preview-pin-arrow svg {
  width: 20px;
  height: 20px;
}

/* The window that opens over the list: the web app's example pin page. */
.pin-window {
  display: flex;
  position: relative;
  z-index: 1;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  color: #0b1220;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: normal;
  animation: pin-window-open 240ms cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes pin-window-open {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.pin-window p {
  margin: 0;
}

.pin-window-header {
  display: flex;
  min-height: 52px;
  padding-inline: 8px;
  align-items: center;
  justify-content: space-between;
  flex: none;
  gap: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.pin-window-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
}

.pin-read-only {
  padding: 5px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
}

.pin-close {
  display: inline-flex;
  min-width: 72px;
  min-height: 48px;
  padding-inline: 10px;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 5px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7896c2;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pin-close:hover {
  background: #eef4ff;
}

.pin-close svg {
  width: 24px;
  height: 24px;
}

.pin-page {
  padding: 12px 20px;
}

.pin-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pin-category-pill {
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.pin-category-general {
  background: #2f6fd6;
}

.pin-category-place {
  background: #8b3ed4;
}

.pin-category-food {
  background: #f07c24;
}

.pin-category-shopping {
  background: #c69214;
}

.pin-category-collect {
  background: #16a34a;
}

.pin-category-report {
  background: #c2413a;
}

.pin-scene {
  color: #667085;
  font-size: 12px;
}

.pin-window .pin-field-label {
  margin-top: 16px;
  color: #0b1220;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.pin-window .pin-detail-text {
  margin-top: 8px;
  color: #0b1220;
  font-size: 17px;
  line-height: 25px;
  overflow-wrap: anywhere;
}

.pin-window .pin-why {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3e8ff;
  color: #5b21b6;
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
}

/*
 * The purple line sits the same seen gap below the Detail text's last baseline as above the Address heading's
 * capitals (P036-PC-120). pin-preview.js sets the gap and the system font's shares from the app.
 */
.pin-window .pin-above-directions {
  margin-bottom: max(0px, calc(var(--directions-gap) - (1lh - (var(--font-ascent) + var(--font-descent)) * 1em) / 2 - var(--font-descent) * 1em));
}

.pin-window .pin-directions {
  margin-top: 0;
}

.pin-window .pin-directions + .pin-field-label {
  margin-top: max(0px, calc(var(--directions-gap) - (1lh - (var(--font-ascent) + var(--font-descent)) * 1em) / 2 - (var(--font-ascent) - var(--font-cap-height)) * 1em));
}

.pin-window .pin-address-text {
  margin-top: 8px;
  color: #0b1220;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.pin-actions {
  display: flex;
  margin-block: 8px 20px;
  gap: 12px;
}

.pin-button {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  padding: 14px 8px;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.pin-button[aria-disabled="true"] {
  cursor: default;
}

.pin-button-primary {
  border-color: #2f6fd6;
  background: #2f6fd6;
  color: #ffffff;
}

.pin-button-primary:hover {
  border-color: #285eb7;
  background: #285eb7;
}

.pin-button-secondary {
  border-color: #7896c2;
  background: #eef4ff;
  color: #1e4e9d;
}

.pin-button-secondary:not([aria-disabled="true"]):hover {
  background: #ddeaff;
}

.pin-button-tertiary {
  border-color: #7896c2;
  background: #ffffff;
  color: #1e4e9d;
}

.pin-button-tertiary:hover {
  background: #eef4ff;
}

.pin-button:focus-visible,
.pin-close:focus-visible,
.pin-thumb:focus-visible,
.pin-appearance-row:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.pin-photos {
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid #eeeeee;
}

.pin-photos-head {
  display: flex;
  margin-bottom: 8px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pin-window .pin-photos-title {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
}

.pin-window .pin-photos-guidance {
  color: #1e4e9d;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  text-align: end;
}

.pin-window .pin-photo-count {
  color: #374151;
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
}

.pin-photo-strip {
  display: flex;
  margin-top: 10px;
  overflow-x: auto;
  gap: 12px;
}

.pin-thumb {
  width: 128px;
  height: 128px;
  padding: 0;
  overflow: hidden;
  flex: none;
  border: 1px solid #7896c2;
  border-radius: 12px;
  background: #eef4ff;
  cursor: pointer;
}

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

.pin-photo-actions {
  display: flex;
  margin-top: 14px;
  gap: 10px;
}

.pin-meta {
  margin: 0 0 20px;
  padding-top: 14px;
  border-top: 1px solid #eeeeee;
  font-size: 14px;
  font-weight: 500;
}

.pin-meta > div {
  display: flex;
  padding-block: 6px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pin-meta dt {
  color: #777777;
}

.pin-meta dd {
  margin: 0;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
}

/* The Edit pin and Pin appearance pages, view-only: components/EditPinForm.tsx. */
.pin-edit-header {
  display: flex;
  min-height: 52px;
  padding: 2px 20px 8px;
  flex: none;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #eeeeee;
}

.pin-edit-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pin-window .pin-edit-title {
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 700;
}

.pin-edit-title-row .pin-close {
  min-height: 44px;
  margin-inline-end: -10px;
}

.pin-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pin-view-only {
  margin-inline-end: auto;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f3e8ff;
  color: #5b21b6;
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
}

.pin-button-cancel,
.pin-button-save {
  min-width: 72px;
  min-height: 44px;
  padding: 11px 12px;
  flex: none;
  border-radius: 8px;
}

.pin-button-cancel {
  border-color: #7896c2;
  background: #ffffff;
  color: #1e4e9d;
}

.pin-button-cancel:hover {
  background: #eef4ff;
}

.pin-button-save {
  border-color: #2f6fd6;
  background: #2f6fd6;
  color: #ffffff;
}

.pin-edit-body {
  padding: 3px 20px 24px;
}

.pin-window .pin-input-label {
  margin-block: 8px 6px;
  color: #555555;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 18px;
}

.pin-input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.pin-input-placeholder {
  color: #5f6672;
}

/* The purple directions box below Detail, as the app's Edit pin page draws it (P036-PC-120). */
.pin-window .pin-directions-input {
  margin-top: 8px;
  border-color: #f3e8ff;
  border-radius: 10px;
  background: #f3e8ff;
  color: #5b21b6;
  font-weight: 600;
  line-height: 21px;
}

.pin-window .pin-heading-counter {
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
  line-height: 18px;
  text-align: end;
}

.pin-category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 12px;
}

.pin-category-tile {
  display: flex;
  width: 31%;
  min-height: 44px;
  padding: 6px 2px;
  align-items: center;
  flex-direction: column;
  border: 1px solid transparent;
  border-radius: 10px;
}

.pin-category-tile.is-selected {
  border-color: var(--tile-colour);
  border-bottom-width: 1.5px;
  background: color-mix(in srgb, var(--tile-colour) 18%, transparent);
}

.pin-category-swatch {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tile-colour);
  color: #ffffff;
}

.pin-category-swatch svg {
  width: 20px;
  height: 20px;
}

.pin-category-name {
  margin-top: 6px;
  color: #555555;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.pin-category-tile.is-selected .pin-category-name {
  color: var(--tile-colour);
  font-weight: 700;
}

.pin-appearance-row {
  display: flex;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #7896c2;
  border-radius: 10px;
  background: #ffffff;
  color: #1e4e9d;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.pin-appearance-row:hover {
  background: #eef4ff;
}

.pin-appearance-row svg {
  width: 20px;
  height: 20px;
}

.pin-edit-meta {
  display: flex;
  margin-top: 14px;
  padding-top: 10px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eeeeee;
  color: #777777;
  font-size: 13px;
  font-weight: 500;
}

.pin-edit-meta span:last-child {
  color: #1a1a1a;
}

.pin-appearance-body {
  padding-top: 14px;
}

.pin-window .pin-appearance-heading {
  color: #333333;
  font-size: 14px;
  font-weight: 600;
}

.pin-window .pin-appearance-size {
  margin-top: 16px;
}

.pin-window .pin-appearance-colour {
  margin-top: 16px;
  margin-bottom: 8px;
  color: #0b1220;
}

.pin-window .pin-appearance-helper {
  margin-block: 4px 10px;
  color: #5f6672;
  font-size: 13px;
}

.pin-tile-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.pin-shape-tile,
.pin-size-tile {
  display: flex;
  min-width: 0;
  min-height: 48px;
  padding: 16px 8px;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  border: 1px solid #7896c2;
  border-radius: 10px;
  background: #ffffff;
}

.pin-shape-tile {
  height: 80px;
}

.pin-shape-tile.is-selected,
.pin-size-tile.is-selected {
  border: 2px solid var(--tile-colour);
  background: color-mix(in srgb, var(--tile-colour) 8%, #ffffff);
}

.pin-size-tile {
  color: #0b1220;
  font-size: 14px;
  text-align: center;
}

.pin-circle-art {
  display: flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
}

.pin-circle-art svg {
  width: 13px;
  height: 13px;
}

.pin-colour-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pin-colour-tile {
  display: flex;
  min-width: 48px;
  min-height: 48px;
  padding: 6px;
  align-items: center;
  flex-basis: 30%;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  gap: 3px;
  border: 1px solid #7896c2;
  border-radius: 8px;
  background: #ffffff;
  color: #0b1220;
  font-size: 12px;
  text-align: center;
}

.pin-colour-swatch {
  width: 24px;
  height: 24px;
  border-width: 1px;
  border-style: solid;
  border-radius: 50%;
}

/* One photo, over the pin page: components/ExamplePhotoViewer.tsx. */
.pin-window .pin-photo-title {
  padding-inline: 4px;
  color: #0b1220;
  font-size: 15px;
  font-weight: 600;
}

.pin-photo-area {
  display: flex;
  min-height: 240px;
  padding: 12px;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.pin-photo-full {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.pin-window .pin-photo-alt {
  padding: 0 16px 16px;
  color: #374151;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

/* The live map that lies over the left-hand block while a pin is open. */
.hero-map-zone {
  position: relative;
}

/* Once the window or the map has faded in, what lies under it steps out of sight. */
.preview-pins[inert] {
  visibility: hidden;
  transition: visibility 0s linear 240ms;
}

.hero-map-covered[inert] {
  visibility: hidden;
  transition: visibility 0s linear 240ms;
}

.hero-map {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #eef3f8;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease-out, visibility 0s linear 240ms;
}

.hero-map.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms ease-out;
}

/* The map lies over Open Remem web's usual place, so it waits in the gap beside the store box. */
.hero-map-web-app {
  position: absolute;
  z-index: 3;
  animation: pin-window-open 240ms cubic-bezier(0.33, 1, 0.68, 1);
}

:root:not([data-remem-web-access="allowed"]) .hero-map-web-app {
  display: none;
}

/* Arabic reads right to left: the arrows point the reading way, and coordinates
   and GPS accuracy keep the order they are written in (FL-016). */
.homepage-pin-preview[dir="rtl"] .preview-pin-arrow svg {
  transform: scaleX(-1);
}

.homepage-pin-preview[dir="rtl"] .pin-appearance-row svg {
  transform: scaleX(-1);
}

.homepage-pin-preview[dir="rtl"] .pin-meta dd {
  direction: ltr;
  unicode-bidi: isolate;
}

@media (min-width: 821px) {
  .hero-authority {
    align-items: stretch;
  }

  .homepage-pin-preview {
    display: flex;
    flex-direction: column;
  }

  /* The list and the window share this box, so the window's top is always the first pin's. */
  .preview-stage {
    position: relative;
    min-height: 440px;
    flex: 1 1 0;
  }

  .preview-pins {
    position: absolute;
    inset: 0;
    overflow-y: auto;
      scrollbar-width: thin;
  }

  .preview-travel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
  }

  .preview-travel[hidden] {
    display: none;
  }

  .preview-travel .preview-pins {
    position: static;
    min-height: 0;
    flex: 1 1 0;
  }

  .pin-window {
    position: absolute;
    inset: 0;
  }
}

.preview-free {
  margin: 12px 0;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.preview-language:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.preview-language label {
  color: var(--muted);
  font-size: 0.8125rem;
}

.preview-language select {
  min-width: 140px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
}

.preview-language select:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

@media (forced-colors: active) {
  .preview-pin,
  .pin-window,
  .pin-input,
  .pin-category-tile,
  .pin-shape-tile,
  .pin-size-tile,
  .pin-colour-tile,
  .pin-appearance-row,
  .hero-map {
    border-color: CanvasText;
  }

  .preview-tab.is-selected {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }

  .preview-pin-category,
  .preview-built-in,
  .pin-why,
  .pin-view-only,
  .pin-read-only {
    border: 1px solid CanvasText;
  }

  .preview-language select:focus-visible,
  .preview-pin:focus-visible,
  .pin-button:focus-visible,
  .pin-close:focus-visible,
  .pin-thumb:focus-visible,
  .pin-appearance-row:focus-visible {
    outline-color: Highlight;
  }

  .pin-button {
    border-color: ButtonText;
  }
}

.authority-grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 26vw, 340px), 1fr));
}

.authority-card {
  display: flex;
  min-height: 100%;
  padding: clamp(22px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 3px 18px rgba(11, 18, 32, 0.045);
  flex-direction: column;
}

.authority-card p {
  flex: 1;
  color: var(--muted);
}

.authority-card a {
  min-height: 44px;
  align-content: center;
  font-weight: 750;
}

.answer-first {
  max-width: 78ch;
  font-size: clamp(1.06rem, 1.8vw, 1.25rem);
}

.definition-heading {
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: normal;
}

.definition-subheading {
  margin: 0 0 18px;
  color: var(--brand-strong);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}

.definition-section .authority-card > .card-kicker {
  flex: none;
  color: var(--brand);
}

.definition-section .authority-card:nth-child(2) > .card-kicker {
  color: #b45309;
}

.definition-section .authority-card:nth-child(3) > .card-kicker {
  color: #15803d;
}

.definition-section .answer-first,
.definition-section .authority-card > p:not(.card-kicker) {
  color: var(--text);
  font-weight: 400;
}

.definition-panel {
  margin-block: 28px 44px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(47, 111, 214, 0.18);
  border-radius: 14px;
  background: var(--brand-tint);
  box-shadow: 0 3px 18px rgba(11, 18, 32, 0.045);
}

.definition-panel p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  max-width: 820px;
  gap: 14px;
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.faq-list summary {
  min-height: 44px;
  align-content: center;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.faq-list details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.semantic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.8rem, 1.5vw, 0.96rem);
}

.table-wrap {
  max-width: 1050px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
}

.semantic-table th,
.semantic-table td {
  padding: clamp(10px, 1.5vw, 16px);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.semantic-table th {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.semantic-table tr:last-child td {
  border-bottom: 0;
}

.page-intro {
  max-width: 850px;
  padding-block: clamp(42px, 7vw, 76px) clamp(28px, 4vw, 46px);
}

.page-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 5vw, 3.8rem);
}

.byline {
  color: var(--muted);
  font-size: 0.9rem;
}

.quiet-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.location-page {
  min-height: 100vh;
  background: var(--surface-soft);
}

.location-page [hidden] {
  display: none !important;
}

.location-nav {
  justify-content: flex-start;
}

.location-main {
  display: grid;
  width: min(calc(100% - 32px), 540px);
  min-height: calc(100vh - 65px);
  margin-inline: auto;
  padding-block: clamp(36px, 8vw, 80px);
  align-items: center;
}

.location-page[data-share-presentation="clean"] .location-main {
  min-height: 100vh;
}

.location-card {
  padding: clamp(24px, 6vw, 44px);
  border: 1px solid #e3e8f0;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(11, 18, 32, 0.09);
  text-align: center;
}

.location-mark {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(23, 54, 101, 0.28);
}

.location-card h1 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 6.5vw, 2.4rem);
  line-height: 1.15;
}

.location-status {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.location-loader {
  display: block;
  width: 36px;
  height: auto;
  flex: 0 0 auto;
}

/* Three to a row, every row the same height; five apps sit 3 + 2 with the 2 in the middle, six 3 + 3. */
.provider-grid {
  display: grid;
  gap: 12px;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.provider-grid > .provider-link {
  grid-column: span 2;
}

.provider-grid[data-count="5"] > .provider-link:nth-child(4) {
  grid-column: 2 / span 2;
}

@media (max-width: 340px) {
  .provider-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .provider-grid[data-count="5"] > .provider-link:nth-child(4) {
    grid-column: span 2;
  }

  .provider-grid[data-count="5"] > .provider-link:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

/* Each maps app is equal: none is highlighted. */
.provider-link {
  display: flex;
  min-height: 104px;
  padding: 16px 8px 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #dfe5ef;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.provider-link:hover {
  border-color: #b8c7e0;
  box-shadow: 0 6px 18px rgba(11, 18, 32, 0.08);
}

.provider-icon {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.provider-icon-other {
  display: grid;
  place-items: center;
  border: 1px solid #dfe5ef;
  background: var(--surface-soft);
  color: var(--ink);
}

.copy-location {
  display: flex;
  min-height: 44px;
  margin: 16px auto 0;
  padding: 10px 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe5ef;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.copy-location svg {
  color: #a95a13;
}

.copy-location:hover {
  border-color: #b8c7e0;
}

.coordinate-copy-fallback {
  display: grid;
  margin-top: 16px;
  gap: 7px;
  text-align: left;
}

.coordinate-copy-fallback label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.coordinate-copy-value {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

/* The site's own panel (.feature-split): soft fill, fine border, coloured small heading. */
.location-promotion {
  margin-top: 28px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  text-align: left;
}

.location-promotion h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  line-height: 1.15;
}

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

.location-promotion-actions {
  display: flex;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.location-promotion-actions > .button:last-child {
  margin-left: auto;
}

:root:not([data-remem-web-access="allowed"]) .location-promotion .button-web-app {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .provider-link {
    transition: none;
  }
}

.footer-shell {
  display: grid;
  padding-block: 32px;
  align-items: center;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
}

.footer-shell p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  justify-content: flex-end;
}

.footer-links a {
  min-height: 44px;
  align-content: center;
  font-size: 0.82rem;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .nav-shell {
    padding-block: 8px;
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero,
  .hero-authority,
  .feature-split,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 54px;
  }

  .hero-authority {
    padding-block: 32px 52px;
  }

  .homepage-pin-preview {
    justify-self: center;
  }

  /* One column: no map. The list runs full length and the window lies over it. */
  .hero-map {
    display: none;
  }

  .preview-stage {
    display: grid;
  }

  .preview-stage > * {
    grid-area: 1 / 1;
    min-width: 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 650px) {
  .site-header {
    position: static;
  }

  .nav-shell,
  .page-shell,
  .footer-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .nav-shell {
    padding-block: 8px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .nav-links {
    display: flex;
    width: 100%;
    padding-bottom: 4px;
    justify-content: flex-start;
    gap: 0 4px;
    overflow: visible;
  }

  .nav-links li {
    flex: 0 0 auto;
  }

  .nav-links a,
  .nav-links span[aria-current="page"] {
    justify-content: center;
    padding-inline: 8px;
    font-size: 0.8125rem;
    text-align: center;
    white-space: nowrap;
  }

  .page-shell {
    padding-block: 0 64px;
  }

  .hero-copy {
    text-align: center;
  }

  .store-presentation {
    margin-inline: auto;
    text-align: left;
  }

  .hero-authority {
    padding-block: 24px 44px;
    gap: 24px;
  }

  .hero-brand-row {
    margin-bottom: 20px;
  }

  .hero-authority h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero-authority .lede {
    margin-inline: auto;
  }


  .location-main {
    width: min(calc(100% - 28px), 700px);
    min-height: calc(100vh - 65px);
    padding-block: 24px;
  }

  .location-card {
    padding: 26px 18px;
  }

  .hero {
    gap: 28px;
  }

  .hero-panel,
  .feature-split,
  .legal-card,
  .contact-card {
    padding: 22px;
  }

  .limits,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-links {
    column-gap: 12px;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .hero-brand-row {
    gap: 16px;
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* Phones held upright get a centred header: brand over centred tab rows. */
@media (orientation: portrait) and (max-width: 650px) {
  .nav-shell {
    align-items: center;
  }

  .nav-links {
    justify-content: center;
  }
}

/* Phone browsers use the installed app; tablets may also use Remem Web. */
:root:not([data-remem-web-access="allowed"]) .hero-brand-lockup-link,
:root:not([data-remem-web-access="allowed"]) .hero-brand-row .button-web-app {
  display: none;
}

:root:not([data-remem-web-access="allowed"]) .hero-brand-row {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}

@media (max-width: 650px) {
  :root:not([data-remem-web-access="allowed"]) .hero-brand-row {
    justify-items: center;
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 650px) {
  .hero-brand-row {
    margin-bottom: 16px;
    justify-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pin-window,
  .hero-map,
  .hero-map.is-open,
  .hero-map-web-app,
  .preview-pins[inert],
  .hero-map-covered[inert] {
    animation: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .actions {
    display: none;
  }

  body {
    background: #fff;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .legal-card {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
