.country-home {
  --home-ink: #172b25;
  --home-muted: #4c6056;
  --home-paper: #f6f3e9;
  --home-accent: #9d6537;
  --home-line: #d8ddd2;
  --home-soft: #e9ecdf;
  color: var(--home-ink);
  background: var(--home-paper);
  overflow: clip;
}

.country-home--nigeria {
  --home-ink: #202b36;
  --home-muted: #53606b;
  --home-paper: #f9f4e9;
  --home-accent: #a04d3b;
  --home-line: #e4d9cb;
  --home-soft: #efe6d7;
}

.country-home--south-africa {
  --home-ink: #293e39;
  --home-muted: #52635d;
  --home-paper: #f5f6f1;
  --home-accent: #634e68;
  --home-line: #d8dfd8;
  --home-soft: #e4ebe4;
}

.country-home-shell { width: min(100% - 48px, 1280px); margin: 0 auto; padding: 52px 0 96px; }
.country-home a { color: inherit; }
.country-home a:focus-visible { outline: 3px solid var(--home-accent); outline-offset: 4px; }
.country-home h1, .country-home h2 { color: var(--home-ink); overflow-wrap: normal; }
.country-home-eyebrow { color: var(--home-accent); font: 700 .74rem/1.5 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.country-home-intro { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: end; gap: clamp(28px, 5vw, 92px); padding: 0 0 38px; }
.country-home-intro-main { max-width: 940px; }
.country-home-intro h1 { max-width: 900px; margin: 14px 0 20px; font-size: clamp(3.1rem, 7vw, 7.3rem); line-height: .99; letter-spacing: -.045em; }
.country-home-deck { max-width: 700px; color: var(--home-muted); font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.55; }
.country-home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.country-home-actions a, .country-home-directory-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 11px 20px; border-radius: 4px; font-weight: 700; line-height: 1.3; transition: transform .18s ease, background .18s ease; }
.country-home-actions a:hover, .country-home-directory-action:hover { transform: translateY(-2px); }
.country-home-primary { color: #fff !important; background: var(--home-ink); }
.country-home-primary:hover { background: var(--home-accent); }
.country-home-secondary { border: 1px solid var(--home-line); }
.country-home-secondary:hover { background: var(--home-soft); }
.country-home-intro-side { border-top: 1px solid var(--home-ink); padding-top: 12px; }
.country-home-intro-side-mark { font: 700 2.2rem/1 Georgia, serif; color: var(--home-accent); }
.country-home-intro-side p { margin-top: 14px; font: italic 1.15rem/1.45 Georgia, serif; }

.country-home-hero { position: relative; margin: 0; }
.country-home-hero picture { display: block; border-radius: 3px; overflow: hidden; background: var(--home-soft); }
.country-home-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.country-home-hero figcaption { max-width: 720px; margin: 12px 0 0 auto; color: var(--home-muted); font-size: .88rem; line-height: 1.5; text-align: right; }

.country-home-choices { padding: 92px 0 0; scroll-margin-top: 90px; }
.country-home-section-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .55fr); gap: 40px; align-items: end; padding-bottom: 25px; border-bottom: 1px solid var(--home-line); }
.country-home-section-head h2 { max-width: 780px; margin-top: 11px; font-size: clamp(2.3rem, 4.3vw, 4.5rem); line-height: 1.06; letter-spacing: -.03em; }
.country-home-section-head > p { color: var(--home-muted); font-size: 1.05rem; line-height: 1.55; }
.country-home-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; margin-top: 26px; }
.country-home-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--home-line); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.country-home-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px #172b251c; }
.country-home-card-image { display: block; overflow: hidden; background: var(--home-soft); }
.country-home-card-image img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; display: block; transition: transform .24s ease; }
.country-home--nigeria .country-home-card-image img, .country-home--south-africa .country-home-card-image img { aspect-ratio: 1200 / 630; object-fit: contain; }
.country-home-card:hover img { transform: scale(1.025); }
.country-home-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.country-home-card-kind { color: var(--home-accent); font-size: .73rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; }
.country-home-card strong { display: block; margin-top: 11px; font: 700 clamp(1.3rem, 1.8vw, 1.75rem)/1.24 Georgia, serif; }
.country-home-card-summary { display: block; margin-top: 12px; color: var(--home-muted); font-size: .98rem; line-height: 1.55; }
.country-home-card-action { display: block; margin-top: auto; padding-top: 24px; color: var(--home-accent); font-size: .9rem; font-weight: 700; }
.country-home-card-empty { margin-top: 28px; padding: 24px; background: white; border: 1px solid var(--home-line); }
.country-home-card-empty a { display: inline-block; margin-top: 12px; color: var(--home-accent); font-weight: 700; }

