* {
  box-sizing: border-box;
}

body {
  color: var(--color-foreground);
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100svh;
  font-variation-settings: 'slnt' 0;
}

:root {
  --hover-transition-duration: 0.25s;
  --hover-transition-timing: ease-out;
  --submenu-animation-speed: 360ms;
}

html {
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--color-foreground-rgb) / var(--opacity-40)) var(--color-background);
  scroll-behavior: smooth;
}

@media (min-width: 990px) {
  html:has(.page-wrapper),
  html:has(.page-wrapper) body {
    height: 100dvh;
    overflow: hidden;
  }
}

html[scroll-lock],
html[scroll-lock] .page-wrapper {
  overflow: hidden;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  transition: margin-right var(--animation-speed) var(--animation-timing-fade-out);
}

@media (min-width: 990px) {
  .page-wrapper {
    height: 100dvh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--color-foreground-rgb) / var(--opacity-40)) var(--color-background);
  }

  .page-wrapper--drawer-open shopify-account::part(dialog) {
    translate: calc(-1 * var(--theme-drawer-width, var(--sidebar-width)));
  }
}

.page-wrapper--drawer-open {
  margin-right: var(--theme-drawer-width, var(--sidebar-width));
  transition-timing-function: var(--animation-timing-fade-in);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
  height: auto;
}

input,
textarea,
select {
  font: inherit;
  border-radius: var(--style-border-radius-inputs);
}

/** override ios and firefox defaults */
select {
  background-color: var(--color-background);
  color: currentcolor;
}

.product-card,
.collection-card,
.predictive-search-results__card--product,
.predictive-search-results__card {
  position: relative;
  transition: transform var(--hover-transition-duration) var(--hover-transition-timing),
    box-shadow var(--hover-transition-duration) var(--hover-transition-timing);
  z-index: var(--layer-flat);
}

.product-card__link {
  position: absolute;
  inset: 0;
}

.product-card__content {
  position: relative;
  cursor: pointer;
}

dialog {
  /* the ::backdrop inherits from the originating element, custom properties must be set on the dialog element */
  --backdrop-color-rgb: var(--color-shadow-rgb);

  background-color: var(--color-background);
  color: var(--color-foreground);
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

.wrap-text {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

p:empty {
  display: none;
}

:first-child:is(p, h1, h2, h3, h4, h5, h6),
:first-child:empty + :where(p, h1, h2, h3, h4, h5, h6) {
  margin-block-start: 0;
}

/* Remove bottom margin from last text item, or previous to last if the last is empty */
:last-child:is(p, h1, h2, h3, h4, h5, h6),
:where(p, h1, h2, h3, h4, h5, h6):nth-child(2):has(+ :last-child:empty) {
  margin-block-end: 0;
}

/* view transitions */

/*
 * The cross-document (MPA) opt-in `@view-transition { navigation: auto }` is declared per-layout
 * (layout/theme.liquid and layout/password.liquid), because this stylesheet is shared by both layouts
 * and a static stylesheet can't read theme settings.
 * It is gated on the same `settings.page_transition_enabled or settings.transition_to_main_product` condition as the
 * render blocker, so the opt-in and its opt-out switch can never disagree. The rules below only
 * take effect once an `@view-transition` opt-in is active, so they are inert without it.
 */
@media (prefers-reduced-motion: no-preference) {
  /* Keep page interactive while view transitions are running */
  :root {
    view-transition-name: none;
  }

  /* Have the root transition during page navigation */
  html:active-view-transition-type(page-navigation),
  html:active-view-transition-type(product-image-transition) {
    view-transition-name: root-custom;
  }

  ::view-transition {
    pointer-events: none;
  }

  html:active-view-transition-type(page-navigation) main[data-page-transition-enabled='true'] {
    view-transition-name: main-content;
  }

  html:active-view-transition-type(page-navigation) main[data-product-transition='true'][data-template*='product'] {
    view-transition-name: none;
  }

  ::view-transition-old(main-content) {
    animation: var(--view-transition-old-main-content);
  }

  ::view-transition-new(main-content) {
    animation: var(--view-transition-new-main-content);
  }

  html:active-view-transition-type(product-image-transition) {
    [data-view-transition-type='product-image-transition'] {
      view-transition-name: product-image-transition;
    }

    [data-view-transition-type='product-details'] {
      view-transition-name: product-details;
    }
  }

  ::view-transition-group(product-image-transition) {
    z-index: 1;
  }

  ::view-transition-group(product-image-transition),
  ::view-transition-group(product-details) {
    animation-duration: var(--animation-speed);
    animation-timing-function: var(--animation-easing);
  }

  ::view-transition-old(product-image-transition),
  ::view-transition-new(product-image-transition) {
    block-size: 100%;
    overflow: hidden;
    object-fit: cover;
    animation-duration: 0.25s;
    animation-timing-function: var(--animation-easing);
  }

  ::view-transition-new(product-details) {
    animation: var(--view-transition-new-main-content);
  }
}

/* Focus */
*:focus-visible {
  outline: var(--focus-outline-width) solid currentcolor;
  outline-offset: var(--focus-outline-offset);
}

@supports not selector(:focus-visible) {
  *:focus {
    outline: var(--focus-outline-width) solid currentcolor;
    outline-offset: var(--focus-outline-offset);
  }
}

.focus-inset {
  outline-offset: calc(var(--focus-outline-width) * -1);
}

/* Layout */
.content-for-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-for-layout > .shopify-section:last-child {
  flex-grow: 1;
}

/* Set up page widths & margins. Gutters grow to the device safe-area insets (viewport-fit=cover)
   so section backgrounds bleed edge-to-edge while content stays clear of the notch; taking the
   larger of both insets keeps the centered page grid symmetric. */
.page-width-wide,
.page-width-normal,
.page-width-narrow,
.page-width-content {
  --page-margin: max(16px, var(--safe-area-inset-left, 0px), var(--safe-area-inset-right, 0px));
}

@media screen and (min-width: 750px) {
  .page-width-wide,
  .page-width-normal,
  .page-width-narrow,
  .page-width-content {
    --page-margin: max(40px, var(--safe-area-inset-left, 0px), var(--safe-area-inset-right, 0px));
  }
}

.page-width-wide {
  /* NOTE: This results in a page width of 2400px because of how we set up margins with grid */
  --page-content-width: var(--wide-page-width);
  --page-width: calc(var(--page-content-width) + (var(--page-margin) * 2));
}

.page-width-normal {
  --page-content-width: var(--normal-page-width);
  --page-width: calc(var(--page-content-width) + (var(--page-margin) * 2));
}

.page-width-narrow {
  /* NOTE: This results in a page width of 1400px because of how we set up margins with grid */
  --page-content-width: var(--narrow-page-width);
  --page-width: calc(var(--page-content-width) + (var(--page-margin) * 2));
}

.page-width-content {
  --page-content-width: var(--normal-content-width);
  --page-width: calc(var(--page-content-width) + (var(--page-margin) * 2));
}

/* Section width full vs. page
   The reason we use a grid to contain the section is to allow for the section to have a
   full-width background image even if the section content is constrained by the page width. Do not try
   to rewrite this to max-width: --page-width; margin: 0 auto;, it doesn't work. */
.section {
  --full-page-grid-central-column-width: min(
    var(--page-width) - var(--page-margin) * 2,
    calc(100% - var(--page-margin) * 2)
  );
  --full-page-grid-margin: minmax(var(--page-margin), 1fr);
  --full-page-grid-with-margins: var(--full-page-grid-margin) var(--full-page-grid-central-column-width)
    var(--full-page-grid-margin);

  /* Utility variable gives the grid's first column width. Provides an offset width for components like carousels */
  --util-page-margin-offset: max(
    var(--page-margin),
    calc((100% - min(var(--page-content-width), 100% - var(--page-margin) * 2)) / 2)
  );

  /* Offset for full-width sections to account for the page margin,
  used for Marquee — note that --util-page-margin-offset doesn't work here */
  --full-page-margin-inline-offset: calc(((100vw - var(--full-page-grid-central-column-width)) / 2) * -1);

  width: 100%;

  /* This is required to make background images work, which are <img> rendered absolutely */
  position: relative;

  /* Set up the grid */
  display: grid;
  grid-template-columns: var(--full-page-grid-with-margins);
  min-height: var(--section-min-height, 'auto');
}

/* Place all direct children in the center column by default */
.section > * {
  grid-column: 2;
}

/* Make the actual section background transparent, and instead apply it to a separate sibling element to enable stacking with hero shadow  */
.shopify-section:not(.header-section) :is(.section, .cart-summary) {
  background: transparent;
}

.shopify-section:not(.header-section):has(.section) {
  position: relative;
}

.shopify-section:not(.header-section) .section-background {
  content: '';
  position: absolute;
  inset: 0;
  z-index: var(--layer-section-background);
  background-color: var(--color-background);
}

/* For page-width sections, all content goes in the center column */
.section--page-width > * {
  grid-column: 2;
}

/* For full-width sections, content spans all columns */
.section--full-width > * {
  grid-column: 1 / -1;
}

@media screen and (max-width: 749px) {
  .section--mobile-full-width > * {
    grid-column: 1 / -1;
  }
}

/* For full-width sections with margin, content still spans full width but with space on the sides */
.section--full-width.section--full-width-margin > * {
  grid-column: 1 / -1;

  @media screen and (min-width: 750px) {
    padding-left: var(--page-margin);
    padding-right: var(--page-margin);
  }
}

/* Some section content break out to full width of the page */
.section > .force-full-width {
  grid-column: 1 / -1;
}

.section--height-small {
  --section-min-height: var(--section-height-small);
}

.section--height-medium {
  --section-min-height: var(--section-height-medium);
}

.section--height-large {
  --section-min-height: var(--section-height-large);
}

.section--height-full-screen {
  --section-min-height: 100svh;
}

.section-content-wrapper.section-content-wrapper {
  min-height: calc(var(--section-min-height, 'auto') - var(--section-height-offset, 0px));
  position: relative;
  width: 100%;
  height: 100%;
}

/* Utility */

.hidden {
  /* stylelint-disable-next-line declaration-no-important */
  display: none !important;
}

@media screen and (max-width: 749px) {
  .hidden--mobile,
  .mobile\:hidden {
    /* stylelint-disable-next-line declaration-no-important */
    display: none !important;
  }
}

@media screen and (min-width: 750px) {
  .hidden--desktop,
  .desktop\:hidden {
    /* stylelint-disable-next-line declaration-no-important */
    display: none !important;
  }
}

.hide-when-empty:empty {
  /* stylelint-disable-next-line declaration-no-important */
  display: none !important;
}

.visually-hidden:not(:focus, :active) {
  /* stylelint-disable-next-line declaration-no-important */
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  /* stylelint-disable-next-line declaration-no-important */
  word-wrap: normal !important;
}

.contents {
  display: contents;
}

.flex {
  display: flex;
  gap: var(--gap-md);
}

.grid {
  --centered-column-number: 12;
  --full-width-column-number: 14;
  --centered: column-1 / span var(--centered-column-number);
  --full-width: column-0 / span var(--full-width-column-number);

  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 750px) {
  .grid {
    display: grid;
    gap: 0;
    grid-template-columns: var(--margin-4xl) repeat(var(--centered-column-number), minmax(0, 1fr)) var(--margin-4xl);
    grid-template-areas: 'column-0 column-1 column-2 column-3 column-4 column-5 column-6 column-7 column-8 column-9 column-10 column-11 column-12 column-13';
  }
}

@media screen and (min-width: 1400px) {
  .grid {
    grid-template-columns:
      1fr repeat(
        var(--centered-column-number),
        minmax(0, calc((var(--page-width) - var(--page-margin) * 2) / var(--centered-column-number)))
      )
      1fr;
  }
}

.flip-x {
  scale: -1 1;
}

.list-unstyled {
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-left {
  --text-align: left;

  text-align: left;
}

.text-center {
  --text-align: center;

  text-align: center;
}

.text-right {
  --text-align: right;

  text-align: right;
}

.text-inherit {
  color: inherit;
}

.user-select-text {
  user-select: text;
}

.justify-left {
  justify-content: left;
}

.justify-center {
  justify-content: center;
}

.justify-right {
  justify-content: right;
}

.svg-wrapper {
  color: currentcolor;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: var(--icon-size-sm);
  height: var(--icon-size-sm);
  pointer-events: none;
}

.svg-wrapper--smaller {
  width: var(--icon-size-2xs);
  height: var(--icon-size-2xs);
}

.svg-wrapper--small {
  width: var(--icon-size-xs);
  height: var(--icon-size-xs);
}

.svg-wrapper > svg {
  width: var(--icon-size-sm);
  height: var(--icon-size-sm);
}

.relative {
  position: relative;
}

/* Icons */
.icon-success,
.icon-error {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  flex-shrink: 0;
}

.icon-success {
  color: var(--color-success);
}

.icon-error {
  fill: var(--color-error);
}

.icon-default {
  fill: currentColor;
}

[data-placeholder='true'] * {
  cursor: default;
}

/* Base text and heading styles */
body,
.paragraph:not(.button),
.paragraph > *,
.text-block.paragraph :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-paragraph--family);
  font-style: var(--font-paragraph--style);
  font-weight: var(--font-paragraph--weight);
  font-size: var(--font-paragraph--size);
  line-height: var(--font-paragraph--line-height);
  text-transform: var(--font-paragraph--case);
  -webkit-font-smoothing: antialiased;
  color: var(--color, var(--color-foreground));
}

/* Ensure inputs with type presets maintain minimum 16px on mobile to prevent iOS zoom */
@media screen and (max-width: 1200px) {
  input.paragraph.paragraph,
  input.paragraph.paragraph:not([type]),
  textarea.paragraph.paragraph,
  select.paragraph.paragraph {
    font-size: max(1rem, var(--font-paragraph--size));
  }
}

.paragraph > small {
  font-size: smaller;
}

/* Typography presets */

h1,
.h1.h1,
.text-block.h1 > *,
.text-block.h1 :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-h1--family);
  font-style: var(--font-h1--style);
  font-weight: var(--font-h1--weight);
  font-size: var(--font-h1--size);
  line-height: var(--font-h1--line-height);
  letter-spacing: var(--font-h1--letter-spacing);
  text-transform: var(--font-h1--case);
  color: var(--color);
}

