/* Faculty websites: the inner pages (everything but the home page).
   Markup: resources/views/snu-site/faculty/pages/*.blade.php, faculty/hero.blade.php, faculty/page-toc.blade.php and the
   card partials. Each faculty has one of three inner treatments (App\Support\SnuSite\FacultyLayout):
     rail      - calm tinted hero; the section menu is a sticky rail on the left, "On this page" a sticky column on the right
     split     - wide dark hero band with the Faculty's key facts aside; the section menu becomes a row of pills and the
                 content runs in two columns (facts or headings on one side, text on the other)
     editorial - plain hero with a large title; one narrow reading column, large section headings and full-width breaks
   The treatment is read from the body class (fl-inner-*) and, so the pages never depend on it, from the markup itself
   (.fp--rail, .fp-hero--rail, data-fp-inner). The motif (fl-motif-* on the body, fp-motif-* on the hero) is a quiet
   pattern in the hero. Colours: palette.css / the faculty's accent (--accent, --navy, --blue…). */

.faculty-site {
  --fp-r: 20px;
  --fp-r-sm: 12px;
  --fp-col: 46rem;                 /* editorial reading column */
  --fp-top: calc(var(--sticky-h, 58px) + 1.25rem);
  --fp-tint: var(--blue-50);
  --fp-tint: color-mix(in oklab, var(--accent) 6%, #fff);
  --fp-tint-2: var(--blue-100);
  --fp-tint-2: color-mix(in oklab, var(--accent) 12%, #fff);
}

/* ================================================================== hero */
.faculty-site .page-hero.fp-hero { position: relative; overflow: hidden; padding: clamp(1.75rem, 4vw, 3.25rem) 0 clamp(2rem, 5vw, 3.5rem); background: var(--fp-tint); color: var(--ink-2); }
.faculty-site .page-hero.fp-hero::after { content: none; }
.fp-hero::before { content: ""; position: absolute; pointer-events: none; z-index: 0; color: var(--accent); }
.fp-hero-inner { position: relative; z-index: 2; display: grid; gap: 2rem; align-items: center; }
.fp-hero-text { min-width: 0; }
.fp-hero .breadcrumb ol { margin-bottom: 1.1rem; }
.fp-hero .breadcrumb li { color: var(--muted); }
.fp-hero .breadcrumb a { color: var(--blue); }
.fp-hero .breadcrumb a:hover { color: var(--navy); }
.fp-hero .breadcrumb [aria-current] { color: var(--ink-2); font-weight: 600; }
.fp-hero-eyebrow { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.faculty-site .fp-hero .page-title { margin: 0; max-width: 24ch; color: var(--navy); font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.01em; overflow-wrap: anywhere; }
.faculty-site .fp-hero .page-lead { margin: 1rem 0 0; max-width: 62ch; color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; }
.fp-hero-media { margin: 0; }
.fp-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--fp-r); }

/* rail: a tinted band, an accent rule beside the title, the photo as a rounded picture on the right */
.fp-hero--rail .fp-hero-text { padding-left: 1.25rem; border-left: 4px solid var(--accent); }
.fp-hero--rail .fp-hero-media { aspect-ratio: 4 / 3; max-height: 260px; }
@media (min-width: 900px) {
  .fp-hero--rail.fp-hero-has-media .fp-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
}
@media (max-width: 899.98px) { .fp-hero--rail .fp-hero-media { display: none; } }

/* split: a wide dark band; the Faculty at a glance beside the title */
.faculty-site .page-hero.fp-hero--split { background: var(--navy); color: #d8e3ef; padding-bottom: clamp(2.25rem, 5vw, 4rem); }
.fp-hero--split::before { color: #fff; }
.fp-hero--split .breadcrumb li { color: #b9c9db; }
.fp-hero--split .breadcrumb a { color: #e3ecf6; }
.fp-hero--split .breadcrumb a:hover { color: #fff; }
.fp-hero--split .breadcrumb [aria-current] { color: #fff; }
.fp-hero--split .fp-hero-eyebrow { color: var(--gold-400, #dbbd81); }
.faculty-site .fp-hero--split .page-title { color: #fff; max-width: 26ch; }
.faculty-site .fp-hero--split .page-lead { color: #d3dfeb; }
.fp-hero-facts { min-width: 0; padding: 1.25rem 1.4rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--fp-r); background: rgba(255, 255, 255, .07); }
.fp-hero-facts-title { margin: 0 0 .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #c5d4e4; }
.fp-hero-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin: 0; }
.fp-hero-facts dt { order: 2; font-size: .82rem; color: #c5d4e4; }
.fp-hero-facts div { display: flex; flex-direction: column; }
.fp-hero-facts dd { order: 1; margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.1; color: #fff; }
.fp-hero-facts a { color: #fff; text-decoration: none; }
.fp-hero-facts a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .fp-hero--split.fp-hero-has-facts .fp-hero-inner { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 3rem; }
}

/* editorial: white, a large title in the reading column, the photo as a full-width break below */
.faculty-site .page-hero.fp-hero--editorial { background: var(--white, #fff); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.fp-hero--editorial .fp-hero-inner { max-width: calc(var(--fp-col) + 3.5rem); }
.faculty-site .fp-hero--editorial .page-title { max-width: none; font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.04; }
.faculty-site .fp-hero--editorial .page-lead { font-family: var(--font-serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink-2); }
.fp-hero-break { position: relative; z-index: 2; margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 1240px; }
.fp-hero-break .fp-hero-media { aspect-ratio: 21 / 9; }
@media (max-width: 640px) { .fp-hero-break .fp-hero-media { aspect-ratio: 4 / 3; } }

/* motifs: a quiet pattern on the right of the hero */
.fp-hero.fp-motif-arc::before, .fl-motif-arc .fp-hero::before { width: 460px; height: 460px; right: -170px; top: -210px; border: 64px solid currentColor; border-radius: 50%; opacity: .07; }
.fp-hero.fp-motif-grid::before, .fl-motif-grid .fp-hero::before { inset: 0 0 0 auto; width: 46%; background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 30px 30px; opacity: .08; -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); }
.fp-hero.fp-motif-dot::before, .fl-motif-dot .fp-hero::before { inset: 0 0 0 auto; width: 44%; background-image: radial-gradient(currentColor 1.4px, transparent 1.6px); background-size: 18px 18px; opacity: .16; -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); }
.fp-hero.fp-motif-line::before, .fl-motif-line .fp-hero::before { inset: 0 0 0 auto; width: 42%; background-image: repeating-linear-gradient(135deg, currentColor 0 1px, transparent 1px 16px); opacity: .1; -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); }
.fp-hero.fp-motif-wave::before, .fl-motif-wave .fp-hero::before { right: 0; bottom: 0; width: 50%; height: 48px; background-image: radial-gradient(circle at 50% 100%, transparent 15px, currentColor 16px, currentColor 17.5px, transparent 18.5px); background-size: 40px 22px; opacity: .14; -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); }
@media (max-width: 640px) { .fp-hero::before { opacity: .05 !important; } }

/* ================================================================== section menu (faculty/layout.blade.php) */
.faculty-site .page-layout.with-sidebar:has(.fp) { padding-top: clamp(2rem, 4vw, 3.5rem); }
.faculty-site .page-layout .side-nav { border-radius: var(--fp-r); }
.faculty-site .page-layout .side-card { border-radius: var(--fp-r); }

/* rail: section menu on the left, sticky */
@media (min-width: 992px) {
  :is(.fl-inner-rail .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--rail)) { grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 4.5rem); }
  :is(.fl-inner-rail .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--rail)) > .sidebar { order: -1; position: sticky; top: var(--fp-top); align-self: start; max-height: calc(100vh - var(--fp-top) - 1rem); overflow-y: auto; }
  :is(.fl-inner-rail .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--rail)) > .sidebar .side-nav { border: 0; border-radius: 0; overflow: visible; }
  :is(.fl-inner-rail .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--rail)) > .sidebar .side-nav-title { padding: 0 0 .75rem; background: none; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
  :is(.fl-inner-rail .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--rail)) > .sidebar .side-nav ul { padding: 0; border-left: 1px solid var(--line); }
  :is(.fl-inner-rail .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--rail)) > .sidebar .side-nav a { margin-left: -1px; padding: .5rem 1rem; border-radius: 0; border-left: 2px solid transparent; color: var(--ink-2); }
  :is(.fl-inner-rail .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--rail)) > .sidebar .side-nav a:hover { background: none; color: var(--navy); border-left-color: var(--line); }
  :is(.fl-inner-rail .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--rail)) > .sidebar .side-nav a[aria-current] { background: none; color: var(--navy); font-weight: 700; border-left-color: var(--accent); }
  :is(.fl-inner-rail .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--rail)) > .sidebar .side-card { background: var(--fp-tint); font-size: .88rem; }
}

/* split: the section menu becomes a row of pills under the hero */
:is(.fl-inner-split .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--split)) { grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); padding-top: 0; }
:is(.fl-inner-split .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--split)) > .sidebar { order: -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
:is(.fl-inner-split .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--split)) > .sidebar .side-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; border: 0; border-radius: 0; overflow: visible; }
:is(.fl-inner-split .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--split)) > .sidebar .side-nav-title { padding: 0; background: none; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
:is(.fl-inner-split .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--split)) > .sidebar .side-nav ul { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; }
:is(.fl-inner-split .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--split)) > .sidebar .side-nav a { padding: .4rem .95rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--ink-2); }
:is(.fl-inner-split .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--split)) > .sidebar .side-nav a:hover { border-color: var(--accent); background: var(--fp-tint); color: var(--navy); }
:is(.fl-inner-split .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--split)) > .sidebar .side-nav a[aria-current] { border-color: var(--navy); background: var(--navy); color: #fff; }
:is(.fl-inner-split .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--split)) > .sidebar .side-card { padding: 0; background: none; font-size: .88rem; }
:is(.fl-inner-split .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--split)) > .sidebar .side-card-title { display: none; }
:is(.fl-inner-split .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--split)) > .sidebar .side-card p { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; }
:is(.fl-inner-split .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--split)) > .sidebar .side-card br { display: none; }

