:where([data-etch-element="container"]) {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  max-inline-size: var(--content-width, 1366px);
  align-self: center; margin-inline: auto;
}
:where([data-etch-element="flex-div"]) {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
}
:root {
  ;
;
--row-alt: #E7E7ED;
}
:where([data-etch-element="iframe"]) {
  inline-size: 100%;
  height: auto;
 aspect-ratio: 16/9;
}
:where([data-etch-element="section"]) {
  inline-size: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.masthead__name {
  /* Masthead name */
  /* Local tokens */
  --masthead-name-size: calc(var(--h2) / 1.2);
  --masthead-name-color: var(--white);

  /* Type */
  margin-block: 0;
  font-size: var(--masthead-name-size);
  font-weight: var(--heading-font-weight);
  color: var(--masthead-name-color);
  text-transform: uppercase;
}
.masthead {
  /* Masthead — primary blue over the repeating clan tartan, with the site name */
  /* Local tokens */
  --masthead-bg: var(--primary);
  --masthead-pattern: url('../assets/header.webp');
  --masthead-tint: color-mix(in oklch, var(--primary) 100%, transparent);
  --masthead-pad: var(--section-space-xs);
  --masthead-line: color-mix(in oklch, var(--primary) 80%, transparent);
  /* Layout — a div inside the DWC Header, so ACSS's section-tag gutter no longer applies; match the nav bar */
  padding-block: var(--masthead-pad);
  padding-inline: var(--gutter);

  /* Color */
  background-color: var(--masthead-bg);
  background-image: linear-gradient(var(--masthead-tint), var(--masthead-tint)), var(--masthead-pattern);
  background-repeat: repeat;
  background-position: center;
  background-size: auto;
  border-block-end: var(--border-size) solid var(--masthead-line);

  /* Mobile: hidden below the DWC mobile breakpoint (1200px); the crest in the nav bar takes over */
  @media (width < 75.0625rem) {
    display: none;
  }
}
.hero {
  /* Hero: welcome line, title, motto and two ways in, over the repeating clan tartan */
  /* Local tokens */
  --hero-bg: var(--primary);
  --hero-pattern: url('../assets/header.webp');
  --hero-overlay: color-mix(in oklch, var(--black) 38%, transparent);
  --hero-fg: var(--white);
  --hero-min-size: 80dvh;

  /* Layout: at least 80% of the screen, content centred in it */
  min-block-size: var(--hero-min-size);
  justify-content: center;

  /* Color */
  background-color: var(--hero-bg);
  background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), var(--hero-pattern);
  background-repeat: repeat;
  background-position: center;
  background-size: auto;
  color: var(--hero-fg);
}
.hero__layout {
  /* Hero layout: copy stays first in the document, crest leads on wide screens */
/* Local tokens */
--hero-gap: var(--grid-gap);
--hero-columns: 2fr 3fr;

/* Layout */
display: grid;
gap: var(--hero-gap);
grid-template-areas:
  "copy"
  "crest";

@media (width >= 61.9375rem) {
  grid-template-columns: var(--hero-columns);
  grid-template-areas: "crest copy";
  align-items: center;
}
}
.hero__copy {
  /* Hero copy */
/* Local tokens */
--hero-copy-gap: var(--space-s);

/* Layout */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: var(--hero-copy-gap);
grid-area: copy;
text-align: center;
}
.hero__kicker {
  /* Hero kicker */
/* Local tokens */
--hero-kicker-size: var(--h4);
--hero-kicker-color: var(--white);

/* Type */
margin-block: 0;
font-family: var(--heading-font-family);
font-size: var(--hero-kicker-size);
font-weight: var(--heading-font-weight);
color: var(--hero-kicker-color);
}
.hero__title {
  /* Hero title — the only h1 */
  /* Local tokens */
  /* Fluid 45px → 72px across the ACSS viewport range (360px → 1440px). Floor is ACSS's mobile h1 (18px × 1.2^5). */
  --hero-title-size: clamp(2.8125rem, 2.375rem + 1.875vw, 4.5rem);
  --hero-title-color: var(--white);

  /* Type */
  margin-block: 0;
  font-size: var(--hero-title-size);
  color: var(--hero-title-color);
  text-transform: uppercase;
}
.hero__crest {
  /* Hero crest — sized box; the photo is a background so the heading can be LCP */
/* Local tokens */
--hero-crest-max: 14.5rem;
--hero-crest-file: url('../assets/crest.webp');
--hero-crest-shadow: drop-shadow(0 0.75rem 1.25rem color-mix(in oklch, var(--black) 55%, transparent));

/* Layout */
grid-area: crest;
display: flex;
justify-content: center;
inline-size: var(--hero-crest-max);
max-inline-size: 100%;
block-size: auto;
aspect-ratio: 351 / 429;
margin-block: 0;
margin-inline: auto;

/* Color */
background-image: var(--hero-crest-file);
background-repeat: no-repeat;
background-position: center;
background-size: contain;

/* Effect */
filter: var(--hero-crest-shadow);

@media (width >= 48rem) {
  --hero-crest-max: 22rem;
}
}
.hero__image {
  /* Hero crest file stays in the document (preload / alt); hidden so it is not LCP */
/* Layout */
display: none;
}
.about__layout {
  /* Who we are layout: copy beside the septs card from --wide */
/* Local tokens */
--about-gap: var(--grid-gap);
--about-columns: repeat(2, minmax(0, 1fr));

/* Layout */
display: grid;
gap: var(--about-gap);
align-items: start;

@media (width >= 61.9375rem) {
  grid-template-columns: var(--about-columns);
}
}
.about__copy {
  /* Who we are copy */
/* Local tokens */
--about-copy-gap: var(--content-gap);

/* Layout */
display: flex;
flex-direction: column;
gap: var(--about-copy-gap);
}
.about__title {
  /* Who we are title */
/* Type */
margin-block: 0;
}
.about__lede {
  /* About lede */
/* Local tokens */
--about-lede-measure: 70ch;
--about-lede-leading: 1.6;

/* Type */
margin-block: 0;
max-inline-size: var(--about-lede-measure);
text-wrap: balance;
line-height: var(--about-lede-leading);
}
.what-we-do__layout {
  /* What we do: head, four cards, closing line */
display: flex;
flex-direction: column;
gap: var(--space-l);
}
.what-we-do__title {
  /* What we do title */
margin-block: 0;
}
.what-we-do__lede {
  /* What we do lede */
/* Local tokens */
--what-we-do-lede-measure: 60ch;

/* Type */
margin-block: 0;
max-inline-size: var(--what-we-do-lede-measure);
font-size: var(--text-l);
line-height: 1.6;
}
.what-we-do__text {
  /* Closing line */
/* Local tokens */
--what-we-do-text-measure: 60ch;

/* Type */
margin-block: 0;
max-inline-size: var(--what-we-do-text-measure);
}
.about {
  /* Who we are: white band */
/* Local tokens */
--about-bg: var(--white);

/* Color */
background-color: var(--about-bg);
}
.what-we-do {
  /* What we do: white band */
/* Local tokens */
--what-we-do-bg: var(--white);

/* Color */
background-color: var(--what-we-do-bg);
}
.footer {
  /* Footer on every page: the join call, then the crest and copyright */
/* Local tokens */
--footer-bg: var(--primary);
--footer-fg: var(--white);
--footer-line: color-mix(in oklch, var(--white) 18%, transparent);

/* Layout: the join and base rows carry their own padding */
padding-block: 0;

/* Color */
background-color: var(--footer-bg);
color: var(--footer-fg);
}
.footer__copyright {
  /* Footer copyright */
/* Local tokens */
--footer-copyright-size: var(--text-s);

/* Layout: ACSS caps paragraphs at --text-max-width */
margin-block: 0;
max-inline-size: none;

/* Type */
font-size: var(--footer-copyright-size);
color: color-mix(in oklch, var(--white) 80%, transparent);
}
#dwc-header {
  padding-block: 0;
  z-index: 9999;

  body:has([dark-body-bg='true']&) main.etch-builder-block {
    background-color: #15151e;
  }
}
.dwc-skip-link {
  position: fixed;
  top: 0;
  inset-inline-start: 1rem;
  z-index: 100000;
  transform: translateY(-150%);

  /* Appearance when revealed */
  padding: var(--skip-link-padding);
  background: var(--skip-link-bg);
  color: var(--skip-link-color);
  font-size: var(--skip-link-font-size);
  font-weight: var(--skip-link-weight);
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: var(--skip-link-shadow);

  transition: transform 0.2s ease;
  
  &:hover{
    background: var(--skip-link-hover-bg);
  color: var(--skip-link-hover-color);
  }

  /* Reveal on focus */
  &:focus,
  &:focus-visible {
    transform: translateY(calc(0px + var(--wp-admin--admin-bar--height, 0px)));
    outline: var(--skip-link-outline);
    outline-offset: 2px;
  }

  .dwc-skip-links:has(&) {
    display: contents;
  }

  /* Respect reduced-motion preferences */
  @media (prefers-reduced-motion: reduce) {
    & {
      transition: none;
    }
  }
}
.dwc-header-vars {
  --fallback-section-padding: 83px;
  --dropdown-content-width: 75rem;
  --dropdown-content-default-width: 1200px;
  --header-inline-padding: var(--gutter);
  --header-block-padding: 0;
  --header-min-height: 0px;
  --header-bottom-border: 1px solid var(--secondary-semi-dark) !important;

  /*# ===== SKIP LINKS ===== */
  --skip-link-bg: #111;
  --skip-link-hover-bg: #111;
  --skip-link-font-size: 1rem;
  --skip-link-color: var(--white, #fff);
  --skip-link-hover-color: var(--white, #fff);
  --skip-link-padding: 0.75rem 1.25rem;
  --skip-link-outline: 3px solid var(--primary, #4da3ff);
  --skip-link-radius: 0 0 0.5rem 0.5rem;
  --skip-link-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  --skip-link-weight: 600;

  /*# ===== STICKY/OVERLAY HEADER SPECIAL STYLES ===== */
  /*===== this styles only apply when Special Sticky/Overlay Styles and sticky header is enabled =====*/

  /*# NOTE: */
  /* to change the values that are set on the component options, use !important e.g.   
   --overlay-header-bg:black !important;
  */

  /*## SVG STYLES BEFORE SCROLLING  */
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:not(.scroll-up, .scroll-down) & :is(path, .cls-1):not(.dwce-dropdown path) {
    /* fill: white; */
  }

  /*## SVG STYLES BEFORE SCROLLING - HOVER */
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:not(.scroll-up, .scroll-down) &:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover) :is(path, .cls-1):not(.dwce-dropdown path) {
    /* fill: hsl(from #fff h s l / 0.3); */
  }

  /*## SVG STYLES AFTER SCROLLING  */
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:is(.scroll-up, .scroll-down) & :is(path, .cls-1):not(.dwce-dropdown path) {
    /* fill: url(#GradientFill_1); */
  }

  /*## SVG STYLES AFTER SCROLLING - HOVER */
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:is(.scroll-up, .scroll-down) &:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover) :is(path, .cls-1):not(.dwce-dropdown path) {
    /* fill: hsl(from #000 h s l / 0.3); */
  }

  /*## STYLES BEFORE SCROLLING */
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom &:not(:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover)) {
    /* add any of the variables above and update value*/
  }

  /*## STYLES BEFORE SCROLLING - HOVER */
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:not(.scroll-up, .scroll-down) &:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover) {
    /* add any of the variables above and update value*/
  }

  /*## STYLES AFTER SCROLLING */
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:is(.scroll-up, .scroll-down) &:not(:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover)) {
    /* add any of the variables above and update value*/
  }

  /*## STYLES AFTER SCROLLING - HOVER*/
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:is(.scroll-up, .scroll-down) &:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover) {
    /* add any of the variables above and update value*/
  }

  /*## MOBILE STYLES WHEN MENU IS OPEN*/
  .dwc-mobile:has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom &:has(.dwce-toggle.is-active) {
    /* add any of the variables above and update value*/
    /* --overlay-header-bg: white !important; */
  }

  /*# ===== END STICKY/OVERLAY HEADER SPECIAL STYLES ===== */

  /*# ===== MOBILE ONLY STYLES ===== */
  /* add and modify varibales for mobile breakpoint OR use media query if you experience FOUC*/

  html.dwc-mobile & {
    /* --header-inline-padding: 1rem; */
    --header-block-padding: var(--space-xs);
  }
}
.dwc-nest-header {
  &:not(.dwc-mobile [data-overlay-header-mobile='true']:has([data-slide-in-direction='top']) &) {
    padding-inline: var(--header-inline-padding);
    padding-block: var(--header-block-padding);
  }

  background-color: var(--header-bg);
  transition:
    opacity 0.1s,
    transform 0.4s,
    background-color 0.4s;

  :is(.scroll-down, .scroll-up) [data-sticky-header='true'] & {
    background-color: var(--header-bg-sticky);
    --overlay-header-bg: var(--header-bg-sticky);
  }
}
.dwc-nest-header__container {
  justify-content: space-between;
  flex-direction: row;
  min-height: var(--header-min-height);
  margin-inline: auto;
  align-items: center;

  /*when overlay header is active on mobile, and menu slides in from top, use the header padding  */
  .dwc-mobile [data-overlay-header-mobile='true']:has([data-slide-in-direction='top']) & {
    padding-inline: var(--header-inline-padding);
    padding-block: var(--header-block-padding);
  }
}
.dwc-nest-menu__logo {
  padding-block: 0rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 9999;

  /* logo size */

  & > :is(svg, img) {
    width: auto;
    height: 70px; /* keep equal to DWC Nav › Logo › Mobile Logo Size */
  }
}
#dwce-nav-nested {
  @media (width <= 64rem) {
    inline-size: auto;
  }
}
.dwc-nav-wrapper {
  inline-size: 100%;
  max-inline-size: 100%
}
.dwc-nest-menu-top {
  padding-inline: var(--menu-item-inline-padding);
  padding-block: var(--menu-item-block-padding);
  &:not(.dwc-mobile &){
    display:none;
  }
}
.dwc-nest-menu__mobile-logo {
  transition: opacity 0.45s 0.15s var(--mobile-menu-ttf);
  block-size: var(--dwc-nest-header-height);
  max-block-size: var(--mobile-logo-size);
}
.dwce-toggle {
  --toggle-align: 0;

  &[data-flip-toggle='true'] {
    --toggle-align: auto;
    --toggle-horizontal-offset: auto;

    & .dwce-toggle__label-wrap {
      order: -1;
    }
  }

  &[data-toggle-style='techno'] {
    --toggle-line-height: 2px;
    --toggle-line-variance: 1px;
    --iw: var(--toggle-size);
    --aw: var(--toggle-size);

    &:not(.is-active) .dwca-inner {
      inline-size: 75%;
    }
  }

  &[data-equalize='true']:not([data-toggle-style='techno'], .is-active) {
    --toggle-line-variance: 1px;
    --iw: var(--toggle-size);
    --aw: var(--toggle-size);
  }
}
.dwc-nest-toggle--close {
  margin-inline-start: auto !important;
}
.dwc-nav-vars {
  /*# ===== BACK TEXT ===== */
  --back-text-clr: var(--black, #000);
  --back-text-font-size: 1rem;
  --back-text-font-weight: 500;
  --back-text-transform: uppercase;
  --back-text-bg: var(--mobile-menu-bg);
  --back-text-icon-size: 20px;

  /*# ===== MENU ITEMS GAP ===== */
  --menu-items-gap: 0rem;

  /*# ===== MOBILE ONLY STYLES ===== */
  /* Add & update varibale values for mobile breakpoint */
  html.dwc-mobile & {
    --mobile-menu-radius: var(--overlay-header-radius);
  }

  /*# =====  #MOBILE extras ===== */

  /*## Transitions */
  --mobile-menu-ttf: cubic-bezier(0.3, 0.68, 0.1, 1);
}
.dwc-megamenu-instruction {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.etch-h576kui {
  font-size: var(--text-m);
}
.dwc-dropdown-items-vars {
  /*## DROPDOWN CONTENT */
  --dropdown-content-bg: color-mix(in oklch, var(--primary) 10%, var(--white));
  --dropdown-content-block-padding: 0;
  --dropdown-content-inline-padding: 0;

  /*## DEFAULT STATE */
  --dropdown-item-clr: var(--primary);
  --dropdown-item-font-size: var(--menu-item-font-size);
  --dropdown-item-bg: initial;
  --dropdown-indent-bg: rgb(40 60 150 / 5%);
  --dropdown-heading-clr: var(--primary-clr);

  /*## HOVER STATE */
  --dropdown-item-hover-clr: var(--menu-item-hover-clr);
  --dropdown-item-hover-bg: var(--primary);

  /*## EXPANDED STATE (PARENT) - mobile */
  /* when [data-submenu-reveal="expand"] */
  --dropdown-expanded-clr: var(--white, #fff);
  --dropdown-expanded-bg: var(--primary);

  /*## PADDING | GAP | INDENT */
  --dropdown-item-inline-padding: var(--menu-item-inline-padding);
  --dropdown-item-block-padding: var(--menu-item-block-padding);
  --dropdown-indent: 0.6rem;
  --dropdown-indent-item-pad-offset: 0.5;
  --dropdown-indent-line: solid 1px rgb(40 60 150 / 20%);

  /*## RADIUS */
  --dropdown-item-radius: var(--dropdown-content-border-radius);
  /*  --dropdown-content-border-radius is set in the DWC Nav component props > DROPDOWN > Dropdown Content Radius */

  /*# ===== APPEARANCE: BUTTON ===== */

  &[appearance='button'] > .dwc-submenu-toggle {
    --menu-item-bg: var(--black, #000);
    --menu-item-clr: var(--white, #fff);
    --menu-item-hover-clr: var(--white, #fff);
    --menu-item-hover-bg: var(--black, #000);
    --menu-item-radius: 50vw;
    --menu-item-hover-border-height: 0;
    --icon-size: 0;
    --icon-clr: var(--white, #fff);
    --icon-hover-clr: var(--white, #fff);
    --menu-item-inline-padding: 1.5rem;
    --menu-item-block-padding: 1rem;
    --chevron-clr: var(--icon-clr);
    --chevron-hover-clr: var(--icon-hover-clr);
    --chevron-size: var(--icon-size);

    /*## mobile only*/
    --menu-item-width: 200px;
    --menu-item-border: solid 1px transparent;
    --menu-item-hover-border: solid 1px transparent;
  }

  /*# ===== APPEARANCE: ICON ===== */

  &[appearance='icon'] {
    --icon-button-inline-padding: var(--menu-item-inline-padding);
  }

  &[appearance='icon'] > .dwc-submenu-toggle {
    --menu-item-bg: var(--black, #000);
    --menu-item-clr: var(--white, #fff);
    --menu-item-hover-clr: var(--white, #fff);
    --menu-item-hover-bg: var(--black, #000);
    --icon-clr: var(--white, #fff);
    --icon-hover-clr: var(--white, #fff);
    --icon-size: 0.875rem;
    --menu-item-inline-padding: 1.1rem;
    --button-max-diameter: 2.8125rem;
    --menu-item-radius: 50vw;
    --menu-item-border: solid 1px transparent;
    --menu-item-hover-border: solid 1px transparent;
    --chevron-clr: var(--icon-clr);
    --chevron-hover-clr: var(--icon-hover-clr);
    --chevron-size: var(--icon-size);
  }

  /*# ===== STICKY/OVERLAY HEADER SPECIAL STYLES ===== */
  /*===== this styles only apply when the header div attribute [data-sticky-overlay-special-style] attribute is set to true, and sticky header is enabled =====*/

  /*## STYLES BEFORE SCROLLING - HOVER */
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:not(.scroll-up, .scroll-down) .dwce-nav-nested:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover) .dwc-nav-nested-items & {
    /* add any of the variables above and update value*/
  }

  /*## STYLES AFTER SCROLLING - HOVER*/
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:is(.scroll-up, .scroll-down) .dwce-nav-nested:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover) .dwc-nav-nested-items & {
    /* add any of the variables above and update value*/
  }

  /*# ===== MOBILE ONLY STYLES ===== */
  /* add and modify varibales for mobile breakpoint */

  html.dwc-mobile & {
    --dropdown-item-font-size: var(--menu-item-font-size);
    --dropdown-content-bg: color-mix(in oklch, var(--secondary), var(--secondary-semi-dark));
    --dropdown-item-clr: var(--white);
    --dropdown-item-hover-clr: var(--white);
    --dropdown-item-hover-bg: var(--secondary);
    --dropdown-indent: 0;
    --dropdown-indent-line: none;
    --dropdown-indent-bg: transparent;
  }
}
.dwc-top-level-items-vars {
  /*## DEFAULT STATE */
  --menu-item-clr: var(--primary);
  --menu-item-font-size: calc(var(--text-m) / 1.1);
  --menu-item-font-weight: 600;
  --menu-item-bg: initial;

  /*## HOVER STATE */
  --menu-item-hover-clr: var(--white);
  --menu-item-hover-bg: var(--primary);
  --menu-item-hover-border-bg: var(--menu-item-active-border-bg);
  --menu-item-hover-border-height: var(--menu-item-active-border-height);

  /*## ACTIVE STATE - Current Page Link*/
  /*(to exclude a link from this style, 
  add the attribute 'dwc-exclude' to its container)*/
  --menu-item-active-clr: var(--menu-item-hover-clr);
  --menu-item-active-bg: var(--primary);
  --menu-item-active-border-bg: var(--primary-clr);
  --menu-item-active-border-height: 0px;

  /*## PADDING | GAP */
  --menu-item-inline-padding: var(--space-s);
  --menu-item-block-padding: calc(var(--space-xs) * 1.25);

  /*## BORDERS | RADIUS */
  --menu-item-border: initial;
  --menu-item-radius: 0;

  /*## CHEVRON (dropdown arrow) */
  --chevron-size: 1.1em;
  --chevron-clr: var(--menu-item-clr);
  --chevron-hover-clr: var(--menu-item-hover-clr);
  --chevron-gap: 0.25rem;

  /*# ===== CTA BUTTONS (ALL) ===== */

  /*## all cta buttons padding */
  --cta-inline-padding: calc(var(--menu-item-inline-padding) * 1.3);
  --cta-block-padding: var(--menu-item-block-padding);

  /*## all cta buttons max width on mobile */
  --cta-width: 100%;

  /*## gap offset between 2 or 3 cta buttons on mobile*/
  --cta-gap-offset: 0;

  /*# ===== CTA 1 (LAST) ===== */

  /*## DEFAULT STATE */
  --menu-cta-clr: var(--white, #fff);
  --menu-cta-bg: var(--black, #000);
  --menu-cta-inline-padding: var(--cta-inline-padding);
  --menu-cta-block-padding: var(--cta-block-padding);
  --menu-cta-border: none;
  --menu-cta-radius: 50vw;

  /*## HOVER STATE */
  --menu-cta-hover-clr: var(--white, #fff);
  --menu-cta-hover-bg: var(--primary-clr);

  /*# ===== CTA 2 (SECOND) ===== */

  /*## DEFAULT STATE */
  --menu-cta-2-clr: var(--white, #fff);
  --menu-cta-2-bg: var(--black, #000);
  --menu-cta-2-inline-padding: var(--cta-inline-padding);
  --menu-cta-2-block-padding: var(--cta-block-padding);
  --menu-cta-2-border: var(--menu-cta-border);
  --menu-cta-2-radius: var(--menu-cta-radius);

  /*## HOVER STATE */
  --menu-cta-2-hover-clr: var(--white, #fff);
  --menu-cta-2-hover-bg: var(--primary-clr);

  /*# ===== CTA 3 (THIRD) ===== */

  /*## DEFAULT STATE */
  --menu-cta-3-clr: var(--white, #fff);
  --menu-cta-3-bg: var(--black, #000);
  --menu-cta-3-inline-padding: var(--cta-inline-padding);
  --menu-cta-3-block-padding: var(--cta-block-padding);
  --menu-cta-3-border: var(--menu-cta-border);
  --menu-cta-3-radius: var(--menu-cta-radius);

  /*## HOVER STATE */
  --menu-cta-3-hover-clr: var(--white, #fff);
  --menu-cta-3-hover-bg: var(--primary-clr);

  /*# ===== STICKY/OVERLAY HEADER SPECIAL STYLES ===== */
  /*===== this styles only apply when the header div attribute [data-sticky-overlay-special-style] attribute is set to true, and sticky header is enabled =====*/

  /*## STYLES BEFORE SCROLLING */
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:not(.scroll-up, .scroll-down) .dwc-nav-nested-items > & {
    /* add any of the variables above and update value*/
  }

  /*## STYLES BEFORE SCROLLING - HOVER */
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:not(.scroll-up, .scroll-down) .dwce-nav-nested:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover) .dwc-nav-nested-items > & {
    /* add any of the variables above and update value*/
  }

  /*## STYLES AFTER SCROLLING */
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:is(.scroll-up, .scroll-down) .dwce-nav-nested:not(:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover)) .dwc-nav-nested-items > & {
    /* add any of the variables above and update value*/
  }

  /*## STYLES AFTER SCROLLING - HOVER*/
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:is(.scroll-up, .scroll-down) .dwce-nav-nested:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover) .dwc-nav-nested-items > & {
    /* add any of the variables above and update value*/
  }

  /*## BADGE STYLES AFTER SCROLLING */
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:is(.scroll-up, .scroll-down) .dwce-nav-nested:not(:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover)) .dwc-nav-nested-items > & .dwc-menu-item-badge {
    /* --badge-color: #fff !important;
    --badge-bg-color: var(--primary-clr) !important; */
  }

  /*## BADGE STYLES AFTER SCROLLING - HOVER*/
  html:not(.dwc-mobile):has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:is(.scroll-up, .scroll-down) .dwce-nav-nested:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover) .dwc-nav-nested-items > & .dwc-menu-item-badge {
    /* 
    --badge-color: #fff !important;
    --badge-bg-color: gray !important;  
    */
  }

  /*# ===== MOBILE ONLY STYLES ===== */
  /* add and modify varibales for mobile breakpoint */

  html.dwc-mobile & {
    --menu-item-font-size: var(--text-s);
    --menu-item-clr: var(--white);
    --menu-item-hover-clr: var(--white);
    --menu-item-hover-bg: var(--secondary);
    --menu-item-block-padding: var(--space-m);
  }
}
.dwc-nest-toggle--open {
  gap: var(--label-gap);
}
.etch-hzzm98j {
  position: relative;
}
.dwce-toggle__label {
  font-size: var(--label-font-size);
  color: var(--label-color);
  text-transform: uppercase;
  font-weight: 500;
}
.dwc-toggle-vars {
  /*# ===== LINES ===== */
  /* Webflow hamburger: three 2px lines (component derives this from size, hence !important) */
  --toggle-line-height: 2px !important;

  /*# ===== OPEN/CLOSE LABEL WIDTH ===== */
  /* Lite 1.3.1 has no CSS behind the Equalize prop: the label box is only as wide as the open text,
     and the close text (an absolute ::after) is clipped. Reserve the close text's width with a
     zero-height ghost so the box fits the longer word. */
  &[data-label="Open/Close"] .dwce-toggle__label::before {
    content: attr(data-close-text);
    display: block;
    block-size: 0;
    overflow: hidden;
    visibility: hidden;
    white-space: nowrap;
  }

  /*# ===== STICKY/OVERLAY HEADER SPECIAL STYLES ===== */
  /*===== this styles only apply when the header div attribute [data-sticky-overlay-special-style] attribute is set to true, and sticky header is enabled =====*/

  /*## STYLES BEFORE SCROLLING */
  html:has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style], .dwce-nav-nested.dwc-open)) .dwc-headroom:not(.scroll-up, .scroll-down) & {
    /* 
    --toggle-color: white !important;
    --toggle-bg: color-mix(in oklch, white 10%, transparent) !important; 
    --label-color: white !important;
    */
  }

  /*## STYLES BEFORE SCROLLING - OPEN */
  html:has([data-sticky-overlay-special-style='true'][data-sticky-header='true'] .dwce-nav-nested.dwc-open):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:not(.scroll-up, .scroll-down) & {
    /* --toggle-color: black !important; */
  }

  /*## STYLES AFTER SCROLLING */
  html:has([data-sticky-overlay-special-style='true'][data-sticky-header='true']):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:is(.scroll-up, .scroll-down) .dwce-nav-nested:not(:has(.dwce-dropdown.open, .dwc-nav-nested-items > li:hover)) & {
    /* add any of the toggle variables and update value*/
  }

  /*## STYLES AFTER SCROLLING - OPEN */
  html:has([data-sticky-overlay-special-style='true'][data-sticky-header='true'] .dwce-nav-nested.dwc-open):not(:has([data-no-sticky], [data-no-overlay-style])) .dwc-headroom:is(.scroll-up, .scroll-down) & {
    /* --toggle-color: red !important; */
  }
}
.header-crest {
  /* Header crest: mobile only — the masthead carries the name on desktop */
@media (width >= 75.0625rem) {
  display: none;
}
}
.site-nav {
  /* Site nav: Webflow type and layout the DWC vars do not cover */
--site-nav-font: var(--heading-font-family);
--site-nav-tracking: 0.02em;

font-family: var(--site-nav-font);
text-transform: uppercase;
letter-spacing: var(--site-nav-tracking);

/* Container matches ACSS section inners (gutter is the header inline padding) */
& .dwc-nest-header__container {
  max-inline-size: var(--content-width);
}

/* Desktop: menu fills the container; packs left on narrow desktops, edge to edge once one row fits */
html:not(.dwc-mobile) & :is(.dwce-nav-nested, .dwc-nav-wrapper, .dwc-nav-nested-items) {
  flex-grow: 1;
}

html:not(.dwc-mobile) & .dwc-nav-nested-items {
  justify-content: flex-start;
}
}
.interior__heading {
  /* Type */
  margin-block: 0;
}
.interior__strong {
  /* Interior label */
  /* Local tokens */
  --interior-strong-weight: var(--heading-font-weight);

  /* Type */
  margin-block: 0;
  font-weight: var(--heading-font-weight);
}
.interior__list {
  /* Interior list */
/* Local tokens */
--interior-list-measure: 70ch;
--interior-list-gap: var(--space-xs);

/* Layout */
display: flex;
flex-direction: column;
gap: var(--interior-list-gap);
margin-block: 0;
padding-inline-start: 0;
max-inline-size: var(--interior-list-measure);
list-style: none;
}
.honor {
  /* Honorary membership row */
/* Local tokens */
--honor-gap: var(--space-2xs, var(--space-xs));

/* Layout */
display: flex;
flex-direction: column;
gap: var(--honor-gap);
}
.honor:nth-child(even) {
  /* Honorary membership alternate row */
/* Color */
background-color: var(--row-alt);
}
.honor__year {
  /* Honorary year */
/* Local tokens */
--honor-year-weight: var(--heading-font-weight);

/* Type */
margin-block: 0;
font-weight: var(--honor-year-weight);
}
.person {
  /* Notable person card */
/* Layout */
display: var(--card-display);
flex-direction: column;
block-size: 100%;
padding: var(--card-padding);
gap: var(--card-gap);

/* Color */
background-color: var(--card-background);
color: var(--card-text-color);
border-width: var(--card-border-width);
border-style: var(--card-border-style);
border-color: var(--card-border-color);
border-radius: var(--card-radius);

/* Type */
font-size: var(--card-text-size);
line-height: var(--card-line-height);
}
.person__copy {
  /* Notable person copy */
/* Layout */
display: flex;
flex-direction: column;
flex-grow: 1;
gap: var(--card-gap);
}
.person__name {
  /* Notable person name */
/* Type */
margin-block: 0;
font-size: var(--card-heading-size);
font-weight: var(--heading-font-weight);
color: var(--card-heading-color);
}
.person__text {
  /* Notable person text */
/* Type */
margin-block: 0;
}
.person__actions {
  /* Notable person documents */
/* Layout */
display: flex;
flex-wrap: wrap;
gap: var(--card-gap);
margin-block-start: auto;

& > .link-card {
  flex: 1 1 100%;
  block-size: auto;
}
}
.membership__kicker {
  /* Membership application label */
/* Type */
margin-block: 0;
font-size: var(--text-l);
font-weight: var(--heading-font-weight);
color: var(--secondary);
text-transform: uppercase;
}
.interior__stack {
  /* Stacked rows */
/* Layout */
display: flex;
flex-direction: column;
}
.etch-section-style {
  --interior-bg: var(--bg-ultra-light);

  /* Color */
  background-color: var(--interior-bg);
}
.interior__list > li {
  /* Interior list item */
  /* Local tokens */
  --interior-item-gap: var(--space-xs);
  --interior-marker-size: 0.45em;
  --interior-marker-offset: 0.45em;
  --interior-marker-color: var(--primary);

  /* Layout */
  display: flex;
  align-items: flex-start;
  column-gap: var(--interior-item-gap);
}
.interior__list > li::before {
  /* Interior list circle */
/* Layout */
content: "";
flex-shrink: 0;
inline-size: var(--interior-marker-size);
block-size: var(--interior-marker-size);
margin-block-start: var(--interior-marker-offset);

/* Color */
border-radius: 50%;
background-color: var(--interior-marker-color);
}
.interior__columns {
  /* Interior columns — side by side from the mid breakpoint, stacked below */
  /* Local tokens */
  --interior-columns-gap: var(--grid-gap);
  --interior-columns: var(--grid-2);

  /* Layout */
  display: grid;
  gap: var(--interior-columns-gap);
  align-items: start;

  & > * {
    min-inline-size: 0;
  }

  @media (width >= 61.9375rem) {
    grid-template-columns: var(--interior-columns);
  }

  & .gallery {
    grid-template-columns: 1fr;

    @media (width >= 80rem) {
      grid-template-columns: var(--grid-2);
    }
  }
}
.interior__column {
  /* Interior column stack */
/* Local tokens */
--interior-column-gap: var(--content-gap);

/* Layout */
display: flex;
flex-direction: column;
gap: var(--interior-column-gap);
min-inline-size: 0;
}
.honor__name {
  /* Honorary member name */
/* Type */
margin-block: 0;
}
.honor__role {
  /* Honorary member role */
/* Local tokens */
--honor-role-size: var(--text-s);
--honor-role-color: color-mix(in oklch, var(--text-dark-muted) 72%, var(--bg-ultra-light));

/* Type */
margin-block: 0;
font-size: var(--honor-role-size);
color: var(--honor-role-color);
}
.membership__field {
  /* Membership field */
/* Layout */
inline-size: 100%;
padding-block: var(--wsf-field-padding-vertical);
padding-inline: var(--wsf-field-padding-horizontal);
border-width: var(--wsf-field-border-width);
border-style: var(--wsf-field-border-style);
border-color: var(--wsf-field-border-color);
border-radius: var(--wsf-field-border-radius);

/* Color */
background-color: var(--wsf-field-color-background);
color: var(--wsf-field-color);
}
.membership__field::placeholder {
  /* Membership field placeholder */
/* Type */
font-size: var(--text-s);

/* Color */
color: var(--wsf-field-color-placeholder);
}
.membership__postal-line {
  /* Postal address line */
/* Type */
margin-block: 0;
}
.people {
  /* Notable people */
/* Layout */
display: grid;
grid-template-columns: var(--grid-auto-3);
gap: var(--grid-gap);
align-items: stretch;
}
.timeline {
  /* Sticky timeline down the middle of the viewport */
/* Layout */
position: relative;
display: flex;
flex-direction: column;
margin: 0;
padding: 0;
list-style: none;

/* Centre line */
&::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(var(--space-xl) / 2 - 0.09375rem);
  inline-size: 0.1875rem;
  background-color: var(--secondary);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black var(--space-xxl), black calc(100% - var(--space-xxl)), transparent);
  mask-image: linear-gradient(to bottom, transparent, black var(--space-xxl), black calc(100% - var(--space-xxl)), transparent);
}

@media (width >= 48rem) {
  &::before {
    inset-inline-start: calc(50% - 0.09375rem);
  }
}

}
.timeline__item {
  /* One dated entry, faded until it reaches the middle of the viewport */
/* Layout */
view-timeline: --timeline-item block;
position: relative;
z-index: 1;
display: grid;
grid-template-columns: var(--space-xl) minmax(0, 1fr);
grid-template-areas:
  "rail side"
  "rail card";
column-gap: var(--space-s);
row-gap: var(--space-s);
padding-block: var(--space-l);

@media (width >= 48rem) {
  grid-template-columns: minmax(0, 1fr) var(--space-xxl) minmax(0, 1fr);
  grid-template-areas: "side rail card";
  gap: 0;
  padding-block: var(--space-xxl);
}

@media (width >= 61.9375rem) {
  grid-template-columns: minmax(0, 1fr) calc(var(--space-xxl) * 2) minmax(0, 1fr);
}

/* Focus */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    & .timeline__date,
    & .timeline__card {
      animation: timeline-focus linear both;
      animation-timeline: --timeline-item;
      animation-range: cover 40vh cover calc(100% - 40vh);
    }

    & .timeline__dot {
      animation: timeline-dot linear both;
      animation-timeline: --timeline-item;
      animation-range: cover 40vh cover calc(100% - 40vh);
    }
  }
}

}
.timeline__date {
  /* Timeline date, held in the middle of the viewport */
/* Type */
margin-block: 0;
font-size: var(--h3);
font-weight: var(--heading-font-weight);
line-height: 1;
text-box: trim-both cap alphabetic;
color: var(--primary);

@media (width >= 48rem) {
  position: sticky;
  inset-block-start: calc(50vh - 0.5cap);
  font-size: var(--h2);
}

}
.timeline__text {
  /* Timeline note */
/* Type */
margin-block: 0;

}
.frame {
  /* Photograph */
/* Layout */
margin: 0;
}
.frame__image {
  /* Photograph */
  /* Layout */
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.contact__line {
  /* Contact detail row */
/* Layout */
display: flex;
align-items: flex-start;
gap: var(--space-s);

& p {
  margin-block: 0;
}
}
.contact__icon {
  /* Contact detail icon */
/* Layout */
inline-size: 1.5rem;
block-size: 1.5rem;
flex-shrink: 0;

/* Color */
color: currentColor;
fill: currentColor;
}
.contact__pair {
  /* Two fields on one row */
/* Layout */
display: grid;
gap: var(--wsf-form-grid-gap);

@media (width >= 61.9375rem) {
  grid-template-columns: var(--grid-2);
}
}
.contact__columns {
  /* Contact: details beside a wider form */
/* Local tokens */
--interior-columns: minmax(0, 2fr) minmax(0, 3fr);
}
.links__group {
  /* Link group */
  /* Layout */
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.links__group + .links__group {
  /* Space between link groups */
/* Layout */
margin-block-start: var(--space-l);
}
.immigrant {
  /* Immigrant card */
  /* Layout */
  display: var(--card-display);
  flex-direction: column;
  block-size: 100%;
  gap: var(--card-gap);

  /* Color */
  color: var(--card-text-color);

  /* Type */
  font-size: var(--card-text-size);
  line-height: var(--card-line-height);
}
.immigrant__title {
  /* Immigrant title */
/* Type */
margin-block: 0;
font-size: var(--card-heading-size);
font-weight: var(--heading-font-weight);
}
.immigrants {
  /* Immigrant grid */
/* Layout */
display: grid;
gap: var(--grid-gap);
align-items: stretch;
grid-template-columns: 1fr;

@media (width >= 48rem) {
  grid-template-columns: var(--grid-2);
}

@media (width >= 80rem) {
  grid-template-columns: var(--grid-3);
}
}
.links__grid {
  /* Link grid */
/* Layout */
display: grid;
grid-template-columns: var(--grid-auto-3);
gap: var(--grid-gap);
align-items: stretch;
row-gap: calc(var(--grid-gap) / 2);
}
.immigrant--wide {
  /* Wide immigrant card */
@media (width >= 48rem) {
  grid-column: span 2;
  flex-direction: row;
}
}
.immigrant__body {
  /* Immigrant details */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--card-gap);
flex: 1 1 auto;
min-inline-size: 0;
}
[data-immigrant='richard-davis'] {
  /* Richard Davis photograph fills the card */
@media (width >= 48rem) {
  align-items: stretch;

  & .frame {
    position: relative;
    flex: 0 1 40%;
    align-self: stretch;
    min-inline-size: 0;
  }

  & .frame__image {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

@media (width >= 80rem) {
  gap: calc(var(--card-gap) * 2);
}
}
.genealogy {
  /* Genealogy copy, two columns from the mid breakpoint */
/* Layout */
column-count: 1;
column-gap: var(--grid-gap);

@media (width >= 61.9375rem) {
  column-count: 2;
}

& > * + * {
  margin-block-start: var(--content-gap);
}

& > * {
  break-inside: avoid;
}
}
.autoplay-toggle-container {
  inline-size: var(--play-pause-size);
  block-size: var(--play-pause-size);
  flex-shrink: 0;
  & > button {
    inline-size: 100%;
    block-size: 100%;
  }
}
.dwc-slider-wrapper {
  min-block-size: var(--slider-wrapper-height);
  background-color: var(--slider-wrapper-bg);
  overflow-x: clip;
}
.slider-wrapper-instructions {
  display: flex;
  flex-direction: column;
  min-block-size: 20vh;
  max-block-size: none;
  align-items: center;
	justify-content: center;
}
.splide {
  --gutter: initial;
  --section-padding-block: initial;
  gap: 0;
  /* overflow: clip; */
  /* block-size: calc(var(--slide-height-active) + (var(--slider-padding-block) * 2)); */
  & .splide__track {
    padding-block: var(--slider-padding-block);
  }

  &[data-static-layout] {
    padding-inline: var(--slider-padding-inline);
  }

  & .splide__slide {
    display: flex;
    perspective: var(--slide-perspective);
  }

  &[data-overflow='true'] .splide__track {
    overflow: visible !important;
  }

  [data-slider-wrapper] & {
    inline-size: 100%;
  }

  & .slide-content {
    block-size: 100%;
    inline-size: min(100%, 100vw);
  }

  /*# INSIDE ETCH  */

  /*### SCROLL BAR  */

  @supports (scrollbar-width: auto) {
    html:has(&) {
      scrollbar-color: inherit;
    }
  }

  .etch-builder-block .splide {
    scrollbar-width: thin !important;
    scrollbar-color: #4a4a4a #1a1a1a;
  }

  .etch-builder-block.splide__track::-webkit-scrollbar {
    width: 8px;
    height: 12px;
  }

  .etch-builder-block.splide__track::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
  }

  .etch-builder-block.splide__track::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 10px;
    transition: background 0.3s ease;
  }

  .etch-builder-block.splide__track:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(to left, #ff4d6a, blue) !important;
  }

  .etch-builder-block.splide__track::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
  }
  /*### SCROLLBAR ENDS  */

  /*# INSIDE ETCH ENDS  */
}
.dwc-slider-controls-wrapper {
  display: flex;
}
.splide__slide {
  & > div:has(.slide-placeholder-info) {
    min-block-size: 200px;
    background-color: color-mix(in oklch, black 30%, transparent);
    background-image: radial-gradient(circle, white 1px, transparent 1px);
    background-size: 24px 24px;
    height: 100%;
  }
}
.slider-navigation-vars {
  /* Controls styles for built in slider navigation elements only: 
  - Arrows (nav buttons) 
  - Pagination
  - Play/Pause button
  - Progress
*/

  /*# ALL ARROWS  */

  /*## Normal */
  --arrow-bg: rgba(255, 255, 255, 0.06);
  --arrow-clr: color-mix(in oklch, white 50%, transparent);
  --arrow-radius: 50%;
  --arrow-width: 2.75rem;
  --arrow-height: var(--arrow-width);
  --arrow-padding: 0;
  --arrow-aspect-ratio: 1;
  --arrow-icon-size: 1.125rem;
  --arrow-bg-blur: 10px;
  --arrow-border: 1px solid rgba(255, 255, 255, 0.1);
  --arrow-opacity: 0;
  --arrow-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /*## Hover */
  --arrow-hover-bg: color-mix(in oklch, var(--primary) 20%, transparent);
  --arrow-hover-clr: var(--white, white);
  --arrow-hover-opacity: 1;
  --arrow-hover-border-clr: var(--primary, #ff4d6a);

  /*## POSITIONING  */

  /*### PREV ARROW  */
  --prev-arrow-top: 50%;
  --prev-arrow-bottom: auto;
  --prev-arrow-right: auto;
  --prev-arrow-left: 0.875rem;
  --prev-arrow-transform: translateY(-50%);

  /*### NEXT ARROW  */
  --next-arrow-top: 50%;
  --next-arrow-bottom: auto;
  --next-arrow-right: 0.875rem;
  --next-arrow-left: auto;
  --next-arrow-transform: translateY(-50%);

  /*# PAGINATION  */

  /*## WRAPPER  */
  --pagination-position: absolute;
  --pagination-padding: 12px 14px;
  --pagination-bg: rgba(0, 0, 0, 0.35);
  --pagination-bg-blur: 8px;
  --pagination-radius: 1.25rem;
  --pagination-gap: 0.5rem;

  /*### POSITIONING  */
  --pagination-top: auto;
  --pagination-bottom: 1rem;
  --pagination-left: 50%;
  --pagination-right: auto;
  --pagination-transform: translateX(-50%);

  /*## DOTS  */

  /*### Normal  */
  --dot-size: 8px;
  --dot-radius: 50%;
  --dot-clr: rgba(255, 255, 255, 0.2);
  --dot-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /*### Hover  */
  --dot-hover-clr: rgba(255, 255, 255, 0.5);

  /*### Active */
  --dot-clr-active: var(--primary, #ff4d6a);
  --dot-transform-active: scale(1.3);

  /*# PLAY/PAUSE BUTTON  */

  /*## Normal */
  --play-pause-size: 32px;
  --play-pause-radius: 50vw;
  --play-pause-border: 1px solid rgba(255, 255, 255, 0.1);
  --play-pause-clr: var(--white, white);
  --play-pause-bg: rgba(0, 0, 0, 0.4);
  --play-pause-bg-blur: 8px;

  /*## Hover */
  --play-pause-hover-bg: color-mix(in oklch, var(--primary) 20%, transparent);
  --play-pause-hover-border-clr: var(--primary, #ff4d6a);

  /*## POSITIONING  */
  --play-pause-top: auto;
  --play-pause-bottom: 14px;
  --play-pause-left: auto;
  --play-pause-right: 14px;
  --play-pause-z-index: 10;

  /*# PROGRESS  */

  /*## Normal */
  --progress-fill-clr: var(--primary, #ff4d6a);
  --progress-fill-clr-2: var(--primary-ultra-light, #ff8fa3); /* bar progress*/
  --progress-bg: rgba(0, 0, 0, 0.4); /* non cirular counter*/
  --progress-bg-blur: 8px; /* non cirular counter*/
  --progress-border-radius: 20px; /* non cirular counter*/
  --progress-border: 1px solid rgba(255, 255, 255, 0.08); /* non cirular counter*/
  --progress-padding: 4px 12px; /* non cirular counter*/
  --progress-track-clr: rgba(255, 255, 255, 0.1);
  --progress-separator-clr: var(--progress-clr-total);
  --progress-separator-gap: 0.1em;
  --progress-separator-size: var(--progress-font-size-total);

  /*## Current text */
  --progress-clr-current: var(--primary, #ff4d6a);
  --progress-font-size-current: 0.8rem;

  /*## Total text */
  --progress-clr-total: #8888a0;
  --progress-font-size-total: 0.6rem;

  /*## POSITIONING  */
  --progress-top: auto;
  --progress-bottom: 0;
  --progress-left: 14px;
  --progress-right: auto;
  --progress-z-index: 10;

  /*### Counter  */
  & [data-auto-generated][data-progress-type='counter'] {
    --progress-top: auto;
    --progress-bottom: 12px;
    --progress-left: auto;
    --progress-right: 12px;
  }

  /*### Circular  */
  & [data-auto-generated][data-progress-type='circular'] {
    --progress-top: 14px;
    --progress-bottom: auto;
    --progress-left: 14px;
    --progress-right: auto;
  }

  /*# LIGHTBOX  */

  --lightbox-bg: color-mix(in oklch, black 90%, transparent);
  --lightbox-z: 99999;
  --lightbox-close-size: 2.75rem;
  --lightbox-padding: clamp(16px, 4vw, 48px);
  --lightbox-img-height: 90vh;
  --lightbox-arrow-bg: color-mix(in oklch, white 12%, transparent);
  --lightbox-arrow-hover-bg: color-mix(in oklch, white 25%, transparent);
  --lightbox-clr: #fff;
  --lightbox-slide-height: 70vh;
}
.dwc-slider-vars-o73c4f {
  /* Controls styles for built in slider navigation elements only: 
  - Arrows (nav buttons) 
  - Pagination
  - Play/Pause button
  - Progress
*/

  /*# ALL ARROWS  */

  /*## Normal */
  --arrow-bg: rgba(255, 255, 255, 0.06);
  --arrow-clr: color-mix(in oklch, white 50%, transparent);
  --arrow-radius: 50%;
  --arrow-width: 2.75rem;
  --arrow-height: var(--arrow-width);
  --arrow-padding: 0;
  --arrow-aspect-ratio: 1;
  --arrow-icon-size: 1.125rem;
  --arrow-bg-blur: 10px;
  --arrow-border: 1px solid rgba(255, 255, 255, 0.1);
  --arrow-opacity: 0;
  --arrow-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /*## Hover */
  --arrow-hover-bg: color-mix(in oklch, var(--primary) 20%, transparent);
  --arrow-hover-clr: var(--white, white);
  --arrow-hover-opacity: 1;
  --arrow-hover-border-clr: var(--primary, #ff4d6a);

  /*## POSITIONING  */

  /*### PREV ARROW  */
  --prev-arrow-top: 50%;
  --prev-arrow-bottom: auto;
  --prev-arrow-right: auto;
  --prev-arrow-left: 0.875rem;
  --prev-arrow-transform: translateY(-50%);

  /*### NEXT ARROW  */
  --next-arrow-top: 50%;
  --next-arrow-bottom: auto;
  --next-arrow-right: 0.875rem;
  --next-arrow-left: auto;
  --next-arrow-transform: translateY(-50%);

  /*# PAGINATION  */

  /*## WRAPPER  */
  --pagination-position: absolute;
  --pagination-padding: 12px 14px;
  --pagination-bg: rgba(0, 0, 0, 0.35);
  --pagination-bg-blur: 8px;
  --pagination-radius: 1.25rem;
  --pagination-gap: 0.5rem;

  /*### POSITIONING  */
  --pagination-top: auto;
  --pagination-bottom: 1rem;
  --pagination-left: 50%;
  --pagination-right: auto;
  --pagination-transform: translateX(-50%);

  /*## DOTS  */

  /*### Normal  */
  --dot-size: 8px;
  --dot-radius: 50%;
  --dot-clr: rgba(255, 255, 255, 0.2);
  --dot-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /*### Hover  */
  --dot-hover-clr: rgba(255, 255, 255, 0.5);

  /*### Active */
  --dot-clr-active: var(--primary, #ff4d6a);
  --dot-transform-active: scale(1.3);

  /*# PLAY/PAUSE BUTTON  */

  /*## Normal */
  --play-pause-size: 32px;
  --play-pause-radius: 50vw;
  --play-pause-border: 1px solid rgba(255, 255, 255, 0.1);
  --play-pause-clr: var(--white, white);
  --play-pause-bg: rgba(0, 0, 0, 0.4);
  --play-pause-bg-blur: 8px;

  /*## Hover */
  --play-pause-hover-bg: color-mix(in oklch, var(--primary) 20%, transparent);
  --play-pause-hover-border-clr: var(--primary, #ff4d6a);

  /*## POSITIONING  */
  --play-pause-top: auto;
  --play-pause-bottom: 14px;
  --play-pause-left: auto;
  --play-pause-right: 14px;
  --play-pause-z-index: 10;

  /*# PROGRESS  */

  /*## Normal */
  --progress-fill-clr: var(--primary, #ff4d6a);
  --progress-fill-clr-2: var(--primary-ultra-light, #ff8fa3); /* bar progress*/
  --progress-bg: rgba(0, 0, 0, 0.4); /* non cirular counter*/
  --progress-bg-blur: 8px; /* non cirular counter*/
  --progress-border-radius: 20px; /* non cirular counter*/
  --progress-border: 1px solid rgba(255, 255, 255, 0.08); /* non cirular counter*/
  --progress-padding: 4px 12px; /* non cirular counter*/
  --progress-track-clr: rgba(255, 255, 255, 0.1);
  --progress-separator-clr: var(--progress-clr-total);
  --progress-separator-gap: 0.1em;
  --progress-separator-size: var(--progress-font-size-total);

  /*## Current text */
  --progress-clr-current: var(--primary, #ff4d6a);
  --progress-font-size-current: 0.8rem;

  /*## Total text */
  --progress-clr-total: #8888a0;
  --progress-font-size-total: 0.6rem;

  /*## POSITIONING  */
  --progress-top: auto;
  --progress-bottom: 0;
  --progress-left: 14px;
  --progress-right: auto;
  --progress-z-index: 10;

  /*### Counter  */
  & [data-auto-generated][data-progress-type='counter'] {
    --progress-top: auto;
    --progress-bottom: 12px;
    --progress-left: auto;
    --progress-right: 12px;
  }

  /*### Circular  */
  & [data-auto-generated][data-progress-type='circular'] {
    --progress-top: 14px;
    --progress-bottom: auto;
    --progress-left: 14px;
    --progress-right: auto;
  }

  /*# LIGHTBOX  */

  --lightbox-bg: color-mix(in oklch, black 90%, transparent);
  --lightbox-z: 99999;
  --lightbox-close-size: 2.75rem;
  --lightbox-padding: clamp(16px, 4vw, 48px);
  --lightbox-img-height: 90vh;
  --lightbox-arrow-bg: color-mix(in oklch, white 12%, transparent);
  --lightbox-arrow-hover-bg: color-mix(in oklch, white 25%, transparent);
  --lightbox-clr: #fff;
  --lightbox-slide-height: 70vh;
}
.slide-placeholder-info {
  margin: auto;
  color: white;
  font-size: 14px;
  letter-spacing: 1px;
}
.dwc-slider-nav-button-wrapper {
  width: fit-content;
height: fit-content;
}
.dwc-slider-nav-btn {
  /* max-inline-size: fit-content; */
  display: grid;
  place-items: center;
  white-space: nowrap;

  &:has(.dwc-default-slider-nav-icon, .dwc-slider-nav-custom-svg, [data-slide-title]) {
    color: var(--arrow-clr);
    font-size: var(--arrow-icon-size);
    min-width: calc(var(--arrow-width) + var(--title-width, 0px));
    min-height: var(--arrow-height);
    border: var(--arrow-border);
    border-radius: var(--arrow-radius);
    background: var(--arrow-bg);
    backdrop-filter: blur(var(--arrow-bg-blur));
    -webkit-backdrop-filter: blur(var(--arrow-bg-blur));
    cursor: pointer;
    transition: var(--arrow-transition);
    padding: var(--arrow-padding);
    aspect-ratio: var(--arrow-aspect-ratio);

    &:hover {
      background: var(--arrow-hover-bg);
      border-color: var(--arrow-hover-border-clr);
      color: var(--arrow-hover-clr);

      & svg {
        fill: var(--arrow-hover-clr);
      }
    }
  }
}
.dwc-default-slider-nav-icon {
  width: var(--arrow-icon-size);
  height: var(--arrow-icon-size);
  fill: var(--arrow-clr);
}
.dwc-slider-nav-custom-svg {
  & svg{
      width: var(--arrow-icon-size);
  height: var(--arrow-icon-size);
  fill: var(--arrow-clr);
  }
}
.dwc-nav-btn-instruction {
  color: white;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 1px;
  background-color: var(--etch-info, deepskyblue);
  border-radius: 0.4em;
  padding: 0.45 0.75em;
  max-inline-size: 250px;
  white-space: wrap;
}
.dwc-progress-container {
  & > .sc-bar-progress{
    block-size: var(--progress-height);
  }
}
.dwc-slider-pagination-wrapper {
  /*  General pagination styles */
  display: flex;
  gap: var(--gap);
  flex-direction: var(--direction);
  position: var(--position);
  z-index: var(--z-index);
  block-size: fit-content;

  /*  Default pagination styles */
  [data-custom-pagination='default']& {
    padding: var(--padding);
    background-color: var(--bg);
    backdrop-filter: blur(var(--blur));
    border-radius: var(--radius);
    font-size: var(--font-size);

    & .splide__pagination__page {
      width: var(--dot-size);
      height: var(--dot-size);
      border-radius: var(--dot-radius);
      border: none;
      color: var(--dot-color);
      background: var(--dot-bg);
      cursor: pointer;
      padding: 0;
      transition: all var(--sc-transition);
      line-height: 1;

      &.is-active {
        background: var(--dot-bg-active);
        transform: scale(1.3);
        color: var(--active-dot-color);
      }
    }
  }
  /*  END Default pagination styles */
}
.slider-flow-wrapper {
  background: var(--base-ultra-dark, #15151e);
  overflow: clip;
  padding-block-end: 0.5rem;
}
.dwc-slider-vars-9zu8uo {
  /* Controls styles for built in slider navigation elements only: 
  - Arrows (nav buttons) 
  - Pagination
  - Play/Pause button
  - Progress
*/

  /*# ALL ARROWS  */

  /*## Normal */
  --arrow-bg: rgba(255, 255, 255, 0.06);
  --arrow-clr: color-mix(in oklch, white 50%, transparent);
  --arrow-radius: 50%;
  --arrow-width: 2.75rem;
  --arrow-height: var(--arrow-width);
  --arrow-padding: 0;
  --arrow-aspect-ratio: 1;
  --arrow-icon-size: 1.125rem;
  --arrow-bg-blur: 10px;
  --arrow-border: 1px solid rgba(255, 255, 255, 0.1);
  --arrow-opacity: 0;
  --arrow-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /*## Hover */
  --arrow-hover-bg: color-mix(in oklch, var(--primary) 20%, transparent);
  --arrow-hover-clr: var(--white, white);
  --arrow-hover-opacity: 1;
  --arrow-hover-border-clr: var(--primary, #ff4d6a);

  /*## POSITIONING  */

  /*### PREV ARROW  */
  --prev-arrow-top: 50%;
  --prev-arrow-bottom: auto;
  --prev-arrow-right: auto;
  --prev-arrow-left: 0.875rem;
  --prev-arrow-transform: translateY(-50%);

  /*### NEXT ARROW  */
  --next-arrow-top: 50%;
  --next-arrow-bottom: auto;
  --next-arrow-right: 0.875rem;
  --next-arrow-left: auto;
  --next-arrow-transform: translateY(-50%);

  /*# PAGINATION  */

  /*## WRAPPER  */
  --pagination-position: absolute;
  --pagination-padding: 12px 14px;
  --pagination-bg: rgba(0, 0, 0, 0.35);
  --pagination-bg-blur: 8px;
  --pagination-radius: 1.25rem;
  --pagination-gap: 0.5rem;

  /*### POSITIONING  */
  --pagination-top: auto;
  --pagination-bottom: 1rem;
  --pagination-left: 50%;
  --pagination-right: auto;
  --pagination-transform: translateX(-50%);

  /*## DOTS  */

  /*### Normal  */
  --dot-size: 8px;
  --dot-radius: 50%;
  --dot-clr: rgba(255, 255, 255, 0.2);
  --dot-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /*### Hover  */
  --dot-hover-clr: rgba(255, 255, 255, 0.5);

  /*### Active */
  --dot-clr-active: var(--primary, #ff4d6a);
  --dot-transform-active: scale(1.3);

  /*# PLAY/PAUSE BUTTON  */

  /*## Normal */
  --play-pause-size: 32px;
  --play-pause-radius: 50vw;
  --play-pause-border: 1px solid rgba(255, 255, 255, 0.1);
  --play-pause-clr: var(--white, white);
  --play-pause-bg: rgba(0, 0, 0, 0.4);
  --play-pause-bg-blur: 8px;

  /*## Hover */
  --play-pause-hover-bg: color-mix(in oklch, var(--primary) 20%, transparent);
  --play-pause-hover-border-clr: var(--primary, #ff4d6a);

  /*## POSITIONING  */
  --play-pause-top: auto;
  --play-pause-bottom: 14px;
  --play-pause-left: auto;
  --play-pause-right: 14px;
  --play-pause-z-index: 10;

  /*# PROGRESS  */

  /*## Normal */
  --progress-fill-clr: var(--primary, #ff4d6a);
  --progress-fill-clr-2: var(--primary-ultra-light, #ff8fa3); /* bar progress*/
  --progress-bg: rgba(0, 0, 0, 0.4); /* non cirular counter*/
  --progress-bg-blur: 8px; /* non cirular counter*/
  --progress-border-radius: 20px; /* non cirular counter*/
  --progress-border: 1px solid rgba(255, 255, 255, 0.08); /* non cirular counter*/
  --progress-padding: 4px 12px; /* non cirular counter*/
  --progress-track-clr: rgba(255, 255, 255, 0.1);
  --progress-separator-clr: var(--progress-clr-total);
  --progress-separator-gap: 0.1em;
  --progress-separator-size: var(--progress-font-size-total);

  /*## Current text */
  --progress-clr-current: var(--primary, #ff4d6a);
  --progress-font-size-current: 0.8rem;

  /*## Total text */
  --progress-clr-total: #8888a0;
  --progress-font-size-total: 0.6rem;

  /*## POSITIONING  */
  --progress-top: auto;
  --progress-bottom: 0;
  --progress-left: 14px;
  --progress-right: auto;
  --progress-z-index: 10;

  /*### Counter  */
  & [data-auto-generated][data-progress-type='counter'] {
    --progress-top: auto;
    --progress-bottom: 12px;
    --progress-left: auto;
    --progress-right: 12px;
  }

  /*### Circular  */
  & [data-auto-generated][data-progress-type='circular'] {
    --progress-top: 14px;
    --progress-bottom: auto;
    --progress-left: 14px;
    --progress-right: auto;
  }

  /*# LIGHTBOX  */

  --lightbox-bg: color-mix(in oklch, black 90%, transparent);
  --lightbox-z: 99999;
  --lightbox-close-size: 2.75rem;
  --lightbox-padding: clamp(16px, 4vw, 48px);
  --lightbox-img-height: 90vh;
  --lightbox-arrow-bg: color-mix(in oklch, white 12%, transparent);
  --lightbox-arrow-hover-bg: color-mix(in oklch, white 25%, transparent);
  --lightbox-clr: #fff;
  --lightbox-slide-height: 70vh;
}
.slider-flow__slide {
  /* since the slide contents are absolutely positioned, we need to the slide aspect ratio for height inside the builder only */
  &.etch-builder-block{
   aspect-ratio: 16/9
  }
}
.slider-flow__slide-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-flow__slide-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-size: 1.5rem;
  transition:
    opacity 0.4s ease 0.3s,
    transform 0.4s ease 0.3s;

  /* hide Title on inactive Slide */

  &:not(.etch-builder-block) {
    opacity: 0;
    transform: translateY(20px);
  }

  .splide__slide.is-active & {
    opacity: 1;
    transform: translateY(0);
  }
}
.slider-flow__caption-tag {
  display: inline-block;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--white, #fff);
    background: color-mix(in oklch, var(--accent, #ff4d6a) 30%, transparent);
    padding: 3px 10px;
    border-radius: 0.25rem;
    margin-block-end: 0.375rem;
}
.slider-flow__caption-title {
  font-size: clamp(1rem,2.5vw,1.4rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
}
.slider-gallery {
  /* Gallery slider controls */
&.splide {
  --arrow-clr: var(--white);
  --arrow-bg: color-mix(in oklch, var(--primary) 58%, transparent);
  --arrow-border: 1px solid color-mix(in oklch, var(--primary) 58%, transparent);
  --arrow-hover-clr: var(--primary);
  --arrow-hover-bg: var(--white);
  --arrow-hover-border-clr: var(--primary);
  --pagination-bg: color-mix(in oklch, var(--primary) 58%, transparent);
  --dot-clr: color-mix(in oklch, var(--white) 55%, transparent);
  --dot-hover-clr: color-mix(in oklch, var(--white) 80%, transparent);
  --dot-clr-active: color-mix(in oklch, var(--white) 92%, transparent);
  --pagination-position: relative;
  --pagination-top: auto;
  --pagination-bottom: auto;
  --pagination-left: auto;
  --pagination-right: auto;
  --pagination-transform: none;
}

&.splide .splide__arrow {
  opacity: 1;
}

&.splide .splide__pagination {
  margin-block-start: var(--space-s);
  margin-inline: auto;
  inline-size: fit-content;
}

/* Edge fade on the photo track, so the arrows stay solid above it */
&.splide .splide__track {
  --fade-width: 12%;
  --fade-softness: 0.8;
  --fade-opacity: 0%;
  --fade-start: calc(var(--fade-width) * (1 - var(--fade-softness)));
  --fade-edge: color-mix(in oklch, black var(--fade-opacity, 0%), transparent);
  -webkit-mask-image: linear-gradient(to right, var(--fade-edge) var(--fade-start), black var(--fade-width), black calc(100% - var(--fade-width)), var(--fade-edge) calc(100% - var(--fade-start)));
  mask-image: linear-gradient(to right, var(--fade-edge) var(--fade-start), black var(--fade-width), black calc(100% - var(--fade-width)), var(--fade-edge) calc(100% - var(--fade-start)));
}

}
.slider-gallery-wrapper {
  /* Gallery slider, the page background shows through */
&.slider-flow-wrapper {
  background: transparent;
}

/* The wrapper mask also fades the arrows. Keep the fade on the track. */
&.dwc-slider-wrapper[data-edge-fade="true"] {
  -webkit-mask-image: none;
  mask-image: none;
}

}
.tartans__intro {
  /* Tartan introduction */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-m);

& p {
  margin-block: 0;
}

/* Sources line */
& .tartans__sources {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-xs);
}

& .tartans__sources-label {
  font-weight: var(--heading-font-weight);
}

& .tartans__sources a {
  color: var(--link-color);
  font-weight: var(--link-weight);
  text-decoration-line: var(--link-decoration);
}

}
.tartans__banner {
  /* Registered tartans heading */
/* Layout */
margin-block: 0;

}
.tartans {
  /* Registered Davidson tartans */
/* Local tokens */
--tartan-swatch-min: calc(9 * 1lh + 2 * var(--space-s));

/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-l);

}
.tartans__entry {
  /* One registered tartan */
/* Layout */
display: grid;
gap: var(--space-s);
align-items: start;

@media (width >= 30rem) {
  grid-template-columns: calc(var(--space-xl) * 3) minmax(0, 1fr);
  align-items: stretch;
}

}
.tartans__swatch {
  /* Tartan swatch */
/* Layout */
position: relative;
margin-block: 0;
margin-inline: 0;
inline-size: 100%;
min-block-size: var(--tartan-swatch-min);
overflow: hidden;

@media (width >= 30rem) {
  inline-size: calc(var(--space-xl) * 3);
  align-self: stretch;
}

}
.tartans__image {
  /* Tartan swatch image */
  /* Layout */
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;

  /* Color */
  border: var(--border);
}
.tartans__copy {
  /* Tartan description */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-s);

& p {
  margin-block: 0;
}

}
.tartans__name {
  /* Tartan name and date */
/* Type */
font-weight: var(--heading-font-weight);

}
.tartans__em {
  /* Book title */
/* Type */
font-weight: var(--heading-font-weight);
font-style: italic;

}
.tartans-layout {
  /* Introduction beside the tartan register */
/* Layout */
display: grid;
gap: var(--space-xl);
align-items: start;

@media (width >= 61.9375rem) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

}
.tartans__stack {
  /* Tartan register column */
  /* Layout */
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}
.tartans__more {
  /* Tartan description, six lines until Read more */
/* Layout */
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--space-xs);
interpolate-size: allow-keywords;

& summary {
  color: var(--link-color);
  font-weight: var(--link-weight);
  text-decoration-line: var(--link-decoration);
  cursor: pointer;
  list-style: none;
}

& summary::-webkit-details-marker,
& summary::marker {
  content: none;
}

/* The details content panel eases from six lines to its full height */
&:is(.tartans__more)::details-content {
  interpolate-size: allow-keywords;
  content-visibility: visible;
  overflow: hidden;
  block-size: calc(6 * 1lh);
  transition:
    block-size var(--transition-duration) var(--transition-timing),
    content-visibility var(--transition-duration) allow-discrete;
}

&[open]::details-content {
  block-size: auto;
}

& .tartans__body {
  display: block;
  max-block-size: none;
  overflow: visible;
}

&[open] .tartans__more-label--more {
  display: none;
}

&:not([open]) .tartans__more-label--less {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  &:is(.tartans__more)::details-content {
    transition: none;
  }
}

}
.tartans__body {
  /* Tartan description copy */
/* Layout */
margin-block: 0;

}
.attribution {
  font-size: var(--text-s);
}
details:not([class*="dwc-"], [class*="splide"], [class*="slider"]) {
  /* Every disclosure opens and closes with the ACSS transition */
&::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  block-size: 0;
  transition:
    block-size var(--transition-duration) var(--transition-timing),
    content-visibility var(--transition-duration) allow-discrete;
}

&[open]::details-content {
  block-size: auto;
}

@media (prefers-reduced-motion: reduce) {
  &::details-content {
    transition: none;
  }
}

}
.timeline__side {
  /* Date column */
/* Layout */
grid-area: side;

@media (width >= 48rem) {
  text-align: end;
}

}
.timeline__rail {
  /* Dot column, sized to the date so the dot centres on it */
/* Layout */
grid-area: rail;
display: flex;
justify-content: center;

/* Type */
font-size: var(--h3);

@media (width >= 48rem) {
  font-size: var(--h2);
}

}
.timeline__dot {
  /* Timeline marker */
/* Layout */
position: sticky;
inset-block-start: calc(50vh - var(--space-s) / 2);
display: block;
flex-shrink: 0;
inline-size: var(--space-s);
block-size: var(--space-s);
margin-block-start: calc(0.5cap - var(--space-s) / 2);
border-radius: 50%;

/* Color */
background-color: var(--white);
box-shadow: 0 0 0 calc(var(--space-s) / 2) var(--primary);

}
.timeline__card {
  /* Timeline note and photographs */
/* Layout */
grid-area: card;
align-self: start;
display: flex;
flex-direction: column;
gap: var(--space-s);
padding: var(--space-m);
border-width: var(--card-border-width);
border-style: var(--card-border-style);
border-color: var(--card-border-color);
border-radius: var(--card-radius);

/* Color */
background-color: color-mix(in oklch, var(--secondary) 10%, var(--white));

}
.timeline__figure {
  /* Timeline photograph */
/* Layout */
margin: 0;
overflow: hidden;
border-radius: var(--radius);

}
.timeline__image {
  /* Timeline photograph image */
/* Layout */
display: block;
inline-size: 100%;
block-size: auto;

}
.timeline__grid {
  /* Two photographs side by side */
/* Layout */
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-s);

}
.timeline-heading {
  /* Centred page title and subtitle */
/* Layout */
margin-inline: auto;

/* Type */
text-align: center;

}
.chief-intro {
  /* Clan Chief introduction: one column, newspaper columns from --wide */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-s);

& p {
  margin-block: 0;
}

@media (width >= 61.9375rem) {
  display: block;
  columns: 2;
  column-gap: var(--grid-gap);

  & p {
    max-inline-size: none;
    margin-block-end: var(--space-s);
    break-inside: avoid;
  }

  & p:last-child {
    margin-block-end: 0;
  }
}

}
.chief__body {
  /* Story beside photographs that stay in view */
/* Layout */
display: grid;
gap: var(--space-l);
padding: var(--space-m);

@media (width >= 61.9375rem) {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
  gap: var(--space-xl);
  padding: var(--space-l);
}

}
.chief__text {
  /* Chief story */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-s);

& p {
  margin-block: 0;
}

}
.chief__media {
  /* Chief photographs */
/* Layout */
display: grid;
gap: var(--space-s);
max-inline-size: 30rem;

@media (width >= 61.9375rem) {
  position: sticky;
  inset-block-start: calc(var(--space-xxl) + var(--space-l));
  max-inline-size: none;
}

}
.chief__figure {
  /* Chief photograph */
/* Layout */
margin: 0;
overflow: hidden;
border-radius: var(--radius);

/* Shadow */
box-shadow: var(--image-shadow-s);
}
.chief__image {
  /* Chief photograph image */
/* Layout */
display: block;
inline-size: 100%;
block-size: auto;

}
.chief__lead {
  /* Chief title and years */
/* Type */
font-weight: var(--heading-font-weight);

}
.chief__media--grid {
  /* Four photographs, two by two */
/* Layout */
grid-template-columns: repeat(2, minmax(0, 1fr));
max-inline-size: none;

& .chief__image {
  block-size: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

}
.chief__media--stack {
  /* Photographs in the order the story names them: top, middle, bottom */
/* Local tokens */
--chief-stack-max: 20rem; /* the bottom photograph is 320px wide, so none is enlarged */

/* Layout */
grid-template-columns: minmax(0, 1fr);
max-inline-size: var(--chief-stack-max);

@media (width >= 61.9375rem) {
  max-inline-size: var(--chief-stack-max);
}

}
.etch-accordion--custom {
  /* Site default for every Etch Accordion: bordered cards, tinted name bar, small navy chevron.
   Nested rules use :where() so a variant class passed through accordionClasses (.sept-accordion) wins. */
/* Local tokens */
--etch-accordion-gap: var(--space-s);
--etch-accordion-background: transparent;
--etch-accordion-button-background: color-mix(in oklch, var(--secondary) 10%, var(--white));
--etch-accordion-button-background-hover: color-mix(in oklch, var(--secondary) 18%, var(--white));
--etch-accordion-button-background-expanded: var(--etch-accordion-button-background);
--etch-accordion-item-border-radius: var(--card-radius);
--etch-accordion-item-border: var(--card-border-width) var(--card-border-style) var(--card-border-color);
--etch-accordion-item-text-color: inherit;
--etch-accordion-item-padding-inline: var(--space-m);
--etch-accordion-item-padding-block: var(--space-s);
--etch-accordion-button-padding: calc(var(--space-xs) / 2) var(--space-s);
--etch-accordion-button-outline: 0.125rem solid var(--primary);
--etch-accordion-button-outline-offset: 0.125rem;
--etch-accordion-svg-rotate: 180deg;

/* Items: the component writes its own 0.35s inline on the accordion, so timing is set here */
& :where(.etch-accordion__item) {
  --etch-accordion-transition-duration: var(--transition-duration);
  --etch-accordion-transition-timing-function: var(--transition-timing);
  overflow: clip;
  background-color: var(--white);
}

& :where(.etch-accordion__header) {
  max-inline-size: none;
  margin-block: 0;
}

& :where(.etch-accordion__button) {
  gap: var(--space-m);
  background-color: var(--etch-accordion-button-background);
}

& :where(.etch-accordion__button:hover, .etch-accordion__button:focus-visible) {
  background-color: var(--etch-accordion-button-background-hover);
}

& :where(.etch-accordion__button svg) {
  inline-size: var(--space-m);
  block-size: var(--space-m);
  padding: calc(var(--space-m) * 0.15);
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
}

/* clip, not hidden: sticky content inside an item keeps working */
& :where(.etch-accordion__content) {
  overflow: clip;
}

@media (prefers-reduced-motion: reduce) {
  & :where(.etch-accordion__item) {
    --etch-accordion-transition-duration: 0s;
  }
}

}
.etch-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--etch-accordion-gap);
  background: var(--etch-accordion-background);

  :where(.etch-accordion__item) {
    color: var(--etch-accordion-item-text-color);
    border: var(--etch-accordion-item-border);
    border-radius: var(--etch-accordion-item-border-radius);
  }

  :where(.etch-accordion__button) {
    --btn-text-align: left;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--etch-accordion-button-padding);
    color: var(--etch-accordion-item-text-color);
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 0;
    font: inherit;
  }

  :where(.etch-accordion__button:focus-visible) {
    outline: var(--etch-accordion-button-outline);
    outline-offset: var(--etch-accordion-button-outline-offset);
    background: var(--etch-accordion-button-background-hover);
  }

  :where(.etch-accordion__button:hover) {
    background: var(--etch-accordion-button-background-hover);
  }

  :where(.etch-accordion__button svg) {
    transition: transform var(--etch-accordion-transition-duration) var(--etch-accordion-transition-timing-function);
    flex-shrink: 0;
  }

  :where(.etch-accordion__button[aria-expanded='true']) {
    border-bottom: var(--etch-accordion-item-border);
    background: var(--etch-accordion-button-background-expanded);
  }

  :where(.etch-accordion__button[aria-expanded='true'] svg) {
    transform: rotate(var(--etch-accordion-svg-rotate));
  }

  :where(.etch-accordion__panel) {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--etch-accordion-transition-duration) var(--etch-accordion-transition-timing-function);
  }

  :where(.etch-accordion__panel[aria-hidden='false']) {
    grid-template-rows: 1fr;
  }

  :where(.etch-accordion__content) {
    overflow: hidden;
    min-height: 0;
  }

  :where(.etch-accordion__content-inner) {
    padding-inline: var(--etch-accordion-item-padding-inline);
    padding-block: var(--etch-accordion-item-padding-block);
  }
}
.etch-accordion__header {
  font-size: var(--text-m);
  text-align: left;
}
.etch-accordion__button {
  svg {
    flex-shrink: 0;
  }
}
.sept-accordion {
  /* Clans & Septs accordion: plain list, a rule under each name, plain chevron */
/* Local tokens */
--etch-accordion-gap: 0;
--etch-accordion-item-border: none;
--etch-accordion-item-border-radius: 0;
--etch-accordion-item-padding-inline: 0;
--etch-accordion-item-padding-block: var(--space-s);
--etch-accordion-button-background: transparent;
--etch-accordion-button-background-hover: transparent;
--etch-accordion-button-background-expanded: transparent;

/* Names are h2 (the page's sections), set at the h3 size */
& .etch-accordion__header {
  font-size: var(--h3);
}

/* Items */
& .etch-accordion__item {
  border-block-end: var(--border);
  background-color: transparent;
}

/* Name flush with its text, chevron at the row end */
& .etch-accordion__button {
  padding-block: var(--space-s);
  padding-inline: 0;
}

& .etch-accordion__button svg {
  inline-size: 1em;
  block-size: 1em;
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  color: currentColor;
}

& .etch-accordion__content-inner {
  padding-block: 0 var(--space-s);
  padding-inline: 0;

  & p {
    margin-block: 0;
  }
}

}
.chief__photo-note {
  font-size: var(--text-s-to-xs);
}
.contact-form {
  /* Contact form */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--wsf-form-grid-gap);
}
.contact-form__control {
  /* Labelled field */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--wsf-field-label-gap);
}
.contact-form__label {
  /* Field label */
/* Type */
margin-block: 0;
font-family: var(--wsf-field-label-font-family);
font-size: var(--wsf-field-label-font-size);
font-style: var(--wsf-field-label-font-style);
font-weight: var(--wsf-field-label-font-weight);
letter-spacing: var(--wsf-field-label-letter-spacing);
line-height: var(--wsf-field-label-line-height);
text-decoration: var(--wsf-field-label-text-decoration);
text-transform: var(--wsf-field-label-text-transform);

/* Color */
color: var(--wsf-field-label-color);
}
.contact-form__field {
  /* Contact field */
/* Layout */
inline-size: 100%;
padding-block: var(--wsf-field-padding-vertical);
padding-inline: var(--wsf-field-padding-horizontal);
border-width: var(--wsf-field-border-width);
border-style: var(--wsf-field-border-style);
border-color: var(--wsf-field-border-color);
border-radius: var(--wsf-field-border-radius);

/* Color */
background-color: var(--wsf-field-color-background);
color: var(--wsf-field-color);
}
.contact-form__field::placeholder {
  /* Contact field placeholder */
/* Type */
font-size: var(--text-s);

/* Color */
color: var(--wsf-field-color-placeholder);
}
.chattan__columns {
  /* Clan Chattan: story beside a narrower photo story */
/* Local tokens */
--interior-columns: minmax(0, 3fr) minmax(0, 2fr);
}
.chattan-moment {
  /* Inverness 2009: overlapping prints over a caption card */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-l);
max-inline-size: 35rem;
margin: 0;

@media (width >= 61.9375rem) {
  position: sticky;
  inset-block-start: calc(var(--space-xxl) + var(--space-l));
  max-inline-size: none;
}
}
.chattan-moment__photos {
  /* Two prints stacked in one grid cell */
/* Layout */
display: grid;
aspect-ratio: 10 / 9;
padding: var(--space-xs);
}
.chattan-moment__photo {
  /* Print with a white border */
/* Layout */
grid-area: 1 / 1;
inline-size: 70%;
block-size: auto;
aspect-ratio: 4 / 3;
object-fit: cover;
padding: var(--space-xs);
transition: rotate var(--transition-duration) var(--transition-timing), scale var(--transition-duration) var(--transition-timing);

/* Color */
background-color: var(--white);
box-shadow: var(--box-shadow-2);

@media (prefers-reduced-motion: no-preference) {
  &:hover {
    z-index: 2;
    rotate: 0deg;
    scale: 1.04;
  }
}
}
.chattan-moment__photo--back {
  /* Plaque: top left, tilted back */
/* Layout */
justify-self: start;
align-self: start;
rotate: -3deg;
}
.chattan-moment__photo--front {
  /* Re-signing: bottom right, over the plaque */
/* Layout */
justify-self: end;
align-self: end;
z-index: 1;
rotate: 2deg;
}
.chattan-moment__caption {
  /* Caption card */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-s);
padding: var(--space-m);
border-inline-start: 0.25rem solid var(--secondary);

/* Type */
font-size: var(--text-s);

/* Color */
background-color: var(--white);
border-radius: 0 var(--radius) var(--radius) 0;

& p {
  margin-block: 0;
}
}
.chattan-moment__eyebrow {
  /* Date and place */
/* Type */
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
letter-spacing: 0.08em;
text-transform: uppercase;

/* Color */
color: var(--primary);
}
.quote-simple {
  /* Simple text quote: body-sized, set on the figure around a blockquote. The ACSS feature quote stays the default. */
/* ACSS blockquote settings */
--blockquote-padding: 0 0 0 var(--space-m);
--blockquote-gap: var(--space-xs);
--blockquote-border-width: 0;
--blockquote-border-radius: 0;
--blockquote-background: transparent;
--blockquote-text-color: inherit;
--blockquote-text-font-family: inherit;
--blockquote-text-font-size: var(--text-m);
--blockquote-text-font-style: italic;
--blockquote-text-font-weight: var(--heading-font-weight);
--blockquote-text-line-height: inherit;
--blockquote-text-text-align: start;
--blockquote-text-text-transform: none;
--blockquote-footer-padding: 0;
--blockquote-footer-margin-block: 0;

/* Layout */
margin: 0;

/* Color */
border-inline-start: 0.25rem solid var(--secondary);

& blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

& blockquote p {
  margin-block: 0;
}
}
.quote-simple__source {
  /* Who said it */
/* Type */
font-size: var(--text-s);
font-style: normal;
font-weight: normal;

&::before {
  content: "— ";
}
}
.history {
  /* Clan History article: a wrapped portrait chapter, then a two-column chapter */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-xl);
}
.history__chapter {
  /* Chapter in normal flow so the portrait float and the drop cap work */
/* Layout */
display: flow-root;
max-inline-size: 62rem;

& > * {
  max-inline-size: none;
  margin-block: 0;
}

& > * + * {
  margin-block-start: var(--content-gap);
}

& > .quote-simple {
  margin-block: var(--space-l);
}
}
.history__chapter--columns {
  /* Newspaper columns from --wide; the closing quote spans both */
/* Layout */
max-inline-size: none;

@media (width >= 61.9375rem) {
  columns: 2;
  column-gap: var(--grid-gap);

  & > * {
    break-inside: avoid;
  }

  & > .quote-simple {
    column-span: all;
    max-inline-size: 48rem;
  }
}
}
.history__portrait {
  /* Portrait: at the start edge above the text, then floated with the text following his outline from --mid */
/* Layout */
max-inline-size: 22rem;
margin-block: 0 var(--space-l);
margin-inline: 0 auto;

@media (width >= 48rem) {
  float: inline-end;
  inline-size: min(42%, 26rem);
  max-inline-size: none;
  margin-block: 0 var(--space-m);
  margin-inline: var(--space-m) 0;
  shape-outside: polygon(48% 0, 40% 14%, 33% 24%, 20% 45%, 13% 57%, 16% 66%, 22% 74%, 16% 88%, 16% 100%, 100% 100%, 100% 0);
  shape-margin: var(--space-s);
}

/* Hang past the text measure into the open space on the right */
@media (width >= 61.9375rem) {
  margin-inline-end: calc(var(--space-xxl) * -1);
}
}
.history__image {
  /* Print blended into the page: multiply drops the cream paper, the masks fade every edge */
/* Layout */
display: block;
inline-size: 100%;
block-size: auto;
aspect-ratio: 454 / 622;

/* Color */
mix-blend-mode: multiply;
-webkit-mask-image:
  linear-gradient(to right, transparent 0%, black 20%, black 72%, transparent 100%),
  linear-gradient(to bottom, transparent 0%, black 8%, black 78%, transparent 100%);
-webkit-mask-composite: source-in;
mask-image:
  linear-gradient(to right, transparent 0%, black 20%, black 72%, transparent 100%),
  linear-gradient(to bottom, transparent 0%, black 8%, black 78%, transparent 100%);
mask-composite: intersect;
}
.history__heading {
  /* Chapter break */
/* Layout */
padding-block-start: var(--space-l);
border-block-start: var(--border);
}
.inaug-hero {
  /* Inauguration hero: full-bleed photo, title over a navy scrim at the foot */
/* Layout */
position: relative;
display: grid;
min-block-size: clamp(20rem, 38vw, 35rem);
padding: 0;
overflow: clip;

/* Color: the photo fills the hero; bg--ultra-dark keeps the light text and headings */

&.bg--ultra-dark {
  background: none;
}

&::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, color-mix(in oklch, var(--primary-ultra-dark) 92%, transparent) 0%, color-mix(in oklch, var(--primary-ultra-dark) 70%, transparent) 40%, color-mix(in oklch, var(--primary-ultra-dark) 35%, transparent) 100%);
}
}
.inaug-hero__image {
  /* Hero photograph, edge to edge behind the text */
/* Layout */
position: absolute;
inset: 0;
inline-size: 100%;
max-inline-size: none;
block-size: 100%;
object-fit: cover;
object-position: 50% 35%;
}
.inaug-hero__content {
  /* Hero text, aligned to the site content width */
/* Layout */
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
gap: var(--space-xs);
align-self: end;
inline-size: 100%;
max-inline-size: var(--content-width);
margin-inline: auto;
padding-block: var(--space-xl) var(--space-l);
padding-inline: var(--gutter);

& h1 {
  max-inline-size: 16ch;
  margin-block: 0;
}
}
.inaug-hero__eyebrow {
  /* Hero eyebrow */
/* Type */
margin-block: 0;
font-size: var(--text-s);
letter-spacing: 0.14em;
text-transform: uppercase;
opacity: 0.85;
}
.inaug-hero__meta {
  /* Where, Chief, Herald */
/* Layout */
display: flex;
flex-wrap: wrap;
gap: var(--space-xs) var(--space-l);
margin-block: var(--space-s) 0;

& dt {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

& dd {
  margin: 0;
  font-weight: var(--heading-font-weight);
}
}
.inaug {
  /* Inauguration: sticky contents rail beside the story from --wide */
/* Layout */
display: grid;
gap: var(--grid-gap);

@media (width >= 61.9375rem) {
  grid-template-columns: 13rem minmax(0, 1fr);
}
}
.inaug__rail {
  /* The weekend: chapter links that stay in view */
/* Layout */
display: none;

@media (width >= 61.9375rem) {
  position: sticky;
  inset-block-start: calc(var(--space-xxl) + var(--space-l));
  display: block;
  align-self: start;
}

& p {
  margin-block: 0 var(--space-s);
  font-size: var(--text-xs);
  font-weight: var(--heading-font-weight);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}

& ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-inline-start: 0.125rem solid color-mix(in oklch, currentColor 15%, transparent);
}

& a {
  display: block;
  margin-inline-start: -0.125rem;
  padding-block: var(--space-xs);
  padding-inline: var(--space-s) 0;
  border-inline-start: 0.125rem solid transparent;
  font-size: var(--text-s);
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-duration) var(--transition-timing), border-color var(--transition-duration) var(--transition-timing);
}

& a:hover,
& a:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}
}
.inaug__story {
  /* The story column */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-xxl);
max-inline-size: 52rem;
min-inline-size: 0;
}
.inaug-chapter {
  /* One chapter of the weekend, in flow so photos can float */
/* Layout */
display: flow-root;
scroll-margin-block-start: calc(var(--space-xxl) + var(--space-l));

& > * {
  max-inline-size: none;
  margin-block: 0;
}

& > * + * {
  margin-block-start: var(--content-gap);
}
}
.inaug-chapter__label {
  /* Small label above a chapter heading */
/* Type */
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--primary);

& + * {
  margin-block-start: var(--space-xs);
}
}
.inaug__lead {
  /* Opening paragraph with a three-line drop cap */
/* Type */
font-size: var(--text-l);

&::first-letter {
  float: inline-start;
  margin-block-start: 0.08em;
  margin-inline-end: var(--space-xs);
  font-family: var(--heading-font-family);
  font-size: calc(var(--text-l) * 4.8);
  font-weight: var(--heading-font-weight);
  line-height: 0.8;
  color: var(--primary);
}

/* Phones: the letter is 25% smaller */
@media (width < 48rem) {
  &::first-letter {
    font-size: calc(var(--text-l) * 3.6);
  }
}
}
.inaug-note {
  /* Side story: the Hagley Park connection */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-xs);
padding: var(--space-m);
border-block-start: 0.25rem solid var(--secondary);

/* Type */
font-size: var(--text-s);

/* Color */
background-color: var(--white);
border-radius: var(--radius);

@media (width >= 48rem) {
  float: inline-end;
  inline-size: min(45%, 20rem);
  margin-block: var(--space-xs) var(--space-m);
  margin-inline: var(--space-l) 0;
}

& .inaug-note__title {
  margin-block: 0;
  font-family: var(--heading-font-family);
  font-size: var(--text-m);
  font-weight: var(--heading-font-weight);
  line-height: var(--heading-line-height);
}

& p {
  margin-block: 0;
}
}
.inaug-photo {
  /* Chapter photograph with caption */
/* Layout */
margin-block: var(--space-l);
margin-inline: 0;

& figcaption {
  margin-block-start: var(--space-xs);
  font-size: var(--text-s);
  color: color-mix(in oklch, currentColor 70%, transparent);
}
}
.inaug-photo__image {
  /* Chapter photograph */
/* Layout */
display: block;
inline-size: 100%;
block-size: auto;

/* Color */
border-radius: var(--radius);

/* Shadow */
box-shadow: var(--image-shadow-s);
}
.inaug-photo--wide {
  /* Hangs past the story column on wide screens */
@media (width >= 61.9375rem) {
  margin-inline-end: calc(var(--space-xxl) * -1);
}
}
.inaug-photo--inset {
  /* Small photo floated beside its text */
@media (width >= 48rem) {
  float: inline-end;
  inline-size: 44%;
  margin-block: var(--space-xs) var(--space-m);
  margin-inline: var(--space-l) 0;
}
}
.inaug-clans {
  /* Clans in attendance */
/* Layout */
display: flex;
flex-wrap: wrap;
gap: var(--space-xs);
padding: 0;
list-style: none;

& li {
  margin: 0;
  padding-block: calc(var(--space-xs) / 2);
  padding-inline: var(--space-s);
  border: 0.0625rem solid color-mix(in oklch, var(--secondary) 40%, var(--white));
  border-radius: 999px;
  font-size: var(--text-s);
  font-weight: var(--heading-font-weight);
  color: var(--secondary);
  background-color: color-mix(in oklch, var(--secondary) 8%, var(--white));
}
}
.inaug-procession {
  /* Official party beside the Chief's entrance */
/* Layout */
display: grid;
gap: var(--space-l);
align-items: start;
margin-block: var(--space-l);

@media (width >= 48rem) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

& .inaug-photo {
  margin: 0;
}
}
.inaug-party {
  /* The official party, in marching order */
/* Layout */
display: grid;
margin: 0;
padding-block: var(--space-xs);
padding-inline: var(--space-m);
list-style: none;
counter-reset: party;

/* Color */
background-color: var(--white);
border-radius: var(--radius);

& li {
  display: grid;
  grid-template-columns: var(--space-l) minmax(0, 1fr);
  gap: 0 var(--space-s);
  margin: 0;
  padding-block: var(--space-s);
  border-block-end: var(--border);
  counter-increment: party;
}

& li:last-child {
  border-block-end: 0;
}

& li::before {
  content: counter(party);
  display: grid;
  grid-row: span 2;
  place-items: center;
  inline-size: var(--space-l);
  block-size: var(--space-l);
  border-radius: 50%;
  font-size: var(--text-s);
  font-weight: var(--heading-font-weight);
  color: var(--white);
  background-color: var(--primary);
}
}
.inaug-party__role {
  /* Role in the party */
/* Type */
font-size: var(--text-xs);
letter-spacing: 0.1em;
text-transform: uppercase;
color: color-mix(in oklch, currentColor 65%, transparent);
}
.inaug-party__name {
  /* Who carried it */
/* Type */
font-weight: var(--heading-font-weight);
}
.inaug-symbols {
  /* Symbols of the Chiefship: annotated portrait on a primary panel */
  /* Layout */
  display: grid;
  gap: var(--space-l);
  align-items: center;
  margin-block: var(--space-xl);
  padding: var(--space-l);

  /* Color: light text and headings on primary at 70% */
  --h3-color: var(--white);
  color: var(--white);
  background: color-mix(in oklch, var(--black) 80%, transparent);
  border-radius: var(--radius);

  @media (width >= 48rem) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  & h3 {
    margin-block: 0;
  }
}
.inaug-symbols__portrait {
  /* Portrait holding the markers */
/* Layout */
position: relative;
margin: 0;
}
.inaug-symbols__image {
  /* Chief portrait */
  /* Layout */
  display: block;
  inline-size: 100%;
  block-size: auto;

  /* Color */
  border-radius: var(--radius);
  filter: contrast(0.95);
}
.inaug-marker {
  /* Numbered marker on the portrait */
/* Layout */
position: absolute;
translate: -50% -50%;
display: grid;
place-items: center;
inline-size: var(--space-l);
block-size: var(--space-l);
border-radius: 50%;

/* Type */
font-size: var(--text-s);
font-weight: var(--heading-font-weight);

/* Color */
color: var(--primary);
background-color: var(--white);
box-shadow: 0 0 0 calc(var(--space-xs) / 2) color-mix(in oklch, var(--white) 35%, transparent);
}
.inaug-marker--cromach {
  /* On the Cromach handle */
  inset-inline-start: 17%;
  inset-block-start: 35%;
}
.inaug-marker--bonnet {
  /* On the eagle feathers */
  inset-inline-start: 74%;
  inset-block-start: 8%;
}
.inaug-marker--quaich {
  /* On the Quaich */
  inset-inline-start: 39%;
  inset-block-start: 90%;
}
.inaug-symbols__list {
  /* The three presentations, numbered to match the markers */
/* Layout */
display: grid;
gap: var(--space-m);
margin: var(--space-m) 0 0;
padding: 0;
list-style: none;
counter-reset: symbol;

/* Type */
font-size: var(--text-s);

& li {
  display: grid;
  grid-template-columns: var(--space-l) minmax(0, 1fr);
  gap: var(--space-s);
  margin: 0;
  counter-increment: symbol;
}

& li::before {
  content: counter(symbol);
  display: grid;
  place-items: center;
  inline-size: var(--space-l);
  block-size: var(--space-l);
  border-radius: 50%;
  font-weight: var(--heading-font-weight);
  color: var(--primary);
  background-color: var(--white);
}

& p {
  margin-block: 0;
}

& strong {
  display: block;
  font-size: var(--text-m);
}
}
.inaug-finale {
  /* Hail to the Chief */
/* Layout */
padding-block: var(--space-xl);
border-block: var(--border);

/* Type */
text-align: center;

& > p:last-child {
  max-inline-size: 42rem;
  margin-inline: auto;
}
}
.inaug-finale__cry {
  /* The cry, set large */
/* Type */
margin-block: 0;
font-family: var(--heading-font-family);
font-size: calc(var(--h1) * 1.5);
font-weight: var(--heading-font-weight);
line-height: 1;
color: var(--primary);

& span {
  display: block;
  margin-block-end: var(--space-s);
  font-size: var(--text-s);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--secondary);
}
}
.inaug-more {
  /* More from the weekend */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-m);
margin-block-start: var(--space-xxl);
}
.inaug-more__head {
  /* Heading with the gallery link */
/* Layout */
display: flex;
flex-wrap: wrap;
align-items: end;
justify-content: space-between;
gap: var(--space-s) var(--space-m);

& h2 {
  margin-block: 0;
}

& a {
  font-weight: var(--heading-font-weight);
}
}
.clan-global {
  /* Fact cards. One font size drives the type, the images and the gaps, so a narrower column scales the whole grid down together. */
/* Layout */
container-type: inline-size;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-auto-flow: dense;
gap: 0.7em;
font-size: 1rem;

@media (width >= 48rem) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (width >= 61.9375rem) {
  font-size: clamp(0.875rem, 1.25cqi, 1.0625rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "crest crest crest line line line motto motto motto motto motto motto"
    "crest crest crest line line line gaelic gaelic gaelic day day day"
    "plant plant plant plant plant plant plant chief chief chief chief chief"
    "badge badge badge salute salute salute salute chief chief chief chief chief";
}
}
.clan-fact {
  /* Fact card */
/* Layout */
position: relative;
display: flex;
flex-direction: column;
gap: 0.5em;
padding: 1.15em;
overflow: clip;
overflow-wrap: normal;
word-break: normal;
hyphens: none;

/* Color */
background-color: var(--card-background);
color: var(--card-text-color);
border-width: var(--card-border-width);
border-style: var(--card-border-style);
border-color: var(--card-border-color);
border-radius: var(--radius);

/* Type */
font-size: 1em;
line-height: 1.45;

& p {
  max-inline-size: none;
  margin-block: 0;
}
}
.clan-fact__body {
  /* Card text stack */
/* Layout */
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.clan-fact__label {
  /* Small uppercase label; colour comes from the ACSS h2 */
/* Type */
margin-block: 0;
font-size: 0.72em;
font-weight: var(--heading-font-weight);
letter-spacing: 0.12em;
line-height: 1.3;
text-transform: uppercase;
}
.clan-fact__display {
  /* The fact itself, set large */
/* Type */
font-family: var(--heading-font-family);
font-size: 1.7em;
font-weight: var(--heading-font-weight);
line-height: 1.15;
text-wrap: balance;
color: var(--primary);
}
.clan-fact__figure {
  /* Card image */
/* Layout */
margin: 0;
}
.clan-fact--crest {
  /* Clan Crest: tall card, crest centred */
/* Layout */
align-items: center;
justify-content: center;
gap: 0.75em;
text-align: center;

/* Color */
background-color: color-mix(in oklch, var(--primary) 5%, var(--white));

& .clan-fact__figure {
  inline-size: 11em;
  margin-inline: auto;
}

@media (width >= 61.9375rem) {
  grid-area: crest;
}
}
.clan-fact__crest {
  /* Crest image, filling its centred frame */
/* Layout */
display: block;
inline-size: 100%;
block-size: auto;

/* Color */
filter: drop-shadow(0 0.4em 0.7em rgb(0 0 0 / 0.18));
}
.clan-fact--motto {
  /* Clan Motto: the statement card */
/* Layout */
justify-content: center;
padding: 1.5em;

/* Color */
--h2-color: color-mix(in oklch, var(--white) 75%, transparent);
background-color: var(--primary);
color: var(--white);
border-color: var(--primary);

@media (width >= 48rem) {
  grid-column: span 2;
}

@media (width >= 61.9375rem) {
  grid-area: motto;
}
}
.clan-fact__motto {
  /* Latin motto */
/* Type */
margin-block: 0.15em !important;
font-family: var(--heading-font-family);
font-size: 2.6em;
font-style: italic;
font-weight: var(--heading-font-weight);
line-height: 1;
text-wrap: balance;
}
.clan-fact__translation {
  /* Motto translations */
/* Type */
font-size: 1em;
}
.clan-fact--gaelic {
  /* Gaelic Name */
/* Layout */
justify-content: center;

/* Color */
background-color: color-mix(in oklch, var(--secondary) 8%, var(--white));

@media (width >= 61.9375rem) {
  grid-area: gaelic;
}
}
.clan-fact--day {
  /* Davidson Day: the date tile stays beside the text at every width */
/* Layout */
flex-direction: row;
align-items: center;
gap: 0.75em;

& .clan-fact__body {
  min-inline-size: 0;
}

@media (width >= 61.9375rem) {
  grid-area: day;
}
}
.clan-fact__date {
  /* Calendar tile */
/* Layout */
display: grid;
place-content: center;
flex-shrink: 0;
inline-size: 2.7em;
aspect-ratio: 1;

/* Color */
background-color: var(--secondary);
color: var(--white);
border-radius: var(--radius);

/* Type */
font-family: var(--heading-font-family);
font-size: 2.3em;
font-weight: var(--heading-font-weight);
line-height: 1;
text-align: center;
}
.clan-fact__month {
  /* Month under the day */
/* Layout */
display: block;
margin-block-start: 0.25em;

/* Type */
font-size: 0.32em;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.clan-fact--plant {
  /* Clan Plant Badge: whortleberry above the text, beside it from desk */
/* Layout */
gap: 0.75em;

/* Color */
background-color: color-mix(in oklch, var(--secondary) 6%, var(--white));

& .clan-fact__figure {
  flex: 0 0 auto;
  inline-size: 9em;
}

@media (width >= 61.9375rem) {
  grid-area: plant;
}

@media (width >= 80rem) {
  flex-direction: row;
  align-items: center;
  gap: 1.25em;
}
}
.clan-fact__plant {
  /* Whortleberry print, blended into the card */
/* Layout */
display: block;
inline-size: 100%;
block-size: auto;
rotate: -8deg;

/* Color */
mix-blend-mode: multiply;
}
.clan-fact--chief {
  /* Clan Chief: portrait card, name over a navy fade */
/* Layout */
justify-content: end;
min-block-size: 22em;
padding: 0;

/* Color */
--h2-color: color-mix(in oklch, var(--white) 75%, transparent);
color: var(--white);

&::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in oklch, var(--primary) 92%, transparent), transparent 55%);
}

& .clan-fact__figure {
  position: absolute;
  inset: 0;
}

& .clan-fact__body {
  padding: 1.15em;
}

& .clan-fact__display {
  color: var(--white);
}

@media (width >= 61.9375rem) {
  grid-area: chief;
}
}
.clan-fact__photo {
  /* Chief portrait */
/* Layout */
inline-size: 100%;
block-size: 100%;
object-fit: cover;
object-position: 50% 20%;
}
.clan-fact--badge {
  /* Clan Badge */
@media (width >= 61.9375rem) {
  grid-area: badge;
}
}
.clan-fact--salute {
  /* Clan Salute */
& em {
  font-family: var(--heading-font-family);
  font-weight: var(--heading-font-weight);
  color: var(--primary);
}

@media (width >= 61.9375rem) {
  grid-area: salute;
}
}
.clan-global-page {
  /* The Clan Global column, the site content width */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-s);
inline-size: 100%;
max-inline-size: var(--content-width);
margin-inline: auto;

& > h1,
& > p {
  margin-block: 0;
}
}
.clan-fact--line {
  /* Outline crest, the same height as the coloured crest */
/* Layout */

/* Color: the drawing is on white, so the cell matches */
background-color: var(--white);
align-items: center;
justify-content: center;
gap: 0.75em;
text-align: center;

& .clan-fact__figure {
  inline-size: 9em;
  margin-inline: auto;
}

@media (width >= 61.9375rem) {
  grid-area: line;
}
}
.clan-fact__line {
  /* Outline crest drawing */
/* Layout */

/* Color */
background-color: var(--white);
display: block;
inline-size: 100%;
block-size: auto;
}
.drop-cap {
  /* Opening paragraph — three-line drop cap */
  /* Local tokens */
  --drop-cap-size: var(--text-l);
  --drop-cap-lines: 3;
  --drop-cap-letter-ratio: 4.8;
  /* Phones shrink the letter by this much */
  --drop-cap-letter-scale: 1;
  /* How many lines the letter sinks into the paragraph */
  --drop-cap-sink: var(--drop-cap-lines);
  --drop-cap-letter-size: calc(var(--drop-cap-size) * var(--drop-cap-letter-ratio) * var(--drop-cap-letter-scale));
  --drop-cap-letter-gap: var(--space-xs);
  --drop-cap-letter-color: var(--primary);
  --drop-cap-letter-font: var(--heading-font-family);
  --drop-cap-letter-weight: var(--heading-font-weight);
  --drop-cap-letter-shift: 0.08em;
  --drop-cap-letter-leading: 0.8;

  /* Type */
  font-size: var(--drop-cap-size);

  /* Fallback where initial-letter is unsupported: a floated letter sized by ratio */
  &::first-letter {
    float: inline-start;
    margin-block-start: var(--drop-cap-letter-shift);
    margin-inline-end: var(--drop-cap-letter-gap);
    font-family: var(--drop-cap-letter-font);
    font-size: var(--drop-cap-letter-size);
    font-weight: var(--drop-cap-letter-weight);
    line-height: var(--drop-cap-letter-leading);
    color: var(--drop-cap-letter-color);
  }

  /* initial-letter sizes the letter to span exactly --drop-cap-lines and aligns its top with the first line's cap height, whatever the line height */
  @supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
    &::first-letter {
      float: none;
      margin-block-start: 0;
      font-size: inherit;
      line-height: inherit;
      -webkit-initial-letter: calc(var(--drop-cap-lines) * var(--drop-cap-letter-scale)) var(--drop-cap-sink);
      initial-letter: calc(var(--drop-cap-lines) * var(--drop-cap-letter-scale)) var(--drop-cap-sink);
    }
  }

  /* Phones: a two-line drop cap. Whole lines keep the letter's top flush with the first line in Safari; 2.25 lines did not */
  @media (width < 48rem) {
    --drop-cap-lines: 2;
    --drop-cap-sink: 2;
    --drop-cap-letter-ratio: 3.2;
    /* A smaller letter needs a tighter gap or the text looks detached from it */
    --drop-cap-letter-gap: calc(var(--space-xs) * 0.35);
  }

}
.link-cards {
  /* Stack of large link cards */
/* Local tokens */
--link-cards-gap: var(--space-s);

/* Layout */
display: grid;
align-content: start;
gap: var(--link-cards-gap);
}
.link-card {
  /* Large link card for files and other websites: icon tile, title and note, arrow */
/* Local tokens */
--link-card-pad: var(--space-s);
--link-card-gap: var(--space-s);
--link-card-bg: var(--white);
--link-card-bg-hover: var(--primary-ultra-light);
--link-card-border: var(--card-border-color);
--link-card-border-hover: var(--primary);
--link-card-radius: var(--radius);
--link-card-shadow-hover: var(--box-shadow-1);
--link-card-icon-size: 3.25em;
--link-card-icon-bg: var(--primary);
--link-card-icon-fg: var(--white);
--link-card-arrow-size: 2.5em;
--link-card-title-size: var(--h4);
--link-card-title-color: var(--primary);
--link-card-meta-size: var(--text-s);
--link-card-meta-color: var(--text-dark-muted);

/* Layout */
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: var(--link-card-gap);
padding: var(--link-card-pad);

/* Color */
background-color: var(--link-card-bg);
color: var(--link-card-title-color);
border: var(--card-border-width) solid var(--link-card-border);
border-radius: var(--link-card-radius);
text-decoration: none;

/* Motion */
transition: background-color var(--transition-duration) ease, border-color var(--transition-duration) ease, translate var(--transition-duration) ease, box-shadow var(--transition-duration) ease;

html &:is(a[target=_blank])::after {
  --external-link-mark-size: var(--link-card-arrow-size);
  --external-link-mark-glyph: calc(var(--link-card-arrow-size) * 0.38);
  --external-link-mark-fg: var(--link-card-title-color);
  --external-link-mark-border-color: var(--link-card-border);
  --external-link-mark-turn: 0deg;
  margin-inline-start: 0;
  font-size: var(--external-link-mark-glyph);
  content: "→" / "Link to external site";
  rotate: var(--external-link-mark-turn);
}

&:hover,
&:focus-visible {
  background-color: var(--link-card-bg-hover);
  border-color: var(--link-card-border-hover);
  translate: 0 -0.125rem;
  box-shadow: var(--link-card-shadow-hover);
}

html &:is(a[target=_blank]):hover::after,
html &:is(a[target=_blank]):focus-visible::after {
  --external-link-mark-turn: -45deg;
  background-color: var(--link-card-title-color);
  color: var(--text-light);
  border-color: var(--link-card-title-color);
  rotate: var(--external-link-mark-turn);
}

@media (prefers-reduced-motion: reduce) {
  transition: none;

  &:hover,
  &:focus-visible {
    translate: none;
  }

  html &:is(a[target=_blank]):hover::after,
  html &:is(a[target=_blank]):focus-visible::after {
    --external-link-mark-turn: 0deg;
    rotate: 0deg;
  }
}
}
.link-card__icon {
  /* File or website tile */
/* Layout */
display: grid;
place-items: center;
flex-shrink: 0;
inline-size: var(--link-card-icon-size);
aspect-ratio: 1;

/* Color */
background-color: var(--link-card-icon-bg);
color: var(--link-card-icon-fg);
border-radius: var(--link-card-radius);

/* Type */
font-family: var(--heading-font-family);
font-size: calc(var(--text-xs) * 0.8);
font-weight: var(--heading-font-weight);
letter-spacing: 0.08em;
line-height: 1;
}
.link-card__body {
  /* Title and note */
/* Layout */
display: flex;
flex-direction: column;
gap: 0.15em;
min-inline-size: 0;
}
.link-card__title {
  /* Card title */
/* Type */
font-family: var(--heading-font-family);
font-size: var(--link-card-title-size);
font-weight: var(--heading-font-weight);
line-height: 1.2;
color: var(--link-card-title-color);
}
.link-card__meta {
  /* Short note under the title */
/* Type */
font-size: var(--link-card-meta-size);
line-height: 1.4;
color: var(--link-card-meta-color);
overflow-wrap: anywhere;
}
.link-card__arrow {
  /* Hidden — ACSS external-link ::after now draws the circle arrow */
display: none;
}
.link-card--compact {
  /* Smaller card for tight spots */
/* Local tokens */
--link-card-pad: calc(var(--space-xs) * 0.7);
--link-card-gap: var(--space-xs);
--link-card-icon-size: 2.5em;
--link-card-arrow-size: 2em;
--link-card-title-size: var(--text-m);
--link-card-meta-size: var(--text-xs);
}
.link-card--web {
  /* Another website: green tile */
/* Local tokens */
--link-card-icon-bg: var(--secondary);
}
.events__text {
  /* Panel text column */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-s);

& > * {
  margin: 0;
}
}
.events__eyebrow {
  /* Small label over each panel heading */
/* Type */
font-family: var(--heading-font-family);
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--secondary);
}
.toggle {
  /* Content Toggle component: a two-way switch over two panels. Radios and :has() do the switching, no script */
/* Local tokens */
--toggle-gap: var(--space-m);

/* Layout */
display: flex;
flex-direction: column;
gap: var(--toggle-gap);

&:has(.toggle__option:nth-of-type(2):checked) .toggle__switch::before {
  translate: 100% 0;
}

&:has(.toggle__option:nth-of-type(1):checked) .toggle__label:nth-of-type(1),
&:has(.toggle__option:nth-of-type(2):checked) .toggle__label:nth-of-type(2) {
  color: var(--white);
}

&:has(.toggle__option:nth-of-type(1):checked) > .toggle__panel--first,
&:has(.toggle__option:nth-of-type(2):checked) > .toggle__panel--second {
  display: grid;
}

/* In the builder both panels stay visible so each can be edited */
body:has(.etch-builder-block) & > .toggle__panel {
  display: grid;
}
}
.toggle__switch {
  /* Switch with a sliding marker */
/* Local tokens */
--toggle-switch-pad: calc(var(--space-xs) * 0.35);
--toggle-switch-bg: var(--white);
--toggle-switch-marker: var(--primary);

/* Layout */
position: relative;
display: inline-grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
max-inline-size: 100%;
align-self: start;
padding: var(--toggle-switch-pad);

/* Color */
background-color: var(--toggle-switch-bg);
border: var(--card-border-width) solid var(--card-border-color);
border-radius: var(--radius);

&::before {
  content: "";
  position: absolute;
  inset-block: var(--toggle-switch-pad);
  inset-inline-start: var(--toggle-switch-pad);
  inline-size: calc(50% - var(--toggle-switch-pad));
  background-color: var(--toggle-switch-marker);
  border-radius: var(--radius);
  transition: translate var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

@media (width < 30rem) {
  align-self: stretch;
}

@media (prefers-reduced-motion: reduce) {
  &::before {
    transition: none;
  }
}
}
.toggle__option {
  /* Hidden radio behind each label */
/* Layout */
position: absolute;
opacity: 0;
pointer-events: none;

&:focus-visible + .toggle__label {
  outline: 2px solid var(--focus-color);
  outline-offset: 3px;
}
}
.toggle__label {
  /* Switch option */
/* Layout */
position: relative;
z-index: 1;
padding-block: calc(var(--space-xs) * 0.85);
padding-inline: var(--space-m);

/* Color */
color: var(--primary);
border-radius: var(--radius);
cursor: pointer;

/* Type */
font-family: var(--heading-font-family);
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
letter-spacing: 0.08em;
text-align: center;
text-transform: uppercase;
white-space: nowrap;

/* Motion */
transition: color var(--transition-duration) ease;

@media (width < 30rem) {
  padding-inline: var(--space-xs);
  letter-spacing: 0.04em;
  white-space: normal;
}
}
.toggle__panel {
  /* One panel: white card that holds the slot content */
/* Local tokens */
--toggle-panel-pad: var(--space-l);

/* Layout */
display: none;
gap: var(--space-l);
padding: var(--toggle-panel-pad);

/* Color */
background-color: var(--white);
border: var(--card-border-width) solid var(--card-border-color);
border-radius: var(--radius);

/* Motion */
transition: opacity var(--transition-duration) ease, translate var(--transition-duration) ease;

@starting-style {
  opacity: 0;
  translate: 0 0.4rem;
}

@media (width < 30rem) {
  --toggle-panel-pad: var(--space-m);
}

@media (prefers-reduced-motion: reduce) {
  transition: none;
}
}
.filter {
  /* Filter: a row of chips over groups of content. Radios and :has() do the filtering, no script.
   Option 1 is All. Option n shows the nth div in .filter; the chip bar is div 1, so groups start at div 2. Up to eight groups. */
/* Local tokens */
--filter-gap: var(--space-m);

/* Layout */
display: flex;
flex-direction: column;
gap: var(--filter-gap);

&:has(.filter__option:nth-of-type(2):checked) > .filter__group:not(:nth-of-type(2)) {
  display: none;
}

&:has(.filter__option:nth-of-type(3):checked) > .filter__group:not(:nth-of-type(3)) {
  display: none;
}

&:has(.filter__option:nth-of-type(4):checked) > .filter__group:not(:nth-of-type(4)) {
  display: none;
}

&:has(.filter__option:nth-of-type(5):checked) > .filter__group:not(:nth-of-type(5)) {
  display: none;
}

&:has(.filter__option:nth-of-type(6):checked) > .filter__group:not(:nth-of-type(6)) {
  display: none;
}

&:has(.filter__option:nth-of-type(7):checked) > .filter__group:not(:nth-of-type(7)) {
  display: none;
}

&:has(.filter__option:nth-of-type(8):checked) > .filter__group:not(:nth-of-type(8)) {
  display: none;
}

&:has(.filter__option:nth-of-type(9):checked) > .filter__group:not(:nth-of-type(9)) {
  display: none;
}

/* Replays the fade on every change */
&:has(.filter__option:nth-of-type(1):checked) > .filter__group {
  animation-name: filter-in-1;
}

&:has(.filter__option:nth-of-type(2):checked) > .filter__group {
  animation-name: filter-in-2;
}

&:has(.filter__option:nth-of-type(3):checked) > .filter__group {
  animation-name: filter-in-3;
}

&:has(.filter__option:nth-of-type(4):checked) > .filter__group {
  animation-name: filter-in-4;
}

&:has(.filter__option:nth-of-type(5):checked) > .filter__group {
  animation-name: filter-in-5;
}

&:has(.filter__option:nth-of-type(6):checked) > .filter__group {
  animation-name: filter-in-6;
}

&:has(.filter__option:nth-of-type(7):checked) > .filter__group {
  animation-name: filter-in-7;
}

&:has(.filter__option:nth-of-type(8):checked) > .filter__group {
  animation-name: filter-in-8;
}

&:has(.filter__option:nth-of-type(9):checked) > .filter__group {
  animation-name: filter-in-9;
}

/* Single items instead of groups: data-filter-item="3" (or "3 5") shows the item when option 3 (or 5) is chosen. Up to eleven options after All */
& [data-filter-item] {
  animation: filter-in-1 var(--transition-duration) ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  & [data-filter-item] {
    animation: none;
  }
}

&:has(.filter__option:nth-of-type(2):checked) [data-filter-item]:not([data-filter-item~="2"]) {
  display: none;
}

&:has(.filter__option:nth-of-type(3):checked) [data-filter-item]:not([data-filter-item~="3"]) {
  display: none;
}

&:has(.filter__option:nth-of-type(4):checked) [data-filter-item]:not([data-filter-item~="4"]) {
  display: none;
}

&:has(.filter__option:nth-of-type(5):checked) [data-filter-item]:not([data-filter-item~="5"]) {
  display: none;
}

&:has(.filter__option:nth-of-type(6):checked) [data-filter-item]:not([data-filter-item~="6"]) {
  display: none;
}

&:has(.filter__option:nth-of-type(7):checked) [data-filter-item]:not([data-filter-item~="7"]) {
  display: none;
}

&:has(.filter__option:nth-of-type(8):checked) [data-filter-item]:not([data-filter-item~="8"]) {
  display: none;
}

&:has(.filter__option:nth-of-type(9):checked) [data-filter-item]:not([data-filter-item~="9"]) {
  display: none;
}

&:has(.filter__option:nth-of-type(10):checked) [data-filter-item]:not([data-filter-item~="10"]) {
  display: none;
}

&:has(.filter__option:nth-of-type(11):checked) [data-filter-item]:not([data-filter-item~="11"]) {
  display: none;
}

&:has(.filter__option:nth-of-type(12):checked) [data-filter-item]:not([data-filter-item~="12"]) {
  display: none;
}

&:has(.filter__option:nth-of-type(1):checked) [data-filter-item] {
  animation-name: filter-in-1;
}

&:has(.filter__option:nth-of-type(2):checked) [data-filter-item] {
  animation-name: filter-in-2;
}

&:has(.filter__option:nth-of-type(3):checked) [data-filter-item] {
  animation-name: filter-in-3;
}

&:has(.filter__option:nth-of-type(4):checked) [data-filter-item] {
  animation-name: filter-in-4;
}

&:has(.filter__option:nth-of-type(5):checked) [data-filter-item] {
  animation-name: filter-in-5;
}

&:has(.filter__option:nth-of-type(6):checked) [data-filter-item] {
  animation-name: filter-in-6;
}

&:has(.filter__option:nth-of-type(7):checked) [data-filter-item] {
  animation-name: filter-in-7;
}

&:has(.filter__option:nth-of-type(8):checked) [data-filter-item] {
  animation-name: filter-in-8;
}

&:has(.filter__option:nth-of-type(9):checked) [data-filter-item] {
  animation-name: filter-in-9;
}

&:has(.filter__option:nth-of-type(10):checked) [data-filter-item] {
  animation-name: filter-in-10;
}

&:has(.filter__option:nth-of-type(11):checked) [data-filter-item] {
  animation-name: filter-in-11;
}

&:has(.filter__option:nth-of-type(12):checked) [data-filter-item] {
  animation-name: filter-in-12;
}
}
.filter__bar {
  /* Chip row: wraps onto more rows at every width, so no chip is ever cut off */
/* Local tokens */
--filter-bar-gap: calc(var(--space-xs) * 0.6);

/* Layout */
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--filter-bar-gap);
padding-block: 0.2rem;
}
.filter__option {
  /* Hidden radio behind each chip */
/* Layout */
position: absolute;
opacity: 0;
pointer-events: none;

&:checked + .filter__chip {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

&:checked + .filter__chip .filter__count {
  background-color: color-mix(in oklch, var(--white) 18%, transparent);
  color: var(--white);
}

&:focus-visible + .filter__chip {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}
}
.filter__chip {
  /* One filter chip; corners match buttons */
/* Local tokens */
--filter-chip-pad-block: calc(var(--space-xs) * 0.65);
--filter-chip-pad-inline: var(--space-s);

/* Layout */
display: inline-flex;
flex-shrink: 0;
align-items: center;
gap: calc(var(--space-xs) * 0.6);
padding-block: var(--filter-chip-pad-block);
padding-inline: var(--filter-chip-pad-inline);

/* Color */
background-color: var(--white);
color: var(--primary);
border: var(--card-border-width) solid var(--card-border-color);
border-radius: var(--radius);
cursor: pointer;

/* Type */
font-family: var(--heading-font-family);
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
letter-spacing: 0.06em;
text-transform: uppercase;
white-space: nowrap;

/* Motion */
transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease, border-color var(--transition-duration) ease;

&:hover {
  border-color: var(--primary);
}
}
.filter__count {
  /* Item count inside a chip */
/* Layout */
display: inline-grid;
place-items: center;
min-inline-size: 1.6em;
padding-block: 0.1em;
padding-inline: 0.35em;

/* Color */
background-color: var(--primary-ultra-light);
color: var(--primary);
border-radius: calc(var(--radius) - 1px);

/* Type */
font-size: 0.85em;
letter-spacing: 0;
}
.filter__divider {
  /* Thin vertical rule between chip sets; its text stays in the markup but is not shown */
/* Local tokens */
--filter-divider-color: var(--card-border-color);
--filter-divider-height: 1.75rem;

/* Layout */
flex-shrink: 0;
inline-size: 1px;
block-size: var(--filter-divider-height);
margin-inline: calc(var(--space-xs) * 0.4);
overflow: hidden;

/* Color */
background-color: var(--filter-divider-color);

/* Type */
font-size: 0;
color: transparent;
}
.filter__group {
  /* One group of content under the chips */
/* Local tokens */
--filter-motion: var(--transition-duration);

/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-s);

/* Motion: .filter swaps the animation name per option, which restarts it */
animation: filter-in-1 var(--filter-motion) ease-out both;

@media (prefers-reduced-motion: reduce) {
  animation: none;
}
}
.filter--pair {
  /* Under All, groups sit two to a row from --wide; the chip bar and wide groups span both */
@media (width >= 61.9375rem) {
  &:has(.filter__option:nth-of-type(1):checked) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-l);
    align-items: start;
  }

  &:has(.filter__option:nth-of-type(1):checked) > .filter__bar,
  &:has(.filter__option:nth-of-type(1):checked) > .filter__group--wide {
    grid-column: 1 / -1;
  }
}
}
.honor-grid {
  /* Honorary life members as a grid of cards */
/* Layout */
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
gap: var(--space-s);
}
.role-card {
  /* Role card: small label over a name, matching the honour cards */
/* Local tokens */
--role-card-gap: calc(var(--space-xs) * 0.5);

/* Layout */
display: flex;
flex-direction: column;
gap: var(--role-card-gap);
}
.role-card__label {
  /* Role or place, under the name; matches .honor__role */
/* Local tokens */
--role-card-label-size: var(--text-s);
--role-card-label-color: color-mix(in oklch, var(--text-dark-muted) 72%, var(--bg-ultra-light));

/* Type */
margin-block: 0;
font-size: var(--role-card-label-size);
color: var(--role-card-label-color);
}
.role-card__name {
  /* Person and town */
/* Type */
margin-block: 0;
font-weight: var(--heading-font-weight);
}
.filter--single {
  /* One group at a time: no All chip, so option n shows group n (div n + 1, after the chip bar).
   .filter alone maps option n to div n, which suits pages with All first; these rules shift it by one. The builder shows every group so each can be edited */
body:not(:has(.etch-builder-block)) &:has(.filter__option:nth-of-type(1):checked) > .filter__group:not(:nth-of-type(2)) {
  display: none;
}

&.filter:has(.filter__option:nth-of-type(2):checked) > .filter__group:nth-of-type(2) {
  display: none;
}

&.filter:has(.filter__option:nth-of-type(2):checked) > .filter__group:nth-of-type(3) {
  display: flex;
}

&.filter:has(.filter__option:nth-of-type(3):checked) > .filter__group:nth-of-type(3) {
  display: none;
}

&.filter:has(.filter__option:nth-of-type(3):checked) > .filter__group:nth-of-type(4) {
  display: flex;
}

&.filter:has(.filter__option:nth-of-type(4):checked) > .filter__group:nth-of-type(4) {
  display: none;
}

&.filter:has(.filter__option:nth-of-type(4):checked) > .filter__group:nth-of-type(5) {
  display: flex;
}

&.filter:has(.filter__option:nth-of-type(5):checked) > .filter__group:nth-of-type(5) {
  display: none;
}

&.filter:has(.filter__option:nth-of-type(5):checked) > .filter__group:nth-of-type(6) {
  display: flex;
}

&.filter:has(.filter__option:nth-of-type(6):checked) > .filter__group:nth-of-type(6) {
  display: none;
}

&.filter:has(.filter__option:nth-of-type(6):checked) > .filter__group:nth-of-type(7) {
  display: flex;
}

&.filter:has(.filter__option:nth-of-type(7):checked) > .filter__group:nth-of-type(7) {
  display: none;
}

&.filter:has(.filter__option:nth-of-type(7):checked) > .filter__group:nth-of-type(8) {
  display: flex;
}

&.filter:has(.filter__option:nth-of-type(8):checked) > .filter__group:nth-of-type(8) {
  display: none;
}

&.filter:has(.filter__option:nth-of-type(8):checked) > .filter__group:nth-of-type(9) {
  display: flex;
}

}
.membership-band--white {
  /* White band between the light grey ones */
&.etch-section-style {
  background-color: var(--white);
}
}
.membership-band--tint {
  /* Light navy band */
&.etch-section-style {
  background-color: var(--primary-ultra-light);
}
}
.membership-eyebrow {
  /* Small label above a heading */
/* Type */
margin-block: 0;
font-family: var(--heading-font-family);
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--secondary);
}
.membership-head {
  /* Eyebrow and heading over a band */
/* Local tokens */
--membership-head-measure: 44rem;

/* Layout */
display: flex;
flex-direction: column;
gap: calc(var(--space-xs) * 0.5);
max-inline-size: var(--membership-head-measure);
margin-block-end: var(--space-m);

& > h2 {
  margin-block: 0;
}
}
.membership-hero {
  /* Welcome beside the subscription card */
/* Layout */
display: grid;
gap: var(--space-l);
align-items: center;

@media (width >= 61.9375rem) {
  grid-template-columns: 3fr 2fr;
}
}
.membership-hero__copy {
  /* Welcome copy */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-s);

