:root {
  --calm-radius: var(--wp--custom--radius--md, 0.5rem);
  --calm-shadow-soft: var(--wp--custom--shadow--soft, 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.08));
  --calm-header-height: 72px;
  --calm-header-offset: var(--calm-header-height);
  --calm-nav-gap: 0.875rem;
  --calm-nav-font-size: 1.125rem;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.screen-reader-text.skip-link:focus,
.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  overflow: visible;
  background: var(--wp--preset--color--foreground);
  color: var(--wp--preset--color--background);
  border-radius: var(--calm-radius);
}

#wp--skip-link--target,
h1,
h2,
h3,
h4,
h5,
h6 {
  scroll-margin-top: calc(var(--calm-header-offset) + 1rem);
}

.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wp-site-blocks > .wp-block-group {
  box-sizing: border-box;
}

main.calm-content-shell,
.wp-site-blocks > .calm-content-shell {
  flex: 1 0 auto;
  width: 100%;
}

.calm-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--background);
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.calm-header__inner {
  min-height: var(--calm-header-height);
  width: 100%;
  padding-inline: 1rem;
  box-sizing: border-box;
}

.calm-header__inner.alignfull {
  max-width: none;
}

@media (min-width: 782px) {
  .calm-header-mode-fixed-glass .calm-header,
  .calm-header-mode-fixed-auto-hide .calm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  body.admin-bar.calm-header-mode-fixed-glass .calm-header,
  body.admin-bar.calm-header-mode-fixed-auto-hide .calm-header {
    top: 32px;
  }

  .calm-header-mode-fixed-glass .wp-site-blocks,
  .calm-header-mode-fixed-auto-hide .wp-site-blocks {
    box-sizing: border-box;
    padding-top: var(--calm-header-offset);
  }

  body.admin-bar.calm-header-mode-fixed-glass .wp-site-blocks,
  body.admin-bar.calm-header-mode-fixed-auto-hide .wp-site-blocks {
    padding-top: calc(var(--calm-header-offset) + 32px);
  }

  .calm-header-mode-fixed-glass .calm-header.is-scrolled,
  .calm-header-mode-fixed-auto-hide .calm-header.is-scrolled {
    background: color-mix(in srgb, var(--wp--preset--color--background) 84%, transparent);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }

  .calm-header-mode-fixed-auto-hide .calm-header.is-scrolled:not(.is-revealed) {
    opacity: 0;
    transform: translateY(-0.5rem);
    pointer-events: none;
  }

  .calm-header-mode-fixed-auto-hide .calm-header.is-revealed {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.calm-header .wp-block-columns {
  align-items: center;
}

.calm-header .wp-block-column {
  min-width: 0;
}

.calm-header .wp-block-column:first-child {
  flex: 0 1 auto;
}

.calm-header .wp-block-column:last-child {
  flex: 1 1 auto;
}

.calm-header .wp-block-columns > .wp-block-column:first-child {
  flex: 0 0 auto !important;
  width: auto !important;
  flex-basis: auto !important;
  max-width: none !important;
}

.calm-header .wp-block-columns > .wp-block-column:last-child {
  flex: 1 1 0% !important;
  width: auto !important;
  flex-basis: 0% !important;
  max-width: none !important;
}

.calm-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calm-header .calm-branding {
  gap: 0.75rem !important;
}

.calm-header .calm-branding > .wp-block-site-logo {
  flex: 0 0 auto;
  margin-right: 0 !important;
}

.calm-branding .wp-block-site-logo {
  line-height: 0;
}

.calm-header .calm-branding > .wp-block-group {
  margin: 0 !important;
}

.calm-header .calm-branding-text {
  --wp--style--block-gap: 0.05rem;
}

.calm-header .calm-branding > .wp-block-group {
  --wp--style--block-gap: 0.05rem;
}

.calm-branding .wp-block-site-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.calm-branding .wp-block-site-title a {
  color: var(--wp--preset--color--accent);
  text-decoration: none;
}

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

.calm-branding .wp-block-site-title {
  line-height: 1.1;
}

.calm-site-tagline {
  display: block !important;
  visibility: visible;
  opacity: 1;
  margin: 0;
  line-height: 1.2;
  color: color-mix(in srgb, var(--wp--preset--color--foreground) 78%, white);
}

.calm-header .wp-block-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  font-size: var(--calm-nav-font-size);
}

.calm-header .calm-header__nav-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.5rem, 1.2vw, 1rem);
}