@media screen and (max-width: 1200px) {
  input.h1.h1,
  textarea.h1.h1,
  select.h1.h1 {
    font-size: max(1rem, var(--font-h1--size));
  }
}

h2,
.h2.h2,
.text-block.h2 > *,
.text-block.h2 :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-h2--family);
  font-style: var(--font-h2--style);
  font-weight: var(--font-h2--weight);
  font-size: var(--font-h2--size);
  line-height: var(--font-h2--line-height);
  letter-spacing: var(--font-h2--letter-spacing);
  text-transform: var(--font-h2--case);
  color: var(--color);
}

@media screen and (max-width: 1200px) {
  input.h2.h2,
  textarea.h2.h2,
  select.h2.h2 {
    font-size: max(1rem, var(--font-h2--size));
  }
}

h3,
.h3,
.h3.h3,
.text-block.h3 > *,
.text-block.h3 :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-h3--family);
  font-style: var(--font-h3--style);
  font-weight: var(--font-h3--weight);
  font-size: var(--font-h3--size);
  line-height: var(--font-h3--line-height);
  letter-spacing: var(--font-h3--letter-spacing);
  text-transform: var(--font-h3--case);
  color: var(--color);
}

@media screen and (max-width: 1200px) {
  input.h3,
  textarea.h3,
  select.h3 {
    font-size: max(1rem, var(--font-h3--size));
  }
}

h4,
.h4.h4,
.text-block.h4 > *,
.text-block.h4 :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-h4--family);
  font-style: var(--font-h4--style);
  font-weight: var(--font-h4--weight);
  font-size: var(--font-h4--size);
  line-height: var(--font-h4--line-height);
  letter-spacing: var(--font-h4--letter-spacing);
  text-transform: var(--font-h4--case);
  color: var(--color);
}

@media screen and (max-width: 1200px) {
  input.h4.h4,
  textarea.h4.h4,
  select.h4.h4 {
    font-size: max(1rem, var(--font-h4--size));
  }
}

h5,
.h5.h5,
.text-block.h5 > *,
.text-block.h5 :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-h5--family);
  font-style: var(--font-h5--style);
  font-weight: var(--font-h5--weight);
  font-size: var(--font-h5--size);
  line-height: var(--font-h5--line-height);
  letter-spacing: var(--font-h5--letter-spacing);
  text-transform: var(--font-h5--case);
  color: var(--color);
}

@media screen and (max-width: 1200px) {
  input.h5.h5,
  textarea.h5.h5,
  select.h5.h5 {
    font-size: max(1rem, var(--font-h5--size));
  }
}

h6,
.h6.h6,
.text-block.h6 > *,
.text-block.h6 :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-h6--family);
  font-style: var(--font-h6--style);
  font-weight: var(--font-h6--weight);
  font-size: var(--font-h6--size);
  line-height: var(--font-h6--line-height);
  letter-spacing: var(--font-h6--letter-spacing);
  text-transform: var(--font-h6--case);
  color: var(--color);
}

@media screen and (max-width: 1200px) {
  input.h6.h6,
  textarea.h6.h6,
  select.h6.h6 {
    font-size: max(1rem, var(--font-h6--size));
  }
}

:first-child:is(.h1, .h2, .h3, .h4, .h5, .h6) {
  margin-block-start: 0;
}