& > h1,
& > p {
  margin-block: 0;
}
}
.membership-fees {
  /* Subscription card */
/* Local tokens */
--membership-fees-pad: var(--space-m);

/* Layout */
display: grid;
gap: var(--space-s);
padding: var(--membership-fees-pad);

/* Color */
background-color: var(--white);
border: var(--card-border-width) solid var(--card-border-color);
border-radius: var(--radius);
box-shadow: var(--box-shadow-1);

& > h2 {
  margin-block: 0;
  font-size: var(--h3);
}
}
.fee-tiers {
  /* Three subscription terms */
/* Layout */
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: calc(var(--space-xs) * 0.6);
}
.fee-tier {
  /* One subscription term; the longest term is filled */
/* Layout */
display: flex;
flex-direction: column;
align-items: center;
gap: 0.2em;
padding-block: var(--space-s);
padding-inline: 0.4rem;
text-align: center;

/* Color */
background-color: var(--bg-ultra-light);
border-radius: var(--radius);

&:last-child {
  background-color: var(--primary);
}

&:last-child > * {
  color: var(--white);
}

&:last-child > .fee-tier__save {
  background-color: color-mix(in oklch, var(--white) 18%, transparent);
}
}
.fee-tier__term {
  /* Term name */
/* Type */
margin-block: 0;
font-family: var(--heading-font-family);
font-size: calc(var(--text-xs) * 0.85);
font-weight: var(--heading-font-weight);
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--text-dark-muted);
}
.fee-tier__amount {
  /* Price */
/* Type */
margin-block: 0;
font-family: var(--heading-font-family);
font-size: var(--h3);
font-weight: var(--heading-font-weight);
line-height: 1.15;
color: var(--primary);
}
.fee-tier__save {
  /* Discount tag */
/* Layout */
min-block-size: 1.6em;
margin-block: 0;
padding-block: 0.15em;
padding-inline: 0.5em;

/* Color */
background-color: var(--secondary-ultra-light);
border-radius: var(--radius);
color: var(--secondary);

/* Type */
font-size: calc(var(--text-xs) * 0.8);
font-weight: var(--heading-font-weight);
letter-spacing: 0.05em;
text-transform: uppercase;

&:empty {
  visibility: hidden;
}
}
.membership-facts {
  /* Subscription notes */
/* Layout */
display: grid;
gap: 0.6rem;
margin: 0;
padding: 0;
padding-block-start: var(--space-s);
list-style: none;

/* Color */
border-block-start: var(--card-border-width) solid var(--card-border-color);

/* Type */
font-size: var(--text-s);

& > li {
  display: grid;
  grid-template-columns: 0.55rem 1fr;
  gap: var(--space-xs);
}

& > li::before {
  content: "";
  inline-size: 0.55rem;
  block-size: 0.55rem;
  margin-block-start: 0.55em;
  border-radius: 50%;
  background-color: var(--secondary);
}

& > li:first-child {
  font-weight: var(--heading-font-weight);
}
}
.membership-join {
  /* Who can join beside the sept names */
/* Layout */
display: grid;
gap: var(--space-l);
align-items: center;

@media (width >= 61.9375rem) {
  grid-template-columns: 1fr 1.6fr;
}
}
.membership-join__copy {
  /* Who can join copy */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-s);

