:root {
  color-scheme: light;
  --bg: #F5F7FA;
  --panel: #FFFFFF;
  --text: #183153;
  --muted: #526277;
  --accent: #2563EB;
  --hover: #1D4ED8;
  --line: #DCE3EC;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --small: .875rem;
  --h2: 2rem;
  --h3: 1.25rem;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--muted); font: inherit; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
[hidden] { display: none !important; }
p { margin: 0 0 1.25rem; color: var(--muted); }
h1, h2, h3 { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1.18; letter-spacing: -.035em; margin: 1.5rem 0; }
h2 { font-size: var(--h2); line-height: 1.3; letter-spacing: -.02em; margin: .75rem 0 1.25rem; }
h3 { font-size: var(--h3); line-height: 1.4; margin: 1.25rem 0 .75rem; }
strong, b { font-weight: 600; }
em { font: inherit; color: var(--accent); }
small, .eyebrow, .number, .muted, nav, .program-note, .coursefoot, footer { font-size: var(--small); }
.eyebrow, .number { font-weight: 600; letter-spacing: .06em; color: var(--accent); }
.muted { color: var(--muted); }
header { min-height: 96px; padding: 1.25rem 4%; display: flex; align-items: center; gap: 2rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { margin-right: auto; color: var(--text); }
.brand strong { display: flex; align-items: baseline; gap: .4rem; white-space: nowrap; font-size: 1.5rem; letter-spacing: .025em; line-height: 1.3; }
.brand strong span { color: var(--accent); }
nav { display: flex; gap: 1.5rem; }
nav a:hover, footer a:hover { color: var(--hover); text-decoration: underline; }
.outline, .primary, .expert-call, .textbtn, .suggestions button, .inputwrap button, #floating, #close {
  background: var(--accent); color: var(--panel); border: 1px solid var(--accent); font-weight: 600;
}
.outline, .primary, .expert-call, .textbtn { display: inline-block; border-radius: 6px; font-size: var(--small); padding: .75rem 1rem; }
.outline:hover, .primary:hover, .expert-call:hover, .textbtn:hover, .suggestions button:hover, .inputwrap button:hover, #floating:hover, #close:hover {
  background: var(--hover); border-color: var(--hover); color: var(--panel);
}
.primary span { margin-left: 1.5rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin: 1.75rem 0; }
.layout { max-width: 1800px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: 2rem; padding: 2rem 4% 0; }
main { min-width: 0; }
.hero { padding: 2rem 0; }
.hero p { max-width: 580px; }
.principles { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2rem; font-size: var(--small); }
.principles span::before { content: '✓'; color: var(--accent); margin-right: .5rem; }
.sectionhead { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1.5rem 0; }
.sectionhead h2 { margin-bottom: 0; }
.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.course { display: flex; flex-direction: column; text-align: left; background: var(--panel); color: var(--text); padding: 1.5rem; border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s; }
.course:hover { border-color: var(--accent); }
.course h3 { min-height: 3.5em; }
.course p { margin-bottom: 1.5rem; }
.coursefoot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 600; }
.coursefoot b { color: var(--accent); font-size: var(--h3); }
.learning, .model { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; }
.experience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.experience-grid article { border-left: 2px solid var(--line); padding-left: 1rem; }
.program-note { margin-top: 1.5rem; }
.challenge { margin-top: 3rem; padding: 2rem; border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: var(--panel); }
.challenge-hours article + article { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.25rem; }
.challenge-hours strong { font-size: 2rem; line-height: 1.3; color: var(--accent); }
.challenge-hours strong span { font-size: var(--small); letter-spacing: .06em; }
.challenge-hours h3 { margin-top: .75rem; }
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.model p { max-width: 640px; }
.steps { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.steps span { border: 1px solid var(--line); border-radius: 30px; padding: .35rem 1.25rem; color: var(--accent); font-size: var(--small); }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.5rem 0; color: var(--muted); }
aside { position: sticky; top: 1.5rem; display: flex; flex-direction: column; height: min(760px, calc(100dvh - 3rem)); min-height: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 48px rgb(24 49 83 / 12%); }
.assistanthead { background: var(--panel); display: flex; align-items: center; gap: .75rem; padding: 1.25rem; flex-shrink: 0; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--accent); font-size: var(--h3); font-weight: 600; animation: assistant-pulse 2.6s ease-in-out 3; }
.assistanthead strong { display: block; font-size: 1rem; }
.assistanthead small { display: block; color: var(--muted); }
#close { margin-left: auto; flex-shrink: 0; font-size: 1.5rem; min-width: 32px; min-height: 40px; border-radius: 6px; }
.assistant-banner { padding: .8rem 1.25rem; background: var(--panel); color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; flex-shrink: 0; }
.messages { overflow-y: auto; flex: 1; min-height: 0; padding: 1.5rem 1.25rem; scroll-behavior: smooth; }
.message { margin-bottom: 1.5rem; overflow-wrap: anywhere; }
.message p { color: inherit; margin: 0; }
.user { background: var(--bg); border-radius: 10px 10px 2px 10px; padding: .75rem 1rem; margin-left: 1.5rem; }
.bot { white-space: pre-line; }
.suggestions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.suggestions button { border-radius: 20px; padding: .5rem .85rem; font-size: var(--small); }
#chat { padding: 1rem; border-top: 1px solid var(--line); flex-shrink: 0; }
.inputwrap { display: flex; gap: .4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .4rem; }
input, textarea { background: var(--panel); border: 0; min-width: 0; width: 100%; color: var(--text); padding: .5rem; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.inputwrap button { border-radius: 5px; width: 38px; font-size: 1.25rem; flex-shrink: 0; }
#chat small { display: block; color: var(--muted); margin-top: .75rem; text-align: center; }
.expert-call { margin-top: .75rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#floating { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 5; border-radius: 30px; padding: .9rem 1.25rem; font-size: var(--small); box-shadow: 0 5px 25px rgb(24 49 83 / 16%); }
#floating::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--panel); margin-right: .65rem; animation: assistant-pulse 2.6s ease-in-out 3; }
body.collapsed .layout { grid-template-columns: 1fr; }
body.collapsed main { width: 100%; max-width: 1100px; margin: auto; }
@keyframes assistant-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(37 99 235 / 0%); }
  50% { box-shadow: 0 0 0 6px rgb(37 99 235 / 12%); }
}
@media (min-width: 1500px) { .layout { grid-template-columns: minmax(0, 1fr) 500px; gap: 2.5rem; } }
@media (max-width: 1250px) {
  .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-grid, .challenge { grid-template-columns: 1fr; }
  .sectionhead .muted { display: none; }
}
@media (max-width: 1100px) {
  .courses { grid-template-columns: 1fr; }
  .course h3 { min-height: 0; }
  .challenge { padding: 1.5rem; }
}
@media (max-width: 1000px) {
  .layout { gap: 1.5rem; grid-template-columns: minmax(0, 1fr) 390px; }
  .audience { grid-template-columns: 1fr; }
  nav { gap: 1rem; }
  .brand strong { font-size: 1.25rem; }
}
@media (max-width: 800px) {
  :root { --h2: 1.75rem; }
  header { min-height: 80px; padding: 1rem 5%; gap: .75rem; }
  nav { display: none; }
  .brand strong { font-size: 1.125rem; gap: .25rem; }
  .outline { padding: .65rem .75rem; }
  .layout { display: block; padding: 1.5rem 5% 0; }
  .hero { padding: 1rem 0; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .course { padding: 1.25rem; }
  .audience { gap: .5rem; }
  aside { position: fixed; top: auto; bottom: 0; right: 0; width: 100%; height: 82dvh; max-height: 780px; z-index: 10; border-radius: 16px 16px 0 0; box-shadow: 0 -20px 70px rgb(24 49 83 / 16%); }
  .assistanthead { padding: 1rem 1.25rem; }
  .assistant-banner { padding: .65rem 1.25rem; }
  footer { padding-bottom: 6rem; }
  #floating { right: 1rem; bottom: 1rem; }
}
@media (max-width: 380px) {
  header { flex-wrap: wrap; }
  .brand { width: 100%; }
  .actions { gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Homepage services: shared type/palette, responsive cards and working contact links. */
.hero .eyebrow { max-width: 100%; text-wrap: balance; overflow-wrap: anywhere; }
.hero h1 { font-size: clamp(2rem, 3.4vw, 3.5rem); text-wrap: balance; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-card { min-width: 0; padding: 1.25rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.service-card h3 { margin-top: 0; }
.service-card p { margin-bottom: 0; }
.approach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.approach-grid article { min-width: 0; border-left: 2px solid var(--line); padding-left: 1rem; overflow-wrap: anywhere; }
.contact-details { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.contact-details a { color: var(--accent); overflow-wrap: anywhere; }
.contact-details a:hover { color: var(--hover); text-decoration: underline; }
@media (min-width: 801px) and (max-width: 1199px) {
  header { flex-wrap: wrap; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach-grid { grid-template-columns: 1fr; }
  .layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 800px) {
  .service-grid, .approach-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
}

/* Social links stay independent of page layout on desktop. */
nav.social-tabs {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 48px;
}
.social-tabs a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 48px;
  height: 48px;
  padding: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  white-space: nowrap;
  background: #FFFFFF;
  color: #183153;
  border: 1px solid #DCE3EC;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 1px 2px 8px rgb(24 49 83 / 10%);
  text-decoration: none;
  transition: width 200ms ease, background-color 200ms ease;
}
.social-tabs svg { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
.social-tabs .social-name { opacity: 0; transition: opacity 150ms ease; }
.social-tabs a:hover, .social-tabs a:focus-visible {
  width: 150px;
  background: #EAF2FF;
  color: #183153;
  text-decoration: none;
}
.social-tabs a:hover .social-name, .social-tabs a:focus-visible .social-name { opacity: 1; }
.social-tabs a:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
@media (max-width: 800px) {
  nav.social-tabs {
    position: static;
    transform: none;
    flex-direction: row;
    width: auto;
    margin: 2rem 0 0;
    gap: 12px;
  }
  .social-tabs a, .social-tabs a:hover, .social-tabs a:focus-visible {
    width: 48px;
    height: 48px;
    border-left: 1px solid #DCE3EC;
    border-radius: 12px;
  }
  .social-tabs .social-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .social-tabs a, .social-tabs .social-name { transition: none; }
}
