/* Blank Apparel · chrome: the header, the flyouts it opens, the picture frames and the mast.
 * Shared by every page, and the piece that becomes header.php and footer.php in the theme. */

/* ============================ chrome ============================ */
/* two bars, the way a shop does it: the tall one scrolls away, a slim black one slides in behind it */

.skip {
  position: absolute; inset-inline-start: var(--space-md); top: var(--space-xs);
  transform: translateY(-200%); background: var(--color-ink); color: var(--color-paper);
  padding: var(--space-xs) var(--space-md); border-radius: var(--radius-sm); z-index: var(--z-modal);
  transition: transform var(--dur-micro) var(--ease-out);
}
.skip:focus-visible { transform: translateY(0); }

.utility {
  position: relative; z-index: var(--z-raised);
  height: var(--utility-height);
  background: var(--color-strip); color: var(--color-strip-ink);
  font-size: var(--text-sm);
}
.utility-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.utility-in p { margin: 0; }
.utility-links { display: flex; gap: var(--space-lg); }
/* on a painted strip the link carries its own contrast, never a faded one */
.utility-links a { color: inherit; text-decoration: none; white-space: nowrap; transition: text-decoration-color var(--dur-micro) var(--ease-out); }
.utility-links a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
/* the strip is painted in the accent, so its focus ring cannot also be the accent */
.utility-links a:focus-visible { outline: 2px solid var(--color-strip-ink); outline-offset: 3px; }
.utility-in p { color: inherit; }

/* the tall bar lives on the picture and leaves with it */
.rail { position: relative; z-index: var(--z-raised); color: var(--color-ink); }
/* only a page that opens on a picture may borrow the paper colour for its bar */
.rail-over { color: var(--color-paper); }
.rail-in { height: var(--nav-height); display: flex; align-items: center; gap: var(--space-xl); }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); letter-spacing: -0.04em; text-decoration: none; color: inherit; flex-shrink: 0; }
/* the company's own logo, drawn in the colour of the bar it sits on: ink on
   paper, paper on the picture and on the dark bar */
.wordmark { display: inline-flex; align-items: center; }
.wordmark .logo { display: block; height: 1.15em; width: auto; fill: currentColor; }

/* the same bar, solid, arriving from above once the picture is gone */
.minibar {
  position: fixed; inset-inline: 0; top: 0; z-index: var(--z-sticky-nav);
  background: var(--color-ink); color: var(--color-paper);
  transform: translateY(-100%);
  transition: transform var(--dur-long) var(--ease-out);
}
.minibar[data-shown] { transform: translateY(0); }
.minibar-in { height: var(--mini-height); display: flex; align-items: center; gap: var(--space-xl); }
@media (prefers-reduced-motion: reduce) { .minibar { transition: none; } }

.rail-nav { display: flex; align-items: center; gap: var(--space-lg); flex: 1; min-width: 0; }
.rail-nav a { font-size: var(--text-md); text-decoration: none; color: inherit; opacity: 0.82; white-space: nowrap; transition: opacity var(--dur-micro) var(--ease-out); }
.rail-nav a:hover { opacity: 1; }

.drop-btn {
  font-family: var(--font-body); font-size: var(--text-md); font-weight: 400;
  background: transparent; border: 0; padding: 0; color: inherit; cursor: pointer;
  opacity: 0.82; white-space: nowrap;
  transition: opacity var(--dur-micro) var(--ease-out);
}
.drop-btn:hover, .drop-btn[aria-expanded="true"] { opacity: 1; }
.drop-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.drop-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* The icons keep their 44px target, which is what a finger needs, but the
   target is mostly air: two of them side by side already hold 25px between the
   glyphs before any gap is added. A gap on top of that read as a gappy bar, so
   the row closes up and only the business button keeps its distance. */
