/* ==========================================================================
   Ronan Bree: site styles
   Colours and type are set once here, as variables, and reused everywhere.
   To change a colour across the whole site, change it in the :root block.
   ========================================================================== */

/* ---- Typeface: Atkinson Hyperlegible Next (self-hosted, SIL Open Font Licence) */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-700-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---- Colours and measures ------------------------------------------------ */
:root {
  --navy: #163767;        /* header, footer, headings */
  --navy-deep: #0F2A52;   /* panels on navy */
  --navy-line: #3B5C8C;
  --mint: #73C1B0;        /* accent on navy */
  --teal: #07767A;        /* links and buttons on light backgrounds */
  --paper: #F7F6F2;       /* page background */
  --white: #FFFFFF;
  --tint: #EAF3F2;        /* pale teal bands */
  --tint-line: #D5E3E1;
  --ink: #263238;         /* body text */
  --muted: #55636B;       /* secondary text */
  --rule: #D9D6CC;        /* hairlines on paper */
  --gold: #C39A54;        /* decoration only: rules and icons, never text */
  --on-navy: #C7D3E6;     /* secondary text on navy */
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--navy); padding: 12px 20px; font-weight: 700; z-index: 20; }
.skip:focus { left: 12px; top: 12px; }

/* ---- Buttons and text links ---------------------------------------------- */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius);
  font-size: 17px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--navy); color: var(--white); }
.btn-mint { background: var(--mint); color: var(--navy); }
.btn-mint:hover { background: var(--white); color: var(--navy); }
.btn-outline { border-color: var(--on-navy); color: var(--white); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 19px; }
@media (max-width: 520px) { .btn-lg { min-height: 52px; padding: 0 20px; font-size: 17px; } }
.btn-arrow::after { content: "\2192"; margin-left: 12px; font-size: 1.15em; line-height: 1; transition: transform 0.15s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .btn-arrow::after { transition: none; } }
.section-cta { margin: 40px 0 0; display: flex; justify-content: center; }
/* Publications accordion (homepage) */
.pub-acc { border-bottom: 1px solid var(--rule); }
.pub-acc details { border-top: 1px solid var(--rule); }
.pub-acc summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 20px; padding: 18px 4px; color: var(--navy); }
.pub-acc summary::-webkit-details-marker { display: none; }
.pub-acc-count { flex: 0 0 72px; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pub-acc-title { flex: 1 1 auto; font-size: 21px; line-height: 1.3; font-weight: 700; }
.pub-acc-sign { flex: 0 0 40px; height: 40px; border-radius: 50%; border: 2px solid var(--teal); color: var(--teal); position: relative; }
.pub-acc-sign::before, .pub-acc-sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: currentColor; }
.pub-acc-sign::after { transform: rotate(90deg); }
.pub-acc details[open] .pub-acc-sign { background: var(--teal); color: var(--white); }
.pub-acc details[open] .pub-acc-sign::after { display: none; }
.pub-acc summary:hover .pub-acc-title { text-decoration: underline; text-underline-offset: 4px; }
.pub-acc summary:hover .pub-acc-sign { background: var(--teal); color: var(--white); }
.pub-acc-body { padding: 0 4px 28px 96px; }
.pub-acc-body .cite-list li { padding: 14px 0; }
.pub-acc-body .cite-text { font-size: 16px; }
.pub-acc-cta { margin: 28px 0 0; }
@media (max-width: 640px) {
  .pub-acc summary { gap: 12px; }
  .pub-acc-count { flex-basis: 52px; font-size: 34px; }
  .pub-acc-title { font-size: 18px; }
  .pub-acc-body { padding-left: 4px; }
}
/* The next posts, fading out behind the "read all" button (homepage) */
.cards-peek { position: relative; margin-top: 48px; }
.cards-peek-link { display: block; max-height: 270px; overflow: hidden; text-decoration: none; color: inherit;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 22%, rgba(0, 0, 0, 0.45) 58%, transparent 94%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 22%, rgba(0, 0, 0, 0.45) 58%, transparent 94%); }
.cards-peek .cards, .cards-peek .card { display: grid; }
.cards-peek .cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 40px; }
.cards-peek .card { gap: 14px; }
.card-peek-title { font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.cards-peek-cta { margin: 4px 0 0; display: flex; justify-content: center; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 700; color: var(--teal); }
.link-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }

/* ---- Header and navigation ----------------------------------------------- */
.site-header { background: var(--navy); color: var(--white); }
.site-header a:focus-visible, .site-footer a:focus-visible, .on-navy a:focus-visible, .on-navy button:focus-visible { outline-color: var(--mint); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 20px; min-height: 44px; }
.brand:hover { color: var(--white); }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; display: block; flex: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--mint); color: var(--navy); display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--white);
  text-decoration: none; font-size: 17px; font-weight: 500; border-radius: 4px; }
.nav-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mint); text-underline-offset: 6px; text-decoration-thickness: 3px; }
.nav-links .nav-cta a { padding: 0 20px; margin-left: 10px; border: 2px solid var(--mint); border-radius: var(--radius); font-weight: 700; }
.nav-links .nav-cta a:hover { background: var(--mint); color: var(--navy); text-decoration: none; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: none; color: var(--white);
  border: 2px solid var(--on-navy); border-radius: var(--radius); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; }
  .js .nav-links.is-open { display: flex; }
  .js .nav-links a { min-height: 48px; padding: 0 4px; border-top: 1px solid var(--navy-line); border-radius: 0; }
  .js .nav-links .nav-cta a { margin: 12px 0 0; padding: 0 20px; border: 2px solid var(--mint); border-radius: var(--radius); justify-content: center; }
}

/* ---- Page heading band (inner pages) ------------------------------------- */
.page-head { background: var(--navy); color: var(--white); }
.page-head .wrap { padding-top: 28px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { color: var(--white); font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; max-width: 18ch; }
.page-head .lede { margin: 0; max-width: 60ch; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--on-navy); }
.crumbs { margin: 0; font-size: 16px; color: var(--on-navy); }
.crumbs a { color: var(--on-navy); }
.crumbs a:hover { color: var(--white); }

