/* RestauranteTonys — menu board
   Nunito + Source Serif 4, SIL OFL, files live in assets/fonts */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2a1c14;
  --ink-soft: #5e4636;
  --cream: #f6f0e4;
  --paper: #fffaf3;
  --table: #e7d9c4;
  --tomato: #c43824;
  --tomato-deep: #8e2616;
  --olive: #44501f;
  --olive-line: #5d6b30;
  --line: #ddcfc0;
  --dot: #b7a38e;
  --round: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --measure: 68ch;
  color-scheme: light;
}

/* reset */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--table);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}

img { border: 0; }

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--round);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { margin: 0.65em 0; }

ul, ol { margin: 0.5em 0; }

/* typography */

.skip {
  position: absolute;
  left: 10px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 10px;
  z-index: 80;
  font-family: var(--round);
  font-weight: 800;
}

.skip:focus { top: 8px; }

:focus-visible {
  outline: 2px solid var(--tomato);
  outline-offset: 2px;
}

::selection {
  background: #f0c2b4;
  color: var(--ink);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* layout */

.paper {
  width: min(1100px, calc(100% - 16px));
  margin: 10px auto 20px;
  background: var(--cream);
  border: 1px solid #d3c3ad;
  border-top: 8px solid var(--tomato);
  padding: 0 14px 10px;
}

.top__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  padding-top: 14px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1 1 210px;
}

.brand__mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: block;
  object-fit: contain;
}

.brand__text { min-width: 0; }

.burger svg,
.bell svg,
.modal__x svg,
.topper svg,
.btn svg,
.shots__nav svg {
  display: block;
  flex: 0 0 auto;
}

.brand__name {
  display: block;
  font-family: var(--round);
  font-weight: 800;
  font-size: clamp(1.28rem, 3.4vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand__tag {
  display: block;
  margin-top: 4px;
  font-family: var(--round);
  font-weight: 700;
  font-size: 13px;
  color: var(--olive);
  line-height: 1.3;
}

.userbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  margin-left: auto;
}

.signin {
  font-family: var(--round);
  font-weight: 800;
  font-size: 14px;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  padding: 7px 11px;
  white-space: nowrap;
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  font-family: var(--round);
  font-weight: 800;
  font-size: 14px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--round);
  font-weight: 800;
  font-size: 12px;
  flex: 0 0 auto;
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 20px;
}

.logout {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 1px;
  font-family: var(--round);
  font-weight: 800;
  font-size: 14px;
}

.bellwrap { position: relative; }

.bell {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
}

.bell__count {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: var(--tomato);
  color: var(--paper);
  font-family: var(--round);
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.drop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, 78vw);
  background: var(--paper);
  border: 1px solid var(--ink);
  z-index: 40;
  padding: 4px 0 0;
}

.drop a.item {
  display: block;
  padding: 8px 12px 9px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dotted var(--line);
  font-size: 15px;
  line-height: 1.35;
}

.drop a.item.is-new {
  background: #f8e7df;
  font-weight: 600;
}

.drop time {
  display: block;
  margin-top: 3px;
  font-family: var(--round);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.drop__all {
  display: block;
  text-align: center;
  padding: 10px 8px;
  font-family: var(--round);
  font-weight: 800;
  font-size: 14px;
  color: var(--olive);
  text-decoration: none;
}

.burger {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 10px 0 2px;
  background: transparent;
  border: 1px solid var(--ink);
  font-family: var(--round);
  font-weight: 800;
  font-size: 14px;
  padding: 6px 10px;
}

.js .burger { display: inline-flex; }

.menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 8px 0 4px;
  padding: 6px 0 8px;
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink); /* the double rule is the menu; don't flatten it */
}

.js .menu { display: none; }

.js .menu.is-open { display: flex; }

.menu a {
  font-family: var(--round);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
}

.menu a.is-on {
  color: var(--tomato);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu .dot { display: none; color: var(--tomato); }

.foot {
  margin-top: 28px;
  padding: 14px 0 18px;
  border-top: 3px double var(--ink);
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
}

.foot a {
  font-family: var(--round);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
}

.foot .dot {
  margin: 0 8px;
  color: var(--tomato);
}

.copy {
  margin: 8px 0 0;
  font-family: var(--round);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.topper {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--round);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  padding: 8px 10px;
}

.js .topper {
  opacity: 0;
  pointer-events: none;
}

.js .topper.is-on {
  opacity: 1;
  pointer-events: auto;
}

/* components */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--round);
  font-weight: 800;
  font-size: 15px;
  background: var(--tomato);
  color: var(--paper);
  border: 0;
  padding: 10px 12px;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}

