/* IUBAT website design sprint, v3.
   Formal, mobile-first. Brand colours (red, green, gold) are used as structure: rules, tabs, blocks.
   Edit the variables below to retune the whole site. */

:root {
  --g9: #082f1b;      /* deepest green: footer, hero overlay */
  --g8: #0b3d26;      /* primary dark green: navigation, headings */
  --g7: #10603a;      /* buttons, links */
  --g6: #177a4a;
  --leaf: #2e9a5a;    /* agriculture / accent green */
  --g1: #e4f0e8;
  --g0: #f2f7f4;
  --red: #c4261d;     /* business / call to action */
  --red-d: #9f1d16;
  --gold: #e4a317;    /* technology / highlight */
  --gold-d: #a8740a;
  --gold-l: #fbf2d6;
  --ink: #111b16;
  --text: #27322c;
  --muted: #5a6760;
  --line: #d9dfdb;
  --line-s: #e8ece9;
  --paper: #f6f5f0;
  --alt: #f3f6f4;
  --white: #fff;
  --focus: #0b57d0;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --w: 1240px;
  --gx: 16px;          /* page side margin */
  --sec: 48px;         /* vertical rhythm between sections */
  --r: 4px;
  --shadow: 0 8px 28px rgba(8, 47, 27, .12);
}
@media (min-width: 720px) { :root { --gx: 28px; --sec: 64px; } }
@media (min-width: 1100px) { :root { --gx: 36px; --sec: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font: 400 16px/1.65 var(--sans); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
@media (min-width: 720px) { body { font-size: 17px; } }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--g7); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--g9); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--g8); line-height: 1.22; margin: 0 0 .55em; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.3rem); }
h4 { font: 700 1rem/1.35 var(--sans); color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
button { font: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: calc(var(--w) + 2 * var(--gx)); margin: 0 auto; padding: 0 var(--gx); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 16px; border: 2px solid var(--focus); z-index: 1000; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* tri-colour rule: the red, green and gold of the logo */
.bat { display: flex; height: 5px; }
.bat i { flex: 1; }
.bat i:nth-child(1) { background: var(--red); }
.bat i:nth-child(2) { background: var(--leaf); }
.bat i:nth-child(3) { background: var(--gold); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border: 1px solid var(--g7); background: var(--g7); color: #fff; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; border-radius: var(--r); cursor: pointer; text-align: center; }
.btn:hover { background: var(--g9); border-color: var(--g9); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: var(--red-d); border-color: var(--red-d); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #f0b52e; border-color: #f0b52e; color: var(--ink); }
.btn.line { background: transparent; color: var(--g7); }
.btn.line:hover { background: var(--g7); color: #fff; }
.btn.light { background: #fff; color: var(--g8); border-color: #fff; }
.btn.light:hover { background: var(--g1); border-color: var(--g1); color: var(--g8); }
.btn.line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn.line-light:hover { background: #fff; color: var(--g8); }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2rem; }
@media (max-width: 520px) { .btn-row .btn { flex: 1 1 100%; } }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more::after { content: " \203A"; }
.more:hover { text-decoration: underline; }

/* ---------- header ---------- */
.utility { display: none; background: var(--g9); color: #d3e5da; font-size: .85rem; }
.utility .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 38px; }
.utility ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.utility li { margin: 0; }
.utility a { color: #d3e5da; text-decoration: none; display: inline-block; padding: 9px 0; }
.utility a:hover { color: #fff; text-decoration: underline; }
.utility .right a { padding: 9px 0; }
@media (min-width: 981px) { .utility { display: block; } }

.site-header { background: #fff; position: relative; z-index: 60; }
.brandbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 50px; height: auto; flex: none; }
.brand .name { display: block; font: 700 1.35rem/1.05 var(--serif); color: var(--g8); letter-spacing: .01em; }
.brand .full { display: none; font-size: .88rem; color: var(--muted); margin-top: 4px; line-height: 1.25; }
.brandbar .actions { display: flex; align-items: center; gap: 10px; }
.brandbar .search { display: none; }
.brandbar .est { display: none; text-align: right; line-height: 1.3; font-size: .86rem; color: var(--muted); padding-right: 6px; }
.brandbar .est b { display: block; color: var(--ink); font-size: .95rem; }
.iconbtn { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--g8); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { background: var(--g0); }
@media (min-width: 720px) { .brand img { width: 62px; } .brand .name { font-size: 1.6rem; } .brand .full { display: block; } .brandbar { padding: 16px 0; } }
@media (min-width: 981px) { .brandbar .search { display: block; width: 260px; } .brandbar .est { display: block; } .iconbtn.s { display: none; } .iconbtn.menu { display: none; } }
.searchbox { position: relative; }
.searchbox input { width: 100%; height: 46px; padding: 8px 44px 8px 14px; border: 1px solid #a9b4af; border-radius: var(--r); font: inherit; }
.searchbox button { position: absolute; right: 0; top: 0; width: 44px; height: 46px; border: 0; background: none; color: var(--g8); }
.searchbox svg { width: 19px; height: 19px; margin: auto; }

.mainnav { background: var(--g8); position: sticky; top: 0; z-index: 80; }
.mainnav .container { display: flex; align-items: stretch; justify-content: space-between; min-height: 0; }
.navwrap { display: none; }
.nav { list-style: none; margin: 0; padding: 0; }
.nav > li { margin: 0; }
.nav > li > a, .nav > li > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 15px var(--gx); font-size: 1.02rem; font-weight: 600; color: #fff; background: none; border: 0; text-decoration: none; text-align: left; }
.nav .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); flex: none; }
.drop { display: none; background: var(--g0); color: var(--text); }
.drop .intro { display: none; }
.drop ul { list-style: none; margin: 0; padding: 4px 0 10px; }
.drop li { margin: 0; }
.drop a { display: block; padding: 11px calc(var(--gx) + 8px); color: var(--text); text-decoration: none; font-size: .98rem; border-bottom: 1px solid var(--line-s); }
.drop a:hover { background: #fff; color: var(--g8); }
.drop .sub a { padding-left: calc(var(--gx) + 28px); font-size: .92rem; color: var(--muted); }
.nav > li.open > .drop { display: block; }
.nav > li.open > button { background: var(--g9); }
/* mobile menu */
.menubar { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; }
.menu-toggle { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; color: #fff; padding: 0 var(--gx); min-height: 54px; font-weight: 600; font-size: 1rem; }
.menu-toggle .bars { width: 22px; height: 14px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; position: relative; }
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid #fff; }
.mainnav .apply-m { display: inline-flex; align-items: center; background: var(--red); color: #fff; font-weight: 700; padding: 0 var(--gx); min-height: 54px; text-decoration: none; font-size: .98rem; }
.navwrap.open { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: var(--navtop, 108px); overflow-y: auto; background: var(--g8); z-index: 90; padding-bottom: 90px; -webkit-overflow-scrolling: touch; }
.navwrap .m-extra { border-top: 1px solid rgba(255, 255, 255, .18); padding: 14px var(--gx) 24px; }
.navwrap .m-extra .searchbox { margin-bottom: 14px; }
.navwrap .m-extra ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.navwrap .m-extra a { display: block; color: #cfe2d6; text-decoration: none; padding: 10px 0; font-size: .95rem; }
.nav > li { border-top: 1px solid rgba(255, 255, 255, .14); }
body.menu-open { overflow: hidden; }

@media (min-width: 981px) {
  .menubar { display: none; }
  .navwrap, .navwrap.open { display: block; position: static; background: none; overflow: visible; padding: 0; width: 100%; }
  .navwrap .m-extra { display: none; }
  .nav { display: flex; width: 100%; }
  .nav > li { position: static; border: 0; }
  .nav > li > a, .nav > li > button { width: auto; padding: 17px 15px; font-size: .98rem; border-bottom: 4px solid transparent; justify-content: center; }
  .nav > li > a:hover, .nav > li > button:hover, .nav > li.open > button, .nav > li:hover > button { background: var(--g9); border-bottom-color: var(--gold); }
  .nav > li.current > a, .nav > li.current > button { border-bottom-color: var(--gold); }
  .mainnav .container { position: relative; }
  .drop { position: absolute; left: var(--gx); right: var(--gx); top: 100%; background: #fff; border-top: 4px solid var(--gold); box-shadow: var(--shadow); z-index: 100; padding: 0; }
  .drop.on, .nav > li.open > .drop, .nav > li:hover > .drop, .nav > li:focus-within > .drop { display: grid; grid-template-columns: 300px 1fr; }
  .drop .intro { display: block; background: var(--g0); padding: 28px 28px 24px; border-right: 1px solid var(--line-s); }
  .drop .intro h3 { margin: 0 0 8px; font-size: 1.25rem; }
  .drop .intro p { font-size: .93rem; color: var(--muted); margin: 0 0 14px; }
  .drop > ul { columns: 2; column-gap: 8px; padding: 18px 14px; align-self: start; }
  .drop.one > ul { columns: 1; }
  .drop li { break-inside: avoid; }
  .drop a { border: 0; padding: 8px 14px; border-radius: 3px; font-size: .96rem; }
  .drop a:hover { background: var(--g0); }
  .drop .sub a { padding-left: 28px; font-size: .9rem; }
}

/* ---------- page head ---------- */
.pagehead { position: relative; color: #fff; background: var(--g8) var(--bg, none) center / cover no-repeat; padding: 34px 0 30px; }
.pagehead::before { content: ""; position: absolute; inset: 0; background: rgba(8, 47, 27, .82); }
.pagehead .container { position: relative; }
.crumbs { font-size: .86rem; color: #cfe2d6; margin-bottom: 10px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #8fb09d; }
.crumbs a { color: #cfe2d6; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.pagehead h1 { margin: 0; color: #fff; }
.pagehead .lead { margin: 12px 0 0; max-width: 780px; color: #dcebe2; font-size: 1.05rem; line-height: 1.55; }
@media (min-width: 720px) { .pagehead { padding: 52px 0 44px; } .pagehead .lead { font-size: 1.15rem; } }

/* ---------- content layouts ---------- */
.page { padding-top: 28px; padding-bottom: var(--sec); }
.layout { display: block; }
.sidenav { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 28px; background: #fff; }
.sidenav > summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--g8); display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.sidenav > summary::-webkit-details-marker { display: none; }
.sidenav > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.sidenav[open] > summary::after { transform: rotate(-135deg); }
.sidenav ul { list-style: none; margin: 0; padding: 0 0 8px; }
.sidenav li { margin: 0; }
.sidenav a { display: block; padding: 10px 18px; color: var(--text); text-decoration: none; border-left: 4px solid transparent; font-size: .96rem; }
.sidenav a:hover { background: var(--g0); }
.sidenav a[aria-current="page"] { border-left-color: var(--red); background: var(--g0); color: var(--g8); font-weight: 700; }
.sidenav li > ul { margin: 0 0 6px 14px; padding: 0 0 0 8px; border-left: 2px solid var(--line); }
.sidenav li > ul a { font-size: .9rem; padding: 7px 12px; }
@media (min-width: 981px) {
  .layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 52px; align-items: start; }
  .sidenav { position: sticky; top: 76px; margin-bottom: 0; }
  .sidenav > summary { cursor: default; pointer-events: none; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); padding: 18px 18px 10px; min-height: 0; }
  .sidenav > summary::after { display: none; }
}
.prose { max-width: 800px; }
.prose.wide { max-width: none; }
.prose h2 { margin-top: 2.2rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); position: relative; }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; background: var(--red); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7rem; }
.prose img { border-radius: var(--r); }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.prose blockquote { margin: 1.6rem 0; padding: .3rem 0 .3rem 1.3rem; border-left: 4px solid var(--gold); font: 500 1.15rem/1.55 var(--serif); color: var(--ink); }
.prose blockquote cite { display: block; font: 400 .92rem var(--sans); color: var(--muted); margin-top: .5rem; font-style: normal; }
.lead { font-size: 1.12rem; color: var(--muted); }
.note { border: 1px solid var(--line); border-left: 4px solid var(--g7); background: var(--g0); padding: 16px 20px; margin: 1.4rem 0; border-radius: var(--r); }
.note.warn { border-left-color: var(--gold); background: var(--gold-l); }
.note p:last-child { margin-bottom: 0; }
.toc { border: 1px solid var(--line); background: var(--alt); border-radius: var(--r); padding: 16px 20px; margin: 0 0 1.8rem; }
.toc strong { display: block; margin-bottom: 8px; font-size: .92rem; color: var(--ink); }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 32px; }
.toc li { margin: 0 0 6px; break-inside: avoid; font-size: .95rem; }
@media (min-width: 720px) { .toc ul { columns: 2; } }
h2[id], h3[id] { scroll-margin-top: 90px; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.6rem; border: 1px solid var(--line-s); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
.tbl { font-size: .95rem; min-width: 560px; }
.tbl th { text-align: left; font-weight: 700; color: var(--ink); background: var(--alt); border-bottom: 2px solid var(--line); padding: 11px 14px; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-s); vertical-align: top; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--g0); }
.dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 1rem 0; border-top: 1px solid var(--line); }
.dl dt, .dl dd { margin: 0; padding: 0; }
.dl dt { font-weight: 700; color: var(--ink); padding: 12px 0 2px; }
.dl dd { padding: 0 0 12px; border-bottom: 1px solid var(--line-s); }
@media (min-width: 720px) { .dl { grid-template-columns: 200px 1fr; } .dl dt, .dl dd { padding: 12px 0; border-bottom: 1px solid var(--line-s); } .dl dt { padding-right: 16px; } }

details.acc { border-bottom: 1px solid var(--line); }
details.acc:first-of-type { border-top: 1px solid var(--line); }
details.acc summary { cursor: pointer; padding: 16px 40px 16px 2px; font-weight: 600; color: var(--ink); list-style: none; position: relative; min-height: 48px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; position: absolute; right: 8px; top: 11px; font-size: 1.5rem; font-weight: 400; color: var(--red); }
details.acc[open] summary::after { content: "\2212"; }
details.acc summary:hover { color: var(--g7); }
details.acc .body { padding: 0 2px 20px; }
.tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { background: none; border: 0; padding: 12px 18px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; min-height: 46px; }
.tabs button:hover { color: var(--g7); }
.tabs button[aria-selected="true"] { color: var(--g8); border-bottom-color: var(--red); }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; margin-bottom: 5px; color: var(--ink); font-size: .95rem; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #a9b4af; border-radius: var(--r); padding: 10px 12px; min-height: 46px; }
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field { margin-bottom: 16px; }
.field .hint { font-size: .86rem; color: var(--muted); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 720px) { .row2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 6px; margin: 0 0 20px; }
legend { font-weight: 700; padding: 0 8px; color: var(--g8); font-family: var(--serif); font-size: 1.1rem; }
.formbox { border: 1px solid var(--line); padding: 22px; border-radius: var(--r); background: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; border: 1px solid var(--line); background: var(--alt); padding: 16px; border-radius: var(--r); margin-bottom: 20px; }
.filters .field { margin: 0; min-width: 0; flex: 1 1 100%; }
@media (min-width: 720px) { .filters .field { flex: 1 1 180px; } .filters .field.grow { flex: 2 1 280px; } }
.count { color: var(--muted); font-size: .92rem; margin: 0 0 12px; }

/* ---------- grids and cards ---------- */
.grid { display: grid; gap: 22px; }
.g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .g2, .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 981px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.box { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 20px 22px; }
.box h3 { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
.plainlist { list-style: none; padding: 0; margin: 0; }
.plainlist li { margin: 0; border-bottom: 1px solid var(--line-s); }
.plainlist a { display: block; padding: 11px 0; text-decoration: none; color: var(--text); }
.plainlist a:hover { color: var(--g7); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 1.2rem 0 2rem; }
.card { display: block; border: 1px solid var(--line); border-top: 4px solid var(--g7); background: #fff; border-radius: var(--r); padding: 18px 20px; text-decoration: none; color: var(--ink); }
.card:nth-child(3n+1) { border-top-color: var(--red); }
.card:nth-child(3n+2) { border-top-color: var(--leaf); }
.card:nth-child(3n) { border-top-color: var(--gold); }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--g8); }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.card:hover { background: var(--g0); box-shadow: var(--shadow); }
.card:hover h3 { text-decoration: underline; }
.linkbox { display: block; border: 1px solid var(--line); padding: 18px 20px; color: var(--text); text-decoration: none; border-radius: var(--r); background: #fff; }
.linkbox:hover { border-color: var(--g7); background: var(--g0); }
.linkbox strong { display: block; color: var(--g8); font-family: var(--serif); font-size: 1.12rem; margin-bottom: 4px; }
.linkbox span { color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--g8); background: var(--g1); padding: 2px 8px; border-radius: 2px; }
.tag.red { background: #f9dedb; color: var(--red-d); }
.tag.gold { background: var(--gold-l); color: #7a5206; }

.datelist { list-style: none; padding: 0; margin: 0; }
.datelist li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-s); margin: 0; }
.datelist li:first-child { padding-top: 0; }
.date { text-align: center; border: 1px solid var(--line); border-top: 3px solid var(--red); background: #fff; border-radius: var(--r); line-height: 1; padding: 7px 0 6px; align-self: start; }
.date b { display: block; font: 700 1.4rem var(--serif); color: var(--g8); }
.date span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 3px; }
.datelist h3, .datelist h4 { font: 600 1rem/1.35 var(--sans); margin: 0 0 3px; color: var(--ink); }
.datelist h3 a, .datelist h4 a { color: var(--ink); text-decoration: none; }
.datelist h3 a:hover, .datelist h4 a:hover { color: var(--g7); text-decoration: underline; }
.datelist .meta { font-size: .86rem; color: var(--muted); }

.newscard { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-s); }
.newscard img { width: 104px; height: 78px; object-fit: cover; border-radius: var(--r); background: var(--alt); }
.newscard h3 { font: 600 1.05rem/1.35 var(--serif); margin: 4px 0 6px; }
.newscard h3 a { color: var(--ink); text-decoration: none; }
.newscard h3 a:hover { color: var(--g7); text-decoration: underline; }
.newscard p { margin: 0; color: var(--muted); font-size: .94rem; display: none; }
.newscard .meta { font-size: .84rem; color: var(--muted); }
@media (min-width: 720px) { .newscard { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; } .newscard img { width: 190px; height: 126px; } .newscard p { display: block; } .newscard h3 { font-size: 1.18rem; } }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pager button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: var(--r); padding: 0 12px; font-weight: 600; }
.pager button[aria-current="true"] { background: var(--g8); color: #fff; border-color: var(--g8); }
.pager button:disabled { opacity: .4; cursor: default; }

.person-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .person-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; } }
.person { border: 1px solid var(--line); border-top: 3px solid var(--g7); background: #fff; border-radius: var(--r); text-align: left; padding: 0; display: block; width: 100%; color: inherit; }
.person .ph { aspect-ratio: 1; background: var(--alt); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person .ph .ini { font: 600 2.4rem var(--serif); color: var(--g7); }
.person .info { padding: 12px 14px 14px; border-top: 1px solid var(--line-s); }
.person .info b { display: block; font-family: var(--serif); font-size: 1rem; color: var(--ink); line-height: 1.3; }
.person .info span { display: block; font-size: .86rem; color: var(--muted); margin-top: 2px; }
button.person:hover { border-color: var(--g7); box-shadow: var(--shadow); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.stats > div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div:nth-child(2n) { border-right: 0; }
.stats b { display: block; font: 700 1.7rem/1.1 var(--serif); color: var(--g8); }
.stats span { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats > div { border-bottom: 0; } .stats > div:nth-child(2n) { border-right: 1px solid var(--line); } .stats > div:last-child { border-right: 0; } .stats b { font-size: 2rem; } }

/* colour blocks (facts and rankings) */
.sblocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.sblock { padding: 22px 18px; color: #fff; }
.sblock b { display: block; font: 700 clamp(1.9rem, 5vw, 2.8rem)/1 var(--serif); }
.sblock span { display: block; margin-top: 10px; font-size: .95rem; line-height: 1.4; }
.sblock.red { background: var(--red); }
.sblock.green { background: var(--leaf); }
.sblock.gold { background: var(--gold); color: var(--ink); }
.sblock.dark { background: var(--g8); }
@media (min-width: 720px) { .sblocks { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sblock { padding: 30px 26px; } }
.ranks { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.rank { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--g7); border-radius: var(--r); padding: 18px 20px; }
.rank:nth-child(3n+1) { border-left-color: var(--red); }
.rank:nth-child(3n+2) { border-left-color: var(--leaf); }
.rank:nth-child(3n) { border-left-color: var(--gold); }
.rank .org { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.rank .org em { font-style: normal; background: var(--alt); color: var(--ink); padding: 1px 8px; border-radius: 10px; letter-spacing: 0; }
.rank b { display: block; font: 700 2.1rem/1.15 var(--serif); color: var(--g8); margin: 8px 0 4px; }
.rank span { color: var(--muted); font-size: .92rem; line-height: 1.4; display: block; }
@media (min-width: 720px) { .ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 981px) { .ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* logo walls */
.logos, .logowall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.logos > *, .logowall > * { min-height: 84px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; padding: 12px; text-decoration: none; color: var(--muted); font-size: .85rem; text-align: center; border-radius: var(--r); }
.logos img, .logowall img { max-height: 54px; width: auto; max-width: 100%; object-fit: contain; }
@media (min-width: 560px) { .logos, .logowall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .logos, .logowall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.logowall.flow { display: flex; flex-wrap: wrap; }
.logowall.flow > * { flex: 1 1 140px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); cursor: zoom-in; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }

.vgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 560px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 981px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vcard { display: block; text-decoration: none; color: var(--ink); }
.vcard .thumb { position: relative; display: block; aspect-ratio: 16/9; background: var(--alt); border-radius: var(--r); overflow: hidden; }
.vcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard .thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(8, 47, 27, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 6l10 6-10 6z'/%3E%3C/svg%3E") center / 26px no-repeat; }
.vcard:hover .thumb::after { background-color: var(--red); }
.vcard strong { display: block; font: 600 1rem/1.35 var(--sans); margin-top: 8px; }
.vcard small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.vcard:hover strong { color: var(--g7); text-decoration: underline; }
.vcard.doc .thumb { aspect-ratio: 4/3; }
.vcard.doc .thumb::after { display: none; }
.vcard.doc .thumb img { object-position: top; }
.gone { color: var(--muted); }
ul.files { list-style: none; padding: 0; }
ul.files li { padding: 8px 0; border-bottom: 1px solid var(--line-s); }
.prose figure.g { display: inline-block; width: 48%; margin: 0 1% 1rem 0; vertical-align: top; }
@media (min-width: 720px) { .prose figure.g { width: 31%; } }

/* ---------- home ---------- */
.sec { padding: var(--sec) 0; }
.sec.alt { background: var(--alt); }
.sec.paper { background: var(--paper); }
.sec.dark { background: var(--g8); color: #d6e6dc; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec-head { margin-bottom: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; }
.sec-head h2 { margin: 0; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.sec.dark .eyebrow { color: var(--gold); }
.sec-lead { max-width: 720px; color: var(--muted); margin: -10px 0 26px; font-size: 1.05rem; }
.sec.dark .sec-lead { color: #bcd2c4; }

.hero { position: relative; background: var(--g9); color: #fff; overflow: hidden; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(6, 36, 21, .76); }
.hero .container { position: relative; z-index: 2; display: grid; gap: 28px; padding-top: 44px; padding-bottom: 44px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 6.5vw, 3.7rem); line-height: 1.08; margin: 0 0 16px; }
.hero .lede { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: #e3efe7; margin: 0; max-width: 600px; }
.hero-pause { position: absolute; z-index: 3; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: rgba(6, 36, 21, .6); padding: 0; }
.hero-pause span { display: block; width: 12px; height: 14px; margin: auto; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.hero-pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 14px; }
.annc { background: #fff; color: var(--text); border-radius: var(--r); border-top: 5px solid var(--red); box-shadow: var(--shadow); padding: 4px 20px 16px; }
.annc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.annc .tabs { margin: 0; border: 0; }
.annc .tabs button { padding: 14px 16px 12px; }
.annc .datelist li { padding: 12px 0; }
.annc .datelist li:first-child { padding-top: 0; }
.annc .datelist li:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 981px) {
  .hero .container { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-top: 84px; padding-bottom: 84px; }
  .hero::before { background: rgba(6, 36, 21, .66); }
}

.quick { background: #fff; border-bottom: 1px solid var(--line); }
.quick ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick li { margin: 0; border-bottom: 1px solid var(--line-s); }
.quick li:nth-child(odd) { border-right: 1px solid var(--line-s); }
.quick a { display: block; padding: 18px var(--gx); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem; position: relative; height: 100%; border-top: 4px solid transparent; }
.quick li:nth-child(3n+1) a { border-top-color: var(--red); }
.quick li:nth-child(3n+2) a { border-top-color: var(--leaf); }
.quick li:nth-child(3n) a { border-top-color: var(--gold); }
.quick a small { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: 2px; line-height: 1.35; }
.quick a:hover { background: var(--g0); color: var(--g8); }
@media (min-width: 981px) { .quick ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } .quick li { border-bottom: 0; border-right: 1px solid var(--line-s); } .quick li:first-child { border-left: 1px solid var(--line-s); } .quick a { padding: 22px 20px; } }

.split { display: grid; gap: 30px; }
@media (min-width: 981px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; } .split.wide-l { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .split.wide-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.photo { position: relative; }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--g8); color: #fff; padding: 8px 14px; font-size: .84rem; border-radius: 0 var(--r) 0 var(--r); }
.keyfacts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.keyfacts li { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.keyfacts b { display: block; font: 700 1.5rem/1.1 var(--serif); color: var(--g8); }
.keyfacts span { font-size: .9rem; color: var(--muted); }

.ccards { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 981px) { .ccards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ccards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ccards .ccard:first-child { grid-column: span 2; } }
.ccard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text); position: relative; }
.ccard .ph { height: 140px; background: var(--g8); overflow: hidden; }
.ccard .ph img { width: 100%; height: 100%; object-fit: cover; }
.ccard .lg { position: relative; left: auto; top: auto; margin: -34px 0 0 18px; width: 68px; height: 68px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: flex; align-items: center; justify-content: center; padding: 6px; box-shadow: 0 4px 12px rgba(8, 47, 27, .12); }
.ccard .lg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ccard .bd { padding: 12px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.ccard h3 { margin: 0 0 6px; font-size: 1.15rem; }
.ccard p { font-size: .92rem; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.ccard .meta { margin-top: auto; font-size: .86rem; font-weight: 600; color: var(--g7); }
.ccard::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--g7); }
.ccard.b::after { background: var(--red); }
.ccard.a::after { background: var(--leaf); }
.ccard.t::after { background: var(--gold); }
.ccard:hover { box-shadow: var(--shadow); border-color: #b9c6bf; }
.ccard:hover h3 { text-decoration: underline; }

.finder-band { background: var(--g8); color: #fff; padding: 36px 0; }
.finder-band h2 { color: #fff; margin: 0 0 6px; }
.finder-band p { margin: 0 0 18px; color: #cfe2d6; }
.finder { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: end; }
.finder label { color: #fff; }
@media (min-width: 720px) { .finder { grid-template-columns: 1fr 1fr; } }
@media (min-width: 981px) { .finder { grid-template-columns: 1fr 1fr 1.4fr auto; } }
.levels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.levels a { color: #fff; border: 1px solid rgba(255, 255, 255, .45); border-radius: 30px; padding: 6px 16px; text-decoration: none; font-size: .92rem; }
.levels a:hover { background: #fff; color: var(--g8); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: st; grid-template-columns: minmax(0, 1fr); }
.steps li { counter-increment: st; margin: 0; padding: 18px 0 18px 58px; position: relative; border-top: 1px solid var(--line); }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font: 700 1.1rem/40px var(--serif); text-align: center; }
.steps li:nth-child(2)::before { background: var(--leaf); }
.steps li:nth-child(3)::before { background: var(--gold); color: var(--ink); }
.steps li:nth-child(4)::before { background: var(--g8); }
.steps b { display: block; font: 600 1.1rem var(--serif); color: var(--g8); }
.steps span { color: var(--muted); font-size: .94rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } .steps li { padding: 64px 0 0; border-top: 0; } .steps li::before { top: 0; } }

.feature { display: grid; gap: 18px; margin-bottom: 8px; }
.feature img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--r); }
.feature h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 8px 0 8px; }
.feature h3 a { color: var(--ink); text-decoration: none; }
.feature h3 a:hover { color: var(--g7); text-decoration: underline; }
@media (min-width: 720px) { .feature { grid-template-columns: 1.15fr 1fr; gap: 28px; } }
.newsgrid { display: grid; gap: 34px; }
@media (min-width: 981px) { .newsgrid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; } }

.daystrip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 4px solid var(--leaf); }
.daystrip li { margin: 0; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.daystrip time { display: block; font: 700 1.5rem var(--serif); color: var(--g8); }
.daystrip span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }
@media (min-width: 981px) { .daystrip { grid-template-columns: repeat(6, minmax(0, 1fr)); } .daystrip li { border-bottom: 0; } }
.mosaic { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic a, .mosaic .m { display: block; position: relative; overflow: hidden; border-radius: var(--r); background: var(--g8); }
.mosaic img, .mosaic video { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.mosaic .cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 10px 12px; background: rgba(6, 36, 21, .78); color: #fff; font-size: .86rem; font-weight: 600; }
@media (min-width: 981px) { .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mosaic .wide { grid-column: span 2; } .mosaic .wide img, .mosaic .wide video { aspect-ratio: 8/3; height: 100%; } }

.msg { display: grid; gap: 22px; }
.msg img { width: 100%; max-width: 260px; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: var(--r); }
.msg blockquote { margin: 0 0 14px; font: 500 clamp(1.15rem, 2.6vw, 1.5rem)/1.5 var(--serif); color: #fff; border: 0; padding: 0; }
@media (min-width: 720px) { .msg { grid-template-columns: 220px 1fr; gap: 32px; align-items: start; } }
.govlist { list-style: none; margin: 0; padding: 0; }
.govlist li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .2); margin: 0; }
.govlist img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; }
.govlist small { display: block; text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; color: var(--gold); font-weight: 700; }
.govlist b { display: block; font: 600 1.05rem var(--serif); color: #fff; }
.govlist span { font-size: .88rem; color: #bcd2c4; }

.acards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .acards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 981px) { .acards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.acard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.acard .co { height: 78px; display: flex; align-items: center; justify-content: center; padding: 12px 20px; background: var(--alt); border-bottom: 1px solid var(--line-s); font: 700 1rem var(--serif); color: var(--g8); text-align: center; }
.acard .co img { max-height: 46px; max-width: 80%; object-fit: contain; }
.acard .who { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 16px 16px 8px; align-items: center; }
.acard .who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; }
.acard .who .ini { width: 64px; height: 64px; border-radius: 50%; background: var(--g1); color: var(--g8); font: 700 1.2rem var(--serif); display: flex; align-items: center; justify-content: center; }
.acard b { display: block; font: 600 1.02rem/1.25 var(--serif); color: var(--ink); }
.acard .role { font-size: .86rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.acard .foot { padding: 4px 16px 16px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--muted); align-items: center; margin-top: auto; }

.org { margin: 1.6rem 0 2.4rem; }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; position: relative; padding-top: 28px; }
.org-row::before { content: ""; position: absolute; top: 0; left: 50%; height: 28px; border-left: 2px solid var(--line); }
.org-row.first { padding-top: 0; }
.org-row.first::before { display: none; }
.org-node { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--g7); border-radius: var(--r); padding: 14px 18px; text-align: center; min-width: 190px; max-width: 280px; flex: 1 1 190px; }
.org-node b { display: block; font: 600 1.02rem/1.3 var(--serif); color: var(--g8); }
.org-node span { display: block; font-size: .86rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.org-node img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 8px; }
.org-node.top { border-top-color: var(--red); }
.org-node.exec { border-top-color: var(--leaf); }
.org-node.lead { border-top-color: var(--gold); }
.org-node.side { background: var(--alt); border-style: dashed; }
.org-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 12px 0 0; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; margin: 0; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.timeline li:nth-child(3n+2)::before { border-color: var(--leaf); }
.timeline li:nth-child(3n)::before { border-color: var(--gold); }
.timeline b { font: 700 1.2rem var(--serif); color: var(--g8); margin-right: 8px; }
.timeline strong { color: var(--ink); }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

.partnerstrip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.partnerstrip a { min-height: 76px; border: 1px solid var(--line); background: #fff; border-radius: var(--r); display: flex; align-items: center; justify-content: center; padding: 10px; }
.partnerstrip img { max-height: 48px; max-width: 100%; object-fit: contain; }
@media (min-width: 640px) { .partnerstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 981px) { .partnerstrip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.visit { background: var(--red); color: #fff; padding: 34px 0; }
.visit .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; }
.visit h2 { color: #fff; margin: 0 0 4px; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.visit p { margin: 0; color: #ffe3df; }
.visit .btn.light { color: var(--red-d); }

.memlist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; }
@media (min-width: 720px) { .memlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.memlist li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line-s); }
.memlist b { display: block; color: var(--ink); }
.memlist span { color: var(--muted); font-size: .9rem; }
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.club { border: 1px solid var(--line); border-top: 4px solid var(--g7); background: #fff; border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.club[hidden] { display: none; }
.club h3 { margin: 0 0 4px; font-size: 1.08rem; }
.club p { margin: 0 0 8px; color: var(--text); font-size: .95rem; flex: 1; }
.chead { display: flex; gap: 14px; align-items: center; }
.clogo { width: 52px; height: 52px; object-fit: contain; border: 1px solid var(--line-s); border-radius: var(--r); padding: 2px; background: #fff; flex: none; }
.cmono { width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--g1); color: var(--g8); font: 700 .8rem var(--sans); border-radius: var(--r); text-align: center; padding: 2px; }
.tlayout { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 981px) { .tlayout { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 28px; align-items: start; } }
#t-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 0 12px; margin: 0; list-style: none; background: #fff; }
@media (min-width: 981px) { #t-list { max-height: 560px; } }
#t-list li { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line-s); }
#t-list li:last-child { border-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--g9); color: #c8dccf; font-size: .95rem; }
.site-footer a { color: #c8dccf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-logos { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0; }
.foot-logos .container { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; justify-content: center; }
.foot-logos img { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
.foot-logos small { color: var(--muted); flex: 1 1 100%; text-align: center; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; }
.foot-main { display: grid; gap: 30px; padding: 44px 0 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-main > :first-child { grid-column: 1 / -1; }
@media (min-width: 720px) { .foot-main { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .foot-main { grid-template-columns: 1.6fr repeat(5, 1fr); } .foot-main > :first-child { grid-column: auto; } }
.site-footer h2 { font: 700 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.foot-brand img { width: 54px; background: #fff; border-radius: 50%; padding: 4px; }
.foot-brand b { font: 700 1.3rem var(--serif); color: #fff; display: block; line-height: 1.1; }
.foot-brand span { font-size: .85rem; line-height: 1.3; display: block; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .16); padding: 16px 0 24px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: .86rem; }
.foot-bottom ul { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.foot-bottom li { margin: 0; }

/* ---------- lightbox / modal / drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8, 16, 12, .92); z-index: 200; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 16px 28px; }
.overlay.open { display: flex; }
.overlay img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
.overlay .cap { color: #e4ece7; margin-top: 12px; font-size: .95rem; text-align: center; max-width: 70ch; }
.overlay .close, .overlay .prev, .overlay .next { position: absolute; background: #fff; color: var(--ink); border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; line-height: 1; }
.overlay .close { top: 14px; right: 14px; }
.overlay .prev { left: 14px; top: 50%; }
.overlay .next { right: 14px; top: 50%; }
.overlay .video { width: min(1000px, 100%); aspect-ratio: 16/9; background: #000; position: relative; }
.overlay .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.drawer { position: fixed; inset: 0; z-index: 150; display: none; }
.drawer.open { display: block; }
.drawer .bg { position: absolute; inset: 0; background: rgba(8, 16, 12, .6); }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(560px, 100%); background: #fff; overflow: auto; padding: 56px var(--gx) 40px; }
.drawer .close { position: absolute; right: 12px; top: 10px; border: 1px solid var(--line); background: #fff; width: 44px; height: 44px; font-size: 1.2rem; border-radius: var(--r); }
.drawer .who { display: grid; grid-template-columns: 96px 1fr; gap: 16px; margin: 16px 0; align-items: start; }
.drawer .who img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r); }
@media (min-width: 560px) { .drawer .who { grid-template-columns: 120px 1fr; } .drawer .who img { width: 120px; height: 120px; } }

@media print {
  .utility, .mainnav, .sidenav, .site-footer, .btn-row, .filters, .hero video { display: none !important; }
  .layout { display: block; }
  body { font-size: 12pt; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* header: the Apply button shows in the brand bar on desktop; on phones it sits in the menu bar */
.brandbar .apply { display: none; }
@media (min-width: 981px) { .brandbar .apply { display: inline-flex; } }
.sblocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .sblocks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.daystrip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 4px solid var(--leaf); }

@media (min-width: 981px) { .daystrip { grid-template-columns: repeat(6, minmax(0, 1fr)); } .daystrip li { border-bottom: 0; } .ccard .ph { height: 180px; } }
.daystrip li { margin: 0; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.daystrip time { display: block; font: 700 1.5rem var(--serif); color: var(--g8); }
.daystrip span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.ccards.flat .ccard:first-child { grid-column: auto; }
@media (min-width: 981px) { .ccards.flat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mosaic .m img { height: 100%; }

/* hub pages */
.lead-in { max-width: 72ch; color: var(--muted); font-size: 1.08rem; margin: 0 0 1.6rem; }
.ccard:not(:has(.lg)) .bd { padding-top: 18px; }
.deptlinks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .deptlinks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 981px) { .deptlinks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dept { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: #fff; text-decoration: none; color: var(--ink); }
.dept img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.dept b { display: block; font-weight: 600; line-height: 1.3; }
.dept small { color: var(--g7); }
.dept:hover { background: var(--g0); border-color: var(--g7); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 30px; padding: 8px 16px; font-weight: 600; min-height: 42px; color: var(--text); }
.chips button.on { background: var(--g8); color: #fff; border-color: var(--g8); }
.pcards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--g7); border-radius: var(--r); padding: 18px 20px; text-decoration: none; color: var(--text); }
.pcard.b { border-top-color: var(--red); } .pcard.a { border-top-color: var(--leaf); } .pcard.t { border-top-color: var(--gold); }
.pcard h3 { margin: 10px 0 4px; font-size: 1.2rem; color: var(--g8); }
.pcard dl { margin: auto 0 0; border-top: 1px solid var(--line-s); padding-top: 10px; display: grid; gap: 8px; }
.pcard dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.pcard dd { margin: 0; font-size: .92rem; color: var(--text); }
.pcard:hover { box-shadow: var(--shadow); background: var(--g0); }
.pcard:hover h3 { text-decoration: underline; }
.drop .intro .btn, .drop .intro .btn:hover { color: #fff; }

/* =====================================================================
   Visual upgrade: editorial layouts, photo-led sections, colour tiles
   ===================================================================== */
:root { --w: 1280px; --ink-deep: #07241a; }
h1, h2, h3 { letter-spacing: -.012em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.sec-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.sec-lead { font-size: 1.08rem; }

/* hero */
.hero { display: flex; flex-direction: column; min-height: clamp(580px, 86vh, 820px); }
.hero::before { background: rgba(5, 32, 19, .74); }
.hero-main { position: relative; z-index: 2; flex: 1; display: grid; align-items: center; }
.hero-main .container { display: grid; gap: 30px; padding-top: 52px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4.9rem); line-height: 1.02; letter-spacing: -.022em; margin: 0 0 20px; max-width: 13ch; }
.hero .lede { font-size: clamp(1.05rem, 2.6vw, 1.28rem); max-width: 560px; }
.hero-facts { position: relative; z-index: 2; border-top: 1px solid rgba(255, 255, 255, .26); background: rgba(5, 32, 19, .55); }
.hero-facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-facts li { margin: 0; padding: 14px 0 14px 16px; border-left: 1px solid rgba(255, 255, 255, .22); }
.hero-facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
.hero-facts b { display: block; font: 700 clamp(1.4rem, 3.4vw, 2rem)/1.1 var(--serif); color: #fff; }
.hero-facts span { font-size: .84rem; color: #cfe2d6; letter-spacing: .02em; }
@media (min-width: 720px) { .hero-facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hero-facts li, .hero-facts li:nth-child(odd) { border-left: 1px solid rgba(255, 255, 255, .22); padding: 20px 0 20px 28px; } .hero-facts li:first-child { border-left: 0; padding-left: 0; } }
@media (min-width: 981px) { .hero-main .container { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 72px; padding-top: 70px; padding-bottom: 70px; } }
.annc { border-radius: 0; border-top: 6px solid var(--red); }

/* action dock under the hero */
.dock { position: relative; z-index: 5; }
.dock ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.dock li { margin: 0; border-bottom: 1px solid var(--line-s); }
.dock li:nth-child(odd) { border-right: 1px solid var(--line-s); }
.dock a { display: flex; flex-direction: column; gap: 3px; padding: 18px 18px 20px; text-decoration: none; color: var(--ink); font: 700 1.02rem var(--serif); height: 100%; position: relative; }
.dock a small { font: 400 .84rem var(--sans); color: var(--muted); line-height: 1.35; }
.dock a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.dock li:nth-child(3n+2) a::after { background: var(--leaf); }
.dock li:nth-child(3n) a::after { background: var(--gold); }
.dock a:hover { background: var(--g0); }
.dock a:hover::after { transform: scaleX(1); }
@media (min-width: 981px) { .dock { margin-top: -46px; } .dock ul { grid-template-columns: repeat(6, minmax(0, 1fr)); } .dock li { border-bottom: 0; border-right: 1px solid var(--line-s); } .dock li:last-child { border-right: 0; } .dock a { padding: 24px 22px 26px; } }

/* editorial intro */
.edit { display: grid; gap: 34px; align-items: center; }
.edit h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.1; margin-bottom: .5em; }
.collage { position: relative; padding: 0 0 30px 0; }
.collage .a { width: 86%; aspect-ratio: 4/3; object-fit: cover; }
.collage .b { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border: 6px solid #fff; box-shadow: var(--shadow); }
.collage::before { content: ""; position: absolute; left: -12px; top: -12px; width: 40%; height: 40%; border-left: 4px solid var(--gold); border-top: 4px solid var(--gold); }
@media (min-width: 981px) { .edit { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; } .collage { padding-bottom: 44px; } }
.figs { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.figs li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line-s); }
.figs b { display: block; font: 700 clamp(1.7rem, 3.6vw, 2.3rem)/1 var(--serif); color: var(--g8); }
.figs span { font-size: .9rem; color: var(--muted); }

/* college explorer */
.cx { display: grid; border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 0 var(--line-s); }
.cx-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--alt); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.cx-tabs button { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 0; background: none; border-bottom: 4px solid transparent; font-weight: 600; color: var(--text); white-space: nowrap; min-height: 56px; text-align: left; }
.cx-tabs button img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.cx-tabs button small { display: none; }
.cx-tabs button[aria-selected="true"] { background: #fff; border-bottom-color: var(--tint, var(--g7)); color: var(--g8); }
.cx-tabs button:hover { background: #fff; }
.cx-panel { display: grid; }
.cx-panel[hidden] { display: none; }
.cx-panel .ph { position: relative; min-height: 220px; background: var(--g8); overflow: hidden; }
.cx-panel .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-panel .tx { padding: 24px 22px 28px; }
.cx-panel .tx .lg { width: 64px; height: 64px; object-fit: contain; margin-bottom: 14px; }
.cx-panel h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .4em; }
.cx-panel .chips2 { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; padding: 0; list-style: none; }
.cx-panel .chips2 li { margin: 0; }
.cx-panel .chips2 a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); background: var(--alt); border-radius: 30px; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--g8); }
.cx-panel .chips2 a:hover { background: var(--g8); color: #fff; border-color: var(--g8); }
@media (min-width: 720px) { .cx-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .cx-panel .ph { min-height: 380px; } .cx-panel .tx { padding: 34px 34px 36px; } }
@media (min-width: 981px) {
  .cx { grid-template-columns: 330px minmax(0, 1fr); }
  .cx-tabs { flex-direction: column; overflow: visible; border-bottom: 0; border-right: 1px solid var(--line); }
  .cx-tabs button { border-bottom: 1px solid var(--line-s); border-left: 6px solid transparent; padding: 17px 20px; white-space: normal; align-items: center; }
  .cx-tabs button[aria-selected="true"] { border-bottom-color: var(--line-s); border-left-color: var(--tint, var(--g7)); }
  .cx-tabs button small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
  .cx-tabs button:last-child { border-bottom: 0; }
}

/* numbers band over a photograph */
.band { position: relative; color: #fff; background: var(--g9) var(--bg, none) center / cover no-repeat; padding: 56px 0; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(5, 32, 19, .84); }
.band .container { position: relative; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
.band li { margin: 0; border-top: 3px solid var(--gold); padding-top: 14px; }
.band li:nth-child(1) { border-top-color: var(--red); }
.band li:nth-child(2) { border-top-color: var(--leaf); }
.band b { display: block; font: 700 clamp(2.3rem, 6.5vw, 3.8rem)/1 var(--serif); }
.band span { display: block; margin-top: 10px; color: #d3e5da; font-size: .96rem; line-height: 1.4; max-width: 22ch; }
@media (min-width: 981px) { .band { padding: 84px 0; } .band ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; } }

/* level tiles */
.ltiles { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
@media (min-width: 720px) { .ltiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ltile { position: relative; display: flex; align-items: flex-end; min-height: 190px; overflow: hidden; color: #fff; text-decoration: none; background: var(--g8); }
.ltile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ltile::before { content: ""; position: absolute; inset: 0; background: rgba(5, 32, 19, .52); z-index: 1; }
.ltile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--red); z-index: 3; }
.ltile:nth-child(2)::after { background: var(--leaf); }
.ltile:nth-child(3)::after { background: var(--gold); }
.ltile:hover img { transform: scale(1.05); }
.ltile div { position: relative; z-index: 2; padding: 22px; }
.ltile b { display: block; font: 700 clamp(2.4rem, 5vw, 3.2rem)/1 var(--serif); }
.ltile span { font-size: 1rem; }

/* admission journey */
.journey { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 0; counter-reset: st; }
.journey li { counter-increment: st; position: relative; margin: 0; padding: 22px 0 22px 84px; border-top: 1px solid var(--line); }
.journey li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 700 3rem/1 var(--serif); color: var(--line); }
.journey li:nth-child(1)::before { color: var(--red); }
.journey li:nth-child(2)::before { color: var(--leaf); }
.journey li:nth-child(3)::before { color: var(--gold); }
.journey li:nth-child(4)::before { color: var(--g8); }
.journey b { display: block; font: 600 1.25rem var(--serif); color: var(--g8); margin-bottom: 2px; }
.journey span { color: var(--muted); }
.admit-card { position: relative; color: #fff; background: var(--g8); }
.admit-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; opacity: .92; }
.admit-card .bd { padding: 24px 24px 26px; }
.admit-card h3 { color: #fff; margin-top: 0; }
.admit-card a { color: #fff; }
.admit-card p { color: #d3e5da; margin-bottom: .6em; }

/* news as a magazine */
.mag { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.mcard { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; color: var(--text); overflow: hidden; }
.mcard .im { overflow: hidden; background: var(--alt); }
.mcard img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s; display: block; }
.mcard:hover img { transform: scale(1.04); }
.mcard .bd { padding: 16px 18px 20px; flex: 1; }
.mcard h3 { font-size: 1.08rem; margin: 8px 0 6px; color: var(--ink); }
.mcard:hover h3 { color: var(--g7); text-decoration: underline; }
.mcard p { margin: 0; color: var(--muted); font-size: .92rem; }
.mcard .meta { font-size: .82rem; color: var(--muted); }
.mcard.big h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; }
.mcard.big img { aspect-ratio: 4/3; }
@media (min-width: 720px) { .mag { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mcard.big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; } .mcard.big .im { height: 100%; } .mcard.big img { height: 100%; aspect-ratio: auto; min-height: 280px; } .mcard.big .bd { padding: 28px; } }
@media (min-width: 1100px) { .mag { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.newsgrid { display: grid; gap: 40px; }
@media (min-width: 1100px) { .newsgrid { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 56px; } }
.sidepanel { border-top: 5px solid var(--leaf); background: #fff; padding: 6px 20px 12px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); align-self: start; }
.sidepanel h3 { font-size: 1.25rem; margin: 16px 0 14px; }

/* ranking tiles */
.rtiles { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .rtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 981px) { .rtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rtile { padding: 24px 24px 26px; color: #fff; min-height: 190px; display: flex; flex-direction: column; }
.rtile:nth-child(4n+1) { background: var(--g8); }
.rtile:nth-child(4n+2) { background: var(--leaf); }
.rtile:nth-child(4n+3) { background: var(--red); }
.rtile:nth-child(4n) { background: var(--gold); color: var(--ink); }
.rtile .org { display: flex; justify-content: space-between; gap: 10px; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.rtile .org em { font-style: normal; background: rgba(255, 255, 255, .22); padding: 1px 9px; border-radius: 10px; letter-spacing: 0; }
.rtile:nth-child(4n) .org em { background: rgba(0, 0, 0, .12); }
.rtile b { display: block; font: 700 clamp(2.3rem, 5vw, 3.3rem)/1.05 var(--serif); margin: auto 0 8px; padding-top: 18px; }
.rtile span { font-size: .94rem; line-height: 1.4; opacity: .95; }

/* campus mosaic, larger */
.mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic .wide { grid-column: 1 / -1; }
.mosaic .m img, .mosaic .m video { aspect-ratio: 1; height: 100%; }
.mosaic .wide video, .mosaic .wide img { aspect-ratio: 16/9; }
.mosaic .m img { transition: transform .5s; }
.mosaic .m:hover img { transform: scale(1.04); }
@media (min-width: 981px) { .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 10px; } .mosaic .wide { grid-column: span 2; grid-row: span 2; } .mosaic .m img, .mosaic .m video, .mosaic .wide video, .mosaic .wide img { aspect-ratio: auto; width: 100%; height: 100%; object-fit: cover; } }
.sec.dark .daystrip { border-top-color: var(--gold); }
.sec.dark .daystrip li { border-color: rgba(255, 255, 255, .2); }
.sec.dark .daystrip time { color: #fff; }
.sec.dark .daystrip span { color: #bcd2c4; }

/* leadership portrait with offset frame */
.msg .pt { position: relative; max-width: 260px; }
.msg .pt::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 70%; height: 70%; border-right: 4px solid var(--gold); border-bottom: 4px solid var(--gold); z-index: 0; }
.msg .pt img { position: relative; z-index: 1; }

/* closing call to action: the campus illustration stands along the bottom edge */
.pano { position: relative; color: #fff; text-align: center; background: var(--g9); padding: 64px 0 clamp(170px, 26vw, 330px); overflow: hidden; }
.pano::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(150px, 24vw, 310px); background: url(/assets/img/panorama.webp) center bottom / auto 100% no-repeat; }
.pano .container { position: relative; z-index: 1; }
.pano .eyebrow { color: var(--gold); }
.pano h2 { color: #fff; font-size: clamp(1.9rem, 5vw, 3.1rem); margin: 0 auto .4em; max-width: 18ch; line-height: 1.1; }
.pano p { color: #dcebe2; max-width: 56ch; margin: 0 auto 1.4rem; }
.pano .btn-row { justify-content: center; }
@media (min-width: 981px) { .pano { padding-top: 96px; } }

/* page banner, bigger */
.pagehead { padding: 40px 0 36px; }
.pagehead h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.02em; max-width: 20ch; }
.pagehead .eyebrow { color: var(--gold); margin-bottom: 12px; font-size: .74rem; }
@media (min-width: 720px) { .pagehead { padding: 68px 0 58px; } }
@media (min-width: 981px) { .pagehead { padding: 84px 0 70px; } }

/* richer prose */
.prose > p:first-child { font-size: 1.12rem; color: var(--ink); }
.prose h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.prose h3 { color: var(--g8); }
.card, .ccard, .pcard, .mcard, .dept, .acard { transition: box-shadow .2s, border-color .2s, background-color .2s; }

/* mega menu picture */
.drop .intro img { display: block; height: 130px; object-fit: cover; margin: -28px -28px 18px; width: calc(100% + 56px); max-width: none; }

/* hero facts strip: a plain container, not the hero grid */
.hero-facts .container { display: block; padding-top: 0; padding-bottom: 0; grid-template-columns: none; gap: 0; }
.hero h1 { max-width: 16ch; }
@media (min-width: 981px) { .hero-facts { padding-bottom: 46px; } }

/* programme and college fact bars */
.pfacts { background: var(--g8); color: #fff; }
.pfacts > div { padding: 18px var(--gx); border-bottom: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; justify-content: center; }
.pfacts small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.pfacts b { font: 600 1.15rem/1.3 var(--serif); }
.pfacts a { color: #fff; }
.pfacts .col { flex-direction: row; align-items: center; gap: 14px; }
.pfacts .col img { width: 48px; height: 48px; object-fit: contain; background: #fff; padding: 4px; border-radius: 3px; flex: none; }
@media (min-width: 720px) { .pfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); } .pfacts > div { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .16); padding: 22px 24px; } .pfacts > div:last-child { border-right: 0; } }

/* contact page */
.ctiles { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); }
.ctile { padding: 26px 24px 24px; border-top: 6px solid var(--g7); background: #fff; display: flex; flex-direction: column; gap: 8px; }
.ctile.red { border-top-color: var(--red); } .ctile.green { border-top-color: var(--leaf); } .ctile.gold { border-top-color: var(--gold); }
.ctile small { text-transform: uppercase; letter-spacing: .09em; font-size: .74rem; font-weight: 700; color: var(--muted); }
.ctile b { font: 700 clamp(1.5rem, 3.4vw, 2rem)/1.15 var(--serif); color: var(--g8); }
.ctile b a { color: inherit; text-decoration: none; }
.ctile b a:hover { text-decoration: underline; }
.ctile span { color: var(--text); font-size: .98rem; }
.ctile .more { margin-top: auto; padding-top: 6px; }
@media (min-width: 860px) { .ctiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ctile + .ctile { border-left: 1px solid var(--line); } }
.offices { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-bottom: 2rem; }
.offices > div { border: 1px solid var(--line); border-left: 4px solid var(--g7); background: #fff; padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.offices > div:nth-child(3n+1) { border-left-color: var(--red); } .offices > div:nth-child(3n+2) { border-left-color: var(--leaf); } .offices > div:nth-child(3n) { border-left-color: var(--gold); }
.offices b { font: 600 1.08rem var(--serif); color: var(--g8); }
.offices span { font-size: .95rem; } .offices small { color: var(--muted); }
@media (min-width: 720px) { .offices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .offices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


/* =====================================================================
   Refinement: restraint. One brand colour, warm neutrals, hairlines,
   large photographs, calm type. Overrides earlier component colours.
   ===================================================================== */
:root {
  --g9: #062819; --g8: #0b3d26; --g7: #14573a; --leaf: #5d8c6c; --g1: #e8efe9; --g0: #f4f6f2;
  --red: #a62a2b; --red-d: #8a2021;
  --gold: #b8923a; --gold-d: #8f6f26; --gold-l: #f3ebd6;
  --ink: #121b16; --text: #2a342e; --muted: #66706a;
  --line: #dcd8cc; --line-s: #ebe8de; --paper: #f6f3ea; --alt: #f5f3ed;
  --r: 2px; --shadow: 0 12px 34px rgba(6, 40, 25, .10);
}
body { font-size: 17px; }
@media (min-width: 981px) { body { font-size: 18px; line-height: 1.7; } }
h1, h2, h3 { font-weight: 600; }
.bat { height: 3px; background: var(--gold); }
.bat i { display: none; }

/* header: light, airy navigation */
.utility { background: var(--g9); }
.site-header { border-bottom: 1px solid var(--line-s); }
.brandbar { padding: 14px 0; }
@media (min-width: 720px) { .brandbar { padding: 20px 0; } .brand img { width: 68px; } }
.mainnav { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav > li > a, .nav > li > button { color: var(--ink); }
.nav > li { border-top-color: var(--line-s); }
.menu-toggle { color: var(--ink); }
.menu-toggle .bars { border-color: var(--ink); }
.menu-toggle .bars::after { border-color: var(--ink); }
.navwrap.open { background: #fff; }
.nav > li.open > button { background: var(--g0); }
.navwrap .m-extra { border-top-color: var(--line); }
.navwrap .m-extra a { color: var(--text); }
@media (min-width: 981px) {
  .nav > li > a, .nav > li > button { padding: 19px 18px; font-size: 1rem; }
  .nav > li > a:hover, .nav > li > button:hover, .nav > li.open > button, .nav > li:hover > button { background: transparent; color: var(--g7); border-bottom-color: var(--gold); }
  .nav > li.current > a, .nav > li.current > button { color: var(--g8); border-bottom-color: var(--gold); }
  .drop { border-top: 3px solid var(--gold); }
}
.mainnav.stuck { box-shadow: 0 8px 24px rgba(6, 40, 25, .12); }

/* hero: one clear statement over the photograph */
.hero { min-height: clamp(560px, 80vh, 780px); }
.hero::before { background: rgba(5, 32, 19, .62); }
.hero-main { align-items: end; }
.hero-main .container { grid-template-columns: minmax(0, 1fr); padding-top: 60px; padding-bottom: 54px; }
.hero h1 { font-size: clamp(2.6rem, 8.4vw, 5.4rem); max-width: 15ch; font-weight: 600; margin-bottom: 22px; }
.hero .lede { max-width: 600px; }
.hero-facts { background: rgba(5, 32, 19, .5); }
.hero .eyebrow { color: #e3c77d; }
@media (min-width: 981px) { .hero-main .container { grid-template-columns: minmax(0, 1fr); padding-top: 80px; padding-bottom: 90px; } .hero-facts { padding-bottom: 46px; } }

/* neutral surfaces: no colour-cycling borders */
.card, .card:nth-child(n) { border: 1px solid var(--line); border-top: 3px solid var(--g8); }
.card:hover { border-top-color: var(--gold); }
.pcard, .pcard.b, .pcard.a, .pcard.t { border-top: 3px solid var(--g8); }
.pcard:hover { border-top-color: var(--gold); }
.ccard::after, .ccard.b::after, .ccard.a::after, .ccard.t::after { background: var(--g8); height: 3px; }
.ccard:hover::after { background: var(--gold); }
.ctile, .ctile.red, .ctile.green, .ctile.gold { border-top: 3px solid var(--g8); }
.ctile:hover { border-top-color: var(--gold); }
.offices > div, .offices > div:nth-child(n) { border-left: 3px solid var(--g8); }
.club { border-top: 3px solid var(--g8); }
.person { border-top: 3px solid var(--g8); }
.rank, .rank:nth-child(n) { border-left: 4px solid var(--g8); }
.dock li a::after, .dock li:nth-child(n) a::after { background: var(--gold); }
.date, .date { border-top: 1px solid var(--line); }
.date b { color: var(--g8); }
.tag, .tag.red, .tag.gold { background: var(--paper); color: var(--g8); border: 1px solid var(--line); border-radius: 0; font-weight: 600; letter-spacing: .01em; }
.timeline li::before, .timeline li:nth-child(n)::before { border-color: var(--gold); }
.journey li::before, .journey li:nth-child(n)::before { color: var(--gold); }
.daystrip { border-top-color: var(--gold); }
.ltile::after, .ltile:nth-child(n)::after { background: var(--gold); height: 4px; }
.org-node, .org-node.exec, .org-node.lead { border-top-color: var(--g8); }
.org-node.top { border-top-color: var(--gold); }
.steps li::before, .steps li:nth-child(n)::before { background: var(--g8); color: #fff; }
.cx-tabs button { --tint: var(--gold) !important; }
.prose h2::after { background: var(--gold); }
.sidenav a[aria-current="page"] { border-left-color: var(--gold); }
.tabs button[aria-selected="true"] { border-bottom-color: var(--gold); }
.eyebrow { color: var(--gold-d); }
.sec.dark .eyebrow, .hero .eyebrow, .pano .eyebrow, .pagehead .eyebrow { color: #e3c77d; }

/* facts as a single dark band, not coloured blocks */
.sblocks { background: var(--g8); }
.sblock, .sblock.red, .sblock.green, .sblock.gold, .sblock.dark { background: transparent; color: #fff; padding: 30px 24px; border-left: 1px solid rgba(255, 255, 255, .16); }
.sblock:first-child { border-left: 0; }
.sblock b { color: #fff; }
.sblock span { color: #cfe0d5; }
.sblock::before { content: ""; display: block; width: 34px; height: 3px; background: var(--gold); margin-bottom: 18px; }
.sblock.gold { color: #fff; }

/* numbers band over a photograph */
.band li, .band li:nth-child(n) { border-top: 2px solid var(--gold); }
.band::before { background: rgba(5, 32, 19, .86); }

/* rankings: ruled cells, large numerals */
.rtiles { border-top: 1px solid var(--line); border-left: 1px solid var(--line); gap: 0; }
.rtile, .rtile:nth-child(n) { background: #fff; color: var(--ink); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 178px; position: relative; padding-top: 30px; }
.rtile::before { content: ""; position: absolute; left: 24px; top: 0; width: 36px; height: 3px; background: var(--gold); }
.rtile .org { color: var(--muted); opacity: 1; }
.rtile .org em, .rtile:nth-child(4n) .org em { background: var(--paper); color: var(--g8); border: 1px solid var(--line); }
.rtile b { color: var(--g8); }
.rtile span { color: var(--muted); opacity: 1; }

/* editorial section heads: a ruled line above the title */
.sec-head { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 30px; }
.sec.dark .sec-head { border-top-color: rgba(255, 255, 255, .22); }
.sec-head h2 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.12; }
.sec-lead { font-size: 1.1rem; margin-bottom: 30px; }
.sec { padding: calc(var(--sec) * 1.15) 0; }
.edit h2 { font-size: clamp(2rem, 4.8vw, 3.2rem); }

/* announcements below the action dock */
.annc2 { display: grid; gap: 44px; }
.annc2 .sec-head { margin-bottom: 18px; }
.annc2 .sec-head h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
@media (min-width: 981px) { .annc2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; } }
.annc2 .datelist li { padding: 16px 0; }
.annc2 .datelist li:first-child { padding-top: 0; }

/* founder */
.founder { display: grid; gap: 34px; align-items: center; }
.founder .fp { position: relative; max-width: 300px; }
.founder .fp img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--g1); display: block; }
.founder .fp::after { content: ""; position: absolute; right: -12px; bottom: -12px; width: 78%; height: 78%; border-right: 4px solid var(--gold); border-bottom: 4px solid var(--gold); }
.founder blockquote { margin: 0 0 22px; padding: 0; border: 0; font: 500 clamp(1.7rem, 3.8vw, 2.8rem)/1.25 var(--serif); color: var(--g8); letter-spacing: -.012em; max-width: 24ch; }
.founder blockquote::before { content: "\201C"; display: block; font-size: 4.4rem; line-height: .7; color: var(--gold); margin-bottom: 8px; }
@media (min-width: 981px) { .founder { grid-template-columns: 300px minmax(0, 1fr); gap: 84px; } }

/* history in brief */
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.hist li { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line-s); display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; }
.hist b { font: 700 1.6rem/1.1 var(--serif); color: var(--gold-d); }
.hist strong { display: block; font: 600 1.05rem var(--serif); color: var(--g8); }
.hist span { color: var(--muted); font-size: .94rem; line-height: 1.5; }
@media (min-width: 981px) { .hist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; } .hist li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; } }

/* news cards: quieter */
.mcard { border-color: var(--line); }
.mcard:hover h3 { color: var(--g7); }

/* page banner */
.pagehead::before { background: rgba(5, 32, 19, .8); }

/* buttons: rectangular, confident */
.btn { letter-spacing: .01em; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { background: var(--gold-d); border-color: var(--gold-d); color: #fff; }

/* mega menu intro */
.drop .intro h3 { color: var(--g8); }
.finder-band { background: var(--g8); }
.levels a { border-radius: 0; }
.chips button { border-radius: 0; }
.cx-panel .chips2 a { border-radius: 0; background: var(--paper); }

/* small corrections */
.prose .split { align-items: start; }
.hero::before { background: rgba(5, 32, 19, .7); }
@media (min-width: 981px) { .hero::before { background: rgba(5, 32, 19, .62); } }


/* opening screen */
#preload { position: fixed; inset: 0; z-index: 3000; background: #fff; display: flex; align-items: center; justify-content: center; transition: opacity .55s ease, visibility .55s; }
#preload.out { opacity: 0; visibility: hidden; }
#preload .pl-in { display: flex; flex-direction: column; align-items: center; gap: 22px; }
#preload img { width: 124px; height: auto; }
#preload .pl-bar { display: block; width: 150px; height: 2px; background: var(--line-s); overflow: hidden; }
#preload .pl-bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: plbar 1.1s ease-out forwards; }
@keyframes plbar { to { transform: scaleX(1); } }
html.pl-lock { overflow: hidden; }
html.pl-lock .hero *, html.pl-lock .pagehead * { animation-play-state: paused !important; }


/* long pages: titled, collapsible sections */
.sect-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.sect-tools button { border: 1px solid var(--line); background: #fff; padding: 8px 16px; font-weight: 600; min-height: 42px; color: var(--g8); transition: background-color .18s, border-color .18s; }
.sect-tools button:hover { background: var(--g0); border-color: var(--g7); }
details.sect { border-top: 1px solid var(--line); }
details.sect:last-of-type { border-bottom: 1px solid var(--line); }
details.sect > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 2px; min-height: 64px; }
details.sect > summary::-webkit-details-marker { display: none; }
details.sect > summary::after { content: "+"; font: 300 2rem/1 var(--sans); color: var(--gold-d); flex: none; width: 28px; text-align: center; }
details.sect[open] > summary::after { content: "\2212"; }
.prose details.sect > summary h2, .prose details.sect > summary h3 { margin: 0; padding: 0; border: 0; font-size: clamp(1.2rem, 2.8vw, 1.55rem); color: var(--g8); }
.prose details.sect > summary h2::after, .prose details.sect > summary h3::after { display: none; }
details.sect > summary:hover h2, details.sect > summary:hover h3 { color: var(--g7); }
details.sect[open] > summary { padding-bottom: 8px; }
details.sect .sect-body { padding: 4px 2px 30px; animation: fade .35s ease both; }
details.sect .sect-body > :last-child { margin-bottom: 0; }

/* =====================================================================
   Motion: restrained and purposeful. All of it is off for visitors who
   ask their device for reduced motion, and the site works without it.
   ===================================================================== */
html { scroll-behavior: smooth; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dropin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }

/* hero: text rises into place, the video drifts very slowly */
.hero .eyebrow, .hero h1, .hero .lede, .hero .hero-main .btn-row { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .eyebrow { animation-delay: .05s; }
.hero h1 { animation-delay: .15s; }
.hero .lede { animation-delay: .3s; }
.hero .hero-main .btn-row { animation-delay: .45s; }
.hero .annc { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .35s both; }
.hero-facts { animation: fade 1s ease .8s both; }
.hero video { animation: drift 28s ease-out both; transform-origin: 60% 40%; }
.pagehead .container > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.pagehead .crumbs { animation-delay: .02s; }
.pagehead .eyebrow { animation-delay: .08s; }
.pagehead h1 { animation-delay: .14s; }
.pagehead .lead { animation-delay: .24s; }

/* sections reveal as they come into view (added by shell.js, only below the fold) */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* buttons, links and cards */
.btn { transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(8, 47, 27, .18); }
.btn:active { transform: none; box-shadow: none; }
.more::after { display: inline-block; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }
.card, .ccard, .pcard, .mcard, .acard, .dept, .person, .offices > div, .ctile { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .2s, background-color .2s; }
.card:hover, .ccard:hover, .pcard:hover, .mcard:hover, .dept:hover { transform: translateY(-4px); }
.acard:hover, .offices > div:hover, .ctile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ccard .ph { overflow: hidden; }
.ccard .ph img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.ccard:hover .ph img { transform: scale(1.06); }
.cx-panel .ph img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.cx-panel:not([hidden]) .ph img { animation: drift 9s ease-out both; }
.collage img, .photo img, .admit-card img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.collage:hover .a, .photo:hover img, .admit-card:hover img { transform: scale(1.03); }
.photo, .admit-card, .collage .a { overflow: hidden; }
.nav > li > a, .nav > li > button, .drop a, .sidenav a, .tabs button, .cx-tabs button, .chips button, .levels a { transition: background-color .18s, color .18s, border-color .18s; }
.sidenav a { transition: background-color .18s, padding-left .2s, border-color .18s; }
.sidenav a:hover { padding-left: 22px; }

/* menus, tabs and accordions */
.nav > li.open > .drop, .nav > li:hover > .drop, .nav > li:focus-within > .drop { animation: dropin .2s cubic-bezier(.2, .7, .2, 1) both; }
.navwrap.open { animation: fade .2s ease both; }
[role="tabpanel"]:not([hidden]) { animation: fade .4s ease both; }
details.acc[open] > .body { animation: fade .35s ease both; }
.sidenav[open] > ul { animation: fade .25s ease both; }

/* sticky menu: shadow once the page scrolls, and a reading-progress line */
.mainnav { transition: box-shadow .25s; }
.mainnav.stuck { box-shadow: 0 8px 22px rgba(8, 47, 27, .22); }
.mainnav .progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }
.totop { position: fixed; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; background: var(--g8); color: #fff; border: 2px solid rgba(255, 255, 255, .85); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background-color .2s; z-index: 70; padding: 0; }
.totop svg { width: 18px; height: 18px; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--red); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
  .hero video, .cx-panel .ph img { animation: none !important; }
  .mainnav .progress { display: none; }
}
