/* ============================================================
   Essen — Design tokens
   Inspired by: Teletál, Frissfood, Foodrevo
   Brand: red oval logo, házias konyha, 40 éves múlt
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@300;400;500;600;700;800&display=swap");

:root {
  /* Brand colors */
  --red: #D8362C;
  --red-700: #B12821;
  --red-800: #8A1F1A;
  --red-50: #FCEEEC;

  /* Surface */
  --cream: #FBF5EA;
  --cream-2: #F4ECDA;
  --paper: #FFFCF6;
  --line: #E6DCC4;
  --line-soft: #EFE7D2;

  /* Ink */
  --ink: #1F1611;
  --ink-2: #3B2F26;
  --ink-soft: #6E5C4F;
  --ink-mute: #A3927F;

  /* Accents */
  --olive: #6B7A4E;
  --olive-soft: #DDE3CC;
  --butter: #F2C24C;
  --butter-soft: #FBE8B5;
  --blush: #F4CFC5;
  --plum: #6B2C39;

  /* System */
  --ok: #2E7D4F;
  --warn: #C46A1A;
  --danger: var(--red);

  /* Type */
  --display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius / shadow */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 0 rgba(31, 22, 17, 0.04), 0 1px 2px rgba(31, 22, 17, 0.05);
  --shadow-md: 0 2px 6px rgba(31, 22, 17, 0.06), 0 12px 28px -10px rgba(31, 22, 17, 0.12);
  --shadow-lg: 0 4px 14px rgba(31, 22, 17, 0.08), 0 28px 60px -16px rgba(31, 22, 17, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#root { min-height: 100vh; }

a { color: inherit; }

button { font-family: inherit; }

img { display: block; max-width: 100%; }

::selection { background: var(--red); color: var(--paper); }

/* Display utility */
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; }
.display-it { font-family: var(--display); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 14px -6px rgba(216, 54, 44, 0.55);
}
.btn-primary:hover { background: var(--red-700); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--ink-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-mute); }

.btn-link {
  background: transparent;
  border: none;
  color: var(--ink);
  padding: 0;
  height: auto;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15px; }

/* ===== Pills / chips ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--cream-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chip.is-red { background: var(--red-50); color: var(--red-700); border-color: #F2D4D0; }
.chip.is-olive { background: var(--olive-soft); color: #3F4A28; border-color: #C9D2B0; }
.chip.is-butter { background: var(--butter-soft); color: #6E4A0E; border-color: #F0D589; }
.chip.is-blush { background: var(--blush); color: var(--plum); border-color: #ECB7AA; }
.chip.is-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ===== Cards ===== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.card-flat {
  background: var(--paper);
  border-radius: var(--r-lg);
}

/* ===== Containers ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Header (top bar) ===== */
.topstrip {
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.topstrip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.topstrip a { color: var(--paper); text-decoration: none; opacity: 0.85; }
.topstrip a:hover { opacity: 1; }
.topstrip .ts-left { display: flex; gap: 22px; align-items: center; }
.topstrip .ts-right { display: flex; gap: 20px; align-items: center; }
.topstrip .dot { width: 6px; height: 6px; border-radius: 50%; background: #76C893; box-shadow: 0 0 0 4px rgba(118, 200, 147, 0.18); }

.header {
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(251, 245, 234, 0.92);
}
.header .container {
  display: flex;
  align-items: center;
  height: 84px;
  gap: 36px;
}
.header .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.header nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.header nav a {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-2);
  cursor: pointer;
}
.header nav a:hover { background: var(--cream-2); }
.header nav a.is-active { background: var(--ink); color: var(--paper); }
.header .spacer { flex: 1; }
.header .header-actions { display: flex; gap: 10px; align-items: center; }

.cart-btn {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: inline-grid; place-items: center;
  cursor: pointer;
}
.cart-btn .badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid; place-items: center;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.018em;
  margin: 20px 0 22px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--red);
}
.hero p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 28px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-stats .stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stats .stat-n { font-family: var(--display); font-size: 36px; line-height: 1; color: var(--ink); }
.hero-stats .stat-l { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }

/* Hero plate art */
.plate-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

