/* COCOA 2026: independent concept inspired by the supplied reference. */
:root {
  --conference-navy: #102c43;
  --conference-gold: #ffd700;
  --transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
body { min-width: 0; }
.wide-container { width: 100%; max-width: 1184px; padding-inline: 32px; margin-inline: auto; }
.container { max-width: 1056px; padding-inline: 32px; }
main, .footer { margin-left: 0; }
.site-header { position: sticky; top: -34px; background: var(--bg); z-index: 100; }
.utility-bar { background: var(--conference-navy); color: #fff; font-size: 13px; line-height: 34px; }
.utility-content { display: flex; justify-content: space-between; gap: 24px; }
.utility-separator { display: inline-block; margin-inline: 14px; opacity: .45; }
.navbar {
  position: relative; inset: auto; height: 80px; width: 100%;
  flex-direction: row; align-items: center; justify-content: space-between;
  padding-block: 0; border: 0; overflow: visible; z-index: auto;
}
.site-header::after { content: ''; position: absolute; bottom: 0; inset-inline: 0; height: 1px; background: var(--border); }
.navbar-brand { padding: 0; border: 0; gap: 0; }
.conference-logo { width: 104px; aspect-ratio: 1606 / 979; }
.conference-logo img { position: static; width: 100%; max-width: 100%; height: auto; }
.navbar-links { display: flex; position: static; inset: auto; width: auto; flex: 0 1 auto; flex-direction: row; align-items: center; gap: 26px; padding: 0; margin: 0; overflow: visible; border: 0; box-shadow: none; }
.menu-toggle { display: none; }
.navbar-links a { font-size: 15px; padding: 27px 0 23px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; color: #4c5560; }
.navbar-links a:hover { border-color: var(--border); background: transparent; color: var(--accent); }
.navbar-links a.active { border-bottom-color: var(--accent); color: var(--accent); background: transparent; }
.lang-item { margin: 0; padding: 0; }
.lang-switcher { min-width: 48px; min-height: 34px; padding: 3px 8px; color: var(--primary); font-size: 13px; }
.more-item { position: relative; }
.more-item summary { cursor: pointer; list-style: none; padding-block: 26px; font-size: 15px; color: #4c5560; white-space: nowrap; }
.more-item summary::-webkit-details-marker { display: none; }
.more-item summary::after { content: ''; display: inline-block; width: 6px; height: 6px; border-bottom: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); margin: 0 2px 3px 10px; }
.more-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.more-item.has-active summary, .more-item details[open] summary { color: var(--accent); }
.more-panel { position: absolute; top: 70px; right: -70px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; width: 410px; padding: 14px; border: 1px solid var(--border); border-radius: 6px; background: #fff; box-shadow: 0 12px 30px rgba(16, 44, 67, .10); }
.more-panel a, .more-panel a.active { display: block; padding: 11px 12px; border: 0; border-radius: 4px; font-size: 14px; }
.more-panel a:hover, .more-panel a.active { background: var(--bg-light); }
.hero { background: var(--conference-navy); height: auto; min-height: 0; aspect-ratio: auto; }
.hero::before { display: none; }
.hero .hero-overlay { width: 100%; text-align: left; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: center; gap: 60px; max-width: 1488px; min-height: 650px; padding: 56px clamp(32px, 3.1vw, 48px); }
.hero-copy { padding-bottom: 12px; }
.hero-copy h1 { font-size: clamp(58px, 6vw, 88px); font-weight: 700; letter-spacing: -3px; line-height: 1.08; margin: 0 0 24px; white-space: nowrap; }
html[lang] .hero-copy h1 { font-family: 'Times New Roman', Times, serif; }
.hero-copy h1 span { color: var(--conference-gold); }
.hero-conference { max-width: 530px; font-size: 25px; line-height: 1.5; color: #fff; margin-bottom: 25px; }
.hero-meeting { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; color: #dce5ec; line-height: 1.6; }
.hero-meeting span { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.3); }
.hero .hero-actions { margin-top: 34px; justify-content: flex-start; gap: 14px; }
.hero .btn { min-height: 48px; justify-content: space-between; gap: 28px; padding: 10px 22px; border-radius: 4px; font-size: 16px; }
.hero .btn-primary { background: #fff; border: 1px solid #fff; color: var(--conference-navy) !important; }
.hero .btn-primary:hover { background: #edf2f6; box-shadow: none; }
.hero .btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.hero .btn-outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.hero-art { position: relative; width: 100%; height: 500px; }
.photo-accent { position: absolute; top: 22px; right: -14px; width: 95%; aspect-ratio: 2.15; border: 1px solid rgba(255,215,0,.6); border-radius: 4px 64px 4px 4px; }
.city-portrait { position: absolute; top: 0; right: 0; width: 100%; aspect-ratio: 2.15; overflow: hidden; border-radius: 4px 64px 4px 4px; }
.city-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
/* Keep the complete approved artwork visible: no crop of the bilingual name or emblem. */
.campus-detail { position: absolute; bottom: 0; left: -44px; width: 52%; border: 6px solid var(--conference-navy); border-radius: 40px 4px 4px 4px; overflow: hidden; background: var(--conference-navy); }
.campus-detail::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(246,218,155,.65); border-radius: inherit; pointer-events: none; }
.campus-detail img { display: block; width: 100%; height: auto; }
.conference-facts { background: var(--bg-light); border-bottom: 1px solid var(--border); }
.facts-layout { display: grid; grid-template-columns: .8fr 1.8fr 1fr; gap: 32px; padding-block: 28px; }
.facts-layout dt { font-size: 13px; color: #666f79; margin-bottom: 3px; }
.facts-layout dd { color: var(--conference-navy); font-size: 18px; line-height: 1.5; }
.home-content { display: grid; grid-template-columns: 1.25fr 1fr; gap: 88px; padding-block: 68px 80px; }
.home-content h2 { font-size: 29px; line-height: 1.4; margin-bottom: 22px; }
.home-overview p { font-size: 17px; line-height: 1.95; max-width: 60ch; }
.text-link { display: inline-flex; align-items: center; gap: 20px; min-height: 40px; font-size: 15px; margin-top: 21px; }
.home-news-item + .home-news-item { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.home-news-item time { display: block; color: var(--text-light); font-size: 13px; margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.home-news-item a { font-size: 17px; color: var(--primary); line-height: 1.55; }
.home-news-item a:hover { color: var(--accent); }
.page-header { position: relative; text-align: left; padding: 56px max(32px, calc((100% - 992px) / 2)); min-height: 210px; background: var(--bg-light); overflow: hidden; }
.page-header::after { content: ''; position: absolute; right: max(32px, calc((100% - 992px) / 2)); top: 32px; width: 230px; height: 146px; background: url('../img/background.jpg') 54% center / cover; border-radius: 4px 40px 4px 4px; }
.page-header h1 { position: relative; max-width: calc(100% - 280px); font-size: 38px; color: var(--conference-navy); line-height: 1.4; z-index: 1; }
.page-header p { position: relative; max-width: calc(100% - 280px); font-size: 16px; color: #606c76; margin: 10px 0 0; z-index: 1; }
.container > .section { padding-top: 46px; padding-bottom: 46px; }
.container > .section + .section { padding-top: 0; }
.container > .section:last-child { padding-bottom: 64px; }
.intro-text { line-height: 1.95; }
.intro-text + .intro-text { margin-top: 18px; }
.news-list { margin: 0; }
.news-list-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 36px; padding: 26px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.news-list-item:hover { padding: 26px 0; margin: 0; border-radius: 0; background: transparent; }
.news-list-item a { font-size: 21px; line-height: 1.5; }
.news-list-item .news-date { grid-column: 2; grid-row: 1; }
.news-summary { font-size: 15px; color: var(--text-light); grid-column: 1 / -1; max-width: 78ch; line-height: 1.8; }
.org-section h2 { color: var(--conference-navy); text-transform: none; letter-spacing: 0; font-size: 21px; margin-bottom: 10px; padding-bottom: 12px; }
.org-card { border: 0; border-radius: 4px; padding: 15px 16px; margin-bottom: 2px; gap: 20px; }
.org-card:nth-of-type(even) { background: var(--bg-light); }
.org-card:hover { border-color: transparent; }
.org-card-name { font-size: 17px; }
.speaker-detail { box-shadow: none; border-color: var(--border); padding: 28px; }
.accepted-papers-section { padding-top: 42px; padding-bottom: 64px; }
.accepted-papers-list { font-family: 'Times New Roman', Times, serif; line-height: 1.4; font-size: 19px; }
.accepted-papers-list li { margin-bottom: 28px; }
.empty-panel { padding: 70px 0 96px; color: var(--text-light); font-size: 17px; }
.schedule-table td.schedule-pending { padding-block: 28px; color: var(--text-light); font-size: 15px; }
.contact-grid { margin-top: 0; }
.contact-card { text-align: left; padding: 26px; }
.contact-card:hover { transform: none; box-shadow: none; }
.contact-card h3 { color: var(--conference-navy); font-size: 18px; }
.contact-card p { overflow-wrap: anywhere; word-break: normal; }
.footer { margin-top: auto; padding: 30px 32px; text-align: left; background: var(--bg-light); }
.footer-content { max-width: 1120px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; align-items: start; }
.footer-brand { grid-row: span 2; font-size: 23px; line-height: 1.6; color: var(--conference-navy); font-weight: 700; }
.footer p { text-align: right; font-size: 13px; }
.footer-organizer { margin-top: 0; }
@media (min-width: 901px) and (max-width: 1120px) {
  .navbar-links { gap: 20px; }
  .hero-layout { gap: 38px; min-height: 620px; padding-block: 42px; }
  .hero-copy h1 { font-size: clamp(52px, 6.1vw, 68px); }
  .hero-conference { font-size: 23px; }
  .hero-art { height: 440px; }
  .city-portrait { aspect-ratio: 2; }
  .campus-detail { left: -28px; width: 60%; }
}
@media (max-width: 900px) {
  .wide-container, .container { padding-inline: 24px; }
  .utility-content > span:last-child { display: none; }
  .navbar { height: 72px; }
  .conference-logo { width: 90px; }
  .menu-toggle { display: block; padding: 6px 10px; min-width: 44px; min-height: 44px; }
  .navbar-links { display: none; position: absolute; top: 100%; left: 0; bottom: auto; width: min(360px, 100%); max-height: calc(100dvh - 106px); background: #fff; padding: 16px 24px; flex-direction: column; align-items: stretch; gap: 2px; overflow-y: auto; border-right: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 11px 10px; min-height: 44px; border: 0; border-radius: 4px; }
  .navbar-links a.active { background: var(--bg-light); border: 0; }
  .more-item summary { padding: 11px 10px; min-height: 44px; }
  .more-panel { position: static; width: auto; padding: 2px 0 8px 10px; box-shadow: none; border: 0; grid-template-columns: 1fr; }
  .more-panel a { font-size: 14px; color: #59636d; }
  .lang-item { margin-top: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
  .hero-layout { min-height: 0; gap: 36px; padding-block: 48px; grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 53px; letter-spacing: -2px; }
  .hero-conference { font-size: 21px; }
  .hero-meeting { font-size: 15px; gap: 4px 15px; }
  .hero-meeting span { padding-left: 15px; }
  .hero .btn { padding: 10px 14px; gap: 14px; font-size: 15px; }
  .hero-art { height: auto; aspect-ratio: 1.4; max-width: 720px; margin-inline: auto; }
  .city-portrait { width: 94%; aspect-ratio: 2.05; border-top-right-radius: 48px; }
  .campus-detail { width: 60%; left: 0; border-width: 5px; }
  .photo-accent { right: -8px; width: 90%; }
  .facts-layout { gap: 22px; grid-template-columns: .8fr 1.5fr 1fr; padding-block: 24px; }
  .facts-layout dd { font-size: 16px; }
  .home-content { gap: 40px; padding-block: 48px; }
  .home-content h2 { font-size: 26px; }
  .home-overview p { font-size: 16px; }
}
@media (max-width: 640px) {
  .wide-container, .container { padding-inline: 20px; }
  .utility-bar { font-size: 12px; }
  .utility-separator { margin-inline: 10px; }
  .navbar { height: 68px; }
  .conference-logo { width: 84px; }
  .hero-layout { grid-template-columns: 1fr; padding-block: 40px 36px; gap: 34px; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: clamp(49px, 13vw, 66px); margin-bottom: 18px; }
  .hero-conference { font-size: 21px; line-height: 1.6; margin-bottom: 21px; }
  .hero-meeting { gap: 5px 15px; }
  .hero .hero-actions { flex-direction: row; align-items: stretch; gap: 12px; margin-top: 26px; }
  .hero .btn { min-height: 46px; padding-inline: 16px; gap: 16px; font-size: 15px; }
  .hero-art { width: 100%; max-width: 520px; height: auto; aspect-ratio: 1.02; }
  .city-portrait { width: 100%; aspect-ratio: 2; right: 0; top: 0; }
  .campus-detail { width: 88%; left: 0; bottom: 0; border-width: 4px; border-top-left-radius: 32px; }
  .photo-accent { top: 16px; right: -3px; width: 95%; border-top-right-radius: 48px; }
  .facts-layout { grid-template-columns: 1fr; gap: 19px; padding-block: 26px; }
  .facts-layout > div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; align-items: baseline; }
  .facts-layout dt { font-size: 13px; }
  .facts-layout dd { font-size: 16px; }
  .home-content { grid-template-columns: 1fr; gap: 42px; padding-block: 38px 48px; }
  .home-content h2 { font-size: 25px; margin-bottom: 16px; }
  .home-overview p { font-size: 16px; }
  .home-updates { padding-top: 30px; border-top: 1px solid var(--border); }
  .home-news-item a { font-size: 17px; }
  .page-header { padding: 30px 20px; min-height: 0; }
  .page-header::after { display: none; }
  .page-header h1 { max-width: none; font-size: 29px; }
  .page-header p { max-width: none; font-size: 15px; }
  .container > .section { padding-block: 32px; }
  .container > .section:last-child { padding-bottom: 44px; }
  .news-list-item { grid-template-columns: 1fr; gap: 6px; padding-block: 23px; }
  .news-list-item:hover { padding-block: 23px; }
  .news-list-item .news-date { grid-column: 1; grid-row: 1; margin: 0; }
  .news-list-item a { grid-row: 2; font-size: 21px; }
  .news-summary { grid-row: 3; font-size: 15px; }
  .org-card { padding: 13px 12px; gap: 5px; }
  .org-section h2 { font-size: 18px; }
  .accepted-papers-section { padding-top: 30px; }
  .accepted-papers-list { font-size: 17px; padding-left: 1.75rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer { padding: 26px 20px; }
  .footer-content { display: block; }
  .footer-brand { display: inline-block; margin-bottom: 10px; font-size: 22px; }
  .footer p { text-align: left; }
  .footer-organizer { margin-top: 6px; }
}
/* Native same-origin page transitions; older browsers retain the existing entry fade. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes page-depart {
  to { opacity: 0; transform: translateY(-4px); }
}
.page-ready .hero-copy { animation: hero-arrive 400ms cubic-bezier(.2,.7,.3,1) both; }
.page-ready .city-portrait { animation: hero-arrive 460ms 60ms cubic-bezier(.2,.7,.3,1) both; }
.page-ready .campus-detail { animation: hero-arrive 460ms 120ms cubic-bezier(.2,.7,.3,1) both; }
::view-transition-old(root) { animation: page-depart 160ms ease both; }
::view-transition-new(root) { animation: page-arrive 240ms cubic-bezier(.2,.7,.3,1) both; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
