/* KSN Brand & Business Toolkit – shared styles.
   Colours, fonts and spacing come from tokens.css (the KSN design system); use the variables, not hex values.
   Sections: base · layout · header & footer · buttons & links · page furniture · resource lists ·
   home · filters · cards · profile · colours & fonts · index · responsive */

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--dark-teal); font-family: var(--font-sans); min-height: 100vh; display: flex; flex-direction: column; }
main { flex-grow: 1; }
a { color: var(--dark-teal); }
a:hover { color: var(--orange); }
img { max-width: 100%; }
h1, h2, h3, h4, p, ul, dl, figure { margin: 0; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.icon { display: inline-block; flex-shrink: 0; width: 24px; height: 24px; fill: currentColor; color: var(--orange); vertical-align: middle; }
.icon--16 { width: 16px; height: 16px; } .icon--18 { width: 18px; height: 18px; } .icon--20 { width: 20px; height: 20px; }
.icon--28 { width: 28px; height: 28px; } .icon--36 { width: 36px; height: 36px; } .icon--40 { width: 40px; height: 40px; }
.icon--48 { width: 48px; height: 48px; } .icon--72 { width: 72px; height: 72px; }
.muted { color: var(--slate); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 60; padding: 8px 16px; background: var(--dark-teal); color: var(--white); }
.skip-link:focus { top: 8px; color: var(--white); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding-left: 64px; padding-right: 64px; box-sizing: border-box; }
.page-main { width: 100%; padding-top: 48px; padding-bottom: 96px; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }

/* ---------- Header & footer (written by layout.js) ---------- */
.site-header { position: relative; background: var(--white); border-top: 4px solid var(--orange); border-bottom: 1px solid var(--silver-grey); }
.site-header__inner { height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
/* Logo, divider and title are centred on one another. At line-height 1 the title's capitals sit in the
   middle of its line (Instrument Sans: ascent 0.97, descent 0.25, caps 0.72), so they centre on the logo. */
.site-header__brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.site-header__logo { display: flex; flex-shrink: 0; }
.site-header__logo img { height: 34px; width: auto; max-width: none; display: block; }
.site-header__divider { flex-shrink: 0; width: 1px; height: 34px; background: var(--silver-grey); }
.site-title { margin-left: -4px; font-size: 40px; line-height: 1; color: var(--orange); letter-spacing: -0.5px; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav__link { font-size: 16px; line-height: 24px; text-decoration: none; padding-bottom: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav__link[aria-current="page"] { color: var(--orange); font-weight: 600; border-bottom-color: var(--orange); }
.menu-toggle { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 4px; border: 0; background: none; font: 600 15px var(--font-sans); color: var(--dark-teal); cursor: pointer; }
.menu-toggle .icon { color: var(--dark-teal); }
.menu-toggle__close { display: none; }
.page-banner { height: 240px; background: var(--dark-teal) url(../img/banner.jpg) center / cover no-repeat; }
.site-footer { background: var(--dark-teal); color: var(--white); }
.site-footer__inner { padding-top: 48px; padding-bottom: 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer__inner img { height: 40px; width: auto; max-width: none; flex-shrink: 0; display: block; }
.site-footer__text { text-align: right; font-size: 14px; line-height: 1.6; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(243, 243, 244, 0.85); box-shadow: 0 1px 4px rgba(0, 62, 82, 0.12); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background-color .2s; }
.to-top .icon { color: var(--dark-teal); }
.to-top:hover { background: var(--orange); }
.to-top:hover .icon { color: var(--white); }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 22px; border: 1px solid transparent; border-radius: 0; box-sizing: border-box; font: 600 16px/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--dark-teal); color: var(--white); }
.btn--primary .icon { color: var(--white); }
.btn--primary:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--dark-teal); border-color: var(--dark-teal); }
.btn--secondary:hover { background: var(--silver-grey-tint); color: var(--dark-teal); }
.btn--outline { height: 38px; padding: 0 32px; background: transparent; color: var(--dark-teal); border-color: var(--slate); font-size: 14px; font-weight: 400; }
.btn--outline:hover { background: var(--silver-grey-tint); color: var(--dark-teal); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.text-link--small { font-size: 14px; gap: 6px; text-underline-offset: 3px; }
.text-link:hover { color: var(--orange); }
/* Underlined link that shows an arrow on hover – used in cards and short link lists */
.arrow-link { position: relative; display: flex; align-items: center; gap: 6px; width: 100%; box-sizing: border-box; margin-left: -6px; padding: 4px 28px 4px 6px; font-size: 14px; line-height: 1.4; text-decoration: underline; text-decoration-color: var(--silver-grey); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: background-color .2s, text-decoration-color .2s; }
.arrow-link::after { content: '\2192'; position: absolute; right: 8px; top: 50%; color: var(--orange); opacity: 0; transform: translate(-4px, -50%); transition: opacity .2s, transform .2s; }
.arrow-link:hover, .arrow-link:focus-visible { color: var(--dark-teal); background-color: var(--silver-grey-tint); text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.arrow-link:hover::after, .arrow-link:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.link-list { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.link-list--card { margin: 8px 8px 0; padding-top: 8px; border-top: 1px solid var(--silver-grey); }
button.arrow-link { border: 0; background: none; font-family: inherit; color: var(--dark-teal); text-align: left; cursor: pointer; }
.link-list--card .arrow-link { padding-right: 20px; white-space: nowrap; }
.link-list--card .arrow-link::after { right: 4px; }

/* ---------- Page furniture ---------- */
.breadcrumb { font-size: 14px; line-height: 1.5; color: var(--slate); }
.breadcrumb a { text-decoration: underline; text-decoration-color: var(--silver-grey); text-underline-offset: 3px; }
.breadcrumb span[aria-hidden] { margin: 0 6px; }
.page-title { display: flex; align-items: center; gap: 20px; margin: 32px 0 16px; }
.page-title h1 { font-size: 48px; line-height: 1.1; font-weight: 400; color: var(--orange); }
.page-intro { margin: 0 0 48px; max-width: 760px; font-size: 18px; line-height: 1.55; }
.page-note { margin-top: 48px; font-size: 14px; line-height: 1.6; color: var(--slate); }
.page-intro--tight { margin-bottom: 16px; }
.page-end { margin-top: 72px; }
.page-end .page-note { margin-top: 0; }
.page-note a, .sidebar a:not(.btn) { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.sidebar { background: var(--silver-grey-tint); padding: 32px; }
.sidebar h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--orange); }
.sidebar p { font-size: 15px; line-height: 1.6; }
.sidebar .btn { margin-top: 20px; }
.sidebar__foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--silver-grey); }
.sidebar a.sidebar__strong { font-weight: 600; }
.tick-list { list-style: none; padding: 0; display: grid; gap: 14px; font-size: 15px; line-height: 1.55; }
.tick-list li { display: grid; grid-template-columns: 18px 1fr; }
.tick-list li::before { content: '\203A'; color: var(--orange); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--orange); margin-bottom: 24px; }
.section-head h2 { font-size: 28px; line-height: 1.2; font-weight: 400; }
.section-head > span, .section-head > a { font-size: 14px; color: var(--slate); }
.subhead { padding-bottom: 12px; border-bottom: 1px solid var(--dark-teal); font-size: 14px; line-height: 1.4; font-weight: 600; }
.photo-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; background: rgba(206, 207, 212, 0.85); color: var(--dark-teal); font-size: 12px; font-weight: 600; line-height: 1.4; }

