/* Inner pages in the homepage style: catalog, faculties, courses, about, contact, legal and status pages.
   Builds on the tokens and components of front.css (.sa-front). */

/* Breadcrumbs */
.page-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 28px; padding: 0; list-style: none; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--f-muted); }
.page-crumbs li + li::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 12px 2px; background: var(--f-gold); rotate: 45deg; }
.page-crumbs a { color: var(--f-text); text-decoration: none; background: linear-gradient(var(--f-gold), var(--f-gold)) 0 100% / 0 1px no-repeat; transition: background-size 300ms var(--f-ease), color 200ms; }
.page-crumbs a:hover { color: var(--f-ink); background-size: 100% 1px; }
.front-hero .page-crumbs ol { color: #ffffffb3; }
.front-hero .page-crumbs a { color: #ffffffe6; }
.front-hero .page-crumbs li + li::before { background: var(--f-gold-light); }

/* Light page hero with an optional framed photograph */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(32px, 4vw, 64px) clamp(64px, 6vw, 112px); border-bottom: 1px solid var(--f-line); }
.page-hero::before { content: ''; position: absolute; z-index: -1; top: -30%; right: -14%; width: clamp(360px, 44vw, 680px); aspect-ratio: 1; border: 1px solid #b08d5747; border-radius: 50%; pointer-events: none; }
.page-hero__grid { display: grid; gap: 48px; align-items: center; }
.sa-front .page-hero h1 { margin-top: 18px; font-size: clamp(2.6rem, 1.5rem + 3.4vw, 5rem); font-weight: 400; line-height: 1.02; letter-spacing: -.022em; }
.page-hero h1 em { color: var(--f-gold-text); }
.page-hero__subtitle { margin-top: 14px; font-family: var(--wp--preset--font-family--display); font-size: clamp(21px, 1.1rem + .5vw, 26px); font-style: italic; font-weight: 500; line-height: 1.3; color: var(--f-gold-text); }
.page-hero__lead { max-width: 46ch; margin-top: 22px; font-size: clamp(17px, 1rem + .25vw, 19px); line-height: 1.65; color: var(--f-text); }
.page-hero__meta { display: flex; flex-wrap: wrap; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--f-line-strong); }
.page-hero__meta li { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px 0 0; font-family: var(--wp--preset--font-family--display); font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--f-ink); }
.page-hero__meta li + li { padding-left: 24px; border-left: 1px solid var(--f-line-strong); }
.page-hero__meta span { font-family: var(--wp--preset--font-family--body); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-text); }
.page-hero .wp-block-buttons { gap: 16px 32px; margin-top: 36px; }
.page-hero__media { position: relative; isolation: isolate; width: min(100% - 16px, 560px); margin: 0 16px 16px 0; justify-self: end; }
.page-hero__media::before { content: ''; position: absolute; z-index: -1; inset: 16px -16px -16px 16px; border: 1px solid var(--f-gold); opacity: .6; transition: opacity 1s .6s, translate 1.4s .4s var(--f-ease); }
.home-motion-active .page-hero__media:has(> [data-unveil]:not(.is-inview))::before { opacity: 0; translate: -16px -16px; }
.page-hero__frame { overflow: hidden; }
.page-hero__frame img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
:is(.page-hero--catalog, .page-hero--contact) .page-hero__frame img { aspect-ratio: 4 / 5; max-height: 640px; }
.page-hero--simple { padding-block: clamp(32px, 4vw, 64px) clamp(48px, 5vw, 80px); }
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(48px, 6vw, 112px); }
  :is(.page-hero--catalog, .page-hero--contact) .page-hero__media { width: min(100% - 20px, 460px); }
  .page-hero__media { margin: 0 20px 20px 0; }
  .page-hero__media::before { inset: 20px -20px -20px 20px; }
}
@media (max-width: 899px) { .page-hero__media { justify-self: start; } }
/* On phones the facts become a ruled list: label on the left, value on the right. */
@media (max-width: 599px) {
  .page-hero__meta { display: block; }
  .page-hero__meta li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--f-line); font-size: 18px; text-align: right; }
  .page-hero__meta li + li { padding-left: 0; border-left: 0; }
  .page-hero__meta span { text-align: left; }
}

/* Dark photographic hero for the about page (shares the homepage hero) */
.front-hero--page .front-hero__content { max-width: 760px; }

