/* Header */

.header {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: none;
  background: var(--wp--preset--color--base);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.header--border {
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.header--sticky {
  position: sticky;
  top: 0;
}

.header--two-row .header__top {
  background: var(--wp--preset--color--surface);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.header--two-row .header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  gap: var(--wp--preset--spacing--sm);
  min-height: var(--header-height);
  padding-block: 12px;
  box-sizing: border-box;
}

.header--two-row .header__main {
  background: var(--wp--preset--color--base);
  border-top: 1px solid var(--wp--preset--color--border);
}

.header--two-row .header__main .container {
  display: flex;
  justify-content: center;
}

.header--two-row .header__nav {
  width: 100%;
  max-width: none;
  justify-content: center;
  margin-left: 0;
  padding-block: 10px;
}

.header--floating {
  position: fixed;
  top: var(--wp--preset--spacing--sm);
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 0;
  transition: background var(--transition-base), border-color var(--transition-base), top var(--transition-base);
}

.header--floating.is-scrolled {
  top: 0;
  background: var(--wp--preset--color--base);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  gap: var(--wp--preset--spacing--md);
  min-height: var(--header-height);
  padding-block: 12px;
  box-sizing: border-box;
}

.header__branding {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--xs);
  flex-shrink: 0;
}

.header__branding .wp-block-site-title {
  margin: 0;
}

.header__branding .custom-logo-link {
  display: flex;
  flex-shrink: 0;
}

.header__branding .custom-logo {
  width: auto;
  max-height: 56px;
}

.header__branding .site-title a {
  color: inherit;
  text-decoration: none;
}

.header__nav {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  margin-left: auto;
}

.header__menu,
.header__menu .sub-menu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.header__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--wp--preset--spacing--sm);
}

.header__menu li {
  position: relative;
  margin: 0;
}

.header__menu > li {
  display: flex;
  align-items: center;
}

.header__menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.header__menu a:hover,
.header__menu .current-menu-item > a,
.header__menu .current-menu-ancestor > a {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
}

.header__submenu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.header__submenu-button span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--transition-base);
}

.header__submenu-button[aria-expanded="true"] span {
  transform: translateY(2px) rotate(225deg);
}

.header__menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  display: none;
  min-width: 220px;
  padding: var(--wp--preset--spacing--xs);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-sm);
  background: var(--wp--preset--color--base);
  box-shadow: var(--shadow-soft);
}

.header__menu .sub-menu a {
  padding-inline: var(--wp--preset--spacing--xs);
  font-weight: 400;
}

.header__menu .menu-item-has-children:hover > .sub-menu,
.header__menu .menu-item-has-children.is-submenu-open > .sub-menu {
  display: block;
}

.header--floating .header__inner {
  padding-inline: var(--wp--preset--spacing--md);
  padding-block: 8px;
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 82%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.header--floating.is-scrolled .header__inner {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.header__cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  align-self: center;
}

.header__cta .button {
  min-height: 44px;
  padding-block: 10px;
}

.header__menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-sm);
  color: inherit;
  background: var(--wp--preset--color--base);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.header__menu-icon,
.header__menu-icon::before,
.header__menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentcolor;
  transition: transform var(--transition-base), background var(--transition-base);
}

.header__menu-icon {
  position: relative;
}

.header__menu-icon::before,
.header__menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.header__menu-icon::before {
  top: -6px;
}

.header__menu-icon::after {
  top: 6px;
}

.header__menu-button[aria-expanded="true"] .header__menu-icon {
  background: transparent;
}

