/* =====================================================================
   v15: plain and ordinary, like a hobby site someone made themselves
   ===================================================================== */
:root {
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: var(--serif);
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #222;
  --stone: #666;
  --rule: #ddd;
  --wash: #f4f4f4;
  --card: #fff;
  --card-line: #ddd;
  --garnet: #8c1c3a;
  --garnet-2: #a3234a;
  --garnet-soft: #f8e8ec;
  --leaf: #333;
  --leaf-soft: #f0f0f0;
  --r: 4px;
  --r-sm: 3px;
}
body[data-mode="ol"] {
  --garnet: #b0600a;
  --garnet-2: #c56f12;
  --garnet-soft: #fbefe0;
  --card: #fff;
  --card-line: #ddd;
}
body {
  background: #fff;
  font-size: 16px;
  line-height: 1.55;
}
h1,
h2,
h3,
.wine-name,
.home-h,
.section-h,
.prof-title,
.block-h {
  letter-spacing: 0 !important;
  font-weight: 700;
}
.wine-name {
  font-size: clamp(28px, 3.2vw, 38px) !important;
  line-height: 1.15;
}
.home-hero h1,
.home-title,
.hero-h {
  font-size: clamp(26px, 3vw, 34px) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}
.home-hero::after,
.foot::before {
  display: none !important;
}

/* coloured top bar */
.top,
.top.scrolled {
  background: var(--garnet) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 0 0 100vmax var(--garnet) !important;
  padding-top: 12px !important;
  padding-bottom: 10px !important;
}
.brand,
.top.scrolled .brand {
  color: #fff !important;
  font-size: 26px !important;
  font-weight: 700;
  letter-spacing: 0;
}
.tabs a {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 15px;
}
.tabs a:hover {
  color: #fff !important;
}
.tabs a[aria-current="page"] {
  color: #fff !important;
  font-weight: 600;
}
.tabs a[aria-current="page"]::after {
  background: #fff !important;
}
.modeswitch {
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: transparent !important;
  border-radius: 4px !important;
}
.modeswitch::before {
  background: #fff !important;
}
.modeswitch button {
  color: #fff !important;
  background: transparent !important;
}
.modeswitch button[aria-pressed="true"] {
  color: var(--garnet) !important;
  font-weight: 600;
}
.modeswitch button + button {
  border-left-color: rgba(255, 255, 255, 0.6) !important;
}
.top .icon-btn,
.top button:not(.modeswitch button) {
  color: #fff;
}

/* flat, plain surfaces */
* {
  box-shadow: none;
}
.field,
.search input,
.btn.quiet,
.toggle,
.tchip,
.opt,
.seg,
.viewswitch,
.mapbar button,
.mic,
.tasks-toggle,
.pick,
.info,
.fpanel,
.taste-prof,
.dock,
.cmp-wrap,
.suggest,
.agebox,
.photo-out,
.somm-a {
  border-color: #ccc !important;
  border-radius: 4px !important;
  background-color: #fff !important;
}
.field:focus,
.search input:focus {
  border-color: var(--garnet) !important;
  box-shadow: 0 0 0 2px var(--garnet-soft) !important;
}
.info,
.fpanel,
.taste-prof,
.pick,
.card,
.cmp-wrap {
  border: 1px solid #ddd !important;
}
.btn {
  border-radius: 4px !important;
  font-weight: 600;
}
.tchip,
.chip,
.occ {
  border-radius: 3px !important;
}
.tchip[aria-pressed="true"],
.seg button[aria-pressed="true"],
.mapbar button[aria-pressed="true"],
.viewswitch button[aria-pressed="true"] {
  background: #333 !important;
  border-color: #333 !important;
  color: #fff !important;
}
.home-grid article {
  border-top: 1px solid #ddd;
}
.home-grid article:hover h3,
.task-row:hover .task-name {
  color: var(--garnet);
}
.link {
  color: var(--garnet);
  text-decoration-color: currentColor;
}
a {
  color: var(--garnet);
}
::selection {
  background: #ffe38a;
}

/* the two doors: plain coloured boxes */
.door {
  border-radius: 6px !important;
  min-height: clamp(140px, 16vw, 200px) !important;
  outline: 0 !important;
  border: 0 !important;
}
.door-vin {
  background: #8c1c3a !important;
}
.door-ol {
  background: #b0600a !important;
}
.door::before,
.door::after {
  opacity: 0.5;
}
.door-text b,
.door-text strong,
.door-text .door-h {
  font-size: clamp(30px, 3.4vw, 40px) !important;
  font-weight: 700;
}

/* footer: simple grey strip */
.foot {
  background: #f4f4f4;
  box-shadow: 0 0 0 100vmax #f4f4f4;
  clip-path: inset(0 -100vmax);
  border-top: 1px solid #ddd;
  color: #555;
}

/* less motion */
@media (prefers-reduced-motion: no-preference) {
  .view,
  .door,
  .btn {
    transition-duration: 120ms !important;
  }
}
main h1,
.somm-h,
.view h1 {
  font-size: clamp(26px, 3vw, 34px) !important;
  line-height: 1.2 !important;
}
.info .wine-name,
.info h2 {
  font-size: clamp(24px, 2.6vw, 32px) !important;
}
.door {
  box-shadow: none !important;
}
/* =====================================================================
   v16: the 25 choices
   ===================================================================== */
:root {
  --serif: Verdana, Geneva, "DejaVu Sans", Tahoma, sans-serif;
  --sans: var(--serif);
}
body {
  font-size: 15px;
  line-height: 1.6;
}
.wine-name,
.home-top h1,
main h1 {
  letter-spacing: -0.01em !important;
}

/* logo with a small glass */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-ico {
  display: inline-flex;
  line-height: 0;
}
.brand-ico svg {
  width: 18px;
  height: 24px;
}
.ico-ol {
  display: none;
}
body[data-mode="ol"] .ico-ol {
  display: block;
}
body[data-mode="ol"] .ico-vin {
  display: none;
}

/* front page: search on top */
.home-top {
  max-width: 900px;
  padding: 8px 0 36px;
}
.home-top h1 {
  margin: 0 0 6px;
}
.home-top .home-lede {
  margin: 0 0 18px;
}
.home-top .home-sform {
  max-width: none;
  margin: 0 0 22px;
}
.home-top .home-sform .field {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  padding: 12px 14px;
}
.home-top .home-doors {
  margin: 0 0 12px;
}
.home-sub-h {
  font-size: 16px;
  font-weight: 700;
  margin: 22px 0 10px;
}
@media (max-width: 560px) {
  .home-top .home-sform {
    flex-wrap: wrap;
  }
  .home-top .home-sform .field {
    flex-basis: 100%;
  }
  .home-top .home-sform .btn {
    flex: 1;
  }
}

/* explore: map with the list under it */
.list-wrap {
  margin-top: 22px;
}
.legend .swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  vertical-align: -1px;
}

