/*
 * Imperial × QRT Labs — shared page styles.
 *
 * Interior pages only. The homepage hero still carries its own copy of the
 * tokens and masthead inline, because it is a self-contained concept file that
 * has to open from file:// with nothing beside it but its fonts and equations.
 * Whenever the hero moves into this directory for real, fold it onto this sheet
 * and delete the duplication.
 */

/* ==========================================================================
   Tokens — identical to the hero's, which derives them from templates/*.cls
   ========================================================================== */
:root {
  --blue:      #0000CD;   /* ICLBlue */
  --dark-blue: #000080;   /* ICLDarkBlue */
  --ink:       #0F1224;
  --muted:     #4A4F66;
  --page:      #FFFFFF;
  --rule:      #0000CD;
  --focus:     #000080;   /* ICLDarkBlue: 14.8:1 on white; the amber it replaced was 1.8:1 */
  --hairline:  rgba(15, 18, 36, .16);
  --frame:     rgba(0, 0, 205, .06);

  --display: "Imperial Sans Display", "Inter", system-ui, -apple-system, sans-serif;
  --text:    "Imperial Sans Text", "Inter", system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue); text-decoration: none; }
/* Links inside body copy are underlined: the blue is 1.66:1 against the ink,
   so colour alone does not mark them (WCAG 1.4.1). Navigation, cards and
   buttons carry their own affordance and stay plain. */
.intro a,
.prose a,
.item__text a,
.proposal__sups a,
.proposal__text a,
.sup__links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 99;
  padding: .75rem 1rem;
  background: var(--blue); color: #fff;
  font-family: var(--text); font-size: .875rem; font-weight: 600;
  transform: translateY(-200%);
  transition: transform .2s cubic-bezier(.2,0,.2,1);
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   Header — the hero's masthead, unchanged. No rule under it:
   ImperialPoster.cls sets \headrulewidth to 0pt.
   ========================================================================== */
.site-header { position: relative; background: var(--page); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.lockup {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.lockup a { color: inherit; }
.lockup a:hover { color: var(--blue); }

.lockup__x {
  color: var(--blue);
  font-weight: 800;
  font-size: 1.1em;
  line-height: 1;
  margin: 0 .3em;
  vertical-align: -.04em;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  display: inline-block;
  padding: .25rem 0;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color .15s cubic-bezier(.2,0,.2,1), color .15s cubic-bezier(.2,0,.2,1);
}
.primary-nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.primary-nav [aria-current],
.primary-nav [data-current] { color: var(--blue); border-bottom-color: var(--blue); }

/* Admissions carries a drop-down of its two pages. CSS only: it opens on hover
   and on keyboard focus within the group; the ::before bridge keeps the pointer
   inside the group while it crosses the gap. The pages' own sub-nav bar is the
   baseline — the drop-down is an enhancement and is off below 48rem.
   Selectors are prefixed .primary-nav because `.primary-nav ul` and
   `.primary-nav a` above outrank a bare class and would keep the list open. */
.primary-nav .primary-nav__group { position: relative; }
.primary-nav .primary-nav__group > a { padding-right: .875rem; }
.primary-nav .primary-nav__group > a::after {
  content: "";
  position: absolute;
  right: 0;
  top: .55em;
  width: .3em;
  height: .3em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.primary-nav .primary-nav__sub {
  position: absolute;
  top: 100%;
  left: -1rem;
  z-index: 10;
  display: none;
  flex-direction: column;
  gap: 0;
  min-width: 13rem;
  margin: .375rem 0 0;
  padding: .375rem 0;
  background: var(--page);
  border: 1px solid var(--hairline);
  box-shadow: 0 .5rem 1.5rem rgba(15, 18, 36, .08);
}
.primary-nav .primary-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -.5rem; height: .5rem; }
.primary-nav .primary-nav__group:hover .primary-nav__sub,
.primary-nav .primary-nav__group:focus-within .primary-nav__sub { display: flex; }
.primary-nav .primary-nav__sub a { display: block; padding: .5rem 1rem; border-bottom: 0; }
.primary-nav .primary-nav__sub a:hover,
.primary-nav .primary-nav__sub [aria-current] { color: var(--blue); border-bottom: 0; }

@media (max-width: 47.9375rem) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .875rem;
    padding: .875rem 1.5rem 1rem;
  }
  .primary-nav ul { gap: .625rem 1.125rem; }
  .primary-nav a { font-size: .8125rem; }
  .primary-nav .primary-nav__group > a { padding-right: 0; }
  .primary-nav .primary-nav__group > a::after { display: none; }
  .primary-nav .primary-nav__group:hover .primary-nav__sub,
  .primary-nav .primary-nav__group:focus-within .primary-nav__sub { display: none; }
}

