/* Faculty websites: the home page compositions (resources/views/snu-site/faculty/home/*.blade.php) and the decorative
   motifs (App\Support\SnuSite\FacultyLayout). Loaded on every faculty page from faculty/document.blade.php.
   Colours come from the faculty's scale (--fac-50 … --fac-950 and --accent: palette.css, or Palette::facultyCss for a
   faculty with its own colour), so a colour chosen in the admin reaches every composition. Mobile first. */

.fm {
  --fm-r: 22px;
  --fm-r-sm: 14px;
  --fm-ink: var(--c-slate-950, #1c2127);
  --fm-text: var(--c-slate-800, #3f4750);
  --fm-muted: var(--c-slate-600, #646e7a);
  --fm-line: var(--c-slate-200, #d5dadf);
  --fm-paper: #fff;
  --fm-soft: var(--fac-50, #f1f7ff);
  --fm-tint: var(--fac-100, #e1eeff);
  --fm-a: var(--fac-700, #0458ab);
  --fm-a2: var(--fac-600, #1b6cc7);
  --fm-deep: var(--fac-900, #003167);
  --fm-deeper: var(--fac-950, #001f46);
  --fm-gold: var(--c-gold-400, #c39b44);
  --fm-gap: clamp(52px, 4vw + 36px, 96px);
  --fm-shadow: 0 1px 2px rgba(0, 31, 70, .05), 0 12px 32px -12px rgba(0, 31, 70, .16);
  --fm-shadow-lg: 0 30px 70px -28px rgba(0, 31, 70, .38);
  --fm-serif: Georgia, "Noto Serif", "Times New Roman", serif;
  --fm-ease: cubic-bezier(.2, .7, .2, 1);
  color: var(--fm-text);
  overflow-x: clip;
  hyphens: manual;
}
.fm h2, .fm h3 { hyphens: manual; overflow-wrap: break-word; }
.fm *, .fm *::before, .fm *::after { box-sizing: border-box; }
.fm img { max-width: 100%; }
.fm a { color: inherit; }
.fm ul[role="list"], .fm ol[role="list"] { list-style: none; margin: 0; padding: 0; }
.fm h2, .fm h3, .fm h4 { color: var(--fm-ink); }

/* ---------------------------------------------------------------- sections and headings */
.fm-section { padding: var(--fm-gap) 0; position: relative; }
.fm-section--tight { padding: calc(var(--fm-gap) * .6) 0; }
.fm-section--alt { background: var(--c-slate-50, #f5f7f8); }
.fm-section--soft { background: linear-gradient(180deg, var(--fm-soft), #fff 85%); }
.fm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem); }
.fm-head-text { max-width: 760px; }
.fm-eyebrow { margin: 0 0 .5rem; font-family: var(--font-ui, inherit); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-a); }
.fm-title { margin: 0; font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.fm-display { margin: 0 0 1rem; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); line-height: 1.1; font-weight: 700; letter-spacing: -.015em; }
.fm-lead { margin: .75rem 0 0; font-size: var(--fs-intro, 1.1rem); color: var(--fm-muted); line-height: 1.6; }
.fm-subtitle { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; }
.fm-more { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .95rem; color: var(--fm-a) !important; text-decoration: none; padding: .35rem 0; }
.fm-more .bi { transition: transform .25s var(--fm-ease); }
.fm-more:hover .bi, .fm-more:focus-visible .bi { transform: translateX(4px); }
.fm-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.fm-tag { display: inline-block; margin: .35rem 0; padding: .15rem .6rem; border-radius: 999px; background: var(--c-gold-50, #fcf6eb); color: var(--c-gold-800, #5b4200); font-size: .75rem; font-weight: 700; }
.fm-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 .5rem; font-size: .8125rem; font-weight: 600; color: var(--fm-muted); }
.fm-meta span { color: var(--fm-a); text-transform: uppercase; letter-spacing: .06em; }

/* buttons */
.fm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.fm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.fm-btn-primary { background: var(--fm-a); color: #fff !important; }
.fm-btn-primary:hover { background: var(--fm-deep); }
.fm-btn-ghost { border-color: var(--fm-line); color: var(--fm-deep) !important; background: #fff; }
.fm-btn-ghost:hover { border-color: var(--fm-a); }
.fm-btn-light { background: #fff; color: var(--fm-deep) !important; }
.fm-btn-light:hover { background: var(--fm-tint); }
.fm a:focus-visible, .fm button:focus-visible { outline: 3px solid var(--fm-a2); outline-offset: 3px; border-radius: 6px; }

/* the breadcrumb strip below the banner */
.fm .fm-crumbs { background: transparent; border-bottom: 1px solid var(--fm-line); }

/* ---------------------------------------------------------------- shared pieces */
/* date badge (announcements, events) */
.fm-badge { flex: none; display: grid; place-content: center; text-align: center; width: 62px; height: 66px; border-radius: 16px; background: var(--fm-deep); color: #fff; line-height: 1; }
.fm-badge .d { font-size: 1.5rem; font-weight: 800; }
.fm-badge .m { margin-top: .2rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.fm-badge .y { margin-top: .2rem; font-size: .6875rem; opacity: .8; }
.fm-badge--soft { background: var(--fm-tint); color: var(--fm-deep); }

.fm-ann { display: grid; gap: .75rem; }
.fm-ann-item { display: flex; gap: 1rem; align-items: center; padding: .9rem; border-radius: var(--fm-r-sm); background: #fff; border: 1px solid var(--fm-line); transition: border-color .2s, box-shadow .2s; }
.fm-ann-item:hover { border-color: var(--fac-300, #96c4ff); box-shadow: var(--fm-shadow); }
.fm-ann-title { margin: 0; font-size: 1rem; line-height: 1.4; font-weight: 700; }
.fm-ann-title a { text-decoration: none; }
.fm-ann-title a:hover { color: var(--fm-a); text-decoration: underline; }
.fm-ann-meta { display: block; margin-top: .25rem; font-size: .8125rem; color: var(--fm-muted); }

.fm-events { display: grid; gap: 1rem; }
.fm-event { display: flex; gap: 1rem; align-items: flex-start; }
.fm-event-title { margin: .1rem 0 .3rem; font-size: 1.05rem; line-height: 1.35; font-weight: 700; }
.fm-event-title a { text-decoration: none; }
.fm-event-title a:hover { color: var(--fm-a); text-decoration: underline; }
.fm-event-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; font-size: .875rem; color: var(--fm-muted); }
.fm .event-status { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.fm-news { display: grid; gap: 1.5rem; }
.fm-news-lead { display: grid; border-radius: var(--fm-r); overflow: hidden; background: #fff; box-shadow: var(--fm-shadow); }
.fm-news-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fm-tint); }
.fm-news-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--fm-ease); }
.fm-news-lead:hover .fm-news-img { transform: scale(1.03); }
.fm-news-body { padding: clamp(1.25rem, 2.5vw, 2rem); }
.fm-news-title { margin: 0 0 .6rem; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); line-height: 1.25; font-weight: 700; }
.fm-news-title a, .fm-headline a { text-decoration: none; }
.fm-news-title a:hover, .fm-headline a:hover { color: var(--fm-a); text-decoration: underline; }
.fm-news-excerpt { margin: 0; color: var(--fm-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fm-headlines { display: grid; }
.fm-headlines li { padding: .9rem 0; border-top: 1px solid var(--fm-line); }
.fm-headlines li:first-child { border-top: 0; padding-top: 0; }
.fm-headlines time { font-size: .8125rem; font-weight: 600; color: var(--fm-muted); }
.fm-headline { margin: .25rem 0 0; font-size: 1rem; line-height: 1.45; font-weight: 700; }

/* contact card */
.fm-contact { font-style: normal; padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--fm-r); background: #fff; border: 1px solid var(--fm-line); align-self: start; }
.fm-contact p { display: flex; gap: .6rem; margin: 0 0 .6rem; font-size: .95rem; overflow-wrap: anywhere; }
.fm-contact p .bi { color: var(--fm-a); }
.fm-contact .fm-contact-k { display: block; font-weight: 700; color: var(--fm-ink); font-size: 1.05rem; margin-bottom: .9rem; }

/* research links */
.fm-rlinks { display: flex; flex-wrap: wrap; gap: .6rem; }
.fm-rlinks a { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--fm-line); background: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; transition: border-color .2s, background-color .2s; }
.fm-rlinks a:hover { border-color: var(--fm-a); background: var(--fm-soft); }
.fm-rlinks .bi { color: var(--fm-a); }

/* research projects (ledger) */
.fm-projects { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.fm-project { display: grid; gap: .6rem; height: 100%; padding: clamp(1.4rem, 3vw, 2.25rem); border-radius: var(--fm-r); background: var(--fm-deep); color: #fff !important; text-decoration: none; position: relative; overflow: hidden; }
.fm-project:hover { background: var(--fm-deeper); }
.fm-project-icon { font-size: 1.75rem; color: var(--fac-300, #96c4ff); }
.fm-project-title { font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); font-weight: 700; line-height: 1.25; }
.fm-project-text { color: rgba(255, 255, 255, .85); }
.fm-project-facts { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin: .5rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.fm-project-facts dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.fm-project-facts dd { margin: .15rem 0 0; font-weight: 600; }

/* departments */
.fm-index { border-top: 1px solid var(--fm-line); }
.fm-index-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: start; padding: 1.25rem 0; border-bottom: 1px solid var(--fm-line); text-decoration: none; transition: background-color .25s; }
.fm-index-n { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 300; line-height: 1; color: var(--fm-a2); font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.fm-index-name { display: block; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); font-weight: 700; color: var(--fm-ink); }
.fm-index-text { display: block; margin-top: .3rem; color: var(--fm-muted); font-size: .95rem; }
.fm-index-go { font-size: 1.25rem; color: var(--fm-a); transition: transform .25s var(--fm-ease); }
.fm-index-row:hover .fm-index-name { color: var(--fm-a); }
.fm-index-row:hover .fm-index-go { transform: translate(3px, -3px); }

.fm-ruled { display: grid; gap: 0 3rem; }
.fm-ruled li { padding: 1.25rem 0; border-top: 2px solid var(--fm-ink); }
.fm-ruled-name { margin: 0 0 .4rem; font-family: var(--fm-serif); font-size: 1.3rem; font-weight: 700; }
.fm-ruled-name a { text-decoration: none; }
.fm-ruled-name a:hover { color: var(--fm-a); text-decoration: underline; }
.fm-ruled p { margin: 0; color: var(--fm-muted); }

.fm-tiles { display: grid; gap: 1px; background: var(--fm-line); border: 1px solid var(--fm-line); border-radius: var(--fm-r); overflow: hidden; }
.fm-tile { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.5rem; background: #fff; text-decoration: none; transition: background-color .2s; }
.fm-tile:hover { background: var(--fm-soft); }
.fm-tile-icon { font-size: 1.6rem; color: var(--fm-a); }
.fm-tile-name { font-weight: 700; font-size: 1.1rem; color: var(--fm-ink); }
.fm-tile-text { color: var(--fm-muted); font-size: .925rem; flex: 1; }
.fm-tile-go { font-size: .875rem; font-weight: 700; color: var(--fm-a); }

.fm-pills { display: grid; gap: .75rem; }
.fm-pill { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--fm-r); background: #fff; border: 1px solid var(--fm-line); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.fm-pill:hover { border-color: var(--fac-300, #96c4ff); box-shadow: var(--fm-shadow); }
.fm-pill-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--fm-tint); color: var(--fm-a); font-size: 1.25rem; }
.fm-pill-body { flex: 1; min-width: 0; }
.fm-pill-name { display: block; font-weight: 700; color: var(--fm-ink); }
.fm-pill-text { display: block; font-size: .9rem; color: var(--fm-muted); }
.fm-pill > .bi { color: var(--fm-a); }

/* programmes */
.fm-table-wrap { border-radius: var(--fm-r); border: 1px solid var(--fm-line); background: #fff; overflow: hidden; }
.fm-table { width: 100%; border-collapse: collapse; font-size: .975rem; }
.fm-table thead { display: none; }
.fm-table tr { display: grid; gap: .2rem; padding: 1rem 1.25rem; border-top: 1px solid var(--fm-line); }
.fm-table tbody tr:first-child { border-top: 0; }
.fm-table th, .fm-table td { padding: 0; text-align: left; }
.fm-table th[scope="row"] { font-family: var(--fm-serif); font-size: 1.1rem; font-weight: 700; }
.fm-table th a { text-decoration: none; color: var(--fm-ink); }
.fm-table th a:hover { color: var(--fm-a); text-decoration: underline; }
.fm-table td { color: var(--fm-muted); font-size: .9rem; }
.fm-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--fm-text); }

.fm-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.fm-filter-bar[hidden] { display: none; }
.fm-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.fm-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.fm-search .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--fm-muted); pointer-events: none; }
.fm-search input { width: 100%; min-height: 48px; padding: .6rem 1rem .6rem 2.6rem; border-radius: 999px; border: 1px solid var(--c-slate-400, #99a3ae); background: #fff; font: inherit; color: var(--fm-ink); }
.fm-search input:focus { outline: 3px solid var(--fm-a2); outline-offset: 2px; border-color: var(--fm-a2); }
.fm-filter-count { margin: 0; font-size: .875rem; color: var(--fm-muted); }
.fm-filter-count:empty { display: none; }
.fm-chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--fm-line); background: #fff; color: var(--fm-ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.fm-chip span { font-variant-numeric: tabular-nums; color: var(--fm-muted); }
.fm-chip[aria-pressed="true"] { background: var(--fm-deep); border-color: var(--fm-deep); color: #fff; }
.fm-chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .8); }
.fm-plist { display: grid; gap: 1px; background: var(--fm-line); border: 1px solid var(--fm-line); border-radius: var(--fm-r); overflow: hidden; }
.fm-plist li[hidden] { display: none; }
.fm-prow { display: grid; gap: .3rem; padding: 1.2rem 1.4rem; background: #fff; text-decoration: none; height: 100%; transition: background-color .2s; }
.fm-prow:hover { background: var(--fm-soft); }
.fm-prow-level { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-a); }
.fm-prow-name { font-weight: 700; font-size: 1.075rem; color: var(--fm-ink); }
.fm-prow-text { font-size: .925rem; color: var(--fm-muted); }
.fm-prow-dur { font-size: .85rem; font-weight: 600; color: var(--fm-text); font-variant-numeric: tabular-nums; }

.fm-levels { display: grid; gap: 1.25rem; }
.fm-level { padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--fm-r); background: #fff; border: 1px solid var(--fm-line); }
.fm-level-name { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--fm-line); font-size: 1.15rem; }
.fm-level-name span { font-size: 2rem; font-weight: 300; color: var(--fm-a2); }
.fm-level ul { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .65rem; }
.fm-level li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; }
.fm-level li a { font-weight: 600; text-decoration: none; color: var(--fm-ink); }
.fm-level li a:hover { color: var(--fm-a); text-decoration: underline; }
.fm-level li span { font-size: .85rem; color: var(--fm-muted); }

.fm-stack { display: grid; gap: .75rem; }
.fm-stack-row { display: grid; gap: .5rem; padding: 1.25rem 1.4rem; border-radius: var(--fm-r); background: #fff; border: 1px solid var(--fm-line); border-left: 6px solid var(--fm-a2); text-decoration: none; transition: box-shadow .2s; }
.fm-stack-row:hover { box-shadow: var(--fm-shadow); }
.fm-stack-dur { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fm-a); }
.fm-stack-name { display: block; font-size: 1.1rem; font-weight: 700; color: var(--fm-ink); }
.fm-stack-text { display: block; margin-top: .25rem; color: var(--fm-muted); font-size: .925rem; }

/* quick links: circles (atlas) and tiles (ledger) */
.fm-circles ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.fm-circles a { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; text-decoration: none; font-weight: 700; color: var(--fm-ink); }
.fm-circle { display: grid; place-items: center; width: clamp(84px, 20vw, 128px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--fm-tint); color: var(--fm-a); font-size: 1.75rem; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--fm-line); transition: box-shadow .25s, transform .3s var(--fm-ease); }
.fm-circle-img { width: 100%; height: 100%; object-fit: cover; }
.fm-circles a:hover .fm-circle { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--fm-a2); transform: translateY(-3px); }
.fm-circle-label { font-size: .95rem; line-height: 1.3; }
.fm-qtiles ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; height: 100%; }
@media (min-width: 768px) { .fm-qtiles ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fm-qtile { min-height: 84px; } }
.fm-qtile { display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; height: 100%; min-height: 96px; padding: 1rem; border-radius: var(--fm-r-sm); background: rgba(255, 255, 255, .1); color: #fff !important; text-decoration: none; font-weight: 700; font-size: .95rem; transition: background-color .2s; }
.fm-qtile .bi { font-size: 1.35rem; color: var(--fac-200, #c0dcff); }
.fm-qtile:hover { background: rgba(255, 255, 255, .2); }

/* dean: quote band (atlas), letter (meridian), tile (ledger), band (campus, clinic) */
.fm-quote { padding: var(--fm-gap) 0; background: radial-gradient(120% 140% at 0% 0%, var(--fm-deep), var(--fm-deeper)); color: #fff; }
.fm-quote-inner { display: grid; gap: 2rem; align-items: center; }
.fm-quote .fm-eyebrow { color: var(--fac-200, #c0dcff); }
.fm-quote-photo .avatar-xxl { width: 160px; height: 192px; border-radius: var(--fm-r); }
.fm-quote-text { margin: 0 0 1.25rem; padding-top: 1.25rem; border-top: 3px solid var(--fm-gold); max-width: 62ch; font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem); line-height: 1.5; font-weight: 500; color: #fff; }
.fm-quote h2.fm-eyebrow { color: var(--fac-200, #c0dcff); }
.fm-quote-who { margin: 0 0 1.5rem; color: rgba(255, 255, 255, .85); }
.fm-quote-who strong { display: block; color: #fff; font-size: 1.1rem; }

.fm-letter { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--fm-r); background: var(--fm-soft); border: 1px solid var(--fm-tint); align-self: start; }
.fm-letter-title { margin: 0 0 1rem; font-family: var(--fm-serif); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); font-weight: 700; }
.fm-letter-text { font-family: var(--fm-serif); font-size: 1.075rem; line-height: 1.7; color: var(--fm-text); }
.fm-letter-sign { display: flex; gap: 1rem; align-items: center; margin: 1.5rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--fac-200, #c0dcff); }
.fm-letter-sign strong { display: block; color: var(--fm-ink); }
.fm-letter-sign span { font-size: .9rem; color: var(--fm-muted); }

.fm-deanband { padding: calc(var(--fm-gap) * .7) 0; background: var(--fm-soft); }
.fm-deanband-inner { display: grid; gap: 1.25rem; justify-items: start; }
.fm-deanband-name { margin: 0; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); }
.fm-deanband-role { margin: .2rem 0 .75rem; font-weight: 600; color: var(--fm-a); }
.fm-deanband-text { margin: 0; max-width: 70ch; }
.fm-deanband .avatar-xl { width: 112px; height: 112px; box-shadow: 0 0 0 4px #fff; }

/* partners */
.fm-partners { padding: calc(var(--fm-gap) * .7) 0; border-top: 1px solid var(--fm-line); }
.fm-partners-title { margin: 0 0 1.25rem; font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-muted) !important; }
.fm-partner-list { display: grid; gap: .75rem; margin-bottom: 1rem !important; }
.fm-partner { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--fm-r); background: var(--fm-soft); text-decoration: none; }
.fm-partner > .bi { font-size: 1.5rem; color: var(--fm-a); }
.fm-partner strong { display: block; color: var(--fm-ink); }
.fm-partner small { color: var(--fm-muted); font-size: .875rem; }
.fm-res-list { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.fm-res-list a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--fm-deep); }
.fm-res-list a:hover { color: var(--fm-a); text-decoration: underline; }
.fm-res-list .bi { color: var(--fm-a); }

/* ================================================================ ATLAS: editorial, floating panel */
.fl-home-atlas .fac-hero .hero-controls { bottom: calc(1.6rem + 56px); }
.fm-float-wrap { position: relative; z-index: 3; margin-top: -56px; }
.fm-float { display: grid; gap: 2rem; padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: calc(var(--fm-r) + 4px); background: #fff; box-shadow: var(--fm-shadow-lg); }
.fm-float-text { margin: 0; font-size: var(--fs-intro, 1.1rem); line-height: 1.7; color: var(--fm-text); max-width: 62ch; }
.fm-float-facts { display: grid; gap: 0; margin: 0; align-self: center; }
.fm-float-facts div { display: flex; flex-direction: column-reverse; padding: 1rem 0; border-top: 1px solid var(--fm-line); }
.fm-float-facts div:first-child { border-top: 0; }
.fm-float-facts dd { margin: 0; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 300; line-height: 1; color: var(--fm-deep); font-variant-numeric: tabular-nums; }
.fm-float-facts dt { margin-top: .35rem; font-size: .875rem; color: var(--fm-muted); }
.fm-atlas .fm-crumbs { border-bottom: 0; margin-top: 1rem; }
.fm-atlas-split { display: grid; gap: 1rem 4rem; }
.fm-atlas-news { display: grid; gap: 2rem; }
.fm-atlas-notices { align-self: start; }
.fm-timeline { display: grid; gap: 0; position: relative; }
.fm-timeline li { position: relative; padding: 0 0 1.75rem 2rem; border-left: 2px solid var(--fm-tint); }
.fm-timeline li::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--fm-a2); box-shadow: 0 0 0 4px var(--c-slate-50, #f5f7f8); }
.fm-timeline-when { font-weight: 800; font-size: 1.15rem; color: var(--fm-deep); }
.fm-timeline p { margin: .3rem 0 0; color: var(--fm-muted); max-width: 70ch; }

/* ================================================================ MERIDIAN: classical, text-led */
.fm-meridian .fm-title, .fm-meridian .fm-display, .fm-serif { font-family: var(--fm-serif); font-weight: 700; letter-spacing: 0; }
.fm-meridian .fm-eyebrow { color: var(--c-gold-700, #725400); }
.fm-meridian-intro { display: grid; gap: 2.5rem; }
.fm-meridian-text p { line-height: 1.75; max-width: 66ch; }
.fm-meridian-lead { font-family: var(--fm-serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.6 !important; color: var(--fm-ink); }
.fm-meridian-text .fm-meridian-lead::first-letter { float: left; font-size: 3.4em; line-height: .85; padding: .25rem .5rem 0 0; color: var(--fm-a); font-weight: 700; }
.fm-meridian-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin-top: 1.5rem; }
.fm-meridian-est { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-muted); }
.fm-practice { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-left: 4px solid var(--c-gold-400, #c39b44); background: var(--c-gold-50, #fcf6eb); border-radius: 0 var(--fm-r) var(--fm-r) 0; }
.fm-practice > .bi { font-size: 1.75rem; color: var(--c-gold-700, #725400); }
.fm-practice-title { margin: 0 0 .5rem; font-family: var(--fm-serif); font-size: 1.35rem; }
.fm-practice p { margin: 0 0 .5rem; max-width: 72ch; }
.fm-board { display: grid; gap: 2rem; }
.fm-board-col { display: flex; flex-direction: column; gap: .75rem; }
.fm-board-col .fm-subtitle { padding-bottom: .6rem; border-bottom: 2px solid var(--fm-ink); font-family: var(--fm-serif); font-size: 1.2rem; }
.fm-meridian-close { display: grid; gap: 2rem; }
.fm-meridian .fm-ann { gap: 0; }
.fm-meridian .fm-ann-item { padding: .9rem 0; border: 0; border-bottom: 1px solid var(--fm-line); border-radius: 0; background: transparent; box-shadow: none; }
.fm-meridian .fm-ann-item:first-child { padding-top: 0; }
.fm-meridian .fm-badge { width: 52px; height: 56px; border-radius: 12px; }

/* ================================================================ LEDGER: modular grid */
.fm-ledger { --fm-r: 18px; }
.fm-figures-wrap { padding: 0; background: var(--fm-deeper); color: #fff; }
.fm-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-left: 1px solid rgba(255, 255, 255, .14); }
.fm-figures div { display: flex; flex-direction: column-reverse; padding: 1.25rem 1rem; border-right: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.fm-figures dd { margin: 0; font-family: var(--font-mono, ui-monospace, monospace); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.fm-figures dt { margin-top: .5rem; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fac-200, #c0dcff); }
.fm-bento { display: grid; gap: 1rem; }
.fm-cell { padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--fm-r); background: #fff; border: 1px solid var(--fm-line); }
.fm-cell-k { margin: 0 0 .5rem; font-family: var(--font-mono, ui-monospace, monospace); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--fm-a); }
.fm-cell-title { margin: 0 0 .6rem; font-size: 1.15rem; line-height: 1.3; }
.fm-cell-title a { text-decoration: none; }
.fm-cell-title a:hover { color: var(--fm-a); text-decoration: underline; }
.fm-cell-title--lg { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.2rem); line-height: 1.15; }
.fm-cell-text { margin: 0 0 .75rem; color: var(--fm-muted); line-height: 1.65; }
.fm-cell-about { background: var(--fm-soft); border-color: var(--fm-tint); }
.fm-cell-about .fm-cell-text { color: var(--fm-text); font-size: 1.05rem; }
.fm-cell-dean-top { display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.fm-cell-dean-top .avatar-lg { width: 72px; height: 72px; }
.fm-cell-quick { background: var(--fm-deep); border-color: var(--fm-deep); padding: 1rem; }
.fm-ledger-research { background: linear-gradient(180deg, #fff, var(--fm-soft)); }
.fm-ledger-updates { display: grid; gap: 2rem; }
.fm-stream { border-top: 1px solid var(--fm-line); }
.fm-stream li { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--fm-line); }
.fm-stream time { font-family: var(--font-mono, ui-monospace, monospace); font-size: .85rem; color: var(--fm-muted); font-variant-numeric: tabular-nums; }
.fm-stream-cat { justify-self: start; padding: .1rem .55rem; border-radius: 6px; background: var(--fm-tint); color: var(--fm-deep); font-size: .75rem; font-weight: 700; }
.fm-stream-title { grid-column: 1 / -1; margin: 0; font-size: 1rem; line-height: 1.45; }
.fm-stream-title a { text-decoration: none; }
.fm-stream-title a:hover { color: var(--fm-a); text-decoration: underline; }

/* ================================================================ CAMPUS: landscape, field */
.fm-campus { --fm-r: 24px; }
.fm-campus-intro { display: grid; gap: 2rem; align-items: center; }
.fm-campus-lead { font-size: var(--fs-intro, 1.1rem); line-height: 1.75; max-width: 62ch; }
.fm-campus-est { display: flex; align-items: baseline; gap: .75rem; margin: 1rem 0 0; }
.fm-campus-est strong { font-size: 2.25rem; font-weight: 300; color: var(--fm-deep); }
.fm-campus-est span { font-size: .9rem; color: var(--fm-muted); }
.fm-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; gap: .6rem; }
.fm-mosaic-cell { margin: 0; overflow: hidden; border-radius: var(--fm-r-sm); background: var(--fm-tint); }
.fm-mosaic-cell:first-child { grid-column: 1 / -1; grid-row: span 2; border-radius: var(--fm-r); }
.fm-mosaic-img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--fm-ease); }
.fm-mosaic-cell:hover .fm-mosaic-img { transform: scale(1.04); }
.fm-mosaic--4 .fm-mosaic-cell:last-child, .fm-mosaic--3 .fm-mosaic-cell:last-child { grid-column: 1 / -1; }
.fm-section--field { background: linear-gradient(180deg, var(--fm-soft), #fff); }
.fm-field { display: grid; gap: 1.5rem; }
.fm-field-card { padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: var(--fm-r); background: var(--fm-deep); color: rgba(255, 255, 255, .9); }
.fm-field-card .fm-title { color: #fff; margin-bottom: .75rem; }
.fm-field-card .fm-eyebrow { color: var(--fac-200, #c0dcff); }
.fm-field-card p { max-width: 68ch; line-height: 1.7; }
.fm-field-links { display: grid; gap: .6rem; margin-top: 1.5rem; }
.fm-field-link { display: flex; align-items: center; gap: .75rem; min-height: 52px; padding: .75rem 1rem; border-radius: var(--fm-r-sm); background: rgba(255, 255, 255, .1); color: #fff !important; text-decoration: none; font-weight: 600; transition: background-color .2s; }
.fm-field-link:hover { background: rgba(255, 255, 255, .2); }
.fm-field-link .bi { font-size: 1.25rem; color: var(--fac-200, #c0dcff); }
.fm-campus-cal { display: grid; gap: 2.5rem; }

/* ================================================================ CLINIC: calm, health */
.fm-clinic { --fm-r: 20px; }
.fm-clinic .fm-section--alt { background: var(--c-sky-50, #eef9ff); }
.fm-clinic .fm-eyebrow { color: var(--c-sky-700, #006285); }
.fm-clinic-intro { display: grid; gap: 1rem 4rem; align-items: start; }
.fm-clinic-lead { margin: 0; font-size: var(--fs-intro, 1.1rem); line-height: 1.75; }
.fm-clinic-est { font-size: .875rem; font-weight: 600; color: var(--fm-muted); }
.fm-path { display: grid; gap: 1rem; counter-reset: step; }
.fm-step { position: relative; padding: clamp(1.4rem, 2.8vw, 2rem); border-radius: var(--fm-r); background: #fff; border: 1px solid var(--c-sky-100, #dbf1fd); box-shadow: var(--fm-shadow); }
.fm-step-n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 50%; background: var(--c-sky-50, #eef9ff); color: var(--c-sky-700, #006285); font-weight: 800; border: 2px solid var(--c-sky-200, #b6e0f7); }
.fm-step-title { margin: 0 0 .75rem; font-size: 1.15rem; }
.fm-step-text { margin: 0 0 .75rem; color: var(--fm-muted); line-height: 1.65; }
.fm-step-list { display: grid; gap: .6rem; }
.fm-step-list li { display: flex; flex-direction: column; padding-left: 1rem; border-left: 2px solid var(--c-sky-200, #b6e0f7); }
.fm-step-list a { font-weight: 600; text-decoration: none; color: var(--fm-ink); }
.fm-step-list a:hover { color: var(--fm-a); text-decoration: underline; }
.fm-step-list span { font-size: .85rem; color: var(--fm-muted); }
.fm-clinic-news { display: grid; gap: 2rem; }
.fm-clinic .fm-deanband { background: #fff; border-top: 1px solid var(--fm-line); }
.fm-clinic-events .fm-events { gap: 1.25rem; }
.fm-clinic-close { display: grid; gap: 2rem; }

/* ================================================================ wider screens */
@media (min-width: 576px) {
  .fm-circles ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fm-figures { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .fm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 130px; }
  .fm-mosaic-cell:first-child { grid-column: span 2; }
  .fm-mosaic--3 .fm-mosaic-cell:last-child { grid-column: auto; }
  .fm-mosaic--4 .fm-mosaic-cell:last-child { grid-column: 1 / -1; }
  .fm-mosaic--5 .fm-mosaic-cell:last-child { grid-column: span 2; }
  .fm-table thead { display: table-header-group; }
  .fm-table tr { display: table-row; padding: 0; }
  .fm-table th, .fm-table td { padding: 1rem 1.25rem; border-top: 1px solid var(--fm-line); vertical-align: top; }
  .fm-table thead th { border-top: 0; background: var(--c-slate-50, #f5f7f8); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-muted); }
  .fm-table td::before { content: none; }
  .fm-table td { white-space: nowrap; }
  .fm-deanband-inner { grid-template-columns: auto 1fr; align-items: center; column-gap: 2rem; }
  .fm-deanband-inner .fm-btn { grid-column: 2; justify-self: start; }
  .fm-field-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .fm-float-wrap { margin-top: -96px; }
  .fl-home-atlas .fac-hero .hero-controls { bottom: calc(1.6rem + 96px); }
  .fm-quote-inner { grid-template-columns: auto 1fr; gap: 3rem; }
  .fm-quote-photo .avatar-xxl { width: 200px; height: 240px; }
  .fm-ruled { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-levels { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .fm-stack-row { grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: baseline; }
  .fm-projects { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  .fm-partner-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .fm-practice { grid-template-columns: auto 1fr; gap: 1.5rem; }
  .fm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-cell-about, .fm-cell-quick { grid-column: 1 / -1; }
  .fm-path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fm-path .fm-step:not(:last-child)::after { content: ""; position: absolute; top: calc(clamp(1.4rem, 2.8vw, 2rem) + 21px); right: -1rem; width: 1rem; height: 2px; background: var(--c-sky-200, #b6e0f7); }
  .fm-clinic-events .fm-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .fm-float { grid-template-columns: minmax(0, 1fr) 280px; gap: 3.5rem; }
  .fm-float-facts { padding-left: 2.5rem; border-left: 1px solid var(--fm-line); }
  .fm-atlas-split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .fm-atlas-split .fm-head { position: sticky; top: calc(var(--sticky-h, 56px) + 1.5rem); flex-direction: column; align-items: flex-start; }
  .fm-atlas-news { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; }
  .fm-timeline { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .fm-timeline li { padding: 1.75rem 1.5rem 0 0; border-left: 0; border-top: 2px solid var(--fm-tint); }
  .fm-timeline li::before { left: 0; top: -7px; }
  .fm-atlas-news.is-single, .fm-clinic-news.is-single, .fm-ledger-updates.is-single, .fm-campus-cal.is-single { grid-template-columns: 1fr; }
  .fm-news { grid-template-columns: 1fr; }
  .is-single .fm-news { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
  .fm-tiles { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .fm-meridian-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
  .fm-meridian-intro.is-single { grid-template-columns: minmax(0, 1fr); }
  .fm-board { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 3rem; }
  .fm-meridian-close, .fm-clinic-close { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .fm-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .fm-cell-about { grid-column: span 7; }
  .fm-bento--2 .fm-cell-about { grid-row: span 2; }
  .fm-bento--0 .fm-cell-about { grid-column: 1 / -1; }
  .fm-cell-practice, .fm-cell-dean { grid-column: span 5; }
  .fm-cell-quick { grid-column: 1 / -1; }
  .fm-ledger-updates { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 3rem; }
  .fm-campus-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .fm-campus-intro.is-single { grid-template-columns: minmax(0, 1fr); }
  .fm-mosaic { grid-auto-rows: 150px; }
  .fm-field { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .fm-campus-cal { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .fm-clinic-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .fm-clinic-news { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; }
}

/* ================================================================ motifs: a quiet accent behind the first content block */
.fm-motif-host { isolation: isolate; overflow: clip; }
.fm-motif-host::before { content: ""; position: absolute; z-index: -1; pointer-events: none; }
/* arc: a large thin ring at the right edge */
.fl-motif-arc .fm-motif-host::before { top: -120px; right: -180px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid var(--fac-200, #c0dcff); outline: 1px solid var(--fac-100, #e1eeff); outline-offset: 36px; }
/* grid: a fading blueprint grid */
.fl-motif-grid .fm-motif-host::before { inset: 0; background-image: linear-gradient(var(--fac-100, #e1eeff) 1px, transparent 1px), linear-gradient(90deg, var(--fac-100, #e1eeff) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); opacity: .7; }
/* wave: soft bands along the bottom */
.fl-motif-wave .fm-motif-host::before { left: 0; right: 0; bottom: 0; height: 120px; background: radial-gradient(120% 100% at 50% 100%, var(--fac-50, #f1f7ff) 40%, transparent 41%) 0 100% / 240px 80px repeat-x, radial-gradient(120% 100% at 50% 0%, transparent 40%, var(--fac-50, #f1f7ff) 41%) 120px 100% / 240px 80px repeat-x; opacity: .9; }
/* line: a gold rule above the first heading */
.fl-motif-line .fm-motif-host::before { top: 0; left: 50%; width: min(1200px, calc(100% - 32px)); height: 4px; transform: translateX(-50%); background: linear-gradient(90deg, var(--fm-gold) 0 80px, var(--fm-line) 80px); }
/* dot: a dotted field at the top left */
.fl-motif-dot .fm-motif-host::before { top: 24px; left: 0; width: min(320px, 60%); height: 200px; background-image: radial-gradient(var(--fac-200, #c0dcff) 1.5px, transparent 1.6px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 75%); mask-image: linear-gradient(135deg, #000, transparent 75%); }
/* the floating panel (atlas) carries the motif inside its corner instead */
.fl-motif-arc .fm-float, .fl-motif-dot .fm-float, .fl-motif-line .fm-float, .fl-motif-wave .fm-float, .fl-motif-grid .fm-float { position: relative; overflow: hidden; }
.fl-motif-arc .fm-float::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid var(--fac-200, #c0dcff); pointer-events: none; }
.fl-motif-dot .fm-float::after { content: ""; position: absolute; right: 0; top: 0; width: 160px; height: 120px; background-image: radial-gradient(var(--fac-200, #c0dcff) 1.5px, transparent 1.6px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(225deg, #000, transparent 75%); mask-image: linear-gradient(225deg, #000, transparent 75%); pointer-events: none; }
.fl-motif-line .fm-float::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--fm-gold) 0 96px, transparent 96px); pointer-events: none; }
.fm-float > * { position: relative; z-index: 1; }

/* ================================================================ motion */
@media (prefers-reduced-motion: reduce) {
  .fm *, .fm *::before, .fm *::after { transition: none !important; animation: none !important; }
  .fm-news-lead:hover .fm-news-img, .fm-mosaic-cell:hover .fm-mosaic-img, .fm-circles a:hover .fm-circle { transform: none; }
}
@media print {
  .fm-float-wrap { margin-top: 0; }
  .fm-float, .fm-news-lead, .fm-step { box-shadow: none; }
  .fm-quote, .fm-figures-wrap, .fm-field-card, .fm-project { background: #fff !important; color: #000 !important; }
}