.rail-tools { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.rail-tools .rail-act { margin-inline-start: var(--space-sm); }
.icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px;
  background: transparent; border: 0; color: inherit; cursor: pointer; text-decoration: none; padding: 0;
  transition: opacity var(--dur-micro) var(--ease-out);
}
.icon:hover { opacity: 0.6; }
.icon:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.icon:disabled { opacity: 0.55; cursor: not-allowed; }
.icon.icon-menu { display: none; }
.burger { display: grid; gap: var(--space-2xs); width: 19px; }
.burger i {
  display: block; height: 1.5px; background: currentColor; border-radius: var(--radius-pill);
  transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-micro) var(--ease-out);
}
[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .burger i { transition: none; } }

.rail-act {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding-inline: var(--space-md); flex-shrink: 0; white-space: nowrap;
  font-size: var(--text-sm); font-weight: 500; text-decoration: none;
  background: var(--color-ink); color: var(--color-paper);
  border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-sm);
  transition: background var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
/* over the hero and on the dark bar the fill flips, so the one action in the
   chrome stays the solid shape on the bar whatever is behind it */
.rail-over .rail-act, .minibar .rail-act {
  background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper);
}
.rail-act:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); color: var(--color-paper); }
/* the fill stays solid on hover here: over the hero a see-through button would
   put its label straight onto a photograph */
.rail-over .rail-act:hover, .minibar .rail-act:hover {
  background: var(--color-paper-2); color: var(--color-ink); border-color: var(--color-paper-2);
}
.rail-act:active { background: var(--color-ink-2); }
.rail-act:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* one filled control on the page, and it is the business door */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding-inline: var(--space-xl);
  font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  border-radius: var(--radius-sm); border: var(--rule-hair) solid transparent;
  transition: background var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.btn-primary { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.btn-primary:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.btn-primary:active { background: var(--color-ink-2); }
.btn-quiet { color: inherit; border-color: var(--color-rule-strong); }
.btn-quiet:hover { border-color: currentColor; background: transparent; }
.btn-quiet:active { border-color: currentColor; }
.field .btn-primary { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); }
.field .btn-primary:hover { background: var(--color-paper-3); border-color: var(--color-paper-3); }
.field .btn-primary:active { background: var(--color-paper-3); }
.shop[data-world="business"] .btn-primary { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); }
.shop[data-world="business"] .btn-primary:hover { background: var(--color-paper-3); border-color: var(--color-paper-3); }
.shop[data-world="business"] .btn-quiet { border-color: var(--color-field-rule); }

/* everything else is a line of type with a rule under it */
.link-lg {
  display: inline-block; font-size: var(--text-md); text-decoration: none; color: inherit;
  border-bottom: var(--rule-hair) solid currentColor; padding-bottom: var(--space-3xs);
  transition: opacity var(--dur-micro) var(--ease-out);
}
.link-lg:hover { opacity: 0.6; }

/* The panels hang under whichever bar opened them, and they belong to that
   bar's layer, not to a layer of their own below it. A page may put sticky
   furniture of its own over its content — the catalogue's filter and sort bar,
   the business page's section nav, the product dock — and all of that sits on
   the sticky layer. A panel opened from the header must cover it, or the bar
   cuts across the open menu. */
.flyout {
  position: fixed; inset-inline: 0; top: var(--bar-h, 0px); z-index: var(--z-sticky-nav);
  background: var(--color-paper); color: var(--color-ink);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  box-shadow: var(--shadow-drop);
}
.mega-in {
  display: grid; gap: var(--space-md); padding-block: var(--space-lg);
}
/* align-content: start, or a card whose line of copy wraps hands its spare
   height to the gaps and lifts its logo plate out of line with the rest */
/* one row that scrolls, with the same two arrows the product shelves use:
   nine brands no longer take the whole window to show */
