/* Distribution — Phase 1 styles. One sheet for staff and customer pages. */

:root {
  /* Hilal Traders brand: green #178665, slate #4F5F76 (sampled from the logo). */
  --brand-green: #178665;
  --brand-slate: #4f5f76;

  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --text: #1f2937;
  --heading: #263244;
  --muted: #5d6a7c;
  --border: #dde3ea;
  --border-strong: #c5cdd8;
  --primary: var(--brand-green);
  --primary-hover: #116b50;
  --primary-soft: #e2f2ec;
  --primary-text: #ffffff;
  --slate: var(--brand-slate);
  --slate-hover: #3e4c60;
  --slate-soft: #e9edf3;
  --blue: var(--brand-slate);
  --blue-soft: #e9edf3;
  --green: #127457;
  --green-soft: #e2f2ec;
  --amber: #8a5300;
  --amber-soft: #fdf1dc;
  --red: #b42318;
  --red-soft: #fdeceb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 41, 55, .06), 0 1px 3px rgba(31, 41, 55, .04);
  --shadow-lg: 0 -4px 20px rgba(31, 41, 55, .10);
  --focus: 0 0 0 3px rgba(23, 134, 101, .28);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3 { line-height: 1.25; margin: 0; color: var(--heading); }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.strong { font-weight: 600; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.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;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 40px; padding: .5rem 1rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; line-height: 1.2; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); text-decoration: none; }
