/* 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(--eng-accent-text, 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(--eng-card-bg, var(--ground, #fff)); color: var(--eng-card-ink, var(--ink, inherit)); border: 1px solid var(--eng-card-line, 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; color: var(--eng-card-ink, var(--ink, inherit)); }
.eng-card__body p { margin: 0; color: var(--eng-card-ink-soft, 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(--eng-accent-text, 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(--eng-card-ink, 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(--eng-card-soft, var(--surface-2, #e9e8e2)); color: var(--eng-card-ink, 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(--eng-fill, var(--primary, var(--ink, #1f2421))); color: var(--eng-on-fill, 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(--eng-card-line, 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(--eng-accent, 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(--eng-card-soft, var(--surface, #f3f3ef)); color: var(--eng-card-ink, var(--ink, inherit)); }
.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(--eng-card-ink, var(--ink, inherit)); }
.eng-review figcaption { margin-top: auto; display: grid; gap: 2px; font-size: .94rem; }
.eng-review figcaption > span { color: var(--eng-card-ink-soft, 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(--eng-accent-text, var(--primary-text, var(--primary, currentColor))); 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(--eng-accent, var(--primary, auto)); }
.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(--eng-accent-text, 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(--eng-fill, var(--primary, var(--ink, #1f2421))); border-color: var(--eng-fill, var(--primary, var(--ink, #1f2421))); color: var(--eng-on-fill, 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 > p > span:first-child { 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(--eng-accent, var(--primary, var(--ink, #1f2421))); }
.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(--eng-accent-text, var(--primary-text, var(--primary, currentColor))); 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%; }

/* Rows that fill (2026-09-24). */
/* Tumi 2026-09-24, "no wide gaps": two or three cards share the row instead of
   leaving empty columns at its end; one card alone keeps a readable width; a
   date with no photo sits on a compact band, not a tall square. */
.eng-grid, .eng-reviews { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.eng-request__offers .eng-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.eng-grid > :only-child { max-width: 560px; }
.eng-card__photo { aspect-ratio: 16 / 10; }
.eng-card__photo:not(:has(img)) { aspect-ratio: auto; height: clamp(116px, 9vw, 150px); }
/* On a request page the offers beside the form are one tidy column, never two
   and a half. */
@media (min-width: 900px) { .eng-request__offers .eng-grid { grid-template-columns: minmax(0, 1fr); } .eng-request__offers .eng-grid > :only-child { max-width: none; } }
/* A row of photos always closes: the last one or two widen to fill it, at the
   same height as the others. */
@media (max-width: 640px) { .eng-photos > :last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / 1; } }
@media (min-width: 641px) {
  .eng-photos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .eng-photos > * { grid-column: span 2; }
  .eng-photos > :last-child:nth-child(3n+1) { grid-column: span 6; aspect-ratio: 3 / 1; }
  .eng-photos > :nth-last-child(2):nth-child(3n+1), .eng-photos > :last-child:nth-child(3n+2) { grid-column: span 3; aspect-ratio: 3 / 2; }
}
/* Tumi 2026-09-24, "the footer items are too long. rather make them 2
   columns": the engines add their pages to the footer's list, so a list of
   seven or more links reads in two even columns, down the first and then the
   second; its heading spans both. Each design keeps its own spacing. */
footer .footer-grid > div:has(> a:nth-of-type(7)),
footer.site-footer > div:has(> a:nth-of-type(7)) {
  display: grid; grid-template-columns: repeat(2, minmax(min-content, 1fr)); grid-auto-flow: column;
  grid-template-rows: auto repeat(4, auto); column-gap: clamp(18px, 2.4vw, 32px); align-content: start;
}
footer .footer-grid > div:has(> a:nth-of-type(9)), footer.site-footer > div:has(> a:nth-of-type(9)) { grid-template-rows: auto repeat(5, auto); }
footer .footer-grid > div:has(> a:nth-of-type(11)), footer.site-footer > div:has(> a:nth-of-type(11)) { grid-template-rows: auto repeat(6, auto); }
footer .footer-grid > div:has(> a:nth-of-type(13)), footer.site-footer > div:has(> a:nth-of-type(13)) { grid-template-rows: auto repeat(7, auto); }
footer .footer-grid > div:has(> a:nth-of-type(15)), footer.site-footer > div:has(> a:nth-of-type(15)) { grid-template-rows: auto repeat(8, auto); }
footer .footer-grid > div:has(> a:nth-of-type(7)) > :not(a),
footer.site-footer > div:has(> a:nth-of-type(7)) > :not(a) { grid-column: 1 / -1; grid-row: 1; }
/* In the editors each photo sits in a wrapper while it can be replaced: the
   wrapper fills the card's photo frame (the photos are 4:3, the frames
   16:10), so a card looks the same in the editor as on the site. */
