/*
 * Bankside: the Theme Kit in Bankside's own look. Linked after themes/_shared/assets/css/kit.css, so the variables set here
 * replace its defaults for every block and module section.
 *
 * Black and white, square and flat: no rounded corner, no shadow, no card. Headings are tall condensed capitals set
 * tight (--bankside-heading-weight and --bankside-display come from the layout, which knows the face); every small word
 * (labels, buttons, captions, field names) is in small spaced capitals; text is a plain grotesque in a short measure. One
 * sheet of paper runs down the whole page: the kit's tinted bands are not drawn, cards have no box (a picture with its
 * caption, or words under a hairline), fields are a line to write on, buttons are flat rectangles that turn into their
 * own outline. How the sections are composed and joined is in theme.css (it needs the page around them); this file may
 * load nothing, so every mark is drawn with gradients.
 */

.kit-root {
  --kit-radius: 0px;
  --kit-radius-sm: 0px;
  --kit-media-radius: 0px;
  --kit-button-radius: 0px;
  --kit-input-radius: 0px;
  --kit-chip-radius: 0px;
  --kit-shadow: none;
  --kit-shadow-hover: none;
  --kit-heading-weight: var(--bankside-heading-weight, 800);
  --kit-heading-tracking: 0;
  --kit-heading-transform: uppercase;
  --kit-button-weight: var(--bankside-body-strong, 600);
  --kit-button-tracking: 0.08em;
  --kit-button-transform: uppercase;
  --kit-eyebrow-tracking: 0.08em;
  --kit-star: var(--kit-text);
  --kit-focus: var(--accent-ink, var(--text-primary, #111));
  --kit-card-pad: 0px;
  --kit-space: 1.25rem;
  --kit-gap-small: 0.6rem;
  --kit-gap-medium: clamp(1rem, 1.7vw, 1.6rem);
  --kit-gap-large: clamp(2.25rem, 4.2vw, 4rem);
  --kit-gutter: clamp(1.25rem, 3.4vw, 3.5rem);
  --kit-width-normal: 90rem;
  --kit-width-narrow: 46rem;
  --kit-width-wide: 110rem;
  --kit-pad-normal: clamp(4rem, 2.5rem + 5.4vw, 7.5rem);
  --kit-pad-compact: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  --kit-pad-spacious: clamp(5.5rem, 3.5rem + 8vw, 11rem);
  --kit-measure: 60ch;
  --kit-speed: 240ms;
  --kit-ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Small capitals: the one voice of every label, button and caption. */
  --bankside-small: 0.6875rem;
  --bankside-small-weight: var(--bankside-body-strong, 600);
  /* Bankside's mark: a few bars of uneven width, like the edge of a label. 22px by 10px, in the colour of the words. */
  --bankside-bars: linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 6px, transparent 6px 8px, currentColor 8px 12px, transparent 12px 14px, currentColor 14px 15px, transparent 15px 17px, currentColor 17px 19px, transparent 19px 21px, currentColor 21px 22px);
  /* A short dashed stroke: it opens a lead line and a caption. */
  --bankside-dashes: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px);
}

/* ------------------------------------------------------------------ One sheet */

/* The page is one sheet of paper: a tinted band would cut it into blocks, so it is not drawn. */
.kit-section--muted {
  background-color: transparent;
}

/* ------------------------------------------------------------------ Type */

.kit-heading {
  line-height: 0.94;
  text-wrap: balance;
}

.kit-heading--1 {
  font-size: calc(var(--bankside-display, 1) * clamp(3rem, 1.4rem + 7vw, 9rem));
  line-height: 0.9;
}

.kit-heading--2 {
  font-size: calc(var(--bankside-display, 1) * clamp(2.6rem, 1.5rem + 4.6vw, 6rem));
  line-height: 0.92;
}

.kit-heading--3,
.kit-heading--4 {
  font-weight: var(--bankside-heading-strong, 700);
}

.kit-heading--3 {
  font-size: calc(var(--bankside-display, 1) * clamp(1.6rem, 1.4rem + 0.8vw, 2.125rem));
  line-height: 1;
}