/* Course: about the system */
.course-about__grid { display: grid; gap: 48px; }
.course-about__main h2 { margin-top: 18px; }
.course-about__main h2 em, .course-audience h2 em, .course-program h2 em, .course-included h2 em, .faculty-courses h2 em, .course-related h2 em { color: var(--f-gold-text); }
.course-about__text { margin-top: 32px; }
.course-about__text p { max-width: 64ch; color: var(--f-muted); }
.course-about__text p + p { margin-top: 18px; }
.sa-front .course-about__text .course-about__lead { font-family: var(--wp--preset--font-family--display); font-size: clamp(23px, 1.2rem + .6vw, 28px); font-weight: 500; line-height: 1.35; color: var(--f-ink); }
.course-highlights { position: relative; margin-top: 48px; padding: clamp(28px, 3vw, 40px); background: var(--f-white); border: 1px solid var(--f-line); }
.course-highlights::before { content: ''; position: absolute; top: -1px; left: clamp(28px, 3vw, 40px); width: 48px; height: 2px; background: var(--f-gold); }
.sa-front .course-highlights h3 { font-size: 27px; font-weight: 600; line-height: 1.2; }
.course-highlights ul { display: grid; column-gap: 32px; margin: 18px 0 0; padding: 0; list-style: none; }
.course-highlights li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--f-line); font-size: 16px; line-height: 1.5; color: var(--f-text); }
.course-highlights li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 6px; height: 6px; background: var(--f-gold); rotate: 45deg; }
/* Texts written in the admin (WYSIWYG): headings, lists and links besides the lead, highlights and module points */
:is(.course-about__text, .faculty-about__text) > :is(h3, h4) { max-width: 64ch; margin-top: 40px; }
.sa-front :is(.course-about__text, .faculty-about__text) > h3 { font-size: 27px; font-weight: 600; line-height: 1.2; }
.sa-front :is(.course-about__text, .faculty-about__text, .course-modules__body) > h4 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.course-modules__body > h4 { margin-top: 20px; }
:is(.course-about__text, .faculty-about__text, .course-modules__body) > :is(ul:not(.course-modules__points), ol) { max-width: 64ch; margin: 18px 0 0; padding-left: 1.3em; color: var(--f-muted); }
:is(.course-about__text, .faculty-about__text, .course-modules__body) > :is(ul:not(.course-modules__points), ol) > li + li { margin-top: 6px; }
:is(.course-about__text, .faculty-about__text) > :is(h3, h4) + p { margin-top: 12px; }
:is(.course-about__text, .faculty-about__text) > :is(ul, ol, div) + p { margin-top: 18px; }
:is(.course-about__text, .faculty-about__text, .course-modules__body) a { color: var(--f-ink); text-decoration-color: var(--f-gold); text-underline-offset: 4px; }
:is(.course-about__text, .faculty-about__text, .course-modules__body) strong { font-weight: 600; color: var(--f-ink); }
.course-facts { position: relative; isolation: isolate; overflow: hidden; padding: clamp(32px, 3vw, 44px); background: var(--f-indigo); color: var(--f-on-dark); }
.course-facts::before { content: ''; position: absolute; z-index: -1; right: -38%; bottom: -30%; width: 88%; aspect-ratio: 1; border: 1px solid var(--f-gold-light); border-radius: 50%; opacity: .16; pointer-events: none; }
.course-facts::after { content: ''; position: absolute; top: 0; left: clamp(32px, 3vw, 44px); width: 48px; height: 2px; background: var(--f-gold); }
.course-facts dl { margin: 0; }
.course-facts dl > div { padding-block: 16px; border-top: 1px solid #ffffff24; }
.course-facts dl > div:first-child { padding-top: 0; border-top: 0; }
.course-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-light); }
.course-facts dd { margin: 6px 0 0; font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--f-white); }
.course-facts dd a { color: var(--f-white); text-decoration-color: var(--f-gold-light); text-underline-offset: 4px; }
.sa-front .course-facts .sa-button { width: 100%; justify-content: space-between; margin-top: 28px; background: #f0e4ce; border-color: #f0e4ce; color: var(--f-indigo-deep); }
.sa-front .course-facts .sa-button:hover { background: var(--f-white); border-color: var(--f-white); }
.course-facts :focus-visible { outline-color: var(--f-gold-light); }
@media (min-width: 700px) { .course-highlights ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .course-about__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(64px, 7vw, 120px); align-items: start; }
  .course-facts { position: sticky; top: calc(var(--wp--custom--size--header) + 32px); }
}

