/* UCAM and Focus University Institute landing pages.
   Identity from the source documents: navy #1F4E79, grey #595959, Aptos Display headings.
   System fonts only; no third-party requests. */

:root {
  --navy: #1f4e79;
  --navy-deep: #123150;
  --ink: #0f2233;
  --text: #1c2b3a;
  --grey: #595959;
  --paper: #f2f5f8;
  --rule: #d3dce5;
  --tint: #e2ebf4;
  --sky: #a9c8e4;
  --white: #fff;
  --pad: clamp(20px, 4vw, 64px);
  --gap: clamp(16px, 2.2vw, 36px);
  --radius: 4px;
  --display: "Aptos Display", "Aptos", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: "Aptos", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #e8a33d; outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 0.9em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
[id] { scroll-margin-top: 16px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--white); color: var(--navy); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--pad), 1560px); margin-inline: auto; }

/* type */
.h1, .h2, .h3, .h4 { font-family: var(--display); color: inherit; margin: 0; letter-spacing: -0.01em; }
.h1 { font-size: clamp(2.5rem, 6.2vw, 6.6rem); line-height: 0.98; font-weight: 700; letter-spacing: -0.03em; }
.h1__tag { display: inline-block; font-size: 0.42em; letter-spacing: 0.02em; vertical-align: 0.9em; margin-left: 0.2em; padding: 0.06em 0.3em 0.02em; border: 2px solid currentColor; border-radius: var(--radius); }
.h2 { font-size: clamp(1.9rem, 3.7vw, 3.6rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; max-width: 22ch; margin-bottom: clamp(28px, 3.5vw, 56px); }
.h3 { font-size: clamp(1.2rem, 1.5vw, 1.5rem); line-height: 1.2; font-weight: 700; margin-bottom: 0.6em; }
.h4 { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; margin-bottom: 0.4em; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 1.1em; }
.eyebrow--light { color: var(--sky); }
.code { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--navy); margin: 0 0 0.35em; }
.note { font-size: 0.9375rem; color: var(--grey); }
.muted { color: var(--grey); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* status strip and masthead */
.status { background: var(--ink); color: #d8e3ee; font-size: 0.875rem; }
.status__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.status__text { margin: 0; display: flex; align-items: center; gap: 10px; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #e8a33d; flex: none; }
.langs ul { list-style: none; display: flex; gap: 4px; }
.langs a { display: inline-block; padding: 4px 10px; color: #d8e3ee; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius); font-weight: 600; }
.langs a:hover { border-color: rgba(216, 227, 238, 0.5); }
.langs a[aria-current="page"] { background: #d8e3ee; color: var(--ink); }

.mast { border-bottom: 1px solid var(--rule); background: var(--white); }
.mast__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: 14px; color: var(--navy); text-decoration: none; font-family: var(--display); flex: none; }
.wordmark__a { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.04em; }
.wordmark__rule { width: 1px; height: 30px; background: currentColor; opacity: 0.45; }
.wordmark__b { font-size: 1.05rem; font-weight: 600; line-height: 1.1; max-width: 9.5em; }
.sitenav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 4px; }
.sitenav a { display: inline-block; padding: 8px 10px; color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 600; border-radius: var(--radius); }
.sitenav a:hover { color: var(--navy); background: var(--tint); }

/* hero */
.hero { background: var(--navy); color: var(--white); padding: clamp(40px, 6vw, 96px) 0 clamp(36px, 4vw, 64px); }
.hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap) calc(var(--gap) * 2); align-items: end; }
.hero__vision { margin: 0; border-left: 3px solid var(--sky); padding-left: clamp(16px, 2vw, 28px); }
.hero__vision blockquote { margin: 0; }
.hero__vision p { font-family: var(--display); font-size: clamp(1.15rem, 1.55vw, 1.5rem); line-height: 1.4; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); margin: clamp(40px, 5vw, 72px) 0 0; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.stat { padding: 20px 20px 4px 0; border-right: 1px solid rgba(255, 255, 255, 0.2); padding-left: 20px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__k { margin: 0; line-height: 1; }
.stat__n { font-family: var(--display); font-size: clamp(2.2rem, 3.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__u { display: block; margin-top: 8px; font-weight: 700; font-size: 1rem; }
.stat__d { margin: 8px 0 0; color: #d8e3ee; font-size: 0.9375rem; line-height: 1.4; }
.hero__accr { margin: 28px 0 0; color: #d8e3ee; font-size: 0.9375rem; max-width: 80ch; }

/* sections */
.section { padding: clamp(56px, 7vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.sub-h { margin-top: clamp(24px, 3vw, 48px); }

/* structure */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: calc(var(--gap) * 1.6); align-items: start; }
.table caption { text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.125rem; color: var(--ink); padding-bottom: 12px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.table thead th { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); border-bottom: 2px solid var(--ink); padding-top: 0; }
.table tbody th { font-weight: 600; }
.table .num { text-align: right; padding-left: 14px; padding-right: 28px; }
.table .num:last-child { padding-right: 0; }
.block { background: var(--white); border-top: 4px solid var(--navy); padding: clamp(20px, 2.4vw, 36px); }
.block__big { margin: 0 0 12px; line-height: 1; }
.block__n { font-family: var(--display); font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 700; color: var(--navy); letter-spacing: -0.03em; }
.block__u { font-weight: 700; }
.bar { height: 10px; background: var(--tint); margin: 0 0 20px; }
.bar__fill { display: block; height: 100%; background: var(--navy); }
.blocklist { list-style: none; border-top: 1px solid var(--rule); margin: 8px 0 20px; }
.blocklist li { border-bottom: 1px solid var(--rule); }
.blocklist a { display: grid; grid-template-columns: 6.2em 1fr auto; gap: 12px; padding: 10px 0; text-decoration: none; color: var(--text); align-items: baseline; }
.blocklist a:hover .blocklist__t { text-decoration: underline; }
.blocklist .code { margin: 0; }
.blocklist__c { font-size: 0.875rem; color: var(--grey); white-space: nowrap; }
.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 20px; margin-bottom: 0.7em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 2px; background: var(--navy); }

/* courses */
.course { display: grid; grid-template-columns: 4fr 8fr; gap: calc(var(--gap) * 1.6); padding: clamp(32px, 4vw, 64px) 0; border-top: 2px solid var(--ink); }
.course:last-child { padding-bottom: 0; }
.course__head { position: relative; }
.course__num::before { content: attr(data-num); }
.course__num { font-family: var(--display); font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 700; line-height: 0.85; color: var(--tint); letter-spacing: -0.04em; margin: 0 0 12px; }
.course__t { font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: -0.02em; }
.course__meta { color: var(--grey); font-size: 0.9375rem; }
.course__desc { font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); line-height: 1.6; max-width: 72ch; }
.kv { margin: 20px 0 0; }
.kv div { padding: 10px 0; border-top: 1px solid var(--rule); }
.kv dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); }
.kv dd { margin: 2px 0 0; font-size: 0.9375rem; }
.kv--wide { margin: 0 0 20px; }
.callout { background: var(--paper); border-left: 3px solid var(--navy); padding: 16px 20px 6px; margin: 20px 0 28px; max-width: 72ch; }
.callout__k { font-weight: 700; color: var(--navy); margin-bottom: 0.3em; }
.clos { list-style: none; counter-reset: clo; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); margin-bottom: 20px; }
.clos > li { counter-increment: clo; position: relative; padding: 12px 0 12px 44px; border-top: 1px solid var(--rule); }
.clos > li::before { content: "CLO " counter(clo); position: absolute; left: 0; top: 14px; font-size: 0.75rem; font-weight: 700; color: var(--navy); width: 40px; line-height: 1.2; }
.clos p { margin: 0 0 6px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 0.75rem; font-weight: 700; color: var(--navy); background: var(--tint); padding: 2px 8px; border-radius: var(--radius); }
.more { border-top: 1px solid var(--rule); }
.more:last-child { border-bottom: 1px solid var(--rule); }
.more summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; align-items: center; gap: 12px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border: 2px solid currentColor; border-radius: var(--radius); font-size: 1rem; line-height: 1; flex: none; }
.more[open] summary::before { content: "\2212"; }
.more > *:not(summary) { margin-bottom: 24px; }
.table--weeks { font-size: 0.9375rem; }
.table--weeks th.num { width: 3.5em; color: var(--navy); font-weight: 700; text-align: left; padding-left: 0; }
.table--weeks td:nth-child(2) { width: 42%; }
.table--weeks3 td:nth-child(2) { width: 58%; }
.sub { list-style: none; margin-top: 4px; color: var(--grey); }
.biblist { list-style: none; columns: 2; column-gap: var(--gap); }
.biblist li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.outline { display: grid; grid-template-columns: 1fr 1fr; gap: 8px var(--gap); }
.outline > div { border-top: 1px solid var(--rule); padding-top: 12px; }
.outline .biblist { columns: 1; }

/* teaching and assessment */
.section--ink .h2 { max-width: 26ch; }
.principles { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: clamp(40px, 5vw, 80px); }
.principle { border-top: 1px solid rgba(255, 255, 255, 0.35); padding-top: 16px; }
.principle__n { font-family: var(--display); font-size: clamp(2.4rem, 3.6vw, 3.6rem); font-weight: 700; line-height: 1; margin: 0 0 6px; color: var(--sky); letter-spacing: -0.03em; }
.principle__u { font-weight: 700; margin-bottom: 8px; }
.principle p:last-child { color: #d0dbe6; font-size: 0.9375rem; }
.segs { display: flex; gap: 3px; margin: 0 0 40px; min-height: 96px; }
.seg { flex-basis: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; color: var(--ink); min-width: 0; }
.seg__w { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 2.2rem); line-height: 1; }
.seg__l { font-size: 0.8125rem; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
.seg--0 { background: #c9dcee; }
.seg--1 { background: #a9c8e4; }
.seg--2 { background: #86b0d6; }
.seg--3 { background: #b8d0e8; }
.seg--4 { background: #ffffff; }
.tl { margin: 0 0 40px; font-size: 0.875rem; }
.tl__row { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 16px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.tl__row--head { color: #d0dbe6; font-weight: 700; border-bottom-color: rgba(255, 255, 255, 0.35); }
.tl__k { color: #e6edf4; line-height: 1.3; }
.tl__cells { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.tl__cells--head span { text-align: center; font-variant-numeric: tabular-nums; }
.tl__c { height: 18px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; }
.tl__c.on { background: var(--sky); }
.tl__cells--4 .tl__c.on { background: #ffffff; }
.section--ink .table caption { color: var(--white); }
.section--ink .table th, .section--ink .table td { border-bottom-color: rgba(255, 255, 255, 0.18); }
.section--ink .table thead th { color: #c3d1de; border-bottom-color: var(--white); }
.section--ink .note { color: #c3d1de; }
.lead-s { margin-top: 24px; color: #d0dbe6; max-width: 90ch; }
.grading { margin-top: clamp(40px, 5vw, 72px); }
.table--grading th:first-child { font-family: var(--display); font-size: 1.25rem; width: 3em; }

/* admission */
.adm { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap) calc(var(--gap) * 1.4); }
.adm__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 0 0 clamp(16px, 2vw, 32px); border-top: 2px solid var(--ink); }
.adm__facts div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.adm__facts dt { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); }
.adm__facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.adm__col { grid-column: span 4; }
.adm--mba .adm__col { grid-column: span 6; }

/* outcomes */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card { border-top: 4px solid var(--navy); background: var(--paper); padding: 20px 22px 8px; }
.card p:last-child { font-size: 0.9375rem; }
.ilos { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 calc(var(--gap) * 1.4); }
.ilos li { display: grid; grid-template-columns: 4.2em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.ilos .code { margin: 0.2em 0 0; }
.ilos p { margin: 0; }

/* values */
.mission { display: grid; grid-template-columns: 3fr 9fr; gap: var(--gap); margin-bottom: clamp(32px, 4vw, 64px); }
.mission p:last-child { font-family: var(--display); font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.45; margin: 0; }
.values { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 calc(var(--gap) * 1.4); }
.values li { padding: 18px 0 6px; border-top: 1px solid var(--rule); }
.values li p { font-size: 0.9375rem; color: var(--text); }

/* institutions */
.inst { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--gap) * 1.4); margin-bottom: clamp(32px, 4vw, 64px); }
.inst > div { border-top: 4px solid var(--navy); padding-top: 20px; }
.table--staff td { font-size: 0.9375rem; }

/* developer */
.dev { display: grid; grid-template-columns: 5fr 7fr; gap: calc(var(--gap) * 2); align-items: start; }
.dev .h2 { margin-bottom: 12px; max-width: 12ch; }
.dev__creds { font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.6rem); color: var(--sky); font-weight: 600; }
.dev__body p { color: #e6edf4; }
.dev__body p:first-child { font-family: var(--display); font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.45; color: var(--white); }

/* footer */
.foot { background: var(--ink); color: #c9d6e2; padding: clamp(40px, 5vw, 72px) 0; font-size: 0.9375rem; }
.foot__grid { display: grid; grid-template-columns: 4fr 6fr 2fr; gap: calc(var(--gap) * 1.4); }
.wordmark--foot { color: var(--white); margin: 0 0 16px; }
.foot__k { font-weight: 700; color: var(--white); margin-bottom: 8px; }
.foot__src { list-style: none; }
.foot__src li { padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.foot a { color: #d8e3ee; }
.foot__langs { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

/* widths */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3n) { border-right: 0; }
  .stat:nth-child(3n + 1) { padding-left: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .adm__facts { grid-template-columns: repeat(3, 1fr); }
  .sitenav a { padding: 6px 8px; font-size: 0.875rem; }
}
@media (max-width: 960px) {
  .mast__row { flex-direction: column; align-items: flex-start; padding: 14px 0 6px; gap: 8px; }
  .sitenav { width: 100%; overflow-x: auto; }
  .sitenav ul { flex-wrap: nowrap; justify-content: flex-start; }
  .sitenav a { white-space: nowrap; }
  .hero__grid, .split, .course, .dev, .mission, .foot__grid { grid-template-columns: 1fr; }
  .course { gap: 20px; }
  .course__num { font-size: 3.5rem; margin: 0 0 4px; }
  .inst, .cards { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .adm__col { grid-column: span 6; }
  .foot__langs { align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .status__row { flex-wrap: wrap; padding: 6px 0; gap: 4px 12px; }
  .wordmark__a { font-size: 1.35rem; }
  .wordmark__b { font-size: 0.95rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child { padding: 16px 12px 4px 0; border-right: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.2); }
  .stat:nth-child(2n) { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
  .principles, .cards, .inst, .values, .ilos, .clos, .outline { grid-template-columns: 1fr; }
  .biblist { columns: 1; }
  .adm__facts { grid-template-columns: 1fr 1fr; }
  .adm__col { grid-column: 1 / -1; }
  .segs { flex-direction: column; min-height: 0; }
  .seg { flex-direction: row; align-items: center; gap: 12px; justify-content: flex-start; flex-grow: 0 !important; }
  .seg__w { min-width: 2.4em; }
  .tl__row { grid-template-columns: 1fr; gap: 6px; }
  .tl__row--head .tl__k { display: none; }
  .blocklist a { grid-template-columns: 5.4em 1fr; }
  .blocklist__c { display: none; }
  .table--weeks thead, .table--assess thead, .table--grading thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table--weeks tr, .table--assess tr, .table--grading tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .section--ink .table--assess tr, .section--ink .table--grading tr { border-bottom-color: rgba(255, 255, 255, 0.18); }
  .table--weeks th, .table--weeks td, .table--assess th, .table--assess td, .table--grading th, .table--grading td { display: block; border: 0; padding: 2px 0; width: auto !important; text-align: left; }
  .table--weeks td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); margin-top: 6px; }
  .table--weeks th.num::before { content: attr(data-label) " "; }
  .table--assess .num, .table--grading .num { padding-left: 0; }
  .table--modules th, .table--modules td { padding-right: 8px; }
}
@media print {
  .status, .sitenav, .skip { display: none; }
  .hero, .section--ink, .section--navy { color: #000; background: none; }
  .more:not([open]) > *:not(summary) { display: block; }
}
