/*
 * FreeSpinMachine - safe visual refresh (palette + surfaces)
 */
:root {
  --fsm-page-bg: #e8ecf0;
  --fsm-page-bg-gradient: linear-gradient(180deg, #eef1f5 0%, #e6eaef 100%);
  --fsm-header-bg: linear-gradient(
    165deg,
    #151d2c 0%,
    #101722 42%,
    #0b1018 100%
  );
  --fsm-header-edge: rgba(255, 255, 255, 0.09);
  --fsm-footer-bg: linear-gradient(
    180deg,
    #121a28 0%,
    #0c121c 55%,
    #070b11 100%
  );
  --theme-palette-color-1: #0d9488;
  --theme-palette-color-2: #0f766e;
  --theme-palette-color-3: #64748b;
  --theme-palette-color-4: #0f172a;
  --theme-palette-color-5: #ecfdf5;
  --theme-palette-color-6: #f1f5f9;
  --theme-palette-color-7: #f2f4f7;
  --theme-palette-color-8: #ffffff;
  --theme-text-color: #334155;
  --theme-heading-color: #0f172a;
  --theme-link-initial-color: #0d9488;
  --theme-link-hover-color: #0f766e;
  --theme-link-active-color: #0f766e;
  --theme-border-color: rgba(15, 23, 42, 0.08);
  --theme-box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

html {
  background-color: var(--fsm-page-bg) !important;
}

body {
  background: var(--fsm-page-bg-gradient) !important;
  background-color: var(--fsm-page-bg) !important;
  color: var(--theme-text-color);
}

#header.ct-header,
.ct-header {
  background: var(--fsm-header-bg) !important;
  background-color: #101722 !important;
  border-bottom: 1px solid var(--fsm-header-edge);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 4px 24px rgba(0, 0, 0, 0.28);
}

.ct-header .site-title a,
.ct-header .site-title,
#header-menu-1 .menu > li > a.ct-menu-link,
.ct-header .ct-header-search .ct-icon {
  color: #e8edf5 !important;
}

#header-menu-1 .menu > li > a.ct-menu-link:hover,
#header-menu-1 .sub-menu a.ct-menu-link:hover,
.ct-header .site-title a:hover {
  color: #7ee8dc !important;
}

#header-menu-1 .sub-menu {
  background: #121a28 !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

#header-menu-1 .sub-menu a.ct-menu-link {
  color: #e8edf5 !important;
}

.ct-panel,
.ct-search-results {
  background: var(--theme-palette-color-8) !important;
}

.entry-card.card-content,
article.entry-card {
  background: var(--theme-palette-color-8) !important;
  border: 1px solid var(--theme-border-color) !important;
  border-radius: 10px !important;
  box-shadow: var(--theme-box-shadow) !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.entry-card.card-content:hover {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1) !important;
  border-color: rgba(13, 148, 136, 0.25) !important;
}

.entry-title a,
.entry-title {
  color: var(--theme-heading-color) !important;
}

.entry-title a:hover {
  color: var(--theme-link-hover-color) !important;
}

.hero-section {
  background: linear-gradient(180deg, #eef1f5 0%, #e4e9ee 100%) !important;
  border-bottom: 1px solid var(--theme-border-color);
}

.site-footer,
footer.ct-footer {
  background: var(--fsm-footer-bg) !important;
  background-color: #0c121c !important;
  color: #cbd5e1 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.site-footer a,
.ct-footer a {
  color: #5eead4 !important;
}

.site-footer a:hover,
.ct-footer a:hover {
  color: #99f6e4 !important;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea,
select {
  border-color: #cbd5e1 !important;
  border-radius: 8px !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--theme-palette-color-1) !important;
  outline: 2px solid rgba(13, 148, 136, 0.25) !important;
  outline-offset: 0;
}

.entry-content a {
  color: var(--theme-link-initial-color);
  text-underline-offset: 2px;
}

.entry-content a:hover {
  color: var(--theme-link-hover-color);
}

.ct-panel[data-behaviour*="offcanvas"] .mobile-menu a.ct-menu-link {
  color: #e8edf5 !important;
}
/* Archive / news cards: Blocksy .boundless-image uses calc(100% + padding) + negative margins — causes horizontal overflow. Reset to in-card sizing. */
.entries .entry-card,
.entries[data-archive="default"] .entry-card {
  min-width: 0;
  overflow: hidden;
}
.entries .entry-card .ct-media-container.boundless-image,
.entry-card.card-content .ct-media-container.boundless-image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
}
.entries .entry-card .boundless-image img,
.entry-card .boundless-image img.wp-post-image,
.entry-card .ct-media-container img.attachment-medium_large {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  object-fit: cover !important;
  object-position: center !important;
}
/* Related / other post grids using same card pattern */
.ct-related-posts .entry-card .boundless-image,
[data-products] .product .ct-media-container {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}
/* v9: desktop header — keep site title + menu + search on one vertical center line when window is narrow */
.ct-header [data-device="desktop"] [data-row="middle"] > .ct-container {
  align-items: center !important;
  align-content: center !important;
}
.ct-header [data-device="desktop"] [data-column="start"],
.ct-header [data-device="desktop"] [data-column="end"] {
  align-self: center !important;
  display: flex !important;
  align-items: center !important;
}
.ct-header [data-device="desktop"] .site-branding {
  align-items: center !important;
  min-height: 2.5rem !important;
}
.ct-header [data-device="desktop"] .site-branding .site-title a {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 2.5rem !important;
  display: inline-flex !important;
  align-items: center !important;
}
#header-menu-1 .menu {
  align-content: center !important;
  align-items: center !important;
}
#header-menu-1 .menu > li {
  align-items: center !important;
}

