/* === NSRF front-end styles — transfers from HTML prototype (build step 0.3) === */
:root{
  --nsrf-navy:#071050; --nsrf-pink:#071050; --nsrf-green:#7AB648;
  --nsrf-lilac:#8B7CC3; --nsrf-maroon:#071050; --nsrf-maroon-mid:#1F3781; --nsrf-maroon-light:#8F93B0; --nsrf-amber:#F6AD55; --nsrf-teal:#2A8F7E;
  --nsrf-ink:#2D3748; --nsrf-grey:#4A5568; --nsrf-line:#E2E8F0;
  --nsrf-bg:#F7F8FA; --nsrf-card:#FFFFFF;
  --nsrf-radius:12px; --nsrf-shadow:0 1px 4px rgba(7,16,80,.06),0 4px 16px rgba(7,16,80,.05);
  --nsrf-font-display:'Outfit',sans-serif; --nsrf-font-body:'Plus Jakarta Sans',sans-serif;
}

/* --- Filter bar --- */
.nsrf-filter-bar{
  display:flex;flex-wrap:wrap;align-items:flex-end;gap:20px;
  background:var(--nsrf-card);border-radius:var(--nsrf-radius);
  box-shadow:var(--nsrf-shadow);padding:18px 22px;margin:0 0 28px;
}
.nsrf-filter-search{
  flex:1 1 220px;min-width:200px;font:500 15px/1.4 var(--nsrf-font-body);
  color:var(--nsrf-ink);background:#fff;border:1.5px solid var(--nsrf-line);
  border-radius:8px;padding:10px 14px;transition:border-color .15s,box-shadow .15s;
}
.nsrf-filter-search:focus{
  outline:none;border-color:var(--nsrf-navy);
  box-shadow:0 0 0 3px rgba(7,16,80,.12);
}
.nsrf-filter-select{display:flex;flex-direction:column;gap:6px;}
.nsrf-filter-label{
  font:700 12px/1 var(--nsrf-font-display);letter-spacing:.02em;
  color:var(--nsrf-ink);
}
.nsrf-filter-select select{
  font:500 15px/1.4 var(--nsrf-font-body);color:var(--nsrf-ink);
  background:#fff;border:1.5px solid var(--nsrf-line);border-radius:8px;
  padding:10px 36px 10px 14px;appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23071050' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;
  transition:border-color .15s;
}
.nsrf-filter-select select:focus{outline:none;border-color:var(--nsrf-navy);}
.nsrf-filter-count{
  margin-left:auto;font:600 13px/1.4 var(--nsrf-font-body);color:var(--nsrf-grey);
  white-space:nowrap;align-self:center;
}

/* --- Card grid --- */
.nsrf-card-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:20px;margin:0 0 32px;
}
.nsrf-card-grid > *{
  background:var(--nsrf-card);border-radius:var(--nsrf-radius);
  box-shadow:var(--nsrf-shadow);padding:22px 24px;
  border-top:4px solid var(--nsrf-navy);
  transition:transform .15s,box-shadow .15s;
}
.nsrf-card-grid > *:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 10px rgba(7,16,80,.10),0 10px 28px rgba(7,16,80,.08);
}

/* Per-cluster accent (cards carry a data-cluster attr or cluster class) */
.nsrf-card-grid > [data-cluster="registry"],   .nsrf-cluster-registry  {border-top-color:var(--nsrf-navy);}
.nsrf-card-grid > [data-cluster="bereavement"],.nsrf-cluster-bereavement{border-top-color:var(--nsrf-lilac);}
.nsrf-card-grid > [data-cluster="self-harm"],  .nsrf-cluster-self-harm {border-top-color:var(--nsrf-pink);}
.nsrf-card-grid > [data-cluster="clinical"],   .nsrf-cluster-clinical  {border-top-color:var(--nsrf-green);}
.nsrf-card-grid > [data-cluster="assessment"], .nsrf-cluster-assessment{border-top-color:var(--nsrf-amber);}
.nsrf-card-grid > [data-cluster="evaluation"], .nsrf-cluster-evaluation{border-top-color:var(--nsrf-teal);}

/* --- Empty state --- */
.nsrf-no-results{
  font:500 15px/1.6 var(--nsrf-font-body);color:var(--nsrf-grey);
  background:var(--nsrf-card);border:1.5px dashed var(--nsrf-line);
  border-radius:var(--nsrf-radius);padding:36px;text-align:center;
}

@media(max-width:640px){
  .nsrf-filter-bar{flex-direction:column;align-items:stretch;}
  .nsrf-filter-count{margin-left:0;}
}

/* === Round 2: fixes & polish === */

/* 1. SEARCH FIX — hidden attribute must always win over display:flex */
.nsrf-card[hidden],
.nsrf-no-results[hidden]{display:none!important;}

/* 2. FILL THE SPACE — widen the Divi row holding the archive, 3-up on desktop */
.et_pb_row:has(#nsrf-pub-filters),
.et_pb_row:has(#nsrf-pub-grid){
  max-width:1280px!important;width:94%!important;
}
.nsrf-card-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));}
@media(min-width:1100px){
  .nsrf-pub-grid{grid-template-columns:repeat(3,1fr);}
}

/* 3. PAGE HEADER — bolder, with brand accent bar */
h1.entry-title,
.et_pb_post_title h1{
  font-family:var(--nsrf-font-display)!important;
  font-weight:800!important;font-size:clamp(32px,4vw,44px)!important;
  color:var(--nsrf-maroon)!important;line-height:1.15!important;
  padding-bottom:14px;position:relative;
}
h1.entry-title::after,
.et_pb_post_title h1::after{
  content:"";position:absolute;left:0;bottom:0;
  width:56px;height:5px;border-radius:3px;
  background:linear-gradient(90deg,var(--nsrf-pink),var(--nsrf-maroon-light));
}

/* 4. BUTTONS as pills — high specificity to beat Divi's anchor styles */
#nsrf-pub-grid .nsrf-btn{
  display:inline-flex;align-items:center;gap:6px;
  font:700 13px/1 var(--nsrf-font-display);text-decoration:none!important;
  padding:9px 16px;border-radius:999px;
  transition:background .15s,color .15s,border-color .15s;
}
#nsrf-pub-grid .nsrf-btn-pdf{
  background:var(--nsrf-navy);color:#fff!important;border:1.5px solid var(--nsrf-navy);
}
#nsrf-pub-grid .nsrf-btn-pdf:hover{background:#16244A;border-color:#16244A;}
#nsrf-pub-grid .nsrf-btn-pdf::before{content:"⤓";font-size:14px;line-height:1;}
#nsrf-pub-grid .nsrf-btn-link{
  background:#fff;color:var(--nsrf-navy)!important;
  border:1.5px solid var(--nsrf-line);
}
#nsrf-pub-grid .nsrf-btn-link:hover{
  border-color:var(--nsrf-navy);background:rgba(7,16,80,.05);
}
/* external-link indicator */
#nsrf-pub-grid .nsrf-btn-link::after{
  content:"↗";font-size:13px;line-height:1;
  transition:transform .15s;
}
#nsrf-pub-grid .nsrf-btn-link:hover::after{transform:translate(1px,-1px);}

/* === Fix: 3rd column blow-out — cap item min-width, break long strings === */
.nsrf-card-grid > *{min-width:0;}
.nsrf-card-title,
.nsrf-card-citation{overflow-wrap:anywhere;}
#nsrf-pub-grid,
.et_pb_code_inner{max-width:100%;}

/* === Equal card heights + buttons pinned to bottom === */
#nsrf-pub-grid .nsrf-card{
  display:flex!important;flex-direction:column!important;
  height:100%;min-height:260px;
}
#nsrf-pub-grid .nsrf-card-actions{
  margin-top:auto!important;padding-top:14px;
}