.kit-heading--4 {
  font-size: calc(var(--bankside-display, 1) * 1.375rem);
  line-height: 1.05;
}

/* A heading of more than 90 characters is a sentence: it is set as one, a step smaller. */
.kit-heading.kit-heading--long {
  font-size: calc(var(--bankside-display, 1) * clamp(1.75rem, 1.3rem + 1.8vw, 3rem));
  line-height: 1;
  letter-spacing: 0;
}

.kit-heading--3.kit-heading--long {
  font-size: calc(var(--bankside-display, 1) * 1.5rem);
}

/* A section heading promoted to the page's one heading (pgs-page-heading) reads as the page title in Bankside's own scale. */
h1.kit-heading.pgs-page-heading {
  zoom: 1;
  font-size: calc(var(--bankside-display, 1) * clamp(3rem, 1.5rem + 6vw, 8rem));
  line-height: 0.9;
}

.kit-heading-group {
  display: grid;
  gap: 0.9rem;
}

/* Small labels: small spaced capitals in the colour of the words, after the mark of bars. */
.kit-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--kit-text);
  font-size: var(--bankside-small);
  font-weight: var(--bankside-small-weight);
  letter-spacing: var(--kit-eyebrow-tracking);
  line-height: 1.4;
}

.kit-eyebrow::before {
  content: "";
  flex: none;
  width: 22px;
  height: 10px;
  background: var(--bankside-bars);
}

.kit-heading-group.kit-text--center .kit-eyebrow {
  justify-content: center;
}

/* A lead line is a short note beside its heading, opened by a dashed stroke. */
.kit-text--lead {
  max-inline-size: min(44ch, var(--kit-measure, 60ch));
  font-size: 1rem;
  line-height: 1.55;
}

.kit-text--lead:not(.kit-text--muted) {
  color: var(--kit-text);
}

.kit-heading-group + .kit-text--lead::before,
.kit-stack > .kit-text--lead:first-child::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 1px;
  margin-bottom: 0.8rem;
  background: var(--bankside-dashes);
}

.kit-text--center.kit-text--lead::before {
  margin-inline: auto;
}

.kit-text-block {
  line-height: 1.6;
}

.kit-rich-text {
  line-height: 1.7;
}

.kit-rich-text :is(h2, h3, h4) {
  font-weight: var(--bankside-heading-strong, 700);
  line-height: 1;
  text-transform: uppercase;
}

.kit-rich-text h2 { font-size: calc(var(--bankside-display, 1) * 2.25rem); }
.kit-rich-text h3 { font-size: calc(var(--bankside-display, 1) * 1.75rem); }
.kit-rich-text h4 { font-size: calc(var(--bankside-display, 1) * 1.375rem); }

.kit-rich-text a,
.kit-link {
  color: var(--kit-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: var(--kit-accent-text);
  transition: text-decoration-color var(--kit-speed) ease, color var(--kit-speed) ease;
}

.kit-rich-text a:hover,
.kit-link:hover {
  color: var(--kit-accent-text);
  text-decoration-thickness: 1px;
}

.kit-rich-text blockquote {
  padding-inline-start: 1.25rem;
  border-inline-start: 1px solid var(--kit-text);
  color: var(--kit-text);
  font-size: 1.15em;
  line-height: 1.45;
}

.kit-rich-text ul {
  list-style: square;
}

/* ------------------------------------------------------------------ Buttons */

/* Flat rectangles in small capitals. The main one is filled and turns into its own outline; its arrow steps forward. */
.kit-button {
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.75rem;
  line-height: 1.3;
}

.kit-button--small {
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  font-size: var(--bankside-small);
}

.kit-button--primary:hover {
  border-color: var(--kit-primary);
  background: transparent;
  color: var(--kit-primary);
}

.kit-button--primary:not(:has(.kit-button__icon))::after {
  content: "\2192";
  display: inline-block;
  font-family: var(--font-body, sans-serif);
  font-size: 1.15em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  transition: transform var(--kit-speed) var(--kit-ease);
}

.kit-button--primary:hover::after {
  transform: translateX(0.3rem);
}

.kit-button--secondary {
  border-color: var(--kit-line-strong);
  background: transparent;
  color: var(--kit-text);
}

.kit-button--secondary:hover {
  border-color: var(--kit-text);
  background: color-mix(in srgb, var(--kit-text) 7%, transparent);
  color: var(--kit-text);
}

/* The quiet button is a word on a line. */
.kit-button--ghost {
  min-height: 2.75rem;
  padding-inline: 0;
  color: var(--kit-text);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.6rem) / 100% 1px no-repeat;
}

