/*
Theme Name: StudentIncome Refresh (Wordmark)
Theme URI: https://studentincome.ca/
Description: A restrained, accessible child theme for StudentIncome.ca.
Author: StudentIncome.ca
Template: studentincome
Version: 1.5.26
Text Domain: studentincome
*/

:root {
  --refresh-ink: #172033;
  --refresh-muted: #53627a;
  --refresh-navy: #112a46;
  --refresh-blue: #003a8f;
  --refresh-blue-dark: #00285f;
  --refresh-green: #126b24;
  --refresh-surface: #ffffff;
  --refresh-paper: #f4f7fb;
  --refresh-line: #d7e0eb;
  --refresh-accent: #dceef0;
  --refresh-warm: #f5eadb;
  --refresh-radius: 12px;
  --refresh-shadow: 0 8px 22px rgba(18, 42, 70, .08);
}

html { scroll-behavior: smooth; }
body { background: var(--refresh-paper); color: var(--refresh-ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: var(--refresh-blue); }
a:hover { color: var(--refresh-blue-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #0b3d91; outline-offset: 3px; box-shadow: 0 0 0 2px #fff; }

.site-header { background: var(--refresh-navy); }
.header-inner { background: transparent; }
.menu-toggle { border-color: var(--refresh-blue); background: var(--refresh-blue); color: #fff; }
.menu-toggle:hover { background: var(--refresh-blue-dark); }
.primary-nav a { color: #e7f0f8; }
.primary-nav a:hover, .primary-nav a:focus-visible { background: rgba(255,255,255,.14); }
.sidebar-pitch { color: #d3e0ed; }

.site-main { padding-top: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 4.5rem); }
.home-title h1, .article-header h1 { color: var(--refresh-ink); letter-spacing: -.035em; }
.home-title p, .article-header > p:not(.eyebrow), .job-disclosure { color: var(--refresh-muted); }
.hero, .opportunity-hero { background: linear-gradient(135deg, #112a46, #1a6272); }
.button, .filter-bar button, .header-search button { background: var(--refresh-blue); border-radius: 8px; }
.button:hover, .filter-bar button:hover, .header-search button:hover { background: var(--refresh-blue-dark); }
.opportunity-hero-actions .button { background: var(--refresh-blue); color: #fff; }
.opportunity-hero-actions .button:hover { background: var(--refresh-blue-dark); color: #fff; }

.filter-bar { background: var(--refresh-accent); border: 1px solid #c6dfe3; border-radius: var(--refresh-radius); }
.filter-bar label { color: var(--refresh-ink); }
.filter-bar input, .filter-bar select, .header-search input { min-height: 2.75rem; border-color: #aebdce; border-radius: 8px; }
.opportunity-grid, .job-grid { gap: 1rem; }
.opportunity-card, .job-card, .article-content { background: var(--refresh-surface); border: 1px solid var(--refresh-line); border-radius: var(--refresh-radius); box-shadow: var(--refresh-shadow); }
.opportunity-card { padding: 1.1rem; }
.opportunity-card:hover, .opportunity-card:focus-within { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(18, 42, 70, .13); }
.opportunity-card h2 a, .opportunity-card h3 a, .job-card h2 a, .job-card h3 a { color: var(--refresh-navy); }
.tagline, .job-fit, .job-posted, .job-location { color: var(--refresh-muted); }
.card-footer { border-color: var(--refresh-line); }
.ad-placeholder { border-color: #9db4c9; background: #edf3f8; color: #52677e; min-height: 84px; }
.ad-placeholder.ad-card { background: #edf3f8; }
.notice { border-left-color: #c47b2e; background: var(--refresh-warm); color: #3b2d1b; }
.key-facts .fact, .job-facts span { background: #edf6f4; }
.article-content h2, .section-heading h2 { color: var(--refresh-navy); }
.eyebrow, .meta-label, .card-chips span { color: var(--refresh-green); }
.pagination a, .pagination span { border-color: var(--refresh-line); }
.pagination .current { background: var(--refresh-navy); }
.site-footer { background: var(--refresh-navy); }

.job-disclosure { max-width: 820px; padding: .8rem 1rem; border-left: 4px solid #78aeb4; background: #eaf5f5; }
.job-fit { padding: .45rem .65rem; border-radius: 7px; background: #f0f4f8; }
.job-fit strong { color: var(--refresh-navy); }
.job-source-note { color: var(--refresh-muted); font-size: .9rem; }
.match-explanation { margin-top: .4rem; color: var(--refresh-muted); font-size: .85rem; }

@media (max-width: 599px) {
  .site-main { padding-left: 1rem; padding-right: 1rem; }
  .home-tools { width: 100%; }
  .article-content { padding: 1rem; }
  .job-facts-detail { grid-template-columns: 1fr; }
}
@media (max-width: 999px) {
  .menu-toggle { margin-top: .75rem; }
}
@media (max-width: 540px) {
  .opportunity-grid, .job-grid { grid-template-columns: 1fr; }
  .opportunity-card h2 { font-size: 1rem; }
  .student-guide-card h3 { font-size: 1.03rem; }
  .opportunity-card .tagline { font-size: .9rem; line-height: 1.4; }
  .card-chips>span { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opportunity-card, .opportunity-card:hover, .opportunity-card:focus-within { transform: none; transition: none; }
}


/* Put the full brand mark above the homepage title instead of in the sidebar. */
.home-brand-lockup { display: flex; align-items: center; gap: 1.15rem; margin: 0 0 1.35rem; }
.home-brand-logo { display: block; flex: 0 0 170px; width: 170px; line-height: 0; }
.home-brand-logo img { display: block; width: 100%; height: auto; }
.home-brand-lockup p { max-width: 30rem; margin: 0; color: var(--refresh-navy); font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 650; line-height: 1.4; }
@media (min-width: 1000px) { .site-header .header-inner { display: none; } }
@media (max-width: 999px) {
  .site-header .header-inner { justify-content: flex-end; padding: .5rem 1rem; }
  .site-header .menu-toggle { margin-top: 0; }
}
@media (max-width: 540px) {
  .home-brand-lockup { gap: .8rem; margin-bottom: 1rem; }
  .home-brand-logo { flex-basis: 120px; width: 120px; }
  .home-brand-lockup p { font-size: .9rem; }
}

/* Keep the assessment heading, note, and fact values visually grouped. */
.opportunity-facts .opportunity-facts-intro {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.7fr);
  align-items: end;
  gap: .65rem 2rem;
}
.opportunity-facts-heading { min-width: 0; }
.opportunity-facts-heading .eyebrow { margin: 0 0 .2rem; }
.opportunity-facts .opportunity-facts-heading h2 { max-width: none; line-height: 1.15; }
.opportunity-facts .opportunity-facts-note { max-width: none; margin: 0 0 .1rem; color: var(--muted); }

.opportunity-facts .fact {
  grid-template-columns: 2rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: start;
  row-gap: .12rem;
}
.opportunity-facts .fact-icon { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.opportunity-facts .fact .meta-label { grid-column: 2; grid-row: 1; margin: 0; align-self: end; line-height: 1.2; }
.opportunity-facts .fact > strong { grid-column: 2; grid-row: 2; margin: 0; align-self: start; line-height: 1.35; }

.opportunity-detail .article-layout { display: block; width: 100%; max-width: 1160px; margin: 0 auto; }
.opportunity-detail .article-content { max-width: none; margin: 0; }
.opportunity-detail .article-content p,
.opportunity-detail .article-content li { max-width: 80ch; }
.opportunity-detail .article-content #si-section-quick-overview + p { max-width: 90ch; }

/* Use the article panel's full width with a clear heading column and readable body column. */
.opportunity-detail .article-content .article-content-section {
  padding: clamp(1.25rem, 2.6vw, 2rem) 0;
  border-top: 1px solid var(--refresh-line);
}
.opportunity-detail .article-content .article-content-section > h2 {
  max-width: none;
  margin: 0 0 .55rem;
  padding-top: 0;
  border-top: 0;
  line-height: 1.2;
}
.opportunity-detail .article-content .article-content-section-copy {
  min-width: 0;
}
.opportunity-detail .article-content .article-content-section-copy > p,
.opportunity-detail .article-content .article-content-section-copy li {
  max-width: none;
}
.opportunity-detail .article-content .article-content-section-copy > :first-child { margin-top: 0; }
.opportunity-detail .article-content .article-content-section-copy > :last-child { margin-bottom: 0; }
.opportunity-detail .article-content .article-content-intro { width: 100%; }
@media (min-width: 900px) {
  .opportunity-detail .article-content .article-content-section {
    display: grid;
    grid-template-columns: minmax(13rem, .38fr) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
  }
  .opportunity-detail .article-content .article-content-section > h2 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .opportunity-detail .article-content .article-content-section-copy {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (min-width: 1400px) {
  .opportunity-detail .opportunity-ad-rail { display: block; position: static; width: 100%; }
}

@media (max-width: 700px) {
  .opportunity-facts .opportunity-facts-intro { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .opportunity-facts .opportunity-facts-note { margin: 0; }
}

/* Give student job guides the same spacious, editorial rhythm as opportunity pages. */
.student-guide-main { max-width: 1560px; }
.student-guide-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1rem, 2.4vw, 2.5rem);
  overflow: hidden;
}
.student-guide-article { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.student-guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 15rem;
  margin: 0;
  padding: clamp(1.5rem, 3.5vw, 3.25rem);
  border: 1px solid #d5e1ed;
  border-left: 5px solid var(--refresh-green);
  border-radius: 18px;
  background: linear-gradient(118deg, #eaf3fb 0%, #f7faff 57%, #e9f5f0 100%);
}
.student-guide-hero .article-header { max-width: none; margin: 0; }
.student-guide-hero .article-header .eyebrow { margin: 0 0 .7rem; color: var(--refresh-blue); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.student-guide-hero .article-header h1 { max-width: 18ch; margin: 0; color: var(--refresh-navy); font-size: clamp(2.2rem, 4.2vw, 4rem); letter-spacing: -.045em; line-height: 1.03; }
.student-guide-hero .guide-lede { max-width: 48rem; margin: 0; padding-left: clamp(1rem, 2vw, 1.5rem); border-left: 2px solid #9dc4bd; color: var(--refresh-ink); font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.55; }
.student-guide-hero .guide-lede p { max-width: none; margin: 0; }
.student-guide-article > .notice { max-width: none; margin: 0; border-radius: 0 10px 10px 0; }

.student-guide-article .guide-quick {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid #d4e8e2;
  border-radius: 14px;
  background: #f4faf8;
}
.student-guide-article .guide-label,
.student-guide-article .guide-jump-label,
.student-guide-article .guide-card-label { color: var(--refresh-blue); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.student-guide-article .guide-quick .guide-label { margin: 0 0 .75rem; }
.student-guide-article .guide-quick ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.student-guide-article .guide-quick li { position: relative; min-width: 0; margin: 0; padding: .9rem 1rem .9rem 2.7rem; border: 1px solid #d9e9e5; border-radius: 10px; background: #fff; }
.student-guide-article .guide-quick li::before { position: absolute; top: .92rem; left: .95rem; display: grid; width: 1.15rem; height: 1.15rem; place-items: center; border-radius: 50%; background: #dcefe9; color: #126b58; content: "✓"; font-size: .75rem; font-weight: 900; }
.student-guide-article .guide-quick li strong { color: var(--refresh-navy); }

.student-guide-article .guide-jump {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--refresh-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 42, 70, .045);
  counter-reset: guide-jump;
}
.student-guide-article .guide-jump-label { grid-column: 1 / -1; margin: 0 0 .2rem; }
.student-guide-article .guide-jump a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  min-height: 3.5rem;
  padding: .7rem .85rem;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  background: #f7faff;
  color: var(--refresh-navy);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
  counter-increment: guide-jump;
}
.student-guide-article .guide-jump a::before { color: var(--refresh-blue); content: counter(guide-jump, decimal-leading-zero); font-size: .82rem; font-weight: 850; }
.student-guide-article .guide-jump a::after { color: var(--refresh-blue); content: "→"; font-size: 1.1rem; }
.student-guide-article .guide-jump a:hover { transform: translateY(-1px); border-color: #a8c6e9; background: #eef5ff; }

.student-guide-article .guide-section {
  display: grid;
  grid-template-columns: minmax(14rem, .38fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--refresh-line);
  scroll-margin-top: 1.5rem;
}
.student-guide-article .guide-section > h2 { grid-column: 1; margin: 0; color: var(--refresh-navy); font-size: clamp(1.45rem, 2.2vw, 2rem); letter-spacing: -.025em; line-height: 1.15; }
.student-guide-article .guide-section > p,
.student-guide-article .guide-section > .guide-tip,
.student-guide-article .guide-section > .guide-callout,
.student-guide-article .guide-section > .guide-caution,
.student-guide-article .guide-section > .guide-info-card,
.student-guide-article .guide-section > .guide-example,
.student-guide-article .guide-section > .guide-card-grid,
.student-guide-article .guide-section > .guide-choice-grid { grid-column: 2; max-width: 100ch; }
.student-guide-article .guide-section > :nth-child(2) { grid-row: 1; margin-top: 0; }
.student-guide-article .guide-section > :not(h2):not(:nth-child(2)) { grid-row: auto; }
.student-guide-article .guide-section > p { margin: .75rem 0 0; }
.student-guide-article .guide-section > :nth-child(2) + p { margin-top: .85rem; }
.student-guide-article .guide-section a { font-weight: 650; text-underline-offset: .16em; }
.student-guide-article .guide-tip,
.student-guide-article .guide-callout,
.student-guide-article .guide-caution,
.student-guide-article .guide-info-card,
.student-guide-article .guide-example { margin-top: 1rem; padding: 1rem 1.15rem; border-left: 4px solid #77aa9f; border-radius: 0 10px 10px 0; background: #edf6f4; color: var(--refresh-ink); }
.student-guide-article .guide-caution { border-left-color: #c47b2e; background: #fff5e9; }
.student-guide-article .guide-example { border-left-color: var(--refresh-blue); background: #eef4fb; }

.student-guide-article .guide-action {
  margin: .5rem 0;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border: 1px solid #cfe3df;
  border-radius: 16px;
  background: linear-gradient(135deg, #edf6f4, #f5f9fc);
  scroll-margin-top: 1.5rem;
}
.student-guide-article .guide-action > .guide-label { margin: 0 0 .3rem; }
.student-guide-article .guide-action > h2 { margin: 0 0 .5rem; color: var(--refresh-navy); font-size: clamp(1.6rem, 2.4vw, 2.25rem); letter-spacing: -.03em; line-height: 1.15; }
.student-guide-article .guide-action > p:not(.guide-label) { max-width: 70ch; margin: 0 0 1.25rem; color: var(--refresh-muted); }
.student-guide-article .guide-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.student-guide-article .guide-step { min-width: 0; padding: 1rem; border: 1px solid #dce6ee; border-radius: 12px; background: #fff; color: var(--refresh-muted); }
.student-guide-article .guide-step-number { display: grid; width: 2rem; height: 2rem; margin: 0 0 .7rem; place-items: center; border-radius: 50%; background: var(--refresh-blue); color: #fff; font-size: .9rem; font-weight: 800; }
.student-guide-article .guide-step strong { display: block; margin-bottom: .3rem; color: var(--refresh-navy); }
.student-guide-article .guide-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem; }
.student-guide-article .guide-choice { padding: 1rem 1.1rem; border: 1px solid var(--refresh-line); border-radius: 12px; background: #f7faff; }
.student-guide-article .guide-sources { margin: 0; padding: 1rem 1.2rem; border: 1px solid var(--refresh-line); border-radius: 12px; background: #f7faff; scroll-margin-top: 1.5rem; }
.student-guide-article .guide-sources summary { color: var(--refresh-navy); font-weight: 750; cursor: pointer; }
.student-guide-article .guide-sources[open] summary { margin-bottom: .65rem; }
.student-guide-article .guide-sources p { max-width: 100ch; margin: 0; color: var(--refresh-muted); font-size: .94rem; }

.student-guide-article .guide-related { padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--refresh-line); }
.student-guide-article .guide-related > h2 { margin: 0 0 1rem; color: var(--refresh-navy); font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.025em; }
.student-guide-article .guide-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: .85rem; margin: 1rem 0 0; }
.student-guide-article .guide-card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.student-guide-article .guide-link-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 12rem; gap: .5rem; padding: 1.1rem; border: 1px solid #d5e0eb; border-radius: 13px; background: #fff; box-shadow: 0 4px 12px rgba(18, 42, 70, .05); color: var(--refresh-ink); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.student-guide-article .guide-link-card:hover { transform: translateY(-2px); border-color: #9dc4bd; box-shadow: 0 10px 20px rgba(18, 42, 70, .1); }
.student-guide-article .guide-card-label { padding: .22rem .48rem; border-radius: 999px; background: #eaf3fb; font-size: .68rem; letter-spacing: .06em; }
.student-guide-article .guide-link-card strong { color: var(--refresh-navy); font-size: 1.08rem; line-height: 1.25; }
.student-guide-article .guide-link-card > span:not(.guide-card-label):not(.guide-card-cta) { color: var(--refresh-muted); font-size: .92rem; }
.student-guide-article .guide-card-cta { margin-top: auto; padding-top: .55rem; color: var(--refresh-blue); font-weight: 750; }

@media (max-width: 999px) {
  .student-guide-hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .student-guide-article .guide-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-guide-article .guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-guide-article .guide-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .student-guide-content { padding: .9rem; }
  .student-guide-hero { min-height: 0; padding: 1.25rem; }
  .student-guide-hero .article-header h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .student-guide-hero .guide-lede { padding-left: .85rem; font-size: 1rem; }
  .student-guide-article .guide-quick { padding: 1rem; }
  .student-guide-article .guide-quick ul { grid-template-columns: 1fr; }
  .student-guide-article .guide-section { grid-template-columns: minmax(0, 1fr); row-gap: .55rem; padding: 1.35rem 0; }
  .student-guide-article .guide-section > h2,
  .student-guide-article .guide-section > p,
  .student-guide-article .guide-section > .guide-tip,
  .student-guide-article .guide-section > .guide-callout,
  .student-guide-article .guide-section > .guide-caution,
  .student-guide-article .guide-section > .guide-info-card,
  .student-guide-article .guide-section > .guide-example,
  .student-guide-article .guide-section > .guide-card-grid,
  .student-guide-article .guide-section > .guide-choice-grid { grid-column: 1; }
  .student-guide-article .guide-section > h2 { grid-row: auto; margin-bottom: .15rem; }
  .student-guide-article .guide-section > :nth-child(2) { grid-row: auto; }
}
@media (max-width: 540px) {
  .student-guide-article .guide-jump,
  .student-guide-article .guide-steps,
  .student-guide-article .guide-card-grid,
  .student-guide-article .guide-card-grid-2,
  .student-guide-article .guide-choice-grid { grid-template-columns: 1fr; }
  .student-guide-article .guide-link-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .student-guide-article .guide-jump a,
  .student-guide-article .guide-link-card { transition: none; }
  .student-guide-article .guide-jump a:hover,
  .student-guide-article .guide-link-card:hover { transform: none; }
}

/* Keep long guide titles from dominating the hero on medium desktop widths. */
.student-guide-hero { grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); gap: clamp(1.25rem, 3vw, 3rem); }
.student-guide-hero .article-header h1 { max-width: 22ch; font-size: clamp(2.1rem, 3.5vw, 3.45rem); }
@media (max-width: 999px) { .student-guide-hero { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1000px) { .student-guide-article .guide-steps { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); } }

/* A clearer homepage masthead and opportunity discovery flow. */
.home-brand-lockup { align-items: center; gap: 1rem; margin: 0 0 1rem; }
.home-brand-logo { flex-basis: 140px; width: 140px; padding: .35rem .55rem; border: 1px solid var(--refresh-line); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(18, 42, 70, .08); }
.home-brand-lockup p { max-width: 32rem; padding-left: 1rem; border-left: 3px solid var(--refresh-green); color: var(--refresh-navy); font-size: clamp(.95rem, 1.2vw, 1.1rem); font-weight: 650; }

.home-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin: 0 0 1.75rem;
  padding: clamp(1.4rem, 3vw, 2.75rem);
  overflow: hidden;
  border: 1px solid #d5e1ed;
  border-left: 5px solid var(--refresh-green);
  border-radius: 18px;
  background: linear-gradient(118deg, #eaf3fb 0%, #f7faff 57%, #e9f5f0 100%);
  box-shadow: 0 12px 28px rgba(18, 42, 70, .08);
}
.home-title { max-width: 48rem; }
.home-title .home-kicker { margin: 0 0 .65rem; color: var(--refresh-blue); font-size: .75rem; letter-spacing: .12em; }
.home-title h1 { max-width: 15ch; margin: 0 0 .7rem; color: var(--refresh-navy); font-size: clamp(2.35rem, 4vw, 4rem); letter-spacing: -.045em; line-height: 1.02; }
.home-title > p:last-child { max-width: 42rem; margin: 0; color: var(--refresh-muted); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.5; }
.home-tools { display: grid; gap: .75rem; width: 100%; padding: 1rem; border: 1px solid #dce5ee; border-radius: 14px; background: rgba(255, 255, 255, .92); box-shadow: 0 5px 16px rgba(18, 42, 70, .06); }
.home-tools .header-search { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; width: 100%; padding: 0; }
.home-tools .header-search input, .home-tools .header-search button { min-height: 2.9rem; margin: 0; }
.home-tools .header-search input { min-width: 0; padding: .6rem .8rem; border: 1px solid #cbd7e3; border-radius: 9px; background: #fff; font: inherit; }
.home-tools .header-search button { padding: .6rem 1rem; border-radius: 9px; background: var(--refresh-blue); color: #fff; font: inherit; font-weight: 700; }
.home-filter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .55rem; }
.home-filter label { color: var(--refresh-ink); font-size: .86rem; font-weight: 700; }
.home-filter select { min-width: 0; min-height: 2.8rem; padding: .5rem 2rem .5rem .7rem; border: 1px solid #cbd7e3; border-radius: 9px; background: #fff; color: var(--refresh-ink); font: inherit; }
.home-filter button { min-height: 2.8rem; padding: .5rem .9rem; border: 0; border-radius: 9px; background: var(--refresh-navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.home-tools button:hover { filter: brightness(.92); }

.ad-leaderboard { min-height: 72px; margin: 0 0 1.75rem; border-radius: 10px; }
.opportunity-list-heading, .student-guides .section-heading, .student-jobs-preview .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin: 0 0 1rem; }
.opportunity-list-heading .eyebrow { margin: 0 0 .2rem; color: var(--refresh-green); }
.opportunity-list-heading h2, .student-guides .section-heading h2, .student-jobs-preview .section-heading h2 { margin: 0; color: var(--refresh-navy); font-size: clamp(1.45rem, 2.3vw, 2rem); letter-spacing: -.025em; line-height: 1.15; }
.opportunity-list-heading > p, .student-guides .section-heading p, .student-jobs-preview .section-heading p { max-width: 34rem; margin: 0; color: var(--refresh-muted); font-size: .95rem; }
.home-opportunity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; align-items: stretch; }
#opportunities .home-opportunity-grid .opportunity-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #d5e0eb; border-radius: 16px; background: #fff; box-shadow: 0 5px 16px rgba(18, 42, 70, .07); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
#opportunities .home-opportunity-grid .opportunity-card:hover, #opportunities .home-opportunity-grid .opportunity-card:focus-within { transform: translateY(-3px); border-color: #9dc4bd; box-shadow: 0 15px 28px rgba(18, 42, 70, .13); }
.home-opportunity-grid .opportunity-card-image { width: 100%; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; background: #eaf0f5; }
.home-opportunity-grid .opportunity-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.home-opportunity-grid .opportunity-card:hover .opportunity-card-image img, .home-opportunity-grid .opportunity-card:focus-within .opportunity-card-image img { transform: scale(1.035); }
.home-opportunity-grid .opportunity-card > .eyebrow { align-self: flex-start; margin: 1rem 1.15rem .4rem; padding: .26rem .55rem; border-radius: 999px; background: #eff5fa; color: var(--refresh-blue); font-size: .7rem; letter-spacing: .065em; }
.home-opportunity-grid .opportunity-card h2 { margin: .05rem 1.15rem .4rem; color: var(--refresh-navy); font-size: clamp(1.12rem, 1.35vw, 1.35rem); line-height: 1.2; }
.home-opportunity-grid .opportunity-card h2 a { display: flex; align-items: center; justify-content: space-between; gap: .7rem; color: inherit; text-decoration: none; }
.home-opportunity-grid .opportunity-card h2 a:hover { color: var(--refresh-blue); }
.home-opportunity-grid .card-arrow { display: inline-grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; border: 1px solid #d8e4ed; border-radius: 50%; background: #f5f8fb; color: var(--refresh-blue); font-size: 1rem; transition: background .2s ease, color .2s ease; }
.home-opportunity-grid .opportunity-card:hover .card-arrow, .home-opportunity-grid .opportunity-card:focus-within .card-arrow { border-color: var(--refresh-blue); background: var(--refresh-blue); color: #fff; }
.home-opportunity-grid .opportunity-card h2 a::before { position: absolute; z-index: 1; inset: 0; border-radius: inherit; content: ""; }
.home-opportunity-grid .opportunity-card h2 a::after { display: none !important; content: none !important; }
.home-opportunity-grid .opportunity-card h2::after { display: none !important; content: none !important; }
.home-opportunity-grid .opportunity-card:focus-within { outline: 3px solid #0b3d91; outline-offset: 3px; }
.home-opportunity-grid .opportunity-card h2 a:focus-visible { outline: none; }
.home-opportunity-grid .opportunity-card > .tagline { display: -webkit-box; min-height: 2.9em; margin: 0 1.15rem .95rem; overflow: hidden; color: var(--refresh-muted); font-size: .95rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-opportunity-grid .card-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: .55rem; margin: auto 0 0; padding: .8rem 1.15rem 1rem; border-top: 1px solid #e6edf3; }
.home-opportunity-grid .card-fact { display: flex; min-width: 0; align-items: flex-start; gap: .42rem; color: var(--refresh-green); }
.home-opportunity-grid .card-fact > svg { flex: 0 0 1.05rem; width: 1.05rem; height: 1.05rem; margin-top: .12rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.home-opportunity-grid .card-fact > span { display: grid; min-width: 0; gap: .1rem; color: var(--refresh-ink); }
.home-opportunity-grid .card-fact small { color: var(--refresh-muted); font-size: .64rem; font-weight: 750; letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; }
.home-opportunity-grid .card-fact strong { color: var(--refresh-ink); font-size: .78rem; line-height: 1.3; overflow-wrap: anywhere; }

.student-guides { margin-top: clamp(2.5rem, 5vw, 4rem); }
.student-guides .student-guide-card { padding: 1.2rem; border-top: 3px solid var(--refresh-blue); background: #fff; }
.student-guides .student-guide-card h3 { margin: 0 0 .55rem; font-size: 1.12rem; line-height: 1.3; }
.student-guides .student-guide-card .tagline { margin: 0; font-size: .92rem; line-height: 1.5; }
.student-jobs-preview { margin-top: clamp(2.5rem, 5vw, 4rem); }

@media (min-width: 1050px) { .home-opportunity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1550px) { .home-opportunity-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 799px) {
  .home-heading { grid-template-columns: minmax(0, 1fr); }
  .home-tools { max-width: none; }
}
@media (max-width: 599px) {
  .home-brand-lockup { gap: .75rem; margin-bottom: .9rem; }
  .home-brand-logo { flex-basis: 118px; width: 118px; padding: .25rem .35rem; }
  .home-brand-lockup p { padding-left: .7rem; font-size: .85rem; }
  .home-heading { gap: 1.15rem; padding: 1.2rem; border-radius: 14px; }
  .home-title h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .home-tools { padding: .75rem; }
  .home-filter { grid-template-columns: auto minmax(0, 1fr); }
  .home-filter button { grid-column: 1 / -1; }
  .opportunity-list-heading, .student-guides .section-heading, .student-jobs-preview .section-heading { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .home-opportunity-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .home-opportunity-grid .opportunity-card > .tagline { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-opportunity-grid .opportunity-card, .home-opportunity-grid .opportunity-card-image img, .home-opportunity-grid .card-arrow { transition: none; }
  .home-opportunity-grid .opportunity-card:hover .opportunity-card-image img, .home-opportunity-grid .opportunity-card:focus-within .opportunity-card-image img { transform: none; }
}

/* Replace nested homepage panels with a direct, open search-first layout. */
.home-brand-lockup {
  align-items: center;
  gap: 1.15rem;
  margin: 0 0 clamp(1.8rem, 3vw, 2.6rem);
}
.home-brand-logo {
  flex: 0 0 154px;
  width: 154px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-brand-lockup p {
  max-width: 34rem;
  padding: 0;
  border: 0;
  color: var(--refresh-navy);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 600;
}
.home-heading {
  display: block;
  margin: 0 0 1.8rem;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-title { max-width: none; }
.home-title .home-kicker { display: none; }
.home-title h1 {
  max-width: none;
  margin: 0 0 .35rem;
  color: var(--refresh-navy);
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  letter-spacing: -.045em;
  line-height: 1.08;
}
.home-title > p:last-child {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}
.home-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  width: min(100%, 920px);
  margin-top: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-tools .header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .4rem;
  min-width: 0;
  padding: .3rem;
  border: 1px solid #b8c9da;
  border-radius: 10px;
  background: #fff;
}
.home-tools .header-search input {
  min-width: 0;
  min-height: 2.85rem;
  padding: .55rem .75rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  font: inherit;
}
.home-tools .header-search button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .55rem 1.1rem;
  border: 0;
  border-radius: 8px;
  background: var(--refresh-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.home-tools .header-search button:hover { background: var(--refresh-blue-dark); }
.home-filter {
  display: flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}
.home-filter label { color: var(--refresh-muted); font-size: .9rem; font-weight: 650; }
.home-filter select {
  min-width: 10rem;
  min-height: 3.45rem;
  padding: .55rem 2rem .55rem .75rem;
  border: 1px solid #b8c9da;
  border-radius: 10px;
  background: #fff;
  color: var(--refresh-ink);
  font: inherit;
}
.home-filter button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .45rem .55rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--refresh-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.home-filter button:hover { background: #eaf1f8; }

@media (max-width: 799px) {
  .home-tools { grid-template-columns: minmax(0, 1fr); width: min(100%, 36rem); }
  .home-filter { justify-content: flex-start; }
}
@media (max-width: 599px) {
  .home-brand-lockup { gap: .8rem; margin-bottom: 1.65rem; }
  .home-brand-logo { flex-basis: 120px; width: 120px; padding: 0; }
  .home-brand-lockup p { padding: 0; font-size: .88rem; }
  .home-heading { gap: .8rem; margin-bottom: 1.4rem; padding: 0; }
  .home-title h1 { font-size: clamp(2.05rem, 9vw, 2.8rem); line-height: 1.05; }
  .home-tools { gap: .55rem; margin-top: 1rem; }
  .home-tools .header-search { width: 100%; }
  .home-tools .header-search button { padding-right: .8rem; padding-left: .8rem; }
  .home-filter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; width: 100%; }
  .home-filter select { min-width: 0; min-height: 2.85rem; }
}

/* Keep the wordmark and its plain-language promise with the opportunity navigation. */
.sidebar-brand-lockup { margin: 0 .35rem 1rem; }
.primary-nav .sidebar-brand { display: block; width: min(100%, 188px); margin: 0 auto; padding: 0; border-radius: 0; background: transparent; box-shadow: none; line-height: 0; }
.sidebar-brand img { display: block; width: 100%; height: auto; }
.sidebar-brand:focus-visible { outline-color: #ffbf47; outline-offset: 4px; }
.sidebar-brand-tagline { max-width: 12rem; margin: .55rem auto 0; color: #e1ebf7; font-size: .84rem; line-height: 1.4; }
@media (max-width: 999px) {
  .primary-nav.is-open .sidebar-brand-lockup { display: flex; align-items: center; gap: .8rem; max-width: 30rem; margin: 0 auto 1rem; }
  .primary-nav.is-open .sidebar-brand { flex: 0 0 132px; width: 132px; margin: 0; }
  .primary-nav.is-open .sidebar-brand-tagline { max-width: 15rem; margin: 0; font-size: .95rem; }
}

/* Keep the full-color footer mark compact and legible against the dark footer. */
.footer-brand { display: inline-flex; width: min(100%, 190px); margin: 0 0 .9rem; padding: .45rem .6rem; border-radius: 7px; background: #fff; line-height: 0; }
.footer-brand img { display: block; width: 100%; height: auto; }
.footer-brand:focus-visible { outline-color: #ffbf47; outline-offset: 4px; }
@media (max-width: 360px) {
  .primary-nav.is-open .sidebar-brand-lockup { gap: .6rem; }
  .primary-nav.is-open .sidebar-brand { flex-basis: 112px; width: 112px; }
  .primary-nav.is-open .sidebar-brand-tagline { font-size: .85rem; }
}

/* Give homepage opportunity facts enough room to scan without awkward wrapping. */
.home-opportunity-grid .card-chips {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: .15rem 0 0;
  padding: .55rem 1.15rem .7rem;
}
.home-opportunity-grid .card-fact {
  align-items: center;
  gap: .6rem;
  min-height: 2.35rem;
  padding: .38rem 0;
  border-bottom: 1px solid #edf1f5;
}
.home-opportunity-grid .card-fact:last-child { border-bottom: 0; }
.home-opportunity-grid .card-fact > svg { margin-top: 0; }
.home-opportunity-grid .card-fact > span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .12rem .5rem;
}
.home-opportunity-grid .card-fact small { font-size: .7rem; letter-spacing: .045em; }
.home-opportunity-grid .card-fact strong { min-width: 0; font-size: .86rem; line-height: 1.35; overflow-wrap: break-word; }

@media (min-width: 1550px) {
  .home-opportunity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 2200px) {
  .home-opportunity-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Carry the student guide editorial system onto the homepage. */
.home-heading.home-editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr);
  align-items: stretch;
  gap: clamp(1.5rem, 3.4vw, 3.5rem);
  margin: 0 0 clamp(1.35rem, 2.5vw, 2rem);
  padding: clamp(1.5rem, 3.5vw, 3.25rem);
  border: 1px solid #d5e1ed;
  border-left: 5px solid var(--refresh-green);
  border-radius: 18px;
  background: linear-gradient(118deg, #eaf3fb 0%, #f7faff 57%, #e9f5f0 100%);
  box-shadow: 0 12px 28px rgba(18, 42, 70, .08);
}
.home-editorial-hero .home-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 58rem;
}
.home-editorial-hero .home-title .home-kicker {
  display: block;
  margin: 0 0 .75rem;
  color: var(--refresh-blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-editorial-hero .home-title h1 {
  max-width: 16ch;
  margin: 0 0 .75rem;
  color: var(--refresh-navy);
  font-size: clamp(2.35rem, 4.2vw, 4.15rem);
  letter-spacing: -.045em;
  line-height: 1.02;
}
.home-editorial-hero .home-title > p:last-of-type {
  max-width: 50ch;
  margin: 0;
  color: var(--refresh-ink);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}
.home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.4rem; }
.home-hero-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .7rem 1rem; background: var(--refresh-blue); color: #fff; font-weight: 750; text-decoration: none; }
.home-hero-actions .button:hover { background: var(--refresh-blue-dark); color: #fff; }
.home-hero-text-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; color: var(--refresh-navy); font-weight: 750; text-underline-offset: .2em; }
.home-hero-text-link:hover { color: var(--refresh-blue); }
.home-editorial-hero .home-start-panel {
  align-self: center;
  min-width: 0;
  padding-left: clamp(1.25rem, 2.4vw, 2.25rem);
  border-left: 1px solid #a9c9c1;
}
.home-start-label { margin: 0 0 .5rem; color: var(--refresh-green); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.home-start-links { margin: 0; padding: 0; list-style: none; }
.home-start-links li + li { border-top: 1px solid rgba(140, 169, 190, .38); }
.home-start-links a { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; min-height: 4.2rem; padding: .7rem .2rem; border-radius: 8px; color: var(--refresh-ink); text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.home-start-links a:hover { background: rgba(255,255,255,.65); color: var(--refresh-blue); }
.home-start-links a:focus-visible, .home-hero-actions a:focus-visible { outline: 3px solid #0b3d91; outline-offset: 3px; }
.home-start-number { color: var(--refresh-blue); font-size: .82rem; font-weight: 850; }
.home-start-copy { display: grid; gap: .12rem; min-width: 0; }
.home-start-copy strong { color: var(--refresh-navy); font-size: .97rem; line-height: 1.3; }
.home-start-copy small { color: var(--refresh-muted); font-size: .81rem; line-height: 1.35; }
.home-start-arrow { color: var(--refresh-blue); font-size: 1.15rem; transition: transform .18s ease; }
.home-start-links a:hover .home-start-arrow { transform: translateX(3px); }

.student-guides .section-heading .eyebrow { margin: 0 0 .35rem; color: var(--refresh-blue); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.home-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; align-items: stretch; }
.home-guide-grid .student-guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 13rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid #d5e0eb;
  border-left: 3px solid #7db5a5;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #f7faff 100%);
  box-shadow: 0 4px 14px rgba(18, 42, 70, .05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.home-guide-grid .student-guide-card:hover, .home-guide-grid .student-guide-card:focus-within { transform: translateY(-2px); border-color: #a8c6e9; box-shadow: 0 10px 20px rgba(18, 42, 70, .09); }
.home-guide-card-label { margin: 0 0 .8rem; color: var(--refresh-blue); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-guide-grid .student-guide-card h3 { margin: 0 0 .55rem; color: var(--refresh-navy); font-size: 1.08rem; line-height: 1.3; }
.home-guide-grid .student-guide-card h3 a { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; color: inherit; text-decoration: none; }
.home-guide-grid .student-guide-card h3::after { display: none; content: none; }
.home-guide-grid .student-guide-card h3 a:hover { color: var(--refresh-blue); }
.home-guide-grid .student-guide-card h3 a span { flex: 0 0 auto; color: var(--refresh-blue); }
.home-guide-grid .student-guide-card .tagline { margin: 0; color: var(--refresh-muted); font-size: .91rem; line-height: 1.5; }
.home-guide-grid .student-guide-card:focus-within { outline: 3px solid #0b3d91; outline-offset: 3px; }

@media (max-width: 999px) {
  .home-heading.home-editorial-hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .home-editorial-hero .home-start-panel { padding: 1rem 0 0; border-top: 1px solid #a9c9c1; border-left: 0; }
  .home-start-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem .85rem; }
  .home-start-links li + li { border-top: 0; }
  .home-start-links a { height: 100%; align-items: start; grid-template-columns: 1.7rem minmax(0, 1fr); padding: .65rem .5rem; }
  .home-start-arrow { display: none; }
}
@media (max-width: 649px) {
  .home-heading.home-editorial-hero { gap: .8rem; margin-bottom: 1.25rem; padding: 1.25rem; border-radius: 14px; }
  .home-editorial-hero .home-title .home-kicker { margin-bottom: .5rem; }
  .home-editorial-hero .home-title h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .home-hero-actions { align-items: stretch; flex-direction: column; width: 100%; margin-top: 1rem; }
  .home-hero-actions .button { width: 100%; }
  .home-hero-text-link { justify-content: center; }
  .home-editorial-hero .home-start-panel { padding-top: .75rem; }
  .home-start-links { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-start-links li + li { border-top: 1px solid rgba(140, 169, 190, .38); }
  .home-start-links a { grid-template-columns: 1.8rem minmax(0, 1fr) auto; min-height: 3.75rem; }
  .home-start-arrow { display: inline; }
  .home-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .home-guide-grid .student-guide-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-start-links a, .home-start-arrow, .home-guide-grid .student-guide-card { transition: none; }
  .home-start-links a:hover .home-start-arrow, .home-guide-grid .student-guide-card:hover { transform: none; }
}
@media (min-width: 1600px) { .home-guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Give the opportunity title room after its photo and center the circular arrow. */
#opportunities .home-opportunity-grid .opportunity-card h2 { margin-top: 1.25rem; }
#opportunities .home-opportunity-grid .card-arrow {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  align-self: center;
  padding: 0;
  line-height: 1;
  text-align: center;
}

/* Give the student job directory the same editorial hero hierarchy as the homepage. */
.job-directory-hero { margin-bottom: clamp(1.35rem, 2.5vw, 2rem); }
.job-directory-hero .home-title { max-width: 58rem; }
.job-directory-hero .home-title h1 { max-width: 18ch; }
.job-directory-hero .job-directory-note { align-self: center; }
.job-directory-hero .job-directory-note .home-kicker { margin-bottom: .6rem; }
.job-directory-hero .job-directory-note h2 { margin: 0 0 .55rem; color: var(--refresh-navy); font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.2; letter-spacing: -.02em; }
.job-directory-hero .job-directory-note > p:last-child { max-width: 38rem; margin: 0; color: var(--refresh-muted); font-size: .92rem; line-height: 1.55; }
.job-filter { margin-bottom: 1rem; }
@media (max-width: 999px) {
  .job-directory-hero .job-directory-note { padding: 1rem 0 0; border-top: 1px solid #a9c9c1; border-left: 0; }
}
@media (max-width: 649px) {
  .job-directory-hero { gap: 1rem; }
  .job-directory-hero .job-directory-note { padding-top: .8rem; }
}

/* Keep reserved ad slots hidden until real placements are ready. */
.ad-placeholder,
.opportunity-detail .opportunity-ad-rail { display: none !important; }
/* Use a consistent set of destination cues in the primary navigation. */
.primary-nav .menu a {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.primary-nav .menu a::before {
  content: "";
  display: block;
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.primary-nav .menu a[href="https://studentincome.ca/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010.5%2012%203l9%207.5%22%2F%3E%3Cpath%20d%3D%22M5.5%209.5V21h13V9.5%22%2F%3E%3Cpath%20d%3D%22M9.5%2021v-6h5v6%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2010.5%2012%203l9%207.5%22%2F%3E%3Cpath%20d%3D%22M5.5%209.5V21h13V9.5%22%2F%3E%3Cpath%20d%3D%22M9.5%2021v-6h5v6%22%2F%3E%3C%2Fsvg%3E");
}
.primary-nav .menu a[href*="/where-to-look-for-a-student-job-when-applications-go-quiet/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.8%22%20cy%3D%2210.8%22%20r%3D%226.8%22%2F%3E%3Cpath%20d%3D%22m16%2016%205%205%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.8%22%20cy%3D%2210.8%22%20r%3D%226.8%22%2F%3E%3Cpath%20d%3D%22m16%2016%205%205%22%2F%3E%3C%2Fsvg%3E");
}
.primary-nav .menu a[href*="/campus-jobs-that-can-fit-around-your-class-schedule/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2021h16M6%2021V4h12v17M9%208h.01M14%208h.01M9%2012h.01M14%2012h.01M10%2021v-4h4v4%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2021h16M6%2021V4h12v17M9%208h.01M14%208h.01M9%2012h.01M14%2012h.01M10%2021v-4h4v4%22%2F%3E%3C%2Fsvg%3E");
}
.primary-nav .menu a[href*="/when-to-start-looking-for-summer-student-jobs-in-ontario/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%203v4M8%203v4M3%2010h18M8%2014h.01M12%2014h.01M16%2014h.01M8%2017h.01M12%2017h.01%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%203v4M8%203v4M3%2010h18M8%2014h.01M12%2014h.01M16%2014h.01M8%2017h.01M12%2017h.01%22%2F%3E%3C%2Fsvg%3E");
}
.primary-nav .menu a[href*="/should-you-walk-in-email-or-apply-online-for-a-student-job/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6M8%2014l2.2%202.2L16%2010.5%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6M8%2014l2.2%202.2L16%2010.5%22%2F%3E%3C%2Fsvg%3E");
}
.primary-nav .menu a[href*="/how-to-build-a-student-resume-when-you-have-no-work-experience/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6M8%2013h8M8%2017h6%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6M8%2013h8M8%2017h6%22%2F%3E%3C%2Fsvg%3E");
}
.primary-nav .menu a[href="https://studentincome.ca/student-jobs/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%207V5a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2M3%2012h18M10%2012v3h4v-3%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%207V5a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2M3%2012h18M10%2012v3h4v-3%22%2F%3E%3C%2Fsvg%3E");
}

/* Keep the funding and work-support hub in the same editorial system as the job guides. */
.student-support-preview { margin-top: clamp(2.5rem, 5vw, 4rem); }
.student-support-preview .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin: 0 0 1rem; }
.student-support-preview .section-heading h2 { margin: 0; color: var(--refresh-navy); font-size: clamp(1.45rem, 2.3vw, 2rem); letter-spacing: -.025em; line-height: 1.15; }
.student-support-preview .section-heading p { max-width: 38rem; margin: .35rem 0 0; color: var(--refresh-muted); font-size: .95rem; }
.support-section-link { color: var(--refresh-blue); font-weight: 750; text-underline-offset: .18em; }
.support-preview-grid, .support-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.support-preview-card, .support-info-card { min-width: 0; padding: 1.15rem 1.2rem; border: 1px solid #d5e0eb; border-radius: 14px; background: linear-gradient(145deg, #fff 0%, #f7faff 100%); box-shadow: 0 4px 14px rgba(18, 42, 70, .05); }
.support-preview-card { border-top: 3px solid #7db5a5; }
.support-preview-card h3, .support-info-card h3 { margin: 0 0 .5rem; color: var(--refresh-navy); font-size: 1.08rem; line-height: 1.3; }
.support-preview-card h3 a, .support-info-card h3 a { color: inherit; text-decoration: none; }
.support-preview-card h3 a:hover, .support-info-card h3 a:hover { color: var(--refresh-blue); }
.support-preview-card p:last-child, .support-info-card p:last-child { margin-bottom: 0; color: var(--refresh-muted); font-size: .92rem; line-height: 1.5; }
.student-support-main .support-hero { background: linear-gradient(118deg, #eaf3fb 0%, #f7faff 52%, #f4eadb 100%); }
.student-support-article .support-section { scroll-margin-top: 1.5rem; }
.student-support-article .support-card-grid { grid-column: 2; margin-top: 1rem; }
.student-support-article .support-info-card { border-top: 3px solid #7db5a5; }
.student-support-article .support-info-card .guide-card-label { margin: 0 0 .55rem; }
.student-support-article .support-info-card p:not(.guide-card-label) { color: var(--refresh-muted); }
.student-support-article .support-callout { grid-column: 2; margin-top: 1rem; }
.student-support-article .support-fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; grid-column: 2; margin-top: 1rem; }
.student-support-article .support-fact { min-width: 0; padding: .95rem 1rem; border: 1px solid #d4e8e2; border-radius: 12px; background: #f4faf8; }
.student-support-article .support-fact strong { display: block; color: var(--refresh-navy); font-size: .96rem; line-height: 1.25; }
.student-support-article .support-fact span { display: block; margin-top: .28rem; color: var(--refresh-muted); font-size: .82rem; line-height: 1.35; }
.student-support-article .support-source-note { color: var(--refresh-muted); font-size: .92rem; }
.student-support-article .support-steps { grid-column: 2; margin-top: 1rem; }
.student-support-article .support-action { grid-column: 1 / -1; margin-top: 1.15rem; }
.student-support-article .support-action .guide-choice-grid { margin-top: 1rem; }
.student-support-article .support-sources { margin-top: 1rem; }
.student-support-article .support-sources ul { margin-bottom: .8rem; }
.student-support-article .support-sources p:last-child { margin-bottom: 0; color: var(--refresh-muted); }
.primary-nav .menu a[href*="/student-support/"]::before {
  display: block;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205h16v14H4z%22%2F%3E%3Cpath%20d%3D%22M8%209h8M8%2013h5%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205h16v14H4z%22%2F%3E%3Cpath%20d%3D%22M8%209h8M8%2013h5%22%2F%3E%3C%2Fsvg%3E");
}

@media (max-width: 899px) {
  .support-preview-grid, .support-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-support-article .support-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 649px) {
  .student-support-preview .section-heading { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .support-preview-grid, .support-card-grid, .student-support-article .support-fact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .student-support-article .support-card-grid,
  .student-support-article .support-fact-grid,
  .student-support-article .support-callout,
  .student-support-article .support-steps { grid-column: 1; }
}
/* Match job-navigation icons to the live destinations. */
.primary-nav .menu a[href*="/where-to-look-for-a-student-job-when-applications-go-quiet/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%207v14M3%206c1-.7%202-1%203.5-1%202.4%200%204.2.7%205.5%202%201.3-1.3%203.1-2%205.5-2%201.5%200%202.5.3%203.5%201v13c-1-.7-2-1-3.5-1-2.4%200-4.2.7-5.5%202-1.3-1.3-3.1-2-5.5-2-1.5%200-2.5.3-3.5%201z%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%207v14M3%206c1-.7%202-1%203.5-1%202.4%200%204.2.7%205.5%202%201.3-1.3%203.1-2%205.5-2%201.5%200%202.5.3%203.5%201v13c-1-.7-2-1-3.5-1-2.4%200-4.2.7-5.5%202-1.3-1.3-3.1-2-5.5-2-1.5%200-2.5.3-3.5%201z%22%2F%3E%3C%2Fsvg%3E");
}
.primary-nav .menu a[href="https://studentincome.ca/student-jobs/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.8%22%20cy%3D%2210.8%22%20r%3D%226.8%22%2F%3E%3Cpath%20d%3D%22m16%2016%205%205%22%2F%3E%3C%2Fsvg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.8%22%20cy%3D%2210.8%22%20r%3D%226.8%22%2F%3E%3Cpath%20d%3D%22m16%2016%205%205%22%2F%3E%3C%2Fsvg%3E");
}

