/* Styles for what the app adds on top of the Figma frames: the enquiry panel and
   enquiry cards in My enQ, profile pictures, and the buyer Overview. Same
   vocabulary as the wireframe — Inter, #111 on white, grey text, 1px #E6E6E6
   borders, 10–12px radii. */

/* ================================================================ enquiries in a chat
   One chat per buyer–seller pair; each enquiry is a card in the thread and an item
   in the panel on the right. */

/* pills shared by the panel, the cards and the Overview table */
.ep-pill { display: inline-flex; align-items: center; flex: 0 0 auto; border-radius: 12px; padding: 3px 10px; font: 600 11px/1.4 Inter, sans-serif; font-style: normal; background: #efefef; color: #333; white-space: nowrap; }
.ep-pill.on, .ep-pill.new { background: #111; color: #fff; }
.ep-pill.wait { background: #fff; color: #333; box-shadow: inset 0 0 0 1px #d0d0d0; }
.ep-pill.deal { background: #e8f3ec; color: #14532d; }
.ep-pill.off { background: #f2f2f2; color: #767676; }
.ep-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: #f2f2f2; color: #111; font: 600 12px Inter, sans-serif; }

.ep-btn { border: 1px solid #d0d0d0; background: #fff; color: #111; border-radius: 6px; padding: 7px 12px; min-height: 32px; font: 600 13px Inter, sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.ep-btn:hover { background: #f5f5f5; }
.ep-btn.primary { background: #111; border-color: #111; color: #fff; }
.ep-btn.primary:hover { background: #333; }
.ep-btn.block { width: 100%; min-height: 40px; }
.ep-btn:focus-visible, .ep-link:focus-visible, .ep-item:focus-visible, .ov-tile:focus-visible, .ov-tr:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.ep-link { border: 0; background: none; padding: 4px 0; font: 600 13px Inter, sans-serif; color: #111; cursor: pointer; white-space: nowrap; }
.ep-link:hover { text-decoration: underline; }
.ep-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* the card in the thread */
.enq-card { scroll-margin: 120px; border-radius: 12px; transition: box-shadow .3s ease; }
.enq-card-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ececec; width: 100%; }
.enq-card-note { font: 400 12px/1.5 Inter, sans-serif; color: #767676; }
/* the buyer's own enquiry is a dark outgoing bubble */
.enq-dark .enq-card-foot { border-top-color: rgba(255, 255, 255, .16); }
.enq-dark .ep-pill.on, .enq-dark .ep-pill.new { background: #fff; color: #111; }
.enq-dark .ep-pill.wait { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.enq-dark .ep-pill.off { background: rgba(255, 255, 255, .12); color: #ddd; }
.enq-dark .enq-card-note { color: #bbb; }
.enq-dark .enq-flash { animation-name: enq-flash-dark; }
@keyframes enq-flash-dark { 0%, 30% { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #111, 0 8px 24px rgba(0, 0, 0, .18); } 100% { box-shadow: 0 0 0 0 transparent; } }
.enq-flash { animation: enq-flash 1.6s ease-out; }
@keyframes enq-flash { 0%, 30% { box-shadow: 0 0 0 3px #111, 0 8px 24px rgba(0, 0, 0, .12); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* the panel */
.enq-panel {
  flex: 0 0 300px; width: 300px; align-self: flex-start;
  position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 16px;
  font-family: Inter, sans-serif; scrollbar-width: thin;
}
.ep-who { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #ececec; }
.ep-avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #f2f2f2; color: #555; display: grid; place-items: center; font: 600 14px Inter, sans-serif; overflow: hidden; }
.ep-avatar.sm { width: 36px; height: 36px; border-radius: 8px; font-size: 13px; }
.ep-who-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ep-who-t strong { font: 600 14px/1.35 Inter, sans-serif; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-who-t span { font: 400 12px/1.4 Inter, sans-serif; color: #767676; }
.ep-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ep-head h4 { margin: 0; font: 600 15px/1.3 Inter, sans-serif; color: #111; }
.ep-sub { margin: -6px 0 0; font: 400 12px/1.4 Inter, sans-serif; color: #767676; }
/* The panel is a timeline: a node per enquiry, joined by a continuous line, newest
   first — the same thread the wireframe panel draws. The gap lives on the item so the
   line runs through it instead of breaking at every card. */
.ep-list { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 22px; }
.ep-item { position: relative; margin-bottom: 10px; }
.ep-item:last-child { margin-bottom: 0; }
.ep-item::before {                      /* the node */
  content: ''; position: absolute; left: -22px; top: 15px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #111; box-shadow: 0 0 0 1.5px #111;
}
.ep-item::after {                       /* the line on to the next node */
  content: ''; position: absolute; left: -18px; top: 26px; bottom: -10px;
  width: 1px; background: #e6e6e6;
}
.ep-item:last-child::after { display: none; }
/* a finished enquiry is a hollow node */
.ep-item[data-state="closed"]::before,
.ep-item[data-state="declined"]::before { background: #fff; box-shadow: 0 0 0 1.5px #d0d0d0; }
.ep-item { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid #e6e6e6; border-radius: 10px; cursor: pointer; background: #fff; transition: border-color .15s ease, background .15s ease; }
.ep-item:hover { border-color: #b8b8b8; }
.ep-item.current { border-color: #111; background: #fafafa; }
.ep-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ep-ref { font: 600 12px/1.3 Inter, sans-serif; color: #555; letter-spacing: .02em; }
.ep-prod { font: 600 14px/1.35 Inter, sans-serif; color: #111; }
/* products in an enquiry: one line each, "Product name (quantity)" */
.ep-prods { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ep-prods li { font: 600 14px/1.4 Inter, sans-serif; color: #111; }
.ep-pqty { font-weight: 500; color: #555; white-space: nowrap; }
.ep-meta { font: 400 12px/1.45 Inter, sans-serif; color: #767676; }
.ep-item .ep-actions { margin-top: 6px; }
.ep-note { margin: 0; font: 400 12px/1.5 Inter, sans-serif; color: #8a8a8a; }
.row-enq-count { display: block; margin-top: 4px; font: 600 11px/1.3 Inter, sans-serif; color: #767676; white-space: nowrap; }

/* My enQ with no chat open */
.thread-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 420px; padding: 32px; text-align: center; font-family: Inter, sans-serif; }
.thread-empty strong { font: 600 17px Inter, sans-serif; color: #111; }
.thread-empty span { font: 400 14px/1.5 Inter, sans-serif; color: #767676; max-width: 360px; }
.thread-empty .ep-btn { margin-top: 8px; }

/* below the tablet band the chat shows one pane at a time: the enquiry panel
   sits at the top of the open chat as a strip that scrolls sideways */
@container stage (max-width: 1099px) {
  .enq-panel { position: static; order: -1; flex: 0 0 auto; width: 100% !important; max-height: none; border-radius: 0; border-width: 0 0 1px; padding: 12px 16px; }
  .enq-panel .ep-who, .enq-panel .ep-note { display: none; }
  .enq-panel .ep-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px;
    padding-left: 0; gap: 8px; }
  /* no vertical thread when the list runs sideways */
  .enq-panel .ep-item::before, .enq-panel .ep-item::after { display: none; }
  .enq-panel .ep-item { flex: 0 0 260px; scroll-snap-align: start; margin-bottom: 0; }
  .enq-card { scroll-margin: 200px; }
}
html:not([data-mode="desktop"]) .screen[data-pane="list"] .enq-panel { display: none; }

/* ================================================================ profile pictures */
.has-photo { overflow: hidden; }
.has-photo > * { visibility: hidden; }
.photo-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 24px 25px; display: flex; flex-direction: column; gap: 20px; font-family: Inter, sans-serif; align-self: stretch; }
.pc-head h3 { margin: 0 0 4px; font: 600 18px/1.4 Inter, sans-serif; color: #111; }
.pc-head p { margin: 0; font: 400 14px/1.45 Inter, sans-serif; color: #767676; }
.pc-row { display: flex; align-items: center; gap: 20px; }
.pc-cover-row { align-items: flex-start; padding-top: 20px; border-top: 1px solid #ececec; }
.pc-avatar { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; background: #f2f2f2; color: #555; display: grid; place-items: center; font: 600 26px Inter, sans-serif; cursor: pointer; box-shadow: inset 0 0 0 1px #e0e0e0; }
.pc-cover { flex: 0 0 auto; width: 280px; aspect-ratio: 4 / 1; border-radius: 8px; background: #f2f2f2 repeating-linear-gradient(135deg, transparent 0 10px, rgba(0, 0, 0, .025) 10px 20px); display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1px #e0e0e0; }
.pc-cover span { font: 500 12px Inter, sans-serif; color: #8a8a8a; }
.pc-avatar.drop, .pc-cover.drop { box-shadow: inset 0 0 0 2px #111; }
.pc-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pc-copy strong { font: 600 15px/1.4 Inter, sans-serif; color: #111; }
.pc-copy span { font: 400 13px/1.5 Inter, sans-serif; color: #767676; max-width: 560px; }
.pc-actions { display: flex; gap: 8px; margin-top: 8px; }
.pc-actions [hidden] { display: none; }
.pv-cover { align-self: stretch; height: 180px; margin: 0 0 -8px; border-radius: 12px 12px 0 0; background: #f2f2f2 center / cover no-repeat; }
.pv-cover.empty { display: grid; place-items: center; font: 500 13px Inter, sans-serif; color: #8a8a8a; background-image: repeating-linear-gradient(135deg, transparent 0 12px, rgba(0, 0, 0, .025) 12px 24px); }
@container stage (max-width: 759px) {
  .pc-row { flex-direction: column; align-items: flex-start; }
  .pc-cover { width: 100%; }
  .pv-cover { height: 120px; }
}

/* ================================================================ buyer Overview */
.ov { display: flex; flex-direction: column; gap: 24px; width: 100%; font-family: Inter, sans-serif; color: #111; }
.ov-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ov-head h1 { margin: 0 0 4px; font: 700 28px/1.3 Inter, sans-serif; letter-spacing: -.01em; }
.ov-head p { margin: 0; font: 400 14px/1.5 Inter, sans-serif; color: #666; }
.ov-actions { display: flex; gap: 12px; }
.ov-actions .ep-btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.ov-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ov-tile { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; cursor: pointer; font-family: Inter, sans-serif; transition: border-color .15s ease; }
.ov-tile:hover { border-color: #b8b8b8; }
.ov-tile span { font: 500 13px Inter, sans-serif; color: #666; }
.ov-tile strong { font: 700 32px/1.1 Inter, sans-serif; color: #111; }
.ov-tile em { font: 400 12px/1.4 Inter, sans-serif; font-style: normal; color: #767676; }
.ov-cols { display: flex; gap: 24px; align-items: flex-start; }
.ov-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ov-side { flex: 0 0 344px; display: flex; flex-direction: column; gap: 24px; }
.ov-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.ov-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ov-card-h h2 { margin: 0; font: 700 17px/1.4 Inter, sans-serif; }
.ov-h3 { margin: 12px 0 6px; font: 600 14px Inter, sans-serif; }
.ov-sub { margin: 0; font: 400 12px/1.5 Inter, sans-serif; color: #767676; }
.ov-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eeeeee; }
.ov-row:last-child { border-bottom: 0; }
.ov-row > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ov-row strong { font: 600 14px/1.4 Inter, sans-serif; }
.ov-row small, .ov-tr small, .ov-seller-row small { font: 400 12px/1.45 Inter, sans-serif; color: #767676; }
.ov-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #f2f2f2; display: grid; place-items: center; font: 600 14px Inter, sans-serif; color: #333; }
.ov-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 12px; text-align: center; }
.ov-empty strong { font: 600 15px Inter, sans-serif; }
.ov-empty span { font: 400 13px/1.5 Inter, sans-serif; color: #767676; }
.ov-empty .ep-btn { margin-top: 10px; }
.ov-table { display: flex; flex-direction: column; }
.ov-tr { display: grid; grid-template-columns: 92px minmax(0, 1.4fr) minmax(0, 1fr) 150px 84px; gap: 12px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid #eeeeee; background: none; text-align: left; font: 500 13px Inter, sans-serif; color: #111; cursor: pointer; width: 100%; }
.ov-tr:last-child { border-bottom: 0; }
.ov-tr:not(.ov-th):hover { background: #fafafa; }
.ov-tr > span { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ov-tr > span > strong, .ov-tr > span > small { max-width: 100%; }
.ov-tr strong { font: 600 13px/1.4 Inter, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-th { cursor: default; padding-top: 4px; font: 600 11px Inter, sans-serif; color: #767676; letter-spacing: .04em; text-transform: uppercase; border-bottom-color: #e6e6e6; }
.ov-ref { font-weight: 600; }
.ov-seller, .ov-when { color: #555; }
.ov-seller-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eeeeee; }
.ov-seller-row:last-child { border-bottom: 0; }
.ov-seller-row > div:nth-child(2) { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ov-seller-row strong { font: 600 13px/1.4 Inter, sans-serif; }
.ov-offer { background: #111; color: #fff; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ov-offer span { font: 600 11px Inter, sans-serif; color: #aaa; letter-spacing: .06em; }
.ov-offer strong { font: 700 15px Inter, sans-serif; }
.ov-offer p { margin: 0; font: 400 12px/1.5 Inter, sans-serif; color: #ccc; }
.ov-bar { height: 6px; border-radius: 3px; background: #eeeeee; overflow: hidden; }
.ov-bar i { display: block; height: 100%; background: #111; border-radius: 3px; }
.ov-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ov-check { display: flex; align-items: center; gap: 10px; font: 500 13px Inter, sans-serif; color: #111; }
.ov-check > span:first-child { width: 16px; color: #aaa; }
.ov-check.ok { color: #767676; }
.ov-check.ok > span:first-child { color: #111; }
.ov-check > span:nth-child(2) { flex: 1 1 auto; }
@container stage (max-width: 1099px) {
  .ov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-cols { flex-direction: column; align-items: stretch; }
  .ov-side { flex: 1 1 auto; }
}
@container stage (max-width: 759px) {
  .ov-head h1 { font-size: 22px; }
  .ov-actions { width: 100%; }
  .ov-actions .ep-btn { flex: 1 1 0; }
  .ov-tr { grid-template-columns: minmax(0, 1fr) auto; }
  .ov-tr > span:nth-child(1), .ov-tr > span:nth-child(3), .ov-tr > span:nth-child(5) { display: none; }
  .ov-row { flex-wrap: wrap; }
  .ov-row .ep-btn { margin-left: 48px; }
}

/* ================================================================ design sync (js/sync.js) */
.hdr-link { font: 500 15px/18px Inter, sans-serif; white-space: nowrap; cursor: pointer; }
.hdr-link:hover { text-decoration: underline; }

/* About Us / Pricing — G-08 / G-09. The column is 1200 wide at 1440 and keeps
   a 24px gutter below that, like the rest of the frames. */
.pg { display: flex; flex-direction: column; align-self: stretch; width: 100%; font-family: Inter, sans-serif; color: #111; }
.pg-sec { padding: 64px max(24px, calc((100% - 1200px) / 2)); display: flex; flex-direction: column; gap: 16px; }
.pg-sec.pg-hero { padding-top: 32px; padding-bottom: 40px; }
.pg-sec.pg-flush { padding-top: 0; }
.pg-sec.pg-soft { background: #fafafa; }
.pg h1 { margin: 0; font: 700 44px/1.2 Inter, sans-serif; letter-spacing: -.01em; max-width: 900px; }
.pg h2 { margin: 0; font: 700 30px/1.3 Inter, sans-serif; letter-spacing: -.01em; }
.pg h3 { margin: 0; font: 600 18px/1.4 Inter, sans-serif; }
.pg p { margin: 0; font: 400 14px/1.6 Inter, sans-serif; color: #555; }
.pg .pg-lead { font-size: 17px; line-height: 1.6; color: #444; max-width: 760px; }
.pg-eyebrow { font: 600 12px/1.4 Inter, sans-serif; letter-spacing: .06em; color: #767676; }
.pg-sub { margin-top: -8px !important; font-size: 15px !important; }
.pg-photo { height: 420px; border-radius: 8px; background: #eeeeee; display: grid; place-items: center; font: 600 12px Inter, sans-serif; letter-spacing: .08em; color: #999; }
.pg-photo.sm { height: 220px; }
.pg-two { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 80px; }
.pg-two h2 { margin-top: 8px; }
.pg-story { display: flex; flex-direction: column; gap: 20px; }
.pg-story p { font-size: 17px; color: #444; }
.pg-grid2, .pg-grid3, .pg-grid4 { display: grid; gap: 20px; margin-top: 16px; }
.pg-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pg-card.pg-plain { background: #fafafa; border-color: #fafafa; }
.pg-timeline { gap: 24px; }
.pg-mile { border-top: 2px solid #111; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.pg-year { font: 700 30px/1.2 Inter, sans-serif; }
.pg-mission { font: 700 34px/1.3 Inter, sans-serif !important; color: #111 !important; max-width: 960px; margin: 8px 0 8px !important; }
.pg-person .pg-photo { align-self: stretch; margin-bottom: 6px; }
.pg-role { font: 400 14px Inter, sans-serif; color: #767676; margin-top: -6px; }
.pg-li { font: 600 13px Inter, sans-serif; }
.pg-stat strong { font: 700 40px/1.1 Inter, sans-serif; }
.pg-stat p { font-size: 15px; }
.pg-path { padding: 32px; }
.pg-path h3 { font: 700 24px/1.3 Inter, sans-serif; }
.pg-path p { font-size: 15px; }
.pg-path .ep-btn { margin-top: 8px; min-height: 44px; padding: 0 20px; font-size: 14px; }
.pg-textlink { align-self: flex-start; border: 0; background: none; padding: 8px 0 0; font: 600 15px Inter, sans-serif; color: #111; cursor: pointer; }
.pg-textlink:hover { text-decoration: underline; }
.pg-band { display: flex; align-items: center; gap: 24px; background: #111; color: #fff; border-radius: 12px; padding: 32px 36px; }
.pg-band > div { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }
.pg-band h2 { color: #fff; font-size: 22px; }
.pg-band p { color: #cfcfcf; }
.ep-btn.pg-inv { background: #111; color: #fff; border-color: #fff; min-height: 44px; padding: 0 20px; font-size: 14px; }
.ep-btn.pg-inv:hover { background: #222; }
.pg-num { width: 36px; height: 36px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font: 600 15px Inter, sans-serif; }
.pg-chip { background: #f2f2f2; border-radius: 4px; padding: 4px 10px; font: 500 12px Inter, sans-serif; color: #333; }
.pg-headrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pg-headrow > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.pg-toggle { display: inline-flex; gap: 8px; }
.pg-toggle button { border: 1px solid #d0d0d0; background: #fff; color: #111; border-radius: 20px; padding: 9px 16px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.pg-toggle button.on { background: #111; border-color: #111; color: #fff; }
.pg-toggle button:focus-visible, .pg-textlink:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.pg-table { border: 1px solid #e6e6e6; border-radius: 12px; overflow: hidden; background: #fff; margin-top: 8px; }
.pg-tr { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; padding: 18px 24px; border-bottom: 1px solid #e6e6e6; font: 500 15px Inter, sans-serif; }
.pg-tr > span:last-child { text-align: right; font-weight: 600; }
.pg-th { background: #fafafa; padding: 14px 24px; font: 600 12px Inter, sans-serif; letter-spacing: .06em; color: #555; }
.pg-total { background: #f2f2f2; border-bottom: 0; font-weight: 600; }
.pg-note { font-size: 13px !important; color: #767676 !important; }
@container stage (max-width: 1099px) {
  .pg-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-grid3 { grid-template-columns: minmax(0, 1fr); }
  .pg-two { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@container stage (max-width: 759px) {
  .pg-sec { padding-top: 40px; padding-bottom: 40px; padding-left: 16px; padding-right: 16px; }
  .pg h1 { font-size: 32px; } .pg h2 { font-size: 24px; } .pg-mission { font-size: 24px !important; }
  .pg-grid2, .pg-grid4 { grid-template-columns: minmax(0, 1fr); }
  .pg-photo { height: 220px; }
  .pg-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .pg-tr { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
}

/* ================================================================ enquiry form
   Greyscale throughout, matching the wireframe palette. Nothing here invents a
   component — it gives the ones already drawn the states a real form needs:
   focus, error, disabled, disclosure, and a listbox in place of the unit toggle. */

/* The body scrolls on its own, so who you are writing to (head) and what will
   be sent (footer, with Send) never leave the screen on a long form. */
.enq-modal { height: auto !important; min-height: 0 !important; }
.enq-slot { align-self: stretch; width: 100%; display: block; }
.enq-slot.is-swapping { overflow: hidden !important; }
@media (min-width: 761px) { .enq-slot { max-height: calc(100vh - 280px); overflow-y: auto; overscroll-behavior: contain; } }
@media (max-width: 760px) { .enq-slot { max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; } }

/* ------------------------------------------------------------------- inputs */
.ip-input { transition: box-shadow 140ms ease-out; }
.ip-input.is-focus { box-shadow: inset 0 0 0 2px #111111; }
[data-name^="Field /"].has-err .ip-input { box-shadow: inset 0 0 0 1.5px #767676; }
.field-err { margin-top: 6px; font: 500 12px/1.4 Inter, sans-serif; color: #333333; display: flex; gap: 6px; align-items: flex-start; }
/* a mark as well as the tone shift, so the error does not rest on colour alone */
.field-err::before { content: '!'; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; border-radius: 50%; background: #111111; color: #ffffff; font: 700 10px/14px Inter, sans-serif; text-align: center; }

/* --------------------------------------------------------- unit dropdown */
.ip-select { cursor: pointer; user-select: none; }
.ip-select:focus-visible { outline: 2px solid #111111; outline-offset: 2px; }
.ip-select-pop {
  position: fixed; z-index: 1000; padding: 6px; max-height: 264px; overflow-y: auto;
  background: #ffffff; border: 1px solid #e6e6e6; border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.16);
  animation: modal-in var(--t-fast) var(--ease-out) both;
}
.ip-select-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; padding: 0 10px; border-radius: 7px; cursor: pointer;
  font: 500 14px/1.4 Inter, sans-serif; color: #111111;
}
.ip-select-opt .ip-tick { visibility: hidden; font-size: 12px; }
.ip-select-opt.on .ip-tick { visibility: visible; }
.ip-select-opt.at { background: #f2f2f2; }
@media (pointer: coarse) { .ip-select-opt { min-height: 48px; } }

/* --------------------------------------------- progressive disclosure */
.ip-reveal { height: 0; opacity: 0; width: 100%; overflow: hidden; }
.ip-reveal.open { height: auto; opacity: 1; }
.ip-reveal > .ip-reveal-in { display: flex; flex-direction: column; width: 100%; }
.ip-disclose {
  appearance: none; background: none; border: 0; padding: 6px 0; margin: 0; cursor: pointer;
  align-self: flex-start; text-align: left; color: #555555;
  font: 500 13px/1.5 Inter, -apple-system, sans-serif;
}
.ip-disclose:hover { color: #111111; text-decoration: underline; }
.ip-disclose:focus-visible { outline: 2px solid #111111; outline-offset: 3px; border-radius: 3px; }

/* ----------------------------------------------------------- product cards */
.product-summary { cursor: pointer; border-radius: 8px; transition: background 140ms ease; }
.product-summary:hover { background: #f7f7f7; }
.product-summary:focus-visible { outline: 2px solid #111111; outline-offset: 2px; }
.is-open-product { border-radius: 10px; }
/* the action that closes the card sits in the card, under the fields it closes */
.ip-card-actions { display: flex; justify-content: flex-end; width: 100%; padding-top: 2px; }
.ip-btn-save { cursor: pointer; }
.ip-btn-save:focus-visible { outline: 2px solid #111111; outline-offset: 2px; }

/* one disabled treatment for every control that can be switched off */
.is-disabled { opacity: .4; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .ip-input, .product-summary { transition: none !important; }
  .ip-select-pop { animation: none !important; }
}

/* The sheet at phone width. The overlay rules stretch .overlay-box, but the
   Figma frame inside it keeps its drawn width, so the unit field, Remove and
   Save product all used to sit off the right edge of the screen. */
@media (max-width: 759px) {
  /* the overlay is a grid whose column was sized to the sheet's min-content
     width (510px) — capping the column is what lets the sheet shrink at all */
  .overlay:has(> .overlay-box > .enq-modal) { grid-template-columns: minmax(0, 1fr); }
  .overlay-box:has(> .enq-modal) { width: 100%; max-width: 100%; min-width: 0; }
  .overlay-box > .enq-modal { width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
  .enq-modal [data-name] { max-width: 100% !important; min-width: 0 !important; }
  .enq-modal .is-row > [data-name] { flex-shrink: 1 !important; }
  /* quantity and unit stay on one line — a unit on its own row reads as a
     separate question */
  .enq-modal [data-name="Quantity row"] { flex-wrap: nowrap !important; }
  .enq-modal [data-name="Quantity row"] > [data-name="Field / Quantity *"] { flex: 1 1 0 !important; }
  .enq-modal [data-name="Quantity row"] > [data-name="Field / Unit *"] { flex: 0 0 108px !important; }
  /* .screen gets this from responsive.css; the overlay sits outside .screen, so
     without it every line of copy in the sheet is one unwrappable run */
  .enq-modal .t-pre { white-space: pre-wrap !important; }
  .enq-modal [data-name="Head"] { flex-wrap: nowrap !important; }
  .enq-modal [data-name="To"] { flex-wrap: wrap !important; row-gap: 4px !important; }
  .enq-modal [data-name="Footer"] { flex-wrap: wrap !important; row-gap: 12px !important; }
  .enq-modal [data-name="Add product row"] { flex-wrap: wrap !important; row-gap: 8px !important; }
  .enq-modal [data-name="Toggle row"] { flex-wrap: nowrap !important; }
  /* leave the footer clear of the fold on a short phone */
  .enq-slot { max-height: 54vh; }
}
