/* ==========================================================================
   Homepage
   ========================================================================== */

/* ---------- Hero: headline, shortcuts and lead story on a lagoon band;
   the latest stories sit across the band's lower edge. ---------- */
.hero { position: relative; }
.hero__band {
  background:
    radial-gradient(120% 90% at 85% 0%, #D3EBE6 0%, transparent 60%),
    linear-gradient(180deg, #E9F4F1 0%, #F1F8F6 100%);
  padding-block: 2rem 7.5rem;
}
@media (min-width: 900px) { .hero__band { padding-block: 3.75rem 9rem; } }
.hero__grid { display: grid; gap: 1.5rem 2rem; grid-template-areas: "intro" "lead" "quick"; }
.hero__intro { grid-area: intro; }
.hero__quick { grid-area: quick; }
.hero__lead { grid-area: lead; }
/* Below 900px the shortcuts come straight after the headline, in the same order as the page source. */
@media (max-width: 899px) { .hero__grid { grid-template-areas: "intro" "quick" "lead"; } }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "intro lead" "quick lead"; grid-template-rows: auto 1fr; column-gap: 3.5rem; row-gap: 0; align-items: start; } .hero__intro { align-self: end; } }

.hero__title {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 11ch;
  margin-bottom: 1rem;
  color: #0F2A30;
}
.hero__sub { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); margin-bottom: 1.75rem; }

.hero__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; max-width: 34rem; }

