/* SmartBiz engines: the bands and pages every engine draws inside a design.
   Drawn from the design's own tokens (the shop kit's names: --ink, --surface,
   --primary, --radius...), so an engine takes the look of the design it sits
   in; a design restyles any .eng-* part in its own stylesheet. No ornaments:
   plain surfaces, lines and the design's colours. */

.eng-sec { position: relative; }
/* Hidden until its moment (a sent form's thank-you, a sent form): the
   display rules below must never show them early. */
.eng-success[hidden], .eng-form[hidden], .eng-sheet[hidden], .eng-view[hidden] { display: none !important; }
.eng-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(20px, 3vw, 32px); }
.eng-head > div { max-width: 62ch; }
.eng-head h2 { margin-bottom: .25em; }
.eng-head .lead, .eng-head p:last-child { margin-bottom: 0; }
.eng-link { font-weight: 700; color: var(--primary-text, var(--primary, currentColor)); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 2px; white-space: nowrap; }
.eng-link:hover { text-decoration-thickness: 3px; }
.eng-subhead { margin: clamp(36px, 5vw, 56px) 0 18px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.eng-cta { margin: 8px 0 0; }

.eng-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.eng-grid--past .eng-card { opacity: .78; }
.eng-card { display: flex; flex-direction: column; min-width: 0; background: var(--ground, #fff); border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: var(--radius, 14px); overflow: hidden; }
.eng-card__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface, #f3f3ef); }
.eng-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.eng-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.eng-card__body h3 { margin: 0; font-size: 1.14rem; line-height: 1.25; }
.eng-card__body p { margin: 0; color: var(--ink-soft, inherit); }
.eng-card__body .btn, .eng-card__body [class*="btn"]:last-child { align-self: flex-start; margin-top: auto; }
.eng-card__body > :last-child { margin-top: auto; }
.eng-meta { font-weight: 700; font-size: .92rem; color: var(--primary-text, var(--ink, inherit)) !important; }
.eng-place { font-size: .95rem; }
.eng-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: .95rem; }
.eng-foot strong { color: var(--ink, inherit); }
.eng-state { display: inline-block; align-self: flex-start; margin-top: auto; padding: 8px 14px; border-radius: var(--radius-btn, 999px); background: var(--surface-2, #e9e8e2); color: var(--ink, inherit); font-weight: 700; font-size: .9rem; }
.eng-date { display: grid; place-content: center; width: 100%; height: 100%; text-align: center; background: var(--primary, #1d6b43); color: var(--on-primary, #fff); }
.eng-date b { display: block; font-family: var(--font-display, inherit); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; }
.eng-date span { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.eng-options { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; font-size: .94rem; }
.eng-options li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line, rgba(0,0,0,.1)); padding-top: 6px; }

.eng-list { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line, rgba(0,0,0,.12)); }
.eng-list div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.12)); }
.eng-list dt { font-weight: 700; }
.eng-list dd { margin: 0; color: var(--ink-soft, inherit); }

.eng-figures-band { padding-block: clamp(28px, 4vw, 48px) !important; }
.eng-figures { display: grid; grid-template-columns: repeat(var(--figures, 3), minmax(0, 1fr)); gap: clamp(12px, 3vw, 40px); }
.eng-figure { margin: 0; display: grid; gap: 4px; padding-left: 16px; border-left: 3px solid var(--primary, currentColor); }
.eng-figure strong { font-family: var(--font-display, inherit); font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--ink, inherit); }
.eng-figure span { color: var(--ink-soft, inherit); font-size: .98rem; }