.btn:hover { background: var(--tomato-deep); }

.btn--line {
  background: transparent;
  color: var(--olive);
  border: 1px solid var(--olive);
}

.btn--line:hover {
  background: #e7edd4;
  color: var(--olive);
}

.btn--ink {
  background: var(--ink);
}

.btn--ink:hover { background: #1a100c; }

.course {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: 26px 0 4px;
}

.course h2 {
  margin: 0;
  font-size: 1.28rem;
}

.course__lead {
  flex: 1 1 32px;
  border-bottom: 1px dotted var(--dot);
  min-width: 20px;
  /* safari: dotted leaders jump a pixel without the nudge */
  transform: translateY(-5px);
}

.course a {
  font-family: var(--round);
  font-weight: 800;
  font-size: 13px;
  color: var(--olive);
  text-decoration: none;
  white-space: nowrap;
}

.course a:hover { color: var(--tomato); }

.board {
  display: grid;
  grid-template-columns: 1fr;
}

.mitem {
  display: block;
  padding: 11px 2px 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.mitem:hover { background: rgba(255, 250, 243, 0.7); }

.mitem:hover .mitem__name { color: var(--tomato); }

.mitem__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 2px;
  min-width: 0;
}

.mitem__name {
  font-family: var(--round);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.mitem__lead {
  flex: 1 1 14px;
  border-bottom: 1px dotted var(--dot);
  transform: translateY(-4px);
  min-width: 12px;
  margin: 0 6px;
}

.mitem__ver {
  font-family: var(--round);
  font-weight: 800;
  font-size: 14px;
  color: var(--tomato);
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.mitem__bot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 7px;
  min-width: 0;
}

.mitem__ico {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: block;
}

.mitem__cat {
  font-family: var(--round);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--olive);
  overflow-wrap: anywhere;
}

.mitem__flag {
  font-family: var(--round);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tomato);
}

.mitem__size {
  margin-left: auto;
  font-family: var(--round);
  font-weight: 800;
  font-size: 12px;
  color: var(--olive);
  border: 1px solid var(--olive-line);
  padding: 1px 6px;
  white-space: nowrap;
}

.stamp {
  display: inline-block;
  margin: 0 0 6px;
  border: 2px solid var(--tomato);
  color: var(--tomato);
  font-family: var(--round);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 7px 2px;
  transform: rotate(-8deg);
}

.special {
  border: 3px double var(--ink);
  background: var(--paper);
  padding: 13px 15px 16px;
}

.special__kicker {
  margin: 2px 0 0;
  font-family: var(--round);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tomato);
}

.special__day {
  margin: 2px 0 8px;
  font-family: var(--round);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-soft);
}

.special__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.special__link img {
  width: 64px;
  height: 64px;
  display: block;
  margin-bottom: 8px;
}

.special__name {
  font-family: var(--round);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.special__blurb {
  margin: 8px 0 0;
  font-size: 0.98rem;
}

.picks { margin-top: 22px; }

.picks h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.pick {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 1px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dotted var(--dot);
  text-decoration: none;
  color: inherit;
}

.pick img {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
}

.pick__name {
  font-family: var(--round);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pick__meta {
  font-family: var(--round);
  font-size: 12px;
  font-weight: 700;
  color: var(--tomato);
}

.pick:hover .pick__name { color: var(--tomato); }

.byline {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.byline h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.byline__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.byline__name {
  margin: 0;
  font-family: var(--round);
  font-weight: 800;
}

.byline p { margin: 4px 0 0; font-size: 0.96rem; }

.ticks {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.ticks li {
  position: relative;
  padding-left: 16px;
  margin: 5px 0;
}

.ticks li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--tomato);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 14px 0 0;
  font-family: var(--round);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.crumbs a { color: var(--olive); text-decoration: none; }

.crumbs a:hover { color: var(--tomato); }

.lede { max-width: var(--measure); }

.catlink {
  font-family: var(--round);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px solid var(--olive);
}

.updated {
  margin: 6px 0 0;
  font-family: var(--round);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.prog__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.prog__icon { width: 64px; height: 64px; display: block; }

.prog__head h1 {
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  overflow-wrap: anywhere;
}

.shots { margin-top: 18px; min-width: 0; }

.shots__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.shots__bar h2 { margin: 0; font-size: 1.15rem; }

.shots__nav { display: flex; gap: 6px; }

.shots__nav button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--round);
  font-weight: 800;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--olive);
  color: var(--olive);
  padding: 4px 8px;
}

.shots__row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 4px;
  max-width: 100%;
}

