/* Elegant page polish: Contact, Blogs, RGB, logo, no blue chrome */

/* Native header brand — SVG icon + text, ZERO card/plate */
.brand,
.brand.brand-native,
a.brand-native {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: none !important;
  text-decoration: none !important;
  line-height: 1 !important;
}
.brand:hover,
.brand-native:hover {
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.brand-ico {
  display: block !important;
  width: 42px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}
.brand-word {
  display: inline-flex !important;
  align-items: baseline;
  font-family: "Segoe UI", "Arial Black", system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.brand-word .bw-a { color: #141414 !important; }
.brand-word .bw-b { color: #ff6b1a !important; }
/* Kill old PNG logo card styles */
.brand-logo-img,
.brand.brand-logo .brand-logo-img { display: none !important; }
.brand-mark,
.brand-text::before { display: none !important; content: none !important; }

@media (max-width: 640px) {
  .brand-ico { width: 34px !important; height: 30px !important; }
  .brand-word { font-size: 11px !important; letter-spacing: 0.08em !important; }
}

/* Kill Tool desk leftovers */
.home-intro-kicker,
.home-intro-kicker,
.tool-desk-label { display: none !important; }

/* No browser blue */
.breadcrumb a,
.full-form strong,
.lead strong,
a { color: #1a1a1a; }
.breadcrumb a:hover,
a:hover { color: #ff6b1a; }
.full-form strong { color: #ff6b1a !important; font-weight: 800; }
input[type="checkbox"],
input[type="radio"] {
  accent-color: #ff6b1a !important;
}
input[type="range"] {
  accent-color: #ff6b1a !important;
}

/* Page heroes (Contact / Blogs) — no SUPPORT / category kickers */
.page-kicker {
  display: none !important;
}
.contact-page .page-hero,
.blog-page .page-hero,
.blog-hero {
  padding: 28px 0 8px;
}
.contact-page .static-center > h1,
.blog-page .static-center > h1,
.blog-hero h1 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.contact-page .lead,
.blog-page .lead {
  font-size: 16px;
  color: #555;
  max-width: 52ch;
}

/* Contact layout */
.contact-grid {
  display: grid !important;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
  align-items: start;
  margin-top: 8px;
}
.contact-card {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  border-radius: 14px !important;
  padding: 24px 26px 28px !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.05) !important;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff6b1a, #111);
}
.contact-card h2 {
  margin: 0 0 18px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  border: 0 !important;
  padding: 0 !important;
}
.form-stack {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}
.form-stack label {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin: 0;
}
.form-stack input,
.form-stack textarea {
  width: 100%;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-stack input:focus,
.form-stack textarea:focus {
  outline: none;
  background: #fff;
  border-color: #ff6b1a;
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.15);
}
.contact-checklist {
  margin: 0 0 18px;
  padding: 0 0 0 18px;
  line-height: 1.7;
  color: #333;
}
.contact-meta .meta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px;
}
.contact-meta a { font-weight: 600; }
.text-link {
  color: #ff6b1a !important;
  font-weight: 700;
  text-decoration: none !important;
}
.text-link:hover { text-decoration: underline !important; }
.btn-lg {
  padding: 11px 22px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

/* Blogs */
.blog-cat-block {
  margin: 0 0 36px;
}
.blog-cat-block h2 {
  font-size: 20px !important;
  font-weight: 800 !important;
  margin: 0 0 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e8e8e8 !important;
  position: relative;
}
.blog-cat-block h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b1a, #ffb067);
  border-radius: 2px;
}
.blog-card,
.grid-3 .blog-card,
.grid-3 > a {
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  overflow: hidden;
}
.blog-card:hover,
.grid-3 > a:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.09) !important;
  border-color: rgba(255, 107, 26, 0.3) !important;
}

/* RGB / color tools — light headers, spaced buttons, orange sliders */
.color-ui-page .rt-tool-h,
.color-page-tools .rt-tool-h,
.mixer-block .rt-tool-h {
  background: #f6f6f6 !important;
  color: #111 !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  box-shadow: inset 0 -3px 0 #ff6b1a !important;
  font-size: 14px !important;
  letter-spacing: 0.02em;
}
.color-ui-page .cp-row,
.color-ui-page .web-palette,
.color-ui-page .mixer-block,
.color-ui-page .palette-fields {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  padding: 14px;
}
.cp-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 10px !important;
}
.cp-actions button,
.cp-actions .btn {
  margin: 0 !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-weight: 700 !important;
  min-width: 110px;
}
.cp-actions .btn-secondary {
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
}
.cp-actions .btn-secondary:hover {
  background: #ff6b1a !important;
}
.sg-swatch:hover {
  outline-color: #ff6b1a !important;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr !important; }
}

/* Contact HTML class aliases */
.contact-grid {
  display: grid !important;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
  align-items: start;
}
.contact-card {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.07) !important;
  border-radius: 14px !important;
  padding: 24px 26px 28px !important;
  box-shadow: 0 10px 32px rgba(0,0,0,0.05) !important;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #ff6b1a, #111);
}
.form-stack { display: grid; gap: 6px; margin: 0 0 14px; }
.form-stack label { font-size: 13px; font-weight: 700; color: #222; margin: 0; }
.form-stack input,
.form-stack textarea {
  width: 100%; border: 1px solid #d5d5d5; border-radius: 8px;
  padding: 10px 12px; font: inherit; font-size: 14px; background: #fafafa;
}
.form-stack input:focus,
.form-stack textarea:focus {
  outline: none; background: #fff; border-color: #ff6b1a;
  box-shadow: 0 0 0 3px rgba(255,107,26,0.15);
}
.contact-checklist { margin: 0 0 18px; padding: 0 0 0 18px; line-height: 1.7; }
.contact-meta .meta-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #888; margin-bottom: 4px;
}
.text-link { color: #ff6b1a !important; font-weight: 700; text-decoration: none !important; }
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr !important; }
}

