/* Home page middle sections that do not pin: daylight, before/after compare, audience tabs. Ported from
   homepage-mockup-v4.html. Native Breakdance elements (Heading, Text, Image Comparison, Tabs); this file only styles them. */
body .tx-mid {
	--mist: #F4F6F8; --white: #fff; --sunken: #E7ECF0; --hair: #D2DAE1; --navy: #1B3659; --g6: #4A565F; --teal: #4A90A4; --tier: #266F7E;
	--mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace; --sans: 'Archivo', system-ui, -apple-system, sans-serif;
	--gut: max(20px, 6vw);
	position: relative; color: var(--g6); font-family: var(--sans);
}
body .tx-mid.bde-section { background-color: var(--mist); }
body .tx-mid.bde-section > .section-container { max-width: 1440px; width: 100%; margin-inline: auto; padding: clamp(72px, 11vw, 160px) var(--gut); align-items: stretch; }
body .tx-mid .bde-div { display: block; width: auto; max-width: none; flex-direction: row; align-items: stretch; }
body .tx-mid p { margin: 0; }
body .tx-mid h2.bde-heading { font: 800 clamp(30px, 4.3vw, 66px)/1 var(--sans); letter-spacing: -.04em; color: var(--navy); margin: 18px 0 0; max-width: 18ch; text-wrap: balance; }
body .tx-mid .tx-mid-lede p { margin-top: 22px; max-width: 56ch; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; color: var(--g6); }

/* daylight */
body .tx-daylight.bde-section > .section-container { padding-bottom: clamp(40px, 5vw, 80px); }
body .tx-daylight .tx-daylight-stats.bde-div { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--hair); }
body .tx-daylight .tx-daylight-stat { padding: 22px 20px 0 0; }
body .tx-daylight .tx-daylight-stat b { display: block; font: 500 clamp(30px, 4vw, 56px)/1 var(--mono); letter-spacing: -.04em; color: var(--navy); font-variant-numeric: tabular-nums; }
body .tx-daylight .tx-daylight-stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--g6); }
body .tx-mid .tx-daylight-cap { margin-top: 18px; font: 500 11px/1 var(--mono); letter-spacing: .03em; color: var(--g6); }
@media (max-width: 767px) {
	body .tx-daylight .tx-daylight-stats.bde-div { grid-template-columns: 1fr 1fr; }
}