.mega-rail {
  display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.mega-rail::-webkit-scrollbar { display: none; }
.mega-rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.mega-rail > li { flex: 0 0 11.5rem; scroll-snap-align: start; min-width: 0; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }

.mega-card { display: grid; align-content: start; gap: var(--space-2xs); justify-items: start; text-align: start; text-decoration: none; color: inherit; min-width: 0; }
.mega-card:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.mega-art {
  display: block; width: 100%; position: relative; overflow: hidden; aspect-ratio: 1 / 1;
  background: var(--color-paper-2); border-radius: var(--radius-sm); margin-bottom: var(--space-xs);
}
.mega-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-logo {
  display: grid; place-items: center; justify-self: stretch; inline-size: 100%;
  min-block-size: 3.5rem;
  padding-inline: var(--space-xs); padding-block: 0.3rem;
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-short) var(--ease-out);
}
/* every brand file is the same 1200x300 frame, so every one is drawn at the
   same 160x40 box: how big a logo looks is decided once, inside the artwork,
   and never re-decided here */
.mega-logo img { display: block; inline-size: 160px; max-inline-size: 100%; block-size: auto; }
.mega-logo-t {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm);
  letter-spacing: -0.02em; line-height: 1; color: var(--color-ink); white-space: nowrap;
}
.mega-card:hover .mega-logo { border-color: var(--color-ink); }
.mega-say { font-size: var(--text-xs); color: var(--color-ink-2); }

/* ---------- search: a compact panel under the icons, with live results ---------- */
.flyout.searchbar {
  inset-inline-start: auto;
  inset-inline-end: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  inline-size: min(30rem, calc(100vw - 2 * var(--space-md)));
  border: var(--rule-hair) solid var(--color-rule); border-top: 0;
  box-shadow: 0 12px 32px oklch(20% 0.01 264 / 0.08);
}
.searchbar-in { padding: var(--space-sm); display: grid; gap: var(--space-xs); }
.sfield { position: relative; display: flex; align-items: center; }
.sfield svg { position: absolute; inset-inline-start: var(--space-sm); color: var(--color-muted); pointer-events: none; }
.searchbar input {
  color: var(--color-ink); flex: 1; min-width: 0; min-height: 40px;
  padding-inline: calc(var(--space-sm) + 17px + var(--space-xs)) 36px;
  font-family: var(--font-body); font-size: var(--text-sm); background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-sm);
}
.searchbar input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
/* clear: close to the field's edge, in ink, and hidden while results load (the spinner takes its place) */
.sclear {
  position: absolute; inset-inline-end: 4px; inline-size: 32px; block-size: 32px;
  display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--color-ink-2); border-radius: var(--radius-sm); transition: color var(--dur-micro) var(--ease-out);
}
.sclear[hidden] { display: none; }
.sclear:hover { color: var(--color-ink); }
.sclear:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.searchbar.is-loading .sclear { visibility: hidden; }
.searchbar input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.sspin {
  position: absolute; inset-inline-end: 13px; inline-size: 14px; block-size: 14px; pointer-events: none;
  border: 1.5px solid var(--color-rule-strong); border-top-color: var(--color-ink); border-radius: 50%;
  opacity: 0; transition: opacity var(--dur-micro) var(--ease-out); animation: sspin 700ms linear infinite;
}
.searchbar.is-loading .sspin { opacity: 1; }
@keyframes sspin { to { transform: rotate(360deg); } }