/* === Pagination === */
.nsrf-card.nsrf-paged-out{display:none!important;}
.nsrf-pager{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
  gap:8px;margin:8px 0 40px;
}
.nsrf-page-btn{
  font:700 13px/1 var(--nsrf-font-display);color:var(--nsrf-navy);
  background:#fff;border:1.5px solid var(--nsrf-line);border-radius:999px;
  padding:9px 14px;cursor:pointer;transition:border-color .15s,background .15s;
}
.nsrf-page-btn:hover:not(:disabled){border-color:var(--nsrf-navy);background:rgba(7,16,80,.05);}
.nsrf-page-btn.is-current{background:var(--nsrf-navy);border-color:var(--nsrf-navy);color:#fff;cursor:default;}
.nsrf-page-btn:disabled{opacity:.4;cursor:default;}
.nsrf-page-gap{color:var(--nsrf-grey);padding:0 2px;}
.nsrf-perpage select{min-width:80px;}

/* Pagination must outrank the equal-heights !important */
#nsrf-pub-grid .nsrf-card.nsrf-paged-out{display:none!important;}

/* === Archive fixes === */
/* cards emit data-clusters (plural, space-separated) — match a token, not the whole attr */
.nsrf-card-grid > [data-clusters~="registry"]   {border-top-color:var(--nsrf-navy);}
.nsrf-card-grid > [data-clusters~="bereavement"]{border-top-color:var(--nsrf-lilac);}
.nsrf-card-grid > [data-clusters~="self-harm"]  {border-top-color:var(--nsrf-pink);}
.nsrf-card-grid > [data-clusters~="clinical"]   {border-top-color:var(--nsrf-green);}
.nsrf-card-grid > [data-clusters~="assessment"] {border-top-color:var(--nsrf-amber);}
.nsrf-card-grid > [data-clusters~="evaluation"] {border-top-color:var(--nsrf-teal);}

/* templated archive layout */
.nsrf-archive-container{max-width:1280px;width:94%;margin:0 auto;}
.nsrf-archive #left-area{width:100%!important;padding-right:0!important;float:none!important;}
.nsrf-archive-title{
  font-family:var(--nsrf-font-display)!important;font-weight:800!important;
  font-size:clamp(30px,4vw,42px)!important;color:var(--nsrf-navy)!important;
  line-height:1.15!important;padding-bottom:14px;position:relative;margin:30px 0 0;
}
.nsrf-archive-title::after{
  content:"";position:absolute;left:0;bottom:0;width:56px;height:5px;border-radius:3px;
  background:linear-gradient(90deg,var(--nsrf-pink),var(--nsrf-maroon-light));
}
.nsrf-archive-desc{font:400 16px/1.6 var(--nsrf-font-body);color:var(--nsrf-grey);margin:14px 0 0;max-width:70ch;}

/* === Blog cards (featured image on top) === */
.nsrf-blog-card{padding:0;overflow:hidden;}
/* Post artwork is a mix of square social graphics, portrait posters and
   landscape photography. A 16:9 cover crop beheaded most of it, so the
   thumbnail now shows the whole image (contain) inside a 4:3 well, with a
   blurred enlargement of the same image filling the letterbox margins so the
   card still reads as a solid block of colour rather than a grey bar. */
.nsrf-blog-card.has-thumb .nsrf-blog-thumb{
  position:relative;overflow:hidden;
  display:block;width:100%;aspect-ratio:4/3;
  background-size:cover;background-position:center;
  background-color:var(--nsrf-bg,#F7F8FA);
  border-radius:var(--nsrf-radius) var(--nsrf-radius) 0 0;
}
.nsrf-blog-card.has-thumb .nsrf-blog-thumb::before{
  content:"";position:absolute;inset:-12%;
  background-image:inherit;background-size:cover;background-position:center;
  filter:blur(26px) saturate(.55) brightness(1.12);
}
.nsrf-blog-card.has-thumb .nsrf-blog-thumb::after{
  content:"";position:absolute;inset:0;
  background-image:inherit;background-size:contain;
  background-repeat:no-repeat;background-position:center;
}
@media (prefers-reduced-transparency:reduce){
  .nsrf-blog-card.has-thumb .nsrf-blog-thumb::before{filter:none;opacity:.18;}
}
.nsrf-blog-body{display:flex;flex-direction:column;gap:10px;padding:20px 22px;flex:1;}
.nsrf-blog-card .nsrf-card-title a{color:var(--nsrf-maroon);text-decoration:none;}
.nsrf-blog-card .nsrf-card-title a:hover{color:var(--nsrf-pink);}
/* .nsrf-badge-cat — restyled in the blog card block below */
.nsrf-blog-card .nsrf-card-actions{margin-top:auto;padding-top:12px;}

/* === Breadcrumbs === */
.nsrf-breadcrumbs{max-width:1200px;margin:0 auto;padding:14px 24px 0;font-family:var(--nsrf-font-body,'Plus Jakarta Sans',sans-serif);font-size:14px;}
.nsrf-breadcrumbs ol{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:0;margin:0;padding:0;}
.nsrf-breadcrumbs li{display:flex;align-items:center;color:var(--nsrf-navy,#071050);}
.nsrf-breadcrumbs li:not(:last-child)::after{content:"›";margin:0 10px;color:var(--nsrf-maroon-light,#8F93B0);font-weight:600;}
.nsrf-breadcrumbs a{color:var(--nsrf-navy,#071050);text-decoration:none;opacity:.75;transition:color .15s,opacity .15s;}
.nsrf-breadcrumbs a:hover{color:var(--nsrf-pink,#071050);opacity:1;}
.nsrf-breadcrumbs li[aria-current="page"] span{font-weight:600;opacity:1;}

/* ---- Contact Form 7 (forms added 15 Aug 2026) ---- */
.wpcf7 form{font:400 15px/1.6 var(--nsrf-font-body);color:var(--nsrf-ink);}
.wpcf7 form p{margin:0 0 18px;}
.wpcf7 form label{display:block;font:600 14px/1.4 var(--nsrf-font-body);color:var(--nsrf-navy);}
.wpcf7 .wpcf7-form-control-wrap{display:block;margin-top:6px;}
.wpcf7 input[type="text"],.wpcf7 input[type="email"],.wpcf7 input[type="tel"],.wpcf7 textarea{width:100%;max-width:640px;padding:10px 14px;border:1px solid var(--nsrf-line);border-radius:8px;background:var(--nsrf-card);font:400 15px/1.5 var(--nsrf-font-body);color:var(--nsrf-ink);box-sizing:border-box;transition:border-color .15s,box-shadow .15s;}
.wpcf7 input:focus,.wpcf7 textarea:focus{border-color:var(--nsrf-maroon-light);box-shadow:0 0 0 3px rgba(160,48,110,.28);outline:none;}
.wpcf7 textarea{min-height:120px;}
.wpcf7 input[type="checkbox"]{accent-color:var(--nsrf-pink);width:16px;height:16px;margin-top:3px;flex:0 0 auto;}
.wpcf7 .wpcf7-list-item{margin:0;}
.wpcf7 .wpcf7-list-item label{display:flex;gap:10px;align-items:flex-start;font:400 14px/1.5 var(--nsrf-font-body);color:var(--nsrf-grey);}
.wpcf7 .wpcf7-submit{display:inline-block;padding:13px 28px;border:0;border-radius:999px;background:var(--nsrf-pink);color:#fff;font:600 15px/1 var(--nsrf-font-display);cursor:pointer;transition:background .15s;}
.wpcf7 .wpcf7-submit:hover{background:var(--nsrf-navy);}
.wpcf7 .wpcf7-not-valid-tip{color:#C53030;font-size:13px;margin-top:4px;}
.wpcf7 .wpcf7-response-output{margin:18px 0 0;padding:12px 16px;border-radius:8px;border:1px solid var(--nsrf-line);font:500 14px/1.5 var(--nsrf-font-body);}
.wpcf7 .wpcf7-spinner{margin:0 0 0 12px;}

/* === Blog cards — meta row, badge and alignment (16 Aug 2026) ============== */

/* The card is a column so "Read more" pins to the bottom however long the copy is. */
.nsrf-blog-card{display:flex;flex-direction:column;}

/* Posts with no featured image get a soft brand panel, so titles in a row line up. */
.nsrf-blog-card:not(.has-thumb)::before{
  content:"";display:block;width:100%;aspect-ratio:16/9;
  background:linear-gradient(135deg,rgba(7,16,80,.07),rgba(143,147,176,.16));
  border-radius:var(--nsrf-radius) var(--nsrf-radius) 0 0;
}

/* Category badge and date were rendering hard against each other. */
.nsrf-blog-card .nsrf-card-meta{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:0;
}
.nsrf-badge-cat{
  display:inline-block;padding:4px 10px;border-radius:999px;
  background:var(--nsrf-navy);color:#fff;
  font:700 11px/1.4 var(--nsrf-font-body);
  letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
}
.nsrf-blog-card .nsrf-card-year{
  font:500 13px/1.4 var(--nsrf-font-body);color:var(--nsrf-grey);white-space:nowrap;
}

/* Let the body's flex gap own the vertical rhythm instead of stray margins. */
.nsrf-blog-card .nsrf-card-title{margin:0;line-height:1.3;}
.nsrf-blog-card .nsrf-card-citation{margin:0;color:var(--nsrf-grey);}

/* "Read more" as a quiet directional link rather than a bare anchor. */
.nsrf-blog-card .nsrf-card-actions{margin-top:auto;padding-top:14px;}
.nsrf-blog-card .nsrf-card-actions .nsrf-btn{
  display:inline-flex;align-items:center;gap:6px;
  /* Unset the global .nsrf-btn pill (line ~1268): it painted a pink background
     behind pink text, so the label was invisible until hover turned it navy. */
  background:none;padding:0;border:0;border-radius:0;
  /* #B62C78 rather than var(--nsrf-pink): 15px bold is not WCAG "large" text,
     and --nsrf-pink only reaches 4.05:1 on white. This is 5.8:1. */
  font:600 15px/1 var(--nsrf-font-body);color:#B62C78;text-decoration:none;
}
.nsrf-blog-card .nsrf-card-actions .nsrf-btn:hover{background:none;}
.nsrf-blog-card .nsrf-card-actions .nsrf-btn:focus-visible{
  outline:3px solid var(--nsrf-maroon-light);outline-offset:4px;border-radius:4px;
}
.nsrf-blog-card .nsrf-card-actions .nsrf-btn::after{content:"\2192";transition:transform .15s;}
.nsrf-blog-card .nsrf-card-actions .nsrf-btn:hover{color:var(--nsrf-navy);}
.nsrf-blog-card .nsrf-card-actions .nsrf-btn:hover::after{transform:translateX(3px);}

/* Slightly tighter image corners against the card radius. */
.nsrf-blog-card.has-thumb .nsrf-blog-thumb{border-bottom:1px solid var(--nsrf-line);}

/* === Single post header meta ============================================== */
.single .et_pb_title_meta_container{
  margin:8px 0 0;
  font:500 14px/1.5 var(--nsrf-font-body);color:var(--nsrf-grey);
}
.single .et_pb_title_meta_container a{color:var(--nsrf-grey);text-decoration:none;}
.single .et_pb_title_meta_container a:hover{color:var(--nsrf-pink);}

/* === Custom 404 ========================================================== */
.nsrf-404{
  max-width:1000px;margin:0 auto;padding:56px 24px 72px;
  font-family:var(--nsrf-font-body);color:var(--nsrf-ink);
}
.nsrf-404-head{max-width:70ch;}
.nsrf-404-eyebrow{
  margin:0 0 8px;font:700 12px/1.4 var(--nsrf-font-body);
  letter-spacing:.1em;text-transform:uppercase;color:var(--nsrf-pink);
}
.nsrf-404-title{
  margin:0 0 14px;font-family:var(--nsrf-font-display);font-weight:700;
  font-size:clamp(30px,5vw,46px);line-height:1.15;color:var(--nsrf-navy);
}
.nsrf-404-lede{margin:0;font-size:18px;line-height:1.6;color:var(--nsrf-grey);}
.nsrf-404-h2{
  margin:0 0 14px;font-family:var(--nsrf-font-display);font-weight:700;
  font-size:20px;line-height:1.3;color:var(--nsrf-navy);
}

/* Supports callout — deliberately the first thing after the heading. */
.nsrf-404-support{
  margin:32px 0 0;padding:22px 24px;
  background:var(--nsrf-bg);border:1px solid var(--nsrf-line);
  border-left:5px solid var(--nsrf-amber);border-radius:var(--nsrf-radius);
}
.nsrf-404-support-title{
  margin:0 0 8px;font-family:var(--nsrf-font-display);font-weight:700;
  font-size:19px;line-height:1.3;color:var(--nsrf-navy);
}
.nsrf-404-support p{margin:0 0 16px;font-size:16px;line-height:1.6;color:var(--nsrf-ink);max-width:65ch;}

/* Buttons */
.nsrf-404-btn{
  display:inline-block;padding:12px 24px;border-radius:999px;
  background:var(--nsrf-pink);color:#fff!important;text-decoration:none;
  font:600 15px/1.2 var(--nsrf-font-display);
  transition:background .15s,transform .15s;
}
.nsrf-404-btn:hover{background:var(--nsrf-navy);transform:translateY(-1px);}
.nsrf-404-btn-ghost{
  background:transparent;color:var(--nsrf-navy)!important;
  border:2px solid var(--nsrf-navy);padding:10px 22px;
}
.nsrf-404-btn-ghost:hover{background:var(--nsrf-navy);color:#fff!important;}

/* Search */
.nsrf-404-search-wrap{margin:40px 0 0;}
.nsrf-404-search{display:flex;flex-wrap:wrap;gap:10px;max-width:640px;}
.nsrf-404-search input[type="search"]{
  flex:1 1 260px;min-width:0;padding:12px 16px;
  border:1px solid var(--nsrf-line);border-radius:8px;background:var(--nsrf-card);
  font:400 16px/1.4 var(--nsrf-font-body);color:var(--nsrf-ink);
  transition:border-color .15s,box-shadow .15s;
}
.nsrf-404-search input[type="search"]:focus{
  border-color:var(--nsrf-maroon-light);box-shadow:0 0 0 3px rgba(160,48,110,.28);outline:none;
}
.nsrf-404-btn-search{border:0;cursor:pointer;font-family:var(--nsrf-font-display);}
.nsrf-404-hint{margin:10px 0 0;font-size:14px;line-height:1.5;color:var(--nsrf-grey);}

/* Suggestions derived from the requested address */
.nsrf-404-suggest{margin:36px 0 0;}
.nsrf-404-suggest-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--nsrf-line);max-width:760px;}
.nsrf-404-suggest-list li{
  display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
  padding:12px 0;border-bottom:1px solid var(--nsrf-line);
}
.nsrf-404-suggest-list a{
  font:600 16px/1.4 var(--nsrf-font-body);color:var(--nsrf-navy);text-decoration:none;
}
.nsrf-404-suggest-list a:hover{color:var(--nsrf-pink);text-decoration:underline;}
.nsrf-404-suggest-type{
  font:600 11px/1.4 var(--nsrf-font-body);letter-spacing:.06em;text-transform:uppercase;
  color:var(--nsrf-grey);background:var(--nsrf-bg);border:1px solid var(--nsrf-line);
  padding:2px 8px;border-radius:999px;white-space:nowrap;
}

/* Onward routes */
.nsrf-404-routes{margin:40px 0 0;}
.nsrf-404-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;
}
.nsrf-404-card{
  display:flex;flex-direction:column;gap:6px;
  padding:18px 20px;text-decoration:none;
  background:var(--nsrf-card);border:1px solid var(--nsrf-line);
  border-top:4px solid var(--nsrf-navy);border-radius:var(--nsrf-radius);
  box-shadow:var(--nsrf-shadow);
  transition:transform .15s,box-shadow .15s,border-top-color .15s;
}
.nsrf-404-card:hover{
  transform:translateY(-2px);border-top-color:var(--nsrf-pink);
  box-shadow:0 4px 10px rgba(7,16,80,.10),0 10px 28px rgba(7,16,80,.08);
}
.nsrf-404-card-title{
  font:700 17px/1.3 var(--nsrf-font-display);color:var(--nsrf-navy);
}
.nsrf-404-card:hover .nsrf-404-card-title{color:var(--nsrf-pink);}
.nsrf-404-card-desc{font:400 14px/1.5 var(--nsrf-font-body);color:var(--nsrf-grey);}

/* Footer actions */
.nsrf-404-foot{
  display:flex;align-items:center;flex-wrap:wrap;gap:14px 20px;
  margin:40px 0 0;padding-top:24px;border-top:1px solid var(--nsrf-line);
}
.nsrf-404-foot-note{font-size:14px;line-height:1.5;color:var(--nsrf-grey);}
.nsrf-404-foot-note a{color:var(--nsrf-navy);text-decoration:underline;}
.nsrf-404-foot-note a:hover{color:var(--nsrf-pink);}

@media (max-width:600px){
  .nsrf-404{padding:36px 20px 56px;}
  .nsrf-404-foot .nsrf-404-btn{width:100%;text-align:center;}
}

/* =====================================================================
   NSRF — added 17 Aug 2026. Four independently removable blocks:
     A. Search results page          (.nsrf-search*)
     B. Registry page normalisation  (.page-id-18)
     C. CTA list -> button cards     (.nsrf-cta-list)
     D. Request Data Access page     (.page-id-33)
   Backup of the previous file: /tmp/nsrf/nsrf-frontend.css.bak-20260817
   ===================================================================== */

/* ---------------------------------------------------------------------
   A. SEARCH RESULTS PAGE — pairs with nsrf-child-theme/search.php
   --------------------------------------------------------------------- */

.nsrf-search {
	background: var(--nsrf-bg);
	padding: 3rem 1.25rem 4.5rem;
}

.nsrf-search-inner {
	max-width: 1080px;
	margin: 0 auto;
}

.nsrf-search-head {
	margin-bottom: 2rem;
}

.nsrf-search-title {
	font-family: var(--nsrf-font-display);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--nsrf-navy);
	margin: 0 0 .5rem;
}

.nsrf-search-count {
	font-family: var(--nsrf-font-body);
	font-size: 1rem;
	color: var(--nsrf-grey);
	margin: 0 0 1.5rem;
}

.nsrf-search-form {
	display: flex;
	gap: .5rem;
	max-width: 620px;
}

.nsrf-search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: .8rem 1rem;
	font-family: var(--nsrf-font-body);
	font-size: 1rem;
	color: var(--nsrf-ink);
	background: var(--nsrf-card);
	border: 1px solid var(--nsrf-line);
	border-radius: var(--nsrf-radius);
}

.nsrf-search-form input[type="search"]:focus-visible,
.nsrf-search a:focus-visible,
.nsrf-search button:focus-visible {
	outline: 3px solid var(--nsrf-maroon-light);
	outline-offset: 2px;
}

.nsrf-search .nsrf-btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .75rem 1.4rem;
	font-family: var(--nsrf-font-body);
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--nsrf-radius);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.nsrf-search .nsrf-btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--nsrf-shadow);
}

.nsrf-search .nsrf-btn-primary {
	background: var(--nsrf-navy);
	color: #fff;
}

.nsrf-search .nsrf-btn-ghost {
	background: transparent;
	color: var(--nsrf-navy);
	border-color: var(--nsrf-line);
}

.nsrf-search .nsrf-btn-amber {
	background: var(--nsrf-amber);
	color: #3a2600;
}

.nsrf-search-support {
	background: var(--nsrf-card);
	border: 1px solid var(--nsrf-amber);
	border-left: 5px solid var(--nsrf-amber);
	border-radius: var(--nsrf-radius);
	padding: 1.5rem 1.75rem;
	margin-bottom: 2.5rem;
	box-shadow: var(--nsrf-shadow);
}

.nsrf-search-support h2 {
	font-family: var(--nsrf-font-display);
	font-size: 1.25rem;
	color: var(--nsrf-navy);
	margin: 0 0 .35rem;
}

.nsrf-search-support p {
	font-size: .9375rem;
	color: var(--nsrf-grey);
	margin: 0 0 1rem;
}

.nsrf-search-jump {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin-bottom: 2.5rem;
}

.nsrf-search-jump-label {
	font-family: var(--nsrf-font-body);
	font-size: .8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--nsrf-grey);
	margin-right: .25rem;
}

.nsrf-chip {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .45rem .9rem;
	font-family: var(--nsrf-font-body);
	font-size: .875rem;
	font-weight: 600;
	color: var(--nsrf-navy);
	text-decoration: none;
	background: var(--nsrf-card);
	border: 1px solid var(--nsrf-line);
	border-left: 4px solid var(--chip-colour, var(--nsrf-navy));
	border-radius: 999px;
	transition: box-shadow .15s ease, transform .15s ease;
}

.nsrf-chip:hover,
.nsrf-chip.is-current {
	box-shadow: var(--nsrf-shadow);
	transform: translateY(-1px);
}

.nsrf-chip.is-current {
	background: var(--nsrf-navy);
	color: #fff;
}

.nsrf-chip-count {
	font-size: .75rem;
	font-weight: 700;
	padding: .1rem .45rem;
	border-radius: 999px;
	background: var(--nsrf-bg);
	color: var(--nsrf-grey);
}

.nsrf-chip.is-current .nsrf-chip-count {
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

.nsrf-search-group {
	background: var(--nsrf-card);
	border: 1px solid var(--nsrf-line);
	border-top: 4px solid var(--group-colour, var(--nsrf-navy));
	border-radius: var(--nsrf-radius);
	padding: 1.75rem 1.75rem 1.5rem;
	margin-bottom: 1.75rem;
	box-shadow: var(--nsrf-shadow);
	scroll-margin-top: 100px;
}

.nsrf-search-group-head {
	border-bottom: 1px solid var(--nsrf-line);
	padding-bottom: 1rem;
	margin-bottom: 1rem;
}

.nsrf-search-group-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .75rem;
	font-family: var(--nsrf-font-display);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--nsrf-navy);
	margin: 0 0 .25rem;
}

.nsrf-search-group-num {
	font-family: var(--nsrf-font-body);
	font-size: .8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--group-colour, var(--nsrf-grey));
}

.nsrf-search-group-blurb {
	font-size: .875rem;
	color: var(--nsrf-grey);
	margin: 0;
}

.nsrf-search-results {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nsrf-search-result {
	padding: 1rem 0;
	border-bottom: 1px solid var(--nsrf-line);
}

.nsrf-search-result:last-child {
	border-bottom: 0;
}

.nsrf-search-result-title {
	font-family: var(--nsrf-font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 .25rem;
}

.nsrf-search-result-title a {
	color: var(--nsrf-navy);
	text-decoration: none;
}

.nsrf-search-result-title a:hover {
	text-decoration: underline;
}

.nsrf-search-result-meta {
	font-family: var(--nsrf-font-body);
	font-size: .8125rem;
	font-weight: 600;
	color: var(--group-colour, var(--nsrf-grey));
	margin: 0 0 .3rem;
}

.nsrf-search-result-excerpt {
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--nsrf-grey);
	margin: 0;
}

.nsrf-search-group-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 1.25rem;
}

.nsrf-search-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin-top: 1.5rem;
}

.nsrf-search-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: .5rem .75rem;
	font-family: var(--nsrf-font-body);
	font-size: .875rem;
	font-weight: 600;
	color: var(--nsrf-navy);
	text-decoration: none;
	background: var(--nsrf-card);
	border: 1px solid var(--nsrf-line);
	border-radius: 8px;
}

