/* ============================================================
   CAREER ADVICE HUB  ·  nrh-art__ namespace
   Matches the approved artifact: NRH Career Advice Hub.
   ============================================================ */

/* ---- hero ------------------------------------------------- */
.nrh-art__hero {
  background: var(--nrh-primary);
  position: relative;
  overflow: hidden;
}
.nrh-art__hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(75% 110% at 10% 0%, rgba(22,64,108,.9), transparent 65%);
  pointer-events: none;
}
.nrh-art__hero-inner {
  position: relative;
  max-width: var(--nrh-measure-art);
  margin: 0 auto;
  padding: 32px 24px 44px;
}
.nrh-art__hero-crumb {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 28px;
}
.nrh-art__hero-crumb a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
}
.nrh-art__hero-crumb a:hover { color: var(--nrh-clay-200); }
.nrh-art__hero-crumb span:last-child { color: rgba(255,255,255,.8); }
.nrh-art__hero-crumb span[aria-hidden] { padding: 0 8px; }
.nrh-art__hero-title {
  font-family: Georgia, "Times New Roman", serif;
  color: #fff;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.08;
  max-width: 15ch;
  margin: 0;
}
.nrh-art__hero-sub {
  color: rgba(255,255,255,.7);
  font-size: 17px;
  line-height: 1.55;
  max-width: 58ch;
  margin: 16px 0 0;
}
.nrh-art__hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 28px;
}
.nrh-art__hero-stat-num {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--nrh-clay-200);
  font-variant-numeric: tabular-nums;
}
/* "Free" stat is white, not clay */
.nrh-art__hero-stat:nth-child(2) .nrh-art__hero-stat-num {
  color: #fff;
}
.nrh-art__hero-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
}
.nrh-art__hero-line {
  height: 3px;
  background: linear-gradient(to right, var(--nrh-clay-700), var(--nrh-clay-400), transparent);
}

/* ---- wrap ------------------------------------------------- */
.nrh-art__wrap {
  max-width: var(--nrh-measure-art);
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---- path card -------------------------------------------- */
.nrh-art__path-card {
  background: var(--nrh-surface);
  border: 1px solid var(--nrh-line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.nrh-art__path-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.nrh-art__path-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nrh-clay-600);
}
.nrh-art__path-sub {
  font-size: 14px;
  color: var(--nrh-ink-muted);
  margin: 4px 0 0;
}
.nrh-art__path-reset {
  font-size: 13px;
  font-weight: 600;
  color: var(--nrh-secondary);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--nrh-line);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.nrh-art__path-reset:hover { background: var(--nrh-paper); }

.nrh-art__path-grid {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .nrh-art__path-grid { grid-template-columns: repeat(4, 1fr); }
}
.nrh-art__path-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--nrh-line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
  width: 100%;
}
.nrh-art__path-btn {
  cursor: pointer;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}
.nrh-art__path-btn:hover {
  border-color: var(--nrh-clay-400);
  background: var(--nrh-paper);
}
.nrh-art__path-btn.is-active {
  border-color: var(--nrh-clay-600);
  background: var(--nrh-clay-t10);
}
.nrh-art__path-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nrh-art__path-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--nrh-line-soft);
  color: var(--nrh-secondary);
  flex-shrink: 0;
}
.nrh-art__path-num.is-active {
  background: var(--nrh-clay-600);
  color: #fff;
}
.nrh-art__path-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--nrh-ink);
}
.nrh-art__path-note {
  font-size: 13px;
  color: var(--nrh-ink-muted);
}
.nrh-art__path-count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nrh-clay-600);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* ---- section title ---------------------------------------- */
.nrh-art__section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  color: var(--nrh-primary);
  margin-bottom: 16px;
}

/* ---- guides list (featured + grid) ------------------------ */
.nrh-art__guides-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
/* cards inside the list after the featured item */
.nrh-art__guides-list .nrh-art__card {
  /* collected by the grid below */
}
/* Wrap the non-featured cards in a CSS grid via :has / general sibling.
   Since PHP outputs them flat, we use the cards' own class. */