.header__menu-button[aria-expanded="true"] .header__menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.header__menu-button[aria-expanded="true"] .header__menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .header__inner {
    gap: var(--wp--preset--spacing--sm);
  }

  .header__nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .header__menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .header__nav[data-navigation] {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: 100%;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100svh - var(--header-height));
    padding: var(--wp--preset--spacing--sm) 20px;
    overflow-y: auto;
    border-top: 1px solid var(--wp--preset--color--border);
    border-bottom: 1px solid var(--wp--preset--color--border);
    background: var(--wp--preset--color--base);
    box-shadow: var(--shadow-soft);
  }

  .header__nav[data-navigation].is-open {
    display: block;
  }

  .header__menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    width: min(100%, 1200px);
    margin-inline: auto;
  }

  .header__menu > li {
    flex-wrap: wrap;
    width: 100%;
    border-bottom: 1px solid var(--wp--preset--color--border);
  }

  .header__menu > li > a {
    flex: 1;
    padding-block: 10px;
  }

  .header__menu .sub-menu {
    position: static;
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
    padding: 0 0 var(--wp--preset--spacing--xs) var(--wp--preset--spacing--sm);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .header__menu .menu-item-has-children:hover > .sub-menu {
    display: none;
  }

  .header__menu .menu-item-has-children.is-submenu-open > .sub-menu {
    display: block;
  }

  .header__cta {
    margin-left: auto;
  }

  .header__cta .wp-block-button__link {
    min-height: 40px;
    padding: 8px 16px;
  }

  .header--two-row .header__top-inner {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .header--two-row .header__top-inner {
    gap: var(--wp--preset--spacing--xs);
  }

  .header--two-row .header__nav {
    justify-content: flex-start;
    padding-block: 8px;
  }

  .header--two-row .header__cta .wp-block-button__link {
    min-height: 40px;
    padding: 8px 14px;
  }
}

/* Footer */

.footer {
  width: 100%;
  max-width: none;
  overflow-wrap: anywhere;
}

.footer__container {
  min-width: 0;
}

.footer__main {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--lg);
}

.footer__branding {
  flex: 1 1 280px;
  min-width: 0;
}

.footer__branding > * {
  margin-block: 0;
}

.footer__branding > * + * {
  margin-block-start: var(--wp--preset--spacing--xs);
}

.footer__branding .wp-block-site-title,
.footer__branding .wp-block-site-tagline {
  max-width: 100%;
}

.footer__nav {
  display: flex;
  flex: 1 1 360px;
  min-width: 0;
  justify-content: flex-end;
}

.footer__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--sm);
  max-width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer__menu li {
  min-width: 0;
  margin: 0;
}

.footer__menu a {
  color: inherit;
}

.footer__nav .wp-block-navigation__container {
  max-width: 100%;
  justify-content: flex-end;
  row-gap: var(--wp--preset--spacing--xs);
  white-space: normal;
}

.footer__nav .wp-block-navigation-item,
.footer__nav .wp-block-navigation-item__content {
  min-width: 0;
  white-space: normal;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  gap: var(--wp--preset--spacing--sm);
  margin-block-start: var(--wp--preset--spacing--lg);
  padding-block-start: var(--wp--preset--spacing--sm);
  border-top: 1px solid var(--wp--preset--color--border);
}

.footer__copyright,
.footer__utility {
  min-width: 0;
}

.footer__copyright {
  gap: 0.35em;
}

.footer__copyright > *,
.footer__utility > * {
  margin-block: 0;
}

@media (max-width: 768px) {
  .footer__main,
  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__branding,
  .footer__nav {
    flex-basis: auto;
    width: 100%;
  }

  .footer__nav,
  .footer__nav .wp-block-navigation__container,
  .footer__menu,
  .footer__utility {
    justify-content: flex-start;
  }
}

/* Button */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--md);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.button:hover {
  opacity: 0.82;
  text-decoration: none;
}

.button--large {
  min-height: 56px;
  padding-inline: 32px;
}

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

.button--secondary {
  color: var(--wp--preset--color--primary);
  background: var(--wp--preset--color--secondary);
}

.button--accent {
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--accent);
}

.button--line {
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--line);
}

.button--outline {
  color: var(--wp--preset--color--primary);
  background: transparent;
  border-color: var(--wp--preset--color--primary);
}

.button-row {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--sm);
  flex-wrap: wrap;
}

/* Contact Form 7 */

.wpcf7 {
  width: min(608px, calc(100% - 40px));
}

.wpcf7 .wpcf7-form,
.wpcf7 .wpcf7-form-control-wrap {
  max-width: 100%;
}

.wpcf7 .wpcf7-form {
  overflow-wrap: anywhere;
}