/* item: pronunciation, Polet link, notes */
.say {
  margin: 2px 0 6px;
  font-size: 15px;
  color: var(--ink);
}
.say-k {
  font-size: 13px;
  color: var(--stone);
  margin-right: 6px;
}
.polet {
  margin: 4px 0 18px;
  font-size: 14px;
}
.mynote {
  margin: 0 0 20px;
}
.mynote .section-h {
  font-size: 16px;
  margin: 0 0 8px;
}
.mynote textarea {
  width: 100%;
  resize: vertical;
  font: inherit;
  font-size: 14px;
}
.mynote .small {
  margin: 4px 0 0;
}
.prof-notes {
  margin: 24px 0;
}
.note-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.note-list li {
  border-top: 1px solid var(--rule);
  padding: 10px 0;
}
.note-list p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}
.prof-move {
  margin: 28px 0 8px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.prof-move .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.prof-move label.btn {
  cursor: pointer;
}

/* the AI question box lives only in the Sommelier tab */
.dock .dock-ask {
  display: none !important;
}
.dock .dock-bar {
  grid-template-columns: auto !important;
  justify-content: start;
}

/* dark mode, following the phone or computer */
@media (prefers-color-scheme: dark) and (max-width: 0px) {
  :root {
    --paper: #191817;
    --surface: #222120;
    --ink: #ebe8e4;
    --stone: #a9a39c;
    --rule: #3a3735;
    --wash: #262423;
    --card: #222120;
    --card-line: #3a3735;
    --garnet: #d9708c;
    --garnet-2: #e68aa3;
    --garnet-soft: #3a2229;
    --leaf: #ddd;
    --leaf-soft: #2c2a28;
    color-scheme: dark;
  }
  body[data-mode="ol"] {
    --garnet: #e3a052;
    --garnet-2: #eeb46c;
    --garnet-soft: #3a2b18;
  }
  body {
    background: var(--paper);
    color: var(--ink);
  }
  .top,
  .top.scrolled {
    background: #5e1328 !important;
    box-shadow: 0 0 0 100vmax #5e1328 !important;
  }
  body[data-mode="ol"] .top,
  body[data-mode="ol"] .top.scrolled {
    background: #7a420a !important;
    box-shadow: 0 0 0 100vmax #7a420a !important;
  }
  .modeswitch button[aria-pressed="true"] {
    color: #5e1328 !important;
  }
  body[data-mode="ol"] .modeswitch button[aria-pressed="true"] {
    color: #7a420a !important;
  }
  .field,
  .search input,
  .btn.quiet,
  .toggle,
  .tchip,
  .opt,
  .seg,
  .seg button,
  .viewswitch button,
  .mapbar button,
  .mic,
  .tasks-toggle,
  .pick,
  .info,
  .fpanel,
  .taste-prof,
  .dock,
  .cmp-wrap,
  .suggest,
  .agebox,
  .photo-out,
  .somm-a,
  .jvm-zoom-btn,
  .panel,
  .card,
  .ritem,
  .pop,
  .sortbox .field,
  select.field {
    background-color: var(--surface) !important;
    color: var(--ink) !important;
    border-color: #45413e !important;
  }
  .btn {
    background: var(--garnet) !important;
    border-color: var(--garnet) !important;
    color: #1a1112 !important;
  }
  .btn.quiet {
    color: var(--ink) !important;
  }
  .tchip[aria-pressed="true"],
  .seg button[aria-pressed="true"],
  .mapbar button[aria-pressed="true"],
  .viewswitch button[aria-pressed="true"] {
    background: #e8e4df !important;
    border-color: #e8e4df !important;
    color: #191817 !important;
  }
  .info,
  .fpanel,
  .taste-prof,
  .pick,
  .card,
  .cmp-wrap,
  .prof-move {
    border-color: #3a3735 !important;
  }
  .door-vin {
    background: #6d1630 !important;
  }
  .door-ol {
    background: #8a4a0c !important;
  }
  .foot {
    background: #201f1e;
    box-shadow: 0 0 0 100vmax #201f1e;
    color: #bbb;
    border-top-color: #333;
  }
  .agegate {
    background: rgba(0, 0, 0, 0.7);
  }
  ::selection {
    background: #6b5a14;
    color: #fff;
  }
  img {
    filter: brightness(0.92);
  }
  .jvm-tooltip {
    background: #eee !important;
    color: #111 !important;
  }
  a,
  .link {
    color: var(--garnet);
  }
}

.home-h {
  font-size: clamp(20px, 2.4vw, 26px) !important;
  font-weight: 700;
}
@media (max-width: 420px) {
  .tabs {
    gap: 12px !important;
  }
  .tabs a {
    font-size: 14px !important;
  }
}
/* own pages: grapes, hops, countries, regions */
.side {
  max-width: 1240px;
}
.side h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 10px;
}
.side h1 .flag {
  width: 34px;
  height: auto;
}
.side .lede {
  max-width: 760px;
}
.crumbs {
  font-size: 14px;
  color: var(--stone);
  margin: 0 0 14px;
}
.side-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  margin-top: 22px;
  align-items: start;
}
@media (max-width: 900px) {
  .side-grid {
    grid-template-columns: 1fr;
  }
}
.side-map {
  height: 340px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--wash);
}
.side-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 22px;
}
.side-chips .tchip {
  text-decoration: none;
  color: var(--ink);
}
.side-chips .tchip .small {
  margin-left: 4px;
}
.side .rlist .rmetric .price {
  display: inline-flex;
  gap: 3px;
}
.plink {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}
.plink:hover {
  color: var(--garnet);
}
.explore-links {
  font-size: 14px;
  color: var(--stone);
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.info2 {
  margin-top: -6px;
}
/* =====================================================================
   v17: phase 2 – menu with icons, ☰ on mobile, sheet, more air, motion
   ===================================================================== */
/* more air */
main {
  padding-top: 34px;
  padding-bottom: 40px;
}
.view > * + * {
  margin-top: 8px;
}
.home-top {
  padding-bottom: 48px;
}
.home-pop,
.home-food,
.home-theme,
.home-what {
  margin-top: 56px;
}
.panel .info,
.panel .facts,
.panel .profile,
.panel .toggles,
.panel .mynote {
  margin-bottom: 26px;
}
.rlist li + li {
  margin-top: 2px;
}
.ritem {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* top bar: always visible */
.top.away {
  transform: none !important;
}
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ticon {
  flex: none;
  opacity: 0.9;
}
.tabs a[aria-current="page"] .ticon {
  opacity: 1;
}
.menubtn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  border-radius: 4px;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.menubtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 960px) {
  .top {
    grid-template-columns: 1fr auto auto !important;
    align-items: center !important;
  }
  .menubtn {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
  }
  .modeswitch {
    grid-column: 2;
    grid-row: 1;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .tabs {
    display: none !important;
    grid-column: 1 / -1;
    grid-row: 2;
  }
  body.menu-open .tabs {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    padding: 6px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin-top: 8px;
    animation: menuIn 180ms ease-out;
  }
  body.menu-open .tabs a {
    padding: 12px 4px !important;
    font-size: 17px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  body.menu-open .tabs a:last-child {
    border-bottom: 0;
  }
  body.menu-open .tabs a[aria-current="page"]::after {
    display: none;
  }
  body.menu-open .tabs a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
  }
}
@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* page transitions */
@media (prefers-reduced-motion: no-preference) {
  .view-enter {
    animation: viewIn 260ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards !important;
  }
  .panel {
    transition: opacity 200ms ease;
  }
  .ritem,
  .tchip,
  .btn,
  .toggle,
  .door {
    transition:
      background-color 160ms ease,
      border-color 160ms ease,
      transform 160ms ease,
      box-shadow 160ms ease !important;
  }
  .door:hover {
    transform: translateY(-2px);
  }
  .ritem:hover {
    transform: translateX(2px);
  }
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* back to top */
.totop {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.totop[hidden] {
  display: none;
}
body.has-dock .totop {
  bottom: 84px;
}
body.sheet-open .totop {
  display: none;
}

/* mobile sheet for the selected wine or beer */
.sheet-close {
  display: none;
}
@media (max-width: 700px) {
  #detail.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    max-height: 78vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--surface) !important;
    border: 1px solid var(--rule) !important;
    border-bottom: 0 !important;
    border-radius: 14px 14px 0 0 !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
    padding: 26px 18px 30px !important;
    margin: 0 !important;
  }
  #detail.sheet::before {
    content: "";
    position: sticky;
    top: -18px;
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: #ccc;
    margin: -14px auto 14px;
  }
  #detail.sheet.sheet-in {
    animation: sheetUp 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .sheet-close:not([hidden]) {
    display: flex;
    position: fixed;
    right: 12px;
    bottom: calc(78vh - 46px);
    z-index: 81;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--rule);
    background: var(--surface);
    color: var(--ink);
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  body.sheet-open .dock {
    display: none !important;
  }
}
@keyframes sheetUp {
  from {
    transform: translateY(40%);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #detail.sheet.sheet-in,
  .view-enter {
    animation: none !important;
  }
}

/* thumbs up / down */
.thumbs {
  display: flex;
  gap: 10px;
  margin: 4px 0 12px;
}
.thumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  padding: 9px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.thumb.up[aria-pressed="true"] {
  background: #2f6b3a;
  border-color: #2f6b3a;
  color: #fff;
}
.thumb.down[aria-pressed="true"] {
  background: #8a2b2b;
  border-color: #8a2b2b;
  color: #fff;
}
.thumb-mini {
  display: inline-flex;
  margin-left: 6px;
  vertical-align: -4px;
}
.thumb-mini.up {
  color: #2f6b3a;
}
.thumb-mini.down {
  color: #8a2b2b;
}

/* search suggestions with pictures and recent searches */
.suggest .sg-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sg-thumb {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
}
.sg-thumb.rthumb {
  width: 36px !important;
  height: 36px !important;
}
.sg-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sg-text .sub {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--stone);
  cursor: default !important;
  padding: 6px 10px !important;
}
.sg-recent {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Ordbok */
.ordbok {
  max-width: 900px;
}
.ordbok h1 {
  margin: 0 0 8px;
}
.ord-tools {
  display: grid;
  gap: 12px;
  margin: 18px 0 14px;
}
.ord-index {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 18px;
  position: sticky;
  top: var(--head, 64px);
  background: var(--paper);
  padding: 8px 0;
  z-index: 5;
  border-bottom: 1px solid var(--rule);
}
.ord-index a,
.ord-index span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
}
.ord-index a {
  text-decoration: none;
  color: var(--garnet);
}
.ord-index a:hover {
  background: var(--garnet-soft);
}
.ord-index span {
  color: #bbb;
}
.ord-group {
  scroll-margin-top: calc(var(--head, 64px) + 56px);
}
.ord-letter {
  font-size: 26px;
  margin: 26px 0 8px;
  color: var(--garnet);
}
.ord-list {
  margin: 0;
}
.ord {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.ord dt {
  font-weight: 700;
  margin: 0 0 4px;
}
.ord dd {
  margin: 0;
  color: var(--ink);
}
.ord-kind {
  font-size: 12px;
  font-weight: 400;
  color: var(--stone);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: 2px;
}
.ord-extra {
  display: block;
  font-size: 13px;
  color: var(--stone);
  margin-top: 2px;
}

/* Lær og øv i Profil, and the wine calendar */
#view-daglig {
  margin-top: 10px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
}
.daily-title {
  margin: 0 0 18px;
}
.calendar {
  margin-top: 40px;
}
.cal-now {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 18px;
  margin: 12px 0 18px;
}
.cal-now h3 {
  margin: 2px 0 6px;
}
.cal-now .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.cal-list li {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-list li.on {
  border-color: var(--garnet);
  background: var(--garnet-soft);
}
.cal-list li span {
  font-size: 14px;
  color: var(--stone);
}
.cal-list li .link {
  align-self: flex-start;
  font-size: 14px;
}
@media (prefers-color-scheme: dark) and (max-width: 0px) {
  .ord-index {
    background: var(--paper);
  }
  .thumb {
    border-color: #45413e;
  }
  .cal-list li.on {
    background: #3a2229;
  }
}
/* phase 3: sommelier */
.somm-showmap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.somm-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.somm-ai select {
  width: auto;
  padding: 4px 8px;
}
.photo-best {
  font-size: 18px;
  margin: 0 0 4px;
}
.photo-foods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pop-why {
  font-size: 12px;
  color: var(--stone);
}
/* phase 4: consent, privacy, delete */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  padding: 18px 20px;
}
.consent h2 {
  font-size: 18px;
  margin: 0 0 6px;
}
.consent p {
  font-size: 14px;
  margin: 0 0 12px;
}
.consent .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.btn.danger {
  color: #8a2b2b !important;
  border-color: #c9a2a2 !important;
}
.btn.danger:hover {
  background: #fbeeee !important;
}
.privacy {
  max-width: 760px;
}
.privacy h2 {
  font-size: 19px;
  margin: 28px 0 8px;
}
.privacy ul {
  padding-left: 20px;
}
.privacy li {
  margin: 0 0 8px;
}

/* =====================================================================
   v18: lys og luftig. Hvitt, mørk tekst, vinrød aksent, tydelige bilder.
   ===================================================================== */
:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --wash: #f5f6f8;
  --ink: #1b1b22;
  --stone: #4f505a;
  --rule: #e2e3e8;
  --card: #ffffff;
  --card-line: #e2e3e8;
  --garnet: #9a1d3d;
  --garnet-2: #b32a4d;
  --garnet-soft: #fbedf1;
  --leaf: #1b1b22;
  --leaf-soft: #f0f1f4;
  --r: 12px;
  --r-sm: 8px;
  --lift: 0 1px 2px rgba(22, 22, 34, 0.05), 0 6px 20px rgba(22, 22, 34, 0.06);
}
body[data-mode="ol"] {
  --garnet: #a65706;
  --garnet-2: #c06a0f;
  --garnet-soft: #fdf2e4;
}
body {
  font-size: 16px;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
}
.small,
.muted,
.pop-sub,
.rsub,
.pick-sub,
.home-lede,
.home-food-p {
  color: var(--stone) !important;
}
:focus-visible {
  outline: 3px solid var(--garnet) !important;
  outline-offset: 2px;
}

/* header: white with a thin line, red logo, clear active tab */
.top,
.top.scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 0 0 100vmax rgba(255, 255, 255, 0.96) !important;
  clip-path: inset(0 -100vmax);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.brand,
.top.scrolled .brand {
  color: var(--garnet) !important;
  font-size: 25px !important;
}
.tabs {
  gap: 6px !important;
}
.tabs a {
  color: var(--ink) !important;
  font-size: 15.5px;
  padding: 8px 12px !important;
  border-radius: 999px;
  border-bottom: 0 !important;
}
.tabs a:hover {
  background: var(--wash);
}
.tabs a[aria-current="page"] {
  color: var(--garnet) !important;
  background: var(--garnet-soft);
  font-weight: 700;
}
.tabs a[aria-current="page"]::after {
  display: none !important;
}
.modeswitch {
  border: 1px solid var(--rule) !important;
  background: var(--wash) !important;
  border-radius: 999px !important;
  padding: 3px;
  overflow: hidden;
}
.modeswitch::before {
  display: none !important;
}
.modeswitch button {
  color: var(--ink) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 6px 18px !important;
  font-weight: 600;
}
.modeswitch button[aria-pressed="true"] {
  background: var(--garnet) !important;
  color: #fff !important;
}
.menubtn {
  border-color: var(--rule) !important;
  color: var(--ink) !important;
  background: #fff !important;
  border-radius: 10px !important;
}
.menubtn:focus-visible {
  outline-color: var(--garnet) !important;
}
.top .icon-btn {
  color: var(--ink);
}
@media (max-width: 960px) {
  body.menu-open .tabs {
    border-top-color: var(--rule) !important;
  }
  body.menu-open .tabs a {
    border-bottom-color: var(--rule) !important;
    border-radius: 8px;
  }
  body.menu-open .tabs a[aria-current="page"] {
    background: var(--garnet-soft) !important;
  }
}

/* buttons and fields: bigger and easier to see */
.btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px !important;
  font-size: 15.5px;
  font-weight: 700;
}
.btn:not(.quiet) {
  background: var(--garnet) !important;
  border-color: var(--garnet) !important;
  color: #fff !important;
}
.btn:not(.quiet):hover {
  background: var(--garnet-2) !important;
}
.btn.quiet {
  background: #fff !important;
  border: 1.5px solid #c9cad2 !important;
  color: var(--ink) !important;
}
.btn.quiet:hover {
  border-color: var(--ink) !important;
}
.field,
.search input,
select.field {
  border: 1.5px solid #c9cad2 !important;
  border-radius: 10px !important;
  min-height: 46px;
  font-size: 16px;
}
.field::placeholder,
.search input::placeholder {
  color: #6b6c76;
}
.tchip,
.chip,
.occ {
  border-radius: 999px !important;
  border-width: 1.5px !important;
}
.tchip[aria-pressed="true"],
.seg button[aria-pressed="true"],
.mapbar button[aria-pressed="true"],
.viewswitch button[aria-pressed="true"] {
  background: var(--garnet) !important;
  border-color: var(--garnet) !important;
  color: #fff !important;
}
.seg,
.viewswitch {
  border-radius: 10px !important;
  overflow: hidden;
}
.mapbar button {
  border-radius: 999px !important;
  font-weight: 600;
}
a,
.link {
  color: var(--garnet);
}