/* ---- featured card (dark navy) ---------------------------- */
.nrh-art__featured {
  background: var(--nrh-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  margin-bottom: 4px;
}
.nrh-art__featured-inner {
  display: grid;
  gap: 24px;
  padding: 24px 28px;
  align-items: end;
}
@media (min-width: 768px) {
  .nrh-art__featured-inner { grid-template-columns: 1fr auto; }
}
.nrh-art__featured-badge {
  display: inline-block;
  background: var(--nrh-clay-400);
  color: var(--nrh-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.nrh-art__featured-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  margin: 12px 0 0;
}
.nrh-art__featured-title a {
  color: #fff;
  text-decoration: none;
}
.nrh-art__featured-title a:hover { color: var(--nrh-clay-200); }
.nrh-art__featured-dek {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  max-width: 60ch;
  margin: 8px 0 0;
}
.nrh-art__featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.nrh-art__featured-btn {
  display: inline-block;
  background: var(--nrh-clay-400);
  color: var(--nrh-primary);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background .15s;
}
.nrh-art__featured-btn:hover { background: var(--nrh-clay-200); }

/* ---- guide cards (3-col grid) ----------------------------- */
/* Cards that follow the featured sit in a wrapping grid.
   We use display:contents on the featured so the cards after it
   form the grid. But since PHP outputs them flat, we handle it
   with a simple CSS approach: the guides-list is a flex column,
   and the cards self-arrange via the sub-grid. */

/* Actually, let's wrap the cards in PHP. Already done. */
/* The cards render directly inside .nrh-art__guides-list. We need
   the non-featured cards to form a 3-col grid. We'll use the
   :not(.nrh-art__featured) selector. */

/* Use a self-contained approach: all cards after featured. */
.nrh-art__guides-list {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
/* Featured wrapper and card span full width */
.nrh-art__featured { grid-column: 1 / -1; }
[data-featured] { grid-column: 1 / -1; }

/* Cards form a 3-col sub-grid via a wrapper or directly */
@media (min-width: 640px) {
  .nrh-art__guides-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .nrh-art__featured { grid-column: 1 / -1; }
}

.nrh-art__card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--nrh-line);
  border-radius: 12px;
  background: var(--nrh-surface);
  transition: box-shadow .15s;
}
.nrh-art__card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.nrh-art__card-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--nrh-clay-t10);
  color: var(--nrh-clay-700);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
}
.nrh-art__card-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.25;
  margin: 12px 0 0;
}
.nrh-art__card-title a {
  color: var(--nrh-primary);
  text-decoration: none;
}
.nrh-art__card-title a:hover { color: var(--nrh-secondary); }
.nrh-art__card-dek {
  font-size: 14px;
  color: var(--nrh-ink-muted);
  line-height: 1.5;
  margin: 8px 0 0;
}
.nrh-art__card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
}
.nrh-art__card-time {
  color: var(--nrh-ink-muted);
  font-variant-numeric: tabular-nums;
}
.nrh-art__card-read {
  font-weight: 700;
  color: var(--nrh-secondary);
  text-decoration: none;
}
.nrh-art__card-read:hover { text-decoration: underline; }

.nrh-art__empty {
  color: var(--nrh-ink-muted);
  font-size: 15px;
  padding: 24px 0;
}

/* ---- roundups --------------------------------------------- */
.nrh-art__roundups {
  background: var(--nrh-surface);
  border: 1px solid var(--nrh-line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.nrh-art__roundups-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.nrh-art__roundups-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nrh-clay-600);
}
.nrh-art__roundups-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: var(--nrh-primary);
  margin: 4px 0 0;
}
.nrh-art__roundups-desc {
  font-size: 14px;
  color: var(--nrh-ink-muted);
  margin: 4px 0 0;
  line-height: 1.5;
}
.nrh-art__roundups-live {
  font-size: 14px;
  font-weight: 600;
  color: var(--nrh-clay-700);
  text-decoration: none;
  white-space: nowrap;
}
.nrh-art__roundups-live:hover { text-decoration: underline; }
.nrh-art__roundups-notice {
  background: var(--nrh-clay-t10);
  border: 1px solid var(--nrh-clay-200);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--nrh-ink-body);
  margin-bottom: 16px;
  line-height: 1.5;
}
.nrh-art__roundups-notice a {
  color: var(--nrh-clay-700);
  font-weight: 600;
  text-decoration: none;
}
.nrh-art__roundups-notice a:hover { text-decoration: underline; }
.nrh-art__roundups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nrh-art__roundup-card a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--nrh-line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .15s;
  height: 100%;
}
.nrh-art__roundup-card a:hover { border-color: var(--nrh-clay-400); }
.nrh-art__roundup-card.is-current a { border-color: var(--nrh-clay-400); }
.nrh-art__roundup-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.badge-current { color: var(--nrh-apply-ink); }
.badge-closed  { color: var(--nrh-ink-soft); }
.nrh-art__roundup-sector {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--nrh-ink-soft);
}
.nrh-art__roundup-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--nrh-primary);
  line-height: 1.3;
}
.nrh-art__roundup-month {
  font-size: 13px;
  color: var(--nrh-ink-soft);
  margin-top: auto;
}