.wpcf7 .wpcf7-form > p {
  margin-block: 0;
}

.wpcf7 .wpcf7-form > p + p {
  margin-block-start: var(--wp--preset--spacing--md);
}

.wpcf7 label {
  display: block;
  font-weight: 700;
}

.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  margin-block-start: var(--wp--preset--spacing--xs);
}

.wpcf7 :where(
  input.wpcf7-text,
  input.wpcf7-email,
  input.wpcf7-tel,
  textarea.wpcf7-textarea,
  select.wpcf7-select
) {
  width: 100%;
  max-width: 100%;
  font-weight: 400;
  line-height: 1.4;
}

.wpcf7 :where(.wpcf7-checkbox, .wpcf7-radio, .wpcf7-acceptance) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--sm);
}

.wpcf7 :where(.wpcf7-checkbox, .wpcf7-radio, .wpcf7-acceptance) .wpcf7-list-item {
  display: inline-flex;
  align-items: flex-start;
  max-width: 100%;
  margin: 0;
}

.wpcf7 :where(.wpcf7-checkbox, .wpcf7-radio, .wpcf7-acceptance) .wpcf7-list-item label {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--wp--preset--spacing--xs);
  max-width: 100%;
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}

.wpcf7 :where(input[type="checkbox"], input[type="radio"]) {
  flex: 0 0 auto;
  width: 1.15em;
  min-height: 0;
  height: 1.15em;
  margin: 0.2em 0 0;
  padding: 0;
  accent-color: var(--wp--preset--color--primary);
}

.wpcf7 :where(input[type="checkbox"], input[type="radio"]):focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
}

.wpcf7 .wpcf7-submit {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--primary);
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.wpcf7 .wpcf7-submit:hover {
  opacity: 0.82;
}

.wpcf7 .wpcf7-submit:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
}

.wpcf7 .wpcf7-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.wpcf7 .wpcf7-not-valid {
  border-color: var(--wp--preset--color--danger);
}

.wpcf7 .wpcf7-not-valid-tip {
  margin-block-start: var(--wp--preset--spacing--xs);
  color: var(--wp--preset--color--danger);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  line-height: 1.6;
}

.wpcf7 form .wpcf7-response-output {
  margin: var(--wp--preset--spacing--md) 0 0;
  padding: var(--wp--preset--spacing--sm);
  border: 2px solid var(--wp--preset--color--info);
  border-radius: var(--radius-sm);
  color: var(--wp--preset--color--text);
  background: color-mix(in srgb, var(--wp--preset--color--info) 8%, var(--wp--preset--color--base));
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--wp--preset--color--success);
  background: color-mix(in srgb, var(--wp--preset--color--success) 8%, var(--wp--preset--color--base));
}

.wpcf7 form.invalid .wpcf7-response-output {
  border-color: var(--wp--preset--color--warning);
  background: color-mix(in srgb, var(--wp--preset--color--warning) 10%, var(--wp--preset--color--base));
}

.wpcf7 form.failed .wpcf7-response-output {
  border-color: var(--wp--preset--color--danger);
  background: color-mix(in srgb, var(--wp--preset--color--danger) 8%, var(--wp--preset--color--base));
}

.wpcf7 .wpcf7-spinner {
  flex: 0 0 24px;
  margin: 0 0 0 var(--wp--preset--spacing--xs);
  vertical-align: middle;
}

@media (max-width: 600px) {
  .wpcf7 .wpcf7-submit {
    width: 100%;
  }

  .wpcf7 .wpcf7-spinner {
    margin-block-start: var(--wp--preset--spacing--xs);
    margin-inline-start: 0;
  }
}

/* WordPress Button Block */

.wp-block-button.button {
  padding: 0;
  border: 0;
  background: transparent;
}

.wp-block-button.button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--md);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.wp-block-button.button .wp-block-button__link:hover {
  color: var(--wp--preset--color--base);
  opacity: 0.82;
  text-decoration: none;
}

.wp-block-button.button--large .wp-block-button__link {
  min-height: 56px;
  padding-inline: 32px;
}