& > h2,
& > p {
  margin-block: 0;
}
}
.sept-list {
  /* Sept names as tags */
/* Layout */
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
margin: 0;
padding: 0;
list-style: none;

& > li {
  padding-block: 0.3em;
  padding-inline: 0.75em;
  border: var(--card-border-width) solid var(--card-border-color);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--primary);
  font-size: var(--text-s);
  font-weight: 500;
}
}
.benefit-cards {
  /* Benefit cards */
/* Layout */
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
gap: var(--space-s);
}
.benefit-card {
  /* One benefit */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-xs);
padding: var(--space-m);

/* Color */
background-color: var(--white);
border: var(--card-border-width) solid var(--card-border-color);
border-radius: var(--radius);

& > h3 {
  margin-block: 0;
  font-size: var(--h4);
}

& > p {
  margin-block: 0;
  font-size: var(--text-s);
}
}
.benefit-card__icon {
  /* Icon tile; each modifier sets the icon */
/* Local tokens */
--benefit-icon-size: 3rem;
--benefit-icon: none;

/* Layout */
display: grid;
place-items: center;
inline-size: var(--benefit-icon-size);
block-size: var(--benefit-icon-size);

/* Color */
background-color: var(--primary);
border-radius: var(--radius);

&::before {
  content: "";
  inline-size: 50%;
  block-size: 50%;
  background-color: var(--white);
  mask: var(--benefit-icon) center / contain no-repeat;
}
}
.benefit-card__icon--newsletter {
  --benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E");
}
.benefit-card__icon--gathering {
  --benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M15 14.5c3 0 6 1.8 6 5'/%3E%3C/svg%3E");
}
.benefit-card__icon--genealogy {
  --benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3Cpath d='M12 7v4M12 11H6v5M12 11h6v5'/%3E%3C/svg%3E");
}
.benefit-card__icon--ancestor {
  --benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h11l5 5v9H4z'/%3E%3Cpath d='M15 5v5h5M8 14h8M8 17h5'/%3E%3C/svg%3E");
}
.membership-society {
  /* Society heading beside its checklist */
/* Layout */
display: grid;
gap: var(--space-l);
align-items: start;

@media (width >= 61.9375rem) {
  grid-template-columns: 20rem 1fr;
}
}
.society-list {
  /* What the Society does, as a checklist */
/* Layout */
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
gap: 0.6rem 1.5rem;
margin: 0;
padding: 0;
list-style: none;

& > li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.5rem;
  align-items: start;
  padding-block: 0.75rem;
  padding-inline: 0.9rem;
  border-radius: var(--radius);
  background-color: var(--white);
  font-size: var(--text-s);
}

