/* Silo skins: sizing + overlays; palette from inline --silo-* on body */

:root {
  --silo-radius: 4px;
  --silo-shadow: none;
}

body.silo-active {
  font-family: var(--silo-google-font), system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--silo-page-bg) !important;
  color: var(--silo-body-color);
}

body.silo-active .quote .inner,
body.silo-active .quote-cat .inner {
  border-radius: var(--silo-card-radius);
  box-shadow: var(--silo-card-shadow);
  border: var(--silo-card-border);
  overflow: hidden;
  background: var(--silo-card-shell-bg, transparent);
}

body.silo-style-tech .quote .inner {
  background: #ffffff !important;
}
body.silo-style-tech.quote-page-wrap .quote .inner {
  background: transparent !important;
}

/* Quote card layering: filter stays on visuals only */
.silo-quote-card.text {
  position: relative;
  overflow: hidden;
  border-radius: var(--silo-card-radius);
}

.silo-visual {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  z-index: 0;
  transform: scale(1.02);
}

.silo-quote-card.text::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--silo-overlay-tint);
  z-index: 1;
  pointer-events: none;
}

.silo-quote-inner {
  position: relative;
  z-index: 2;
}

body.silo-style-minimal .quote .inner .text {
  border-bottom: 2px solid #111 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.silo-style-portal .item-quote-cat .inner .text,
body.silo-style-portal .item-search-result .inner .text {
  min-height: 120px;
}

body.silo-style-portal.silo-quote-list .item-quote-cat,
body.silo-style-portal.silo-quote-list .item-search-result {
  border-bottom: 1px solid #dfe6e9;
  margin-bottom: 10px !important;
}

body.silo-style-rustic .quote .inner {
  padding-bottom: 6px;
}

body.silo-style-heritage .header,
body.silo-style-heritage {
  background-color: inherit;
}

.silo-banner {
  background-size: cover;
  background-position: center center;
}

.silo-banner-gradient {
  background-image: linear-gradient(120deg, var(--silo-primary) 0%, var(--silo-secondary) 100%);
}

.cookie-silo-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 14px 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 3px solid var(--silo-primary);
  background: rgba(250, 250, 250, 0.97);
  color: var(--silo-legible-on-cookie-bg, #1a1a1a);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
  font-size: 14px;
}

.cookie-silo-bar.is-visible {
  display: flex;
}

.cookie-silo-bar button {
  background: var(--silo-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--silo-radius);
  font-weight: 600;
}

body.silo-cookie-lock .scrollup {
  bottom: 86px !important;
}

/* Kill main.css table header (.header .inner { display:table }) — breaks 3-column silo layout */
body.silo-active .header.silo-main-header .inner.silo-header-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  width: 100% !important;
  height: auto !important;
}

body.silo-active .header.silo-main-header .logo,
body.silo-active .header.silo-main-header .search-area {
  display: block !important;
  float: none !important;
}

/* Header: brand (left) · search (right); menu sits in .silo-nav-megabar below */
.header.silo-main-header {
  padding-top: 16px !important;
  padding-bottom: 12px !important;
}
.silo-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.silo-header-row > [class*='col-'] {
  margin-bottom: 12px;
}
.silo-brand-block .silo-brand {
  justify-content: flex-start;
}
body.silo-active .header.silo-main-header .logo img,
.silo-brand-block img {
  max-height: 52px !important;
  height: auto !important;
  width: auto !important;
}
body.silo-active .nav.silo-nav-megabar {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.silo-active .nav.silo-nav-megabar .menu-container {
  width: 100%;
}

body.silo-active .nav.silo-nav-megabar .menu > ul {
  justify-content: center;
}

@media (min-width: 992px) {
  body.silo-active .nav.silo-nav-megabar .menu > ul > li > a {
    padding: 0.75em 12px !important;
    font-size: 13px;
  }
}

.silo-search-block .navbar-form,
.silo-search-form-h {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
}

@media (min-width: 768px) {
  .silo-search-form-h {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .silo-search-form-h .form-group {
    flex: 1 1 auto;
    margin-bottom: 0 !important;
    min-width: 0;
  }

  .silo-search-form-h .btn {
    flex: 0 0 auto;
  }
}

.silo-search-block .form-group {
  flex: 1 1 auto;
  min-width: 140px;
  margin-bottom: 0 !important;
}
.silo-search-block .form-control.search-top {
  width: 100% !important;
}

body.silo-active .quote .share {
  display: none !important;
}

/* Hide common injected sharing/floating widgets (admin "before body" snippets) */
body.silo-active .a2a_kit,
body.silo-active .a2a_full_footer,
body.silo-active iframe[src*="addthis"],
body.silo-active .sfsi_floater,
body.silo-active #sfsi_floater {
  display: none !important;
}
.silo-footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}
.silo-footer-legal-links a {
  color: #ecf0f1;
  text-decoration: none;
  border-bottom: 1px solid rgba(236, 240, 241, 0.35);
}
.silo-footer-legal-links a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

body.silo-active a.scrollup {
  width: 50px;
  height: 50px;
  line-height: 46px !important;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 50%;
  background: var(--silo-primary) !important;
  border: 4px solid var(--silo-primary) !important;
  opacity: 0.8;
}

body.silo-active a.scrollup:hover {
  opacity: 1;
}

body.silo-active .header .silo-brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: var(--silo-secondary, #c5a059);
  flex-shrink: 0;
}

body.silo-active .silo-carousel-chevron {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

body.silo-active .silo-entity-label {
  font-weight: 600;
}

body.silo-active .breadcrumb .silo-bc-muted {
  color: inherit;
}

/* Homepage: quotation cards use distinct per-domain accent (timuf orange, etc.) */
body.silo-home .quote.quote-cat .inner .text h3 a,
body.silo-home .quote.quote-cat .inner .text h3.transparent-background a {
  color: var(--silo-quote-accent, #ff7043) !important;
}

body.silo-home .quote.quote-cat .inner .text h3 a:hover {
  filter: brightness(1.06);
}

body.silo-home .headline h2 {
  color: var(--silo-quote-accent, #333) !important;
}

body.silo-home .headline h3 {
  color: inherit;
  opacity: 0.92;
}
