/* Boards Wales — site styles (layout, jobs board, forms). Content blocks are in blocks.css. */
:root {
  --blue: #0083a6; --blue-dark: #006b88; --blue-tint: #e8f1f7; --ink: #1f1f1f; --ink-2: #3d3d3d; --muted: #5c5c5c;
  --line: #e4e4e4; --line-2: #c9c9c9; --bg-soft: #f7f7f7; --paid-bg: #e3f2f6; --paid-fg: #005e78; --vol-bg: #fdf3d7; --vol-fg: #7a5d00;
  --soon-bg: #fbe6d8; --soon-fg: #9a3d0e; --grey-bg: #eeeeee; --radius: 6px; --radius-lg: 10px;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --serif: 'EB Garamond', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid #f0c000; outline-offset: 2px; }
.bw-serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.bw-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.bw-narrow { max-width: 900px; }
.bw-muted { color: var(--muted); }
.bw-small { font-size: 14px; }
.bw-center { text-align: center; }
.bw-visually-hidden, .bw-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bw-skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.bw-skip:focus { left: 8px; top: 8px; color: #fff; }
@media (min-width: 900px) { .bw-wrap { padding: 0 48px; } }

/* Buttons */
.bw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--radius); padding: 10px 16px;
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s; }
.bw-btn--sm { padding: 10px 16px; font-size: 14px; }
.bw-btn--lg { padding: 14px 22px; font-size: 16px; }
.bw-btn--block { width: 100%; }
.bw-btn--blue { background: var(--blue); color: #fff; }
.bw-btn--blue:hover { background: var(--blue-dark); color: #fff; }
.bw-btn--dark { background: var(--ink); color: #fff; }
.bw-btn--dark:hover { background: #000; color: #fff; }
.bw-btn--outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.bw-btn--outline:hover { background: var(--bg-soft); color: var(--ink); }

/* Header */
.bw-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 20; }
.bw-header__inner { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.bw-logo img { display: block; height: 44px; width: auto; }
.bw-nav { display: flex; flex: 1; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.bw-nav a { color: var(--ink); text-decoration: none; padding: 4px 0; }
.bw-nav a:hover, .bw-nav a[aria-current="page"] { color: var(--blue); }
.bw-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
.bw-header__actions { display: flex; align-items: center; gap: 14px; }
.bw-lang { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.bw-lang:hover { border-color: var(--ink); color: var(--ink); }
.bw-menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 8px 12px; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
@media (max-width: 1080px) {
  .bw-menu-toggle { display: inline-block; }
  .bw-nav { display: none; flex-basis: 100%; order: 3; flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  .bw-nav.is-open { display: flex; }
  .bw-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .bw-header__actions { order: 2; }
}
@media (max-width: 560px) { .bw-header__actions .bw-btn { display: none; } .bw-header__inner { gap: 12px; } }

/* Hero */
.bw-hero { display: grid; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.bw-hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; margin: 0 0 20px; text-wrap: balance; }
.bw-lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.bw-lede--sm { font-size: 17px; }
.bw-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bw-hero__media { display: grid; gap: 14px; }
.bw-hero__photo { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); }
.bw-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bw-sponsor { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.bw-sponsor p { margin: 0; color: var(--muted); font-size: 14px; }
.bw-sponsor img { height: 44px; width: auto; display: block; }
@media (min-width: 900px) { .bw-hero { grid-template-columns: 1fr 1fr; padding-top: 64px; } }

/* Jobs board */
.bw-board { display: grid; gap: 40px; align-items: start; padding-top: 24px; padding-bottom: 72px; scroll-margin-top: 12px; }
.bw-board__main { min-width: 0; }
@media (min-width: 1000px) { .bw-board { grid-template-columns: 2fr 1fr; } }
.bw-board__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bw-board__head h2 { font-size: 36px; margin: 0; }
.bw-board__head span { font-size: 14px; }
.bw-input, .bw-select { width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 14px; font: 15px var(--sans); color: var(--ink); background: #fff; }
.bw-input:focus, .bw-select:focus { border-color: var(--blue); outline: 2px solid rgba(0,131,166,.25); outline-offset: 0; }
textarea.bw-input { resize: vertical; line-height: 1.5; }
.bw-filters { margin-bottom: 20px; }
.bw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.bw-chip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 14px; font: 14px var(--sans); color: var(--ink); cursor: pointer; }
.bw-chip span { opacity: .6; }
.bw-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.bw-filters__row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.bw-filters__row .bw-select { width: auto; min-width: 200px; padding: 7px 12px; font-size: 14px; }
.bw-check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.bw-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.bw-check--sm { margin-top: 8px; font-size: 13px; }
.bw-roles { border-top: 1px solid var(--ink); }
.bw-role { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.bw-role:hover { background: var(--bg-soft); color: var(--ink); }
.bw-role[hidden] { display: none; }
.bw-role__text { flex: 1 1 280px; min-width: 0; }
.bw-role__title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.bw-role__org { font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.bw-role__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.bw-role__date { color: var(--muted); min-width: 84px; }
.bw-role__arrow { color: var(--blue); font-size: 18px; }
.bw-tag { display: inline-block; border-radius: 4px; padding: 2px 8px; font-size: 14px; font-weight: 600; }
.bw-tag--paid { background: var(--paid-bg); color: var(--paid-fg); }
.bw-tag--vol { background: var(--vol-bg); color: var(--vol-fg); }
.bw-tag--soon { background: var(--soon-bg); color: var(--soon-fg); }
.bw-tag--grey { background: var(--grey-bg); color: var(--ink-2); }
.bw-tag--type { background: var(--blue-tint); color: var(--blue-dark); }
.bw-roles__empty { padding: 28px 4px; color: var(--muted); margin: 0; }
.bw-label { font: 700 15px var(--sans); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px; }
.bw-always { margin-top: 40px; }
.bw-always > p { margin: 0 0 12px; font-size: 15px; }
.bw-always__grid { display: grid; column-gap: 24px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .bw-always__grid { grid-template-columns: 1fr 1fr; } }
.bw-always__item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); text-decoration: none; }
.bw-always__item span:first-child { font-weight: 500; }
.bw-always__item span:last-child { text-align: right; }
.bw-always__item:hover span:first-child { color: var(--blue); }
.bw-board__side { display: grid; gap: 20px; min-width: 0; }
.bw-card { border-radius: var(--radius-lg); padding: 24px; }
.bw-card h3, .bw-card h2 { font-size: 24px; margin: 0 0 8px; }
.bw-card p { font-size: 15px; line-height: 1.5; margin: 0 0 16px; color: var(--ink-2); }
.bw-card--line { border: 1px solid var(--line); background: #fff; }
.bw-card--blue { background: var(--blue-tint); }
.bw-inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.bw-inline-form .bw-input { flex: 1 1 160px; min-width: 0; width: auto; }
.bw-links { display: grid; gap: 8px; padding: 4px; font-size: 15px; }
.bw-links .bw-label { margin-bottom: 4px; }
.bw-alert { border-radius: var(--radius); padding: 10px 14px; font-size: 15px; margin: 0 0 12px; }
.bw-alert--ok { background: #e6f4ea; color: #1e5a2d; }
.bw-alert--info { background: var(--blue-tint); color: var(--paid-fg); }
.bw-alert--error { background: #fde8e8; color: #8a1c1c; }

/* Vacancy page */
.bw-job { padding-top: 32px; padding-bottom: 64px; }
.bw-back { display: inline-block; font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.bw-job__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.bw-job__title { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; margin: 12px 0 4px; }
.bw-job__org { font-size: 19px; color: var(--ink-2); margin: 0 0 20px; }
.bw-job__facts { display: grid; gap: 0 40px; margin: 8px 0 28px; }
@media (min-width: 640px) { .bw-job__facts { grid-template-columns: 1fr 1fr; } }
.bw-job__facts dl { margin: 0; }
.bw-job__facts div { border-bottom: 1px solid var(--line); padding: 12px 0; }
.bw-job__facts dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bw-job__facts dd { margin: 4px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.bw-job__about h2, .bw-job__apply h2 { font-size: 30px; margin: 0 0 12px; }
.bw-prose { font-size: 16px; line-height: 1.7; color: #2b2b2b; }
.bw-prose p { margin: 0 0 1em; }
.bw-job__apply { margin-top: 36px; }
.bw-job__note { margin-top: 40px; }

/* Forms */
.bw-formpage { padding-top: 32px; padding-bottom: 72px; }
.bw-formpage h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 12px; line-height: 1.1; }
.bw-form { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 640px) { .bw-form { grid-template-columns: 1fr 1fr; } }
.bw-field { display: grid; gap: 6px; align-content: start; }
.bw-field--full { grid-column: 1 / -1; }
.bw-field label:not(.bw-check), .bw-field__label { font-weight: 600; font-size: 15px; }
.bw-field__help { font-size: 13px; color: var(--muted); margin: 0; }
.bw-field__error { font-size: 14px; color: #b42318; margin: 0; font-weight: 500; }
.bw-input[aria-invalid="true"], .bw-select[aria-invalid="true"] { border-color: #b42318; }
.bw-subscribe { padding: 40px 32px; }
.bw-subscribe .bw-inline-form { max-width: 460px; margin: 0 auto 12px; }
.bw-center .bw-lede { margin-left: auto; margin-right: auto; }

/* Blog listing */
.bw-post-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 24px 0; }
.bw-post-card__img { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--blue-tint); margin-bottom: 10px; }
.bw-post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.bw-post-card:hover .bw-post-card__img img { transform: scale(1.03); }
.bw-post-card__meta { font-size: 13px; color: var(--muted); }
.bw-post-card__title { font: 600 18px/1.3 var(--sans); margin: 4px 0 6px; }
.bw-post-card__title a { color: var(--ink); text-decoration: none; }
.bw-post-card__title a:hover { color: var(--blue); }
.bw-post-card__excerpt { font-size: 14px; color: var(--ink-2); margin: 0; }
.bw-pagination { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; }
.bw-categories { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 16px 20px; font-size: 15px; }
.bw-categories h2 { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.bw-categories ul { list-style: none; margin: 0; padding: 0; }
.bw-categories ul ul { padding-left: 14px; }
.bw-categories li { padding: 3px 0; }
.bw-categories li span { color: var(--muted); font-size: 13px; }
.bw-categories .is-current > a { font-weight: 700; color: var(--ink); }
.bw-blog-layout { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 64px; }
.bw-blog-layout h1 { font-size: 40px; margin: 0; }
@media (min-width: 900px) { .bw-blog-layout { grid-template-columns: 220px 1fr; } .bw-blog-layout__side { position: sticky; top: 16px; align-self: start; } }

/* Articles */
.bw-article__head { max-width: 900px; margin: 0 auto; padding: 32px 16px 16px; }
.bw-article__head h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; margin: 0 0 6px; text-wrap: balance; }
.bw-article__head p { margin: 0; }
.bw-article__foot { max-width: 760px; margin: 32px auto 48px; padding: 20px 16px 0; border-top: 1px dotted var(--line-2); font-size: 14px; }
.bw-article__foot p { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.bw-term { background: #ffe101; color: var(--ink); border-radius: 3px; padding: 1px 8px; text-decoration: none; }
a.bw-term:hover { background: var(--ink); color: #fff; }
.bw-preview-bar { background: #ffe101; padding: 10px 16px; text-align: center; font-size: 14px; }

/* Footer */
.bw-footer { background: #141414; color: #d9d9d9; font-size: 14px; }
.bw-footer__grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 640px) { .bw-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .bw-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.bw-footer h2 { font: 600 15px var(--sans); color: #fff; margin: 0 0 10px; }
.bw-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bw-footer a { color: #d9d9d9; }
.bw-footer a:hover { color: #fff; }
.bw-footer__logo { height: 56px; width: auto; display: block; margin-bottom: 12px; }
.bw-footer p { margin: 0 0 8px; line-height: 1.5; }
.bw-footer__sponsor, .bw-footer__note { opacity: .75; }
.is-page .bw-article__head { max-width: min(1200px, max(80%, 720px)); padding-left: 0; padding-right: 0; width: calc(100% - 32px); }

/* ---------------------------------------------------------------- About & Tips (feature pages) */
.wp-content > .bw-about, .wp-content > .bw-tips { max-width: var(--wide, 1200px); }
.wp-content .bw-about h1, .wp-content .bw-tips h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.015em; margin: 0 0 20px; text-wrap: balance; }
.wp-content .bw-about h2, .wp-content .bw-tips h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 0 0 16px; }
.wp-content .bw-about h3, .wp-content .bw-tips h3 { margin: 0 0 8px; }
.wp-content .bw-about p, .wp-content .bw-tips p { max-width: 66ch; }

/* About */
.bw-about { padding-top: 40px; }
.bw-about__intro { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .bw-about__intro { grid-template-columns: 5fr 7fr; gap: 64px; } }
.bw-about__portrait { margin: 0; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--blue-tint); max-width: 460px; }
.bw-about__portrait img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.wp-content .bw-about__lede { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.3; color: var(--ink); margin-bottom: 24px; }
.bw-about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bw-about__actions a { text-decoration: none; }
.bw-about__record, .bw-about__offer { margin-top: 80px; }
.bw-about__record { display: grid; gap: 24px 64px; }
@media (min-width: 900px) { .bw-about__record { grid-template-columns: 4fr 8fr; } .bw-about__record-intro { position: sticky; top: 24px; align-self: start; } }
.bw-timeline__key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.bw-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--blue); background: #fff; }
.bw-dot.is-chair { background: var(--blue); }
.bw-dot + .bw-dot, .bw-timeline__key .bw-dot:nth-of-type(2) { margin-left: 10px; }
.bw-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.bw-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: color-mix(in srgb, var(--blue) 35%, #fff); }
.bw-timeline__item { position: relative; display: grid; gap: 2px 24px; padding: 0 0 26px 36px; margin: 0; }
.bw-timeline__item::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-sizing: border-box; }
.bw-timeline__item.is-chair::before { background: var(--blue); }
.bw-timeline__item:last-child { padding-bottom: 0; }
@media (min-width: 640px) { .bw-timeline__item { grid-template-columns: 110px 1fr; } }
.bw-timeline__when { font-family: var(--serif); font-size: 21px; line-height: 1.2; color: var(--blue-dark); white-space: nowrap; }
.bw-timeline__body { font-size: 16.5px; line-height: 1.5; }
.bw-timeline__body strong { font-weight: 600; }
.bw-timeline__detail { display: block; color: var(--ink-2); font-size: 15px; margin-top: 4px; max-width: 62ch; }
.bw-offer { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; }
@media (min-width: 900px) { .bw-offer { grid-template-columns: repeat(3, 1fr); } }
.bw-offer li { margin: 0; }
.bw-offer a { display: grid; gap: 6px; padding: 18px 0 22px; border-top: 1px solid var(--ink); color: var(--ink); text-decoration: none; height: 100%; }
.bw-offer strong { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--blue-dark); }
.bw-offer span { font-size: 15px; color: var(--ink-2); }
.bw-offer a:hover strong, .bw-offer a:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; }

/* Tips: the pathway is drawn as a staircase, rising with the experience each step needs */
.bw-tips { padding-top: 40px; }
.bw-tips__head { max-width: 860px; margin-bottom: 72px; }
.wp-content .bw-tips__lede { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; color: var(--ink-2); }
.bw-pathway__intro { display: grid; gap: 8px 48px; margin-bottom: 40px; }
@media (min-width: 900px) { .bw-pathway__intro { grid-template-columns: 4fr 7fr; } }
.bw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bw-step { --fill: color-mix(in srgb, var(--blue) calc(var(--step) * 4%), #fff); --tread: color-mix(in srgb, var(--blue) calc(30% + var(--step) * 14%), #fff);
  margin: 0; padding: 20px 20px 28px; background: var(--fill); border-top: 6px solid var(--tread); border-radius: 0 0 6px 6px; }
.bw-step__num { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--blue-dark); }
.bw-step__kind { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 6px; }
.wp-content .bw-step h3 { font-size: 22px; line-height: 1.2; }
.wp-content .bw-step p { font-size: 15.5px; line-height: 1.6; margin: 0; }
.bw-scale { display: flex; justify-content: space-between; gap: 16px; margin: 0 !important; padding-top: 14px; font-size: 14px; color: var(--muted); max-width: none !important; position: relative; }
.bw-scale::before { content: ''; position: absolute; left: 0; right: 10px; top: 0; height: 2px; background: linear-gradient(to right, color-mix(in srgb, var(--blue) 30%, #fff), var(--blue)); }
.bw-scale::after { content: ''; position: absolute; right: 0; top: -5px; border: 6px solid transparent; border-left: 10px solid var(--blue); border-right: 0; }
@media (min-width: 1000px) {
  .bw-steps { grid-template-columns: repeat(5, 1fr); align-items: stretch; }
  .bw-step { margin-top: calc((5 - var(--step)) * 44px); }
  .bw-scale { margin-top: 0 !important; }
}
@media (max-width: 999px) {
  .bw-step { border-top: 0; border-left: 6px solid var(--tread); border-radius: 0 6px 6px 0; }
  .bw-scale { display: none; }
}
.bw-mentor { display: grid; gap: 24px 64px; margin-top: 96px; padding: 48px clamp(20px, 4vw, 56px); background: var(--blue-tint); border-radius: 10px; }
@media (min-width: 900px) { .bw-mentor { grid-template-columns: 4fr 7fr; } }
.bw-mentor__list { list-style: none; margin: 0; padding: 0; }
.bw-mentor__list li { margin: 0; padding: 20px 0; border-top: 1px solid color-mix(in srgb, var(--blue) 35%, #fff); }
.bw-mentor__list li:first-child { border-top: 0; padding-top: 0; }
.wp-content .bw-mentor__list h3 { font-size: 24px; }
.wp-content .bw-mentor__list p { margin: 0; }
.bw-tips__next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.wp-content .bw-tips__next p { font-family: var(--serif); font-size: 30px; margin: 0; }
.bw-tips__next a, .bw-about__actions a { text-decoration: none; }
.wp-content .bw-steps, .wp-content .bw-timeline, .wp-content .bw-offer, .wp-content .bw-mentor__list { padding-left: 0; }
.wp-content .bw-steps li, .wp-content .bw-timeline li, .wp-content .bw-offer li, .wp-content .bw-mentor__list li { margin-bottom: 0; }
.bw-mentor { align-items: start; }
@media (max-width: 899px) { .bw-about__portrait { max-width: 240px; } }
.bw-edit-link { float: right; font-size: 14px; font-weight: 600; background: #ffe101; color: var(--ink); padding: 4px 10px; border-radius: 4px; text-decoration: none; }
.bw-new { display: inline-block; vertical-align: 2px; background: #ffe101; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 3px; margin-right: 4px; }

/* Newsletter sign-up confirmation on the jobs board */
.bw-subscribed { position: relative; background: var(--blue); color: #fff; padding: 28px 24px 26px 80px; scroll-margin-top: 16px; }
.bw-card.bw-subscribed h3 { color: #fff; font-size: 28px; margin: 0 0 6px; }
.bw-card.bw-subscribed p { color: #e6f4f8; font-size: 16px; margin: 0; }
.bw-subscribed__tick { position: absolute; left: 24px; top: 28px; width: 40px; height: 40px; border-radius: 50%; background: #ffe101; }
.bw-subscribed__tick::after { content: ''; position: absolute; left: 14px; top: 8px; width: 9px; height: 17px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.bw-subscribed:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .bw-subscribed { animation: bw-pop .45s ease-out; }
  @keyframes bw-pop { from { transform: scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }
}

/* Newsletters archive: promise and sign-up first, then the latest issue, then past issues by year */
.wp-content > .bw-nl { max-width: var(--wide, 1200px); }
.bw-nl { padding-top: 40px; }
.wp-content .bw-nl h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -.015em; margin: 0 0 20px; text-wrap: balance; }
.wp-content .bw-nl h2, .wp-content .bw-nl h3, .wp-content .bw-nl h4 { margin: 0; }
.wp-content .bw-nl ul { padding-left: 0; list-style: none; margin: 0; }
.wp-content .bw-nl li { margin: 0; }
.wp-content .bw-nl img { border-radius: 0; }
.wp-content .bw-nl .bw-nl__label { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.bw-nl__head { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .bw-nl__head { grid-template-columns: 7fr 5fr; gap: 64px; } }
.wp-content .bw-nl__lede { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.35; color: var(--ink-2); max-width: 34ch; margin-bottom: 28px; }
.bw-subform { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.bw-subform .bw-input { flex: 1 1 220px; width: auto; min-width: 0; padding: 13px 16px; font-size: 16px; }
.bw-subform .bw-btn { padding: 13px 22px; font-size: 16px; }
.wp-content .bw-nl__fine { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.bw-nl__proof { background: var(--blue-tint); border-radius: 10px; padding: 28px 28px 30px; }
.wp-content .bw-nl__count { margin: 0; font-family: var(--serif); line-height: 1; color: var(--blue-dark); }
.bw-nl__count span { display: block; font-size: 22px; margin-bottom: 4px; }
.bw-nl__count strong { font-weight: 500; font-size: clamp(72px, 8vw, 96px); letter-spacing: -.02em; }
.wp-content .bw-nl__count-sub { font-size: 16px; color: var(--ink-2); margin: 6px 0 24px; max-width: 28ch; }
.bw-nl__proof .bw-nl__label { padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--blue) 30%, #fff); }
.bw-nl__inside li { position: relative; padding: 0 0 10px 28px; font-size: 16px; }
.bw-nl__inside li::before { content: ''; position: absolute; left: 2px; top: 4px; width: 7px; height: 13px; border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.bw-nl__latest { margin-top: 88px; }
.bw-latest { display: grid; gap: 24px 48px; align-items: center; }
@media (min-width: 900px) { .bw-latest { grid-template-columns: 6fr 5fr; } }
.bw-latest__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: var(--blue-tint); }
.bw-latest__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-content .bw-latest h3 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 16px; }
.bw-latest h3 a { color: var(--ink); text-decoration: none; }
.bw-latest h3 a:hover { color: var(--blue); }
.bw-latest ul { margin-bottom: 24px !important; }
.bw-latest li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 17px; }
.bw-latest li:last-child { border-bottom: 1px solid var(--line); }
.wp-content .bw-latest .bw-btn { color: #fff; text-decoration: none; }

.bw-nl__archive { margin-top: 96px; }
.bw-nl__archive-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }
.bw-nl__years { display: flex; gap: 8px; }
.wp-content .bw-nl__years a { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; }
.wp-content .bw-nl__years a:hover { border-color: var(--ink); }
.wp-content .bw-nl .bw-nl__year { font-size: 28px; color: var(--blue-dark); padding-top: 18px; margin: 32px 0 20px; border-top: 1px solid var(--ink); scroll-margin-top: 16px; }
.bw-issues { display: grid; gap: 36px 32px; }
@media (min-width: 640px) { .bw-issues { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bw-issues { grid-template-columns: repeat(3, 1fr); } }
.bw-issue { position: relative; }
.bw-issue img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px !important; background: var(--blue-tint); margin-bottom: 14px; }
.wp-content .bw-issue h4 { font-size: 24px; margin-bottom: 8px; }
.bw-issue h4 a { color: var(--ink); text-decoration: none; }
.bw-issue h4 a::after { content: ''; position: absolute; inset: 0; } /* whole card is the link; one link per card for screen readers */
.bw-issue:hover h4 a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.bw-issue li { position: relative; padding-left: 14px; font-size: 15px; line-height: 1.45; color: var(--ink-2); margin-bottom: 4px !important; }
.bw-issue li::before { content: ''; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.bw-issue:focus-within { outline: 3px solid #f0c000; outline-offset: 6px; border-radius: 8px; }
.bw-issue h4 a:focus-visible { outline: none; }

.bw-nl__cta { display: grid; gap: 20px 48px; align-items: center; margin-top: 96px; padding: 40px clamp(20px, 4vw, 56px); background: var(--blue); color: #fff; border-radius: 10px; }
@media (min-width: 900px) { .bw-nl__cta { grid-template-columns: 1fr 1fr; } }
.wp-content .bw-nl__cta h2 { color: #fff; font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 8px; }
.wp-content .bw-nl__cta p { color: #e6f4f8; margin: 0; }
.bw-nl__cta .bw-input { border-color: #fff; }
.bw-nl__cta .bw-btn--blue { background: var(--ink); }
.bw-nl__cta .bw-btn--blue:hover { background: #000; }
@media (max-width: 480px) { .bw-subform .bw-btn { flex: 1 0 100%; } }
/* Header menu: keep all items on one line on laptop screens */
.bw-header .bw-wrap { max-width: 1320px; }
@media (min-width: 1081px) and (max-width: 1439px) { .bw-nav { gap: 6px 13px; font-size: 14px; } .bw-header__inner { gap: 20px; } }
@media (min-width: 1081px) { .bw-nav { flex-wrap: nowrap; white-space: nowrap; } }

/* Past roles archive */
.bw-past { padding-top: 40px; padding-bottom: 72px; }
.bw-past__head h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.05; margin: 0 0 14px; }
.bw-past__head .bw-lede { max-width: 62ch; }
.bw-past__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 28px 0 36px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 760px) { .bw-past__stats { grid-template-columns: repeat(4, 1fr); } }
.bw-past__stats div { background: #fff; padding: 16px 18px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.bw-past__stats dt { font-size: 14px; color: var(--muted); }
.bw-past__stats dd { margin: 0; font-family: var(--serif); font-size: 40px; line-height: 1.05; color: var(--blue-dark); }
.bw-past__filters { margin-bottom: 8px; display: grid; gap: 10px; }
.bw-past__year { margin-top: 28px; }
.bw-past__year h2 { font-size: 30px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.bw-past__year h2 .bw-muted { font-family: var(--sans); font-size: 15px; }
.bw-past__list { list-style: none; margin: 0; padding: 0; }
.bw-past__list a { display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 16px; align-items: baseline; padding: 11px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bw-past__list a:hover { background: var(--bg-soft); }
.bw-past__list a:hover strong { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.bw-past__date { font-size: 14px; color: var(--muted); white-space: nowrap; }
.bw-past__text strong { font-weight: 600; }
.bw-past__text span { color: var(--ink-2); }
.bw-past__text span::before { content: '· '; color: var(--muted); }
@media (max-width: 560px) {
  .bw-past__list a { grid-template-columns: 1fr auto; }
  .bw-past__date { grid-column: 1 / -1; }
  .bw-past__text span { display: block; } .bw-past__text span::before { content: none; }
}
.bw-past__note { margin-top: 28px; }
.bw-past-link { margin: 18px 0 0; font-weight: 600; }
.bw-past-link a { text-decoration: none; }
.bw-past-link a:hover { text-decoration: underline; }
