/* Editorial reading system: local display type, independent title, contextual images. */
@font-face {
  font-family:"HP Cormorant";
  src:url("https://static.igem.wiki/teams/6055/wiki/assets/fonts/hp-display.ttf") format("truetype");
  font-style:normal;
  font-weight:300 700;
  font-display:swap;
}
.hp-page { --hp-nav-height:76px; --hp-title-rise:min(40px,4svh); --hp-display:"HP Cormorant",Georgia,"Times New Roman",serif; }

/* Only the h1 contributes to the centered box; the metadata sits outside it. */
.hp-page .model-intro-layout { position:absolute; inset:var(--hp-nav-height) 0 0; z-index:10; display:grid; place-items:center; width:min(1200px,calc(100% - 64px)); height:auto; margin:0 auto; padding:0; text-align:center; }
.hp-page .model-intro-copy { position:relative; top:calc(-1 * var(--hp-title-rise)); width:100%; padding:0; }
.hp-page .model-intro-meta { position:absolute; bottom:calc(100% + 26px); left:0; width:100%; margin:0; color:#ebd4da; font:650 11px/1.6 "Segoe UI",Arial,sans-serif; letter-spacing:.2em; text-transform:uppercase; }
.hp-page .model-intro-copy h1 { margin:0; color:#fff7f0; font:500 clamp(100px,min(14vw,24svh),220px)/.88 var(--hp-display); letter-spacing:-.025em; text-shadow:0 2px 18px #03111b33; }
.hp-page .model-intro-copy h1 span+span { margin-top:5px; }
.hp-page .model-intro-copy h1 span:first-child { color:#f3d3dc; font-size:.88em; font-weight:400; font-style:italic; letter-spacing:-.035em; }
.hp-page .model-intro-copy h1 span:last-child { font-weight:600; letter-spacing:-.035em; }
.hp-hero-photographs { position:absolute; inset:0; pointer-events:none; }
.hp-hero-photo { --photo-angle:-5deg; position:absolute; left:-10px; top:64%; width:clamp(150px,14vw,210px); padding:7px 7px 0; border:0; border-radius:0; background:#fffaf6; color:#34444d; text-align:left; box-shadow:0 14px 38px #020d1840; transform:translateY(calc((1 - var(--city-copy))*30px)) rotate(var(--photo-angle)); transition:transform .45s cubic-bezier(.2,.7,.3,1),box-shadow .3s; pointer-events:auto; }
.hp-hero-photo-apic { --photo-angle:5deg; left:auto; right:-10px; top:7%; }
.hp-hero-photo img { display:block; width:100%; height:auto; }
.hp-hero-photo > span { display:flex; align-items:center; justify-content:space-between; padding:9px 2px 10px; font:650 10px/1.2 'Segoe UI',Arial,sans-serif; letter-spacing:.1em; }
.hp-hero-photo > span > span { color:#a94158; font-size:14px; }
.hp-hero-photo:hover,.hp-hero-photo:focus-visible { transform:translateY(-5px) rotate(0deg); box-shadow:0 20px 48px #020d1859; }

/* Prose and headings use the available content width, with no artificial empty column. */
.hp-page .hp-chapter-opening h2 { max-width:none; font:600 clamp(40px,3.6vw,58px)/1.08 var(--hp-display); letter-spacing:-.025em; }
.hp-page .editorial-prose > p { max-width:none; line-height:1.82; }
.hp-page #hp-framework .editorial-prose > .hp-framework-lead:first-child { max-width:none; font:500 clamp(27px,2.2vw,33px)/1.45 var(--hp-display); }
.hp-page .editorial-prose > .hp-section-heading { font:600 clamp(29px,2.5vw,36px)/1.2 var(--hp-display); }
.hp-page .editorial-prose > h4:not(.hp-phase) { font:600 28px/1.3 var(--hp-display); }
.hp-page .hp-phase { font:600 clamp(25px,2.1vw,30px)/1.25 var(--hp-display); }
.hp-page .hp-phase-label { font-size:11px; letter-spacing:.1em; }
.hp-page .hp-core-questions li { font:600 clamp(25px,2.25vw,32px)/1.3 var(--hp-display); }
.hp-page .hp-widget-heading h3 { font:600 38px/1.1 var(--hp-display) !important; }
.hp-page .hp-reflection > summary { font-family:var(--hp-display); font-size:27px; font-weight:600; line-height:1.25; }
.hp-page .hp-reflection-index { font:750 10px/1.5 "Segoe UI",Arial,sans-serif; }
.hp-page .hp-dialog-content h2 { font:600 clamp(32px,4vw,48px)/1.05 var(--hp-display); letter-spacing:-.02em; }

/* Portraits are taken from the named CV entries, beside the unchanged source paragraph. */
.hp-interview-note { display:grid; grid-template-columns:112px minmax(0,1fr); align-items:start; gap:24px; margin:30px 0; }
.hp-interview-note.is-pair { grid-template-columns:176px minmax(0,1fr); }
.hp-speaker-portraits { display:flex; gap:12px; align-items:flex-start; }
.hp-speaker { flex:1 1 0; min-width:0; display:block; padding:0; border:0; background:transparent; }
.hp-speaker img { display:block; width:100%; height:auto; max-height:150px; object-fit:contain; object-position:center top; }
.hp-interview-note.is-pair .hp-speaker img { max-height:112px; }
.hp-interview-copy { min-width:0; }
.hp-interview-copy > p { max-width:none; margin:0; color:#33434b; font-size:18px; line-height:1.82; text-wrap:pretty; }
.hp-interview-copy > p + p { margin-top:18px; }
.hp-interview-copy strong { font-weight:650; }

/* Wide meeting screenshots are not forced into the same row as a group photograph. */
.hp-media-screen { grid-template-columns:minmax(0,1fr); width:min(100%,860px); margin-inline:auto; }
.hp-page .hp-media-photos[data-count="1"] { width:min(100%,740px); }
.hp-gallery-controls { display:flex; align-items:center; justify-content:center; gap:24px; margin-top:14px; }
.hp-gallery-controls button { width:42px; height:36px; padding:0; border:0; background:transparent; color:var(--hp-rose); font-size:26px; }
.hp-gallery-counter { min-width:52px; text-align:center; color:#647078; font-size:12px; font-variant-numeric:tabular-nums; }

@media (max-width:1200px) {
  .hp-page { --hp-nav-height:68px; }
}
@media (max-width:1050px) {
  .hp-interview-note { grid-template-columns:88px minmax(0,1fr); gap:20px; }
  .hp-interview-note.is-pair { grid-template-columns:120px minmax(0,1fr); }
  .hp-interview-note.is-pair .hp-speaker-portraits { gap:8px; }
  .hp-hero-photo { width:145px; left:0; top:calc(100% + 35px); }
  .hp-hero-photo-apic { left:auto; right:0; top:calc(100% + 48px); }
}
@media (max-width:700px) {
  .hp-page { --hp-title-rise:24px; }
  .hp-page .model-intro-layout { width:calc(100% - 36px); }
  .hp-page .model-intro-meta { bottom:calc(100% + 26px); font-size:9px; letter-spacing:.12em; }
  .hp-page .model-intro-copy h1 { font-size:clamp(72px,min(23vw,22svh),130px); }
  .hp-hero-photo { width:124px; left:5%; top:calc(100% + 35px); padding:5px 5px 0; }
  .hp-hero-photo-apic { left:auto; right:5%; top:calc(100% + 54px); }
  .hp-hero-photo > span { font-size:8px; padding:7px 2px 8px; }
  .hp-page .hp-chapter-opening h2 { font-size:43px; }
  .hp-page .editorial-prose > .hp-section-heading { font-size:30px; }
  .hp-page .hp-phase { font-size:28px; }
  .hp-page #hp-framework .editorial-prose > .hp-framework-lead:first-child { font-size:28px; }
  .hp-interview-note,.hp-interview-note.is-pair { display:block; margin:28px 0; }
  .hp-speaker-portraits { float:left; width:74px; margin:3px 18px 8px 0; }
  .hp-interview-note.is-pair .hp-speaker-portraits { width:132px; }
  .hp-interview-note::after { content:""; display:block; clear:both; }
  .hp-speaker img { max-height:98px; }
  .hp-interview-copy > p { font-size:16px; line-height:1.85; }
}
@media (max-height:650px) {
  .hp-hero-photographs { display:none; }
}
@media print {
  .hp-hero-photographs { display:none; }
  .hp-page .model-intro-copy { top:0; }
  .hp-page .model-intro-layout { position:relative; inset:auto; }
  .hp-page .model-intro-meta { position:static; margin-bottom:20px; }
}