.wp-block-button.button--full,
.wp-block-button.button--full .wp-block-button__link {
  width: 100%;
}

.wp-block-button.button--secondary .wp-block-button__link {
  color: var(--wp--preset--color--primary);
  background: var(--wp--preset--color--secondary);
}

.wp-block-button.button--accent .wp-block-button__link {
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--accent);
}

.wp-block-button.button--line .wp-block-button__link {
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--line);
}

.wp-block-button.button--outline .wp-block-button__link {
  color: var(--wp--preset--color--primary);
  background: transparent;
  border-color: var(--wp--preset--color--primary);
}

.wp-block-button.button--outline .wp-block-button__link:hover {
  color: var(--wp--preset--color--primary);
}

/* Card */

.card {
  padding: var(--wp--preset--spacing--md);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
  background: var(--wp--preset--color--base);
}

.card__image {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.card__title {
  margin-bottom: var(--wp--preset--spacing--xs);
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
}

.card__text {
  color: var(--wp--preset--color--muted);
}

/* Hero */

.hero {
  position: relative;
  padding-block: var(--wp--preset--spacing--2-xl);
  background: var(--wp--preset--color--surface);
}

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

.hero--center .hero__content {
  margin-inline: auto;
}

.hero--fullscreen {
  min-height: 100svh;
  padding-block: 0;
  overflow: hidden;
}

.hero--fullscreen-with-header {
  min-height: calc(100svh - var(--header-height));
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero--image {
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--text);
}

.hero--image .hero__text {
  color: rgb(255 255 255 / 86%);
}

.hero__label {
  display: inline-block;
  margin-bottom: var(--wp--preset--spacing--sm);
  padding: 4px 12px;
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: var(--radius-pill);
  color: var(--wp--preset--color--primary);
  background: var(--wp--preset--color--base);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
}

.hero__title {
  margin-bottom: var(--wp--preset--spacing--sm);
  font-size: var(--wp--preset--font-size--2-xl);
  font-weight: 700;
}

.hero__text {
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--wp--preset--spacing--md);
  color: var(--wp--preset--color--muted);
}

/* Front Page */

.front-page__hero .hero__title,
.front-page__hero .hero__text {
  margin-bottom: 0;
}

.front-page__hero .hero__title + .hero__text {
  margin-top: var(--wp--preset--spacing--sm);
}

.front-page__content > * {
  width: min(760px, calc(100% - 40px));
  max-width: 100%;
  margin-inline: auto;
}

.front-page__content > .alignwide {
  width: min(1200px, calc(100% - 40px));
  max-width: none;
}

.front-page__content > .alignfull,
.front-page__content > .section {
  width: 100%;
  max-width: none;
}

.front-page__content > :first-child:not(.alignfull, .section) {
  margin-top: var(--wp--preset--spacing--xl);
}

.front-page__content > :last-child:not(.alignfull, .section) {
  margin-bottom: var(--wp--preset--spacing--xl);
}

@media (max-width: 768px) {
  .front-page__content > :first-child:not(.alignfull, .section) {
    margin-top: var(--wp--preset--spacing--lg);
  }

  .front-page__content > :last-child:not(.alignfull, .section) {
    margin-bottom: var(--wp--preset--spacing--lg);
  }
}

/* CTA */

.cta {
  text-align: center;
}

.cta__title {
  margin-bottom: var(--wp--preset--spacing--sm);
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 700;
}

.cta__text {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--wp--preset--spacing--md);
  color: var(--wp--preset--color--muted);
}

/* Archive */

.archive__header {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--wp--preset--spacing--lg);
  text-align: center;
}

.archive__heading {
  margin-bottom: var(--wp--preset--spacing--sm);
}

.archive__description {
  color: var(--wp--preset--color--muted);
}

.archive__query {
  margin-block-start: 0;
}

.archive .wp-block-post-template,
.archive .wp-block-post-template.is-layout-grid,
.archive__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wp--preset--spacing--md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive .wp-block-post {
  margin: 0;
}

.archive__item {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: var(--wp--preset--spacing--md);
  align-items: start;
  box-sizing: border-box;
}