/* ===== Section frame ===== */
section.block { padding: 84px 0; }
section.block.tight { padding: 56px 0; }
section.block.dark { background: var(--ink); color: var(--paper); }
section.block.cream2 { background: var(--cream-2); }
section.block.paper { background: var(--paper); }

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.section-header h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  margin: 10px 0 0;
  max-width: 22ch;
  letter-spacing: -0.012em;
}
.section-header h2 em { color: var(--red); font-style: italic; }
.section-header .right { display: flex; gap: 10px; align-items: center; }

/* ===== Weekly menu strip ===== */
.daystrip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.day-pill {
  padding: 14px 16px 16px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s, box-shadow 0.18s;
  position: relative;
}
.day-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.day-pill.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.day-pill.is-active .day-name { color: var(--paper); }
.day-pill.is-active .day-date { color: rgba(255,255,255,0.7); }
.day-pill.is-today::after {
  content: "MA";
  position: absolute;
  top: 10px; right: 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--red);
}
.day-pill.is-active.is-today::after { color: var(--butter); }
.day-name { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.day-date { font-size: 12px; color: var(--ink-soft); }

/* ===== Menu cards ===== */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.menu-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.14s, box-shadow 0.18s;
}
.menu-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.menu-card .photo {
  aspect-ratio: 16 / 9;
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
}
.menu-card .photo .ribbon {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--paper);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.menu-card .photo .ribbon.is-b { background: var(--ink); color: var(--paper); }
.menu-card .photo .like {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  display: inline-grid; place-items: center;
  cursor: pointer;
}

.menu-card .body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.menu-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  margin: 4px 0 0;
}
.menu-card .courses { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.menu-card .course { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.menu-card .course:last-child { border-bottom: none; }
.menu-card .course .label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); min-width: 64px; }
.menu-card .course .name { font-weight: 500; font-size: 15px; flex: 1; color: var(--ink-2); }

.menu-card .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.menu-card .price { font-family: var(--display); font-size: 30px; color: var(--ink); }
.menu-card .price .ft { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }

/* ===== Value props ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value-tile {
  padding: 26px 24px 28px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.value-tile .iconwrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--red-50);
  color: var(--red);
  display: grid; place-items: center;
}
.value-tile h4 { font-family: var(--display); font-size: 22px; margin: 4px 0 4px; font-weight: 400; }
.value-tile p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ===== Partner band ===== */
.partner-band {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.partner-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 160px;
}
.partner-card .plogo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--cream-2);
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
}
.partner-card h5 { font-family: var(--body); font-weight: 700; font-size: 14px; margin: 8px 0 2px; }
.partner-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform 0.14s;
}
.blog-card:hover { transform: translateY(-2px); }
.blog-card .photo { aspect-ratio: 4/3; background: var(--cream-2); position: relative; overflow: hidden; }
.blog-card .body { padding: 18px 20px 22px; }
.blog-card .meta { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.blog-card h4 { font-family: var(--display); font-size: 24px; margin: 8px 0 8px; font-weight: 400; line-height: 1.15; }
.blog-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ===== Footer ===== */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 40px;
}
.foot a { color: var(--paper); opacity: 0.78; text-decoration: none; font-size: 14px; }
.foot a:hover { opacity: 1; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot h6 { font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; opacity: 0.7; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot .signature { font-family: var(--display); font-size: 28px; line-height: 1.1; margin-top: 8px; opacity: 0.9; }
.foot .legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; margin-top: 56px; font-size: 12px; opacity: 0.55; display: flex; justify-content: space-between; }

/* ===== Order page (heti menü) ===== */
.order-shell { padding: 36px 0 96px; }
.order-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; gap: 22px; flex-wrap: wrap; }
.order-head h1 { font-family: var(--display); font-size: 56px; margin: 8px 0 6px; font-weight: 400; line-height: 1; letter-spacing: -0.01em; }
.order-head .week-nav { display: flex; align-items: center; gap: 10px; }
.week-nav .wn-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer;
}
.week-nav .wn-btn:hover { background: var(--cream-2); }
.week-nav .wn-label {
  padding: 0 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
}

.order-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}

