/* Site overhaul: shared partner strip, Drones and Technology layouts, and calmer phone chrome. */

/* Partner strip used on every subpage: academic partners and premium sponsors side by side. */
body .compact-sponsors { padding-block:clamp(2.5rem,5vw,4rem); }
.partner-strip { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:2px solid #172b46; }
.partner-strip-group { min-width:0; padding:1.25rem 0 0; }
.partner-strip-group + .partner-strip-group { padding-left:clamp(1.5rem,3vw,3rem); border-left:1px solid #dbe1e9; }
.partner-strip-group:first-child { padding-right:clamp(1.5rem,3vw,3rem); }
body .compact-sponsors .partner-strip h3 { margin:0 0 1rem; padding:0; font-size:.7rem; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:#58677b; }
.partner-strip-logos { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:center; gap:clamp(1rem,2.5vw,2.5rem); }
.partner-strip-logos a { display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; min-height:4.5rem; border-radius:6px; transition:opacity .16s ease; }
.partner-strip-logos a:hover { opacity:.7; }
.partner-strip-logos img { width:100%; max-width:10rem; height:2.75rem; object-fit:contain; filter:brightness(0) saturate(100%) invert(14%) sepia(20%) saturate(1568%) hue-rotate(176deg) brightness(95%) contrast(94%); }
.partner-strip-logos .partner-strip-ipz img { height:3.25rem; filter:none; }
.partner-strip-logos small { margin-top:4px; font-size:7px; line-height:1.2; color:#58677b; text-align:center; }
@media(max-width:760px) {
  .partner-strip { grid-template-columns:minmax(0,1fr); }
  .partner-strip-group:first-child { padding-right:0; }
  .partner-strip-group + .partner-strip-group { margin-top:1.5rem; padding-left:0; border-left:0; border-top:1px solid #dbe1e9; }
  .partner-strip-logos { gap:1rem; }
  .partner-strip-logos img { height:2.25rem; }
  .partner-strip-logos .partner-strip-ipz img { height:2.75rem; }
}

/* Homepage rail: wordmark sponsors sit at the same optical size as the academic marks. */
body.wind-page .sponsor-rail .marquee-logo-sponsor img { width:auto; max-width:min(100%,8.5rem); height:auto; max-height:1.5rem; object-fit:contain; }
body.wind-page .sponsor-rail .marquee-logo-sponsor img[alt="CADFEM"] { max-height:2.1rem; }
@media(max-width:760px) { body.wind-page .sponsor-rail .marquee-logo-sponsor img { max-width:5.5rem; max-height:1.1rem; } body.wind-page .sponsor-rail .marquee-logo-sponsor img[alt="CADFEM"] { max-height:1.6rem; } }

/* Homepage: the aircraft card links to the interactive model on the Drones page. */
body.wind-page .home-design-introduction { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(2rem,4vw,5rem); align-items:center; }
body.wind-page .home-design-introduction .design-introduction-copy { min-width:0; transform:none; }
@media(max-width:800px) { body.wind-page .home-design-introduction { grid-template-columns:minmax(0,1fr); gap:2rem; } }
.home-aircraft-card { display:grid; gap:1rem; width:100%; max-width:56rem; justify-self:center; padding:clamp(1rem,2vw,1.5rem); color:#172b46; text-decoration:none; border:1px solid #dbe1e9; border-radius:16px; background:#fff; transition:border-color .2s ease,box-shadow .2s ease; }
.home-aircraft-card:hover { border-color:#172b46; box-shadow:0 10px 30px rgba(23,43,70,.1); }
.home-aircraft-card-label { display:flex; justify-content:space-between; gap:1rem; font-size:.85rem; }
.home-aircraft-card-label span:last-child { color:#58677b; }
.home-aircraft-card img { width:100%; height:auto; aspect-ratio:16 / 10; object-fit:contain; transition:transform .5s cubic-bezier(.2,.7,.2,1); }
.home-aircraft-card:hover img { transform:scale(1.03) rotate(-1deg); }
.home-aircraft-card .page-link { justify-self:start; }

/* Homepage: one featured post with both channels instead of two identical cards. */
body .home-social .social-feature { grid-template-columns:minmax(0,1fr); max-width:64rem; }
body .home-social .social-feature .amz-social-card { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); grid-template-areas:"media profile" "media caption"; grid-template-rows:auto 1fr; column-gap:clamp(1.5rem,3vw,3rem); row-gap:1rem; padding:clamp(1rem,2vw,1.5rem); }
.social-feature .amz-social-profile { grid-area:profile; }
.social-feature .social-media-preview { grid-area:media; align-self:stretch; }
.social-feature .social-media-preview img { height:100%; max-height:30rem; object-fit:cover; }
.social-feature .amz-social-caption { grid-area:caption; display:flex; flex-direction:column; align-items:flex-start; gap:.25rem; }
.social-feature .amz-social-caption .page-link { margin-top:.5rem; }
@media(max-width:760px) {
  body .home-social .social-feature .amz-social-card { grid-template-columns:minmax(0,1fr); grid-template-areas:"profile" "media" "caption"; }
  .social-feature .social-media-preview img { max-height:22rem; }
}

/* Drones: the interactive model is now the page itself. */
body.drones-page .drones-intro { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(2rem,4vw,5rem); align-items:center; padding:clamp(3rem,6vw,6rem) var(--pad,clamp(1.25rem,2.5vw,3rem)); color:#172b46; background:#fff; }
.drones-intro-copy h1 { margin:.75rem 0 1.25rem; font-size:clamp(2.2rem,4vw,3.6rem); line-height:1.05; }
.drones-intro-copy p { max-width:30rem; margin:0; font-size:clamp(1.05rem,1.4vw,1.35rem); font-weight:300; line-height:1.65; }
.drones-status { display:inline-flex; align-items:center; gap:.6rem; padding:.4rem .8rem; font-size:.75rem; letter-spacing:.12em; text-transform:uppercase; border:1px solid #172b46; border-radius:999px; }
.drones-status::before { content:""; width:.5rem; height:.5rem; border-radius:50%; background:#172b46; animation:drones-pulse 2s ease-in-out infinite; }
@keyframes drones-pulse { 50% { opacity:.25; } }
body.drones-page .drone-explorer-loading { position:absolute; inset:auto 0 0; margin:0; padding:.6rem; text-align:center; font-size:.85rem; }
body.drones-page .drone-explorer-instruction { margin:.9rem 0 .65rem; font-size:.8rem; color:#58677b; }
@media(max-width:800px) { body.drones-page .drones-intro { grid-template-columns:minmax(0,1fr); padding-top:2.5rem; } }
@media(prefers-reduced-motion:reduce) { .drones-status::before { animation:none; } }

/* Technology: a small library of real resources. */
.tech-content .tech-lead { max-width:34rem; margin:0 0 2rem; font-size:clamp(1.05rem,1.4vw,1.3rem); font-weight:300; line-height:1.6; }
.tech-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.25rem; }
body .tech-grid .simple-resource { display:flex; flex-direction:column; max-width:none; height:100%; }
.tech-grid .simple-resource h2 { margin:0 0 .75rem; }
.tech-grid .simple-resource p { flex:1; }
@media(max-width:900px) { .tech-grid { grid-template-columns:minmax(0,1fr); } }

/* Partners: empty tiers invite a partner instead of saying nothing is there. */
.tier-slot { display:flex; align-items:center; gap:1rem; margin:20px; padding:1rem 1.25rem; color:#172b46; text-decoration:none; border:1.5px dashed rgba(23,43,70,.35); border-radius:10px; transition:border-color .2s ease,background .2s ease; }
.tier-slot:hover { border-color:#172b46; background:#f4f6f9; }
.tier-slot-mark { display:grid; place-items:center; flex:0 0 2.5rem; height:2.5rem; font-size:1.4rem; font-weight:300; border:1.5px solid currentColor; border-radius:50%; transition:transform .3s ease; }
.tier-slot:hover .tier-slot-mark { transform:rotate(90deg); }
.tier-slot-text { display:grid; gap:.15rem; }
.tier-slot-text strong { font-weight:500; }
.tier-slot-text small { font-size:.8rem; color:#58677b; }
/* Any tap starts every cloud video, so one control is enough. */
.sponsor-tier .cloud-play-toggle:not(#cloud-video-play) { display:none !important; }

/* Team: intrinsic sizes prevent layout shift; CSS keeps the portrait crop. */
.page-team main img[width][height]:not(.team-cover > img, .partner-strip-logos img) { height:auto; }

/* Language switch keeps its look with a larger touch area. */
body .language-switch { position:relative; }
body .language-switch::after { content:""; position:absolute; inset:-8px -6px; }