/* ---- Sections ------------------------------------------------------------ */
.section { padding-top: 88px; padding-bottom: 88px; }
.section-tight { padding-top: 56px; padding-bottom: 56px; }
.band-tint { background: var(--tint); }
/* Hairlines inside a pale teal band use the band's own line colour */
.band-tint .pub-acc, .band-tint .pub-acc details, .band-tint .cite-list, .band-tint .cite-list li { border-color: #C3D6D3; }
.band-white { background: var(--white); }
/* The recognition strip under the header: warm bronze. #906F46 is about as light as it can go and still carry white text (4.6:1; the limit is 4.5:1) */
.band-bronze { background: #906F46; color: var(--white); }
.band-bronze .recognition { border-bottom: 0; padding: 30px 0; }
.band-bronze .recognition strong, .band-bronze .recognition span { color: var(--white); }
.band-bronze .recognition strong { font-size: 23px; line-height: 1.2; }
/* A title with a link is underlined so it reads as a link */
.band-bronze .recognition a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.band-bronze .recognition a:hover { text-decoration-thickness: 3px; }
.band-bronze .recognition a:focus-visible { outline-color: var(--white); }
/* One quiet link under the four, through to the full list on the Professional development page */
.recognition-more { margin: -8px 0 0; padding-bottom: 24px; font-size: 15px; }
.recognition-more a { color: var(--white); text-underline-offset: 4px; }
.recognition-more a::after { content: " \2192"; }
.recognition-more a:focus-visible { outline-color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.section-title { font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.section-title.small { font-size: clamp(30px, 3.4vw, 40px); }
.section-intro { margin: 0; max-width: 52ch; font-size: 18px; color: var(--muted); }
.ruled { border-top: 1px solid var(--gold); }
h2.sub { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 20px; }

/* ---- Home: hero ---------------------------------------------------------- */
.hero { background: var(--navy); color: var(--white); }
.hero .wrap { padding-top: 32px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 6 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { color: var(--white); font-size: clamp(56px, 8.5vw, 104px); line-height: 0.95; font-weight: 800; letter-spacing: -0.035em; }
.hero-role { margin: 0; max-width: 30ch; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; font-weight: 500; }
.hero-intro { margin: 0; max-width: 54ch; font-size: 18px; line-height: 1.6; color: var(--on-navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-figure { flex: 6 1 360px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.hero-frame { position: relative; }
.hero-photo { display: block; width: 100%; height: 500px; object-fit: cover; border-radius: var(--radius); background: var(--navy-deep); }
.hero-latest { display: flex; flex-direction: column; background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: var(--radius);
  overflow: hidden; color: var(--white); text-decoration: none; }
.hero-latest:hover { color: var(--white); border-color: var(--mint); }
.hero-latest img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--white); }
.hero-latest-text { padding: 22px 172px 28px 24px; min-height: 104px; display: flex; flex-direction: column; gap: 6px; }
.hero-latest ~ .hero-portrait { left: auto; right: 24px; }
@media (max-width: 520px) { .hero-latest-text { padding-right: 128px; } .hero-latest ~ .hero-portrait { right: 16px; } }
.hero-latest-label { font-size: 15px; color: var(--mint); font-weight: 700; }
.hero-latest-title { font-size: 22px; line-height: 1.3; font-weight: 700; }
.hero-latest:hover .hero-latest-title { text-decoration: underline; text-underline-offset: 4px; }
.hero-portrait { position: absolute; left: 24px; bottom: -48px; width: 128px; height: 128px; border-radius: 50%; border: 5px solid var(--navy);
  object-fit: cover; background: var(--tint); }
.hero-figure figcaption { min-height: 40px; padding-left: 168px; text-align: right; font-size: 15px; line-height: 1.4; color: var(--on-navy); }
@media (max-width: 520px) { .hero-photo { height: 320px; } .hero-portrait { width: 96px; height: 96px; left: 16px; bottom: -36px; }
  .hero-figure figcaption { padding-left: 124px; } }

/* ---- Home: recognition, focus -------------------------------------------- */
.recognition { list-style: none; margin: 0; padding: 32px 0; border-bottom: 1px solid var(--gold);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; }
.recognition li { display: flex; flex-direction: column; gap: 4px; }
.recognition strong { font-size: 19px; font-weight: 800; color: var(--navy); }
.recognition span { font-size: 15px; line-height: 1.45; color: var(--muted); }
.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 48px; }
.focus-grid > div { display: flex; flex-direction: column; gap: 14px; }
.focus-grid svg { color: var(--gold); }
.focus-grid h3 { font-size: 24px; line-height: 1.25; font-weight: 700; }
.focus-grid p { margin: 0; max-width: 40ch; font-size: 17px; }

/* ---- Project tiles ------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.tile { display: flex; flex-direction: column; gap: 8px; min-height: 150px; height: 100%; padding: 24px; background: var(--white);
  border: 1px solid var(--tint-line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--teal); color: var(--ink); }
.tile-meta { font-size: 14px; letter-spacing: -0.005em; color: var(--muted); }
.nowrap { white-space: nowrap; }
.tile-title { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.tile:hover .tile-title { text-decoration: underline; text-underline-offset: 4px; }
.tile-text { font-size: 16px; line-height: 1.5; }
/* Small bronze labels at the foot of a tile: the project's "Highlight" and its count of awards */
.tile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tile-tag { padding: 4px 12px; border-radius: 14px; background: #F3ECE2; color: #6B4F2C; font-size: 14px; font-weight: 700; }
.band-white .tile, .on-paper .tile { background: var(--white); }

/* ---- Blog cards ---------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 40px; list-style: none; margin: 0; padding: 0; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card-image { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--tint); border: 1px solid var(--tint-line); }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 22px; line-height: 1.3; font-weight: 700; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card p { margin: 0; font-size: 17px; }
.card .card-date { font-size: 15px; color: var(--muted); }
.card-slot[hidden] { display: none; }
.card-slot { display: flex; }
.card-slot > .card { flex: 1 1 auto; }

/* Blog index filter bar */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.filters label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; color: var(--navy); }
.filters input, .filters select { min-height: 48px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink); background: var(--white);
  border: 1px solid #8A969C; border-radius: var(--radius); min-width: 220px; }
.filters .grow { flex: 1 1 280px; }
.filters .grow input { width: 100%; }
.filter-status { margin: 0; font-size: 16px; color: var(--muted); min-height: 48px; display: flex; align-items: center; gap: 12px; }
.filter-status button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--teal); text-decoration: underline; cursor: pointer; }
.empty-note { padding: 40px 0; font-size: 18px; color: var(--muted); }

/* ---- Publications -------------------------------------------------------- */
.split { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.split > .aside { flex: 4 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split > .main { flex: 8 1 520px; min-width: 0; }
.stats { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.stats dt { font-size: 15px; color: var(--muted); }
.stats dd { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 800; color: var(--navy); }
.small-note { margin: 0; font-size: 15px; color: var(--muted); }
.cite-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.cite-list li { border-top: 1px solid var(--rule); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 6px 32px; }
.cite-year { flex: 0 0 64px; margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); font-variant-numeric: tabular-nums; }
.cite-text { flex: 1 1 360px; min-width: 0; margin: 0; font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.cite-text a { font-weight: 700; color: var(--navy); }
.cite-text a:hover { color: var(--teal); }
.pub-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pub-nav a { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule);
  text-decoration: none; font-weight: 700; color: var(--navy); font-size: 17px; }
.pub-nav a:hover { color: var(--teal); }
.pub-nav .count { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.pub-section { padding: 56px 0; border-top: 1px solid var(--gold); scroll-margin-top: 16px; }
.pub-section:first-of-type { border-top: 0; padding-top: 0; }
.pub-section h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 8px; }
.pub-section .count-line { margin: 0 0 24px; color: var(--muted); font-size: 16px; }

/* ---- Prose (pages and new Markdown blog posts) ---------------------------- */
.prose { font-size: 18px; line-height: 1.7; max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -0.015em; margin: 1.8em 0 0.6em; }
.prose h3 { font-size: 22px; font-weight: 700; margin: 1.6em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.3em 0; }
.prose img { border-radius: 4px; display: block; margin: 1.6em auto; }
.prose blockquote, .wb-body blockquote { margin: 1.6em 0; padding: 18px 24px; background: var(--tint); border-left: 4px solid var(--mint); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.05em; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose code { font-size: 0.92em; background: var(--tint); padding: 2px 6px; border-radius: 4px; }
.prose iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 1.6em 0; }

/* ---- Blog post page ------------------------------------------------------ */
.post-head .wrap { max-width: calc(860px + 2 * var(--gutter)); }
.post-head h1 { max-width: none; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.025em; }
.post-meta { margin: 0; font-size: 17px; color: var(--on-navy); display: flex; flex-wrap: wrap; gap: 4px 20px; }
.post-wrap { max-width: calc(860px + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 72px; }
.post-cover { display: block; width: 100%; border-radius: var(--radius); margin: 0 0 40px; }
.post-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--gold); display: flex; flex-direction: column; gap: 28px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #8A969C; border-radius: 999px;
  font-size: 15px; color: var(--ink); text-decoration: none; background: var(--white); }
.tags a:hover { border-color: var(--teal); color: var(--teal); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 18px 20px; background: var(--white);
  border: 1px solid var(--tint-line); border-radius: var(--radius); }
.post-nav a:hover { border-color: var(--teal); }
.post-nav span { font-size: 15px; color: var(--muted); }
.post-nav strong { font-size: 18px; line-height: 1.35; color: var(--navy); }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; text-align: left; } }

/* ---- Content brought over from Weebly (.wb-*) -----------------------------
   These classes keep the layout of the original posts: columns, coloured boxes,
   image alignment and captions, video sizes. */
.wb-body { font-size: 17.5px; line-height: 1.7; overflow-wrap: break-word; }
.wb-body::after { content: ""; display: block; clear: both; }
.wb-text { margin: 0 0 1.15em; }
.wb-text ul, .wb-text ol { padding-left: 1.5em; margin: 0.5em 0; }
.wb-text li { margin: 0.3em 0; }
.wb-body h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; margin: 1.4em 0 0.6em; }
.wb-body h2:first-child { margin-top: 0; }
.wb-body h6 { font-size: 1em; margin: 0; }
.wb-body a { text-decoration: underline; font-weight: 600; }
.wb-img { margin: 1.1em 0; text-align: center; }
.wb-img img { max-width: 100%; height: auto; vertical-align: middle; }
.wb-img.wb-left { text-align: left; }
.wb-img.wb-right { text-align: right; }
.wb-img.wb-border img { border: 1px solid #8A969C; padding: 3px; }
.wb-img figcaption { font-size: 0.9em; line-height: 1.45; color: var(--muted); margin-top: 0.5em; }
.wb-img figcaption:empty { display: none; }
.wb-zoom { cursor: zoom-in; display: inline-block; }
.wb-float-left { float: left; margin: 0.35em 1.5em 0.8em 0; max-width: 50%; }
.wb-float-right { float: right; margin: 0.35em 0 0.8em 1.5em; max-width: 50%; }
.wb-clear { clear: both; }
.wb-cols { display: flex; gap: 30px; margin: 0 0 0.4em; }
.wb-col { flex: var(--w, 50) 1 0%; min-width: 0; }
.wb-col > :first-child { margin-top: 0; }
.wb-hr { border: 0; border-top: 1px solid var(--rule); margin: 1.5em 0; clear: both; }
.wb-embed { position: relative; aspect-ratio: 16 / 9; width: 100%; margin: 1.1em auto; background: #10233F; border-radius: var(--radius); overflow: hidden; }
.wb-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wb-embed-small { max-width: 360px; }
.wb-embed-medium { max-width: 560px; }
.wb-embed-tall { aspect-ratio: auto; height: 600px; background: var(--white); border: 1px solid var(--rule); }
.wb-embed-caption { font-size: 0.9em; color: var(--muted); text-align: center; }
.wb-box { padding: 20px; margin: 0 0 1.15em; border-radius: 4px; overflow: hidden; }
.wb-box > :last-child, .wb-block > :last-child, .wb-acc-body > :last-child { margin-bottom: 0; }
.wb-box a, .wb-block a { color: inherit; }
.wb-blocks { display: grid; gap: 4px; margin: 1.1em 0; }
.wb-blocks-2 { grid-template-columns: 1fr 1fr; }
.wb-blocks-3 { grid-template-columns: repeat(3, 1fr); }
.wb-blocks-4 { grid-template-columns: repeat(4, 1fr); }
.wb-block { padding: 30px; min-width: 0; }
.wb-accordion { margin: 1.1em 0; border-bottom: 1px solid var(--rule); }
.wb-acc { border-top: 1px solid var(--rule); }
.wb-acc summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 14px; padding: 16px 4px; font-weight: 700; font-size: 1.05em; color: var(--navy); }
.wb-acc summary::-webkit-details-marker { display: none; }
.wb-acc summary::before { content: "+"; flex: 0 0 auto; width: 1em; font-weight: 800; color: var(--teal); text-align: center; }
.wb-acc[open] summary::before { content: "−"; }
.wb-acc summary:hover { color: var(--teal); }
.wb-acc-body { padding: 4px 4px 24px calc(1em + 18px); }
.wb-file { margin: 0.8em 0; }
.wb-file a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 2px solid var(--teal); border-radius: var(--radius);
  color: var(--teal); text-decoration: none; font-weight: 700; background: var(--white); }
.wb-file a::before { content: "↓"; font-weight: 800; }
.wb-file a:hover { background: var(--teal); color: var(--white); }
.wb-file-meta { font-size: 0.9em; color: var(--muted); margin-left: 8px; }
.wb-icon { text-align: center; line-height: 1; margin: 0.4em 0; }
@media (max-width: 720px) {
  .wb-cols { flex-direction: column; gap: 0; }
  .wb-col:empty { display: none; }
  .wb-float-left, .wb-float-right { float: none; max-width: 100%; margin: 1em 0; text-align: center; }
  .wb-blocks-2, .wb-blocks-3, .wb-blocks-4 { grid-template-columns: 1fr; }
  .wb-block { padding: 22px; }
  .wb-box { padding: 16px; }
  .wb-box .wb-box { padding: 12px; }
  .wb-narrow { max-width: 100%; }
}

/* Coloured boxes with a dark background carry light text */
.wb-dark { color: var(--white); }
.wb-dark h2, .wb-dark h3, .wb-dark h4, .wb-dark summary { color: inherit; }
.wb-dark .wb-img figcaption { color: inherit; }
.wb-box h2:first-child, .wb-block h2:first-child { margin-top: 0; }
.wb-box .wb-box { margin-bottom: 0.8em; }
.wb-block.wb-plain { padding: 0; }
.wb-blocks-1 { grid-template-columns: 1fr; }
.wb-body h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 1.3em 0 0.5em; }
.wb-body h4 { font-size: 18px; line-height: 1.35; font-weight: 700; margin: 1.2em 0 0.4em; }
/* A single column that was narrower than the page in the original */
.wb-narrow { max-width: var(--w, 100%); min-width: min(100%, 320px); }
.wb-narrow-center { margin-left: auto; margin-right: auto; }
.wb-narrow-right { margin-left: auto; }
/* Photo sets (were slideshows on Weebly) */
.wb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 1.1em 0; }
.wb-gallery figure { margin: 0; }
.wb-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--tint); border: 1px solid var(--tint-line); }
.wb-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wb-gallery figcaption { font-size: 0.85em; color: var(--muted); margin-top: 4px; }
.wb-audio { display: block; width: 100%; max-width: 480px; margin: 0.8em 0 0.4em; }
.wb-btn { margin: 1em 0; }
.wb-table { overflow-x: auto; margin: 1.1em 0; }
.wb-table table { border-collapse: collapse; }
.wb-table td, .wb-table th { padding: 8px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.wb-img img { border-radius: 2px; }
.wb-col > .wb-img:first-child, .wb-col > .wb-text:first-child { margin-top: 0; }

/* Image viewer for enlargeable images */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(15, 42, 82, 0.9); }
.lightbox img { display: block; max-width: 96vw; max-height: 88vh; margin: 0 auto; border-radius: 4px; background: var(--white); }
.lightbox form { text-align: center; margin-top: 12px; }
.lightbox button { min-height: 44px; padding: 0 20px; font: inherit; font-weight: 700; color: var(--navy); background: var(--white); border: 0; border-radius: var(--radius); cursor: pointer; }