/* Right side: cart preview */
.cart-summary {
  position: sticky;
  top: 116px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.cart-summary h3 { font-family: var(--display); font-size: 26px; font-weight: 400; margin: 0; }
.cart-summary .empty { font-size: 14px; color: var(--ink-soft); padding: 24px 0 8px; }
.cart-line { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.cart-line:last-of-type { border-bottom: none; }
.cart-line .qty {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  display: grid; place-items: center;
  font-size: 13px;
}
.cart-line .info .day { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.cart-line .info .nm { font-size: 14px; font-weight: 600; }
.cart-line .pr { font-weight: 700; font-size: 14px; }

.cart-summary .totals { padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.cart-summary .totals .row { display: flex; justify-content: space-between; font-size: 14px; }
.cart-summary .totals .row.big { font-family: var(--display); font-size: 28px; align-items: baseline; padding-top: 8px; }

/* Order day cards */
.day-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px 24px;
  margin-bottom: 18px;
}
.day-section .day-row {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.day-section .day-row .dn { font-family: var(--display); font-size: 28px; }
.day-section .day-row .dd { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.06em; }
.day-section .day-row .spacer { flex: 1; }
.day-section .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.menu-mini {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--cream);
}
.menu-mini.is-selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.menu-mini.is-selected .mm-courses li { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.16); }
.menu-mini.is-selected .mm-head .nm { color: var(--paper); }
.menu-mini.is-selected .mm-head .pr { color: var(--butter); }
.menu-mini .mm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.menu-mini .mm-head .ribbon { font-size: 11px; letter-spacing: 0.12em; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); }
.menu-mini.is-selected .mm-head .ribbon { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.menu-mini .mm-head .nm { font-family: var(--display); font-size: 22px; font-weight: 400; }
.menu-mini .mm-head .pr { font-weight: 700; font-size: 15px; }
.menu-mini .mm-courses { list-style: none; padding: 0; margin: 4px 0 6px; display: flex; flex-direction: column; gap: 6px; }
.menu-mini .mm-courses li { font-size: 13px; color: var(--ink-2); padding: 4px 0; border-bottom: 1px dashed var(--line); }
.menu-mini .mm-courses li:last-child { border-bottom: none; }
.menu-mini .mm-courses li .lab { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); margin-right: 8px; }
.menu-mini.is-selected .mm-courses li .lab { color: rgba(255,255,255,0.6); }
.menu-mini .mm-actions { display: flex; gap: 8px; margin-top: 6px; }
.menu-mini .add-btn {
  flex: 1;
  height: 38px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.menu-mini.is-selected .add-btn { background: var(--butter); color: var(--ink); border-color: var(--butter); }
.menu-mini .add-btn:hover { background: var(--ink); color: var(--paper); }
.menu-mini.is-selected .add-btn:hover { background: var(--butter-soft); color: var(--ink); }

/* Allergén / ingredients link */
.ing-link {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink-soft);
  background: none; border: none; padding: 0; cursor: pointer;
}
.menu-mini.is-selected .ing-link { color: rgba(255,255,255,0.7); }

/* ===== Cart / checkout ===== */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start;
}
.fieldset {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 26px 26px;
  margin-bottom: 18px;
}
.fieldset h3 { font-family: var(--display); font-size: 26px; margin: 0 0 4px; font-weight: 400; }
.fieldset .sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 18px; }