.archive__image {
  margin: 0;
}

.archive__image img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.archive__content {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--xs);
}

.archive__content > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.archive__date {
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--sm);
  text-align: left;
}

.archive__post-title {
  font-size: var(--wp--preset--font-size--lg);
  text-align: left;
}

.archive__post-title a {
  color: inherit;
  text-decoration: none;
}

.archive__excerpt .wp-block-post-excerpt__excerpt {
  margin: 0;
  color: var(--wp--preset--color--muted);
}

.archive__excerpt {
  margin: 0;
  color: var(--wp--preset--color--muted);
  text-align: left;
}

.archive__link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: var(--wp--preset--spacing--xs);
  margin-left: auto;
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  text-decoration: none;
}

.archive .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--wp--preset--spacing--xs);
  margin-top: var(--wp--preset--spacing--lg);
}

.archive .pagination .page-numbers,
.archive .pagination .wp-block-query-pagination-previous,
.archive .pagination .wp-block-query-pagination-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
  color: var(--wp--preset--color--text);
  text-decoration: none;
}

.archive .pagination .page-numbers.current {
  border-color: var(--wp--preset--color--primary);
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
}

.archive__empty {
  max-width: 640px;
  margin-inline: auto;
  margin-top: var(--wp--preset--spacing--lg);
  text-align: center;
}

.archive__search-form {
  max-width: 640px;
  margin: var(--wp--preset--spacing--md) auto 0;
}

@media (max-width: 768px) {
  .archive__header {
    margin-bottom: var(--wp--preset--spacing--md);
  }

  .archive__item {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--sm);
  }

  .archive__image img {
    height: auto;
  }

  .archive .pagination {
    gap: 8px;
  }
}

/* Page */

.page-entry__header {
  margin-bottom: var(--wp--preset--spacing--lg);
}

.page-entry__title {
  margin: 0;
  font-size: var(--wp--preset--font-size--2-xl);
  line-height: 1.25;
}

.page-entry__content > * {
  width: min(760px, calc(100% - 40px));
  max-width: 100%;
  margin-inline: auto;
  margin-block-start: 0;
  margin-block-end: var(--wp--preset--spacing--md);
}

.page-entry__content > .alignwide {
  width: min(1200px, calc(100% - 40px));
  max-width: none;
}

.page-entry__content > .alignfull,
.page-entry .page-entry__content > .section {
  width: 100%;
  max-width: none;
}

.page-entry__content > *:last-child {
  margin-block-end: 0;
}

.page-entry .page-entry__content > .hero--fullscreen {
  width: 100%;
  max-width: none;
}

.page-entry .page-entry__content > .section {
  width: 100%;
  max-width: none;
}

.page-entry__content h2,
.page-entry__content h3,
.page-entry__content h4 {
  margin-block-start: var(--wp--preset--spacing--lg);
  margin-block-end: var(--wp--preset--spacing--sm);
  line-height: 1.35;
}

.page-entry__content p,
.page-entry__content li {
  line-height: 1.9;
}

.page-entry__content blockquote {
  padding-left: var(--wp--preset--spacing--md);
  border-left: 4px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--muted);
}

.page-entry__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.page-entry__content .wp-block-table {
  overflow-x: auto;
}

.page-entry__content table {
  width: 100%;
}

@media (max-width: 768px) {
  .page-entry__header {
    margin-bottom: var(--wp--preset--spacing--md);
  }

  .page-entry__title {
    font-size: var(--wp--preset--font-size--xl);
  }
}

/* Single */

.single-entry__header {
  margin-bottom: var(--wp--preset--spacing--md);
  text-align: left;
}

.single-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--xs);
  margin-bottom: var(--wp--preset--spacing--sm);
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--sm);
}

.single-entry__date,
.single-entry__categories {
  margin: 0;
}

.single-entry__categories a {
  color: inherit;
}

.single-entry__title {
  margin: 0;
  font-size: var(--wp--preset--font-size--2-xl);
  line-height: 1.25;
}

.single-entry__content {
  margin-top: var(--wp--preset--spacing--lg);
}

