
:root {
  --uc3m-blue: #001489;
  --uc3m-blue-2: #002b8f;
  --uc3m-blue-3: #e7ebff;
  --ink: #111827;
  --muted: #5b6476;
  --line: #d5dcf2;
  --paper: #ffffff;
  --soft: #f6f8ff;
  --warm: #f7f2ec;
  --accent: #8b1e2d;
  --shadow: 0 18px 45px rgba(0, 20, 137, .12);
  --radius: 18px;
  --max: 1180px;
  --white: #ffffff;
  /* Brand fonts */
  --font-brand: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--font-body); line-height: 1.6; background: var(--paper); }
a { color: var(--uc3m-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
sup { font-size: .58em; line-height: 0; position: relative; vertical-align: super; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 0; padding: .75rem 1rem; background: var(--uc3m-blue); color: white; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; }
.top-strip { background: var(--uc3m-blue); color: white; font-size: .9rem; }
.top-strip a { color: white; }
.top-strip-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.masthead { display: flex; align-items: center; gap: 1.25rem; padding: .85rem 0; }
.brand-lockup { display: flex; align-items: center; gap: .85rem; color: var(--ink); min-width: 0; }
.brand-logo { height: 64px; width: auto; display: block; }
.section-emblem { display: block; height: 94px; width: auto; margin: 0 0 1.1rem; }
.section-heading.center .section-emblem { margin-left: auto; margin-right: auto; }
.brand-lockup:hover { text-decoration: none; }
.logo-isfv { width: 56px; height: 66px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; border: 1px solid var(--line); }
.brand-lockup span { display: flex; flex-direction: column; }
.brand-lockup strong { color: var(--uc3m-blue); font-size: 1.22rem; letter-spacing: -.01em; }
.brand-lockup small { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.uc3m-logo { margin-left: auto; display: block; }
.uc3m-logo img { width: min(360px, 36vw); height: auto; display: block; }
.menu-button { display: none; margin-left: auto; border: 1px solid var(--uc3m-blue); background: white; color: var(--uc3m-blue); border-radius: 999px; padding: .5rem .85rem; font-weight: 700; }
.primary-nav { border-top: 1px solid var(--line); }
.nav-inner { display: flex; align-items: stretch; gap: .15rem; }
.nav-item { position: relative; display: flex; align-items: center; color: var(--ink); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.nav-item > a, a.nav-item { padding: .85rem .75rem; color: var(--ink); }
.nav-item:hover > a, a.nav-item:hover, .nav-item.active > a, a.nav-item.active { color: var(--uc3m-blue); text-decoration: none; }
.nav-item.active > a, a.nav-item.active { box-shadow: inset 0 -3px 0 var(--uc3m-blue); }
.dropdown-toggle { border: 0; background: transparent; color: var(--muted); padding: 0 .45rem 0 0; font-size: .95rem; cursor: pointer; }
.dropdown { position: absolute; left: 0; top: 100%; min-width: 220px; background: white; border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); display: none; overflow: hidden; z-index: 30; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: .75rem .9rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.dropdown a:hover { background: var(--soft); color: var(--uc3m-blue); text-decoration: none; }
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(0,20,137,.95), rgba(0,43,143,.84)); color: white; }
.home-hero { min-height: 560px; display: grid; align-items: center; }
.hero-media { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,20,137,.92), rgba(0,20,137,.54)), url('assets/madrid-royal-palace.png') center/cover no-repeat; }
.hero-content { position: relative; padding: 6.5rem 0; max-width: 820px; margin-left: max(calc((100vw - var(--max))/2), 20px); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; color: var(--uc3m-blue); font-weight: 700; font-size: .76rem; margin: 0 0 .7rem; }
.hero .eyebrow { color: #dfe5ff; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .8rem; letter-spacing: -.01em; font-weight: 700; font-family: var(--font-brand); }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3rem); }
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 1.05rem + 1.4vw, 1.95rem); }
h3 { font-size: 1.1rem; }
.lead { font-size: clamp(1.02rem, .95rem + .5vw, 1.2rem); color: inherit; opacity: .94; max-width: 820px; }
.narrow { max-width: 780px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .78rem 1.1rem; border: 1px solid transparent; font-weight: 700; text-decoration: none; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary { background: white; color: var(--uc3m-blue); }
.button.secondary { background: var(--uc3m-blue); color: white; }
.button.ghost { background: transparent; color: white; border-color: rgba(255,255,255,.55); }
.button.disabled { opacity: .55; pointer-events: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.section { padding: 4.8rem 0; }
.section.compact { padding: 2rem 0; }
.section.alternate { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-title { padding: 4rem 0; background: linear-gradient(180deg, var(--soft), white); border-bottom: 1px solid var(--line); }
.image-title { background: linear-gradient(90deg, rgba(0,20,137,.9), rgba(0,20,137,.58)), url('assets/madrid-gran-via.jpg') center/cover no-repeat; color: white; }
.image-title .breadcrumb a, .image-title .breadcrumb { color: white; }
.breadcrumb { color: var(--muted); font-size: .93rem; margin: 0 0 1rem; }
.two-column { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.7fr); gap: 2rem; align-items: start; }
.section-heading.center, .center { text-align: center; }
.section-heading.center .muted { max-width: 700px; margin: 0 auto; }
.content-card, .topic-card, .fact-card, .date-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.45rem; }
.prose p:first-child { margin-top: 0; }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.fact-grid, .date-grid, .cards-three { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cards-three { grid-template-columns: repeat(3, 1fr); }
.fact-card span, .date-card span { display: block; color: var(--uc3m-blue); font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .35rem; }
.fact-card strong, .date-card strong { font-size: 1.05rem; }
.date-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.centered-link { text-align: center; margin-top: 1.5rem; }
.text-link { font-weight: 800; }
.link-card a { font-weight: 800; }
.topic-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.topic-card { box-shadow: none; }
.topic-card h3 { color: var(--uc3m-blue); }
ul { padding-left: 1.2rem; }
.clean-list { list-style: none; padding: 0; margin: 0; }
.clean-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.clean-list li:last-child { border-bottom: 0; }
.columns-list li:last-child { border-bottom: 1px solid var(--line); }
.columns-list { columns: 2; column-gap: 2rem; }
.committee-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.scientific-committee { margin-top: 1rem; }
.people-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.people-grid li { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem; }
.people-grid span { display: block; font-weight: 800; }
.people-grid em { color: var(--muted); font-style: normal; font-size: .92rem; }
.notice-box, .placeholder-panel { background: var(--uc3m-blue-3); border-left: 4px solid var(--uc3m-blue); border-radius: 12px; padding: 1rem; margin-top: 1.25rem; }
.timeline { display: grid; gap: .8rem; }
.timeline article { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; align-items: center; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; box-shadow: var(--shadow); }
.timeline span { color: var(--uc3m-blue); font-weight: 900; }
.timeline h2 { font-size: 1.2rem; margin: 0; }
.fees-table, .program-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 14px; }
.fees-table th, .fees-table td, .program-table th, .program-table td { padding: .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fees-table th, .program-table th { background: var(--uc3m-blue); color: white; }
.fees-table tr:nth-child(even) td, .program-table tr:nth-child(even) td { background: var(--soft); }
.program-table-wrap { overflow-x: auto; background: white; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.madrid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.image-stack { display: grid; gap: 1rem; }
.image-stack img { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.contact-card a { font-weight: 800; }
.site-footer { background: var(--uc3m-blue); color: #eef2ff; padding: 3rem 0 1.2rem; }
.site-footer a { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-size: 1rem; color: white; }
.footer-logo { width: 162px; height: auto; display: block; border-radius: 10px; background: #fff; padding: 8px 10px; margin-bottom: 0.9rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; gap: 1rem; color: #dfe5ff; font-size: .9rem; }
@media (max-width: 980px) {
  .uc3m-logo img { width: 280px; }
  .brand-lockup small { white-space: normal; }
  .fact-grid, .date-grid, .cards-three, .topic-columns, .course-grid, .people-grid { grid-template-columns: repeat(2, 1fr); }
  .two-column, .madrid-grid { grid-template-columns: 1fr; }
  .committee-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--max)); }
  /* Compact sticky header on mobile: hide the top strip, uc3m wordmark and subtitle; keep brand + menu */
  .top-strip { display: none; }
  .masthead { flex-wrap: nowrap; justify-content: space-between; gap: .75rem; padding: .5rem 0; }
  .uc3m-logo { display: none; }
  .brand-lockup small { display: none; }
  .logo-isfv { width: 40px; height: 48px; }
  .brand-lockup strong { font-size: 1.06rem; }
  .menu-button { display: block; margin-left: auto; }
  .primary-nav { display: none; }
  .primary-nav.open { display: block; max-height: calc(100vh - 60px); overflow-y: auto; }
  .nav-inner { flex-direction: column; padding: .35rem 0; }
  .nav-item, a.nav-item, .nav-item > a { display: block; width: 100%; }
  .nav-item > a, a.nav-item { padding: .8rem 0; }
  .nav-item.active > a, a.nav-item.active { box-shadow: none; color: var(--uc3m-blue); }
  .dropdown-toggle { position: absolute; right: 0; top: .45rem; padding: .45rem .65rem; font-size: 1.15rem; }
  .dropdown { position: static; box-shadow: none; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 .5rem; }
  .has-dropdown.open .dropdown { display: block; }
  .hero-content { margin-left: 14px; padding: 4rem 0; }
  .home-hero { min-height: 480px; }
  h1 { font-size: 2.3rem; }
  .fact-grid, .date-grid, .cards-three, .topic-columns, .course-grid, .people-grid { grid-template-columns: 1fr; }
  .columns-list { columns: 1; }
  .timeline article { grid-template-columns: 1fr; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; flex-direction: column; }
}

.full-width-card { grid-column: 1 / -1; }
.full-width-card .columns-list { columns: 3; }
@media (max-width: 980px) { .full-width-card .columns-list { columns: 2; } }
@media (max-width: 760px) { .full-width-card .columns-list { columns: 1; } }

.map-embed { margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.map-embed iframe { width: 100%; height: 360px; display: block; border: 0; }
.venue-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.inclusion-note { margin-top: .9rem; padding: .85rem 1rem; border-left: 4px solid var(--uc3m-blue); background: var(--soft); border-radius: 10px; }

/* ============================================================
   Imagery components (added in image pass)
   ============================================================ */

/* Reusable captioned figure */
.media-figure { margin: 0; }
.media-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow); background: var(--soft); }
.media-figure.portrait img { aspect-ratio: 3 / 4; }
.media-figure.tall img { aspect-ratio: 3 / 2; }
.media-figure figcaption { margin-top: .65rem; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.media-figure figcaption .credit { display: block; font-size: .82rem; opacity: .85; margin-top: .15rem; }

/* Home flow-visualization showcase */
.flow-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.flow-showcase .media-figure img { aspect-ratio: 4 / 3; }

/* Award namesakes */
.award-namesakes .media-figure img { aspect-ratio: 4 / 3; background: var(--soft); }
.award-namesakes .content-card { display: flex; flex-direction: column; }
.award-namesakes .content-card h3 { margin: 1.05rem 0 .45rem; font-size: 1.12rem; }
.award-namesakes .content-card p { margin: 0; color: var(--ink); }

/* Madrid / venue gallery (3-up, can wrap) */
.madrid-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.madrid-gallery .media-figure img { aspect-ratio: 3 / 2; }

/* Thumbnail on home link-cards */
.link-card .card-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 1rem; background: var(--soft); }

/* Single inline figure beside prose (two-column rows) */
.media-aside { align-self: stretch; }
.media-aside img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow); background: var(--soft); }

