@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(fonts/montserrat-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(fonts/montserrat-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(fonts/montserrat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 400; font-display: swap; src: url(fonts/montserrat-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Montserrat; font-weight: 500; font-display: swap; src: url(fonts/montserrat-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Montserrat; font-weight: 600; font-display: swap; src: url(fonts/montserrat-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(fonts/montserrat-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Montserrat; font-weight: 700; font-display: swap; src: url(fonts/montserrat-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Colours, type and spacing follow rigawinechampagne.lv (Baltic Wine & Drinks Awards section). */
:root {
  --black: #12110f;
  --black-80: #12110fa6;
  --black-50: #12110f80;
  --black-10: #12110f1a;
  --dark: #2d2c2a;
  --dark-light: #3a3a38;
  --grey: #777776;
  --line: #ddd;
  --paper: #f1f1f1;
  --white: #fff;
  --white-66: #ffffffa8;
  --white-14: #ffffff24;
  --melon: #fbc2b1;
  --melon-dark: #9c695a;
  --bar: 80px;
  --strip: 80px;
  --pad: calc(31.4px + 8.93vw);
  --side: 360px;
  --fade: 0.3s linear;
}
@media (min-width: 1441px) { :root { --pad: 160px; } }
@media (max-width: 991px) { :root { --bar: 64px; --strip: 64px; --pad: 40px; } }
@media (max-width: 767px) { :root { --pad: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scrollbar-color: #ccc transparent; }
body {
  margin: 0;
  font: 400 16px/1.6 Montserrat, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, fieldset, legend { margin: 0; padding: 0; border: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; cursor: pointer; }
svg { display: block; flex: none; width: 18px; height: 18px; }
svg.arrow { width: 40px; height: 8px; transition: transform 0.3s ease-in-out; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--melon-dark); outline-offset: 2px; }
::selection { background: var(--melon); color: var(--black); }

/* Language: both are in the markup, <html lang> picks one. */
html[lang="en"] span[lang="lv"], html[lang="lv"] span[lang="en"] { display: none; }

.skip {
  position: absolute; z-index: 100; top: 0; left: 0;
  padding: 10px 20px; background: var(--white);
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  transform: translateY(-1000%);
}
.skip:focus { transform: none; }

/* ---------- black bar ---------- */

.nav {
  position: relative; z-index: 30;
  display: flex; align-items: stretch;
  height: var(--bar);
  background: var(--black); color: var(--white);
}
.nav-brand {
  flex: none; width: var(--bar); height: var(--bar);
  display: flex; align-items: center; justify-content: center;
  background: var(--dark); color: var(--black);
  transition: background-color var(--fade);
}
.nav-brand:hover { background: var(--dark-light); }
.nav-brand svg { width: 28px; height: 28px; }
.nav-main { flex: 1; min-width: 0; display: flex; align-items: stretch; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; white-space: nowrap;
  color: var(--white-66);
  transition: color var(--fade);
}
.nav-link:hover, .nav-link[aria-current] { color: var(--white); }
.nav-link.is-back svg { transform: scaleX(-1); }
.nav-link.is-back:hover svg { transform: scaleX(-1) translateX(4px); }

.nav-locales { flex: none; display: flex; margin-left: auto; }
.nav-locales button {
  width: var(--bar); height: var(--bar);
  font-size: 12px; font-weight: 500;
  background: var(--paper); color: var(--black);
  transition: background-color var(--fade);
}
.nav-locales button:hover,
html[lang="en"] .nav-locales [data-lang="en"], html[lang="lv"] .nav-locales [data-lang="lv"] { background: var(--white); }

/* ---------- melon strip ---------- */

.strip {
  position: relative; z-index: 29;
  display: flex; align-items: stretch;
  height: var(--strip);
  background: var(--melon);
}
.strip-link, .strip-label {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; white-space: nowrap;
  color: var(--black-80);
  transition: color var(--fade);
}
.strip-link svg { width: 12px; height: 12px; }
.strip-link:hover, .strip-link[aria-current] { color: var(--black); }
.strip-link[aria-current] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--black); }
.strip-label { padding-right: 0; color: var(--black-50); }

/* ---------- buttons, fields, checks ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  padding: 15px 30px;
  font-size: 14px; line-height: 22px; font-weight: 500; text-transform: uppercase; text-align: center;
  background: var(--melon); color: var(--black-50);
  transition: background-color var(--fade), color var(--fade);
}
.button:hover { color: var(--black); }
.button:hover .arrow { transform: translateX(4px); }
.button.is-filters { width: 100%; justify-content: space-between; padding: 15px 20px; }
.button.is-filters span { flex: 1; }
.button:disabled { background: var(--paper); color: var(--black-50); cursor: default; }
.text-link {
  font-size: 14px; font-weight: 500; text-transform: uppercase;
  color: var(--black-80); transition: color var(--fade);
}
.text-link:hover { color: var(--melon-dark); }

.field { position: relative; display: block; }
.field svg { position: absolute; top: 50%; left: 20px; margin-top: -9px; pointer-events: none; }
.field input {
  display: block; width: 100%; height: 52px;
  padding: 0 20px 0 56px; margin: 0;
  font: inherit; font-size: 14px; color: var(--black);
  background: var(--paper); border: 0; border-radius: 0; outline-offset: 0;
  -webkit-appearance: none; appearance: none;
}
.field input:focus-visible { outline: 1px solid var(--black); outline-offset: -1px; }
.field input::placeholder { color: var(--black-50); opacity: 1; }
.field input::-webkit-search-cancel-button { display: none; }

.check {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  min-height: 52px; padding: 13px 20px;
  font-size: 14px; font-weight: 500;
  background: var(--paper); cursor: pointer;
  transition: background-color var(--fade);
}
.check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.check-tick { flex: none; width: 18px; height: 18px; box-shadow: inset 0 0 0 1px var(--black); color: transparent; }
.check-tick svg { width: 18px; height: 18px; padding: 3px; }
.check input:checked + .check-tick { background: var(--black); color: var(--white); }
.check:has(input:focus-visible) { outline: 2px solid var(--melon-dark); outline-offset: 2px; }

/* ---------- directory of venues (index page + sidebar) ---------- */

.dir-filters { display: flex; flex-direction: column; gap: 40px; }
.dir-results { display: flex; flex-direction: column; gap: 20px; }
.dir-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dir-group legend { margin-bottom: 20px; font-size: 20px; font-weight: 700; }

.dir-city + .dir-city { margin-top: 40px; }
.dir-city h3 { padding-bottom: 12px; font-size: 20px; line-height: 1.6; font-weight: 700; border-bottom: 1px solid var(--black); }
.dir-row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.dir-name { font-weight: 500; }
.dir-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.dir-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 0;
  font-size: 12px; line-height: 20px; font-weight: 500; text-transform: uppercase;
  color: var(--black-80);
  transition: color var(--fade), box-shadow var(--fade);
}
.dir-links svg { width: 10px; height: 10px; }
.dir-links a:hover { color: var(--black); box-shadow: inset 0 -1px 0 var(--black); }
.dir-links a[aria-current] { color: var(--black); font-weight: 600; box-shadow: inset 0 -2px 0 var(--black); }
.dir-empty { padding: 20px 0; color: var(--black-80); }
.dir-note { margin-top: 40px; font-size: 14px; color: var(--grey); }

/* ---------- index page ---------- */

body.index { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
/* As on the awards site: the black bar scrolls away, the bottles and the melon strip stay. */
.index .nav { padding-left: var(--bar); }
.index .nav-brand { position: fixed; top: 0; left: 0; z-index: 31; }
.index .nav-main { padding-left: calc(var(--pad) - var(--bar) - 20px); }
.index .strip { position: sticky; top: 0; padding-left: calc(var(--pad) - 20px); }

.page { flex: 1; padding: 0 var(--pad) 120px; }
.page-head { padding: 96px 0 80px; }
.page-head h1 { font-size: 52px; line-height: 1.3; font-weight: 600; }
.page-head p { max-width: 768px; margin-top: 20px; }
.page-head .button { margin-top: 40px; }

.index .dir { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 60px; align-items: start; }
.index .dir-filters { position: sticky; top: calc(var(--strip) + 34px); }

.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: 24px 6px 26px;
  background: var(--black);
}
.footer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  color: var(--white-66); transition: color var(--fade);
}
.footer-link:hover { color: var(--white); }
.footer-link:hover .arrow { transform: translateX(4px); }

/* The sidebar only searches; categories live on the full page. */
.side .dir-group { display: none; }
.side .dir-results { display: none; flex-direction: row; align-items: center; justify-content: flex-end; gap: 12px; font-size: 14px; }
.side .is-filtered .dir-results { display: flex; padding-bottom: 4px; }
.side .button.is-filters { width: auto; gap: 8px; padding: 0; font-size: 12px; background: none; color: var(--black-80); }
.side .button.is-filters:hover { color: var(--black); }
.side .button.is-filters svg { width: 10px; height: 10px; }
@media (max-width: 991px) {
  .index .nav-main { padding-left: 4px; }
  .index .nav-link.is-away { display: none; }
  .index .strip { padding-left: calc(var(--bar) + 4px); }
  .page { padding-bottom: 80px; }
  .page-head { padding: 64px 0 48px; }
  .page-head h1 { font-size: 36px; }
  .index .dir { display: block; }
  .index .dir-filters { position: static; gap: 12px; margin-bottom: 40px; }
  .index .dir-results { flex-direction: row; align-items: center; justify-content: flex-end; gap: 12px; min-height: 32px; order: 3; font-size: 14px; }
  .index .dir-group { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .index .dir-group legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .index .check { gap: 10px; min-height: 0; padding: 8px 12px; font-size: 12px; line-height: 20px; text-transform: uppercase; background: var(--white); box-shadow: inset 0 0 0 1px var(--black); }
  .index .check:has(input:checked) { background: var(--black); color: var(--white); }
  .index .check-tick { display: none; }
  .index .button.is-filters { width: auto; gap: 8px; padding: 5px 0; font-size: 12px; background: none; color: var(--black-80); }
  .index .button.is-filters svg { width: 12px; height: 12px; }
  .index .button.is-filters:disabled { display: none; }
}

/* ---------- viewer ---------- */

body.viewer {
  --bar: 56px; --strip: 48px;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper);
}
.viewer .nav, .viewer .strip { flex: none; }
.nav-title {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 20px;
  border-left: 1px solid var(--white-14);
}
.nav-title h1 { font-size: 15px; line-height: 1.3; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-title p { font-size: 12px; line-height: 1.5; font-weight: 500; text-transform: uppercase; color: var(--white-66); white-space: nowrap; }

.side-toggle {
  flex: none; min-width: var(--bar);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 0 20px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; white-space: nowrap;
  background: var(--black); color: var(--white);
  transition: background-color var(--fade);
}
.side-toggle:hover { background: var(--dark); }
.side-toggle svg + svg, .side-toggle[aria-expanded="true"] svg:first-child { display: none; }
.side-toggle[aria-expanded="true"] svg + svg { display: block; }

.tabs { flex: 1; min-width: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tools { flex: none; display: flex; align-items: stretch; }
.pages { display: flex; align-items: center; padding: 0 12px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--black-80); }
.tool {
  flex: none; width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--black);
  transition: background-color var(--fade), color var(--fade);
}
.tool:hover { background: var(--black-10); }
.tool:disabled { color: var(--black-50); opacity: 0.6; cursor: default; background: none; }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--melon-dark); transition: width 0.2s, opacity 0.4s 0.2s; }
.progress.done { opacity: 0; }

.work { position: relative; flex: 1; min-height: 0; display: flex; }
.stage { position: relative; flex: 1; min-width: 0; }
#viewerContainer { position: absolute; inset: 0; overflow: auto; outline: none; -webkit-overflow-scrolling: touch; }
.pdfViewer { --page-bg-color: var(--white); padding: 20px 0 40px; }
.pdfViewer.removePageBorders .page { margin: 0 auto 12px; box-shadow: 0 0 0 1px var(--line); }
.status {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  padding: 20px; text-align: center; color: var(--black-80);
  pointer-events: none;
}
.status a { pointer-events: auto; }
.status div { display: flex; flex-direction: column; align-items: center; gap: 20px; color: var(--black); }
iframe.native { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--paper); }

.findbar {
  position: absolute; top: 0; right: 0; z-index: 5;
  width: min(100%, 480px);
  display: flex; align-items: center;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
.findbar .field { flex: 1; min-width: 0; }
.findbar .field input { background: none; font-size: 16px; padding-right: 8px; }
.find-count { padding: 0 8px; font-size: 12px; font-weight: 500; color: var(--black-80); white-space: nowrap; font-variant-numeric: tabular-nums; }
.findbar .tool { width: 44px; height: 52px; }

/* ---------- sidebar: all lists ---------- */

.side {
  display: none; flex-direction: column;
  width: var(--side); max-width: 100%;
  background: var(--white);
  box-shadow: 1px 0 0 var(--line);
}
.side-open .side { display: flex; }
.side-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 12px; }
.side-head h2, .side-full { font-size: 12px; line-height: 20px; font-weight: 500; text-transform: uppercase; }
.side-head h2 { color: var(--black-50); }
.side-full { display: flex; align-items: center; gap: 10px; color: var(--black-80); transition: color var(--fade); }
.side-full svg { width: 24px; }
.side-full:hover { color: var(--black); }
.side-full:hover .arrow { transform: translateX(4px); }
.side-body { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 20px 28px; }
.side-status { padding: 12px 0; font-size: 14px; color: var(--black-80); }
.side .dir-filters { position: sticky; top: 0; z-index: 1; gap: 12px; padding-bottom: 12px; background: var(--white); }
.side .field input { height: 44px; }
.side .dir-city { margin-top: 20px; }
.side .dir-city + .dir-city { margin-top: 28px; }
.side .dir-city h3 { padding-bottom: 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--black-50); border-color: var(--line); }
.side .dir-row { margin: 0 -20px; padding: 10px 20px; border: 0; }
.side .dir-row:hover { background: #f8f8f8; }
.side .dir-name { font-size: 15px; }
.side .dir-row[aria-current] { background: var(--paper); }
.side .dir-row[aria-current] .dir-name { font-weight: 600; }
.side .dir-note { margin-top: 28px; font-size: 12px; }
.scrim { display: none; }

/* Medium and small screens: the sidebar lies over the list instead of beside it. */
@media (max-width: 1199px) {
  .side { position: absolute; top: 0; bottom: 0; left: 0; z-index: 21; animation: side-in 0.3s ease-in-out; }
  .side-open .scrim { display: block; position: absolute; inset: 0; z-index: 20; background: var(--black-50); animation: fade-in 0.3s linear; }
}
@keyframes side-in { from { transform: translateX(-24px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 767px) {
  .viewer .nav-link.is-back { padding: 0 14px; }
  .viewer .nav-link.is-back span { display: none; }
  .viewer .nav-link.is-back svg { width: 28px; }
  .nav-title { padding: 0 14px; }
  /* As on the awards site's phone layout: only the other language is offered. */
  html[lang="en"] .nav-locales [data-lang="en"], html[lang="lv"] .nav-locales [data-lang="lv"] { display: none; }
  .side-toggle { padding: 0; }
  .side-full span { display: none; }
  .side-toggle span { display: none; }
  .viewer .strip-link { padding: 0 12px; }
  .pages { padding: 0 8px; }
  .tool { width: 40px; }
  .pdfViewer { padding-top: 0; }
  .pdfViewer.removePageBorders .page { margin-bottom: 8px; }
  .side { --side: 100%; box-shadow: none; }
  .dir-row { flex-direction: column; gap: 2px; }
  .dir-links a { padding: 6px 0; }
}
@media (pointer: coarse) {
  #zoom-in, #zoom-out { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .nav, .strip, .findbar, .side, .scrim, .footer { display: none !important; }
}