/* compare */
body .tx-compare.bde-section > .section-container { padding-bottom: clamp(40px, 5vw, 80px); }
body .tx-compare .tx-compare-box { margin-top: clamp(32px, 5vw, 64px); }
body .tx-compare .tx-compare-slider { border-radius: 20px; overflow: hidden; border: 1px solid var(--hair); box-shadow: 0 40px 80px -40px rgba(27,54,89,.3); background: var(--sunken); max-width: none; }
body .tx-compare :is(.js-comparison-container, .images, .ui, .image-lft, .image-rgt) { height: clamp(400px, 46vw, 600px) !important; }
body .tx-compare :is(.image-lft, .image-rgt) { background-position: center; }
/* Resting state before Breakdance initialises the slider (it then sets inline px values that override these): handle and clip at 50%. */
body .tx-compare .images { position: relative; overflow: hidden; }
body .tx-compare .image-rgt { position: absolute; top: 0; left: 0; width: 100%; }
body .tx-compare .image-lft { position: absolute; top: 0; left: 0; width: 50%; }
body .tx-compare .ui { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; }
body .tx-compare .dragger { position: absolute; top: calc(50% - 24px); left: calc(50% - 24px); pointer-events: auto; }
body .tx-compare .un-slide-img-label { top: 18px; padding: 7px 11px; border-radius: 999px; font: 600 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; z-index: 3; }
body .tx-compare .label-before { left: 18px; right: auto; background: #fff; color: var(--g6); }
body .tx-compare .label-after { right: 18px; left: auto; background: rgba(11,15,26,.7); color: #8ED2C3; border: 1px solid rgba(142,210,195,.28); }
body .tx-compare .dragger { width: 48px; height: 48px; background: #fff; border: 0; box-shadow: 0 8px 30px rgba(11,15,26,.4); }
body .tx-compare .dragger::before, body .tx-compare .dragger::after { background: #fff; box-shadow: 0 0 30px rgba(142,210,195,.8); width: 2px; }
body .tx-compare .dragger-arrow { border-color: var(--navy) !important; width: 10px; height: 10px; z-index: 1; }
body .tx-compare .dragger:focus-visible { outline: 3px solid #1B4DB8; outline-offset: 4px; }
@media (max-width: 767px) {
	body .tx-compare .un-slide-img-label { font-size: 10px; }
}

/* audience */
body .tx-audience.bde-section > .section-container { padding-top: clamp(60px, 9vw, 130px); }
body .tx-audience .tx-audience-tabs { margin-top: clamp(32px, 4vw, 56px); }
body .tx-audience .bde-tabs__tabslist { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--sunken); width: max-content; max-width: 100%; overflow-x: auto; border: 0; }
body .tx-audience .bde-tabs__tab { font: 600 15px var(--sans); color: var(--g6); background: transparent; border: 0; padding: 12px 20px; border-radius: 10px; cursor: pointer; white-space: nowrap; border: 0 !important; }
body .tx-audience .bde-tabs__tab::before, body .tx-audience .bde-tabs__tab::after { display: none !important; }
body .tx-audience .bde-tabs__tab[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 10px rgba(27,54,89,.12); }
body .tx-audience .bde-tabs__tab:focus-visible { outline: 2px solid #1B4DB8; outline-offset: 2px; }
body .tx-audience .bde-tabs__panel { margin-top: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--hair); box-shadow: 0 40px 90px -50px rgba(27,54,89,.45); overflow: hidden; padding: 0; }
body .tx-audience .bde-tabs__panel-content { padding: 0; }
body .tx-audience .bde-tabs__panel-content { display: block; }
body .tx-audience .tx-aud { display: grid; grid-template-columns: 1fr 1.15fr; }
body .tx-audience .tx-aud-copy { padding: clamp(24px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: center; align-items: stretch; }
body .tx-audience .tx-aud-copy h3.bde-heading { font: 800 clamp(26px, 3vw, 44px)/1.02 var(--sans); letter-spacing: -.035em; color: var(--navy); margin: 0; }
body .tx-audience .tx-aud-p { margin-top: 14px; color: var(--g6); line-height: 1.55; }
body .tx-audience .tx-aud-rows { display: block; margin-top: 22px; border-top: 1px solid var(--hair); }
body .tx-audience .tx-aud-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); font: 500 13px var(--mono); color: var(--g6); }
body .tx-audience .tx-aud-v { color: var(--navy); font-weight: 500; text-align: right; }
body .tx-audience .tx-aud-link { display: inline-block; margin-top: 24px; align-self: flex-start; font: 600 15px var(--sans); color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--teal); padding-bottom: 2px; }
body .tx-audience .tx-aud-link:focus-visible { outline: 2px solid #1B4DB8; outline-offset: 3px; }
/* The picture is an Image element whose art animates inside the svg file itself; enhance.js re-inserts it when its tab opens. */
body .tx-audience .tx-aud-pic { display: block; background: linear-gradient(180deg, #0F1B30, #0A1220); min-height: 380px; position: relative; overflow: hidden; }
body .tx-audience .tx-aud-art, body .tx-audience .tx-aud-art :is(figure, .breakdance-image-container, .breakdance-image-clip) { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
body .tx-audience .tx-aud-art img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
@media (max-width: 767px) {
	body .tx-audience .tx-aud { grid-template-columns: 1fr; }
	body .tx-audience .tx-aud-pic { min-height: 260px; order: -1; }
}
