@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --navy: #111633;
  --navy-soft: #202748;
  --blue: #4d91d0;
  --blue-deep: #286fae;
  --ink: #211e1c;
  --muted: #57585e;
  --soft: #f7f9fb;
  --line: #e5e8ed;
  --shadow: 0 16px 40px rgba(17, 22, 51, .075);
  font-family: Roboto, Arial, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: #fff; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: var(--blue-deep); text-decoration: none; transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: Lato, Arial, sans-serif; color: var(--navy); line-height: 1.22; margin: 0 0 .65em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.85rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1.25em; }
small { font-size: .86rem; }
.wrap { width: min(1140px, calc(100% - 44px)); margin-inline: auto; }
.narrow { max-width: 780px; }

.topbar { position: relative; z-index: 20; background: var(--navy); color: #fff; }
.public .topbar { position: fixed; inset: 0 0 auto; }
.public:not(.home) { padding-top: 90px; }
.topbar .wrap { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.public.home .topbar { position: fixed; inset: 0 0 auto; background: transparent; transition: background-color .2s ease; }
.public.home .topbar.is-scrolled { background: var(--navy); }
.brand { color: #fff; font-family: Lato, Arial, sans-serif; font-size: 1.35rem; font-weight: 900; line-height: 1.05; letter-spacing: .015em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand span { display: block; margin-top: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); }
.site-nav a:not(.button) { color: #fff; font-family: Lato, Arial, sans-serif; font-size: .95rem; font-weight: 700; }
.site-nav a:not(.button):hover { color: #b7dcff; }
.menu-toggle { display: none; }

.button, button:not(.menu-toggle) { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: 8px; border: 2px solid var(--blue-deep); border-radius: 4px; padding: 11px 23px; background: var(--blue-deep); color: #fff; font: 700 .95rem Lato, Arial, sans-serif; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.button:hover, button:not(.menu-toggle):hover { background: #1c5d96; border-color: #1c5d96; color: #fff; box-shadow: 0 8px 18px rgba(40, 111, 174, .18); transform: translateY(-1px); }
.button.small { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.button-outline { background: transparent; color: #fff; border-color: #fff; text-transform: uppercase; letter-spacing: 2.2px; font-size: 1rem; }
.button-outline:hover { background: #fff; border-color: #fff; color: #111; box-shadow: none; }

.hero { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; color: #fff; background: linear-gradient(90deg, rgba(17, 22, 51, .48) 0%, rgba(17, 22, 51, .16) 70%), url('/assets/hero.webp') center right / cover no-repeat; }
.hero-inner { padding-block: 130px 95px; }
.hero-inner > div { width: min(100%, 690px); }
.hero .eyebrow { margin-bottom: 8px; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.hero .eyebrow::before { content: none; }
.hero h1 { max-width: 700px; margin: 0 0 12px; color: #fff; font-size: clamp(2.3rem, 3.35vw, 47px); font-weight: 900; line-height: 1.38; }
.hero p { max-width: 570px; margin-bottom: 32px; color: #fff; font-size: 16px; line-height: 1.65; }

.section { padding-block: clamp(64px, 7vw, 95px); }
.soft { background: var(--soft); }
.dark { background: var(--navy); color: #fff; }
.dark h2, .dark h3, .dark p { color: #fff; }
.accent { background: var(--blue-deep); color: #fff; }
.accent h2, .accent h3, .accent p, .accent a { color: #fff; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 7px; color: var(--navy); font-size: 17px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.eyebrow::before { content: ''; flex: none; width: 39px; height: 2px; background: var(--blue); }
.section-intro { max-width: 760px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { min-width: 0; padding: 28px; border: 1px solid #f0f0f0; border-radius: 3px; background: #fff; box-shadow: 0 8px 26px rgba(17, 22, 51, .04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: #d5e6f5; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; color: var(--ink); font-size: 18px; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.program-strip { background: #fff; border-bottom: 1px solid var(--line); }
.program-strip .cards { gap: 0; }
.program-card { position: relative; padding: 37px 30px 35px; border-right: 1px solid var(--line); }
.program-card:first-child { border-left: 1px solid var(--line); }
.program-card::before { content: ''; position: absolute; left: 30px; top: 0; width: 48px; height: 3px; background: var(--blue); }
.program-date { display: block; margin-bottom: 10px; color: var(--navy); font-size: .91rem; font-weight: 700; }
.program-card h3 { margin-bottom: 4px; font-size: 1.16rem; }
.program-card p { margin-bottom: 12px; color: var(--muted); }
.program-card a, .pricing-card a { font-family: Lato, Arial, sans-serif; font-weight: 700; }

.schedule-section { background: #fcfcfc; }
.schedule-section .cards { margin-top: 34px; }
.schedule-card { border-top: 3px solid var(--blue); }
.schedule-card .eyebrow { font-size: .84rem; color: var(--muted); }
.schedule-card .eyebrow::before { width: 20px; }
.schedule-card h3 { min-height: 2.5em; }
.schedule-card p { margin-bottom: 0; color: var(--navy); font-weight: 500; }
.pricing-section .pricing-cards { margin-top: 34px; }
.pricing-card { display: flex; flex-direction: column; min-height: 265px; border-color: var(--line); }
.pricing-card .eyebrow { color: var(--muted); font-size: .84rem; }
.pricing-card .eyebrow::before { width: 20px; }
.pricing-card strong { display: block; margin-top: auto; margin-bottom: 20px; color: var(--navy); font: 900 1.75rem Lato, Arial, sans-serif; }
.pricing-card a { padding-top: 12px; border-top: 1px solid var(--line); }

.highlights-section { background: #fff; }
.centered-heading { max-width: 720px; margin: 0 auto 35px; text-align: center; }
.centered-heading h2 { margin-bottom: 14px; font-size: clamp(2rem, 3.3vw, 36px); }
.centered-heading .section-intro { margin: 16px auto 0; color: var(--navy); }
.heading-rule { display: block; width: 35px; height: 3px; margin: 0 auto; background: var(--blue); }
.highlights { gap: 20px; }
.highlights .card { padding: 30px 28px; }
.highlights .card::before { content: '✦'; display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 23px; border: 1px solid #eceef2; border-radius: 50%; color: var(--navy); font-size: 24px; transition: color .2s ease, background-color .2s ease; }
.highlights .card:hover::before { background: var(--blue); color: #fff; }
.highlights .card p { font-size: 15px; line-height: 1.7; }

.about-section { background: #fff; }
.split { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(35px, 6vw, 82px); }
.split img { width: 100%; min-height: 470px; max-height: 660px; object-fit: cover; border-radius: 3px; }
.about-section .eyebrow { margin-bottom: 6px; }
.about-section p { color: var(--muted); }
blockquote { margin: 28px 0 0; padding: 18px 0 18px 25px; border-left: 3px solid var(--blue); color: var(--navy); font: 700 1.04rem/1.65 Lato, Arial, sans-serif; }
blockquote small { display: block; margin-top: 12px; color: var(--muted); font: 400 .85rem Roboto, Arial, sans-serif; }
.cta { color: #fff; background: linear-gradient(90deg, rgba(17, 22, 51, .88), rgba(17, 22, 51, .53)), url('/assets/call-to-action.jpeg') center / cover no-repeat; }
.cta h2, .cta p { color: #fff; }
.cta h2, .donate-section h2 { max-width: 720px; font-size: clamp(2rem, 3vw, 36px); line-height: 1.2; }
.cta p, .donate-section p { max-width: 690px; }
.cta .button { margin-top: 15px; }
.donate-section { background: var(--navy); }
.donate-section .button { margin-top: 14px; }

.page-head { position: relative; display: flex; align-items: center; min-height: 330px; padding-block: 70px; overflow: hidden; color: #fff; background: linear-gradient(90deg, rgba(17, 22, 51, .7), rgba(17, 22, 51, .22)), url('/assets/hero.webp') center right / cover no-repeat; }
.page-head > .wrap { position: relative; z-index: 1; }
.page-head-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.42); }
.page-head h1 { max-width: 760px; margin-bottom: 10px; color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-head p { max-width: 670px; margin-bottom: 0; color: #fff; }
.page-head .eyebrow { color: #fff; }
.page-head .eyebrow::before { background: #fff; }

.catalog-block { margin-bottom: 60px; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.catalog-block h2 { margin-bottom: 8px; }
.catalog-block h3 { margin: 30px 0 16px; padding-left: 14px; border-left: 3px solid var(--blue); font-size: 1.22rem; }
.catalog-block > p { color: var(--muted); }
.area-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.area-list > div { min-width: 0; padding: 19px 20px; border: 1px solid var(--line); border-radius: 3px; background: var(--soft); }
.area-list strong { display: block; color: var(--navy); font: 700 1rem Lato, Arial, sans-serif; }
.area-list p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.catalog-block + h2, .catalog-block ~ h2 { margin-top: 44px; }
.public .section > .wrap > .cards { margin-top: 22px; }
.public .section > .wrap > .cards .card .eyebrow { font-size: .8rem; }
.public .section > .wrap > .cards .card .eyebrow::before { width: 22px; }
.teacher { overflow: hidden; padding: 0 0 25px; }
.teacher img { width: 100%; height: 250px; object-fit: cover; margin-bottom: 23px; }
.teacher h2, .teacher p { margin-inline: 24px; }
.teacher h2 { font-size: 1.4rem; margin-bottom: 8px; }
.teacher p { margin-bottom: 8px; font-size: .94rem; }
.teacher p:last-child { margin-bottom: 0; }
.section-image { width: 100%; max-height: 550px; object-fit: cover; border-radius: 3px; }
.content-section .wrap { max-width: 960px; }
.content-section p { max-width: 760px; }
.content-section .section-image { margin-top: 22px; }
.section-detail { padding: clamp(25px, 4vw, 44px); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 4px; background: #fff; box-shadow: var(--shadow); }
.section-detail .button { margin-top: 26px; }
dl { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
dt, dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--navy); font-weight: 700; }

footer { padding: 28px 0; color: #d8dbe5; background: #0b0e24; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
footer a { color: #fff; }
footer a:hover { color: #b7dcff; }

form { max-width: 760px; }
label { display: block; margin: 0 0 18px; color: var(--navy); font-weight: 700; }
input, select, textarea { display: block; width: 100%; min-height: 47px; margin-top: 7px; padding: 11px 13px; border: 1px solid #cfd4df; border-radius: 4px; background: #fff; color: var(--ink); font: 400 1rem Roboto, Arial, sans-serif; transition: border-color .2s ease, box-shadow .2s ease; }
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #9da8ba; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77, 145, 208, .16); outline: none; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; min-height: 0; margin: 0; }
label small { display: block; margin-top: 5px; color: #6a7388; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid label:has(textarea) { grid-column: 1 / -1; }
.field-error, .error { color: #b03232; }
.form-message { margin-top: 14px; font-weight: 700; }
.form-message:empty { display: none; }
.apply-content { position: relative; z-index: 1; margin-top: -45px; padding-top: 0; }
.apply-content form { max-width: 100%; padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 4px; background: #fff; box-shadow: var(--shadow); }
.apply-content form > .button { margin-top: 4px; }
.apply-content > p { margin-top: 24px; }

/* The dashboard keeps the public site's colors while using compact controls. */
.admin { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: #f8f9fb; }
.admin main { flex: 1 0 auto; }
.admin .topbar { background: var(--navy); }
.admin .topbar .wrap { width: min(1480px, calc(100% - 36px)); min-height: 86px; padding-block: 15px; align-items: center; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 3px; }
.admin-nav .nav-direct, .nav-group summary { display: flex; align-items: center; min-height: 38px; padding: 8px 11px; border-radius: 3px; color: #e7e9f0; font: 700 .86rem Lato, Arial, sans-serif; white-space: nowrap; cursor: pointer; }
.admin-nav .nav-direct:hover, .nav-group summary:hover, .nav-group[open] summary, .nav-group.is-current summary, .admin-nav .nav-direct[aria-current="page"] { background: rgba(255,255,255,.11); color: #fff; }
.nav-group { position: relative; }
.nav-group summary { list-style: none; gap: 8px; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.nav-group[open] summary::after { transform: translateY(2px) rotate(225deg); }
.nav-menu { position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; display: grid; min-width: 220px; max-height: min(65vh, 480px); overflow-y: auto; padding: 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 0 16px 35px rgba(10, 14, 36, .18); }
.admin-nav .nav-menu a { display: block; padding: 9px 11px; border-radius: 3px; color: var(--navy); font-size: .88rem; line-height: 1.3; }
.admin-nav .nav-menu a:hover, .admin-nav .nav-menu a[aria-current="page"] { background: #f6f7fa; color: var(--blue-deep); }
.admin-wrap { width: min(1180px, calc(100% - 40px)); min-height: 60vh; margin: 45px auto 85px; }
.admin h1 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.admin h2 { margin-top: 34px; font-size: 1.55rem; }
.admin .card { box-shadow: none; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f0f2f7; color: var(--navy); font: 700 .84rem Lato, Arial, sans-serif; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.admin form { margin: 20px 0; padding: 25px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.admin form form { padding: 0; }
.admin .filters { display: flex; align-items: end; gap: 10px; }
.filters input, .filters select { max-width: 250px; }
.danger { min-height: 38px !important; padding: 7px 12px !important; border-color: #a52727 !important; background: #a52727 !important; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; background: #edf0f7; color: var(--navy); font-size: .8rem; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.detail-grid > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.media-thumb { width: 100%; height: 150px; object-fit: cover; }
.list-search { max-width: 350px; margin-bottom: 14px; }
.select-search { margin-bottom: 4px; font-size: .85rem; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-strip .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .program-card { padding-inline: 20px; }
  .program-card::before { left: 20px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.button) { font-size: .88rem; }
  .split { gap: 35px; }
}
@media (max-width: 720px) {
  .public:not(.home) { padding-top: 74px; }
  .wrap { width: min(100% - 32px, 1140px); }
  .topbar .wrap { min-height: 74px; }
  .public:not(.has-menu) .topbar .wrap { display: block; padding-block: 14px; }
  .public:not(.has-menu) .site-nav { flex-wrap: wrap; margin-top: 12px; }
  .brand { font-size: 1.12rem; }
  .brand span { font-size: .62rem; }
  .has-menu .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; background: transparent; color: #fff; font: 700 .9rem Lato, Arial, sans-serif; cursor: pointer; }
  .has-menu .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 15px 16px 20px; background: var(--navy); box-shadow: 0 15px 25px rgba(0,0,0,.14); }
  .has-menu .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .has-menu .site-nav a { display: block; padding: 10px 6px; }
  .has-menu .site-nav .button { margin-top: 7px; text-align: center; }
  .hero { background-position: 60% center; }
  .hero-inner { padding-block: 115px 75px; }
  .hero h1 { font-size: clamp(2.25rem, 8vw, 3rem); line-height: 1.18; }
  .hero h1 br { display: none; }
  .hero p { max-width: 500px; }
  .program-strip .cards, .cards, .area-list, .split, .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .program-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .program-card:first-child { border-left: 0; }
  .program-card:last-child { border-bottom: 0; }
  .schedule-card h3 { min-height: 0; }
  .split img { min-height: 0; max-height: 430px; }
  .page-head { min-height: 270px; padding-block: 55px; }
  .apply-content { margin-top: -28px; }
  .admin .topbar .wrap { display: block; }
  .admin-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 5px; margin-top: 14px; }
  .admin-nav .nav-direct, .nav-group summary { justify-content: space-between; white-space: normal; }
  .nav-group[open] { grid-column: 1 / -1; }
  .nav-menu { position: static; min-width: 0; max-height: none; margin: 2px 0 7px; box-shadow: none; }
  .admin .filters { flex-wrap: wrap; }
  footer .wrap { display: block; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 2.15rem; }
  .hero .eyebrow { font-size: .95rem; }
  .hero p { font-size: .95rem; }
  .section { padding-block: 58px; }
  .page-head h1 { font-size: 1.75rem; }
  .card { padding: 23px; }
  .admin-wrap { width: calc(100% - 26px); }
  .admin form { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.footer-inner strong { display: block; color: #fff; font: 700 1rem Lato, Arial, sans-serif; }
.footer-inner small { display: block; color: #b8bed0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-inner span { color: #b8bed0; font-size: .85rem; }
.teacher-placeholder { display: grid; place-items: center; width: 100%; height: 250px; margin-bottom: 23px; background: linear-gradient(135deg, #1c2347, #111633); color: rgba(255, 255, 255, .83); font: 900 5rem Lato, Arial, sans-serif; }
.teacher .teacher-meta { color: var(--muted); }
.teacher .teacher-areas { color: var(--blue-deep); font-weight: 500; }
@media (max-width: 720px) { .footer-inner nav { margin: 18px 0; } }
/* Application form sections and the matching admin layout editor. */
.apply-group { min-width: 0; margin: 0 0 34px; padding: 0 0 30px; border: 0; border-bottom: 1px solid var(--line); }
.apply-group legend { width: 100%; padding: 0; color: var(--navy); font: 700 clamp(1.35rem, 2vw, 1.7rem) Lato, Arial, sans-serif; }
.apply-group .group-description { margin: 5px 0 22px; color: #5f6878; }
.apply-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.apply-cell { min-width: 0; }
.apply-cell.width-full { grid-column: 1 / -1; }
.apply-cell label, .apply-cell fieldset { margin-bottom: 14px; }
.apply-cell .field-label { display: block; }
.required-mark { color: var(--blue-deep); }
.radio-field { border: 0; padding: 0; min-width: 0; }
.radio-field legend { font: inherit; color: var(--navy); }
.radio-options { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 13px; }
.radio-option { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 400; }
.radio-option input { width: auto; min-height: 0; margin: 0; }
.apply-cell .field-error { display: block; font-size: .85rem; }
.designer-form { max-width: 100%; margin-top: 24px; }
.designer-section { margin-bottom: 18px; padding: 22px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 4px; background: #fff; }
.designer-section-top { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.designer-section-top > label { flex: 1; }
.designer-section-actions, .designer-card-controls, .designer-footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.designer-section-actions button, .designer-card-controls button { padding: 7px 10px; border: 1px solid #cfd4df; border-radius: 3px; background: #fff; color: var(--navy); cursor: pointer; }
.designer-fields { min-height: 46px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 10px; border: 1px dashed #bdc7d5; border-radius: 4px; }
.designer-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: #fafbfc; cursor: grab; }
.designer-card:active { cursor: grabbing; }
.designer-card.is-dragging { opacity: .55; }
.designer-card:has(.designer-width option[value="full"]:checked) { grid-column: 1 / -1; }
.designer-card strong, .designer-card small { display: block; }
.designer-card small { color: #6a7388; font-weight: 400; }
.designer-card-controls { margin-top: 10px; }
.designer-card-controls select { width: auto; max-width: 140px; min-height: 36px; margin: 0; padding: 5px; font-size: .85rem; }
.designer-card-controls a { font-size: .85rem; }
.designer-footer { margin: 18px 0 32px; }
.designer-footer .form-message { flex-basis: 100%; }
.form-settings { margin: 30px 0; padding: 18px; border: 1px solid var(--line); background: #fff; }
.form-settings summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.form-settings form { margin-top: 22px; }
@media(max-width:700px) { .apply-fields, .designer-fields { grid-template-columns: 1fr; } .designer-section-top { flex-direction: column; } .designer-card { grid-column: 1 / -1; } }

.brand img { display: block; width: auto; max-width: min(250px, 45vw); height: auto; max-height: 66px; object-fit: contain; }
@media (max-width: 600px) { .brand img { max-width: 180px; max-height: 54px; } }
.text-button { min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--blue-deep) !important; font: inherit !important; }
.field-dialog { width: min(700px, calc(100% - 28px)); max-height: min(90vh, 900px); padding: 25px; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 70px rgba(10, 14, 36, .25); }
.field-dialog::backdrop { background: rgba(8, 15, 39, .64); }
.field-dialog .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.field-dialog .dialog-head h2 { margin: 0; }
.field-dialog .dialog-close { min-height: 36px; padding: 2px 12px; font-size: 1.4rem; }
.admin .field-dialog form { margin: 16px 0 0; padding: 0; border: 0; }
.field-dialog form[hidden] { display: none; }
.field-dialog .dialog-delete { margin-top: 14px; }
.field-dialog .dialog-delete button { background: #a82d3a; border-color: #a82d3a; }
.page-section-editor { margin: 14px 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.page-section-editor > summary { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; color: var(--navy); cursor: pointer; }
.page-section-editor > summary span { color: var(--muted); font-size: .9rem; }
.admin .page-section-editor form { margin: 0; border: 0; border-top: 1px solid var(--line); box-shadow: none; }
.editor-note { padding: 12px 16px; border-left: 3px solid var(--blue); background: #edf5fc; }
.rich-editor { margin: 20px 0; }
.rich-editor > strong { display: block; margin-bottom: 7px; color: var(--navy); }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px; border: 1px solid #cfd4df; border-bottom: 0; border-radius: 4px 4px 0 0; background: #f7f9fb; }
.rich-toolbar button { min-height: 34px; padding: 5px 10px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--navy); font: 700 .9rem Lato, Arial, sans-serif; }
.rich-toolbar button:hover { border-color: #cfd4df; background: #e9f2fa; color: var(--navy); box-shadow: none; transform: none; }
.rich-toolbar [data-rich-mode] { margin-left: auto; border-color: #cfd4df; }
.rich-visual, .rich-source { width: 100%; min-height: 220px; margin: 0; padding: 16px 18px; border: 1px solid #cfd4df; border-radius: 0 0 4px 4px; background: #fff; color: var(--ink); font: 400 1rem/1.6 Roboto, Arial, sans-serif; }
.rich-visual:focus { border-color: var(--blue); outline: 2px solid rgba(77,145,208,.24); }
.rich-visual p:last-child, .rich-content p:last-child { margin-bottom: 0; }
.rich-source { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; }
.rich-editor [hidden] { display: none !important; }
.rich-editor small { display: block; margin-top: 7px; color: var(--muted); }
.rich-content ul, .rich-content ol { margin: 0 0 1.25em; padding-left: 24px; }
.rich-content a { text-decoration: underline; }
.hero-copy { max-width: 570px; margin-bottom: 32px; }
.hero-copy p { margin: 0; }
.brand-fallback { display: none; }
.brand.is-fallback img { display: none; }
.brand.is-fallback .brand-fallback { display: block; }

/* Dashboard navigation and account */
.brand img { filter: brightness(0) invert(1); }
@media (min-width: 901px) {
  .admin .topbar { position: fixed; inset: 0 auto 0 0; width: 245px; overflow-y: auto; }
  .admin .topbar .wrap { width: 100%; min-height: 0; padding: 24px 14px; display: block; }
  .admin .brand { display: block; margin: 0 8px 24px; }
  .admin-nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .admin-nav .nav-direct, .admin-nav .nav-group summary { width: 100%; justify-content: space-between; }
  .admin .nav-menu { position: static; min-width: 0; max-height: none; border: 0; box-shadow: none; background: #222945; padding: 4px; }
  .admin .admin-nav .nav-menu a { color: #eef1fa; }
  .admin .admin-nav .nav-menu a:hover, .admin .admin-nav .nav-menu a[aria-current="page"] { background: #39415e; color: #fff; }
  .admin main, .admin footer { margin-left: 245px; }
}
.not-found { padding-block: 110px; }
.designer-form { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; align-items: start; }
.designer-palette { position: sticky; top: 20px; background: #fff; border: 1px solid #d9dfeb; border-radius: 8px; padding: 16px; }
.designer-palette h2 { margin: 0; font-size: 1.2rem; }
.designer-palette button { display: block; width: 100%; margin: 7px 0; text-align: left; cursor: grab; }
.designer-footer { grid-column: 1 / -1; }
.login-panel { margin-block: 70px; padding: 45px; border: 1px solid #e3e7ef; border-radius: 12px; box-shadow: 0 16px 50px #10183314; background: white; }
@media (max-width: 900px) { .designer-form { grid-template-columns: 1fr; } .designer-palette { position: static; grid-row: 1; } .designer-palette button { display: inline-block; width: auto; } .login-panel { margin-block: 30px; padding: 25px; } }
.section-icon { color: var(--accent, #f6621b); font-size: 1.8rem; margin-bottom: 14px; }
.rich-preview { padding: 20px; border: 1px solid #d9dfeb; background: #fff; margin: 12px 0; }

/* Icons are supplied by the card markup. */
.highlights .card::before { content: none; }
.admin footer { background: #fff; border-top: 1px solid #e3e7ef; color: #525969; }
.admin footer a, .admin footer strong { color: #27304c; }
.drag-handle { cursor: grab; color: #58657a; font-size: 1.25rem; }
[data-sort-id] button[data-sort-move] { padding: 3px 7px; }
.mobile-apply { display: none; }
@media (max-width: 720px) {
 .public .topbar .wrap { gap: 8px; }
 .public .brand { margin-right: auto; }
 .public .brand img { max-width: min(150px, 35vw); }
 .has-menu .site-nav .nav-apply { display: none; }
 .has-menu .mobile-apply { display: inline-flex; min-height: 40px; padding: 8px 10px; white-space: nowrap; }
}
.image-option[hidden] { display: none; }
[data-sort-id] button[data-sort-move] { min-height: 28px; min-width: 28px; }
[data-prerequisite-option][hidden] { display: none; }
.designer-card.is-dragging, [data-sort-id]:active, .designer-section:active { transition: none; }
.admin input[type="checkbox"] { display: inline-block; width: 17px; height: 17px; min-height: 0; margin: 0 8px 0 0; padding: 0; vertical-align: middle; }
.admin .check input[type="checkbox"] { margin-right: 0; }
#bulk-delete-form { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#bulk-delete-form .check { margin: 0; }
.bulk-actions { margin: 12px 0; }
.bulk-actions summary { display: inline-block; color: #506179; cursor: pointer; font-size: .9rem; }
.bulk-actions summary:hover { color: var(--blue-deep); }
.admin .bulk-actions form { margin: 8px 0; padding: 12px; }
.admin:not(:has(.bulk-actions[open])) input[form="bulk-delete-form"][name="ids[]"] { display: none; }
.program-pricing { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-top: 48px; padding: clamp(24px, 4vw, 36px); border: 1px solid #dce7f1; border-radius: 12px; background: #f3f8fc; }
.program-pricing-label { color: #526479; font-weight: 700; }
.program-pricing-amount { margin: 5px 0 0; color: var(--navy); font: 900 clamp(1.8rem, 5vw, 2.6rem)/1.2 Lato, Arial, sans-serif; }
@media (max-width: 480px) { .program-pricing .button { width: 100%; } }
.program-schedule { display: grid; gap: 14px; margin-top: 22px; }
.program-schedule-item { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 22px; border: 1px solid #dce7f1; border-radius: 8px; background: #fff; }
.program-schedule-item h3 { margin: 8px 0; }
.program-schedule-item p { margin: 0; }
.program-section-row { padding: 22px; margin: 0 0 18px; border: 1px solid #dce3ee; border-radius: 8px; background: #f9fbfd; }
.program-section-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin .program-section-row h2 { margin: 0 0 16px; font-size: 1.2rem; }
.program-section-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.program-section-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 650px) { .program-section-fields { grid-template-columns: 1fr; } }
.program-details .program-pricing { margin-top: 0; }
.program-details > h2 { margin-top: 48px; }
.program-description { margin-bottom: 32px; }
.program-description p { margin: 0; }
.admin-info { margin: 16px 0 22px; padding: 16px 18px; border-left: 3px solid var(--blue-deep); border-radius: 4px; background: #eef5fb; color: #334158; }
.admin-info strong { color: var(--navy); }
.admin-info p { margin: 4px 0 0; }
.page-actions { display: flex; align-items: center; gap: 5px; }
.page-action-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 5px; color: var(--blue-deep); }
.page-action-icon:hover { background: #e8f2fb; color: #164d7c; }
.page-action-icon svg { width: 19px; height: 19px; }
.program-degrees { margin-top: 48px; padding: 24px; border: 1px solid #dce7f1; border-radius: 8px; background: #f7fafd; }
.program-degrees h2 { margin-top: 0; }
.admin-empty { padding: 30px 20px; text-align: center; color: #526479; }
.admin-empty p { margin: 0 0 14px; }
.admin-empty .button { margin: 0; }
/* Media library */
.image-picker { min-width: 0; margin: 18px 0 24px; padding: 18px; border: 1px solid #dce3ed; border-radius: 8px; }
.image-picker legend { padding: 0 7px; color: var(--navy); font-weight: 700; }
.media-current { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 14px; color: #5c6b80; font-size: .9rem; }
.media-current img { width: 112px; height: 78px; object-fit: contain; padding: 4px; border: 1px solid #e1e7ef; border-radius: 6px; background: #f4f7fa; }
.admin .media-open { min-height: 38px; padding: 7px 14px; font-size: .88rem; }
.media-dialog { width: min(880px, calc(100% - 32px)); max-width: none; height: min(760px, 84vh); height: min(760px, 84dvh); max-height: calc(100% - 32px); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #10182850; }
.media-dialog[open] { display: flex; flex-direction: column; }
.media-dialog::backdrop { background: rgba(11, 18, 36, .65); }
.media-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid #e8edf3; }
.admin .media-dialog-header h2 { margin: 0; color: var(--navy); font-size: 1.3rem; line-height: 1.3; }
.media-dialog-header p { margin: 5px 0 0; color: #69778b; font-size: .9rem; }
.admin .media-dialog .media-dialog-close { flex: 0 0 36px; width: 36px; height: 36px; min-height: 0; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: #526075; box-shadow: none; }
.admin .media-dialog .media-dialog-close:hover { background: #edf2f7; color: var(--navy); transform: none; }
.media-dialog-close svg, .media-upload svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.media-dialog-controls { padding: 18px 24px 12px; }
.media-toolbar { display: flex; align-items: end; gap: 14px; }
.media-dialog .media-search { flex: 1; min-width: 0; margin: 0; color: #344257; font-size: .86rem; }
.media-dialog .media-search input { height: 40px; min-height: 0; margin-top: 6px; padding: 8px 12px; }
.media-dialog .media-upload { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 7px; min-height: 40px; margin: 0; padding: 8px 13px; border: 1px solid #b9c9d9; border-radius: 6px; color: #235a88; font-size: .86rem; line-height: 1.2; cursor: pointer; }
.media-dialog .media-upload:hover, .media-dialog .media-upload:focus-within { background: #eef6fc; border-color: #4d91d0; }
.media-dialog .media-help { min-height: 1.4em; margin: 7px 0 0; color: #6b788a; font-size: .78rem; }
.media-dialog-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 24px 24px; }
.media-dialog .image-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 14px; margin: 0; }
.media-dialog .image-option { position: relative; display: block; width: auto; min-width: 0; margin: 0; padding: 0; border: 2px solid #e1e8f0; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.media-dialog .image-option:hover { border-color: #8fb9da; }
.media-dialog .image-option.is-selected { border-color: #2b78b8; }
.media-dialog .image-option:focus-within { outline: 3px solid #8ac5f4; outline-offset: 2px; }
.media-dialog .media-radio, .media-dialog .media-upload input[type=file] { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.media-thumbnail { position: relative; display: block; aspect-ratio: 4 / 3; background: #f0f4f8; }
.media-dialog .media-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.media-check { position: absolute; top: 7px; right: 7px; display: none; width: 23px; height: 23px; border-radius: 50%; background: #2b78b8; color: #fff; font-size: .85rem; line-height: 23px; text-align: center; }
.media-dialog .image-option.is-selected .media-check { display: block; }
.media-image-name { display: block; min-height: 40px; padding: 8px 9px; overflow: hidden; color: #344257; font-size: .8rem; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.media-empty { padding: 35px 12px; color: #68778b; text-align: center; }
.media-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid #e8edf3; background: #fbfcfe; }
.media-dialog .media-remove { position: relative; margin: 0; color: #607086; font-size: .86rem; font-weight: 600; cursor: pointer; }
.media-dialog .media-remove:hover { color: #a12b37; }
.media-dialog .media-remove:focus-within { outline: 3px solid #8ac5f4; outline-offset: 4px; }
.admin .media-dialog .media-done { min-height: 38px; padding: 7px 18px; }
@media (max-width: 540px) {
 .media-dialog { width: calc(100% - 20px); height: min(720px, 90vh); height: min(720px, 90dvh); max-height: calc(100% - 20px); }
 .media-dialog-header { padding: 17px 16px 14px; }
 .media-dialog-controls { padding: 14px 16px 10px; }
 .media-toolbar { align-items: stretch; flex-direction: column; }
 .media-dialog .media-upload { align-self: flex-start; }
 .media-dialog-body { padding: 6px 16px 18px; }
 .media-dialog .image-options { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 10px; }
 .media-dialog-footer { padding: 12px 16px; }
}

.media-dialog .image-option[hidden] { display: none; }
.dashboard-welcome { margin-bottom: 38px; }
.dashboard-welcome .eyebrow { margin-bottom: 10px; }
.dashboard-welcome h1 { margin-bottom: 8px; }
.dashboard-welcome p, .dashboard-guide-heading p { margin: 0; color: #64748b; }
.admin .dashboard-guide-heading h2 { margin: 0 0 5px; font-size: 1.45rem; }
.dashboard-guide-heading { margin-bottom: 18px; }
.dashboard-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dashboard-action { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 19px; border: 1px solid #dfe6ef; border-radius: 9px; background: #fff; color: #334155; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.dashboard-action:hover { color: #1c4e78; border-color: #a9c7df; box-shadow: 0 8px 24px rgba(25, 62, 95, .08); transform: translateY(-2px); }
.dashboard-action-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 8px; background: #edf5fb; color: #2b6e9f; }
.dashboard-action-icon svg { width: 22px; height: 22px; }
.dashboard-action-copy { display: grid; flex: 1; min-width: 0; gap: 5px; }
.dashboard-action-copy strong { color: var(--navy); line-height: 1.3; }
.dashboard-action-copy > span { color: #64748b; font-size: .88rem; line-height: 1.45; }
.dashboard-action-arrow { color: #7490a8; line-height: 1.3; }
@media (max-width: 1100px) { .dashboard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dashboard-actions { grid-template-columns: 1fr; } }
[data-faculty-area][hidden] { display: none; }
/* Searchable multi-select tags */
.tag-select { min-width: 0; margin: 18px 0 24px; padding: 18px; border: 1px solid #dce3ed; border-radius: 8px; }
.tag-select legend { padding: 0 7px; color: var(--navy); font-weight: 700; }
.tag-select-description { margin: 0 0 12px; color: #5d6b7d; font-size: .9rem; font-weight: 400; }
.tag-selected { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.tag-selected[hidden] { display: none; }
.admin .tag-select .tag-chip { display: inline-flex; gap: 7px; min-height: 30px; max-width: 100%; padding: 4px 9px 4px 11px; border: 1px solid #bcd6ea; border-radius: 999px; background: #edf6fd; color: #245d88; font: 600 .84rem/1.35 Lato, Arial, sans-serif; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.admin .tag-select .tag-chip:hover { background: #dceefa; border-color: #83b6d9; box-shadow: none; transform: none; }
.tag-chip-remove { font-size: 1.1rem; line-height: 1; }
.tag-select-bar { display: flex; align-items: end; gap: 8px; }
.tag-search-label { flex: 1; min-width: 0; margin: 0; }
.tag-search-caption { display: block; color: #526174; font-size: .82rem; font-weight: 600; }
.tag-select .tag-search-label input { height: 40px; min-height: 0; margin-top: 5px; padding: 8px 11px; }
.admin .tag-select .tag-toggle { min-height: 40px; padding: 8px 14px; border: 1px solid #b9c9d9; border-radius: 5px; background: #fff; color: #235a88; font-size: .85rem; }
.admin .tag-select .tag-toggle:hover { background: #eef6fc; box-shadow: none; transform: none; }
.tag-options { display: grid; gap: 3px; max-height: 230px; overflow-y: auto; margin-top: 8px; padding: 6px; border: 1px solid #dce3ed; border-radius: 6px; background: #fff; }
.tag-options[hidden] { display: none; }
.tag-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 9px 10px; border-radius: 4px; color: #344257; font-size: .88rem; font-weight: 400; cursor: pointer; }
.tag-option[hidden] { display: none; }
.tag-option:hover, .tag-option:focus-within { background: #f1f6fa; }
.tag-option.is-selected { color: #205e8f; background: #edf6fd; }
.tag-option-check { display: none; color: #2b78b8; font-weight: 700; }
.tag-option.is-selected .tag-option-check { display: inline; }
.tag-select.is-enhanced .tag-option input[type=checkbox] { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
.tag-select:not(.is-enhanced) .tag-toggle, .tag-select:not(.is-enhanced) .tag-search-label { display: none; }
.tag-select:not(.is-enhanced) .tag-option { justify-content: flex-start; }
.tag-no-results { margin: 8px 0 0; color: #69778b; font-size: .86rem; }
@media (max-width: 480px) { .tag-select { padding: 14px; } .tag-select-bar { align-items: stretch; flex-wrap: wrap; } .tag-search-label { min-width: 160px; } }
.program-list .card h2 { font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.3; }

/* ---------------------------------------------------------------
   UX polish pass (2026-11-17)
   --------------------------------------------------------------- */
html { scroll-padding-top: 110px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 4px; background: #fff; color: var(--navy); font-weight: 700; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

/* Secondary buttons were referenced but never styled. */
.button.button-secondary { background: #fff; color: var(--blue-deep); border-color: #b9cde0; }
.button.button-secondary:hover { background: #eef6fc; color: var(--navy); border-color: var(--blue); box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
button:disabled, .button[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none !important; box-shadow: none !important; }
button.is-busy::before { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Current page in the public navigation. */
.site-nav a[aria-current="page"]:not(.button) { color: #b7dcff; box-shadow: inset 0 -2px 0 #b7dcff; }

/* Cards: only lift when the whole card is a link. */
.card:hover { transform: none; border-color: #f0f0f0; box-shadow: 0 8px 26px rgba(17, 22, 51, .04); }
.card:has(.card-link), .program-card, .program-schedule-item { position: relative; }
.card:has(.card-link):hover { transform: translateY(-3px); border-color: #d5e6f5; box-shadow: var(--shadow); }
.card-link::after { content: ''; position: absolute; inset: 0; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible), .program-card:has(.card-link:focus-visible), .program-schedule-item:has(.card-link:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.program-card:hover h3, .program-schedule-item:hover h3, .card:has(.card-link):hover h2, .card:has(.card-link):hover h3 { color: var(--blue-deep); }
.program-schedule-item { transition: border-color .2s ease, box-shadow .2s ease; }
.program-schedule-item:hover { border-color: #a9c7df; box-shadow: var(--shadow); }

/* Home program strip: works for any number of programs. */
.program-strip .cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border-inline: 1px solid var(--line); }
.program-card, .program-card:first-child { border: 0; background: #fff; transition: background-color .2s ease; }
.program-card:hover { background: #f8fbfe; }

/* Highlight icons use the brand blue. */
.section-icon { color: var(--blue-deep); }

/* Programs listing */
.program-list-card { display: flex; flex-direction: column; }
.meta-list { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); }
.meta-list li { display: flex; align-items: baseline; gap: 10px; }
.meta-list i { width: 16px; color: var(--blue); text-align: center; }
.program-list-card .card-link { margin-top: auto; font-family: Lato, Arial, sans-serif; font-weight: 700; }
.page-head-meta { margin: 0 0 22px !important; font-weight: 500; }
.empty-note { grid-column: 1 / -1; padding: 28px; border: 1px dashed #cdd8e5; border-radius: 6px; color: var(--muted); text-align: center; }

/* Faculty photos: keep faces in frame. */
.teacher img { object-position: center 22%; }

/* Catalogue */
.page-jump { position: sticky; top: 90px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: -20px 0 40px; padding: 10px 0; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.page-jump a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font: 700 .88rem Lato, Arial, sans-serif; }
.page-jump a:hover { border-color: var(--blue); color: var(--blue-deep); background: #f3f8fc; }
.anchor { display: block; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 22px 0 10px; }
.area-item { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 4px; background: #fff; }
.area-item h3 { margin: 0; font-size: 1rem; }
.area-item p { margin: 6px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.area-item .area-credits { color: var(--blue-deep); font-weight: 500; }
.catalog-content > h2 { margin-top: 56px; }

/* 404 */
.not-found { text-align: left; }
.not-found .button-row { margin-top: 28px; }

/* Application form feedback */
.apply-cell .is-invalid input, .apply-cell .is-invalid select, .apply-cell .is-invalid textarea, [aria-invalid="true"] { border-color: #c24141; box-shadow: 0 0 0 3px rgba(194, 65, 65, .12); }
.form-message.is-error { padding: 12px 16px; border-left: 3px solid #c24141; border-radius: 4px; background: #fdf1f1; color: #8f2424; }
.form-message.is-success { color: #1e6b3a; }
.form-success { padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-top: 4px solid #2e8b57; border-radius: 4px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.form-success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #e8f6ee; color: #2e8b57; font-size: 1.8rem; }
.form-success p { max-width: 520px; margin-inline: auto; color: var(--muted); }
.apply-content form .button[type=submit] { min-width: 220px; }

/* Toasts */
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: grid; gap: 10px; max-width: min(380px, calc(100% - 40px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 8px; background: var(--navy); color: #fff; font-size: .92rem; box-shadow: 0 14px 34px rgba(10, 14, 36, .28); animation: toast-in .2s ease-out; pointer-events: auto; }
.toast.is-error { background: #8f2424; }
.toast::before { content: '✓'; font-weight: 700; }
.toast.is-error::before { content: '!'; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Admin: sidebar account block */
.admin-account { display: grid; gap: 2px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 8px 11px; color: #fff; }
.admin-user small { display: block; color: #a9b0c6; font-size: .72rem; line-height: 1.2; }
.admin-user strong { display: block; font: 700 .9rem/1.3 Lato, Arial, sans-serif; overflow-wrap: anywhere; }
.admin-avatar { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-deep); font: 700 .9rem Lato, Arial, sans-serif; }
.admin-nav .nav-site, .admin-nav .nav-logout { color: #c9cfe0; font-weight: 400; }
@media (min-width: 901px) {
  .admin .topbar .wrap { display: flex; flex-direction: column; align-items: stretch; min-height: 100%; }
  .admin-nav { flex: 1; }
  .admin-account { margin-top: auto; }
}

/* Admin footer: compact, admin-specific */
.admin .admin-footer { padding: 16px 0; font-size: .85rem; }
.admin-footer .footer-inner { display: flex; justify-content: space-between; gap: 16px; width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.admin-footer .footer-inner span { color: #6b7488; font-size: .85rem; }
.admin-footer .footer-inner a { color: var(--blue-deep); }

/* Admin: mobile navigation collapses behind a toggle */
.admin-menu-toggle { display: none; }
@media (max-width: 900px) {
  .admin .topbar { position: sticky; top: 0; z-index: 40; }
  .admin .topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 64px; padding-block: 10px; }
  .admin .brand img { max-height: 44px; max-width: 150px; }
  .admin.has-admin-menu .admin-menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.6); border-radius: 4px; background: transparent; color: #fff; font: 700 .9rem Lato, Arial, sans-serif; cursor: pointer; }
  .admin.has-admin-menu .admin-nav { display: none; flex-basis: 100%; max-height: calc(100dvh - 80px); overflow-y: auto; margin-top: 10px; }
  .admin.has-admin-menu .admin-nav.is-open { display: grid; grid-template-columns: 1fr; gap: 3px; }
  .admin .nav-menu { position: static; min-width: 0; max-height: none; margin: 2px 0 6px; border: 0; box-shadow: none; background: #222945; }
  .admin .admin-nav .nav-menu a { color: #eef1fa; }
  .admin .admin-nav .nav-menu a:hover, .admin .admin-nav .nav-menu a[aria-current="page"] { background: #39415e; color: #fff; }
  .admin-nav .nav-direct, .nav-group summary { justify-content: space-between; }
  .admin-wrap { margin-top: 28px; }
}

/* Admin: page headers, titles and back links */
.admin-title { flex-wrap: wrap; margin-bottom: 6px; }
.admin-title h1 { margin-bottom: 0; }
.back-link { margin-bottom: 8px; font-size: .92rem; }

/* Admin: sticky save bar on long forms */
.admin .form-actions { position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px -25px -25px; padding: 14px 25px; border-top: 1px solid var(--line); border-radius: 0 0 4px 4px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); }
.admin .form-actions .form-message { margin: 0; font-weight: 600; }
.admin .page-section-editor .form-actions { margin-inline: -25px; }
@media (max-width: 420px) { .admin .form-actions { margin: 20px -18px -18px; padding: 12px 18px; } }
.admin form.is-dirty .form-actions .button { box-shadow: 0 0 0 3px rgba(77,145,208,.25); }

/* Admin: delete area */
.admin form.danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; max-width: 760px; margin-top: 36px; border-color: #f0d3d3; background: #fffafa; }
.danger-zone strong { color: #7d1f1f; }
.danger-zone p { margin: 3px 0 0; color: #6b5a5a; font-size: .9rem; }
.danger-zone .form-message { flex-basis: 100%; margin: 0; }
.danger-zone .form-message:empty { display: none; }

/* Admin: editor toolbar keeps a single tidy row */
.rich-toolbar { align-items: center; }
.admin .rich-toolbar select { width: auto; min-height: 34px; margin: 0; padding: 4px 28px 4px 10px; border-color: transparent; background-color: transparent; color: var(--navy); font: 700 .9rem Lato, Arial, sans-serif; }
.admin .rich-toolbar select:hover { border-color: #cfd4df; background-color: #e9f2fa; }
.rich-toolbar [data-shortcode]:first-of-type { border-left: 1px solid #dbe1ea; border-radius: 0; padding-left: 12px; }

/* Admin: form designer cards keep the required mark inline */
.designer-card strong { display: inline; }

/* Admin: dashboard summary */
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: -12px 0 38px; }
.dashboard-stat { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid #dfe6ef; border-radius: 9px; background: #fff; color: #64748b; font-size: .88rem; transition: border-color .18s ease, box-shadow .18s ease; }
.dashboard-stat strong { color: var(--navy); font: 900 1.7rem/1.1 Lato, Arial, sans-serif; }
.dashboard-stat:hover { border-color: #a9c7df; box-shadow: 0 8px 24px rgba(25, 62, 95, .08); color: #1c4e78; }

/* Admin: tables are easier to scan */
.admin tbody tr { transition: background-color .15s ease; }
.admin tbody tr:not(.empty-row):hover { background: #f7fafd; }
.list-search { margin-top: 6px; }

/* Login */
.login-panel { max-width: 480px; }
.login-panel form { max-width: none; }
.login-submit { width: 100%; }
@media (max-width: 720px) { .page-jump { top: 74px; } html { scroll-padding-top: 90px; } }
.rich-toolbar [data-rich-mode] { order: 99; }

/* ---------------------------------------------------------------
   Visual page editor and media library (2026-11-17)
   --------------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Forms used as layout containers should not get the boxed admin form style. */
.admin form:is(.page-editor, .side-form, .block-form, .block-delete, .side-delete, .media-details-form, .media-delete-form) { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
/* Quiet buttons: reset the global filled-button look. */
.admin.admin :where(.icon-button, .chooser-option, .rt-btn, .text-danger, .rt-menu button, .media-tile-open, .add-block) { min-height: 0; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--navy); font: inherit; box-shadow: none; transform: none; text-align: left; }
.admin.admin :where(.icon-button, .chooser-option, .rt-btn, .text-danger, .rt-menu button, .media-tile-open, .add-block):hover { box-shadow: none; transform: none; color: var(--navy); }
.admin .icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; color: #5b6a80; }
.admin .icon-button:hover { background: #edf2f7; color: var(--navy); }
.admin .text-danger { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; color: #a12b37; font-weight: 600; font-size: .9rem; }
.admin .text-danger:hover { background: none; color: #7a1d27; text-decoration: underline; }
.button.small { min-height: 36px; padding: 6px 13px; font-size: .86rem; }

.page-editor-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.page-editor-top .back-link { margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font: 700 .8rem Lato, Arial, sans-serif; }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-published { background: #e8f6ee; color: #1f7a45; }
.status-draft { background: #fff4e0; color: #9a5b00; }
.page-editor { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.page-title-field { margin: 0 0 22px; }
.admin .page-title-input { min-height: 0; margin: 0; padding: 10px 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--navy); font: 900 clamp(1.8rem, 3vw, 2.4rem)/1.2 Lato, Arial, sans-serif; }
.admin .page-title-input:hover { border-color: #dbe2eb; background: #fff; }
.admin .page-title-input:focus { border-color: var(--blue); background: #fff; }
.editor-panel { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.admin .editor-panel h2 { margin: 0 0 4px; font-size: 1.3rem; }
.panel-hint { margin: 0 0 18px; color: #64748b; font-size: .92rem; }

/* Blocks */
.block-list { display: grid; gap: 14px; }
.block { position: relative; border: 1px solid #dfe6ef; border-radius: 10px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; scroll-margin-top: 90px; }
.block:hover { border-color: #b9cde0; }
.block.is-editing, .block.is-new { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77, 145, 208, .14); }
.block.is-hidden .block-preview, .block.is-unused .block-preview { opacity: .55; }
.block.is-highlighted { animation: block-flash 2s ease-out; }
@keyframes block-flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(46, 139, 87, .35); border-color: #2e8b57; } }
.block[draggable="true"] { opacity: .7; }
.block-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #eef2f6; }
.block .drag-handle { cursor: grab; padding: 4px 2px; color: #9aa7b8; font-size: 1.2rem; line-height: 1; user-select: none; }
.block .drag-handle:hover { color: var(--navy); }
.block-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #edf5fb; color: #2b6e9f; }
.block-meta { display: grid; flex: 1; min-width: 0; }
.block-type { color: #6b7a90; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.block-title { overflow: hidden; color: var(--navy); font: 700 1rem/1.35 Lato, Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.block-badge { flex: none; padding: 3px 9px; border-radius: 999px; background: #f1f3f6; color: #5d6a7c; font-size: .75rem; font-weight: 700; }
.block-tools { display: flex; flex: none; align-items: center; gap: 2px; }
.block-tools .button { margin-left: 6px; }
.block-preview { position: relative; padding: 18px 22px; cursor: pointer; border-radius: 0 0 10px 10px; transition: background-color .15s ease; }
.block-preview:hover { background: #f8fbfe; }
.block-preview::after { content: 'Click to edit'; position: absolute; top: 12px; right: 14px; padding: 3px 9px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .74rem; font-weight: 700; opacity: 0; transition: opacity .15s ease; }
.block-preview:hover::after { opacity: .85; }
.block-preview .rich-content { max-height: 260px; overflow: hidden; color: #344257; font-size: .95rem; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.block-preview .rich-content h2 { font-size: 1.3rem; } .block-preview .rich-content h3 { font-size: 1.1rem; }
.appearance-dark .block-preview { background: #1a2042; } .appearance-dark .block-preview .rich-content, .appearance-dark .block-preview .rich-content :is(h2,h3,h4) { color: #eef1fa; }
.appearance-accent .block-preview { background: #2a6ea9; } .appearance-accent .block-preview .rich-content, .appearance-accent .block-preview .rich-content :is(h2,h3,h4) { color: #fff; }
.block-hint { margin: 0 0 10px; color: #64748b; font-size: .85rem; font-style: italic; }
.block-empty { margin: 0; color: #8391a5; font-style: italic; }
.block-image { width: 160px; height: 100px; margin-top: 12px; border-radius: 6px; object-fit: cover; }
.shortcode-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid #bcd6ea; border-radius: 999px; background: #edf6fd; color: #245d88; font-size: .85rem; font-weight: 600; }
.block-editor { padding: 20px 22px 18px; }
.block.is-new .block-editor { padding-top: 16px; }
.block-heading-field input { font-weight: 700; }
.block-note { display: flex; gap: 8px; margin: 0 0 6px; padding: 10px 14px; border-radius: 6px; background: #f3f8fc; color: #3c5875; font-size: .88rem; }
.block-settings { display: flex; flex-wrap: wrap; align-items: end; gap: 18px 28px; margin: 6px 0 4px; }
.block-type-field { min-width: 200px; margin: 0; }
.block-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.block-actions .form-message { margin: 0; }
.block-delete { display: flex; align-items: center; gap: 12px; margin-top: 14px !important; padding-top: 12px !important; border-top: 1px solid #eef2f6 !important; }
.block-list-empty { padding: 34px; border: 2px dashed #d6dfea; border-radius: 10px; color: #6b7a90; text-align: center; }
.block-list-empty i { font-size: 1.8rem; color: #9fb3c8; }
.block-list-empty p { margin: 8px 0 0; }
.admin .add-block { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 14px; padding: 16px; border: 2px dashed #c6d4e3; border-radius: 10px; color: #2b6e9f; font-weight: 700; text-align: center; }
.admin .add-block:hover { border-color: var(--blue); background: #f3f8fc; color: var(--navy); }
.block-chooser { width: min(720px, calc(100% - 28px)); padding: 24px; border: 0; border-radius: 12px; box-shadow: 0 24px 80px rgba(16, 24, 40, .3); }
.block-chooser::backdrop, .media-details::backdrop { background: rgba(11, 18, 36, .6); }
.chooser-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin .chooser-head h2 { margin: 0; font-size: 1.3rem; }
.chooser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.admin .chooser-option { display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px solid #dfe6ef; border-radius: 10px; }
.admin .chooser-option:hover, .admin .chooser-option:focus-visible { border-color: var(--blue); background: #f3f8fc; }
.chooser-option strong { color: var(--navy); }
.chooser-option > span:last-child { color: #64748b; font-size: .86rem; line-height: 1.45; }

/* Background swatches and switch */
.appearance-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.appearance-picker legend { margin-bottom: 7px; padding: 0; color: var(--navy); font-weight: 700; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px 6px 7px; border: 1px solid #d5dde8; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; }
.swatch input, .switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-color { width: 20px; height: 20px; border: 1px solid #c8d1dd; border-radius: 50%; background: #fff; }
.swatch-dark .swatch-color { background: var(--navy); } .swatch-accent .swatch-color { background: var(--blue-deep); }
.swatch:has(input:checked) { border-color: var(--blue); background: #edf6fd; box-shadow: 0 0 0 2px rgba(77, 145, 208, .25); }
.swatch:has(input:focus-visible), .switch:has(input:focus-visible), .segmented label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.switch { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 4px; font-weight: 600; cursor: pointer; }
.switch-track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #c5ceda; transition: background-color .15s ease; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s ease; }
.switch:has(input:checked) .switch-track { background: #2e8b57; }
.switch:has(input:checked) .switch-track::after { transform: translateX(18px); }

/* Sidebar */
.page-editor-side { display: grid; gap: 16px; }
.side-form { display: grid; gap: 16px; }
.side-card { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.admin .side-card h2 { margin: 0 0 12px; font-size: 1rem; }
.side-card .image-picker { margin: 0 0 6px; padding: 14px; }
.side-card .image-picker + .side-hint { margin-bottom: 16px; }
.side-hint { margin: 6px 0 0; color: #64748b; font-size: .84rem; line-height: 1.45; }
.publish-card { box-shadow: 0 8px 24px rgba(25, 62, 95, .06); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 8px; background: #eef2f6; }
.segmented label { position: relative; margin: 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 7px 10px; border-radius: 6px; color: #5d6a7c; font-size: .9rem; text-align: center; }
.segmented input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.publish-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.publish-actions .button[type=submit] { flex: 1; }
.publish-card .form-message { margin: 8px 0 0; font-size: .88rem; }
.input-prefix { display: flex; align-items: stretch; margin-top: 0; border: 1px solid #cfd4df; border-radius: 4px; overflow: hidden; background: #fff; }
.input-prefix:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(77, 145, 208, .16); }
.input-prefix > span { display: flex; align-items: center; max-width: 45%; padding: 0 4px 0 10px; overflow: hidden; background: #f4f6f9; color: #6b7488; font-size: .84rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.admin .input-prefix input { min-height: 40px; margin: 0; padding: 8px 10px; border: 0; box-shadow: none; font-size: .92rem; }
.slug-field { margin: 0; }
.serp { display: grid; gap: 3px; padding: 14px; border: 1px solid #e3e8ee; border-radius: 8px; font-family: Arial, sans-serif; }
.serp-url { overflow: hidden; color: #4d5156; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.serp-title { overflow: hidden; color: #1a0dab; font-size: 1.05rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.serp-description { display: -webkit-box; overflow: hidden; color: #4d5156; font-size: .84rem; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.seo-fields { margin-top: 12px; }
.seo-fields summary { color: var(--blue-deep); font-weight: 700; font-size: .9rem; cursor: pointer; }
.seo-fields label { margin: 14px 0 0; font-size: .9rem; }
.char-counter { display: block; margin-top: 4px; color: #7a8698; font-size: .78rem; font-weight: 400; text-align: right; }
.char-counter.is-over { color: #a35b00; }
.side-delete { padding: 6px 18px !important; border: 1px dashed #ecc9c9 !important; border-radius: 10px !important; }
.side-delete .form-message:empty { display: none; }
@media (max-width: 1100px) {
  .page-editor { grid-template-columns: 1fr; }
  .publish-card { position: static; }
  .page-editor-side { order: -1; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .side-form { display: contents; }
}
@media (max-width: 600px) {
  .editor-panel { padding: 16px; }
  .block-head { flex-wrap: wrap; }
  .block-tools { width: 100%; justify-content: flex-end; }
  .block-preview, .block-editor { padding-inline: 16px; }
}

/* Rich text editor */
.rich-editor { margin: 6px 0 4px; }
.rich-label { display: block; margin-bottom: 7px; color: var(--navy); font-weight: 700; }
.rich-toolbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border: 1px solid #cfd4df; border-bottom-color: #e3e8ee; border-radius: 6px 6px 0 0; background: #f7f9fb; }
@media (max-width: 900px) { .rich-toolbar { top: 64px; } }
.rt-group { display: flex; gap: 2px; padding-right: 4px; border-right: 1px solid #dde3ea; }
.rt-group:last-of-type, .rt-end { border-right: 0; }
.rt-end { margin-left: auto; padding-right: 0; }
.admin .rt-btn { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 5px; color: #3c4a5e; }
.admin .rt-btn:hover { background: #e6eef6; color: var(--navy); }
.admin .rt-btn[aria-pressed="true"] { background: #d7e7f5; color: #164d7c; }
.rt-text { font: 800 .82rem Lato, Arial, sans-serif; }
.rich-editor.is-html .rt-group:not(.rt-end), .rich-editor.is-html .rt-insert, .rich-editor.is-previewing .rt-group:not(.rt-end), .rich-editor.is-previewing .rt-insert { opacity: .4; pointer-events: none; }
.rt-insert { position: relative; }
.rt-insert summary { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 5px; color: #2b6e9f; font: 700 .86rem Lato, Arial, sans-serif; cursor: pointer; list-style: none; }
.rt-insert summary::-webkit-details-marker { display: none; }
.rt-insert summary:hover, .rt-insert[open] summary { background: #e6eef6; }
.rt-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 10; display: grid; min-width: 230px; padding: 6px; border: 1px solid #dfe6ef; border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(16, 24, 40, .16); }
.admin .rt-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: .9rem; }
.admin .rt-menu button:hover { background: #f1f6fa; }
.rt-menu i { width: 16px; color: #2b6e9f; text-align: center; }
.rich-visual { min-height: 180px; outline: none; }
.rich-visual.is-empty::before { content: attr(data-placeholder); position: absolute; color: #9aa6b6; pointer-events: none; }
.rich-visual { position: relative; }
.rich-visual h2 { margin: .8em 0 .4em; font-size: 1.5rem; } .rich-visual h3 { margin: .8em 0 .4em; font-size: 1.2rem; }
.rich-visual > :first-child { margin-top: 0; }
.rich-visual blockquote { margin: 1em 0; }
.rich-preview { min-height: 180px; margin: 0; border: 1px solid #cfd4df; border-top: 0; border-radius: 0 0 6px 6px; }

/* Media library */
.page-intro { margin: -4px 0 20px; color: #64748b; }
.media-upload-button { position: relative; overflow: hidden; }
.media-upload-button input, .link-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.media-upload-button:focus-within, .link-label:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.media-dropzone { display: grid; justify-items: center; gap: 4px; margin-bottom: 22px; padding: 26px 20px; border: 2px dashed #c6d4e3; border-radius: 12px; background: #fff; color: #5d6a7c; text-align: center; transition: border-color .15s ease, background-color .15s ease; }
.media-dropzone > i { color: #8fb0cf; font-size: 1.9rem; }
.media-dropzone p { margin: 4px 0 0; }
.media-dropzone.is-dragover { border-color: var(--blue); background: #eef6fc; }
.link-label { position: relative; display: inline; margin: 0; color: var(--blue-deep); font-weight: 700; text-decoration: underline; cursor: pointer; }
.upload-queue { display: grid; gap: 6px; width: min(560px, 100%); margin: 10px 0 0; padding: 0; list-style: none; }
.upload-queue:empty { display: none; }
.upload-queue li { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 6px; background: #f4f7fa; font-size: .86rem; text-align: left; }
.upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-queue progress { width: 100%; height: 6px; accent-color: var(--blue-deep); }
.upload-queue .is-done .upload-status { color: #1f7a45; } .upload-queue .is-error .upload-status { color: #a12b37; }
.media-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 16px; }
.media-filter-label { position: relative; flex: 1 1 260px; max-width: 380px; margin: 0; }
.media-filter-label i { position: absolute; top: 50%; left: 13px; color: #8391a5; transform: translateY(-50%); }
.admin .media-filter { min-height: 42px; margin: 0; padding-left: 38px; }
.media-count { color: #64748b; font-size: .9rem; }
.media-toolbar-row .bulk-actions { margin: 0 0 0 auto; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.media-tile { position: relative; min-width: 0; }
.media-tile[hidden] { display: none; }
.media-tile input[type=checkbox] { position: absolute; top: 10px; left: 10px; z-index: 2; width: 20px !important; height: 20px !important; margin: 0 !important; }
.admin .media-tile-open { display: grid; width: 100%; overflow: hidden; border: 1px solid #dfe6ef; border-radius: 10px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.admin .media-tile-open:hover, .admin .media-tile-open:focus-visible { border-color: #8fb9da; box-shadow: 0 10px 26px rgba(25, 62, 95, .12); transform: translateY(-2px); }
.media-tile-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f6 repeating-conic-gradient(#e6ebf1 0 25%, #f4f7fa 0 50%) 0 0 / 16px 16px; }
.media-tile-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.media-tile-open:hover .media-tile-thumb img { transform: scale(1.03); }
.media-tile-name { display: block; padding: 10px 12px 0; overflow: hidden; color: var(--navy); font-weight: 700; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.media-tile-meta { display: block; padding: 2px 12px 12px; color: #7a8698; font-size: .78rem; }
.media-in-use { color: #1f7a45; font-weight: 700; }
.media-empty-state { padding: 40px 20px; color: #64748b; text-align: center; }
.media-details { width: min(940px, calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 24px 80px rgba(16, 24, 40, .3); }
.media-details-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); }
.media-details-preview { display: grid; place-items: center; min-height: 320px; padding: 20px; background: #eef2f6 repeating-conic-gradient(#e6ebf1 0 25%, #f4f7fa 0 50%) 0 0 / 18px 18px; }
.media-details-preview img { max-width: 100%; max-height: 70vh; border-radius: 4px; box-shadow: 0 8px 26px rgba(16, 24, 40, .18); }
.media-details-info { display: grid; align-content: start; gap: 4px; padding: 22px; }
.media-details-meta { margin: -8px 0 14px; color: #64748b; font-size: .86rem; }
.media-details-info label { margin-bottom: 0; }
.copy-field { display: flex; gap: 8px; margin-top: 6px; }
.admin .copy-field input { min-height: 38px; margin: 0; font-size: .82rem; color: #4d5a6c; background: #f7f9fb; }
.media-details-info > label { margin-top: 16px; }
.media-uses { margin-top: 16px; font-size: .9rem; }
.media-uses ul { margin: 6px 0 0; padding-left: 18px; color: #4d5a6c; }
.media-uses ul.is-empty { padding: 0; list-style: none; color: #8391a5; font-style: italic; }
.media-details-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px solid #eef2f6; }
@media (max-width: 720px) { .media-details-body { grid-template-columns: 1fr; } .media-details-preview { min-height: 200px; } .media-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } .upload-queue li { grid-template-columns: 1fr; gap: 4px; } }
.admin .rt-menu button { justify-content: flex-start; width: 100%; white-space: nowrap; }
.page-editor > .page-title-field { grid-column: 1 / -1; margin-bottom: 0; }

/* Program schedule grouped by week */
.program-schedule { gap: 12px; }
.schedule-week { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 4px 24px; padding: 16px 20px; border: 1px solid #dce7f1; border-radius: 8px; background: #fff; }
.schedule-week-date { margin: 9px 0 0; color: var(--navy); font-size: .95rem; line-height: 1.4; }
.schedule-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.schedule-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: baseline; gap: 4px 16px; padding: 9px 10px; border-radius: 6px; transition: background-color .15s ease; }
.schedule-row + .schedule-row { border-top: 1px solid #edf1f6; }
.schedule-row:hover { background: #f3f8fc; }
.schedule-row .card-link { color: var(--navy); font: 700 .98rem/1.4 Lato, Arial, sans-serif; }
.schedule-row:hover .card-link { color: var(--blue-deep); }
.schedule-row:has(.card-link:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.schedule-row-instructor { color: var(--muted); font-size: .9rem; text-align: right; }
.schedule-row-arrow { color: var(--blue); }
@media (max-width: 760px) {
  .schedule-week { grid-template-columns: 1fr; padding: 14px 12px; }
  .schedule-week-date { margin: 0 10px 4px; }
  .schedule-row { grid-template-columns: minmax(0, 1fr) 18px; }
  .schedule-row-instructor { grid-column: 1; grid-row: 2; text-align: left; }
  .schedule-row-arrow { grid-column: 2; grid-row: 1; }
}

/* Faculty page: four per row, calmer cards */
.faculty-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.teacher-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: box-shadow .3s ease, border-color .3s ease; animation: teacher-rise .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.teacher-card:hover { border-color: #cfe0ef; box-shadow: 0 18px 40px rgba(17, 22, 51, .09); }
@keyframes teacher-rise { from { opacity: 0; transform: translateY(16px); } }
.teacher-photo { display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(145deg, #f1f6fb, #dfe9f4); }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.teacher-card:hover .teacher-photo img { transform: scale(1.045); }
.teacher-initials { display: grid; place-items: center; width: 44%; aspect-ratio: 1 / 1; border-radius: 50%; background: #fff; color: var(--blue-deep); font: 900 clamp(1.5rem, 2.6vw, 2.1rem) Lato, Arial, sans-serif; letter-spacing: .02em; box-shadow: 0 8px 22px rgba(40, 111, 174, .14); transition: transform .4s ease; }
.teacher-card:hover .teacher-initials { transform: scale(1.05); }
.teacher-body { padding: 16px 18px 18px; }
.teacher-body h2 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.teacher-card .teacher-meta { margin: 4px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.teacher-card .teacher-areas { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.teacher-card .teacher-areas li { padding: 2px 10px; border-radius: 999px; background: #edf5fb; color: #245d88; font-size: .75rem; font-weight: 600; line-height: 1.6; }
.teacher-bio { margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf1f6; }
.teacher-bio summary { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-deep); font: 700 .86rem Lato, Arial, sans-serif; cursor: pointer; list-style: none; }
.teacher-bio summary::-webkit-details-marker { display: none; }
.teacher-bio summary::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.teacher-bio[open] summary::after { transform: translateY(1px) rotate(225deg); }
.teacher-bio p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
@media (max-width: 1020px) { .faculty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } .teacher-body { padding: 12px 13px 14px; } .teacher-body h2 { font-size: 1rem; } }

/* Faculty cards: courses taught */
.teacher-courses { margin-top: 12px; padding-top: 11px; border-top: 1px solid #edf1f6; }
.teacher-courses h3 { margin: 0 0 6px; color: var(--muted); font: 700 .7rem/1.4 Lato, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.teacher-courses ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.teacher-courses li { position: relative; padding-left: 13px; font-size: .88rem; line-height: 1.4; }
.teacher-courses li::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: .55; }
.teacher-courses a { color: var(--navy); text-decoration: none; transition: color .15s ease; }
.teacher-courses a:hover, .teacher-courses a:focus-visible { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.teacher-more { margin-top: 6px; }
.teacher-more summary { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-deep); font: 700 .8rem Lato, Arial, sans-serif; cursor: pointer; list-style: none; }
.teacher-more summary::-webkit-details-marker { display: none; }
.teacher-more summary::after { content: ''; width: 5px; height: 5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.teacher-more[open] summary::after { transform: translateY(1px) rotate(225deg); }
.teacher-more ul { margin-top: 6px; }
@media (max-width: 720px) { .teacher-courses li { font-size: .82rem; } }

/* Media library: in use / unused filter and "Delete unused" */
.media-show { grid-template-columns: repeat(3, auto); }
.media-show span { padding: 6px 13px; white-space: nowrap; }
.media-unused-form { margin: 0 0 0 auto; padding: 0; border: 0; background: none; box-shadow: none; }
.admin .media-unused-form { margin: 0 0 0 auto; padding: 0; border: 0; background: none; box-shadow: none; }
.admin.admin .media-unused-button { display: inline-flex; align-items: center; gap: 7px; border-color: #e7c4c4; color: #a12626; background: #fff; }
.admin.admin .media-unused-button:hover, .admin.admin .media-unused-button:focus-visible { border-color: #c63a3a; background: #fdf1f1; color: #8a1c1c; }
.media-toolbar-row .media-unused-form + .bulk-actions { margin-left: 0; }
.media-unused { color: #9a6a1b; font-weight: 700; }
@media (max-width: 720px) { .admin .media-unused-form { margin-left: 0; } }

/* Page transitions: in-place navigation with an animated change (see softNav in app.js) */
@view-transition { navigation: auto; }
.nav-progress { position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue), #7cc4f4); transform: scaleX(0); transform-origin: left center; opacity: 1; pointer-events: none; }
.nav-progress.is-loading { transform: scaleX(.82); transition: transform 4s cubic-bezier(.08, .7, .2, 1); }
.nav-progress.is-done { transform: scaleX(1); opacity: 0; transition: transform .18s ease-out, opacity .25s ease .12s; }
main:focus { outline: none; }
@keyframes page-leave { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } }
main.soft-enter { animation: page-enter .34s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: no-preference) {
 .topbar { view-transition-name: site-chrome; }
 main { view-transition-name: page-main; }
 ::view-transition-old(root) { animation: page-fade-out .18s ease both; }
 ::view-transition-new(root) { animation: page-fade-in .3s ease both; }
 ::view-transition-old(page-main) { animation: page-leave .17s ease-in both; }
 ::view-transition-new(page-main) { animation: page-enter .38s cubic-bezier(.2, .7, .2, 1) .05s both; }
 ::view-transition-group(page-main) { animation-duration: .3s; }
 ::view-transition-old(site-chrome), ::view-transition-new(site-chrome) { animation-duration: .25s; }
 ::view-transition-group(site-chrome) { z-index: 2; animation-duration: .25s; }
}
@media (prefers-reduced-motion: reduce) {
 ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
 main.soft-enter { animation: none; }
 .nav-progress { transition: none !important; }
}

/* API keys */
.admin-title .button i { margin-right: 7px; }
.key-list { display: grid; gap: 10px; margin: 0 0 30px; }
.key-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto 76px; align-items: center; gap: 14px 18px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.key-row:hover { border-color: #cfd9e6; box-shadow: 0 6px 18px rgba(16, 24, 40, .06); }
.key-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #edf5fb; color: var(--blue-deep); }
.key-main { display: grid; gap: 2px; min-width: 0; }
.key-main strong { overflow: hidden; color: var(--navy); font: 700 1rem/1.35 Lato, Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.key-meta { color: #64748b; font-size: .86rem; }
.key-scope { padding: 4px 11px; border-radius: 999px; background: #eef2f6; color: #44536a; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.status-revoked { background: #f1f3f6; color: #6b7686; }
.key-row.is-revoked { background: #fafbfc; }
.key-row.is-revoked .key-icon { background: #eef0f3; color: #98a2b3; }
.key-row.is-revoked .key-main strong { color: #6b7686; text-decoration: line-through; text-decoration-color: #c3cad5; }
.admin .key-revoke, .admin form.key-revoke { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-align: right; }
.key-empty { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #fff; color: #64748b; }
.key-empty i { color: #9fb1c6; font-size: 1.5rem; }
.key-empty p { margin: 0; }
.key-empty strong { display: block; color: var(--navy); }
.key-reveal { margin: 0 0 22px; padding: 20px 22px; border: 1px solid #b7e0c6; border-radius: 12px; background: #f1fbf5; animation: page-enter .35s cubic-bezier(.2, .7, .2, 1) both; }
.key-reveal-head { display: flex; align-items: flex-start; gap: 12px; }
.key-reveal-head > i { margin-top: 3px; color: #1f7a45; font-size: 1.3rem; }
.key-reveal h2 { margin: 0; font-size: 1.1rem; }
.key-reveal p { margin: 2px 0 0; color: #3d5a48; font-size: .93rem; }
.admin .key-reveal .copy-field { margin-top: 14px; }
.admin .key-reveal .copy-field input { margin: 0; background: #fff; font: 500 .9rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.key-reveal-link { display: inline-block; margin-top: 12px; color: #1f6b3f; font-weight: 700; font-size: .9rem; }
.key-create h2 { margin-bottom: 4px; }
.admin .key-create form { max-width: 720px; margin-top: 12px; border-radius: 10px; }
.admin .key-scopes { margin: 18px 0 0; padding: 0; border: 0; }
.admin .key-scopes legend { margin-bottom: 8px; padding: 0; color: var(--navy); font-weight: 700; }
.admin label.key-scope-option { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; font-weight: 400; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.admin label.key-scope-option:hover { border-color: #b9c8da; }
.admin label.key-scope-option:has(input:checked) { border-color: var(--blue); background: #f3f9fd; box-shadow: 0 0 0 1px var(--blue) inset; }
.admin label.key-scope-option input { flex: none; width: 17px; height: 17px; min-height: 0; margin: 3px 0 0; padding: 0; }
.key-scope-option span { color: #5d6a7c; font-size: .92rem; line-height: 1.5; }
.key-scope-option strong { display: block; color: var(--navy); font-size: 1rem; }
.key-create-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.key-create-actions .form-message { margin: 0; }
@media (max-width: 760px) { .key-row { grid-template-columns: auto minmax(0, 1fr) auto; } .key-row .key-scope { grid-column: 2 / -1; justify-self: start; } .key-row .status-pill { grid-column: 2; justify-self: start; } .key-row .key-revoke { grid-column: 3; } }

/* API reference */
.api-reference { --code-bg: #0f172a; --code-text: #e2e8f0; }
.api-key-card { position: sticky; z-index: 5; top: 12px; margin: 0 0 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 24px rgba(16, 24, 40, .07); backdrop-filter: blur(6px); }
.api-key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.admin .api-key-label { margin: 0; color: var(--navy); font-weight: 700; white-space: nowrap; }
.api-key-field { position: relative; flex: 1 1 320px; }
.api-key-field > i { position: absolute; top: 50%; left: 13px; color: #8391a5; transform: translateY(-50%); }
.admin .api-key-field input { width: 100%; min-height: 42px; margin: 0; padding: 8px 44px 8px 38px; font: 500 .92rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.admin.admin .api-key-field .icon-button { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); }
.api-key-status { margin: 9px 0 0; color: #64748b; font-size: .88rem; }
.api-key-status.is-success { color: #1f7a45; font-weight: 600; }
.api-key-status.is-error { color: #b42318; font-weight: 600; }
.api-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 32px; }
.api-nav { position: sticky; top: 118px; display: grid; gap: 1px; max-height: calc(100vh - 140px); overflow: auto; padding-right: 6px; font-size: .9rem; }
.api-nav a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; color: #44536a; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.api-nav a:hover, .api-nav a:focus-visible { background: #eaf1f8; color: var(--navy); }
.api-nav-title { margin: 14px 10px 4px; color: #8391a5; font: 700 .7rem/1.4 Lato, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.api-method { flex: none; padding: 2px 7px; border-radius: 5px; background: #e3f4ea; color: #17663a; font: 700 .68rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.api-content { min-width: 0; }
.api-section { margin: 0 0 26px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; scroll-margin-top: 130px; }
.api-section h2 { margin: 0 0 14px; font-size: 1.25rem; }
.api-facts { display: grid; gap: 0; margin: 0; }
.api-fact { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid #eef1f5; }
.api-fact:first-child { padding-top: 0; border-top: 0; }
.api-fact:last-child { padding-bottom: 0; }
.api-fact-name { color: #64748b; font-size: .9rem; font-weight: 600; }
.api-fact-body { min-width: 0; line-height: 1.7; }
.api-fact-body .button { margin-left: 8px; vertical-align: middle; }
.api-reference code { padding: 2px 6px; border-radius: 5px; background: #eef2f6; color: #1e2b45; font: 500 .86em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.api-langs { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px; padding: 4px; border-radius: 9px; background: #eef2f6; }
.api-langs span { padding: 0 8px 0 6px; color: #64748b; font-size: .85rem; }
.admin.admin .api-langs button { min-height: 0; padding: 5px 12px; border: 0; border-radius: 6px; background: transparent; color: #5d6a7c; font: 600 .85rem/1.4 Roboto, Arial, sans-serif; box-shadow: none; cursor: pointer; }
.admin.admin .api-langs button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.api-group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 26px 0 12px; font-size: 1.25rem; }
.api-group-title small { color: #64748b; font: 400 .88rem Roboto, Arial, sans-serif; }
.api-endpoint { margin: 0 0 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; scroll-margin-top: 130px; transition: border-color .2s ease, box-shadow .2s ease; }
.api-endpoint:target { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(41, 128, 185, .14); }
.api-endpoint-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.api-reference .api-path { padding: 0; background: none; color: var(--navy); font-size: 1rem; font-weight: 700; }
.api-scope { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #eef2f6; color: #44536a; font-size: .76rem; font-weight: 700; }
.api-scope-students { background: #fff4e0; color: #8a5300; }
.api-desc { margin: 8px 0 14px; color: #55627a; }
.api-params { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-bottom: 12px; }
.admin .api-params label { display: grid; gap: 4px; margin: 0; color: #55627a; font-size: .8rem; font-weight: 600; }
.api-params label small { color: #98a2b3; font-weight: 400; }
.admin .api-params input { width: 120px; min-height: 38px; margin: 0; padding: 6px 10px; }
.admin .api-params input:disabled { background: #f3f5f8; color: #98a2b3; }
.api-params .button { margin-left: auto; }
.api-params .button i { margin-right: 6px; font-size: .8em; }
.api-code, .api-response { position: relative; border-radius: 10px; background: var(--code-bg); }
.api-reference pre { margin: 0; padding: 15px 18px; overflow: auto; background: none; color: var(--code-text); }
.api-reference pre code { padding: 0; background: none; color: inherit; font-size: .84rem; line-height: 1.65; overflow-wrap: normal; white-space: pre; }
.api-code pre { padding-right: 84px; }
.admin.admin .api-copy { min-height: 0; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; background: rgba(255, 255, 255, .08); color: #cbd5e1; font: 600 .76rem/1.4 Roboto, Arial, sans-serif; box-shadow: none; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.admin.admin .api-copy:hover, .admin.admin .api-copy:focus-visible { background: rgba(255, 255, 255, .18); color: #fff; }
.api-code .api-copy { position: absolute; top: 10px; right: 10px; }
.api-response { margin-top: 10px; animation: page-enter .3s cubic-bezier(.2, .7, .2, 1) both; }
.api-response-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.api-response-head .api-copy { margin-left: auto; }
.api-response pre { max-height: 440px; }
.api-status { padding: 2px 9px; border-radius: 6px; background: #dcf5e6; color: #14613a; font: 700 .78rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.api-status.is-error { background: #fde4e1; color: #a1271b; }
.api-time { color: #94a3b8; font-size: .8rem; }
.j-key { color: #7dd3fc; } .j-str { color: #bbf7d0; } .j-num { color: #fdba74; } .j-lit { color: #f0abfc; }
.api-errors td:first-child { width: 90px; }
@media (max-width: 900px) { .api-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } .api-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; max-height: none; padding: 0; } .api-nav-title { display: none; } .api-nav a { border: 1px solid var(--line); background: #fff; } .api-key-card { position: static; } .api-fact { grid-template-columns: minmax(0, 1fr); gap: 4px; } .api-params .button { margin-left: 0; } .admin .api-params input { width: 96px; } }
.admin .api-params label small { display: inline; margin: 0 0 0 4px; font-size: inherit; }
.key-reveal .copy-field .button { flex: none; white-space: nowrap; }