/* Course: audience */
.course-audience-band { position: relative; isolation: isolate; overflow: hidden; background: var(--f-indigo-deep); color: var(--f-on-dark); }
.course-audience-band::before, .course-audience-band::after { content: ''; position: absolute; z-index: -1; aspect-ratio: 1; border: 1px solid var(--f-gold-light); border-radius: 50%; opacity: .14; pointer-events: none; }
.course-audience-band::before { top: -46%; right: -16%; width: clamp(420px, 56vw, 880px); }
.course-audience-band::after { top: -22%; right: -4%; width: clamp(300px, 38vw, 600px); border-style: dashed; opacity: .1; }
.course-audience { display: grid; gap: 48px; }
.course-audience h2 { margin-top: 18px; }
.sa-front .course-audience-band h2 { color: var(--f-white); }
.sa-front .course-audience-band .sa-eyebrow, .course-audience-band h2 em { color: var(--f-gold-light); }
.course-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.course-topics li { padding: 8px 14px; border: 1px solid #ffffff38; background: #ffffff0d; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--f-white); }
.course-audience__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #ffffff2e; }
.course-audience__list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 26px; border-bottom: 1px solid #ffffff2e; }
.course-audience__num { font-family: var(--wp--preset--font-family--display); font-size: 32px; font-style: italic; line-height: 1; color: var(--f-gold-light); }
.sa-front .course-audience__list p { font-family: var(--wp--preset--font-family--display); font-size: clamp(23px, 1.2rem + .5vw, 28px); font-weight: 500; line-height: 1.3; color: var(--f-white); }
@media (min-width: 1000px) {
  .course-audience { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(64px, 7vw, 120px); align-items: start; }
  .course-audience__list li { grid-template-columns: 72px minmax(0, 1fr); padding-block: 32px; }
  .course-audience__num { font-size: 40px; }
}

/* Course: program */
.course-program { background: var(--f-stone); }
.course-modules { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.course-modules > li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 32px 24px; background: var(--f-white); border: 1px solid var(--f-line); }
.course-modules > li::before { content: ''; position: absolute; top: -1px; left: 24px; width: 48px; height: 2px; background: var(--f-gold); }
.course-modules__num { font-family: var(--wp--preset--font-family--display); font-size: clamp(44px, 2.4rem + 1.2vw, 76px); font-weight: 300; line-height: .9; color: var(--f-gold); }
.course-modules__meta { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--f-gold-text); }
.sa-front .course-modules h3 { margin-top: 10px; font-size: clamp(27px, 1.3rem + .8vw, 38px); font-weight: 500; line-height: 1.15; }
.course-modules__body > p:not(.course-modules__meta) { max-width: 62ch; margin-top: 12px; color: var(--f-muted); }
.course-modules__points { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.course-modules__tariff { display: flex; flex-wrap: wrap; gap: 12px 48px; width: fit-content; max-width: 100%; margin: 28px 0 0; padding: 18px 28px; background: var(--f-bg); border: 1px solid var(--f-line); }
.course-modules__tariff dt { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-text); }
.course-modules__tariff dd { margin: 4px 0 0; font-size: 17px; font-weight: 500; color: var(--f-ink); }
.course-modules__body > p.course-modules__tariff-note { font-size: 15px; }
.course-modules__points li { padding: 8px 14px; background: var(--f-bg); border: 1px solid var(--f-line); font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--f-text); }
.course-process { margin-top: clamp(48px, 5vw, 72px); }
.sa-front .course-process h3 { font-size: 28px; font-weight: 600; }
.course-process ol { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; }
.course-process li { counter-increment: step; position: relative; padding: 24px; background: var(--f-white); border: 1px solid var(--f-line); font-size: 16px; line-height: 1.55; color: var(--f-text); }
.course-process li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--wp--preset--font-family--display); font-size: 30px; line-height: 1; color: var(--f-gold); }
@media (min-width: 700px) { .course-process ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .course-modules > li { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 32px 22px 28px; }
  .course-modules > li::before { left: 22px; }
  .course-modules__num { font-size: 44px; }
}
@media (min-width: 900px) {
  .course-modules > li { grid-template-columns: 120px minmax(0, 1fr); gap: 32px; padding: 48px clamp(40px, 4vw, 64px) 48px clamp(32px, 3vw, 48px); }
  .course-modules > li::before { left: clamp(32px, 3vw, 48px); }
}
@media (min-width: 1100px) { .course-process ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Course: what is included and the author */
.course-details__grid { display: grid; gap: 16px; }
.course-included { position: relative; padding: clamp(32px, 4vw, 56px); background: var(--f-white); border: 1px solid var(--f-line); }
.course-included::before { content: ''; position: absolute; top: -1px; left: clamp(32px, 4vw, 56px); width: 48px; height: 2px; background: var(--f-gold); }
.course-included h2 { margin-top: 16px; }
.course-included ul { margin: 28px 0 0; padding: 0; list-style: none; }
.course-included li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--f-line); font-size: 16.5px; line-height: 1.55; color: var(--f-text); }
.course-included li::before { content: ''; position: absolute; left: 4px; top: 23px; width: 7px; height: 7px; background: var(--f-gold); rotate: 45deg; }
.course-included__price { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--f-line-strong); font-size: 15px; color: var(--f-muted); }
.course-included__price span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-text); }
.course-author { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: clamp(32px, 4vw, 56px); background: var(--f-indigo); color: var(--f-on-dark); }
.course-author__knot { position: absolute; z-index: -1; right: -24%; bottom: -34%; width: 78%; color: var(--f-gold-light); opacity: .14; pointer-events: none; }
.sa-front .course-author .sa-eyebrow { color: var(--f-gold-light); }
.sa-front .course-author h3 { margin-top: 16px; color: var(--f-white); font-size: clamp(32px, 1.6rem + 1.2vw, 46px); font-weight: 500; line-height: 1.1; }
.course-author__role { margin-top: 10px; font-family: var(--wp--preset--font-family--display); font-size: 21px; font-style: italic; font-weight: 500; line-height: 1.35; color: var(--f-gold-light); }
.course-author > p:not(.sa-eyebrow, .course-author__role, .course-author__label) { max-width: 44ch; margin-top: 16px; font-size: 15.5px; }
.course-author__label { margin-top: auto; padding-top: 32px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-light); }
.course-author__lineage { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.6; color: #ffffffd9; }
.course-author__lineage li + li::before { content: '→'; margin: 0 8px; color: var(--f-gold-light); }
.course-author__more { align-self: flex-start; margin-top: auto; }
.course-author__role, .course-author__lineage { margin-bottom: 28px; }
.course-note { margin-top: 32px; padding-left: 16px; border-left: 2px solid var(--f-gold); font-size: 14px; line-height: 1.6; color: var(--f-muted); }
@media (min-width: 900px) { .course-details__grid:not(.course-details__grid--single) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
@media (min-width: 900px) {
  .course-details__grid--single .course-included { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto auto 1fr; column-gap: clamp(48px, 6vw, 112px); }
  .course-details__grid--single .course-included > * { grid-column: 1; }
  .course-details__grid--single .course-included ul { grid-column: 2; grid-row: 1 / 4; margin-top: 0; }
  .course-details__grid--single .course-included__price { align-self: end; }
}

/* Course page: numbered section labels, as on the home page («01 — О системе») */
.sa-course-page main { counter-reset: sa-section; }
.sa-course-page :is(.course-about__main, .course-audience__intro, .course-program .front-heading > div, .course-included, .home-request__intro, .course-related .front-heading > div) > .sa-eyebrow:first-child::before { counter-increment: sa-section; content: counter(sa-section, decimal-leading-zero) ' — '; }

/* Faculty: about the department */
.faculty-about__grid { display: grid; gap: 32px; }
.faculty-about__grid h2 { margin-top: 18px; }
.faculty-about__text p { max-width: 62ch; color: var(--f-muted); }
.faculty-about__text p + p { margin-top: 18px; }
.sa-front .faculty-about__text p:first-child { font-family: var(--wp--preset--font-family--display); font-size: clamp(24px, 1.25rem + .7vw, 31px); font-weight: 500; line-height: 1.32; color: var(--f-ink); }
@media (min-width: 900px) { .faculty-about__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(64px, 7vw, 120px); } }

/* Course cards: catalog, faculty and related courses */
.catalog-grid { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.catalog-card { display: flex; flex-direction: column; background: var(--f-white); border: 1px solid var(--f-line); transition: border-color 300ms, translate 450ms var(--f-ease), box-shadow 450ms; }
.catalog-card:hover { border-color: var(--f-gold); translate: 0 -4px; box-shadow: 0 34px 60px -44px #151c2f59; }
.catalog-card[hidden] { display: none; }
.catalog-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 10 / 7; background: var(--f-stone); }
.catalog-card__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.1s var(--f-ease), filter .6s; }
.catalog-card:hover .catalog-card__image img { transform: scale(1.05); filter: saturate(1); }
.catalog-card__tag { position: absolute; top: 14px; left: 14px; padding: 6px 10px; background: #f5f8fcf2; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--f-ink); }
/* WordPress: a course behind a password or only for students keeps its card, marked with a thin lock. */
.catalog-card__lock { position: absolute; bottom: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--f-gold-light); background: #f5f8fcf2; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--f-gold-text); }
.catalog-card__lock svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; }
.catalog-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 24px 20px; }
.catalog-card__faculty { align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-text); text-decoration: none; }
.catalog-card__faculty:hover { color: var(--f-ink); }
.sa-front .catalog-card :is(h3, h4) { margin-top: 10px; font-family: var(--wp--preset--font-family--display); font-size: clamp(25px, 1.2rem + .5vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -.012em; color: var(--f-ink); }
.catalog-card :is(h3, h4) a { color: var(--f-ink); text-decoration: none; }
.catalog-card :is(h3, h4) a:hover { color: var(--f-indigo); }
.catalog-card__subtitle { margin-top: 6px; font-family: var(--wp--preset--font-family--display); font-size: 18px; font-style: italic; font-weight: 500; line-height: 1.35; color: var(--f-gold-text); }
.catalog-card__body > p:not(.catalog-card__subtitle) { margin: 12px 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--f-muted); }
.catalog-card__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--f-line); }
.catalog-card__request { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--f-indigo); text-decoration: none; }
@media (min-width: 640px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { :is(.course-related, .catalog-layout:not(:has(> .catalog-sidebar:not([hidden])))) .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .catalog-card, .catalog-card__image img { transition: none; } }

/* Catalog listing: search, department filter, results */
.catalog-listing { padding-block: var(--f-section); }
.catalog-toolbar:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--f-line-strong); }
.catalog-search { display: flex; flex: 1 1 320px; align-items: center; gap: 12px; max-width: 560px; min-height: 54px; padding: 0 18px; background: var(--f-white); border: 1px solid var(--f-line-strong); transition: border-color 200ms, box-shadow 200ms; }
.catalog-search:focus-within { border-color: var(--f-indigo); box-shadow: 0 0 0 1px var(--f-indigo); }
.catalog-search svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--f-muted); }
.catalog-search input { flex: 1; min-width: 0; min-height: 52px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--f-ink); outline: none; }
.catalog-search input::placeholder { color: #6f7482; opacity: 1; }
.catalog-toolbar__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.catalog-sort { display: flex; align-items: center; gap: 12px; }
.catalog-sort > span { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-text); }
.catalog-sort select { min-height: 54px; padding: 0 44px 0 16px; border: 1px solid var(--f-line-strong); border-radius: 0; background: var(--f-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%231f2a44' stroke-width='1.2'/%3E%3C/svg%3E") right 16px center / 12px no-repeat; font: inherit; font-size: 15px; font-weight: 500; color: var(--f-ink); appearance: none; cursor: pointer; transition: border-color 200ms; }
.catalog-sort select:hover { border-color: var(--f-ink); }
.catalog-sort select:focus-visible { border-color: var(--f-indigo); outline: 2px solid var(--f-indigo); outline-offset: 2px; }
/* Faculty heading rows inside the grid when the catalog is sorted by faculty */
.catalog-group { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; padding: 32px 0 14px; border-bottom: 1px solid var(--f-line-strong); }
.catalog-group:first-child { padding-top: 0; }
.catalog-group[hidden] { display: none; }
.catalog-group__label { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-text); }
.sa-front .catalog-group__title { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: clamp(28px, 1.4rem + .8vw, 36px); font-weight: 500; line-height: 1.1; }
.catalog-group__title svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--f-gold-text); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.catalog-reset { min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--f-ink); text-decoration: underline; text-decoration-color: var(--f-gold); text-underline-offset: 6px; cursor: pointer; }
.catalog-layout { display: grid; gap: 40px; }
.catalog-sidebar:not([hidden]) { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.catalog-facets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.catalog-facet { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; border: 1px solid var(--f-line-strong); background: var(--f-white); font: inherit; font-size: 14px; font-weight: 500; color: var(--f-text); text-align: left; cursor: pointer; transition: color 200ms, background 200ms, border-color 200ms; }
.catalog-facet > span { display: inline-flex; align-items: center; gap: 10px; }
.catalog-facet svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; color: var(--f-gold-text); }
.catalog-facet small { font-size: 12px; font-weight: 600; color: var(--f-muted); }
.catalog-facet:hover { color: var(--f-ink); border-color: var(--f-ink); }
.catalog-facet.is-active { background: var(--f-indigo); border-color: var(--f-indigo); color: var(--f-white); }
.catalog-facet.is-active svg { color: var(--f-gold-light); }
.catalog-facet.is-active small { color: #ffffffb3; }
.catalog-sidebar__help { display: none; }
.catalog-results { min-width: 0; }
.catalog-results__heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.sa-front .catalog-results__heading h2 { font-size: clamp(30px, 1.5rem + 1vw, 40px); }
.catalog-results__heading p { font-size: 14px; color: var(--f-muted); }
.catalog-empty:not([hidden]) { display: block; margin-top: 16px; padding: 48px 32px; text-align: center; background: var(--f-white); border: 1px dashed var(--f-line-strong); }
.sa-front .catalog-empty h3 { font-size: 28px; font-weight: 500; }
.catalog-empty p { max-width: 46ch; margin: 10px auto 12px; color: var(--f-muted); }
.catalog-static-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.catalog-static-nav a { padding: 8px 14px; border: 1px solid var(--f-line-strong); color: var(--f-ink); text-decoration: none; }
@media (min-width: 1000px) {
  /* The filter column exists only once JavaScript has revealed the sidebar; without it the results take the full width. */
  .catalog-layout:has(> .catalog-sidebar:not([hidden])) { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
  .catalog-sidebar:not([hidden]) { position: sticky; top: calc(var(--wp--custom--size--header) + 32px); gap: 24px; }
  .catalog-facets { flex-direction: column; gap: 0; overflow: visible; padding: 0; border-top: 1px solid var(--f-line-strong); }
  .catalog-facet { min-height: 52px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--f-line); background: none; font-size: 15px; }
  .catalog-facet:hover { background: var(--f-stone); }
  .catalog-facet.is-active { background: var(--f-indigo); }
  .catalog-sidebar__help { position: relative; isolation: isolate; overflow: hidden; display: block; padding: 28px; background: var(--f-indigo); color: var(--f-on-dark); }
  .catalog-sidebar__knot { position: absolute; z-index: -1; right: -40%; bottom: -40%; width: 100%; color: var(--f-gold-light); opacity: .14; }
  .sa-front .catalog-sidebar__help h2 { color: var(--f-white); font-size: 26px; font-weight: 500; line-height: 1.15; }
  .catalog-sidebar__help p { margin-top: 10px; font-size: 15px; }
  .catalog-sidebar__help .front-link { margin-top: 10px; }
}

/* Indigo invitation between a listing and the request form */
.catalog-next-step { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 28px; align-items: center; margin-bottom: var(--f-section); padding: clamp(32px, 5vw, 64px); background: var(--f-indigo); color: var(--f-on-dark); }
.catalog-next-step__knot { position: absolute; z-index: -1; top: -70%; right: -6%; width: min(60vw, 460px); color: var(--f-gold-light); opacity: .14; pointer-events: none; }
.sa-front .catalog-next-step .sa-eyebrow { color: var(--f-gold-light); }
.sa-front .catalog-next-step h2 { margin-top: 14px; color: var(--f-white); font-size: clamp(2rem, 1.3rem + 2vw, 3.25rem); }
.catalog-next-step h2 em { color: var(--f-gold-light); }
.catalog-next-step p:not(.sa-eyebrow) { max-width: 52ch; margin-top: 14px; }
.catalog-next-step :focus-visible { outline-color: var(--f-gold-light); }
@media (min-width: 900px) { .catalog-next-step { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; } }
.sa-catalog-page .catalog-next-step { margin-top: 0; }
.faculty-courses + .catalog-next-step, .course-related + .catalog-next-step { margin-top: 0; }

/* About */
.academy-story__grid { display: grid; gap: 40px; }
.academy-story__intro h2 { margin-top: 18px; }
.academy-story__intro h2 em, .academy-values h2 em, .contacts-notes h2 em { color: var(--f-gold-text); }
.sa-front .academy-story__text .academy-story__lead { font-family: var(--wp--preset--font-family--display); font-size: clamp(25px, 1.25rem + .8vw, 32px); font-weight: 500; line-height: 1.3; color: var(--f-ink); }
.academy-story__text p { max-width: 60ch; color: var(--f-muted); }
.academy-story__text p + p { margin-top: 18px; }
.academy-story__text .front-link { margin-top: 20px; }
.academy-author { display: grid; gap: 32px; align-items: center; }
.academy-author__card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: clamp(36px, 4vw, 56px); background: var(--f-indigo); color: var(--f-on-dark); }
.academy-author__knot { position: absolute; z-index: -1; top: -18%; right: -26%; width: 100%; color: var(--f-gold-light); opacity: .16; pointer-events: none; }
.sa-front .academy-author__card .sa-eyebrow { color: var(--f-gold-light); }
.sa-front .academy-author__card h2 { margin-top: 14px; color: var(--f-white); font-size: clamp(2.4rem, 1.5rem + 2.4vw, 3.75rem); }
.academy-author__role { margin-top: 10px; font-family: var(--wp--preset--font-family--display); font-size: 22px; font-style: italic; font-weight: 500; color: var(--f-gold-light); }
.sa-front .academy-author__text .academy-author__lead { font-family: var(--wp--preset--font-family--display); font-size: clamp(24px, 1.2rem + .7vw, 30px); font-weight: 500; line-height: 1.32; color: var(--f-ink); }
.academy-author__list { margin: 28px 0 0; }
.academy-author__list > div { padding-block: 18px; border-top: 1px solid var(--f-line-strong); }
.academy-author__list dt { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-text); }
.academy-author__list dd { margin: 6px 0 0; font-size: 16px; line-height: 1.6; color: var(--f-text); }
/* Retained card layout on the academy and contact pages. */
.academy-values__grid { display: grid; gap: 12px; }
.academy-values__grid .front-format__card { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; min-height: 0; padding: clamp(28px, 3vw, 40px); overflow: hidden; background: var(--f-white); border: 1px solid var(--f-line); transition: border-color 300ms, translate 450ms var(--f-ease), box-shadow 450ms; }
.academy-values__grid .front-format__card:hover { border-color: var(--f-gold); translate: 0 -4px; box-shadow: 0 34px 60px -44px #151c2f59; }
.academy-values__grid .front-format__icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--f-line-strong); border-radius: 50%; color: var(--f-indigo); transition: background 300ms, border-color 300ms, color 300ms; }
.academy-values__grid .front-format__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.academy-values__grid .front-format__card:hover .front-format__icon { background: var(--f-indigo); border-color: var(--f-indigo); color: var(--f-white); }
.sa-front .academy-values__grid .front-format__card h3 { margin-top: 28px; font-size: clamp(26px, 1.3rem + .6vw, 32px); font-weight: 600; line-height: 1.2; }
.academy-values__grid .front-format__card p { max-width: 40ch; margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--f-muted); }
@media (min-width: 700px) { .academy-values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .academy-values__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .academy-values__grid .front-format__card { transition: none; } }
@media (min-width: 900px) { .academy-author { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 112px); } }
@media (min-width: 1000px) {
  .academy-story__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(64px, 7vw, 120px); align-items: start; }
  .academy-story__intro { position: sticky; top: calc(var(--wp--custom--size--header) + 40px); }
}
@media (min-width: 1100px) { .front-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Legal pages: a dark hero under the transparent header, white cards for the essentials,
   ruled two-column rows (Impressum) and a sticky table of contents (Datenschutz). */
.legal-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(40px, 5vw, 88px) clamp(56px, 6vw, 104px); background: radial-gradient(ellipse 70% 90% at 88% 10%, #2b3a5e 0, #2b3a5e00 60%), radial-gradient(ellipse 50% 70% at 0% 110%, #b08d5724 0, #b08d5700 60%), var(--f-indigo-deep); color: var(--f-on-dark); }
.front-header.sa-menu-ready ~ main .legal-hero { margin-top: calc(var(--wp--custom--size--header) * -1); padding-top: calc(var(--wp--custom--size--header) + clamp(40px, 5vw, 88px)); }
.legal-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, #d3b88400, #d3b88480 30%, #d3b88480 70%, #d3b88400); }
.legal-hero__knot { position: absolute; z-index: -1; top: 50%; right: -10%; width: min(70vw, 680px); translate: 0 -46%; color: var(--f-gold-light); opacity: .17; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .legal-hero__knot { animation: front-spin 180s linear infinite; } }
.legal-hero .page-crumbs ol { color: #ffffffa6; }
.legal-hero .page-crumbs a { color: #ffffffe0; }
.legal-hero .page-crumbs li + li::before { background: var(--f-gold-light); }
.sa-front .legal-hero .sa-eyebrow { color: var(--f-gold-light); }
.sa-front .legal-hero h1 { margin-top: 18px; color: var(--f-white); font-size: clamp(3rem, 1.6rem + 4.6vw, 6.5rem); font-weight: 400; line-height: .98; letter-spacing: -.025em; }
.legal-hero__lead { max-width: 50ch; margin-top: 26px; font-size: clamp(17px, 1rem + .25vw, 19px); line-height: 1.65; color: #ffffffcc; }
.legal-hero__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; max-width: 1040px; margin: clamp(40px, 5vw, 64px) 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid #ffffff2e; }
.legal-hero__meta li { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-family: var(--wp--preset--font-family--display); font-size: clamp(19px, 1rem + .4vw, 22px); font-weight: 500; line-height: 1.25; color: var(--f-white); }
.legal-hero__meta span { font-family: var(--wp--preset--font-family--body); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-light); }
@media (min-width: 760px) {
  .legal-hero__meta { display: flex; gap: 0; }
  .legal-hero__meta li { padding-right: clamp(24px, 3vw, 48px); }
  .legal-hero__meta li + li { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid #ffffff2e; }
}
.legal-hero :focus-visible { outline-color: var(--f-gold-light); }

.legal { padding-block: clamp(56px, 6vw, 112px) var(--f-section); }
.legal a:not(.front-link, .legal-contacts a, .legal-toc a) { color: var(--f-ink); text-decoration: underline; text-decoration-color: var(--f-gold); text-underline-offset: 4px; transition: color 200ms; }
.legal a:not(.front-link, .legal-contacts a, .legal-toc a):hover { color: var(--f-indigo); }
.legal code { padding: 1px 6px; background: var(--f-stone); font-size: .88em; }
/* Data still missing from the owner stays visibly marked until it is filled in. */
.legal-todo { padding: 0 5px; background: #f6e7c4; color: var(--f-ink); }
.legal-note { padding-left: 18px; border-left: 2px solid var(--f-gold); font-size: 15.5px; color: var(--f-muted); }
.legal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; margin-top: clamp(48px, 5vw, 72px); padding-top: 20px; border-top: 1px solid var(--f-line-strong); font-size: 14px; color: var(--f-muted); }

/* Contact links with round icons, shared by both pages */
.legal-contacts { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.legal-contacts a { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 60px; color: var(--f-ink); font-size: 16px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.legal-contacts small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--f-gold-text); }
.legal-contacts__icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--f-line-strong); border-radius: 50%; color: var(--f-indigo); transition: background 250ms, color 250ms, border-color 250ms; }
.legal-contacts__icon svg { width: 18px; height: 18px; }
.legal-contacts a:hover .legal-contacts__icon { background: var(--f-indigo); border-color: var(--f-indigo); color: var(--f-white); }

/* Impressum: three cards, then ruled rows */
.legal-cards { display: grid; gap: 12px; }
.legal-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); background: var(--f-white); border: 1px solid var(--f-line); }
.legal-card::before { content: ''; position: absolute; top: -1px; left: clamp(28px, 3vw, 40px); width: 48px; height: 2px; background: var(--f-gold); }
.legal-card__label { font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-text); }
.sa-front .legal-card__title { margin: 14px 0 18px; font-size: clamp(28px, 1.4rem + .8vw, 36px); font-weight: 500; line-height: 1.15; }
.legal-card__address { font-size: 17px; line-height: 1.8; color: var(--f-text); }
.legal-card--dark { background: var(--f-indigo); border-color: var(--f-indigo); color: var(--f-on-dark); }
.legal-card--dark::after { content: ''; position: absolute; z-index: -1; right: -30%; bottom: -45%; width: 90%; aspect-ratio: 1; border: 1px solid #d3b88440; border-radius: 50%; box-shadow: 0 0 0 28px #ffffff05, 0 0 0 29px #d3b88426; }
.legal-card--dark .legal-card__label { color: var(--f-gold-light); }
.sa-front .legal-card--dark .legal-card__title { color: var(--f-white); }
.legal-card--dark p:last-child { font-size: 16.5px; color: #ffffffd9; }
@media (min-width: 760px) { .legal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .legal-card--dark { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .legal-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); } .legal-card--dark { grid-column: auto; } }
.legal-rows + .legal-footer { margin-top: 0; border-top: 0; padding-top: 28px; }
.legal-rows { margin-top: clamp(56px, 6vw, 96px); border-top: 1px solid var(--f-line-strong); }
.legal-row { display: grid; gap: 14px; padding-block: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--f-line-strong); }
.sa-front .legal-row h2 { font-size: clamp(26px, 1.3rem + .8vw, 34px); font-weight: 500; line-height: 1.15; }
.legal-row__body > * { max-width: 66ch; }
.legal-row__body > * + * { margin-top: 16px; }
@media (min-width: 900px) { .legal-row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); } }