.sres { padding-bottom: var(--space-2xs); animation: sresIn var(--dur-short) var(--ease-out); }
@keyframes sresIn { from { opacity: 0; transform: translateY(-4px); } }
.sres-h { margin: var(--space-sm) 0 var(--space-2xs); font-size: var(--text-xs); color: var(--color-muted); }
.sres-pop, .sres-brands { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.sres-chip, .sres-brand {
  font: inherit; font-size: var(--text-sm); padding: var(--space-2xs) var(--space-sm); min-height: 32px;
  display: inline-flex; align-items: center; gap: var(--space-xs);
  background: transparent; color: var(--color-ink); text-decoration: none; cursor: pointer;
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-sm);
  transition: border-color var(--dur-micro) var(--ease-out);
}
.sres-brand .num { font-size: var(--text-xs); color: var(--color-muted); }
.sres-chip:hover, .sres-brand:hover, .sres-chip.is-active, .sres-brand.is-active { border-color: var(--color-ink); }
.sres-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sres-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: var(--space-sm);
  padding: var(--space-xs); color: inherit; text-decoration: none;
  border-radius: var(--radius-sm); transition: background var(--dur-micro) var(--ease-out);
}
.sres-row:hover, .sres-row.is-active { background: var(--color-paper-2); }
.sres-row img { inline-size: 44px; block-size: 56px; object-fit: cover; background: var(--color-paper-3); }
.sres-t { display: grid; min-width: 0; }
.sres-b { font-size: var(--text-xs); color: var(--color-muted); }
.sres-n { font-size: var(--text-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sres-col { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: var(--text-xs); color: var(--color-ink-2); }
.sres-col i { inline-size: 10px; block-size: 10px; border-radius: 50%; border: 1px solid var(--color-rule-strong); }
.sres-col .c-white { background: var(--garment-white); } .sres-col .c-black { background: var(--garment-black); } .sres-col .c-navy { background: var(--garment-navy); } .sres-col .c-sand { background: var(--garment-sand); }
.sres-col .c-sage { background: var(--garment-sage); } .sres-col .c-clay { background: var(--garment-clay); } .sres-col .c-olive { background: var(--garment-olive); } .sres-col .c-butter { background: var(--garment-butter); }
.sres-p { font-size: var(--text-sm); }
.sres mark { background: none; color: inherit; font-weight: 700; }
.sres-all {
  display: block; margin-top: var(--space-xs); padding: var(--space-sm) var(--space-xs);
  border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); font-weight: 500;
  color: var(--color-ink); text-decoration: none;
}
.sres-all:hover, .sres-all.is-active { text-decoration: underline; text-underline-offset: 0.2em; }
.sres-empty { margin: var(--space-sm) 0; font-size: var(--text-sm); color: var(--color-ink-2); }
@media (max-width: 48rem) {
  .flyout.searchbar { inset-inline: 0; inline-size: auto; border-inline: 0; }
}
@media (prefers-reduced-motion: reduce) { .sspin { animation-duration: 2s; } .sres { animation: none; } }

/* ---------- the drawer ---------- */
/* One shell, because the site opens a drawer for two different jobs: the
   garment's colour and size grid, and the basket. A reader should not be able
   to tell from the furniture which one they are in. */
.drawer { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--scrim-mid); }
.drawer-in {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  width: min(34rem, 100%); display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--color-paper); color: var(--color-ink);
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.drawer-head h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); }
.drawer-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-inline-end: calc(var(--space-sm) * -1);
  padding: 0; cursor: pointer; color: inherit; background: transparent; border: 0; border-radius: var(--radius-sm);
  transition: background var(--dur-micro) var(--ease-out);
}
.drawer-x:hover { background: var(--color-paper-3); }
.drawer-x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.drawer-x:disabled { opacity: 0.5; cursor: not-allowed; }
.drawer-body { overflow-y: auto; overflow-x: hidden; padding: var(--space-lg); display: grid; gap: var(--space-2xl); align-content: start; }
.drawer-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl) calc(var(--space-lg) + env(safe-area-inset-bottom));
  border-top: var(--rule-hair) solid var(--color-rule);
}
@media (prefers-reduced-motion: reduce) { .drawer-x { transition: none; } }

/* ---------- the bag and what it opens ---------- */

