.apsaidal-home-module{
  --aps-home-accent:#c22128;
  --aps-home-ink:#171717;
  --aps-home-muted:#6a6a6a;
  --aps-home-line:#d8d8d8;
  width:100%;
  color:var(--aps-home-ink);
}

.apsaidal-home-module a{color:inherit}
.apsaidal-home-module a:hover{color:var(--aps-home-accent)}

.aps-home-card__image{display:block;overflow:hidden;background:#f2f2f2}
.aps-home-card__image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.aps-home-card__image:hover img{transform:scale(1.015)}

.aps-home-card__eyebrow,.aps-home-now__meta{
  color:var(--aps-home-muted);
  font-size:.68rem;
  font-weight:600;
  letter-spacing:.12em;
  line-height:1.3;
  text-transform:uppercase;
}

/* Hero */
.aps-home-hero{
  display:grid;
  grid-template-columns:minmax(0,7fr) minmax(15rem,3fr);
  grid-template-rows:1fr 1fr;
  gap:1.15rem 1.25rem;
  padding:clamp(.35rem,1vw,.75rem) 0 clamp(1.35rem,2.4vw,2.25rem);
}
.aps-home-story{position:relative;min-width:0}
.aps-home-story--primary{grid-row:1/3}
.aps-home-story--primary .aps-home-card__image{aspect-ratio:16/9}
.aps-home-story--secondary .aps-home-card__image{aspect-ratio:16/10}
.aps-home-story__content{padding-top:.75rem}
.aps-home-story__title{margin:.3rem 0 0;line-height:1.02;font-weight:500}
.aps-home-story__title a{text-decoration:none}
.aps-home-story--primary .aps-home-story__title{max-width:13ch;font-size:clamp(2rem,3.35vw,4rem)}
.aps-home-story--secondary .aps-home-story__title{font-size:clamp(1.15rem,1.55vw,1.55rem);line-height:1.08}
.aps-home-story__deck{max-width:48rem;margin:.7rem 0 0;color:var(--aps-home-muted);font-size:clamp(.95rem,1.15vw,1.1rem);line-height:1.5}

/* APSAIDAL NOW */
.aps-home-now{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:1.1rem;
  border-top:1px solid var(--aps-home-ink);
  border-bottom:1px solid var(--aps-home-ink);
  padding:.7rem 0;
}
.aps-home-now__label{font-size:.72rem;letter-spacing:.08em;white-space:nowrap}
.aps-home-now__track{display:flex;gap:1.65rem;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}
.aps-home-now__track::-webkit-scrollbar{display:none}
.aps-home-now__item{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:.45rem;white-space:nowrap;scroll-snap-align:start;text-decoration:none}
.aps-home-now__headline{font-size:.84rem;line-height:1.25}

/* Latest Projects */
.aps-home-projects{padding:clamp(2.8rem,5vw,4.5rem) 0 clamp(2.6rem,4vw,4rem)}
.aps-home-section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:1.35rem;padding-bottom:.7rem;border-bottom:1px solid var(--aps-home-line)}
.aps-home-section-heading h2{margin:0;font-size:clamp(1.55rem,2.15vw,2.15rem);font-weight:500;line-height:1}
.aps-home-project-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.15rem}
.aps-home-project-card .aps-home-card__image{aspect-ratio:4/3;margin-bottom:.72rem}
.aps-home-project-card__title{margin:.28rem 0 0;font-size:clamp(1rem,1.2vw,1.18rem);font-weight:500;line-height:1.12}
.aps-home-project-card__title a{text-decoration:none}