/* ---- CTA -------------------------------------------------- */
.nrh-art__cta {
  background: var(--nrh-primary);
  border-radius: 16px;
  overflow: hidden;
}
.nrh-art__cta-inner {
  display: grid;
  gap: 20px;
  padding: 28px;
  align-items: center;
}
@media (min-width: 768px) {
  .nrh-art__cta-inner { grid-template-columns: 1fr auto; }
}
.nrh-art__cta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nrh-clay-200);
}
.nrh-art__cta-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  color: #fff;
  line-height: 1.15;
  margin: 8px 0 0;
}
.nrh-art__cta-text {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin: 8px 0 0;
  max-width: 56ch;
  line-height: 1.5;
}
.nrh-art__cta-btn {
  display: inline-block;
  background: var(--nrh-clay-400);
  color: var(--nrh-primary);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background .15s;
}
.nrh-art__cta-btn:hover { background: var(--nrh-clay-200); }

/* Dark footer bar */
.nrh-art__cta-footer {
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.25);
  padding: 16px 28px;
}
.nrh-art__cta-footer p {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
  margin: 0;
}
.nrh-art__cta-footer strong {
  color: #fff;
}

/* ---- responsive ------------------------------------------- */
@media (max-width: 600px) {
  .nrh-art__hero-inner { padding: 24px 16px 36px; }
  .nrh-art__wrap { padding: 24px 16px 36px; }
  .nrh-art__path-card { padding: 16px; }
  .nrh-art__featured-inner { padding: 20px; }
  .nrh-art__roundups-grid { grid-template-columns: 1fr; }
}

/* Featured card flattened to a plain card when filtering by stage.
   It drops the navy hero look, joins the 3-col grid, and gains the
   same badge/title/meta/CTA anatomy as every other card. */
.nrh-art-plain { grid-column: auto; }
.nrh-art-plain .nrh-art__featured {
  display: flex;
  flex-direction: column;
  background: var(--nrh-surface);
  border: 1px solid var(--nrh-line);
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow .15s;
  height: 100%;
}
.nrh-art-plain .nrh-art__featured:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.nrh-art-plain .nrh-art__featured-inner { display: contents; }
.nrh-art-plain .nrh-art__featured-body { display: contents; }
.nrh-art-plain .nrh-art__featured-dek,
.nrh-art-plain .nrh-art__featured-btn { display: none; }
.nrh-art-plain .nrh-art__featured-badge {
  background: var(--nrh-clay-t10);
  color: var(--nrh-clay-700);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  align-self: flex-start;
  order: 0;
  margin: 0;
}
.nrh-art-plain .nrh-art__featured-title {
  font-size: 18px;
  line-height: 1.25;
  margin: 12px 0 0;
  order: 1;
}
.nrh-art-plain .nrh-art__featured-title a { color: var(--nrh-primary); }
.nrh-art-plain .nrh-art__featured-title a:hover { color: var(--nrh-secondary); }
.nrh-art-plain .nrh-art__featured-meta {
  font-size: 13px;
  color: var(--nrh-ink-muted);
  margin-top: auto;
  padding-top: 16px;
  order: 2;
}
.nrh-art-plain .nrh-art__featured-meta span + span::before {
  content: "\00b7";
  margin: 0 6px;
}
