/* =====================================================
   ARTICLE PAGE — Solomon Thiong Garang Leek
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: #ffffff; color: #233D4D; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--site-orange-ink); transition: color 0.2s; }
a:hover { color: var(--site-orange-ink); }

/* ── SCROLLBAR + SELECTION ────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #ffffff; }
::-webkit-scrollbar-thumb { background: rgba(254,127,45,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(254,127,45,0.7); }
::selection { background: rgba(254,127,45,0.3); color: #233D4D; }

/* ── PROGRESS BAR ─────────────────────────────────── */
.ar-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: #FE7F2D; z-index: 9999; transition: width 0.1s linear; box-shadow: 0 0 8px rgba(254,127,45,0.6); }



/* ── ARTICLE HEADER ───────────────────────────────── */
.ar-header { background: #ffffff; padding: 3.5rem 1.5rem 0; position: relative; overflow: hidden; }
.ar-header__inner { max-width: 740px; margin: 0 auto; position: relative; z-index: 1; }

/* Title + subtitle */
.ar-title { font-family: 'Sora', sans-serif; font-size: clamp(1.75rem, 4vw, 2.8rem); font-weight: 800; color: #233D4D; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.03em; }
.ar-subtitle { font-size: 1.15rem; color: #4a6473; line-height: 1.8; max-width: 60ch; margin-bottom: 1.75rem; }

/* Social share icons */
.ar-social { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(35,61,77,0.12); color: #4a6473 !important; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: all 0.2s; cursor: pointer; background: rgba(35,61,77,0.04); font-family: inherit; }
.ar-social svg { display: block; }
.ar-social:hover { transform: translateY(-2px); }
.ar-social--twitter:hover  { background: #000; border-color: #555; color: #233D4D !important; }
.ar-social--linkedin:hover { background: #FE7F2D; border-color: #FE7F2D; color: #fff !important; }

/* ── LAYOUT ───────────────────────────────────────── */
.ar-layout { display: grid; grid-template-columns: 1fr 220px; grid-template-areas: "body toc"; max-width: 1080px; margin: 0 auto; align-items: start; }

/* ── ARTICLE BODY ─────────────────────────────────── */
.ar-body { padding: 3.5rem 1.5rem 2rem; grid-area: body; }
.ar-body__inner { max-width: 700px; margin: 0 auto; }

.ar-lead { font-size: 1.2rem; color: #233D4D; line-height: 1.85; font-weight: 500; padding-bottom: 1.75rem; border-bottom: 1px solid rgba(35,61,77,0.07); margin-bottom: 2rem; }
.ar-body__inner p { font-size: 1.02rem; color: #233D4D; line-height: 1.9; margin-bottom: 1.6rem; letter-spacing: 0.01em; }
.ar-body__inner h2 { font-family: 'Sora', sans-serif; font-size: 1.55rem; font-weight: 800; color: #233D4D; margin: 3rem 0 1.1rem; line-height: 1.2; letter-spacing: -0.02em; padding-top: 0.5rem; border-top: 1px solid rgba(35,61,77,0.06); }
.ar-body__inner h2::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FE7F2D; margin-right: 0.6rem; vertical-align: middle; margin-bottom: 2px; }
.ar-body__inner h3 { font-family: 'Sora', sans-serif; font-size: 1.2rem; font-weight: 700; color: #233D4D; margin: 2.25rem 0 0.85rem; }
.ar-body__inner strong { color: #233D4D; font-weight: 700; }
.ar-body__inner em { color: #233D4D; font-style: italic; }
.ar-body__inner a { color: var(--site-orange-ink); border-bottom: 1px solid rgba(254,127,45,0.3); transition: border-color 0.2s; }
.ar-body__inner a:hover { border-color: #FE7F2D; }

/* Callout */
.ar-callout { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.6rem; background: linear-gradient(135deg, rgba(254,127,45,0.1), rgba(254,127,45,0.05)); border: 1px solid rgba(254,127,45,0.25); border-left: 5px solid #FE7F2D; border-radius: 0 16px 16px 0; margin: 2.5rem 0; }
.ar-callout i { color: var(--site-orange-ink); font-size: 1.1rem; margin-top: 0.1rem; flex-shrink: 0; }
.ar-callout p { color: #233D4D !important; margin: 0 !important; font-size: 1rem !important; line-height: 1.75 !important; }

/* Lists */
.ar-list { list-style: none; padding-left: 0; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.65rem; }
.ar-list li { font-size: 1.02rem; color: #233D4D; line-height: 1.75; padding-left: 1.25rem; position: relative; }
.ar-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: #FE7F2D; }
.ar-list--numbered { list-style: decimal; padding-left: 1.5rem; }
.ar-list--numbered li { padding-left: 0; }
.ar-list--numbered li::before { display: none; }
.ar-list--numbered li::marker { color: var(--site-orange-ink); font-weight: 700; }

/* Blockquote */
.ar-quote { padding: 1.5rem 2rem; border-left: 5px solid #FE7F2D; background: rgba(35,61,77,0.03); border-radius: 0 16px 16px 0; margin: 2.5rem 0; position: relative; overflow: hidden; }
.ar-quote::before { content: '\201C'; position: absolute; top: -1rem; left: 1rem; font-size: 5rem; color: rgba(254,127,45,0.12); font-family: 'Sora', sans-serif; font-weight: 800; line-height: 1; pointer-events: none; }
.ar-quote p, .ar-quote { font-size: 1.1rem !important; line-height: 1.8 !important; color: #233D4D !important; margin-bottom: 0.5rem !important; font-style: italic; }
.ar-quote cite { font-size: 0.85rem; color: var(--site-orange-ink); font-weight: 600; font-style: normal; display: block; margin-top: 0.75rem; }

/* ── TABLE OF CONTENTS ────────────────────────────── */
.ar-toc { grid-area: toc; position: sticky; top: 80px; padding: 2rem 1rem 2rem 0; max-height: calc(100vh - 100px); overflow-y: auto; }
.ar-toc__title { font-family: 'Sora', sans-serif; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #4a6473; margin-bottom: 0.85rem; }
.ar-toc__list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.ar-toc__item a { display: block; font-size: 0.8rem; color: #4a6473; padding: 0.3rem 0.65rem; border-left: 2px solid rgba(35,61,77,0.08); border-radius: 0 5px 5px 0; transition: color 0.2s, border-color 0.2s, background 0.2s; line-height: 1.4; }
.ar-toc__item a:hover, .ar-toc__item a.ar-toc--active { color: var(--site-orange-ink); border-left-color: #FE7F2D; background: rgba(254,127,45,0.06); }

/* ── ARTICLE FOOTER ───────────────────────────────── */
.ar-footer { border-top: 1px solid rgba(35,61,77,0.08); padding: 3rem 1.5rem; }
.ar-footer__inner { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }

/* Engage bar */
.ar-engage { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 1.75rem; background: rgba(35,61,77,0.03); border: 1px solid rgba(35,61,77,0.08); border-radius: 16px; }
@keyframes like-pop { 0%{transform:scale(1)} 50%{transform:scale(1.4)} 100%{transform:scale(1)} }
.ar-share-row { display: flex; align-items: center; gap: 0.5rem; }
.ar-share-label { font-size: 0.78rem; color: #4a6473; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .ar-layout { grid-template-columns: 1fr; grid-template-areas: "toc" "body"; }
  .ar-toc { position: static; padding: 1.5rem 1.5rem 0; max-height: none; overflow: visible; }
  .ar-toc__list { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
  .ar-toc__item a { border-left: none; border-radius: 999px; border: 1px solid rgba(35,61,77,0.1); padding: 0.3rem 0.75rem; background: rgba(35,61,77,0.04); }
  .ar-toc__item a:hover, .ar-toc__item a.ar-toc--active { border-color: #FE7F2D; background: rgba(254,127,45,0.08); }
}

@media (max-width: 640px) {
  .ar-header { padding: 2.5rem 1rem 0; }
  .ar-body { padding: 2rem 1rem; }
  .ar-footer { padding: 2rem 1rem; }
  .ar-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .ar-engage { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   EDITORIAL LAYER — matches the blog index and site
   system: kicker, byline, cover, numbered sections,
   combined footer, continue reading.
   ===================================================== */

/* Header */
.ar-header { padding: clamp(3rem, 6vw, 4.5rem) 1.5rem 0; background: var(--site-bg, #ffffff); }
.ar-header__inner { max-width: 760px; }
.ar-kicker {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--site-orange-ink);
}
.ar-kicker a { color: var(--site-text-3, #4a6473); text-decoration: none; transition: color .2s ease; }
.ar-kicker a:hover { color: #233D4D; }
.ar-kicker span { color: var(--site-text-3, #4a6473); font-weight: 400; }
.ar-title {
  font-size: clamp(2.1rem, 4.6vw, 3.35rem) !important;
  line-height: 1.08 !important; letter-spacing: -0.03em !important;
  text-wrap: balance;
}
.ar-subtitle { font-size: clamp(1.05rem, 1.6vw, 1.2rem) !important; line-height: 1.75 !important; color: var(--site-text-2, #4a6473) !important; max-width: 62ch; }
.ar-byline {
  display: flex; align-items: center; gap: 0.85rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--site-line, rgba(35,61,77,.08));
}
.ar-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid rgba(254,127,45,.55); }
.ar-byline__name { display: block; font-weight: 700; color: #233D4D; font-size: 0.95rem; }
.ar-byline__info { display: block; font-size: 0.85rem; color: var(--site-text-3, #4a6473); }

/* Cover: wider than the text column, cinematic crop */
.ar-hero { max-width: 1080px; margin: clamp(2rem, 4vw, 3rem) auto 0; position: relative; z-index: 1; }
.ar-hero img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: 18px; border: 1px solid var(--site-line-2, rgba(35,61,77,.14));
  display: block;
}

/* Numbered sections — replaces the bullet dots and doubled rules */
.ar-body__inner { counter-reset: ar-sec; }
.ar-body__inner h2[id] {
  counter-increment: ar-sec;
  border-top: 0 !important; padding-top: 0 !important;
  margin-top: 3.5rem !important;
  scroll-margin-top: calc(var(--site-header-h, 64px) + 1.5rem);
}
.ar-body__inner h2::before {
  content: none !important;
}
.ar-body__inner h2[id]::before {
  content: counter(ar-sec, decimal-leading-zero) !important;
  display: block !important;
  width: auto !important; height: auto !important; background: none !important; border-radius: 0 !important;
  margin: 0 0 0.6rem !important;
  font-family: var(--site-font, sans-serif); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--site-orange-ink);
}
.ar-body__inner hr{ border: 0; height: 1px; background: var(--site-line, rgba(35,61,77,.08)); }

/* Contents: numbered, quiet, with an active bar */
.ar-toc { top: calc(var(--site-header-h, 64px) + 1.5rem) !important; }
.ar-toc__list { counter-reset: ar-toc; gap: 0.15rem !important; }
.ar-toc__item { counter-increment: ar-toc; }
.ar-toc__item a {
  display: grid !important; grid-template-columns: 1.8rem 1fr;
  padding: 0.55rem 0.65rem !important;
  font-size: 0.82rem !important;
}
.ar-toc__item a::before {
  content: counter(ar-toc, decimal-leading-zero);
  font-variant-numeric: tabular-nums; color: var(--site-text-3, #4a6473);
}
.ar-toc__item a.ar-toc--active::before { color: var(--site-orange-ink); }

/* Footer: author and share in one composed card */
.ar-footer__inner { max-width: 760px !important; gap: 0 !important; }
.ar-footer__inner > .ar-engage { background: none !important; border: 0 !important; padding: 0 !important; }
.ar-share-label { font-size: 0.75rem !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--site-text-3, #4a6473) !important; }

@media (max-width: 760px) {
  .ar-hero { margin-left: -0.25rem; margin-right: -0.25rem; }
  .ar-hero img { aspect-ratio: 4 / 3; border-radius: 14px; }
  .ar-footer__inner { grid-template-columns: 1fr; gap: 1.5rem !important; }
  .ar-footer__inner > .ar-engage { order: 2; }
}

/* Align the header text with the body column (the body shares its row with the 220px contents rail) */
.ar-header__inner { max-width: 1080px !important; padding-right: 220px; }
.ar-header__inner > * { max-width: 700px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .ar-header__inner { padding-right: 0; } }

/* Scholarship story: applications, pinned note, result band, values */
.ar-path { margin: 2.5rem 0 0; list-style: none; }
.ar-path__step { padding-bottom: 2.75rem; }
.ar-body__inner .ar-path__label {
  margin-bottom: 0.5rem; font-size: var(--fs-14) !important; font-weight: 700; line-height: 1.5 !important;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--site-orange-ink);
}
.ar-pocket {
  position: relative; max-width: 34rem; margin: 2rem 0 0.5rem; padding: 1.75rem 1.75rem 1.5rem;
  background: #fff; border: var(--site-stroke); border-radius: 6px;
  box-shadow: 6px 6px 0 rgba(35, 61, 77, 0.1);
}
.ar-pocket::before {
  content: ''; position: absolute; top: -0.6rem; left: 0.9rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd2ad, var(--site-orange) 50%, var(--site-orange-ink));
  box-shadow: 2px 4px 4px rgba(26, 45, 58, 0.35);
}
.ar-body__inner .ar-pocket p {
  margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: var(--fs-30) !important;
  font-weight: 700; line-height: 1.25 !important; letter-spacing: 0; color: var(--site-ink);
}
.ar-pocket cite { display: block; margin-top: 0.75rem; font-size: var(--fs-14); font-weight: 600; font-style: normal; color: var(--site-orange-ink); }
.ar-path__step--won {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--site-ink-deep); border-radius: 14px;
}
.ar-body__inner .ar-path__step--won p {
  margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: var(--fs-38) !important;
  font-weight: 700; line-height: 1.2 !important; letter-spacing: 0; color: #fff;
}
.ar-body__inner .ar-path__step--won strong { color: var(--site-orange); font-weight: 800; }

.ar-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 0; list-style: none; }
.ar-values li { padding: clamp(1.25rem, 2.5vw, 1.75rem); border: var(--site-stroke); border-radius: 14px; }
.ar-body__inner .ar-values h3 {
  margin: 0 0 0.4rem; font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--fs-24) !important; font-weight: 700; color: var(--site-ink);
}
.ar-body__inner .ar-values p { margin: 0; font-size: var(--fs-16) !important; line-height: 1.65 !important; }
.ar-close { margin-top: 2.75rem; }
.ar-body__inner .ar-close strong { color: var(--site-orange-ink); }

@media (max-width: 640px) {
  .ar-body__inner .ar-pocket p { font-size: var(--fs-24) !important; }
  .ar-body__inner .ar-path__step--won p { font-size: var(--fs-30) !important; }
  .ar-values { grid-template-columns: minmax(0, 1fr); }
}

/* Plain callouts and quotes: no accent stripe, tint, icon or glow */
.ar-progress { box-shadow: none; }
.ar-callout {
  display: block; padding: 1.25rem 1.5rem;
  background: var(--site-surface, #f5f7f8); border: 0; border-radius: 6px;
}
.ar-quote, .ar-blockquote { padding: 0; background: none; border: 0; border-radius: 0; overflow: visible; }
.ar-quote::before { content: none; }