:last-child:is(.h1, .h2, .h3, .h4, .h5, .h6) {
  margin-block-end: 0;
}

/* Links */
a {
  color: currentcolor;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.125em;
  transition: text-decoration-color var(--animation-speed) var(--animation-easing),
    color var(--animation-speed) var(--animation-easing);
}

:is(h1, h2, h3, h4, h5, h6, p) > a:hover {
  color: rgb(var(--color-rgb, var(--color-foreground-rgb)) / 0.7);
}

/* Add underline to text using our paragraph styles only. */
p:not(.h1, .h2, .h3, .h4, .h5, .h6) a:where(:not(.button, .button-secondary)),
.rte :is(p, ul, ol, table):not(.h1, .h2, .h3, .h4, .h5, .h6) a:where(:not(.button, .button-secondary)) {
  text-decoration-color: currentcolor;

  &:hover {
    text-decoration-color: currentcolor;
    color: rgb(var(--color-rgb, var(--color-foreground-rgb)) / 0.7);
  }
}

.container-background-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/* iOS fix: hide the default arrow on the summary */
summary::-webkit-details-marker {
  display: none;
}

/* Buttons */
.button,
.button-secondary,
.button-custom,
button.shopify-payment-button__button--unbranded {
  --text-align: center;

  display: grid;
  align-content: center;
  text-decoration: none;
  text-align: var(--text-align);
  color: var(--button-color);
  appearance: none;
  background-color: var(--button-background-color);
  border: none;
  font-family: var(--font-paragraph--family);
  font-style: var(--font-paragraph--style);
  font-weight: var(--font-paragraph--weight);
  font-size: var(--font-paragraph--size);
  line-height: var(--font-paragraph--line-height);
  margin-block: 0;
  transition: color var(--animation-speed) var(--animation-easing),
    box-shadow var(--animation-speed) var(--animation-easing),
    background-color var(--animation-speed) var(--animation-easing);
  cursor: pointer;
  width: fit-content;
  box-shadow: inset 0 0 0 var(--button-border-width) var(--button-border-color);
  padding-block: var(--button-padding-block);
  padding-inline: var(--button-padding-inline);
}

.button {
  font-family: var(--button-font-family-primary);
  text-transform: var(--button-text-case-primary);
  border-radius: var(--style-border-radius-buttons-primary);
}

.button:not(.button-secondary, .button-unstyled) {
  outline-color: var(--button-focus-outline-color, var(--button-background-color));
}

.button-secondary {
  font-family: var(--button-font-family-secondary);
  text-transform: var(--button-text-case-secondary);
  border-radius: var(--style-border-radius-buttons-secondary);
}

button.shopify-payment-button__button--unbranded {
  font-family: var(--button-font-family-primary);
  text-transform: var(--button-text-case-primary);
}

textarea,
input:not([type='checkbox'], [type='radio']) {
  background-color: var(--color-input-background);
  border-color: var(--color-input-border);
}

textarea::placeholder,
input::placeholder {
  color: rgb(var(--color-input-text-rgb) / var(--opacity-muted-text));
}

textarea:not(:placeholder-shown)::placeholder,
input:not(:placeholder-shown)::placeholder {
  opacity: 0;
}

/* The declaration above is messing with buttons that have an attribute of hidden as it overwrites the display value */
.button[hidden] {
  display: none;
}

.button[aria-disabled='true'],
.button-secondary[aria-disabled='true'],
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button,
button.shopify-payment-button__button--unbranded {
  --button-color: var(--color-primary-button-text);
  --button-background-color: var(--color-primary-button-background);
  --button-border-color: var(--color-primary-button-border);
  --button-border-width: var(--style-border-width-primary);
  --button-focus-outline-color: var(--color-primary-button-focus-outline);
}

.button:hover,
button.shopify-payment-button__button--unbranded:hover:not([disabled]) {
  --button-color: var(--color-primary-button-hover-text);
  --button-background-color: var(--color-primary-button-hover-background);
  --button-border-color: var(--color-primary-button-hover-border);
}

.button-secondary {
  --button-color: var(--color-secondary-button-text);
  --button-background-color: var(--color-secondary-button-background);
  --button-border-color: var(--color-secondary-button-border);
  --button-border-width: var(--style-border-width-secondary);
}

.button-secondary:hover {
  --button-color: var(--color-secondary-button-hover-text);
  --button-background-color: var(--color-secondary-button-hover-background);
  --button-border-color: var(--color-secondary-button-hover-border);
}

.button-custom {
  --button-color: var(--color-primary-button-text);
  --button-background-color: var(--color-primary-button-background);
  --button-border-color: var(--color-primary-button-border);
  --button-border-width: var(--style-border-width-secondary);
  --button-focus-outline-color: var(--color-primary-button-focus-outline);

  font-family: var(--button-font-family-primary);
  text-transform: var(--button-text-case-primary);
  border-radius: var(--style-border-radius-buttons-primary);
  outline-color: var(--button-focus-outline-color, var(--button-background-color));
}

.button-custom:hover {
  --button-color: var(--color-primary-button-hover-text);
  --button-background-color: var(--color-primary-button-hover-background);
  --button-border-color: var(--color-primary-button-hover-border);
}

/* Needed to override the default Shopify styles */
button.shopify-payment-button__button--unbranded:hover:not([disabled]) {
  background-color: var(--button-background-color);
}

.button-unstyled {
  display: block;
  padding: 0;
  background-color: inherit;
  color: var(--color-foreground);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  font-family: var(--font-paragraph--family);
  font-style: var(--font-paragraph--style);
  font-size: var(--font-paragraph--size);
}

.button-unstyled:hover {
  background-color: inherit;
}

/* Default hover dim for link-style buttons, scoped via :where() so component-specific
   hover rules (.facets__clear-all-link, .header-actions__action, etc.) still win. */
:where(.button-unstyled):hover {
  --hover-color-rgb: var(--color-foreground-rgb);

  color: rgb(var(--hover-color-rgb) / var(--opacity-70));
}

.button-unstyled--with-icon {
  color: var(--color-foreground);
  display: flex;
  gap: var(--gap-2xs);
  align-items: center;
}

.button-unstyled--transparent {
  background-color: transparent;
  box-shadow: none;
}

/* Caret icon transition */
.icon-caret svg {
  transition: transform var(--animation-speed) var(--animation-easing);
}

summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding-block: var(--padding-sm);
}

summary:hover {
  color: rgb(var(--color-foreground-rgb) / var(--opacity-80));
}

/* Animate the UI elements in only after the view transition is complete */
.close-button {
  position: fixed;

  /* Keep the fixed close button clear of the status bar and right-side notch (viewport-fit=cover) */
  top: max(var(--margin-lg), var(--safe-area-inset-top, 0px));
  right: max(var(--margin-lg), var(--safe-area-inset-right, 0px));
  width: var(--minimum-touch-target);
  height: var(--minimum-touch-target);
  z-index: var(--layer-flat);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;

  /* For the outline radius */
  border-radius: 50%;
}

/* This triggers iOS < 16.4. The outline bug is not recognized as a lack of @supports */

@supports not (background-color: rgb(from red 150 g b / alpha)) {
  /**
    There is a bug in safari < 16.4 that causes the outline to not follow the elements border radius. This is a workaround.
    Using element selector to increase specificity.
  **/

  .close-button:focus-visible {
    outline: none;
    overflow: visible;
  }

  .close-button:focus-visible::after {
    content: '';
    position: absolute;
    inset: calc(-1 * var(--focus-outline-offset));
    border: var(--focus-outline-width) solid currentColor;
    border-radius: 50%;
    display: inherit;
  }
}

.dialog--closed .close-button {
  animation: elementSlideOutBottom calc(var(--animation-speed) * 0.5) var(--animation-easing) forwards;
}

.close-button:hover {
  background-color: transparent;
  opacity: 0.8;
}

.close-button svg {
  width: var(--icon-size-xs);
  height: var(--icon-size-xs);
}

/* Product media */
.product-media {
  display: flex;
  flex: 1;
}

.sticky-content {
  position: sticky;
  top: var(--sticky-header-offset, 0);
  z-index: var(--layer-flat);
}

@media screen and (min-width: 750px) {
  .sticky-content--desktop,
  .sticky-content--desktop.full-height--desktop > .group-block {
    position: sticky;
    top: var(--sticky-header-offset, 0);
    z-index: var(--layer-flat);
  }
}

