/* Campus preview – colours and typography shared by both pages. */
:root {
  --paper: #f7f9ff;
  --white: #fff;
  --ink: #17264b;
  --muted: #465572;
  --rust: #284cb3;
  --line: #c9d4e4;
  --mint: #d6f4ac;
  --sans: 'Segoe UI', Arial, sans-serif;
  --serif: var(--sans);
}

.masthead { background: var(--white); border-color: var(--line); }
.masthead-inner { min-height: 4.3rem; }
.university { font-family: Georgia, serif; }
nav a:hover { color: var(--rust); }
.hero, .guide-intro { padding-block: clamp(2.4rem, 4.8vw, 5rem); }
.hero-copy { min-width: 0; }
h1, h2 { font-weight: 750; letter-spacing: -.05em; }
.hero h1 { max-width: 12ch; font-size: clamp(3.15rem, 6.1vw, 5.75rem); line-height: 1.01; text-wrap: initial; }
.hero h1 > span { display: block; margin-bottom: .5em; font-size: .44em; line-height: 1.1; letter-spacing: -.04em; }
h1 em { font-style: normal; color: var(--rust); }
.highlight { background: linear-gradient(transparent 76%, var(--mint) 76%, var(--mint) 93%, transparent 93%); }
.intro { max-width: 49ch; }
.button { border-radius: .7rem; font-weight: 700; }
.solid { background: var(--rust); }
.solid:hover { background: #193782; }
.outline { border-color: #8c9dbb; background: var(--white); }
.outline:hover { background: #edf2ff; }
.lab-location { display: inline-flex; align-items: baseline; gap: .65rem; margin-top: 1.35rem; color: var(--muted); font-size: .88rem; text-decoration: none; }
.lab-location:hover { text-decoration: underline; }
.pin { position: relative; top: .08em; align-self: baseline; flex: none; width: .84em; height: .84em; border: 2px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.study-in-pictures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 34rem;
  gap: .65rem;
  margin-top: 1.45rem;
  padding-top: .8rem;
  border-top: 1px dashed #a9b8d5;
  text-align: center;
}
.study-in-pictures dt { display: flex; flex-direction: column; align-items: center; font-weight: 700; font-size: .98rem; line-height: 1.2; }
.study-in-pictures img { display: block; width: min(100%, 6rem); height: clamp(4.6rem, 8vw, 6.2rem); margin: 0 auto .35rem; object-fit: contain; }
.study-in-pictures dd { margin: .3rem auto 0; max-width: 17ch; color: var(--muted); font-size: .86rem; line-height: 1.4; text-wrap: balance; }
.guide-illustration { display: block; width: 6.5rem; height: auto; margin-bottom: 1rem; }
.visit-overview, .guide-index {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  background: var(--white);
  box-shadow: .35rem .35rem 0 #e1e9f8;
}
.visit-overview::before, .guide-index::before {
  content: '';
  position: absolute;
  top: -.55rem;
  right: 1.8rem;
  width: 3.8rem;
  height: 1rem;
  background: var(--mint);
  transform: rotate(5deg);
}
.visit-overview h2 { max-width: 25ch; font-size: clamp(1.55rem, 2.25vw, 2.1rem); margin-bottom: 1.2rem; }
.visit-overview .timeline li { padding-left: 2.55rem; padding-bottom: .82rem; }
.visit-overview .timeline li:last-child { padding-bottom: 0; }
.timeline li::after { background: #ecf1ff; border-color: #cbd6f1; color: #254798; font: 700 .88rem/1 var(--sans); }
.visit-overview .timeline li::after { width: 1.8rem; height: 1.8rem; }
.timeline li:not(:last-child)::before { background: #cad5ed; }
.visit-overview .timeline li:not(:last-child)::before { left: .87rem; }
.visit-overview .timeline h3 { margin-bottom: .15rem; }
.visit-overview .timeline p { font-size: .94rem; }
.kicker { letter-spacing: .11em; }
.section { padding-block: clamp(3rem, 5.4vw, 5.6rem); }
.section h2 { font-size: clamp(2.05rem, 3.8vw, 3.5rem); }
.study-overview { margin-bottom: clamp(1.75rem, 4vw, 3rem); padding-left: 1rem; border-left: .25rem solid var(--mint); }
.study-overview h2 { font-size: clamp(2.2rem, 4vw, 3.65rem); letter-spacing: -.04em; color: var(--rust); }
.study-overview p { max-width: 68ch; margin-top: .5rem; }
.about-intro { max-width: 40ch; margin-top: 1.15rem; color: var(--muted); }
.rest-examples { margin: 0; padding-inline-start: 1.25rem; }
.rest-examples li { padding-inline-start: .25rem; }
.rest-examples li::marker { color: var(--rust); }
.rest-examples li + li { margin-top: 1.15rem; }
.rest-examples p { margin-top: .25rem; color: var(--muted); }
.pattern-figure, .facts { background: var(--white); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.pattern-caption { border: 0; padding: 1rem clamp(1rem, 2.4vw, 2rem); background: #e8efff; }
.pattern-caption h3, .routes h3, .guide-index h2, .criteria-panels h3, .exclusions h3 { font-weight: 700; }
.pattern-row, .pattern-figure .diagram-note, .facts > div { padding-inline: clamp(1rem, 2.4vw, 2rem); }
.pattern-figure .diagram-note { margin: 0; padding-block: .8rem; }
.rest-key { background: var(--mint); border-color: #537c39; }
.rest-block { fill: var(--mint); stroke: #537c39; }
.tinted { background: #edf2ff; }
.criteria-tabs { border-radius: 3rem; background: white; border-color: #99aac6; }
.criteria-tabs button { border-radius: 3rem; }
.criteria-columns { gap: 1rem; }
.criteria-panels, .criteria-columns .exclusions { border: 1px solid var(--line); border-radius: .9rem; background: var(--white); padding: clamp(1rem, 2.2vw, 1.65rem); }
.criteria-columns article { border: 0; padding: 0; }
.criteria-panels h3, .exclusions h3 { font-size: 1.4rem; }
.facts > div:first-child { border-top: 0; }
.facts > div:last-child { border-bottom: 0; }
.register { background: #192c54; }
.register .kicker { color: var(--mint); }
.register-lede, .routes h3 + p { color: #e4eafa; }
.register .light { background: var(--mint); }
.light-outline:hover { background: #304675; }
.routes > div, .register .team-emails li:first-child { border-color: #627391; }
.guide-intro h1 { font-size: clamp(2.75rem, 5.5vw, 5rem); }
@media (max-width: 40rem) {
  .masthead-inner { flex-wrap: wrap; padding-block: .8rem .15rem; gap: .25rem; }
  .masthead nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
  .masthead nav a { display: inline-flex; }
  .hero { gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 11vw, 4.25rem); }
}
@media (forced-colors: active) {
  .criteria-tabs [aria-selected="true"] { outline: 2px solid Highlight; }
}
