/* GPIL house style. Loaded after each page's own styles, so everything here applies site-wide.
   Aim: a British institutional feel. Baskerville headings, quiet colour, hairline rules, generous margins. */

:root {
  --teal: #207a7b;          /* from the GPIL logo */
  --teal-deep: #0f4447;
  --ink: #1b2325;
  --accent: #b5532a;        /* the site's orange, taken down a tone; used sparingly */
  --paper: #ffffff;
  --mist: #f7f5f0;          /* warm paper, in place of cool grey */
  --line: #dcd8cf;
  --muted: #5d6668;
  --serif: "Libre Baskerville", Baskerville, "Baskerville Old Face", Georgia, serif;
  --sans: "Source Sans 3", "Gill Sans", "Gill Sans MT", Calibri, system-ui, sans-serif;
}

body { font-size: 17.5px; line-height: 1.7; color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Headings: regular-weight Baskerville, a little larger, never shouting */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
h1 { line-height: 1.18; }
h2 { line-height: 1.25; }
h3 { line-height: 1.35; }
em, blockquote { font-family: var(--serif); }

/* Small-capital labels in teal: the accent colour is kept for rules and buttons only */
.eyebrow, .tag, .pub .t, ul.ev .t, .people .role, .prog .facts b, .profile .facts b, .voices span, th {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow, .tag, .pub .t { color: var(--teal); }
.pagehead .eyebrow, .hero .eyebrow, .flag .a .eyebrow { color: #b9d8d8; }
.rule { background: var(--accent); height: 2px; width: 56px; }

/* Preview notice */
.note { background: #f7f5f0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; letter-spacing: .01em; }

/* Masthead */
header.main { border-bottom: 1px solid var(--line); box-shadow: none; }
header.main .wrap { padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { height: 56px; }
.brand::after { content: "London \00B7  Established 2016"; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 16px; white-space: nowrap; }
nav.primary { gap: 28px; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .01em; }
nav.primary a { color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
nav.primary a:hover, nav.primary a.on { color: var(--teal-deep); border-bottom-color: var(--accent); }
.util { background: var(--teal-deep); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* Page heads: flat deep teal with a fine rule */
.pagehead { background-color: var(--teal-deep); padding: 72px 0 64px; border-bottom: 3px solid var(--accent); }
.pagehead h1 { font-size: clamp(32px, 4vw, 48px); margin: 16px 0 16px; max-width: 20em; }
.pagehead p { font-size: 19px; line-height: 1.6; color: #d3e3e3; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -.005em; }
.hero p { line-height: 1.6; }

/* Buttons and links: square, small capitals, understated */
.btn, form.enq button, .chips button, .filters button {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-radius: 0;
}
.btn { padding: 14px 26px; }
.btn-solid, form.enq button { background: var(--accent); }
.more { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.chips button[aria-pressed="true"], .filters button[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-deep); }

/* Sections: more air, warm paper for alternate bands */
section { padding-top: 92px; padding-bottom: 92px; }
section.mist, .signup { background: var(--mist); }
.sec, .tier, .kind, .year, .cohort, .by { padding-top: 40px; padding-bottom: 8px; }
.head h2, section h2 { font-size: clamp(27px, 3vw, 37px); }
.head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 40px; }

/* Rules: one fine teal line above a list, hairlines within */
.sec > h2, .tier h2, .kind h2, .year h2, .cohort h2, .by h2, .people, .list, .areas, .voices h3, .posts h3, .prog:first-of-type, .office:first-of-type, .profile .facts { border-top-width: 1px; border-bottom-width: 1px; }
.sec > h2, .tier h2, .kind h2, .year h2, .cohort h2, .by h2 { border-bottom: 1px solid var(--teal-deep); font-size: 26px; }

/* Numbers band */
.numbers { background: var(--teal-deep); padding: 54px 0; }
.numbers b { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); }
.numbers span { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a9cccc; margin-top: 10px; }
.numbers .wrap > div { border-left: 1px solid rgba(255,255,255,.18); padding-left: 22px; }
.numbers .wrap > div:first-child { border-left: 0; padding-left: 0; }

/* Directory and profile */
ul.names .n { font-size: 18px; color: var(--ink); }
ul.names .m, .profile .mono { background: var(--teal-deep); }
ul.names .m { font-size: 13px; }
ul.names .go { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.profile h1 { font-size: clamp(32px, 4vw, 46px); }
.profile .lede { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 19px; }
.profile .bio p { font-size: 18px; line-height: 1.75; }
.mission blockquote { font-style: italic; line-height: 1.5; color: var(--teal-deep); }

/* Cards and panels lose their heavy edges */
.feature { border-top: 2px solid var(--accent); box-shadow: 0 1px 0 var(--line); }
.box, .prog-card, .card.guest { border-left-width: 2px; }
.person, .member, .panel, .card { border-color: var(--line); }
.prog .facts, form.enq, .flag .b { background: var(--mist); }
.leader h3 a, ul.ev h3 a { border-bottom: 1px solid var(--accent); }

/* Footer */
footer { background: #12292b; color: #a9bcbd; letter-spacing: .01em; }
footer h4 { letter-spacing: .18em; }

/* Notes for the editor stay visible but quiet */
.todo { color: #8a5a00; font-style: italic; }

@media (max-width: 1000px) { .brand::after { display: none; } section { padding-top: 64px; padding-bottom: 64px; } .numbers .wrap > div { border-left: 0; padding-left: 0; } }

/* Lifelong pathway */
.pathway .plead { max-width: 46em; font-size: 19px; color: var(--teal-deep); margin: -14px 0 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--teal-deep); counter-reset: s; }
.steps li { padding: 26px 22px 28px 0; margin-right: 22px; border-right: 1px solid var(--line); counter-increment: s; position: relative; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps li::before { content: counter(s, upper-roman); display: block; font-family: var(--serif); font-size: 15px; color: var(--accent); margin-bottom: 14px; }
.steps .age { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.steps a { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } .steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Heading scale: measured, never oversized. Authority comes from spacing and restraint, not size. */
.hero h1 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.22; margin: 14px 0 18px; max-width: 16em; }
.hero p { font-size: 17.5px; max-width: 34em; }
.hero .wrap { padding-top: 76px; padding-bottom: 68px; }
.pagehead { padding: 56px 0 50px; }
.pagehead h1 { font-size: clamp(26px, 2.7vw, 34px); line-height: 1.25; margin: 12px 0 12px; max-width: 22em; }
.pagehead p { font-size: 17.5px; max-width: 40em; }
.head h2, section h2, .prog h2, .cta h2, .signup h2 { font-size: clamp(22px, 2.1vw, 27px); line-height: 1.3; }
.sec > h2, .tier h2, .kind h2, .year h2, .cohort h2, .by h2, .voices h3, .posts h3 { font-size: 21px; }
.feature h2 { font-size: 21px; line-height: 1.35; }
.flag .a h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; }
.lead .big h3, .event h3 { font-size: 23px; line-height: 1.32; }
.item h3, .card h3, .area h3, .steps h3, .pub h3, ul.ev h3, .panel h3, .prog-card h3, .box h3, .office h2 { font-size: 18px; line-height: 1.4; }
.leader h3 { font-size: 20px; }
.people h3, .member h3, .person h3 { font-size: 16.5px; }
.profile h1 { font-size: clamp(26px, 2.8vw, 34px); }
.profile h2 { font-size: 18px; }
.profile .lede { font-size: 17.5px; }
.profile .bio p { font-size: 17.5px; }
.mission blockquote { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; }
.numbers b { font-size: clamp(24px, 2.4vw, 32px); }
.numbers { padding: 40px 0; }
.stats b { font-size: 26px; font-family: var(--serif); font-weight: 400; }
.plead, .lead, .intro { font-size: 17.5px !important; }
.profile .mono span { font-size: 54px; }
section { padding-top: 76px; padding-bottom: 76px; }
.head { margin-bottom: 32px; }

/* Eight strands grid */
.areas.eight { grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--teal-deep); border-left: 1px solid var(--line); }
.areas.eight .area { display: block; padding: 26px 22px 28px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; }
.areas.eight .area:hover { background: var(--mist); }
.areas.eight .area:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.areas.eight .num { font-family: var(--serif); font-size: 14px; color: var(--accent); }
.areas.eight p { font-size: 15px; line-height: 1.6; }
@media (max-width: 1000px) { .areas.eight { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .areas.eight { grid-template-columns: 1fr; } }

.two.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .two.three { grid-template-columns: 1fr; } }

/* London skyline: a fine line drawing (Tower Bridge, St Paul's, the Eye, Westminster, Nelson's Column), used quietly */
.pagehead { background-image: url("london-skyline-light.svg"); background-repeat: no-repeat; background-position: right 4% bottom -2px; background-size: min(640px, 58%) auto; }
.pagehead .wrap { position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: url("london-skyline-light.svg") no-repeat center bottom / min(1100px, 96%) auto; opacity: .7; pointer-events: none; }
.hero .wrap { z-index: 1; }
footer { position: relative; padding-top: 150px; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; background: var(--paper) url("london-skyline-dark.svg") no-repeat center bottom / min(1100px, 94%) auto; border-bottom: 1px solid var(--teal-deep); }
footer::before { opacity: 1; }
.cta { background-image: none; }

/* Strapline beside the logo */
.brand::after { content: "The Lifelong Peace Institute  \00B7  London"; }

/* No event photography: the hero is flat teal with the skyline; cards and features are typographic */
.hero { background: var(--teal-deep); }
.hero .bg { display: none; }
.event { grid-template-columns: 1fr; border: 0; border-top: 1px solid var(--teal-deep); border-bottom: 1px solid var(--line); background: transparent; }
.event .body { padding: 34px 0; max-width: 46em; }
.card { border: 0; border-top: 1px solid var(--teal-deep); background: transparent; }
.card .body { padding: 22px 0 0; }
.lead .big { border-top: 1px solid var(--teal-deep); padding-top: 24px; }

/* Dark masthead with the white logo */
header.main { background: var(--teal-deep); border-bottom: 1px solid rgba(255,255,255,.14); }
header.main .wrap { padding-top: 16px; padding-bottom: 16px; }
.brand img { height: 60px; }
.brand::after { color: #b4d0d0; border-left-color: rgba(255,255,255,.22); }
nav.primary a { color: #eaf3f3; }
nav.primary a:hover, nav.primary a.on { color: #ffffff; border-bottom-color: var(--accent); }
.util { background: #0a3336; }
.util a, .util span { color: #b4d0d0; }
.hero, .pagehead { border-top: 0; }

/* Institutions and collaborations as cards; logos can replace the names later */
.netcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.netcard { background: #fff; border: 1px solid var(--line); padding: 20px 20px 22px; min-height: 108px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.netcard span { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.netcard b { font-family: var(--serif); font-weight: 400; font-size: 16.5px; line-height: 1.35; color: var(--ink); }
.posts h3 { border-bottom: 1px solid var(--teal-deep); }
@media (max-width: 1000px) { .netcards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .netcards { grid-template-columns: 1fr; } }

/* Smaller logo and a quieter type scale (second pass) */
.brand img { height: 44px; }
footer img { height: 46px; }
header.main .wrap { padding-top: 13px; padding-bottom: 13px; }
.brand::after { font-size: 10px; letter-spacing: .16em; }
body { font-size: 16px; line-height: 1.65; }
nav.primary { font-size: 14px; gap: 24px; }
.hero h1 { font-size: clamp(23px, 2.5vw, 32px); line-height: 1.25; max-width: 17em; }
.hero p { font-size: 16px; }
.hero .wrap { padding-top: 60px; padding-bottom: 56px; }
.pagehead { padding: 46px 0 42px; }
.pagehead h1 { font-size: clamp(21px, 2.1vw, 28px); }
.pagehead p { font-size: 16px; }
.head h2, section h2, .prog h2, .cta h2, .signup h2, .grp > h2 { font-size: clamp(19px, 1.7vw, 23px); }
.sec > h2, .tier h2, .kind h2, .year h2, .cohort h2, .by h2, .voices h3, .posts h3 { font-size: 19px; }
.feature h2 { font-size: 18px; }
.flag .a h2 { font-size: clamp(19px, 1.8vw, 23px); }
.lead .big h3, .event h3 { font-size: 20px; }
.item h3, .card h3, .area h3, .steps h3, .pub h3, ul.ev h3, .panel h3, .box h3, .office h2 { font-size: 16.5px; }
.leader h3 { font-size: 18px; }
.people h3, .member h3, .person h3 { font-size: 15.5px; }
ul.names .n { font-size: 16px; }
.profile h1 { font-size: clamp(22px, 2.3vw, 29px); }
.profile .lede, .profile .bio p { font-size: 16px; }
.mission blockquote { font-size: clamp(17px, 1.5vw, 20px); }
.numbers b { font-size: clamp(21px, 2vw, 27px); }
.stats b { font-size: 22px; }
.plead, .lead, .intro { font-size: 16px !important; }
.steps p, .area p, .card p, .pub p, .prog p, .item p, .people p, .netcard b { font-size: 14.5px; }
.netcard b { font-size: 15px; }
td strong { font-size: 15.5px; }
table { font-size: 14.5px; }
section { padding-top: 60px; padding-bottom: 60px; }
.btn { padding: 12px 22px; font-size: 12px; }
.more, .steps a { font-size: 12px; }

/* Menu button for narrow screens */
.menu-toggle { display: none; }
@media (max-width: 1000px) {
  header.main .wrap { position: relative; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; }
  .menu-toggle .bars { width: 16px; height: 10px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; position: relative; }
  .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid #fff; }
  nav.primary { display: none !important; }
  nav.primary.open { display: flex !important; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--teal-deep); border-top: 1px solid rgba(255,255,255,.16); border-bottom: 3px solid var(--accent); padding: 6px 24px 14px; z-index: 20; }
  nav.primary.open a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
  nav.primary.open a:last-child { border-bottom: 0; }
}

/* London photographs, shown faintly through the teal (replaces the line drawing).
   Preview loads them from Wikimedia Commons (both CC0); the live site will hold its own copies. */
:root {
  --photo-bridge: url("london-tower-bridge.jpg");
  --photo-clock: url("london-big-ben.jpg");
}
.hero, .pagehead { position: relative; overflow: hidden; background-color: var(--teal-deep); background-image: none; }
.hero::after, .pagehead::before { content: ""; position: absolute; inset: 0; height: auto; background-repeat: no-repeat; background-size: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: luminosity; opacity: .3; pointer-events: none; }
.hero::after { background-image: var(--photo-bridge); background-position: center 38%; }
.pagehead::before { background-image: var(--photo-clock); background-position: center 30%; }
/* keep the words easy to read: the picture fades out towards the text side */
.hero::before, .pagehead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal-deep) 0%, rgba(15,68,71,.86) 38%, rgba(15,68,71,.35) 100%); pointer-events: none; z-index: 0; }
.hero .wrap, .pagehead .wrap { position: relative; z-index: 1; }
footer { padding-top: 56px; }
footer::before { display: none; }
@media (max-width: 1000px) { .hero::after, .pagehead::before { opacity: .2; } }


/* Home page, Chatham House manner: a calm picture banner, then a ruled "Latest" row of text items */
:root { --photo-bridge: url("london-tower-bridge.jpg"); }
.hero .wrap { display: block; padding-top: 84px; padding-bottom: 92px; }
.hero .wrap > div { max-width: 560px; }
.hero::after { filter: saturate(.75); mix-blend-mode: normal; opacity: 1; background-position: center 46%; }
.hero::before { z-index: 1; background: linear-gradient(90deg, var(--teal-deep) 0%, rgba(15,68,71,.94) 34%, rgba(15,68,71,.62) 56%, rgba(15,68,71,.30) 100%); }
.hero .wrap { z-index: 2; }
.hero { border-bottom: 3px solid var(--accent); }
@media (max-width: 1000px) {
  .hero::after { opacity: 1; }
  .hero::before { background: linear-gradient(180deg, rgba(15,68,71,.93) 0%, rgba(15,68,71,.86) 60%, rgba(15,68,71,.70) 100%); }
  .hero .wrap { padding-top: 52px; padding-bottom: 60px; }
}

section.latest { padding: 34px 0 46px; background: #fff; border-bottom: 1px solid var(--line); }
.latest-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--teal-deep); }
.latest-head .more { font-size: 13px; }
.latest-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.latest-grid article { padding: 22px 26px 0; border-left: 1px solid var(--line); }
.latest-grid article:first-child { padding-left: 0; border-left: 0; }
.latest-grid article:last-child { padding-right: 0; }
.latest-grid .tag { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.latest-grid h2, .latest-grid h3 { font-family: var(--serif); font-weight: 400; margin: 10px 0 8px; line-height: 1.35; }
.latest-grid h2 { font-size: 21px; }
.latest-grid h3 { font-size: 16px; }
.latest-grid a { color: var(--ink); text-decoration: none; }
.latest-grid a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.latest-grid p { font-size: 14.5px; color: var(--muted); margin: 0 0 10px; }
.latest-grid .meta { font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) {
  .latest-grid { grid-template-columns: 1fr 1fr; }
  .latest-grid article { padding: 20px 0 18px; border-left: 0; border-bottom: 1px solid var(--line); }
  .latest-grid article:nth-child(even) { padding-left: 22px; }
  .latest-grid article:nth-child(odd) { padding-right: 22px; }
  .latest-grid .lead-item { grid-column: 1 / -1; padding-right: 0; }
  .latest-grid article:nth-child(2) { padding-left: 0; padding-right: 22px; }
  .latest-grid article:nth-child(3) { padding-left: 22px; padding-right: 0; }
  .latest-grid article:nth-child(4) { grid-column: 1 / -1; padding: 20px 0 0; border-bottom: 0; }
}
@media (max-width: 560px) {
  .latest-grid { grid-template-columns: 1fr; }
  .latest-grid article, .latest-grid article:nth-child(n) { padding: 18px 0; grid-column: auto; }
}


/* Institutional blocks on the home page: areas of work, Academy ledger, convenings, honours */
.areas.six { grid-template-columns: repeat(3, 1fr); }
.areas.six .num { font-family: var(--serif); letter-spacing: .08em; }
@media (max-width: 1000px) { .areas.six { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .areas.six { grid-template-columns: 1fr; } }

.ledger { border-top: 2px solid var(--teal-deep); margin-top: 22px; }
.lrow { display: grid; grid-template-columns: 84px minmax(180px, 1fr) 1.6fr; gap: 20px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lrow .code { font-family: var(--sans); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; color: var(--accent); }
.lrow b { font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--ink); }
.lrow span:last-child { color: var(--muted); }
.ledger.plain .lrow { grid-template-columns: minmax(180px, 1fr) 1.2fr; }
@media (max-width: 700px) { .lrow, .ledger.plain .lrow { grid-template-columns: 64px 1fr; gap: 4px 14px; } .lrow span:last-child { grid-column: 2; } .ledger.plain .lrow { grid-template-columns: 1fr; } .ledger.plain .lrow span:last-child { grid-column: 1; } }

.convene { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--teal-deep); margin-top: 22px; }
.convene a { display: block; padding: 20px 24px 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.convene a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.convene a:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.convene .tag { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.convene h3 { font-family: var(--serif); font-weight: 400; font-size: 16.5px; line-height: 1.35; margin: 9px 0 6px; }
.convene p { margin: 0; font-size: 14px; color: var(--muted); }
.convene a:hover h3 { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.convene sup { font-size: .6em; }
@media (max-width: 900px) { .convene { grid-template-columns: 1fr 1fr; } .convene a, .convene a + a, .convene a:nth-child(3n+1) { padding: 18px 18px 18px 0; border-left: 0; } .convene a:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); } }
@media (max-width: 520px) { .convene { grid-template-columns: 1fr; } .convene a:nth-child(n) { padding: 16px 0; border-left: 0; } }

.series { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 30px 0 38px; }
.series b { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.series span { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
@media (max-width: 800px) { .series { grid-template-columns: 1fr; gap: 22px; } }

section.honours { background: var(--teal-deep); color: #fff; }
section.honours .eyebrow { color: #b9d8d8; }
section.honours h2, section.honours h3 { color: #fff; }
section.honours .more { color: #fff; }
.twoledger { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.twoledger h3 { font-family: var(--serif); font-weight: 400; font-size: 17px; margin: 0; }
.ledger.dark { border-top-color: rgba(255,255,255,.55); margin-top: 14px; }
.ledger.dark .lrow { border-bottom-color: rgba(255,255,255,.16); grid-template-columns: 70px minmax(130px, 1fr) 1.4fr; }
.ledger.dark.plain .lrow { grid-template-columns: minmax(150px, 1fr) 1.2fr; }
.ledger.dark .lrow b { color: #fff; }
.ledger.dark .lrow .code { color: #e3a98c; }
.ledger.dark .lrow span:last-child { color: #c3d9d9; }
@media (max-width: 1000px) { .twoledger { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 700px) { .ledger.dark .lrow { grid-template-columns: 64px 1fr; } .ledger.dark.plain .lrow { grid-template-columns: 1fr; } }

.plead { max-width: 48em; color: var(--muted); margin: -6px 0 0; }
.pathway .plead { color: var(--teal-deep); margin: -14px 0 40px; }


/* Banner photographs: muted and see-through, clearer towards the right-hand side */
.hero::after { filter: grayscale(.55) saturate(.8); background-position: 78% 46%; }
.hero::before { background: linear-gradient(90deg, var(--teal-deep) 0%, rgba(15,68,71,.95) 36%, rgba(15,68,71,.80) 52%, rgba(15,68,71,.52) 74%, rgba(15,68,71,.42) 100%); }
.pagehead::before { filter: grayscale(.6) saturate(.8); mix-blend-mode: normal; opacity: 1; background-position: 72% 30%; }
.pagehead::after { background: linear-gradient(90deg, var(--teal-deep) 0%, rgba(15,68,71,.95) 40%, rgba(15,68,71,.80) 58%, rgba(15,68,71,.55) 80%, rgba(15,68,71,.46) 100%); }
@media (max-width: 1000px) {
  .hero::after, .pagehead::before { opacity: 1; }
  .hero::before, .pagehead::after { background: linear-gradient(90deg, rgba(15,68,71,.95) 0%, rgba(15,68,71,.86) 50%, rgba(15,68,71,.62) 100%); }
}


/* Home page directory: every programme, event and honour listed under the banner */
section.directory { padding: 34px 0 46px; background: #fff; border-bottom: 1px solid var(--line); }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.dir-grid > div { padding: 22px 28px 0; border-left: 1px solid var(--line); }
.dir-grid > div:first-child { padding-left: 0; border-left: 0; }
.dir-grid > div:last-child { padding-right: 0; }
.dir-grid h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dir-grid h2 a { color: var(--ink); text-decoration: none; }
.dir-grid h2 small { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.dir-grid ul { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--teal-deep); }
.dir-grid li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.dir-grid li a { color: var(--ink); text-decoration: none; font-weight: 600; }
.dir-grid li a:hover, .dir-grid h2 a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.dir-grid li span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dir-grid li sup { font-size: .6em; }
.dir-grid .more { font-size: 13px; }
.badgerow { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; flex-wrap: wrap; }
.badgerow img { height: 54px; width: auto; }
@media (max-width: 1000px) {
  .dir-grid { grid-template-columns: 1fr; }
  .dir-grid > div, .dir-grid > div:first-child, .dir-grid > div:last-child { padding: 24px 0 8px; border-left: 0; }
}
.lrow .code { display: flex; align-items: center; gap: 10px; }
.lrow .code img { height: 40px; width: auto; flex: none; }
.lrow { grid-template-columns: 124px minmax(180px, 1fr) 1.6fr; align-items: center; }
.ledger.dark .lrow { grid-template-columns: 124px minmax(130px, 1fr) 1.4fr; }
.ledger.plain .lrow, .ledger.dark.plain .lrow { align-items: baseline; }
@media (max-width: 700px) { .lrow, .ledger.dark .lrow { grid-template-columns: 112px 1fr; } }


/* Shared top bar, call to action and footer on every page */
.util .wrap { display: flex; justify-content: space-between; gap: 20px; padding-top: 8px; padding-bottom: 8px; }
.util nav { display: flex; gap: 22px; flex-wrap: wrap; }
.util a { text-decoration: none; }
.util a:hover { color: #fff; }
.cta { background: var(--teal); color: #fff; padding: 46px 0; background-image: none; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 1.8vw, 24px); margin: 0; color: #fff; }
.cta p { margin: 8px 0 0; color: #d9ecec; max-width: 38em; font-size: 15px; }
footer { font-size: 14px; padding: 56px 0 26px; }
footer .wrap { text-align: left; }
footer .cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; }
footer img { height: 46px; width: auto; margin-bottom: 18px; display: block; }
footer h4 { font-family: var(--sans); color: #fff; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 16px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer a { color: inherit; text-decoration: none; border: 0 !important; }
footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
footer .legal { border-top: 1px solid #2c4447; margin-top: 40px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 900px) { footer .cols { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { footer .cols { grid-template-columns: 1fr; } }
.smallprint { font-size: 13px; color: var(--muted); margin-top: 14px; }

section.latest.analysis { border-bottom: 0; padding-bottom: 30px; }
section.latest.analysis + section.directory { padding-top: 10px; }

/* Colour: the lighter teal is matched to the logo; large bands use the deep teal of the masthead */
:root { --teal: #21797f; }
.cta { background: var(--teal-deep); border-top: 3px solid var(--accent); }
.cta p { color: #c3d9d9; }

.areas.six .area { display: block; padding: 26px 24px 26px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.areas.six { border-top: 2px solid var(--teal-deep); border-left: 1px solid var(--line); }
.areas.six .area:hover { background: var(--mist); }
.areas.six .area:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.areas.six .area p { font-size: 14.5px; }
.areas.six .go { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.areas.six sup { font-size: .6em; }
section.latest.analysis { border-bottom: 1px solid var(--line); padding-bottom: 40px; }

.netnote { font-size: 14.5px; color: var(--muted); max-width: 46em; margin: 8px 0 16px; }

/* smaller tiles for the institutions list */
.netcards.compact { grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 18px; }
.netcards.compact .netcard { padding: 12px 13px 13px; min-height: 0; gap: 7px; justify-content: flex-start; }
.netcards.compact .netcard span { font-size: 9.5px; letter-spacing: .14em; }
.netcards.compact .netcard b { font-size: 13px; line-height: 1.35; }
@media (max-width: 1200px) { .netcards.compact { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px) { .netcards.compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .netcards.compact { grid-template-columns: 1fr 1fr; } }

/* buttons: quieter */
.btn, .enq button, form button[type="submit"] { padding: 9px 16px; font-size: 11.5px; letter-spacing: .12em; }
.hero .actions { gap: 10px; }
.menu-toggle { padding: 8px 14px; font-size: 11.5px; }
.chips button, .filters button { padding: 6px 12px; font-size: 12.5px; }

/* Headings: a narrower, lighter serif and one more step down in size */
:root { --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif; }
h1, h2, h3 { letter-spacing: -.005em; }
.hero h1 { font-size: clamp(22px, 2.2vw, 29px); line-height: 1.25; }
.pagehead h1 { font-size: clamp(20px, 1.9vw, 25px); }
.head h2, section h2, .prog h2, .cta h2, .signup h2, .grp > h2, .doc h2, .nhead h2, .proceedings h2 { font-size: clamp(18px, 1.5vw, 21px); }
.latest-grid h2 { font-size: 19px; }
.latest-grid h3, .item h3, .card h3, .area h3, .steps h3, .pub h3, ul.ev h3, .panel h3, .prog-card h3, .box h3, .office h2, .ways h3, .plist h3, .ngrid h3, .convene h3 { font-size: 16px; line-height: 1.38; }
.ngrid .nlead h3 { font-size: 20px; }
.report article h3 { font-size: 17.5px; }
.report .standfirst { font-size: 17px; }
blockquote { font-size: 18px !important; line-height: 1.55; }
.numbers b { font-size: clamp(20px, 1.8vw, 25px); }
.netcards.compact .netcard b { font-size: 13.5px; }


/* Final size check: nothing on any page above the house scale */
.pagehead h1 { font-size: clamp(20px, 1.9vw, 25px) !important; }
.tier h2, .grp > h2, form.enq h2, .office h2, .flag .a h2, .kind h2, .cohort h2, .sec > h2 { font-size: clamp(18px, 1.5vw, 21px) !important; }
.numbers b { font-size: clamp(19px, 1.6vw, 21px); }
.stats b { font-size: 20px; }
.pagehead p, p.intro, p.lead { font-size: 16px !important; }
td strong { font-size: 15.5px; }
.leader .photo, div.photo { font-size: 20px; }

/* Mobile: most visitors read on a phone */
@media (max-width: 640px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .util .wrap { padding-top: 2px; padding-bottom: 2px; justify-content: flex-end; }
  .util nav { gap: 4px 20px; }
  .util a { display: inline-block; padding: 11px 0; }
  header.main .wrap { padding-top: 10px; padding-bottom: 10px; }
  .brand img { height: 40px; }
  .menu-toggle { padding: 11px 14px; }
  nav.primary.open a { padding: 14px 0; font-size: 15px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 46px; }
  .hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .hero .actions .btn { flex: 1 1 140px; text-align: center; padding: 12px 14px; }
  .btn { padding: 12px 16px; }
  section, .pathway { padding-top: 40px; padding-bottom: 40px; }
  .pagehead { padding: 30px 0 28px; }
  .head { display: block; }
  .head .more { display: inline-block; margin-top: 12px; }
  .latest-head { flex-wrap: wrap; gap: 8px 16px; }
  .numbers .wrap { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .netcards.compact .netcard span { font-size: 10.5px; letter-spacing: .1em; }
  .cta .wrap { display: block; }
  .cta .btn { margin-top: 18px; }
  footer .legal { display: block; }
  footer .legal span { display: block; margin-top: 8px; line-height: 2; }
  footer ul { gap: 13px; }
  .pub { grid-template-columns: 1fr !important; gap: 6px !important; }
  a.pdf { display: inline-block; padding: 8px 12px; }
  input, select, textarea { font-size: 16px !important; }
  .filters button, .chips button { padding: 9px 13px; }

  /* tables become stacked cards so nothing needs sideways scrolling */
  .grp table, .grp thead, .grp tbody, .grp tr, .grp td { display: block; width: auto; }
  .grp thead { display: none; }
  .grp tr { position: relative; padding: 14px 0 14px 66px; border-bottom: 1px solid var(--line); min-height: 80px; }
  .grp tr:not(:has(td.bd)) { padding-left: 0; min-height: 0; }
  .grp td { padding: 0 0 4px; border: 0; }
  .grp td.bd { position: absolute; left: 0; top: 14px; width: 54px; }
  .grp td:last-child { color: var(--muted); }
}

/* Inner-page banners: the Palace of Westminster in daylight (replaces the evening picture with the string lights) */
:root { --photo-clock: url("london-westminster.jpg"); }
.pagehead::before { background-position: 85% 42%; }

/* Header: logo only, no line of text beside it */
.brand::after { content: none; display: none; }