.formgrid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.formgrid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.06em; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; }
.field input, .field textarea, .field select {
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border 0.14s, background 0.14s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.field textarea { height: auto; padding: 12px 14px; min-height: 100px; resize: vertical; }

.radio-tiles { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.radio-tile {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 14px 16px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: border 0.14s, background 0.14s;
}
.radio-tile:hover { border-color: var(--ink-mute); }
.radio-tile.is-on { background: var(--paper); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 22, 17, 0.08); }
.radio-tile .nm { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.radio-tile .pr { font-size: 13px; color: var(--ink-soft); }
.radio-tile .desc { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* ===== Institution login ===== */
.auth-shell {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-art h2 { font-family: var(--display); font-size: 52px; font-weight: 400; line-height: 1.05; margin: 18px 0 0; max-width: 16ch; }
.auth-art .quote { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.35; opacity: 0.85; }
.auth-art .qmeta { font-size: 13px; opacity: 0.7; margin-top: 12px; }
.auth-form-wrap {
  display: grid; place-items: center;
  padding: 64px;
}
.auth-form-wrap form { width: 100%; max-width: 420px; }
.auth-form-wrap h1 { font-family: var(--display); font-size: 44px; margin: 0 0 8px; font-weight: 400; letter-spacing: -0.01em; }
.auth-form-wrap p.helper { color: var(--ink-soft); font-size: 14px; margin: 0 0 32px; }

/* ===== Institution dashboard ===== */
.inst-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 84px);
}
.inst-side {
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.inst-side .who {
  padding: 12px 12px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.inst-side .who .role { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.inst-side .who .org { font-family: var(--display); font-size: 22px; line-height: 1.1; margin-top: 4px; }
.inst-side a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
}
.inst-side a:hover { background: var(--cream-2); }
.inst-side a.is-active { background: var(--ink); color: var(--paper); }
.inst-side a .badge {
  margin-left: auto;
  min-width: 22px; height: 20px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--red);
  color: var(--paper);
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.inst-side a.is-active .badge { background: var(--butter); color: var(--ink); }

.inst-main { padding: 32px 36px 64px; background: var(--cream); }
.inst-main h1 { font-family: var(--display); font-size: 42px; margin: 0 0 4px; font-weight: 400; }
.inst-main .crumb { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }

.inst-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0 30px; }
.inst-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.inst-stat .lab { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.inst-stat .val { font-family: var(--display); font-size: 36px; margin-top: 4px; }
.inst-stat .delta { font-size: 12px; margin-top: 4px; color: var(--olive); font-weight: 600; }
.inst-stat .delta.is-down { color: var(--red); }

.inst-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px 24px;
}
.panel h3 { font-family: var(--display); font-size: 26px; margin: 0 0 4px; font-weight: 400; }
.panel .panel-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }

/* Documents table */
.doc-row {
  display: grid;
  grid-template-columns: 36px 1fr 130px 110px 100px;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.doc-row:last-child { border-bottom: none; }
.doc-row .ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--cream-2);
  display: grid; place-items: center;
  color: var(--ink-2);
}
.doc-row .ico.is-temp { background: #FEE2DD; color: var(--red-700); }
.doc-row .ico.is-allergen { background: var(--olive-soft); color: #3F4A28; }
.doc-row .ico.is-menu { background: var(--butter-soft); color: #6E4A0E; }
.doc-row .doc-name { font-weight: 700; font-size: 14px; }
.doc-row .doc-sub { font-size: 12px; color: var(--ink-soft); }
.doc-row .doc-date { font-size: 13px; color: var(--ink-2); }
.doc-row .doc-cat { font-size: 12px; }
.doc-row .doc-act { text-align: right; }
.doc-row .download {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--paper);
  cursor: pointer;
}
.doc-row .download:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Messages */
.msg {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: var(--cream);
  margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.msg.is-unread { background: var(--red-50); border-color: #F2D4D0; }
.msg.is-ours { background: var(--paper); }
.msg .mh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.msg .from { font-weight: 700; font-size: 13px; }
.msg .time { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.msg .body { font-size: 14px; color: var(--ink-2); }
.msg .body em { font-style: italic; color: var(--ink-soft); }

/* Compose */
.compose {
  display: grid; gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.compose textarea {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  background: var(--cream);
  min-height: 80px;
  resize: vertical;
}
.compose textarea:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.compose .compose-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.compose .attach {
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
}

/* ===== Blog page ===== */
.blog-hero {
  padding: 56px 0 24px;
}
.blog-hero h1 {
  font-family: var(--display);
  font-size: 72px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0;
}
.blog-hero p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 18px 0 0;
}
.blog-filter {
  display: flex; gap: 8px; margin: 32px 0 40px;
}
.blog-filter button {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-2);
}
.blog-filter button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.blog-feature {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  margin-bottom: 56px;
}
.blog-feature .photo {
  border-radius: var(--r-xl);
  aspect-ratio: 5/4;
  overflow: hidden;
  background: var(--cream-2);
}
.blog-feature h2 { font-family: var(--display); font-size: 52px; font-weight: 400; line-height: 1.05; margin: 14px 0 16px; }
.blog-feature .meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.blog-feature p { font-size: 16px; color: var(--ink-soft); max-width: 50ch; }

/* ===== Plate illustration helpers ===== */
.illus-plate {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ===== Misc ===== */
.divider-dots { display: flex; gap: 6px; align-items: center; color: var(--ink-mute); }
.divider-dots::before, .divider-dots::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* Modal-ish ingredients */
.alg-pop {
  position: absolute; inset: auto 0 0 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 6px;
}
.alg-pop .alg-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--cream-2);
  font-weight: 700;
  font-size: 11px;
  color: var(--ink-2);
}

/* Animations */
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: slideUp 0.32s cubic-bezier(.2,.7,.3,1) both; }

/* Print clean */
@media print { .header, .foot, .topstrip { display: none; } }