/* ==========================================================================
   Title block
   --------------------------------------------------------------------------
   \titlesection from templates/ImperialPoster.cls, with both \hlines this
   time. The hero drops the lower rule because the vector field has to carry
   on past it; an interior page has nothing to carry on into, so the device
   closes as the class actually draws it.
   ========================================================================== */
.page-band {
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
}
.page-band__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
}
.page-title {
  margin: 0;
  font-family: var(--display);
  /* Bold, per \titlesection's \bfseries — see HANDOFF.md on design.md's
     Medium, which was read off \section instead. */
  font-weight: 700;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

/* ==========================================================================
   Sub-navigation — the People section's two pages
   ========================================================================== */
.sub-nav { border-bottom: 1px solid var(--hairline); }
.sub-nav__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sub-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sub-nav a {
  display: inline-block;
  /* -1px pulls the active underline onto the container's hairline so the two
     read as one rule rather than two stacked. */
  margin-bottom: -1px;
  padding: .875rem 0;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color .15s cubic-bezier(.2,0,.2,1), color .15s cubic-bezier(.2,0,.2,1);
}
.sub-nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.sub-nav [aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

/* ==========================================================================
   Page body
   ========================================================================== */
.wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 5rem;
}

.intro {
  margin: 0;
  max-width: 52ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
}

.section__title + .intro { margin-top: 1rem; }

.section { margin-top: 3rem; }
/* .wrap already pads its top; the first section must not add to it. */
.wrap > .section:first-child { margin-top: 0; }
.section__title {
  margin: 0;
  font-family: var(--display);
  /* Medium — \section in ImperialPoster.cls. The page title above is the Bold
     one, and keeping the two apart is what makes the hierarchy read. */
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}


/* ==========================================================================
   People grid
   --------------------------------------------------------------------------
   Five across at full width, which is the row length the leadership and each
   department group are built around.
   ========================================================================== */
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 34rem) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 48rem) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .people { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.person { min-width: 0; }

/*
 * One link around both the portrait and the name, rather than two links to the
 * same place: a screen reader announces it once, and the whole block is one
 * target.
 */
.person__link { display: block; color: var(--ink); }

.person__frame {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--frame);
  overflow: hidden;
}

/*
 * The initials sit under the photograph and show through only while there is
 * no photograph — so the page is composed before any picture is dropped in,
 * and a missing file never leaves a broken-image icon. Set at scale in
 * ICLDarkBlue, after \largepercent, which is Extrabold at 213pt.
 */
.person__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--dark-blue);
  opacity: .26;
  user-select: none;
}

.person__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The 2pt rule again, as the hover state: it wipes in along the foot of the
   portrait. It is the one moving part on the page. */
.person__frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s cubic-bezier(.2,0,.2,1);
}
.person__link:hover .person__frame::after,
.person__link:focus-visible .person__frame::after { transform: scaleX(1); }

.person__name {
  display: block;
  /* All four sides: this class lands on a <span> in a real card and a <p> in a
     reserved slot, and a <p> keeps the browser's 1em bottom margin otherwise. */
  margin: .75rem 0 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
  transition: color .15s cubic-bezier(.2,0,.2,1);
}
.person__link:hover .person__name { color: var(--blue); }

.person__role {
  margin: .3125rem 0 0;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--blue);
}
/* The muted line under the role: a department for professional-services staff,
   a broad research area for everyone else. */
