/* The public front pages: the welcome page and the bookshelf.
   Photography and type carry these pages. Links are words, not boxes; each screen has at most one solid button. */
.ed { --measure: 62ch; --gutter: clamp(20px, 4vw, 56px); font-size: 1.0625rem; line-height: 1.62; color: var(--text); }
.ed .in { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.ed h1, .ed h2, .ed h3 { color: var(--ink); font-stretch: 112%; letter-spacing: -.018em; line-height: 1.06; }
.ed h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 720; max-width: 20ch; }
.ed h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.ed p { max-width: var(--measure); }
.ed .muted { color: var(--text-2); }
.ed a.tl { color: var(--ink); font-weight: 600; text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; }
.ed a.tl:hover { color: var(--gold-text); }
.ed a.tl:focus-visible, .ed a.panel:focus-visible, .ed .shelf a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.ed .block { padding-top: clamp(72px, 10vw, 140px); }
.ed .lede { font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.38; font-weight: 400; color: var(--ink); max-width: 34ch; letter-spacing: -.01em; }

/* Hero: one photograph, one sentence, one button. */
.ed-hero { position: relative; min-height: min(92vh, 860px); color: #fff; background: var(--ink); display: flex; align-items: flex-end; overflow: hidden; }
.ed-hero .slides, .ed-hero .slide { position: absolute; inset: 0; }
.ed-hero .slide { opacity: 0; transition: opacity 1.6s ease; }
.ed-hero .slide.on { opacity: 1; }
.ed-hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.ed-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,17,19,.9) 0%, rgba(16,17,19,.55) 38%, rgba(16,17,19,0) 72%); }
.ed-hero .in { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(40px, 7vw, 88px); }
.ed-hero h1 { color: #fff; font-size: clamp(2.7rem, 7.4vw, 6.6rem); font-weight: 760; font-stretch: 122%; line-height: .96; letter-spacing: -.035em; max-width: 13ch; }
.ed-hero .under { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; margin-top: 34px; }
.ed-hero .under a.go { background: var(--gold); color: var(--ink); font-weight: 700; padding: 15px 26px; border-radius: 999px; text-decoration: none; font-size: 1.02rem; }
.ed-hero .under a.go:hover { background: var(--gold-hi); }
.ed-hero .under a.go:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ed-hero .under a.lk, .ed-hero .under button.lk { color: #fff; font: inherit; font-weight: 600; background: none; border: 0; padding: 0 0 2px; cursor: pointer; text-decoration: none; border-bottom: 2px solid rgba(217,180,91,.8); }
.ed-hero .under a.lk:hover, .ed-hero .under button.lk:hover { color: var(--gold-hi); }
.ed-hero .note { margin-top: 26px; color: #C7CAD0; font-size: .95rem; }

/* Opening paragraph beside a small note. */
.ed-open { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: var(--gutter); align-items: start; }
.ed-open .side { color: var(--text-2); font-size: .95rem; border-top: 2px solid var(--gold); padding-top: 14px; }
.ed-open .side b { color: var(--ink); display: block; font-size: 1.05rem; }
@media (max-width: 820px) { .ed-open { grid-template-columns: 1fr; } .ed-open .side { order: 2; } }

/* Programmes: two photographs edge to edge. */
.ed-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 40px; }
.ed a.panel { position: relative; display: block; min-height: 520px; color: #fff; text-decoration: none; overflow: hidden; background: var(--ink); }
.ed a.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ed a.panel:hover img { transform: scale(1.03); }
.ed a.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,17,19,.88), rgba(16,17,19,0) 62%); }
.ed a.panel .txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 30px 32px; }
.ed a.panel h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-stretch: 116%; max-width: 16ch; }
.ed a.panel p { color: #D4D6DB; margin-top: 10px; max-width: 44ch; font-size: .98rem; }
.ed a.panel .fee { display: inline-block; margin-top: 14px; color: var(--gold-hi); font-weight: 600; }
@media (max-width: 820px) { .ed-pair { grid-template-columns: 1fr; } .ed a.panel { min-height: 420px; } }
.ed .also { margin-top: 26px; color: var(--text-2); }

/* A statement set large, beside a run of photographs. */
.ed-say { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--gutter); align-items: end; }
.ed-say .big { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 760; font-stretch: 120%; line-height: .98; letter-spacing: -.03em; color: var(--ink); max-width: 11ch; }
.ed-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 30%); gap: 6px; overflow-x: auto; margin-top: 46px; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.ed-strip figure { margin: 0; scroll-snap-align: start; }
.ed-strip img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; display: block; }
.ed-strip figcaption { font-size: .85rem; color: var(--text-2); margin-top: 8px; max-width: 32ch; }
@media (max-width: 820px) { .ed-say { grid-template-columns: 1fr; } .ed-strip { grid-auto-columns: 72%; } }