/* ---------- Resource lists (built by resources.js) ---------- */
.res-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--dark-teal); }
.res-count { font-size: 14px; line-height: 1.4; font-weight: 600; }
.res-toolbar.filter-bar { padding: 16px; }
.res-toolbar.filter-bar .res-count { padding-bottom: 12px; }
.group-title { margin-top: 40px; padding-bottom: 10px; border-bottom: 1px solid var(--silver-grey); font-size: 20px; line-height: 1.3; font-weight: 400; color: var(--orange); }
.res-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--silver-grey); scroll-margin-top: 24px; }
.res-item--wide { grid-template-columns: 320px minmax(0, 1fr); }
.res-item--block { display: flex; flex-direction: column; gap: 10px; }
.res-item.is-target { box-shadow: inset 4px 0 0 var(--orange); padding-left: 20px; }
.res-thumb { aspect-ratio: 4 / 3; background: var(--silver-grey-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.res-item--wide .res-thumb { aspect-ratio: 16 / 9; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-thumb img.is-contain { object-fit: contain; }
.res-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.res-title { font-size: 22px; line-height: 1.25; font-weight: 600; }
.res-desc { font-size: 16px; line-height: 1.6; max-width: 620px; }
.res-meta { font-size: 14px; line-height: 1.5; color: var(--slate); }
.res-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 10px; }
.res-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.res-gallery img { width: 100%; aspect-ratio: var(--ratio, 4 / 3); object-fit: cover; display: block; border: 1px solid var(--silver-grey); box-sizing: border-box; }
.res-gallery figcaption { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--slate); }
.res-feature { width: 100%; max-width: 720px; display: block; margin-top: 14px; border: 1px solid var(--silver-grey); box-sizing: border-box; }
/* Drawn thumbnails */
.mini-doc { height: 86%; aspect-ratio: 1 / 1.414; background: var(--white); box-shadow: 0 1px 3px rgba(0, 62, 82, 0.12); border-top: 4px solid var(--orange); box-sizing: border-box; padding: 10px 10px 0; display: flex; flex-direction: column; }
.mini-doc__mark { align-self: flex-end; font-size: 9px; font-weight: 600; letter-spacing: 0.5px; }
.mini-doc__title { margin-top: 22px; font-size: 11px; line-height: 1.15; color: var(--orange); }
.mini-doc__line { margin-top: 6px; width: 70%; height: 3px; background: var(--silver-grey); }
.mini-doc__line--short { margin-top: 4px; width: 50%; }
.mini-doc__foot { margin-top: auto; margin-bottom: 10px; width: 40%; height: 2px; background: var(--dark-teal); }
.mini-doc--flyer { padding: 10px; }
.mini-doc--flyer .mini-doc__title { margin-top: 14px; }
.mini-doc__lockup { margin-top: auto; display: flex; gap: 6px; align-items: center; font-size: 7px; color: var(--slate); }
.mini-doc__lockup b { font-size: 8px; color: var(--dark-teal); }
.mini-doc__lockup .mini-lockup__div { height: 10px; }
.mini-banner { height: 88%; aspect-ratio: 1 / 2.4; background: var(--dark-teal); border-top: 4px solid var(--orange); box-sizing: border-box; padding: 8px 6px; display: flex; flex-direction: column; justify-content: space-between; font-size: 9px; font-weight: 600; color: var(--white); }
.mini-banner__rule { height: 3px; background: var(--orange); }
.mini-lockup { width: 80%; height: 44%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 62, 82, 0.12); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 11px; color: var(--slate); }
.mini-lockup b { font-size: 13px; color: var(--dark-teal); }
.mini-lockup__div { width: 1px; height: 22px; background: var(--silver-grey); }

