/* Current design system: shared restaurant panel, responsive shell and editorial details. */
.visit-date-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.visit-date-grid label,
.visit-date-grid input {
  min-width: 0;
  width: 100%;
}
.laurel-symbol {
  width: 48px;
  height: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.laurel-symbol > .ui-icon {
  width: 23px;
  height: 23px;
  margin: 0 0 4px;
}
.laurel-wreath {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.laurel-mini .laurel-symbol {
  width: 30px;
  height: 34px;
}
.laurel-mini .laurel-symbol > .ui-icon {
  width: 15px;
  height: 15px;
  margin-bottom: 3px;
}
:root {
  --sans: "DM Sans", sans-serif;
  --panel-list: 440px;
  --panel-detail: 620px;
  --space: 28px;
  --paper: #faf7f0;
  --muted: #71695e;
  --gold: #97763b;
  --line: #ded5c5;
  --wine: #742739;
}
body {
  background: var(--paper);
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  transition:
    background-color 0.14s,
    color 0.14s,
    border-color 0.14s;
  min-height: 40px;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
input,
select,
textarea {
  border-color: #cfc5b5;
  min-height: 42px;
}
.masthead {
  min-height: 102px;
  padding: 18px 28px;
  gap: 20px;
}
.masthead nav {
  gap: 20px;
  align-items: center;
}
.masthead .nav-link {
  white-space: nowrap;
  font-size: 13px;
}
.wordmark {
  font-size: 43px;
  flex-shrink: 0;
}
.wordmark span {
  font-size: 7px;
  letter-spacing: 2px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.language-picker {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
}
.language-picker select {
  width: auto;
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 8px 3px;
  margin: 0;
  color: var(--muted);
}
#account-nav {
  gap: 8px;
}
#account-nav button {
  white-space: nowrap;
  font-size: 12px;
  padding: 10px 13px;
}
#atlas {
  height: calc(100dvh - 102px);
  min-height: 400px;
  grid-template-columns: var(--panel-list) minmax(0, 1fr);
  /* Avoid reflowing the WebGL map on every animation frame. The sheet fades in. */
  transition: none;
}
#atlas.restaurant-open {
  grid-template-columns: var(--panel-detail) minmax(0, 1fr);
}
.journal-panel {
  min-width: 0;
  background: var(--paper);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#journal-list-view {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.journal-intro {
  padding: 30px var(--space) 0;
}
.journal-intro h1 {
  font-size: 52px;
  line-height: 1.03;
}
.search-tools {
  padding: 0 var(--space) 18px;
}
.list-heading {
  padding: 17px var(--space) 8px;
}
.journal-foot {
  padding: 24px var(--space);
}
#restaurant-list {
  padding: 0 16px;
}
.restaurant-card {
  padding: 24px 12px;
}
.restaurant-card h3 {
  font-size: 29px;
  line-height: 1.15;
}
.card-top > div:first-child {
  min-width: 0;
}
.card-tags {
  letter-spacing: 0.45px;
}
.card-bottom {
  line-height: 1.6;
}
.restaurant-card .restaurant-cover {
  height: 150px;
  object-fit: cover;
  width: 100%;
  margin-bottom: 18px;
}
.score-seal {
  width: 66px;
  min-width: 66px;
  height: 76px;
  margin: 6px 5px 6px 10px;
  border: 0;
  outline: 0;
  background: #faf5eb;
  box-shadow: none;
  font-size: 32px;
  transform: rotate(0);
  transition: transform 160ms ease;
}
.score-seal strong {
  font: inherit;
  line-height: 1.05;
}
.score-seal::after {
  display: none;
}
.stamp-frame {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  color: #ae936b;
  pointer-events: none;
}
.stamp-tier-0 {
  background: transparent;
  filter: none;
  color: var(--muted);
}
.stamp-tier-0 .stamp-frame {
  color: #c9c0b1;
  stroke-dasharray: 2 3;
}
.stamp-tier-1 {
  background: transparent;
  filter: none;
}
.stamp-tier-2 {
  background: #faf5eb;
}
.stamp-tier-3 {
  background: #f8f0e3;
}
.stamp-tier-4 {
  background: #f7eeda;
}
.stamp-tier-4 .stamp-frame {
  color: #a07b3f;
}
.stamp-tier-5 {
  background: linear-gradient(135deg, #f8edcc, #fffaf0 45%, #f3e4bd);
  filter: drop-shadow(0 1px 2px #80602724);
}
.stamp-tier-5 .stamp-frame {
  color: #926a2a;
}
.score-seal small {
  font-size: 8px;
  margin-top: 6px;
  letter-spacing: 1px;
}
.ui-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.text-button .ui-icon {
  margin-right: 7px;
}
.mobile-view-switch {
  display: none;
}
#restaurant-view {
  min-height: 100%;
  outline: none;
  animation: sheet-in 0.15s ease;
}
.restaurant-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--space);
  background: #faf7f0f5;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.restaurant-toolbar button {
  font-size: 12px;
  padding: 5px 0;
  min-height: 36px;
}
.restaurant-sheet .detail-header {
  padding: 28px var(--space) 26px;
  background: transparent;
}
.restaurant-name {
  font-size: 43px;
  line-height: 1.06;
  margin: 12px 0 18px;
  overflow-wrap: anywhere;
}
.detail-title-row {
  align-items: flex-start;
  gap: 18px;
}
.detail-title-row > div:first-child {
  min-width: 0;
}
.restaurant-sheet .detail-header .score-seal {
  min-width: 72px;
  height: 83px;
  font-size: 36px;
}
.detail-address {
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 16px;
}
.detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.detail-tags > span {
  font-size: 10px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--gold);
  letter-spacing: 0.3px;
}
.detail-actions {
  gap: 8px;
  margin-top: 22px;
}
.detail-actions button {
  font-size: 12px;
  padding: 10px 12px;
}
.restaurant-sheet .detail-content {
  padding: 0 var(--space) 28px;
}
.restaurant-sheet .section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
  padding: 0 0 12px;
}
.restaurant-sheet .section-heading span {
  font:
    10px "DM Sans",
    sans-serif;
  letter-spacing: 1.5px;
  color: var(--gold);
}
.restaurant-sheet .section-heading h2 {
  font: 30px var(--serif);
  margin: 6px 0 0;
  line-height: 1.15;
}
.restaurant-sheet .section-heading small {
  font-size: 11px;
  color: var(--muted);
}
.restaurant-sheet .aspect-grid {
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 0;
  border-bottom: 0;
}
.restaurant-sheet .aspect-grid strong {
  font-size: 31px;
}
.restaurant-sheet .aspect-grid span {
  display: block;
  line-height: 1.4;
  font-size: 11px;
}
.restaurant-sheet .aspect-grid small {
  display: block;
  color: var(--gold);
  font-size: 9px;
  margin-top: 5px;
}
.course-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.course-grid > div {
  min-width: 0;
}
.course-grid span {
  font-size: 12px;
}
.course-grid strong {
  font-size: 24px;
}
.course-track {
  height: 2px;
  background: var(--line);
  margin: 8px 0;
}
.course-track i {
  display: block;
  height: 100%;
  background: var(--gold);
}
.restaurant-sheet .visit-card {
  margin: 14px 0;
  border-color: var(--line);
}
.restaurant-sheet .visit-summary {
  padding: 17px 18px;
  align-items: center;
  background: #f5f0e6;
}
.restaurant-sheet .visit-summary h3 {
  font-size: 25px;
}
.restaurant-sheet .visit-score {
  font-size: 29px;
  text-align: right;
}
.restaurant-sheet .visit-score small {
  display: block;
  font:
    9px "DM Sans",
    sans-serif;
  margin-top: 5px;
  color: var(--muted);
}
.visit-summary::after {
  content: "+";
  font: 18px var(--serif);
  color: var(--gold);
}
details[open] > .visit-summary::after {
  content: "−";
}
.restaurant-sheet .visit-body {
  padding: 18px;
}
.restaurant-sheet .diner-detail h4 {
  margin: 0 0 10px;
  font-size: 23px;
}
.meal-name {
  display: block;
  font-weight: 500;
}
.restaurant-sheet .meal-detail {
  gap: 16px;
  line-height: 1.5;
}
.restaurant-sheet .meal-rating {
  min-width: 56px;
  text-align: right;
}
.meal-rating small {
  white-space: nowrap;
}
.visit-edit-actions {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.restaurant-management {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.restaurant-management p {
  color: var(--muted);
  margin: 6px 0;
  line-height: 1.5;
}
.subdued-danger {
  color: #87535a;
}
.restaurant-laurels {
  padding: 0 var(--space) 22px;
  border-bottom: 1px solid var(--line);
  background: #f6f0e5;
}
.restaurant-laurels .section-heading {
  padding-top: 22px;
  margin-top: 0;
  border-bottom: 0;
}
.restaurant-laurels button {
  font-size: 11px;
}
.laurel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.laurel-item {
  min-width: 0;
}
.laurel-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 18px/1.15 var(--serif);
  color: #745820;
  cursor: pointer;
  list-style: none;
}
.laurel-item p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 4px;
}
.laurel-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--gold);
}
.laurel-mini {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.laurel-mini .laurel-icon {
  width: 32px;
  height: 32px;
}
.laurel-choices {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}
.laurel-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.laurel-choice:has(input:checked) {
  background: #f0e6d2;
  border-color: var(--gold);
}
.laurel-choice input {
  flex-shrink: 0;
}
.laurel-choice strong {
  font: 23px var(--serif);
}
.laurel-choice small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  margin-top: 6px;
  color: var(--muted);
}
.laurel-restaurant-name {
  font: 28px var(--serif);
}
.form-footer {
  position: sticky;
  bottom: -32px;
  z-index: 5;
  background: var(--paper);
  padding: 18px 0;
  margin-top: 24px;
}
.dialog-top {
  gap: 14px;
}
.close-button {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
}
.entry-section {
  margin-block: 20px;
}
.entry-fold {
  margin-block: 14px;
}
.entry-fold > summary {
  min-height: 48px;
  align-items: center;
}
.form-grid {
  gap: 16px;
}
.field-help {
  line-height: 1.6;
}
.meal-editor {
  margin: 16px 0;
  padding-left: 14px;
}
.diner-fold {
  margin: 12px 0;
}
.rating-control {
  min-width: 0;
}
.rating-control select {
  width: 100%;
  text-overflow: ellipsis;
}
.rating-control label {
  gap: 12px;
}
.photo-gallery {
  gap: 8px;
}
.photo-gallery button {
  padding: 0;
  overflow: hidden;
  border-color: var(--line);
}
.collection-card {
  padding: 26px;
  min-height: 240px;
}
.collection-card h2 {
  overflow-wrap: anywhere;
}
.collection-card-actions {
  gap: 10px;
  flex-wrap: wrap;
}
.collection-card-actions button {
  font-size: 12px;
}
.library-grid {
  gap: 20px;
}
@keyframes sheet-in {
  from {
    opacity: 0.5;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 1300px) {
  .masthead {
    flex-wrap: wrap;
    padding: 16px 24px;
    gap: 12px;
  }
  .masthead nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 26px;
  }
  .header-tools {
    margin-left: auto;
  }
  #atlas {
    height: calc(100dvh - 146px);
  }
  :root {
    --panel-list: 400px;
    --panel-detail: 560px;
  }
}
@media (max-width: 980px) {
  :root {
    --panel-list: 350px;
    --panel-detail: 500px;
    --space: 24px;
  }
  .journal-intro h1 {
    font-size: 46px;
  }
  .map-stamp {
    display: none;
  }
  .restaurant-name {
    font-size: 38px;
  }
  .masthead nav {
    gap: 20px;
  }
  .map-fit {
    top: 18px;
  }
  .leaflet-control-zoom {
    margin-top: 78px !important;
  }
}
@media (max-width: 760px) {
  :root {
    --space: 20px;
  }
  .masthead {
    padding: 16px 16px 0;
    min-height: 0;
    gap: 14px;
  }
  .wordmark {
    font-size: 36px;
  }
  .wordmark span {
    font-size: 6px;
    letter-spacing: 1.5px;
    margin-top: 8px;
  }
  .header-tools {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .language-picker select {
    max-width: 88px;
    font-size: 12px;
  }
  .language-picker > span {
    display: none;
  }
  #account-nav {
    gap: 3px;
  }
  #account-nav button {
    font-size: 11px;
    padding: 8px;
    min-height: 38px;
  }
  #account-nav .text-button {
    display: none;
  }
  .masthead nav {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 24px;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding: 0 0 4px;
    width: 100%;
    margin: 0;
  }
  .masthead .nav-link {
    font-size: 12px;
    min-height: 44px;
    flex-shrink: 0;
  }
  .nav-link.active:after {
    left: 0;
    right: 0;
  }
  .mobile-view-switch {
    display: flex;
    justify-content: center;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    padding: 6px 16px;
    background: var(--paper);
  }
  .mobile-view-switch button {
    min-height: 36px;
    padding: 5px 26px;
    border: 0;
    color: var(--muted);
    font-size: 12px;
  }
  .mobile-view-switch [aria-pressed="true"] {
    background: #eee6d6;
    color: var(--wine);
  }
  body:has(#collections-page:not([hidden])) .mobile-view-switch {
    display: none;
  }
  #atlas,
  #atlas.restaurant-open {
    display: block;
    height: calc(100dvh - 178px);
    min-height: 320px;
    position: relative;
  }
  .journal-panel {
    height: 100%;
    display: block;
    overflow: auto;
  }
  .map-panel {
    height: 100%;
    min-height: 0;
    border: 0;
  }
  #atlas[data-mobile-view="list"] .map-panel {
    display: none;
  }
  #atlas[data-mobile-view="map"] .journal-panel {
    display: none;
  }
  .journal-intro {
    padding-top: 24px;
  }
  .journal-intro h1 {
    font-size: 46px;
    margin: 12px 0;
  }
  .journal-intro > p {
    max-width: 100%;
    font-size: 13px;
  }
  .stats {
    padding: 18px 0;
  }
  .stats strong {
    font-size: 30px;
  }
  .stats span {
    font-size: 9px;
  }
  .collection-actions {
    gap: 8px;
    margin-bottom: 20px;
  }
  .collection-actions button {
    font-size: 12px;
  }
  .filters select {
    font-size: 12px;
    min-height: 44px;
  }
  .search-wrap input {
    font-size: 16px;
  }
  .restaurant-card {
    padding: 24px 8px;
  }
  .restaurant-card h3 {
    font-size: 30px;
  }
  .card-bottom {
    font-size: 12px;
  }
  .restaurant-card .restaurant-cover {
    height: 180px;
  }
  .score-seal {
    width: 62px;
    min-width: 62px;
    height: 73px;
  }
  .restaurant-name {
    font-size: 38px;
  }
  .restaurant-sheet .detail-header .score-seal {
    min-width: 66px;
    height: 78px;
  }
  .restaurant-toolbar {
    padding: 10px 20px;
  }
  .restaurant-toolbar button {
    min-height: 40px;
  }
  .restaurant-sheet .detail-header {
    padding-top: 24px;
  }
  .restaurant-sheet .section-heading h2 {
    font-size: 29px;
  }
  .restaurant-sheet .aspect-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }
  .restaurant-sheet .aspect-grid strong {
    font-size: 29px;
  }
  .laurel-grid {
    grid-template-columns: 1fr;
  }
  .laurel-item summary {
    font-size: 20px;
  }
  .restaurant-management {
    align-items: flex-start;
  }
  .visit-summary h3 {
    font-size: 23px;
  }
  .visit-body {
    padding: 16px;
  }
  .visit-edit-actions button {
    min-height: 44px;
  }
  dialog {
    max-width: 100%;
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 22px 20px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  dialog::backdrop {
    backdrop-filter: none;
  }
  .edit-dialog {
    width: 100%;
  }
  .dialog-top {
    margin-bottom: 20px;
  }
  .dialog-top h2 {
    font-size: 32px;
  }
  .form-footer {
    bottom: calc(-22px - env(safe-area-inset-bottom));
    padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
    gap: 12px;
  }
  .form-footer button {
    min-height: 46px;
  }
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 46px;
  }
  .tag-choice span {
    font-size: 12px;
    min-height: 42px;
    display: flex;
    align-items: center;
  }
  .entry-fold > summary {
    gap: 8px;
    padding: 15px;
  }
  .fold-content {
    padding: 16px;
  }
  .entry-fold > summary small {
    font-size: 11px;
  }
  .visit-rating-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rating-field {
    padding: 14px;
  }
  .rating-field label {
    font-size: 12px;
  }
  .meal-editor .form-grid {
    grid-template-columns: 1fr;
  }
  .diner-editor-body {
    padding: 14px;
  }
  .diner-editor-head {
    padding: 12px;
  }
  .laurel-choice {
    gap: 9px;
    padding: 12px 9px;
  }
  .laurel-choice strong {
    font-size: 22px;
  }
  .laurel-icon {
    width: 44px;
    height: 44px;
  }
  #collections-page {
    padding: 28px 20px;
  }
  .page-heading h1 {
    font-size: 43px;
  }
  .library-grid,
  #collections-grid {
    grid-template-columns: 1fr;
  }
  .library-section-heading {
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
  }
  .collection-card {
    min-height: 0;
  }
  .collection-card h2 {
    font-size: 32px;
  }
  .privacy-options {
    padding: 14px;
  }
  .privacy-options > label {
    align-items: flex-start;
  }
  .admin-user-head {
    flex-wrap: wrap;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .account-actions {
    gap: 10px;
  }
  .map-instruction {
    bottom: 28px;
    font-size: 15px;
  }
  .map-fit {
    font-size: 12px;
    min-height: 44px;
  }
  .photo-dialog {
    height: auto;
    max-height: 100dvh;
  }
  .photo-dialog img {
    max-height: 85dvh;
  }
  #toast {
    bottom: calc(16px + env(safe-area-inset-bottom));
    font-size: 13px;
    max-width: calc(100vw - 32px);
  }
}
@media (max-width: 390px) {
  .header-tools {
    gap: 2px;
  }
  .language-picker select {
    max-width: 72px;
  }
  .wordmark {
    font-size: 32px;
  }
  .wordmark span {
    font-size: 5px;
  }
  .restaurant-name {
    font-size: 34px;
  }
  .restaurant-sheet .aspect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-actions button {
    flex: 1;
  }
  .visit-rating-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1101px) {
  .masthead {
    flex-wrap: nowrap;
    padding: 10px 24px;
    min-height: 84px;
  }
  .masthead nav {
    order: 0;
    width: auto;
    gap: 14px;
    margin-left: auto;
  }
  .masthead .nav-link {
    font-size: 12px;
  }
  .header-tools {
    margin-left: 0;
    gap: 8px;
  }
}
@media (max-width: 760px) {
  .entry-heading h3 {
    font-size: 26px;
  }
  .restaurant-essential > .entry-fold > summary > span {
    font-size: 20px;
  }
  .restaurant-essential > .entry-fold > summary {
    padding-block: 12px;
  }
}

