/*
 * Stol application styles.
 *
 * Keep the first shell intentionally small; feature-specific styles should be
 * added with the corresponding vertical slice rather than copied from the
 * static prototype.
 */
:root {
  --stol-paper: #f7f5ef;
  --stol-ink: #20231f;
  --stol-green: #244a37;
  --stol-lime: #d9ef7f;
  --stol-orange: #e76f3d;
  --stol-muted: #6e716b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--stol-paper);
  color: var(--stol-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  width: min(100% - 32px, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.brand-link {
  color: var(--stol-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand-link span,
h1 span {
  color: var(--stol-orange);
}

.context-label {
  color: var(--stol-muted);
  font-size: 0.75rem;
}

.guest-menu-intro { margin-bottom: 28px; }

.guest-menu-intro h1,
.guest-message h1 { font-size: clamp(2.8rem, 13vw, 5rem); }

.category-nav {
  display: flex;
  gap: 8px;
  margin: 24px 0 40px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.category-nav a,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--stol-green);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.category-nav a { background: white; color: var(--stol-green); box-shadow: 0 1px 0 rgba(32, 35, 31, 0.14); }
.menu-category { margin: 0 0 40px; scroll-margin-top: 20px; }
.menu-category h2 { margin: 0 0 16px; color: var(--stol-green); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.menu-items { display: grid; gap: 12px; }
.menu-item-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 12px; background: white; }
.menu-item-photo { width: 88px; height: 88px; border-radius: 8px; object-fit: cover; }
.menu-item-heading { display: flex; justify-content: space-between; gap: 12px; }
.menu-item-heading h3 { margin: 0; color: var(--stol-green); font-size: 1rem; }
.menu-item-content p, .availability-note { margin: 8px 0; color: var(--stol-muted); font-size: 0.9rem; line-height: 1.4; }
.menu-item-meta, .availability-note { font-size: 0.78rem !important; }
.menu-item-unavailable { opacity: 0.62; }
.guest-message .prototype-note { margin-top: 0; }
.button-secondary { background: var(--stol-lime); color: var(--stol-ink); }
.guest-page-title { font-size: clamp(2.8rem, 13vw, 5rem); }
.guest-item-card { margin: 24px 0; }
.item-price { color: var(--stol-green); font-size: 1.25rem; font-weight: 700; }
.staff-form { display: grid; gap: 10px; max-width: 42rem; }
.staff-form input:not([type="checkbox"]):not([type="radio"]),
.staff-form select,
.staff-form textarea,
.staff-form input[type="submit"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid #9ba49a;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--stol-ink);
  font: inherit;
}
.staff-form textarea { min-height: 96px; resize: vertical; }
.staff-form input[type="submit"] { border: 0; background: var(--stol-green); color: white; cursor: pointer; font-weight: 700; }
.staff-form input[type="submit"]:disabled { cursor: not-allowed; opacity: .55; }
.form-help { color: var(--stol-muted); font-size: .85rem; line-height: 1.45; }
.form-errors, .flash-alert { color: #7a2e19; font-weight: 700; }
.option-group-error:empty, [data-option-group-target="validation"]:empty { display: none; }
.option-group { display: grid; gap: 8px; margin: 20px 0; border: 0; padding: 0; }
.option-group label { display: flex; min-height: 44px; align-items: center; gap: 8px; padding: 8px; background: var(--stol-paper); }
.option-group input { width: 20px; height: 20px; }
.cart-items { display: grid; gap: 10px; margin: 24px 0; }
.cart-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px; background: white; border-radius: 10px; }
.cart-item h2 { margin: 0; color: var(--stol-green); font-size: 1.1rem; }
.cart-item p { margin: 6px 0 0; color: var(--stol-muted); font-size: .9rem; }
.cart-total { display: flex; justify-content: space-between; margin: 20px 0; padding: 18px 0; border-top: 2px solid var(--stol-green); font-size: 1.15rem; }
.recommendations { display: grid; gap: 8px; margin: 20px 0; }
.recommendations h2 { margin: 0; color: var(--stol-green); font-size: 1.15rem; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--stol-orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--stol-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 18vw, 5.5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.intro {
  max-width: 19rem;
  margin: 20px 0 0;
  font-size: 1.15rem;
  line-height: 1.45;
}

.prototype-note,
.dashboard-status {
  max-width: 26rem;
  margin: 40px 0 0;
  padding: 16px;
  border-left: 4px solid var(--stol-lime);
  background: white;
  color: var(--stol-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tap-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.tap-link:hover {
  background: var(--stol-lime);
}

.staff-layout {
  background: #eceee7;
}

.staff-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 220px minmax(0, 1fr);
}

.staff-navigation {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 20px;
  background: var(--stol-green);
  color: white;
}

.staff-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-navigation a,
.staff-navigation button {
  min-height: 44px;
}

.staff-navigation a {
  color: white;
}

.staff-navigation .tap-link:hover {
  color: var(--stol-ink);
}

.staff-navigation form {
  margin: 0;
}

.staff-navigation .button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: white;
  cursor: pointer;
  font: inherit;
}

.staff-navigation .button:hover {
  background: var(--stol-lime);
  color: var(--stol-ink);
}

.staff-main {
  max-width: 1100px;
  padding: 56px clamp(24px, 6vw, 80px);
}

.kitchen-dashboard h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.kitchen-lanes { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 16px; overflow-x: auto; }
.kitchen-lane { min-height: 260px; padding: 14px; background: #dfe4db; border-radius: 12px; }
.kitchen-lane h2 { margin: 0 0 12px; color: var(--stol-green); font-size: 1.05rem; }
.kitchen-order-list { display: grid; gap: 10px; }
.kitchen-order-card { padding: 14px; background: white; border-radius: 10px; box-shadow: 0 2px 7px rgba(32,35,31,.08); }
.kitchen-order-card header { display: flex; justify-content: space-between; gap: 8px; color: var(--stol-green); }
.order-time, .order-note, .order-choice { display: block; color: var(--stol-muted); font-size: .8rem; }
.kitchen-order-card ul { margin: 12px 0; padding-left: 18px; }
.kitchen-order-card li { margin: 8px 0; }
.inline-transition { margin: 0; }
.inline-transition input[type=submit] { min-height: 44px; width: 100%; }

@media (max-width: 720px) {
  .staff-shell {
    display: block;
  }

  .staff-navigation {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 12px 16px;
  }

  .staff-main {
    padding: 32px 16px;
  }
}

:focus-visible {
  outline: 3px solid var(--stol-orange);
  outline-offset: 3px;
}

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

.order-allergens {
  display: block;
  color: #7a2e19;
  font-size: .8rem;
  font-weight: 700;
}