/* headings */
main h1,
.view h1,
.home-top h1 {
  font-size: clamp(28px, 3.4vw, 40px) !important;
  font-weight: 700;
  letter-spacing: -0.015em !important;
}
.home-h,
.section-h,
h2 {
  letter-spacing: -0.01em;
}
.home-h {
  font-size: clamp(21px, 2.2vw, 26px) !important;
  margin-bottom: 16px !important;
}

/* cards: white, soft shadow, round corners */
.info,
.panel,
.fpanel,
.taste-prof,
.cmp-wrap,
.home-food,
.somm-log,
.prof-move,
.photo-out,
.tasks-toggle {
  border: 1px solid var(--rule) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: var(--lift) !important;
}
.home-food {
  background: var(--wash) !important;
  box-shadow: none !important;
}
.pick {
  border-radius: 12px !important;
}
.pick:hover {
  border-color: var(--garnet) !important;
}

/* pictures in lists: a soft tile with a glass drawing, covered by the photo when it loads */
.rthumb {
  border-radius: 10px !important;
  background: color-mix(in srgb, var(--c) 14%, #fff) !important;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 34, 0.07) !important;
  position: relative;
}
.rthumb .ph {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 46%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}
.rthumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.rthumb::after {
  z-index: 2;
}

/* result list: medium picture beside the text */
.rlist li + li {
  margin-top: 6px;
}
.ritem {
  grid-template-columns: 76px minmax(0, 1fr) auto 44px !important;
  gap: 16px !important;
  padding: 10px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
}
.ritem .rthumb {
  width: 76px !important;
  height: 76px !important;
}
.ritem:hover {
  background: var(--wash) !important;
  border-color: var(--rule) !important;
}
.ritem.sel {
  background: var(--garnet-soft) !important;
  border-color: color-mix(in srgb, var(--garnet) 35%, #fff) !important;
}
.rname {
  font-size: 17px;
  font-weight: 700;
}
.rsub {
  font-size: 14px;
}
@media (max-width: 520px) {
  .ritem {
    grid-template-columns: 64px minmax(0, 1fr) auto !important;
    gap: 12px !important;
    padding: 8px !important;
  }
  .ritem .rthumb {
    width: 64px !important;
    height: 64px !important;
  }
}

/* cards on the front page, Profil and Sommelier: picture to the left, text to the right */
.pop-list {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
  gap: 14px !important;
}
.small-recs {
  grid-template-columns: 1fr !important;
}
.pop {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 16px;
  row-gap: 3px;
  align-items: start;
  padding: 12px !important;
  border: 1px solid var(--rule) !important;
  border-radius: 16px;
  background: #fff !important;
  box-shadow: var(--lift);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}
.pop:hover {
  border-color: var(--garnet) !important;
  transform: translateY(-2px);
}
.pop-img {
  grid-row: 1 / span 3;
  width: 104px !important;
  height: 104px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border-radius: 12px !important;
}
.pop-name {
  font-size: 17px;
  font-weight: 700;
  margin-top: 4px;
}
.pop-why {
  font-size: 13.5px !important;
  color: var(--garnet) !important;
  font-weight: 600;
}
.small-recs .pop {
  grid-template-columns: 72px minmax(0, 1fr);
}
.small-recs .pop-img {
  width: 72px !important;
  height: 72px !important;
}
@media (max-width: 560px) {
  .pop-list {
    grid-template-columns: 1fr !important;
  }
  .pop {
    grid-template-columns: 84px minmax(0, 1fr);
  }
  .pop-img {
    width: 84px !important;
    height: 84px !important;
  }
}
.sg-thumb.rthumb {
  width: 44px !important;
  height: 44px !important;
}
.tr-img {
  width: 84px !important;
  height: 84px !important;
}
.pick {
  grid-template-columns: 24px 64px minmax(0, 1fr) !important;
}
.pick-img {
  width: 64px !important;
  height: 64px !important;
}

/* the two doors: big photos with a light caption bar */
.door {
  border-radius: 18px !important;
  box-shadow: var(--lift) !important;
}
.door::after {
  background: linear-gradient(to top, rgba(15, 10, 12, 0.78), rgba(15, 10, 12, 0.05) 65%) !important;
  opacity: 1 !important;
}
.door::before {
  display: none !important;
}
.door-vin {
  background: linear-gradient(140deg, #9a1d3d, #5c1024) !important;
}
.door-ol {
  background: linear-gradient(140deg, #c27a1a, #6e3e08) !important;
}
.door-sub {
  font-size: 16px !important;
  font-weight: 600;
}

/* detail panel: larger photos */
.media {
  gap: 12px !important;
}
.mfig .mimg {
  border-radius: 14px !important;
  overflow: hidden;
}
.media.two .m-main img,
.media.one img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}
.media.two .m-place img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}
.mcredit {
  font-size: 12.5px;
  color: var(--stone);
}
.wine-name {
  color: var(--ink);
}

/* map */
.mapwrap,
.map,
#map {
  border-radius: 16px !important;
}
.foot {
  background: var(--wash) !important;
  box-shadow: 0 0 0 100vmax var(--wash) !important;
  color: var(--stone) !important;
  border-top: 1px solid var(--rule);
}

/* dark mode keeps the same layout */
@media (prefers-color-scheme: dark) and (max-width: 0px) {
  :root {
    --paper: #141417;
    --surface: #1d1d22;
    --wash: #212127;
    --ink: #ececf1;
    --stone: #b4b5bf;
    --rule: #33343c;
    --card: #1d1d22;
    --card-line: #33343c;
    --garnet: #ec8aa3;
    --garnet-2: #f3a3b8;
    --garnet-soft: #3a1f28;
    --lift: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  body[data-mode="ol"] {
    --garnet: #f0aa5a;
    --garnet-2: #f5bd7a;
    --garnet-soft: #3b2a14;
  }
  .top,
  .top.scrolled {
    background: rgba(20, 20, 23, 0.96) !important;
    box-shadow: 0 0 0 100vmax rgba(20, 20, 23, 0.96) !important;
  }
  body[data-mode="ol"] .top,
  body[data-mode="ol"] .top.scrolled {
    background: rgba(20, 20, 23, 0.96) !important;
    box-shadow: 0 0 0 100vmax rgba(20, 20, 23, 0.96) !important;
  }
  .modeswitch button[aria-pressed="true"],
  body[data-mode="ol"] .modeswitch button[aria-pressed="true"] {
    color: #141417 !important;
  }
  .btn:not(.quiet) {
    color: #141417 !important;
  }
  .btn.quiet,
  .pop,
  .info,
  .panel,
  .fpanel,
  .taste-prof,
  .cmp-wrap,
  .somm-log,
  .prof-move,
  .photo-out,
  .tasks-toggle,
  .menubtn {
    background: var(--surface) !important;
    border-color: var(--rule) !important;
  }
  .field,
  .search input,
  select.field {
    border-color: #4a4b55 !important;
  }
  .rthumb {
    background: color-mix(in srgb, var(--c) 22%, #1d1d22) !important;
  }
  .tchip[aria-pressed="true"],
  .seg button[aria-pressed="true"],
  .mapbar button[aria-pressed="true"],
  .viewswitch button[aria-pressed="true"] {
    color: #141417 !important;
  }
}
/* v18 layout touches */
.top {
  align-items: center !important;
  border-bottom: 0 !important;
  box-shadow:
    0 0 0 100vmax rgba(255, 255, 255, 0.96),
    0 1px 0 100vmax var(--rule) !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.brand {
  align-self: center;
}
.btn,
label.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.home-top {
  max-width: none !important;
}
.home-top .home-lede {
  max-width: 640px;
}
.home-top .home-sform {
  max-width: 880px !important;
}
.home-top .home-doors {
  gap: 18px !important;
}
.stat {
  background: var(--wash);
  border-radius: 14px;
  padding: 16px 18px !important;
}
.stat b {
  font-weight: 700 !important;
  color: var(--garnet);
}
.stat span {
  color: var(--stone) !important;
  font-size: 14.5px;
}
@media (prefers-color-scheme: dark) and (max-width: 0px) {
  .top,
  .top.scrolled,
  body[data-mode="ol"] .top,
  body[data-mode="ol"] .top.scrolled {
    box-shadow:
      0 0 0 100vmax rgba(20, 20, 23, 0.96),
      0 1px 0 100vmax var(--rule) !important;
  }
}
.top,
.top.scrolled {
  clip-path: inset(0 -100vmax -1px) !important;
}
.home-top {
  padding-bottom: 20px !important;
}
.home-pop,
.home-food,
.home-theme,
.home-what {
  margin-top: 40px !important;
}

/* =====================================================================
   v19: hvit og beige, runde kort, glassmerke og bilde på hver vin
   ===================================================================== */
:root {
  --paper: #f4eee5;
  --wash: #ece4d8;
  --rule: #e6ddd0;
  --card-line: #e6ddd0;
  --stone: #5a5249;
  --ink: #211b17;
  --lift: 0 1px 2px rgba(60, 40, 20, 0.05), 0 8px 24px rgba(60, 40, 20, 0.07);
}
body {
  background: var(--paper) !important;
}
.top,
.top.scrolled {
  background: #fffdf9 !important;
  box-shadow:
    0 0 0 100vmax #fffdf9,
    0 1px 0 100vmax var(--rule) !important;
}
.foot {
  background: #ebe3d6 !important;
  box-shadow: 0 0 0 100vmax #ebe3d6 !important;
}
.modeswitch {
  background: #f4eee5 !important;
}

/* every box is a white card with round corners */
.info,
.panel,
.fpanel,
.taste-prof,
.cmp-wrap,
.somm-log,
.prof-move,
.photo-out,
.tasks-toggle,
.pop,
.pick,
.stat,
.home-food,
.side-card,
.cal,
.ord-entry,
.faq details {
  background: #fff !important;
  border: 1px solid var(--rule) !important;
  border-radius: 22px !important;
  box-shadow: var(--lift) !important;
}
.stat {
  padding: 18px 20px !important;
}
.home-food {
  padding: 26px 28px !important;
}
.field,
.search input,
select.field,
.btn.quiet {
  background: #fff !important;
  border-color: #d8cdbd !important;
  border-radius: 14px !important;
}
.btn {
  border-radius: 14px !important;
}
.tchip,
.chip,
.occ {
  background: #fff !important;
  border-color: #d8cdbd !important;
}
.mapwrap,
.map,
#map,
.somm-mapbox {
  border-radius: 22px !important;
  overflow: hidden;
  box-shadow: var(--lift);
}

/* result list: each wine is its own card */
.rlist {
  display: grid;
  gap: 10px;
}
.rlist li + li {
  margin-top: 0 !important;
}
.ritem {
  background: #fff !important;
  border: 1px solid var(--rule) !important;
  border-radius: 20px !important;
  box-shadow: 0 1px 2px rgba(60, 40, 20, 0.04);
  padding: 12px 16px 12px 12px !important;
}
.ritem:hover {
  background: #fff !important;
  border-color: var(--garnet) !important;
  transform: translateY(-1px);
}
.ritem.sel {
  background: #fff !important;
  border-color: var(--garnet) !important;
  box-shadow: 0 0 0 3px var(--garnet-soft) !important;
}
.ritem .rthumb {
  border-radius: 16px !important;
}

/* pictures: round corners and a small glass badge in the wine's colour */
.rthumb {
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--c) 16%, #fbf7f1) !important;
  overflow: visible !important;
}
.rthumb img {
  border-radius: inherit;
}
.rthumb .ph {
  opacity: 0.85;
}
.tbadge {
  position: absolute;
  left: -6px;
  bottom: -6px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(60, 40, 20, 0.25);
  display: grid;
  place-items: center;
}
.tbadge .ph {
  position: static !important;
  transform: none !important;
  width: 20px !important;
  height: 20px !important;
  opacity: 1 !important;
}
.rthumb::after {
  right: -4px !important;
  bottom: -4px !important;
  width: 14px !important;
  height: 14px !important;
  border-width: 2.5px !important;
}
.sg-thumb .tbadge,
.sg-thumb.rthumb::after {
  display: none;
}
.pop-img,
.ritem .rthumb,
.tr-img,
.pick-img {
  margin: 6px 0 6px 6px !important;
}
.pop-img {
  border-radius: 18px !important;
}
.pop {
  border-radius: 22px !important;
  padding: 14px !important;
}
.pop:hover {
  border-color: var(--garnet) !important;
}

/* detail photos and doors: rounder */
.mfig .mimg,
.mfig img {
  border-radius: 18px !important;
}
.door {
  border-radius: 24px !important;
}
.door-text {
  left: 28px !important;
  bottom: 24px !important;
}

@media (prefers-color-scheme: dark) and (max-width: 0px) {
  :root {
    --paper: #1a1714;
    --wash: #25211d;
    --rule: #3a342e;
    --card-line: #3a342e;
    --stone: #bfb5a8;
    --ink: #efe9e1;
  }
  .top,
  .top.scrolled {
    background: #211d19 !important;
    box-shadow:
      0 0 0 100vmax #211d19,
      0 1px 0 100vmax var(--rule) !important;
  }
  .info,
  .panel,
  .fpanel,
  .taste-prof,
  .cmp-wrap,
  .somm-log,
  .prof-move,
  .photo-out,
  .tasks-toggle,
  .pop,
  .pick,
  .stat,
  .home-food,
  .side-card,
  .cal,
  .ord-entry,
  .faq details,
  .ritem,
  .ritem:hover,
  .ritem.sel,
  .field,
  .search input,
  select.field,
  .btn.quiet,
  .tchip,
  .chip,
  .occ {
    background: #24201c !important;
    border-color: var(--rule) !important;
  }
  .modeswitch {
    background: #1a1714 !important;
  }
  .foot {
    background: #211d19 !important;
    box-shadow: 0 0 0 100vmax #211d19 !important;
  }
  .tbadge {
    background: #2e2924;
  }
  .rthumb {
    background: color-mix(in srgb, var(--c) 22%, #24201c) !important;
  }
}
.ritem {
  column-gap: 20px !important;
}
.rlist {
  border-top: 0 !important;
  padding-top: 4px;
}
.list-wrap,
.listbox,
#listView {
  border-top: 0 !important;
}
@media (max-width: 520px) {
  .ritem {
    column-gap: 14px !important;
  }
}

/* v20: no grey text on light backgrounds, and one clear button colour system */
:root {
  --stone: #3d2b20;
}
body[data-mode="ol"] {
  --stone: #3d2b20;
}
.small,
.muted,
.pop-sub,
.rsub,
.rprog,
.pick-sub,
.home-lede,
.home-food-p,
.ord-kind,
.ord-extra,
.where,
.info-k,
.info-hint,
.plabel,
.count,
.map-hint,
.explore-links,
.kicker,
.today-date,
.say-k,
.sum-s,
.somm-speak,
.crumbs,
.block-sub,
dt,
small,
.mcredit,
.legend,
.foot,
.stat span,
.sg-item .sub,
.jvm-legend {
  color: var(--stone) !important;
}
.field::placeholder,
.search input::placeholder {
  color: #6e5545 !important;
  opacity: 1;
}

/* primary: wine red with white text */
.btn:not(.quiet) {
  background: var(--garnet) !important;
  border: 2px solid var(--garnet) !important;
  color: #fff !important;
}
.btn:not(.quiet):hover {
  background: var(--garnet-2) !important;
  border-color: var(--garnet-2) !important;
}
/* secondary: white with a wine red edge and wine red text */
.btn.quiet,
.photo-btn {
  background: #fff !important;
  border: 2px solid var(--garnet) !important;
  color: var(--garnet) !important;
  border-style: solid !important;
}
.btn.quiet:hover,
.photo-btn:hover,
.btn.quiet[aria-expanded="true"],
.btn.quiet[aria-pressed="true"] {
  background: var(--garnet-soft) !important;
  border-color: var(--garnet) !important;
  color: var(--garnet) !important;
}
.btn.danger {
  border-color: #b3261e !important;
  color: #b3261e !important;
}
.btn.danger:hover {
  background: #fdecea !important;
}
/* choices: white with dark text, wine red when chosen */
.seg button,
.viewswitch button,
.mapbar button,
.tchip,
.opt,
.chip,
.occ {
  color: var(--ink) !important;
  background: #fff !important;
}
.seg button:hover,
.viewswitch button:hover,
.mapbar button:hover,
.tchip:hover,
.opt:hover {
  background: var(--garnet-soft) !important;
}
.tchip[aria-pressed="true"],
.seg button[aria-pressed="true"],
.mapbar button[aria-pressed="true"],
.viewswitch button[aria-pressed="true"],
.opt[aria-pressed="true"] {
  background: var(--garnet) !important;
  border-color: var(--garnet) !important;
  color: #fff !important;
}
.modeswitch button:not([aria-pressed="true"]) {
  color: var(--ink) !important;
}
.link,
.link.plain,
a {
  color: var(--garnet) !important;
}
.top .tabs a {
  color: var(--ink) !important;
}
.top .tabs a[aria-current="page"] {
  color: var(--garnet) !important;
}
.top .brand {
  color: var(--garnet) !important;
}
.door,
.door * {
  color: #fff !important;
}
.skip {
  color: #fff !important;
}

@media (prefers-color-scheme: dark) and (max-width: 0px) {
  :root,
  body[data-mode="ol"] {
    --stone: #e6dccf;
  }
  .field::placeholder,
  .search input::placeholder {
    color: #c9b9a6 !important;
  }
  .btn.quiet,
  .photo-btn,
  .seg button,
  .viewswitch button,
  .mapbar button,
  .tchip,
  .opt,
  .chip,
  .occ {
    background: #24201c !important;
  }
  .btn.quiet:hover,
  .photo-btn:hover,
  .seg button:hover,
  .viewswitch button:hover,
  .mapbar button:hover,
  .tchip:hover,
  .opt:hover {
    background: var(--garnet-soft) !important;
  }
  .btn:not(.quiet),
  .tchip[aria-pressed="true"],
  .seg button[aria-pressed="true"],
  .mapbar button[aria-pressed="true"],
  .viewswitch button[aria-pressed="true"],
  .opt[aria-pressed="true"] {
    color: #1a1714 !important;
  }
}
.ord-index span {
  color: var(--stone) !important;
  opacity: 0.6;
}

/* =====================================================================
   v21: hvit bakgrunn, rød-beige og lyserosa knapper, mørkegrå skrift
   ===================================================================== */
:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --wash: #fbf6f4;
  --ink: #262626;
  --stone: #404040;
  --rule: #ece5e2;
  --card-line: #ece5e2;
  --garnet: #a8473c;
  --garnet-2: #93392f;
  --garnet-soft: #fce6e9;
  --pink: #fce6e9;
  --pink-line: #f2c9cf;
  --pink-ink: #8c2f3c;
  --lift: 0 1px 2px rgba(40, 20, 20, 0.04), 0 6px 18px rgba(40, 20, 20, 0.06);
}
body[data-mode="ol"] {
  --garnet: #a8601c;
  --garnet-2: #8f5015;
  --garnet-soft: #fdeedd;
  --pink: #fdeedd;
  --pink-line: #f1d2ae;
  --pink-ink: #7a4510;
  --stone: #404040;
}
body {
  background: #fff !important;
  color: var(--ink);
}
.top,
.top.scrolled {
  background: #fff !important;
  box-shadow:
    0 0 0 100vmax #fff,
    0 1px 0 100vmax var(--rule) !important;
}
.foot {
  background: var(--wash) !important;
  box-shadow: 0 0 0 100vmax var(--wash) !important;
}
.modeswitch {
  background: var(--wash) !important;
}
.brand,
.top .brand {
  color: var(--garnet) !important;
}
.top .tabs a[aria-current="page"] {
  background: var(--pink) !important;
  color: var(--pink-ink) !important;
}
.small,
.muted,
.pop-sub,
.rsub,
.rprog,
.pick-sub,
.home-lede,
.home-food-p,
.ord-kind,
.ord-extra,
.where,
.info-k,
.info-hint,
.plabel,
.count,
.map-hint,
.explore-links,
.kicker,
.today-date,
.say-k,
.sum-s,
.somm-speak,
.crumbs,
.block-sub,
dt,
small,
.mcredit,
.legend,
.foot,
.stat span {
  color: var(--stone) !important;
}

/* cards on white: a thin line and a soft shadow */
.info,
.panel,
.fpanel,
.taste-prof,
.cmp-wrap,
.somm-log,
.prof-move,
.photo-out,
.tasks-toggle,
.pop,
.pick,
.stat,
.side-card,
.cal,
.ord-entry,
.faq details,
.ritem,
.somm-card {
  background: #fff !important;
  border: 1px solid var(--rule) !important;
}
.home-food,
.stat {
  background: var(--wash) !important;
  box-shadow: none !important;
}
.rthumb {
  background: color-mix(in srgb, var(--c) 14%, #fff) !important;
}

/* primary buttons: red-beige with white text */
.btn:not(.quiet) {
  background: var(--garnet) !important;
  border: 2px solid var(--garnet) !important;
  color: #fff !important;
}
.btn:not(.quiet):hover {
  background: var(--garnet-2) !important;
  border-color: var(--garnet-2) !important;
}
/* secondary buttons: light pink */
.btn.quiet,
.photo-btn,
.somm-showmap {
  background: var(--pink) !important;
  border: 1.5px solid var(--pink-line) !important;
  color: var(--pink-ink) !important;
}
.btn.quiet:hover,
.photo-btn:hover,
.btn.quiet[aria-expanded="true"],
.btn.quiet[aria-pressed="true"] {
  background: #f8d3d9 !important;
  border-color: #eab3bc !important;
  color: var(--pink-ink) !important;
}
body[data-mode="ol"] .btn.quiet:hover {
  background: #fbdfbf !important;
  border-color: #e8c08e !important;
}
.btn.danger {
  background: #fff !important;
  border-color: #c0392b !important;
  color: #a52a1f !important;
}
/* choices */
.seg button,
.viewswitch button,
.mapbar button,
.tchip,
.opt,
.chip,
.occ {
  color: var(--ink) !important;
  background: #fff !important;
  border-color: #e4dbd8 !important;
}
.seg button:hover,
.viewswitch button:hover,
.mapbar button:hover,
.tchip:hover,
.opt:hover {
  background: var(--pink) !important;
}
.tchip[aria-pressed="true"],
.seg button[aria-pressed="true"],
.mapbar button[aria-pressed="true"],
.viewswitch button[aria-pressed="true"],
.opt[aria-pressed="true"],
.modeswitch button[aria-pressed="true"] {
  background: var(--garnet) !important;
  border-color: var(--garnet) !important;
  color: #fff !important;
}
.field,
.search input,
select.field {
  background: #fff !important;
  border-color: #ddd3cf !important;
}
.link,
.link.plain,
a {
  color: var(--garnet) !important;
}
.door,
.door * {
  color: #fff !important;
}

/* sommelier: welcome, question groups, guides */
.somm-log {
  min-height: 340px !important;
  max-height: min(66vh, 720px) !important;
}
.somm-welcome {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.somm-hello {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.somm-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.somm-group {
  background: var(--wash);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.somm-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ink);
}
.sg-ico {
  width: 20px;
  height: 20px;
  color: var(--garnet);
  flex: none;
}
.somm-qbtn {
  text-align: left;
  font: inherit;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}
.somm-qbtn:hover {
  background: var(--pink);
  border-color: var(--pink-line);
  color: var(--pink-ink);
}
.somm-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.somm-card {
  border-radius: 20px !important;
  padding: 18px 20px !important;
  box-shadow: var(--lift);
}
.somm-card .section-h {
  margin: 0 0 12px;
  font-size: 17px;
}
.somm-temps {
  margin: 0;
  display: grid;
  gap: 0;
}
.somm-temps div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}
.somm-temps div:first-child {
  border-top: 0;
}
.somm-temps dt {
  font-weight: 400;
}
.somm-temps dd {
  margin: 0;
  font-weight: 700;
  color: var(--garnet);
  white-space: nowrap;
}
.somm-rules {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.somm-rules li::marker {
  color: var(--garnet);
}
.somm-tipsbox {
  margin-top: 18px;
}
.somm-learn {
  margin: 12px 0 0;
}
@media (max-width: 640px) {
  .somm-groups {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 0px) {
  :root {
    --paper: #161616;
    --wash: #202020;
    --ink: #ececec;
    --stone: #d0d0d0;
    --rule: #333;
    --garnet: #e08a7c;
    --garnet-2: #eba194;
    --pink: #3a2428;
    --pink-line: #5a3439;
    --pink-ink: #f5c3cb;
  }
  body[data-mode="ol"] {
    --garnet: #eaa55c;
    --garnet-2: #f0b778;
    --pink: #3a2b18;
    --pink-line: #5a4224;
    --pink-ink: #f6d3a6;
    --stone: #d0d0d0;
  }
  body {
    background: var(--paper) !important;
  }
  .top,
  .top.scrolled {
    background: #1c1c1c !important;
    box-shadow:
      0 0 0 100vmax #1c1c1c,
      0 1px 0 100vmax var(--rule) !important;
  }
  .info,
  .panel,
  .fpanel,
  .taste-prof,
  .cmp-wrap,
  .somm-log,
  .prof-move,
  .photo-out,
  .tasks-toggle,
  .pop,
  .pick,
  .side-card,
  .cal,
  .ord-entry,
  .faq details,
  .ritem,
  .somm-card,
  .somm-qbtn,
  .field,
  .search input,
  select.field,
  .seg button,
  .viewswitch button,
  .mapbar button,
  .tchip,
  .opt,
  .chip,
  .occ {
    background: #1f1f1f !important;
    border-color: var(--rule) !important;
    color: var(--ink) !important;
  }
  .btn:not(.quiet),
  .tchip[aria-pressed="true"],
  .seg button[aria-pressed="true"],
  .mapbar button[aria-pressed="true"],
  .viewswitch button[aria-pressed="true"],
  .modeswitch button[aria-pressed="true"] {
    color: #161616 !important;
    background: var(--garnet) !important;
  }
  .rthumb {
    background: color-mix(in srgb, var(--c) 22%, #1f1f1f) !important;
  }
}
.somm-log.is-empty {
  max-height: none !important;
  overflow: visible !important;
}
.field::placeholder,
.search input::placeholder {
  color: #5a5a5a !important;
}
.small-recs {
  gap: 10px !important;
}
.small-recs .pop {
  padding: 10px !important;
  column-gap: 14px;
}
.somm-side .small-recs .pop {
  box-shadow: none !important;
}
.somm-a {
  border-radius: 18px 18px 18px 6px !important;
  background: var(--wash) !important;
  border: 0 !important;
}
.somm-q {
  border-radius: 18px 18px 6px 18px !important;
  background: var(--garnet) !important;
}
.pick-name {
  font-weight: 700;
}
.somm-acts .btn {
  min-height: 40px;
  font-size: 14.5px;
}

/* v22: clean and plain, nothing flashy */
*,
*::before {
  box-shadow: none;
}
.info,
.panel,
.fpanel,
.taste-prof,
.cmp-wrap,
.somm-log,
.prof-move,
.photo-out,
.tasks-toggle,
.pop,
.pick,
.stat,
.home-food,
.side-card,
.cal,
.ord-entry,
.faq details,
.ritem,
.somm-card,
.somm-group,
.mapwrap,
.map,
#map,
.somm-mapbox,
.door {
  border-radius: 10px !important;
  box-shadow: none !important;
}
.btn,
.btn.quiet,
.field,
.search input,
select.field,
.somm-qbtn,
.photo-btn,
.seg,
.viewswitch {
  border-radius: 6px !important;
}
.tchip,
.chip,
.occ,
.mapbar button,
.modeswitch,
.modeswitch button {
  border-radius: 6px !important;
}
.rthumb,
.ritem .rthumb,
.pop-img,
.mfig .mimg,
.mfig img {
  border-radius: 8px !important;
}
.top .tabs a {
  border-radius: 6px !important;
}
.top,
.top.scrolled {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.pop:hover,
.ritem:hover,
.pick:hover,
.door:hover {
  transform: none !important;
}
.ritem.sel {
  box-shadow: none !important;
}
.door::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 70%) !important;
}
.door-h {
  font-size: clamp(32px, 3.6vw, 44px) !important;
}
main h1,
.view h1,
.home-top h1,
.prof-title {
  font-size: clamp(26px, 3vw, 34px) !important;
  letter-spacing: 0 !important;
}
.view-enter {
  animation: none !important;
}
.somm-group {
  background: #fff !important;
  border: 1px solid var(--rule);
}
.somm-a {
  border-radius: 10px !important;
}
.somm-q {
  border-radius: 10px !important;
}
@media (prefers-color-scheme: dark) and (max-width: 0px) {
  .somm-group {
    background: #1f1f1f !important;
  }
}

/* v23: sharper and plainer, like one person made it */
:root {
  --rule: #d4d4d4;
  --ink: #1f1f1f;
  --stone: #3a3a3a;
  --wash: #f7f7f7;
  --pink-line: #e9b9c0;
}
body[data-mode="ol"] {
  --pink-line: #e2bf8f;
  --stone: #3a3a3a;
}
.info,
.panel,
.fpanel,
.taste-prof,
.cmp-wrap,
.somm-log,
.prof-move,
.photo-out,
.tasks-toggle,
.pop,
.pick,
.stat,
.home-food,
.side-card,
.cal,
.ord-entry,
.faq details,
.ritem,
.somm-card,
.somm-group,
.mapwrap,
.map,
#map,
.somm-mapbox,
.door,
.somm-a,
.somm-q {
  border-radius: 4px !important;
}
.btn,
.btn.quiet,
.field,
.search input,
select.field,
.somm-qbtn,
.photo-btn,
.seg,
.viewswitch,
.tchip,
.chip,
.occ,
.mapbar button,
.modeswitch,
.modeswitch button,
.menubtn {
  border-radius: 3px !important;
}
.rthumb,
.ritem .rthumb,
.pop-img,
.mfig .mimg,
.mfig img {
  border-radius: 3px !important;
}
.info,
.panel,
.fpanel,
.taste-prof,
.cmp-wrap,
.somm-log,
.prof-move,
.photo-out,
.tasks-toggle,
.pop,
.pick,
.side-card,
.cal,
.ord-entry,
.faq details,
.ritem,
.somm-card,
.somm-group {
  border: 1px solid var(--rule) !important;
}
.stat,
.home-food {
  background: #fff !important;
  border: 1px solid var(--rule) !important;
}
.stat b {
  font-size: 30px !important;
}
.field,
.search input,
select.field {
  border: 1px solid #b9b9b9 !important;
}
.btn {
  min-height: 42px;
  font-size: 15px;
  padding: 0 16px;
}
.btn.quiet,
.photo-btn,
.somm-showmap {
  border: 1px solid var(--pink-line) !important;
}
.seg button,
.viewswitch button,
.mapbar button,
.tchip,
.opt,
.chip,
.occ {
  border-color: #c9c9c9 !important;
}

/* top bar: plain line under the active tab */
.top,
.top.scrolled {
  box-shadow:
    0 0 0 100vmax #fff,
    0 2px 0 100vmax var(--garnet) !important;
}
.top .tabs a {
  border-radius: 0 !important;
  background: none !important;
  padding: 8px 4px !important;
  margin: 0 8px;
  border-bottom: 3px solid transparent !important;
}
.top .tabs a:hover {
  background: none !important;
  border-bottom-color: var(--rule) !important;
}
.top .tabs a[aria-current="page"] {
  background: none !important;
  color: var(--garnet) !important;
  border-bottom-color: var(--garnet) !important;
}
.modeswitch {
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid var(--garnet) !important;
}
.modeswitch button {
  border-radius: 0 !important;
  padding: 6px 16px !important;
}
@media (max-width: 960px) {
  body.menu-open .tabs a {
    margin: 0;
    border-bottom: 1px solid var(--rule) !important;
  }
  body.menu-open .tabs a[aria-current="page"] {
    border-left: 3px solid var(--garnet) !important;
    padding-left: 10px !important;
  }
}

/* calmer text sizes */
main h1,
.view h1,
.home-top h1,
.prof-title {
  font-size: clamp(24px, 2.6vw, 30px) !important;
  font-weight: 700;
}
.home-h,
.section-h {
  font-size: 19px !important;
}
.rname,
.pop-name {
  font-size: 16px !important;
}
.door-h {
  font-size: clamp(30px, 3vw, 38px) !important;
}
.door {
  min-height: clamp(150px, 16vw, 210px) !important;
}
.somm-group {
  background: #fff !important;
}
.somm-a {
  background: var(--wash) !important;
  border: 1px solid var(--rule) !important;
}
.tbadge {
  border-radius: 50% !important;
  border: 1px solid var(--rule);
}
@media (prefers-color-scheme: dark) and (max-width: 0px) {
  :root {
    --rule: #3a3a3a;
    --wash: #222;
    --ink: #eee;
    --stone: #d6d6d6;
  }
  body[data-mode="ol"] {
    --stone: #d6d6d6;
  }
  .top,
  .top.scrolled {
    box-shadow:
      0 0 0 100vmax #1c1c1c,
      0 2px 0 100vmax var(--garnet) !important;
  }
  .stat,
  .home-food,
  .modeswitch {
    background: #1f1f1f !important;
  }
}
.top,
.top.scrolled {
  clip-path: inset(0 -100vmax -2px) !important;
}

/* v24: simple. White page, few boxes, lots of space */
main {
  padding-top: 48px !important;
  padding-bottom: 80px !important;
}
.home-pop,
.home-food,
.home-theme,
.home-what,
.prof-recs,
.profile-grid,
.prof-notes,
.prof-move,
.shop {
  margin-top: 64px !important;
}
.home-top {
  padding-bottom: 16px !important;
}
.home-top h1 {
  margin-bottom: 12px !important;
}
.home-top .home-lede {
  margin-bottom: 28px !important;
}
.home-top .home-sform {
  margin-bottom: 32px !important;
}
.home-h,
.section-h {
  margin-bottom: 20px !important;
}

/* lists: plain rows with a line between, no boxes */
.rlist {
  gap: 0 !important;
}
.ritem {
  border: 0 !important;
  border-bottom: 1px solid #e6e6e6 !important;
  border-radius: 0 !important;
  background: #fff !important;
  padding: 18px 8px !important;
}
.ritem:hover {
  background: #fafafa !important;
  border-color: #e6e6e6 !important;
}
.ritem.sel {
  background: var(--pink) !important;
  border-color: #e6e6e6 !important;
}

/* cards on the front page and profile: picture and text, no frame */
.pop-list {
  gap: 28px !important;
}
.pop {
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
}
.pop:hover .pop-name {
  color: var(--garnet);
}
.small-recs {
  gap: 18px !important;
}

/* bigger inner space where a box is still useful */
.info,
.panel,
.fpanel,
.cmp-wrap,
.taste-prof,
.prof-move,
.somm-log,
.somm-card,
.photo-out {
  padding: 28px !important;
  border: 1px solid #e6e6e6 !important;
}
.stat {
  border: 0 !important;
  background: #f7f7f7 !important;
  padding: 22px 24px !important;
}
.stats {
  gap: 20px !important;
  margin: 28px 0 0 !important;
  border: 0 !important;
}
.home-food {
  border: 0 !important;
  background: #f7f7f7 !important;
  padding: 32px !important;
}

/* sommelier: plain lists of questions */
.somm-groups {
  gap: 28px 32px !important;
}
.somm-group {
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
  gap: 8px !important;
}
.somm-hello {
  margin-bottom: 12px !important;
}
.somm-side {
  gap: 28px !important;
}
.somm-side .small-recs .pop {
  border: 0 !important;
  padding: 0 !important;
}
.somm-temps div {
  padding: 11px 0 !important;
}
.somm-rules {
  gap: 10px !important;
}
.somm-form {
  margin-top: 20px !important;
}
.somm-tipsbox {
  margin-top: 32px !important;
}

/* header: just text, colour on the active tab */
.top .tabs a {
  margin: 0 10px !important;
}
.top .tabs a[aria-current="page"] {
  border-bottom-width: 2px !important;
}
.top,
.top.scrolled {
  box-shadow:
    0 0 0 100vmax #fff,
    0 1px 0 100vmax #e6e6e6 !important;
  padding-top: 16px !important;
  padding-bottom: 14px !important;
}
.top .tabs a .ticon {
  display: none;
}
.tbadge {
  border: 0;
}
.ritem .rthumb {
  width: 64px !important;
  height: 64px !important;
}
.ritem {
  grid-template-columns: 64px minmax(0, 1fr) auto 44px !important;
}
@media (max-width: 520px) {
  .ritem {
    grid-template-columns: 56px minmax(0, 1fr) auto !important;
    padding: 16px 4px !important;
  }
  .ritem .rthumb {
    width: 56px !important;
    height: 56px !important;
  }
  main {
    padding-top: 28px !important;
  }
  .home-pop,
  .home-food,
  .home-theme,
  .home-what,
  .prof-recs,
  .profile-grid,
  .prof-notes,
  .prof-move,
  .shop {
    margin-top: 48px !important;
  }
  .info,
  .panel,
  .fpanel,
  .somm-log,
  .somm-card,
  .prof-move {
    padding: 20px !important;
  }
}
@media (prefers-color-scheme: dark) and (max-width: 0px) {
  .ritem,
  .pop {
    background: none !important;
    border-color: #333 !important;
  }
  .ritem:hover {
    background: #1f1f1f !important;
  }
  .stat,
  .home-food {
    background: #1f1f1f !important;
  }
  .top,
  .top.scrolled {
    box-shadow:
      0 0 0 100vmax #1c1c1c,
      0 1px 0 100vmax #333 !important;
  }
}
:root {
  color-scheme: light;
}
/* dropdowns: always dark text on white, in every browser and theme */
select,
select.field,
.field select {
  color: #1f1f1f !important;
  background-color: #fff !important;
  color-scheme: light !important;
  -webkit-text-fill-color: #1f1f1f;
}
select option,
select optgroup {
  color: #1f1f1f !important;
  background-color: #fff !important;
}
select option:checked {
  color: #fff !important;
  background-color: #a8473c !important;
}
/* picture credits */
.foot-img {
  max-width: 820px;
}
.credit-list {
  padding-left: 22px;
  display: grid;
  gap: 14px;
  margin: 18px 0 28px;
}
.credit-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.credit-list a {
  font-weight: 600;
  word-break: break-word;
}
.credit-for {
  font-size: 14px;
  color: var(--stone);
}
.credits h2,
.privacy h2 {
  font-size: 21px !important;
  margin-top: 36px;
}

/* =====================================================================
   v25: ryddig og luftig, ny farge, bunnmeny på mobil, roligere kart
   ===================================================================== */
:root {
  --garnet: #7d2840;
  --garnet-2: #651f33;
  --garnet-soft: #f6e9ed;
  --pink: #f6e9ed;
  --pink-line: #e6c3cd;
  --pink-ink: #6b2236;
  --ink: #222222;
  --stone: #4b4b4b;
  --rule: #e9e5e2;
  --wash: #faf7f4;
}
body[data-mode="ol"] {
  --garnet: #8a4f0f;
  --garnet-2: #74420c;
  --garnet-soft: #f8eedf;
  --pink: #f8eedf;
  --pink-line: #e8cfa8;
  --pink-ink: #6e3f0c;
  --stone: #4b4b4b;
}
body {
  line-height: 1.7;
}
main {
  max-width: 1180px;
  margin: 0 auto;
}

/* header: logo left, menu in the middle, Vin/Øl right */
@media (min-width: 961px) {
  .top {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center;
  }
  .top .tabs {
    justify-self: center;
  }
  .top .modeswitch {
    justify-self: end;
  }
}
.top .tabs a {
  font-weight: 500;
}
.top .tabs a[aria-current="page"] {
  font-weight: 700;
}

/* front page: centred welcome, search and two big doors */
.home-top {
  text-align: center;
  padding: 24px 0 8px !important;
}
.home-top h1 {
  font-size: clamp(28px, 3.4vw, 38px) !important;
  margin: 0 0 12px !important;
}
.home-top .home-lede {
  margin: 0 auto 32px !important;
  max-width: 560px;
}
.home-top .home-sform {
  margin: 0 auto 40px !important;
  max-width: 680px !important;
  text-align: left;
}
.home-top .home-doors {
  text-align: left;
}
.home-top > a,
.home-top .link {
  display: inline-block;
  margin-top: 8px;
}
.home-pop {
  background: var(--wash);
  box-shadow: 0 0 0 100vmax var(--wash);
  clip-path: inset(0 -100vmax);
  padding: 48px 0 !important;
}
.home-pop .pop {
  background: #fff !important;
  padding: 12px !important;
  border: 1px solid var(--rule) !important;
  border-radius: 10px !important;
}

/* search bar on Utforsk */
.toolbar {
  gap: 12px 14px !important;
  margin-bottom: 22px !important;
}
.search input {
  min-height: 50px !important;
  font-size: 16.5px !important;
}

/* list rows breathe more */
.ritem {
  padding: 20px 10px !important;
}
.rname {
  margin-bottom: 2px;
}

/* map: smoother feel */
#map svg {
  will-change: transform;
}
#map path.jvm-region {
  transition: none !important;
}
#map {
  touch-action: none;
  transition: none !important;
}
.jvm-zoom-btn {
  width: 34px !important;
  height: 34px !important;
  line-height: 32px !important;
  font-size: 20px !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid var(--rule) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}
.jvm-zoom-btn.jvm-zoomout {
  top: 58px !important;
}
@media (hover: none) {
  .jvm-tooltip {
    display: none !important;
  }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  body {
    font-size: 16.5px;
  }
  main {
    padding: 20px 18px calc(96px + env(safe-area-inset-bottom)) !important;
  }
  .top,
  .top.scrolled {
    padding: 10px 18px !important;
    display: flex !important;
    justify-content: space-between;
  }
  .brand,
  .top .brand {
    font-size: 23px !important;
  }
  .menubtn {
    display: none !important;
  }

  /* bottom bar with the five main places, always in reach of the thumb */
  .top .tabs,
  body.menu-open .top .tabs {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 !important;
    margin: 0 !important;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)) !important;
    background: #fff;
    border-top: 1px solid var(--rule) !important;
    animation: none !important;
    flex-direction: row !important;
  }
  .top .tabs a,
  body.menu-open .top .tabs a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
    padding: 6px 0 4px !important;
    font-size: 11.5px !important;
    line-height: 1.2;
    border: 0 !important;
    border-left: 0 !important;
    background: none !important;
    color: var(--stone) !important;
    font-weight: 500 !important;
  }
  .top .tabs a .ticon {
    display: block !important;
    width: 22px;
    height: 22px;
    padding: 4px 16px;
    box-sizing: content-box;
    border-radius: 999px;
  }
  .top .tabs a[aria-current="page"] {
    color: var(--garnet) !important;
    font-weight: 700 !important;
  }
  .top .tabs a[aria-current="page"] .ticon {
    background: var(--pink);
  }
  .top .tabs a[data-tab="om"] {
    display: none !important;
  }

  /* things fixed at the bottom sit above the bar */
  .dock {
    bottom: calc(66px + env(safe-area-inset-bottom)) !important;
  }
  body.has-dock main {
    padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important;
  }
  .totop {
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    right: 14px;
  }
  body.has-dock .totop {
    bottom: calc(130px + env(safe-area-inset-bottom)) !important;
  }
  .consent {
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }
  .toast {
    bottom: calc(90px + env(safe-area-inset-bottom)) !important;
    left: 14px;
    right: 14px;
  }
  .foot {
    padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
  }

  /* front page */
  .home-top {
    text-align: left;
    padding-top: 4px !important;
  }
  .home-top h1 {
    font-size: 27px !important;
  }
  .home-top .home-lede {
    margin: 0 0 24px !important;
  }
  .home-top .home-sform {
    margin: 0 0 28px !important;
  }
  .home-doors {
    gap: 14px !important;
  }
  .door {
    min-height: 132px !important;
  }
  .home-pop {
    padding: 36px 0 !important;
  }
  .home-pop,
  .home-food,
  .home-theme,
  .home-what {
    margin-top: 40px !important;
  }

  /* Utforsk: search on its own line, then two buttons, then sort and view */
  .toolbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .toolbar .search {
    grid-column: 1 / -1;
  }
  .toolbar #filterBtn,
  .toolbar #surpriseBtn {
    width: 100%;
    min-height: 46px;
  }
  .sortbox {
    grid-column: 1 / 2;
    min-width: 0;
  }
  .sortbox > span {
    display: none;
  }
  .sortbox select {
    width: 100%;
    min-height: 46px;
  }
  .viewswitch {
    grid-column: 2 / 3;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }
  .viewswitch button {
    min-height: 46px;
  }
  #map {
    height: 58vh !important;
    min-height: 340px;
    border-radius: 10px !important;
  }
  .map-hint {
    font-size: 14px;
  }
  .ritem {
    padding: 18px 4px !important;
  }

  /* sommelier and profile */
  .somm-groups {
    gap: 24px !important;
  }
  .somm-qbtn {
    min-height: 46px;
    font-size: 15px;
  }
  .info,
  .panel,
  .fpanel,
  .somm-log,
  .somm-card,
  .prof-move,
  .taste-prof,
  .cmp-wrap {
    padding: 20px !important;
  }
  .stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  h2,
  .home-h,
  .section-h {
    font-size: 20px !important;
  }
}
@media (max-width: 760px) {
  .top,
  .top.scrolled {
    clip-path: none !important;
    box-shadow: 0 1px 0 var(--rule) !important;
    background: #fff !important;
  }
  .jvm-zoom-btn.jvm-zoomin {
    top: auto !important;
    bottom: 58px !important;
    left: 12px !important;
  }
  .jvm-zoom-btn.jvm-zoomout {
    top: auto !important;
    bottom: 14px !important;
    left: 12px !important;
  }
  .jvm-zoom-btn {
    width: 40px !important;
    height: 40px !important;
    line-height: 38px !important;
  }
}
@media (max-width: 760px) {
  .jvm-zoom-btn.jvm-zoomin {
    top: 62px !important;
    bottom: auto !important;
  }
  .jvm-zoom-btn.jvm-zoomout {
    top: 108px !important;
    bottom: auto !important;
  }
  #map {
    height: min(58vh, 520px) !important;
  }
}
