/* ============================================================
   PATHWAYS IN HEALTHCARE — Global Stylesheet
   ============================================================ */

/* ── Tokens ── */
:root {
  --navy:        #1a2e44;
  --navy-deep:   #0f1e2e;
  --navy-mid:    #243e5a;
  --blue-mid:    #2a6496;
  --blue-soft:   #daeaf5;
  --green:       #2e9e76;
  --green-light: #e8f7f1;
  --green-dark:  #22785a;
  --grey-100:    #f5f7fa;
  --grey-200:    #e8ecf1;
  --grey-300:    #ccd4de;
  --grey-500:    #7a8ea3;
  --grey-700:    #4a5f74;
  --white:       #ffffff;
  --text-body:   #2d3f52;
  --text-muted:  #5e7285;

  --max-w:       1140px;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   18px;
  --shadow-sm:   0 1px 4px rgba(26,46,68,.06);
  --shadow:      0 4px 18px rgba(26,46,68,.10);
  --shadow-lg:   0 8px 32px rgba(26,46,68,.13);
  --transition:  .22s ease;
  --nav-h:       68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--navy); color: var(--white);
  padding: .5rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .875rem; font-weight: 600; text-decoration: none; z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }
p  { color: var(--text-muted); }

/* ── Layout helpers ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 1.5rem; }
.section-label {
  display: block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .72rem; font-weight: 700; color: var(--green);
  margin-bottom: .85rem;
}
.section-intro { max-width: 640px; }
.text-center { text-align: center; }
.text-center .section-intro { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: 'DM Sans', sans-serif; font-size: .925rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  padding: .72rem 1.5rem; border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  line-height: 1;
}
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.btn-primary   { background: var(--navy);  color: var(--white); }
.btn-primary:hover   { background: var(--navy-deep); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-green     { background: var(--green); color: var(--white); }
.btn-green:hover     { background: var(--green-dark); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-outline   { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover   { background: var(--navy); color: var(--white); }
.btn-outline-green { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline-green:hover { background: var(--green); color: var(--white); }
.btn-ghost     { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-ghost:hover     { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }

/* ── Cards ── */
.card {
  background: var(--white); border: 1px solid var(--grey-200);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ── Icons (SVG inline, sized via class) ── */
.icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-sm  svg { width: 18px; height: 18px; }
.icon-md  svg { width: 24px; height: 24px; }
.icon-lg  svg { width: 36px; height: 36px; }
.icon-xl  svg { width: 48px; height: 48px; }
.icon-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-light); color: var(--green);
  margin-bottom: 1rem; flex-shrink: 0;
}
.icon-wrap svg { width: 26px; height: 26px; }
.icon-wrap-navy { background: var(--blue-soft); color: var(--navy); }

/* ── Badge / label chips ── */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .85rem; border-radius: 50px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  line-height: 1;
}
.badge-green  { background: var(--green-light); color: var(--green-dark); }
.badge-navy   { background: var(--blue-soft);   color: var(--navy); }
.badge-grey   { background: var(--grey-100);    color: var(--grey-700); border: 1px solid var(--grey-200); }

/* ── Notice / info boxes ── */
.notice {
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .875rem; line-height: 1.6; color: var(--text-body);
  border-left: 4px solid;
}
.notice-yellow { background: #fffbeb; border-color: #d4a017; color: #6b4c00; }
.notice-green  { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }
.notice-navy   { background: var(--blue-soft); border-color: var(--navy); color: var(--navy); }
.notice-grey   { background: var(--grey-100); border-color: var(--grey-300); }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--grey-200); margin: 0; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .35rem .5rem;
  font-size: .82rem; color: var(--grey-500);
  padding: .85rem 0;
  align-items: center;
}
.breadcrumb a { color: var(--grey-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; color: var(--grey-300); }

/* ── Placeholder page ── */
.placeholder-hero {
  background: var(--grey-100);
  border: 2px dashed var(--grey-300);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  max-width: 620px;
  margin: 3rem auto;
}
.placeholder-hero h2 { margin-bottom: .75rem; }
.placeholder-hero p  { margin-bottom: 1.5rem; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Focus ── */
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 1.25rem; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   Expandable panels (Request Mentorship / Volunteer as a Mentor)
   ============================================================ */
.panel-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.panel { flex: 1 1 280px; min-width: 0; }
.panel summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-sm); transition: all var(--transition); user-select: none;
}
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after {
  content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform var(--transition);
}
.panel[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.panel--green summary { background: var(--green); color: var(--white); }
.panel--green summary:hover { background: var(--green-dark); }
.panel--navy  summary { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.panel--navy  summary:hover { background: var(--navy); color: var(--white); }
.panel--light summary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.panel--light summary:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.panel summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.panel-body {
  margin-top: .85rem; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow); text-align: left; color: var(--text-body);
}
.panel--green .panel-body { border-top: 3px solid var(--green); }
.panel--navy  .panel-body, .panel--light .panel-body { border-top: 3px solid var(--navy); }
.panel-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.panel-body p  { font-size: .9rem; color: var(--text-muted); margin-bottom: .9rem; }
.panel-body .panel-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--navy); margin-bottom: .5rem; }
.panel-body ul { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.panel-body li { font-size: .9rem; color: var(--text-body); padding-left: 1.1rem; position: relative; line-height: 1.55; }
.panel-body li::before { content: '•'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.panel--navy .panel-body li::before, .panel--light .panel-body li::before { color: var(--navy); }
.panel-note { background: var(--grey-100); border: 1px solid var(--grey-200); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .86rem; color: var(--text-body); line-height: 1.6; margin: .5rem 0 1rem; }
.panel-note strong { color: var(--navy); }
.panel-body .btn { margin-top: .25rem; }
.panel-body .small { font-size: .8rem; color: var(--grey-500); margin: .75rem 0 0; }
@media (max-width: 640px) { .panel { flex-basis: 100%; } .panel summary { width: 100%; justify-content: center; } }

/* ============================================================
   Shared inner-page helpers
   ============================================================ */
.content-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; max-width: var(--max-w); margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.content-single { max-width: 800px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.prose h2 { border-top: 1px solid var(--grey-200); padding-top: 2rem; margin-top: 2.5rem; }
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.last-reviewed { font-size: .78rem; color: var(--grey-500); margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--grey-200); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature-grid--2 { grid-template-columns: 1fr 1fr; }
.feature-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); }
.feature-card h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.feature-card p  { font-size: .875rem; }
.feature-card .badge { margin-bottom: .6rem; }
.info-box { background: var(--grey-100); border: 1px solid var(--grey-200); border-left: 3px solid var(--green); border-radius: var(--radius); padding: 1.35rem 1.5rem; }
.info-box h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.info-box p  { font-size: .9rem; margin: 0; }
.info-box--navy { border-left-color: var(--navy); }
.table-basic { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .875rem; }
.table-basic th { background: var(--navy); color: var(--white); text-align: left; padding: .65rem .9rem; font-size: .8rem; font-weight: 600; }
.table-basic td { padding: .65rem .9rem; border-bottom: 1px solid var(--grey-200); vertical-align: top; }
.table-basic tr:nth-child(even) td { background: var(--grey-100); }
.table-wrap { overflow-x: auto; }
@media (max-width: 860px) { .content-layout { grid-template-columns: 1fr; } .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid, .feature-grid--2 { grid-template-columns: 1fr; } }
.panel[open] { flex-basis: 100%; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--green); }