/* ---------- Form controls ---------- */
.control { height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--slate); border-radius: 0; background: var(--white); font: 400 15px var(--font-sans); color: var(--dark-teal); }
.select { position: relative; display: inline-block; }
.select select, select.control { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.select select { height: 44px; min-width: 240px; padding-left: 14px; border: 1px solid var(--slate); border-radius: 0; background: var(--white); font: 400 15px var(--font-sans); color: var(--dark-teal); }
.select .icon { position: absolute; right: 14px; top: 13px; pointer-events: none; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 16px; background: var(--silver-grey-tint); border-bottom: 1px solid var(--dark-teal); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field--grow { flex: 1 1 320px; }
.field .select select { min-width: 200px; }
.search-input { position: relative; display: block; }
.search-input .icon { position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; }
.search-input input { width: 100%; padding-left: 44px; }
.results-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 16px 0 8px; font-size: 14px; color: var(--slate); }
.clear-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--dark-teal); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; cursor: pointer; }
.empty-state { padding: 48px 0; border-top: 1px solid var(--silver-grey); }
.empty-state p:first-child { margin-bottom: 8px; font-size: 20px; font-weight: 600; }
.empty-state p + p { font-size: 16px; line-height: 1.6; }

/* ---------- Cards (people and projects) ---------- */
.card-group { margin-top: 40px; }
.card-grid { display: grid; }
.card-grid--people { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.card-grid--projects { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.person-card { display: flex; flex-direction: column; border-bottom: 1px solid var(--silver-grey); padding-bottom: 12px; transition: border-color .3s, background-color .3s, transform .25s ease; }
.person-card:hover { border-bottom-color: var(--orange); background-color: #f8f8f9; transform: translateY(-3px); }
.person-card__photo { position: relative; display: block; aspect-ratio: 10 / 7; overflow: hidden; background: var(--silver-grey-tint); }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; transition: transform .4s; }
.person-card:hover .person-card__photo img { transform: scale(1.03); }
.person-card__name { margin: 10px 8px 0; font-size: 16px; line-height: 1.3; font-weight: 600; }
.person-card__name a { text-decoration: none; }
.person-card__role { margin: 2px 8px 0; font-size: 13px; line-height: 1.4; color: var(--slate); min-height: 36px; }
.project-card { display: flex; flex-direction: column; padding-bottom: 14px; border-bottom: 1px solid var(--silver-grey); transition: background-color .3s, transform .25s ease; }
.project-card:hover { background-color: #f8f8f9; transform: translateY(-3px); }
.project-card__photo { position: relative; display: block; aspect-ratio: 8 / 5; overflow: hidden; background: var(--silver-grey-tint); border-bottom: 4px solid var(--orange); }
.project-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card__photo .photo-label { padding: 4px 10px; }
.project-card__name { margin: 14px 14px 0; font-size: 20px; line-height: 1.25; font-weight: 400; color: var(--orange); }
.project-card__sector { margin: 4px 14px 0; font-size: 14px; line-height: 1.4; letter-spacing: 0.3px; color: var(--slate); }
.project-card .link-list--card { margin: 12px 14px 0; padding-top: 10px; }

/* ---------- Home ---------- */
.hero { background-color: var(--white); background-image: linear-gradient(to bottom, rgba(255,255,255,0) 0, rgba(255,255,255,0) calc(100% - 210px), rgba(255,255,255,.35) calc(100% - 155px), rgba(255,255,255,.8) calc(100% - 90px), #ffffff calc(100% - 24px), #ffffff 100%), url(../img/hero.jpg);
  background-size: 100% 100%, cover; background-position: center; background-repeat: no-repeat; box-shadow: inset 0 -3px 0 #ffffff, 0 2px 0 #ffffff; }
.hero__inner { padding-top: 112px; padding-bottom: 240px; color: var(--white); }
.hero h1 { margin-bottom: 40px; font-size: 58.67px; line-height: 0.9; font-weight: 400; color: var(--white); }
.search-form { display: flex; max-width: 960px; }
.search-form__field { flex-grow: 1; position: relative; }
.search-form__field > .icon { position: absolute; left: 20px; top: 17px; width: 22px; height: 22px; }
.search-form input { width: 100%; box-sizing: border-box; height: 56px; padding: 0 20px 0 56px; border: 1px solid var(--white); border-radius: 0; font: 400 18px var(--font-sans); color: var(--dark-teal); background: var(--white); }
.search-form button { height: 56px; padding: 0 32px; border: 1px solid var(--white); border-left: 0; border-radius: 0; background: var(--orange); color: var(--white); font: 600 16px var(--font-sans); cursor: pointer; transition: background-color .2s; }
.search-form button:hover, .search-form button:focus-visible { background: var(--dark-teal); }
.hero__note { margin-top: 10px; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--white); }
.tasks { position: relative; margin-top: -112px; padding-bottom: 32px; }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px; border: 1px solid var(--silver-grey); border-top: 2px solid var(--orange); background: var(--white); text-decoration: none; transition: border-color .3s, background-color .3s, transform .25s ease; }
/* Cards lift slightly on hover (also .person-card and .project-card) */
.tile:hover { color: var(--dark-teal); border-bottom-color: var(--orange); background-color: #f8f8f9; transform: translateY(-3px); }
.tile__title { margin-top: 4px; font-size: 20px; line-height: 1.3; font-weight: 600; }
.tile__sub { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 16px; line-height: 1.5; }
.tile__sub span:last-child { color: var(--orange); font-size: 20px; }
.support-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-top: 40px; padding-top: 20px; font-size: 17px; line-height: 1.5; }
.support-links strong { font-weight: 600; }
.support-links a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.support-links span[aria-hidden] { color: var(--silver-grey); }
.quick-links { margin-top: 48px; background: var(--silver-grey-tint); }
.quick-links .wrap, .home-section { padding-top: 80px; padding-bottom: 80px; }
.home-h2 { margin-bottom: 8px; font-size: 36px; line-height: 1.3; font-weight: 400; }
.home-h2--icon { display: flex; align-items: center; gap: 12px; }
.home-lead { margin-bottom: 40px; font-size: 16px; line-height: 1.5; }
.home-lead--tight { margin-bottom: 24px; }
.list-grid { list-style: none; padding: 0; border-top: 1px solid var(--silver-grey); }
.list-grid--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.list-grid li { border-bottom: 1px solid var(--silver-grey); }
.list-link { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; text-decoration: none; }
.list-link:hover .list-link__name { color: var(--orange); }
.list-link__arrow { color: var(--orange); }
.list-link__name { flex-grow: 1; font-size: 16px; line-height: 1.5; }
.list-link__sub, .list-link__date { font-size: 14px; color: var(--slate); }
.list-link--recent { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; }
.list-link--recent .list-link__name { font-size: 17px; line-height: 1.4; }
.list-link__text { display: flex; flex-direction: column; }
.list-link__date { white-space: nowrap; }
.more-link { display: inline-block; margin-top: 24px; font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.sidebar__note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--silver-grey); font-size: 14px !important; color: var(--slate); }

/* ---------- Search (search.js) ---------- */
.search-form__field .suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 4px; background: var(--white); border: 1px solid var(--silver-grey); box-shadow: 0 8px 24px rgba(0, 62, 82, 0.12); color: var(--dark-teal); text-align: left; }
.suggest ul { list-style: none; margin: 0; padding: 6px 0; }
.suggest .result { padding: 8px 16px; }
.suggest__all { display: block; padding: 12px 16px; border-top: 1px solid var(--silver-grey); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.suggest__none { padding: 16px; font-size: 15px; }
.results { list-style: none; padding: 0; border-top: 1px solid var(--silver-grey); }
.results li { border-bottom: 1px solid var(--silver-grey); }
.result { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; text-decoration: none; }
.results .result { padding: 12px 8px; }
.result:hover, .result:focus-visible { background: var(--silver-grey-tint); color: var(--dark-teal); }
.result:hover .result__title { color: var(--orange); }
.result__pic { width: 48px; height: 34px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--silver-grey-tint); }
.result__pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.result__text { display: flex; flex-direction: column; min-width: 0; }
.result__title { font-size: 16px; line-height: 1.4; font-weight: 600; }
.result__sub { font-size: 14px; line-height: 1.4; color: var(--slate); }
.result__arrow { color: var(--orange); font-size: 18px; }

/* ---------- Profile ---------- */
.profile, .profile-section { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 56px; align-items: start; }
.profile { margin-top: 32px; }
.profile-section { margin-top: 64px; }
.profile__photo { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; object-position: center 20%; display: block; background: var(--silver-grey-tint); }
.profile__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.profile__actions .btn { font-size: 15px; padding: 0 20px; }
.profile .page-title { margin-top: 0; margin-bottom: 8px; }
.profile__role { margin-bottom: 4px; font-size: 22px; line-height: 1.4; }
.profile__unit { margin-bottom: 28px; font-size: 16px; line-height: 1.5; color: var(--slate); }
.facts { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; padding: 20px 0; border-top: 1px solid var(--silver-grey); border-bottom: 1px solid var(--silver-grey); font-size: 15px; line-height: 1.5; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.facts a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.profile-section__head { padding-top: 16px; border-top: 1px solid var(--orange); }
.profile-section__head h2 { display: flex; align-items: center; gap: 12px; font-size: 28px; line-height: 1.2; font-weight: 400; }
.profile-section__head p { margin-top: 16px; font-size: 15px; line-height: 1.6; max-width: 400px; }
.profile-section__body { padding-top: 16px; border-top: 1px solid var(--silver-grey); }
.bio { margin-bottom: 16px; font-size: 18px; line-height: 1.6; max-width: 720px; }
.bio p + p { margin-top: 1em; }
.bio-meta { margin-bottom: 24px; font-size: 14px; color: var(--slate); }
.profile-section .link-list { max-width: 320px; }
.cv-table-wrap { padding-top: 4px; overflow-x: auto; }
.cv-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.cv-table tr { border-bottom: 1px solid var(--silver-grey); }
.cv-table th { padding: 16px 16px 16px 0; text-align: left; font-size: 16px; font-weight: 600; }
.cv-table th span { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--slate); }
.cv-table td { padding: 16px; font-size: 14px; white-space: nowrap; }
.cv-table td.cv-table__link { padding: 12px 0 12px 24px; width: 1%; }
.table-note { margin-top: 16px; font-size: 13px; color: var(--slate); }
.team { margin-top: 80px; }
.team .section-head a { text-decoration: underline; text-decoration-color: var(--silver-grey); text-underline-offset: 3px; }

/* ---------- Colours & fonts ---------- */
.swatch-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.swatch-grid--small { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.swatch { display: flex; flex-direction: column; }
.swatch-grid:not(.swatch-grid--small) .swatch { border-bottom: 1px solid var(--silver-grey); padding-bottom: 20px; }
.swatch__block { height: 400px; display: flex; flex-direction: column; }
.swatch__chip { flex-grow: 1; display: flex; align-items: flex-end; padding: 16px; box-sizing: border-box; font-size: 20px; line-height: 1.2; }
.swatch__chip--bordered { border: 1px solid var(--silver-grey); }
.swatch__tint { height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 13px; line-height: 1.3; }
.swatch__tint b { font-weight: 600; }
.swatch-grid--small .swatch__chip { flex-grow: 0; aspect-ratio: 3 / 2; padding: 12px; font-size: 15px; font-weight: 600; }
.values { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; margin-top: 14px; font-size: 14px; line-height: 1.45; }
.values dt { font-weight: 600; }
.values dd { margin: 0; }
.swatch__note { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--slate); }
.font-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.font-sample { background: var(--silver-grey-tint); padding: 28px; }
.font-sample__aa { font-size: 112px; line-height: 1; }
.font-sample__name { margin-top: 16px; font-size: 15px; font-weight: 600; }
.font-sample__use { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--slate); }
.alphabet { margin-top: 24px; font-size: 22px; line-height: 1.4; letter-spacing: 0.5px; word-break: break-all; }
.type-scale { width: 100%; border-collapse: collapse; }
.type-scale tr { border-bottom: 1px solid var(--silver-grey); }
.type-scale th { padding: 20px 24px 20px 0; text-align: left; vertical-align: top; width: 200px; font-size: 15px; font-weight: 600; }
.type-scale th span { display: block; font-size: 13px; font-weight: 400; color: var(--slate); }
.type-scale td { padding: 20px 24px 20px 0; vertical-align: top; }
.type-scale td:last-child { padding-right: 0; font-size: 14px; line-height: 1.5; color: var(--slate); white-space: nowrap; width: 1%; }
.icon-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0 12px; }
.icon-grid li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 8px 14px; border-bottom: 1px solid var(--silver-grey); font-size: 12px; line-height: 1.3; color: var(--slate); text-align: center; }
.aside-stack { display: grid; gap: 24px; }
.aside-plain { border-top: 1px solid var(--dark-teal); padding-top: 16px; }
.aside-plain h2 { margin-bottom: 12px; font-size: 14px; line-height: 1.4; font-weight: 600; }
.aside-plain .arrow-link { font-size: 15px; }