/* editorial: one centred reading column; the section menu follows the text as "In this section" */
:is(.fl-inner-editorial .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--editorial)) { grid-template-columns: minmax(0, min(100%, var(--fp-col))); justify-content: center; gap: 2.5rem; }
:is(.fl-inner-editorial .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--editorial)) > .sidebar { padding-top: 2rem; border-top: 1px solid var(--line); }
:is(.fl-inner-editorial .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--editorial)) > .sidebar .side-nav { border: 0; border-radius: 0; }
:is(.fl-inner-editorial .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--editorial)) > .sidebar .side-nav-title { padding: 0 0 .75rem; background: none; color: var(--navy); font-family: var(--font-serif); font-size: 1.15rem; }
:is(.fl-inner-editorial .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--editorial)) > .sidebar .side-nav ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 0 1.5rem; padding: 0; }
:is(.fl-inner-editorial .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--editorial)) > .sidebar .side-nav a { padding: .55rem 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; color: var(--ink-2); }
:is(.fl-inner-editorial .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--editorial)) > .sidebar .side-nav a:hover { background: none; color: var(--blue); }
:is(.fl-inner-editorial .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--editorial)) > .sidebar .side-nav a[aria-current] { background: none; color: var(--navy); font-weight: 700; border-bottom-color: var(--accent); }
:is(.fl-inner-editorial .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--editorial)) > .sidebar .side-card { background: var(--fp-tint); }