.single-entry__content > * {
  margin-block-start: 0;
  margin-block-end: var(--wp--preset--spacing--md);
}

.single-entry__content > *:last-child {
  margin-block-end: 0;
}

.single-entry__content h2,
.single-entry__content h3,
.single-entry__content h4 {
  margin-block-start: var(--wp--preset--spacing--lg);
  margin-block-end: var(--wp--preset--spacing--sm);
  line-height: 1.35;
}

.single-entry__content p,
.single-entry__content li {
  line-height: 1.9;
}

.single-entry__content blockquote {
  padding-left: var(--wp--preset--spacing--md);
  border-left: 4px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--muted);
}

.single-entry__content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.single-entry__content table {
  width: 100%;
}

.single-entry__footer {
  margin-top: var(--wp--preset--spacing--xl);
}

.single-entry__navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--wp--preset--spacing--md);
  margin-bottom: var(--wp--preset--spacing--lg);
}

.single-entry__previous,
.single-entry__next {
  overflow-wrap: anywhere;
}

.single-entry__next {
  text-align: right;
}

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

/* Search and 404 */

.search-form {
  display: flex;
  align-items: flex-end;
  gap: var(--wp--preset--spacing--xs);
  width: 100%;
}

.search-form label {
  flex: 1;
  margin: 0;
}

.search-form .search-field {
  margin: 0;
}

