.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  flex: 0 1 auto;
  max-width: min(100%, var(--logo-width));
}

.site-logo {
  flex: 0 0 auto;
  max-width: min(100%, var(--logo-width));
}

.custom-logo-link {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.site-logo img {
  display: block;
  width: auto;
  max-width: min(100%, var(--logo-width));
  height: auto;
}

.site-branding-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  max-width: clamp(12rem, 24vw, 26rem);
  flex: 0 1 auto;
}

.site-title {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  min-width: 0;
}

.site-title a {
  display: block;
  text-decoration: none;
}

.site-description,
.entry-meta,
.section-intro,
.site-info,
.breadcrumbs,
.eyebrow {
  color: var(--color-text-soft);
}

.site-description,
.entry-meta,
.eyebrow {
  font-family: var(--font-meta);
}

.primary-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
  min-width: 0;
}

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.site-header-primary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--header-cta-gap, 1.5rem);
  min-width: 0;
  flex: 1 1 auto;
}

.site-header-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.site-header-secondary-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-width: 0;
}

.site-header-secondary-menu__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  min-width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.site-header-secondary-menu__link:hover,
.site-header-secondary-menu__link:focus-visible {
  border-color: var(--color-accent-strong);
  color: var(--color-accent-strong);
}

.site-header-secondary-menu__badge {
  position: absolute;
  top: -0.28rem;
  right: -0.28rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--color-surface);
}

.site-header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  min-width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.site-header-search-toggle:hover,
.site-header-search-toggle:focus-visible,
.site-header-search.is-open .site-header-search-toggle {
  border-color: var(--color-accent-strong);
  color: var(--color-accent-strong);
}

.site-header-search-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header-search-toggle-icon--close {
  display: none;
}

.site-header-search.is-open .site-header-search-toggle-icon--search {
  display: none;
}

.site-header-search.is-open .site-header-search-toggle-icon--close {
  display: inline-flex;
}

.site-header-search-panel {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.75rem);
  z-index: 40;
  width: min(24rem, calc(100vw - 8rem));
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) scaleX(0.94);
  transform-origin: right center;
  transition:
    max-width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 180ms ease;
}

.site-header-search.is-open .site-header-search-panel {
  max-width: min(24rem, calc(100vw - 8rem));
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scaleX(1);
}

.search-form--header {
  gap: 0.45rem;
  padding: 0.35rem;
  box-shadow: 0 18px 40px rgba(23, 23, 29, 0.08);
}

.search-form--header .search-field {
  min-width: 0;
}

.search-form--header .search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.9rem;
  min-width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border-radius: calc(var(--radius-sm) - 0.05rem);
}

.site-header-cta {
  white-space: nowrap;
}

.primary-navigation-mobile-cta {
  display: none;
}

.primary-navigation-panel > ul,
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-navigation-panel > ul {
  gap: var(--main-nav-gap-horizontal);
}

.footer-menu {
  gap: 0.9rem;
}

.primary-navigation-panel a,
.footer-menu a {
  text-decoration: none;
}

.arcade-menu-item-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.arcade-menu-item-icon {
  flex: 0 0 auto;
  opacity: 0.88;
}

.arcade-menu-item-label__text {
  min-width: 0;
}

.primary-navigation-panel > ul > li > a {
  font-size: var(--main-nav-font-size);
  font-weight: var(--main-nav-font-weight);
  text-transform: var(--main-nav-text-transform);
  letter-spacing: var(--main-nav-letter-spacing);
}

.footer-menu a {
  font-size: 0.95rem;
}

.primary-navigation-panel a {
  position: relative;
  padding-block: 0.2rem;
}

.primary-navigation-panel a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.primary-navigation-panel a:hover,
.primary-navigation-panel .current-menu-item > a,
.primary-navigation-panel .current_page_item > a {
  color: var(--color-accent-strong);
}

.primary-navigation-panel a:hover::after,
.primary-navigation-panel .current-menu-item > a::after,
.primary-navigation-panel .current_page_item > a::after {
  transform: scaleX(1);
}

.primary-navigation-panel .menu-item-has-children {
  position: relative;
}

