/* CDN responsive layout: loaded after the existing theme. No pricing or stock rules. */
:root { --site-header-height: 104px; }
html { scroll-padding-top: calc(var(--site-header-height) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
section[id] { scroll-margin-top: 12px; }
img { max-width: 100%; }
.official-logo { object-fit: contain; object-position: center; flex-shrink: 0; }
.hero > *, .value-grid > *, .section-head > *, .order-layout > *, .portal-layout > *, .form-grid > *, .admin-grid > *, .row3 > *, .row4 > *, .order-row > *, .prices > *, .portal-head > * { min-width: 0; }
.section-head { flex-wrap: wrap; align-items: flex-start; }
.section-head > :first-child { flex: 1 1 240px; }
.section-head .tabs { flex: 0 1 auto; flex-wrap: wrap; }
.grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.exec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.order-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 350px); }
.portal-layout { grid-template-columns: 220px minmax(0, 1fr); }
.prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.order-row { grid-template-columns: minmax(0, 1fr) 96px; }
.qty-wrap { min-width: 0; }
.qty-wrap input { width: 100%; min-width: 0; }
button, input, select, textarea { color: inherit; }
button { -webkit-appearance: none; appearance: none; }
.btn, .tab { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; line-height: 1.35; }
.btn { white-space: normal; max-width: 100%; }
.tab { color: var(--navy); }
:where(button, a, input, select, textarea):focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }
.field input, .field select, .field textarea, .order-row input { min-width: 0; max-width: 100%; font-size: 16px; }
.field input:not([type=color]), .field select, .order-row input { min-height: 44px; }
.field input[type=color] { padding: 4px; min-height: 44px; }
.field textarea { resize: vertical; }
.upload { display: block; width: 100%; max-width: 100%; min-width: 0; margin: 10px 0; }
.summary-line span, .order-row strong, .order-row small, #userLabel, .notice, .desc, .kpi strong { overflow-wrap: anywhere; }
.summary-line > b, .total > strong { flex-shrink: 0; }
.summary-line > span { min-width: 0; }
.total { gap: 12px; flex-wrap: wrap; align-items: baseline; }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.nav-toggle { display: none; }
.modal { padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.modal-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-card .close { width: 44px; height: 44px; right: 8px; top: 6px; }
.modal-card h3 { padding-right: 36px; }
.toast { max-width: min(420px, calc(100vw - 32px)); overflow-wrap: anywhere; bottom: max(16px, env(safe-area-inset-bottom)); }
.kilo-exclusion-mini[hidden], .included-mini[hidden], [hidden] { display: none !important; }
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-layout { grid-template-columns: 180px minmax(0, 1fr); }
  .top { gap: 16px; padding-inline: 24px; }
  .nav { gap: 16px; }
}
@media (max-width: 900px) {
  :root { --site-header-height: 90px; }
  .top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); background: var(--paper); }
  .top .logo { grid-column: 1; width: 100px; height: 72px; }
  .top #loginBtn { grid-column: 2; grid-row: 1; justify-self: end; padding: 10px 12px; font-size: 14px; }
  .nav-toggle { grid-column: 3; grid-row: 1; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--navy); }
  .nav-toggle span { display: block; width: 19px; height: 2px; background: currentColor; }
  .top .nav { display: none; grid-column: 1 / -1; margin: 0; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 12px; }
  .top[data-mobile-open=true] .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .top .nav a { min-height: 44px; display: flex; align-items: center; padding: 10px; border-radius: 8px; font-size: 14px; }
  .top .nav a:hover { background: var(--cream); }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 36px 24px 20px; }
  .hero h1 { font-size: clamp(36px, 8.5vw, 54px); line-height: 1.06; }
  .hero-art { min-height: 0; padding: 0 24px 28px; }
  .hero-art::before { display: none; }
  .hero-photo-shell { width: 100%; max-width: 520px; aspect-ratio: 16 / 10; margin: 0; border-radius: 20px; }
  .hero-logo { max-width: 340px; margin: 16px auto; }
  .hero-brand-badge { bottom: 12px; right: 12px; padding: 6px 10px; }
  .hero-brand-badge img { width: 94px; height: 68px; }
  .section { padding: 36px 24px; }
  .home-value { padding-top: 24px; padding-bottom: 12px; }
  .value-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .section-head { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .section-head > :first-child { flex: none; width: 100%; }
  .section-head .tabs { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; overflow: visible; gap: 8px; padding: 0; }
  .section-head .tabs .tab { white-space: normal; padding: 10px 6px; min-width: 0; min-height: 48px; font-size: 14px; font-weight: 650; }
  #weekLabel { font-size: 15px; line-height: 1.5; }
  .section-head h2 { margin-bottom: 8px; }
  .grid, .exec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .order-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sticky { position: static; }
  .portal-layout { grid-template-columns: minmax(0, 1fr); }
  .portal-head { flex-wrap: wrap; gap: 10px; }
  .portal-head > div:not(.actions) { flex: 1; }
  .portal-head .actions { margin-left: 0; }
  .side { min-height: 0; display: flex; overflow-x: auto; gap: 6px; padding: 10px 12px; max-width: 100%; }
  .side button { flex: 0 0 auto; width: auto; min-width: 0; white-space: nowrap; min-height: 44px; margin: 0; font-size: 14px; }
  .content { min-width: 0; padding: 24px; }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar > div { min-width: 0; }
  .toolbar > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
  .toolbar .btn { font-size: 14px; }
}
@media (max-width: 600px) {
  .section { padding: 32px 16px; }
  .hero-copy { padding: 28px 16px 20px; }
  .hero-art { padding: 0 16px 24px; }
  .lead { font-size: 16px; line-height: 1.6; }
  h2 { font-size: 25px; line-height: 1.2; }
  h3 { line-height: 1.3; }
  .eyebrow { font-size: 12px; padding: 7px 10px; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); margin: 22px 0; gap: 10px; }
  .hero-actions .btn { min-height: 48px; font-size: 16px; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 22px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 14px; }
  .stat span { font-size: 13px; line-height: 1.4; margin-top: 3px; }
  .home-value { padding-top: 20px; padding-bottom: 8px; }
  .panel, .value-card, .kilo-callout { padding: 18px; }
  .value-card p, .kilo-callout p, .section-head p, .kilo-empty p { font-size: 15px; line-height: 1.55; }
  .include-chips { gap: 6px; }
  .include-chips span { max-width: 100%; padding: 8px 10px; font-size: 12px; line-height: 1.4; }
  .service-includes, .kilo-only-notice { padding: 16px; margin: 0 0 20px; }
  .service-includes-head { align-items: flex-start; gap: 10px; }
  .service-includes-head strong { font-size: 16px; line-height: 1.4; }
  .service-includes-head small { font-size: 13px; line-height: 1.5; }
  .include-check { width: 28px; height: 28px; flex-basis: 28px; }
  .kilo-only-notice b { font-size: 16px; line-height: 1.4; }
  .kilo-only-notice span { display: block; font-size: 14px; line-height: 1.55; }
  .grid, .exec-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .menu-card .food-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
  .card-body { padding: 18px; }
  .card h3 { font-size: 20px; margin: 9px 0; }
  .menu-card .desc { min-height: 0; font-size: 14px; line-height: 1.55; }
  .date, .type-pill { font-size: 12px; }
  .price { padding: 12px; font-size: 13px; }
  .price b { font-size: 20px; }
  .menu-meta { gap: 8px; flex-wrap: wrap; }
  .menu-meta small { font-size: 13px; }
  .btn.mini { min-height: 44px; padding: 10px 16px; font-size: 14px; }
  .kilo-exclusion { font-size: 13px; line-height: 1.5; }
  .form-grid, .seg { grid-template-columns: minmax(0, 1fr); }
  .seg { gap: 8px; }
  .seg span { min-height: 44px; font-size: 14px; }
  .field { font-size: 14px; }
  .field input, .field select, .field textarea { padding: 12px; }
  .order-row { grid-template-columns: minmax(0, 1fr) 90px; gap: 8px; }
  .order-row strong { font-size: 14px; line-height: 1.4; }
  .order-row small { font-size: 12px; line-height: 1.5; }
  .qty-wrap { gap: 4px; }
  .qty-unit { font-size: 12px; }
  .qty-wrap input { width: 100%; }
  .summary-line { font-size: 14px; line-height: 1.45; }
  .included-mini b, .kilo-exclusion-mini b { font-size: 14px; }
  .included-mini span, .kilo-exclusion-mini span, .notice { font-size: 13px; }
  #orderForm > button[type=submit] { width: 100%; min-height: 48px; font-size: 16px; }
  .footer { flex-direction: column; font-size: 14px; line-height: 1.5; padding: 24px 16px max(24px, env(safe-area-inset-bottom)); }
  .modal { align-items: start; overflow-y: auto; }
  .modal-card { margin: auto; padding: 22px 18px; }
  .modal-card h3 { font-size: 23px; }
  .modal-card .desc { font-size: 14px; min-height: 0; }
  .portal-head .actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-head .btn { padding: 10px; font-size: 14px; }
  .content { padding: 20px 12px; }
  .side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .side button { white-space: normal; text-align: center; font-size: 13px; padding: 9px 6px; }
  .content .desc { min-height: 0; font-size: 14px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar > div:last-child { display: grid; grid-template-columns: minmax(0, 1fr); }
  .toolbar .btn { width: 100%; }
  .row3, .row4 { grid-template-columns: minmax(0, 1fr); }
  .exec-editor { grid-template-columns: minmax(0, 1fr); }
  .admin-card { padding: 14px; }
  .kpi { padding: 14px; }
  .kpi span { font-size: 12px; line-height: 1.4; }
  .kpi strong { font-size: 24px; }
  .identity-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 359px) {
  .top { gap: 8px; padding-inline: 12px; }
  .top .logo { width: 88px; height: 66px; }
  .top #loginBtn { padding: 10px 8px; font-size: 13px; }
  .section-head .tabs { gap: 5px; }
  .section-head .tabs .tab { font-size: 13px; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
