/* Clean IR rebuild: production hero, typefaces and colour palette are retained. */
.solgate-2026 .prod .section-row.rebuild-home-section { padding: 8.5rem 0; }
.solgate-2026 .prod .hero,
.solgate-2026 .prod .slc15a4,
.solgate-2026 .prod .platform { background: #79d5c9; }
.solgate-2026 .prod .company { background: linear-gradient(#79d5c9, #bca5d2); }
.solgate-2026 .prod .careers { background: linear-gradient(#bca5d2, #ff8ba5); }
.solgate-2026 .prod .news,
.solgate-2026 .prod .contact,
.solgate-2026 .prod .credits { background: #ff8ba5; }
/* A shared gutter axis, independent of font size and the legacy rotation padding. */
.solgate-2026 .rebuild-home-section .section-title { left: 50%; right: auto; top: -6rem; padding: 0; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); transform-origin: center; }
.solgate-2026 .rebuild-home-section .section-title-col { min-height: max(0px, calc(var(--solgate-label-min-height, 0px) - 6rem)); }
/* Capitals have more visual weight than the lowercase section labels. */
.solgate-2026 .slc15a4 .section-title { font-size: 5rem; }
/* Midpoint between the gutter centre and production's label anchor, with edge clearance. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .solgate-2026 .rebuild-home-section .section-title { left: calc(37.5% + .75rem + .5px); }
}
@media (min-width: 1200px) {
    .solgate-2026 .rebuild-home-section .section-title { left: calc(25% + 1.5rem); }
}
.solgate-2026 [id="slc15a4"], .solgate-2026 [id="platform"], .solgate-2026 [id="company"],
.solgate-2026 [id="careers"], .solgate-2026 [id="news"], .solgate-2026 [id="contact"] { scroll-margin-top: 138px; }
.rebuild-home-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.rebuild-home-layout-text { display: block; max-width: 850px; }
.rebuild-home-layout h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.2; margin: 0 0 1.5rem; }
.rebuild-home-layout .solgate-button { margin-top: 1.75rem; }
.rebuild-home-layout ul { margin-left: 0; padding-left: 1.4em; }
.rebuild-home-layout li + li { margin-top: .4em; }
.rebuild-home-art img { width: 100%; max-width: 420px; height: auto; }
.solgate-2026 ul#header-menu { gap: clamp(.5rem, 1.8vw, 2rem); }
.solgate-2026 ul#header-menu li { margin-right: 0; }
.solgate-2026 .mobile-navigation { overflow-y: auto; }
.solgate-2026 .mobile-navigation .no-deco { position: static !important; transform: none !important; padding: 7rem 0 2rem; }
.solgate-2026 ul#mobile-menu li { margin: clamp(.75rem, 3vh, 2rem) 0; }
/* Individual page bodies are normal WordPress content; no display-time copy overrides. */
.solgate-detail { background: #bca5d2; padding: 9rem 28px 5rem; }
.solgate-detail-layout { max-width: 1144px; margin: auto; display: grid; grid-template-columns: 1fr 5fr; gap: 28px; }
.solgate-detail-label { writing-mode: vertical-rl; transform: rotate(180deg); align-self: start; justify-self: center; font-family: 'SofiaProBold', sans-serif; font-size: clamp(2rem, 5vw, 4.75rem); line-height: 1; }
.solgate-detail-content { min-width: 0; }
.solgate-detail-hero, .solgate-detail-body { max-width: 850px; }
.solgate-detail-hero { margin: 0 0 1.5rem; }
.solgate-detail-body { margin-top: 0; }
.solgate-detail-hero h1 { font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.15; overflow-wrap: break-word; margin: 0 0 1.5rem; }
.solgate-detail-eyebrow { font-family: 'SofiaProBold', sans-serif; color: #482653; font-size: clamp(2.4rem, 4.5vw, 4.25rem); line-height: 1.1; margin: 0 0 1.5rem; overflow-wrap: anywhere; }
.solgate-detail-body h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 3rem 0 1.25rem; line-height: 1.2; }
.solgate-detail-body h3 { font-size: 1.2rem; margin-top: 2rem; }
.solgate-detail-body p { line-height: 1.55; }
/* Company mission and founding copy read as consecutive body paragraphs. */
.solgate-detail-company .solgate-detail-hero > p:not(.solgate-detail-eyebrow),
.solgate-detail-company .solgate-detail-body > p { font-size: 1rem; line-height: 1.55; }
.solgate-detail-company .solgate-detail-hero { margin-bottom: 1rem; }
.solgate-detail-body .solgate-references { padding-left: 1.5em; margin-left: 0; font-size: .9rem; overflow-wrap: anywhere; }
.solgate-detail-body .solgate-references li + li { margin-top: 1rem; }
.solgate-detail-body a:not(.solgate-button) { text-decoration: underline; text-underline-offset: .18em; }
.solgate-supporters { display: flex; gap: 3rem; align-items: center; flex-wrap: wrap; margin: 3rem 0; }
.solgate-supporters img { width: 180px; height: 100px; object-fit: contain; }
.team-carousel { margin: 2.5rem 0 3rem; }
.team-groups { margin: 2.5rem 0 3rem; }
.team-group-choices { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.team-group-choices[hidden], .team-group-panel[hidden], [data-team-group-heading][hidden] { display: none; }
.team-group-choices .solgate-button { margin: 0; border-radius: 0; min-height: 44px; color: #482653; border-color: #482653; }
.team-group-choices .solgate-button[aria-pressed="true"] { background: #482653; color: #fff; }
.team-group-choices .solgate-button:hover { border-color: #fff; }
.team-group-choices .solgate-button:focus-visible { outline: 3px solid #482653; outline-offset: 3px; }
.team-group-panel .team-carousel { margin: 0; }
.team-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.team-carousel-controls[hidden] { display: none; }
.team-carousel-controls button { font-size: 1.5rem; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; background: transparent; padding: 0; color: #222; cursor: pointer; }
.team-carousel-controls button:disabled { opacity: .3; cursor: default; }
.team-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); column-gap: 1.5rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0; padding: 4px 4px 1rem; overscroll-behavior-x: contain; }
.team-carousel-card { min-width: 0; scroll-snap-align: start; text-align: center; }
/* Shared caption rows accommodate long names and roles without truncation. */
@supports (grid-template-rows: subgrid) {
    .team-carousel-track { grid-template-rows: repeat(4, auto); }
    .team-carousel-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-items: start; }
}
.team-carousel-portrait { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin: 0 0 1.25rem; background: rgba(255,255,255,.2); }
.solgate-detail-body .team-carousel-name { font-family: 'SofiaProBold', sans-serif; font-size: 1.15rem; line-height: 1.25; min-height: 2.5em; overflow-wrap: anywhere; margin: 0 0 .5rem; }
.solgate-detail-body .team-carousel-role { font-size: .95rem; line-height: 1.35; min-height: 2.7em; overflow-wrap: anywhere; margin: 0 0 .5rem; }
.team-carousel-track:focus-visible, .team-carousel-controls button:focus-visible { outline: 3px solid #482653; outline-offset: 3px; }
.solgate-job-list { list-style: none; margin: 0; padding: 0; }
.solgate-job-list li { border-top: 1px solid rgba(0,0,0,.3); padding: 1.25rem 0; }
.solgate-job-list a { display: flex; justify-content: space-between; gap: 1rem; }
@media (max-width: 991.98px) {
    .solgate-2026 .rebuild-home-section .section-title { top: calc(var(--solgate-label-offset, 0px) - 1.5rem); }
    .solgate-2026 .rebuild-home-section .section-title-col { min-height: max(0px, calc(var(--solgate-label-min-height, 0px) - 1.5rem)); }
    .solgate-2026 .slc15a4 .section-title { font-size: 4.2rem; }
    .solgate-2026 .prod .section-row.rebuild-home-section { padding: 4.5rem 0; }
    .solgate-2026 [id="slc15a4"], .solgate-2026 [id="platform"], .solgate-2026 [id="company"],
    .solgate-2026 [id="careers"], .solgate-2026 [id="news"], .solgate-2026 [id="contact"] { scroll-margin-top: 103px; }
    .rebuild-home-layout { grid-template-columns: 1fr; gap: 2rem; }
    .rebuild-home-art { text-align: center; }
    .rebuild-home-art img { max-width: 340px; }
    .solgate-detail { padding-top: 7rem; }
    .team-carousel-track { grid-auto-columns: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 767.98px) {
    .solgate-2026 .slc15a4 .section-title { font-size: 3.35rem; }
}
@media (max-width: 767.98px), (max-height: 700px) {
    .solgate-2026 .prod .section-row.hero { height: auto; min-height: 100vh; padding: 8rem 0 4rem; }
}
@media (max-width: 575.98px) {
    .solgate-2026 .slc15a4 .section-title { font-size: 2.1rem; }
    .solgate-2026 .hero-content .hero-title { font-size: clamp(2.4rem, 11vw, 3rem); gap: .75rem; }
    .solgate-detail { padding-left: 20px; padding-right: 20px; }
    .solgate-detail-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .solgate-detail-label { writing-mode: horizontal-tb; transform: none; justify-self: start; font-size: 1.2rem; }
    .solgate-supporters { gap: 1.5rem; }
    .solgate-supporters img { width: 130px; height: 75px; }
}

/* Homepage actions and editorial spacing belong to the layout, not blank editor paragraphs. */
.rebuild-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; margin-top: 1.5rem; }
.rebuild-hero-actions .solgate-button { margin: 0; }
.rebuild-home-layout ul + p { margin-top: 1.5rem; }
.solgate-detail-hero > :last-child { margin-bottom: 0; }
.solgate-detail-body > :first-child { margin-top: 0; }

/* Reuse the production artwork with the new section order. */
.rebuild-home-art { position: relative; isolation: isolate; }
.rebuild-home-art-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.rebuild-home-art-left > .section-content { grid-column: 2; grid-row: 1; }
.rebuild-home-art-left > .rebuild-home-art { grid-column: 1; grid-row: 1; }
/* The same Bootstrap gutter geometry, image scale and offsets as production Science.
   Fade the overflowing floor into the section's bottom padding to keep Company copy clear. */
.solgate-2026 .prod .platform { position: relative; overflow: hidden; }
.platform::after { content: ''; position: absolute; inset: auto 0 0; height: 8rem; background: linear-gradient(transparent, #79d5c9); z-index: 3; pointer-events: none; }
.platform .rebuild-home-layout { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin-inline: calc(-.5 * var(--bs-gutter-x)); }
.platform .rebuild-home-layout > .section-content, .platform .rebuild-home-art { flex: 0 0 auto; width: 50%; padding-inline: calc(.5 * var(--bs-gutter-x)); }
.platform .rebuild-art-frame { position: relative; width: 100%; height: 100%; }
.platform .rebuild-dancer { position: absolute; top: -6rem; left: 6rem; width: 100%; max-width: none; max-height: none; z-index: 1; }
.platform .rebuild-platform-molecule { position: absolute; top: 12rem; left: 6rem; width: 356%; max-width: none; max-height: none; height: auto; z-index: 0; transform: rotate(-13deg); }
/* Compensate for the PNG's transparent top padding to anchor the visible molecule. */
.careers .rebuild-home-layout > .rebuild-home-art { align-self: start; transform: translateY(-11%); }
.careers .rebuild-careers-molecule { display: block; width: 94%; max-width: 400px; margin-inline: auto; }
.company .rebuild-dancer { display: block; margin-inline: auto; }
.solgate-2026 .prod .section-row.contact { padding-bottom: 0; }
.solgate-2026 .prod .section-row.credits { padding-top: 2rem; }
.contact .rebuild-home-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); min-height: 460px; }
.contact .rebuild-home-art { align-self: end; }
.contact .rebuild-home-layout > .section-content { align-self: start; padding-top: 2rem; }
.contact .rebuild-dancer { width: 160%; max-width: 780px; margin-left: -12%; }
.solgate-2026 .prod .section-row.news { padding: 3.5rem 0 4.5rem; }
/* Artwork on the left, with the introduction and headlines together on the right. */
.news .section-content-col { display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); grid-template-rows: auto 1fr; column-gap: 3rem; align-items: start; }
.rebuild-news-intro { display: contents; }
.rebuild-news-intro > .section-content { grid-column: 2; grid-row: 1; }
.rebuild-news-intro p:last-child { margin-bottom: 0; }
.rebuild-news-art { grid-column: 1; grid-row: 1 / span 2; align-self: center; transform: translateY(-24px) scale(1.16); }
.rebuild-news-art img { display: block; width: 100%; max-width: none; }
.rebuild-news-pager { grid-column: 2; grid-row: 2; margin-top: 1.25rem; }
.rebuild-news-pager .news-item-container { padding: 0; }
.rebuild-news-pager .news-item-row { margin-inline: 0; }
.rebuild-news-pager .news-item[hidden], .rebuild-news-controls[hidden] { display: none; }
.rebuild-news-controls { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 1.5rem; }
.rebuild-news-controls .solgate-button { margin: 0; border-radius: 0; }
.rebuild-news-controls button:disabled { opacity: .4; cursor: default; }
.rebuild-news-controls button:focus-visible, .rebuild-hero-actions a:focus-visible { outline: 3px solid #482653; outline-offset: 3px; }
.rebuild-news-status { font-size: .85rem; text-align: right; margin-top: .75rem; }

/* Equal-sized initials cards let colleagues opt out of a portrait. */
.team-carousel-portrait { border: 1px solid rgba(72,38,83,.3); box-sizing: border-box; }
.team-carousel-initials { display: grid; place-items: center; background: var(--solgate-initials-bg, #f2c7ae); color: #482653; font-family: 'SofiaProBold', sans-serif; font-size: clamp(2rem, 6vw, 4rem); }

/* A shared decorative layer covers detail, legal, article and job pages. */
.solgate-inner #page { position: relative; isolation: isolate; overflow-x: clip; }
.solgate-inner .site-main { position: relative; z-index: 1; }
.solgate-inner .solgate-detail { background: transparent; }
.solgate-inner .careers-job-page-background { display: none; }
.solgate-page-molecule { position: absolute; pointer-events: none; z-index: 0; top: -220px; right: -330px; width: min(1000px, 110vw); opacity: .48; transform: rotate(-22deg); animation: solgate-page-molecule-enter 5s ease-out both; }
.solgate-page-molecule img { display: block; width: 100%; height: auto; }
@keyframes solgate-page-molecule-enter {
    from { transform: translate(50px, -35px) rotate(-40deg) scale(.94); }
    to { transform: translate(0, 0) rotate(-22deg) scale(1); }
}
@media (max-width: 991.98px) {
    .rebuild-home-art-left { grid-template-columns: 1fr; }
    .rebuild-home-art-left > .section-content, .rebuild-home-art-left > .rebuild-home-art { grid-column: auto; grid-row: auto; }
    .platform::after { display: none; }
    .platform .rebuild-platform-molecule { display: none; }
    .rebuild-mobile-art { position: relative; width: 130%; max-width: 400px; margin-inline: auto; left: -3rem; }
    .rebuild-mobile-art-anchor { position: relative; flex: 0 0 100%; width: 100%; }
    .rebuild-mobile-art { padding-bottom: 4.5rem; }
    .rebuild-mobile-art img { display: block; width: 100%; height: auto; max-width: none; }
    .careers .rebuild-mobile-art { width: 94%; max-width: 280px; left: 0; padding-bottom: 3rem; }
    .contact .rebuild-mobile-art { width: 188%; }
    .solgate-2026 .prod .section-row.platform, .solgate-2026 .prod .section-row.company, .solgate-2026 .prod .section-row.careers, .solgate-2026 .prod .section-row.contact { padding-top: 0; }
    .contact .rebuild-home-layout { grid-template-columns: 1fr; min-height: 0; }
    .contact .rebuild-dancer { width: 100%; max-width: 600px; margin-left: 0; }
    .contact .rebuild-home-layout > .section-content { padding-top: 0; }
    .solgate-2026 .prod .section-row.news { padding: 2.5rem 0 3rem; }
    .platform .rebuild-home-layout > .section-content { width: 100%; }
    .news .section-content-col { display: block; }
    .rebuild-news-intro { display: block; }
    .rebuild-news-art { width: min(100%, 280px); margin: 0 auto 2rem; transform: none; }
    .rebuild-news-pager { margin-top: 1.25rem; }
    .solgate-page-molecule { top: -80px; right: -190px; width: 680px; opacity: .38; }
}
@media (max-width: 767.98px) {
    .team-carousel-track { grid-auto-columns: 100%; }
    .team-group-choices { justify-content: center; gap: .5rem; }
    .team-group-choices .solgate-button { font-size: .85rem; padding-inline: .6rem; }
    .team-carousel-card { scroll-snap-align: center; }
    .team-carousel-portrait { max-width: 280px; margin-inline: auto; }
    .team-carousel-controls { justify-content: center; }
}
@media (max-width: 375px) {
    .team-group-choices { gap: .4rem; }
    .team-group-choices .solgate-button { font-size: .75rem; padding-inline: .4rem; }
}
@media (max-width: 575.98px) {
    .rebuild-news-controls { gap: .5rem; }
    .rebuild-news-controls button { padding: .5rem .75rem; }
    .solgate-page-molecule { top: 0; right: -160px; width: 440px; }
}
@media (prefers-reduced-motion: reduce) {
    .solgate-page-molecule { animation: none; }
}

/* Detail-page artwork is decorative; editorial copy stays in WordPress. */
.solgate-detail-body-with-artwork { display: flow-root; }
.solgate-detail-dancer { float: right; width: min(54%, 460px); margin: .5rem 0 1.5rem 2rem; }
.solgate-detail-dancer img { display: block; width: 100%; height: auto; max-height: none; }
.solgate-detail-body-with-artwork > h2 { clear: none; }
.solgate-detail-dancer + :is(h2, p, div, section) { margin-top: 0; }
.solgate-program-nav { margin: 0 0 1.5rem; border-block: 1px solid rgba(72,38,83,.25); }
.solgate-program-nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 1rem 0; }
.solgate-program-nav a { font-size: .9rem; }
.solgate-program-nav a:focus-visible { outline: 3px solid #482653; outline-offset: 3px; }
.solgate-program-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.solgate-program-section { min-width: 0; padding: 1.5rem; border: 1px solid rgba(72,38,83,.2); border-radius: 10px; background: rgba(255,255,255,.14); }
.solgate-program-number { display: block; color: #482653; margin-bottom: .75rem; font-family: 'SofiaProBold', sans-serif; }
.solgate-detail-body .solgate-program-section h2 { font-size: clamp(1.4rem, 2.3vw, 1.8rem); margin: 0 0 1.25rem; scroll-margin-top: 8rem; }
.solgate-program-section > :last-child { margin-bottom: 0; }
.solgate-program-references { grid-column: 1 / -1; padding: 2rem 0 0; margin-top: .5rem; background: transparent; border: 0; border-top: 1px solid rgba(72,38,83,.25); border-radius: 0; }
.solgate-program-references p { font-size: .9rem; }
@media (min-width: 1200px) {
    .solgate-detail-dancer { margin-right: -5rem; }
}
@media (max-width: 991.98px) {
    .solgate-detail-dancer { float: none; width: min(100%, 400px); margin: 0 auto 2rem; }
    .solgate-program-sections { grid-template-columns: 1fr; }
    .solgate-program-section { padding: 1.25rem; }
    .solgate-program-references { padding: 1.5rem 0 0; }
    .solgate-detail-body .solgate-program-section h2 { scroll-margin-top: 6rem; }
}
@media (max-width: 575.98px) {
    .solgate-program-section { padding: 1rem; }
    .solgate-program-references { padding: 1.5rem 0 0; }
}

/* Comparison views share the canonical page content and exist only on staging. */
.solgate-comparison-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin: 0 0 1.5rem; padding: .75rem 1rem; border: 1px solid rgba(72,38,83,.25); border-radius: 6px; font-size: .85rem; }
.solgate-comparison-note a { color: inherit; text-decoration: underline; }
.solgate-detail-team-photo { max-width: 850px; margin: 0 0 2rem; }
.solgate-detail-team-photo img { display: block; width: 100%; height: auto; max-height: none; }
.solgate-detail-careers .solgate-detail-team-photo { max-width: 720px; }