.calm-header .calm-header__nav-row > .wp-block-navigation {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.calm-header .wp-block-navigation .wp-block-navigation__container {
  flex-wrap: nowrap;
  gap: var(--calm-nav-gap) !important;
  column-gap: var(--calm-nav-gap) !important;
}

.calm-header .wp-block-navigation .wp-block-navigation-item__content {
  white-space: nowrap;
  padding-inline: 0.125rem;
}

.wp-block-navigation .wp-block-navigation-item__content {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:focus {
  color: var(--wp--preset--color--accent);
}

.wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation-item.current_page_item > .wp-block-navigation-item__content,
.wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content {
  color: var(--wp--preset--color--accent);
}

body.is-style-ambronet .wp-block-navigation .wp-block-navigation-item__content {
  color: rgb(26, 35, 64);
}

.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--background);
}

.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
  padding: 1.25rem;
}

.wp-block-social-links:not(.is-style-pill-shape),
.wp-block-social-links.is-style-logos-only,
.wp-block-social-links.is-style-calm-minimal {
  color: inherit;
}

.wp-block-social-links:not(.is-style-pill-shape) .wp-social-link,
.wp-block-social-links.is-style-logos-only .wp-social-link,
.wp-block-social-links.is-style-calm-minimal .wp-social-link {
  background: transparent;
  background-color: transparent;
  color: inherit;
}

.wp-block-social-links:not(.is-style-pill-shape) .wp-block-social-link-anchor,
.wp-block-social-links.is-style-logos-only .wp-block-social-link-anchor,
.wp-block-social-links.is-style-calm-minimal .wp-block-social-link-anchor {
  color: currentColor;
}

.wp-block-social-links:not(.is-style-pill-shape) .wp-block-social-link-anchor:hover,
.wp-block-social-links:not(.is-style-pill-shape) .wp-block-social-link-anchor:focus,
.wp-block-social-links.is-style-logos-only .wp-block-social-link-anchor:hover,
.wp-block-social-links.is-style-logos-only .wp-block-social-link-anchor:focus,
.wp-block-social-links.is-style-calm-minimal .wp-block-social-link-anchor:hover,
.wp-block-social-links.is-style-calm-minimal .wp-block-social-link-anchor:focus {
  color: var(--wp--preset--color--accent);
}

.wp-block-social-links:not(.is-style-pill-shape) .wp-social-link:hover,
.wp-block-social-links:not(.is-style-pill-shape) .wp-social-link:focus-within,
.wp-block-social-links.is-style-logos-only .wp-social-link:hover,
.wp-block-social-links.is-style-logos-only .wp-social-link:focus-within,
.wp-block-social-links.is-style-calm-minimal .wp-social-link:hover,
.wp-block-social-links.is-style-calm-minimal .wp-social-link:focus-within {
  color: var(--wp--preset--color--accent);
}

/*
 * Make top-level full-width blocks inside post content break out of constrained
 * containers on the frontend. This complements the editor "Layout" controls.
 */
.calm-content-shell .wp-block-post-content > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@supports (width: 100dvw) {
  .calm-content-shell .wp-block-post-content > .alignfull {
    width: 100dvw;
    max-width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
  }
}

.calm-content-shell {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.calm-card,
.wp-block-post {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--calm-radius);
  background: var(--wp--preset--color--background);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.calm-panel-muted {
  border-radius: var(--calm-radius);
  background: var(--wp--preset--color--muted);
  border: 1px solid var(--wp--preset--color--border);
}

.wp-block-query .wp-block-post-template {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-block-query .wp-block-post-template > li {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--calm-radius);
  padding: 1.25rem;
  background: var(--wp--preset--color--background);
}

.wuppi-post-listing-query .wp-block-post-template > li {
  display: flex;
  align-items: stretch;
  margin-block-start: 0;
}

.wuppi-post-listing-query .wuppi-post-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

.wp-block-post-title a {
  text-decoration: none;
  color: inherit;
}

.wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent);
}

