:root {
  --wine: #591d2d;
  --wine-dark: #3d1320;
  --ivory: #fbf9f4;
  --paper: #fffdf9;
  --ink: #282521;
  --muted: #746d64;
  --gold: #9a7a44;
  --line: #ded8cd;
  --serif: "Cormorant Garamond", Georgia, serif;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--ivory);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  padding: 11px 17px;
  transition:
    background 0.18s,
    color 0.18s;
  border-radius: 2px;
}
button:hover {
  background: #eee8dd;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--wine);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fffdf9;
  border-radius: 2px;
  padding: 11px 12px;
  line-height: 1.4;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #bda575;
  border-color: var(--gold);
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--wine);
}
input[type="range"] {
  accent-color: var(--wine);
  padding: 0;
  cursor: pointer;
}
input[type="number"] {
  font-variant-numeric: tabular-nums;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
label > input,
label > select,
label > textarea {
  margin-top: 7px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 18px 0;
}
legend {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
}
h1 {
  font-size: 58px;
  line-height: 0.98;
  letter-spacing: -1.4px;
}
h2 {
  font-size: 38px;
  line-height: 1.08;
  margin-bottom: 12px;
}
h3 {
  font-size: 29px;
  margin-bottom: 10px;
}
h4 {
  font-size: 23px;
  margin-bottom: 8px;
}
p {
  line-height: 1.65;
}
em {
  font-weight: 400;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2.2px;
  font-weight: 600;
  color: var(--gold);
}
.primary {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff9ee;
}
.primary:hover {
  background: var(--wine-dark);
}
.secondary {
  background: var(--paper);
}
.text-button {
  padding: 0;
  border: 0;
  text-underline-offset: 4px;
  background: none !important;
}
.text-button:hover {
  text-decoration: underline;
}
.danger {
  color: #922c35;
  border-color: #cc979c;
}
.full {
  width: 100%;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.hidden,
[hidden] {
  display: none !important;
}
.masthead {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 40px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-size: 47px;
  text-decoration: none;
  letter-spacing: -1px;
  line-height: 0.9;
  color: var(--wine);
}
.wordmark span {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 8px;
  letter-spacing: 2.8px;
  margin-top: 12px;
  color: var(--muted);
}
.masthead nav {
  display: flex;
  gap: 30px;
}
.nav-link {
  font-size: 14px;
  border: 0;
  padding: 14px 0;
  color: var(--muted);
  position: relative;
}
.nav-link:hover {
  background: none;
  color: var(--wine);
}
.nav-link.active {
  color: var(--wine);
}
.nav-link.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: var(--gold);
}
#account-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
#account-banner {
  padding: 12px 30px;
  text-align: center;
  background: #eee3cd;
  border-bottom: 1px solid #d9c8a4;
  font-size: 14px;
}
#account-banner button {
  margin-left: 12px;
  text-decoration: underline;
}
#atlas {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  height: calc(100dvh - 106px);
  min-height: 540px;
}
.journal-panel {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cfc4b2 transparent;
  display: flex;
  flex-direction: column;
}
.journal-intro {
  padding: 34px 32px 0;
}
.journal-intro h1 {
  margin: 15px 0 16px;
}
.journal-intro > p {
  font-size: 14px;
  color: var(--muted);
  max-width: 390px;
  margin-bottom: 20px;
}
.collection-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.collection-actions button {
  font-size: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 21px 0 24px;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.stats strong {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  display: block;
  line-height: 1;
}
.stats span {
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--muted);
  display: block;
  margin-top: 7px;
}
.stats > div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.search-tools {
  padding: 0 32px 20px;
}
.search-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.search-wrap span {
  font-size: 29px;
  color: var(--gold);
}
.search-wrap input {
  border: 0;
  background: none;
  margin: 0;
  padding: 13px 8px;
  font-size: 14px;
}
.filters {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.filters select {
  flex: 1;
  min-width: 110px;
  padding: 8px;
  font-size: 12px;
  background: none;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 17px 32px 8px;
}
#restaurant-list {
  padding: 0 20px;
}
.restaurant-card {
  padding: 22px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.restaurant-card:hover,
.restaurant-card.selected {
  background: #f0ebe2;
}
.restaurant-card:focus-visible {
  outline: 2px solid var(--gold);
}
.restaurant-card .card-top {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
.restaurant-card h3 {
  font-size: 29px;
  line-height: 1.12;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.card-place {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.score-seal {
  min-width: 53px;
  height: 59px;
  border: 1px solid #c7b38e;
  outline: 3px double #e2d7c4;
  outline-offset: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 29px;
  color: var(--wine);
  margin: 5px 4px 0 0;
  flex-shrink: 0;
}
.score-seal small {
  font:
    9px "DM Sans",
    sans-serif;
  letter-spacing: 1px;
}
.card-tags {
  font-size: 11px;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 15px 0 13px;
  line-height: 1.7;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.card-bottom strong {
  font-weight: 500;
  color: var(--ink);
}
.card-bottom button {
  font-size: 13px;
  color: var(--wine);
  padding: 3px 0;
  border: 0;
  background: none;
}
.journal-foot {
  padding: 28px 32px 24px;
  margin-top: auto;
}
.journal-foot button {
  font-family: var(--serif);
  font-size: 21px;
}
.journal-foot span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
  letter-spacing: 0.5px;
}
.empty {
  padding: 40px 20px;
  text-align: center;
}
.empty .ornament {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 38px;
  margin-bottom: 10px;
}
.empty h3 {
  font-size: 31px;
}
.empty p {
  font-size: 14px;
  color: var(--muted);
}
.map-panel {
  position: relative;
  background: #e6e4dc;
  border-left: 1px solid var(--line);
}
#map {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.leaflet-tile-pane {
  filter: saturate(0.53) contrast(0.95);
}
.map-stamp {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  padding: 14px 19px;
  box-shadow: 0 3px 15px #362c2412;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 2px;
}
.stamp-monogram {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--wine);
  padding-right: 15px;
  border-right: 1px solid var(--line);
}
.map-stamp small {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0;
  margin-top: 5px;
  color: var(--muted);
}
.map-fit {
  position: absolute;
  top: 28px;
  right: 24px;
  z-index: 400;
  background: var(--paper);
  font-size: 13px;
}
.map-instruction {
  position: absolute;
  bottom: 29px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  width: max-content;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px #362c2412;
  padding: 12px 22px;
  font-family: var(--serif);
  font-size: 18px;
  text-align: center;
  z-index: 400;
}
.rating-marker {
  display: grid;
  place-items: center;
  color: #fff7e7;
  background: var(--wine);
  border: 2px solid #fcf6e9;
  box-shadow: 0 2px 10px #341b2955;
  border-radius: 50%;
  font: 600 18px var(--serif);
}
.leaflet-control-zoom {
  margin-top: 98px !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
}
.leaflet-control-zoom a {
  background: var(--paper) !important;
  color: var(--wine) !important;
}
.leaflet-popup-content {
  font:
    14px/1.5 "DM Sans",
    sans-serif;
}
.leaflet-popup-content strong {
  font: 600 23px var(--serif);
}
.leaflet-popup-content button {
  font-size: 13px;
  display: block;
  margin-top: 8px;
}
.leaflet-popup-content-wrapper {
  border-radius: 2px;
  background: var(--paper);
}
#collections-page {
  max-width: 1280px;
  margin: auto;
  padding: 60px 40px;
}
.page-heading {
  margin-bottom: 40px;
}
.page-heading h1 {
  margin: 16px 0 20px;
}
.page-heading p {
  color: var(--muted);
}
#collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.collection-card {
  border: 1px solid var(--line);
  padding: 34px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
}
.collection-card p {
  font-size: 14px;
  color: var(--muted);
}
.collection-card h2 {
  font-size: 35px;
  margin: 22px 0 14px;
}
.collection-card button {
  margin-top: auto;
}
.collection-card .eyebrow {
  font-size: 10px;
}
dialog {
  border: 1px solid #c6b794;
  border-radius: 3px;
  padding: 32px;
  background: var(--paper);
  color: var(--ink);
  width: 540px;
  max-width: calc(100% - 24px);
  max-height: 92dvh;
  box-shadow: 0 20px 100px #24191645;
}
dialog::backdrop {
  background: #271c2466;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.dialog-top h2 {
  margin: 8px 0 0;
}
.close-button {
  border: 0;
  padding: 0 5px;
  font-size: 30px;
  line-height: 1;
  color: var(--muted);
  background: none;
}
.edit-dialog {
  width: 850px;
}
.detail-dialog {
  width: 860px;
  padding: 0;
}
.detail-header {
  padding: 34px 36px 28px;
  background: #f4efe5;
  border-bottom: 1px solid var(--line);
}
.detail-header h2 {
  font-size: 47px;
  margin-top: 14px;
}
.detail-header .dialog-top {
  margin-bottom: 0;
}
.detail-header .score-seal {
  min-width: 63px;
  height: 70px;
  font-size: 36px;
}
.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.detail-address {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.detail-actions button {
  font-size: 14px;
}
.detail-content {
  padding: 28px 36px;
}
.aspect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 26px;
}
.aspect-grid strong {
  display: block;
  font: 32px var(--serif);
  color: var(--wine);
}
.aspect-grid span {
  font-size: 12px;
  color: var(--muted);
}
.visit-card {
  border: 1px solid var(--line);
  margin: 20px 0;
}
.visit-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: #faf6ef;
  cursor: pointer;
  list-style: none;
}
.visit-summary h3 {
  font-size: 27px;
  margin: 0 0 4px;
}
.visit-summary p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.visit-summary .visit-score {
  font: 32px var(--serif);
  color: var(--wine);
  white-space: nowrap;
}
.visit-summary .visit-score small {
  font:
    11px "DM Sans",
    sans-serif;
}
.visit-body {
  padding: 20px 22px;
}
.visit-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.visit-metrics strong {
  font-weight: 600;
  color: var(--ink);
}
.diner-detail {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 18px;
}
.diner-detail h4 {
  font-size: 22px;
}
.meal-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 0;
  font-size: 14px;
}
.meal-detail small {
  font-size: 11px;
  color: var(--gold);
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.meal-detail p {
  font-size: 13px;
  color: var(--muted);
  white-space: pre-wrap;
  margin: 5px 0 0;
}
.meal-rating {
  font: 25px var(--serif);
  color: var(--wine);
}
.meal-rating small {
  color: var(--muted);
  font:
    11px "DM Sans",
    sans-serif;
}
.private-note {
  font-size: 14px;
  color: var(--muted);
  white-space: pre-wrap;
  margin-top: 18px;
}
.legacy-note {
  background: #eee5d3;
  padding: 10px 13px;
  font-size: 12px;
  line-height: 1.5;
}
.visit-edit-actions {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-size: 13px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 30px 0 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.section-heading span {
  font: italic 22px var(--serif);
  color: var(--gold);
}
.section-heading h3 {
  margin: 0;
  font-size: 29px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.field-help {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
  line-height: 1.5;
}
.address-search {
  display: flex;
  gap: 8px;
  margin-top: 7px;
}
.address-search input {
  margin: 0;
}
.location-results {
  margin: 8px 0;
  font-size: 13px;
  color: var(--muted);
}
.location-results button {
  width: 100%;
  text-align: left;
  margin: 4px 0;
  font-size: 13px;
}
.tag-picker {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.tag-picker summary {
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.tag-picker summary span {
  font-size: 12px;
  color: var(--muted);
}
.tag-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tag-choice {
  position: relative;
  font-size: 12px;
  font-weight: 400;
}
.tag-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.tag-choice span {
  border: 1px solid var(--line);
  padding: 6px 10px;
  display: block;
  cursor: pointer;
}
.tag-choice input:checked + span {
  background: var(--wine);
  color: #fff9ee;
  border-color: var(--wine);
}
.tag-choice input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.custom-tag {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.custom-tag input {
  font-size: 13px;
}
.custom-tag button {
  font-size: 13px;
}
.rating-field {
  background: #f4efe7;
  padding: 15px 18px;
}
.rating-field label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.rating-field output {
  font: 26px var(--serif);
  color: var(--wine);
  line-height: 1;
}
.rating-field input {
  margin-top: 14px;
}
.bill-summary {
  font-size: 14px;
  background: #f3ece0;
  padding: 14px 18px;
  margin: 12px 0 18px;
}
.bill-summary strong {
  color: var(--wine);
}
.diner-editor {
  border: 1px solid var(--line);
  margin: 18px 0;
  background: #fff;
}
.diner-editor-head {
  padding: 16px 18px;
  display: flex;
  gap: 15px;
  align-items: center;
  background: #f3efe6;
  border-bottom: 1px solid var(--line);
}
.diner-number {
  width: 34px;
  height: 34px;
  border: 1px solid #cbbb9e;
  display: grid;
  place-items: center;
  font: 24px var(--serif);
  color: var(--gold);
  flex-shrink: 0;
}
.diner-editor-head label {
  flex: 1;
}
.diner-editor-head input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #cfc4b4;
  margin: 0;
  padding: 7px;
  font-family: var(--serif);
  font-size: 24px;
}
.diner-editor-head button {
  font-size: 12px;
  border: 0;
  padding: 6px;
}
.diner-editor-body {
  padding: 18px;
}
.meal-editor {
  border-left: 2px solid #cfba95;
  padding: 0 0 0 14px;
  margin: 20px 0 24px;
}
.meal-editor-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gold);
  align-items: center;
  margin-bottom: 10px;
}
.meal-editor-top button {
  font-size: 12px;
  letter-spacing: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
}
.meal-editor .form-grid {
  margin: 12px 0;
  gap: 12px;
}
.meal-editor .rating-field {
  background: #f9f6f0;
}
.meal-editor textarea {
  font-size: 14px;
}
.diner-editor-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}
.empty-dishes {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0;
}
.score-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  background: var(--wine);
  color: #fff6e5;
  margin: 25px 0;
}
.score-preview strong {
  font: 43px var(--serif);
}
.score-preview p {
  font-size: 12px;
  margin: 5px 0 0;
  opacity: 0.8;
}
.score-preview span {
  font-family: var(--serif);
  font-size: 26px;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 20px 0 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.form-error {
  font-size: 14px;
  color: #a42736;
  line-height: 1.5;
  margin: 15px 0;
}
.auth-form label {
  margin: 17px 0;
}
.auth-form .primary {
  width: 100%;
  margin-top: 8px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  margin-top: 20px;
}
.email-preview {
  background: #eee6d6;
  padding: 18px;
  font-size: 14px;
  margin-top: 20px;
  line-height: 1.5;
}
.email-preview a {
  display: block;
  font-weight: 600;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.visibility-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 15px;
  margin: 10px 0;
}
.visibility-option input {
  width: 18px;
  margin-top: 4px;
  accent-color: var(--wine);
}
.visibility-option span {
  font-size: 14px;
  display: block;
}
.visibility-option small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.share-details {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  font-size: 14px;
}
.share-details input {
  flex-shrink: 0;
}
.share-url {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}
.share-url input {
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  background: var(--wine);
  color: #fff8ed;
  box-shadow: 0 5px 25px #30132430;
  z-index: 5000;
  max-width: 90vw;
  width: max-content;
  font-size: 14px;
}
.method-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  margin: 25px 0;
}
.method-row strong {
  font: 32px var(--serif);
  color: var(--gold);
}
.method-row p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.method-row h3 {
  font-size: 25px;
  margin-bottom: 5px;
}
.account-actions {
  display: grid;
  gap: 14px;
  margin-top: 25px;
}
.account-actions a {
  border: 1px solid var(--line);
  padding: 12px 17px;
  text-decoration: none;
  text-align: center;
}
.loading {
  padding: 40px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 25px;
}
@media (min-width: 1600px) {
  #atlas {
    grid-template-columns: 520px minmax(0, 1fr);
  }
  .journal-intro {
    padding: 40px 40px 0;
  }
  .search-tools {
    padding-left: 40px;
    padding-right: 40px;
  }
  .list-heading {
    padding-left: 40px;
    padding-right: 40px;
  }
  #restaurant-list {
    padding: 0 28px;
  }
}
@media (max-width: 1100px) {
  .masthead {
    padding: 20px 24px;
    gap: 20px;
  }
  .masthead nav {
    gap: 18px;
  }
  .wordmark {
    font-size: 39px;
  }
  .wordmark span {
    font-size: 7px;
    letter-spacing: 2px;
  }
  #atlas {
    grid-template-columns: 410px minmax(0, 1fr);
  }
  .journal-intro {
    padding: 28px 25px 0;
  }
  .journal-intro h1 {
    font-size: 51px;
  }
  .search-tools {
    padding-left: 25px;
    padding-right: 25px;
  }
  .map-stamp {
    left: 16px;
    top: 18px;
    padding: 10px 14px;
  }
  .map-fit {
    right: 16px;
    top: 102px;
  }
  .leaflet-control-zoom {
    margin-top: 166px !important;
  }
  #account-nav {
    gap: 7px;
  }
  .nav-link {
    font-size: 13px;
  }
}
@media (max-width: 800px) {
  .masthead {
    flex-wrap: wrap;
    gap: 15px;
    min-height: 128px;
    padding: 20px;
  }
  .masthead nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 35px;
  }
  .nav-link {
    padding: 7px 0;
  }
  .wordmark {
    font-size: 38px;
  }
  #atlas {
    height: calc(100dvh - 144px);
    grid-template-columns: 360px minmax(0, 1fr);
  }
  .journal-intro h1 {
    font-size: 46px;
  }
  .map-stamp {
    display: none;
  }
  .map-fit {
    top: 18px;
  }
  .leaflet-control-zoom {
    margin-top: 80px !important;
  }
  .map-instruction {
    font-size: 15px;
    padding: 10px;
  }
  .stats span {
    font-size: 10px;
  }
  .search-tools {
    padding-bottom: 15px;
  }
  .filters select {
    font-size: 11px;
  }
  .detail-header,
  .detail-content {
    padding: 25px;
  }
  .form-grid.three {
    grid-template-columns: 1fr 1fr;
  }
  #collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .masthead {
    padding: 18px 16px;
    gap: 16px;
  }
  .wordmark {
    font-size: 36px;
  }
  .wordmark span {
    font-size: 6px;
  }
  .masthead nav {
    gap: 28px;
    justify-content: space-between;
  }
  .nav-link {
    font-size: 12px;
  }
  #account-nav button {
    font-size: 12px;
    padding: 9px 11px;
  }
  #atlas {
    height: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .map-panel {
    order: -1;
    height: 35dvh;
    min-height: 250px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .map-stamp {
    display: flex;
    top: 14px;
    left: 14px;
    padding: 8px 12px;
  }
  .map-stamp small {
    font-size: 14px;
  }
  .stamp-monogram {
    font-size: 33px;
  }
  .map-fit {
    right: 12px;
    top: 14px;
    font-size: 12px;
    padding: 10px;
  }
  .map-instruction {
    bottom: 23px;
    font-size: 15px;
  }
  .journal-panel {
    overflow: visible;
  }
  .journal-intro {
    padding: 26px 24px 0;
  }
  .journal-intro h1 {
    font-size: 49px;
    line-height: 1.03;
  }
  .journal-intro h1 br {
    display: none;
  }
  .journal-intro h1 em:before {
    content: " ";
  }
  .stats {
    padding: 20px 0;
  }
  .search-tools {
    padding: 0 24px 18px;
  }
  .list-heading {
    padding-left: 24px;
    padding-right: 24px;
  }
  .restaurant-card {
    padding: 22px 4px;
  }
  dialog {
    padding: 23px;
    max-height: 94dvh;
  }
  .detail-dialog {
    padding: 0;
  }
  .detail-header h2 {
    font-size: 39px;
  }
  .detail-header,
  .detail-content {
    padding: 23px;
  }
  .detail-actions {
    gap: 10px;
  }
  .detail-actions button {
    font-size: 12px;
    padding: 10px;
  }
  .aspect-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
  }
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .meal-editor .form-grid {
    grid-template-columns: 1fr;
  }
  .dialog-top h2 {
    font-size: 33px;
  }
  .section-heading h3 {
    font-size: 26px;
  }
  .diner-editor-head {
    padding: 12px;
    gap: 8px;
  }
  .diner-editor-head input {
    font-size: 22px;
  }
  .diner-editor-body {
    padding: 13px;
  }
  .visit-summary {
    padding: 17px;
    gap: 10px;
  }
  .visit-summary h3 {
    font-size: 24px;
  }
  .visit-body {
    padding: 17px;
  }
  #collections-page {
    padding: 35px 23px;
  }
  #collections-grid {
    grid-template-columns: 1fr;
  }
  .page-heading h1 {
    font-size: 45px;
  }
  .form-footer .primary {
    font-size: 14px;
  }
  .share-url {
    flex-direction: column;
  }
  #account-banner {
    font-size: 12px;
    padding: 10px;
  }
  .score-preview {
    padding: 16px;
  }
  .score-preview span {
    font-size: 23px;
  }
  .collection-card {
    min-height: 240px;
  }
  .filters select {
    font-size: 12px;
  }
  .auth-links {
    flex-wrap: wrap;
  }
}
h1,
h2,
h3,
h4,
.tag-picker summary span,
.private-note {
  overflow-wrap: anywhere;
}
.detail-title-row h2 {
  min-width: 0;
}
.meal-detail > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 380px) {
  .map-stamp small {
    display: none;
  }
  .map-stamp {
    gap: 8px;
  }
  .stamp-monogram {
    padding-right: 10px;
  }
  .masthead nav {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* A light paper finish, with a small perforated rating stamp. */
body {
  background-color: #fbf9f4;
  background-image: radial-gradient(#6c512b08 0.65px, transparent 0.8px);
  background-size: 4px 4px;
}
.journal-panel,
.masthead,
dialog {
  background-color: var(--paper);
  background-image: radial-gradient(#75552d06 0.6px, transparent 0.8px);
  background-size: 5px 5px;
}
.score-seal {
  position: relative;
  outline: 0;
  border: 0;
  min-width: 62px;
  height: 69px;
  margin: 1px 0 0;
  background:
    radial-gradient(circle at 0 4px, transparent 2.1px, #f0e7d6 2.6px) left
      center/5px 8px repeat-y,
    radial-gradient(circle at 5px 4px, transparent 2.1px, #f0e7d6 2.6px) right
      center/5px 8px repeat-y,
    radial-gradient(circle at 4px 0, transparent 2.1px, #f0e7d6 2.6px) center
      top/8px 5px repeat-x,
    radial-gradient(circle at 4px 5px, transparent 2.1px, #f0e7d6 2.6px) center
      bottom/8px 5px repeat-x,
    linear-gradient(#f0e7d6, #f0e7d6) center/calc(100% - 10px) calc(100% - 10px)
      no-repeat;
  filter: drop-shadow(0 1px 1px #5b43251c);
}
.score-seal:after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #b79c6e;
  pointer-events: none;
}
.score-seal small {
  font-size: 8px;
  letter-spacing: 1px;
}
.detail-header .score-seal {
  min-width: 74px;
  height: 83px;
}
.leaflet-tile-pane {
  filter: saturate(0.75);
}
.collection-picker {
  padding: 0 32px 22px;
}
.collection-picker > label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--gold);
  margin-bottom: 9px;
}
.collection-picker > div {
  display: flex;
  gap: 8px;
}
.collection-picker select {
  background: #f5f0e7;
  font-size: 14px;
}
.collection-picker button {
  font-size: 20px;
  padding: 4px 12px;
}
.collection-manager-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.collection-manager-row > div {
  flex: 1;
  min-width: 0;
}
.collection-manager-row strong {
  font: 24px var(--serif);
  overflow-wrap: anywhere;
  display: block;
}
.collection-manager-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.collection-manager-row button {
  font-size: 13px;
}
.detail-collections {
  font-size: 12px;
  color: var(--gold);
  margin-top: 20px;
}
.membership-picker {
  margin: 20px 0 0;
}
.membership-picker legend {
  font-size: 13px;
}
.pending-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.restaurant-cover {
  width: 100%;
  height: 165px;
  object-fit: cover;
  margin-bottom: 18px;
  border: 5px solid #fff;
  box-shadow: 0 1px 4px #392b201c;
}
.photo-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0;
  margin: 12px 0;
  scroll-snap-type: x proximity;
}
.photo-gallery button {
  padding: 0;
  border: 4px solid white;
  flex-shrink: 0;
  box-shadow: 0 1px 5px #33231520;
  scroll-snap-align: start;
  background: white;
}
.photo-gallery img {
  display: block;
  width: 170px;
  height: 130px;
  object-fit: cover;
}
.restaurant-photos img {
  width: 230px;
  height: 170px;
}
.dish-photos img {
  width: 130px;
  height: 100px;
}
.photo-dialog {
  width: min(1000px, 96vw);
  padding: 18px;
  background: #faf6ec;
}
.photo-dialog .close-button {
  display: block;
  margin: 0 0 12px auto;
}
.photo-dialog img {
  display: block;
  max-width: 100%;
  max-height: 78dvh;
  object-fit: contain;
  margin: auto;
}
.photo-editor {
  margin: 20px 0;
}
.photo-editor-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
}
.photo-editor-label small {
  color: var(--muted);
}
.photo-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.photo-thumbnails > div {
  position: relative;
}
.photo-thumbnails img {
  width: 90px;
  height: 82px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 1px 5px #35271920;
}
.photo-thumbnails > div > button {
  position: absolute;
  right: -4px;
  top: -7px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  padding: 0;
  width: 22px;
  height: 22px;
  line-height: 1;
  font-size: 17px;
}
.photo-upload {
  width: 90px;
  height: 82px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px dashed #baa787;
  background: #f7f2e9;
  text-align: center;
  cursor: pointer;
}
.photo-upload > span {
  font-size: 23px;
  color: var(--gold);
  line-height: 1.2;
}
.photo-upload small {
  display: block;
  font:
    11px "DM Sans",
    sans-serif;
  margin-top: 6px;
}
.photo-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
}
.photo-upload:focus-within {
  outline: 2px solid var(--gold);
}
.edit-dialog {
  width: 740px;
}
.quick-entry-note {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: #f8f4eb;
  margin-bottom: 22px;
  line-height: 1.5;
}
.quick-entry-note > span {
  display: block;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--gold);
  margin-bottom: 5px;
}
.entry-essential {
  padding: 23px;
  border: 1px solid var(--line);
  background: #fffefb;
  margin-bottom: 20px;
}
.essential-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.essential-title > span {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold);
}
.essential-title > small {
  font-size: 11px;
  color: var(--muted);
}
.visit-place {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.visit-place > span {
  font: 30px var(--serif);
  display: block;
}
.visit-place > small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: block;
  margin-top: 4px;
}
.quick-rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.compact-rating select {
  background: #f8f3ea;
  font-size: 14px;
}
.entry-fold {
  border: 1px solid var(--line);
  margin: 14px 0;
  background: #fffdf9;
}
.entry-fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  align-items: center;
}
.entry-fold > summary::-webkit-details-marker {
  display: none;
}
.entry-fold > summary > span {
  font: 25px var(--serif);
}
.entry-fold > summary > small {
  grid-column: 1;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.entry-fold > summary > b {
  grid-column: 2;
  grid-row: 1/3;
  font-weight: 400;
  color: var(--gold);
  font-size: 22px;
}
.entry-fold[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #f6f0e5;
}
.entry-fold[open] > summary > b {
  transform: rotate(45deg);
}
.fold-content {
  padding: 20px;
}
.diner-fold {
  border: 1px solid var(--line);
  margin: 14px 0;
}
.diner-fold > summary {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  padding: 14px;
  background: #f7f2e8;
  list-style: none;
}
.diner-fold > summary > span:nth-child(2) {
  font: 25px var(--serif);
  flex: 1;
}
.diner-fold > summary small {
  font:
    12px "DM Sans",
    sans-serif;
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.diner-fold > summary > b {
  font-size: 16px;
  font-weight: 400;
}
.diner-name-row {
  display: flex;
  align-items: end;
  gap: 14px;
}
.diner-name-row label {
  flex: 1;
}
.meal-editor {
  background: #fffdf8;
  padding: 15px;
  margin: 18px 0;
  border: 1px solid #e3d8c5;
  border-left: 2px solid #c7b18a;
}
.meal-editor .entry-fold > summary {
  padding: 12px;
}
.meal-editor .entry-fold > summary > span {
  font-size: 20px;
}
.meal-editor .fold-content {
  padding: 12px;
}
.score-preview {
  background: #f2eadc;
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 20px;
  margin: 20px 0 0;
}
.score-preview span {
  font-size: 24px;
}
.score-preview strong {
  font-size: 36px;
  color: var(--wine);
}
.score-preview p {
  font-size: 12px;
  color: var(--muted);
}
.sticky-save {
  position: sticky;
  bottom: -32px;
  background: var(--paper);
  padding: 17px 0 5px;
  margin-top: 20px;
  z-index: 10;
  box-shadow: 0 -10px 16px var(--paper);
}
.sticky-save .primary {
  min-width: 150px;
}
.lookup-tabs {
  display: flex;
  gap: 0;
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
}
.lookup-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  flex: 1;
  font-size: 12px;
  padding: 11px 6px;
  white-space: nowrap;
}
.lookup-tabs button.active {
  color: var(--wine);
  border-bottom-color: var(--wine);
  background: #f6eee0;
}
.place-lookup {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin: 15px 0;
}
.place-lookup label {
  flex: 1;
}
.place-lookup button {
  font-size: 13px;
}
.saved-address {
  margin: 18px 0 12px;
}
.saved-address input {
  font-size: 13px;
}
.location-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}
.is-located {
  color: #526344;
}
.location-status button {
  font-size: 12px;
  color: var(--wine);
}
#entry-mini-map {
  height: 155px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.location-dialog {
  width: 780px;
}
.location-dialog .dialog-top {
  margin-bottom: 14px;
}
#exact-location-map {
  height: min(48dvh, 450px);
  min-height: 250px;
  border: 1px solid var(--line);
}
#exact-location-map .leaflet-control-zoom {
  margin-top: 12px !important;
}
.exact-pin {
  background: none;
  border: 0;
}
.exact-pin > span {
  display: block;
  width: 26px;
  height: 26px;
  border: 3px solid #fff8e9;
  background: var(--wine);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px #2b19254d;
}
.exact-pin > span:after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid #d9c9ac;
  border-radius: 50%;
}
.location-results button {
  padding: 11px 13px;
  background: #f7f3eb;
}
.location-results strong,
.location-results small {
  display: block;
}
.location-results small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.quick-dish {
  font: 23px var(--serif);
  margin: 18px 0 10px;
}
@media (max-width: 620px) {
  .collection-picker {
    padding: 0 24px 20px;
  }
  .entry-essential {
    padding: 17px;
  }
  .essential-title {
    align-items: flex-start;
  }
  .essential-title small {
    max-width: 140px;
    text-align: right;
  }
  .edit-dialog {
    padding: 18px;
  }
  .edit-dialog .dialog-top {
    margin-bottom: 18px;
  }
  .edit-dialog .dialog-top h2 {
    font-size: 31px;
  }
  .quick-rating-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .compact-rating {
    font-size: 12px;
  }
  .compact-rating select {
    font-size: 13px;
    padding: 10px 6px;
  }
  .entry-fold > summary {
    padding: 15px;
  }
  .entry-fold > summary > span {
    font-size: 25px;
  }
  .entry-fold > summary > small {
    line-height: 1.5;
  }
  .fold-content {
    padding: 15px;
  }
  .diner-editor-body {
    padding: 12px;
  }
  .diner-name-row {
    display: block;
  }
  .diner-name-row button {
    margin-top: 10px;
  }
  .meal-editor {
    padding: 12px;
  }
  .photo-gallery img {
    width: 140px;
    height: 110px;
  }
  .restaurant-photos img {
    width: 190px;
    height: 145px;
  }
  .photo-thumbnails img,
  .photo-upload {
    width: 74px;
    height: 72px;
  }
  .photo-editor-label {
    font-size: 12px;
  }
  .sticky-save {
    bottom: -18px;
    padding: 14px 0 2px;
  }
  .visit-place > span {
    font-size: 28px;
  }
  .lookup-tabs button {
    font-size: 11px;
  }
  .location-status {
    align-items: flex-start;
    line-height: 1.6;
  }
  .location-status > span {
    min-width: 90px;
  }
  .place-lookup button {
    padding: 12px;
  }
  .score-preview {
    gap: 14px;
  }
  .score-preview span {
    font-size: 22px;
  }
  .score-preview p {
    line-height: 1.5;
  }
  .diner-fold > summary {
    padding: 12px;
    gap: 10px;
  }
  .diner-fold > summary > span:nth-child(2) {
    font-size: 23px;
  }
  .collection-manager-row {
    gap: 12px;
  }
  .collection-manager-row strong {
    font-size: 22px;
  }
  .collection-manager-row button {
    font-size: 12px;
  }
  .restaurant-cover {
    height: 180px;
  }
}
#toast[popover] {
  top: auto;
  right: auto;
  margin: 0;
  border: 0;
}