/* Image-title background variants (science vs city) */
.image-title.flow { background: linear-gradient(90deg, rgba(0,20,137,.92), rgba(0,20,137,.62)), url('assets/flowviz-hero.jpg') center/cover no-repeat; }
.image-title.social { background: linear-gradient(90deg, rgba(0,20,137,.88), rgba(0,20,137,.55)), url('assets/madrid-retiro.jpg') center/cover no-repeat; }

/* Placeholder marker: remove the .is-placeholder class once the real image is dropped in */
.is-placeholder { outline: 2px dashed rgba(0,20,137,.35); outline-offset: 3px; }

@media (max-width: 980px) {
  .flow-showcase, .madrid-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .flow-showcase, .madrid-gallery { grid-template-columns: 1fr; }
}

/* Respect reduced-motion preference for the existing button lift */
@media (prefers-reduced-motion: reduce) {
  .button:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* Masters of Flow Visualization page */
.mfv-logo { display: block; width: 100%; max-width: 540px; height: auto; margin: 0 auto 1.5rem; }
.mfv-intro { max-width: 760px; margin: 0 auto; text-align: center; }
.mfv-steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.mfv-steps li { padding-left: 1.4rem; position: relative; }
.mfv-steps li::before { content: "—"; position: absolute; left: 0; color: var(--uc3m-blue); font-weight: 700; }

/* Brand font on headings-adjacent UI chrome */
.eyebrow, .button, .nav-item, .brand-lockup strong, .fact-card span, .date-card span { font-family: var(--font-brand); }

/* UC3M uppercase navigation/buttons */
.button, .btn { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }

.dropdown a { text-transform: none; letter-spacing: normal; font-size: .94rem; font-weight: 500; }

.poi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.poi-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: .85rem; display: block; }
.poi-card h3 { margin: 0 0 .2rem; color: var(--uc3m-blue); }
.poi-card .poi-meta { margin: 0 0 .45rem; color: var(--muted); font-size: .82rem; font-family: var(--font-brand); }
.poi-card p { margin: 0; }
@media (max-width: 900px) { .poi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .poi-grid { grid-template-columns: 1fr; } }

