/* Shared responsive refinements for the recovered AIEI 2027 stylesheet. */
html { scroll-padding-top: 152px; }
body { overflow-wrap: break-word; }
img { height: auto; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b97500; outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 10px 18px; background: #fff; color: var(--navy); border-radius: 6px; }
.skip-link:focus { top: 8px; }
.grid-2, .grid-3, .grid-4, .committee-grid { min-width: 0; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .committee-grid > * { min-width: 0; }
.brand { min-width: 0; }
.brand-copy { min-width: 0; }
.brand-copy b { line-height: 1.4; }
.nav a { padding: 13px 14px; }
.footer-logo { height: auto; }
.btn { gap: 10px; line-height: 1.45; }
.btn-blue:hover { color: #fff; background: var(--navy); }
.btn-red:hover { color: #fff; background: #a11925; }
.btn-outline:hover { color: #fff; background: rgba(255,255,255,.20); }
.btn:focus-visible { outline-color: #b97500; }

/* Cross-fade works offline. A first-photo fallback also works without JavaScript. */
.hero { min-height: 610px; }
.hero .slide { opacity: 0; animation: none; transform: scale(1.025); transition: opacity 1.3s ease, transform 8s linear; }
.hero .slide:first-child { opacity: 1; }
.hero.slideshow-ready .slide { opacity: 0; }
.hero.slideshow-ready .slide.is-active { opacity: 1; transform: scale(1.08); }
.hero-content { padding-bottom: 72px; }
.hero h1 { line-height: 1; }
.hero-controls { position: absolute; z-index: 3; left: 50%; bottom: 65px; transform: translateX(-50%); width: min(1180px, calc(100% - 36px)); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero-slide-label { font-size: .84rem; letter-spacing: .025em; color: #f4f9fc; }
.hero-buttons { display: flex; gap: 7px; flex-shrink: 0; }
.hero-buttons button { background: rgba(5,37,54,.65); border: 1px solid rgba(255,255,255,.60); color: #fff; height: 37px; min-width: 39px; padding: 4px 12px; border-radius: 6px; font-size: .84rem; }
.hero-buttons button:hover { background: var(--blue); }

/* Newly supplied content retains the site's typography and colour palette. */
.special-session-feature { padding: 48px 0; background: #fff; }
.session-feature-card { padding: 28px 32px; border-radius: 14px; background: #ecf8fc; border: 1px solid #dcebf1; border-left: 5px solid var(--blue); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.session-feature-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.session-feature-card .lead { margin-bottom: 0; }
.session-feature-card .btn { flex-shrink: 0; }
.special-session { scroll-margin-top: 150px; }
.special-session ul { padding-left: 22px; }
.special-session li { margin: 11px 0; }
.special-session a, .contact-grid a { overflow-wrap: anywhere; }
.publication-details .grid-2 .card { display: flex; flex-direction: column; align-items: flex-start; }
.publication-details .grid-2 .card .btn { margin-top: auto; }
.publication-details h3 { font-size: 1.12rem; line-height: 1.45; }
.indexing-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 22px 0; }
.indexing-link { min-width: 0; flex: 0 1 270px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 16px 22px; text-align: center; }
.indexing-link strong { font-size: 1.2rem; color: var(--navy); }
.indexing-link span { font-size: .82rem; color: var(--muted); }
.sponsor-card { min-width: 0; }
.sponsor-card img { width: 100%; height: 110px; object-fit: contain; }
.sponsor-card h3 { color: var(--navy); }
.sponsors-grid > .sponsor-card:last-child:nth-child(3n + 1) { grid-column: 2; }

.keynote-list { display: grid; gap: 26px; margin-top: 28px; }
.keynote-card { display: grid; grid-template-columns: 192px minmax(0, 1fr); gap: 30px; align-items: start; padding: 28px; }
.keynote-portrait { margin: 0; display: flex; align-items: flex-start; justify-content: center; border: 1px solid #e9eef2; border-radius: 12px; padding: 9px; background: #f9fbfc; overflow: hidden; }
.keynote-portrait img { width: 100%; height: auto; max-height: 285px; object-fit: contain; border-radius: 7px; }
.keynote-portrait svg { width: 100%; height: auto; display: block; max-height: 285px; background: #fff; }
.keynote-copy h3 { font-size: 1.45rem; line-height: 1.3; margin: 0 0 10px; }
.keynote-copy p { margin-top: 0; margin-bottom: 15px; }
.keynote-copy p:last-child { margin-bottom: 0; }
.keynote-affiliation { color: var(--blue); line-height: 1.5; }
.fees th, .fees td { overflow-wrap: break-word; }
.fees th:last-child, .fees td:last-child { width: 165px; white-space: nowrap; }
.contact-grid h2:first-child { margin-top: 0; }
.resource { align-items: flex-start; background: #fff; min-width: 0; }
.resource > div { min-width: 0; }
.resource-tag { flex-shrink: 0; }
.resource h3 { margin-top: 0; margin-bottom: 4px; line-height: 1.4; }
.resource p { margin-top: 0; margin-bottom: 0; }
.map-panel { border: 1px solid var(--line); background: var(--paper); border-radius: 14px; overflow: hidden; }
.map-panel-copy { padding: 26px; }
.map-panel-copy h3 { margin-bottom: 5px; }
.map-hint { font-size: .85rem; color: var(--muted); margin-bottom: 0; }
.map { display: block; border-radius: 0; }
.lightbox { padding-bottom: 80px; }
.lightbox img { max-height: 73vh; }
.lightbox-controls { position: absolute; bottom: 18px; display: flex; align-items: center; gap: 18px; color: #fff; }
.lightbox-controls button { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 7px; padding: 6px 18px; }
.lightbox-controls button:hover { background: var(--blue); }
.lightbox-close { min-width: 44px; min-height: 44px; }
body.modal-open { overflow: hidden; }

@media (max-width: 900px) {
  html { scroll-padding-top: 105px; }
  .nav.open { max-height: calc(100dvh - 110px); overflow-y: auto; }
  .nav a { padding: 11px 16px; }
  .hero-controls { bottom: 18px; }
  .hero { height: auto; min-height: 650px; }
  .hero-content { min-height: 650px; padding-top: 45px; padding-bottom: 100px; }
  .session-feature-card { flex-direction: column; align-items: flex-start; }
  .special-session { scroll-margin-top: 110px; }
}
@media (max-width: 850px) {
  .sponsors-grid > .sponsor-card:last-child:nth-child(3n + 1) { grid-column: auto; }
}
@media (max-width: 720px) {
  .keynote-card { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .keynote-portrait { width: min(192px, 100%); margin-inline: auto; }
  .keynote-copy h3 { font-size: 1.35rem; }
  .session-feature-card { padding: 24px; }
}
@media (max-width: 600px) {
  .topbar .container { padding-top: 7px; padding-bottom: 7px; line-height: 1.6; font-size: .76rem; }
  .topbar .container > span { display: block; }
  .brandrow { height: 80px; }
  .brand img { height: 66px; }
  .hero-content { padding-top: 42px; padding-bottom: 125px; }
  .hero-copy { width: 100%; }
  .hero .eyebrow { font-size: .64rem; letter-spacing: .09em; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .hero h2 { font-size: 1.4rem; }
  .hero-meta { font-size: .99rem; }
  .hero .actions { gap: 9px; }
  .hero .btn { padding: 10px 14px; font-size: .86rem; }
  .hero-controls { flex-wrap: wrap; bottom: 20px; }
  .hero-slide-label { width: 100%; font-size: .8rem; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-item { padding: 17px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .quick-item small { font-size: .66rem; }
  .quick-item b { font-size: .90rem; }
  .content { padding: 36px 0; }
  .card { padding: 22px; }
  .date-card { flex-wrap: wrap; gap: 6px 14px; }
  .fees th, .fees td { padding: 13px 11px; font-size: .94rem; }
  .fees th:last-child, .fees td:last-child { width: 112px; }
  .indexing-link { flex: 1 1 210px; }
  .footer-grid { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
  .site-header, .topbar, .hero-controls, .footer, .lightbox, .skip-link { display: none !important; }
  .page-hero { background: #fff; color: #000; padding: 20px 0; }
  .page-hero h1, .page-hero a, .breadcrumbs { color: #000; }
  .card, .person { box-shadow: none; break-inside: avoid; }
}
