:root {
  --bg: #f1ead9;
  --panel: #fff9eb;
  --panel2: #f6edda;
  --ink: #202c2b;
  --muted: #69716a;
  --line: #d2c7ae;
  --accent: #d45b3e;
  --purple: #735a9b;
  --danger: #a33e35;
  --space: 24px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(#7d6c4f18 .7px, transparent .7px);
  background-size: 7px 7px;
  color: var(--ink);
}

::selection {
  background: #f3c967;
  color: #202c2b;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: #d45b3e;
}

.site-nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(22px, 6vw, 84px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  letter-spacing: -.07em;
}

.site-nav nav {
  gap: 18px;
}

.site-nav nav > a:not(.button),
.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 4px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 5px 13px 5px 12px;
  background: #f0c85b;
  color: #202c2b;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 750;
  transition: transform .16s ease, box-shadow .16s ease;
}

.button:hover {
  filter: none;
  transform: translate(2px, 2px) rotate(-1deg);
  box-shadow: 1px 1px 0 var(--ink);
}

.button-quiet {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 2px 2px 0 #cfc4ad;
}

.button-danger {
  border-color: #d3a49a;
  color: var(--danger);
  box-shadow: none;
}

.hero {
  position: relative;
  max-width: 1440px;
  min-height: 620px;
  margin: 0 auto;
  padding: 56px clamp(22px, 8vw, 116px) 84px;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(30px, 6vw, 86px);
}

.hero::before {
  content: "FIELD NOTES / VOL. 01";
  position: absolute;
  top: 36px;
  left: clamp(24px, 8vw, 116px);
  color: #77796b;
  font: 700 .64rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
  transform: rotate(-2deg);
}

.hero-copy {
  padding-top: 25px;
}

.eyebrow {
  color: #a34632;
  font: 700 .7rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}

.hero h1,
.legal h1 {
  max-width: 610px;
  margin: 18px 0 22px;
  font: 500 clamp(3rem, 6vw, 5.8rem)/.99 Georgia, "Times New Roman", serif;
  letter-spacing: -.065em;
}

.lead {
  max-width: 430px;
  color: #515b56;
  font-size: 1.08rem;
  line-height: 1.72;
}

.quiet {
  color: var(--muted);
}

.hero-copy .quiet {
  margin-top: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem;
}

.hero-copy .quiet::before {
  content: "↳ ";
  color: var(--accent);
}

.demo-wrap {
  isolation: isolate;
  height: min(57vw, 500px);
  min-height: 370px;
  padding: 18px;
  border: 1px solid #bdb39d;
  border-radius: 49% 46% 5px 8px / 9% 8% 6px 7px;
  background: #e5dbc5;
  box-shadow: 9px 10px 0 #d6c9ae, 11px 12px 0 #c7baa0;
  transform: rotate(1.4deg);
}

.demo-wrap::before {
  content: "★  somewhere, lately";
  position: absolute;
  z-index: 2;
  top: -22px;
  right: 11%;
  padding: 9px 13px 8px;
  border: 1px solid #d8b955;
  background: #f4d778;
  color: #514328;
  font: italic 700 .76rem Georgia, serif;
  transform: rotate(5deg);
}

.demo-wrap:after {
  z-index: -1;
  inset: auto 5% -28px;
  height: 20%;
  background: radial-gradient(ellipse, #536b5225, transparent 70%);
}

.demo-wrap #demo-globe {
  overflow: hidden;
  border: 1px solid #b2a68c;
  border-radius: 45% 46% 4px 6px / 8% 9% 3px 3px;
  background: #dce3d5;
}

.demo-caption {
  bottom: 20px;
  left: 30px;
  z-index: 3;
  color: #4e584d;
  font: italic .77rem Georgia, serif;
}

.features {
  max-width: 1260px;
  margin: 35px auto 0;
  padding: 38px clamp(22px, 5vw, 70px) 42px;
  border: 1px solid #d3c8b0;
  border-right: 0;
  border-left: 0;
  background: #f7f1e4a8;
}