.wp-block-post-featured-image img {
  border-radius: var(--calm-radius);
  box-shadow: var(--calm-shadow-soft);
}

.wp-block-button__link {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border-color: var(--wp--preset--color--border);
  color: var(--wp--preset--color--foreground);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--muted);
}

.wp-block-separator {
  opacity: 0.6;
}

.calm-footer {
  border-top: 1px solid var(--wp--preset--color--border);
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--secondary-foreground);
}

.wp-block-template-part:has(> .calm-footer),
.wp-block-template-part:has(.calm-footer) {
  margin-block-start: 0;
}

.calm-footer__inner {
  width: 100%;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.calm-footer__inner.alignfull {
  max-width: none;
}

.calm-footer__columns {
  gap: 2rem;
}

.calm-footer__columns h2,
.calm-footer__columns h3,
.calm-footer__columns h4,
.calm-footer__columns h5,
.calm-footer__columns h6 {
  font-size: 1.125rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--wp--preset--color--secondary-foreground);
}

.calm-footer__columns p,
.calm-footer__columns li:not(.wp-social-link),
.calm-footer__columns a:not(.wp-block-social-link-anchor) {
  font-size: 0.95rem;
  color: var(--wp--preset--color--secondary-foreground);
}

.calm-footer__columns ul {
  margin: 0;
  padding-left: 1.15rem;
}

.calm-footer__columns .wp-block-social-links {
  list-style: none;
  padding-left: 0;
}

.calm-footer__socials .wp-block-social-link-anchor {
  color: var(--wp--preset--color--secondary-foreground);
}

.calm-footer__socials .wp-social-link {
  background: transparent;
}

.calm-footer__socials .wp-social-link:hover {
  background: color-mix(in srgb, var(--wp--preset--color--primary) 15%, transparent);
}

.calm-footer__bottom {
  border-top: 1px solid var(--wp--preset--color--border);
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.calm-footer__bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--wp--preset--color--secondary-foreground);
  text-align: right;
}

.calm-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.calm-footer__brand .wp-block-site-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.calm-footer__brand .wp-block-site-title {
  font-size: 0.95rem;
  margin: 0;
}

body.is-style-ambronet .calm-footer {
  background-color: #2f343d;
  color: #d7dbe2;
  border-top-color: #4c5260;
}

body.is-style-ambronet .calm-footer__columns p,
body.is-style-ambronet .calm-footer__columns h2,
body.is-style-ambronet .calm-footer__columns h3,
body.is-style-ambronet .calm-footer__columns h4,
body.is-style-ambronet .calm-footer__columns h5,
body.is-style-ambronet .calm-footer__columns h6,
body.is-style-ambronet .calm-footer__columns .wp-block-heading,
body.is-style-ambronet .calm-footer__columns li:not(.wp-social-link),
body.is-style-ambronet .calm-footer__columns a:not(.wp-block-social-link-anchor),
body.is-style-ambronet .calm-footer__bottom p,
body.is-style-ambronet .calm-footer__socials .wp-block-social-link-anchor {
  color: #d7dbe2;
}

body.is-style-ambronet .calm-footer a {
  color: #e3e6ec;
}

body.is-style-ambronet .calm-footer a:hover,
body.is-style-ambronet .calm-footer a:focus {
  color: #ffffff;
}

body.is-style-ambronet .calm-footer__bottom {
  border-top-color: #4c5260;
}