.nsrf-search-pagination .page-numbers.current {
	background: var(--nsrf-navy);
	border-color: var(--nsrf-navy);
	color: #fff;
}

.nsrf-search-empty {
	background: var(--nsrf-card);
	border: 1px solid var(--nsrf-line);
	border-radius: var(--nsrf-radius);
	padding: 2rem;
	margin-bottom: 2.5rem;
}

.nsrf-search-empty h2 {
	font-family: var(--nsrf-font-display);
	font-size: 1.375rem;
	color: var(--nsrf-navy);
	margin: 0 0 .5rem;
}

.nsrf-search-empty p {
	font-size: .9375rem;
	color: var(--nsrf-grey);
	margin: 0;
}

.nsrf-search-routes h2 {
	font-family: var(--nsrf-font-display);
	font-size: 1.375rem;
	color: var(--nsrf-navy);
	margin: 2rem 0 1rem;
}

.nsrf-search-route-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
}

.nsrf-search-route {
	display: block;
	padding: 1.15rem 1.25rem;
	text-decoration: none;
	background: var(--nsrf-card);
	border: 1px solid var(--nsrf-line);
	border-radius: var(--nsrf-radius);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.nsrf-search-route:hover {
	transform: translateY(-2px);
	box-shadow: var(--nsrf-shadow);
	border-color: var(--nsrf-maroon-light);
}

.nsrf-search-route-title {
	display: block;
	font-family: var(--nsrf-font-display);
	font-size: 1rem;
	font-weight: 600;
	color: var(--nsrf-navy);
	margin-bottom: .2rem;
}

.nsrf-search-route-blurb {
	display: block;
	font-size: .875rem;
	line-height: 1.5;
	color: var(--nsrf-grey);
}

@media (max-width: 640px) {
	.nsrf-search { padding: 2rem 1rem 3rem; }
	.nsrf-search-group { padding: 1.25rem; }
	.nsrf-search-form { flex-direction: column; }
}

/* ---------------------------------------------------------------------
   B. REGISTRY PAGE — typographic normalisation (page 18)
   Families were already right (Outfit display, Plus Jakarta Sans body).
   The problem was three body sizes on one page (18/16/14px, the 14px
   inherited from Divi's global body size) and one centred H2.
   --------------------------------------------------------------------- */

.page-id-18 .et_pb_text p,
.page-id-18 .et_pb_text li {
	font-family: var(--nsrf-font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--nsrf-grey);
}

/* Section 0 is the dark hero since Option A went on (15 Sep 2026). Keep the
   size bump, but let the module's own light colour through instead of forcing
   ink onto a dark gradient — it was measuring about 1.5:1. */
.page-id-18 .et_pb_section_0 .et_pb_text p {
	font-size: 1.125rem;
	color: inherit;
}

.page-id-18 .et_pb_number_counter .percent-value,
.page-id-18 .et_pb_text .nsrf-stat-value {
	font-family: var(--nsrf-font-display);
	font-weight: 800;
}

/* Divi 5 Heading modules carry their own alignment and size at
   .et_pb_heading_N .et_pb_module_header (0,2,1), so match with three classes. */
.page-id-18 .et_pb_heading .et_pb_module_header {
	text-align: left;
	font-family: var(--nsrf-font-display);
	font-weight: 700;
	color: var(--nsrf-navy);
}

/* Section headings. Indexes shifted down by one when the duplicated page
   title was removed from the content, 16 September 2026. */
.page-id-18 .et_pb_heading_1 .et_pb_module_header {
	font-size: 1.625rem;
}

/* "Is my data in the Registry?" is a genuine sub-heading — keep it a step
   down, but lift it off the 18px body scale so the hierarchy is legible. */
.page-id-18 .et_pb_heading_2 .et_pb_module_header {
	font-size: 1.25rem;
}

.page-id-18 .et_pb_section {
	padding-top: 60px;
	padding-bottom: 60px;
}

.page-id-18 .et_pb_section + .et_pb_section {
	padding-top: 0;
}

/* ---------------------------------------------------------------------
   C. CTA LIST — plain <ul> of links becomes button cards.
   Works via .nsrf-cta-list or, with no content edit, the page-18 fallback.
   --------------------------------------------------------------------- */

.nsrf-cta-list,
.page-id-18 .et_pb_code_inner ul {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0 0;
	padding: 0;
}

.nsrf-cta-list li,
.page-id-18 .et_pb_code_inner ul li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nsrf-cta-list li::before,
.page-id-18 .et_pb_code_inner ul li::before {
	content: none;
}

.nsrf-cta-list li > a,
.page-id-18 .et_pb_code_inner ul li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	height: 100%;
	padding: 1.05rem 1.25rem;
	font-family: var(--nsrf-font-body);
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--nsrf-navy);
	text-decoration: none;
	background: var(--nsrf-card);
	border: 1px solid var(--nsrf-line);
	border-left: 4px solid var(--nsrf-pink);
	border-radius: var(--nsrf-radius);
	box-shadow: var(--nsrf-shadow);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.nsrf-cta-list li > a::after,
.page-id-18 .et_pb_code_inner ul li > a::after {
	content: "\2192";
	font-size: 1.05rem;
	color: var(--nsrf-pink);
	transition: transform .15s ease;
}

.nsrf-cta-list li > a:hover,
.page-id-18 .et_pb_code_inner ul li > a:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(7, 16, 80, .10), 0 10px 28px rgba(7, 16, 80, .10);
	border-color: var(--nsrf-pink);
}

.nsrf-cta-list li > a:hover::after,
.page-id-18 .et_pb_code_inner ul li > a:hover::after {
	transform: translateX(3px);
}

.nsrf-cta-list li > a:focus-visible,
.page-id-18 .et_pb_code_inner ul li > a:focus-visible {
	outline: 3px solid var(--nsrf-maroon-light);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   D. REQUEST DATA ACCESS (page 33) — WITHDRAWN 17 Aug 2026.
   Styling this page from CSS proved unsafe. Divi renders it through the
   classic template, and the container it uses (#left-area vs
   article > section > row > column) changes depending on the page-layout
   meta, so rules that worked in one render path left the column at width 0
   in another and the page came up blank for logged-in users. Broadening the
   selectors to .et_pb_column then rearranged the footer, which lives inside
   #main-content on this template.
   The page has been returned to its original state (sidebar visible,
   duplicate heading present). The right fix is to rebuild it as a proper
   Divi layout in the builder, matching the other pages, rather than to
   override the classic template from a stylesheet.
   See claude/nsrf-page-fixes-17aug.md.
   --------------------------------------------------------------------- */

/* ---------------------------------------------------------------------
   D2. REQUEST DATA ACCESS — form card only (page 33)
   Layout rules for this page were withdrawn (see the note above). These
   touch nothing but the Contact Form 7 wrapper and its fields, so they are
   safe on either of Divi's render paths for this page.
   --------------------------------------------------------------------- */

.page-id-33 .wpcf7 {
	position: relative;
	max-width: 720px;
	margin-top: 2rem;
	padding: 2rem 2rem 1.75rem;
	background: linear-gradient(180deg, #fff 0%, #fdfdff 55%, #f6f4fb 100%);
	border: 1px solid var(--nsrf-line);
	border-radius: 16px;
	box-shadow:
		0 1px 3px rgba(7, 16, 80, .06),
		0 8px 24px rgba(7, 16, 80, .10),
		0 24px 48px rgba(7, 16, 80, .07);
}

.page-id-33 .wpcf7::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	border-radius: 16px 16px 0 0;
	background: linear-gradient(90deg, var(--nsrf-navy), var(--nsrf-maroon-light) 55%, var(--nsrf-pink));
}

.page-id-33 .wpcf7 label {
	display: block;
	font-family: var(--nsrf-font-body);
	font-size: .9375rem;
	font-weight: 600;
	color: var(--nsrf-navy);
	margin-bottom: .35rem;
}

.page-id-33 .wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 1.15rem;
}

.page-id-33 .wpcf7 input[type="text"],
.page-id-33 .wpcf7 input[type="email"],
.page-id-33 .wpcf7 input[type="tel"],
.page-id-33 .wpcf7 select,
.page-id-33 .wpcf7 textarea {
	width: 100%;
	padding: .8rem 1rem;
	font-family: var(--nsrf-font-body);
	font-size: 1rem;
	color: var(--nsrf-ink);
	background: #fff;
	border: 1px solid var(--nsrf-line);
	border-radius: 10px;
	box-shadow: inset 0 1px 2px rgba(7, 16, 80, .04);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.page-id-33 .wpcf7 input:focus,
.page-id-33 .wpcf7 select:focus,
.page-id-33 .wpcf7 textarea:focus {
	border-color: var(--nsrf-maroon-light);
	box-shadow: 0 0 0 3px rgba(160, 48, 110, .28);
	outline: none;
}

.page-id-33 .wpcf7 textarea {
	min-height: 150px;
	resize: vertical;
}

.page-id-33 .wpcf7 input[type="submit"] {
	display: inline-flex;
	padding: .9rem 1.75rem;
	font-family: var(--nsrf-font-body);
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, var(--nsrf-navy), #33306e 60%, #4a3b86);
	border: 0;
	border-radius: var(--nsrf-radius);
	box-shadow: 0 4px 14px rgba(7, 16, 80, .25);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}

.page-id-33 .wpcf7 input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(7, 16, 80, .32);
}

.page-id-33 .wpcf7 input[type="submit"]:focus-visible {
	outline: 3px solid var(--nsrf-maroon-light);
	outline-offset: 2px;
}

.page-id-33 .wpcf7-not-valid-tip {
	font-size: .8125rem;
	font-weight: 600;
	color: #b3261e;
}

@media (max-width: 640px) {
	.page-id-33 .wpcf7 { padding: 1.4rem 1.15rem; }
}

/* ---------------------------------------------------------------------
   E. SUPPORTS PAGE (page 13) — cards level, buttons on one baseline
   The four columns were already equal height; what was uneven was the button
   inside each card, because Divi nests it in the blurb description and the
   descriptions wrap to different line counts. Make the blurb a flex column and
   let the description grow, so every button sits on the same line.
   --------------------------------------------------------------------- */

.page-id-13 .et_pb_blurb,
.page-id-13 .et_pb_blurb_content,
.page-id-13 .et_pb_blurb_container,
.page-id-13 .et_pb_blurb_description {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	max-width: none;
}

.page-id-13 .et_pb_blurb_description > p {
	flex: 1 1 auto;
	margin-bottom: 1.15rem;
}

.page-id-13 .et_pb_blurb .et_pb_button_module_wrapper {
	margin-top: auto;
	margin-bottom: 0;
}

.page-id-13 .et_pb_blurb .et_pb_module_header {
	min-height: 1.6em;
}