.features article {
  padding: 12px 21px;
}

.features article > span {
  color: #a34632;
  font: 700 .7rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.features h2 {
  margin: 12px 0 9px;
  font: 600 1.3rem Georgia, "Times New Roman", serif;
}

.features p,
.steps {
  color: #59625d;
  font-size: .94rem;
  line-height: 1.7;
}

.how {
  padding: 82px 20px 76px;
}

.how h2,
.final-cta h2 {
  font: 500 clamp(2rem, 3.3vw, 3rem)/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
}

.steps {
  gap: 17px;
}

.steps p {
  padding: 10px 14px;
  border-bottom: 1px dashed #c7baa0;
  transform: rotate(-1deg);
}

.steps p:nth-child(2) {
  transform: rotate(1deg);
}

.steps b {
  width: 27px;
  height: 27px;
  border: 1px solid #b65a40;
  border-radius: 50%;
  background: transparent;
  color: #a34632;
  font: 700 .8rem Georgia, serif;
}

.final-cta {
  padding: 65px 20px 82px;
  background: #e6ddc9;
}

.final-cta h2 {
  max-width: 670px;
  margin: 0 auto 26px;
}

.site-footer {
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px dashed #c6baa2;
  color: #6d736b;
  font: .78rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.legal {
  color: #37413d;
}

.legal h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
}

/* The globe sits on the same paper and sage palette as the journal UI. */
.globe-shell {
  background: #dce3d5;
}

.globe-top {
  padding: 0 26px;
  background: linear-gradient(#dce3d5f2, #dce3d500);
}

.globe-top .brand {
  color: #202c2b;
}

.globe-map-pin-anchor {
  display: block;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: auto;
}

.globe-map-pin {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 44px;
  height: 50px;
  transform: translateX(-50%);
  cursor: pointer;
  pointer-events: auto;
}

.globe-map-pin-visual {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: 30px;
  height: 40px;
  transform: translateX(-50%);
  pointer-events: none;
}

.globe-map-pin-anchor.is-draft .globe-map-pin {
  cursor: default;
}

.globe-map-pin-anchor:focus-visible .globe-map-pin {
  outline: 2px solid #a34632;
  outline-offset: 2px;
}

#globe-canvas {
  z-index: 1;
  isolation: isolate;
  touch-action: none;
  overscroll-behavior: contain;
}

.globe-panel {
  z-index: 3;
}

.globe-map-pin svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.globe-map-pin-shape {
  fill: var(--pin-color, #8b918d);
  stroke: #fff9eb;
  stroke-width: 2;
  stroke-linejoin: round;
}

.globe-map-pin-center {
  fill: #fff9eb;
}

.globe-map-pin-photo {
  position: absolute;
  top: 3.25px;
  left: 50%;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  object-fit: cover;
  transform: translateX(-50%);
  pointer-events: none;
}

.globe-map-pin-photo[hidden] {
  display: none;
}

.globe-top p {
  color: #58635b;
  font: .75rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.globe-panel {
  padding: 89px 24px 24px;
  border-left: 1px solid #b8ac92;
  background-color: #f1ead9;
  background-image: radial-gradient(#7d6c4f16 .7px, transparent .7px);
  background-size: 7px 7px;
  color: var(--ink);
}

.globe-panel h1,
.globe-panel h2,
.readonly-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.globe-panel h1 {
  font-size: 1.65rem;
}

.globe-panel h2 {
  font-size: 1.45rem;
}

.globe-panel label,
.segmented legend,
.field-head {
  color: #394440;
}

.globe-panel label input:not([type=radio]),
.globe-panel select,
.globe-panel textarea,
.share-dialog input:not([type=checkbox]) {
  border: 1px solid #bdb39d;
  border-radius: 4px 8px 5px 4px;
  background: #fffaf0;
  color: #202c2b;
  box-shadow: inset 0 1px 2px #6c614a12;
}

.segmented label {
  border-color: #c9bea7;
  border-radius: 4px 9px 4px 6px;
  background: #faf4e7;
  color: #33403b;
}

.segmented input {
  accent-color: #bb543a;
}

.pin-row {
  min-height: 60px;
  padding: 12px 13px;
  border: 1px solid #d0c4ac;
  border-radius: 3px 11px 4px 8px;
  background: #fbf6e9;
  color: #26332f;
  box-shadow: 2px 2px 0 #d8ceb8;
}

.pin-row:nth-child(even) {
  transform: rotate(.3deg);
}

.pin-row:nth-child(odd) {
  transform: rotate(-.25deg);
}

.pin-row span,
.globe-panel small,
.pin-coords {
  color: #6d756c;
}

.text-button {
  color: #a34632;
}

.stars .star {
  color: #c58b20;
}

.legend {
  border: 1px solid #dbcda9;
  border-radius: 3px 10px 4px 8px;
  background: #f4eddbed;
  color: #3e4944;
  box-shadow: 3px 4px 0 #111a1d55;
  backdrop-filter: blur(5px);
}

.legend > span,
.legend .rating-legend span {
  color: #48534d;
}

.share-dialog {
  border-color: #bdb39d;
  border-radius: 6px 18px 7px 14px;
  background-color: #f5eedf;
  background-image: radial-gradient(#7d6c4f16 .7px, transparent .7px);
  background-size: 7px 7px;
  color: #202c2b;
  box-shadow: 8px 9px 0 #17232a55;
}

.share-dialog label[for="share-display-name"],
.share-link-area > label {
  color: #26332f;
  font-weight: 700;
}

.share-dialog::backdrop {
  background: #101a1dcc;
  backdrop-filter: blur(3px);
}

.dialog-close {
  border-color: #c9bea7;
  border-radius: 4px 12px 4px 10px;
  background: #fff8e9;
  color: #293631;
}

.share-link-area,
.share-dialog .share-toggle {
  border-color: #d0c4ac;
  border-radius: 4px 11px 4px 8px;
  background: #faf4e7;
  color: #34403b;
}

.share-warning {
  border-color: #d3c5a8;
  color: #80532e;
}

.share-toggle input {
  accent-color: #bb543a;
}

.share-dialog .open-share-link {
  color: #a34632;
}

.account-dialog {
  width: min(560px, calc(100vw - 28px));
}

.account-summary {
  display: grid;
  gap: 8px;
  margin: 8px 0 22px;
}

.account-summary > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #d0c4ac;
  border-radius: 4px 10px;
  background: #faf4e7;
}

.account-summary dt {
  color: #69716a;
  font-size: .82rem;
}

.account-summary dd {
  min-width: 0;
  margin: 0;
  color: #26332f;
  font-size: .86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.account-danger-zone {
  padding: 15px;
  border: 1px solid #d8aaa0;
  border-radius: 5px 13px;
  background: #f8ebe5;
}

.account-danger-zone h3 {
  margin: 0 0 7px;
  color: #863c32;
  font-size: 1rem;
}

.account-danger-zone > p {
  margin: 0 0 10px;
  color: #694640;
  font-size: .83rem;
  line-height: 1.5;
}

.account-danger-zone label {
  color: #513b36;
}

.account-danger-zone label strong {
  white-space: nowrap;
}

.account-danger-zone .button {
  width: 100%;
  margin-top: 2px;
}

.account-danger-zone #account-delete-status {
  margin: 9px 0 0;
  color: #694640;
}

.toast {
  border-color: #d1c4a9;
  border-radius: 4px 12px;
  background: #fff7e8;
  color: #26332f;
  box-shadow: 4px 5px 0 #101a1d55;
}

@media (max-width: 767px) {
  .site-nav {
    padding: 16px 19px;
  }

  .site-nav nav {
    gap: 10px;
  }

  .site-nav .button {
    min-height: 40px;
    padding: 0 12px;
    font-size: .77rem;
  }

  .hero {
    gap: 27px;
    padding: 55px 23px 54px;
  }

  .hero::before {
    top: 22px;
    left: 24px;
    font-size: .57rem;
  }

  .hero-copy {
    padding-top: 7px;
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(3.05rem, 13vw, 4rem);
  }

  .lead {
    font-size: 1rem;
  }

  .demo-wrap {
    width: calc(100% - 12px);
    height: 335px;
    min-height: 300px;
    margin: 5px 4px 12px;
  }

  .features {
    margin-top: 17px;
    padding: 26px 18px;
  }

  .features article {
    padding: 11px 8px;
  }

  .how {
    padding: 58px 20px;
  }

  .steps {
    gap: 0;
  }

  .steps p {
    padding: 7px 8px;
  }

  .site-footer {
    gap: 15px;
  }

  .globe-top {
    padding: 0 13px;
  }

  .globe-top .brand {
    font-size: 1rem;
  }

  .globe-top p {
    font-size: .65rem;
  }

  .globe-panel {
    border-top: 1px solid #b8ac92;
    border-radius: 18px 18px 0 0;
    background-color: #f1ead9f5;
  }

  .globe-panel h1 {
    font-size: 1.35rem;
  }

  .legend {
    border-radius: 3px 8px;
  }

  .preview-banner {
    border-color: #cfaa50;
    border-radius: 4px 10px;
    background: #f6df9e;
    color: #554520;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Small-screen fit, clearer map encoding, and a hideable owner drawer. */
html {
  overflow-x: clip;
}

body,
main {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.site-nav,
.hero,
.features,
.how,
.final-cta,
.site-footer {
  width: 100%;
  min-width: 0;
}

.hero {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.hero-copy,
.demo-wrap,
.features article {
  min-width: 0;
}

.demo-wrap #demo-globe,
.demo-wrap canvas,
.demo-wrap svg {
  max-width: 100%;
}

.globe-panel {
  transition: transform .24s ease, box-shadow .24s ease;
}

.globe-shell.panel-collapsed .globe-panel {
  transform: translateX(105%);
  pointer-events: none;
}

.globe-shell.panel-collapsed #globe-canvas {
  right: 0;
}

.globe-shell.panel-collapsed .legend {
  opacity: 1;
}

.globe-top-actions #pin-panel-toggle {
  display: inline-flex;
}

.globe-top-actions #pin-panel-toggle span {
  white-space: nowrap;
}

.pin-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}

.pin-row strong,
.pin-row span {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-row-dot {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 11px;
  height: 11px;
  border: 1px solid #26332f66;
  border-radius: 50%;
  background: var(--pin-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pin-color), transparent 82%);
}

.pin-row:hover {
  border-color: #b8a98a;
  background: #fff9eb;
}

.pin-row:focus-visible {
  outline-color: #a34632;
}

.country-pin-group + .country-pin-group {
  margin-top: 8px;
}

.country-pin-toggle::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  content: "›";
  font-size: 1.15rem;
  transition: transform .18s ease;
}

.country-pin-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.country-pin-list {
  margin: -2px 0 10px 16px;
  padding-left: 10px;
  border-left: 2px solid #d2c7ae;
}

.legend {
  gap: 7px;
  min-width: 176px;
  color: #37413d;
  font-size: .7rem;
}

.legend > strong {
  margin-bottom: 2px;
  font: 700 .68rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.globe-panel .legend {
  position: static;
  z-index: auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin: -8px 0 12px;
  padding: 7px 9px;
  box-shadow: 1px 2px 0 #111a1d33;
  font-size: .62rem;
}

.globe-panel .legend > strong {
  margin: 0;
  font-size: .59rem;
}

.globe-panel .legend > span {
  gap: 5px;
}

.globe-panel .rating-legend {
  gap: 3px;
  margin: 0;
}

.globe-panel .rating-legend .rating-chip {
  width: 17px;
  height: 17px;
  font-size: .58rem;
}

.globe-panel .rating-caption {
  margin-left: 2px;
  font-size: .58rem;
}

.swatch {
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  border: 1px solid #24312e4d;
  border-radius: 50%;
}

.wishlist {
  background: #a77bd1;
}

.unrated {
  background: #8b918d;
}

.rating-legend {
  gap: 4px;
  margin-top: 3px;
}

.rating-legend .rating-chip {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #26332f44;
  border-radius: 50%;
  background: var(--swatch);
  color: #182320;
  font: 700 .65rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.rating-caption {
  margin-left: 4px;
  color: #48534d;
  font-size: .65rem;
}

.country-tooltip {
  border: 1px solid #d5c7a8;
  border-radius: 3px 9px;
  background: #f7f0df;
  color: #27332f;
  box-shadow: 2px 3px 0 #18232044;
}

.country-tooltip span {
  color: #5a655e;
}

.globe-shell.panel-collapsed .globe-panel {
  box-shadow: none;
}

.pin-panel-handle {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 380px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 54px;
  padding: 0;
  transform: translate(50%, -50%);
  border: 1px solid #b8ac92;
  border-radius: 8px 0 0 8px;
  background: #f1ead9;
  color: #26332f;
  box-shadow: -2px 2px 0 #26332f33;
  font-size: 1.25rem;
  cursor: pointer;
}

.shared-globe-stats {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 16px;
  width: max-content;
  max-width: calc(100vw - 24px);
  color: #202c2b;
  text-shadow: 0 1px 2px #f1ead9, 0 0 5px #f1ead9b3;
}

.shared-globe-stats[hidden] {
  display: none;
}

.pin-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.random-pin-button {
  min-height: 46px;
  padding-inline: 16px;
  gap: 9px;
}

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

.random-pin-floating {
  position: absolute;
  z-index: 4;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
}

.shared-globe-stats dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.shared-globe-stats dl > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.shared-globe-stats dt {
  color: #59635d;
  font-size: .68rem;
  line-height: 1.25;
}

.shared-globe-stats dd {
  margin: 0;
  color: #202c2b;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pin-panel-handle:hover {
  background: #fff9eb;
}

.pin-panel-handle:focus-visible {
  outline: 2px solid #a34632;
  outline-offset: 3px;
}

.handle-arrow-desktop,
.handle-arrow-mobile {
  display: inline-grid;
}

.handle-arrow-mobile {
  display: none;
}

.panel-collapsed .pin-panel-handle {
  right: 0;
  transform: translateY(-50%);
}

.panel-collapsed .handle-arrow-desktop {
  transform: rotate(180deg);
}

.pin-location {
  margin: 14px 0;
  padding: 12px;
  border: 1px dashed #c7baa0;
  border-radius: 4px 10px;
  background: #faf4e7;
}

.pin-links-section {
  margin: 12px 0 16px;
  padding: 10px 12px;
  border: 1px solid #d2c7ae;
  border-radius: 12px;
  background: #fff9eb;
  color: #202c2b;
}

.pin-links-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pin-links-heading h3,
.pin-detail-links-section h3 {
  margin: 0;
  color: #202c2b;
  font-size: .94rem;
}

.pin-links-heading p {
  margin: 2px 0 0;
  color: #5f6a63;
  font-size: .72rem;
}

.pin-links-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pin-links-fields label {
  display: block;
  min-width: 0;
  margin: 0;
  color: #37443d;
  font-size: .72rem;
  font-weight: 650;
}

.pin-links-fields input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 33px;
  margin-top: 3px;
  padding: 5px 8px;
  border: 1px solid #cbbda3;
  border-radius: 8px;
  background: #f6edda;
  color: #202c2b;
  font-size: .73rem;
}

.pin-links-fields:disabled input {
  border-color: #c8bea9;
  background: #eee8dc;
  color: #4a514c;
  cursor: not-allowed;
}

.pin-links-fields:disabled input::placeholder { color: #69716a; opacity: 1; }

.pin-links-heading > .button {
  min-height: 32px;
  flex: none;
  padding: 0 10px;
  border-color: #ad432c;
  border-radius: 999px;
  background: #ad432c;
  color: #fff9eb;
  font-size: .68rem;
  line-height: 1.1;
}

.pin-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.pin-detail-toolbar .button {
  min-height: 38px;
  padding: 0 13px;
  font-size: .82rem;
}

.pin-like-control {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #52605a;
}

.pin-like-control[hidden] {
  display: none;
}

.pin-like-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #52605a;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.pin-like-button:hover {
  background: #d53e4712;
  color: #d53e47;
}

.pin-like-button:focus-visible {
  outline: 2px solid #d53e47;
  outline-offset: 2px;
}

.pin-like-button[aria-pressed="true"] {
  color: #d53e47;
}

.pin-like-button[aria-pressed="true"]:hover {
  transform: scale(1.08);
}

.pin-like-button[aria-pressed="true"] + .pin-like-count {
  color: #d53e47;
}

.pin-like-button:disabled {
  opacity: .65;
  cursor: wait;
}

.pin-like-count {
  min-width: 1ch;
  color: #52605a;
  font-size: .9rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.like-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pin-location > label {
  display: block;
  margin-top: 12px;
}

.pin-location-preview-label {
  display: block;
  margin-top: 14px;
}

.globe-settings-wrap {
  position: relative;
}

#settings-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.settings-menu-icon {
  font-size: .9em;
}

.globe-settings-menu[hidden] {
  display: none;
}

.globe-settings-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 8px;
  min-width: 180px;
  padding: 10px;
  border: 1px solid #b8ac92;
  border-radius: 8px 14px;
  background-color: #f1ead9;
  background-image: radial-gradient(#7d6c4f16 .7px, transparent .7px);
  background-size: 7px 7px;
  color: var(--ink);
  box-shadow: 0 10px 28px #0003;
}

.globe-settings-menu button,
.globe-settings-menu form {
  width: 100%;
  margin: 0;
}

.globe-settings-menu form {
  display: block;
}

.globe-settings-menu button {
  justify-content: flex-start;
}

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

.pin-location-label {
  color: #626c64;
  font: 700 .66rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pin-location .pin-coords {
  margin: 8px 0;
  padding: 8px 0 0;
  border-top: 1px solid #ddd2bc;
  color: #27332f;
  font: 600 .84rem ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.pin-location-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.pin-location-actions .text-button {
  min-height: 42px;
  padding: 0 4px;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #a34632;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.readonly-card #details-location {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.readonly-card .details-gallery:empty {
  display: none;
}

.readonly-card .details-gallery:not(:empty) {
  margin: 12px 0 18px;
}

.details-notes-section {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-left: 3px solid #c8a44e;
  border-radius: 3px 9px;
  background: #faf4e7;
}

.details-notes-section h3 {
  margin: 0 0 6px;
}

.details-notes-section .readonly-notes {
  margin: 0;
}

.readonly-card dl {
  margin: 16px 0 8px;
  padding-top: 8px;
  border-top: 1px solid #d2c7ae;
}

.readonly-card dl > div {
  padding: 7px 0;
  border-bottom: 1px dashed #d2c7ae;
}

.readonly-notes {
  color: #303b35;
}

.readonly-card .maps-link {
  margin-top: 10px;
}

.pin-detail-links-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d2c7ae;
}

.pin-detail-links-section h3 { margin-bottom: 8px; }

.pin-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pin-detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  padding: 5px 11px;
  border: 1px solid #d2c7ae;
  border-radius: 999px;
  background: #faf4e7;
  color: #8e3929;
  font-size: .76rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.pin-detail-link:hover { background: #f4e7cf; }

@media (max-width: 420px) {
  .pin-links-heading { align-items: flex-start; }
  .pin-links-heading > .button { max-width: 145px; white-space: normal; }
  .pin-links-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hero {
    padding-inline: clamp(22px, 6vw, 58px);
  }

  .hero::before {
    left: clamp(24px, 6vw, 58px);
  }

  .features {
    padding-inline: clamp(18px, 4vw, 44px);
  }

  .pin-panel-handle {
    right: 340px;
  }
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: clip;
  }

  .hero {
    width: 100%;
    padding-inline: 22px;
  }

  .hero::before {
    left: 23px;
  }

  .hero-copy,
  .demo-wrap {
    width: 100%;
    max-width: 100%;
  }

  .demo-wrap {
    margin: 5px 0 12px;
    transform: none;
  }

  .demo-wrap #demo-globe {
    width: 100%;
  }

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

  .globe-shell {
    min-height: 100dvh;
  }

  .globe-top {
    height: 58px;
    align-items: flex-start;
    padding: 10px 12px 0;
  }

  .globe-top:has(.visitor-title) {
    justify-content: space-between;
    gap: 4px;
  }

  .globe-top .visitor-title {
    position: absolute;
    top: 82px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 28px);
    margin: 0;
    font-size: .78rem;
  }

  .globe-top-actions {
    gap: 6px;
  }

  .globe-top-actions .button,
  .random-pin-button {
    min-height: 36px;
    padding: 0 8px;
    font-size: .7rem;
  }

  .globe-top-actions #pin-panel-toggle {
    min-width: 40px;
    justify-content: center;
  }

  .globe-top-actions #pin-panel-toggle span {
    display: none;
  }

  .globe-top-actions #settings-menu-toggle .settings-menu-label {
    display: none;
  }

  .globe-top-actions #settings-menu-toggle {
    min-width: 40px;
    padding-inline: 8px;
  }

  .globe-top-actions .share-indicator {
    display: none;
  }

  .globe-top-actions form button {
    min-height: 36px;
    padding: 0 8px;
    font-size: .68rem;
  }

  #globe-canvas {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .globe-panel {
    z-index: 5;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 52dvh;
    padding: 18px 17px max(20px, env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior-y: contain;
  }

  .globe-shell.panel-collapsed .globe-panel {
    transform: translateY(105%);
  }

  .globe-shell.panel-collapsed #globe-canvas {
    inset: 0;
  }

  .pin-panel-handle {
    z-index: 6;
    top: auto;
    right: auto;
    left: 50%;
    bottom: var(--pin-panel-height, 52dvh);
    width: 54px;
    height: 34px;
    transform: translate(-50%, 50%);
    border-radius: 8px 8px 0 0;
    box-shadow: 2px -2px 0 #26332f33;
  }

  .shared-globe-stats {
    left: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .handle-arrow-desktop {
    display: none;
  }

  .handle-arrow-mobile {
    display: inline-grid;
  }

  .panel-collapsed .pin-panel-handle {
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    border-radius: 8px;
  }

  .panel-collapsed .handle-arrow-mobile {
    transform: rotate(180deg);
  }

  .globe-panel label input:not([type=radio]),
  .globe-panel select,
  .globe-panel textarea {
    font-size: 16px;
  }

  .globe-panel .button:not(.random-pin-button),
  .share-dialog .button {
    min-height: 46px;
  }

  .legend {
    left: 12px;
    bottom: 14px;
    min-width: auto;
    max-width: calc(100vw - 24px);
    padding: 10px 12px;
  }

  .legend .rating-legend {
    flex-wrap: wrap;
  }

  .rating-caption {
    flex-basis: 100%;
    margin-left: 0;
  }

  .pin-row {
    min-height: 58px;
  }

  .preview-banner {
    top: 108px;
  }
}