/* Spacing style */
.spacing-style {
  --spacing-scale: var(--spacing-scale-md);

  @media screen and (min-width: 990px) {
    --spacing-scale: var(--spacing-scale-default);
  }

  /* Must disable this, when you use these with calc and another unit type, things break — see logo.liquid */
  /* stylelint-disable length-zero-no-unit */
  --padding-block: 0px;
  --padding-block-start: var(--padding-block, 0px);
  --padding-block-end: var(--padding-block, 0px);
  --padding-inline: 0px;
  --padding-inline-start: var(--padding-inline, 0px);
  --padding-inline-end: var(--padding-inline, 0px);
  --margin-block: 0px;
  --margin-block-start: var(--margin-block, 0px);
  --margin-block-end: var(--margin-block, 0px);
  --margin-inline: 0px;
  --margin-inline-start: var(--margin-inline, 0px);
  --margin-inline-end: var(--margin-inline, 0px);

  padding-block: calc(var(--padding-block-start) + var(--section-top-offset, 0px)) var(--padding-block-end);
  padding-inline: var(--padding-inline-start) var(--padding-inline-end);
  margin-block: var(--margin-block-start) var(--margin-block-end);
  margin-inline: var(--margin-inline-start) var(--margin-inline-end);
}

/* Size style */
.size-style {
  width: var(--size-style-width-mobile, var(--size-style-width));
  height: var(--size-style-height-mobile, var(--size-style-height));

  @media screen and (min-width: 750px) {
    width: var(--size-style-width);
    height: var(--size-style-height);
  }
}

/* Custom Typography style */
.custom-typography,
.custom-typography > * {
  font-family: var(--font-family);
  font-weight: var(--font-weight);
  text-transform: var(--text-transform);
  text-wrap: var(--text-wrap);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
}

.custom-typography {
  h1 {
    line-height: var(--line-height--display, var(--line-height));
  }

  h2,
  h3,
  h4 {
    line-height: var(--line-height--heading, var(--line-height));
  }

  p {
    line-height: var(--line-height--body, var(--line-height));
  }
}

.custom-font-size,
.custom-font-size > * {
  font-size: var(--font-size);
}

.custom-font-weight,
.custom-font-weight > * {
  font-weight: var(--font-weight);
}

/* Border override style */
.border-style {
  border-width: var(--border-width);
  border-style: var(--border-style);
  border-color: var(--border-color);
  border-radius: var(--border-radius);
}

/* Gap scaling style */
.gap-style,
.layout-panel-flex {
  --gap-scale: var(--spacing-scale-md);

  @media screen and (min-width: 990px) {
    --gap-scale: var(--spacing-scale-default);
  }
}

.layout-panel-flex {
  display: flex;
  gap: var(--gap);
  height: 100%;
}

.shopify-block:has(> [shopify-block-empty]) {
  display: none;
}

.layout-panel-flex--row {
  flex-flow: row var(--flex-wrap);
  justify-content: var(--horizontal-alignment);
  align-items: var(--vertical-alignment);
}

.layout-panel-flex--column {
  flex-flow: column var(--flex-wrap);
  align-items: var(--horizontal-alignment);
  justify-content: var(--vertical-alignment);
}

@media screen and (max-width: 749px) {
  .mobile-column {
    flex-flow: column nowrap;
    align-items: var(--horizontal-alignment);
    justify-content: var(--vertical-alignment-mobile);
  }

  .layout-panel-flex--row:not(.mobile-column) {
    flex-wrap: var(--flex-wrap-mobile);
    height: auto;

    > .menu {
      flex: 1 1 min-content;
    }

    > .text-block {
      flex: 1 1 var(--max-width--display-tight);
    }

    > .image-block {
      flex: 1 1 var(--size-style-width-mobile-min);
    }

    > .button {
      flex: 0 0 fit-content;
    }

    > .group-block--height-fill {
      height: calc(var(--section-min-height, auto) - var(--section-height-offset, 0px));
    }
  }
}

@media screen and (min-width: 750px) {
  .layout-panel-flex {
    flex-direction: var(--flex-direction);
  }
}

/* Form fields */
.field {
  position: relative;
  width: 100%;
  display: flex;
  transition: box-shadow var(--animation-speed) ease;
}

.field__input {
  flex-grow: 1;
  text-align: left;
  border-radius: var(--style-border-radius-inputs);
  transition: box-shadow var(--animation-speed) ease, background-color var(--animation-speed) ease;
  padding: var(--input-padding);
  box-shadow: var(--input-box-shadow);
  background-color: var(--color-input-background);
  color: var(--color-input-text);
  border: none;
  outline: none;
  font-size: var(--font-paragraph--size);

  &:autofill {
    background-color: var(--color-input-background);
    color: var(--color-input-text);
  }
}

.field__input:focus {
  box-shadow: var(--input-box-shadow-focus);
}

.field__input--button-radius {
  border-radius: var(--style-border-radius-buttons-primary);
}

.field__input--button-padding {
  padding-inline: var(--padding-3xl);
}

.field__label {
  color: rgb(var(--color-input-text-rgb) / var(--opacity-80));
  font-size: var(--font-paragraph--size);
  left: var(--input-padding-x);
  top: 50%;
  transform: translateY(-50%);
  margin-bottom: 0;
  pointer-events: none;
  position: absolute;
  transition: top var(--animation-speed) ease, font-size var(--animation-speed) ease;
}

/* RTE styles */
.rte,
.shopify-policy__title {
  :is(h1, h2, h3, h4, h5, h6) {
    margin-block: clamp(1.5rem, 1em * 3.3, 2.5rem) var(--font-heading--spacing);
  }

  :first-child:is(p, h1, h2, h3, h4, h5, h6),
  :first-child:empty + :is(p, h1, h2, h3, h4, h5, h6) {
    margin-block-start: 0;
  }

  ul,
  ol {
    margin-block-start: 0;
    padding-inline-start: 1.5em;
  }

  /* Only apply margin-block-end to the higher level list, not nested lists */
  :is(ul, ol):not(:is(ul, ol) :is(ul, ol)) {
    margin-block-end: 1em;
  }

  blockquote {
    margin-inline: 1.5em 2.3em;
    margin-block: 3.8em;
    padding-inline-start: 0.8em;
    border-inline-start: 1.5px solid rgb(var(--color-foreground-rgb) / var(--opacity-25));
    font-style: italic;
    font-weight: 500;
  }

  .rte-table-wrapper {
    overflow-x: auto;
  }

  table {
    /* stylelint-disable-next-line declaration-no-important */
    width: 100% !important;
    border-collapse: collapse;
  }

  tr:not(:has(td)),
  thead {
    background-color: rgb(var(--color-foreground-rgb) / var(--opacity-5));
    font-weight: bold;
    text-transform: uppercase;
  }

  tr:has(td) {
    border-bottom: 1px solid rgb(var(--color-foreground-rgb) / var(--opacity-10));
  }

  th,
  td {
    text-align: start;
    padding-inline: var(--padding-md);
    padding-block: var(--padding-sm);
  }
}

.shopify-policy__container {
  padding-block: var(--padding-xl);
}

/* Radio buttons and checkboxes - shared base styles */
:where(input[type='radio']),
:where(input[type='checkbox']) {
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  aspect-ratio: 1;
  margin: 0;
  margin-inline-end: var(--padding-3xs);
  padding: 0;
  border: var(--checkbox-border);
  appearance: none;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
}

/* Radio buttons */
input[type='radio'] {
  border-radius: var(--style-border-radius-50);
  background: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

:where(input[type='radio']):checked {
  border-color: var(--color-foreground);
  background: var(--color-background);
}

:where(input[type='radio']):checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--checkbox-size) / 2);
  height: calc(var(--checkbox-size) / 2);
  background: var(--color-foreground);
  border-radius: var(--style-border-radius-50);
  transition: background 0.2s ease;
}

:where(input[type='radio']):disabled {
  border-color: var(--input-disabled-border-color);
  background-color: var(--input-disabled-background-color);
  cursor: not-allowed;
}

:where(input[type='radio']):disabled:checked::after {
  background: var(--input-disabled-background-color);
}

:where(input[type='radio']):not(:disabled):hover {
  border-color: rgb(var(--color-foreground-rgb) / var(--opacity-40-60));
  background-color: rgb(var(--color-foreground-rgb) / var(--opacity-5));
}

:where(input[type='radio']):not(:disabled):hover:checked {
  border-color: var(--color-foreground);
  background-color: var(--color-background);
}

:where(input[type='radio']):not(:disabled):hover:checked::after {
  background: rgb(var(--color-foreground-rgb) / var(--opacity-85));
}