.shots__row figure {
  margin: 0;
  flex: 0 0 auto;
  width: min(520px, 86%);
  scroll-snap-align: start;
}

.shots__row img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  background: #fff;
}

.shots figcaption {
  margin-top: 4px;
  font-family: var(--round);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.rail {
  margin-top: 16px;
  border-top: 1px solid var(--ink);
  padding-top: 10px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.actions .btn { width: 100%; }

.facts { margin: 12px 0 0; }

.facts div {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--dot);
  font-size: 14.5px;
}

.facts dt {
  font-family: var(--round);
  font-weight: 800;
  font-size: 13px;
  color: var(--olive);
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.tabs { margin-top: 18px; min-width: 0; }

.tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--ink);
}

.tabs__btn {
  font-family: var(--round);
  font-weight: 800;
  font-size: 14px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 8px 12px;
  margin-bottom: -1px;
  color: var(--ink-soft);
}

.tabs__btn[aria-selected="true"] {
  color: var(--tomato);
  border-bottom-color: var(--tomato);
}

.prose {
  max-width: var(--measure);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.prose h2 {
  font-size: 1.42rem;
  margin: 1.45em 0 0.35em;
}

.prose h3 {
  font-size: 1.12rem;
  margin: 1.2em 0 0.3em;
}

.prose a {
  color: var(--tomato-deep);
  text-underline-offset: 2px;
}

.prose blockquote {
  margin: 1.1rem 0;
  padding: 0.1rem 0 0.1rem 14px;
  border-left: 3px solid var(--tomato);
  color: var(--ink-soft);
  font-style: italic;
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #efe6d4;
  padding: 0 0.28em;
}

.prose pre {
  overflow-x: auto;
  max-width: 100%;
  background: #efe6d4;
  border-left: 3px solid var(--olive);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.prose pre code { background: none; padding: 0; }

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 0.8rem 0 1rem;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 6px 8px;
  vertical-align: top;
}

.prose th {
  font-family: var(--round);
  font-size: 13px;
  font-weight: 800;
}

.faq { margin: 8px 0 4px; max-width: var(--measure); }

.faq h2 { font-size: 1.35rem; margin: 1.4rem 0 6px; }

.faq details {
  border-bottom: 1px dotted var(--dot);
  padding: 8px 0 10px;
}

.faq summary {
  font-family: var(--round);
  font-weight: 800;
  cursor: pointer;
}

.faq details p { margin: 8px 0 2px; }

.cmtwrap { margin-top: 22px; max-width: 70ch; }

.cmt__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
}

.cmt__head h2 { margin: 0; font-size: 1.35rem; }

.cmt__n {
  color: var(--tomato);
  font-variant-numeric: tabular-nums;
}

.cmt__sort { display: flex; gap: 6px; }

.cmt__sort button {
  font-family: var(--round);
  font-weight: 800;
  font-size: 13px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 4px 2px;
  color: var(--ink-soft);
}

.cmt__sort button[aria-pressed="true"] {
  color: var(--tomato);
  border-bottom-color: var(--tomato);
}

.cform { margin: 12px 0; }

.cform textarea,
.field input,
.field textarea,
.find input,
.replybox textarea {
  width: 100%;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 8px 10px;
  border-radius: 0;
}

.cform textarea { min-height: 110px; resize: vertical; }

.hint {
  margin: 6px 0;
  font-family: var(--round);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.formerr {
  background: #f8e4dc;
  border-left: 3px solid var(--tomato);
  padding: 8px 10px;
  font-family: var(--round);
  font-weight: 700;
  font-size: 14px;
  color: var(--tomato-deep);
  margin: 0 0 12px;
}

.field .formerr {
  background: none;
  border: 0;
  padding: 0;
  margin: 3px 0 0;
  font-size: 13px;
}

.oknote {
  background: #e5ead4;
  border-left: 3px solid var(--olive);
  padding: 8px 10px;
  font-family: var(--round);
  font-weight: 700;
  margin: 0 0 12px;
}

.trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cmt {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cmt--hold { opacity: 0.55; }

.cmt__who { margin: 0; font-family: var(--round); font-weight: 800; }

.cmt__who time {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: 2px;
}

.cmt__body { margin: 6px 0; }

.cmt__tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.like, .reply {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--round);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-soft);
}