& > li::before {
  content: "";
  inline-size: 1.3rem;
  block-size: 1.3rem;
  border-radius: 50%;
  background: var(--secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
}
.membership-apply {
  /* Steps beside the form */
/* Layout */
display: grid;
gap: var(--space-l);
align-items: start;

@media (width >= 61.9375rem) {
  grid-template-columns: 1fr 1.35fr;
}
}
.apply-steps {
  /* How to join */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-m);
}
.apply-step {
  /* One step */
/* Layout */
display: grid;
grid-template-columns: 2.5rem 1fr;
gap: var(--space-s);
}
.apply-step__num {
  /* Step number */
/* Layout */
display: grid;
place-items: center;
inline-size: 2.5rem;
block-size: 2.5rem;
margin-block: 0;

/* Color */
background-color: var(--primary);
border-radius: 50%;
color: var(--white);

/* Type */
font-family: var(--heading-font-family);
font-weight: var(--heading-font-weight);
}
.apply-step__body {
  /* Step copy */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-xs);

/* Type */
font-size: var(--text-s);

& > h3 {
  margin-block: 0;
  font-size: var(--h4);
}

& > p {
  margin-block: 0;
}

/* Items keep their own height; a link card here must not fill the step */
& > * {
  flex-shrink: 0;
}