.person__dept,
.person__area {
  margin: .125rem 0 0;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Stands in for the department line where someone has no page of their own and
   the card links to an address instead. Breaks anywhere: an address is one
   unbroken word and the column is about 14rem at full width. */
.person__contact {
  margin: .125rem 0 0;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* A card with no role line: whichever meta line comes first takes the spacing
   the role line would have had, so names do not sit tight on their area. */
.person__link + .person__area,
.person__link + .person__dept,
.person__link + .person__contact { margin-top: .3125rem; }

/* --- Reserved slots ------------------------------------------------------ */
/*
 * A slot that is held open, not a card that failed. Hairline frame, the blue
 * \textbullet of \labelitemi at its centre, and no link.
 */
.person--tbc .person__frame {
  background: transparent;
  border: 1px solid var(--hairline);
}
.person--tbc .person__frame::after { content: none; }
.person__bullet {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue);
  opacity: .45;
}
.person--tbc .person__name {
  color: var(--muted);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .primary-nav a,
  .sub-nav a,
  .person__frame::after,
  .person__name { transition: none; }
  .person__link:hover .person__frame::after,
  .person__link:focus-visible .person__frame::after { transform: scaleX(1); }
}


/* ==========================================================================
   Prose — body copy on the About page
   --------------------------------------------------------------------------
   One measure for everything under a section title. .intro is the lede style
   (52ch, larger) and is not mixed with this on the same page.
   ========================================================================== */
.prose { max-width: 66ch; }
.section__title + .prose { margin-top: 1rem; }
.prose p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.prose p + p,
.prose ul + p,
.prose ol + p { margin-top: 1rem; }
.prose ul,
.prose ol {
  margin: .75rem 0 0;
  padding-left: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.prose li + li { margin-top: .25rem; }
/* Steps get more air than a list of names. */
.prose ol li + li { margin-top: .5rem; }
/* Examples nested inside a step. */
.prose li > ul { margin-top: .5rem; }
.prose li > ul li + li { margin-top: .25rem; }
/* \labelitemi — the class's bullet is blue. */
.prose li::marker { color: var(--blue); }

/* The × in a section title, same idiom as the lockup's. */
.section__x {
  color: var(--blue);
  font-weight: 800;
  margin: 0 .1em;
}

.subsection { margin-top: 1.75rem; }
.subsection__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.subsection__title + p { margin-top: .5rem; }


/* ==========================================================================
   Programme — course map
   --------------------------------------------------------------------------
   Three example PhD paths (tabs) above three department columns of module
   chips. programme.js sets data-active on .map, data-on on the chips of the
   current path, aria-selected on the tabs and hidden on the panels — all
   attributes, because check-site.py fails a CSS class that no page carries.
   ========================================================================== */
.map { position: relative; margin-top: 2rem; }

.map__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .75rem;
}
.map__pause {
  appearance: none;
  margin: 0;
  min-height: 1.5rem; /* 24px target floor, WCAG 2.5.8 */
  padding: .375rem .75rem;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--page);
  color: var(--ink);
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.map__pause:hover { color: var(--blue); border-color: var(--blue); }

.map__label {
  margin: 0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.map__tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.map__tab {
  appearance: none;
  margin: 0;
  padding: .5rem .875rem;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--page);
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color .15s cubic-bezier(.2,0,.2,1), border-color .15s cubic-bezier(.2,0,.2,1), background .15s cubic-bezier(.2,0,.2,1);
}
.map__tab:hover { color: var(--blue); border-color: var(--blue); }
.map__tab[aria-selected="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }

/* The lines live over the whole map so they can start at a tab. */
.map__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.map__lines path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.map__stage { margin-top: 3rem; }
.map__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.map__col { min-width: 0; }
.map__dept {
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.chips {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  padding: .375rem .625rem;
  border: 1px solid var(--hairline);
  background: var(--page);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.35;
  transition: opacity .35s cubic-bezier(.2,0,.2,1), border-color .35s cubic-bezier(.2,0,.2,1), background .35s cubic-bezier(.2,0,.2,1), color .35s cubic-bezier(.2,0,.2,1);
}
/* .6, not .4: dimmed names still have to clear 4.5:1 (they measure 4.85). */
.map[data-active] .chip { opacity: .6; }
.map[data-active] .chip[data-on] {
  opacity: 1;
  border-color: var(--blue);
  background: var(--frame);
  color: var(--dark-blue);
  font-weight: 600;
}

.map__paths { margin-top: 2rem; }
.map__path p {
  margin: 0;
  max-width: 66ch;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.map__path p + p { margin-top: .5rem; }
.map__path .map__courses { font-size: .9375rem; color: var(--muted); }

@media (max-width: 47.9375rem) {
  .map__cols { grid-template-columns: 1fr; gap: 1.25rem; }
  /* Stacked columns put the lines through the chips; the highlight carries it. */
  .map__lines { display: none; }
  .map__stage { margin-top: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .chip, .map__tab { transition: none; }
}


/* ==========================================================================
   News and Events — a dated list
   ========================================================================== */
.items {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 66ch;
}
.item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--hairline);
}
.item:last-child { border-bottom: 1px solid var(--hairline); }
.item__date {
  margin: 0;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
}
.item__title {
  margin: .375rem 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.item__title a { color: inherit; }
.item__title a:hover { color: var(--blue); }
.item__text {
  margin: .5rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.items + .intro { margin-top: 1.5rem; }


/* ==========================================================================
   Supervisory pool — three department columns of name · line · links
   ========================================================================== */
.pool {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 0;
  margin-top: 2.25rem;
}
.pool__col { min-width: 0; }
/* Department: the 2pt rule from the title block, so the three groups read as
   three ruled sections side by side; entries below are hairlined. */
.pool__dept {
  margin: 0;
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--rule);
  color: var(--blue);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.sups { margin: 0; padding: 0; list-style: none; }
.sup { padding: 1.25rem 0; border-bottom: 1px solid var(--hairline); }
.sup__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
}
.sup__text { margin: .375rem 0 0; font-size: .9375rem; line-height: 1.5; }
.sup__links {
  margin: .5rem 0 0;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
}
.sup__sep { color: var(--muted); font-weight: 400; }
@media (min-width: 48rem) {
  .pool__col { padding: 0 2rem; }
  .pool__col:first-child { padding-left: 0; }
  .pool__col:last-child { padding-right: 0; }
  .pool__col + .pool__col { border-left: 1px solid var(--hairline); }
}
@media (max-width: 47.9375rem) { .pool { gap: 2.5rem; } }

/* ==========================================================================
   Footer — the title block's 2pt rule closes the page; one row of links.
   ========================================================================== */
.site-footer { border-top: 2px solid var(--rule); background: var(--page); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem 2rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  font-size: .875rem;
}
.site-footer__lockup {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__links a { color: var(--ink); font-weight: 600; }
.site-footer__links a:hover { color: var(--blue); }
.site-footer__copy { margin: 0 0 0 auto; color: var(--muted); }


/* ==========================================================================
   Project proposals — reference · title · supervisors · disclosed description
   ========================================================================== */
.proposals {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 76ch;
}
.proposal {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: .25rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hairline);
}
.proposal:last-child { border-bottom: 1px solid var(--hairline); }
.proposal__body { min-width: 0; }
/* The reference takes the date idiom from News and Events. */
.proposal__ref {
  margin: .3rem 0 0;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--blue);
  white-space: nowrap;
}
.proposal__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.proposal__sups {
  margin: .375rem 0 0;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--muted);
}
.proposal__sups a { font-weight: 600; }
/* Native disclosure: no JS, content stays in the DOM for indexing. */
.proposal__details { margin-top: .75rem; }
.proposal__details summary {
  cursor: pointer;
  width: max-content;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--blue);
}
.proposal__details summary::marker,
.proposal__details summary::-webkit-details-marker { color: var(--blue); }
.proposal__details summary:hover { text-decoration: underline; }
.proposal__details[open] summary { margin-bottom: .625rem; }
.proposal__text { max-width: 66ch; }
.proposal__text p,
.proposal__text ol {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}
.proposal__text ol { padding-left: 1.25rem; }
.proposal__text p + p,
.proposal__text p + ol,
.proposal__text ol + p { margin-top: .75rem; }
.proposal__text li + li { margin-top: .25rem; }
.proposal__text li::marker { color: var(--blue); }
@media (max-width: 47.9375rem) {
  .proposal { grid-template-columns: minmax(0, 1fr); gap: .375rem 0; }
  .proposal__ref { margin-top: 0; }
}


/* ==========================================================================
   Print — a closed <details> does not print its contents, so projects.html
   opens them all on beforeprint; here the labels and chrome go.
   ========================================================================== */
@media print {
  .primary-nav, .sub-nav, .site-footer__links, .skip-link { display: none; }
  .proposal { break-inside: avoid; }
  .proposal__details summary { display: none; }
}