/* ---------------------------------------------------------------------
   F. CONTACT PAGE (page 12)
   Tighten the band under the breadcrumb, and give the address / email / phone
   blurbs a proper hierarchy — the labels were doing the work and the values
   were the same size and weight as body copy.
   --------------------------------------------------------------------- */

.page-id-12 .et_pb_section:first-of-type {
	padding-top: 1.5rem;
}

.page-id-12 .et_pb_blurb {
	padding-bottom: 1.15rem;
	margin-bottom: 1.15rem;
	border-bottom: 1px solid var(--nsrf-line);
}

.page-id-12 .et_pb_blurb:last-of-type {
	border-bottom: 0;
	margin-bottom: 0;
}

/* Label: small, spaced, muted — a label, not a heading competing with the H1. */
.page-id-12 .et_pb_blurb .et_pb_module_header {
	font-family: var(--nsrf-font-body);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--nsrf-grey);
	margin: 0 0 .3rem;
}

/* Value: the thing people came for — bigger, navy, comfortable line height. */
.page-id-12 .et_pb_blurb .et_pb_blurb_description,
.page-id-12 .et_pb_blurb .et_pb_blurb_description p {
	font-family: var(--nsrf-font-body);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.55;
	color: var(--nsrf-navy);
	margin: 0;
}

.page-id-12 .et_pb_blurb .et_pb_blurb_description a {
	color: var(--nsrf-navy);
	text-decoration: underline;
	text-decoration-color: var(--nsrf-maroon-light);
	text-underline-offset: 3px;
}

.page-id-12 .et_pb_blurb .et_pb_blurb_description a:hover {
	color: var(--nsrf-maroon-mid);
}

/* ---------------------------------------------------------------------
   G. TEXT-ONLY PAGES — page title and measure
   Pages 2621 Our Board, 58 Cookie Policy, 57 Privacy Policy,
   101 Accessibility Statement, 33 Request Data Access.
   These render as a single Divi text module, so their H1 inherited the
   in-content heading style (30px, purple) rather than the page-title style
   used elsewhere, and body copy ran the full 1200px row width.
   --------------------------------------------------------------------- */

.page-id-2621 .et_pb_text h1,
.page-id-58 .et_pb_text h1,
.page-id-57 .et_pb_text h1,
.page-id-101 .et_pb_text h1,
.page-id-33 .et_pb_text h1 {
	font-family: var(--nsrf-font-display);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--nsrf-navy);
	margin: 0 0 1.1rem;
}

/* A readable measure. 1200px of 16px prose is roughly 150 characters a line;
   820px lands near 75, which is the usual comfortable range. */
.page-id-2621 .et_pb_text,
.page-id-58 .et_pb_text,
.page-id-57 .et_pb_text,
.page-id-101 .et_pb_text {
	max-width: 820px;
}

/* Section headings below the title, and the space around them. */
.page-id-2621 .et_pb_text h2,
.page-id-58 .et_pb_text h2,
.page-id-57 .et_pb_text h2,
.page-id-101 .et_pb_text h2 {
	font-family: var(--nsrf-font-display);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--nsrf-navy);
	margin: 2rem 0 .6rem;
}

.page-id-2621 .et_pb_text h1 + p,
.page-id-58 .et_pb_text h1 + p,
.page-id-57 .et_pb_text h1 + p,
.page-id-101 .et_pb_text h1 + p {
	font-size: 1.0625rem;
	color: var(--nsrf-grey);
}

/* Trim the band under the breadcrumb on these pages. */
.page-id-2621 .et_pb_section:first-of-type,
.page-id-58 .et_pb_section:first-of-type,
.page-id-57 .et_pb_section:first-of-type,
.page-id-101 .et_pb_section:first-of-type {
	padding-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	.nsrf-search *,
	.nsrf-cta-list *,
	.page-id-18 *,
	.page-id-33 * {
		transition: none !important;
	}
}

/* ======================================================================== */
/* 18 Aug 2026 — content drop: team cards and missing-image handling        */
/* ======================================================================== */

/* Team grid cards: placeholder avatar when no headshot has been supplied.   */
/* A card with a photo renders .et_pb_main_blurb_image before the container, */
/* so :first-child here only ever matches a card with no photo. Remove this  */
/* block once every team member has a headshot.                             */
.team-card .et_pb_blurb_content > .et_pb_blurb_container:first-child::before{
  content:"";display:block;width:84px;height:84px;margin:0 auto 14px;
  border-radius:50%;background-color:#EDEAF6;
  background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='%238F93B0'%3E%3Ccircle cx='24' cy='18' r='8'/%3E%3Cpath d='M24 29c-8.8 0-16 5.4-16 12v3h32v-3c0-6.6-7.2-12-16-12z'/%3E%3C/g%3E%3C/svg%3E");
  background-size:64px 64px;background-position:center 4px;background-repeat:no-repeat;
}

/* Singles with no featured image: drop the reserved image column and let    */
/* the text run full width. The nsrf-no-featured body class comes from       */
/* mu-plugins/nsrf-featured-image-fallback.php. The selectors match on       */
/* structure (an empty .et_pb_title_container) rather than on Divi's         */
/* auto-numbered column classes, which shift whenever the layout changes.    */
body.nsrf-no-featured.single-team_member
  .et_pb_row > .et_pb_column:has(> .et_pb_post_title > .et_pb_title_container:empty){
  display:none;
}
body.nsrf-no-featured.single-team_member
  .et_pb_row:has(> .et_pb_column > .et_pb_post_title > .et_pb_title_container:empty)
  > .et_pb_column:last-child{
  flex-basis:100%;max-width:100%;width:100%;
}

/* Any single layout: collapse an image container that resolved to nothing. */
body.nsrf-no-featured .et_pb_title_featured_container:empty,
body.nsrf-no-featured .et_pb_image_wrap:empty{display:none;}

/* ======================================================================== */
/* 19 Aug 2026 — NSRF content drop: history, registry prose, partner grid   */
/* ======================================================================== */

/* Shared prose measure. 16px copy at the full 1200px row runs ~150 characters
   a line; 820px lands near 75, matching the treatment used on the policy pages. */
.nsrf-history,.nsrf-prose{max-width:820px;}
.nsrf-history p,.nsrf-prose p{font:400 16px/1.7 var(--nsrf-font-body);color:var(--nsrf-ink);margin:0 0 1.1em;}
.nsrf-prose h1{font:700 44px/1.15 var(--nsrf-font-display);color:var(--nsrf-maroon);margin:0 0 .5em;letter-spacing:-.02em;}
.nsrf-prose h2{font:700 26px/1.3 var(--nsrf-font-display);color:var(--nsrf-maroon);margin:1.8em 0 .5em;}
.nsrf-prose ul{margin:0 0 1.2em 1.2em;}
.nsrf-prose li{font:400 16px/1.7 var(--nsrf-font-body);color:var(--nsrf-ink);margin:0 0 .35em;}
.nsrf-prose__cta{margin-top:2em;}
.nsrf-btn{display:inline-block;background:var(--nsrf-pink);color:#fff;text-decoration:none;
  font:600 15px/1 var(--nsrf-font-body);padding:14px 26px;border-radius:999px;transition:background .18s;}
.nsrf-btn:hover{background:#b62c78;color:#fff;}
.nsrf-btn:focus-visible{outline:3px solid var(--nsrf-maroon-light);outline-offset:3px;}

/* History eras — a left rule ties the run of dated sections together. */
.nsrf-era{position:relative;padding:0 0 0 26px;margin:0 0 2.4em;border-left:3px solid var(--nsrf-line);}
.nsrf-era:last-child{margin-bottom:0;}
.nsrf-era__heading{font:700 22px/1.3 var(--nsrf-font-display);color:var(--nsrf-maroon);margin:0 0 .7em;}
.nsrf-era__heading::before{content:"";position:absolute;left:-8px;top:8px;width:13px;height:13px;
  border-radius:50%;background:var(--nsrf-pink);box-shadow:0 0 0 4px var(--nsrf-card);}

/* Partner and funder logo grid. */
.nsrf-partners__group{margin:0 0 44px;}
.nsrf-partners__group h2{font:700 22px/1.3 var(--nsrf-font-display);color:var(--nsrf-maroon);
  margin:0 0 20px;padding-bottom:10px;border-bottom:1px solid var(--nsrf-line);}
.nsrf-partners__grid{list-style:none;margin:0;padding:0;display:grid;gap:20px;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));}
.nsrf-partners__item{background:var(--nsrf-card);border:1px solid var(--nsrf-line);
  border-radius:var(--nsrf-radius);padding:20px 16px;text-align:center;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;}
.nsrf-partners__logo{max-width:100%;height:64px;width:auto;object-fit:contain;}
.nsrf-partners__name{font:500 13px/1.4 var(--nsrf-font-body);color:var(--nsrf-grey);}
.nsrf-draft-notice{background:#FFF6E5;border-left:4px solid var(--nsrf-amber);border-radius:8px;
  padding:14px 18px;margin:0 0 28px;font:500 14px/1.6 var(--nsrf-font-body);color:#7A4B00;max-width:820px;}

/* Related publications: hide the block and its heading when the loop finds nothing.        */
/* Divi's empty state prints <h1 class="not-found-title">No Results Found</h1>, so a project */
/* with no linked publications was rendering a second H1 and a message aimed at a failed     */
/* search. display:none removes it from the accessibility tree as well as the page.          */
/* Matched on the row's own .related class rather than Divi's numbered _tb_body classes,     */
/* which shift whenever the layout changes.                                                  */
.et_pb_row.related:has(.not-found-title){display:none;}
.et_pb_row.related:has(.nsrf-related-empty){display:none;}
.et_pb_row:has(+ .et_pb_row.related .nsrf-related-empty){display:none;}
.et_pb_row:has(+ .et_pb_row.related .not-found-title){display:none;}

/* ======================================================================== */
/* 20 Aug 2026 — NSRF edits list: homepage density and line length          */
/* ======================================================================== */

/* NSRF: "Homepage is long — lots of scrolling. Decrease space between sections?"
   Divi sections default to 4% top and bottom padding, which at 1440px is ~58px a side,
   so every join between sections costs about 116px. Trimmed on the homepage only —
   inner pages are text-heavy and need the breathing room. */
body.home .et_pb_section{padding-top:38px;padding-bottom:38px;}
body.home .et_pb_section.et_pb_section_0{padding-top:26px;}
body.home .et_pb_row{padding-top:0;padding-bottom:0;}
@media(max-width:980px){
  body.home .et_pb_section{padding-top:30px;padding-bottom:30px;}
}

/* NSRF: "line lengths seem too long (~120–140 characters). Can we shorten?"
   65–75 characters is the readable range. These sections run edge to edge at 1200px,
   which is roughly 130 characters at 16px. Constrained to a 68ch measure, applied to the
   paragraph rather than the row so cards and grids beside it keep the full width. */
.et_pb_text .et_pb_text_inner > p,
.et_pb_text .et_pb_text_inner > ul,
.et_pb_text .et_pb_text_inner > ol{max-width:68ch;}
/* Centred text blocks keep their measure but stay centred. */
.et_pb_text_align_center .et_pb_text_inner > p{margin-left:auto;margin-right:auto;}
/* Anything already constrained, or inside a card or a narrow column, is left alone. */
.et_pb_column_1_4 .et_pb_text_inner > p,
.et_pb_column_1_3 .et_pb_text_inner > p,
.et_flex_column_6_24 .et_pb_text_inner > p,
.et_flex_column_8_24 .et_pb_text_inner > p,
.nsrf-prose .et_pb_text_inner > p{max-width:none;}

/* ---- At a Glance stat card: align the numbers and their labels (20 Aug) ---- */
/* Divi stacks .percent above h3.title, but the module was set to lay out in a row, so each
   label started wherever its number happened to end — "150+", "€8M+" and "25+" are different
   widths, so the three labels began at three different x positions and sat off the numbers'
   baseline. A fixed-width first column puts every label on the same left edge, and baseline
   alignment ties each label to its number. .percent also carries a hard 72px height by default,
   which was adding dead space between rows. */
body.home .et_pb_number_counter{
  display:grid;grid-template-columns:132px 1fr;column-gap:20px;
  align-items:baseline;text-align:left;margin:0 0 22px;
}
body.home .et_pb_number_counter:last-child{margin-bottom:0;}
body.home .et_pb_number_counter .percent{height:auto;margin:0;text-align:left;}
body.home .et_pb_number_counter .percent p{margin:0;line-height:1.05;}
body.home .et_pb_number_counter h3.title,
body.home .et_pb_number_counter .et_pb_module_header{
  margin:0;padding:0;line-height:1.45;text-align:left;
}
/* Below the two-column breakpoint the card is narrow, so stack instead of squeezing. */
@media(max-width:640px){
  body.home .et_pb_number_counter{grid-template-columns:1fr;row-gap:2px;}
}

/* --- Publications filter bar: keep the controls on one line -------------
   Added 24 Aug 2026 with the Sort control. The Cluster select sized itself
   to its longest option ("Policy and Practice Implementation and Quality
   Improvement"), which pushed the bar onto four rows. */

.nsrf-filter-bar .nsrf-filter-select select{
  max-width:230px;
}

.nsrf-filter-bar .nsrf-filter-count{
  margin-left:auto;
}

@media (max-width:600px){
  .nsrf-filter-bar .nsrf-filter-select select{ max-width:none; }
  .nsrf-filter-bar .nsrf-filter-count{ margin-left:0; }
}

/* --------------------------------------------------------- 31 Aug 2026
   Continue the hero corner tints into the "Who are you?" top wave area so
   the section boundary does not clip the glow (client request). Multiply at
   these alphas is imperceptible over the pink band and text. */
.home .et_pb_section:has(> .et_pb_top_inside_divider){ position:relative; }
.home .et_pb_section:has(> .et_pb_top_inside_divider)::before{
  content:"";
  position:absolute; top:0; left:0; right:0; height:520px;
  background:
    radial-gradient(circle 680px at 90% -360px, rgba(143,147,176,.15) 0%, rgba(143,147,176,0) 100%),
    radial-gradient(circle 540px at 10% -40px,  rgba(31,55,129,.06) 0%, rgba(31,55,129,0) 100%);
  mix-blend-mode:multiply;
  pointer-events:none;
  z-index:2;
}

/* --------------------------------------------------------- 31 Aug 2026
   No breadcrumb band on the homepage - a lone "Home" trail says nothing and
   its white strip broke the header-to-hero tint. Inner pages keep it. */
body.home .et-l--header .et_pb_section:has(.et_pb_breadcrumbs){ display:none; }

/* --------------------------------------------------------- 31 Aug 2026
   Breadcrumb band, site-wide. The band goes transparent over a page-top tint
   that mirrors the homepage hero (so header, breadcrumb and page title share
   one surface), and its row is aligned to the content column: the 1280px
   header/Divi column by default, inset by the same clamp() the content pages
   (.nsrf-cp, At a Glance) use for their text. Homepage hides the band. */
/* Content pages (grey body, no section backgrounds): the tint is painted on
   the body canvas itself - no stacking involved, no artefacts. */
body:not(.home):not(.et_pb_pagebuilder_layout).custom-background{
  background-color:#F7F7F9;
  background-image:
    radial-gradient(circle 720px at 90% 190px, rgba(143,147,176,.15) 0%, rgba(143,147,176,0) 100%),
    radial-gradient(circle 560px at 10% 430px,  rgba(31,55,129,.06) 0%, rgba(31,55,129,0) 100%);
  background-repeat:no-repeat;
}
/* Divi-built pages: sections paint their own (white) backgrounds, so the
   tint is a multiply overlay anchored to the top of #main-content and pulled
   up over the 45px band - one surface from header to page title. */
body.et_pb_pagebuilder_layout:not(.home) #et-main-area > #main-content{ position:relative; isolation:isolate; } /* own stacking context: overlay beats Divi z-index:1 content wrapper, stays under the z-index:2 header */
body.et_pb_pagebuilder_layout:not(.home) #et-main-area > #main-content::before{
  content:"";
  position:absolute; left:0; right:0; top:-90px; height:865px; /* -90 covers a two-line band; the white nav (header context, z2) hides the rest */
  background:
    radial-gradient(circle 720px at 90% 25px, rgba(143,147,176,.15) 0%, rgba(143,147,176,0) 100%),
    radial-gradient(circle 560px at 10% 285px,  rgba(31,55,129,.06) 0%, rgba(31,55,129,0) 100%);
  mix-blend-mode:multiply;
  pointer-events:none;
  z-index:2;
}
.et-l--header .et_pb_section:has(.et_pb_breadcrumbs){
  background:transparent !important;
  padding:12px 32px !important;
}
.et-l--header .et_pb_section:has(.et_pb_breadcrumbs) .et_pb_row{
  width:100% !important;
  max-width:1280px !important;
  padding:0 !important;
  box-sizing:border-box;
}
body:has(.entry-content .nsrf-cp) .et-l--header .et_pb_section:has(.et_pb_breadcrumbs),
body.page-id-20 .et-l--header .et_pb_section:has(.et_pb_breadcrumbs){
  padding-inline:0 !important;
}
body:has(.entry-content .nsrf-cp) .et-l--header .et_pb_section:has(.et_pb_breadcrumbs) .et_pb_row,
body.page-id-20 .et-l--header .et_pb_section:has(.et_pb_breadcrumbs) .et_pb_row{
  padding-inline:clamp(20px, 5vw, 80px) !important;
}