/* Text beside a picture. */
.ed-spread { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; }
.ed-spread.flip > :first-child { order: 2; }
.ed-spread .pic img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ed-spread .pic.sq img { aspect-ratio: 1; }
.ed-spread p + p { margin-top: 14px; }
@media (max-width: 820px) { .ed-spread { grid-template-columns: 1fr; } .ed-spread.flip > :first-child { order: 0; } }

/* Trainees in their own words. */
.ed-voices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: 40px; }
.ed-voices blockquote { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.42; color: var(--ink); border-left: 3px solid var(--gold); padding-left: 22px; }
.ed-voices cite { display: block; margin-top: 14px; font-style: normal; font-size: .95rem; color: var(--text-2); }
.ed-voices cite b { color: var(--ink); }
@media (max-width: 820px) { .ed-voices { grid-template-columns: 1fr; } }

/* The bookshelf. */
.shelf { display: flex; gap: clamp(14px, 2.2vw, 28px); align-items: flex-end; overflow-x: auto; padding: 30px 4px 0; border-bottom: 10px solid #D9D3C7; box-shadow: 0 14px 18px -14px rgba(16,17,19,.35); scroll-snap-type: x proximity; }
.shelf a { flex: 0 0 auto; width: clamp(108px, 12vw, 150px); scroll-snap-align: start; transition: transform .35s var(--ease); }
.shelf a:hover { transform: translateY(-8px); }
.shelf img { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; box-shadow: -3px 0 0 rgba(0,0,0,.25) inset, 4px 6px 14px rgba(16,17,19,.28); border-radius: 2px 4px 4px 2px; }
.shelf-caption { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; }

/* Watch. */
.ed-watch { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gutter); margin-top: 40px; align-items: start; }
.ed-watch .list { border-top: 1px solid var(--line); }
.ed-watch .list button { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; font: inherit; color: var(--ink); cursor: pointer; }
.ed-watch .list button:hover { color: var(--gold-text); }
.ed-watch .list button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ed-watch .list i { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-style: normal; font-size: .7rem; }
@media (max-width: 820px) { .ed-watch { grid-template-columns: 1fr; } }

/* Campus. */
.ed-campus { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 6px; margin-top: 40px; }
.ed-campus figure { margin: 0; overflow: hidden; }
.ed-campus figure:first-child { grid-row: span 2; }
.ed-campus img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) { .ed-campus { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px 160px; } .ed-campus figure:first-child { grid-column: span 2; grid-row: span 1; } }

/* A real sequence: the degree pathway. */
.ed-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.ed-steps li { counter-increment: s; padding: 0 28px 0 0; position: relative; }
.ed-steps li::before { content: counter(s); display: block; font-size: 3.4rem; font-weight: 760; font-stretch: 120%; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.ed-steps li::after { content: ""; position: absolute; left: 54px; right: 28px; top: 26px; height: 2px; background: var(--line-2); }
.ed-steps li:last-child::after { display: none; }
@media (max-width: 820px) { .ed-steps { grid-template-columns: 1fr; gap: 26px; } .ed-steps li::after { display: none; } }

/* Questions. */
.ed-faq { margin-top: 30px; max-width: 860px; }
.ed-faq details { border-top: 1px solid var(--line); }
.ed-faq details:last-child { border-bottom: 1px solid var(--line); }
.ed-faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 650; font-size: 1.12rem; color: var(--ink); position: relative; }
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.ed-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ed-faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ed-faq details p { padding: 0 0 22px; color: var(--text-2); }

/* Contact. */
.ed-contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.ed-form { display: grid; gap: 14px; position: relative; }
.ed-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.ed-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ed-form button { justify-self: start; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 13px 26px; font: inherit; font-weight: 700; cursor: pointer; }
.ed-form button:hover { background: var(--ink-3); }
@media (max-width: 820px) { .ed-contact, .ed-form .row2 { grid-template-columns: 1fr; } }

.ed-close { margin-top: clamp(72px, 10vw, 140px); background: var(--ink); color: #fff; }
.ed-close .in { padding-top: 70px; padding-bottom: 70px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.ed-close h2 { color: #fff; max-width: 18ch; }
.ed-close a.go { background: var(--gold); color: var(--ink); font-weight: 700; padding: 15px 26px; border-radius: 999px; text-decoration: none; }
.ed-close a.go:hover { background: var(--gold-hi); }

@media (prefers-reduced-motion: reduce) { .ed * { transition: none !important; } }
