/* ============================================================
   WordPress layer on top of the wireframe CSS (vardo.css, unchanged).
   In the wireframe some navigation elements were <button>s driven by a
   JS router; on the real site they are links. These rules give the links
   exactly the same look, and add the few WP-only pieces.
   ============================================================ */

/* breadcrumbs: link = the wireframe's button */
.crumbs a{background:none; border:0; padding:0; cursor:pointer; color:var(--ink-3); font-size:inherit; text-align:center}
.crumbs a:hover{color:var(--brand)}
.imghero .crumbs a{color:var(--ink-2); margin-bottom:4px}
.imghero .crumbs a:hover{color:var(--brand)}

/* footer socials as links */
.socials a,.socials .soc-off{width:36px; height:36px; border-radius:var(--r-pill); border:1px solid rgba(255,255,255,.2); background:transparent; color:var(--on-deep); display:grid; place-items:center; font-size:1rem; cursor:pointer; padding:1px 6px; text-align:center; transition:background .18s}
.socials a:hover{background:rgba(255,255,255,.11)}

/* home panels are links */
.tri[data-href]{cursor:pointer}
.tri-t{text-decoration:none}

/* one view per URL: the active section is always shown */
[data-view]{display:block}

/* honeypot field for the public forms */
.hp{position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden}

/* admin bar offsets the sticky header */
.admin-bar .nav{top:32px}
@media (max-width:782px){ .admin-bar .nav{top:46px} }
@media (max-width:600px){ .admin-bar .nav{top:0} }

/* generic page content (privacy policy and other plain pages) */
.prose{max-width:72ch}
.prose > * + *{margin-top:1em}
.prose h2{font-size:1.5rem; margin-top:1.6em}
.prose h3{font-size:1.2rem; margin-top:1.4em}
.prose a{color:var(--brand); text-decoration:underline}
.prose ul{list-style:disc; padding-left:1.3em}
.prose ol{list-style:decimal; padding-left:1.3em}

/* catalogue quantity control wrapper: invisible to the row grid */
.ctl{display:contents}

/* language switch (shown only when the English version is on) */
.lang-btn{font-size:.75rem; font-weight:700; letter-spacing:.02em; text-decoration:none}

/* client logos uploaded as raster images take the same size as the inline marks */
.logos .logo-img{height:34px; width:auto; opacity:.72}

/* links that replace the wireframe's <button>s keep the button's centred text */
a.btn.is-btn{text-align:center}

/* ============================================================
   Fixes on top of the wireframe (2026-10 QA pass)
   ============================================================ */

/* dark theme: the section tint follows the dark palette's brand colour, not the light one */
:root[data-theme="dark"] [data-view]{--page-rgb:217,180,140}

/* dark theme: photo heroes get a dark wash, so the light text stays readable */
:root[data-theme="dark"] .imghero::before{
  background:
    linear-gradient(100deg, rgba(21,16,12,.90) 0%, rgba(21,16,12,.80) 40%, rgba(21,16,12,.62) 70%, rgba(21,16,12,.52) 100%),
    linear-gradient(180deg, rgba(21,16,12,.45) 0%, rgba(21,16,12,.10) 45%, rgba(21,16,12,.40) 100%);
}
:root[data-theme="dark"] .delivery--glass .dlv{
  background:rgba(30,23,18,.74); border-color:rgba(255,255,255,.12);
  box-shadow:0 10px 30px -16px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
}
:root[data-theme="dark"] .delivery--glass .dlv:hover{background:rgba(38,29,23,.92); border-color:var(--line-2)}

/* text on brand / accent fills uses the palette's "on" colour (white in light, dark ink in dark) */
.wstep.is-on .wstep-n,.brand-mark{color:var(--on-brand)}
.badge--today,.saletag{color:var(--on-accent)}
.saletag{box-shadow:0 3px 14px -2px rgba(166,61,74,.5)}

/* phones: comfortable tap targets and no text under 12px */
@media (max-width:900px){
  .nav .brand{min-height:44px}
  .crumbs a{display:inline-flex; align-items:center; min-height:32px}
  .foot a,.foot .link-b{display:inline-flex; align-items:center; min-height:32px}
  .kicker,.tri-k{font-size:.75rem}
}

/* images now carry width/height (no layout shift); CSS-set heights still win */
:where(img[width][height]){height:auto}

/* bakery: working hours under the intro, and the product gallery by category */
.hours{margin:2px 0 0; display:flex; flex-direction:column; gap:6px; font-size:.9375rem; color:var(--ink-2)}
.hours dd{margin:0; display:flex; align-items:center; gap:9px; flex-wrap:wrap}
.hours dd i{color:var(--brand); font-size:1.1rem}
.bgal{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px}
@media (max-width:1100px){ .bgal{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:700px){ .bgal{grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px} }
.bgal-i{position:relative; display:block; aspect-ratio:1; padding:0; border:1px solid var(--line); border-radius:var(--r); overflow:hidden; background:var(--surface-2); cursor:zoom-in; box-shadow:var(--shadow-1)}
.bgal-i img{width:100%; height:100%; object-fit:cover; transition:transform .55s cubic-bezier(.16,1,.3,1)}
.bgal-i:hover img,.bgal-i:focus-visible img{transform:scale(1.05)}
.bgal-cap{position:absolute; inset:auto 0 0 0; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:26px 12px 10px; font-size:.8125rem; font-weight:600; text-align:left; color:#fff; background:linear-gradient(180deg, rgba(20,14,10,0) 0%, rgba(20,14,10,.78) 100%)}
.bgal-i[hidden]{display:none}

/* phones: one-column grids may shrink below their tables' width (the tables scroll inside .tablewrap) */
@media (max-width:900px){
  .split,.split--wide-left,.catadm{grid-template-columns:minmax(0,1fr)}
  .catadm-add{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* cabinet tables with a text column: wide enough that the dish list does not wrap word by word (they scroll inside .tablewrap) */
#empOrdersTable{min-width:960px}
#empOrdersTable td:nth-child(3){min-width:320px}
#invDetTable,#adOrdTable{min-width:760px}

/* photo heroes: the wash must sit above the photo (the photo is a later absolutely positioned sibling), the copy above both */
.imghero::before{z-index:1}
.imghero > .wrap{position:relative; z-index:2}
/* the glass delivery list is one column, as intended (the generic .delivery 3-column rule comes later in vardo.css) */
.delivery.delivery--glass{grid-template-columns:1fr}

/* lunch cabinet, company modal: the fee type and amount stack on a phone, so the select's text is not cut */
@media (max-width:480px){ #coModal .grid-2{grid-template-columns:minmax(0,1fr)} }

/* admin cabinet, a catering request's page: on narrow screens the one column may shrink below the product table (it scrolls inside .tablewrap) */
.reqd > *{min-width:0}
@media (max-width:1000px){ .reqd{grid-template-columns:minmax(0,1fr)} }
