/* =========================================================================
   NSRF At a Glance — twelve-card grid, NSRF copy of 24 Aug 2026.

   The supplied artwork is seven document covers and infographics, mostly
   portrait, alongside five cards that get an icon. A uniform landscape card
   header suited neither: the covers got cropped and the icon cards read as
   missing images. Each card is a horizontal pairing instead — artwork at a
   size where it is legible, text beside it — so all twelve read as one set.
   ========================================================================= */

.nsrf-aag{
  --aag-navy:#071050;
  --aag-navy-70:rgba(7,16,80,.70);
  --aag-rule:rgba(7,16,80,.13);
  --aag-rule-soft:rgba(7,16,80,.07);
  --aag-pink:#1f3781;
  --aag-pink-wash:rgba(196,46,126,.07);
  --aag-amber:#9a6212;
  --aag-tint:#f5f7fb;
  --aag-head:'Outfit','Plus Jakarta Sans',system-ui,sans-serif;
  --aag-body:'Plus Jakarta Sans',system-ui,sans-serif;
  margin:0 0 8px;
}

/* ------------------------------------------------------------------ lede */

.nsrf-aag__lede{
  font-family:var(--aag-body) !important;
  font-size:17px !important;
  line-height:1.6 !important;
  color:var(--aag-navy-70) !important;
  max-width:62ch !important;
  margin:0 0 34px !important;
}

/* ------------------------------------------------------------------ grid */

.nsrf-aag__grid{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.nsrf-aag__grid > li{
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
  display:flex;
}
.nsrf-aag__grid > li::before{ content:none !important; }

/* ------------------------------------------------------------------ card */

.nsrf-aag__link{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:18px;
  width:100%;
  padding:20px 20px 20px 20px;
  background:#fff;
  border:1px solid var(--aag-rule);
  border-radius:10px;
  text-decoration:none !important;
  color:var(--aag-navy);
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s cubic-bezier(.2,.7,.3,1);
}

a.nsrf-aag__link:hover,
a.nsrf-aag__link:focus-visible{
  border-color:rgba(196,46,126,.42);
  box-shadow:0 16px 30px -20px rgba(7,16,80,.5);
  transform:translateY(-2px);
}

a.nsrf-aag__link:focus-visible{
  outline:2px solid var(--aag-pink);
  outline-offset:3px;
}

/* --------------------------------------------------------------- artwork */

.nsrf-aag__visual{
  flex:none;
  width:104px;
  height:130px;
  border-radius:6px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s cubic-bezier(.2,.7,.3,1);
}

.nsrf-aag__card.has-image .nsrf-aag__visual{
  background:#fff;
  border:1px solid var(--aag-rule-soft);
  box-shadow:0 4px 10px -6px rgba(7,16,80,.4);
}

.nsrf-aag__card.has-icon .nsrf-aag__visual{
  background:var(--aag-pink-wash);
}

a.nsrf-aag__link:hover .nsrf-aag__visual{ transform:translateY(-1px) scale(1.015); }

img.nsrf-aag__img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
  display:block;
  margin:0 !important;
}

.nsrf-aag__icon{
  width:34px;
  height:34px;
  color:var(--aag-pink);
}

/* ------------------------------------------------------------------ text */

.nsrf-aag__body{
  display:flex;
  flex-direction:column;
  gap:7px;
  flex:1 1 auto;
  min-width:0;
  padding-right:16px;
}

.nsrf-aag__title{
  font-family:var(--aag-head) !important;
  font-size:16.5px !important;
  line-height:1.28 !important;
  font-weight:600 !important;
  letter-spacing:-.01em !important;
  color:var(--aag-navy) !important;
  margin:0 !important;
  padding:0 !important;
  text-wrap:balance;
}

a.nsrf-aag__link:hover .nsrf-aag__title{ color:var(--aag-pink) !important; }

.nsrf-aag__tag{
  display:inline-block;
  vertical-align:2px;
  font-family:var(--aag-head);
  font-size:9px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--aag-navy-70);
  border:1px solid var(--aag-rule);
  border-radius:2px;
  padding:1px 4px;
  margin-left:5px;
}

.nsrf-aag__desc{
  font-family:var(--aag-body) !important;
  font-size:13.5px !important;
  line-height:1.5 !important;
  color:var(--aag-navy-70) !important;
  margin:0 !important;
  max-width:none !important;
}

/* Arrow sits top-right, level with the title, so card feet stay clean. */
.nsrf-aag__cue{
  position:absolute;
  top:20px;
  right:18px;
  font-size:15px;
  line-height:1;
  color:rgba(7,16,80,.32);
  transition:transform .18s cubic-bezier(.2,.7,.3,1), color .18s ease;
}

a.nsrf-aag__link:hover .nsrf-aag__cue{
  transform:translateX(4px);
  color:var(--aag-pink);
}

/* -------------------------------------------------------- pending state */

.nsrf-aag__card.is-pending .nsrf-aag__link{
  background:var(--aag-tint);
  border-style:dashed;
  cursor:default;
}
.nsrf-aag__card.is-pending .nsrf-aag__title{ color:var(--aag-navy-70) !important; }

.nsrf-aag__pending{
  align-self:flex-start;
  margin-top:2px;
  font-family:var(--aag-head);
  font-size:10px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--aag-amber);
}

/* ---------------------------------------------------------- responsive */

@media (max-width:820px){
  .nsrf-aag__grid{ grid-template-columns:minmax(0,1fr); }
}