.slideshow { position: relative; }
.slideshow .slides { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px rgba(0,20,137,.10); background: #0a1230; }
.slideshow .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.slideshow .slide.is-active { opacity: 1; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow .slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.1rem .9rem; color: #fff; font-size: .84rem; line-height: 1.45; background: linear-gradient(to top, rgba(0,0,0,.74), rgba(0,0,0,0)); }
.slideshow .slide figcaption .credit { display: block; margin-top: .15rem; color: rgba(255,255,255,.82); font-size: .75rem; }
.slide-dots { display: flex; gap: .42rem; justify-content: center; margin-top: .75rem; flex-wrap: wrap; }
.slide-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: background .2s; }
.slide-dots button.is-active { background: var(--uc3m-blue); }
.welcome-logo { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 0 1rem; }

.affiliations-banner { margin: 1.4rem 0 0.25rem; }
.affiliations-banner img { display: block; width: 100%; max-width: 760px; height: auto; }


.history-list { list-style: none; columns: 3; column-gap: 2.2rem; margin: 1.1rem 0 0; padding: 0; }
.history-list li { break-inside: avoid; padding: .28rem 0; font-size: .93rem; color: var(--ink); }
.history-list .hy { display: inline-block; min-width: 3.1em; font-weight: 700; color: var(--uc3m-blue); }
.history-list li.current { font-weight: 700; color: var(--accent); }
.history-list li.current .hy { color: var(--accent); }
@media (max-width: 760px) { .history-list { columns: 2; } }

.anniv-badge { display: inline-block; margin-top: .7rem; padding: .4rem 1.05rem; background: var(--uc3m-blue); color: #fff; border-radius: 999px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }

/* Clickable chair names + bio modals */
.bio-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 700; color: var(--uc3m-blue); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.bio-link:hover { color: var(--uc3m-blue-2); }
.bio-modal { width: min(560px, calc(100% - 2rem)); max-width: 560px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0,20,137,.28); color: var(--ink); position: relative; }
.bio-modal::backdrop { background: rgba(0,20,137,.32); }
.bio-modal .bio-inner { padding: 1.7rem 1.7rem 1.5rem; }
.bio-modal .bio-head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1rem; }
.bio-modal .bio-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: var(--shadow); background: var(--soft); }
.bio-modal h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.bio-modal .bio-role { margin: 0; color: var(--uc3m-blue); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.bio-modal .bio-affil { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.bio-modal p { line-height: 1.62; }
.bio-modal .bio-email { margin: 1rem 0 0; font-weight: 700; }
.bio-close { position: absolute; top: .55rem; right: .7rem; width: 2rem; height: 2rem; border: 0; background: transparent; color: var(--muted); font-size: 1.55rem; line-height: 1; border-radius: 999px; cursor: pointer; }
.bio-close:hover { background: var(--soft); color: var(--ink); }
@media (max-width: 520px) {
  .bio-modal .bio-head { flex-direction: column; text-align: center; align-items: center; }
}

/* 50-year anniversary badge on home hero */
.hero-badge { position: absolute; top: 2.1rem; right: 2.2rem; width: 122px; height: 122px; z-index: 3; }
@media (max-width: 720px) { .hero-badge { width: 82px; height: 82px; top: 1rem; right: 1rem; } }


/* ---------- Sponsor wall ---------- */
.sponsor-tier { margin: 0 0 2.4rem; }
.sponsor-tier:last-child { margin-bottom: 0; }
.sponsor-tier-label { text-align: center; font-family: var(--font-brand); font-weight: 700; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1.2rem; }
.sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.sponsor { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 1.1rem 1.5rem; width: 230px; height: 122px; transition: transform .15s ease; }
.sponsor:hover { transform: translateY(-2px); }
.sponsor img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor.lg { width: 264px; height: 150px; }
.sponsor.sm { width: 184px; height: 100px; }
.sponsor.empty { background: var(--soft); border: 2px dashed rgba(0,20,137,.30); box-shadow: none; color: var(--muted); font-family: var(--font-brand); font-weight: 700; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.sponsor.empty:hover { transform: none; }
.sponsor-cta { text-align: center; margin-top: 2.4rem; }
@media (max-width: 560px) { .sponsor, .sponsor.lg, .sponsor.sm { width: 44%; min-width: 132px; height: 96px; padding: .8rem; } }


/* ---------- Footer sponsor strip ---------- */
.footer-sponsors { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-sponsors-label { font-family: var(--font-brand); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; margin: 0; color: #cdd6ff; }
.footer-sponsors-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.6rem; }
.footer-sponsor { display: flex; flex-direction: column; align-items: center; gap: .55rem; text-decoration: none; }
.footer-sponsor-logo { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 12px; padding: .65rem 1.1rem; height: 72px; min-width: 150px; }
.footer-sponsor-logo img { max-height: 100%; max-width: 210px; object-fit: contain; display: block; }
.footer-sponsor-name { font-family: var(--font-brand); font-weight: 600; font-size: .82rem; color: #dfe5ff; text-align: center; max-width: 220px; line-height: 1.3; }
.footer-sponsor:hover .footer-sponsor-name { text-decoration: underline; }