.bookmark-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.wanted-marker {
  background: var(--paper);
  color: var(--wine);
  border: 1px dashed var(--wine);
  font-size: 26px;
}
.quick-entry-note {
  padding: 10px 14px;
}
.visit-place {
  padding: 12px 0;
  margin-bottom: 18px;
}
.quick-entry-note span {
  display: inline;
  margin-right: 12px;
}
@media (max-width: 620px) {
  .masthead nav {
    gap: 10px;
    flex-wrap: wrap;
  }
  .masthead nav .nav-link {
    font-size: 11px;
  }
  .entry-essential:not(.restaurant-essential) > .form-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 12px;
  }
  .entry-essential input {
    min-width: 0;
  }
  .visit-place > span {
    font-size: 24px;
  }
  .quick-entry-note {
    font-size: 11px;
  }
}
.entry-heading {
  margin: 0 0 20px;
  justify-content: flex-start;
  gap: 14px;
}
.entry-heading h3 {
  font-size: 32px;
}
.entry-heading > span {
  font-size: 11px;
  color: var(--gold);
}
.restaurant-essential .entry-fold {
  margin-top: 18px;
}
.visit-essential {
  margin-top: 22px;
}
.visit-rating-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 22px;
  margin: 24px 0;
}
.rating-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  margin-bottom: 6px;
}
.ornamental-rating {
  font: italic 36px var(--serif);
  color: var(--wine);
  line-height: 1;
  padding: 3px 10px;
  border-bottom: 1px double #bea987;
  min-width: 55px;
  text-align: center;
}
.compact-rating select {
  font-size: 14px;
  min-width: 0;
  width: 100%;
  padding: 12px 10px;
}
.compact-rating select:disabled {
  opacity: 1;
  color: var(--wine);
  background: #f2ebdf;
}
.derive-button {
  display: block;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 0;
}
.source-note {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.visit-price-grid,
.dish-value-grid,
.visit-notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}
.visit-notes-grid {
  margin-top: 20px;
  align-items: start;
}
.dish-value-grid {
  margin: 15px 0;
}
.party-size-label {
  max-width: 220px;
  margin-bottom: 18px;
}
.restaurant-popup h3 {
  font: 28px var(--serif);
  margin: 4px 0 8px;
  color: var(--wine);
}
.restaurant-popup p {
  line-height: 1.6;
  margin: 9px 0;
}
.popup-categories {
  color: var(--muted);
  font-size: 11px;
}
.popup-ratings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.popup-ratings small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.popup-ratings strong {
  font: italic 26px var(--serif);
  color: var(--wine);
}
.restaurant-popup button {
  width: 100%;
  margin-top: 6px;
}
.leaflet-popup-content {
  margin: 18px;
}
.visit-essential > label:first-of-type {
  max-width: 240px;
}
@media (max-width: 620px) {
  .entry-heading h3 {
    font-size: 28px;
  }
  .entry-essential {
    padding: 16px;
  }
  .visit-rating-grid {
    gap: 20px 12px;
  }
  .compact-rating select {
    font-size: 12px;
    padding: 10px 6px;
  }
  .rating-label {
    font-size: 12px;
    gap: 4px;
  }
  .ornamental-rating {
    font-size: 30px;
    padding: 3px 4px;
    min-width: 39px;
  }
  .visit-price-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 12px;
  }
  .dish-value-grid,
  .visit-notes-grid {
    grid-template-columns: 1fr;
  }
  .restaurant-essential .place-lookup {
    gap: 8px;
  }
  .restaurant-essential .place-lookup label {
    min-width: 0;
  }
  .entry-heading {
    margin-bottom: 15px;
  }
  .restaurant-popup {
    max-width: 260px;
  }
}