/* Hide any Tool desk / Tool desk labels */
.home-intro-kicker,
[class*="tool-desk"],
.home-intro > .kicker { display: none !important; }

/* Final RGB polish lock */
.rt-tool-h {
  background: #f5f5f5 !important;
  color: #111 !important;
  box-shadow: inset 0 -3px 0 #ff6b1a !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  margin: 0 0 0 !important;
}
.cp-actions {
  gap: 12px !important;
  margin-top: 12px !important;
}
.cp-actions .btn + .btn,
.cp-actions button + button {
  margin-left: 0 !important;
}
.home-intro-kicker,
.home-intro-kicker,
div.home-intro-kicker { display: none !important; height: 0 !important; overflow: hidden !important; }

/* Strict: logo is part of header — never a floating card */
.site-header .brand,
.site-header .brand.brand-logo,
.header-inner .brand {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  filter: none !important;
}
.site-header .brand-logo-img,
.header-inner .brand-logo-img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 40px !important;
  width: auto !important;
  max-width: min(220px, 48vw) !important;
  object-fit: contain !important;
  vertical-align: middle;
}

/* —— Header Search button + modal popup —— */
.header-search-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin: 0;
  padding: 7px 14px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #ffb067 0%, #ff6b1a 48%, #ff4d00 100%);
  box-shadow: 0 3px 10px rgba(255, 107, 26, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.header-search-open:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(255, 107, 26, 0.45);
}
.header-search-open:focus-visible {
  outline: 2px solid #ff6b1a;
  outline-offset: 2px;
}
.nav-toggle {
  display: none;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #222;
  cursor: pointer;
}

.search-modal[hidden] { display: none !important; }
.search-modal.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 10050;
}
.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(2px);
}
.search-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 24px));
  max-height: min(78vh, 640px);
  margin: 10vh auto 0;
  padding: 18px 18px 14px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: wacSearchIn 0.18s ease-out;
}
@keyframes wacSearchIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.search-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.search-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #141414;
  letter-spacing: -0.02em;
}
.search-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f3f3f3;
  color: #333;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.search-modal-close:hover { background: #ebebeb; color: #ff6b1a; }
.search-modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  background: #fafafa;
}
.search-modal-input:focus {
  outline: none;
  border-color: #ff6b1a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.18);
}
.search-modal-results {
  overflow: auto;
  max-height: min(42vh, 360px);
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}
.search-hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  text-decoration: none !important;
  color: #1a1a1a !important;
  border-bottom: 1px solid #f0f0f0;
}
.search-hit:last-child { border-bottom: 0; }
.search-hit:hover,
.search-hit:focus {
  background: rgba(255, 107, 26, 0.08);
  color: #ff6b1a !important;
}
.search-hit-title { font-weight: 700; font-size: 14px; }
.search-hit-type {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}
.search-empty {
  padding: 18px 14px;
  font-size: 14px;
  color: #666;
  text-align: center;
}
.search-modal-hint {
  margin: 0;
  font-size: 12px;
  color: #888;
}
body.search-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; margin-left: auto; }
  .header-search-open { order: 2; }
  .site-nav {
    display: none !important;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid #eee;
  }
  .site-nav.is-open { display: flex !important; }
  .site-nav a {
    padding: 10px 4px !important;
    border-bottom: 1px solid #f2f2f2;
  }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .header-search-open span { display: none; }
  .header-search-open { padding: 8px 10px; }
  .search-modal-panel {
    width: calc(100vw - 16px);
    margin: 6vh auto 0;
    max-height: 88vh;
    padding: 14px;
  }
  .brand-word { letter-spacing: 0.06em !important; }
}

@media (prefers-reduced-motion: reduce) {
  .search-modal-panel { animation: none; }
  .header-search-open { transition: none; }
}

/* Privacy / Terms / static legal pages — clear separate section cards */
body.static-page .seo-article.wac-section-host,
body.static-page .seo-article[data-wac-sectioned="1"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.static-page .seo-article .wac-section {
  background: #fff !important;
  border: 1px solid #e4e4e4 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
  padding: 18px 20px 20px !important;
  margin: 0 !important;
  color: #1a1a1a !important;
  position: relative;
  overflow: hidden;
}
body.static-page .seo-article .wac-section::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 4px !important;
  background: linear-gradient(180deg, #ffb067, #ff6b1a) !important;
  opacity: 1 !important;
}
body.static-page .seo-article .wac-section > h2:first-child {
  margin-top: 0 !important;
  color: #111 !important;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 12px !important;
}
body.static-page .seo-article .wac-section p,
body.static-page .seo-article .wac-section li,
body.static-page .seo-article .wac-section summary {
  color: #333 !important;
  line-height: 1.7;
}

/* Category / hub SEO blocks — always centered under the grid */
.section-tight > .container.seo-article,
.section > .container.seo-article,
.container.seo-article,
.container.seo-article.wac-section-host {
  margin-left: auto !important;
  margin-right: auto !important;
  width: min(100% - 32px, var(--max, 1100px)) !important;
  max-width: var(--max, 1100px) !important;
  float: none !important;
}

/* Footer: never show nested inner card */
.site-footer,
#site-footer {
  background: #111 !important;
  border-top: 3px solid #ff6b1a !important;
  box-shadow: none !important;
}
.site-footer .footer-bottom,
#site-footer .footer-bottom {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.site-footer .footer-bottom::before,
#site-footer .footer-bottom::before {
  content: none !important;
  display: none !important;
}