.calm-contact-pattern {
  --wp--style--block-gap: 1rem;
  --calm-contact-card-bg: color-mix(in srgb, var(--wp--preset--color--muted) 88%, var(--wp--preset--color--background));
  --calm-contact-title: color-mix(in srgb, var(--wp--preset--color--foreground) 96%, #334155);
  --calm-contact-text: color-mix(in srgb, var(--wp--preset--color--foreground) 92%, #334155);
  --calm-contact-icon-bg: color-mix(in srgb, var(--wp--preset--color--background) 74%, var(--wp--preset--color--muted));
  --calm-contact-icon: color-mix(in srgb, var(--wp--preset--color--accent) 50%, #94a3b8);
}

.calm-contact-pattern > .wp-block-heading {
  margin-bottom: 1rem;
}

.calm-contact-card {
  background-color: var(--calm-contact-card-bg);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.calm-contact-pattern .calm-contact-card h4 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.calm-contact-pattern .calm-contact-card .calm-contact-card__title {
  font-size: clamp(1.2rem, 1rem + 0.35vw, 1.45rem);
  line-height: 1.25;
  color: var(--calm-contact-title);
}

.calm-contact-pattern .calm-contact-card p {
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: var(--calm-contact-text);
}

.calm-contact-pattern .calm-contact-card li {
  color: var(--calm-contact-text);
}

.calm-contact-pattern .calm-contact-card.calm-contact-card--note p,
.calm-contact-pattern .calm-contact-card.calm-contact-card--note .wp-block-paragraph {
  color: var(--wp--preset--color--foreground);
}

.calm-contact-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: var(--calm-contact-icon-bg);
  color: var(--calm-contact-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calm-contact-pattern .wp-block-columns.is-not-stacked-on-mobile {
  align-items: flex-start;
}

.wp-block-comments {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wp--preset--color--border);
}

.wuppi-post-sidebar-layout {
  align-items: flex-start;
  gap: clamp(2rem, 4vw, 4rem);
}

.wuppi-post-sidebar-layout > .wp-block-column {
  min-width: 0;
}

.wuppi-post-sidebar-pattern {
  --wp--style--block-gap: 1rem;
}

.wuppi-post-sidebar-pattern .wp-block-query .wp-block-post-template {
  gap: 0;
}

.wuppi-post-sidebar-pattern .wp-block-query .wp-block-post-template > li {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.wuppi-post-sidebar__item {
  padding-block: 1rem;
  border-top: 1px solid var(--wp--preset--color--border);
}

.wuppi-post-sidebar-pattern .wp-block-post-template > li:first-child .wuppi-post-sidebar__item {
  padding-top: 0;
  border-top: 0;
}

.wuppi-post-sidebar-pattern .wp-block-post-template > li:last-child .wuppi-post-sidebar__item {
  padding-bottom: 0;
}

.wuppi-post-sidebar__item .wp-block-post-title,
.wuppi-post-sidebar__item .wp-block-post-date {
  margin: 0;
}

.wp-block-post-comments-form input:not([type="submit"]),
.wp-block-post-comments-form textarea,
.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-combobox .components-combobox-control__input {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--calm-radius);
}

.wc-block-grid__products .wc-block-grid__product,
.wc-block-components-product-name {
  color: var(--wp--preset--color--foreground);
}

.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  border-radius: var(--calm-radius);
}

.wc-block-components-notice-banner {
  border-radius: var(--calm-radius);
}

:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .wp-block-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 781px) {
  .calm-header {
    --calm-header-height: 64px;
  }

  body.calm-header-mobile-sticky-glass .calm-header {
    position: sticky;
    top: 0;
    z-index: 100001;
    background: color-mix(in srgb, var(--wp--preset--color--background) 92%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .calm-header__inner {
    padding-top: 0.75rem;
  }

  html.has-modal-open body.calm-header-mobile-sticky-glass .calm-header {
    background: var(--wp--preset--color--background);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  html.has-modal-open body.calm-header-mobile-sticky-glass .calm-header .wp-block-navigation__responsive-container.is-menu-open {
    inset: 0;
  }

  .calm-header .calm-header__nav-row {
    gap: 0.35rem;
  }

  .wuppi-post-sidebar__aside {
    margin-top: var(--wp--preset--spacing--60);
  }
}

@media (prefers-reduced-motion: reduce) {
  .calm-header {
    transition: none;
  }
}

/* ── Card block style (core/group) ─────────────────────────────────────── */

.wp-block-group.is-style-card {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  background-color: var(--wp--preset--color--card);
  padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}

/* ── Back to top button ─────────────────────────────────────────────────── */

.wuppi-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 50%;
  background: var(--wp--preset--color--background);
  color: var(--wp--preset--color--foreground);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Respect the hidden attribute before JS initialises. */
.wuppi-back-to-top[hidden] {
  display: none;
}

.wuppi-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wuppi-back-to-top:hover,
.wuppi-back-to-top:focus-visible {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
  border-color: var(--wp--preset--color--primary);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .wuppi-back-to-top {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .wuppi-back-to-top:hover,
  .wuppi-back-to-top:focus-visible {
    transform: none;
  }
}
