:root {
  --blue: #1768d5;
  --blue-dark: #0c4ca4;
  --blue-soft: #edf6ff;
  --sky: #dff3ff;
  --ink: #14243a;
  --text: #33445b;
  --muted: #687990;
  --line: #dce6f1;
  --surface: #ffffff;
  --page: #f4f8fc;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(28, 73, 122, .10);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --control-height: 48px;
  --text-body: 16px;
  --text-meta: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-kerning: normal;
  font-synthesis: none;
  line-height: 1.62;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); }
img { display: block; max-width: 100%; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(23, 104, 213, .38);
  outline-offset: 3px;
}
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.page-main { min-height: calc(100vh - 260px); }
.section { padding: 84px 0; }
.section-soft { background: linear-gradient(180deg, #f1f8ff 0%, #f8fbfd 100%); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-heading h2, .page-title { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(31px, 4vw, 48px); font-weight: 760; line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
.section-heading p, .page-intro { max-width: 720px; margin: 12px 0 0; color: var(--muted); }
.text-link { font-weight: 750; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.eyebrow { display: none !important; }
.page-title, .section-heading h2, .title-accent, .material-detail-head h2, .detail-view > h2 { position: relative; padding-left: 22px; }
.page-title::before, .section-heading h2::before, .title-accent::before, .material-detail-head h2::before, .detail-view > h2::before {
  position: absolute; top: .13em; bottom: .13em; left: 0; width: 5px; border-radius: 99px;
  background: linear-gradient(180deg, var(--blue), #65b7e8); content: "";
}

/* Shared header */
[data-site-header] {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header {
  position: relative;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(214, 226, 239, .9);
  backdrop-filter: blur(16px);
  transition: box-shadow .22s ease, background .22s ease;
}
.site-header.scrolled { background: rgba(255, 255, 255, .98); box-shadow: 0 10px 35px rgba(25, 64, 106, .11); }
.header-inner { height: 94px; display: flex; align-items: center; gap: 30px; transition: height .22s ease; }
.site-header.scrolled .header-inner { height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 66px; height: 66px; object-fit: contain; transition: width .22s ease, height .22s ease; }
.site-header.scrolled .brand-logo { width: 56px; height: 56px; }
.brand-expansion { display: grid; gap: 2px; color: var(--ink); line-height: 1; }
.brand-expansion > span { display: flex; align-items: baseline; }
.brand-expansion strong { color: var(--blue); font-size: 11px; font-style: normal; }
.brand-expansion em { color: #33445b; font-size: 11px; font-style: normal; font-weight: 680; letter-spacing: .01em; }
.brand-copy { display: grid; align-content: center; line-height: 1.06; }
.brand-copy strong { margin-bottom: 5px; color: var(--ink); font-size: 21px; letter-spacing: .02em; }
.brand-copy span { color: var(--muted); font-size: 10px; line-height: 1.12; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 4px; margin-left: auto; }
.main-nav a { padding: 10px 13px; color: #42536b; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); background: var(--blue-soft); }
.login-button, .primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: white;
  background: var(--blue);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(23, 104, 213, .2);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.login-button:hover, .primary-button:hover { background: var(--blue-dark); }
.mobile-menu-button { display: none; width: 44px; height: 44px; padding: 0; background: white; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 20px; cursor: pointer; }

/* Home */
.home-hero { position: relative; isolation: isolate; overflow: hidden; padding: 88px 0 96px; background: linear-gradient(116deg, #fbfdff 0%, #f3f8fd 46%, #eaf2fa 100%); }
.home-hero::before { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(115deg, transparent 0 43%, rgba(18,76,130,.055) 43% 43.15%, transparent 43.15% 100%), linear-gradient(25deg, transparent 0 64%, rgba(23,104,213,.055) 64% 64.12%, transparent 64.12% 100%), radial-gradient(circle at 9% 88%, rgba(23,104,213,.13), transparent 27%), radial-gradient(ellipse at 87% 8%, rgba(82,162,220,.20), transparent 36%); content: ""; pointer-events: none; }
.home-hero::after { position: absolute; z-index: -1; width: 520px; height: 270px; right: -70px; bottom: -120px; background: repeating-linear-gradient(155deg, rgba(12,76,164,.07) 0 1px, transparent 1px 22px); clip-path: polygon(12% 0, 100% 15%, 86% 100%, 0 82%); content: ""; pointer-events: none; }
.home-hero + .section { position: relative; background: linear-gradient(180deg, #f9fcff 0%, #f1f6fb 100%); }
.home-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, .93fr); gap: 44px; align-items: center; }
.home-hero-copy { max-width: 690px; }
.home-hero h1 { max-width: 680px; margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(42px, 4.65vw, 64px); font-weight: 735; line-height: 1.1; letter-spacing: -.027em; text-wrap: balance; }
.nadn-expanded-title strong { color: var(--blue); font-size: 1em; font-weight: 790; letter-spacing: inherit; }
.home-hero p { max-width: 625px; margin: 28px 0 32px; color: #52657d; font-size: clamp(17px, 1.7vw, 20px); }
.home-hero-visual { margin: 0; }
.hero-image-frame { position: relative; min-height: 470px; aspect-ratio: 1.08; overflow: hidden; background: white; border: 1px solid rgba(171,207,233,.84); border-radius: 32px 32px 88px 32px; box-shadow: 0 32px 78px rgba(18,76,128,.19); }
.hero-image-frame::before { position: absolute; z-index: 1; width: 110px; height: 4px; left: 24px; top: 24px; background: rgba(255,255,255,.88); border-radius: 999px; box-shadow: 0 10px 0 rgba(255,255,255,.52); content: ""; pointer-events: none; }
.hero-image-frame::after { position: absolute; inset: 0; background: linear-gradient(112deg, rgba(13,76,130,.1), transparent 40%, rgba(218,242,255,.05)); content: ""; pointer-events: none; }
.hero-image-frame img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; object-position: 50% 50%; }
.outline-button { display: inline-flex; min-height: 46px; align-items: center; padding: 10px 17px; color: var(--blue); background: white; border: 1px solid #bcd5ef; border-radius: 12px; font-weight: 750; text-decoration: none; }
.outline-button:hover { background: var(--blue-soft); }
.news-events-grid { display: grid; grid-template-columns: minmax(0, 1.92fr) minmax(300px, 1fr); gap: 24px; align-items: stretch; }
.news-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; }
.news-card, .event-card, .content-card, .profile-card, .committee-card, .partner-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.profile-card, .committee-card, .partner-card { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.profile-card:hover, .committee-card:hover, .partner-card:hover { transform: translateY(-4px); border-color: #b7d5ec; box-shadow: 0 18px 40px rgba(23,74,119,.11); }
.news-card { display: flex; min-width: 0; flex-direction: column; color: inherit; text-decoration: none; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.news-card.featured { grid-row: 1 / span 2; }
.news-card:hover { transform: translateY(-5px); border-color: #b7d5ec; box-shadow: 0 20px 44px rgba(23,74,119,.13); }
.news-visual { min-height: 235px; overflow: hidden; background: #d8ecfa; }
.news-visual img { width: 100%; height: 100%; min-height: 235px; object-fit: cover; transition: transform .45s ease; }
.news-card:hover .news-visual img { transform: scale(1.035); }
.news-card:not(.featured) .news-visual { min-height: 110px; }
.news-card:not(.featured) .news-visual img { min-height: 110px; }
.card-body { padding: 22px; }
.card-meta { color: var(--blue); font-size: var(--text-meta); font-weight: 780; letter-spacing: .045em; text-transform: uppercase; }
.card-body h3 { margin: 8px 0; color: var(--ink); font-family: var(--font-display); font-size: 20px; font-weight: 740; line-height: 1.34; letter-spacing: -.012em; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.card-arrow { display: inline-block; margin-top: 15px; color: var(--blue); font-size: 13px; font-weight: 800; transition: transform .2s ease; }
.news-card:hover .card-arrow, .event-card:hover .card-arrow, .event-compact:hover .card-arrow { transform: translateX(4px); }
.events-column { display: flex; min-width: 0; flex-direction: column; gap: 14px; padding: 22px; background: rgba(255,255,255,.67); border: 1px solid var(--line); border-radius: 24px; }
.events-column > h3 { margin: 0 0 4px; color: var(--ink); font-size: 25px; }
.home-events-list { display: grid; gap: 14px; }
.event-compact { display: grid; grid-template-columns: 72px 48px 1fr; gap: 12px; align-items: center; padding: 12px; color: inherit; background: white; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.event-compact:hover { transform: translateY(-3px); border-color: #b7d5ec; box-shadow: 0 16px 34px rgba(23,74,119,.12); }
.event-compact-image { display: block; width: 72px; height: 82px; overflow: hidden; background: #d8ecfa; border-radius: 12px; }
.event-compact-image img { width: 100%; height: 100%; object-fit: cover; }
.event-date { color: var(--blue); text-align: center; line-height: 1; }
.event-date strong { display: block; font-size: 32px; }
.event-date span { font-size: 12px; font-weight: 800; text-transform: uppercase; }
.event-compact h4 { margin: 0 0 5px; color: var(--ink); line-height: 1.35; }
.event-compact p { margin: 0 0 7px; color: var(--muted); font-size: 13px; }
.event-compact .card-arrow { margin-top: 7px; }
.ai-home-section { position: relative; overflow: hidden; color: white; background: linear-gradient(135deg, #0d4da8 0%, #1768d5 58%, #258be5 100%); }
.ai-home-section::after { position: absolute; width: 520px; height: 520px; right: -160px; top: -300px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; content: ""; }
.ai-home-card { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(430px, 1.05fr); gap: 70px; align-items: center; }
.ai-home-card h2, .partners-home-copy h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.ai-home-card h2 { color: white; }
.ai-home-card p { max-width: 650px; margin: 14px 0 0; color: rgba(255,255,255,.82); font-size: 16px; }
.ai-home-card .ai-home-lead { margin-top: 19px; color: white; font-size: clamp(20px, 2.1vw, 27px); font-weight: 700; line-height: 1.28; }
.eyebrow-light { display: none !important; }
.ai-entry { display: flex; gap: 10px; padding: 8px; background: white; border-radius: 18px; box-shadow: 0 22px 55px rgba(0, 31, 80, .24); }
.ai-entry input { width: 100%; min-width: 0; padding: 12px 15px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.ai-entry button { width: 50px; height: 50px; flex: 0 0 auto; color: white; background: var(--blue); border: 0; border-radius: 13px; font-size: 23px; cursor: pointer; }
.partners-home-copy h2 { color: var(--ink); }
.partners-home-copy p { max-width: 700px; margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.partner-carousel { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 12px; align-items: center; margin-top: 38px; }
.partner-viewport { min-width: 0; overflow: hidden; scroll-behavior: auto; }
.partner-track, .partner-set { display: flex; align-items: center; gap: 16px; width: max-content; }
.partner-logo { display: grid; width: 150px; height: 118px; flex: 0 0 150px; place-items: center; padding: 18px 14px; color: #2154a1; background: white; border: 1px solid var(--line); border-radius: 18px; font-weight: 800; text-align: center; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.partner-logo:hover { transform: translateY(-3px); border-color: #b7d6ee; box-shadow: 0 16px 34px rgba(29,86,137,.10); }
.partner-logo img { width: 100%; max-width: 122px; height: 68px; object-fit: contain; mix-blend-mode: multiply; }
.partner-grid-static { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-top: 38px; }
.partner-logo-item { display: grid; min-width: 0; min-height: 112px; place-items: center; padding: 14px 8px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.partner-logo-item .partner-logo-link { display: grid; align-items: center; justify-items: center; gap: 7px; text-align: center; }
.partner-logo-item .partner-mark { width: auto; height: auto; padding: 2px; background: transparent; border: 0; }
.partner-logo-item .partner-mark img { width: auto; max-width: 118px; height: 62px; object-fit: contain; }
.partner-logo-name { color: var(--ink); font-size: 11px; font-weight: 750; line-height: 1.2; }
.partner-carousel-button { width: 46px; height: 46px; padding: 0; color: var(--blue); background: white; border: 1px solid #c7daec; border-radius: 50%; box-shadow: 0 10px 24px rgba(28,73,122,.08); font-size: 22px; cursor: pointer; }
.partner-carousel-button:hover { color: white; background: var(--blue); border-color: var(--blue); }
.partners-all-link { display: inline-flex; margin-top: 24px; }

/* Generic content pages */
.page-main:not(.ai-page) { background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 36%, #ffffff 100%); }
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 82px 0 58px; background: radial-gradient(ellipse at 82% 0, rgba(117,197,240,.2), transparent 44%), linear-gradient(145deg, #ffffff 0%, #eef8ff 100%); border-bottom: 1px solid rgba(203,222,238,.65); }
.page-hero::after { position: absolute; z-index: -1; width: 340px; height: 340px; right: 7%; top: -230px; background: repeating-linear-gradient(135deg, rgba(34,125,190,.08) 0 1px, transparent 1px 18px); clip-path: polygon(12% 0, 100% 18%, 84% 100%, 0 80%); transform: rotate(8deg); content: ""; }
.page-hero-compact { padding: 48px 0 36px; }
.page-hero-detail { padding: 30px 0 24px; }
.content-narrow { max-width: 820px; }
.info-grid, .profiles-grid, .committees-grid, .partners-grid, .events-grid, .materials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.info-card { padding: 26px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.info-card h3 { margin: 0 0 8px; color: var(--ink); }
.info-card p { margin: 0; color: var(--muted); }
.profile-card { padding: 18px; }
.profile-photo { display: grid; width: 100%; height: auto; aspect-ratio: 1; place-items: center; overflow: hidden; background: linear-gradient(145deg, #eaf6ff, #cde7fa); border-radius: 15px; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .initials { color: var(--blue); font-size: 54px; font-weight: 800; }
.profile-card h3, .committee-card h3, .partner-card h3, .event-card h3, .content-card h3 { margin: 17px 0 6px; color: var(--ink); line-height: 1.3; }
.profile-card p, .committee-card p, .partner-card p, .event-card p, .content-card p { margin: 0; color: var(--muted); font-size: 14px; }
.committee-card, .partner-card, .content-card { padding: 24px; }
.committee-card .text-link, .event-card .text-link, .content-card .text-link { display: inline-block; margin-top: 18px; }
.event-card { display: flex; flex-direction: column; padding: 0; color: inherit; text-decoration: none; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.event-card:hover, .event-card:focus-visible { transform: translateY(-5px); border-color: #b7d5ec; box-shadow: 0 20px 44px rgba(23,74,119,.13); }
.event-card-image { aspect-ratio: 16 / 9; overflow: hidden; background: #d8ecfa; }
.event-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.event-card:hover .event-card-image img { transform: scale(1.035); }
.event-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.event-card-body .card-arrow { margin-top: auto; padding-top: 18px; }
.material-card { display: flex; flex-direction: column; padding: 0; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.material-card:hover { transform: translateY(-5px); border-color: #b7d5ec; box-shadow: 0 20px 44px rgba(23,74,119,.13); }
.material-card-image { aspect-ratio: 16 / 9; overflow: hidden; background: #d8ecfa; }
.material-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.material-card:hover .material-card-image img { transform: scale(1.035); }
.material-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.material-card-body .text-link { margin-top: auto; padding-top: 18px; }
.partner-mark { display: grid; height: 108px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 16px; font-size: 28px; font-weight: 900; }
.partner-mark-image { padding: 14px; background: white; border: 1px solid #edf2f6; }
.partner-mark-image img { width: 100%; height: 78px; object-fit: contain; mix-blend-mode: multiply; }
.partner-mark-word { color: #273a96; font-size: 34px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--ink); font-size: 13px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.filter-button { min-height: 46px; padding: 9px 16px; color: #234c76; background: white; border: 1px solid #9fc7ea; border-radius: 13px; font-weight: 750; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.filter-button.active, .filter-button:hover { color: white; background: var(--blue); border-color: var(--blue); }
.filter-button:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(23,104,213,.16); }
.search-field { width: min(620px, 100%); padding: 14px 17px; border: 1px solid var(--line); border-radius: 14px; outline: none; }
.search-field:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,104,213,.1); }
.detail-view { max-width: 960px; padding: 34px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-view h2 { margin-top: 0; color: var(--ink); font-size: clamp(30px, 4vw, 44px); line-height: 1.14; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.fact { padding: 8px 12px; color: #35536f; background: var(--blue-soft); border-radius: 999px; font-size: 13px; font-weight: 700; }
.detail-section { margin-top: 30px; }
.detail-section h3 { color: var(--ink); }
.event-detail-image { aspect-ratio: 16 / 7.6; margin: 28px 0 30px; overflow: hidden; border-radius: 20px; background: #d8ecfa; }
.event-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.event-detail-intro { max-width: 760px; font-size: 18px; }
.event-program { display: grid; gap: 10px; padding-left: 24px; }
.event-materials, .event-registration { padding: 24px; background: var(--blue-soft); border: 1px solid #d0e4f4; border-radius: 18px; }
.event-materials h3, .event-registration h3 { margin: 5px 0 8px; }
.event-materials p, .event-registration p { margin-top: 0; }
.detail-back { margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.material-detail-head { max-width: 800px; }
.material-preview { position: relative; display: block; aspect-ratio: 16 / 8.4; margin: 30px 0; overflow: hidden; color: white; background: #d8ecfa; border-radius: 22px; box-shadow: 0 24px 58px rgba(24,75,121,.16); }
.material-preview::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(8,35,66,.67)); content: ""; pointer-events: none; }
.material-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.material-preview-video:hover img { transform: scale(1.025); }
.material-preview-label { position: absolute; z-index: 2; left: 24px; bottom: 20px; font-size: 14px; font-weight: 800; letter-spacing: .03em; }
.play-button { position: absolute; z-index: 2; display: grid; width: 72px; height: 72px; left: 50%; top: 50%; place-items: center; color: var(--blue); background: rgba(255,255,255,.94); border-radius: 50%; box-shadow: 0 14px 38px rgba(0,31,67,.24); transform: translate(-50%, -50%); transition: transform .2s ease, background .2s ease; }
.material-preview-video:hover .play-button { background: white; transform: translate(-50%, -50%) scale(1.07); }
.material-detail-intro { max-width: 760px; margin: 0; color: #435a73; font-size: 18px; }
.material-player { padding: 26px; background: linear-gradient(145deg, #f0f8ff, #ffffff); border: 1px solid #cfe3f3; border-radius: 18px; }
.material-player h3 { margin: 7px 0; }
.material-player p { max-width: 700px; margin-top: 0; }
.related-event-link { margin-top: 26px; }

/* Educational module */
.library-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 32px; }
.library-controls .search-field { height: var(--control-height); min-height: var(--control-height); flex: 1 1 360px; padding-block: 0; border-color: #9fc7ea; border-radius: 13px; }
.filter-select {
  height: var(--control-height); min-height: var(--control-height); padding: 0 42px 0 15px; color: var(--ink);
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%231768d5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  border: 1px solid #9fc7ea; border-radius: 13px; font: inherit; font-weight: 680;
  appearance: none; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.filter-select:hover { border-color: var(--blue); background-color: #fbfdff; }
.filter-select:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,104,213,.14); }
.compact-filter-panel { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 30px; padding: 12px; background: #f3f8fd; border: 1px solid #cfe2f2; border-radius: 17px; }
.compact-filter-panel .search-field { flex: 1 1 320px; }
.role-filter { display: flex; flex-wrap: wrap; gap: 7px; }
.event-filter-panel .role-filter { margin-right: auto; }
.person-role-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.person-role-chips span { padding: 5px 9px; color: #185f9e; background: #e9f5ff; border-radius: 999px; font-size: 11px; font-weight: 750; }
.person-detail-head { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; margin: 24px 0 30px; }
.person-detail-head .profile-photo { width: 150px; height: 150px; }
.person-detail-head h2 { margin: 8px 0; }
.course-lecture-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.course-lecture-list a { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 16px; color: inherit; text-decoration: none; background: #f7fbff; border: 1px solid var(--line); border-radius: 14px; }
.course-lecture-list a > span { display: grid; width: 34px; height: 34px; place-items: center; color: white; background: var(--blue); border-radius: 50%; font-weight: 800; }
.course-lecture-list p { margin: 5px 0 0; color: var(--muted); }
.program-speakers { margin-top: 7px; font-size: 14px; }
.program-speakers a { color: var(--blue); font-weight: 750; }
.source-line { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px !important; }
.source-card { padding: 24px; background: #f4f9fd; border: 1px solid #cfe2f1; border-radius: 18px; }
.source-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.source-card dl div { padding-bottom: 9px; border-bottom: 1px solid #dbe8f2; }
.source-card dt { color: var(--muted); font-size: 12px; font-weight: 750; }
.source-card dd { margin: 4px 0 0; color: var(--ink); }
.readable-text { max-width: 760px; color: #344c66; font-size: 17px; line-height: 1.72; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.relation-list { display: grid; gap: 9px; padding-left: 20px; }
.relation-list a { color: var(--blue); }
.relation-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.relation-cards a { display: grid; gap: 4px; padding: 16px; color: inherit; text-decoration: none; background: #f6faff; border: 1px solid #d8e7f3; border-radius: 14px; }
.relation-cards span, .relation-cards small { color: var(--muted); }
.medical-warning { margin-top: 30px; padding: 16px 18px; color: #5b4a20; background: #fff9e9; border: 1px solid #ecdba7; border-radius: 14px; }
.education-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.education-entry-card { min-height: 260px; padding: 28px; color: inherit; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 40px rgba(23,74,119,.06); transition: transform .2s ease, box-shadow .2s ease; }
.education-entry-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(23,74,119,.12); }
.education-entry-card h2 { color: var(--ink); font-size: 26px; }
.education-entry-card p { min-height: 80px; color: var(--muted); line-height: 1.65; }
.education-agent-section { padding-top: 0; }
.education-agent-card { padding: 44px; color: white; background: linear-gradient(135deg, #0d4f91, #1678c5); border-radius: 30px; }
.education-agent-card h2 { margin: 8px 0 24px; font-size: clamp(28px, 4vw, 44px); }
.education-agent-card .eyebrow { color: #bfe5ff; }
.education-agent-form { display: grid; grid-template-columns: 190px 1fr auto; gap: 10px; }
.education-agent-form .primary-button { color: var(--blue); background: white; }
.education-agent-card > p { max-width: 760px; color: rgba(255,255,255,.82); }
.education-ai-redirect { display: grid; grid-template-columns: 1fr 58px; gap: 9px; margin-top: 24px; }
.education-ai-redirect .primary-button { min-width: 58px; padding: 0; color: var(--blue); background: white; font-size: 24px; }
.education-agent-answer { margin-top: 22px; padding: 22px; color: var(--ink); background: white; border-radius: 18px; }
.education-sources { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.education-sources a { color: var(--blue); }
.speaker-card { display: block; color: inherit; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 20px; }
.speaker-card .text-link { display: inline-block; margin-top: 16px; }
.education-loading, .education-error, .empty-state, .admin-notice { grid-column: 1 / -1; padding: 20px; color: var(--muted); background: #f5f9fc; border: 1px solid var(--line); border-radius: 16px; }
.education-error { color: #9c2f2a; background: #fff3f2; border-color: #f0c2bf; }
.editor-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; padding: 5px; background: #f3f8fd; border: 1px solid #d4e5f3; border-radius: 17px; }
.editor-panel { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); gap: 34px; align-items: start; }
.pages-editor-panel { grid-template-columns: 1fr; }
.page-editor-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; padding: 5px; background: #f3f8fd; border: 1px solid #d4e5f3; border-radius: 17px; }
.page-editor-view { max-width: 960px; }
.page-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.page-photo-form { align-content: start; }
.page-current-photo { min-height: 180px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.page-current-photo img { width: 100%; height: 210px; object-fit: cover; border-radius: 11px; }
.page-editor-view > .editor-workspace { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 26px; }
#editorEvents, #editorSpeakers, #editorCompanies, #editorAudit { grid-template-columns: 1fr; }
.editor-form { display: grid; gap: 16px; min-width: 0; padding: 24px; background: #f6faff; border: 1px solid #d7e6f2; border-radius: 20px; }
.editor-form h2, .editor-form h3 { margin: 0; }
.editor-form label { display: grid; gap: 7px; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 750; }
.editor-form input, .editor-form textarea, .editor-form select { width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; background: white; border: 1px solid #cbdbea; border-radius: 11px; font: inherit; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.editor-form input:hover, .editor-form textarea:hover, .editor-form select:hover { border-color: #9fc7ea; }
.editor-form input:focus-visible, .editor-form textarea:focus-visible, .editor-form select:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,104,213,.13); }
.editor-form textarea { min-height: 112px; resize: vertical; }
.editor-form input[type="checkbox"], .editor-form input[type="radio"] { width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; border: 0; border-radius: 5px; accent-color: var(--blue); box-shadow: none; }
.editor-form input[type="range"] { min-height: 28px; padding: 0; background: transparent; border: 0; accent-color: var(--blue); box-shadow: none; }
.editor-form label:has(> input[type="checkbox"]), .editor-form label:has(> input[type="radio"]) { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; padding: 7px 0; line-height: 1.45; }
.editor-form fieldset { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.editor-form legend { padding: 0 8px; color: var(--ink); font-weight: 800; }
.editor-workspace { min-width: 0; }
.embedded-editor { margin-top: 22px; padding: 22px; border: 1px solid #cbddee; border-radius: 20px; background: #f7fbff; }
.embedded-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.editor-subsection { margin: 20px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.file-picker { display: inline-flex !important; align-items: center; width: fit-content; cursor: pointer; }
.file-picker input { position: absolute; width: 1px; min-width: 1px; height: 1px; min-height: 1px; padding: 0; border: 0; opacity: 0; }
.file-picker span { display: inline-flex; padding: 11px 16px; border: 1px solid var(--blue); border-radius: 12px; color: var(--blue); font-weight: 750; }
.file-picker input:focus-visible + span { outline: 3px solid rgba(23,104,213,.38); outline-offset: 3px; }
.asset-preview { display: flex; align-items: center; gap: 12px; }
.asset-preview img { width: 150px; height: 96px; border-radius: 12px; object-fit: cover; }
.asset-preview div { display: grid; gap: 6px; }
.crop-editor { display: grid; gap: 14px; }
.crop-stage { position: relative; width: min(100%, 420px); aspect-ratio: 1; overflow: hidden; background: #dcecf8; border: 2px solid #9fc7ea; border-radius: 18px; cursor: grab; touch-action: none; user-select: none; }
.page-crop-stage { aspect-ratio: 4 / 3; }
#homePageCropStage { aspect-ratio: 1.08; }
.crop-stage:active { cursor: grabbing; }
.crop-stage:focus-visible { outline: 4px solid rgba(23,104,213,.2); outline-offset: 3px; }
.crop-stage::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(8,62,115,.16); content: ""; pointer-events: none; }
.crop-stage img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; will-change: transform; pointer-events: none; }
.crop-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.people-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; max-height: 360px; overflow: auto; }
.person-pick { display: grid !important; grid-template-columns: auto 48px 1fr; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.person-pick-photo { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: #dcecf8; color: var(--blue); font-weight: 800; }
.person-pick-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-pick small { display: block; margin-top: 3px; color: var(--muted); }
.check-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.event-program-rich { display: grid; gap: 18px; padding: 0; list-style: none; }
.event-program-rich > li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-program-rich time { color: var(--blue); font-weight: 800; }
.program-person { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.program-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.program-person span { display: block; color: var(--muted); font-size: 14px; }
.editor-list { display: grid; gap: 12px; }
.editor-list-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.editor-list-item > div:first-child { display: grid; gap: 4px; min-width: 0; }
.editor-list-item span { color: var(--muted); font-size: 13px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.editor-actions button, .editor-actions a { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 13px; color: #31506e; background: white; border: 1px solid #cbdbea; border-radius: 10px; font-size: 13px; font-weight: 720; text-decoration: none; cursor: pointer; }
.editor-actions button:hover, .editor-actions a:hover { color: var(--blue); border-color: #91bde2; background: #f8fbff; }
.editor-actions .editor-action-primary { color: white; background: var(--blue); border-color: var(--blue); }
.editor-actions .editor-action-primary:hover { color: white; background: var(--blue-dark); border-color: var(--blue-dark); }
.editor-actions .editor-action-danger { margin-left: 4px; color: #a23838; background: #fffafa; border-color: #e7b9b9; }
.editor-actions .editor-action-danger:hover { color: #842727; background: #fff0f0; border-color: #d99d9d; }
.editor-status { margin: 0 0 26px; padding: 14px 17px; border: 1px solid #b9d7ef; border-radius: 14px; background: #f1f8ff; color: #245474; font-weight: 680; box-shadow: 0 10px 26px rgba(29,82,126,.07); }
.editor-status.status-success { color: #1f6248; background: #f0faf5; border-color: #a9dbc6; }
.editor-status.status-error { color: #8e3030; background: #fff4f3; border-color: #efbbb7; }
.editor-status.status-info { color: #245474; background: #f1f8ff; border-color: #b9d7ef; }
.admin-note { color: var(--muted); }

/* Association */
.association-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 64px; align-items: center; }
.association-story-copy h2, .association-feature h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 4vw, 47px); line-height: 1.12; letter-spacing: -.035em; }
.association-story-copy p, .association-feature p { color: #50657d; }
.association-story-copy p { margin: 17px 0 0; font-size: 18px; line-height: 1.72; }
.association-media { aspect-ratio: 16 / 11; margin: 0; overflow: hidden; border-radius: 28px 28px 78px 28px; box-shadow: 0 28px 70px rgba(22,73,120,.16); }
.association-media img { width: 100%; height: 100%; object-fit: cover; }
.association-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.numbered-card { position: relative; min-height: 220px; padding: 30px; }
.numbered-card > span { display: block; margin-bottom: 28px; color: #8ec5ea; font-size: 26px; font-weight: 850; }
.numbered-card h3 { font-size: 21px; }
.association-feature-grid { display: grid; gap: 32px; }
.association-feature { display: grid; grid-template-columns: minmax(330px, .88fr) minmax(0, 1.12fr); gap: 50px; align-items: center; min-height: 360px; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 18px 50px rgba(28,73,122,.07); }
.association-feature.reverse { grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); }
.association-feature.reverse img { grid-column: 2; }
.association-feature.reverse > div { grid-column: 1; grid-row: 1; }
.association-feature img { width: 100%; height: 300px; object-fit: cover; border-radius: 20px; }
.leadership-card { position: relative; padding: 16px 16px 24px; box-shadow: 0 16px 44px rgba(24,74,120,.08); }
.leadership-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; overflow: hidden; background: #e8f2f9; }
.leadership-photo img, .leadership-photo .neutral-avatar { width: 100%; height: 100%; object-fit: cover; }
.leadership-card h3 { margin-top: 8px; }
.leadership-card .profile-role { margin-bottom: 10px; color: var(--ink); font-size: 15px; font-weight: 800; }
.association-directions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.association-direction-card { display: flex; min-height: 280px; flex-direction: column; padding: 28px; color: inherit; background: white; border: 1px solid var(--line); border-radius: 24px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.association-direction-card:hover, .association-direction-card:focus-visible { transform: translateY(-4px); border-color: #b7d5ec; box-shadow: 0 18px 44px rgba(23,74,119,.11); }
.association-direction-card > span { color: #8ec5ea; font-size: 25px; font-weight: 850; }
.association-direction-card h3 { margin: 34px 0 8px; color: var(--ink); font-size: 24px; }
.association-direction-card p { margin: 0; color: var(--muted); }
.association-direction-card strong { margin-top: auto; padding-top: 22px; color: var(--blue); }

/* AI chat */
.ai-page { min-height: calc(100vh - 78px); padding: 64px 0 90px; background: radial-gradient(circle at 50% 0, #e8f6ff, transparent 36%); }
.ai-page h1 { max-width: 920px; margin: 0 auto 40px; color: var(--ink); font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -.045em; text-align: center; }
.chat-shell { width: min(880px, 100%); min-width: 0; margin: 0 auto; }
.chat-controls { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: end; }
.new-chat-button { min-height: 58px; padding: 12px 16px; color: var(--blue); background: white; border: 1px solid #bad6ef; border-radius: 16px; font-weight: 750; cursor: pointer; }
.chat-composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.chat-composer textarea { min-height: 42px; max-height: 160px; resize: none; padding: 10px 12px; color: var(--ink); background: transparent; border: 0; outline: none; line-height: 1.5; }
.chat-send { width: 48px; height: 48px; align-self: end; color: white; background: var(--blue); border: 0; border-radius: 14px; font-size: 21px; cursor: pointer; }
.chat-send:disabled { opacity: .55; cursor: wait; }
.conversation { min-width: 0; margin: 0 0 30px; }
.message { min-width: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.message.user { display: flex; justify-content: flex-end; border: 0; }
.message.user .message-content { max-width: 72%; padding: 13px 17px; color: #173250; background: #e8f3ff; border-radius: 18px 18px 5px 18px; }
.message.assistant .message-content { max-width: 800px; min-width: 0; color: #293e57; font-size: 16px; line-height: 1.72; overflow-wrap: anywhere; }
.message-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.message p { margin: 0 0 12px; }
.message p:last-child { margin-bottom: 0; }
.message h2, .message h3 { margin: 24px 0 8px; color: var(--ink); line-height: 1.25; }
.message ul, .message ol { min-width: 0; padding-left: 24px; }
.message li { min-width: 0; margin-bottom: 7px; overflow-wrap: anywhere; }
.message .text-link { white-space: normal; overflow-wrap: anywhere; }
.chat-loading { display: flex; align-items: center; gap: 10px; margin: 22px 0; color: var(--muted); }
.chat-loading::before { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); animation: pulse 1s infinite alternate; content: ""; }
@keyframes pulse { to { transform: scale(1.7); opacity: .35; } }
.chat-error { margin: 18px 0; padding: 14px 16px; color: #a32b25; background: #fff1f0; border: 1px solid #ffc9c5; border-radius: 14px; }
.chat-note { margin: 11px 0 0; color: var(--muted); font-size: 12px; text-align: right; }

/* Auth modal */
.auth-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(12, 31, 54, .55); backdrop-filter: blur(7px); }
.auth-dialog { width: min(720px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 28px; background: white; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.22); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.modal-head h2 { margin: 0; color: var(--ink); }
.modal-close { width: 40px; height: 40px; padding: 0; background: #f4f7fa; border: 0; border-radius: 50%; cursor: pointer; }
.auth-tabs { display: flex; gap: 8px; margin: 24px 0 18px; }
.auth-tab { padding: 9px 15px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.auth-tab.active { color: white; background: var(--blue); border-color: var(--blue); }
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 750; }
.auth-field input, .auth-field select { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; }
.auth-message { margin-top: 14px; padding: 12px; background: var(--blue-soft); border-radius: 11px; font-size: 14px; }
.auth-message.error { color: #9f261f; background: #fff0ef; }
.user-summary { display: grid; gap: 14px; margin-top: 24px; }
.secondary-button, .danger-button { min-height: 42px; padding: 9px 15px; background: white; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.danger-button { color: #a32b25; border-color: #f1bbb8; }
.test-role-panel, .admin-panel { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.test-role-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-user { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 10px; padding: 13px; background: #f7fafc; border-radius: 12px; }
.admin-user-actions { display: flex; gap: 7px; }

/* Footer */
.site-footer { padding: 54px 0 24px; color: rgba(255,255,255,.78); background: #0d2948; }
.footer-grid { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(390px, 1.25fr) minmax(190px, .6fr); gap: 54px; align-items: start; }
.footer-brand { color: white; }
.footer-brand .brand-copy strong { color: white; }
.footer-brand .brand-copy span { color: rgba(255,255,255,.65); }
.footer-brand .brand-logo { background: white; border-radius: 16px; }
.footer-title { margin: 0 0 13px; color: white; font-size: 14px; }
.footer-links { display: grid; justify-items: start; gap: 8px; }
.footer-links-sections { grid-template-columns: repeat(3, max-content); column-gap: 32px; }
.footer-links a, .footer-contacts a, .footer-bottom a { display: inline-flex; width: fit-content; align-items: center; color: rgba(255,255,255,.76); text-decoration: none; }
.footer-links a:hover, .footer-contacts a:hover, .footer-bottom a:hover { color: white; }
.footer-brand { width: fit-content; max-width: 100%; }
.footer-identity, .footer-navigation, .footer-contacts { display: grid; justify-items: start; align-content: start; gap: 14px; }
.footer-identity p { max-width: 270px; margin: 4px 0 0; color: rgba(255,255,255,.63); font-size: 13px; }
.footer-contacts { color: rgba(255,255,255,.68); }

/* Public editorial content */
.subsection-title { font-size: 26px !important; }
.news-card[data-card-href] { cursor: pointer; }
.interactive-card:focus-visible, .news-card[data-card-href]:focus-visible { outline: 3px solid rgba(23,104,213,.34); outline-offset: 3px; }
.news-card h3 a, .partner-card h3 a, .person-card h3 a, .speaker-card h3 a { color: inherit; text-decoration: none; }
.news-image-link, .profile-photo-link, .partner-logo-link { display: inline-flex; width: fit-content; max-width: 100%; text-decoration: none; }
.news-card .news-image-link { display: block; width: 100%; }
.news-card .text-link { margin-top: auto; }
.news-public-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-public-grid .news-card { min-height: 100%; }
.news-public-grid > .empty-state { grid-column: 1 / -1; }
.news-load-more { display: flex; justify-content: center; margin-top: 30px; }
.news-detail { max-width: 880px; margin: 0 auto; }
.news-detail h1 { margin: 18px 0; color: var(--ink); font-size: clamp(36px, 6vw, 64px); line-height: 1.04; }
.news-detail-cover { overflow: hidden; margin: 26px 0; aspect-ratio: 16 / 8; border-radius: 24px; }
.news-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.partner-card { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.partner-card .partner-mark { display: grid; width: 100%; height: 96px; place-items: center; }
.partner-card .partner-mark img { width: 100%; max-width: 150px; height: 72px; object-fit: contain; }
.partner-card .text-link { margin-top: auto; padding-top: 18px; }
.partner-detail-head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 34px; align-items: center; margin: 28px 0 32px; }
.partner-detail-head h1 { margin: 8px 0 0; color: var(--ink); font-size: clamp(34px, 5vw, 56px); line-height: 1.08; }
.partner-detail-logo { display: grid; height: 180px; place-items: center; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 22px; }
.partner-detail-logo img { width: 100%; height: 120px; object-fit: contain; }
.partner-detail-section { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.partner-detail-section h2 { color: var(--ink); font-size: 27px; }
.partner-external-action { margin-top: 36px; }
.related-event-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.related-event-card { overflow: hidden; color: inherit; background: #f8fbfe; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; }
.related-event-card > span { display: block; aspect-ratio: 16 / 8; overflow: hidden; }
.related-event-card img { width: 100%; height: 100%; object-fit: cover; }
.related-event-card > div { padding: 18px; }
.related-event-card h3 { margin: 7px 0; color: var(--ink); }
.related-event-card p { color: var(--muted); }
.related-event-card strong { color: var(--blue); }
.contact-card { display: grid; gap: 5px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.contact-card span { color: var(--muted); font-size: 13px; }
.contact-card strong, .contact-card a { color: var(--ink); text-decoration: none; }
.event-partner-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.event-partner-item { display: grid; min-width: 0; min-height: 130px; place-items: center; gap: 8px; padding: 15px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 16px; text-align: center; text-decoration: none; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.event-partner-item:hover { transform: translateY(-3px); border-color: #9fc7ea; box-shadow: 0 12px 28px rgba(23,74,119,.1); }
.event-partner-item img { width: 100%; max-width: 130px; height: 64px; object-fit: contain; }
.event-partner-item strong, .partner-placeholder { font-size: 12px; line-height: 1.25; }
.profile-photo-link { border-radius: 18px; }
.person-card, .speaker-card { cursor: default; }
.person-card h3 a:hover, .speaker-card h3 a:hover, .news-card h3 a:hover, .partner-card h3 a:hover { color: var(--blue); }
.neutral-avatar { display: grid; width: 100%; height: 100%; place-items: center; color: white; background: linear-gradient(145deg, #7db8df, #255fa9); font-size: 28px; font-weight: 800; }
.association-person-card .profile-photo { overflow: hidden; width: 104px; height: 104px; }
.association-person-card .profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.leadership-card .profile-photo-link { display: block; width: 100%; }
.leadership-card .leadership-photo { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; }
.empty-state { color: var(--muted); }
.result-action { display: inline-flex; width: fit-content; margin-top: 8px; padding: 8px 12px; color: var(--blue); background: var(--blue-soft); border-radius: 10px; font-weight: 750; text-decoration: none; }
.footer-bottom { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(390px, 1.25fr) minmax(190px, .6fr); gap: 54px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.footer-bottom > a { grid-column: 1 / 3; }
.footer-bottom > span { grid-column: 3; justify-self: start; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: 70px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; }
  .mobile-menu-button { display: block; margin-left: auto; }
  .home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 34px; }
  .news-events-grid, .ai-promo-inner { grid-template-columns: 1fr; }
  .news-events-grid { gap: 50px; }
  .ai-home-card { grid-template-columns: 1fr; gap: 28px; }
  .info-grid, .profiles-grid, .committees-grid, .partners-grid, .events-grid, .materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .association-story { grid-template-columns: 1fr; gap: 38px; }
  .association-media { width: min(100%, 760px); }
  .association-feature, .association-feature.reverse { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 30px; }
  .education-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-grid-static { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .association-directions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 44px; }
  .footer-contacts { grid-column: 1 / -1; }
  .footer-bottom { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 44px; }
  .footer-bottom > a { grid-column: 2; }
  .footer-bottom > span { grid-column: 1; grid-row: 1; }
  .news-public-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .education-agent-form { grid-template-columns: 180px 1fr; }
  .education-agent-form .primary-button { grid-column: 2; justify-self: start; }
  .editor-panel { grid-template-columns: 1fr; }
  .page-editor-view > .editor-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 62px 0; }
  .header-inner, .site-header.scrolled .header-inner { height: 72px; gap: 9px; }
  .brand-logo, .site-header.scrolled .brand-logo { width: 50px; height: 50px; }
  .brand { gap: 8px; }
  .brand-expansion { gap: 1px; }
  .brand-expansion strong, .brand-expansion em { font-size: 8.5px; }
  .brand-copy span { display: none; }
  .brand-copy strong { margin: 0; font-size: 16px; }
  .login-button { width: auto; min-width: 66px; min-height: 44px; padding: 0 12px; font-size: 13px; }
  .eyebrow { font-size: 14px; letter-spacing: .1em; }
  .home-hero { padding: 66px 0 68px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .home-hero h1 { font-size: clamp(36px, 10.8vw, 49px); line-height: 1.12; letter-spacing: -.022em; }
  .home-hero-visual { width: min(100%, 430px); margin-inline: auto; }
  .hero-image-frame, .hero-image-frame img { min-height: 330px; }
  .hero-image-frame { border-radius: 26px; }
  .news-grid, .info-grid, .profiles-grid, .committees-grid, .partners-grid, .events-grid, .materials-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-row: auto; }
  .event-compact { grid-template-columns: 72px 1fr; gap: 8px 13px; align-items: start; }
  .event-compact-image { grid-column: 1; grid-row: 1 / span 2; width: 72px; height: 92px; }
  .event-compact .event-date { grid-column: 2; grid-row: 1; display: flex; align-items: baseline; gap: 6px; text-align: left; }
  .event-compact .event-date strong { font-size: 24px; }
  .event-compact > div { grid-column: 2; grid-row: 2; }
  .partner-carousel { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 8px; margin-top: 28px; }
  .partner-carousel-button { width: 40px; height: 40px; }
  .partner-logo { width: 140px; height: 108px; flex-basis: 140px; }
  .partner-grid-static { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .partner-logo-item { min-height: 104px; }
  .partner-logo-item .partner-mark img { max-width: 124px; height: 58px; }
  .partner-detail-head { grid-template-columns: 1fr; gap: 20px; }
  .partner-detail-logo { width: 100%; height: 150px; }
  .related-event-grid { grid-template-columns: 1fr; }
  .event-partner-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .news-public-grid { grid-template-columns: 1fr; }
  .footer-links-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; column-gap: 18px; }
  .footer-links-sections a { white-space: normal; }
  .event-detail-image { aspect-ratio: 4 / 3; border-radius: 15px; }
  .detail-view { padding: 24px 18px; }
  .material-preview { aspect-ratio: 4 / 3; margin: 24px 0; border-radius: 16px; }
  .material-preview-label { left: 17px; bottom: 14px; }
  .play-button { width: 58px; height: 58px; }
  .association-pillars { grid-template-columns: 1fr; }
  .association-directions { grid-template-columns: 1fr; }
  .association-direction-card { min-height: 220px; }
  .association-feature, .association-feature.reverse { display: flex; min-height: 0; flex-direction: column; align-items: stretch; padding: 18px; }
  .association-feature img { height: 230px; }
  .association-feature.reverse img { order: 0; }
  .association-feature.reverse > div { order: 1; }
  .association-story { gap: 28px; }
  .association-media { aspect-ratio: 4 / 3; border-radius: 22px 22px 58px 22px; }
  .leadership-photo { height: auto; aspect-ratio: 1; }
  .section-heading { align-items: start; flex-direction: column; }
  .ai-entry { align-items: end; }
  .ai-entry input { min-height: 58px; }
  .ai-page { padding: 44px 0 70px; }
  .ai-page h1 { margin-bottom: 28px; }
  .chat-controls { grid-template-columns: 1fr; }
  .new-chat-button { justify-self: start; min-height: 44px; }
  .message.user .message-content { max-width: 88%; }
  .footer-bottom { grid-template-columns: 1fr; gap: 12px; }
  .footer-bottom > a, .footer-bottom > span { grid-column: 1; grid-row: auto; }
  .footer-links-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links a, .footer-contacts a, .footer-bottom a { min-height: 40px; padding-block: 6px; }
  .admin-user { grid-template-columns: 1fr; }
  .admin-user-actions { flex-wrap: wrap; }
  .education-entry-grid, .relation-cards { grid-template-columns: 1fr; }
  .library-controls > * { width: 100%; max-width: 100%; min-width: 0; }
  .page-photo-grid { grid-template-columns: 1fr; }
  .education-agent-card { padding: 28px 20px; border-radius: 22px; }
  .education-agent-form { grid-template-columns: 1fr; }
  .education-agent-form .primary-button { grid-column: 1; justify-self: stretch; }
  .source-card dl { grid-template-columns: 1fr; }
  .editor-list-item { align-items: stretch; flex-direction: column; }
  .editor-actions { justify-content: flex-start; }
  .editor-actions .editor-action-danger { margin-left: 0; }
  .editor-tabs, .page-editor-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-tabs .filter-button, .page-editor-tabs .filter-button { width: 100%; min-width: 0; padding-inline: 9px; }
  .compact-filter-panel { align-items: stretch; flex-direction: column; }
  .compact-filter-panel > *, .compact-filter-panel select { width: 100%; max-width: 100%; min-width: 0; }
  .compact-filter-panel .search-field { height: var(--control-height); min-height: var(--control-height); flex: 0 0 var(--control-height); }
  .role-filter { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .role-filter .filter-button { width: 100%; }
  .person-detail-head { grid-template-columns: 1fr; }
  .person-detail-head .profile-photo { width: 120px; height: 120px; }
  .education-ai-redirect { grid-template-columns: 1fr 54px; }
  .people-picker, .check-list { grid-template-columns: 1fr; }
  .embedded-editor { padding: 16px; }
  .embedded-editor > header { flex-direction: column; }
  .event-program-rich > li { grid-template-columns: 1fr; gap: 6px; }
}