.country-home-shared { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); margin-top: 96px; padding: 36px 0; border-top: 2px solid var(--home-ink); border-bottom: 1px solid var(--home-line); }
.country-home-shared h2 { max-width: 520px; margin: 11px 0 18px; font-size: clamp(2rem, 3.5vw, 3.6rem); line-height: 1.1; letter-spacing: -.03em; }
.country-home-shared-deck { max-width: 490px; color: var(--home-muted); line-height: 1.65; }
.country-home-shared-directory { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 0; border-bottom: 2px solid var(--home-accent); color: var(--home-ink); font-weight: 700; text-decoration: none; }
.country-home-shared-directory:hover { color: var(--home-accent); }
.country-home-shared-scope { max-width: 490px; margin-top: 15px; color: var(--home-muted); font-size: .9rem; line-height: 1.55; }
.country-home-shared-links { display: grid; gap: 12px; }
.country-home-shared-links .country-home-shared-card { display: grid; grid-template-columns: minmax(160px, 38%) minmax(0, 1fr); align-items: stretch; gap: 0; min-width: 0; background: #fff; border: 1px solid var(--home-line); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.country-home-shared-links .country-home-shared-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #172b251c; }
.country-home-shared-card-image { display: block; min-width: 0; overflow: hidden; background: var(--home-soft); }
.country-home-shared-card-image img { display: block; width: 100%; height: 100%; aspect-ratio: 1200 / 630; object-fit: contain; }
.country-home-shared-card-copy { display: flex; flex-direction: column; min-width: 0; padding: 18px 21px; }
.country-home-shared-card-copy strong { font: 700 clamp(1.12rem, 1.5vw, 1.4rem)/1.25 Georgia, serif; }
.country-home-shared-card-copy > span { margin-top: 9px; color: var(--home-muted); font-size: .91rem; line-height: 1.45; }
.country-home-shared-card-copy small { margin-top: auto; padding-top: 12px; color: var(--home-accent); font-size: .78rem; font-weight: 700; }
.country-home-shared-card:hover strong, .country-home-shared-card:hover small { color: var(--home-accent); }
.country-home-shared-card-copy small span { color: inherit; }

.country-home-principle { display: grid; grid-template-columns: 90px 1fr 1.1fr; gap: 24px; align-items: start; margin-top: 94px; padding: 35px 0; border-top: 2px solid var(--home-ink); border-bottom: 1px solid var(--home-line); }
.country-home-principle-mark { color: var(--home-accent); font: 700 4rem/.85 Georgia, serif; }
.country-home-principle h2 { max-width: 400px; margin-top: 12px; font-size: clamp(1.65rem, 2.5vw, 2.8rem); line-height: 1.14; }
.country-home-principle > p { color: var(--home-muted); line-height: 1.68; }
.country-home-principle > p a { color: var(--home-accent); text-decoration: underline; text-underline-offset: 4px; }
.country-home-directory { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-top: 96px; padding: clamp(26px, 4vw, 52px); background: var(--home-soft); }
.country-home-directory h2 { max-width: 680px; margin-top: 10px; font-size: clamp(2rem, 3.5vw, 3.6rem); line-height: 1.1; }
.country-home-directory p:last-child { max-width: 610px; margin-top: 14px; color: var(--home-muted); }
.country-home-directory-action { flex: none; color: #fff !important; background: var(--home-ink); }

/* The three editions share a reading system but carry distinct editorial rhythm. */
.country-home--nigeria .country-home-intro { grid-template-columns: 220px minmax(0, 1fr); }
.country-home--nigeria .country-home-intro-main { grid-column: 2; }
.country-home--nigeria .country-home-intro-side { grid-column: 1; grid-row: 1; align-self: stretch; border-top: 0; border-left: 3px solid var(--home-accent); padding: 11px 0 0 22px; }
.country-home--nigeria .country-home-card { border-top: 4px solid var(--home-accent); }
.country-home--nigeria .country-home-directory { background: var(--home-ink); }
.country-home--nigeria .country-home-directory h2, .country-home--nigeria .country-home-directory .country-home-eyebrow, .country-home--nigeria .country-home-directory p:last-child { color: #fff; }
.country-home--nigeria .country-home-directory-action { background: var(--home-accent); }
.country-home--south-africa .country-home-intro { grid-template-columns: minmax(0, 1fr) 315px; }
.country-home--south-africa .country-home-intro-side { padding: 25px; background: var(--home-soft); border-top: 0; border-left: 4px solid var(--home-accent); }
.country-home--south-africa .country-home-card:nth-child(2) { transform: translateY(30px); }
.country-home--south-africa .country-home-card:nth-child(2):hover { transform: translateY(26px); }
.country-home--south-africa .country-home-principle { margin-top: 124px; }

@media (max-width: 850px) {
  .country-home-shell { width: min(100% - 32px, 720px); padding-top: 30px; padding-bottom: 66px; }
  .country-home-intro, .country-home--nigeria .country-home-intro, .country-home--south-africa .country-home-intro { grid-template-columns: 1fr; gap: 25px; }
  .country-home--nigeria .country-home-intro-main, .country-home--nigeria .country-home-intro-side { grid-column: 1; grid-row: auto; }
  .country-home-intro-side { display: none; }
  .country-home-intro h1 { font-size: clamp(2.75rem, 11vw, 5.2rem); }
  .country-home-hero img { aspect-ratio: 1; }
  .country-home-card-grid { grid-template-columns: 1fr 1fr; }
  .country-home-section-head { grid-template-columns: 1fr; gap: 15px; }
  .country-home-shared { grid-template-columns: 1fr; gap: 26px; }
  .country-home-principle { grid-template-columns: 60px 1fr; }
  .country-home-principle > p { grid-column: 2; }
  .country-home-directory { align-items: start; flex-direction: column; }
  .country-home--south-africa .country-home-card:nth-child(2), .country-home--south-africa .country-home-card:nth-child(2):hover { transform: none; }
}

@media (max-width: 560px) {
  .country-home-shell { width: min(100% - 28px, 460px); }
  .country-home-intro { padding-bottom: 25px; }
  .country-home-intro h1 { margin: 11px 0 16px; font-size: clamp(2.65rem, 12.2vw, 4.1rem); }
  .country-home-deck { font-size: 1.02rem; }
  .country-home-actions { flex-direction: column; }
  .country-home-actions a { width: 100%; }
  .country-home-hero figcaption { text-align: left; }
  .country-home-choices { padding-top: 64px; }
  .country-home-section-head h2 { font-size: clamp(2.1rem, 8.3vw, 3.1rem); }
  .country-home-card-grid { grid-template-columns: 1fr; gap: 18px; }
  .country-home-card-body { padding: 21px; }
  .country-home-shared { margin-top: 65px; }
  .country-home-shared-links .country-home-shared-card { grid-template-columns: 1fr; }
  .country-home-shared-card-image img { height: auto; }
  .country-home-shared-card-copy { padding: 17px 18px; }
  .country-home-shared-card-copy small { margin-top: 3px; }
  .country-home-principle, .country-home--south-africa .country-home-principle { grid-template-columns: 1fr; gap: 13px; margin-top: 65px; }
  .country-home-principle-mark { display: none; }
  .country-home-principle > p { grid-column: 1; }
  .country-home-directory { margin-top: 65px; }
  .country-home-directory-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .country-home *, .country-home *::before, .country-home *::after { transition: none !important; }
}