@media (max-width: 380px) {
  .site-nav {
    align-items: flex-start;
  }

  .site-nav nav {
    gap: 6px;
  }

  .site-nav nav .button {
    max-width: 52vw;
    padding: 0 9px;
    font-size: .7rem;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .demo-wrap {
    height: 295px;
    min-height: 275px;
    padding: 12px;
  }

  .globe-top .brand {
    font-size: .91rem;
  }

  .globe-top-actions {
    gap: 4px;
  }

  .globe-top-actions .button,
  .globe-top-actions form button,
  .random-pin-button {
    padding-inline: 6px;
    font-size: .64rem;
  }
}

.location-search-wrap {
  position: relative;
  z-index: 7;
  flex: 0 1 310px;
  width: min(310px, 32vw);
  min-width: 0;
}

.location-search-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  cursor: text;
}

.location-search-bar:focus-within {
  outline: 2px solid #a34632;
  outline-offset: 2px;
}

.location-search-icon {
  flex: none;
  color: #4f5c53;
  font-size: .82em;
}

.location-search-bar input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #202c2b;
  font-size: inherit;
  font-weight: 650;
}

.location-search-bar input::placeholder {
  color: #59635d;
  opacity: 1;
}

.location-search-bar input::-webkit-search-cancel-button {
  display: none;
}