/* Datenschutz: table of contents beside the text */
.legal-layout { display: grid; gap: 32px; }
.legal-toc { background: var(--f-white); border: 1px solid var(--f-line); }
.legal-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 20px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-text); cursor: pointer; list-style: none; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary::after { content: ''; width: 8px; height: 8px; margin-top: -4px; border: solid var(--f-ink); border-width: 0 1.2px 1.2px 0; rotate: 45deg; transition: rotate 300ms var(--f-ease), margin 300ms; }
.legal-toc[open] summary::after { rotate: 225deg; margin-top: 4px; }
.legal-toc ol { margin: 0; padding: 0 20px 16px; list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 14px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--f-line); font-size: 15px; line-height: 1.4; color: var(--f-text); text-decoration: none; transition: color 200ms; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); min-width: 22px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: var(--f-gold-text); }
.legal-toc a:hover, .legal-toc a[aria-current] { color: var(--f-indigo); }
.legal-toc a[aria-current] { font-weight: 600; }
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 250px minmax(0, 1fr); gap: clamp(48px, 6vw, 112px); align-items: start; }
  .legal-toc { position: sticky; top: calc(var(--wp--custom--size--header) + 32px); background: none; border: 0; }
  .legal-toc summary { min-height: 0; padding: 0 0 16px; cursor: default; pointer-events: none; }
  .legal-toc summary::after { display: none; }
  .legal-toc ol { padding: 0; border-left: 1px solid var(--f-line-strong); }
  .legal-toc a { position: relative; padding: 8px 0 8px 20px; border: 0; font-size: 14.5px; }
  .legal-toc a[aria-current]::after { content: ''; position: absolute; top: 6px; bottom: 6px; left: -1px; width: 2px; background: var(--f-gold); }
}
.legal-summary { padding: clamp(24px, 3vw, 40px); background: var(--f-white); border: 1px solid var(--f-line); }
.legal-summary__title { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--f-gold-text); }
.legal-summary__grid { display: grid; gap: 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.legal-summary__grid li { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.legal-summary__grid svg { width: 28px; height: 28px; margin-bottom: 6px; fill: none; stroke: var(--f-gold-text); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.legal-summary__grid strong { font-family: var(--wp--preset--font-family--display); font-size: 23px; font-weight: 600; line-height: 1.2; color: var(--f-ink); }
.legal-summary__grid span { font-size: 15px; line-height: 1.6; color: var(--f-muted); overflow-wrap: anywhere; }
.legal-summary__note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--f-line); font-size: 14px; color: var(--f-muted); }
@media (min-width: 640px) { .legal-summary__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; } }
.legal-body { max-width: 860px; }
.legal-prose { hyphens: auto; }
.legal-block { margin-top: clamp(48px, 5vw, 72px); scroll-margin-top: calc(var(--wp--custom--size--header) + 24px); }
.legal-block + .legal-block { margin-top: clamp(36px, 4vw, 52px); padding-top: clamp(36px, 4vw, 52px); border-top: 1px solid var(--f-line); }
.sa-front .legal-block h2 { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; font-size: clamp(28px, 1.4rem + .9vw, 38px); font-weight: 500; line-height: 1.15; }
.legal-num { flex-shrink: 0; min-width: 28px; font-family: var(--wp--preset--font-family--body); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--f-gold-text); }
.legal-block > p, .legal-block > ul { max-width: 68ch; color: var(--f-text); }
.legal-block > * + * { margin-top: 16px; }
.legal-block > .legal-panel { max-width: none; }
.legal-panel { display: grid; gap: 20px; padding: 24px 28px; background: var(--f-white); border: 1px solid var(--f-line); }
.legal-panel__address { line-height: 1.8; }
.legal-panel__address strong { font-weight: 600; color: var(--f-ink); }
@media (min-width: 760px) { div.legal-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 32px; } }
.legal-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.legal-list li { position: relative; padding-left: 20px; }
.legal-list li::before { content: ''; position: absolute; top: .7em; left: 2px; width: 5px; height: 5px; background: var(--f-gold); rotate: 45deg; }
@media (min-width: 760px) { .legal-list--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.legal-rights { display: grid; gap: 8px; padding: 0; list-style: none; }
.legal-rights li { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; background: var(--f-white); border: 1px solid var(--f-line); }
.legal-rights strong { font-family: var(--wp--preset--font-family--display); font-size: 21px; font-weight: 600; line-height: 1.2; color: var(--f-ink); }
.legal-rights span { font-size: 13.5px; color: var(--f-muted); }
@media (min-width: 640px) { .legal-rights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .legal-rights { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 479px) {
  .legal-panel { padding: 20px; }
  .sa-front .legal-block h2 { gap: 12px; }
}

/* Status pages: 404 and thank-you */
.page-status { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(80px, 10vw, 160px); text-align: center; }
.page-status::before { content: ''; position: absolute; z-index: -1; top: 50%; left: 50%; width: clamp(420px, 60vw, 820px); aspect-ratio: 1; border: 1px solid #b08d5747; border-radius: 50%; translate: -50% -50%; pointer-events: none; }
.page-status__inner { display: flex; flex-direction: column; align-items: center; }
.page-status__knot { width: 64px; height: 64px; margin-bottom: 24px; color: var(--f-gold); }
.sa-front .page-status h1 { margin-top: 18px; font-size: clamp(2.8rem, 1.6rem + 3.8vw, 5.5rem); font-weight: 400; line-height: 1.02; }
.page-status h1 em { color: var(--f-gold-text); }
.page-status__lead { max-width: 46ch; margin-top: 22px; font-size: 18px; color: var(--f-text); }
.page-status__notice { max-width: 52ch; margin-top: 16px; padding: 14px 20px; background: var(--f-white); border: 1px solid var(--f-line); font-size: 14.5px; color: var(--f-muted); }
.page-status .wp-block-buttons { justify-content: center; gap: 16px 32px; margin-top: 36px; }

/* Mobile enrolment bar on course pages */
.sa-front .sa-sticky-request { padding: 12px var(--wp--custom--layout--gutter); background: #f5f8fcf2; border-top: 1px solid var(--f-line); backdrop-filter: blur(12px); }
.sa-front .sa-sticky-request .sa-button { width: 100%; justify-content: space-between; }
.sa-front.sa-has-sticky .home-chat { bottom: 88px; }

/* WordPress: the gate of a closed course (password, members only, no access), right under the course head. */
.course-access { padding-block: clamp(32px, 5vw, 72px); }
.course-access__card { position: relative; display: grid; gap: clamp(24px, 3vw, 48px); padding: clamp(28px, 4vw, 56px); overflow: hidden; background: var(--f-stone); border: 1px solid var(--f-line); }
.course-access__knot { position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; color: var(--f-gold-light); opacity: .45; pointer-events: none; }
.course-access__text { position: relative; max-width: 62ch; }
.course-access__text h2 { margin: 12px 0 0; font-size: clamp(30px, 2.4vw + 18px, 46px); }
.course-access__text p:last-child { margin: 16px 0 0; color: var(--f-muted); }
.course-access__actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.course-access__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; width: 100%; max-width: 560px; }
.course-access__field { display: flex; flex: 1 1 240px; flex-direction: column; gap: 6px; }
.course-access__field > span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--f-gold-text); }
.course-access__field input { min-height: 54px; padding: 0 16px; border: 1px solid var(--f-line-strong); border-radius: 0; background: var(--f-white); font: inherit; color: var(--f-ink); }
.course-access__field input:focus-visible { outline: 2px solid var(--f-indigo); outline-offset: 2px; }
@media (min-width: 900px) {
  .course-access__card { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .course-access--password .course-access__card { grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); }
}