.icon-bag, .icon-save { position: relative; white-space: nowrap; }
.bag-n {
  position: absolute; inset-block-start: 2px; inset-inline-end: 2px;
  min-inline-size: 17px; block-size: 17px; padding-inline: var(--space-3xs);
  display: grid; place-items: center;
  font-size: 10px; line-height: 1;
  background: var(--color-ink); color: var(--color-paper);
  border-radius: var(--radius-pill);
}
/* on the dark bar and over the hero the count flips with the bar it rides on */
.rail-over .bag-n, .minibar .bag-n { background: var(--color-paper); color: var(--color-ink); }

.cline {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: var(--space-md);
  padding-block-end: var(--space-lg);
  border-block-end: var(--rule-hair) solid var(--color-rule);
}
.cline-art {
  position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4;
  background: var(--color-paper-2); border-radius: var(--radius-sm);
}
.cline-art img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.cline-say { display: grid; gap: var(--space-3xs); align-content: start; min-inline-size: 0; }
.cline-brand { font-size: var(--text-xs); color: var(--color-ink-2); }
.cline-name { font-size: var(--text-md); }
.cline-run { list-style: none; margin: var(--space-2xs) 0 0; padding: 0; display: grid; gap: var(--space-3xs); }
.cline-run li { font-size: var(--text-sm); color: var(--color-ink-2); }
.cline-k { margin-block-start: var(--space-2xs); font-size: var(--text-xs); color: var(--color-muted); }
.cline-end { display: grid; gap: var(--space-xs); justify-items: end; align-content: start; }
.cline-t { font-size: var(--text-md); white-space: nowrap; }
.cline-rm {
  padding: 0; cursor: pointer; background: transparent; border: 0;
  font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-ink-2);
  text-decoration: underline; text-underline-offset: 0.2em;
}
.cline-rm:hover { color: var(--color-ink); }
.cline-rm:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.cempty { display: grid; justify-items: start; gap: var(--space-md); }
.cempty-t { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); }
.cempty-k { margin: 0; font-size: var(--text-md); color: var(--color-ink-2); max-inline-size: 36ch; }
/* a button that leads nowhere while the basket is empty says so, and stops */
.btn.is-off { opacity: 0.4; pointer-events: none; }

/* ---------- the two arrows that walk a rail ---------- */
/* They started life on the product shelf, then the brand menu took them, and a
   menu is on every page while a shelf is not: the one page without a shelf got
   browser buttons. So the control lives here, in the chrome that every page
   loads, and the shelf only says what its rail is called. */
/* the arrows stand on the same line as the catalogue button, not over the clothes */
.shelf-nav { display: none; gap: var(--space-xs); }
.shelf-nav[data-scrollable] { display: inline-flex; }
.shelf-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  color: var(--color-ink); background: transparent;
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-sm);
  transition: background var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), opacity var(--dur-short) var(--ease-out);
}
.shelf-arrow:hover { background: var(--color-paper-3); border-color: var(--color-ink-2); }
.shelf-arrow:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.shelf-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .shelf-arrow { transition: none; } }
/* a thumb drags a rail directly, so on a phone the arrows would only sit on the pictures */
@media (max-width: 60rem) { .shelf-nav[data-scrollable] { display: none; } }

.mobilemenu { display: none; }

/* ============================ the frames ============================ */
/* a frame is a picture that has not arrived; it says what belongs in it and nothing else */
[data-slot] {
  position: relative; display: block; margin: 0; overflow: hidden;
  background: var(--color-paper-2); border-radius: var(--radius-card);
}
.art-note {
  position: absolute; inset-block-end: var(--space-md); inset-inline-start: var(--space-md);
  font-size: var(--text-xs); color: var(--color-muted);
}

/* ============================ the mast ============================ */

.mast { background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-3xl) var(--space-xl); }
.mast-in { display: grid; gap: var(--space-2xl); }
.mast-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); flex-wrap: wrap; }
.mast-mark { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 0.8; letter-spacing: -0.06em; }
.mast-mark .logo { display: block; height: 0.8em; width: auto; fill: currentColor; color: var(--color-ink); }
/* the two doors are one pair: the same width side by side, whatever their words */
.mast-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.mast-doors .btn { width: 100%; padding-inline: var(--space-lg); }