#bill-summary:empty {
  display: none;
}
.dish-value-detail {
  display: block;
  white-space: nowrap;
  margin-top: 7px;
}
.collection-multiselect {
  margin: 22px 0 4px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.collection-multiselect summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
}
.collection-multiselect summary strong {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.collection-multiselect > div {
  border-top: 1px solid var(--line);
  padding: 12px;
  max-height: 250px;
  overflow: auto;
}
.collection-multiselect label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.collection-multiselect input {
  margin: 0;
}
.collection-multiselect b {
  font-weight: 400;
}
#collections-grid {
  display: block;
}
.library-section {
  margin: 35px 0;
}
.library-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.library-section-heading h2 {
  margin: 0;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.collection-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.collection-card-actions .star-button {
  font-size: 12px;
}
.discovery-banner {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding: 35px;
  border: 1px solid var(--line);
  background: #f1eadd;
}
.discovery-banner p {
  margin-bottom: 0;
  max-width: 640px;
}
.discovery-banner button {
  flex-shrink: 0;
}
.member-list {
  max-height: 50dvh;
  overflow: auto;
  margin: 20px 0;
  border-block: 1px solid var(--line);
}
.member-list label,
.privacy-options > label,
.bookmark-collections label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
}
.member-list label {
  border-bottom: 1px solid var(--line);
}
.member-list input,
.privacy-options input,
.bookmark-collections input {
  flex-shrink: 0;
  margin-top: 4px;
}
.member-list strong,
.member-list small,
.privacy-options small {
  display: block;
}
.member-list small,
.privacy-options small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.privacy-options > label:last-of-type {
  display: block;
}
.privacy-options {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.course-grid > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}
.course-grid strong {
  font: italic 31px var(--serif);
  color: var(--wine);
}
.course-grid span {
  font-size: 13px;
}
.course-grid small {
  font-size: 11px;
  color: var(--muted);
}
.course-track {
  grid-column: 1/-1;
  background: #eee4d4;
  height: 3px;
}
.course-track i {
  display: block;
  height: 3px;
  background: var(--wine);
}
.food-breakdown {
  margin: 30px 0;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}