/* Colours & fonts extras */
.section-gap { margin-top: 72px; }
.section-gap--small { margin-top: 56px; }
.section-intro { max-width: 760px; margin-bottom: 8px; font-size: 16px; line-height: 1.6; }
.font-sample__aa--semibold { font-weight: 600; }
.res-meta--spaced { margin-top: 12px; }
.res-actions--spaced { margin-top: 28px; }
.type-scale td.is-orange { color: var(--orange); }

/* ---------- Brand resource index ---------- */
.index-filters { margin-top: 48px; }
.index-filters .field--grow { flex: 1 1 200px; }
.index-filters .select select { min-width: 170px; height: 40px; }
.index-filters .select .icon { top: 11px; }
.index-filters input.control { height: 40px; }
.index-filters .btn { height: 40px; }
.reg-wrap { overflow-x: auto; margin-top: 16px; }
.reg { width: 100%; min-width: 1040px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.reg th, .reg td { padding: 16px; text-align: left; vertical-align: top; }
.reg th:first-child, .reg td:first-child { padding-left: 0; }
.reg th:last-child, .reg td:last-child { padding-right: 0; }
.reg thead tr { border-bottom: 1px solid var(--dark-teal); }
.reg th { padding-top: 12px; padding-bottom: 12px; font-size: 14px; font-weight: 600; }
.reg tbody tr { border-bottom: 1px solid var(--silver-grey); }
.reg__name a { font-weight: 600; text-decoration: none; }
.reg__name a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.reg tr.is-retired, .reg tr.is-retired a { color: var(--slate); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--dark-teal); font-size: 13px; font-weight: 600; white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; background: currentColor; }
.status--in-review { border-color: var(--orange); }
.status--in-review::before { background: var(--orange); }
.status--retired { border-color: #8a8d96; }
.status--retired::before { background: #8a8d96; }
.status-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
.status-key div { border-top: 1px solid var(--orange); padding-top: 16px; }
.status-key p:first-child { margin-bottom: 6px; font-weight: 600; }
.status-key p + p { font-size: 15px; line-height: 1.5; }

/* ---------- Responsive ---------- */
/* Header: below 1180px the title gets smaller; below 1100px the links move into the Menu button */
@media (max-width: 1180px) {
  .site-title { font-size: 32px; }
}
@media (max-width: 1100px) {
  .site-header__inner { position: relative; height: 96px; }
  .site-title { font-size: 30px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 16px; background: var(--white); border-bottom: 1px solid var(--silver-grey); box-shadow: 0 8px 16px rgba(0, 62, 82, 0.08); }
  .site-header.is-open .site-nav { display: flex; }
  .site-header.is-open .menu-toggle__open { display: none; }
  .site-header.is-open .menu-toggle__close { display: inline-block; }
  .site-nav__link { padding: 14px 0; border-bottom: 1px solid var(--silver-grey); }
  .site-nav__link[aria-current="page"] { border-bottom-color: var(--silver-grey); }
  .site-nav .btn { margin-top: 16px; height: 44px; }
}
@media (max-width: 1100px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  .card-grid--people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid--projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatch-grid--small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .icon-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .profile, .profile-section { grid-template-columns: 360px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 900px) {
  .with-sidebar, .profile, .profile-section { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .site-title { font-size: 26px; letter-spacing: 0; }
  .site-header__inner { height: 80px; }
  .tile-grid, .list-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-key { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header__inner { height: 64px; }
  .site-header__brand { gap: 10px; }
  .site-header__logo img { height: 24px; }
  .site-header__divider { height: 24px; }
  .site-title { font-size: 17px; font-weight: 600; white-space: normal; line-height: 1.2; }
  .page-banner { height: 120px; }
  .res-item, .res-item--wide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .res-thumb { max-width: 360px; }
  .tile-grid, .list-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .swatch__block { height: 320px; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .page-main { padding-top: 32px; padding-bottom: 64px; }
  .page-title { gap: 14px; }
  .page-title h1 { font-size: 36px; }
  .page-title .icon--48 { width: 36px; height: 36px; }
  .card-grid--people, .card-grid--projects, .res-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatch-grid, .swatch-grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .font-samples { grid-template-columns: minmax(0, 1fr); }
  .icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__inner { align-items: flex-start; }
  .site-footer__text { text-align: left; }
  .hero { background-image: linear-gradient(to bottom, rgba(255,255,255,0) 0, rgba(255,255,255,0) calc(100% - 210px), rgba(255,255,255,.35) calc(100% - 155px), rgba(255,255,255,.8) calc(100% - 90px), #ffffff calc(100% - 24px), #ffffff 100%), url(../img/hero-mobile.jpg); }
  .hero__inner { padding-top: 48px; padding-bottom: 160px; }
  .hero h1 { font-size: 40px; line-height: 1; margin-bottom: 28px; }
  .search-form { flex-direction: column; }
  .search-form button { border-left: 1px solid var(--white); }
  .res-toolbar .field, .select, .select select { width: 100%; }
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .site-nav { padding-left: 16px; padding-right: 16px; }
  .page-banner { background-position: 80% center; }
  .res-item { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .res-item--wide { grid-template-columns: minmax(0, 1fr); }
  .res-thumb .icon--72 { width: 40px; height: 40px; }
  .res-thumb .mini-doc { padding: 6px 6px 0; }
  .res-thumb .mini-doc__title { margin-top: 10px; font-size: 7px; }
  .res-thumb .mini-doc__mark { font-size: 6px; }
  .res-title { font-size: 19px; }
  .section-head { flex-direction: column; gap: 4px; }
  .section-head h2 { font-size: 24px; }
  .link-list--card .arrow-link { white-space: normal; }
  .type-scale, .type-scale tbody, .type-scale tr, .type-scale th, .type-scale td { display: block; width: auto !important; }
  .type-scale th { padding: 16px 0 4px; }
  .type-scale td { padding: 4px 0; }
  .type-scale td:last-child { padding-bottom: 16px; white-space: normal; }
  .type-scale td.display { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .person-card, .project-card, .person-card__photo img { transition: none; }
  .tile:hover, .person-card:hover, .project-card:hover { transform: none; }
}
@media print {
  .site-nav, .menu-toggle, .to-top, .skip-link { display: none !important; }
}