.eng-card__photo > [data-paurtal-img-wrap] { display: block !important; width: 100%; height: 100%; }
/* >>> engines w30 2026-09-26 */
/* Key figures fill their row (Tumi's pass 2026-09-26: two figures sat in a
   three-column row, the right third empty). The row splits evenly between
   however many figures there are, whatever count the page carries; five or
   more wrap in even rows; a figure alone sits in the middle; on a phone two
   share a row and an odd last one takes the whole row. */
.eng-figures { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.eng-figures:has(> :nth-child(5)) { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.eng-figures:has(> :only-child) { grid-auto-columns: minmax(0, 440px); justify-content: center; }
@media (max-width: 640px) {
  .eng-figures, .eng-figures:has(> :nth-child(5)) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .eng-figures > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .eng-figure { padding-left: 12px; }
}
/* Every engine card photo keeps its shape (Tumi 2026-09-26: "the menu item
   images on the left should be square. same on the right."): a menu's items
   (dishes, packs, packages) are square, like products; every other card's
   photo keeps 16:10; and no photo is ever stretched to the height of the
   words beside it. */
.eng-card__photo { flex: none; }
.eng-card__photo:has(img) { height: auto; }
[data-sb-engine="offers-menus"] .eng-card__photo:has(img) { aspect-ratio: 1 / 1; }
/* On a phone a menu's items, and the offers above a request form, are rows:
   a square photo beside the words, so the list stays short and the form is
   a short scroll away. */
@media (max-width: 640px) {
  [data-sb-engine="offers-menus"] > .eng-card:has(> .eng-card__photo img),
  .eng-request__offers .eng-card:has(> .eng-card__photo img) { flex-direction: row; align-items: flex-start; }
  [data-sb-engine="offers-menus"] > .eng-card > .eng-card__photo:has(img),
  .eng-request__offers .eng-card > .eng-card__photo:has(img) { flex: 0 0 min(34%, 136px); aspect-ratio: 1 / 1; margin: 12px 0 12px 12px; border-radius: var(--radius-sm, 8px); }
  [data-sb-engine="offers-menus"] .eng-card__body, .eng-request__offers .eng-card__body { padding: 14px 16px 16px; gap: 6px; }
  [data-sb-engine="offers-menus"] .eng-card__body h3, .eng-request__offers .eng-card__body h3 { font-size: 1.02rem; }
  /* the words beside the photo never push past the card: a long button
     label wraps (lantern_table's wide buttons ran 40px out of the card) */
  [data-sb-engine="offers-menus"] > .eng-card > .eng-card__body, .eng-request__offers .eng-card > .eng-card__body { min-width: 0; }
  [data-sb-engine="offers-menus"] .eng-card__body > :is(a, button), .eng-request__offers .eng-card__body > :is(a, button) { max-width: 100%; white-space: normal; text-align: center; }
}
/* One card alone in a band or on a page (a single fund-raising project, one
   event) takes the whole row, whatever columns the design gives the list, and
   lies across it on a laptop: its photo, in its own shape, beside its words. */
@media (min-width: 720px) {
  .eng-grid > .eng-card:only-child:has(> .eng-card__photo img) { grid-column: 1 / -1; max-width: none; flex-direction: row; align-items: flex-start; }
  .eng-grid > .eng-card:only-child:has(> .eng-card__photo img) > .eng-card__photo { flex: 0 0 54%; }
  .eng-grid[data-sb-engine="offers-menus"] > .eng-card:only-child > .eng-card__photo:has(img) { flex-basis: min(42%, 400px); }
  .eng-grid > .eng-card:only-child:has(> .eng-card__photo img) > .eng-card__body { align-self: center; padding: clamp(22px, 3vw, 36px); }
  .eng-grid > .eng-card:only-child:has(> .eng-card__photo img) > .eng-card__body > :last-child { margin-top: 10px; }
}
/* Beside a request form the offers stand upright in their column; a menu's
   are rows with a square photo. */
@media (min-width: 900px) {
  .eng-request__offers .eng-grid > .eng-card:only-child:has(> .eng-card__photo img) { flex-direction: column; align-items: stretch; }
  .eng-request__offers .eng-grid > .eng-card:only-child:has(> .eng-card__photo img) > .eng-card__photo { flex: none; }
  .eng-request__offers .eng-grid > .eng-card:only-child:has(> .eng-card__photo img) > .eng-card__body { align-self: stretch; padding: 18px 20px 22px; }
  .eng-request__offers .eng-grid[data-sb-engine="offers-menus"] > .eng-card:has(> .eng-card__photo img) { flex-direction: row; align-items: flex-start; }
  .eng-request__offers .eng-grid[data-sb-engine="offers-menus"] > .eng-card > .eng-card__photo:has(img) { flex: 0 0 clamp(140px, 36%, 220px); }
  .eng-request__offers .eng-grid[data-sb-engine="offers-menus"] > .eng-card > .eng-card__body { align-self: center; }
}
/* An empty status line under a form's button takes no room (with the form's
   gap it left about 40px of blank below the button on every request page);
   the words a sent form puts there bring it back into place. */
.eng-form .eng-status:empty { position: absolute; }
/* A request form with no offers beside it stands in the middle of the page. */
.eng-request > .eng-request__form:only-child { grid-column: 1 / -1; width: 100%; max-width: 760px; justify-self: center; }
/* An events page with none coming up says so above the past ones. */
.eng-empty { margin: 0; padding: 22px 24px; border-radius: var(--radius, 14px); background: var(--surface, #f3f3ef); color: var(--ink-soft, inherit); }
/* The reservation sheet's close link reads in the sheet's own ink, never a
   link colour of the design's own. */
.eng-sheet__panel .eng-sheet__close { color: var(--ink, inherit); }
/* A footer list of seven or more links with no heading of its own splits
   evenly: half down the first column, the rest down the second (the rows
   above keep a first row for a heading, which left six beside four). */
footer .footer-grid > div:has(> a:nth-of-type(7)):not(:has(> :not(a))), footer.site-footer > div:has(> a:nth-of-type(7)):not(:has(> :not(a))) { grid-template-rows: repeat(4, auto); }
footer .footer-grid > div:has(> a:nth-of-type(9)):not(:has(> :not(a))), footer.site-footer > div:has(> a:nth-of-type(9)):not(:has(> :not(a))) { grid-template-rows: repeat(5, auto); }
footer .footer-grid > div:has(> a:nth-of-type(11)):not(:has(> :not(a))), footer.site-footer > div:has(> a:nth-of-type(11)):not(:has(> :not(a))) { grid-template-rows: repeat(6, auto); }
footer .footer-grid > div:has(> a:nth-of-type(13)):not(:has(> :not(a))), footer.site-footer > div:has(> a:nth-of-type(13)):not(:has(> :not(a))) { grid-template-rows: repeat(7, auto); }
footer .footer-grid > div:has(> a:nth-of-type(15)):not(:has(> :not(a))), footer.site-footer > div:has(> a:nth-of-type(15)):not(:has(> :not(a))) { grid-template-rows: repeat(8, auto); }
/* A second heading inside an engine page (the reviews under the gallery,
   the past events) keeps its room above, whatever the design's own heading
   margins say (:root body .eng-sec h2{margin-top:0} in thirteen designs). */
:root body :is(.eng-sec, .eng-page) .eng-subhead { margin: clamp(36px, 5vw, 56px) 0 18px; }
/* A heading in an engine part never splits a word on a phone: with the
   designs' text-wrap:balance, their overflow-wrap:anywhere (break-word too)
   let the browser break a word to even the lines ("Demande / r un devis").
   Balanced lines never go narrower than the longest word this way. */
:root body :is(.eng-page-intro, .eng-page-hero, .eng-off) h1,
:root body :is(.eng-head, .eng-card, .eng-sheet, .eng-success, .eng-review) :is(h2, h3),
:root body .eng-subhead { overflow-wrap: normal; }
/* An engine band's heading has a size of its own (guest house worker
   2026-09-26: on designs with no h2 rule of their own, canopy_lodge,
   city_house, lantern_table and the real estate designs, the headings showed
   at the browser's small default). It takes the design's display font when
   it names one. Zero specificity: any h2 rule of the design's, and its own
   engine dress, still decide. */
:where(.eng-head h2) { font-family: var(--font-display, var(--display)); font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.8rem); line-height: 1.1; }
/* Engine cards read on a dark ground: a design sets --eng-card-bg,
   --eng-card-ink, --eng-card-ink-soft, --eng-card-line and --eng-card-soft
   (the reviews' and chips' softer panel) where its cards sit on a dark band;
   without them a card is the design's ground with its ink, as before. */
/* Engine photos crop toward the top, where people's heads are (salon worker
   2026-09-26: the centred squares of the gallery lost a sixth of each photo
   from the top): the upper focus the designs' own photos use. */
.eng-photo img, .eng-card__photo img { object-position: 50% 25%; }
/* <<< engines w30 */