.like[aria-pressed="true"] { color: var(--tomato); }

.badge {
  display: inline-block;
  font-family: var(--round);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--tomato);
  color: var(--tomato);
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: 1px;
}

.badge--no {
  border-color: var(--ink-soft);
  color: var(--ink-soft);
}

.replies {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--line);
}

.replies .cmt { border-bottom: 0; padding: 8px 0; }

.replybox { margin-top: 8px; }

.replybox label {
  display: block;
  font-family: var(--round);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 4px;
}

.replybox textarea { min-height: 72px; }

.replybox .btn { margin-top: 6px; }

.gate {
  padding: 12px;
  background: var(--paper);
  border: 1px dashed var(--olive);
}

.gate a { color: var(--tomato-deep); }

.empty {
  border: 1px dashed var(--olive);
  padding: 14px 14px 16px;
  max-width: 52ch;
  background: var(--paper);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 8px;
  font-family: var(--round);
  font-weight: 800;
}

.pager a, .pager .is-now, .pager__gap {
  min-width: 36px;
  text-align: center;
  padding: 6px 8px;
  text-decoration: none;
  color: var(--ink);
}

.pager .is-now {
  color: var(--tomato);
  box-shadow: inset 0 -2px 0 var(--tomato);
}

.modal[hidden],
.tabs__panel[hidden],
.drop[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal__back {
  position: absolute;
  inset: 0;
  background: rgba(42, 28, 20, 0.48);
  border: 0;
  padding: 0;
}

.modal__box {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 740px);
  overflow: auto;
  background: var(--paper);
  border: 3px double var(--ink);
  padding: 16px 16px 18px;
}

.modal__x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  background: var(--cream);
  display: grid;
  place-items: center;
  padding: 0;
}

.modal__box h2 {
  margin: 0 28px 8px 0;
  font-size: 1.35rem;
}

.mirrors { margin-top: 12px; }

.mirrors h3 {
  margin: 12px 0 6px;
  font-size: 1rem;
}

.mirrors .btn { margin: 0 8px 8px 0; }

.oldlist { list-style: none; padding: 0; margin: 8px 0 0; }

.oldlist li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--dot);
}

.oldlist a { color: var(--tomato-deep); }

/* pages */

.auth {
  max-width: 440px;
  margin: 18px auto 32px;
  border: 3px double var(--ink);
  background: var(--paper);
  padding: 14px 14px 16px;
}

.auth h1 { margin: 0 0 8px; font-size: 1.7rem; }

.field { margin: 0 0 12px; }