/* Checkboxes */
:where(input[type='checkbox']) {
  border-radius: var(--checkbox-border-radius);
  background-color: var(--color-background);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

:where(input[type='checkbox']):checked {
  background-color: var(--color-foreground);
  border-color: var(--color-foreground);
}

:where(input[type='checkbox']):checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  background-color: var(--color-background);
  mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.75439 10.7485L7.68601 14.5888C7.79288 14.7288 7.84632 14.7988 7.91174 14.8242C7.96907 14.8466 8.03262 14.8469 8.09022 14.8253C8.15596 14.8007 8.21026 14.7314 8.31886 14.5927L15.2475 5.74658' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

:where(input[type='checkbox']):not(:disabled):hover {
  border-color: rgb(var(--color-foreground-rgb) / var(--opacity-40-60));
  background-color: rgb(var(--color-foreground-rgb) / var(--opacity-5));
}

:where(input[type='checkbox']):not(:disabled):hover:checked {
  border-color: var(--color-foreground);
  background-color: rgb(var(--color-foreground-rgb) / var(--opacity-85));
}

:where(input[type='checkbox']):disabled {
  background-color: var(--input-disabled-background-color);
  border-color: var(--input-disabled-border-color);
  cursor: not-allowed;
}

:where(input[type='checkbox']):disabled:checked::after {
  background-color: var(--input-disabled-text-color);
}

/* Shared styles for radio buttons and checkboxes */
:where(input[type='radio']) + label,
:where(input[type='checkbox']) + label {
  display: inline;
  vertical-align: middle;
  cursor: pointer;
}

:where(input[type='radio']):disabled + label,
:where(input[type='checkbox']):disabled + label {
  color: var(--input-disabled-text-color);
  cursor: not-allowed;
}

/* Animation declarations - to be kept at the bottom of the file for ease of find */
@keyframes grow {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes move-and-fade {
  from {
    transform: translate(var(--start-x, 0), var(--start-y, 0));
    opacity: var(--start-opacity, 0);
  }

  to {
    transform: translate(var(--end-x, 0), var(--end-y, 0));
    opacity: var(--end-opacity, 1);
  }
}

@keyframes slideInTopViewTransition {
  from {
    transform: translateY(100px);
  }
}

@keyframes elementSlideInTop {
  from {
    margin-top: var(--padding-sm);
    opacity: 0;
  }

  to {
    margin-top: 0;
    opacity: 1;
  }
}

@keyframes elementSlideOutTop {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(var(--padding-sm));
    opacity: 0;
  }
}

@keyframes elementSlideOutBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(calc(-1 * var(--padding-sm)));
    opacity: 0;
  }
}

@keyframes thumbnailsSlideInTop {
  from {
    transform: translateY(calc(-50% + var(--margin-lg)));
    opacity: 0;
  }

  to {
    transform: translateY(-50%);
    opacity: 1;
  }
}

@keyframes thumbnailsSlideOutTop {
  from {
    transform: translateY(-50%);
    opacity: 1;
  }

  to {
    transform: translateY(calc(-50% + var(--margin-lg)));
    opacity: 0;
  }
}