/* Measured after fonts, translations and banners settle. */
#atlas,
#atlas.restaurant-open {
  height: calc(100dvh - var(--shell-height, 146px));
}
/* Mobile-first refinements: compact navigation, clear score hierarchy, thumb controls. */
.masthead {
  min-height: 84px;
  padding: 10px 24px;
  gap: 16px;
}
.masthead nav {
  gap: 18px;
}
.masthead .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

#account-nav .account-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 0;
  padding: 7px 0 7px 12px;
  background: none;
}
.account-identity > span {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.account-identity small {
  color: var(--gold);
  font-size: 9px;
  margin-top: 3px;
  white-space: normal;
  line-height: 1.4;
}
.membership-link {
  font-size: 11px;
}
.journal-intro > p:empty {
  display: none;
}
.journal-intro {
  padding-top: 24px;
}
.journal-intro h1 {
  margin: 12px 0;
}
.stats {
  padding: 18px 0;
}
.collection-actions {
  margin: 16px 0;
}
.selection-filters {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 8px;
  padding: 0 var(--space) 14px;
}
.selection-filters select {
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 12px;
}
.laurel-mini {
  display: flex;
  gap: 5px;
  margin: 0 0 5px;
}
.restaurant-sheet .laurel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.restaurant-sheet .laurel-item {
  border: 0;
  padding: 0;
  flex: 0 1 auto;
}
.restaurant-sheet .laurel-item summary {
  display: flex;
  gap: 5px;
  align-items: center;
  font: 10px/1.4 var(--sans);
  color: var(--gold);
  max-width: 155px;
  padding: 0;
  min-height: 44px;
}
.restaurant-sheet .laurel-item .laurel-symbol {
  width: 32px;
  height: 38px;
}
.restaurant-sheet .laurel-item .ui-icon {
  width: 16px;
  height: 16px;
}
.restaurant-sheet .laurel-item p {
  font-size: 11px;
  max-width: 180px;
  margin: 5px 0;
}
.restaurant-sheet .detail-header {
  padding-top: 18px;
  padding-bottom: 12px;
}
.restaurant-name {
  margin: 8px 0 12px;
}
.restaurant-sheet .section-heading {
  margin: 22px 0 14px;
  padding-bottom: 9px;
}
.restaurant-sheet .aspect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.average-weights {
  font-size: 10px;
  margin: 0 0 10px;
}
.spending-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.spending-summary p {
  margin: 0;
}
.value-summary {
  color: var(--muted);
  font-size: 12px;
}
.value-summary strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-left: 6px;
  color: var(--ink);
}
.visit-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.visit-metrics span {
  font-size: 11px;
}
.visit-metrics strong {
  display: block;
  font: 24px var(--serif);
  margin-top: 5px;
}
.visit-weights {
  font-size: 10px;
  margin-block: 10px;
}
.curator-byline {
  font-size: 12px;
  color: var(--gold);
}
.restaurant-map-marker {
  background: none;
  border: none;
}
.restaurant-map-marker .rating-marker {
  position: absolute;
  left: 30px;
  top: 38px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 5px;
  line-height: 1;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}