.eng-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.eng-review { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius, 14px); background: var(--surface, #f3f3ef); }
.eng-review blockquote { margin: 0; }
.eng-review blockquote p { margin: 0; font-family: var(--font-display, inherit); font-size: 1.12rem; line-height: 1.45; color: var(--ink, inherit); }
.eng-review figcaption { margin-top: auto; display: grid; gap: 2px; font-size: .94rem; }
.eng-review figcaption span { color: var(--ink-soft, inherit); }

.eng-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1vw, 12px); }
.eng-photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm, 8px); background: var(--surface, #f3f3ef); }
.eng-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.eng-photo:hover img, .eng-photo:focus-visible img { transform: scale(1.03); }
.eng-view { position: fixed; inset: 0; z-index: 90; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: rgba(10, 10, 10, .92); }
.eng-view:target { display: flex; }
.eng-view img { max-width: min(1100px, 100%); max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.eng-view__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin: 0; color: #fff; }
.eng-view__bar a { color: #fff; font-weight: 700; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; text-decoration: none; }

.eng-sheet { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-end; justify-content: center; background: rgba(10, 10, 10, .55); }
.eng-sheet:target { display: flex; }
.eng-sheet__panel { position: relative; width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 28px 22px 26px; background: var(--ground, #fff); color: var(--ink, #111); border-radius: var(--radius, 14px) var(--radius, 14px) 0 0; }
@media (min-width: 720px) { .eng-sheet { align-items: center; } .eng-sheet__panel { border-radius: var(--radius, 14px); padding: 32px; } }
.eng-sheet__close { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 14px; font-weight: 700; text-decoration: none; }
.eng-sheet__panel h2 { margin-right: 72px; font-size: 1.5rem; }
.eng-price { font-weight: 700; }

.eng-form { display: grid; gap: 14px; }
.eng-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink, inherit); }
.eng-form input:not([type="checkbox"]), .eng-form select, .eng-form textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line, rgba(0,0,0,.2)); border-radius: var(--radius-sm, 8px);
  background: var(--ground, #fff); color: var(--ink, #111); font-weight: 400;
}
.eng-form textarea { min-height: 110px; resize: vertical; }
.eng-form input:focus-visible, .eng-form select:focus-visible, .eng-form textarea:focus-visible { outline: 2px solid var(--primary, #1d6b43); outline-offset: 2px; }
.eng-form small { font-weight: 400; color: var(--ink-soft, inherit); }
.eng-form button[type="submit"] { justify-self: start; min-height: 48px; }
.eng-form button[disabled] { opacity: .55; cursor: not-allowed; }
.eng-consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; }
.eng-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary, #1d6b43); }
.eng-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.eng-status { min-height: 1.4em; margin: 0; font-weight: 600; color: var(--primary-text, var(--ink, inherit)); }
.eng-note { margin: 0; font-size: .92rem; color: var(--ink-soft, inherit); }
.slot-field { display: grid; gap: 8px; }
.field-label { font-weight: 600; font-size: .95rem; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-grid button { min-height: 44px; min-width: 76px; padding: 8px 14px; border: 1px solid var(--line, rgba(0,0,0,.2)); border-radius: var(--radius-btn, 999px); background: var(--ground, #fff); color: var(--ink, #111); font-weight: 600; cursor: pointer; }
.slot-grid button[aria-pressed="true"] { background: var(--primary, #1d6b43); border-color: var(--primary, #1d6b43); color: var(--on-primary, #fff); }
.slot-note { margin: 0; font-size: .92rem; color: var(--ink-soft, inherit); }
.eng-success { display: grid; gap: 10px; padding: 26px; border-radius: var(--radius, 14px); background: var(--surface, #f3f3ef); }
.eng-success h2 { margin: 0; font-size: 1.5rem; }
.eng-success p { margin: 0; }

.eng-book, .eng-request { display: grid; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (min-width: 900px) {
  .eng-book { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); }
  .eng-request { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); }
  .eng-request__form { position: sticky; top: calc(var(--header-h, 68px) + 16px); }
}
.eng-request__offers .eng-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.eng-request__form { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius, 14px); background: var(--surface, #f3f3ef); }
.eng-aside { display: grid; gap: 14px; padding: 22px; border-radius: var(--radius, 14px); background: var(--surface, #f3f3ef); }
.eng-aside p { margin: 0; display: grid; gap: 2px; }
.eng-aside span { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft, inherit); }
.eng-progress { height: 8px; border-radius: 999px; background: var(--surface-2, #e9e8e2); overflow: hidden; }
.eng-progress span { display: block; height: 100%; background: var(--primary, #1d6b43); }
.eng-off { text-align: center; padding-block: clamp(80px, 12vw, 160px) !important; }
.eng-off h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.eng-page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }

@media (max-width: 640px) {
  .eng-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eng-figures { grid-template-columns: 1fr; gap: 14px; }
  .eng-list div { grid-template-columns: 1fr; gap: 4px; }
  .eng-pair { grid-template-columns: 1fr; }
  .eng-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .eng-photo img { transition: none; } }

/* The header's EN|FR switch (the shop designs that carry the engines). */
.kit-lang { display: inline-flex; flex: none; overflow: hidden; border: 1px solid var(--line, rgba(0, 0, 0, .14)); border-radius: var(--radius-btn, 10px); background: var(--ground, #fff); }
.kit-lang a { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 9px; color: var(--ink-soft, #555); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.kit-lang a[aria-current="true"] { background: var(--ink, #111); color: #fff; }
.kit-lang a:not([aria-current="true"]):hover { color: var(--ink, #111); background: var(--surface, #f3f3ef); }
.kit-lang a:focus-visible { outline: 2px solid var(--primary, #1d6b43); outline-offset: -3px; }
@media (max-width: 380px) { .kit-lang a { min-width: 34px; padding: 0 7px; } }
/* With the switch in the header, a wide logo gives way on a phone rather than slipping under it. */
.header-inner .brand { flex: 0 1 auto; min-width: 0; }
.header-inner .brand .merchant-logo { max-width: min(180px, 100%); height: auto; }
.header-inner .header-actions { flex: none; }
/* However many engines the business switches on, the header's menu stays
   inside the screen: tighter from nine links, on two rows from eleven. */
.desktop-nav:has(> a:nth-child(9)) { gap: 16px; }
.desktop-nav:has(> a:nth-child(9)) a { font-size: .86rem; letter-spacing: .01em; }
.desktop-nav:has(> a:nth-child(11)) { flex-wrap: wrap; justify-content: center; row-gap: 0; max-width: 60%; }