.primary-navigation-panel .menu-item-has-children > a {
  padding-right: 1rem;
}

.primary-navigation-panel .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.72;
  transition: transform 160ms ease, opacity 160ms ease;
}

.primary-navigation-panel .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: var(--submenu-min-width);
  display: grid;
  gap: var(--submenu-gap-vertical);
  list-style: none;
  margin: 0;
  padding: 0.85rem var(--submenu-horizontal-padding) 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.35rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 30;
}

.primary-navigation-panel .menu-item-has-children:hover > .sub-menu,
.primary-navigation-panel .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.primary-navigation-panel .menu-item-has-children:hover > a::before,
.primary-navigation-panel .menu-item-has-children:focus-within > a::before {
  opacity: 1;
  transform: translateY(-45%) rotate(45deg);
}

.primary-navigation-panel .sub-menu a {
  display: block;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: calc(var(--radius-sm) - 0.1rem);
  font-size: var(--submenu-font-size);
  font-weight: var(--submenu-font-weight);
  text-transform: var(--submenu-text-transform);
  letter-spacing: var(--submenu-letter-spacing);
}

.primary-navigation-panel .sub-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-navigation-panel .sub-menu a::after {
  display: none;
}

.primary-navigation-panel .sub-menu a:hover,
.primary-navigation-panel .sub-menu a:focus-visible,
.primary-navigation-panel .sub-menu .current-menu-item > a,
.primary-navigation-panel .sub-menu .current_page_item > a {
  color: var(--color-accent-strong);
}

.mobile-navigation-footer {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
}

.arcade-origin-icon {
  display: block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
}

.site-header-slot {
  min-width: 0;
}

.header-layout-split-centered .site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-layout-split-centered .site-header-slot--nav {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
}

.header-layout-split-centered .site-header-slot--branding {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  min-width: 0;
  width: max-content;
  max-width: calc(100% - 16rem);
}

.header-layout-split-centered .site-header-slot--utilities {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-end;
}

.header-layout-split-centered .site-branding {
  justify-content: center;
  max-width: 100%;
}

