@import url("./typography.css?v=20261109manrope");

: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);
  --control-height: 48px;
  --control-arrow: 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");
  --text-body: 16px;
  --text-meta: 12px;
  --content-width: 1160px;
  --reading-width: 78ch;
  --content-gap: 20px;
  --card-padding: 22px;
}

* { 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;
}
summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
button:disabled { opacity: .55; cursor: not-allowed; }
button:disabled:hover { transform: none; box-shadow: none; }
.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(var(--content-width), 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); }
.home-hero-copy > p,
.page-intro,
.section-heading p,
.card-body p,
.event-compact p,
.event-card-body > p,
.material-card-body > p,
.info-card > p,
.association-story-copy p,
.association-direction-card p,
.education-entry-card p,
.partners-home-copy p,
.ai-home-card p:not(.ai-home-lead),
.committee-card > p,
.partner-card > p,
.event-detail-intro,
.material-detail-intro,
.readable-text,
.news-detail-body,
.detail-section > p,
.partner-detail-section > p {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.text-link { font-weight: 750; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.link-action { display: inline-flex; width: fit-content; padding: 4px 0; border: 0; background: transparent; color: var(--blue); font: inherit; font-weight: 700; line-height: 1.5; text-align: left; text-decoration: none; cursor: pointer; }
.link-action:hover { color: var(--blue-dark); 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, 1fr) minmax(0, 1.12fr); gap: 28px; align-items: start; }
.news-events-grid .section-heading { min-height: 76px; align-items: center; margin-bottom: var(--content-gap); gap: 16px; }
.news-events-grid .section-heading h2 { font-size: clamp(25px, 2.6vw, 34px); }
.home-news-column { min-width: 0; }
.home-news-column .news-grid { grid-template-columns: 1fr; }
.home-news-column .news-card { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr); align-items: start; }
.home-news-column .card-body { padding: 16px; }
.home-news-column .card-body h3 { font-size: 18px; margin: 6px 0; }
.home-news-column .card-arrow { margin-top: 10px; }
.news-grid { display: grid; grid-template-columns: 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; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.news-card.featured { grid-column: 1 / -1; }
.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 .news-visual { display: block; min-height: 0; aspect-ratio: 16 / 9; }
.news-card .news-visual img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.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: 0; }
.events-column > .text-link { align-self: start; margin-top: 16px; }
.event-compact-body h3 { color: var(--ink); font-size: 23px; line-height: 1.3; margin: 8px 0 12px; }
.event-compact-body .card-meta + .card-meta { margin-top: 5px; }
.events-column > h3 { margin: 0 0 4px; color: var(--ink); font-size: 25px; }
.home-events-list { display: grid; gap: 14px; }
.event-compact { display: flex; min-width: 0; flex-direction: column; overflow: hidden; 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: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #d8ecfa; }
.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-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.event-compact h4 { margin: 7px 0 8px; color: var(--ink); font-size: 18px; line-height: 1.3; }
.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 { overflow: hidden; margin-top: 30px; padding-block: 6px; }
.partner-carousel-track { display: flex; width: max-content; animation: partner-scroll 45s linear infinite; }
.partner-carousel-group { display: flex; gap: 16px; padding-right: 16px; }
.partner-carousel-group .partner-logo-item { width: 166px; flex: 0 0 166px; }
.partner-carousel:hover .partner-carousel-track,
.partner-carousel:focus-within .partner-carousel-track { animation-play-state: paused; }
@keyframes partner-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .partner-carousel-track { animation: none; width: 100%; }
  .partner-carousel-group { width: 100%; flex-wrap: wrap; padding-right: 0; }
  .partner-carousel-group[aria-hidden] { display: none; }
  .partner-carousel-group .partner-logo-item { flex: 1 1 140px; }
}
.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; }
.partners-home-section .partner-carousel-track,
.partners-home-section .partner-grid-static .partner-mark { mix-blend-mode: multiply; }
@media (prefers-reduced-motion: reduce) {
  .partner-carousel-group .partner-logo-item[aria-hidden="true"] { display: none; }
}
.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; }
.event-card-facts { min-height: 42px; line-height: 1.5; }
.event-status { display: inline-flex; width: fit-content; margin-top: 14px; padding: 5px 10px; color: #31506e; background: #edf5fb; border-radius: 999px; font-size: 12px; font-weight: 780; }
.event-status-upcoming { color: #0d5cab; background: #e8f3ff; }
.event-status-live { color: #11683d; background: #e7f7ee; }
.event-status-past { color: #52677a; background: #eef2f5; }
.event-status-cancelled { color: #983333; background: #fff0f0; }
.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: var(--content-width); 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 / 9; 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: 100%; margin-top: 20px; }
.material-preview { position: relative; display: block; aspect-ratio: 16 / 9; 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: var(--control-arrow);
  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; height: var(--control-height); min-height: var(--control-height); padding-block: 0; border-color: #9fc7ea; border-radius: 13px; }
.compact-filter-panel .filter-button { min-height: var(--control-height); }
.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; }
#editorDashboard, #editorEvents, #editorSpeakers, #editorCompanies, #editorAudit { grid-template-columns: 1fr; }
.admin-dashboard { display: grid; gap: 24px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.dashboard-stats article { display: grid; gap: 5px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(23,74,119,.05); }
.dashboard-stats strong { color: var(--blue); font-size: 30px; line-height: 1; }
.dashboard-stats span { color: var(--muted); font-size: 13px; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dashboard-grid section { min-width: 0; }
.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-form-actions { position: sticky; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; background: rgba(255,255,255,.94); border: 1px solid #cbddea; border-radius: 14px; box-shadow: 0 12px 34px rgba(18,63,104,.12); backdrop-filter: blur(12px); }
.editor-form-actions > span { margin-right: auto; color: var(--muted); font-size: 13px; 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; }
.program-block-type { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.program-speakers { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.program-speakers a { color: var(--blue); font-weight: 740; text-decoration: none; }
.program-support { margin-top: 10px; color: var(--muted); font-size: 14px; }
.program-support a { color: var(--blue); font-weight: 700; text-decoration: none; }
.program-note { margin-top: 10px; padding: 10px 12px; color: #4b6175; background: #f5f9fc; border-radius: 10px; font-size: 14px; }
.program-block-files { display: grid; gap: 10px; margin-top: 14px; }
.program-block-files > .detail-section { max-width: none; margin: 0; padding: 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, .editor-action-secondary { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 9px 13px; color: #31506e; background: white; border: 1px solid #cbdbea; border-radius: 10px; font-size: 14px; font-weight: 720; line-height: 1.4; text-decoration: none; cursor: pointer; }
.editor-actions button:hover, .editor-actions a:hover, .editor-action-secondary: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); }
.muted { 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: grid; min-height: 230px; grid-template-rows: auto auto 1fr auto; gap: 11px; padding: 25px; color: inherit; background: white; border: 1px solid var(--line); border-radius: 22px; text-decoration: none; box-shadow: 0 12px 34px rgba(27,78,124,.06); 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 { display: grid; width: 45px; height: 45px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 14px; font-size: 18px; font-weight: 850; }
.association-direction-card h3 { margin: 3px 0 0; color: var(--ink); font-size: 23px; }
.association-direction-card p { margin: 0; color: var(--muted); line-height: 1.58; }
.association-direction-card strong { align-self: end; padding-top: 8px; color: var(--blue); }

/* AI chat */
body[data-page="ai"] { height: 100dvh; overflow: hidden; }
body[data-page="ai"] .site-footer { display: none; }
.ai-page { height: calc(100dvh - 94px); min-height: 0; overflow: hidden; padding: 24px 0; background: radial-gradient(circle at 50% 0, #e8f6ff, transparent 42%); }
.ai-page > .container { display: grid; height: 100%; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
.ai-page h1 { max-width: 920px; margin: 0 auto 24px; color: var(--ink); font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.04em; text-align: center; }
.chat-shell { display: grid; width: min(920px, 100%); height: 100%; min-height: 0; min-width: 0; grid-template-rows: minmax(0, 1fr) auto auto; margin: 0 auto; overflow: hidden; background: transparent; }
.chat-welcome { grid-row: 1; align-self: center; justify-self: center; display: grid; max-width: 580px; gap: 9px; padding: 24px; color: var(--muted); text-align: center; line-height: 1.6; }
.chat-welcome strong { color: var(--ink); font-size: clamp(20px, 3vw, 28px); }
.chat-controls { position: relative; z-index: 2; grid-row: 2; display: grid; align-self: end; gap: 8px; padding: 12px 0 0; background: linear-gradient(180deg,rgba(255,255,255,0),#fff 18%); }
.chat-bottom-actions { grid-row: 3; display: flex; justify-content: flex-start; padding-top: 8px; }
.new-chat-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 14px; color: var(--blue); background: white; border: 1px solid #bad6ef; border-radius: 12px; 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; font-size: 16px; 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 { grid-row: 1; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 8px 4px 20px; scrollbar-gutter: stable; }
.chat-suggestions { align-self: center; display: flex; min-width: 0; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 28px; }
.chat-suggestions button { flex: 0 1 260px; min-height: 50px; padding: 11px 15px; color: #245474; background: #f4f9fd; border: 1px solid #cfe0ef; border-radius: 15px; font-size: 14px; font-weight: 700; line-height: 1.35; white-space: normal; cursor: pointer; }
.chat-suggestions button:hover { color: var(--blue); background: white; border-color: #9fc7ea; }
.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: 0; padding: 4px 8px; 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: 0; padding: 12px 14px; color: #a32b25; background: #fff1f0; border: 1px solid #ffc9c5; border-radius: 12px; }
.chat-note { margin: 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-name-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); line-height: 1.45; }
.consent-field input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; }
.form-note { margin: 0; color: var(--muted); line-height: 1.55; }
.admin-list-filters { display: grid; grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(160px, .7fr)); gap: 12px; align-items: end; margin-bottom: 22px; }
.admin-list-filters label { display: grid; gap: 7px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.admin-list-filters input, .admin-list-filters select { width: 100%; min-width: 0; min-height: var(--control-height); padding: 10px 40px 10px 13px; color: var(--ink); background-color: white; border: 1px solid #b9d2e6; border-radius: 12px; font: inherit; }
.admin-list-filters input:focus-visible, .admin-list-filters select:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,104,213,.14); }
#editorUsers { grid-template-columns: 1fr; }
#editorUsers .editor-workspace { width: 100%; }
#editorUsers .section-heading { align-items: flex-start; }
#adminUsersSummary { grid-template-columns: repeat(3, minmax(150px, 220px)); margin-bottom: 22px; }
.admin-user-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.admin-user-record-main { display: grid; gap: 5px; min-width: 0; }
.editor-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.editor-item-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.status-pill { display: inline-flex; width: fit-content; min-height: 30px; align-items: center; justify-content: center; padding: 5px 10px; color: #285679; background: #edf6fd; border: 1px solid #c5def1; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.2; }
.status-pill.status-active, .status-pill.status-published { color: #246045; background: #edf9f3; border-color: #b9dfca; }
.status-pill.status-blocked, .status-pill.status-archived { color: #8a3333; background: #fff2f1; border-color: #edc1bd; }
.status-pill.status-pending, .status-pill.status-draft { color: #75551c; background: #fff8e9; border-color: #ead49e; }
.pagination-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.danger-link { color: #a32222; background: transparent; border: 0; padding: 8px 4px; font: inherit; font-weight: 700; cursor: pointer; }
.error-text { color: #a32222; }
.protected-content { background: linear-gradient(135deg, rgba(28,104,201,.08), rgba(55,180,174,.07)); border: 1px solid rgba(28,104,201,.2); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.protected-file-link { text-align: left; }
.question-form { display: grid; gap: 14px; max-width: 760px; }
.question-form label { display: grid; gap: 7px; font-weight: 700; }
.question-form textarea { min-height: 120px; resize: vertical; }
.form-status { min-height: 1.5em; margin: 0; color: var(--muted); }
.zoom-meeting-host { width: 100%; min-height: 560px; margin-top: 18px; overflow: hidden; border-radius: var(--radius-md); background: #fff; }
.protected-video-list { display: grid; gap: 16px; }
.protected-video-card { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface-soft); }
.protected-video-poster { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(145deg, var(--navy), var(--blue)); color: #fff; }
.protected-video-poster span { display: grid; place-items: center; width: 52px; height: 52px; padding-left: 3px; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; font-size: 20px; }
.protected-video-card p { margin: 6px 0 14px; color: var(--muted); }
.protected-video-player { grid-column: 1 / -1; }
.protected-video-player video { display: block; width: 100%; max-height: min(70vh, 720px); border-radius: 14px; background: #07162d; }
.material-video-section { max-width: 980px; }
.material-video-section .protected-video-list { gap: 24px; }
.material-video-section .protected-video-card { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0; overflow: hidden; background: #f7fbff; }
.material-video-section .protected-video-poster { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
.material-video-section .protected-video-poster span { width: 68px; height: 68px; font-size: 26px; }
.material-video-section .protected-video-card > div:nth-child(2) { padding: 0 22px 22px; }
.material-video-section .protected-video-player { padding: 0; }
.video-file-preview { display: grid; gap: 12px; padding: 14px; background: #f7fbff; border: 1px solid var(--line); border-radius: 16px; }
.video-file-preview video { display: block; width: 100%; max-height: 520px; aspect-ratio: 16 / 9; object-fit: contain; background: #07162d; border-radius: 12px; }
.video-file-preview > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.video-file-preview strong { min-width: 0; overflow-wrap: anywhere; }
.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; }
.user-summary .secondary-button { width: 100%; }
.secondary-button, .danger-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 15px; background: white; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); font-weight: 720; line-height: 1.2; text-align: center; text-decoration: none; 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 { width: 100%; max-width: var(--content-width); 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 / 9; 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 / 9; 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-catalog-card { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.person-catalog-card h3 { color: var(--ink); }
.person-catalog-card .person-specialties { color: var(--ink); font-weight: 650; }
.person-catalog-card .person-organization { margin-top: 6px; }
.person-catalog-card .text-link { display: inline-block; margin-top: 14px; color: var(--blue); transition: color .18s ease, transform .18s ease; }
.person-catalog-card:hover .text-link { color: var(--blue-dark); transform: translateX(4px); }
.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; }
.editor-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.editor-subtabs .filter-button { min-height: 42px; }
.editor-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.field-hint { display: block; margin-top: -4px; color: var(--muted); line-height: 1.45; }
.upload-queue { display: grid; gap: 8px; margin-top: 10px; }
.upload-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(100px,180px); align-items: center; gap: 12px; padding: 9px 12px; color: var(--muted); background: #f6f9fc; border: 1px solid var(--line); border-radius: 11px; font-size: 13px; }
.upload-row progress { width: 100%; accent-color: var(--blue); }
.upload-row.upload-complete { color: #1f6248; border-color: #a9dbc6; background: #f0faf5; }
.archive-toolbar { display: grid; grid-template-columns: minmax(220px,1fr) minmax(190px,.35fr); gap: 12px; margin: 20px 0; }
.page-current-photo { min-height: 250px; }
.page-current-photo img { height: 300px; }
.editor-status:not(.hidden) { position: sticky; top: 92px; z-index: 18; }
.editor-panel .asset-preview img { max-height: 320px; object-fit: contain; }
.editor-panel [data-asset-preview]:not(.page-current-photo) img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Unified administration and long-form content */
.page-hero-compact { padding: 44px 0 34px; }
.page-hero-compact .page-title { max-width: 1050px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 760; line-height: 1.15; }
.public-list-section { padding: 28px 0 84px; }
.public-list-section .compact-filter-panel { margin-bottom: 22px; }
.public-list-section .news-public-grid,
.public-list-section .events-grid,
.public-list-section .materials-grid { margin-top: 0; }
.association-intro { padding-top: 42px; }
.news-public-grid .news-card.featured { grid-column: auto; }
.news-public-grid .news-card,
.event-card,
.content-card { min-width: 0; }
.news-card h3,
.event-card h3,
.content-card h3,
.course-lecture-list strong,
.relation-card strong,
.program-talk-title { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
.event-program-rich > li > *,
.program-person > div,
.course-lecture-list a > div { min-width: 0; }
.event-program-rich time { color: var(--muted); font-weight: 700; }
.program-talk-title { display: block; color: var(--ink); font-size: 17px; line-height: 1.4; }
.program-person a { color: var(--ink); text-decoration: none; }
.program-person a:hover { color: var(--blue); }
.program-person span { overflow-wrap: anywhere; }
.event-recordings { border-top: 1px solid var(--line); }
.detail-section-heading .secondary-button { flex: 0 0 auto; }

body[data-page="ai"] { height: auto; min-height: 100dvh; overflow: auto; }
.ai-page { height: auto; min-height: calc(100dvh - 94px); overflow: visible; padding: 0; background: linear-gradient(180deg,#fff,#f7fbff); }
.ai-chat-section { padding: 28px 0 36px; }
.ai-page .page-title { width: auto; margin: 0; text-align: left; }
.ai-page > .container { display: block; height: auto; }
.chat-shell { width: min(1160px,100%); min-height: calc(100dvh - 260px); grid-template-rows: minmax(260px,1fr) auto; }
.chat-welcome { align-self: center; justify-self: center; width: min(720px,100%); max-width: none; padding: 28px 0; color: var(--muted); font-size: 16px; font-weight: 400; line-height: 1.65; text-align: center; }
.chat-input-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: stretch; }
.chat-input-row .new-chat-button { min-width: 150px; }
.chat-input-row .chat-composer { min-width: 0; grid-template-columns: minmax(0,1fr) auto; }
.chat-send { width: auto; min-width: 112px; padding: 0 18px; font-size: 14px; font-weight: 780; }
.chat-controls { padding-top: 10px; }
.chat-note { max-width: none; margin-top: 0; text-align: left; }

.admin-page-hero { padding: 34px 0 12px; }
.admin-page-hero .page-title { font-size: clamp(30px, 3.4vw, 44px); }
.admin-page-hero + .section { padding-top: 12px; }
#educationAdmin > .editor-tabs { margin: 0 0 18px; padding: 4px; }
#educationAdmin > .editor-tabs .filter-button { min-height: 38px; padding-block: 7px; }
#educationAdmin .editor-panel,
#educationAdmin .page-editor-view > .editor-workspace { display: block; width: 100%; }
#educationAdmin .page-editor-view { width: 100%; max-width: none; }
#educationAdmin .editor-panel > h2,
#educationAdmin .editor-workspace > h2,
#educationAdmin .admin-dashboard > h2,
#educationAdmin .section-heading h2,
#educationAdmin .editor-form > h2 { margin: 0 0 20px; font-size: clamp(25px, 2.7vw, 34px); font-weight: 780; line-height: 1.18; }
#educationAdmin .editor-form > h3,
#educationAdmin .embedded-editor h3,
#educationAdmin .dashboard-grid h3 { margin: 0 0 14px; font-size: 20px; font-weight: 780; line-height: 1.3; }
#educationAdmin .editor-form { width: 100%; gap: 20px; margin-top: 18px; padding: clamp(20px, 3vw, 30px); }
#educationAdmin .editor-form :is(h2,h3,h4,legend) { color: var(--ink); overflow-wrap: anywhere; }
#educationAdmin .editor-form :is(p,h4) { margin: 0; }
#educationAdmin .editor-form .editor-status { position: static; margin: 0; box-shadow: none; }
#educationAdmin .embedded-editor > header > * { min-width: 0; overflow-wrap: anywhere; }
#educationAdmin .embedded-editor > header { flex-wrap: wrap; }
#educationAdmin .embedded-editor > header > div:first-child { flex: 1 1 280px; }
#educationAdmin .embedded-editor > header .editor-header-actions { flex: 1 1 280px; }
#educationAdmin .person-pick > span:last-child { min-width: 0; overflow-wrap: anywhere; }
#educationAdmin .question-filters { margin-top: 18px; grid-template-columns: minmax(0,1fr) auto; }
#educationAdmin :is(.editor-panel,.embedded-editor,.editor-form) { scroll-margin-top: 110px; }
#educationAdmin select:not([multiple]) { appearance: none; background-image: var(--control-arrow); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
#educationAdmin .section-heading h2 { margin-bottom: 0; }
#educationAdmin .asset-preview > div { min-width: 0; overflow-wrap: anywhere; }
#educationAdmin .asset-preview img { flex-shrink: 0; max-width: 45%; }
#educationAdmin .compact-editor-form { max-width: none; }
#educationAdmin .program-relation-fieldset { gap: 12px; padding: 16px; }
#educationAdmin .program-relation-fieldset .field-hint { margin: 0; }
#educationAdmin .compact-picker { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 260px; margin-top: 0; }
#educationAdmin .compact-action { width: fit-content; }
#educationAdmin .editor-form fieldset { gap: 18px; padding: clamp(18px, 2.5vw, 26px); }
#educationAdmin .editor-form label { gap: 8px; font-size: 14px; }
#educationAdmin .editor-form textarea { min-height: 150px; }
#personEditorForm textarea[name="specialties_text"] { height: 48px; min-height: 48px; resize: vertical; }
#registryLinkFields { display: grid; gap: 14px; margin-top: 12px; }
#contactsPageForm textarea[name="address"] { min-height: 92px; }
#contactsPageForm textarea[name="requisites"] { min-height: 120px; }
#educationAdmin .editor-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="hidden"]),
#educationAdmin .editor-form select { min-height: var(--control-height); padding-block: 10px; line-height: 1.5; }
#educationAdmin :is(.primary-button,.secondary-button,.editor-action-secondary,.editor-action-primary,.editor-action-danger,.editor-actions button,.editor-actions a) { min-height: var(--control-height); padding-block: 10px; line-height: 1.5; }
.editor-existing { width: 100%; margin: 0 0 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.editor-existing > summary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 18px; color: var(--ink); font-weight: 780; cursor: pointer; list-style: none; }
.editor-existing > summary::-webkit-details-marker { display: none; }
.editor-existing-toggle { color: var(--blue); font-size: 13px; white-space: nowrap; }
.editor-existing > .editor-list { padding: 0 14px 14px; }
.crud-legacy-list-title { display: none !important; }
.dashboard-actions { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.dashboard-actions > * { width: 100%; min-width: 0; }
.dashboard-grid > section { padding: 20px; background: #f6faff; border: 1px solid var(--line); border-radius: 18px; }
.page-photo-grid { gap: 16px; align-items: start; }
.page-photo-form { align-self: start; gap: 14px !important; padding: 18px !important; background: white !important; }
.page-photo-form > h2 { margin-bottom: 2px !important; font-size: 23px !important; }
.page-current-photo { width: 100%; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; }
.page-current-photo img { width: 100%; height: 100%; object-fit: cover !important; }
#partnerSummary { display: none; }
.embedded-editor > summary { font-size: 15px; font-weight: 760; }
#partnerDuplicates { margin-top: 14px; }
#editorPartners details.embedded-editor { margin-top: 22px; padding: 16px 18px; background: #f7faff; border-radius: 16px; }
#editorPartners details.embedded-editor > p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.editor-list-item strong { min-width: 0; overflow-wrap: anywhere; }
.editor-list-item > div:first-child > span { margin-top: 1px; }
.status-pill { margin-left: 12px; }
.preserve-lines,
.event-detail-intro,
.material-detail-intro,
.readable-text,
.detail-section > p,
.news-detail-body { white-space: pre-line; }
.detail-view { width: 100%; }
.detail-view > .event-detail-intro,
.detail-view > .material-detail-intro,
.detail-view > .readable-text,
.detail-view > .detail-section { max-width: 100%; }
.protected-content { border-radius: var(--radius); }
.detail-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.detail-section-heading h3 { margin: 0; }
.program-talk-link { display: inline-flex; margin-top: 10px; }
.event-question-section { padding-block: 18px; }
.event-question-section .question-form { margin-top: 18px; }
.ai-page h1 { width: min(920px,100%); margin-inline: auto; font-size: clamp(31px,4vw,48px); text-align: left; letter-spacing: -.025em; }
.chat-welcome { justify-self: stretch; max-width: 720px; padding-inline: 0; color: var(--muted); text-align: left; font-weight: 400; }
.chat-welcome strong { color: var(--ink); font-weight: 760; }
.chat-bottom-actions { justify-content: flex-end; }
.chat-note { padding: 11px 14px; background: #eef7ff; border: 1px solid #cfe3f5; border-radius: 12px; line-height: 1.45; }

/* Shared content geometry: compact cards, wide details, readable body text. */
:is(.card-body,.event-card-body,.material-card-body) { padding: var(--card-padding); }
:is(.card-body,.event-card-body,.material-card-body) > :is(h3,p) { margin-block: 8px; }
:is(.event-card-body,.material-card-body) { gap: 10px; }
:is(.detail-view,.news-detail,.editor-workspace,.editor-form,.event-program-rich > li > div) { min-width: 0; overflow-wrap: anywhere; }
:is(.detail-view,.news-detail) .text-link { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
:is(.detail-view,.news-detail) :is(h1,h2) { font-size: clamp(27px,3.1vw,40px); font-weight: 760; line-height: 1.22; }
:is(.readable-text,.news-detail-body,.material-detail-intro,.event-detail-intro) { max-width: var(--reading-width); }
.detail-view > .detail-section.readable-text { max-width: var(--reading-width); }
.event-program-rich > li { gap: var(--content-gap); }
.event-program-rich > li > time, .program-block-type { color: var(--muted); font-size: 14px; }
.program-speakers a, .program-support a { color: var(--text); font-weight: 500; }
.program-speakers a:hover, .program-support a:hover { color: var(--blue); text-decoration: underline; }
.program-talk-link { font-size: 14px; }
.partners-grid .partner-logo-link { display: grid; width: 100%; }
.partners-grid .partner-mark { display: grid; place-items: center; width: 100%; height: 150px; padding: 16px; }
.partners-grid .partner-mark img { width: 100%; max-width: 100%; height: 118px; object-fit: contain; }
.association-story, .association-feature { gap: clamp(24px,4vw,48px); }
.association-direction-card { min-height: 0; padding: var(--card-padding); }
.association-direction-card h3 { font-size: 21px; line-height: 1.3; }
.chat-shell { width: min(var(--content-width),100%); }
.chat-welcome { max-width: 760px; padding-block: 40px; }
.chat-welcome strong { font-size: 18px; font-weight: 500; color: var(--muted); }
.chat-composer { box-shadow: 0 6px 22px rgba(28,73,122,.06); border-radius: var(--radius); }
.chat-composer:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,104,213,.1); }
.message.assistant { border-bottom: 0; }
.message.assistant .message-content { max-width: var(--reading-width); }
.video-preview-card, .material-video-section .video-preview-card { display: block; padding: 0; overflow: hidden; border-radius: var(--radius); }
.video-preview-card .video-play-button { position: relative; display: grid; place-items: center; width: 100%; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: #173250; }
.video-play-button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play-button span { position: relative; background: rgba(15,37,65,.72); box-shadow: 0 3px 18px rgba(0,0,0,.2); }
.video-play-button small { position: absolute; bottom: 14px; padding: 5px 12px; border-radius: 10px; background: rgba(15,37,65,.8); font-size: 13px; }
.material-video-section .video-preview-card .protected-video-player { padding: 0; }
#educationAdmin :is(.editor-workspace,.editor-form,.embedded-editor) { width: 100%; max-width: none; }
.assistant-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.assistant-toolbar label { color: var(--muted); font-weight: 600; }
.assistant-toolbar select { width: min(280px,100%); }
#assistantProgramSlot > .editor-workspace { padding: 0; border: 0; background: transparent; }
#editorAssistant :is(#importTextForm,#assistantSourceForm) { margin-top: 0; }

@media (max-width: 980px) {
  .admin-list-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .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; }
  .dashboard-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-editor-view > .editor-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .auth-name-grid { grid-template-columns: 1fr; }
  .admin-list-filters { grid-template-columns: 1fr; }
  #educationAdmin .editor-form { padding: 16px; gap: 18px; border-radius: 16px; }
  #educationAdmin .editor-form fieldset { padding: 14px; gap: 16px; }
  #educationAdmin :is(.editor-panel,.embedded-editor,.editor-form) { scroll-margin-top: 88px; }
  #educationAdmin .embedded-editor { padding: 16px; }
  #educationAdmin .embedded-editor > header > div:first-child,
  #educationAdmin .embedded-editor > header .editor-header-actions { flex: 0 1 auto; width: 100%; }
  #educationAdmin .pagination-bar { flex-wrap: wrap; gap: 10px; }
  #adminUsersSummary { grid-template-columns: 1fr; }
  .admin-user-record { grid-template-columns: 1fr; }
  .editor-item-actions { justify-content: flex-start; }
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 62px 0; }
  .section.public-list-section { padding-top: 28px; }
  .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 { display: flex; }
  .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: 16 / 9; border-radius: 15px; }
  .detail-view { padding: 24px 18px; }
  .material-preview { aspect-ratio: 16 / 9; 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: 205px; }
  .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 { height: auto; min-height: calc(100dvh - 72px); padding: 0; overflow: visible; }
  .ai-page .page-title { margin: 0; }
  .ai-chat-section { padding: 20px 0 26px; }
  .chat-shell { height: auto; min-height: calc(100dvh - 225px); border-radius: 19px; }
  .chat-controls { grid-template-columns: 1fr; padding: 9px max(9px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); }
  .chat-bottom-actions { padding: 0 max(9px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); }
  .chat-input-row { grid-template-columns: 1fr; }
  .chat-input-row .new-chat-button { width: fit-content; min-width: 0; }
  .chat-send { min-width: 92px; padding-inline: 13px; }
  .new-chat-button { min-height: 38px; padding-inline: 11px; }
  .conversation { padding: 5px 13px 16px; }
  .chat-suggestions { align-content: center; flex-direction: column; flex-wrap: nowrap; gap: 8px; padding: 18px 13px; overflow-y: auto; }
  .chat-suggestions button { width: 100%; min-height: 48px; flex: 0 0 auto; padding: 11px 13px; font-size: 14px; }
  .chat-composer { min-width: 0; }
  .chat-composer textarea { min-width: 0; font-size: 16px; }
  .chat-note { text-align: left; }
  .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; }
  .dashboard-stats, .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-actions { grid-template-columns: 1fr; }
  .dashboard-actions > * { width: 100%; }
  .editor-form-actions { bottom: max(8px, env(safe-area-inset-bottom)); }
  .editor-form-actions > span { width: 100%; }
  .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-subtabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editor-subtabs.hidden { display: none; }
  .archive-toolbar { grid-template-columns: 1fr; }
  .upload-row { grid-template-columns: 1fr; }
  .editor-header-actions { justify-content: stretch; }
  .editor-header-actions > * { width: 100%; }
  .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; }
  .protected-video-card { grid-template-columns: 1fr; }
  .event-program-rich > li { grid-template-columns: 1fr; gap: 6px; }
  input, textarea, select, .search-field, .filter-select, .auth-field input, .auth-field select,
  .editor-form input, .editor-form textarea, .editor-form select { font-size: 16px; }
}
/* Administrative registry and confirmed program import share the existing form system. */
#educationAdmin .dashboard-sections { display: grid; gap: 16px; margin-top: 24px; }
#educationAdmin .admin-disclosure { display: block; min-width: 0; margin: 16px 0; padding: 20px; background: #fff; border: 1px solid var(--border, #d9e5f2); border-radius: 16px; }
#educationAdmin .dashboard-sections > .admin-disclosure { margin: 0; }
#educationAdmin .dashboard-sections > div { display: contents; }
#educationAdmin .dashboard-sections .admin-disclosure { margin: 0; padding: 20px; }
#educationAdmin .dashboard-sections .admin-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; list-style: none; }
#educationAdmin .dashboard-sections .admin-disclosure > summary::-webkit-details-marker { display: none; }
#educationAdmin .dashboard-sections .admin-disclosure > summary::after { content: '⌄'; color: var(--blue); font-size: 20px; }
#educationAdmin .dashboard-sections .admin-disclosure[open] > summary::after { transform: rotate(180deg); }
#educationAdmin .dashboard-sections .admin-disclosure:hover { border-color: #96bae4; }
#educationAdmin .assistant-scenarios { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
#educationAdmin .assistant-scenarios .active { color: var(--blue); border-color: var(--blue); background: #edf5ff; }
#educationAdmin #assistantTextWorkspace, #educationAdmin #assistantPreview { display: grid; gap: 20px; min-width: 0; }
#educationAdmin #assistantTextWorkspace.hidden { display: none; }
#educationAdmin .assistant-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
#educationAdmin .assistant-wide { grid-column: 1 / -1; }
#educationAdmin .assistant-choice-list { max-height: 220px; overflow-y: auto; display: grid; gap: 10px; }
#educationAdmin .assistant-choice-list label { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 680px) {
  #educationAdmin .assistant-field-grid { grid-template-columns: minmax(0,1fr); }
  #educationAdmin .assistant-scenarios > button { width: 100%; }
}
#educationAdmin .admin-disclosure > summary { cursor: pointer; color: var(--ink, #18304a); font-size: 16px; font-weight: 650; line-height: 1.5; }
#educationAdmin .admin-disclosure[open] > summary { margin-bottom: 18px; }
#educationAdmin .admin-disclosure > :last-child { margin-bottom: 0; }
#educationAdmin .dashboard-actions > button { transition: transform .16s ease, box-shadow .16s ease; }
#educationAdmin .dashboard-actions > button:hover { transform: translateY(-2px); box-shadow: 0 5px 14px #174e8415; }
#educationAdmin .import-entry { margin: 0 0 20px; }
#educationAdmin #programImportWorkspace,
#educationAdmin #editorKnowledge > .editor-workspace { display: block; width: 100%; min-width: 0; }
#educationAdmin #programImportWorkspace.hidden { display: none; }
#educationAdmin .knowledge-field-grid,
#educationAdmin .import-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
#educationAdmin #knowledgeWorkspace,
#educationAdmin #knowledgeDetail,
#educationAdmin #knowledgeRelations,
#educationAdmin #importPreview,
#educationAdmin #importBlocks { min-width: 0; }
#educationAdmin .knowledge-link-form { display: grid; gap: 16px; margin-top: 18px; }
#educationAdmin .knowledge-link-form label,
#educationAdmin .import-block label { display: grid; gap: 8px; min-width: 0; }
#educationAdmin .knowledge-link-form input,
#educationAdmin .knowledge-link-form select,
#educationAdmin .knowledge-link-form textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid #cbdcee; border-radius: 12px; font: inherit; background: #fff; }
#educationAdmin #knowledgeForm textarea,
#educationAdmin #importConfirmForm textarea { min-height: 80px; }
#educationAdmin #importSourceText { min-height: 260px; }
#educationAdmin #importBlocks { display: grid; gap: 20px; }
#educationAdmin .import-block { margin: 0; }
#educationAdmin .import-block section { min-width: 0; display: grid; gap: 14px; align-content: start; }
#educationAdmin .import-picker { max-height: 240px; overflow-y: auto; margin-top: 12px; display: grid; gap: 10px; }
#educationAdmin .checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
#educationAdmin .checkbox-row input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin-top: 2px; }
#educationAdmin .checkbox-row[hidden] { display: none; }
#educationAdmin :is(#knowledgeWorkspace,#programImportWorkspace) :is(h3,h4,strong,p,label,button,a) { overflow-wrap: anywhere; }
#educationAdmin :is(#knowledgeWorkspace,#programImportWorkspace) .editor-list-item > * { min-width: 0; }
#educationAdmin :is(#knowledgeWorkspace,#programImportWorkspace) button { white-space: normal; }
#educationAdmin :is(#knowledgeWorkspace,#programImportWorkspace) :is(input,select,textarea,button,summary,a):focus-visible { outline: 3px solid #277ad1; outline-offset: 3px; }
#educationAdmin :is(#knowledgeWorkspace,#programImportWorkspace) button:disabled { opacity: .55; cursor: default; }
@media(max-width: 680px) {
  #educationAdmin .knowledge-field-grid, #educationAdmin .import-field-grid { grid-template-columns: minmax(0,1fr); }
  #educationAdmin .admin-disclosure { padding: 16px; }
  #educationAdmin #knowledgeWorkspace .admin-list-filters { grid-template-columns: minmax(0,1fr); }
  #educationAdmin .import-block .editor-actions { flex-wrap: wrap; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  #educationAdmin .dashboard-actions > button { transition: none; }
  #educationAdmin .dashboard-actions > button:hover { transform: none; }
}

/* Complete registry forms open in an accessible, independent modal window. */
#educationAdmin .knowledge-dialog { width: min(1100px, calc(100vw - 40px)); max-width: none; max-height: 90dvh; padding: 24px; border: 1px solid #d9e5f2; border-radius: 20px; background: #f5f8fc; color: var(--ink, #18304a); box-shadow: 0 24px 80px #102d4b33; overflow: auto; }
#educationAdmin .knowledge-dialog::backdrop { background: #102d4b70; }
#educationAdmin .knowledge-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
#educationAdmin .knowledge-dialog-header h2 { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; }
#educationAdmin .knowledge-dialog .editor-form { margin-top: 0; }
#educationAdmin .knowledge-dialog .editor-status { position: static; }
#educationAdmin .knowledge-dialog .knowledge-long-field { grid-column: 1 / -1; }
#educationAdmin .knowledge-dialog .knowledge-field-grid { align-items: start; }
#educationAdmin .knowledge-dialog .knowledge-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; position: sticky; bottom: -24px; background: #fff; border-top: 1px solid #d9e5f2; padding: 16px 0; z-index: 2; }
#educationAdmin .knowledge-dialog :is(input,select,textarea) { min-width: 0; max-width: 100%; }
#educationAdmin .knowledge-dialog :is(h3,p,legend,label) { overflow-wrap: anywhere; }
#educationAdmin .knowledge-dialog :is(button,input,textarea,select,a):focus-visible { outline: 3px solid #277ad1; outline-offset: 3px; }
#educationAdmin .knowledge-dialog button:disabled { opacity: .5; cursor: not-allowed; }
@media(max-width:680px) {
  #educationAdmin .knowledge-dialog { width: calc(100vw - 16px); padding: 12px; max-height: 94dvh; border-radius: 16px; }
  #educationAdmin .knowledge-dialog .editor-form { padding: 12px; }
  #educationAdmin .knowledge-dialog .knowledge-dialog-actions { bottom: -12px; }
  #educationAdmin .knowledge-dialog-header { align-items: flex-start; }
}