& > .link-card {
  block-size: auto;
}
}
.apply-account {
  /* Bank account panel */
/* Layout */
display: flex;
flex-direction: column;
gap: 0.15rem;
padding: var(--space-s);

/* Color */
background-color: var(--primary);
border-radius: var(--radius);
color: var(--white);

& > span {
  font-size: var(--text-xs);
  font-weight: var(--heading-font-weight);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

& > strong {
  font-family: var(--heading-font-family);
  font-size: var(--h3);
  letter-spacing: 0.04em;
}
}
.apply-or {
  /* Divider before the postal option */
/* Layout */
display: flex;
align-items: center;
gap: var(--space-xs);
margin-block: 0;

/* Type */
font-family: var(--heading-font-family);
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-dark-muted);

&::after {
  content: "";
  flex: 1;
  block-size: 1px;
  background-color: var(--card-border-color);
}
}
.apply-postal {
  /* Postal address */
/* Layout */
padding: var(--space-s);

/* Color */
background-color: var(--white);
border: 1px dashed var(--primary-light);
border-radius: var(--radius);

/* Type */
line-height: 1.5;

& > p {
  margin-block: 0;
}

& > p:first-child {
  font-family: var(--heading-font-family);
  font-weight: var(--heading-font-weight);
  color: var(--primary);
}
}
.apply-form {
  /* Membership form panel */
/* Layout */
display: grid;
gap: var(--space-s);
padding: var(--space-m);

/* Color */
background-color: var(--white);
border: var(--card-border-width) solid var(--card-border-color);
border-radius: var(--radius);
box-shadow: var(--box-shadow-1);

& > button {
  justify-self: start;
}
}
.apply-form__row {
  /* Two fields side by side */
/* Layout */
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
gap: var(--space-s);
}
.apply-form__label {
  /* Field label */
/* Layout */
display: flex;
flex-direction: column;
gap: 0.3rem;

/* Type */
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
letter-spacing: 0.04em;
color: var(--primary);
}
.apply-form__hint {
  /* Help text under a label */
/* Type */
font-weight: 400;
letter-spacing: 0;
color: var(--text-dark-muted);
}
.page-title {
  /* Page heading: a small "Section · Page" line; the opening paragraph's drop cap carries the visual weight */
  /* Local tokens */
  --page-title-size: var(--text-s);
  --page-title-tracking: 0.07em;

  /* Type */
  margin-block: 0;
  font-family: var(--heading-font-family);
  font-size: var(--page-title-size);
  font-weight: var(--heading-font-weight);
  line-height: 1.4;
  letter-spacing: var(--page-title-tracking);
  text-transform: uppercase;
}
.site-card {
  /* Shared card surface: white, thin border, button radius. Matches .link-card; use it on any card */
/* Local tokens */
--site-card-bg: var(--white);
--site-card-border: var(--card-border-color);
--site-card-border-width: var(--card-border-width);
--site-card-radius: var(--radius);
--site-card-pad: var(--card-padding);

/* Layout */
padding: var(--site-card-pad);

/* Color */
background-color: var(--site-card-bg);
border: var(--site-card-border-width) solid var(--site-card-border);
border-radius: var(--site-card-radius);
}
.role-card:nth-child(even) {
  /* Role card alternate, matching the honour cards */
/* Local tokens */
--site-card-bg: var(--row-alt);
}
.membership-jump {
  /* Jump links: a floating bar that straddles the welcome band, then sticks under the header from --wide, where the four buttons fit on one row. Narrower, it wraps and stays in place so it never covers content */
/* Local tokens */
--jump-h: 4.25rem;
--jump-offset: calc(var(--dwc-scroll-margin, var(--header-height)) + var(--space-xs));

/* Layout */
position: relative;
z-index: 5;
display: flex;
align-items: center;
margin-block: calc(var(--jump-h) / -2);
padding-inline: var(--gutter);
pointer-events: none;

@media (width >= 61.9375rem) {
  position: sticky;
  inset-block-start: var(--jump-offset);
  block-size: var(--jump-h);

  /* Anchor jumps clear the header and this bar */
  html:has(&) {
    scroll-padding-block-start: calc(var(--jump-offset) + var(--jump-h) + var(--space-s));
  }
}
}
.membership-jump__inner {
  /* The pill holding the buttons: two by two below --wide, one row from --wide */
/* Local tokens */
--jump-pad: calc(var(--space-xs) * 0.6);
--jump-gap: calc(var(--space-xs) * 0.75);

/* Layout */
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--jump-gap);
inline-size: fit-content;
max-inline-size: min(100%, var(--content-width));
margin-inline: auto;
padding: var(--jump-pad);
pointer-events: auto;