/* ---- Professional development -------------------------------------------- */
.facts { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.facts li { display: flex; align-items: center; gap: 20px 28px; padding: 18px 0; border-top: 1px solid var(--rule); }
.facts .when { flex: 0 0 110px; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.facts .what { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.facts .what strong { font-size: 19px; color: var(--navy); line-height: 1.35; }
.facts .what span { font-size: 16px; color: var(--muted); }
.facts .logo { flex: 0 0 72px; height: 56px; display: flex; align-items: center; justify-content: center; }
.facts .logo img { max-height: 56px; max-width: 72px; width: auto; object-fit: contain; }
@media (max-width: 560px) { .facts li { flex-wrap: wrap; } .facts .when { flex-basis: 100%; } }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 24px; list-style: none; margin: 0; padding: 0; }
.badges li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.badges img { height: 120px; width: auto; max-width: 100%; object-fit: contain; }
.badges strong { font-size: 17px; line-height: 1.35; color: var(--navy); }
.badges span { font-size: 15px; color: var(--muted); line-height: 1.4; }
.course-images { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.course-images a { display: block; flex: 0 1 260px; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: var(--white); }
.course-images img { display: block; width: 100%; }
.accred { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.accred li { background: var(--white); border: 1px solid var(--tint-line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.accred strong { font-size: 22px; font-weight: 800; color: var(--navy); }
.accred span { font-size: 16px; color: var(--muted); line-height: 1.45; }
.accred a { font-size: 16px; font-weight: 700; margin-top: 4px; }
/* Award lists (project pages, and Team awards on the Professional development page): longer titles, so a size down */
.accred.awards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.accred.awards strong { font-size: 20px; line-height: 1.25; }
.accred span a { font-size: inherit; font-weight: inherit; margin: 0; }
.project-awards { margin-top: 56px; }
/* A project's logo, in the side column under its links */
.project-logo { display: block; width: 200px; max-width: 60%; margin: 28px 0; border-radius: 22%; overflow: hidden; }
.project-logo img { display: block; width: 100%; height: auto; }
a.project-logo:hover { box-shadow: 0 0 0 3px var(--teal); }
/* Key figures near the top of a project page: the number in large type, what it counts underneath */
.proj-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px 24px; margin: 28px 0 32px; padding: 24px 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.proj-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.proj-stats dt { font-size: 15px; line-height: 1.4; font-weight: 400; color: var(--muted); }
.proj-stats dd { margin: 0; font-size: 38px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.sub-intro { margin: -8px 0 20px; max-width: 60ch; font-size: 17px; color: var(--muted); }
.stack-lg > * + * { margin-top: 72px; }
.stack > * + * { margin-top: 24px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--tint-line); }
.timeline li { position: relative; padding: 0 0 36px 44px; display: flex; gap: 24px; align-items: flex-start; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--teal); }
.timeline .t-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.timeline .t-when { font-size: 16px; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.timeline .t-title { font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.timeline .t-detail { font-size: 17px; color: var(--ink); max-width: 60ch; }
.timeline .t-logo { flex: 0 0 72px; display: flex; justify-content: center; }
.timeline .t-logo img { max-height: 56px; max-width: 72px; width: auto; object-fit: contain; }
@media (max-width: 520px) { .timeline .t-logo { display: none; } }

/* PD PACT archive */
.notice { background: var(--tint); border-left: 4px solid var(--mint); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 24px; font-size: 17px; max-width: 80ch; }
.notice > :last-child { margin-bottom: 0; }
.activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.activity { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 20px; background: var(--white);
  border: 1px solid var(--tint-line); border-radius: var(--radius); text-align: center; font-size: 16px; line-height: 1.45; }
.activity img { max-height: 84px; max-width: 160px; width: auto; object-fit: contain; }
.activity .wb-embed { margin: 0; }
.activity a { font-weight: 700; }
.evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.evidence a { display: block; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: var(--white); }
.evidence img { display: block; width: 100%; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.video-grid figure { margin: 0; }
.video-grid figcaption { font-size: 16px; color: var(--muted); margin-top: 8px; }
.video-grid .wb-embed { margin: 0; }

/* ---- About --------------------------------------------------------------- */
.about-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.about-side { flex: 0 1 280px; display: flex; flex-direction: column; gap: 24px; }
.about-side img.portrait { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; }
.about-main { flex: 1 1 480px; min-width: 0; }
.side-links { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.side-links a { display: flex; align-items: center; min-height: 48px; border-top: 1px solid var(--rule); font-weight: 700; text-decoration: none; }
.side-links a:hover { text-decoration: underline; }

/* ---- Photography band ---------------------------------------------------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.photo-grid a { display: block; border-radius: var(--radius); overflow: hidden; }
.photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); transition: transform 0.2s ease; }
.photo-grid a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .photo-grid img { transition: none; } .photo-grid a:hover img { transform: none; } }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-contact { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer-contact h2 { color: var(--white); font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.footer-contact p { margin: 0; max-width: 44ch; font-size: 17px; color: var(--on-navy); }
.footer-col { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { color: var(--white); font-size: 18px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--on-navy); }
.site-footer a:hover { color: var(--white); }
.footer-base { margin: 0; padding-top: 24px; border-top: 1px solid var(--gold); font-size: 15px; color: var(--on-navy); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-base a { color: var(--on-navy); }

/* ---- Print --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .filters, .post-nav, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page-head, .hero { background: #fff; color: #000; }
  .page-head h1, .hero h1 { color: #000; }
  .wb-acc:not([open]) > .wb-acc-body { display: block; }
}