/* Explore Africa */
.aps-home-explore__grid{display:grid;grid-template-columns:minmax(9rem,1fr) minmax(0,3fr) minmax(14rem,1.35fr);gap:1.5rem;align-items:start}
.aps-home-explore__regions{display:flex;flex-direction:column;align-items:flex-start;gap:.55rem}
.aps-home-explore__kicker{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.aps-home-explore__region,.aps-home-country-focus__explore{appearance:none;border:0;background:none;padding:0;font:inherit;text-align:left;cursor:pointer}
.aps-home-explore__region{padding:.15rem 0}
.aps-home-explore__map{min-width:0;max-height:34rem;overflow:hidden}
.aps-home-explore__map .apsaidal-africa-map{height:100%}
.aps-home-explore__map .apsaidal-africa-map__canvas{width:100%;max-width:42rem;height:min(34rem,62vw);margin-inline:auto}
.aps-home-explore__map .apsaidal-africa-map__svg{width:100%;height:100%;max-height:34rem;object-fit:contain;overflow:hidden}

.aps-home-country-focus{min-width:0}
.aps-home-country-focus__heading{display:flex;gap:.75rem;align-items:center;margin:.65rem 0 1rem}
.aps-home-country-focus__heading h3{margin:0}
.aps-home-country-focus__heading p{margin:.2rem 0 0}
.aps-home-country-focus__flag{width:3rem;height:2rem;object-fit:cover}
.aps-home-country-focus__counts{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin-bottom:1rem;font-size:.9rem}
.aps-home-country-focus__highlights{display:grid;gap:.7rem}
.aps-home-country-focus__highlights a{display:grid;gap:.1rem;text-decoration:none}
.aps-home-country-focus__highlights span{font-size:.7rem;letter-spacing:.08em}
.aps-home-country-focus__explore{margin-top:1rem;text-decoration:underline;text-underline-offset:.2em}

/* Remaining Home modules */
.aps-home-editorial__layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(16rem,.8fr);gap:1.5rem}
.aps-home-editorial__secondary{display:grid;gap:1rem}
.aps-home-heritage__grid,.aps-home-ecosystem__grid,.aps-home-across-time__pair{display:grid;gap:1rem}
.aps-home-heritage__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.aps-home-ecosystem__group+.aps-home-ecosystem__group{margin-top:1.5rem}
.aps-home-ecosystem__grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.aps-home-across-time__pair{grid-template-columns:1fr 1fr}
.aps-home-across-time__label,.aps-home-rail-heading h3,.aps-home-advertisement__label{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.aps-home-rail-block{padding-top:1rem;border-top:1px solid currentColor}
.aps-home-rail-block+.aps-home-rail-block{margin-top:1.5rem}
.aps-home-rail-heading{margin-bottom:.75rem}
.aps-home-rail-heading h3{margin:0}
.aps-home-featured-events__track{display:flex;gap:.75rem;overflow-x:auto;scroll-snap-type:x proximity}
.aps-home-featured-event{min-width:100%;scroll-snap-align:start}
.aps-home-featured-event .aps-home-card__image{aspect-ratio:4/3}
.aps-home-featured-event__meta{margin-top:.5rem;font-size:.75rem}
.aps-home-featured-event h4,.aps-home-featured-event p,.aps-home-event-row h4,.aps-home-event-row p{margin:.2rem 0}
.aps-home-events__list{display:grid;gap:.9rem}
.aps-home-event-row{display:grid;grid-template-columns:3.5rem minmax(0,1fr);gap:.75rem}
.aps-home-event-row time{font-size:.75rem;font-weight:600;letter-spacing:.04em}
.aps-home-gallery__grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.aps-home-gallery__item{position:relative;aspect-ratio:1/1;overflow:hidden}
.aps-home-gallery__item img{width:100%;height:100%;object-fit:cover}
.aps-home-gallery__play{position:absolute;right:.45rem;bottom:.35rem;font-size:.8rem}
.aps-home-newsletter h4{margin:.2rem 0 .4rem}
.aps-home-newsletter p{margin:0 0 .75rem}
.aps-home-newsletter__placeholder{font-size:.85rem}
.aps-home-advertisement__label{display:block;margin-bottom:.5rem}
.aps-home-advertisement__slot{min-height:4rem}

@media(max-width:1024px){
  .aps-home-hero{grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:1.1rem}
  .aps-home-story--primary{grid-column:1/3;grid-row:auto}
  .aps-home-story--primary .aps-home-story__title{max-width:16ch}
  .aps-home-project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
  .aps-home-explore__grid{grid-template-columns:1fr 2.2fr}
  .aps-home-explore__map{max-height:30rem}
  .aps-home-explore__map .apsaidal-africa-map__canvas{height:min(30rem,72vw)}
  .aps-home-country-focus{grid-column:1/3;display:grid;grid-template-columns:minmax(12rem,.8fr) 1.2fr;gap:1rem 1.5rem}
  .aps-home-country-focus>.aps-home-explore__kicker,.aps-home-country-focus__heading,.aps-home-country-focus__counts,.aps-home-country-focus__explore{grid-column:1}
  .aps-home-country-focus__highlights{grid-column:2;grid-row:2/6}
  .aps-home-editorial__layout{grid-template-columns:1fr}
  .aps-home-ecosystem__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:767px){
  .aps-home-hero{display:block;padding-top:.15rem}
  .aps-home-story+.aps-home-story{margin-top:1.35rem}
  .aps-home-story--primary .aps-home-story__title{font-size:clamp(1.85rem,9vw,3rem)}
  .aps-home-story--secondary .aps-home-story__title{font-size:1.3rem}
  .aps-home-now{grid-template-columns:1fr;gap:.5rem;padding:.65rem 0}
  .aps-home-now__track{gap:1rem}
  .aps-home-projects{padding:2.6rem 0 2.8rem}
  .aps-home-project-grid{grid-template-columns:1fr;gap:1.8rem}
  .aps-home-explore__grid{display:flex;flex-direction:column}
  .aps-home-explore__regions{width:100%;flex-direction:row;overflow-x:auto;white-space:nowrap;padding-bottom:.25rem}
  .aps-home-explore__map,.aps-home-country-focus{width:100%}
  .aps-home-explore__map{max-height:none;overflow:visible}
  .aps-home-explore__map .apsaidal-africa-map__canvas{height:auto;max-width:100%}
  .aps-home-explore__map .apsaidal-africa-map__svg{height:auto;max-height:none;overflow:visible}
  .aps-home-country-focus{display:block}
  .aps-home-heritage__grid,.aps-home-ecosystem__grid,.aps-home-across-time__pair{grid-template-columns:1fr}
  .aps-home-event-row{grid-template-columns:3rem minmax(0,1fr)}
}
