/* V16 extends the existing Amiri/Poppins, black-surface reading language. */
.assembled-ferment .diagram-note { transform-origin: center center; }
.inner-v10-contact .v16-general-contact { width: min(347px, 100%); margin: 0 0 44px; }
.inner-v10-contact .v16-general-contact h2 { font: 400 28px/1.3 Amiri, Georgia, serif; margin: 0 0 22px; }
.inner-v10-contact .v16-general-contact p { font: 400 13px/1.9 Poppins, Arial, sans-serif; margin: 0; text-align: justify; text-align-last: left; }
.v16-text-page { background: #000; color: #f7f7f4; }
.v16-text-page .rr-header { background: #000; color: #fff; }
.v16-text-page main { padding-top: 120px; }
.v16-store-opening { min-height: 590px; padding: 66px 24px 110px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.v16-store-opening h1 { font: 400 clamp(40px, 4.3vw, 58px)/1.2 Amiri, Georgia, serif; margin: 0 0 68px; }
.v16-store-opening h2 { font: 400 30px/1.35 Amiri, Georgia, serif; margin: 0 0 18px; }
.v16-store-description { max-width: 450px; font: 400 13px/1.9 Poppins, Arial, sans-serif; margin: 0; text-wrap: balance; }
.v16-store-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 38px; }
.v16-store-actions .rr-button { min-width: 190px; }
.v16-document-heading { padding: 66px 6vw 50px; text-align: center; }
.v16-document-heading h1 { font: 400 clamp(36px, 4.3vw, 58px)/1.2 Amiri, Georgia, serif; margin: 0 auto; max-width: 1000px; text-wrap: balance; }
.v16-document-language { font: 400 12px/1.8 Poppins, Arial, sans-serif; margin: 20px 0 0; }
.v16-document-language:empty { display: none; }
.v16-document-layout { display: grid; grid-template-columns: minmax(160px, 225px) minmax(0, 600px); gap: 64px; width: min(950px, 88vw); margin: 0 auto; padding: 22px 0 104px; align-items: start; }
.v16-document-toc-wrap { position: sticky; top: 160px; min-width: 0; }
.v16-document-toc-wrap > summary { display: none; }
.v16-document-toc { max-height: calc(100svh - 200px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #777 #000; display: flex; flex-direction: column; padding: 0 14px 8px 0; gap: 6px; }
.v16-document-toc a { font: 400 11px/1.7 Poppins, Arial, sans-serif; color: inherit; text-decoration: none; padding: 8px 0; min-height: 44px; box-sizing: border-box; border-bottom: 1px solid #262626; overflow-wrap: anywhere; }
.v16-document-toc a:hover { font-weight: 600; }
.v16-document-body { min-width: 0; max-width: 72ch; font: 400 13px/1.95 Poppins, Arial, sans-serif; }
.v16-document-body h2 { font: 400 27px/1.35 Amiri, Georgia, serif; margin: 52px 0 24px; text-wrap: balance; scroll-margin-top: 152px; }
.v16-document-body h2:first-child { margin-top: 0; }
.v16-document-body h3 { font: 400 23px/1.4 Amiri, Georgia, serif; margin: 38px 0 20px; scroll-margin-top: 152px; }
.v16-numbered-heading::before { content: attr(data-marker); }
.v16-document-body p { margin: 0 0 20px; overflow-wrap: anywhere; }
.v16-document-body :is(ol, ul) { padding-left: 24px; margin: 0 0 24px; }
.v16-document-body li { padding-left: 5px; margin-bottom: 16px; }
.v16-document-body li p:last-child { margin-bottom: 0; }
.v16-document-body a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.v16-text-page :is(.v16-document-toc a, .v16-document-body a):focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.v16-table-wrap { max-width: 100%; overflow-x: auto; margin-bottom: 24px; }
.v16-document-body table { border-collapse: collapse; width: 100%; font-size: 12px; }
.v16-document-body td { border: 1px solid #555; padding: 10px; min-width: 90px; }
@media (max-width: 960px) {
 .v16-document-layout { grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); gap: 34px; }
}
@media (max-width: 760px) {
 .v16-text-page main { padding-top: 92px; }
 .v16-store-opening { min-height: 570px; padding: 52px 24px 78px; }
 .v16-store-opening h1 { margin-bottom: 54px; }
 .v16-store-opening h2 { font-size: 27px; }
 .v16-store-actions { width: 100%; }
 .v16-document-heading { padding: 48px 24px 36px; }
 .v16-document-layout { display: block; width: auto; margin: 0 24px; padding-top: 0; padding-bottom: 70px; }
 .v16-document-toc-wrap { position: static; margin: 0 0 36px; }
 .v16-document-toc-wrap > summary { display: list-item; font: 400 12px/1.8 Poppins, Arial, sans-serif; padding: 12px 0; min-height: 44px; box-sizing: border-box; border-bottom: 1px solid #555; }
 .v16-document-toc-wrap > summary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
 .v16-document-toc { max-height: none; overflow: visible; padding: 0; margin: 0; gap: 0; }
 .v16-document-toc a { padding: 10px 0; font-size: 12px; }
 .v16-document-body h2 { font-size: 25px; scroll-margin-top: 114px; }
 .v16-document-body { font-size: 12px; line-height: 1.95; }
}

/* Inner pages share the viewport between content and the closing bands.
   Grow short content instead of leaving unused canvas below the footer;
   longer documents and forms retain their natural height and reading width. */
body.inner-v6-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body.inner-v6-page > main {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
}
body.inner-v6-page > main > * { flex-shrink: 0; }
body.inner-v6-page > main > .inner-shell { width: 100%; }
body.inner-v6-page > main > .hermes-services { margin-top: auto; }
body.inner-v6-page > .hermes-footer { flex-shrink: 0; }

/* The store has little copy: let its composition absorb the available space,
   rather than using a fixed 590px floor at every desktop window height. */
body.v16-store-page > main > .v16-store-opening {
  flex: 1 0 auto;
  min-height: 0;
  justify-content: center;
  padding-block: clamp(48px, 7svh, 96px);
}
body.v16-store-page .v16-store-opening h1 {
  margin-bottom: clamp(32px, 6svh, 68px);
}

@media (min-width: 761px) {
  /* Full-bleed openings follow the real window, including short desktops.
     Existing cover, rotation and object-position rules keep photo proportions. */
  body.inner-v10-about .story-hero,
  body.inner-v10-locations .locations-hero {
    height: 100vh;
    height: 100svh;
    min-height: 0;
  }
}

/* One native-select box skin for directory and enquiry controls in both roles.
   Keep native selection/keyboard behavior; draw only the closed-field arrow. */
body.assembled-page.inner-v10-page :is(.v8-location-directory .location-filters, .v10-enquiry-form .form-field) select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  padding: 11px 36px 11px 13px;
  border: 1px solid var(--biberify-field-border, #858585);
  border-radius: 4px;
  background-color: #151515;
  color: #f7f7f4;
  font: 400 16px/24px Poppins, Arial, sans-serif;
  letter-spacing: normal;
  text-align: start;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23f7f7f4' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 10px 6px;
}
body.assembled-page.inner-v10-page .v10-enquiry-form .form-field select[aria-invalid="true"] { border-width: 2px; }
body.assembled-page.inner-v10-page :is(.v8-location-directory .location-filters, .v10-enquiry-form .form-field) select option {
  background: #151515;
  color: #f7f7f4;
}
@media (forced-colors:active) {
  body.assembled-page.inner-v10-page :is(.v8-location-directory .location-filters, .v10-enquiry-form .form-field) select {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
    background-color: Field;
    color: FieldText;
    border-color: ButtonBorder;
    forced-color-adjust: auto;
  }
}
/* V8 legal documents: 12pt minimum body/table type, including small viewports. */
body.v16-text-page:is([data-page="pre-information"], [data-page="distance-sales"], [data-page="privacy"], [data-page="cookies"], [data-page="withdrawal"]) .v16-document-body,
body.v16-text-page:is([data-page="pre-information"], [data-page="distance-sales"], [data-page="privacy"], [data-page="cookies"], [data-page="withdrawal"]) .v16-document-body table {
  font-size: 16px;
}

/* The derived withdrawal form has no sidebar navigation. */
body.v16-text-page[data-page="withdrawal"] .v16-document-body {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(600px, 100%);
}