/* phones and tablets (any treatment): the section menu is a single scrollable row of pills */
@media (max-width: 991.98px) {
  .faculty-site .page-layout.with-sidebar:has(.fp) > .sidebar { order: -1; grid-template-columns: minmax(0, 1fr); gap: .75rem; min-width: 0; }
  .faculty-site .page-layout.with-sidebar:has(.fp) > .sidebar .side-nav { min-width: 0; max-width: 100%; border: 0; border-radius: 0; overflow: visible; }
  .faculty-site .page-layout.with-sidebar:has(.fp) > .sidebar .side-nav-title { padding: 0 0 .5rem; background: none; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
  .faculty-site .page-layout.with-sidebar:has(.fp) > .sidebar .side-nav ul { display: flex; min-width: 0; max-width: 100%; flex-wrap: nowrap; gap: .4rem; padding: 0 0 .25rem; overflow-x: auto; scrollbar-width: thin; }
  .faculty-site .page-layout.with-sidebar:has(.fp) > .sidebar .side-nav li { flex: 0 0 auto; }
  .faculty-site .page-layout.with-sidebar:has(.fp) > .sidebar .side-nav a { white-space: nowrap; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; }
  .faculty-site .page-layout.with-sidebar:has(.fp) > .sidebar .side-nav a[aria-current] { border-color: var(--navy); background: var(--navy); color: #fff; }
  .faculty-site .page-layout.with-sidebar:has(.fp) > .sidebar .side-card { display: none; }
  :is(.fl-inner-editorial .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--editorial)) > .sidebar { order: 0; }
  :is(.fl-inner-editorial .page-layout.with-sidebar, .faculty-site .page-layout.with-sidebar:has(.fp--editorial)) > .sidebar .side-card { display: block; }
}

/* ================================================================== page body */
.fp { min-width: 0; }
.fp-main { min-width: 0; }
.fp-main > :first-child { margin-top: 0; }
.fp-sec { margin-top: clamp(2.5rem, 5vw, 3.75rem); scroll-margin-top: var(--fp-top); }
.fp-sec:first-child, .fp-toc + .fp-sec, .fp-intro + .fp-sec { margin-top: 0; }
.fp-toc + .fp-sec-lead { margin-top: 0; }
.faculty-site .fp .block-title.fp-sec-title { margin: 0 0 1.25rem; scroll-margin-top: var(--fp-top); color: var(--navy); }
.fp-sec-body > :first-child { margin-top: 0; }
.fp-sec-body > :last-child { margin-bottom: 0; }
.fp .prose { max-width: 70ch; }
.fp .lead-text { font-size: clamp(1.1rem, 1.7vw, 1.25rem); line-height: 1.6; color: var(--ink-2); }
.fp-intro { margin-bottom: 1rem; }
.fp-intro-note { margin: 0 0 2rem; color: var(--muted); font-size: .95rem; }
.fp-sub { margin: 1.75rem 0 .75rem; font-size: 1.1rem; color: var(--navy); }
.fp-count { display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; margin-left: .6rem; padding: 0 .45em; border-radius: 999px; background: var(--fp-tint-2); color: var(--navy); font-family: var(--font-sans); font-size: .55em; font-weight: 700; vertical-align: middle; }
.fp-empty { margin: 0; padding: 1rem 1.25rem; border-radius: var(--fp-r-sm); background: var(--surface); color: var(--muted); font-size: .95rem; }
.fp .btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.fp .btn { border-radius: 999px; padding-inline: 1.25rem; }

/* empty states: brief and calm */
.fp .placeholder-box, .fp-article .placeholder-box { gap: .85rem; margin: 1.25rem 0; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--fp-r-sm); background: var(--surface); color: var(--ink-2); font-size: .92rem; }
.fp .placeholder-box .bi { font-size: 1.1rem; color: var(--muted); }
.fp .placeholder-box strong { color: var(--ink-2); font-size: .85rem; letter-spacing: .02em; }
.fp .source-note { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- in-page navigation ("On this page") */
.fp-toc { position: sticky; top: var(--sticky-h, 58px); z-index: 4; margin: 0 0 2rem; padding: .6rem 0; background: var(--white, #fff); border-bottom: 1px solid var(--line-2); }
.fp-toc-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fp-toc ol { display: flex; gap: .4rem; margin: 0; padding: 0 0 .1rem; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.fp-toc li { flex: 0 0 auto; }
.fp-toc a { display: inline-block; padding: .38rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: .88rem; text-decoration: none; white-space: nowrap; }
.fp-toc a:hover { border-color: var(--accent); color: var(--navy); }
.fp-toc a.is-active, .fp-toc a[aria-current] { border-color: var(--navy); background: var(--navy); color: #fff; }

/* rail, wide screens: "On this page" is a sticky column on the right */
@media (min-width: 1200px) {
  .fp--rail .fp-main:has(> .fp-toc) { display: grid; grid-template-columns: minmax(0, 1fr) 190px; column-gap: 3rem; align-items: start; }
  .fp--rail .fp-main:has(> .fp-toc) > * { grid-column: 1; }
  .fp--rail .fp-main > .fp-toc { grid-column: 2; grid-row: 1 / span 30; top: var(--fp-top); margin: 0; padding: 0; background: none; border: 0; }
  .fp--rail .fp-toc-title { position: static; width: auto; height: auto; clip: auto; margin: 0 0 .6rem; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .fp--rail .fp-toc ol { flex-direction: column; gap: 0; overflow: visible; border-left: 1px solid var(--line); }
  .fp--rail .fp-toc a { display: block; margin-left: -1px; padding: .35rem 0 .35rem .9rem; border: 0; border-left: 2px solid transparent; border-radius: 0; font-size: .86rem; white-space: normal; }
  .fp--rail .fp-toc a.is-active, .fp--rail .fp-toc a[aria-current] { background: none; color: var(--navy); font-weight: 700; border-left-color: var(--accent); }
  .fp--rail .fp-main > .fp-sec:nth-child(2) { margin-top: 0; }
}

/* editorial: a numbered contents list, not sticky */
.fp--editorial .fp-toc { position: static; margin-bottom: 2.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fp--editorial .fp-toc-title { position: static; width: auto; height: auto; clip: auto; margin: 0 0 .5rem; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fp--editorial .fp-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .1rem 1.5rem; overflow: visible; counter-reset: fptoc; }
.fp--editorial .fp-toc li { counter-increment: fptoc; }
.fp--editorial .fp-toc a { display: flex; gap: .6rem; padding: .3rem 0; border: 0; border-radius: 0; font-size: .95rem; white-space: normal; }
.fp--editorial .fp-toc a::before { content: counter(fptoc, decimal-leading-zero); color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.fp--editorial .fp-toc a:hover, .fp--editorial .fp-toc a.is-active { background: none; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- key facts panel */
.fp-facts { padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--fp-r); background: var(--white, #fff); }
.fp-facts-title { margin: 0 0 .6rem; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fp-facts-lead { margin: 0 0 .75rem; color: var(--ink-2); font-size: .95rem; }
.fp-facts-list { margin: 0; }
.fp-fact { padding: .75rem 0; border-top: 1px solid var(--line-2); }
.fp-facts-title + .fp-facts-list > .fp-fact:first-child, .fp-facts-lead + .fp-facts-list > .fp-fact:first-child { border-top: 0; padding-top: .25rem; }
.fp-fact dt { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.fp-fact dd { margin: .15rem 0 0; color: var(--navy); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.fp-fact dd .muted { font-weight: 400; }
.fp-facts-actions { display: grid; gap: .5rem; margin-top: 1rem; }
.fp-facts-actions .btn { justify-content: center; text-align: center; border-radius: 999px; }
.fp-facts-head { display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.fp-facts-head .fp-facts-title { margin-bottom: .25rem; }
.fp-facts-inline { margin: 1.25rem 0 1.5rem; background: var(--fp-tint); border-color: transparent; }
.fp-facts-inline .fp-facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0 1.5rem; }
.fp-facts-inline .fp-fact { border-top: 0; padding: .35rem 0; }

/* placing the facts panel: rail and editorial put it in the flow, split beside the text */
.fp-aside { margin-bottom: 2rem; }
.fp--rail .fp-aside .fp-facts { background: var(--fp-tint); border-color: transparent; }
.fp--rail .fp-aside .fp-facts-list, .fp--editorial .fp-aside .fp-facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0 1.75rem; }
.fp--rail .fp-aside .fp-fact, .fp--editorial .fp-aside .fp-fact { border-top: 0; padding: .4rem 0; }
.fp--rail .fp-aside .fp-facts-actions, .fp--editorial .fp-aside .fp-facts-actions { display: flex; flex-wrap: wrap; }
@media (min-width: 992px) {
  .fp--split.fp-has-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 3.5rem; align-items: start; }
  .fp--split.fp-has-aside > .fp-main { grid-column: 1; grid-row: 1; }
  .fp--split.fp-has-aside > .fp-aside { grid-column: 2; grid-row: 1; position: sticky; top: var(--fp-top); margin: 0; }
  .fp--split.fp-has-aside > .fp-aside .fp-facts { box-shadow: var(--shadow); }
}
/* split pages without a facts panel: each section's heading sits in its own column, the text beside it */
@media (min-width: 992px) {
  .fp--split:not(.fp-has-aside) .fp-sec:has(> .fp-sec-title) { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 0 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
  .fp--split:not(.fp-has-aside) .fp-sec > .fp-sec-title { position: sticky; top: calc(var(--fp-top) + 3.5rem); align-self: start; margin: 0; padding: 0; border: 0; font-size: 1.3rem; hyphens: manual; overflow-wrap: normal; }
  .fp--split:not(.fp-has-aside) .fp-sec > .fp-sec-title::after { position: static; display: block; margin-top: .75rem; }
  .fp--split:not(.fp-has-aside) .fp-sec > .fp-related, .fp--split:not(.fp-has-aside) .fp-sec > :not(.fp-sec-title) { grid-column: 2; }
}

/* editorial: the facts panel is a full-width band that breaks out of the reading column */
.fp--editorial .fp-aside, .fp-break { width: min(1180px, calc(100vw - 2rem)); margin-left: calc((100% - min(1180px, calc(100vw - 2rem))) / 2); }
.fp--editorial .fp-aside .fp-facts { padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 2.5rem); background: var(--fp-tint); border-color: transparent; }
.fp--editorial .fp-media, .fp--editorial .prose figure.media--full { width: min(1180px, calc(100vw - 2rem)); max-width: none; margin-left: calc((100% - min(1180px, calc(100vw - 2rem))) / 2); }
.fp--editorial .fp-media img { width: 100%; border-radius: var(--fp-r); }

/* editorial headings: large, numbered, no rule */
.fp--editorial .fp-main { counter-reset: fpsec; }
.fp--editorial .fp-sec:has(> .fp-sec-title) { counter-increment: fpsec; }
.faculty-site .fp--editorial .block-title.fp-sec-title { padding: 0; border: 0; font-family: var(--font-display); font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.12; }
.fp--editorial .fp-sec-title::after { content: none; }
.fp--editorial .fp-sec > .fp-sec-title::before { content: counter(fpsec, decimal-leading-zero); display: block; margin-bottom: .4rem; color: var(--accent); font-family: var(--font-sans); font-size: .85rem; font-weight: 700; letter-spacing: .12em; }
.fp--editorial .fp-sec { margin-top: clamp(3rem, 6vw, 4.5rem); }
.fp--editorial .lead-text { font-family: var(--font-serif); font-size: clamp(1.2rem, 2.1vw, 1.4rem); line-height: 1.55; color: var(--ink); }

/* rail headings: small accent rule above, quiet */
.faculty-site .fp--rail .block-title.fp-sec-title { padding-bottom: .5rem; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.fp--rail .fp-sec-title::after { background: var(--accent); }

/* ---------- index lists (programmes, departments, projects, resources) */
.fp-index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.fp-row { border-bottom: 1px solid var(--line); }
.fp-row-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "badge arrow" "main main" "meta meta"; gap: .4rem 1rem; align-items: center; padding: 1.1rem .25rem; color: var(--ink); text-decoration: none; }
.fp-row-badge, .fp-row-icon { grid-area: badge; justify-self: start; }
.fp-row-main { grid-area: main; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.fp-row-title { color: var(--navy); font-family: var(--font-serif); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.3; }
.fp-row-text { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.fp-row-meta { grid-area: meta; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.fp-row-meta:empty { display: none; }
.fp-row-arrow { grid-area: arrow; justify-self: end; color: var(--blue); font-size: 1.1rem; }
.fp-row-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--fp-r-sm); background: var(--fp-tint-2); color: var(--navy); font-size: 1.25rem; }
.fp-row-link:hover .fp-row-title { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fp-row-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--fp-r-sm); }
@media (min-width: 720px) {
  .fp-row-link { grid-template-columns: 9.5rem minmax(0, 1fr) auto auto; grid-template-areas: "badge main meta arrow"; gap: 1.5rem; padding: 1.35rem .5rem; }
  .fp-row-dept .fp-row-link, .fp-index .fp-row:has(.fp-row-icon) .fp-row-link { grid-template-columns: 44px minmax(0, 1fr) auto auto; }
  .fp-row-meta { justify-self: end; text-align: right; }
}
.fp-index-compact .fp-row-link { padding-block: .9rem; }
.fp-index-compact .fp-row-title { font-size: 1.02rem; }
.fp-row .tag-pending { white-space: nowrap; }

/* ---------- dated lists (conferences, calendar, related articles) */
.fp-dates { margin: 0 0 1.25rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.fp-dates li { display: flex; gap: 1.1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fp-dates li > div { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.fp-dates a, .fp-dates strong { color: var(--navy); font-weight: 700; line-height: 1.35; }
.fp-dates-meta { color: var(--muted); font-size: .9rem; }
.faculty-site .fp .fac-date, .faculty-site .fp-facts .fac-date { border-radius: var(--fp-r-sm); background: var(--navy); border-bottom-color: var(--accent); }
.fp-dated li { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 0; border-bottom: 1px solid var(--line-2); }
.fp-dated li:last-child { border-bottom: 0; }
.fp-dated time { order: 0; color: var(--muted); font-size: .82rem; font-weight: 600; }
.fp-dated a { color: var(--navy); font-weight: 600; line-height: 1.4; text-decoration: none; }
.fp-dated a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- people */
.fp-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.fp-person { position: relative; border-radius: var(--fp-r); }
.fp-person .fp-stretch { color: inherit; text-decoration: none; }
.fp-person .fp-stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fp-person .fp-stretch:focus-visible { outline: none; }
.fp-person:has(.fp-stretch:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.fp-person:hover { border-color: var(--accent); }
.fp-person:hover .leader-name { color: var(--blue); }
.fp-profile { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-bottom: 2rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--fp-r); background: var(--fp-tint); }
.fp-profile .avatar-xxl { width: clamp(120px, 22vw, 180px); height: clamp(120px, 22vw, 180px); border-radius: var(--fp-r); }
.fp-profile-body { min-width: 0; flex: 1 1 16rem; }
.fp-profile-body .leader-name-lg { margin: .2rem 0 .3rem; color: var(--navy); }
.fp-profile-body p { margin: 0; }
.fp-quote { margin: 0 0 2rem; padding: 0 0 0 1.5rem; border-left: 3px solid var(--accent); }
.fp-quote p { margin: 0; color: var(--ink); font-family: var(--font-quote, var(--font-serif)); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; }
.fp-signoff { display: flex; flex-direction: column; margin-top: 1.5rem; font-weight: 700; color: var(--navy); }
.fp-signoff span { font-weight: 400; color: var(--muted); font-size: .92rem; }

/* ---------- small blocks */
.fp-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1.25rem; align-items: center; padding: 1.4rem 1.5rem; border-radius: var(--fp-r); background: var(--fp-tint); }
.fp-stat-n { grid-row: span 2; color: var(--navy); font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; line-height: 1; }
.fp-stat p { margin: 0; }
.fp-stat .btn { justify-self: start; border-radius: 999px; }
.fp-checks li { overflow-wrap: anywhere; }
.fp-steps { counter-reset: none; }
.fp-plain-list { padding-left: 1.1rem; }
.fp-topic-list { margin-bottom: 1rem; }
.fp-docs li { border-radius: var(--fp-r-sm); }
.fp-timeline { margin: 0; }
.fp-portals .portal-tile { border-radius: var(--fp-r); }
.fp-readmore { border-radius: var(--fp-r); }
.fp-org .org-node { border-radius: var(--fp-r-sm); }
.fp-org { max-width: 100%; overflow-x: auto; }
.fp-related { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- programme: Apply bar on phones */
.fp-apply-bar { display: none; }
@media (max-width: 767.98px) {
  .fp-apply-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px)); background: var(--white, #fff); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(10, 39, 66, .1); }
  .fp-apply-bar p { display: flex; flex-direction: column; min-width: 0; margin: 0; line-height: 1.25; }
  .fp-apply-bar-kicker { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .fp-apply-bar-name { overflow: hidden; color: var(--navy); font-size: .9rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
  .fp-apply-bar .btn { flex: 0 0 auto; border-radius: 999px; }
  .faculty-site:has(.fp-apply-bar) .site-footer, .faculty-site:has(.fp-apply-bar) footer:last-of-type { padding-bottom: 4.5rem; }
}

/* ================================================================== listings outside the section layout */
/* news */
.fp-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.fp-toolbar .filter-bar { flex: 1 1 18rem; margin: 0; }
.fp-toolbar .chip-row { margin: 0; }
.fp-filter input[type="search"], .fp-filter select { border-radius: 999px; }
.fp .news-card, .fp-p-news .news-card { border-radius: var(--fp-r); }
.fp--editorial.fp-p-news .fp-main { max-width: 54rem; margin-inline: auto; }
.fp--editorial .fp-news { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .fp--editorial .fp-news .news-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
  .fp--editorial .fp-news .news-card-media { min-width: 0; width: 100%; height: 100%; aspect-ratio: auto; overflow: hidden; }
  .fp--editorial .fp-news .news-card-img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
}
@media (min-width: 992px) { .fp--rail .fp-news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* events: date-badge rows instead of a grid of pictures */
.fp-tabs .tab-list { gap: .4rem; border-bottom: 1px solid var(--line); }
.fp-event-list.event-grid { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.fp-event-list .event-card { display: grid; grid-template-columns: minmax(0, 1fr); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; transform: none; }
.fp-event-list .event-card-media { display: none; }
.fp-event-list .event-card-body { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.15rem .25rem; }
.fp-event-list .date-badge { border-radius: var(--fp-r-sm); }
.fp-event-list .event-card-title { margin: .2rem 0 .35rem; font-size: clamp(1.05rem, 1.7vw, 1.2rem); }
.fp-event-list .event-meta { margin: 0; }
@media (min-width: 720px) {
  .fp-event-list .event-card { grid-template-columns: minmax(0, 1fr) 180px; align-items: center; gap: 1.5rem; }
  .fp-event-list .event-card-media { display: block; order: 2; overflow: hidden; border-radius: var(--fp-r-sm); aspect-ratio: 16 / 10; }
  .fp-event-list .event-card-img { width: 100%; height: 100%; object-fit: cover; }
}
.fp-event-list .event-card:hover { transform: none; box-shadow: none; }
.fp-event-list .event-card:hover .event-card-title a { color: var(--blue); }
.fp-p-events .fp-across:not(:empty) { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.fp--editorial.fp-p-events .fp-main, .fp--editorial.fp-p-search .fp-main { max-width: 54rem; margin-inline: auto; }

/* article */
.fp-article .article-figure img { border-radius: var(--fp-r); }
.fp-article .fp-more { position: sticky; top: var(--fp-top); }
.fp-article-foot { margin-top: 2.5rem; }
.fp-article--editorial { grid-template-columns: minmax(0, min(100%, var(--fp-col))) !important; justify-content: center; }
.fp-article--editorial .article-title { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; }
.fp-article--editorial .article-figure { width: min(1180px, calc(100vw - 2rem)); margin-left: calc((100% - min(1180px, calc(100vw - 2rem))) / 2); }
.fp-article--editorial .article-aside .fp-more { position: static; }
.fp-article--split .article-head { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 992px) { .fp-article--rail .article-aside { order: -1; } .fp-article--rail { grid-template-columns: 280px minmax(0, 1fr) !important; } }

/* contact */
.fp-contact .fp-form { border-radius: var(--fp-r); }
.fp-contact-info .fp-facts { background: var(--fp-tint); border-color: transparent; }
.fp-emails li { border-radius: var(--fp-r-sm); }

/* search */
.fp-search .search-field { border-radius: 999px; }
.fp--editorial.fp-p-search .search-page-form { max-width: none; }

/* ================================================================== small screens & motion */
@media (max-width: 640px) {
  .fp-facts { padding: 1.15rem 1.15rem; }
  .fp-profile { flex-direction: column; align-items: flex-start; }
  .fp-stat { grid-template-columns: minmax(0, 1fr); }
  .fp-stat-n { grid-row: auto; }
  .fp-toolbar .chip-row { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: .25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .fp-row-arrow { transition: transform .2s var(--ease, ease); }
  .fp-row-link:hover .fp-row-arrow { transform: translateX(4px); }
  .fp-toc a, .fp-person, .fp-row-link { transition: background-color .2s, border-color .2s, color .2s; }
}
@media print {
  .fp-toc, .fp-apply-bar, .fp-hero::before { display: none !important; }
  .faculty-site .page-hero.fp-hero { background: none; color: #000; }
  .faculty-site .fp-hero--split .page-title { color: #000; }
}