/* Color */
background-color: color-mix(in oklch, var(--white) 88%, transparent);
backdrop-filter: blur(10px);
border: var(--card-border-width) solid var(--card-border-color);
border-radius: calc(var(--radius) * 2);
box-shadow: var(--box-shadow-1);

/* Long labels may wrap inside a button on narrow phones */
& > a {
  inline-size: 100%;
  justify-content: center;
  text-align: center;
}

@media (width >= 61.9375rem) {
  display: flex;

  & > a {
    flex-shrink: 0;
    inline-size: auto;
    white-space: nowrap;
  }
}
}
.clan-note {
  /* Note card in the Clan in NZ filter: under All it fills the empty cell beside Clan Contacts. Shows under All and Clan Contacts (option 7) only */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-s);
padding: var(--space-m);
border-inline-start: 0.25rem solid var(--secondary);

/* Type */
font-size: var(--text-s);

/* Color */
background-color: var(--white);
border-radius: 0 var(--radius) var(--radius) 0;

& p {
  margin-block: 0;
}

.filter:has(.filter__option:not(:nth-of-type(1)):not(:nth-of-type(7)):checked) > & {
  display: none;
}

@media (width >= 61.9375rem) {
  .filter--pair:has(.filter__option:nth-of-type(1):checked) > & {
    margin-block-start: var(--space-xl);
  }
}
}
.clan-note__eyebrow {
  /* Small label, matches the Clan Chattan caption */
/* Type */
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
letter-spacing: 0.08em;
text-transform: uppercase;

/* Color */
color: var(--primary);
}
.hero__motto {
  /* Hero motto: the English line set large, the Latin small underneath */
/* Local tokens */
--hero-motto-size: calc(var(--h4) * 1.5);
--hero-motto-color: color-mix(in oklch, var(--white) 92%, transparent);

/* Layout */
margin-block: var(--space-xs) 0;
max-inline-size: none;

/* Type */
font-family: var(--heading-font-family);
font-size: var(--hero-motto-size);
font-style: italic;
line-height: 1.25;
color: var(--hero-motto-color);
}
.hero__motto-latin {
  /* Motto in Latin */
/* Local tokens */
--hero-latin-size: var(--text-xs);
--hero-latin-tracking: 0.14em;
--hero-latin-color: color-mix(in oklch, var(--white) 80%, transparent);

/* Layout */
display: block;
margin-block-start: calc(var(--space-xs) * 0.5);

/* Type */
font-size: var(--hero-latin-size);
font-style: normal;
letter-spacing: var(--hero-latin-tracking);
text-transform: uppercase;
color: var(--hero-latin-color);
}
.hero__actions {
  /* Hero buttons */
/* Layout */
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-xs);
margin-block-start: var(--space-s);
}
.about__button {
  /* Membership button: keeps its own width in the column */
align-self: flex-start;
}
.about__septs {
  /* Septs card */
/* Layout */
display: flex;
flex-direction: column;
gap: var(--space-s);
}
.about__septs-label {
  /* Septs card label */
/* Local tokens */
--about-label-color: var(--secondary);

/* Type */
margin-block: 0;
font-family: var(--heading-font-family);
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--about-label-color);
}
.about__names {
  /* Sept names */
/* Layout */
display: flex;
flex-wrap: wrap;
gap: calc(var(--space-xs) * 0.5);
margin: 0;
padding: 0;
list-style: none;
}
.about__name {
  /* One sept name */
/* Local tokens */
--about-name-color: var(--primary);

/* Layout */
margin: 0;
padding-block: calc(var(--space-xs) * 0.5);
padding-inline: var(--space-xs);
border: var(--card-border-width) solid var(--card-border-color);
border-radius: var(--radius);

/* Type */
font-family: var(--heading-font-family);
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
color: var(--about-name-color);
}
.about__septs-note {
  /* Septs card closing line */
margin-block: 0;
font-size: var(--text-s);
}
.home-chief {
  /* Our Clan Chief: tinted band */
/* Local tokens */
--home-chief-bg: var(--primary-ultra-light);

/* Color */
background-color: var(--home-chief-bg);
}
.home-chief__layout {
  /* Chief layout: photograph beside the copy from --wide; the copy sets the row height */
/* Local tokens */
--home-chief-columns: 1fr 2fr;

/* Layout */
display: grid;
gap: var(--grid-gap);
align-items: center;

@media (width >= 61.9375rem) {
  grid-template-columns: var(--home-chief-columns);
  align-items: stretch;
}
}
.home-chief__media {
  /* Chief photograph frame: from --wide it is as tall as the copy beside it */
margin: 0;

@media (width >= 61.9375rem) {
  position: relative;
}
}
.home-chief__image {
  /* Chief photograph */
  /* Local tokens */
  --home-chief-image-max: 30rem;
  --home-chief-image-scale: 150%; /* 20% taller than the copy beside it, half above and half below */

  /* Layout */
  display: block;
  inline-size: 100%;
  max-inline-size: var(--home-chief-image-max);
  block-size: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);