/* --------------------------------------------------------- 31 Aug 2026
   Page-top rhythm on the content pages (.nsrf-cp): H1 -> lede -> first
   heading were separated by Divi paragraph padding, an empty <p> wpautop
   leaves at the top of the wrapper, and stacked margins - up to 60px of air
   between lede and first H2. One consistent rhythm: 10px under the H1,
   32px under the lede. */
body:has(.nsrf-cp) h1.entry-title{ margin-bottom:10px !important; padding-bottom:0 !important; }
.nsrf-cp > p:empty{ display:none; }
.nsrf-cp .nsrf-cp-lede{ margin:0 !important; padding-bottom:0 !important; }
.nsrf-cp .nsrf-cp-lede + *{ margin-top:32px !important; }
.nsrf-cp > h2{ margin-top:32px; }
/* Link-card lists on content pages inherited Divi list padding (1em left,
   23px bottom) so the cards sat 14px inboard of the text column. */
.nsrf-cp ul.nsrf-cp-projectlist{ padding-left:0 !important; padding-bottom:0 !important; margin:20px 0 !important; }
/* Divi-built pages below the 1280+padding threshold: Divi rows run 100% wide
   with 24px padding, so the content edge is 24px - match the band to it. */
@media (max-width:1327px){
  body.et_pb_pagebuilder_layout .et-l--header .et_pb_section:has(.et_pb_breadcrumbs){ padding-inline:24px !important; }
}

/* The template gives the band a 45px max-height, so a breadcrumb that wraps
   on a phone spilled out of the tinted strip. Let it grow. */
.et-l--header .et_pb_section:has(.et_pb_breadcrumbs){ max-height:none !important; height:auto !important; }
/* Theme Builder body templates (posts, publications, projects, registry
   reports, team) render Divi rows too - same 24px content edge below 1328px. */
@media (max-width:1327px){
  body.et-tb-has-body .et-l--header .et_pb_section:has(.et_pb_breadcrumbs){ padding-inline:24px !important; }
}
/* and on a phone the first template section sat 50px below the band while
   content pages start 10px below it - bring it in line */
@media (max-width:767px){
  body.et-tb-has-body .et-l--body .et_pb_section:first-of-type{ padding-top:20px !important; }
}

/* --------------------------------------------------------- 1 Sep 2026
   Divi default page layout normalised.
   a) Pages rendered through Divi page.php (no builder) get the same content
      box as the content pages, and never a sidebar (see nsrf-no-sidebar.php). */
body.page:not(.et_pb_pagebuilder_layout) #main-content > .container{
  width:100% !important; max-width:1280px; margin-inline:auto;
  padding:0 clamp(20px, 5vw, 80px) 64px !important; box-sizing:border-box;
}
body.page:not(.et_pb_pagebuilder_layout) #main-content #left-area{ width:100% !important; padding:0 !important; float:none !important; }
body.page #main-content #sidebar{ display:none !important; }
/* b) Builder pages whose layout carries no H1 get an injected fallback title
      (nsrf-heading-integrity.php) that was full-bleed at x=0. Give it the
      breadcrumb band geometry so it sits on the content column. */
body.et_pb_pagebuilder_layout .entry-content > h1.nsrf-title-fallback{
  margin:28px auto 0 !important;
  padding-inline:max(32px, calc((100% - 1280px) / 2)) !important;
  box-sizing:border-box;
}
@media (max-width:1327px){
  body.et_pb_pagebuilder_layout .entry-content > h1.nsrf-title-fallback{ padding-inline:24px !important; }
}
/* On container pages the content box is now the .container itself, so the
   .nsrf-cp entry-content must not add its own clamp inset on top. */
body.page:not(.et_pb_pagebuilder_layout) #main-content .container .entry-content{ padding-inline:0 !important; max-width:none !important; margin-inline:0 !important; }
/* ...and the 860px centred reading column the content template gave .nsrf-cp
   (designed for the old sidebar layout) drops away too, so text lines up with
   the H1 exactly as on the direct-article pages such as Press Kit. */
body.page:not(.et_pb_pagebuilder_layout) #main-content .container .nsrf-cp{ max-width:none !important; margin-inline:0 !important; padding-inline:0 !important; }
/* With the 860px column gone, keep the measure readable (the 20 Aug rule:
   65-75 characters) without moving the left edge. */
.nsrf-cp p, .nsrf-cp li, .nsrf-cp .nsrf-cp-lede{ max-width:72ch; }
/* Every non-builder page now uses the 1280 + clamp content box, so the band
   follows the clamp inset on all of them, not only the .nsrf-cp ones. */
body.page:not(.et_pb_pagebuilder_layout) .et-l--header .et_pb_section:has(.et_pb_breadcrumbs){ padding-inline:0 !important; }
body.page:not(.et_pb_pagebuilder_layout) .et-l--header .et_pb_section:has(.et_pb_breadcrumbs) .et_pb_row{ padding-inline:clamp(20px, 5vw, 80px) !important; }

/* ── Legacy block-layout rows: restore the clearfix ─────────────────────────
   Divi 5 renders some pages with the legacy float layout (.et_block_row /
   .et_block_section) but only enqueues the flex-layout stylesheet when its
   dynamic-assets scan says the page needs it. On a page where the scan misses
   block layout, the floated columns are never cleared and everything after the
   row (the footer included) shrink-wraps beside them. Harmless where flex rows
   are used — they never carry .et_block_row. 1 Sep 2026. */
.et_pb_row.et_block_row::after,
.et_pb_section.et_block_section::after{ content:""; display:block; clear:both; }

/* ------------------------------------------------------------------
   Cluster card labels — WCAG 1.4.3 (7 Sep 2026)

   The five cluster cards run a maroon ramp from #040A30 to #B84A85. The
   Additional CSS set their label text to white at 92% alpha, which over the
   lightest card (#B84A85, card 05 Policy and Practice) lands at #F9F1F5 =
   4.34:1 — under the 4.5:1 AA threshold for 12-13px text, and under the 4.8:1
   the CSS comment itself claims. Full white on the same background gives
   4.82:1, so the fix is the alpha rather than the cluster colours, which are
   still awaiting NSRF sign-off.

   The source is corrected in Appearance > Additional CSS. This rule repeats it
   because Divi compiles that CSS into wp-content/et-cache/, those files are
   owned by the application user and cannot be deleted over the master SSH
   account, so the stale compiled copy survives until Divi rebuilds it. Both
   say the same thing; this one can be dropped once the cache has rolled.
   ------------------------------------------------------------------ */
html body #et-boc .nsrf-cluster-grid-home .et_pb_column .et_pb_module_header,
html body #et-boc .nsrf-cluster-grid-home .et_pb_column .et_pb_blurb_description,
html body #et-boc .nsrf-cluster-grid-home .et_pb_column .et_pb_blurb_description p,
html body #et-boc .nsrf-cluster-grid-home .et_pb_column .et_pb_blurb_description span,
html body #et-boc .nsrf-cluster-grid-home .et_pb_column .et_pb_text,
html body #et-boc .nsrf-cluster-grid-home .et_pb_column .et_pb_text p,
html body #et-boc .nsrf-cluster-grid .et_pb_column .et_pb_blurb_description,
html body #et-boc .nsrf-cluster-grid .et_pb_column .et_pb_blurb_description p { color:#fff !important; }

/* ------------------------------------------------------------------
   Footer link colour — WCAG 1.4.3 (7 Sep 2026)

   The footer link modules resolve to #1F3781 on the #071050 footer band =
   1.85:1, effectively unreadable. A rule setting them to white at 75% alpha
   (7.3:1) exists in Divi's compiled theme-builder CSS, but it is not reliably
   applied: across repeated loads the same link measured white on some renders
   and #1F3781 on others, which tracks the state of the et-cache files rather
   than anything on the page. Stating it here, in a file we own and version,
   takes the outcome off that dependency.

   White on #071050 is 12.4:1 — the ratio the palette notes already claim.
   ------------------------------------------------------------------ */
html body #et-boc .et-l--footer .et_pb_link .et_pb_link_text p,
html body #et-boc .et-l--footer .et_pb_link .et_pb_link_text a,
html body #et-boc .et-l--footer .et_pb_link_inner p { color:#fff !important; }

/* The legal links in the bottom bar (Privacy / Cookies / Accessibility) are a
   text module rather than link modules, and land on the same #1F3781. White at
   85% keeps them visually secondary to the main footer links while clearing AA
   at 9.4:1. */
html body #et-boc .et-l--footer .et_pb_text .et_pb_text_inner p a,
html body #et-boc .et-l--footer .et_pb_text .et_pb_text_inner a { color:rgba(255,255,255,.85) !important; }
html body #et-boc .et-l--footer .et_pb_text .et_pb_text_inner p a:hover,
html body #et-boc .et-l--footer .et_pb_text .et_pb_text_inner a:hover { color:#fff !important; }

/* Footer body copy — WCAG 1.4.3 (7 Sep 2026)
   The WHO Collaborating Centre paragraph and the copyright line resolve to the
   body ink #4A5568 on the #071050 footer band = 1.64:1 on any render where the
   theme-builder footer CSS has not been applied. White at 80% gives 8.0:1 and
   keeps them quieter than the link columns. */
html body #et-boc .et-l--footer .et_pb_text .et_pb_text_inner p,
html body #et-boc .et-l--footer .et_pb_text .et_pb_text_inner li,
html body #et-boc .et-l--footer .et_pb_text .et_pb_text_inner { color:rgba(255,255,255,.8) !important; }

/* ------------------------------------------------------------------
   14 Sep 2026 — project pages converted from Markdown.
   A heading whose section has no content yet is kept in the database
   (so NSRF can see the gap in the editor) but not shown to visitors.
   Remove this rule once the content lands.
   ------------------------------------------------------------------ */
.nsrf-cp h2.nsrf-cp-empty,
.nsrf-cp h3.nsrf-cp-empty{ display:none !important; }

/* Lists inside the content pages: Divi strips list styling by default. */
.nsrf-cp ul:not(.nsrf-cp-projectlist){
  list-style: disc outside !important;
  margin: 16px 0 16px 0 !important;
  padding-left: 1.35em !important;
}
.nsrf-cp ul:not(.nsrf-cp-projectlist) > li{
  list-style: disc outside !important;
  margin: 0 0 8px 0 !important;
  padding-left: 0 !important;
  max-width: 72ch;
}
.nsrf-cp h3.nsrf-cp-h3{ margin-top:24px; }