.field label, .check {
  display: block;
  font-family: var(--round);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.check input { width: auto; }

.auth .btn { width: 100%; margin-top: 4px; }

.auth__links {
  margin: 12px 0 0;
  font-family: var(--round);
  font-size: 14px;
  font-weight: 700;
}

.auth__links a { color: var(--olive); }

.profile {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.profile h1 { margin: 0; font-size: 1.6rem; }

.profile__mail {
  margin: 2px 0 0;
  font-family: var(--round);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}

.atabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 12px 0 14px;
  border-bottom: 1px solid var(--ink);
}

.atabs a {
  font-family: var(--round);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 10px;
}

.atabs a[aria-current="page"] {
  color: var(--tomato);
  box-shadow: inset 0 -3px 0 var(--tomato);
}

.inbox { list-style: none; padding: 0; margin: 0; max-width: 68ch; }

.inbox li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.inbox a { color: var(--ink); font-weight: 600; }

.inbox time {
  display: block;
  margin-top: 3px;
  font-family: var(--round);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.inbox .is-new { background: #f8e7df; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }

.mine {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  max-width: 68ch;
}

.mine h3 { margin: 0 0 4px; font-size: 1.05rem; }

.mine h3 a { color: inherit; text-decoration: none; }

.mine h3 a:hover { color: var(--tomato); }

.mine p { margin: 4px 0; }

.mine time {
  font-family: var(--round);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.toc {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 10px 14px 12px;
  margin: 12px 0 18px;
  max-width: 38ch;
}

.toc p {
  font-family: var(--round);
  font-weight: 800;
  margin: 0 0 6px;
}

.toc ol { margin: 0; padding-left: 1.15em; }

.toc a { color: var(--olive); }

.trouble { padding: 8px 0 28px; max-width: 48ch; }

.trouble__code {
  margin: 16px 0 0;
  font-family: var(--round);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 0.9;
  color: var(--tomato);
  letter-spacing: -0.04em;
}

.find { margin: 14px 0; max-width: 460px; }

.find label {
  display: block;
  font-family: var(--round);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.find__row { display: flex; gap: 8px; }

.find input { min-width: 0; flex: 1; }

.popular {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  align-items: center;
}

.popular a {
  font-family: var(--round);
  font-weight: 800;
  color: var(--olive);
  text-decoration: none;
}

.popular .dot { margin: 0 8px; color: var(--tomato); }

/* media queries */

@media (min-width: 720px) {
  .paper {
    width: min(1100px, calc(100% - 28px));
    margin: 18px auto 28px;
    padding: 0 22px 12px;
  }

  .board { grid-template-columns: 1fr 1fr; column-gap: 28px; }

  .fresh .board,
  .side .board { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .burger, .js .burger { display: none; }

  .menu,
  .js .menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 0;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .menu a {
    border-bottom: 0;
    padding: 4px 0;
    font-size: 14px;
  }

  .menu .dot { display: inline; margin: 0 7px; }

  .front {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    grid-template-areas:
      "intro side"
      "fresh side";
    column-gap: 34px;
    align-items: start;
  }

  .intro { grid-area: intro; }
  .side { grid-area: side; }
  .fresh { grid-area: fresh; }

  .prog {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    grid-template-areas:
      "head head"
      "shots rail"
      "body rail";
    column-gap: 32px;
    align-items: start;
  }

  .prog__head { grid-area: head; }
  .shots { grid-area: shots; }
  .prog__body { grid-area: body; }
  .rail {
    grid-area: rail;
    margin-top: 18px;
    border-top: 0;
    padding-top: 0;
    position: sticky;
    top: 12px;
  }
}

@media (max-width: 380px) {
  .find__row { flex-direction: column; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .brand__mark { width: 44px; height: 44px; flex-basis: 44px; }
}

/* program page: sticky rail was covering the last comment on short windows */
@media (min-width: 900px) and (max-height: 760px) {
  .rail { position: static; }
}

/* 500 — tomato was shouting over a kitchen problem */
.trouble--kitchen .trouble__code { color: var(--olive); }

/* audit fixes: шапка телефона в одну строку */
@media (max-width: 899px) {
  .top { position: relative; }
  .top__row { flex-wrap: nowrap; align-items: center; padding-right: 50px; }
  .brand__tag { display: none; }
  .brand__mark { width: 42px; height: 42px; }
  .who__name { display: none; }
  .userbox { flex-wrap: nowrap; }
  .logout { white-space: nowrap; }
  .js .burger { position: absolute; top: 14px; right: 0; margin: 0; padding: 8px 9px; }
  .burger span { display: none; }
}
@media (max-width: 899px) {
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand__text { min-width: 0; }
  .brand__name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top__row:has([data-mn-logout]) .brand__text { display: none; }
  .js .burger { top: 18px; }
}

/* seo: текст вступления после первого блока программ */
.home-about { margin-top: 32px; margin-bottom: 32px; }
.home-about__body { margin-top: 10px; }

/* сеть: «раздача» — бренд, поиск и вход липнут к верху листа */
:root { --ctl: 40px; }
.pass { position: sticky; top: 0; z-index: 35; background: var(--cream); margin: 0 -14px; padding: 0 14px 10px; border-bottom: 1px solid var(--line); }
.pass .top__row { flex-wrap: nowrap; align-items: center; padding-right: 0; }
.order { display: flex; flex: 0 1 340px; min-width: 0; height: var(--ctl); border: 1px solid var(--ink); background: var(--paper); margin-left: auto; }
.order input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 0 12px; font-family: var(--round); font-weight: 700; font-size: 15px; appearance: none; outline-offset: -2px; }
.order .btn { height: 100%; border: 0; padding: 0 14px; gap: 6px; }
.lens { display: none; width: var(--ctl); height: var(--ctl); border: 1px solid var(--ink); background: var(--paper); padding: 0; place-items: center; flex: none; }
.lens[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.userbox { margin-left: 0; flex: none; }
.signin { height: var(--ctl); display: inline-flex; align-items: center; padding: 0 16px; background: var(--tomato); color: var(--paper); }
.signin:hover { background: var(--tomato-deep); color: var(--paper); }
.bell { width: var(--ctl); height: var(--ctl); }
.logout { height: var(--ctl); padding: 0 12px; border: 1px solid var(--ink); background: var(--paper); white-space: nowrap; }
.logout:hover { background: var(--ink); color: var(--paper); }
.who .avatar { width: var(--ctl); height: var(--ctl); }
.js .burger { height: var(--ctl); margin: 0; flex: none; }
.top .menu { margin-top: 6px; }
@media (min-width: 720px) { .pass { margin: 0 -22px; padding: 0 22px 10px; } }
@media (max-width: 899px) {
  .pass .top__row { gap: 8px; padding-top: 10px; }
  .js .burger { position: static; padding: 0 10px; }
  .lens { display: inline-grid; margin-left: auto; }
  .order { display: none; position: absolute; left: 14px; right: 14px; top: calc(100% + 6px); flex: none; z-index: 2; box-shadow: 0 8px 18px -10px rgba(42, 28, 20, .5); }
  .order.is-open { display: flex; }
  .pass { margin: 0 -14px; }
  .js .menu.is-open { position: fixed; z-index: 34; left: 12px; right: 12px; top: 64px; max-height: calc(100vh - 84px); overflow-y: auto; background: var(--paper); border: 1px solid var(--ink); border-bottom: 3px double var(--ink); padding: 6px 14px 10px; box-shadow: 0 12px 24px -12px rgba(42, 28, 20, .55); }
  .who__name { display: none; }
}
@media (max-width: 899px) and (min-width: 720px) { .order { left: 22px; right: 22px; } }
@media (max-width: 380px) { .signin { padding: 0 10px; } .brand__name { display: none; } }

/* сеть: кнопки на странице программы одной высоты, текст во всю ширину */
.actions .btn { min-height: 44px; }
.lede, .intro, .home-about__body, .prose, .tabs__panel { max-width: none; }

/* сеть: «рельса на раздаче» — чеки висят на рельсе, тарелка крупно */
.shots__row.is-served { display: none; }
.window { position: relative; outline-offset: 4px; }
.window__rail { position: relative; display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 6px 10px; margin-bottom: 8px; }
.window__rail::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 4px; background: linear-gradient(#9a8a78, #cfc2b2); border-radius: 2px; }
.ticket { position: relative; width: 46px; height: 52px; padding: 10px 0 0; border: 0; background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 3px 6px -3px rgba(42, 28, 20, .45); font-family: var(--round); font-weight: 800; font-size: 14px; color: var(--ink-soft); transform-origin: 50% 0; transition: transform .15s ease; clip-path: polygon(0 0, 100% 0, 100% 92%, 88% 100%, 76% 92%, 64% 100%, 52% 92%, 40% 100%, 28% 92%, 16% 100%, 4% 92%, 0 100%); }
.ticket::before { content: ""; position: absolute; left: 50%; top: 0; width: 18px; height: 6px; margin-left: -9px; background: #9a8a78; }
.ticket:nth-child(odd) { transform: rotate(-3deg); }
.ticket:nth-child(even) { transform: rotate(2deg); }
.ticket:hover { color: var(--tomato); }
.ticket[aria-pressed="true"] { background: var(--tomato); color: var(--paper); transform: translateY(6px) rotate(0); }
.window__plate { display: block; border: 1px solid var(--ink); background: #fff; padding: 8px; box-shadow: 6px 6px 0 var(--table); }
.window__plate img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: var(--cream); }
.window__line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 12px; }
.window__cap { margin: 0; font-family: var(--serif); font-style: italic; color: var(--ink-soft); flex: 1 1 260px; }
.window__steps { display: flex; gap: 8px; margin: 0; }
.window__steps button { height: 36px; padding: 0 12px; border: 1px solid var(--ink); background: var(--paper); font-family: var(--round); font-weight: 800; font-size: 13px; }
.window__steps button:hover { background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .ticket { transition: none; } }
.pick__ph { grid-row: 1 / span 2; width: 36px; height: 36px; display: grid; place-items: center; background: var(--olive); color: var(--paper); font-family: var(--round); font-weight: 800; font-size: 16px; }
@media (min-width: 900px) {
  .fresh .board { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .front .side { position: sticky; top: 78px; }
  .rail { top: 78px; }
}