.mast-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr) minmax(0, 1.3fr);
  gap: var(--space-xl);
  border-top: var(--rule-hair) solid var(--color-rule-strong); padding-top: var(--space-xl);
}
.mast-cols h2 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); margin-bottom: var(--space-sm); }
.mast-cols nav { display: grid; gap: var(--space-xs); align-content: start; }
.mast-cols nav a { font-size: var(--text-md); text-decoration: none; color: inherit; width: fit-content; }
.mast-cols nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* where we are */
.mast-contact { display: grid; gap: var(--space-md); align-content: start; }
.mast-contact h2 { margin-bottom: 0; }
.place { display: grid; gap: var(--space-3xs); font-style: normal; font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink-2); }
.place b { font-weight: 500; color: var(--color-ink); }
.place .tel { color: var(--color-ink); text-decoration: none; width: fit-content; }
.place .tel:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.place.reach { gap: var(--space-2xs); }
.soon-tag { display: inline-block; margin-inline-start: var(--space-2xs); padding: 0 var(--space-xs); font-size: 0.6875rem; font-weight: 500; line-height: 1.7; color: var(--color-ink-2); border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-pill); vertical-align: 1px; }
/* a detail still waiting for the client, so nobody mistakes it for the real one */
.mast .slot { color: var(--color-muted); font-style: italic; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-xs); }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-sm);
  color: var(--color-ink);
  transition: background var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.social a:hover { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.social a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social .social-wa:hover { background: #1f8f4e; border-color: #1f8f4e; }

/* buying safely */
.mast-secure p { font-size: var(--text-sm); line-height: 1.6; color: var(--color-ink-2); max-width: 44ch; }
.secure-badge { display: flex; align-items: center; gap: var(--space-xs); font-weight: 500; color: var(--color-ink) !important; margin-bottom: var(--space-2xs); }
.secure-badge svg { width: 22px; height: 22px; fill: #1f8f4e; flex-shrink: 0; }
.pay { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.pay img { display: block; width: 58px; height: 40px; }
.mast-secure .pay-note { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-sm); }

.mast-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md) var(--space-lg); flex-wrap: wrap; border-top: var(--rule-hair) solid var(--color-rule); padding-top: var(--space-lg); }
@media (min-width: 75rem) { .mast-foot { flex-wrap: nowrap; } }
.mast-in > * { min-width: 0; }
.mast-legal, .recaptcha, .credit { font-size: var(--text-xs); color: var(--color-muted); margin: 0; line-height: 1.5; }
/* one line on a wide screen: three short notes, none of them allowed to wrap */
@media (min-width: 75rem) { .mast-legal, .recaptcha, .credit { white-space: nowrap; } }
.mast-foot a { color: inherit; text-underline-offset: 0.2em; }
.credit a { color: var(--color-ink-2); text-decoration: none; }
.credit a:hover { color: var(--color-ink); text-decoration: underline; }

@media (max-width: 75rem) {
  .mega-rail > li { flex-basis: 9.5rem; }
  .mast-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mast-contact, .mast-secure { grid-column: span 1; }
}

@media (max-width: 60rem) {
  .rail-nav { display: none; }
  .mega { display: none; }
  /* Six things do not fit a 320px bar, so one leaves. It is the account icon:
     it points at a page that has not been built, and the menu behind the
     burger already carries "החשבון שלי" in words. The shortlist stays, because
     it is a feature that works. */
  .icon-user { display: none; }
  .icon.icon-menu { display: inline-flex; }
  .rail-in, .minibar-in { gap: var(--space-md); justify-content: space-between; }
  .rail-act { padding-inline: var(--space-sm); font-size: var(--text-xs); }
  .rail-tools .rail-act { margin-inline-start: var(--space-xs); }
  .utility-links { display: none; }
  .utility-in { justify-content: center; }
  .mobilemenu { display: block; padding-block: var(--space-xs) var(--space-lg); max-height: calc(100svh - var(--bar-h, 60px)); overflow-y: auto; }
  .mm-row {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-body); font-size: var(--text-lg); font-weight: 400;
    text-decoration: none; color: inherit; background: transparent; border: 0;
    padding-block: var(--space-sm); text-align: start; width: 100%; cursor: pointer;
    border-bottom: var(--rule-hair) solid var(--color-rule);
  }
  .mm-row:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
  .mm-row:disabled { opacity: 0.5; cursor: not-allowed; }
  .mm-n {
    min-inline-size: 20px; padding-inline: var(--space-2xs);
    font-size: var(--text-xs); text-align: center;
    background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-pill);
  }
  .mm-chev {
    width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur-short) var(--ease-out);
  }
  [aria-expanded="true"] .mm-chev { transform: rotate(-135deg) translate(-2px, -2px); }
  .mm-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); padding-block: var(--space-md); }
  .mm-brands a { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); text-decoration: none; color: inherit; }
  .mm-art { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-paper-2); }
  .mm-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  /* two columns on a phone, not one long list: the three short link lists
     sit side by side, and the two blocks with longer lines take the full width */
  .mast-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
  .mast-contact, .mast-secure { grid-column: 1 / -1; }
  .mast-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-lg); }
  .mast-contact h2, .mast-contact .social { grid-column: 1 / -1; }
  .mast-cols nav a, .mast-cols nav .soon { font-size: var(--text-sm); }
  .mast-top { flex-direction: column; align-items: stretch; gap: var(--space-lg); }
  .mast-doors .btn { padding-inline: var(--space-sm); }
  .mast-foot { flex-direction: column; align-items: flex-start; }
}