.food-breakdown .section-heading {
  margin-top: 0;
}
.discovery-dish {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.discovery-dish small {
  display: block;
  color: var(--muted);
}
.discovery-dish strong {
  font: italic 26px var(--serif);
  color: var(--wine);
}
@media (max-width: 1100px) {
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .masthead nav {
    gap: 14px;
  }
  .nav-link {
    font-size: 12px;
  }
}
@media (max-width: 620px) {
  .library-grid {
    grid-template-columns: 1fr;
  }
  .library-section-heading {
    align-items: flex-start;
  }
  .library-section-heading h2 {
    font-size: 29px;
  }
  .library-section-heading button {
    font-size: 12px;
    padding: 9px;
  }
  .discovery-banner {
    display: block;
    padding: 22px;
  }
  .discovery-banner button {
    margin-top: 20px;
    font-size: 12px;
  }
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .masthead nav {
    gap: 8px;
  }
  .nav-link {
    font-size: 10px;
  }
  .collection-multiselect summary {
    font-size: 12px;
  }
  .collection-multiselect summary strong {
    font-size: 11px;
  }
}
/* Account and house ledger, using the same paper, ink and burgundy palette. */
.masthead nav {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
}
.masthead nav [hidden] {
  display: none;
}
.city-search {
  display: flex;
  gap: 8px;
  align-items: center;
}
.city-search input {
  min-width: 0;
  flex: 1;
}
.city-search button {
  flex-shrink: 0;
}
.city-chooser {
  margin: 18px 0;
}
.city-chooser label small {
  display: block;
  font-weight: 400;
  line-height: 1.5;
  margin: 4px 0 10px;
}
.city-result {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #d9cfbf;
  background: #f8f4eb;
  color: #423d36;
  line-height: 1.5;
  cursor: pointer;
}
.city-result:hover {
  background: #efe6d7;
}
.membership-summary {
  padding: 20px;
  border: 1px solid #d4c7b1;
  background: #f5eee1;
  margin: 20px 0;
}
.membership-summary > span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b2635;
  display: block;
  margin-bottom: 10px;
}
.membership-summary > strong {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  display: block;
}
.membership-summary p {
  font-size: 13px;
  line-height: 1.7;
}
.account-signout {
  margin-top: 22px;
}
.pinned-selection {
  display: inline-block;
  color: #8b2635;
  font-size: 12px;
  padding: 8px 0;
}
.admin-dialog {
  width: min(900px, 94vw);
  max-width: 900px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #d6cbbc;
  margin: 22px 0;
}
.admin-stats > div {
  padding: 18px;
  text-align: center;
}
.admin-stats strong {
  display: block;
  font:
    32px Georgia,
    serif;
  color: #8b2635;
}
.admin-stats span {
  display: block;
  font-size: 11px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-users {
  margin: 20px 0;
}
.admin-users article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ded5c6;
  padding: 17px 0;
}
.admin-users article > div {
  min-width: 0;
}
.admin-users small {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.7;
  color: #746b5f;
}
.permission-suspend {
  display: flex;
  gap: 10px;
  margin: 24px 0;
}
.permission-suspend input {
  width: auto;
}
#password-form label {
  margin-bottom: 14px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
@media (max-width: 780px) {
  .masthead nav {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 4px;
  }
  .masthead nav button {
    white-space: nowrap;
  }
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .city-search {
    align-items: stretch;
  }
  .city-search button {
    padding: 10px;
  }
}
