.si-theme-scope {
  background-color: var(--si-paper);
  background-image: var(--si-washi);
  background-repeat: repeat;
  background-size: 1024px 1024px;
}

/*
 * SWELL opens and closes #content around page templates. The custom
 * full-bleed template therefore needs to opt out of the parent theme's
 * home-only visual, slider, constrained content grid and sidebar.
 *
 * Runtime note: SWELL places body_class() on #body_wrap in this install.
 */
#body_wrap.si-theme-scope.page-template-shingi-full-bleed > #main_visual,
#body_wrap.si-theme-scope.page-template-shingi-full-bleed > #post_slider,
#body_wrap.si-theme-scope.page-template-shingi-full-bleed > #breadcrumb,
#body_wrap.si-theme-scope.page-template-shingi-full-bleed
  > #content.l-content
  #sidebar.l-sidebar {
  display: none !important;
}

#body_wrap.si-theme-scope.page-template-shingi-full-bleed
  > #content.l-content {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

#body_wrap.si-theme-scope.page-template-shingi-full-bleed
  > #content.l-content
  #primary.si-full-bleed {
  float: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

#body_wrap.si-theme-scope {
  --si-header-height: 80px;
}

/*
 * SWELL's classic block renderer inserts this neutral wrapper inside Group
 * blocks. Removing only its box lets the child theme's grid/flex rules act on
 * the intended children, matching the approved prototype.
 */
.si-site .wp-block-group > .wp-block-group__inner-container {
  display: contents;
}

/* The WordPress posts page is the article index below /column/. */
#body_wrap.si-theme-scope.blog > #breadcrumb,
#body_wrap.si-theme-scope.blog > #content.l-content #sidebar.l-sidebar {
  display: none !important;
}

#body_wrap.si-theme-scope.blog > #content.l-content {
  display: block;
  width: min(100% - (var(--si-gutter) * 2), var(--si-shell));
  max-width: none;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(68px, 8vw, 112px) 0;
}

#body_wrap.si-theme-scope.blog > #content.l-content #main_content {
  float: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

@supports selector(body:has(*)) {
  .si-theme-scope:has(#header.-transparent) {
    --si-header-height: 0px;
  }
}

@media (max-width: 959px) {
  #body_wrap.si-theme-scope {
    --si-header-height: 64px;
  }

  @supports selector(body:has(*)) {
    .si-theme-scope:has(.l-header[data-spfix="1"]) {
      --si-swell-sticky-header-height: var(--swl-headerH, 64px);
    }

    .si-theme-scope:has(#fix_bottom_menu:not(:empty)) {
      --si-fixed-bottom-offset: var(--si-swell-fixed-footer-height);
    }
  }
}

.si-site,
.editor-styles-wrapper .si-site {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: clip;
  background-color: var(--si-paper);
  background-image: var(--si-washi);
  background-repeat: repeat;
  background-size: 1024px 1024px;
  color: var(--si-ink);
  font-family: var(--si-font-sans);
  font-size: 16px;
  line-height: 1.9;
}

.si-site *,
.si-site *::before,
.si-site *::after,
.si-floating-cta,
.si-floating-cta::before,
.si-floating-cta::after {
  box-sizing: border-box;
}

.si-site :where(h1, h2, h3, p, figure, ul, ol, dl),
.editor-styles-wrapper .si-site :where(h1, h2, h3, p, figure, ul, ol, dl) {
  margin-top: 0;
}

.si-site :where(h1, h2, h3),
.editor-styles-wrapper .si-site :where(h1, h2, h3) {
  color: inherit;
  font-family: var(--si-font-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-break: strict;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  word-break: normal;
  word-break: auto-phrase;
}

.si-site :where(.wp-block-image > img, .wp-block-image > a > img),
.editor-styles-wrapper
  .si-site
  :where(.wp-block-image > img, .wp-block-image > a > img) {
  display: block;
  max-width: 100%;
  height: auto;
}

.si-site
  :where(
    .si-button,
    .si-hero__credit a,
    .si-media-portal__summary a,
    .si-media-card__action a,
    .si-media-subnav a,
    .si-article-list__meta a,
    .si-article-list__title a
  ) {
  color: inherit;
  text-decoration: none;
}

.si-site :where(a, button, summary):focus-visible,
.si-floating-cta:focus-visible {
  outline: 2px solid var(--si-white);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--si-ink);
}

.si-site :where(a, button, summary) {
  scroll-margin-block: calc(var(--si-sticky-header-offset) + 16px)
    calc(
      102px + var(--si-fixed-bottom-offset) + env(safe-area-inset-bottom)
    );
}

.si-shell,
.editor-styles-wrapper .si-shell {
  width: min(100% - (var(--si-gutter) * 2), var(--si-shell));
  max-width: none;
  margin-inline: auto;
}

.si-section,
.editor-styles-wrapper .si-section {
  position: relative;
  padding-block: var(--si-section-space);
}

.si-eyebrow,
.editor-styles-wrapper .si-eyebrow {
  margin-bottom: 20px;
  color: var(--si-gold-deep);
  font-family: var(--si-font-latin);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.si-heading,
.editor-styles-wrapper .si-heading {
  margin-bottom: 28px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.45;
}

.si-lead,
.editor-styles-wrapper .si-lead {
  max-width: 44em;
  color: var(--si-ink-muted);
  font-size: clamp(16px, 1.6vw, 18px);
}

.si-button,
.editor-styles-wrapper .si-button {
  display: inline-flex;
  min-height: 58px;
  padding: 14px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.si-button__arrow {
  display: inline-block;
  transition: transform 220ms var(--si-ease);
}

.si-button--clay {
  border-color: var(--si-clay);
  background: var(--si-clay);
  color: var(--si-white);
}

.si-button--ivory {
  border-color: #f8f3e9;
  background: #f8f3e9;
  color: #5f281b;
}

.si-button--line {
  border-color: transparent;
  border-bottom-color: var(--si-ink);
  color: var(--si-ink);
}

@media (hover: hover) and (pointer: fine) {
  .si-button--clay:hover,
  .si-button--ivory:hover {
    border-color: var(--si-gold-on-dark);
    background: var(--si-ink);
    color: var(--si-gold-on-dark);
  }

  .si-button:hover .si-button__arrow {
    transform: translateX(5px);
  }
}

.si-button--clay:focus-visible,
.si-button--ivory:focus-visible {
  border-color: var(--si-gold-on-dark);
  background: var(--si-ink);
  color: var(--si-gold-on-dark);
}

.si-button--clay:focus-visible .si-button__arrow,
.si-button--ivory:focus-visible .si-button__arrow {
  transform: translateX(5px);
}

@media (max-width: 720px) {
  .si-site,
  .editor-styles-wrapper .si-site {
    font-size: 15px;
  }

  .si-heading,
  .editor-styles-wrapper .si-heading {
    font-size: clamp(30px, 8vw, 38px);
  }

  .si-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .si-site *,
  .si-site *::before,
  .si-site *::after,
  .si-floating-cta,
  .si-floating-cta *,
  .si-floating-cta::before,
  .si-floating-cta::after,
  .si-floating-cta *::before,
  .si-floating-cta *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .si-button__arrow,
  .si-floating-cta,
  .si-floating-cta__arrow {
    transform: none !important;
  }
}