@keyframes thumbnailsSlideInBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes thumbnailsSlideOutBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes search-element-slide-in-bottom {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes search-element-slide-out-bottom {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

@keyframes backdropFilter {
  from {
    backdrop-filter: brightness(1);
  }

  to {
    backdrop-filter: brightness(0.75);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideInTop {
  from {
    transform: translateY(var(--padding-sm));
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalSlideOutTop {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(var(--padding-sm));
    opacity: 0;
  }
}

/* Slideshow Arrow Hover Animation - must stay in base.css for proper CSS cascade */

slideshow-container[animate-arrows]:hover > slideshow-arrows .slideshow-control,
slideshow-component:focus-within > slideshow-container[animate-arrows] > slideshow-arrows .slideshow-control {
  animation: arrowsSlideIn var(--animation-speed) var(--animation-easing) forwards;
}

@keyframes arrowsSlideIn {
  from {
    transform: translate(var(--padding-sm), 0);
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.section-resource-list,
.section-carousel {
  row-gap: var(--gap);
}

.section-resource-list__content {
  display: flex;
  flex-direction: column;
  align-items: var(--horizontal-alignment);
  gap: var(--gap);
  width: 100%;
}

.section-resource-list__header:is(:empty, :has(.group-block-content:empty)),
.section-resource-list__content:empty {
  display: none;
}

:where(.section-resource-list.section--full-width) product-card[data-product-transition] > .group-block,
:where(.section-carousel.section--full-width) product-card[data-product-transition] > .group-block {
  @media screen and (max-width: 749px) {
    padding-inline: max(var(--padding-xs), var(--padding-inline-start))
      max(var(--padding-xs), var(--padding-inline-end));
  }
}

/* Base styles */
.group-block,
.group-block-content {
  position: relative;
}

.group-block:has(> video-background-component) {
  overflow: hidden;
}

.group-block-content {
  height: 100%;
  width: 100%;
}

/* Container styles */
.section-content-wrapper.section-content-wrapper:where(.layout-panel-flex) .group-block--fill {
  flex: 1;
}

/* Flex behavior for width variants */
.layout-panel-flex--row > .group-block--width-fit {
  flex: 0;
}

.layout-panel-flex--row > .group-block--width-fill {
  flex: 1;
}

.layout-panel-flex--row > .group-block--width-custom {
  flex-basis: var(--size-style-width);
}

/* Dimension utilities - Height */
.group-block--height-fit {
  height: auto;
}

.group-block--height-custom,
.group-block--height-fill {
  height: var(--size-style-height);
}

/* Flex behavior for height variants */
.layout-panel-flex--column > .group-block--height-fit {
  flex: 0 1 auto;
}

.layout-panel-flex--column > .group-block--height-fill {
  flex: 1;
}

.layout-panel-flex--column > .group-block--height-custom {
  flex-basis: var(--size-style-height);
}

/* Global scrollbar styles */

/* Webkit browsers */
::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(var(--color-foreground-rgb) / var(--opacity-40));
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
  transition: background-color 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(var(--color-foreground-rgb) / var(--opacity-60));
}

/* Prevent iOS zoom on input focus by ensuring minimum 16px font size on mobile */
@media screen and (max-width: 1200px) {
  input,
  textarea,
  select,
  /* Higher specificity to override type preset classes like .paragraph, .h1, etc. */
  .paragraph.paragraph input,
  .paragraph.paragraph textarea,
  .paragraph.paragraph select,
  .h1.h1 input,
  .h1.h1 textarea,
  .h1.h1 select,
  .h2.h2 input,
  .h2.h2 textarea,
  .h2.h2 select,
  .h3.h3 input,
  .h3.h3 textarea,
  .h3.h3 select,
  .h4.h4 input,
  .h4.h4 textarea,
  .h4.h4 select,
  .h5.h5 input,
  .h5.h5 textarea,
  .h5.h5 select,
  .h6.h6 input,
  .h6.h6 textarea,
  .h6.h6 select {
    font-size: max(1rem, 100%);
  }
}

/* When the header is transparent, and when there is no header-section below it, offset the first main-section with
 * the height of the header
 */
main > .shopify-section:first-child .section:not(.disable-section-top-offset) {
  &.spacing-style,
  .spacing-style {
    --section-top-offset: calc(var(--header-height) * var(--transparent-header-offset-boolean));

    /* Any nested sections should not be offset */
    .spacing-style {
      --section-top-offset: 0px;
    }
  }

  /* Make sticky content immediately stick to the top of the page */
  .sticky-content {
    margin-top: calc(var(--header-height) * var(--transparent-header-offset-boolean) * -1);
  }
}


/* POIESIS FOUNDATION — PHASE 1 / BATCH 1
 * Editorial templates only. Preserve native commerce, header and saved block settings.
 * Remove this delimited addition to restore the previous visual foundation.
 *
 * Boundary (Oct 2026): the generic role rules below stop at .pa-atmos.
 * Components built on the Poiesis Atelier layer (assets/poiesis-atelier.css)
 * set their own type roles. :where() keeps every selector's specificity unchanged,
 * so pages without Atelier components render exactly as before.
 */
:root {
  --poiesis-ink: #171717;
  --poiesis-muted: #6f6b65;
  --poiesis-ivory: #f5f3ee;
  --poiesis-rule: #d9d5ce;
  --poiesis-font-heading: var(--font-heading--family, "New York", "Iowan Old Style", Baskerville, serif);
  --poiesis-font-body: var(--font-body--family, "Libre Caslon Text", serif);
  --poiesis-font-accent: var(--font-accent--family, "Red Hat Text", sans-serif);
  --poiesis-title: 52px;
  --poiesis-heading: 42px;
  --poiesis-subheading: 26px;
  --poiesis-body: 17px;
  --poiesis-statement: 28px;
  --poiesis-space-sm: 24px;
  --poiesis-space-md: 40px;
  --poiesis-space-lg: 64px;
  --poiesis-space-xl: 96px;
}

#MainContent:where(
  [data-template="index"],
  [data-template="page.about-poiesis"],
  [data-template="page.inami"],
  [data-template="page.architecture"],
  [data-template="page.custom-commission"],
  [data-template="page.the-master"],
  [data-template="page.hakuun-bio-template"],
  [data-template="page.exhibitions"],
  [data-template="page.contact"]
) {
  /* Shared role rules outrank independent generated block declarations. */
  & :is(h1, h2, h3, h4):where(:not(.pa-atmos *)) {
    font-family: var(--poiesis-font-heading);
    font-weight: 400;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  & h1:where(:not(.pa-atmos *)) {
    font-size: var(--poiesis-title);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  & h2:where(:not(.pa-atmos *)) {
    font-size: var(--poiesis-heading);
    line-height: 1.16;
    letter-spacing: -0.02em;
  }

  & :is(h3, h4):where(:not(.pa-atmos *)),
  & h2:is([class*="__verb"], [class*="__subheading"]):where(:not(.pa-atmos *)) {
    font-size: var(--poiesis-subheading);
    line-height: 1.25;
  }

  & p:where(:not(.pa-atmos *)),
  & [class*="__body"]:where(:not(.pa-atmos *)) {
    font-family: var(--poiesis-font-body);
    font-size: var(--poiesis-body);
    line-height: 1.65;
  }

  & :is(p, div, span)[class*="__eyebrow"]:where(:not(.pa-atmos *)),
  & :is(p, div, span)[class*="__label"]:where(:not(.pa-atmos *)),
  & :is(p, div, span, label)[class*="__direct-label"]:where(:not(.pa-atmos *)),
  & :is(p, div, span, label)[class*="__field-label"]:where(:not(.pa-atmos *)),
  & [class*="__list-title"]:where(:not(.pa-atmos *)),
  & [class*="__section-label"]:where(:not(.pa-atmos *)),
  & [class*="__point-title"]:where(:not(.pa-atmos *)) {
    color: var(--poiesis-muted);
    font-family: var(--poiesis-font-accent);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  & :is(p, div, span, figcaption)[class*="__caption"]:not([class*="caption-row"]):where(:not(.pa-atmos *)),
  & :is(p, div, span)[class*="__meta"]:where(:not(.pa-atmos *)),
  & :is(p, div, span)[class*="__number"]:where(:not(.pa-atmos *)),
  & :is(p, div, span)[class*="__counter"]:where(:not(.pa-atmos *)),
  & :is(p, div, span)[class*="__role"]:where(:not(.pa-atmos *)),
  & :is(p, div, span)[class*="__venue"]:where(:not(.pa-atmos *)),
  & :is(p, div, span)[class*="__location"]:where(:not(.pa-atmos *)),
  & p[class*="__empty"]:where(:not(.pa-atmos *)),
  & [class*="__work-title"]:where(:not(.pa-atmos *)) {
    font-family: var(--poiesis-font-accent);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.04em;
  }

  & a[class*="__cta"]:where(:not(.pa-atmos *)),
  & a:is([class*="__link"], [class*="__intro-link"], [class*="__profile-link"], [class*="__view-link"], [class*="__all-link"]):not([class*="image-link"], [class*="title-link"]):where(:not(.pa-atmos *)),
  & button[class*="__submit"]:where(:not(.pa-atmos *)) {
    font-family: var(--poiesis-font-accent);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-underline-offset: 0.35em;
    white-space: normal;
  }

  & a:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 5px;
  }

  /* Existing large editorial statements retain their separate hierarchy. */
  & p[class*="__statement"],
  & .ai-poiesis-about-avznznytxmhvqnmt4saigenblock7073894tcx83h__mission p,
  & .ai-inami-intro-abue2ze9cwumyc3rkuaigenblock72250787dxkn8__intro p {
    font-family: var(--poiesis-font-heading);
    font-size: var(--poiesis-statement);
    line-height: 1.35;
  }

  & .ai-poiesis-about-avznznytxmhvqnmt4saigenblock7073894tcx83h__definition p {
    font-size: 26px;
    line-height: 1.35;
  }

  & .ai-living-tradition-aeutyzfhbdjzuymvpnaigenblock6fcc684tjfwmg__final {
    font-family: var(--poiesis-font-heading);
    font-size: 23px;
    line-height: 1.4;
  }

  & .ai-applications-adkxrnnh1zjnhr3vzsaigenblockae329d9r4pcx8__closing {
    font-family: var(--poiesis-font-heading);
    font-size: var(--poiesis-statement);
    line-height: 1.35;
  }

  & .ai-about-opening-asnlwy1fprenvztvhmaigenblock6a5a9d5bnjmde__heading,
  & .ai-masters-amm9wze1urfv5vthknaigenblock4a8fbf4krhmn8__heading {
    font-size: var(--poiesis-title);
    line-height: 1.12;
  }

  & .ai-masters-amm9wze1urfv5vthknaigenblock4a8fbf4krhmn8__closing h2 {
    font-size: var(--poiesis-statement);
    line-height: 1.35;
  }

  & .ai-masters__name-aq290vmq2qnzsl0votaigenblockccf0e4fypkbxm {
    font-family: var(--poiesis-font-heading);
  }

  & .ai-contact-ayvlpcuzysgq0njmydaigenblock197f297vppr4d__heading {
    font-size: 48px;
  }

  /* Photographic hero and homepage wordmark are deliberate display exceptions. */
  &[data-template="index"] .hero h1 {
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
  }

  & .ai-editorial-mission__statement-aww5ybdq3dedrt1zvtaigenblockb6d733cfjpprm {
    font-size: clamp(38px, 4.1vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  & .ai-editorial-mission__subline-aww5ybdq3dedrt1zvtaigenblockb6d733cfjpprm {
    font-family: var(--poiesis-font-heading);
    font-size: 23px;
    line-height: 1.35;
  }

  & .ai-editorial-mission-aww5ybdq3dedrt1zvtaigenblockb6d733cfjpprm {
    background: var(--poiesis-ivory);
  }

  & .ai-editorial-hero-ar09mymrvylkxdklckaigenblock0e0c2dcw78kbw__heading {
    color: var(--poiesis-ivory);
    font-size: 68px;
    line-height: 1.04;
  }

  & .ai-editorial-hero-ar09mymrvylkxdklckaigenblock0e0c2dcw78kbw__location {
    color: var(--poiesis-ivory);
    letter-spacing: 0.14em;
  }

  & .ai-editorial-hero-ar09mymrvylkxdklckaigenblock0e0c2dcw78kbw__supporting {
    color: var(--poiesis-ivory);
    font-size: 22px;
    line-height: 1.4;
  }
}

/* Rebalance existing Architecture compositions; stack before prose becomes narrow. */
#MainContent .poiesis-architecture-arvltenjidtfmr09udaigenblock4c4c2fcvjtcbl h1 {
  font-size: clamp(36px, 4.1vw, 52px);
}

#MainContent .poiesis-architecture-arvltenjidtfmr09udaigenblock4c4c2fcvjtcbl__hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
}

#MainContent .poiesis-architecture-arvltenjidtfmr09udaigenblock4c4c2fcvjtcbl__tradition,
#MainContent .ai-applications-adkxrnnh1zjnhr3vzsaigenblockae329d9r4pcx8__intro,
#MainContent .ai-collaboration-azfhmtzbnelvddnfxraigenblockc0a16a68arx7y__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 80px);
}

/* Hakuun: remove the oversized internal gutters without altering content order. */
#MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  min-height: 0;
}

#MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__copy {
  min-width: 0;
  padding: 64px clamp(24px, 3vw, 48px);
}

#MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar h1 {
  font-size: 56px;
}

#MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__head {
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
}

/* The existing intro padding is72px/48px. One52px offset clears the76px/64px header. */
#MainContent[data-template="page.exhibitions"] {
  padding-block-start: 52px;
}

/* Use the owning full-width grid tracks instead of100vw, which includes scrollbar width. */
#MainContent :is(
  #shopify-section-template--30836470153480__1789941976838929cd,
  #shopify-section-template--30836470153480__17912683188d21081c,
  #shopify-section-template--30836470448392__17899602515f28dc06,
  #shopify-section-template--30836470219016__1789953007a5ac57c5
) .custom-section-content {
  grid-column: 1 / -1;
}

#MainContent .ai-inami-slideshow-augtuvvo3bfm0cfhudaigenblock3ac8676kqhexh,
#MainContent .ai-visual-interlude-adk1kzzd2rm85mmlisaigenblock3de7ea0qrg3my,
#MainContent .ai-inami-interlude-aedv3n0zwyucrv2y4caigenblock298fd21kfdnqa,
#MainContent .ai-living-tradition-aeutyzfhbdjzuymvpnaigenblock6fcc684tjfwmg {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

#MainContent .ai-inami-slideshow-augtuvvo3bfm0cfhudaigenblock3ac8676kqhexh__slides,
#MainContent .ai-inami-slideshow-augtuvvo3bfm0cfhudaigenblock3ac8676kqhexh__slide,
#MainContent .ai-inami-slideshow-augtuvvo3bfm0cfhudaigenblock3ac8676kqhexh__placeholder,
#MainContent .ai-visual-interlude-adk1kzzd2rm85mmlisaigenblock3de7ea0qrg3my__media {
  width: 100%;
  max-width: 100%;
}