@media (max-width:640px){
  .nsrf-aag__grid{ grid-template-columns:minmax(0,1fr); gap:14px; }
  .nsrf-aag__link{ gap:15px; padding:16px; }
  .nsrf-aag__visual{ width:84px; height:106px; }
  .nsrf-aag__icon{ width:28px; height:28px; }
  .nsrf-aag__lede{ font-size:16px !important; margin-bottom:26px !important; }
  .nsrf-aag__cue{ top:16px; right:14px; }
  .nsrf-aag__body{ padding-right:14px; }
}

@media (prefers-reduced-motion:reduce){
  .nsrf-aag__link,
  .nsrf-aag__visual,
  .nsrf-aag__cue{ transition-duration:.01ms !important; }
  a.nsrf-aag__link:hover{ transform:none; }
  a.nsrf-aag__link:hover .nsrf-aag__visual{ transform:none; }
}

/* ------------------------------------------------- page 20 section gap

   Divi leaves a large empty band between the page title and the first
   module on this template. With the grid as the only content it read as a
   fault rather than breathing room.
   -------------------------------------------------------------------- */

body.page-id-20 .et_pb_section:has(.nsrf-aag){ padding-top:26px; }
body.page-id-20 .et_pb_row:has(.nsrf-aag){ padding-top:0; padding-bottom:8px; }

/* ------------------------------------------------------------ container

   Page 20 has no Divi row of its own, so its content rendered full-bleed
   while every other element on the page sat in the 1280px container. These
   line the title, lede and grid up with the breadcrumb above them.
   -------------------------------------------------------------------- */

body.page-id-20 .entry-content,
.entry-content:has(> .nsrf-aag){
  max-width:1280px;
  margin-left:auto;
  margin-right:auto;
  padding:0 80px 56px;
}

body.page-id-20 h1.nsrf-title-fallback{
  margin:0 0 14px;
}

@media (max-width:980px){
  body.page-id-20 .entry-content,
  .entry-content:has(> .nsrf-aag){ padding:0 40px 44px; }
}

@media (max-width:640px){
  body.page-id-20 .entry-content,
  .entry-content:has(> .nsrf-aag){ padding:0 20px 36px; }
}

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

/* At a Glance: colour identity per card. Four brand hues cycle through the
   twelve cards. Hues are decorative only; all text stays navy. */
.nsrf-aag__grid > li{ --aag-c:#2f42a0; --aag-c-rgb:47,66,160; }
.nsrf-aag__grid > li:nth-child(4n+2){ --aag-c:#b5097f; --aag-c-rgb:181,9,127; }
.nsrf-aag__grid > li:nth-child(4n+3){ --aag-c:#822896; --aag-c-rgb:130,40,150; }
.nsrf-aag__grid > li:nth-child(4n+4){ --aag-c:#1b6a28; --aag-c-rgb:27,106,40; }

.nsrf-aag__link{
  background:
    linear-gradient(135deg, rgba(var(--aag-c-rgb),.085) 0%, rgba(var(--aag-c-rgb),.025) 52%, rgba(255,255,255,0) 100%),
    #fff;
  box-shadow:inset 0 3px 0 var(--aag-c);
}

a.nsrf-aag__link:hover,
a.nsrf-aag__link:focus-visible{
  border-color:rgba(var(--aag-c-rgb),.45);
  box-shadow:inset 0 3px 0 var(--aag-c), 0 16px 30px -20px rgba(7,16,80,.5);
}

/* Icon cards: panel and icon take the card's hue instead of one flat pink. */
.nsrf-aag__card.has-icon .nsrf-aag__visual{ background:rgba(var(--aag-c-rgb),.11); }
.nsrf-aag__icon{ color:var(--aag-c); }
a.nsrf-aag__link:hover .nsrf-aag__cue{ color:var(--aag-c); }

/* "Coming shortly" cards stay quiet and dashed. */
.nsrf-aag__card.is-pending .nsrf-aag__link{ background:var(--aag-tint); box-shadow:none; }

/* Title: brand-gradient bar under the heading. */
body.page-id-20 h1.nsrf-title-fallback,
body.page-id-20 .entry-content > h1,
body.page-id-20 h1.entry-title{ position:relative; padding-bottom:18px; margin-bottom:22px; }
body.page-id-20 h1.nsrf-title-fallback::after,
body.page-id-20 .entry-content > h1::after,
body.page-id-20 h1.entry-title::after{
  content:""; position:absolute; left:0; bottom:0;
  width:112px; height:6px; border-radius:999px;
  background:linear-gradient(90deg,#27963c 0%,#e30f92 38%,#822896 68%,#2f42a0 100%);
}

/* Intro: two soft rounded washes behind the title and lede (decorative,
   sits behind content, never intercepts clicks). */
.entry-content:has(> .nsrf-aag){ position:relative; isolation:isolate; }
.entry-content:has(> .nsrf-aag)::before{
  content:""; position:absolute; z-index:-1; pointer-events:none;
  top:-40px; right:0; width:min(560px,62%); height:340px;
  border-radius:48% 52% 55% 45% / 55% 45% 55% 45%;
  background:
    radial-gradient(closest-side at 62% 45%, rgba(130,40,150,.12), rgba(130,40,150,0)),
    radial-gradient(closest-side at 28% 70%, rgba(47,66,160,.09), rgba(47,66,160,0));
}

@media (max-width:640px){
  .entry-content:has(> .nsrf-aag)::before{ width:80%; height:240px; top:-20px; }
  body.page-id-20 h1.nsrf-title-fallback::after,
  body.page-id-20 .entry-content > h1::after,
  body.page-id-20 h1.entry-title::after{ width:84px; height:5px; }
}