.header-layout-split-centered .site-header-primary-actions--nav,
.header-layout-split-centered .site-header-actions--split-centered {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.header-layout-split-centered .site-header-primary-actions--nav {
  justify-content: flex-start;
  overflow: visible;
}

.header-layout-split-centered .site-header-actions--split-centered {
  justify-content: flex-end;
  gap: 0.75rem;
}

.header-layout-split-centered .site-header-primary-actions--utilities {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.header-layout-split-centered .site-header-secondary-menu,
.header-layout-split-centered .site-header-search {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.header-layout-split-centered .primary-navigation {
  flex: 0 1 auto;
  justify-content: flex-start;
}

.header-layout-split-centered .primary-navigation-panel > ul {
  flex-wrap: nowrap;
}

.header-layout-stacked .site-header-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.85rem;
}

.header-layout-stacked .site-branding {
  justify-self: start;
  max-width: 100%;
}

.header-layout-stacked .site-header-actions {
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
}

.header-layout-stacked .site-header-primary-actions {
  flex: 1 1 auto;
  justify-content: flex-start;
}

.header-layout-stacked .primary-navigation {
  justify-content: flex-start;
}

.header-layout-stacked .site-header-search {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.header-layout-stacked .site-header-secondary-menu {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.header-layout-stacked-centered .site-header-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.9rem;
}

.header-layout-stacked-centered .site-branding {
  justify-self: center;
  justify-content: center;
  max-width: 100%;
}

.header-layout-stacked-centered .site-branding-text {
  text-align: center;
}

.header-layout-stacked-centered .site-header-actions {
  width: 100%;
  justify-content: center;
  gap: 1rem;
}

.header-layout-stacked-centered .site-header-primary-actions {
  flex: 0 1 auto;
  justify-content: center;
}

.header-layout-stacked-centered .primary-navigation {
  justify-content: center;
}

.header-layout-stacked-centered .site-header-search {
  flex: 0 0 auto;
  justify-content: center;
}

.header-layout-stacked-centered .site-header-secondary-menu {
  flex: 0 0 auto;
  justify-content: center;
}

.header-layout-compact .site-header {
  background: transparent;
  border-bottom: 0;
}

.menu-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.menu-toggle-icon--close {
  display: none;
}

.primary-navigation.is-open .menu-toggle-icon--menu {
  display: none;
}

.primary-navigation.is-open .menu-toggle-icon--close {
  display: inline-flex;
}

.hero {
  padding-block: 2.5rem var(--space-lg);
}

.hero-inner,
.shop-header .container {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.hero-description {
  max-width: 40rem;
  font-size: var(--font-size-md);
  color: var(--color-text-soft);
}

.card,
.widget,
.comments-area,
.empty-state {
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.card-media,
.product-card-media,
.post-thumbnail {
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 0.1rem);
}

.product-card-media {
  display: block;
  aspect-ratio: 1 / 1;
  margin-bottom: 1.25rem;
}

.card-media img,
.product-card-media img,
.post-thumbnail img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-title,
.card-title a {
  text-decoration: none;
}

.card-title a:hover {
  color: var(--color-accent-strong);
}

.card-body {
  display: grid;
  align-content: start;
}

.card-excerpt {
  color: var(--color-text-soft);
}

.button,
button.button,
.wp-block-button__link,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: var(--control-height);
  height: var(--control-height);
  max-height: var(--control-height-max);
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button-primary,
.wp-block-button__link,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--button-bg, var(--color-accent));
  color: var(--button-text, #fff);
}

.button-primary:hover,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--button-bg-hover, var(--color-accent-strong));
  color: var(--button-text-hover, var(--button-text, #fff));
  transform: scale(0.95);
}

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

.button-secondary:hover {
  border-color: var(--color-accent-strong);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  transform: scale(0.95);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.search-form {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  padding: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.search-form:focus-within {
  border-color: rgba(114, 92, 255, 0.45);
}

.search-form label {
  flex: 1;
}

.search-submit {
  gap: 0.45rem;
}

.search-field {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-height: calc(var(--control-height) - 0.5rem);
  height: calc(var(--control-height) - 0.5rem);
  max-height: calc(var(--control-height-max) - 0.5rem);
  padding-inline: 0.7rem;
}

.search-field:focus {
  outline: none;
  box-shadow: none;
}

.archive-layout-list .entry-card {
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
  gap: var(--space-md);
}

.archive-layout-list .entry-card .card-body {
  padding-block: 0.1rem;
}

.breadcrumbs-wrap {
  padding-top: var(--space-sm);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
}

.breadcrumbs-item,
.breadcrumbs-item > a,
.breadcrumbs-item > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumbs-separator {
  display: inline-flex;
  align-items: center;
  color: var(--color-border-strong);
}

.breadcrumbs-home-icon {
  color: var(--color-text-soft);
}

.entry-content > * + * {
  margin-top: 1rem;
}

.entry-content {
  color: var(--color-text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.75rem;
}

.entry-footer,
.section-intro {
  color: var(--color-text-soft);
}

.page-shell--commerce .entry-page {
  max-width: none;
}

.page-shell--commerce .entry-header--commerce {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.woo-shell .entry-header--commerce {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}

.page-shell--commerce .entry-header--commerce .entry-title {
  font-size: var(--heading-h1-size);
  line-height: var(--heading-h1-line-height);
  text-transform: var(--heading-h1-text-transform);
  font-weight: var(--heading-h1-font-weight);
  letter-spacing: var(--heading-h1-letter-spacing);
}

.woo-shell .entry-header--commerce .entry-title {
  font-size: var(--heading-h1-size);
  line-height: var(--heading-h1-line-height);
  text-transform: var(--heading-h1-text-transform);
  font-weight: var(--heading-h1-font-weight);
  letter-spacing: var(--heading-h1-letter-spacing);
}

.page-shell--commerce .entry-content > .woocommerce {
  display: grid;
  gap: var(--space-md);
}

.editorial-page {
  color: var(--color-text);
}

.editorial-section {
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
}

.editorial-section + .editorial-section {
  border-top: 1px solid var(--color-border);
}

.editorial-section--warm {
  background: #f9f7f9;
}

.editorial-section--soft {
  background: #faf9fa;
}

.editorial-hero__inner {
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.editorial-hero__copy {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.editorial-hero__title,
.editorial-hero__subtitle,
.editorial-hero__lead,
.editorial-closing {
  max-width: 100%;
}

.editorial-hero__subtitle {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  line-height: 1.4;
  color: var(--color-text-soft);
}

.editorial-hero__lead,
.editorial-closing__summary,
.editorial-closing__note {
  max-width: 34rem;
  margin-inline: auto;
}

.editorial-split,
.editorial-columns {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.25rem);
}

.editorial-split {
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.editorial-heading,
.editorial-lede {
  max-width: 28rem;
}

.editorial-heading {
  margin-inline: auto;
  text-align: center;
}

.editorial-heading p:not(.eyebrow),
.editorial-lede p:not(.eyebrow) {
  color: var(--color-text-soft);
}

.editorial-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editorial-column,
.editorial-body {
  min-width: 0;
}

.editorial-column {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.editorial-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.2rem;
}

.editorial-list li::marker {
  color: var(--color-accent);
}

.editorial-closing {
  padding-block: clamp(0.5rem, 1.4vw, 1rem);
}

@media (max-width: 820px) {
  .editorial-split,
  .editorial-columns {
    grid-template-columns: 1fr;
  }

  .editorial-section {
    padding-block: clamp(2.25rem, 8vw, 3.25rem);
  }
}

.woocommerce-cart .wc-empty-cart-message,
.woocommerce-cart .return-to-shop {
  max-width: 38rem;
}

.woocommerce-cart .wc-empty-cart-message {
  margin: 0;
}

.woocommerce-cart .cart-empty.woocommerce-info {
  margin: 0;
  padding: 1rem 1.1rem;
}

.woocommerce-cart .return-to-shop {
  margin: 0;
}

.woocommerce-account #customer_login {
  display: grid;
  gap: var(--space-lg);
}

.woocommerce-account #customer_login > .u-column1,
.woocommerce-account #customer_login > .u-column2 {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.woocommerce-account #customer_login h2,
.woocommerce-order-details h2,
.woocommerce-customer-details h2 {
  font-size: var(--heading-h2-size);
  line-height: var(--heading-h2-line-height);
  text-transform: var(--heading-h2-text-transform);
  font-weight: var(--heading-h2-font-weight);
  letter-spacing: var(--heading-h2-letter-spacing);
}

.woocommerce-checkout h3 {
  font-size: var(--heading-h3-size);
  line-height: var(--heading-h3-line-height);
  text-transform: var(--heading-h3-text-transform);
  font-weight: var(--heading-h3-font-weight);
  letter-spacing: var(--heading-h3-letter-spacing);
}

@media (min-width: 900px) {
  .woocommerce-account #customer_login {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.section-heading .section-title + .section-intro {
  margin-top: 0.65rem;
  font-size: 1rem;
}

.empty-state {
  text-align: left;
}

.comments-area .comment-list,
.comments-area .children {
  list-style: none;
  padding-left: 0;
}

.comments-area .comment-body {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.comments-area .comment-respond,
.comments-area .comment-form {
  display: grid;
  gap: var(--space-md);
}

.comments-area .comment-form-comment,
.comments-area .comment-form-author,
.comments-area .comment-form-email,
.comments-area .comment-form-url,
.comments-area .form-submit {
  margin: 0;
}

.search-submit,
.comments-area .submit {
  white-space: nowrap;
}

.site-footer-meta {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.site-info {
  max-width: 40rem;
  font-size: var(--font-size-sm);
}

.navigation.post-navigation,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1 1 16rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.post-navigation a {
  text-decoration: none;
}

.meta-nav {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.comment-list {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
  }

  .site-branding {
    max-width: calc(100% - 8rem);
    flex: 1 1 auto;
  }

  .header-layout-split-centered .site-header-inner,
  .header-layout-stacked-centered .site-header-inner {
    display: flex;
    grid-template-columns: none;
  }

  .header-layout-split-centered .site-header-slot--nav,
  .header-layout-split-centered .site-header-slot--branding,
  .header-layout-split-centered .site-header-slot--utilities {
    justify-self: auto;
  }

  .header-layout-split-centered .site-header-slot--branding {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    z-index: auto;
    width: auto;
    max-width: min(100%, var(--logo-width));
    order: 1;
  }

  .header-layout-split-centered .site-header-slot--nav {
    order: 2;
    margin-left: auto;
    width: auto;
  }

  .header-layout-split-centered .site-header-slot--utilities {
    order: 3;
    width: 100%;
  }

  .header-layout-split-centered .site-header-slot--nav,
  .header-layout-split-centered .site-header-slot--utilities,
  .header-layout-split-centered .site-header-primary-actions--nav,
  .header-layout-split-centered .site-header-actions--split-centered,
  .header-layout-split-centered .primary-navigation {
    flex: initial;
  }

  .header-layout-split-centered .site-header-slot--branding .site-branding,
  .header-layout-stacked-centered .site-branding {
    justify-self: start;
    justify-content: flex-start;
  }

  .header-layout-stacked-centered .site-branding-text {
    text-align: left;
  }

  .header-layout-split-centered .site-header-primary-actions--nav,
  .header-layout-split-centered .site-header-actions--split-centered,
  .header-layout-stacked-centered .site-header-actions,
  .header-layout-stacked-centered .site-header-primary-actions,
  .header-layout-stacked-centered .primary-navigation,
  .header-layout-stacked-centered .site-header-secondary-menu,
  .header-layout-stacked-centered .site-header-search {
    justify-content: space-between;
  }

  .site-header-actions {
    width: auto;
    margin-left: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .site-header-primary-actions {
    --header-cta-gap: 0.5rem;
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .site-header-search {
    width: auto;
    order: initial;
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .site-header-secondary-menu {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .site-header-search-panel {
    display: none;
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 0.75rem;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transform-origin: center;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .site-header-search.is-open .site-header-search-panel {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .archive-layout-list .entry-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header-primary-actions .site-header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-content: center;
    width: 2.85rem;
    min-width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    gap: 0;
  }

  .menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .primary-navigation {
    width: auto;
    justify-content: flex-end;
    align-items: center;
  }

  .header-layout-stacked .site-header-actions,
  .header-layout-stacked-centered .site-header-actions,
  .header-layout-split-centered .site-header-primary-actions--nav,
  .header-layout-split-centered .primary-navigation,
  .header-layout-stacked .site-header-primary-actions,
  .header-layout-stacked-centered .site-header-primary-actions {
    width: auto;
  }

  .site-header-primary-actions {
    align-items: center;
  }

  .site-header-secondary-menu {
    gap: 0.35rem;
  }

  .site-header-secondary-menu__link {
    width: 2.65rem;
    min-width: 2.65rem;
    height: 2.65rem;
  }

  .site-header-secondary-menu__badge {
    top: -0.2rem;
    right: -0.2rem;
  }

  .site-header-search {
    position: static;
  }

  .site-header-search-panel {
    display: block;
    position: fixed;
    top: var(--mobile-header-offset, 4.75rem);
    left: 0;
    right: 0;
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0.9rem 0 1rem;
    overflow: visible;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 18px 40px rgba(23, 23, 29, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.65rem);
    transform-origin: top center;
    transition: opacity 220ms ease, visibility 220ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 59;
  }

  .site-header-search.is-open .site-header-search-panel {
    width: 100vw;
    max-width: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header-search-panel .search-form--header {
    width: min(100% - 2rem, var(--container));
    margin: 0 auto;
    flex-direction: row;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.35rem;
  }

  .site-header-search-panel .search-form--header label {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header-search-panel .search-form--header .search-field {
    width: 100%;
  }

  .site-header-search-panel .search-form--header .search-submit {
    width: 2.9rem;
    min-width: 2.9rem;
  }

  .primary-navigation-panel {
    position: fixed;
    top: var(--mobile-header-offset, 4.75rem);
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: auto;
    max-height: none;
    padding: 0 0 1rem;
    overflow-y: auto;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.65rem);
    transition: opacity 220ms ease, visibility 220ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 60;
  }

  .primary-navigation.is-open .primary-navigation-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-navigation-panel > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    width: min(100% - 2rem, var(--container));
    margin: 0 auto;
    padding: 1.25rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .primary-navigation-panel .menu a {
    width: 100%;
    padding-block: 0.45rem;
  }

  .primary-navigation-panel .primary-navigation-mobile-cta {
    display: list-item;
    width: 100%;
    margin-top: 0.15rem;
  }

  .primary-navigation-panel .primary-navigation-mobile-cta > a {
    display: block;
    width: 100%;
    padding-block: 0.85rem;
    color: var(--color-surface);
    text-decoration: none;
    text-align: center;
    background: var(--button-bg);
  }

  .primary-navigation-panel a::after,
  .primary-navigation-panel a:hover::after,
  .primary-navigation-panel .current-menu-item > a::after,
  .primary-navigation-panel .current_page_item > a::after {
    content: none;
    display: none;
    transform: none;
  }

  .primary-navigation-panel .menu a:hover,
  .primary-navigation-panel .menu a:focus-visible,
  .primary-navigation-panel .menu .current-menu-item > a,
  .primary-navigation-panel .menu .current_page_item > a {
    color: var(--color-accent-strong);
  }

  .primary-navigation-panel .menu-item-has-children {
    width: 100%;
    position: relative;
  }

  .primary-navigation-panel .menu-item-has-children > a {
    padding-right: 3rem;
  }

  .primary-navigation-panel .menu-item-has-children > a::before {
    display: none;
  }

  .primary-navigation-panel .mobile-submenu-toggle {
    position: absolute;
    top: 0.15rem;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: 0 solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-soft);
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  }

  .primary-navigation-panel .mobile-submenu-toggle__icon {
    width: 0.95rem;
    height: 0.95rem;
    transition: transform 180ms ease;
  }

  .primary-navigation-panel .menu-item-has-children.is-submenu-open > .mobile-submenu-toggle {
    color: var(--color-accent-strong);
    border-color: var(--color-accent-strong);
    background: var(--color-bg);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent-strong) 12%, transparent);
  }

  .primary-navigation-panel .menu-item-has-children.is-submenu-open > .mobile-submenu-toggle .mobile-submenu-toggle__icon {
    transform: rotate(180deg);
  }

  .primary-navigation-panel .mobile-submenu-toggle:hover,
  .primary-navigation-panel .mobile-submenu-toggle:focus-visible {
    color: var(--color-accent-strong);
    border-color: color-mix(in srgb, var(--color-accent-strong) 26%, transparent);
    background: color-mix(in srgb, var(--color-accent-strong) 8%, transparent);
  }

  .primary-navigation-panel .sub-menu {
    position: static;
    min-width: 0;
    display: none;
    gap: 0.25rem;
    margin-top: 0.25rem;
    margin-left: 0.9rem;
    padding: 0.35rem 0 0 0.75rem;
    border: 0;
    border-left: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .primary-navigation-panel .menu-item-has-children.is-submenu-open > .sub-menu {
    display: grid;
  }

  .mobile-navigation-footer {
    display: block;
    width: 100%;
    margin: 0;
    padding: 1rem 0 1.25rem;
    border-top: 0;
  }

  .mobile-navigation-footer__inner {
    width: min(100% - 2rem, var(--container));
    margin: 0 auto;
    color: var(--color-text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .mobile-navigation-footer__inner > :first-child {
    margin-top: 0;
  }

  .mobile-navigation-footer__inner > :last-child {
    margin-bottom: 0;
  }

  .mobile-navigation-footer__inner a {
    color: var(--color-accent);
  }

  .mobile-navigation-footer__inner p {
    margin: 0 0 0.85rem;
  }

  .search-form:not(.search-form--header) {
    flex-direction: column;
  }

  .search-form:not(.search-form--header) .search-submit {
    width: 100%;
  }
}