/* the narrowest phones still in use: the business button gives up its padding
   rather than the bar giving up a control */
@media (max-width: 22.5rem) {
  .rail-act { padding-inline: var(--space-2xs); }
  .container { padding-inline: var(--space-md); }
}

/* a line that names a page the build has not reached yet: visible, never a dead link */
.soon { color: var(--color-muted); cursor: default; }
/* on the painted strip even a muted line must clear the contrast floor */
.utility .soon { color: inherit; }

/* ============================ cookie consent ============================ */
/* a small square box at the left (the end side in Hebrew), clear of the headline, above everything but the dialogs */
.cookies {
  position: fixed; inset-inline-end: var(--space-lg); inset-block-end: var(--space-lg);
  z-index: var(--z-toast); width: 20rem; max-width: calc(100vw - 2 * var(--space-md));
  background: var(--color-paper); color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
  padding: var(--space-md);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out);
}
.cookies.is-in { opacity: 1; transform: none; pointer-events: auto; }
.cookies-k { margin: 0 0 var(--space-2xs); font-size: var(--text-sm); font-weight: 500; }
.cookies-t { margin: 0; font-size: var(--text-xs); line-height: 1.6; color: var(--color-ink-2); }
.cookies-t a { color: inherit; text-underline-offset: 0.2em; }
.cookies-do { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); margin-top: var(--space-md); }
.cookies-do .btn-quiet { background: transparent; }
.cookies-do .btn { min-height: 40px; width: 100%; padding-inline: var(--space-sm); font-size: var(--text-xs); }
@media (max-width: 60rem) {
  .cookies { inset-inline: var(--space-md); inset-block-end: calc(var(--space-md) + env(safe-area-inset-bottom)); width: auto; }
}
@media (prefers-reduced-motion: reduce) { .cookies { transition: none; transform: none; } }

/* the footer's doors: on a wide screen all of them sit in one row, however
   many there are; on a phone a lone last door takes the full width */
@media (min-width: 48rem) {
  .mast-doors { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
@media (max-width: 47.99rem) {
  .mast-doors .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
