body {
    display: none !important;
}

:root {
  --bg: #f7f2ea;
  --orange: #ff5a1f;
  --text: #111;
}

/* -------- Fonts -------- */
@font-face {
  font-family: "Nudista";
  src: url("/fonts/nudista-medium.woff2") format("woff2"),
       url("/fonts/nudista-medium.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nudista";
  src: url("/fonts/nudista-semibold.woff2") format("woff2"),
       url("/fonts/nudista-semibold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------- Body -------- */
body {
  background: var(--bg);
  font-family: "Nudista", system-ui, -apple-system, sans-serif;
  color: var(--text);
  font-weight: 700;
}

/* -------- Header -------- */
.site-header {
  max-width: 100%;
  margin: 20px auto 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--orange);
}

.logo img {
  height: 36px;
  margin-left: 60px; /* desktop offset */
}

/* Mobile header adjustments */
@media screen and (max-width: 768px) {
  .site-header {
    display: flex;
    justify-content: left;
    padding-bottom: 1px;
    border-bottom: none;
  }

  .logo img {
    height: 40px;
    margin-left: 10px;
  }
}

/* -------- Menu Title -------- */
.menu-title {
  font-size: 22px;
  font-weight: 700;
  margin: 40px auto 20px;
  max-width: 1000px;
  text-align: center;
}

/* -------- Tables - common -------- */
.beer-table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-collapse: collapse;
}

.beer-table th,
.beer-table td {
  border: 2px solid var(--orange);
  padding: 14px 16px;
  vertical-align: top;
}

.beer-table th {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
}

.beer-table td {
  font-size: 15px;
}

.beer-table .num {
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0.7;
  font-weight: 700;
  padding-left: 10px;
}

.beer-table .epm,
.beer-table .abv,
.beer-table .price {
  text-align: center;
  white-space: nowrap;
}

/* Beer name column */
.beer-table .name strong {
  display: block;
  font-weight: 700;
}

/* Brewery column */
.beer-table .brewery strong {
  display: block;
  font-weight: 700;
  font-size: 15px;
  opacity: 0.85;
}

.beer-table td.price {
  padding: 8px 10px;
  text-align: center;
}

.beer-table td.price .sub-price {
  display: inline-block;
  width: 45%;
  text-align: center;
  font-weight: 700;
}

.beer-table td.price .empty-price {
  color: rgba(255, 90, 31, 0.3);
  font-weight: 700;
  font-size: 18px;
}

.beer-table.desktop tbody tr:nth-child(odd) {
  background-color: rgba(255, 90, 31, 0.05);
}

/* -------- MOBILE TABLE -------- */
.beer-table.mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  /* Hide desktop, show mobile table */
  .beer-table.desktop { display: none; }

  /* -------- Menu Title -------- */
  .menu-title {
    font-size: 24px;
    font-weight: 700;
    margin: 14px auto 8px;
    max-width: 100%;
    text-align: left;
    margin-left: 10px;
  }

  /* FIRST (FIXED) ROW */
  .price-head {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
  }

  /* SECOND (VALUES) ROW */
  .price-values {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
  }

  .empty-price {
    color: rgba(255, 90, 31, 0.35);
  }

  .beer-table.mobile {
    border-left: none;
    border-right: none;
    display: table;
    width: 100%;
    max-width: none;
    margin: 0;
    border-collapse: collapse;
  }

  /* Table headers and cells - top + right borders only, avoids doubled lines */
  .beer-table.mobile th,
  .beer-table.mobile td {
    font-size: 16px;
    line-height: 1.3;
    padding: 12px 8px;
    border: none;
    border-top: 2px solid var(--orange);
    border-right: 2px solid var(--orange);
    vertical-align: top;
  }

  /* No outer left/right borders */
  .beer-table.mobile th:first-child,
  .beer-table.mobile td:first-child {
    border-left: none;
  }

  .beer-table.mobile th:last-child,
  .beer-table.mobile td:last-child {
    border-right: none;
  }

  /* Bottom border on last row */
  .beer-table.mobile tr:last-child th,
  .beer-table.mobile tr:last-child td {
    border-bottom: 2px solid var(--orange);
  }

  /* Beer name column */
  .beer-table.mobile td.name {
    vertical-align: top;
  }

  .beer-table.mobile td.name strong,
  .beer-table.mobile td.name span {
    display: block;
  }

  .beer-table.mobile td.name strong {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .beer-table.mobile td.name span {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 4px;
  }

  /* NUMBER COLUMN */
  .beer-table.mobile td.num {
    width: 1%;
    white-space: nowrap;
  }

  /* PRICE COLUMN */
  .beer-table.mobile td.price {
    width: 30%;
    text-align: right;
    white-space: nowrap;
  }

  /* NAME COLUMN - takes all remaining space */
  .beer-table.mobile td.name {
    width: auto;
  }

  /* Row striping for readability */
  .beer-table.mobile tr:nth-child(even) {
    background-color: rgba(255, 90, 31, 0.05);
  }
}

/* -------- Table Logo -------- */
.table-logo {
  display: none !important;
}

/* -------- TV MODE -------- */
body.tv-mode .beer-table.mobile {
  display: none !important;
}

body.tv-mode .table-logo {
  display: block !important;
  width: auto;
  max-height: 32px;
  height: 32px;
}

body.tv-mode .beer-table th:first-child {
  width: 1%;
  white-space: nowrap;
  padding: 8px 8px;
}

body.tv-mode .site-header {
  display: none !important;
}

body.tv-mode .menu-title {
  display: none !important;
}

body.tv-mode .beer-table.desktop {
  display: table !important;
}

body.tv-mode .beer-table th {
  font-size: 20px;
}

body.tv-mode .beer-table td {
  font-size: 18px;
}

body.tv-mode {
  zoom: 1;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body.tv-mode .beer-table {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-collapse: collapse;
  height: 100vh;
}

/* Remove outer borders, thicker inner lines */
body.tv-mode .beer-table th,
body.tv-mode .beer-table td {
  border: none;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
}

body.tv-mode .beer-table th:first-child,
body.tv-mode .beer-table td:first-child {
  border-left: none;
}

body.tv-mode .beer-table th:last-child,
body.tv-mode .beer-table td:last-child {
  border-right: none;
  white-space: nowrap;
}

body.tv-mode .beer-table tr:last-child th,
body.tv-mode .beer-table tr:last-child td {
  border-bottom: none;
}

body.tv-mode .beer-table thead tr:first-child th {
  border-top: none;
}

body.tv-mode .beer-table tbody tr:nth-child(odd) {
  background-color: rgba(255, 90, 31, 0.05);
}

body.tv-mode .beer-table th {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--text);
}

body.tv-mode .beer-table td {
  font-size: 1.5rem;
  color: var(--text);
}

body.tv-mode .beer-table .num {
  text-align: center;
  white-space: nowrap;
  font-size: 1.4rem;
  opacity: 0.7;
  font-weight: 700;
  padding-left: 10px;
  color: var(--text);
}

/* Beer name column - orange text in TV mode */
body.tv-mode .beer-table td.name {
  color: #E95F25;
}

body.tv-mode .beer-table td.name strong {
  color: #E95F25;
  font-size: 1.5rem !important;
  display: block;
}

/* Brewery column - orange text in TV mode */
body.tv-mode .beer-table th:nth-child(4) {
  width: auto;
}

body.tv-mode .beer-table td.brewery {
  color: #E95F25;
  width: auto;
}

body.tv-mode .beer-table td.brewery strong {
  color: #E95F25;
  font-size: 1.5rem !important;
  display: block;
}

/* EPM column */
body.tv-mode .beer-table th:nth-child(2),
body.tv-mode .beer-table td.epm {
  width: 1%;
  white-space: nowrap;
}

/* ABV column */
body.tv-mode .beer-table th:nth-child(6),
body.tv-mode .beer-table td.abv {
  width: 1%;
  white-space: nowrap;
}

/* NAZEV PIVA - shrink to content */
body.tv-mode .beer-table th:nth-child(3),
body.tv-mode .beer-table td.name {
  width: auto;
  white-space: nowrap;
}

/* PIVOVAR and STYL - expand freely */
body.tv-mode .beer-table th:nth-child(4),
body.tv-mode .beer-table td.brewery,
body.tv-mode .beer-table th:nth-child(5),
body.tv-mode .beer-table td:nth-child(5) {
  width: auto;
}

/* Price column - expands more than PIVOVAR and STYL */
body.tv-mode .beer-table th:last-child,
body.tv-mode .beer-table td.price {
  width: 18%;
  white-space: nowrap;
}

body.tv-mode .beer-table td.price .sub-price {
  width: auto;
}

body.tv-mode .beer-table th.price-header,
body.tv-mode .beer-table td.price {
  display: table-cell;
}

body.tv-mode .beer-table th.price-header span,
body.tv-mode .beer-table td.price .sub-price {
  display: inline-block;
  width: 50%;
  text-align: center;
}

/* Desktop price header */
.beer-table.desktop th.price-header span {
  display: inline;
}

body.tv-mode .beer-table.mobile {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* Apply TV-style header behavior to Desktop */
.beer-table.desktop th.price-header {
  text-align: center; /* Center the container */
  white-space: nowrap;
}

.beer-table.desktop th.price-header span {
  display: inline-block;
  width: 45%; /* Matches your desktop td.price .sub-price width */
  text-align: center;
}