/* Breathing room where a themed sub-heading follows its section heading. */
.nsrf-cp h2 + h3{ margin-top:22px !important; }
.nsrf-cp h3 + p{ margin-top:6px !important; }
.nsrf-cp blockquote.nsrf-cp-quote{
  margin:20px 0 !important;
  padding:4px 0 4px 20px !important;
  border-left:3px solid currentColor;
  opacity:.9;
}
.nsrf-cp blockquote.nsrf-cp-quote p{ margin:0 0 10px 0 !important; font-style:italic; }
.nsrf-cp blockquote.nsrf-cp-quote p:last-child{ margin-bottom:0 !important; }


/* ---------------------------------------------------------------------------
   Consent checkbox marker — 15 September 2026
   Divi applies the form field border-radius to input[type=checkbox] + label i,
   so the 9px field radius rounds the 18px marker into a circle and it reads as
   a radio button. Square it off.
   --------------------------------------------------------------------------- */
.et_pb_contact_field input[type="checkbox"] + label i,
.et_pb_with_border.et_pb_contact_field .input[type="checkbox"] + label i {
	border-radius: 3px !important;
}


/* ---------------------------------------------------------------------------
   NSRF mobile fixes — 16 September 2026
   1. Hamburger pinned to the right of the header.
   2. Team cards one per row on phones, laid out sideways.
   --------------------------------------------------------------------------- */

@media (max-width: 980px) {
	.et-l--header .et_pb_menu .et_pb_menu_inner_container { justify-content: flex-end !important; }
	.et-l--header .et_pb_menu .et_pb_menu__wrap { margin-left: auto !important; justify-content: flex-end !important; }
}

@media (max-width: 640px) {

	/* One card per row. The columns are 12_24 on phone in the layout itself. */
	.page-id-45 .et_pb_row_nested > .et_pb_column {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	/* Card turned sideways: avatar left, name and role right. */
	.page-id-45 .et_pb_blurb.team-card .et_pb_blurb_content {
		display: flex !important;
		flex-direction: row !important;
		align-items: center;
		gap: 18px;
		text-align: left !important;
	}
	.page-id-45 .et_pb_blurb.team-card .et_pb_blurb_content .et_pb_main_blurb_image {
		flex: 0 0 88px !important;
		width: 88px !important;
		margin: 0 !important;
	}

	/* Full chain, to beat the clamp(170px, 72%, 210px) !important rule above. */
	body.page-id-45 .et_pb_blurb .et_pb_blurb_content .et_pb_main_blurb_image .et_pb_image_wrap {
		width: 88px !important;
		height: 88px !important;
	}
	body.page-id-45 .et_pb_blurb .et_pb_blurb_content .et_pb_main_blurb_image .et_pb_image_wrap img {
		width: 88px !important;
		height: 88px !important;
		object-fit: cover !important;
		display: block !important;
	}

	.page-id-45 .et_pb_blurb.team-card .et_pb_blurb_container {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		text-align: left !important;
		padding: 0 !important;
	}
	.page-id-45 .et_pb_blurb.team-card .et_pb_module_header,
	.page-id-45 .et_pb_blurb.team-card .et_pb_blurb_description { text-align: left !important; }

	/* Cards with no photograph: the placeholder is a ::before on the container,
	   not an image element, so lay that one out as a two-column grid instead.
	   Browsers without :has() fall back to the stacked card, which still reads. */
	.page-id-45 .et_pb_blurb.team-card .et_pb_blurb_content:not(:has(.et_pb_main_blurb_image)) .et_pb_blurb_container {
		display: grid !important;
		grid-template-columns: 88px 1fr;
		column-gap: 18px;
		align-items: center;
	}
	.page-id-45 .et_pb_blurb.team-card .et_pb_blurb_content:not(:has(.et_pb_main_blurb_image)) .et_pb_blurb_container::before {
		grid-row: 1 / span 2;
		width: 88px !important;
		height: 88px !important;
		margin: 0 !important;
	}
	.page-id-45 .et_pb_blurb.team-card .et_pb_blurb_content:not(:has(.et_pb_main_blurb_image)) .et_pb_module_header {
		grid-column: 2;
		align-self: end;
	}
	.page-id-45 .et_pb_blurb.team-card .et_pb_blurb_content:not(:has(.et_pb_main_blurb_image)) .et_pb_blurb_description {
		grid-column: 2;
		align-self: start;
	}

	/* The content pack also sets aspect-ratio and height:auto with !important. */
	body.page-id-45 .et_pb_blurb .et_pb_blurb_content .et_pb_main_blurb_image .et_pb_image_wrap {
		aspect-ratio: 1 / 1 !important;
		margin: 0 !important;
	}
}


/* ---------------------------------------------------------------------------
   NSRF publications search fix -- 16 September 2026 (applied 18 September)
   .nsrf-card[hidden] (0,2,0) lost to #nsrf-pub-grid .nsrf-card (1,1,0), both
   !important, so filtered-out cards stayed visible. Escalated to (1,2,0), as
   the pagination rule already was.
   --------------------------------------------------------------------------- */
#nsrf-pub-grid .nsrf-card[hidden],
#nsrf-pub-grid .nsrf-pub-card[hidden] { display: none !important; }

/* ------------------------------------------------------------------
   21 Sep 2026 — card title links, mega-menu stacking, homepage stats,
   cluster card type, footer logo alignment
   ------------------------------------------------------------------ */

/* Publication card titles now link to the single page (nsrf-publications-archive.php).
   Registry titles already link to their PDF; give both the same treatment. */
.nsrf-pub-card .nsrf-card-title a,
.nsrf-registry-card .nsrf-card-title a{color:inherit;text-decoration:none;}
.nsrf-pub-card .nsrf-card-title a:hover,
.nsrf-registry-card .nsrf-card-title a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;}
.nsrf-pub-card .nsrf-card-title a:focus-visible,
.nsrf-registry-card .nsrf-card-title a:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:2px;}

/* Mega menu sat behind the publications filter bar. The header's
   .et_builder_inner_content is position:relative; z-index:2, and so is the page's
   first Divi column (et_pb_column_0) — equal z-index, so the later element in the
   DOM (the page) painted over the whole header context, panel included. */
.et-l--header > .et_builder_inner_content{z-index:1000 !important;}

/* NSRF in numbers: centre each label on its number and bring the label up to body size. */
body.home .et_pb_number_counter{align-items:center;}
body.home .et_pb_number_counter h3.title,
body.home .et_pb_number_counter .et_pb_module_header{font-size:17px !important;line-height:1.4 !important;font-weight:500;}

/* Homepage cluster cards: titles were 12px against 18px on every other card. */
html body #et-boc .nsrf-cluster-grid-home .et_pb_column .et_pb_module_header{font-size:18px !important;line-height:1.25 !important;}
html body #et-boc .nsrf-cluster-grid-home .et_pb_column .et_pb_text p{font-size:15px !important;}

/* Footer logo: the PNG carries 212px of transparent padding (of 2303px), so the mark
   sat ~24px in from the text column. Crop the padding in CSS: the wrap takes the
   artwork's aspect ratio (1891×647) and the image is scaled up and pulled back by
   its padding. Percentage margins resolve against the wrap's width on both axes. */
.et-l--footer .et_pb_image_0_tb_footer .et_pb_image_wrap{display:block;overflow:hidden;width:214px;max-width:100%;aspect-ratio:1891/647;}
.et-l--footer .et_pb_image_0_tb_footer .et_pb_image_wrap img{width:121.79% !important;max-width:none !important;height:auto !important;margin:-11.21% 0 0 -11.21% !important;}

/* ------------------------------------------------------------------
   21 Sep 2026 (b) — homepage audience cards; publications/registry
   list view and year filter
   ------------------------------------------------------------------ */

/* Homepage audience cards (For Researchers / Health and Care / Media / Everyone).
   The whole card is the link: the existing button anchor is stretched over the card
   and its text hidden visually (it stays the link's accessible name). Icon sits beside
   the title. Each card takes one logo colour, in logo order, for the icon and for a
   top rule that draws in on hover. Matched by structure (blurb with a button) so it
   doesn't depend on Divi's module numbering. */
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper){
  --aud:#2f42a0;--aud-tint:rgba(47,66,160,.10);
  position:relative;transition:transform .15s ease,box-shadow .15s ease;cursor:pointer;
}
body.home .et_pb_column:nth-child(1) > .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper){--aud:#27963c;--aud-tint:rgba(39,150,60,.12);}
body.home .et_pb_column:nth-child(2) > .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper){--aud:#e30f92;--aud-tint:rgba(227,15,146,.10);}
body.home .et_pb_column:nth-child(3) > .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper){--aud:#822896;--aud-tint:rgba(130,40,150,.10);}
body.home .et_pb_column:nth-child(4) > .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper){--aud:#2f42a0;--aud-tint:rgba(47,66,160,.10);}
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper)::before{
  content:"";position:absolute;left:0;right:0;top:0;height:4px;z-index:1;
  background:var(--aud);transform:scaleX(0);transform-origin:left center;transition:transform .25s ease;
}
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper):hover,
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper):focus-within{
  transform:translateY(-3px);box-shadow:0 6px 20px rgba(7,16,80,.14) !important;
}
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper):hover::before,
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper):focus-within::before{transform:scaleX(1);}
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper):has(a.et_pb_button:focus-visible){outline:3px solid var(--aud);outline-offset:3px;}
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper) .et_pb_blurb_content{
  display:grid !important;grid-template-columns:48px minmax(0,1fr);column-gap:14px;row-gap:14px;align-items:center;
  position:static !important;max-width:none !important;
}
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper) .et_pb_main_blurb_image{grid-column:1;grid-row:1;margin:0 !important;width:48px !important;}
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper) .et_pb_blurb_container{display:contents;}
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper) .et_pb_module_header{grid-column:2;grid-row:1;margin:0 !important;padding:0 !important;}
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper) .et_pb_blurb_description{grid-column:1 / -1;grid-row:2;align-self:start;}
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper) .et-pb-icon{color:var(--aud) !important;background-color:var(--aud-tint) !important;}
body.home .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper) .et_pb_button_module_wrapper{position:static !important;margin:0 !important;padding:0 !important;height:0;grid-column:1 / -1;}
body.home #page-container .et_pb_section .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper) .et_pb_button_module_wrapper > a.et_pb_button{
  position:absolute !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;width:100% !important;height:100% !important;max-width:none !important;max-height:none !important;z-index:2;display:block !important;
  font-size:0 !important;line-height:0 !important;color:transparent !important;text-indent:-9999px;overflow:hidden;
  background:transparent !important;border:0 !important;padding:0 !important;margin:0 !important;
  border-radius:inherit;box-shadow:none !important;outline:none;
}
body.home #page-container .et_pb_section .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper) .et_pb_button_module_wrapper > a.et_pb_button::before,
body.home #page-container .et_pb_section .et_pb_blurb:has(> .et_pb_blurb_content > .et_pb_button_module_wrapper) .et_pb_button_module_wrapper > a.et_pb_button::after{display:none !important;}

/* Publications / registry: the search takes its own row so the extra Year and View
   controls fit on one line beneath it. */
#nsrf-pub-filters .nsrf-filter-search{flex:1 1 100%;}

/* Grid / list toggle (nsrf-grid-view.js) */
.nsrf-view-toggle{display:flex;flex-direction:column;gap:6px;}
.nsrf-view-btns{display:inline-flex;border:1.5px solid var(--nsrf-line);border-radius:8px;overflow:hidden;background:#fff;}
.nsrf-view-btns button{
  display:inline-flex;align-items:center;justify-content:center;width:44px;height:43px;
  border:0;background:#fff;color:var(--nsrf-navy);cursor:pointer;padding:0;transition:background .15s,color .15s;
}
.nsrf-view-btns button + button{border-left:1.5px solid var(--nsrf-line);}
.nsrf-view-btns button:hover{background:rgba(7,16,80,.06);}
.nsrf-view-btns button[aria-pressed="true"]{background:var(--nsrf-navy);color:#fff;}
.nsrf-view-btns button:focus-visible{outline:2px solid var(--nsrf-navy);outline-offset:-4px;}
.nsrf-view-btns svg{width:18px;height:18px;display:block;}

/* List view. :not([hidden]) and :not(.nsrf-paged-out) keep the search/pagination
   rules in charge of what is shown; this only changes how shown cards lay out. */
#nsrf-pub-grid.is-list,
#nsrf-registry-grid.is-list{grid-template-columns:1fr;gap:10px;}
#nsrf-pub-grid.is-list > .nsrf-card:not([hidden]):not(.nsrf-paged-out),
#nsrf-registry-grid.is-list > .nsrf-card:not([hidden]):not(.nsrf-paged-out){
  display:grid !important;
  grid-template-columns:150px minmax(0,1fr) auto;
  grid-template-areas:"meta title actions" "meta cite actions";
  column-gap:24px;row-gap:4px;align-items:start;
  height:auto;min-height:0;padding:16px 22px;
  border-top:0;border-left:4px solid var(--nsrf-navy);
}
.nsrf-card-grid.is-list .nsrf-card-meta{grid-area:meta;margin:0;padding-top:3px;}
.nsrf-card-grid.is-list .nsrf-card-title{grid-area:title;margin:0;font-size:18px;line-height:1.35;}
.nsrf-card-grid.is-list .nsrf-card-citation{grid-area:cite;margin:0;}
.nsrf-card-grid.is-list .nsrf-card-actions{grid-area:actions;align-self:center;margin:0 !important;padding-top:0 !important;display:flex;gap:8px;flex-wrap:nowrap;}
.nsrf-card-grid.is-list > .nsrf-card:hover{transform:none;}
@media (max-width:760px){
  #nsrf-pub-grid.is-list > .nsrf-card:not([hidden]):not(.nsrf-paged-out),
  #nsrf-registry-grid.is-list > .nsrf-card:not([hidden]):not(.nsrf-paged-out){
    grid-template-columns:minmax(0,1fr);grid-template-areas:"meta" "title" "cite" "actions";row-gap:8px;
  }
  .nsrf-card-grid.is-list .nsrf-card-actions{align-self:start;}
}