@media screen and (max-width: 1024px) {
  #MainContent .poiesis-architecture-arvltenjidtfmr09udaigenblock4c4c2fcvjtcbl__hero,
  #MainContent .poiesis-architecture-arvltenjidtfmr09udaigenblock4c4c2fcvjtcbl__tradition,
  #MainContent .ai-applications-adkxrnnh1zjnhr3vzsaigenblockae329d9r4pcx8__intro,
  #MainContent .ai-collaboration-azfhmtzbnelvddnfxraigenblockc0a16a68arx7y__inner,
  #MainContent .ai-technical-development__inner-aqkpnvvfvwtvxuxbmqaigenblockeaeed3ayrbddp,
  #MainContent .ai-international-projects__inner-aa1erthjimflsvlflqaigenblockcc4b841fmlykp {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--poiesis-space-md);
  }

  #MainContent .poiesis-architecture-arvltenjidtfmr09udaigenblock4c4c2fcvjtcbl__media,
  #MainContent .poiesis-architecture-arvltenjidtfmr09udaigenblock4c4c2fcvjtcbl__copy,
  #MainContent .ai-collaboration-azfhmtzbnelvddnfxraigenblockc0a16a68arx7y__media {
    margin-block: 0;
  }

  #MainContent .ai-collaboration-azfhmtzbnelvddnfxraigenblockc0a16a68arx7y__closing {
    grid-column: 1 / -1;
    margin-block-start: 0;
  }

  #MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__hero,
  #MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__head,
  #MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__bio,
  #MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__exchange {
    display: block;
  }

  #MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__copy {
    padding: 40px 24px 64px;
  }
}

@media screen and (max-width: 749px) {
  :root {
    --poiesis-title: 36px;
    --poiesis-heading: 32px;
    --poiesis-subheading: 23px;
    --poiesis-body: 16px;
    --poiesis-statement: 25px;
  }

  #MainContent .ai-editorial-mission__statement-aww5ybdq3dedrt1zvtaigenblockb6d733cfjpprm {
    font-size: 36px;
  }

  #MainContent .ai-editorial-mission__subline-aww5ybdq3dedrt1zvtaigenblockb6d733cfjpprm {
    font-size: 20px;
  }

  #MainContent .ai-editorial-hero-ar09mymrvylkxdklckaigenblock0e0c2dcw78kbw__heading,
  #MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar h1,
  #MainContent .ai-contact-ayvlpcuzysgq0njmydaigenblock197f297vppr4d__heading {
    font-size: 36px;
  }

  #MainContent .ai-editorial-hero-ar09mymrvylkxdklckaigenblock0e0c2dcw78kbw__supporting {
    font-size: 18px;
  }
}

@media screen and (max-width: 359px) {
  #MainContent .ai-editorial-hero-ar09mymrvylkxdklckaigenblock0e0c2dcw78kbw__heading {
    font-size: 32px;
  }
}
/* END POIESIS FOUNDATION — PHASE 1 / BATCH 1 */


/* POIESIS FOUNDATION — PHASE 1 / BATCH 3
 * Editorial spacing, palette and reading measures. Preserve Batches 1 and 2.
 * Remove this complete delimited addition to restore the approved Batch 2 state.
 */
:root {
  --poiesis-white: #ffffff;
  --poiesis-space-caption: 12px;
  --poiesis-reading: 760px;
  --poiesis-reading-narrow: 720px;
}

/* Batch 3 spacing candidate — editorial text roles only.
 * Keeps hero/interlude/galleries, all image dimensions/crops and saved spacing settings.
 * The existing approved 24 / 40 / 64 / 96 px foundation tokens remain authoritative.
 */
#MainContent:where(
  [data-template="index"], [data-template="page.about-poiesis"],
  [data-template="page.inami"], [data-template="page.architecture"],
  [data-template="page.custom-commission"], [data-template="page.the-master"],
  [data-template="page.hakuun-bio-template"], [data-template="page.exhibitions"],
  [data-template="page.contact"]
) {
  /* Only labels directly paired with a major heading. Image captions, form labels,
   * tool labels and other standalone metadata keep their existing small gaps. */
  & :is(p, div, span):is([class*="__eyebrow"], [class*="__label"]):has(+ :is(h1, h2)):where(:not(.pa-atmos *)) {
    margin-block-start: 0;
    margin-block-end: var(--poiesis-space-sm);
  }
  & :is(p, div, span):is([class*="__eyebrow"], [class*="__label"]) + :is(h1, h2):where(:not(.pa-atmos *)) {
    margin-block-start: 0;
  }
  & [class^="ai-editorial-newsletter__label-"] {
    margin-block-end: var(--poiesis-space-sm);
  }

  /* Major title-to-prose pairs. The photo hero, wordmark, image-first openings,
   * separate-column titles and large closing statements retain their own gaps. */
  & :is(
    [class^="ai-inami-editorial-"][class$="__heading"],
    [class^="ai-masters__heading-"],
    [class^="ai-create-inami-"][class$="__heading"],
    [class^="ai-living-tradition-"][class$="__heading"],
    [class^="ai-ranma-"][class$="__heading"],
    [class^="ai-craft-"][class$="__heading"],
    [class^="ai-apprenticeship-"][class$="__heading"],
    [class^="ai-global-shift-"][class$="__heading"],
    [class^="ai-collaboration-"][class$="__heading"],
    [class^="ai-process-"][class$="__heading"],
    [class^="ai-technical-development__heading-"],
    [class^="ai-architecture-"][class$="__heading"],
    [class^="ai-architecture-closing-"][class$="__heading"],
    [class^="ai-commissions-"][class$="__heading"],
    [class^="ai-possibilities-"][class$="__heading"],
    [class^="ai-workshop-video__heading-"],
    [class^="ai-commission-closing__heading-"],
    [class^="ai-masters-"][class$="__heading"]
  ) {
    margin-block-end: var(--poiesis-space-sm);
  }
  & [class^="poiesis-architecture-"] :is(h1, h2),
  & [class^="ai-master-"] :is(h1, h2) {
    margin-block-end: var(--poiesis-space-sm);
  }

  /* Paragraph rhythm within existing prose wrappers; retain the zero final gap. */
  & :is(
    [class^="ai-about-opening-"][class$="__copy"],
    [class^="ai-living-tradition-"][class$="__copy"],
    [class^="ai-founder-"][class$="__bio"],
    [class^="poiesis-architecture-"][class$="__copy"],
    [class^="ai-architecture-closing-"][class$="__copy"],
    [class^="ai-international-projects__copy-"],
    [class^="ai-possibilities-"][class$="__copy"],
    [class^="ai-origin-"][class$="__copy"],
    [class^="ai-origin-"][class$="__lineage"],
    [class^="ai-craft-"][class*="__body"]
  ) > p:not(:last-child) {
    margin-block-start: 0;
    margin-block-end: var(--poiesis-space-sm);
  }

  /* Existing body-to-action gaps; no action destinations or copy changes. */
  & [class^="ai-inami-editorial-"][class$="__body"],
  & [class^="ai-create-inami-"][class$="__intro"],
  & [class^="ai-commissions-"][class$="__copy"],
  & [class^="ai-architecture-closing-"][class$="__copy"],
  & [class^="ai-contact-"][class$="__intro"] {
    margin-block-end: var(--poiesis-space-md);
  }
  & [class^="ai-create-inami-"][class$="__links"] {
    gap: var(--poiesis-space-sm);
  }
  & [class^="ai-available-works-"][class$="__description"] {
    margin-block-start: var(--poiesis-space-sm);
  }
  & [class^="ai-inami-intro-"][class$="__body"] {
    margin-block-start: var(--poiesis-space-sm);
  }
}

/* Narrow only oversized prose. Existing title/image/column widths stay intact. */
#MainContent[data-template="index"] [class^="ai-exhibitions-"][class$="__intro"] {
  max-width: var(--poiesis-reading-narrow);
  margin-block-start: var(--poiesis-space-sm);
}
#MainContent[data-template="index"] [class^="ai-exhibitions-"][class$="__program-title"] {
  margin-block: var(--poiesis-space-md) var(--poiesis-space-sm);
}
#MainContent[data-template="page.architecture"] :is(
  [class^="ai-architecture-"][class$="__description"],
  [class^="ai-architecture-"][class$="__closing"]
) {
  max-width: var(--poiesis-reading);
  margin-block-start: var(--poiesis-space-sm);
}
#MainContent[data-template="page.inami"] [class^="ai-craft-"][class*="__process-text"] {
  max-width: var(--poiesis-reading);
}
#MainContent[data-template="page.inami"] [class^="ai-global-shift-"][class$="__intro"] {
  max-width: var(--poiesis-reading-narrow);
  margin-inline: auto;
}