.hero__quick a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: rgb(255 255 255 / .72);
  border: 1px solid rgb(11 122 117 / .12);
  border-radius: 14px;
  color: var(--ink); text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.hero__quick a:hover { background: #fff; border-color: rgb(11 122 117 / .35); }
.hero__quick .icon { width: 2.3rem; height: 2.3rem; padding: 0.5rem; flex: none; color: var(--lagoon-deep); background: var(--lagoon-wash); border-radius: var(--radius); }
.hero__quick strong { display: block; font-family: var(--font-display); font-weight: 650; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.2; }
.hero__quick small { display: block; color: var(--ink-mute); font-size: 0.85rem; line-height: 1.3; margin-top: 0.1rem; }
@media (min-width: 560px) { .hero__quick a:last-child:nth-child(odd) { grid-column: 1 / -1; } }


/* Lead story: image with a white caption panel tucked over its lower edge. */
.hero__lead .story--lead { gap: 0; }
.hero__lead .story--lead .story__media { aspect-ratio: 5 / 4; border-radius: 24px; box-shadow: 0 30px 60px -35px rgb(12 61 59 / .45); }
@media (min-width: 900px) { .hero__lead .story--lead .story__media { aspect-ratio: 4 / 3.4; } }
.hero__lead .story--lead .story__body {
  position: relative; z-index: 2;
  margin: -4.5rem 1rem 0; padding: 1.1rem 1.25rem 1.2rem;
  background: #fff; border-radius: 18px;
  box-shadow: 0 16px 40px -28px rgb(12 61 59 / .5);
}
@media (min-width: 900px) { .hero__lead .story--lead .story__body { margin: -5.5rem 1.5rem 0; padding: 1.35rem 1.5rem 1.4rem; } }
.hero__lead .story--lead .story__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.hero__lead .story--lead .story__dek { -webkit-line-clamp: 2; font-size: 1rem; }

/* Latest stories overlap the band. */
.hero__latest { position: relative; z-index: 3; margin-top: -5.25rem; }
@media (min-width: 900px) { .hero__latest { margin-top: -6.25rem; } }
.hero__latest-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.9rem; }
.hero__latest-head h2 { font-size: 1.15rem; margin: 0; color: #0F2A30; }
.hero__latest-head a { font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.hero__latest-head a:hover { text-decoration: underline; }
.hero__cards { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.hero__cards::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .hero__cards { grid-auto-columns: 42%; } }
@media (min-width: 1024px) { .hero__cards { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } }
.hero__cards .story {
  scroll-snap-align: start;
  background: #fff; border-radius: 20px; padding: 0.6rem 0.6rem 1rem;
  box-shadow: 0 18px 40px -30px rgb(12 61 59 / .55), 0 0 0 1px rgb(20 35 42 / .05);
}
.hero__cards .story__media { border-radius: 14px; aspect-ratio: 16 / 10; }
.hero__cards .story__body { padding-inline: 0.4rem; }
.hero__cards .story__title { font-size: 1.04rem; line-height: 1.28; }
.hero__cards .save-btn { top: 1rem; right: 1rem; }

.paths { display: grid; gap: 2rem; }
@media (min-width: 860px) { .paths { grid-template-columns: repeat(3, 1fr); gap: 0; } .path + .path { border-left: 1px solid var(--rule); padding-left: 2rem; } .path { padding-right: 2rem; } }
.path h2 { font-size: var(--step-2); margin-bottom: 0.3rem; }
.path h2 a { color: var(--ink); text-decoration: none; display: inline-flex; gap: 0.6rem; align-items: center; }
.path h2 a:hover { color: var(--lagoon); }
.path h2 .icon { color: var(--lagoon); width: 1.5rem; height: 1.5rem; }
.path p { color: var(--ink-soft); margin-bottom: 0.9rem; }
.path ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.path li { border-bottom: 1px solid var(--rule); }
.path li a { display: flex; justify-content: space-between; padding: 0.6rem 0; color: var(--ink); text-decoration: none; font-weight: 550; }
.path li a::after { content: '→'; color: var(--ink-mute); }
.path li a:hover { color: var(--lagoon); }

.home-now { background: var(--paper-deep); }
.now-grid { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 600px) { .now-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .now-grid { grid-template-columns: repeat(4, 1fr); } }
.now { display: grid; gap: 0.3rem; align-content: start; padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
@media (min-width: 600px) { .now:nth-child(2n) { padding-left: 1.25rem; border-left: 1px solid var(--rule); } }
@media (min-width: 1000px) { .now { border-bottom: 0; } .now + .now { padding-left: 1.25rem; border-left: 1px solid var(--rule); } }
a.now:hover .now__big { color: var(--lagoon); }
.now .icon--lg { color: var(--lagoon); margin-bottom: 0.4rem; }
.now__label { font-size: 0.92rem; font-weight: 650; color: var(--ink-mute); }
.now__big { font-family: var(--font-display); font-size: var(--step-2); font-weight: 650; line-height: 1.15; display: flex; align-items: center; gap: 0.5rem;  letter-spacing: -0.015em; }
.now__big a { color: inherit; text-decoration: none; }
.now > span:last-child { color: var(--ink-soft); font-size: 0.92rem; }

.term-list--big { gap: 0.6rem 1.4rem; }
.term-list--big a { font-size: 0.88rem; }

/* Elements that only exist for the phone layout stay hidden elsewhere. */
.hero__search, .hero__label, .hero__short, .hero__sub-short, .home-lede, .home-paths__head, .path__go { display: none; }
.hero__quick-list { display: contents; }

/* ==========================================================================
   Phones (under 720px): a different layout, not just smaller type.
   Headline, search and five quick answers first; then the featured guide,
   what is new, a clear "Start here" choice, and today's dates and tools.
   ========================================================================== */
@media (max-width: 719px) {
  .section { padding-block: 2rem; }
  .section-head { margin-bottom: 1rem; }
  .section-head h2 { font-size: 1.3rem; }
  .hero__latest-head a, .section-head a { padding-block: 0.4rem; }
  .home-lede { display: block; margin: -0.55rem 0 1rem; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.4; }

  /* Hero: headline, search, quick answers, featured guide */
  .hero__band { padding-block: 1.25rem 1.75rem; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .hero__title { max-width: 14ch; margin-bottom: 0.5rem; font-size: 2.3rem; }
  .hero__sub { margin-bottom: 0.9rem; font-size: 1rem; line-height: 1.45; }
  .hero__sub-long { display: none; }
  .hero__sub-short { display: inline; }
  .hero__search { display: flex; align-items: center; gap: 0.6rem; min-height: 3.1rem; padding: 0.3rem 0.35rem 0.3rem 1rem; background: #fff; border: 1.5px solid rgb(11 122 117 / .22); border-radius: 99px; box-shadow: 0 10px 24px -16px rgb(12 61 59 / .45); }
  .hero__search:focus-within { border-color: var(--lagoon); box-shadow: 0 0 0 4px var(--lagoon-wash); }
  .hero__search > .icon { color: var(--lagoon); }
  .hero__search input { flex: 1; min-width: 0; padding: 0.4rem 0; border: 0; outline: 0; background: none; font-size: 1rem; }
  .hero__search input::placeholder { color: var(--ink-mute); }
  .hero__search button { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--lagoon); color: #fff; cursor: pointer; }
  .hero__search button .icon { width: 1.15rem; height: 1.15rem; }
  .hero__label { display: block; margin: 0 0 0.6rem; color: var(--lagoon-deep); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

  /* Quick answers: five icon buttons, all visible, no sideways scrolling */
  .hero__quick { display: block; max-width: none; }
  .hero__quick-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(3.2rem, 1fr)); gap: 0.3rem; }
  .hero__quick a { flex-direction: column; justify-content: flex-start; gap: 0.45rem; min-height: 0; padding: 0; border: 0; background: none; text-align: center; }
  .hero__quick a:last-child:nth-child(odd) { grid-column: auto; }
  .hero__quick .icon { width: 3.2rem; height: 3.2rem; padding: 0.8rem; border: 1px solid rgb(11 122 117 / .16); border-radius: 18px; background: #fff; box-shadow: 0 8px 18px -14px rgb(12 61 59 / .5); }
  .hero__quick a > span > strong, .hero__quick small { display: none; }
  .hero__short { display: block; color: var(--ink); font-size: 0.75rem; font-weight: 650; line-height: 1.2; }
  @media (max-width: 359px) {
    .hero__quick .icon { width: 2.8rem; height: 2.8rem; padding: 0.7rem; border-radius: 16px; }
    .hero__short { font-size: 0.66rem; letter-spacing: -0.01em; }
  }

  /* Featured guide: image with the title laid over its lower edge */
  .hero__lead .story--lead { display: grid; }
  .hero__lead .story--lead .story__media, .hero__lead .story--lead .story__body { grid-area: 1 / 1; }
  .hero__lead .story--lead .story__media { aspect-ratio: 16 / 11; border-radius: 20px; box-shadow: 0 22px 40px -28px rgb(12 61 59 / .6); }
  .hero__lead .story--lead .story__body { align-self: end; gap: 0.35rem; margin: 0; padding: 3.5rem 1.1rem 1rem; border-radius: 0 0 20px 20px; background: linear-gradient(180deg, rgb(8 24 28 / 0) 0%, rgb(8 24 28 / .78) 100%); box-shadow: none; }
  .hero__lead .story--lead .story__title { font-size: 1.3rem; line-height: 1.15; }
  .hero__lead .story--lead .story__title a, .hero__lead .story--lead:hover .story__title a { color: #fff; }
  .hero__lead .story--lead .story__dek { display: none; }
  .hero__lead .story--lead .story__meta { color: rgb(255 255 255 / .85); }
  .hero__lead .story--lead .story__meta a { color: #fff; }

  /* New on the site: flat, below the band, swipeable */
  .hero__latest { margin-top: 0; padding-top: 1.75rem; }
  .hero__latest-head h2 { font-size: 1.3rem; }
  .hero__cards { grid-auto-columns: 72%; gap: 0.75rem; }
  .hero__cards .story { padding: 0.5rem 0.5rem 0.85rem; border-radius: 18px; box-shadow: none; border: 1px solid var(--rule); }
  .hero__cards .story__media { aspect-ratio: 16 / 9; }
  .hero__cards .story__title { font-size: 1rem; }
  .hero__cards .story__meta { font-size: 0.8rem; }

  /* Start here: three clear choices */
  .home-paths { padding-block: 0.75rem 2rem; }
  .home-paths__head { display: block; margin-bottom: 0.9rem; }
  .home-paths__head h2 { margin: 0 0 0.15rem; font-size: 1.3rem; }
  .home-paths__head p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }
  .home-paths .paths { gap: 0.6rem; padding: 0; border-radius: 0; background: none; }
  .home-paths .path { position: relative; display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; column-gap: 0.85rem; align-items: center; padding: 0.8rem 0.9rem; border-radius: 18px; background: var(--surface); }
  .home-paths .path h2, .home-paths .path h2 a { display: contents; }
  .home-paths .path h2 .icon:first-child { grid-column: 1; grid-row: 1 / span 2; width: 2.9rem; height: 2.9rem; padding: 0.7rem; border-radius: 14px; background: var(--paper); color: var(--lagoon); }
  .home-paths .path__name { grid-column: 2; grid-row: 1; color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
  .home-paths .path__name::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
  .home-paths .path p { grid-column: 2; grid-row: 2; margin: 0.1rem 0 0; font-size: 0.88rem; line-height: 1.35; }
  .home-paths .path h2 .path__go { display: block; grid-column: 3; grid-row: 1 / span 2; width: 1.2rem; height: 1.2rem; color: var(--ink-mute); }
  .home-paths .path ul { display: none; }

  /* Today in Mauritius: one card, four rows */
  .home-now { padding-block: 2rem 2.25rem; }
  .now-grid.home-carousel { display: block; overflow: visible; margin-inline: 0; padding: 0; border: 0; border-radius: 18px; background: var(--paper); box-shadow: 0 14px 30px -24px rgb(12 61 59 / .5); }
  .now-grid.home-carousel .now { position: relative; display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; column-gap: 0.85rem; row-gap: 0; align-items: center; padding: 0.85rem 1rem; border: 0 !important; border-radius: 0; background: none; }
  .now-grid.home-carousel .now + .now { border-top: 1px solid var(--rule) !important; }
  .now-grid.home-carousel .now .icon--lg { grid-column: 1; grid-row: 1 / span 3; width: 2.9rem; height: 2.9rem; margin: 0; padding: 0.7rem; border-radius: 14px; background: var(--lagoon-wash); color: var(--lagoon-deep); }
  .now-grid.home-carousel .now__label { grid-column: 2; grid-row: 1; color: var(--ink-mute); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
  .now-grid.home-carousel .now__big { grid-column: 2; grid-row: 2; font-size: 1.1rem; line-height: 1.25; }
  .now-grid.home-carousel .now > span:last-child { grid-column: 2; grid-row: 3; font-size: 0.86rem; line-height: 1.35; }
  .now-grid.home-carousel a.now::after { content: ''; grid-column: 3; grid-row: 1 / span 3; width: 0.55rem; height: 0.55rem; margin-right: 0.15rem; border-top: 2px solid var(--ink-mute); border-right: 2px solid var(--ink-mute); transform: rotate(45deg); }

  /* Swipeable rows */
  .home-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; grid-template-columns: none; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; border-top: 0; }
  .home-carousel::-webkit-scrollbar { display: none; }
  .home-carousel > * { scroll-snap-align: start; }
  .home-carousel .story__title { font-size: 1.05rem; }

  /* Most read: compact list with thumbnails */
  .home-compact { gap: 0; }
  .home-compact .story { flex-direction: row; align-items: center; gap: 0.9rem; padding-block: 0.8rem; border-bottom: 1px solid var(--rule); }
  .home-compact .story:last-child { border-bottom: 0; }
  .home-compact .story__media { width: 5.5rem; flex: none; aspect-ratio: 1; border-radius: var(--radius); }
  .home-compact .story__title { font-size: 1.02rem; line-height: 1.3; }
  .home-compact .story__dek, .home-compact .save-btn { display: none; }
  .home-compact .story__body { gap: 0.3rem; }

  /* Explore by region: the map already links to every area, so the list is dropped on phones. */
  .home-regions .index-list { display: none; }
}

/* ---------- Browse by topic: four groups of icon chips ---------- */
.home-topics-band { background: var(--paper-deep); }
.topic-groups__lede { margin: -0.75rem 0 1.5rem; color: var(--ink-soft); }
.topic-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1rem; }
.topic-group { padding: 1.15rem 1.15rem 1.25rem; border-radius: 20px; background: var(--paper); box-shadow: 0 14px 30px -26px rgb(12 61 59 / .55); }
.topic-group__head { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.9rem; font-size: 1.1rem; letter-spacing: -0.015em; }
.topic-group__head small { display: block; margin-top: 0.1rem; color: var(--ink-mute); font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0; }
.topic-group__icon { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--lagoon); color: #fff; }
.topic-group__icon .icon { width: 1.25rem; height: 1.25rem; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.topic-chip { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.4rem; padding: 0.3rem 0.5rem 0.3rem 0.55rem; border: 1px solid var(--rule); border-radius: 99px; background: var(--surface); color: var(--ink); font-size: 0.9rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.topic-chip .icon { width: 1rem; height: 1rem; color: var(--lagoon); }
.topic-chip small { min-width: 1.4rem; padding: 0.1rem 0.4rem; border-radius: 99px; background: var(--paper); color: var(--ink-mute); font-size: 0.72rem; font-weight: 700; text-align: center; }
.topic-chip:hover, .topic-chip:focus-visible { border-color: var(--lagoon); background: var(--lagoon-wash); color: var(--lagoon-deep); }
@media (max-width: 719px) {
  .topic-groups__lede { margin: -0.5rem 0 1rem; font-size: 0.93rem; }
  .topic-groups { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .topic-group { padding: 0.95rem; border-radius: 18px; }
  .topic-chips { gap: 0.35rem; }
  .topic-chip { min-height: 2.4rem; padding: 0.3rem 0.7rem 0.3rem 0.55rem; font-size: 0.86rem; }
  .topic-chip small { display: none; }
}