.location-search-clear {
  display: grid;
  flex: none;
  width: 24px;
  min-height: 24px !important;
  place-items: center;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: #59635d;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.location-search-clear[hidden] {
  display: none;
}

.location-search-dropdown[hidden] {
  display: none;
}

.location-search-dropdown {
  position: absolute;
  z-index: 12;
  top: calc(100% + 9px);
  right: 0;
  width: min(380px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid #d0c4ac;
  border-radius: 6px 14px;
  background: #fff9eb;
  color: #26332f;
  box-shadow: 0 12px 30px #0004;
}

#location-search-status {
  margin: 3px 7px 8px;
  color: #687168;
  font-size: .76rem;
  line-height: 1.4;
}

#location-search-status:empty {
  display: none;
}

.location-results {
  display: grid;
  gap: 3px;
  max-height: min(46vh, 340px);
  overflow: auto;
}

.location-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid #e4dbc9;
  border-radius: 4px;
  background: transparent;
  color: #26332f;
  text-align: left;
  cursor: pointer;
}

.location-result:hover {
  border-color: #e4dbc9;
  background: #f6edda;
  transform: none;
}

.location-result-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.location-result-name,
.location-result-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-result-name {
  font: 650 .96rem Georgia, "Times New Roman", serif;
}

.location-result-detail {
  color: #687168;
  font-size: .75rem;
}