/* Restore the intended text-to-archive separation erased by the broad p reset. */
#MainContent[data-template="page.exhibitions"] [class^="ai-exhibitions-"] :is(h1, h2, h3) {
  margin-block-end: var(--poiesis-space-sm);
}
#MainContent[data-template="page.exhibitions"] [class^="ai-exhibitions-"][class$="__subcopy"] {
  margin-block: 0 var(--poiesis-space-md);
}
#MainContent[data-template="page.exhibitions"] [class^="ai-exhibitions-"][class$="__intro"] {
  margin-block-end: var(--poiesis-space-xl);
}
#MainContent[data-template="page.exhibitions"] [class^="ai-exhibitions-"][class$="__section"] {
  margin-block-start: var(--poiesis-space-xl);
}

/* The compact contact chapter uses a standard outer inset and form row spacing. */
#MainContent[data-template="page.contact"] [class^="ai-contact-"]:not([class*="__"]) {
  padding-block: var(--poiesis-space-lg);
}
#MainContent[data-template="page.contact"] :is(
  [class^="ai-contact-"][class$="__form"],
  [class^="ai-contact-"][class$="__row"]
) {
  gap: var(--poiesis-space-sm);
}

@media screen and (max-width: 749px) {
  #MainContent[data-template="page.exhibitions"] [class^="ai-exhibitions-"][class$="__intro"] {
    margin-block-end: var(--poiesis-space-lg);
  }
  #MainContent[data-template="page.exhibitions"] [class^="ai-exhibitions-"][class$="__section"] {
    margin-block-start: var(--poiesis-space-lg);
  }
  #MainContent[data-template="page.inami"] [class^="ai-global-shift-"][class$="__intro"] {
    margin-inline: 0;
  }
  #MainContent[data-template="page.contact"] [class^="ai-contact-"][class$="__inner"] {
    gap: var(--poiesis-space-lg);
  }
}
/* END Batch 3 spacing candidate */


/* Below-media captions use the existing 12px Roadshow/Hakuun half step.
 * Over-image captions, overlays and media frames retain their existing placement.
 */
#MainContent .ai-inami-editorial-arknzy1nry3npl3bvyaigenblock36e9d22vqixcu__caption-row,
#MainContent .ai-origin-aadyxk3vlnjf3qxhuwaigenblock57c9b69ywdekd__caption,
#MainContent .ai-applications-adkxrnnh1zjnhr3vzsaigenblockae329d9r4pcx8__caption,
#MainContent .ai-workshop-video__caption-aznntsknvnlzyt0q5daigenblockd505044bjmizv {
  margin-block-start: var(--poiesis-space-caption);
}

/* Keep the existing warm-tinted chapters distinct from their white neighbors. */
#MainContent .poiesis-architecture-arvltenjidtfmr09udaigenblock4c4c2fcvjtcbl,
#MainContent .ai-process-au2pistfysjbvm1k3saigenblock4bf8eedf6karw,
#MainContent .ai-technical-development-aqkpnvvfvwtvxuxbmqaigenblockeaeed3ayrbddp,
#MainContent .ai-international-projects-aa1erthjimflsvlflqaigenblockcc4b841fmlykp,
#MainContent .ai-masters-amm9wze1urfv5vthknaigenblock4a8fbf4krhmn8 {
  background-color: var(--poiesis-ivory, #f5f3ee);
}

/* Below-image captions and secondary copy; photographic captions are excluded. */
#MainContent .ai-inami-editorial-arknzy1nry3npl3bvyaigenblock36e9d22vqixcu__caption,
#MainContent .ai-inami-editorial-arknzy1nry3npl3bvyaigenblock36e9d22vqixcu__button,
#MainContent .ai-exhibitions-acmz5ewy5txnwoehgvaigenblock5f6341bbj9t6m__intro,
#MainContent .poiesis-architecture-arvltenjidtfmr09udaigenblock4c4c2fcvjtcbl__caption,
#MainContent .ai-applications-adkxrnnh1zjnhr3vzsaigenblockae329d9r4pcx8__caption,
#MainContent .ai-ranma-am3ffb1nkrkpsn2tovaigenblock067da878afxqg__caption,
#MainContent .ai-possibilities-ak240b0fvofvlekpxzaigenblock537e0dfhtcc6u__caption,
#MainContent .ai-workshop-video__caption-aznntsknvnlzyt0q5daigenblockd505044bjmizv,
#MainContent .ai-commissions-arzvwqu9gytvbn0zpcaigenblock5d73792k7rnvb__meta,
#MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__caption,
#MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__meta,
#MainContent .ai-works-avvd2suvictjsrldqmaigenblock764dd9894zc7x__intro,
#MainContent .ai-works-avvd2suvictjsrldqmaigenblock764dd9894zc7x__meta,
#MainContent .ai-exhibitions-avjvdejvsohu1b3zluaigenblocke66762dwemddd__meta,
#MainContent .ai-editorial-newsletter__input-aymxkdvvzednnemriwaigenblockeafabe8femtcj::placeholder {
  color: var(--poiesis-muted, #6f6b65);
}

/* Roadshow venue/location retain their current dark-caption hierarchy. */
#MainContent .ai-exhibitions-acmz5ewy5txnwoehgvaigenblock5f6341bbj9t6m__venue,
#MainContent .ai-exhibitions-acmz5ewy5txnwoehgvaigenblock5f6341bbj9t6m__location {
  color: var(--poiesis-ink, #171717);
}

/* Existing one-pixel rules keep their geometry and responsive visibility. */
#MainContent .ai-poiesis-about-avznznytxmhvqnmt4saigenblock7073894tcx83h__right::before {
  background-color: var(--poiesis-rule, #d9d5ce);
}

#MainContent .ai-technical-development__topic-aqkpnvvfvwtvxuxbmqaigenblockeaeed3ayrbddp {
  border-top-color: var(--poiesis-rule, #d9d5ce);
}

#MainContent .ai-technical-development__topic-aqkpnvvfvwtvxuxbmqaigenblockeaeed3ayrbddp:last-child,
#MainContent .ai-editorial-newsletter__fields-aymxkdvvzednnemriwaigenblockeafabe8femtcj {
  border-bottom-color: var(--poiesis-rule, #d9d5ce);
}

#MainContent .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__quote {
  border-left-color: var(--poiesis-rule, #d9d5ce);
}

/* Hakuun's hero eyebrow is inline: reserve the gap on the title itself. */
#MainContent[data-template="page.hakuun-bio-template"]
.ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__hero
.ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__label + h1 {
  margin-block-start: var(--poiesis-space-sm);
}

/* This chapter label becomes inline when the profile stacks at tablet size. */
@media screen and (max-width: 1024px) {
  #MainContent[data-template="page.hakuun-bio-template"]
  .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__head
  .ai-master-aylv0c2owdu5iuitknaigenblock7b96d7fnhdbar__label + h2 {
    margin-block-start: var(--poiesis-space-sm);
  }
}

/* END POIESIS FOUNDATION — PHASE 1 / BATCH 3 */

/* POIESIS HEADING WEBFONT - approved typography implementation.
 * Direct display text outside the shared heading cascade; family only.
 * Remove this delimited addition to restore the previous family behavior.
 */
footer.ai-footer-aexirl0jbyjgvrermbaigenblockce1d13ffcewhj
.ai-footer-aexirl0jbyjgvrermbaigenblockce1d13ffcewhj__wordmark,
#MainContent[data-template="page.exhibitions"]
.ai-exhibitions-avjvdejvsohu1b3zluaigenblocke66762dwemddd__title,
#MainContent[data-template="page.inami"]
.ai-inami-azfbpynl2ng5uekrvoaigenblock5699eacfmtcpk__invitation {
  font-family: var(--font-heading--family);
}
/* END POIESIS HEADING WEBFONT - approved typography implementation. */


/* POIESIS PHASE 2 — HOMEPAGE EDITORIAL PATHWAYS
 * Original foundation above remains intact. Remove this block to roll back.
 */
#MainContent[data-template="index"] {
  & .poiesis-pathway--pending {
    color: var(--poiesis-muted);
    max-width: 100%;
    white-space: normal;
    font-family: var(--poiesis-font-accent);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: default;
  }
  & span.poiesis-pathway--pending:hover { text-decoration: none; }
  & [class^="ai-inami-editorial-"][class*="__link"] {
    border: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: 0;
  }
  & [class^="ai-available-works-"][class$="__description"] {
    margin-block-start: 0;
  }
}
@media screen and (min-width: 750px) {
  #MainContent[data-template="index"] [class^="ai-masters__caption-"] .poiesis-pathway--pending {
    color: var(--poiesis-rule);
  }
}
@media screen and (max-width: 749px) {
  #MainContent[data-template="index"] [class^="ai-available-works-"][class$="__description"] {
    margin-block-start: 24px;
  }
}
/* END POIESIS PHASE 2 — HOMEPAGE EDITORIAL PATHWAYS */