.marker-laurel {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 1px 1px #fff);
}
.marker-laurel .laurel-symbol {
  width: 26px;
  height: 29px;
  color: #866020;
  background: #faf7f0ed;
  border-radius: 50%;
}
.marker-laurel .ui-icon {
  width: 14px;
  height: 14px;
  margin: 0 0 1px;
}
.map-fit {
  top: 16px;
  right: 16px;
}
.leaflet-control-zoom {
  margin-top: 70px !important;
}
#quick-add {
  position: fixed;
  right: 26px;
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
#quick-add-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wine);
  border: 1px solid #ffffff70;
  color: #fffaf1;
  box-shadow: 0 4px 16px #41141c30;
  font: 32px/1 var(--sans);
  display: grid;
  place-items: center;
  padding: 0;
}
#quick-add-toggle:hover {
  background: #591c2b;
}

#restaurant-list {
  padding-bottom: 85px;
}
.restaurant-sheet .detail-content {
  padding-bottom: 96px;
}
.required-mark {
  color: var(--wine);
  font-size: 12px;
}
.visit-rating-grid,
.visit-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.visit-price-grid {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.visit-price-grid > label,
.visit-price-grid > div > label {
  min-height: 79px;
  justify-content: flex-end;
}
.visit-rating-grid label,
.visit-price-grid label {
  min-width: 0;
}
.visit-rating-grid select,
.visit-price-grid select {
  width: 100%;
}
.visit-rating-grid .rating-label,
.visit-price-grid .rating-label {
  min-height: 29px;
}
.visit-price-grid .ornamental-rating {
  font-size: 23px;
  color: var(--muted);
}
.compact-rating select {
  padding: 10px 22px 10px 10px;
  font-size: 12px;
  min-height: 44px;
}
.source-note {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}
.derive-button {
  text-align: left;
  font-size: 11px;
  line-height: 1.45;
  padding-block: 6px;
}
.meal-editor .form-grid,
.dish-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
}
.meal-editor .form-grid > label,
.dish-value-grid > label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 84px;
  margin: 0;
}
.meal-editor .form-grid input,
.meal-editor .form-grid select,
.dish-value-grid input,
.dish-value-grid select {
  margin-top: 6px;
  min-height: 44px;
}
.meal-editor .rating-label {
  min-height: 27px;
  margin: 0;
}
.dish-value-grid .ornamental-rating {
  font-size: 24px;
  color: var(--muted);
}
.weight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.percentage-input {
  display: flex;
  align-items: center;
  gap: 5px;
}
.percentage-input input {
  min-width: 0;
  width: 100%;
}
.percentage-input > span {
  color: var(--muted);
}
.weight-settings > summary {
  flex-wrap: wrap;
}
.weight-settings > summary small {
  font-size: 10px;
  flex-basis: 100%;
}
.weight-total {
  font-size: 12px;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
dialog:has(.tier-grid) {
  width: min(900px, 95vw);
}
.tier-card {
  padding: 20px 16px;
  border: 1px solid var(--line);
  background: #f6f0e5;
}
.tier-card:last-child {
  border-color: var(--gold);
}
.tier-card h3 {
  font: 25px var(--serif);
  margin: 0 0 14px;
}
.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tier-card li {
  font-size: 12px;
  line-height: 1.6;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.tag-options {
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (hover: hover) {
  .restaurant-card:hover .score-seal {
    transform: rotate(3deg);
  }
}
@media (min-width: 761px) {
  .masthead:has(nav button[hidden]) {
    flex-wrap: nowrap;
  }
  .masthead:has(nav button[hidden]) nav {
    order: 0;
    width: auto;
    margin-left: auto;
  }
  .masthead:has(nav button[hidden]) .header-tools {
    margin-left: 0;
  }
}
@media (max-width: 1300px) {
  .masthead {
    gap: 6px 16px;
    padding: 10px 24px 0;
  }
  .masthead nav {
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .masthead {
    padding: 8px 14px 0;
    gap: 5px 8px;
  }
  .wordmark {
    font-size: 32px;
  }
  .wordmark span {
    font-size: 5px;
    letter-spacing: 1px;
    margin-top: 4px;
  }
  .header-tools {
    gap: 3px;
    flex-wrap: nowrap;
  }
  .language-picker select {
    max-width: 72px;
    font-size: 11px;
    padding-inline: 0;
  }
  #account-nav .account-identity {
    padding-inline: 4px;
    max-width: 115px;
  }
  .account-identity > span {
    max-width: 106px;
    font-size: 11px;
  }
  .account-identity small {
    font-size: 8px;
  }
  .membership-link {
    display: none;
  }
  .masthead nav {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr 0.9fr 0.9fr;
    gap: 8px;
    padding-bottom: 0;
    overflow: visible;
  }
  .masthead .nav-link {
    white-space: normal;
    min-width: 0;
  }
  .masthead .nav-link > span {
    max-width: 84px;
  }
  .masthead nav:has(button[hidden]) {
    display: flex;
  }
  .masthead .nav-link {
    font-size: 11px;
    gap: 3px;
  }

  .mobile-view-switch {
    padding: 3px 16px;
  }
  .mobile-view-switch button {
    min-height: 38px;
  }
  .journal-intro {
    padding-top: 20px;
  }
  .journal-intro h1 {
    font-size: 42px;
  }
  .collection-card {
    padding: 22px;
    min-height: 0;
  }
  .collection-card-actions button {
    min-height: 44px;
  }
  #quick-add {
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
  #quick-add-toggle {
    width: 54px;
    height: 54px;
  }
  .visit-rating-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .visit-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 18px;
  }
  .visit-price-grid > div:last-child {
    grid-column: 1/-1;
  }
  .visit-price-grid > label,
  .visit-price-grid > div > label {
    min-height: 0;
  }
  .visit-rating-grid .compact-rating select,
  .visit-price-grid select,
  .meal-editor select {
    font-size: 16px;
    min-height: 46px;
  }
  .visit-price-grid > div:last-child .rating-label {
    min-height: 26px;
  }
  .visit-notes-grid {
    grid-template-columns: 1fr;
  }
  .visit-rating-grid .field-help,
  .visit-rating-grid .source-note {
    font-size: 11px;
  }
  .meal-editor {
    padding-left: 10px;
  }
  .meal-editor .form-grid,
  .dish-value-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .meal-editor .form-grid > label,
  .dish-value-grid > label {
    min-height: 0;
  }
  .weight-grid {
    gap: 8px;
  }
  .weight-grid label {
    font-size: 11px;
  }
  .percentage-input {
    gap: 3px;
  }
  .percentage-input input {
    padding-inline: 8px;
    font-size: 16px;
  }
  .tier-grid {
    grid-template-columns: 1fr;
  }
  dialog:has(.tier-grid) {
    width: 100%;
  }
  .restaurant-sheet .laurel-item summary {
    font-size: 9px;
    max-width: 145px;
  }
  .restaurant-sheet .laurel-grid {
    gap: 4px 8px;
  }
  .detail-title-row {
    gap: 12px;
  }
  .restaurant-sheet .detail-header {
    padding-top: 16px;
  }
  .restaurant-name {
    font-size: 34px;
  }
  .tag-options {
    max-height: 230px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .score-seal {
    transition: none;
  }
  .restaurant-card:hover .score-seal {
    transform: none;
  }
}
/* A quiet botanical underline shared by the wordmark and editorial navigation. */
.brand-underline {
  display: block;
  width: 76px;
  height: 14px;
  color: var(--gold);
  flex: none;
}
.wordmark .brand-underline {
  width: 100px;
  height: 16px;
  margin: 3px auto 0;
}
.wordmark span {
  margin-top: 2px;
  text-align: center;
}
.masthead .nav-link[data-nav="curated"] {
  flex-direction: row;
  padding-block: 14px;
}
.masthead .nav-link[data-nav="curated"] .brand-underline {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
}
.masthead .nav-link[data-nav="curated"].active .brand-underline {
  color: var(--wine);
}
.masthead .nav-link[data-nav="curated"]::after {
  display: none;
}
.membership-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 3px;
}
.membership-link small {
  font-size: 9px;
  color: var(--gold);
  line-height: 1.4;
  max-width: 116px;
}
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  padding: 10px 24px;
}
.masthead .wordmark {
  justify-self: start;
}
.masthead nav,
.masthead:has(nav button[hidden]) nav {
  grid-column: 2;
  grid-row: 1;
  order: 0;
  width: auto;
  margin: 0;
  justify-content: center;
  gap: 22px;
}
.masthead .header-tools,
.masthead:has(nav button[hidden]) .header-tools {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  min-width: 0;
  gap: 10px;
}
@media (max-width: 1399px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 16px;
    padding-bottom: 0;
  }
  .masthead .header-tools,
  .masthead:has(nav button[hidden]) .header-tools {
    grid-column: 2;
  }
  .masthead nav,
  .masthead:has(nav button[hidden]) nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
}
@media (min-width: 761px) {
  .masthead .membership-link,
  #account-nav .account-identity {
    position: relative;
    justify-content: center;
    min-height: 42px;
    padding-block: 7px;
  }
  .masthead .membership-link small,
  #account-nav .account-identity small {
    position: absolute;
    top: calc(50% + 9px);
    margin: 0;
    white-space: nowrap;
    max-width: none;
  }
}
@media (max-width: 760px) {
  .masthead {
    padding: 7px 12px 0;
    gap: 2px 8px;
  }
  .masthead .wordmark {
    font-size: 30px;
  }
  .wordmark .brand-underline {
    width: 72px;
    height: 12px;
    margin-top: 2px;
  }
  .wordmark span {
    font-size: 4.5px;
    letter-spacing: 0.8px;
    margin-top: 0;
  }
  .masthead .header-tools,
  .masthead:has(nav button[hidden]) .header-tools {
    display: grid;
    grid-template-columns: 68px minmax(0, 92px);
    gap: 0 4px;
    align-items: center;
  }
  .language-picker {
    grid-column: 1;
    grid-row: 1;
  }
  .language-picker > span {
    display: none;
  }
  .language-picker select {
    min-height: 30px;
    width: 68px;
    font-size: 10px;
  }
  .membership-link {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    padding: 2px 0 4px;
    min-height: 32px;
    font-size: 10px;
    gap: 1px;
  }
  .membership-link small {
    font-size: 8px;
  }
  #account-nav {
    grid-column: 2;
    grid-row: 1 / 3;
    gap: 3px;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
  }
  #account-nav .account-identity {
    padding: 4px 0 4px 4px;
    max-width: 92px;
  }
  .account-identity > span {
    max-width: 88px;
  }
  #account-nav > .primary {
    font-size: 9px;
    padding: 7px;
    min-height: 30px;
  }
  #account-nav > .text-button {
    padding: 3px;
    font-size: 11px;
    min-height: 28px;
  }
  .masthead nav {
    gap: 6px;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr;
  }
  .masthead .nav-link {
    font-size: 10px;
    min-height: 48px;
    padding-block: 7px;
  }
  .masthead .nav-link[data-nav="curated"] {
    padding-block: 7px;
  }
  .masthead .nav-link > span {
    max-width: 90px;
  }
  .nav-link .brand-underline {
    width: 56px;
    height: 11px;
  }
}
/* Visit stories share the same typography in the editor preview and public journal. */
.visit-entry {
  margin-block: 18px;
  border-bottom: 1px solid var(--line);
}
.visit-entry > .visit-card {
  margin: 0;
  border-bottom: 0;
}
.visit-journal-preview {
  padding: 2px 18px 22px;
}
.visit-entry:has(> .visit-card[open]) > .visit-journal-preview {
  display: none;
}
.visit-journal {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.journal-prose {
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.journal-prose > :first-child {
  margin-top: 0;
}
.journal-prose > :last-child {
  margin-bottom: 0;
}
.journal-prose p {
  margin: 0 0 1em;
  font: inherit;
  color: inherit;
}
.journal-prose :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.25px;
  margin: 1.3em 0 0.5em;
  color: var(--wine);
}
.journal-prose h1 {
  font-size: 30px;
}
.journal-prose h2 {
  font-size: 26px;
}
.journal-prose h3 {
  font-size: 22px;
}
.journal-prose :is(h4, h5, h6) {
  font-size: 19px;
}
.journal-prose :is(ul, ol) {
  padding-left: 1.5em;
  margin-block: 0.75em 1.2em;
}
.journal-prose li + li {
  margin-top: 0.3em;
}
.journal-prose blockquote {
  margin: 1.3em 0;
  padding: 0.2em 0 0.2em 18px;
  border-left: 2px solid var(--gold);
  color: var(--muted);
  font-style: italic;
}
.journal-prose a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.journal-prose pre {
  max-width: 100%;
  overflow: auto;
  background: #efe9df;
  padding: 14px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.6;
}
.journal-prose code {
  font-size: 0.9em;
  background: #efe9df;
  padding: 1px 4px;
  border-radius: 2px;
}
.journal-prose pre code {
  padding: 0;
  background: transparent;
}
.journal-prose hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.journal-prose table {
  display: block;
  overflow: auto;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.journal-prose :is(td, th) {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
}
.journal-editor .entry-heading small {
  margin-left: auto;
  color: var(--muted);
  font: 11px var(--sans);
}
.journal-editor-tabs {
  display: flex;
  gap: 16px;
  margin: 18px 0 10px;
  border-bottom: 1px solid var(--line);
}
.journal-editor-tabs button {
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.journal-editor-tabs button[aria-pressed="true"] {
  border-bottom-color: var(--wine);
  color: var(--wine);
}
.journal-editor textarea {
  resize: vertical;
  line-height: 1.7;
  min-height: 190px;
}
.journal-editor .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#journal-preview {
  min-height: 190px;
  padding: 18px;
  background: #fbf8f1;
  border: 1px solid var(--line);
}
.markdown-help,
.legacy-private-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.markdown-help summary,
.legacy-private-note summary {
  padding-block: 8px;
  cursor: pointer;
}
.markdown-help p {
  line-height: 1.7;
}
.visit-notes-grid {
  grid-template-columns: 1fr;
}
@media (max-width: 760px) {
  .visit-journal-preview {
    padding-inline: 12px;
  }
  .journal-prose {
    font-size: 14px;
    line-height: 1.75;
  }
  .journal-prose h1 {
    font-size: 27px;
  }
  .journal-prose h2 {
    font-size: 24px;
  }
}
/* The photo album has an independent route. */
#album-page {
  height: calc(100dvh - var(--shell-height, 120px));
  overflow-y: auto;
  padding: 32px clamp(20px, 4vw, 64px) 70px;
}
.album-heading h1 {
  font: 48px/1.15 var(--serif);
  margin: 12px 0;
  color: var(--wine);
}
.album-heading p {
  color: var(--muted);
  font-size: 14px;
}
.album-filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 28px 0;
}
.album-filters label {
  min-width: 0;
  font-size: 12px;
  margin: 0;
}
.album-filters input,
.album-filters select {
  margin-top: 8px;
}
.album-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.album-selected .album-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 20px;
}
.album-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 0 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  overflow: hidden;
  color: var(--ink);
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.album-tile:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.album-tile[aria-pressed="true"] {
  border-color: var(--wine);
  box-shadow: 0 0 0 1px var(--wine);
}
.album-tile img {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.album-tile > span {
  display: block;
  font: 21px/1.2 var(--serif);
  margin: 12px 12px 6px;
  overflow-wrap: anywhere;
}
.album-tile small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 12px;
}
#album-detail {
  position: sticky;
  top: 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  max-height: calc(100dvh - var(--shell-height, 120px) - 35px);
  overflow-y: auto;
}
.album-full-photo {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  background: var(--paper);
  margin: 14px 0;
}
.album-context {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.album-context h2 {
  font: 29px/1.15 var(--serif);
  color: var(--wine);
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.album-context h3 {
  font: 25px/1.2 var(--serif);
  margin: 10px 0;
}
.album-meal {
  padding: 18px 0;
}
.album-meal-ratings {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}
.album-meal-ratings strong {
  color: var(--wine);
}
.album-dish-notes {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.7;
}
#album-more {
  margin: 28px auto;
  display: block;
}
@media (max-width: 1100px) {
  .album-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .album-selected .album-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
@media (max-width: 760px) {
  .masthead nav,
  .masthead nav:has(button[hidden]) {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 14px;
    padding: 0 4px 5px;
    scrollbar-width: none;
  }
  .masthead nav .nav-link {
    flex: 0 0 auto;
    width: auto;
    min-width: 60px;
    font-size: 11px;
    padding-inline: 2px;
    white-space: normal;
    min-height: 48px;
  }
  .masthead nav .nav-link[data-nav="curated"] {
    max-width: 110px;
  }
  #album-page {
    padding: 24px 16px 65px;
  }
  .album-heading h1 {
    font-size: 39px;
  }
  .album-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .album-filters label:first-child {
    grid-column: 1/-1;
  }
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .album-tile > span {
    font-size: 20px;
  }
  .album-selected .album-layout {
    display: block;
  }
  .album-selected .album-gallery-section,
  .album-selected .album-heading,
  .album-selected .album-filters {
    display: none;
  }
  #album-detail {
    position: static;
    max-height: none;
    border: 0;
    padding: 0;
  }
  .album-back {
    position: sticky;
    top: -24px;
    display: block;
    width: 100%;
    padding: 14px 0;
    background: var(--paper);
    text-align: left;
    z-index: 1;
  }
  .album-full-photo {
    max-height: 48dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .album-tile {
    transition: none;
  }
  .album-tile:hover {
    transform: none;
  }
}