/* Shadow */
box-shadow: var(--image-shadow-s);


  @media (width >= 61.9375rem) {
    position: absolute;
    inset-block-start: calc((100% - var(--home-chief-image-scale)) / 2);
    inset-inline-start: 0;
    max-inline-size: none;
    block-size: var(--home-chief-image-scale);
    max-block-size: none;
    aspect-ratio: auto;
  }
}
.home-chief__copy {
  /* Chief copy */
display: flex;
flex-direction: column;
gap: var(--content-gap);
}
.home-chief__quote {
  /* The Kiwi chief line, set large */
/* Local tokens */
--home-chief-quote-color: var(--primary);

/* Type */
margin-block: 0;
max-inline-size: none;
font-family: var(--heading-font-family);
font-size: var(--h3);
line-height: 1.3;
color: var(--home-chief-quote-color);
}
.home-chief__text {
  /* Chief text */
margin-block: 0;
}
.home-chief__button {
  /* Chief button */
align-self: flex-start;
}
.what-we-do__head {
  /* Heading beside the lede from --wide */
display: grid;
gap: var(--grid-gap);

@media (width >= 61.9375rem) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}
}
.what-we-do__cards {
  /* Four cards: one, then two from --mobile, four from --wide */
display: grid;
gap: var(--space-s);

@media (width >= 30rem) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (width >= 61.9375rem) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
.what-we-do__card {
  /* One card */
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.what-we-do__icon {
  /* Card badge */
/* Local tokens */
--what-we-do-icon-size: 3rem;
--what-we-do-icon-bg: var(--primary);
--what-we-do-icon-fg: var(--white);

/* Layout */
display: grid;
place-items: center;
align-self: flex-start;
min-inline-size: var(--what-we-do-icon-size);
min-block-size: var(--what-we-do-icon-size);
padding: calc(var(--space-xs) * 0.6);
border-radius: var(--radius);

/* Type */
font-family: var(--heading-font-family);
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
line-height: 1.15;
text-align: center;

/* Color */
background-color: var(--what-we-do-icon-bg);
color: var(--what-we-do-icon-fg);
}
.what-we-do__card-title {
  /* Card title */
margin-block: var(--space-xs) 0;
font-size: var(--h4);
}
.what-we-do__card-text {
  /* Card text */
margin-block: 0;
font-size: var(--text-s);
}
.what-we-do__link {
  /* Card link: sits at the foot of the card; colour and hover come from the ACSS link tokens */
align-self: flex-start;
margin-block-start: auto;
padding-block-start: var(--space-xs);
font-family: var(--heading-font-family);
font-size: var(--text-s);
font-weight: var(--heading-font-weight);
}
.happening {
  /* What's happening: grey band */
/* Local tokens */
--happening-bg: var(--bg-ultra-light);

/* Color */
background-color: var(--happening-bg);
}
.happening__layout {
  /* Gatherings copy beside the latest galleries from --wide */
/* Local tokens */
--happening-columns: 2fr 3fr;

/* Layout */
display: grid;
gap: var(--grid-gap);
align-items: start;

@media (width >= 61.9375rem) {
  grid-template-columns: var(--happening-columns);
}
}
.happening__copy {
  /* Gatherings copy */
display: flex;
flex-direction: column;
gap: var(--content-gap);
}
.happening__lede {
  /* Gatherings lede */
margin-block: 0;
font-size: var(--text-l);
line-height: 1.6;
}
.happening__date {
  /* May tile and line */
/* Local tokens */
--happening-date-bg: var(--primary-ultra-light);

/* Layout */
display: flex;
align-items: center;
gap: var(--space-s);
padding: var(--space-s);
border-radius: var(--radius);

/* Color */
background-color: var(--happening-date-bg);
}
.happening__month {
  /* Month tile */
/* Local tokens */
--happening-month-size: 3.5rem;
--happening-month-bg: var(--primary);
--happening-month-fg: var(--white);

/* Layout */
display: grid;
place-items: center;
flex-shrink: 0;
min-inline-size: var(--happening-month-size);
min-block-size: var(--happening-month-size);
padding-inline: var(--space-xs);
border-radius: var(--radius);

/* Type */
font-family: var(--heading-font-family);
font-weight: var(--heading-font-weight);
letter-spacing: 0.08em;

/* Color */
background-color: var(--happening-month-bg);
color: var(--happening-month-fg);
}
.happening__date-text {
  /* May line */
margin-block: 0;
font-size: var(--text-s);
}
.happening__button {
  /* Event calendar button */
align-self: flex-start;
}
.happening__galleries {
  /* Latest galleries */
display: flex;
flex-direction: column;
gap: var(--space-s);
}
.happening__label {
  /* Latest galleries label */
/* Local tokens */
--happening-label-color: var(--secondary);

/* Type */
margin-block: 0;
font-family: var(--heading-font-family);
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--happening-label-color);
}
.happening__grid {
  /* Three galleries: stacked, three across from --mobile */
display: grid;
gap: var(--space-s);
margin: 0;
padding: 0;
list-style: none;

@media (width >= 30rem) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
.happening__item {
  /* One gallery */
margin: 0;
}
.happening__gallery {
  /* Gallery link */
display: block;
text-decoration: none;
}
.happening__figure {
  /* Gallery photograph and name */
display: flex;
flex-direction: column;
gap: calc(var(--space-xs) * 0.75);
margin: 0;
}
.happening__image {
  /* Gallery photograph */
display: block;
inline-size: 100%;
block-size: auto;
aspect-ratio: 4 / 3;
object-fit: cover;
border-radius: var(--radius);

/* Shadow */
box-shadow: var(--image-shadow-s);
}
.happening__caption {
  /* Gallery name; colour and hover come from the ACSS link tokens */
font-family: var(--heading-font-family);
font-size: var(--text-s);
font-weight: var(--heading-font-weight);
}
.explore {
  /* Explore: white band */
/* Local tokens */
--explore-bg: var(--white);

/* Color */
background-color: var(--explore-bg);
}
.explore__layout {
  /* Heading row, then the tiles */
display: flex;
flex-direction: column;
gap: var(--space-m);
}
.explore__head {
  /* Heading and Clan Global button on one row when they fit */
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: flex-end;
gap: var(--space-m);
}
.explore__title {
  /* Explore title */
margin-block: 0;
}
.explore__tiles {
  /* Four tiles: two across, four from --wide */
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-s);
margin: 0;
padding: 0;
list-style: none;

@media (width >= 61.9375rem) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
.explore__item {
  /* One tile */
margin: 0;
}
.explore__tile {
  /* Tile link */
/* Layout */
position: relative;
display: block;
aspect-ratio: 3 / 4;
overflow: hidden;
border-radius: var(--radius);
text-decoration: none;

/* Shadow */
box-shadow: var(--image-shadow-s);
}
.explore__figure {
  /* Tile photograph and caption */
block-size: 100%;
margin: 0;
}
.explore__image {
  /* Tile photograph */
position: absolute;
inset: 0;
inline-size: 100%;
block-size: 100%;
max-inline-size: none;
object-fit: cover;

@media (prefers-reduced-motion: no-preference) {
  transition: scale var(--transition-duration) var(--transition-timing);

  .explore__tile:hover &,
  .explore__tile:focus-visible & {
    scale: 1.04;
  }
}
}
.explore__caption {
  /* Tile caption on a navy fade */
/* Local tokens */
--explore-fade: color-mix(in oklch, var(--primary) 92%, transparent);
--explore-fg: var(--white);

/* Layout */
position: absolute;
inset: auto 0 0;
padding: var(--space-m) var(--space-s) var(--space-s);

/* Type */
font-family: var(--heading-font-family);
font-size: var(--h4);
font-weight: var(--heading-font-weight);
line-height: 1.2;

/* Color */
background-image: linear-gradient(transparent, var(--explore-fade) 55%);
color: var(--explore-fg);
}
.explore__note {
  /* Tile sub-line */
display: block;
margin-block-start: calc(var(--space-xs) * 0.4);
font-size: var(--text-xs);
font-weight: 400;
color: color-mix(in oklch, var(--white) 85%, transparent);
}
.footer__join {
  /* Join row: copy, then the buttons; side by side when they fit */
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: var(--space-l);
padding-block: var(--section-space-m);
}
.footer__copy {
  /* Join copy */
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.footer__title {
  /* Join line, set like a heading; a paragraph so every page keeps its own heading outline */
/* Type */
margin-block: 0;
max-inline-size: none;
font-family: var(--heading-font-family);
font-size: var(--h3);
font-weight: var(--heading-font-weight);
line-height: var(--heading-line-height);
color: var(--footer-fg);
}
.footer__text {
  /* Join text */
margin-block: 0;
color: color-mix(in oklch, var(--white) 85%, transparent);
}
.footer__actions {
  /* Join buttons */
display: flex;
flex-wrap: wrap;
gap: var(--space-xs);
}
.footer__base {
  /* Crest and copyright, under a thin rule */
display: flex;
align-items: center;
gap: var(--space-s);
padding-block: var(--space-m);
border-block-start: 1px solid var(--footer-line);
}
.footer__crest {
  /* Small crest */
/* Local tokens */
--footer-crest-size: 2.5rem;

/* Layout */
display: block;
inline-size: var(--footer-crest-size);
block-size: auto;
aspect-ratio: 351 / 429;
}
.gallery-wall {
  /* Gallery wall: a full-bleed, gap-free wall of portrait thumbnails, one screen tall under the header */
  /* Local tokens */
  --gallery-wall-columns: 2;
  --gallery-wall-ratio: 3 / 4;
  --gallery-wall-tile-h: calc(100cqi / var(--gallery-wall-columns) * 4 / 3);
  --gallery-wall-min-rows: 3;
  --gallery-wall-offset: calc(var(--gallery-wall-tile-h) / 2);
  --gallery-wall-dim: 0.47;
  --gallery-wall-fade: var(--primary);
  --gallery-wall-edge: 22%;
  --gallery-wall-top: 0px;   /* distance from the top of the page, set by the wall script */

  /* Layout: one grid cell holds the photographs and the intro on top of them, so the intro can stick (ACSS makes sections a flex column with a gap). data-no-padding on the section stops the header's top padding */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  container-type: inline-size;
  /* svh backs up dvh, and the floor stops the wall collapsing if the top is measured before the page settles */
  min-block-size: calc(var(--gallery-wall-tile-h) * var(--gallery-wall-min-rows));
  block-size: max(calc(var(--gallery-wall-tile-h) * var(--gallery-wall-min-rows)), calc(100dvh - var(--gallery-wall-top)), calc(100svh - var(--gallery-wall-top)));
  max-block-size: max(calc(100dvh - var(--gallery-wall-top)), calc(100svh - var(--gallery-wall-top)), 50svh);
  overflow: clip;
  margin: 0;
  padding: 0;

  & > :not(.gallery-wall__count) {
    grid-area: 1 / 1;
  }

  /* Color: bg--ultra-dark turns the text light; the photographs cover the background */
  &.bg--ultra-dark {
    background-color: var(--primary);
  }

  /* Soft fade on every edge and corner, the centre stays clear. Clicks pass through */
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(to bottom, var(--gallery-wall-fade), transparent var(--gallery-wall-edge)),
      linear-gradient(to top, var(--gallery-wall-fade), transparent var(--gallery-wall-edge)),
      linear-gradient(to right, var(--gallery-wall-fade), transparent var(--gallery-wall-edge)),
      linear-gradient(to left, var(--gallery-wall-fade), transparent var(--gallery-wall-edge)),
      radial-gradient(ellipse 70% 70% at 50% 50%, transparent 55%, color-mix(in oklch, var(--gallery-wall-fade) 60%, transparent) 100%);
  }

  /* Columns step up with the screen; the wall script reads --gallery-wall-columns */
  @media (width >= 30rem) {
    --gallery-wall-columns: 3;
  }
  @media (width >= 48rem) {
    --gallery-wall-columns: 4;
    --gallery-wall-edge: 18%;
  }
  @media (width >= 61.9375rem) {
    --gallery-wall-columns: 5;
  }
  @media (width >= 80rem) {
    --gallery-wall-columns: 6;
  }
  @media (width >= 120rem) {
    --gallery-wall-columns: 8;
  }

  /* Touch screens have no hover, so the wall is only lightly dimmed there */
  @media (hover: none) {
    --gallery-wall-dim: 0.72;
  }


}
.gallery-wall__intro {
  /* Heading and lede, top-left, on the fade */
  /* Local tokens */
  --gallery-wall-intro-measure: 36rem;

  /* Layout: stays under the sticky header once the page scrolls, keeping its top padding as the gap */
  position: sticky;
  inset-block-start: var(--dwc-nest-header-height, 0px);
  z-index: 2;
  align-self: start;
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  inline-size: 100%;
  padding: var(--space-l) var(--gutter) var(--space-xxl);
  pointer-events: none;   /* thumbnails under the fade stay clickable */

  /* Color: phones fade down from the top edge */
  background: linear-gradient(to bottom, var(--gallery-wall-fade) 0 68%, color-mix(in oklch, var(--gallery-wall-fade) 80%, transparent) 82%, transparent);

  & > * {
    max-inline-size: var(--gallery-wall-intro-measure);
    margin: 0;
    pointer-events: auto;
  }

  /* From tablet the fade comes in from the top-left corner, same gutter as the photo count */
  @media (width >= 48rem) {
    inline-size: min(100%, calc(var(--gutter) + 46rem));
    block-size: min(100%, 40rem);
    padding: var(--gutter) var(--space-xxl) 0 var(--gutter);
    background: radial-gradient(ellipse 100% 100% at 0 0, var(--gallery-wall-fade) 0 42%, color-mix(in oklch, var(--gallery-wall-fade) 85%, transparent) 58%, color-mix(in oklch, var(--gallery-wall-fade) 40%, transparent) 76%, transparent 92%);
  }
}
.gallery-wall__lede {
  /* Lede under the page title */
  font-size: var(--text-l);
}
.gallery-wall__hint {
  /* Small "select a photograph" line */
  padding-block-start: var(--space-xs);
  font-size: var(--text-s);
  opacity: 0.75;
}
.gallery-wall__count {
  /* Photo count, bottom-right, on the faded corner */
  /* Layout */
  position: absolute;
  inset-block-end: var(--gutter);   /* one gutter from the corner, both ways */
  inset-inline-end: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  inline-size: max-content;
  max-inline-size: none;   /* ACSS caps paragraph width */
  margin: 0;
  pointer-events: none;

  /* Type */
  font-family: var(--heading-font-family);
  font-weight: var(--heading-font-weight);
}
.gallery-wall__count-number {
  /* The number */
  font-size: clamp(3rem, 2rem + 4vw, 6rem);
  line-height: 1;
  text-box: trim-both cap alphabetic;   /* the box ends at the baseline, so the gutter is measured to the letters */
}
.gallery-wall__count-label {
  /* "photographs" */
  font-size: var(--text-s);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-box: trim-both cap alphabetic;   /* sits on the number's baseline with no space below */
}
.slider-gallery-wall-wrapper {
  /* Gallery wall wrapper: no background or spacing of its own */
  background: transparent;
  margin: 0;
  padding: 0;
}
.slider-gallery-wall {
  /* Gallery wall slider: a static grid of thumbnails, and the lightbox they open */
/* Lightbox */
--lightbox-bg: color-mix(in oklch, var(--primary-ultra-dark) 94%, transparent);

/* Splide hides a track it has not mounted; the static grid is never mounted */
visibility: visible;

& .splide__track {
  overflow: visible;
  block-size: auto;
}

/* The list must be the grid. Plugin static-layout never sets data-static-layout on the live page, so --grid-columns alone never lays the tiles out */
& .splide__list {
  --grid-columns: var(--gallery-wall-columns);
  --grid-gap: 0px;

  display: grid;
  grid-template-columns: repeat(var(--gallery-wall-columns), minmax(0, 1fr));
  gap: 0;
  block-size: auto;
  inline-size: 100%;
  margin-block-end: calc(var(--gallery-wall-offset) * -1);   /* trim the half tile left under the raised columns */
  list-style: none;
}

/* Each tile is a positioning box. Splide's display:flex letterboxed the photograph in navy; absolute fill covers the whole 3/4 cell */
& .splide__list > * {
  position: relative;
  display: block;
  min-inline-size: 0;
  inline-size: auto;
  block-size: var(--gallery-wall-tile-h);
  aspect-ratio: auto;
  border-radius: 0;
  overflow: clip;
  cursor: pointer;
}

& .splide__list > [data-raised] {
  translate: 0 -50%;   /* half of this tile */
}

& .splide__slide--clone,
& .splide__list > :not(:has(img)) {
  display: none;
}

& .splide__slide > div,
& .slider-gallery-wall__slide,
& .slide-inner-wrap {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100% !important;   /* the plugin sets auto */
}

& .splide__list > * img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

& .splide__list > :focus-visible {
  outline: 0.1875rem solid var(--white);
  outline-offset: -0.1875rem;
}
}
.slider-gallery-wall__slide {
  /* Slide content box: fills its tile (the plugin otherwise sizes it to the landscape photograph) */
position: absolute;
inset: 0;
display: block;
inline-size: 100%;
block-size: 100%;
overflow: clip;
}
.slider-gallery-wall__image {
  /* Thumbnail image: dimmed until hovered or focused, then brightens and zooms in slightly */
/* Local tokens */
--gallery-wall-image-transition: 0.3s ease-in-out;
--gallery-wall-zoom: 1.06;

display: block;
position: absolute;
inset: 0;
inline-size: 100%;
block-size: 100%;
object-fit: cover;
border-radius: 0;
filter: brightness(var(--gallery-wall-dim));
transition:
  filter var(--gallery-wall-image-transition),
  scale var(--gallery-wall-image-transition);

.splide__list > :is(:hover, :focus-visible, :active) & {
  filter: brightness(1);
  scale: var(--gallery-wall-zoom);
}

@media (prefers-reduced-motion: reduce) {
  --gallery-wall-zoom: 1;
}
}
.event-list {
  /* One event per row so large screens can run date, copy, and photos in a line */
/* Local tokens */
--event-list-gap: var(--space-s);

/* Layout */
display: grid;
gap: var(--event-list-gap);
}
.event-card {
  /* Compact event: wrap on small, one row from --desk */
/* Local tokens */
--event-card-pad: var(--space-s);
--event-card-gap: var(--space-s);
--event-card-bg: var(--white);
--event-card-border: var(--card-border-color);
--event-card-border-width: var(--card-border-width);
--event-card-radius: var(--radius);
--event-card-photo: 13.75rem;
--event-card-media-gap: var(--space-xs);

/* Layout */
container-type: inline-size;
container-name: event-card;
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: var(--event-card-gap);
align-items: start;
padding: var(--event-card-pad);

/* Color */
background-color: var(--event-card-bg);
border: var(--event-card-border-width) solid var(--event-card-border);
border-radius: var(--event-card-radius);

&:has(.event-card__image) {
  @media (width >= 80rem) {
    grid-template-columns: auto minmax(0, 1fr) var(--event-card-photo);
  }
}

&:has(.event-card__media > :nth-child(2)) {
  @media (width >= 80rem) {
    grid-template-columns: auto minmax(0, 1fr) calc(var(--event-card-photo) * 2 + var(--event-card-media-gap));
  }
}
}
.event-card__tile {
  /* Month and year tile */
/* Layout */
display: grid;
place-items: center;
align-content: center;
flex-shrink: 0;
inline-size: 3.5em;
min-block-size: 3.5em;
aspect-ratio: 1;
padding-block: calc(var(--space-xs) / 3);
padding-inline: calc(var(--space-xs) / 4);

/* Color */
background-color: var(--primary);
color: var(--white);
border-radius: var(--radius);
}
.event-card__body {
  /* Title, date, location, file */
/* Layout */
display: flex;
flex-direction: column;
gap: calc(var(--space-xs) / 2);
min-inline-size: 0;
}
.event-card__title {
  /* Event name */
/* Local tokens */
--event-card-title-size: var(--h4);

/* Type */
font-size: var(--event-card-title-size);
}
.event-card__summary {
  /* Short description */
/* Type */
font-size: var(--text-s);
}
.event-card__file {
  /* Programme, website or article */
/* Local tokens */
--event-card-file-mark-gap: 0.2em;

/* Layout */
display: inline-flex;
align-items: center;
gap: 0;
align-self: start;

/* Type */
font-family: var(--heading-font-family);
font-size: var(--text-s);
font-weight: var(--heading-font-weight);

html &:is(a[target=_blank])::after {
  --external-link-mark-size: 1em;
  --external-link-mark-glyph: 0.5em;
  margin-inline-start: var(--event-card-file-mark-gap);
}

&:is(:hover, :focus-visible)::after {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  rotate: -45deg;
}
}
.event-card__media {
  /* Stacked below ~440px; a filling row after that; beside the copy from --desk */
/* Local tokens */
--event-card-media-gap: var(--space-xs);
--event-card-thumb-min: 8.75rem;

/* Layout */
display: none;
margin: 0;
overflow: hidden;
border-radius: var(--radius);
grid-column: 1 / -1;
inline-size: 100%;
gap: var(--event-card-media-gap);

&:has(.event-card__image) {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: start;

  @media (width >= 27.5rem) {
    flex-direction: row;
    align-items: start;
  }

  @container event-card (width >= 27.5rem) {
    flex-direction: row;
    align-items: start;
  }

  @media (width >= 80rem) {
    grid-column: auto;
    align-self: start;
    flex-direction: row;
    align-items: start;
  }
}

& > * {
  flex: 0 0 auto;
  inline-size: 100%;
  min-inline-size: 0;
}

@media (width >= 27.5rem) {
  & > * {
    flex: 1 1 var(--event-card-thumb-min);
    inline-size: auto;
    max-inline-size: none;
  }
}

@container event-card (width >= 27.5rem) {
  & > * {
    flex: 1 1 var(--event-card-thumb-min);
    inline-size: auto;
    max-inline-size: none;
  }
}

@media (width >= 80rem) {
  grid-column: auto;
  align-self: start;
  inline-size: 100%;

  & > * {
    flex: 1 1 var(--event-card-photo);
    inline-size: auto;
    max-inline-size: none;
  }
}
}
.event-card__image {
  /* Cropped photo */
/* Layout */
display: block;
inline-size: 100%;
block-size: auto;
aspect-ratio: 4 / 3;
object-fit: cover;
object-position: center;
}
.event-card__pills {
  /* Type, when and where as labelled chips */
/* Local tokens */
--event-card-pills-gap: calc(var(--space-xs) / 2);

/* Layout */
display: flex;
flex-wrap: wrap;
gap: var(--event-card-pills-gap);
}
.event-card__pill {
  /* One labelled fact */
/* Local tokens */
--event-card-pill-bg: var(--neutral-ultra-light);
--event-card-pill-fg: var(--text-dark);
--event-card-pill-pad-block: calc(var(--space-xs) / 3);
--event-card-pill-pad-inline: var(--space-xs);
--event-card-pill-gap: calc(var(--space-xs) / 2);
--event-card-pill-radius: var(--radius);

/* Layout */
display: inline-flex;
flex-wrap: nowrap;
align-items: baseline;
gap: var(--event-card-pill-gap);
padding-block: var(--event-card-pill-pad-block);
padding-inline: var(--event-card-pill-pad-inline);
max-inline-size: 100%;

/* Color */
background-color: var(--event-card-pill-bg);
color: var(--event-card-pill-fg);
border-radius: var(--event-card-pill-radius);

/* Type */
font-size: var(--text-xs);
line-height: 1.4;

}
.event-card__pill-label {
  /* Name of the fact, so When and Where are obvious */
/* Type */
font-family: var(--heading-font-family);
font-weight: var(--heading-font-weight);
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-dark-muted);
}
.event-card__tile-month {
  /* Month from the start date */
/* Type */
font-family: var(--heading-font-family);
font-size: var(--text-s);
font-weight: var(--heading-font-weight);
letter-spacing: 0.1em;
line-height: 1;
text-transform: uppercase;
}
.event-card__tile-year {
  /* Year from the start date */
/* Type */
font-family: var(--heading-font-family);
font-size: var(--text-xs);
font-weight: var(--heading-font-weight);
letter-spacing: 0.04em;
line-height: 1.2;
}
.event-article {
  /* Event article — one gathering written up in full */
/* Local tokens */
--event-article-gap: var(--space-m);

/* Layout */
align-items: center;
}
.event-article__wrap {
  /* Event article column — ACSS width-60, not the full content width */
/* Local tokens */
--event-article-max: var(--width-60);
--event-article-gap: var(--space-m);

/* Layout */
display: grid;
gap: var(--event-article-gap);
max-inline-size: var(--event-article-max);
}
.event-article__crumbs {
  /* Event article breadcrumb back to Events */
/* Local tokens */
--event-article-crumbs-size: var(--text-xs);
--event-article-crumbs-gap: 0.4em;
--event-article-crumbs-color: var(--primary);
--event-article-crumbs-hover: var(--secondary);
--event-article-crumbs-muted: var(--text-dark-muted);

/* Layout */
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--event-article-crumbs-gap);

/* Type */
font-family: var(--heading-font-family);
font-weight: var(--heading-font-weight);
font-size: var(--event-article-crumbs-size);
letter-spacing: 0.08em;
text-transform: uppercase;

& a {
  color: var(--event-article-crumbs-color);
  text-decoration: none;
}

& a:hover {
  color: var(--event-article-crumbs-hover);
  text-decoration: underline;
}

& [aria-hidden] {
  color: var(--event-article-crumbs-muted);
}
}
.event-article__head {
  /* Event article date tile beside the pills */
/* Local tokens */
--event-article-head-gap: var(--space-s);

/* Layout */
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: var(--event-article-head-gap);
align-items: start;
}
.event-article__copy {
  /* Event article body — reading measure, drop cap on the first paragraph */
/* Local tokens */
--event-article-copy-gap: var(--space-s);
--event-article-copy-max: var(--text-max-width);

/* Layout */
display: grid;
gap: var(--event-article-copy-gap);
max-inline-size: var(--event-article-copy-max);

& > p:first-child {
  initial-letter: var(--drop-cap-lines, 3);

  @media (width < 48rem) {
    initial-letter: 2;
  }
}
}
.event-article__media {
  /* Event article photographs */
/* Local tokens */
--event-article-media-gap: var(--space-xs);

/* Layout */
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: var(--event-article-media-gap);
margin: 0;

@media (width >= 48rem) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
.event-article__image {
  /* Event article photograph */
/* Local tokens */
--event-article-image-radius: var(--radius);

/* Layout */
display: block;
inline-size: 100%;
aspect-ratio: 4 / 3;
object-fit: cover;
border-radius: var(--event-article-image-radius);
}
.event-article__back {
  /* Event article return link */
/* Local tokens */
--event-article-back-align: start;

/* Layout */
justify-self: var(--event-article-back-align);
}
.event-article__title {
  /* Event article title — H1 section · H2 event, same small line as other pages */
/* Local tokens */
--h1: var(--text-s);
--h2: var(--text-s);
--h1-color: var(--heading-color);
--h2-color: var(--heading-color);
--event-article-title-gap: 0.4em;

/* Layout */
display: flex;
flex-wrap: wrap;
align-items: baseline;
column-gap: var(--event-article-title-gap);

& h1,
& h2 {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

& a {
  color: inherit;
  text-decoration: none;
}

& a:hover {
  color: var(--secondary);
  text-decoration: underline;
}
}
html a[target=_blank]:where(:not(:has(img, > figure, > picture, > svg)))::after {
  /* ACSS external-link mark — circle the same size as the text */
/* Local tokens */
--external-link-mark-size: 1em;
--external-link-mark-glyph: calc(var(--external-link-mark-size) * 0.5);
--external-link-mark-gap: 0.2em;
--external-link-mark-bg: transparent;
--external-link-mark-fg: currentColor;
--external-link-mark-border-color: currentColor;
--external-link-mark-turn: 0deg;

/* Layout */
display: inline-grid;
place-items: center;
inline-size: var(--external-link-mark-size);
block-size: var(--external-link-mark-size);
margin-inline-start: var(--external-link-mark-gap);
flex-shrink: 0;
vertical-align: middle;
overflow: visible;
box-sizing: border-box;
transform-origin: center;

/* Color */
background-color: var(--external-link-mark-bg);
color: var(--external-link-mark-fg);
border: var(--card-border-width) solid var(--external-link-mark-border-color);
border-radius: 50%;

/* Type */
content: "→" / "Link to external site";
font-size: var(--external-link-mark-glyph);
font-weight: var(--heading-font-weight);
line-height: 1;
text-align: center;
translate: none;
rotate: var(--external-link-mark-turn);

/* Motion */
transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease, border-color var(--transition-duration) ease, rotate var(--transition-duration) ease;

@media (prefers-reduced-motion: reduce) {
  transition: none;
}
}
html a[target=_blank]:where(:not(:has(img, > figure, > picture, > svg))):is(:hover, :focus-visible)::after {
  /* Light arrow on primary fill, turned out the top-right */
--external-link-mark-turn: -45deg;
background-color: var(--primary);
color: var(--white);
border-color: var(--primary);
rotate: var(--external-link-mark-turn);
}
.event-card__actions {
  /* Website, file and article as separate actions */
/* Local tokens */
--event-card-actions-gap: var(--space-m);

/* Layout */
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--event-card-actions-gap);
margin-block-start: var(--space-xs);
}
.event-card__action {
  /* One card action: icon plus label */
/* Local tokens */
--event-card-action-gap: 0.4em;
--event-card-action-color: var(--primary);
--event-card-action-hover: var(--secondary);
--event-card-action-size: var(--text-s);

/* Layout */
display: inline-flex;
align-items: center;
gap: var(--event-card-action-gap);

/* Type */
font-family: var(--heading-font-family);
font-size: var(--event-card-action-size);
font-weight: var(--heading-font-weight);
line-height: 1.2;
color: var(--event-card-action-color);
text-decoration: none;

&:hover,
&:focus-visible {
  color: var(--event-card-action-hover);
  text-decoration: underline;
}

html &:is(a[target=_blank])::after {
  content: none;
  display: none;
  margin: 0;
  inline-size: 0;
  block-size: 0;
  border: 0;
  background: none;
}
}
.event-card__action-icon {
  /* Action pictogram — file from Asset Manager, painted with the action colour */
/* Local tokens */
--event-card-action-icon-size: 1.15em;
--empty-element-size: 0;
--event-card-action-mask: none;

/* Layout */
display: block;
flex-shrink: 0;
inline-size: var(--event-card-action-icon-size);
block-size: var(--event-card-action-icon-size);
object-fit: contain;

/* Color — mask the SVG file so it follows currentColor on hover */
background-color: currentColor;
mask-image: var(--event-card-action-mask);
mask-size: contain;
mask-repeat: no-repeat;
mask-position: center;
-webkit-mask-image: var(--event-card-action-mask);
-webkit-mask-size: contain;
-webkit-mask-repeat: no-repeat;
-webkit-mask-position: center;
}
.event-card__action-label {
  /* Action words */
/* Type */
line-height: 1.2;
}
.event-card__action-icon--link {
  /* Link action file */
/* Local tokens */
--event-card-action-mask: url("../assets/event-link.svg");
}
.event-card__action-icon--document {
  /* Document action file */
/* Local tokens */
--event-card-action-mask: url("../assets/event-document.svg");
}
.event-card__action-icon--page {
  /* Page action file */
/* Local tokens */
--event-card-action-mask: url("../assets/event-page.svg");
}
.slider-gallery-wall__repeat {
  /* Filler copy that still opens the original photograph in Slider Pro */
cursor: pointer;
}
.form-trap {
  position: absolute;
inline-size: 1px;
block-size: 1px;
padding: 0;
margin: calc(0.0625rem * -1);
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
border: 0;
--empty-element-size: 0;
}
.form-status {
  margin: 0;
color: var(--primary);

&:empty { display: none; }

form[data-state='error'] & { color: var(--danger); }
}