/* The engine's behavioural rules only: what must work the same on every site. No colour, type or spacing here:
   each theme styles every part completely. */
.vh, .part-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.part-hp { left: -10000px; }
.part-skip:not(:focus) {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
[hidden] { display: none !important; }
.part-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.part-gallery-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.part-gallery-slide img, .part-gallery-slide video { display: block; width: 100%; height: 100%; object-fit: cover; }
img { max-width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }

/* The website's assistant's button: where it sits, its size on a phone, and when it steps aside, the same on every
   design (lane w7-site-ask-button, 14 Nov 2026). Each theme dresses the button (colours, type, border, its shape at a
   desk's width) and never places or sizes it. The script (site.js, askPlace) marks the part ready and says when the
   button must step aside: while it would sit over a field, a select or a form's send button, while a field of the
   page has the keyboard, and at the page's foot. Without the script the button is a plain link at the end of the page, so it
   can never cover anything. --ask-room is the room a screen leaves at its foot for the button. */
:root {
  --ask-edge: 16px;
  --ask-size: 44px;
  --ask-room: calc(var(--ask-size) + 2 * var(--ask-edge) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { :root { --ask-room: calc(52px + 2 * var(--ask-edge) + env(safe-area-inset-bottom, 0px)); } }
.part-ask:not([data-ask-ready]) { display: flex; justify-content: flex-end; padding: 0 var(--ask-edge) var(--ask-edge); }
.part-ask[data-ask-ready] .part-ask-button {
  position: fixed;
  top: auto;
  left: auto;
  right: calc(var(--ask-edge) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--ask-edge) + env(safe-area-inset-bottom, 0px));
  margin: 0;
  transform: none;
}
.part-ask .part-ask-name { display: none; }
.part-ask .part-ask-button { box-sizing: border-box; }
/* On a phone: a small round button, its mark only, named "Ask a question". */
@media (max-width: 767.98px) {
  .part-ask .part-ask-button {
    justify-content: center;
    gap: 0;
    width: var(--ask-size);
    height: var(--ask-size);
    min-width: var(--ask-size);
    min-height: var(--ask-size);
    padding: 0;
    border-radius: 50%;
  }
  .part-ask .part-ask-label { display: none; }
  .part-ask .part-ask-name {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  /* The engine's one mark, the same drawing on every design (lane w7-sites-type): a speech bubble with a question
     mark, in the design's own colour for its mark. A design's own mark goes beside its words from 768 px. */
  .part-ask .part-ask-mark--phone { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
  .part-ask .part-ask-mark--phone svg { display: block; width: 22px; height: 22px; }
  .part-ask .part-ask-mark--desk { display: none; }
}
@media (min-width: 768px) { .part-ask .part-ask-mark--phone { display: none; } }
/* Stepping aside: it fades, and while gone it cannot be pressed or reached by keyboard. */
.part-ask[data-ask-ready] .part-ask-button { animation: part-ask-back 160ms ease-out; }
.part-ask[data-ask-ready].is-aside .part-ask-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: part-ask-out 160ms ease-out;
}
.part-ask[data-ask-ready].is-still .part-ask-button { animation: none; }
@keyframes part-ask-back { from { opacity: 0; } }
@keyframes part-ask-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: visible; } }
@media (prefers-reduced-motion: reduce) { .part-ask .part-ask-button { animation: none !important; } }
@media print { .part-ask { display: none !important; } }