.location-result-action {
  flex: none;
  color: #a34632;
  font-size: .72rem;
  font-weight: 700;
}

.location-attribution {
  margin: 8px 5px 2px;
  padding-top: 8px;
  border-top: 1px dashed #d0c4ac;
  color: #687168;
  font-size: .62rem;
  line-height: 1.5;
}

.location-attribution a {
  color: #93462f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 767px) {
  .globe-top {
    gap: 8px;
    z-index: 4;
  }

  .profile-menu-wrap {
    flex: 0 1 auto;
    max-width: 43vw;
    min-width: 0;
  }

  .profile-menu-toggle {
    max-width: 100%;
    min-width: 0;
  }

  .globe-top-actions {
    flex: 1 1 0;
    justify-content: flex-end;
    min-width: 0;
  }

  .globe-top-actions #share-open {
    position: fixed;
    z-index: 2;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 40px;
    box-shadow: 2px 2px 0 #26332f55;
  }

  .globe-top-actions .location-search-bar {
    display: flex;
  }

  .location-search-wrap {
    flex: 1 1 130px;
    width: auto;
    max-width: 220px;
  }

  .location-search-bar {
    min-height: 36px;
    gap: 7px;
    padding-inline: 8px;
  }

  .location-search-dropdown {
    position: fixed;
    top: 68px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .location-results {
    max-height: 38dvh;
  }

  .location-result {
    min-height: 56px;
    padding: 10px;
  }
}

@media (max-width: 420px) {
  .location-search-wrap {
    flex-basis: 102px;
    min-width: 88px;
  }

  .location-search-bar {
    gap: 6px;
    padding-inline: 6px;
  }

  .location-search-bar input {
    font-size: .66rem;
  }
}
