/* Helix layout rows preserve the approved full-width sections and support editor-added columns. */
main > section[id^="sp-"] { min-width: 0; }
main > section[id^="sp-"] > .container { max-width: 1320px; margin-inline: auto; }
main > section[id^="sp-"] .row { display: flex; flex-wrap: wrap; }
main > section[id^="sp-"] .row > * { width: 100%; min-width: 0; }
main > section[id^="sp-"] .sp-module-title { font: inherit; }
#sp-component > .sp-column > .wrap,
#sp-component > .sp-column > .com-content-article { width: min(calc(100% - 48px),1320px); margin-inline: auto; }
body[data-template="feedback"] main .com-contact { width: min(calc(100% - 32px),43rem); margin-inline: auto; padding-block: 24px 52px; }
@media (min-width: 761px) {
  main > section[id^="sp-"] .row > .col-lg-3 { width: 25%; }
  main > section[id^="sp-"] .row > .col-lg-4 { width: 33.3333%; }
  main > section[id^="sp-"] .row > .col-lg-6 { width: 50%; }
  main > section[id^="sp-"] .row > .col-lg-8 { width: 66.6667%; }
  main > section[id^="sp-"] .row > .col-lg-9 { width: 75%; }
}

/* Home */
body[data-template="home"] :is(#sp-home-products, #sp-home-news, #sp-home-contacts) .section {
  padding-block: clamp(44px, 5.8vw, 88px);
}
body[data-template="home"] #sp-home-products .products-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
#sp-home-products .background-product.prod-card {
  min-height: 203px !important;
  border-radius: 12px;
  --card-surface: #f0f3f5;
  --art-size: contain;
  --art-pos: center;
}
#sp-home-products .background-product.prod-card::before {
  inset: 17px 17px 17px auto;
  width: 39%; height: auto; border-radius: 8px; mask-image: none;
  background-size: var(--art-size); background-position: var(--art-pos);
}
#sp-home-products .background-product.prod-card::after { content: none; }
#sp-home-products .background-product.prod-card .prod-copy {
  max-width: 60% !important;
  padding: 20px clamp(14px, 2.3vw, 28px) 60px !important;
}
#sp-home-products .background-product.prod-card :is(p, .prod-note) { max-width: none; }
#sp-home-products .background-product.prod-card p { min-height: 0; }
#sp-home-products .background-product.prod-card .round-arrow {
  left: clamp(15px, 2.3vw, 32px);
  display: inline-flex;
  gap: 10px;
  width: auto;
  height: 36px;
  padding-inline: 12px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
}
#sp-home-products .round-arrow svg { width: 15px; }
#sp-home-products .background-product.prod-card:is(.p0, .p3) {
  --card-surface: #15394e;
  color: white;
  border-color: transparent;
}
#sp-home-products .background-product.prod-card:is(.p0, .p3) :is(h3, p, .prod-value, .prod-value small, .prod-note) { color: white; }
#sp-home-products .background-product.prod-card.p0 {
  --card-art: url('/media/templates/site/invescore/final/assets/cars-2ebaba2.webp');
}
#sp-home-products .background-product.prod-card.p1 {
  --card-art: url('/media/templates/site/invescore/final/assets/green-landscape-1704b59.webp');
  --card-surface: #e6ede8; --art-size: cover; --art-pos: 83% center;
}
#sp-home-products .background-product.prod-card.p2 {
  --card-art: url('/media/templates/site/invescore/final/assets/business-bull-482a995.webp');
}
#sp-home-products .background-product.prod-card.p3 {
  --card-art: url('/media/templates/site/invescore/final/assets/auto-top-311f1ef.webp');
}
#sp-home-products .background-product.prod-card.p4 { --art-size: contain; }
#sp-home-products .background-product.prod-card.p5 { --card-surface: #f6ecee; --art-size: auto 91%; }
#sp-home-about .about-band { padding-block: clamp(25px, 3.1vw, 42px); }
#sp-home-about .about-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(22px, 4.5vw, 64px); }
#sp-home-about .about-photo::before { content: none; }
#sp-home-about .about-photo img { display: block; aspect-ratio: 2.05; max-height: 240px; object-position: 50% 64%; }
#sp-home-about .about-copy h2 { margin-top: 0; font-size: clamp(1.65rem, 3vw, 2.5rem); }
#sp-home-about .about-copy p { margin-block: 8px 15px; font-size: 1rem; }
#sp-home-about .about-links { margin-top: 11px; }
.company-metrics { margin-top: clamp(16px, 2.15vw, 28px); }
.company-metrics h3 { margin: 0 0 8px; font-size: .9rem; color: #fff; }
.company-metrics dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid #ffffff35;
  border-radius: 10px;
  background: #ffffff07;
}
.company-metrics dl > div { display: flex; flex-direction: column-reverse; padding: clamp(9px, 1.35vw, 17px); }
.company-metrics dl > div + div { border-inline-start: 1px solid #ffffff35; }
.company-metrics dt { margin-top: 5px; font-size: .87rem; color: #d5e1e7; font-weight: 400; }
.company-metrics dd { margin: 0; color: white; font-weight: 700; line-height: 1.15; font-size: clamp(1.18rem, 2.25vw, 1.9rem); }
.partner { position: relative; }
.partner img { filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s, transform .2s; }
.partner .partner-name {
  display: block;
  position: absolute;
  inset: auto 4px 3px;
  padding: 2px;
  text-align: center;
  color: var(--navy);
  background: #fff;
  font-size: .66rem;
  font-weight: 650;
  line-height: 1.15;
  opacity: 0;
}
.partner:hover img { filter: none; opacity: 1; transform: translateY(-6px); }
.partner:hover .partner-name { opacity: 1; }
@media (hover: none) {
  .partner .partner-name { opacity: 1; }
  .partner img { transform: translateY(-7px); }
}

/* News */
.news-card .news-photo:not(.news-photo--empty) { position: relative; isolation: isolate; }
.news-card .news-photo.poster::before { content: none; }
.news-card .news-photo:is(.poster, .landscape) img,
.news-card .news-photo img:not(.placeholder-logo) {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: none;
}
.news-detail.shell { max-width: 48rem; width: min(calc(100% - 2 * var(--gutter)), 48rem); padding-block: clamp(26px, 4vw, 52px); }
.news-detail .news-article-intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 16px; padding: 0 0 16px; border-bottom: 1px solid var(--line-subtle); }
.news-detail .news-article-intro .crumb { font-weight: 650; color: var(--navy); }
.news-detail .news-article-intro h1 {
  flex-basis: 100%; max-width: none; margin: 3px 0 0;
  font-size: clamp(1.55rem, 3.25vw, 2.55rem); line-height: 1.15; text-wrap: balance;
}
.news-detail .news-article-intro time { font-size: .83rem; }
.news-detail .prose { padding: 17px 0 0; font-size: 1.05rem; line-height: 1.68; }
.news-detail .item-image { margin: 26px 0 0; float: none; }
.news-detail .item-image > img {
  display: block; width: auto; max-width: 100%; max-height: min(58svh, 32rem);
  margin-inline: auto; object-fit: contain; border-radius: 8px;
}
.page-intro .crumb, .page-intro .crumb a { color: #4d626e; }

/* Calculators and timelines */
[data-calculator] .range-label input[type="range"] { accent-color: #bb1736; }
.product-workspace [data-calculator] .calc-head > span { color: #a4132f; background: #faeaed; }
.product-workspace [data-calculator] .calc-controls { background: #f5f6f7; }
.product-workspace [data-calculator] .calc-result { box-shadow: inset 0 3px #d62646; }
.product-workspace .schedule-launch:hover { color: #a4132f; border-color: #be2442; }
dialog.v2-dialog:has(.schedule-chart) .dialog-body .table-wrap,
dialog.v2-dialog.reception-dialog .dialog-body .table-wrap { max-height: none; overflow-y: visible; }
dialog.v2-dialog:has(.schedule-chart) .dialog-body :is(.schedule-export, .calc-note) { margin-top: 12px; }
dialog.v2-dialog:has(.schedule-chart) .dialog-body th { position: static; }
dialog.v2-dialog:has(.schedule-chart) .dialog-body table { font-variant-numeric: tabular-nums; }

/* Leadership and contacts */
.native-content--leadership .article-body { max-width: none; }
.native-content--leadership .inv-exec-section h2 { margin: 0 0 clamp(17px, 2vw, 28px); font-size: clamp(1.45rem, 2.8vw, 2.2rem); }
.native-content--leadership .inv-exec-section + .inv-exec-section { border-top: 1px solid var(--line-subtle); padding-top: clamp(25px, 4vw, 48px); }
.native-content--leadership .inv-exec-card { display: flex; flex-direction: column; border: 1px solid var(--line-subtle); border-radius: 9px; overflow: hidden; }
.native-content--leadership .inv-exec-photo-box { border-radius: 0; }
.native-content--leadership .inv-exec-info { padding: clamp(10px, 1.4vw, 16px); flex: 1; }
.native-content--leadership .inv-exec-card.is-chair .inv-exec-info { background: #f7eff1; box-shadow: inset 0 3px #bb1736; }
.native-content--leadership .inv-exec-card.is-chair .inv-exec-role { color: #8f1731; font-weight: 650; }
.office-directory .office-explorer { background: white; grid-template-columns: minmax(16rem, .8fr) minmax(0, 1.4fr); }
.office-directory .office-list { border-block: 0; max-height: none; }
.office-directory .office-select { display: grid; grid-template-columns: minmax(0, 1fr); padding: 11px 15px; gap: 3px; }
.office-directory .office-actions { padding: 0 15px 6px; }
.office-directory .office-entry.is-selected { background: #f7f4f5; box-shadow: inset 3px 0 #bb1736; }
.office-directory .map-toolbar { font-weight: 650; }
.office-directory #office-map { position: relative; min-height: 360px; padding: 0; background: #f1f2ef; }
.office-directory .map-fallback { position: relative; z-index: 1; width: 100%; min-height: 360px; background: #f1f2ef; }
.office-directory .map-fallback[hidden], .office-directory .office-map-reset[hidden] { display: none; }
.office-directory #office-map .office-map-canvas { position: absolute; inset: 0; }
.office-map-selected { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.office-map-marker {
  width: 22px; height: 22px; padding: 0; border: 3px solid white; border-radius: 50%;
  background: #224c62; box-shadow: 0 0 0 1px #224c62, 0 2px 5px #102b4260; cursor: pointer;
}
.office-map-marker[aria-pressed="true"] { z-index: 1; background: #b61f3a; box-shadow: 0 0 0 2px #b61f3a, 0 2px 5px #102b4260; }
.office-map-marker:focus-visible { outline: 2px solid #132c40; outline-offset: 5px; }
@media (min-width: 1080px) {
  .native-content--leadership .inv-exec-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
}
@media (max-width: 760px) {
  body[data-template="home"] #sp-home-products .products-grid { grid-template-columns: minmax(0, 1fr); }
  #sp-home-about .about-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #sp-home-about .about-photo { order: 1; }
  #sp-home-about .about-photo img { max-height: 158px; }
  .company-metrics dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-metrics dl > div:nth-child(odd) { border-inline-start: 0; }
  .company-metrics dl > div:nth-child(n + 3) { border-top: 1px solid #ffffff35; }
  .office-directory .office-explorer { grid-template-columns: minmax(0, 1fr); }
  .office-directory #office-map, .office-directory .map-fallback { min-height: 285px; }
}
@media (max-width: 425px) {
  #sp-home-products .background-product.prod-card::before { inset: 12px 9px 12px auto; width: 34%; }
  #sp-home-products .background-product.prod-card .prod-copy { max-width: 66% !important; }
  #sp-home-products .background-product.prod-card h3 { font-size: clamp(1.04rem, 4.8vw, 1.28rem); }
}
@media (max-width: 680px) {
  .product-workspace .calculator[data-calculator] { row-gap: 13px; }
  .product-workspace .calculator[data-calculator] > :is(.calc-head, .calc-result, .schedule-launch, .calc-note) { margin-block: 0; }
}
@media (max-width: 425px) {
  dialog.v2-dialog:has(.schedule-chart) .dialog-body :is(th, td) { min-width: 0; padding: 8px 4px; font-size: .64rem; }
  dialog.v2-dialog:has(.schedule-chart) .dialog-body table { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .partner img { transition: none; } }