.btn:focus-visible, .step:focus-visible, .back-btn:focus-visible, .tile:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { color: var(--red); border-color: #f0b8b3; }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(0, 0, 0, .05); border-color: transparent; color: var(--text); }
.btn-sm { min-height: 34px; padding: .35rem .7rem; font-size: .88rem; }
.btn-lg { min-height: 52px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-block { display: flex; width: 100%; }
.btn.is-done { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Forms ---------- */

input[type=text], input[type=search], input[type=date], input[type=number], input[type=password],
input[type=tel], input[type=email], input:not([type]), select, textarea {
  width: 100%;
  min-height: 42px;
  padding: .5rem .7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; }
input[type=file] { font: inherit; max-width: 100%; }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.field > label { font-weight: 600; font-size: .92rem; }
.field-check > label { display: flex; align-items: center; gap: .55rem; font-weight: 500; cursor: pointer; }
.field .help { color: var(--muted); }
.field .error { color: var(--red); font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.req { color: var(--red); }
.check { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; cursor: pointer; }

.form { max-width: 640px; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .5rem; }

.image-input { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.image-preview {
  width: 96px; height: 96px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
  display: grid; place-items: center; color: var(--muted); font-size: .8rem; flex: none;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-controls { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }

/* ---------- Messages, badges ---------- */

.messages { display: grid; gap: .5rem; margin-bottom: 1rem; }
.msg { padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px solid; font-weight: 500; }
.msg-success { background: var(--green-soft); border-color: #b3dccd; color: #0e5a43; }
.msg-info { background: var(--slate-soft); border-color: #cdd5e0; color: var(--slate-hover); }
.msg-warning { background: var(--amber-soft); border-color: #f2d49c; color: var(--amber); }
.msg-error { background: var(--red-soft); border-color: #f4c1bc; color: var(--red); }

.badge {
  display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 999px;
  background: #edf0f4; color: #4b5668; font-size: .78rem; font-weight: 650; white-space: nowrap;
  vertical-align: middle;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }

/* =====================================================================
   Staff
   ===================================================================== */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.25rem;
  padding: .5rem 1.25rem;
  background: var(--surface); border-top: 3px solid var(--primary); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .65rem; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand-app {
  padding-left: .65rem; border-left: 1px solid var(--border);
  color: var(--slate); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.mainnav { display: flex; align-items: center; gap: .15rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  padding: .45rem .75rem; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 600; white-space: nowrap;
}
.mainnav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.mainnav a.on { background: var(--primary-soft); color: var(--primary); }
.nav-sep { width: 1px; height: 22px; background: var(--border); margin: 0 .4rem; flex: none; }
.userbox { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .9rem; white-space: nowrap; }

.container { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head h1 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.page-head p { margin: .3rem 0 0; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.head-actions form, .section-actions form, .visit-actions form { margin: 0; }
.back { display: inline-block; margin-bottom: .35rem; font-size: .9rem; color: var(--muted); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem;
}
.card + .card, .card + .table-wrap, .stats + .card { margin-top: 1rem; }
.card-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .75rem; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; padding: .9rem 1rem; margin-bottom: 1rem; }
.inline-field { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; font-weight: 600; color: var(--muted); min-width: 150px; }
.inline-field.grow { flex: 1 1 220px; }
.inline-field input, .inline-field select { color: var(--text); font-weight: 400; font-size: .95rem; }

.table-wrap { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); background: #f5f7fa; font-weight: 650; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfb; }
tfoot td { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.actions-col { text-align: right; white-space: nowrap; }
.actions-col .btn + .btn { margin-left: .25rem; }
.thumb-col { width: 60px; padding-right: 0; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.thumb-empty { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; }

.empty { text-align: center; padding: 2.5rem 1.25rem; color: var(--muted); }
.empty .btn { margin-top: .5rem; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }

/* Route day */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0 .9rem; }
.section-head h2 { font-size: 1.25rem; }
.section-head h2 .muted { font-weight: 500; }
.section-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--slate); border-radius: var(--radius); padding: .8rem 1rem; display: flex; flex-direction: column; }
.stat:last-child { border-left-color: var(--primary); }
.stat-value { font-size: 1.5rem; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--heading); }
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 600; }

.visit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.visit {
  display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(170px, 1fr) auto;
  align-items: center; gap: .6rem 1.25rem; padding: .9rem 1.1rem; margin: 0 !important;
  scroll-margin-top: 80px;
}
.visit:target { border-color: var(--primary); box-shadow: var(--focus); }
.visit[data-state=ordered] { background: #fbfefc; }
.visit-name { font-weight: 650; }
.visit-status { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.visit-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; }
.link-field { width: 230px !important; min-height: 34px !important; font-size: .8rem !important; color: var(--muted) !important; background: var(--surface-2) !important; }

/* Order detail */
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.detail-grid .card { margin: 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; font-weight: 500; }
.note { margin-bottom: 1rem; }
.note p { margin: 0; white-space: pre-line; }

/* Login */
.auth { display: grid; place-items: center; min-height: 60vh; }
.auth-card { width: 100%; max-width: 380px; padding: 1.75rem; border-top: 4px solid var(--primary); }
.auth-logo { width: 150px; height: auto; margin: .25rem auto 1.25rem; }
.auth-card h1 { font-size: 1.35rem; margin-bottom: .25rem; text-align: center; }
.auth-card > .muted { text-align: center; }
.auth-card .btn { margin-top: .5rem; }

@media (max-width: 1180px) {
  .brand-app { display: none; }
}

@media (max-width: 1000px) {
  .topbar { flex-wrap: wrap; gap: .5rem .75rem; padding: .5rem 1rem; }
  .mainnav { order: 3; flex-basis: 100%; margin: 0 -1rem; padding: 0 1rem; }
  .userbox { margin-left: auto; }
  .brand img { height: 30px; }
}

@media (max-width: 860px) {
  .userbox .muted { display: none; }
  .visit { grid-template-columns: 1fr; }
  .visit-actions { justify-content: flex-start; }
  .link-field { flex: 1 1 100%; width: 100% !important; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 1rem 1rem 3rem; }
  h1 { font-size: 1.35rem; }
  .hide-sm { display: none; }
  .filters .inline-field { flex: 1 1 100%; }
  .filters .btn { flex: 1; }
  .page-head > .btn { width: 100%; }
}

@media print {
  .topbar, .no-print, .head-actions, .messages { display: none !important; }
  body { background: #fff; }
  .container { padding: 0; max-width: none; }
  .card { box-shadow: none; }
}

/* =====================================================================
   Customer ordering (mobile-first)
   ===================================================================== */

body.shop { font-size: 16px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

.shop-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .6rem;
  min-height: 62px; padding: .5rem 1rem; padding-top: max(.5rem, env(safe-area-inset-top));
  background: var(--surface); color: var(--text);
  border-top: 3px solid var(--primary); border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(31, 41, 55, .05);
}
.shop-mark { flex: none; width: 36px; height: 36px; }
.shop-title { display: flex; flex-direction: column; min-width: 0; }
.shop-title strong { font-size: 1.08rem; line-height: 1.2; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-title span { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back-btn {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; margin-left: -.4rem;
  border: 0; border-radius: 50%; background: transparent; color: var(--slate);
  font: inherit; font-size: 1.45rem; cursor: pointer; text-decoration: none;
}
.back-btn:hover { background: var(--slate-soft); text-decoration: none; }

.shop-main { max-width: 640px; margin: 0 auto; padding: 1rem; }
.shop-intro { color: var(--muted); margin-bottom: .9rem; }
.shop .empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

.placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary-soft), var(--slate-soft));
  color: var(--slate); font-size: 2rem; font-weight: 750;
}

/* Landing */
.hero { padding: 1rem .25rem 1.25rem; }
.hero-logo { width: 150px; height: auto; margin: .5rem auto 1.5rem; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.hero h1 { font-size: 1.9rem; margin-bottom: .6rem; }
.lead { font-size: 1.08rem; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .6rem; }
.steps li {
  display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 500;
}
.steps span {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--slate); color: #fff; font-weight: 700; font-size: .85rem;
}
.hero .btn-block + .btn-block { margin-top: .6rem; }
.hero .btn-block + .muted { margin-top: 1rem; }

/* Categories */
.tile-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tile {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; color: var(--text); box-shadow: var(--shadow);
}
.tile:hover { text-decoration: none; border-color: var(--primary); }
.tile-img { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-name { padding: .65rem .8rem; font-weight: 650; line-height: 1.3; }
.tile-badge {
  position: absolute; top: .5rem; right: .5rem;
  padding: .15rem .55rem; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700;
}

/* Products */
.product-grid { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.product {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.product.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.product-img { aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; flex-direction: column; gap: .25rem; padding: .6rem .6rem .7rem; flex: 1; }
.product-name { font-weight: 650; line-height: 1.3; }
.product-code { font-size: .8rem; color: var(--muted); }
.product-body .stepper { margin-top: auto; padding-top: .4rem; }

.stepper { display: flex; align-items: stretch; }
.step {
  flex: none; width: 44px; height: 44px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--primary);
  font: inherit; font-size: 1.35rem; font-weight: 600; line-height: 1; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.step:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.step:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.step:active { background: var(--primary-soft); }
.stepper input {
  flex: 1; min-width: 0; width: 100%; height: 44px; min-height: 44px;
  border-radius: 0; border-left: 0; border-right: 0;
  text-align: center; font-size: 1.05rem; font-weight: 650; padding: 0 .2rem;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.is-selected .stepper input { background: var(--primary-soft); color: var(--primary); }

/* Cart */
.cart-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.cart-line {
  display: flex; gap: .75rem; padding: .65rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.cart-line:not(.is-selected) { opacity: .55; }
.cart-img { flex: none; width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-img .placeholder { font-size: 1.5rem; }
.cart-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.cart-body .stepper { max-width: 180px; margin-top: .35rem; }
.shop .field { margin-top: 1.25rem; }

/* Sticky cart bar */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem max(1rem, calc((100vw - 640px) / 2 + 1rem));
  padding-bottom: calc(.75rem + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.cartbar-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cartbar-info .muted { font-size: .85rem; }
.cartbar .btn { min-height: 48px; padding: .6rem 1.2rem; font-size: 1rem; }
.cartbar.is-empty .btn-primary { background: var(--surface-2); border-color: var(--border-strong); color: var(--muted); }

/* Confirmation & unavailable */
.done { text-align: center; padding: 2rem .5rem 1rem; }
.done h1 { font-size: 1.7rem; margin-bottom: .35rem; }
.done-icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 2.2rem; font-weight: 700;
}
.done-icon.is-muted { background: var(--amber-soft); color: var(--amber); }
.order-number-box {
  display: inline-flex; flex-direction: column; gap: .15rem; margin: .5rem 0 1rem; padding: .85rem 1.75rem;
  background: var(--surface); border: 2px dashed var(--primary); border-radius: var(--radius);
}
.order-number { font-size: 1.7rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--heading); }
.shop-footer { display: flex; justify-content: center; padding: 1.5rem 0 .5rem; }
.shop-footer img { height: 26px; width: auto; opacity: .9; }
.done-lines {
  list-style: none; margin: 1.25rem 0; padding: 0; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.done-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.done-lines li:last-child { border-bottom: 0; }
.done-note { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; }
.unavailable .lead { margin-bottom: .5rem; }

@media (min-width: 560px) {
  .tile-grid, .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