/* ------------------------------------------------------------ 21 Sep 2026 (c)
   Homepage cluster cards: the heading link (nsrf-our-work-cards.php) stretches
   over the card. Divi makes the blurb container/content position:relative, which
   trapped the stretched ::after inside the heading box; release them so it spans
   the whole blurb. */
html body #et-boc .nsrf-cluster-grid-home .et_pb_blurb_container,
html body #et-boc .nsrf-cluster-grid-home .et_pb_blurb_content{position:static !important;}
html body #et-boc .nsrf-cluster-grid-home .et_pb_blurb:has(.nsrf-cluster-cardlink){position:relative;cursor:pointer;}
.nsrf-cluster-grid-home .nsrf-cluster-cardlink::after{z-index:5;}

/* In-page anchors (e.g. /about/team/#researchers) clear the sticky header. */
h2[id]{scroll-margin-top:130px;}

/* ------------------------------------------------------------ 21 Sep 2026 (e)
   Our Team: people without a headshot get an initials disc in the same
   .et_pb_main_blurb_image slot a photo uses (injected by nsrf-team-initials.php),
   so names and roles line up with the photographed cards at every width,
   the same approach as Dr Margaret Kelleher's monogram on Our Board. */
.team-card .nsrf-team-initials .et_pb_image_wrap{display:block;aspect-ratio:1/1;overflow:hidden;border-radius:50%;}
.team-card .nsrf-team-initials .nsrf-initials{
  display:flex;align-items:center;justify-content:center;width:100%;height:100%;
  background:#EEEFF3;color:#071050;
  font-family:Outfit,system-ui,sans-serif;font-weight:700;letter-spacing:.06em;line-height:1;
  font-size:clamp(2rem,3.4vw,3rem);
}
.team-card .nsrf-team-initials a{display:block;text-decoration:none;}
.team-card .nsrf-team-initials a::after{display:none !important;}
@media (max-width:767px){
  .team-card .nsrf-team-initials .nsrf-initials{font-size:1.6rem;}
}

/* ------------------------------------------------------------ 21 Sep 2026 (f)
   Data and Statistics: Registry 'statistics at a glance' infographic grid. */
