/* Sharp, outlined choices with a shared white information band. */
.program-grid { gap: 20px; }
.program-card { border: 1px solid #555; padding: 0; align-items: stretch; background: #080808; }
.program-card-head { display: grid; grid-template-columns: auto 1fr; align-items: flex-start; gap: 16px 18px; padding: 18px 24px 24px; background: var(--text); color: #090909; }
.program-card .program-level { margin: 0; color: inherit; white-space: nowrap; font-weight: 600; }
.program-kind { font-size: .875rem; line-height: 1.45; text-align: right; max-width: 20ch; }
.program-card-body { padding: 22px 24px 20px; flex: 1; }
.program-audience { font-size: .875rem; color: #b7b7b4; line-height: 1.5; min-height: 42px; }
.program-card h3 { grid-column: 1 / -1; font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.15; margin: 0; }
.program-description { color: var(--muted); font-size: 1rem; line-height: 1.65; min-height: 80px; }
.program-facts { margin: 18px 0 0; border-top: 1px solid #333; }
.program-facts > div { display: grid; grid-template-columns: 65px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #333; }
.program-facts dt { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.program-facts dd { color: var(--text); font-size: .9375rem; line-height: 1.45; margin: 0; }
.program-facts dd span { color: #bbb; }
.program-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 24px 24px; }
.program-card .program-price { font-size: 1.6rem; color: var(--text); line-height: 1.25; margin: 0; font-weight: 500; white-space: nowrap; }
.program-price span { font-size: 1.25rem; }
.program-open { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 0 13px; border: 1px solid #aaa; font-size: .875rem; font-weight: 500; transition: background-color 180ms, color 180ms, border-color 180ms; }
.program-open-icon { font-size: 1.65rem; font-weight: 400; line-height: 1; transition: transform 200ms var(--ease-out); }
.training-section-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; margin-top: 28px; }
.training-section-footer > p { font-size: .875rem; line-height: 1.65; color: var(--muted); max-width: 55ch; }
.training-section-footer .text-link { margin: 0; font-size: .875rem; white-space: nowrap; }
.services-grid { gap: 20px; }
.services-grid > article { border: 1px solid #444; padding: 28px; }
.service-marker { display: grid; place-items: center; width: 40px; height: 40px; background: var(--text); color: #050505; font-size: .875rem; font-weight: 600; margin-bottom: 28px; }
.about-content { border: 1px solid #444; padding: 28px; }
.credentials { border: 1px solid #444; padding: 0 26px; }
.credentials details:last-child { border-bottom: 0; }
.publications-list { gap: 20px; }
.publications-list > article { border: 1px solid #444; padding: 28px; }
.publication-type { display: inline-block; border-left: 2px solid #eee; padding-left: 12px; }

/* The native dialog owns focus and keeps the page inert while open. */
.course-dialog { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; padding: 0; border: 0; background: #000; color: var(--text); overflow: hidden; }
.course-dialog[open] { display: flex; flex-direction: column; }
.course-dialog::backdrop { background: #000; }
.course-dialog-bar { flex-shrink: 0; background: #000; border-bottom: 1px solid #444; padding-top: env(safe-area-inset-top); }
.course-dialog-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 82px; gap: 24px; }
#course-dialog-title { font-size: .9375rem; line-height: 1.5; color: #bbb; }
.course-dialog button { font-family: inherit; cursor: pointer; }
.course-dialog-close { display: flex; align-items: center; justify-content: center; gap: 30px; background: transparent; border: 1px solid #777; color: var(--text); min-width: 44px; min-height: 44px; padding: 0 15px; font-size: .875rem; }
.course-dialog-close > span:last-child { font-size: 1.9rem; line-height: 1; font-weight: 400; }
.course-dialog-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; scrollbar-color: #666 #000; padding-bottom: env(safe-area-inset-bottom); }
.course-dialog-nav { display: flex; gap: 12px; padding-top: 30px; }
.course-dialog-nav button { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; background: #000; color: #bbb; border: 1px solid #555; font-size: .9375rem; }
.course-dialog-nav button > span { font-size: .8125rem; color: #888; }
.course-dialog-nav button[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); }
.course-dialog-nav button[aria-pressed="true"] > span { color: #444; }
.course-panel { padding-top: 55px; }
.course-eyebrow { color: #aaa; font-size: .9375rem; line-height: 1.6; margin-bottom: 18px; }
.course-panel-title { font-size: clamp(3rem, 6vw, 5.25rem); line-height: 1.08; letter-spacing: -.035em; max-width: 100%; }
.course-panel-title:focus, .auxiliary-panel h2:focus { outline: none; }
.course-panel-lead { font-size: 1.25rem; line-height: 1.65; color: #bdbdbb; max-width: 61ch; margin-top: 22px; }
.course-fact-strip { display: grid; grid-template-columns: .8fr 1fr 1fr; margin: 40px 0 56px; background: var(--text); color: #080808; }
.course-fact-strip > div { padding: 25px 28px 28px; border-right: 1px solid #c7c7c4; }
.course-fact-strip > div:last-child { border-right: 0; }
.course-fact-strip dt { font-size: .875rem; line-height: 1.5; color: #50504e; margin-bottom: 18px; }
.course-fact-strip dd { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; margin: 0; }
.course-fact-strip dd > span { display: block; font-size: .875rem; letter-spacing: 0; color: #50504e; line-height: 1.55; font-weight: 400; margin-top: 12px; }
.panel-section { border-top: 1px solid #444; padding: 38px 0 44px; }
.panel-section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 26px; }
.panel-section-heading h3 { font-size: 1.5rem; line-height: 1.35; }
.panel-section-heading > p { font-size: .875rem; color: #aaa; line-height: 1.6; max-width: 35ch; text-align: right; }
.panel-study { max-width: 78ch; font-size: 1.0625rem; line-height: 1.8; color: #bbb; }
.panel-package { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0; list-style: none; }
.panel-package li { display: flex; gap: 16px; align-items: flex-start; border: 1px solid #444; padding: 21px 24px; font-size: 1rem; line-height: 1.65; color: #c6c6c3; }
.panel-package li::before { content: ""; width: 8px; height: 8px; background: #eee; flex-shrink: 0; margin-top: 9px; }
.panel-details { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; border: 0; align-items: start; }
.panel-details details { border: 1px solid #555; padding: 0 24px; }
.panel-details summary { min-height: 88px; font-size: 1.0625rem; }
.panel-details .detail-content p { font-size: 1rem; line-height: 1.8; }
.panel-resources { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; margin: 0; font-size: .9375rem; }
.panel-resources a { border-bottom: 1px solid #444; padding: 19px 0; }
.panel-footer { border-top: 1px solid #444; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 32px 0 48px; }
.panel-footer p { color: #aaa; font-size: .875rem; line-height: 1.7; max-width: 63ch; }
.panel-footer button, .panel-return button { background: transparent; border: 0; border-bottom: 1px solid #777; color: var(--text); padding: 0 0 8px; font-size: .9375rem; line-height: 1.5; white-space: nowrap; }
.panel-footer button span { margin-left: 18px; }
.panel-return { padding-top: 32px; }
.panel-return[hidden] { display: none; }
.auxiliary-panel { border: 0; padding-top: 42px; }
.auxiliary-panel .section-heading h2 { font-size: clamp(2rem,4vw,3.5rem); }
.course-dialog :is(button,a):focus-visible, .program-open:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
html.course-is-open { overflow: hidden; }

@media(hover:hover) and (pointer:fine) {
  .program-open:hover { background: var(--text); color: #000; border-color: var(--text); }
  .program-open:hover .program-open-icon { transform: rotate(90deg); }
  .course-dialog-close:hover { background: #eee; color: #000; }
  .course-dialog-nav button:hover:not([aria-pressed="true"]) { color: #fff; border-color: #eee; }
}
@media(max-width:1000px) {
  .program-card-head { padding: 16px 18px; gap: 10px; }
  .program-card-body { padding: 22px 18px; }
  .program-description { min-height: 132px; }
  .program-card-footer { padding: 0 18px 20px; }
  .program-card .program-price { font-size: 1.4rem; }
  .program-card-footer { flex-wrap: wrap; }
  .program-open { width: 100%; }
  .program-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .course-fact-strip > div { padding: 24px 20px; }
}
@media(max-width:700px) {
  .program-grid { gap: 22px; }
  .program-card-head { padding: 17px 22px; min-height: 76px; }
  .program-card-body { padding: 24px 22px; }
  .program-card h3 { font-size: 2rem; }
  .program-description { min-height: 0; }
  .program-audience { min-height: 0; }
  .program-facts > div { grid-template-columns: 65px 1fr; gap: 16px; }
  .program-card-footer { padding: 0 22px 22px; }
  .program-card .program-price { font-size: 1.5rem; }
  .program-card-footer { flex-wrap: nowrap; }
  .program-open { width: auto; }
  .training-section-footer { flex-direction: column; gap: 22px; }
  .training-section-footer .text-link { white-space: normal; }
  .services-grid > article, .about-content, .publications-list > article { padding: 24px; }
  .credentials { padding: 0 22px; }
  .service-marker { margin-bottom: 22px; }
  .course-dialog-toolbar { min-height: 72px; gap: 12px; }
  #course-dialog-title { font-size: .875rem; }
  .course-dialog-close { padding: 0 12px; gap: 10px; }
  .course-dialog-close > span:first-child { display: none; }
  .course-dialog-nav { gap: 8px; padding-top: 22px; }
  .course-dialog-nav button { flex: 1; padding: 0 8px; min-height: 44px; font-size: .875rem; gap: 0; }
  .course-dialog-nav button > span { display: none; }
  .course-panel { padding-top: 38px; }
  .course-eyebrow { font-size: .875rem; margin-bottom: 16px; }
  .course-panel-title { font-size: clamp(2.5rem,11vw,3.5rem); overflow-wrap: anywhere; }
  .course-panel-lead { font-size: 1.0625rem; margin-top: 22px; }
  .course-fact-strip { grid-template-columns: 1fr; margin: 30px 0 38px; }
  .course-fact-strip > div { padding: 22px 24px; border-right: 0; border-bottom: 1px solid #c7c7c4; }
  .course-fact-strip > div:last-child { border-bottom: 0; }
  .course-fact-strip dt { margin-bottom: 13px; }
  .course-fact-strip dd { font-size: 1.7rem; }
  .course-fact-strip dd > span { margin-top: 8px; }
  .panel-section { padding: 30px 0 34px; }
  .panel-section-heading { display: block; margin-bottom: 22px; }
  .panel-section-heading h3 { font-size: 1.35rem; }
  .panel-section-heading > p { margin-top: 12px; text-align: left; }
  .panel-study { font-size: 1rem; }
  .panel-package, .panel-details, .panel-resources { grid-template-columns: 1fr; }
  .panel-package li { padding: 20px; }
  .panel-details details { padding: 0 20px; }
  .panel-details summary { min-height: 76px; font-size: 1rem; }
  .panel-resources { gap: 0; align-items: stretch; }
  .panel-resources a { padding: 17px 0; }
  .panel-footer { flex-direction: column; gap: 26px; padding: 28px 0 38px; }
  .auxiliary-panel { padding-top: 30px; }
}
@media(max-width:360px) {
  .program-card-footer { flex-wrap: wrap; gap: 18px; }
  .program-open { width: 100%; }
}
@media(prefers-reduced-motion:reduce) {
  .program-open, .program-open-icon { transition: none; }
}