.search-form .search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--wp--preset--color--base);
  background: var(--wp--preset--color--primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.error-page__inner {
  text-align: center;
}

.error-page__code {
  margin: 0 0 var(--wp--preset--spacing--xs);
  color: var(--wp--preset--color--primary);
  font-size: clamp(64px, 14vw, 120px);
  font-weight: 700;
  line-height: 1;
}

.error-page__title {
  margin-bottom: var(--wp--preset--spacing--sm);
  font-size: var(--wp--preset--font-size--2-xl);
}

.error-page__text {
  margin-bottom: var(--wp--preset--spacing--md);
  color: var(--wp--preset--color--muted);
}

.error-page__search {
  max-width: 640px;
  margin-inline: auto;
}

.error-page__action {
  margin: var(--wp--preset--spacing--md) 0 0;
}

.entry-empty__title {
  margin-bottom: var(--wp--preset--spacing--xs);
}

@media (max-width: 768px) {
  .single-entry__title {
    font-size: var(--wp--preset--font-size--xl);
  }

  .single-entry__meta {
    align-items: flex-start;
  }

  .single-entry__content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .single-entry__navigation {
    grid-template-columns: 1fr;
  }

  .single-entry__next {
    text-align: left;
  }

  .single-entry__back,
  .single-entry__back .wp-block-button,
  .single-entry__back .wp-block-button__link {
    width: 100%;
  }

  .error-page__title {
    font-size: var(--wp--preset--font-size--xl);
  }
}

@media (max-width: 600px) {
  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form .search-submit {
    width: 100%;
  }
}

/* Blog */

.blog-section .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--wp--preset--spacing--md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-section .wp-block-post {
  height: 100%;
}

.blog__item {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.blog__image {
  margin: 0 0 var(--wp--preset--spacing--sm);
}

.blog__image img {
  width: 100%;
  border-radius: var(--radius-md);
}

.blog__content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog__date {
  margin: 0 0 var(--wp--preset--spacing--xs);
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--sm);
}

.blog__title {
  margin-bottom: var(--wp--preset--spacing--xs);
}

.blog__title a {
  color: inherit;
  text-decoration: none;
}

.blog__excerpt {
  margin: 0;
}

.blog__excerpt .wp-block-post-excerpt__excerpt {
  margin: 0;
}

.blog__actions {
  justify-content: center;
  margin-top: var(--wp--preset--spacing--lg);
}

@media (max-width: 768px) {
  .blog-section .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .blog-section .wp-block-post {
    height: auto;
  }

  .blog__item {
    height: auto;
  }

  .blog__actions,
  .blog__actions .wp-block-button,
  .blog__actions .wp-block-button__link {
    width: 100%;
  }
}

/* Contact */

.contact__list {
  align-items: stretch;
}

.contact__list > .contact__item {
  margin-block-start: 0;
}

.contact__item {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.contact__value {
  margin: var(--wp--preset--spacing--sm) 0 0;
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact__note {
  margin-top: var(--wp--preset--spacing--xs);
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--sm);
}

.contact__actions {
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding-top: var(--wp--preset--spacing--md);
}

@media (max-width: 768px) {
  .contact .section__lead {
    font-size: var(--wp--preset--font-size--md);
  }

  .contact .section__body {
    margin-block-start: var(--wp--preset--spacing--md);
  }

  .contact__list {
    align-items: start;
  }

  .contact__item {
    gap: 8px;
    height: auto;
    min-height: 0;
    padding: 24px 20px;
  }

  .contact__item > * {
    margin: 0;
  }

  .contact__item .card__title {
    margin: 0 0 4px;
  }

  .contact__item .card__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
  }

  .contact__note {
    margin: 0;
    font-size: 15px;
  }

  .contact__actions {
    width: 100%;
    margin: 0;
    padding-top: 12px;
  }

  .contact__actions,
  .contact__actions .wp-block-button,
  .contact__actions .wp-block-button__link {
    width: 100%;
  }

  .contact__actions .wp-block-button__link {
    min-height: 48px;
    padding-block: 10px;
  }
}

/* Flow */

.flow__list {
  align-items: stretch;
}

.flow__list > .flow__item {
  margin-block-start: 0;
}

.flow__item {
  height: 100%;
  box-sizing: border-box;
  padding: var(--wp--preset--spacing--md);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
  background: var(--wp--preset--color--base);
}

.flow__number {
  display: inline-block;
  margin-bottom: var(--wp--preset--spacing--xs);
  color: var(--wp--preset--color--primary);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  line-height: 1.4;
}

.flow--stack .flow__list {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  grid-template-columns: 1fr;
}

.flow--stack .flow__item {
  height: auto;
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  column-gap: var(--wp--preset--spacing--md);
  row-gap: var(--wp--preset--spacing--xs);
  align-items: start;
  padding-block: var(--wp--preset--spacing--sm);
}

.flow--stack .flow__number {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
}

.flow--stack .flow__item > h3 {
  grid-column: 2;
  margin: 0;
}

.flow--stack .flow__item > p:not(.flow__number) {
  grid-column: 2;
  margin: 0;
}

@media (max-width: 900px) {
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .flow--stack .flow__item {
    display: block;
  }

  .flow--stack .flow__number {
    margin-bottom: var(--wp--preset--spacing--xs);
  }

  .flow--stack .flow__item > h3 {
    margin-bottom: var(--wp--preset--spacing--xs);
  }
}

/* FAQ */

.faq__list {
  display: grid;
  gap: var(--wp--preset--spacing--sm);
  max-width: 860px;
  margin-inline: auto;
}

.faq__list > .faq__item {
  margin-block-start: 0;
}

.faq__item {
  padding: var(--wp--preset--spacing--md);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-md);
  background: var(--wp--preset--color--base);
}

.faq__question {
  margin: 0 0 var(--wp--preset--spacing--xs);
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
}

.faq__answer {
  margin: 0;
  color: var(--wp--preset--color--muted);
}


/* Table */

.table-scroll {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--wp--preset--spacing--sm);
  border: 1px solid var(--wp--preset--color--border);
  text-align: left;
  vertical-align: top;
}

.table th {
  background: var(--wp--preset--color--surface);
  font-weight: 700;
}

.table--30-70 th:first-child,
.table--30-70 td:first-child {
  width: 30%;
}

.table--20-80 th:first-child,
.table--20-80 td:first-child {
  width: 20%;
}

.table--25-25-50 th:nth-child(1),
.table--25-25-50 td:nth-child(1),
.table--25-25-50 th:nth-child(2),
.table--25-25-50 td:nth-child(2) {
  width: 25%;
}

.table--25-25-50 th:nth-child(3),
.table--25-25-50 td:nth-child(3) {
  width: 50%;
}

.table--equal {
  table-layout: fixed;
}