.nsrf-infog-grid{list-style:none !important;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;padding:0 !important;margin:18px 0 8px !important;}
.nsrf-infog-grid li{list-style:none !important;margin:0 !important;padding:0 !important;}
.nsrf-infog-grid li::before,.nsrf-infog-grid li::marker{content:none !important;display:none !important;}
.nsrf-infog-grid a{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid #E0E2EA;border-radius:12px;overflow:hidden;text-decoration:none;color:#071050;box-shadow:0 1px 4px rgba(7,16,80,.06);transition:transform .15s ease,box-shadow .15s ease;}
.nsrf-infog-grid a::after{display:none !important;}
.nsrf-infog-grid a:hover,.nsrf-infog-grid a:focus-visible{transform:translateY(-3px);box-shadow:0 6px 20px rgba(7,16,80,.14);}
.nsrf-infog-grid a:focus-visible{outline:3px solid #071050;outline-offset:3px;}
.nsrf-infog-grid img{display:block;width:100%;height:auto;aspect-ratio:1288/1821;object-fit:cover;object-position:top;background:#EEEFF3;}
.nsrf-infog__cap{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:12px 14px;font-size:14px;color:#4A5568;}
.nsrf-infog__cap strong{font-family:Outfit,system-ui,sans-serif;font-size:18px;color:#071050;}
html body .nsrf-cp ul.nsrf-infog-grid{padding-left:0 !important;margin-left:0 !important;padding-inline-start:0 !important;}

/* ------------------------------------------------------------ 21 Sep 2026 (g)
   Website edits 21 Sept. */
/* Registry landing: tighter gaps between the text blocks. */
body.page-id-18 .et-l--post .et_pb_section_1{padding-bottom:0 !important;}
body.page-id-18 .et-l--post .et_pb_section_1 .et_pb_row{padding-bottom:28px !important;}
body.page-id-18 .et-l--post .et_pb_section_2{row-gap:18px !important;gap:18px !important;padding-bottom:48px !important;}
/* Registry landing: latest annual report figures. */
.nsrf-reg-latest{background:#EEEFF3;border-left:4px solid #071050;border-radius:10px;padding:16px 20px;margin:0 0 20px;max-width:816px;}
.nsrf-reg-latest__label{display:block;font:700 12px/1.3 Outfit,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#1F3781;margin:0 0 6px;}
.nsrf-reg-latest p{margin:0 !important;font-size:17px;line-height:1.5;color:#071050;}
.nsrf-reg-latest strong{font-family:Outfit,system-ui,sans-serif;font-size:20px;}
/* About the NSRF: everything below the intro keeps the intro's measure. */
body.page-id-9 .et-l--post .et_pb_column_1 > .et_pb_module{max-width:816px;}
/* Performance Indicators figure. */
.nsrf-pi-figure{margin:24px 0 28px;}
.nsrf-pi-figure img{display:block;width:100%;max-width:420px;height:auto;border-radius:10px;box-shadow:0 4px 16px rgba(7,16,80,.12);}
/* About the NSRF: keep the four stats on one row inside the narrower measure. */
@media (min-width:981px){
  body.page-id-9 .nsrf-stats .nsrf-stats__list{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;column-gap:20px !important;row-gap:20px !important;}
  body.page-id-9 .nsrf-stats .nsrf-stat{width:auto !important;max-width:none !important;flex:none !important;margin:0 !important;}
}

/* 22 Sep 2026 — native video embeds (Registry information video, CPT videos) */
figure.wp-block-video{margin:28px 0 32px;max-width:860px}
figure.wp-block-video.aligncenter{margin-left:auto;margin-right:auto}
figure.wp-block-video video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#1a1a1a;border-radius:12px}
#registry-video{scroll-margin-top:130px}

/* 22 Sep 2026 — .nsrf-cp-projectlist link cards (Registry Impact and ~25 other
   content-pack pages) restyled to match the site link-card pattern used on the
   Registry page (.nsrf-cta-list): pink left rule, arrow, lift on hover. The
   whole card is the link, so the hover fills the card. */
.nsrf-cp ul.nsrf-cp-projectlist,
ul.nsrf-cp-projectlist{gap:1rem !important;margin:1.5rem 0 !important;padding:0 !important;}
ul.nsrf-cp-projectlist--row{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)) !important;}
ul.nsrf-cp-projectlist > li{border:0 !important;background:none !important;border-radius:0;margin:0 !important;padding:0 !important;list-style:none;}
ul.nsrf-cp-projectlist > li::before{content:none !important;}
ul.nsrf-cp-projectlist > li > a{
	display:block;position:relative;height:100%;box-sizing:border-box;
	padding:1.05rem 3rem 1.05rem 1.25rem;
	font-family:var(--nsrf-font-body);font-size:.9375rem;font-weight:600;line-height:1.35;
	color:var(--nsrf-navy) !important;text-decoration:none !important;
	background:var(--nsrf-card,#fff) !important;
	border:1px solid var(--nsrf-line);border-left:4px solid var(--nsrf-pink);
	border-radius:var(--nsrf-radius);box-shadow:var(--nsrf-shadow);
	transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
ul.nsrf-cp-projectlist > li > a::after{
	content:"\2192" !important;display:block !important;
	position:absolute !important;right:1.25rem;top:50%;left:auto !important;bottom:auto !important;
	width:auto !important;height:auto !important;background:none !important;opacity:1 !important;
	font-size:1.05rem;line-height:1;color:var(--nsrf-pink);
	transform:translateY(-50%) !important;transition:transform .15s ease !important;
}
ul.nsrf-cp-projectlist > li > a:hover,
ul.nsrf-cp-projectlist > li > a:focus-visible{
	transform:translateY(-2px);
	box-shadow:0 2px 8px rgba(7,16,80,.10),0 10px 28px rgba(7,16,80,.10);
	border-color:var(--nsrf-pink);
	background:var(--nsrf-card,#fff) !important;
}
ul.nsrf-cp-projectlist > li > a:hover::after,
ul.nsrf-cp-projectlist > li > a:focus-visible::after{transform:translate(4px,-50%) !important;}
ul.nsrf-cp-projectlist > li > a:focus-visible{outline:3px solid var(--nsrf-maroon-light);outline-offset:2px;}
ul.nsrf-cp-projectlist > li > a strong{display:block;font-size:1.02rem;margin-bottom:2px;}
@media (prefers-reduced-motion:reduce){
	ul.nsrf-cp-projectlist > li > a,ul.nsrf-cp-projectlist > li > a::after{transition:none !important;}
	ul.nsrf-cp-projectlist > li > a:hover{transform:none;}
}
ul.nsrf-cp-projectlist > li > a strong + br{display:none;}
ul.nsrf-cp-projectlist > li > a:has(strong){font-weight:500;}

/* 22 Sep 2026 - card meta de-duplication (nsrf-card-meta.php): when the title
   already carries the type and year, the meta line is dropped. */
.nsrf-card--nometa .nsrf-card-meta{display:none;}
#nsrf-pub-grid.is-list > .nsrf-card.nsrf-card--nometa:not([hidden]):not(.nsrf-paged-out),
#nsrf-registry-grid.is-list > .nsrf-card.nsrf-card--nometa:not([hidden]):not(.nsrf-paged-out){
  grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title actions" "cite actions";
}
@media (max-width:760px){
  #nsrf-pub-grid.is-list > .nsrf-card.nsrf-card--nometa:not([hidden]):not(.nsrf-paged-out),
  #nsrf-registry-grid.is-list > .nsrf-card.nsrf-card--nometa:not([hidden]):not(.nsrf-paged-out){
    grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "cite" "actions";
  }
}
@media (min-width:761px){.nsrf-card-grid.is-list > .nsrf-card--nometa .nsrf-card-title{align-self:center;}.nsrf-card-grid.is-list > .nsrf-card--nometa:not(:has(.nsrf-card-citation)){grid-template-areas:"title actions" !important;}}

/* ------------------------------------------------------------ 24 Sep 2026
   Website edits 24 Sept: square (1:1) NSRF videos and captions. */
figure.wp-block-video.nsrf-video--square{max-width:560px}
figure.wp-block-video.nsrf-video--square video{aspect-ratio:1/1}
figure.wp-block-video figcaption{margin:10px 2px 0;font-size:15px;line-height:1.45;color:#5A6478}

/* ------------------------------------------------------------ 28 Sep 2026
   About side menu: one look on every About page. Our History's Divi menu
   module had lost its link padding, so it sat tighter than the others. */
body:is(.page-id-9,.page-id-46,.page-id-1114,.page-id-2041) #main-content .et_pb_menu{padding:0 !important;}
body:is(.page-id-9,.page-id-46,.page-id-1114,.page-id-2041) #main-content .et_pb_menu .et-menu > li > a{padding:8px 0 8px 14.4px !important;}

/* 28 Sep 2026 — footer navigation generated from the mega menu ([nsrf_footer_nav]) */
.nsrf-fnav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:32px 28px;}
.et-l--footer .nsrf-fnav h2.nsrf-fnav__title{font-family:Outfit,sans-serif !important;font-size:15px !important;font-weight:700 !important;letter-spacing:.8px !important;line-height:18px !important;text-transform:uppercase !important;color:#fff !important;margin:0 0 16px !important;padding:0 !important;}
.et-l--footer .nsrf-fnav ul.nsrf-fnav__list{list-style:none !important;margin:0 !important;padding:0 !important;display:flex;flex-direction:column;gap:14px;}
.et-l--footer .nsrf-fnav ul.nsrf-fnav__list li{list-style:none !important;margin:0 !important;padding:0 !important;line-height:1.45 !important;}
.et-l--footer .nsrf-fnav ul.nsrf-fnav__list li::before{content:none !important;}
.et-l--footer .nsrf-fnav a{color:rgba(255,255,255,.8) !important;font-size:14px !important;text-decoration:none !important;transition:color .15s;}
.et-l--footer .nsrf-fnav a:hover,.et-l--footer .nsrf-fnav a:focus-visible{color:#fff !important;text-decoration:underline !important;}
.et-l--footer .nsrf-fnav a::after{display:none !important;}
.et-l--footer .nsrf-fnav a:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:2px;}
.et-l--footer .et_pb_text:has(.nsrf-fnav) p:empty{display:none;}
@media (max-width:1100px){.nsrf-fnav{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:600px){.nsrf-fnav{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px;}}

/* 28 Sep 2026 — What is the Registry block on the Registry landing page */
.page-id-18 .nsrf-reg-about{margin-top:36px;}
.page-id-18 .nsrf-reg-about .nsrf-video{margin:20px 0 28px;}

/* 28 Sep 2026 — the Customizer rule `.section-nav a` (side-menu link padding) also
   caught links in body text on About pages that sit inside the section-nav row
   (first seen on Governance, with the new Companies Registration Office link). */
.section-nav .et_pb_text a{padding:0 !important;margin-left:0 !important;border-left:0 !important;}


/* ==== Sofia homepage mock-up — 29 Sep 2026 ==================================
   Reviewers found the homepage "too much white". Six changes from Sofia's Canva
   mock-up (pages 2-3). Spec: project doc nsrf-sofia-homepage-mockup-29sep.md.
   Every selector starts with body so it beats nsrf-content-pack.css (loads later). */

/* 1. Header accent line, site-wide (the header is Theme Builder). The section is
      already position:relative; z-index:100. Replaces the 1px #E0E2EA border. */
body .et-l--header .et_pb_section_0_tb_header{border-bottom:0 !important;}
body .et-l--header .et_pb_section_0_tb_header::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:5px;pointer-events:none;
  background:linear-gradient(90deg,#27963c 0%,#e30f92 36%,#822896 68%,#2f42a0 100%);
}

/* 2. Hero H1: bigger, tighter. "Leading research," is ~601px at 72px in a 737px column. */
body.home .et_pb_section.hero h1{
  font-size:clamp(40px,5vw,72px) !important;line-height:.98 !important;letter-spacing:-.02em;
}

/* 3. WHO line in brand blue so it separates from the lede. */
body.home .et_pb_section.hero .et_pb_text_1 p{color:#2f42a0 !important;font-weight:600 !important;}

/* 4. "The NSRF at a glance": filled lilac (navy text ~6.6:1), navy on hover. */
body.home .et_pb_section.hero .et_pb_button_0{
  background-color:#9497bf !important;border-color:#9497bf !important;color:#071050 !important;
}
body.home .et_pb_section.hero .et_pb_button_0:hover,
body.home .et_pb_section.hero .et_pb_button_0:focus-visible{
  background-color:#071050 !important;border-color:#071050 !important;color:#fff !important;
}

/* 5. NSRF in Numbers: bigger numbers, labels closer. "150+" is 123px at 56px, so a 124px
      column keeps the three labels on one left edge. The <=640px stacked layout is untouched. */
body.home .et_pb_section.hero .et_pb_number_counter .percent p,
body.home .et_pb_section.hero .et_pb_number_counter .percent span{font-size:56px !important;line-height:1 !important;}
@media(min-width:641px){
  body.home .et_pb_section.hero .et_pb_number_counter{grid-template-columns:124px 1fr !important;column-gap:16px !important;}
}
@media(max-width:640px){
  body.home .et_pb_section.hero .et_pb_number_counter .percent p,
  body.home .et_pb_section.hero .et_pb_number_counter .percent span{font-size:44px !important;}
}

/* 6. Audience cards: faded band in each card's own colour, rounder top corners.
      isolation + z-index:-1 puts the tint above the card's white background but below
      its content, without position:relative on inner wrappers (that would trap the
      stretched card link). ::before is the 4px hover rule; ::after was free. */
body.home .et_pb_section_1 .et_pb_blurb{border-radius:20px 20px 12px 12px !important;isolation:isolate;}
body.home .et_pb_section_1 .et_pb_blurb::after{
  content:"";position:absolute;left:0;right:0;top:0;height:56px;z-index:-1;pointer-events:none;
}
body.home .et_pb_section_1 .et_pb_blurb_0::after{background:linear-gradient(180deg,rgba(39,150,60,.14),rgba(39,150,60,0));}
body.home .et_pb_section_1 .et_pb_blurb_1::after{background:linear-gradient(180deg,rgba(227,15,146,.12),rgba(227,15,146,0));}
body.home .et_pb_section_1 .et_pb_blurb_2::after{background:linear-gradient(180deg,rgba(130,40,150,.12),rgba(130,40,150,0));}
body.home .et_pb_section_1 .et_pb_blurb_3::after{background:linear-gradient(180deg,rgba(47,66,160,.12),rgba(47,66,160,0));}

/* ==== Website edits 1 Oct 2026 ==== */

/* Registry landing (page 18): blue banner at about a third of its previous height */
body.page-id-18 .et_pb_section_0{padding-top:28px!important;padding-bottom:30px!important;min-height:0!important}
body.page-id-18 .et_pb_section_0 .et_pb_row_0{padding-top:0!important;padding-bottom:0!important;min-height:0!important;row-gap:6px!important}
body.page-id-18 .et_pb_section_0 .et_pb_column_0{flex-direction:column!important;flex-wrap:nowrap!important;row-gap:10px!important}
body.page-id-18 .et_pb_section_0 .et_pb_heading_0{flex-basis:auto!important;width:100%!important;max-width:100%!important;gap:0!important;margin-bottom:0!important}
body.page-id-18 .et_pb_section_0 h1{font-size:clamp(30px,2vw + 14px,42px)!important;line-height:1.1!important;margin:0!important;padding:0!important}
body.page-id-18 .et_pb_section_0 .et_pb_text_0{margin:0!important}
body.page-id-18 .et_pb_section_0 .et_pb_text_0 p{padding-bottom:0!important;margin:0!important}

/* Research project pages: tighter, more academic rhythm (body class from nsrf-edits-1oct.php) */
body.nsrf-project-page h1.entry-title{font-size:1.75rem!important;line-height:1.2!important;font-weight:700!important;letter-spacing:-.01em!important;margin-bottom:8px!important;padding-bottom:0!important}
body.nsrf-project-page .nsrf-cp-project .nsrf-cp-eyebrow{margin-bottom:0!important;padding-bottom:0!important}
body.nsrf-project-page .nsrf-cp-project h2{font-size:22px!important;line-height:1.25!important;margin-top:28px!important;margin-bottom:0!important;padding-bottom:8px!important}
body.nsrf-project-page .nsrf-cp-project h3{font-size:18px!important;line-height:1.3!important;margin-top:20px!important;padding-bottom:6px!important}
body.nsrf-project-page .nsrf-cp-project p,
body.nsrf-project-page .nsrf-cp-project li{line-height:1.6!important}
body.nsrf-project-page .nsrf-cp-project p{padding-bottom:10px!important;margin-bottom:0!important}
body.nsrf-project-page .et-l--header .et_pb_breadcrumbs .et_pb_module_inner{min-width:0;max-width:100%}
body.nsrf-project-page .et_pb_breadcrumbs--current{display:inline-block;max-width:min(40ch,calc(100vw - 48px));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}

@media (max-width:600px){
  body.page-id-18 .et_pb_section_0{padding-top:22px!important;padding-bottom:24px!important}
  body.page-id-18 .et_pb_section_0 .et_pb_text_0 p{font-size:16px!important;line-height:1.45!important}
}
/* ==== Website edits 6 Oct 2026 ==== */

/* Homepage audience cards: the card grid stretched its rows by a different amount in each card, so the icons sat at
   different heights. Rows are now packed from the top, row 1 is the same height in every card, and every icon tile is a 48px square. */
body.home .et_pb_section_1 .et_pb_blurb .et_pb_blurb_content{align-content:start !important;grid-template-rows:minmax(48px,auto) auto auto !important;}
body.home .et_pb_section_1 .et_pb_blurb .et-pb-icon{display:flex !important;align-items:center;justify-content:center;width:48px !important;height:48px !important;padding:0 !important;line-height:1 !important;box-sizing:border-box;}

/* Events calendar: coming soon notice */
body .nsrf-soon{display:flex;gap:12px;align-items:flex-start;background:#f4f5fa;border-left:4px solid #822896;border-radius:8px;padding:14px 18px;margin:0 0 20px;}
body .nsrf-soon__tag{flex:none;font:700 12px/1 Outfit,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#fff;background:#822896;border-radius:999px;padding:6px 10px;}
body .nsrf-soon p{margin:0 !important;padding:0 !important;}


/* 7 Oct 2026 - imported WordPress block content in news/blog posts.
   The imports are block-editor markup (wp-block-*) inside Divi section/row wrappers. The block-library stylesheet is not loaded on this site
   and Divi's default row width (80%) indented the body relative to the title. Scoped to the post body so future imports are covered too. */
body.single-post .et_pb_post_content .et_pb_row{width:100% !important;max-width:none !important;}
body.single-post .et_pb_post_content .et_pb_text_inner{max-width:none;}
body.single-post .et_pb_post_content :is(img,video,iframe,figure,table){max-width:100% !important;}
body.single-post .et_pb_post_content img{height:auto !important;}
body.single-post .et_pb_post_content figure.wp-block-image{margin:0 0 1.5rem;}
body.single-post .et_pb_post_content figure.wp-block-image.alignright{float:right;margin:.25rem 0 1.25rem 2rem;max-width:min(45%,340px) !important;}
body.single-post .et_pb_post_content figure.wp-block-image.alignleft{float:left;margin:.25rem 2rem 1.25rem 0;max-width:min(45%,340px) !important;}
body.single-post .et_pb_post_content figure.wp-block-image.aligncenter{margin-left:auto;margin-right:auto;text-align:center;}
body.single-post .et_pb_post_content figure.wp-block-image figcaption{font-size:.9rem;line-height:1.45;color:#5A6478;margin-top:.5rem;}
body.single-post .et_pb_post_content .wp-block-buttons{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin:1.5rem 0;}
body.single-post .et_pb_post_content .wp-block-button{display:block;width:auto !important;max-width:100%;margin:0;}
body.single-post .et_pb_post_content .wp-block-button__link{display:inline-block;box-sizing:border-box;background:#071050;color:#fff !important;text-decoration:none !important;font-weight:600;font-size:15px;line-height:1.2;padding:14px 26px;border:0;border-radius:999px;text-align:center;transition:background .18s;}
body.single-post .et_pb_post_content .wp-block-button__link:hover{background:#101c44;color:#fff !important;}
body.single-post .et_pb_post_content .wp-block-button__link:focus-visible{outline:3px solid #8B7CC3;outline-offset:3px;}
body.single-post .et_pb_post_content .wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:#071050 !important;border:2px solid #071050;}
body.single-post .et_pb_post_content hr.wp-block-separator{display:flow-root;height:0;border:0;border-top:1px solid #d9d6e3;background:none;margin:1.75rem 0;opacity:1;}
body.single-post .et_pb_post_content .wp-block-columns{display:flex;flex-wrap:wrap;gap:1.5rem 2rem;margin:1.5rem 0;clear:both;}
body.single-post .et_pb_post_content .wp-block-column{flex:1 1 220px;min-width:0;}
body.single-post .et_pb_post_content .wp-block-embed__wrapper iframe{width:100%;aspect-ratio:16/9;height:auto;}
@media (max-width:767px){
body.single-post .et_pb_post_content figure.wp-block-image.alignright,body.single-post .et_pb_post_content figure.wp-block-image.alignleft{float:none;margin:0 0 1.25rem;max-width:100% !important;}
body.single-post .et_pb_post_content .wp-block-columns{display:block;}
body.single-post .et_pb_post_content .wp-block-column{margin-bottom:1.25rem;}
}

/* 7 Oct 2026 - top spacing on classic (non-builder) pages, e.g. the research cluster pages.
   Builder pages get a 28px top margin on their title; container pages had none, so the H1 sat 12px under the breadcrumb band (now 40px, same as the others). */
body.page:not(.et_pb_pagebuilder_layout) #main-content > .container{padding-top:28px !important;}

/* 7 Oct 2026 - long unbroken links/URLs in imported post text must wrap on phones rather than widen the page. */
body.single-post .et_pb_post_content{overflow-wrap:break-word;}
body.single-post .et_pb_post_content a{overflow-wrap:anywhere;}

/* ==== Visual edits 15 Oct 2026 ==== */

/* Registry landing (page 18): the blue banner was followed by ~110px of air
   (row padding-top 56px + .nsrf-reg-about margin 36px + the heading's own
   margin). Keep one deliberate gap instead. */
body.page-id-18 .et-l--post .et_pb_section_1 .et_pb_row{padding-top:0 !important;}
body.page-id-18 .nsrf-reg-about{margin-top:32px !important;}
body.page-id-18 .nsrf-reg-about .nsrf-reg-about__title{margin-top:0 !important;padding-top:0 !important;}

/* ==== Project pages 15 Oct 2026 ==== */

/* Research project pages (single research_project). Scoped to the project
   template's post content. */

/* Section bars. Today a filled paragraph; after the heading conversion an
   h2.nsrf-proj-heading. The old bar had no top or left padding and 18px of
   Divi paragraph padding underneath, so the text hugged the top-left corner. */
body.single-research_project .et_pb_post_content p.has-background,
body.single-research_project .et_pb_post_content h2.nsrf-proj-heading{
  padding:10px 16px !important;
  margin:28px 0 14px !important;
  border-radius:6px;
  font-size:18px !important;
  line-height:1.3 !important;
  font-weight:700;
  letter-spacing:0;
  text-transform:none;
}
body.single-research_project .et_pb_post_content > p.has-background:first-child,
body.single-research_project .et_pb_post_content > h2.nsrf-proj-heading:first-child{margin-top:0 !important;}

/* Bullets. Divi's default `ul{padding:0 0 23px 1em;line-height:26px}` put 23px
   under every list, and the import made each bullet its own one-item list, so
   bullets sat 23px apart. */
body.single-research_project .et_pb_post_content :is(ul,ol).wp-block-list{
  padding:0 0 0 1.2em !important;
  margin:0 0 6px !important;
  line-height:1.6 !important;
}
body.single-research_project .et_pb_post_content :is(ul,ol).wp-block-list li{margin:0 !important;padding:0 !important;}

/* ==== Project pages 19 Oct 2026 ==== */

/* One banner style for every section heading on a research project page.
   The 15 Oct rule only reached h2.nsrf-proj-heading, so records whose H2 had no
   class (Healthy Ireland and the other later additions) rendered as plain text,
   and the imported bars carried seven different inline colours (one, #90bf92
   with white text, below WCAG AA). The colour is set here once instead. */
body.single-research_project .et_pb_post_content :is(h2,p.has-background){
  background-color:#8d144a !important;
  color:#ffffff !important;
  padding:10px 16px !important;
  margin:28px 0 14px !important;
  border-radius:6px;
  font-size:18px !important;
  line-height:1.3 !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  text-transform:none;
}
body.single-research_project .et_pb_post_content :is(h2,p.has-background) a{color:inherit !important;}
body.single-research_project .et_pb_post_content > :is(h2,p.has-background):first-child{margin-top:0 !important;}

/* ==== Footer LinkedIn 19 Oct 2026 ==== */
.et-l--footer .nsrf-fnav__social{margin-top:24px;}
.et-l--footer .nsrf-fnav a.nsrf-fnav__li{display:inline-flex !important;align-items:center;justify-content:center;width:44px;height:44px;border-radius:8px;text-decoration:none !important;transition:transform .15s,opacity .15s;}
.et-l--footer .nsrf-fnav a.nsrf-fnav__li svg{display:block;width:40px;height:40px;fill:#ffffff;}
.et-l--footer .nsrf-fnav a.nsrf-fnav__li:hover{transform:translateY(-2px);opacity:.85;text-decoration:none !important;}
.et-l--footer .nsrf-fnav a.nsrf-fnav__li:focus-visible{outline:2px solid #ffffff;outline-offset:3px;}