.kit-button--ghost:hover {
  color: var(--kit-accent-text);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.6rem) / 100% 1px no-repeat;
}

.kit-button-group {
  gap: 0.75rem;
}

/* ------------------------------------------------------------------ Cards */

/* No box: a picture with its caption under it, or words under a hairline. */
.kit-card {
  overflow: visible;
  transition: none;
}

.kit-card--surface,
.kit-card--outline {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.kit-card:not(.kit-card--plain):not(:has(> .kit-card__media)) {
  padding-top: 1.15rem;
  border-top: 1px solid var(--kit-line-strong);
}

.kit-card__media {
  overflow: hidden;
}

.kit-card__media + .kit-card__content {
  padding-top: 0.9rem;
}

.kit-card__content {
  gap: 0.45rem;
}

.kit-card__eyebrow {
  color: var(--kit-text);
  font-size: var(--bankside-small);
  font-weight: var(--bankside-small-weight);
  letter-spacing: 0.08em;
}

.kit-card__title {
  font-size: calc(var(--bankside-display, 1) * clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem));
  font-weight: var(--bankside-heading-strong, 700);
  line-height: 1;
  text-transform: uppercase;
}

.kit-card__body {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.kit-card__meta {
  font-size: var(--bankside-small);
  font-weight: var(--bankside-small-weight);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* A linked card: the picture comes a little closer and the title is underlined; nothing lifts. */
.kit-card--linked:hover,
.kit-card--linked.kit-card--surface:hover {
  border-color: var(--kit-line-strong);
  box-shadow: none;
}

.kit-card--linked .kit-card__link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 420ms var(--kit-ease);
}

.kit-card--linked:hover .kit-card__link {
  color: inherit;
  background-size: 100% 1px;
}

.kit-card__media img,
.kit-picture img,
.kit-gallery__image {
  transition: transform 900ms var(--kit-ease);
}

.kit-card--linked:hover .kit-card__media img {
  transform: scale(1.035);
}

/* A step's number: tall, pale, in the heading face. */
.kit-card--plain > .kit-card__content > .kit-card__eyebrow {
  margin-bottom: 0.35rem;
  color: color-mix(in srgb, var(--kit-text) 26%, transparent);
  font-family: var(--font-heading, sans-serif);
  font-size: calc(var(--bankside-display, 1) * clamp(3.5rem, 2.6rem + 3vw, 5.5rem));
  font-weight: var(--bankside-heading-weight, 800);
  letter-spacing: 0;
  line-height: 0.85;
}

.kit-steps .kit-card--plain {
  padding-top: 1.15rem;
  border-top: 1px solid var(--kit-line-strong);
}

/* ------------------------------------------------------------------ Pictures, icons, facts */

.kit-picture.kit-rounded,
.kit-frame {
  border-radius: 0;
}

.kit-picture--zoom:hover img {
  transform: scale(1.03);
}

.kit-picture__zoom-icon {
  inset-block-end: 0;
  inset-inline-end: 0;
  border-radius: 0;
  background: var(--kit-text);
  color: var(--background, #fff);
}

.kit-picture figcaption,
.kit-picture__caption {
  font-size: var(--bankside-small);
  font-weight: var(--bankside-small-weight);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Icons are fine lines at a small size, never in a badge. */
.kit-icon--large {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--kit-text);
  stroke-width: 1.25;
}

.kit-features > .kit-stack {
  gap: 0.6rem;
}

/* Numbers are part of the typography: very tall, in the heading face, figures of one width. */
.kit-output--large,
.kit-price__amount,
.kit-summary__amount,
.kit-stat__value {
  font-family: var(--font-heading, sans-serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: var(--bankside-heading-weight, 800);
}

.kit-stat {
  gap: 0.75rem;
}

.kit-stat__value {
  font-size: calc(var(--bankside-display, 1) * clamp(4rem, 2.2rem + 8vw, 10.5rem));
  letter-spacing: 0;
  line-height: 0.8;
}

.kit-stat__suffix {
  color: inherit;
}

.kit-stat__label {
  max-width: 18rem;
  color: var(--kit-text);
  font-size: var(--bankside-small);
  font-weight: var(--bankside-small-weight);
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.kit-price__amount {
  font-size: calc(var(--bankside-display, 1) * 2rem);
  line-height: 1;
}

.kit-price--large .kit-price__amount {
  font-size: calc(var(--bankside-display, 1) * clamp(3rem, 2.2rem + 2.6vw, 4.75rem));
  line-height: 0.9;
}

.kit-price__period,
.kit-price__note {
  font-size: 0.8125rem;
}

.kit-chip,
.kit-badge {
  font-size: var(--bankside-small);
  font-weight: var(--bankside-small-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kit-chip {
  padding: 0.3rem 0.6rem;
  border-color: color-mix(in srgb, var(--kit-tone, var(--kit-text)) 45%, transparent);
  background: transparent;
}

.kit-avatar {
  border-radius: 0;
  background: var(--kit-surface-alt);
  color: var(--kit-text);
  font-weight: var(--bankside-heading-weight, 800);
}

/* ------------------------------------------------------------------ Lists */

/* A price list: hairline rows, the price at the right after the kit's dotted leader. */
.kit-list--menu {
  gap: 0;
}

.kit-list--menu > .kit-list-item {
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--kit-line);
}

.kit-list--menu > .kit-list-item:first-child {
  border-top: 1px solid var(--kit-line-strong);
}

.kit-list--menu .kit-list-item__title {
  font-weight: var(--bankside-body-strong, 600);
}

.kit-list--menu .kit-list-item__meta {
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: var(--bankside-body-strong, 600);
}

.kit-list-item__note {
  font-size: 0.8125rem;
}

.kit-list-item__title {
  font-weight: var(--bankside-body-strong, 600);
}

/* What is included: a small square before each, in columns on a wide screen. */
.kit-list--check {
  gap: 0.6rem 1.75rem;
}

.kit-list--check > .kit-list-item::before {
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.35rem;
  background: var(--kit-text);
}

.kit-list--check .kit-list-item__title {
  font-weight: 400;
}

.kit-list-item__icon {
  color: var(--kit-text);
  stroke-width: 1.25;
}

/* Facts in rows: the name in small capitals, the value at the right. */
.kit-key-values__row {
  padding-block: 0.85rem;
}

.kit-key-values__row dt {
  color: var(--kit-text);
  font-size: var(--bankside-small);
  font-weight: var(--bankside-small-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kit-key-values__row dd {
  font-weight: var(--bankside-body-strong, 600);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ Fields */

/* A field is a line to write on; its name is a small label above it. A long answer gets a fine frame. */
.kit-field {
  gap: 0.15rem;
}

.kit-field__label {
  font-size: var(--bankside-small);
  font-weight: var(--bankside-small-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kit-input {
  min-height: 3rem;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--kit-line-strong);
  background-color: transparent;
}

.kit-input:hover {
  border-color: var(--kit-text);
}

.kit-input:focus {
  border-color: var(--kit-focus);
}

.kit-textarea {
  margin-top: 0.45rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--kit-line-strong);
}

.kit-select {
  padding-inline-end: 2rem;
  background-position: calc(100% - 0.6rem) 50%, calc(100% - 0.25rem) 50%;
}

[dir="rtl"] .kit-select,
.kit-root[dir="rtl"] .kit-select {
  background-position: 0.25rem 50%, 0.6rem 50%;
}

.kit-check__input {
  border-radius: 0;
}

.kit-dates__panel--popup {
  border: 1px solid var(--kit-line-strong);
  box-shadow: none;
}

.kit-dates__title {
  font-family: var(--font-heading, sans-serif);
  font-size: calc(var(--bankside-display, 1) * 1.375rem);
  font-weight: var(--bankside-heading-strong, 700);
  text-transform: uppercase;
}

.kit-dates__weekday {
  font-size: 0.625rem;
  font-weight: var(--bankside-small-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kit-dates__day.is-start .kit-dates__number,
.kit-dates__day.is-end .kit-dates__number {
  border-radius: 0;
  font-weight: var(--bankside-body-strong, 600);
}

.kit-dates__day.is-today .kit-dates__number {
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--kit-text);
}

.kit-filter-group__title,
.kit-form__step-title {
  font-family: var(--font-heading, sans-serif);
  font-size: calc(var(--bankside-display, 1) * 1.375rem);
  font-weight: var(--bankside-heading-strong, 700);
  line-height: 1.05;
  text-transform: uppercase;
}

/* A stock form's notes under its button are quiet facts after a small square; the call line under them. */
.kit-enquiry__notes {
  display: grid;
  gap: 0.35rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--kit-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.kit-enquiry__notes > li {
  position: relative;
  padding-inline-start: 1rem;
}

.kit-enquiry__notes > li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  inset-inline-start: 0;
  width: 0.3rem;
  height: 0.3rem;
  background: var(--kit-text);
}

.kit-form__call {
  font-size: 0.9375rem;
}

.kit-form__call-link {
  color: var(--kit-text);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ------------------------------------------------------------------ Questions, quotes, rows of pictures */

/* Questions are hairline rows; the kit opens the answer with a short motion of its height. */
.kit-accordion {
  border-top: 1px solid var(--kit-line-strong);
}

.kit-accordion__title {
  padding-block: 1.3rem;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  font-weight: var(--bankside-body-strong, 600);
  line-height: 1.35;
}

.kit-accordion__title:hover {
  color: var(--kit-text);
}

.kit-accordion__chevron {
  color: var(--kit-text);
  stroke-width: 1.25;
}

.kit-accordion__body {
  padding-bottom: 1.5rem;
}

/* A quote is said plainly: no mark, no rule, larger text, the name in small capitals after the dashed stroke. */
.kit-quote {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.kit-quote__text {
  font-family: var(--font-body, sans-serif);
  font-size: clamp(1.125rem, 1.02rem + 0.5vw, 1.4rem);
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.kit-quote__author {
  margin-top: 1.25rem;
  font-size: var(--bankside-small);
  font-weight: var(--bankside-small-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kit-quote__author::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 1px;
  margin-bottom: 0.8rem;
  background: var(--bankside-dashes);
}

.kit-quote__role {
  margin-top: 0.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.kit-gallery__thumb {
  border-radius: 0;
  opacity: 0.6;
  transition: opacity var(--kit-speed) ease;
}

.kit-gallery__thumb:hover,
.kit-gallery__thumb[aria-current="true"] {
  opacity: 1;
}

/* Many slides: the dots wrap inside the controls row instead of pushing the arrows off a phone's screen. */
.kit-slideshow__controls {
  padding-inline: var(--kit-gutter);
}

.kit-slideshow__dots {
  flex-wrap: wrap;
  justify-content: center;
  min-width: 0;
}

.kit-carousel__track {
  padding-bottom: 2rem;
}

.kit-carousel__controls {
  margin-top: 0;
}

.kit-carousel__progress {
  height: 1px;
  border-radius: 0;
}

.kit-carousel__button {
  border: 1px solid var(--kit-line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--kit-text);
}

.kit-carousel__button:hover:not(:disabled) {
  border-color: var(--kit-text);
  background: var(--kit-text);
  color: var(--background, #fff);
}

.kit-tabs__tab {
  font-size: 0.75rem;
  font-weight: var(--bankside-small-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kit-dialog,
.kit-drawer--right.is-ready,
.kit-drawer--bottom.is-ready {
  border: 1px solid var(--kit-line-strong);
  box-shadow: none;
}

.kit-notice {
  border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  .kit-card--linked:hover .kit-card__media img,
  .kit-picture--zoom:hover img,
  .kit-button--primary:hover::after {
    transform: none;
  }
}
