/* Home page experiment — "La Guinée en direct". Loaded after guichet.css; everything new is prefixed n-. */
:root { --n-night: #061a25; --n-night-2: #0c2d3d; --n-glow: #2fd39a; --n-mist: #9fb3bb; --n-hair: rgba(255,255,255,.12); --n-wide: 1480px; }
.n-home main { background: var(--surface); }

/* ---------- 1. Stage ---------- */
.n-stage { position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: radial-gradient(900px 620px at 50% 46%, #124357 0%, rgba(18,67,87,0) 70%), linear-gradient(180deg, var(--n-night-2), var(--n-night)); }
.n-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000, transparent); mask-image: radial-gradient(closest-side at 50% 50%, #000, transparent); }

.n-status { width: 100%; display: flex; align-items: center; gap: var(--space-2) var(--space-6); flex-wrap: wrap; max-width: var(--n-wide); margin: 0 auto;
  padding: 10px var(--gutter-r) 10px var(--gutter-l); border-bottom: 1px solid var(--n-hair); font: 600 14px/20px var(--font-body); color: var(--n-mist); font-variant-numeric: tabular-nums; }
.n-status b { color: #fff; font-weight: 700; }
.n-status time { color: #fff; }
.n-status__spacer { flex: 1; }
.n-status__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.n-status__item svg { width: 18px; height: 18px; }
@keyframes n-beat { to { box-shadow: 0 0 0 9px rgba(255,77,94,0); } }

.n-stage__grid { display: grid; gap: var(--space-8); max-width: var(--n-wide); margin: 0 auto; padding: var(--space-6) var(--gutter-r) var(--space-8) var(--gutter-l); }
.n-pitch { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.n-pitch__title { margin: 0; font: 800 40px/44px var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.n-pitch__title em { font-style: normal; color: var(--n-glow); }
.n-stage .g-verified { color: #d5f5e8; }
.n-stage .g-verified svg { stroke: var(--n-glow); }
.n-stage .g-store { background: #fff; color: var(--ink); }
.n-stage .g-store:hover { background: #dff5ec; }
.n-stage .g-store__logo { color: var(--ink); }
.n-stage .g-marquee__item--card img { box-shadow: 0 8px 20px rgba(0,0,0,.35); }

/* Map on the dark stage */
.n-map { align-items: stretch; }
.n-map__frame { position: relative; }
.n-stage .g-live__map svg { filter: drop-shadow(0 0 28px rgba(47,211,154,.28)) drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.n-stage .g-live .g-gmap__pref { fill: #16606a; stroke: #6fe3bb; stroke-width: 1.6; }
.n-stage .g-live .g-gmap__pref:hover { fill: #1f8380; }
.n-stage .g-live .g-gmap__pref.is-lit { fill: #25a987; }
.n-stage .g-live .g-gmap__pref.is-picked { fill: var(--n-glow); stroke: #fff; }
/* No browser box around a tapped préfecture (huge once zoomed in); keyboard focus shows as a white border instead. */
.n-stage .g-live .g-gmap__pref { -webkit-tap-highlight-color: transparent; outline: none; }
.n-stage .g-live .g-gmap__pref:focus-visible { stroke: #fff; stroke-width: 3; }
.n-stage .g-live__zoom { position: absolute; top: 8px; right: 8px; z-index: 2; padding: 8px 14px; border: 1px solid rgba(111,227,187,.5); border-radius: 999px;
  background: rgba(7,31,44,.8); color: #fff; font: 700 14px/1 var(--font-body, inherit); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.n-stage .g-live__zoom:hover { background: #0d3a4a; }
.n-stage .g-live__zoom:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.n-stage .g-live__zoom[hidden] { display: none; }
.n-stage .g-live__card { background: #fff; color: var(--ink); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.n-stage .g-live__card small { color: var(--ink-muted); }
.n-stage .g-live .g-credit { color: #6f8791; }
.n-map__cities { position: absolute; inset: 0; pointer-events: none; }
.n-city { position: absolute; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: var(--radius-pill);
  background: rgba(6,26,37,.82); border: 1px solid rgba(255,255,255,.18); color: #fff; font: 700 12px/18px var(--font-body); white-space: nowrap; font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: n-rise .5s ease both; }
.n-city svg { width: 15px; height: 15px; color: var(--flag-gold); }
.n-city span { color: var(--n-mist); font-weight: 600; }
@keyframes n-rise { from { opacity: 0; transform: translate(-50%, 16px); } }

/* News rail */
.n-rail { display: flex; flex-direction: column; min-width: 0; height: 460px; border: 1px solid var(--n-hair); border-radius: 20px; background: rgba(255,255,255,.05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow: hidden; }
.n-rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-4) var(--space-3); border-bottom: 1px solid var(--n-hair); }
.n-rail__head h2 { margin: 0; font: 800 20px/26px var(--font-display); }
.n-rail__fresh { font: 600 13px/18px var(--font-body); color: var(--n-mist); font-variant-numeric: tabular-nums; }
.n-rail__window { flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 90%, transparent); mask-image: linear-gradient(180deg, transparent, #000 7%, #000 90%, transparent); }
.n-rail__list { list-style: none; margin: 0; padding: 0; animation: n-scroll var(--n-rail-time, 90s) linear infinite; }
.n-rail__window:hover .n-rail__list, .n-rail__window:focus-within .n-rail__list { animation-play-state: paused; }
@keyframes n-scroll { to { transform: translateY(-50%); } }
.n-rail__item a { display: block; padding: 14px var(--space-4); border-bottom: 1px solid rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.n-rail__item a:hover { background: rgba(255,255,255,.07); }
.n-rail__item a:hover .n-item__title { text-decoration: underline; text-underline-offset: 3px; }
.n-item__meta { display: flex; align-items: center; gap: 8px; font: 600 12px/16px var(--font-body); color: var(--n-mist); }
.n-item__meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--n-glow)); }
.n-item__meta b { color: #dbe6ea; font-weight: 700; }
.n-item__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; font: 600 15px/21px var(--font-body); }
.n-rail__more { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap-min); border-top: 1px solid var(--n-hair); color: var(--n-glow); font: 700 15px/1 var(--font-body); text-decoration: none; }
.n-rail__more:hover { background: rgba(47,211,154,.1); }
.n-rail__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 2. Advertising ---------- */
.n-adband { padding: var(--space-6) var(--gutter-r) var(--space-6) var(--gutter-l); background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.n-ad { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); overflow: hidden; border-radius: 16px; color: var(--ink); text-decoration: none;
  border: 1.5px dashed #a9b7bc; background: repeating-linear-gradient(135deg, #fff 0 14px, #f6f8f7 14px 28px); transition: border-color .15s ease, box-shadow .15s ease; }
.n-ad:hover { border-color: var(--action); box-shadow: 0 10px 28px rgba(7,31,44,.1); }
.n-ad__tag { position: absolute; top: 10px; left: 12px; padding: 2px 8px; border-radius: 6px; background: var(--ink); color: #fff; font: 700 11px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.n-ad__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.n-ad__title { font: 800 22px/28px var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.n-ad__meta { font: 600 14px/20px var(--font-body); color: var(--ink-muted); }
.n-ad__cta { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--action); color: #fff; font: 700 15px/1 var(--font-body); }
.n-ad--billboard { max-width: 970px; min-height: 180px; margin: 0 auto; padding: 44px var(--space-6) var(--space-6); flex-wrap: wrap; }
.n-ad--tower { flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 250px; padding: 44px var(--space-4) var(--space-4); }
.n-ad--native { min-height: 100%; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 44px var(--space-4) var(--space-4); }
.n-ad--native .n-ad__title { font-size: 18px; line-height: 24px; }

/* ---------- 3. News feed ---------- */
.n-news { padding: var(--space-8) var(--gutter-r) var(--space-12) var(--gutter-l); }
.n-news__wrap { display: grid; gap: var(--space-8); max-width: 1240px; margin: 0 auto; }
.n-news__main { min-width: 0; }
.n-news__head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.n-chips { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.n-chips::-webkit-scrollbar { display: none; }
.n-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-muted); font: 700 14px/1 var(--font-body); cursor: pointer; }
.n-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.n-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.n-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.n-feed { display: grid; gap: var(--space-3); }
.n-card { display: flex; flex-direction: column; gap: 8px; padding: var(--space-4); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.n-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 10px 26px rgba(7,31,44,.09); }
.n-card .n-item__meta { color: var(--ink-muted); }
.n-card .n-item__meta b { color: var(--ink); }
.n-card__title { font: 700 17px/24px var(--font-display); text-wrap: pretty; }
.n-card--lead { padding: var(--space-6); background: var(--ink); border-color: var(--ink); color: #fff; }
.n-card--lead .n-item__meta { color: #a9bac1; }
.n-card--lead .n-item__meta b { color: #fff; }
.n-card--lead .n-card__title { font-size: 26px; line-height: 33px; letter-spacing: -0.01em; }
.n-card__go { margin-top: auto; padding-top: 4px; font: 700 13px/18px var(--font-body); color: var(--action-text); }
.n-card--lead .n-card__go { color: var(--n-glow); }
.n-more { margin: var(--space-4) auto 0; display: flex; }
.n-news__credit { margin-top: var(--space-4); text-align: center; }

.n-side { display: grid; gap: var(--space-4); align-content: start; }

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  .n-feed { grid-template-columns: 1fr 1fr; }
  .n-card--lead { grid-column: 1 / -1; }
  .n-news__head { flex-direction: row; align-items: center; justify-content: space-between; }
  .n-side { grid-template-columns: 1fr 1fr; }
  .n-ad--tower { grid-column: 1 / -1; }
}

/* ---------- Computer: the immersive layout ---------- */
@media (min-width: 1080px) {
  .n-home .g-header__bar--wide { max-width: var(--n-wide); padding-inline: var(--space-8); }
  .n-status, .n-stage__grid { padding-inline: var(--space-8); }
  .n-stage { min-height: calc(100vh - 69px); display: flex; flex-direction: column; }
  .n-stage__grid { flex: 1; width: 100%; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(300px, 350px); align-items: center; gap: var(--space-6); padding-block: var(--space-8); }
  .n-pitch { gap: var(--space-6); }
  .n-pitch__title { font-size: clamp(44px, 4.1vw, 64px); line-height: 1.04; }
  .n-map { max-width: min(100%, calc((100vh - 230px) * 1.186)); width: 100%; margin: 0 auto; }
  .n-rail { height: min(640px, calc(100vh - 190px)); align-self: center; }
  .n-city { font-size: 13px; }
  .n-adband { padding-block: var(--space-8); }
  .n-ad--billboard { min-height: 250px; padding: var(--space-8) 56px; flex-wrap: nowrap; }
  .n-ad--billboard .n-ad__title { font-size: 38px; line-height: 44px; letter-spacing: -0.02em; }
  .n-ad--billboard .n-ad__cta { min-height: 52px; padding: 0 var(--space-6); font-size: 17px; }
  .n-news { padding-block: var(--space-12) 72px; }
  .n-news__wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
  .n-side { grid-template-columns: 1fr; position: sticky; top: 92px; }
  .n-ad--tower { min-height: 600px; }
  .n-ad--tower .n-ad__title { font-size: 28px; line-height: 34px; }
  .n-home .g-heading { font-size: 30px; line-height: 36px; }
}
@media (min-width: 1080px) and (max-height: 760px) { .n-ad--tower { min-height: 420px; } }

@media (prefers-reduced-motion: reduce) {
  .n-city { animation: none; }
  .n-rail__list { animation: none; }
  .n-rail__window { overflow-y: auto; }
  .n-rail__item[aria-hidden] { display: none; }
  .n-card:hover { transform: none; }
}

/* Small fixes */
.n-news__head .g-heading { white-space: nowrap; }
.n-more { min-height: 48px; padding: 0 var(--space-6); border: 1.5px solid var(--ink); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer; }
.n-more:hover { background: var(--ink); color: #fff; }

/* Phones: the live bar is one line — "En direct", Conakry time, temperature. Date and rates stay lower on the page. */
@media (max-width: 699px) {
  .n-status { flex-wrap: nowrap; gap: var(--space-3); padding-block: 8px; }
  .n-status [data-today], .n-ticker__more { display: none; }
}

/* The tagline is a full sentence: smaller than the short headline it replaced. */
.n-pitch__title--tag { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
@media (min-width: 1080px) { .n-pitch__title--tag { font-size: clamp(30px, 2.5vw, 40px); line-height: 1.12; } }

/* ---------- Events (replace the news) ---------- */
.n-sample { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--radius-pill); border: 1px solid rgba(242,189,0,.55); color: var(--flag-gold); font: 700 11px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.n-sample--light { margin-left: 8px; vertical-align: middle; border-color: #b98f00; color: var(--notice); background: var(--notice-tint); }
.n-ev { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-3); }
.n-rail__item .n-ev { padding: 14px var(--space-4); border-bottom: 1px solid rgba(255,255,255,.07); }
.n-ev__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.n-date { flex: none; display: grid; place-items: center; align-content: center; width: 54px; height: 58px; border-radius: 14px; background: rgba(255,255,255,.08); border-top: 4px solid var(--dot, var(--n-glow)); text-align: center; }
.n-date b { font: 800 22px/24px var(--font-display); }
.n-date small { font: 700 11px/14px var(--font-body); letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.n-ev__place { display: inline-flex; align-items: center; gap: 5px; font: 600 13px/18px var(--font-body); color: var(--n-mist); }
.n-ev__place svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.n-rail__item .n-item__title { margin-top: 0; -webkit-line-clamp: 2; }
.n-card.n-ev { flex-direction: unset; align-items: center; cursor: default; }
.n-card .n-date { background: var(--surface-sunken); }
.n-card .n-ev__place { color: var(--ink-muted); }
.n-card--lead .n-date { width: 72px; height: 78px; background: rgba(255,255,255,.1); }
.n-card--lead .n-date b { font-size: 30px; line-height: 32px; }
.n-card--lead .n-ev__place { color: #a9bac1; font-size: 15px; }
.n-card--lead.n-ev { gap: var(--space-4); }

/* ---------- Header ticker: weather and rates take turns in one spot ---------- */
.n-ticker { gap: 6px; min-width: 0; overflow: hidden; cursor: default; transition: opacity .25s ease, transform .25s ease; }
.n-ticker.is-out { opacity: 0; transform: translateY(-6px); }
.n-ticker__icon { display: inline-flex; color: var(--flag-gold); }
.n-ticker__icon svg { width: 18px; height: 18px; }
.n-ticker__name { color: var(--n-mist); }
.n-ticker b { color: #fff; }
.n-ticker__more { color: var(--n-mist); opacity: .8; }
.n-ticker__more::before { content: "· "; }
@media (max-width: 699px) { .n-ticker { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .n-ticker { transition: none; } }

/* Phones: one compact line — "En direct", the time, then the ticker. */
@media (max-width: 699px) {
  .n-status { gap: 8px; font-size: 13px; }
  .n-clock { flex: none; }
  .n-clock b { display: none; }
  .n-ticker { flex: 1 1 auto; justify-content: flex-end; gap: 5px; }
  .n-ticker__icon svg { width: 16px; height: 16px; }
}

/* ---------- Header strip, to the right of the logo: Conakry time, then weather and rates taking turns ----------
   Computer: the tabs sit in the middle of the bar, so the strip shortens on smaller screens.
   Tablet: the tabs are on their own row, the strip has room. Phone: time (no seconds) and the rotating item. */
.g-header .n-status { width: auto; max-width: none; margin: 0; padding: 0; border: 0; flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; gap: 14px; color: var(--ink-muted); font: 600 14px/20px var(--font-body); }
.g-header .n-status { font-variant-numeric: tabular-nums; }
.g-header .n-clock time { display: inline-block; text-align: left; } /* width set by home2.js: the widest possible time */
.g-header .n-status b, .g-header .n-status time, .g-header .n-ticker b { color: var(--ink); }
.g-header .n-clock { flex: none; }
.g-header .n-ticker { flex: none; box-sizing: border-box; justify-content: flex-start; margin-left: 0; gap: 6px; padding-left: 14px; border-left: 1px solid var(--line); }
.g-header .n-ticker__name { color: var(--ink-muted); }
.g-header .n-ticker__icon { color: #c98a00; }
.g-header .n-ticker__more { display: none; }
@media (min-width: 1080px) and (max-width: 1279px) {
  .g-header .n-clock b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 699px) {
  .g-header .n-clock b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .g-header .n-status { gap: 8px; font-size: 13px; }
  .g-header .n-ticker { gap: 5px; padding-left: 8px; }
  .g-header .n-ticker__icon--coin { display: none; } /* rates: "= … GNF" says enough; frees room for the longest one */
}

/* ---------- City filter: arrows for the mouse, empty city ---------- */
.n-chipbar { position: relative; min-width: 0; }
.n-chipbar .n-chips { padding-inline: 2px; scroll-behavior: auto; }
.n-chipnav { position: absolute; top: 0; bottom: 4px; z-index: 2; display: flex; align-items: center; width: 56px; padding: 0; border: 0; cursor: pointer; color: var(--ink); }
.n-chipnav--prev { left: 0; justify-content: flex-start; background: linear-gradient(90deg, var(--surface) 55%, rgba(255,255,255,0)); }
.n-chipnav--next { right: 0; justify-content: flex-end; background: linear-gradient(270deg, var(--surface) 55%, rgba(255,255,255,0)); }
.n-chipnav span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); box-shadow: 0 2px 8px rgba(7,31,44,.12); }
.n-chipnav:hover span { background: var(--ink); border-color: var(--ink); color: #fff; }
.n-chipnav:focus-visible span { outline: 3px solid var(--focus); outline-offset: 2px; }
.n-chipnav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .n-chipnav { display: none; } }
@media (min-width: 700px) { .n-chipbar { flex: 1 1 0; } }
.n-feed__empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-6); border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--surface-sunken); }
.n-feed__empty b { font: 700 17px/24px var(--font-display); }

/* ---------- Events laid out like a news portal (MSN style): grey page, white photo cards, big slideshow ---------- */
.n-news { background: var(--surface-sunken); }
.n-chipnav--prev { background: linear-gradient(90deg, var(--surface-sunken) 55%, rgba(243,245,244,0)); }
.n-chipnav--next { background: linear-gradient(270deg, var(--surface-sunken) 55%, rgba(243,245,244,0)); }
.n-feed { grid-template-columns: 1fr; gap: var(--space-4); grid-auto-flow: dense; }
.m-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(7,31,44,.06), 0 4px 14px rgba(7,31,44,.06); transition: box-shadow .18s ease, transform .18s ease; }
.m-card:hover { box-shadow: 0 2px 4px rgba(7,31,44,.08), 0 14px 30px rgba(7,31,44,.14); transform: translateY(-2px); }
.m-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #dfe5e4; }
.m-card__media img, .m-hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
/* The app's category cards carry a printed label and a rounded frame: show the top of the picture only, slightly enlarged. */
.m-card__media img.is-card, .m-hero__slide img.is-card { object-position: 50% 0; transform: scale(1.16); transform-origin: 50% 18%; }
.m-card:hover .m-card__media img { transform: scale(1.05); }
.m-card:hover .m-card__media img.is-card { transform: scale(1.22); }
.m-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.m-card__title { margin: 0; font: 700 17px/23px var(--font-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-card:hover .m-card__title { text-decoration: underline; text-underline-offset: 3px; }
.m-src { display: flex; align-items: center; gap: 6px; min-width: 0; font: 600 12px/16px var(--font-body); color: var(--ink-muted); }
.m-src i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--action)); }
.m-src b { flex: none; color: var(--ink); font-weight: 700; }
.m-src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-src span::before { content: "· "; }
.m-when { margin-top: auto; font: 600 13px/18px var(--font-body); color: var(--ink-muted); }
.m-when::first-letter { text-transform: uppercase; }
.m-date { position: absolute; top: 10px; left: 10px; z-index: 2; display: grid; place-items: center; align-content: center; width: 46px; height: 50px; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.25); text-align: center; }
.m-date b { font: 800 19px/20px var(--font-display); }
.m-date small { font: 700 10px/12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--flag-red); }
.m-date--lg { top: 16px; left: 16px; width: 58px; height: 62px; border-radius: 12px; }
.m-date--lg b { font-size: 24px; line-height: 26px; }
.m-date--lg small { font-size: 11px; }
.m-card--ad .m-card__media { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #fff 0 14px, #eef1f0 14px 28px); }
.m-card__adtag { padding: 3px 10px; border-radius: 6px; background: var(--ink); color: #fff; font: 700 11px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.m-card--ad .m-when { color: var(--action-text); font-weight: 700; }

.m-hero { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: #0c2d3d; color: #fff; box-shadow: 0 1px 2px rgba(7,31,44,.06), 0 4px 14px rgba(7,31,44,.08); }
.m-hero__slide { position: absolute; inset: 0; animation: m-fade .45s ease both; }
.m-hero__slide[hidden] { display: none; }
@keyframes m-fade { from { opacity: 0; } }
.m-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,16,23,.92) 0%, rgba(4,16,23,.5) 38%, rgba(4,16,23,0) 66%); }
.m-hero__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 44px; }
.m-hero__title { margin: 0; font: 800 clamp(22px, 2.6vw, 34px)/1.15 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.m-hero .m-src { color: #d5e0e4; font-size: 13px; }
.m-hero .m-src b { color: #fff; }
.m-hero .m-when { margin: 0; color: #d5e0e4; font-size: 14px; }
.m-hero__nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.3); opacity: 0; transition: opacity .2s ease; }
.m-hero:hover .m-hero__nav, .m-hero__nav:focus-visible { opacity: 1; }
.m-hero__nav--prev { left: 12px; } .m-hero__nav--next { right: 12px; }
.m-hero__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .m-hero__nav { opacity: 1; } }
.m-hero__dots { position: absolute; left: 18px; bottom: 16px; z-index: 3; display: flex; gap: 8px; }
.m-hero__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: width .2s ease, background .2s ease; }
.m-hero__dots button[aria-current="true"] { width: 26px; border-radius: 6px; background: #fff; }
.n-feed__empty { background: var(--surface); }
.n-more { background: var(--surface); }
@media (min-width: 700px) {
  .n-feed { grid-template-columns: 1fr 1fr; }
  .m-hero { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (min-width: 1080px) {
  .n-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m-hero { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 440px; }
  .m-hero__text { padding: 24px 24px 52px; }
  .m-hero__dots { left: 24px; bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) { .m-card, .m-card__media img, .m-hero__slide { transition: none; animation: none; } .m-card:hover { transform: none; } }

/* Photo credits under the events. */
.n-credits { max-width: 720px; margin: var(--space-3) auto 0; font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.n-credits summary { width: fit-content; margin: 0 auto; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.n-credits p { margin: var(--space-2) 0; }
.n-credits ul { margin: 0; padding-left: 18px; }
.n-credits a { color: var(--ink-muted); }

/* Events: a wider section and lower cards (shorter photos), four cards per row on wide screens. */
.m-card__media { aspect-ratio: 2 / 1; }
.m-card__body { gap: 4px; padding: 10px 12px 12px; }
.m-card__title { font-size: 16px; line-height: 21px; }
@media (min-width: 1080px) {
  .n-news__wrap { max-width: var(--n-wide); gap: 32px; }
  .n-news { padding-inline: var(--space-8); }
  .m-hero { min-height: 0; }
}
@media (min-width: 1280px) { .n-feed { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Events list beside the map: a small photo per event. */
.n-thumb { flex: none; display: block; width: 64px; height: 64px; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.n-thumb img { width: 100%; height: 100%; object-fit: cover; }
.n-rail__item .n-ev { padding-block: 12px; }

/* Header weather: the city name. */
.n-ticker__city { white-space: nowrap; }

/* Ad spaces: contact details instead of a button (the whole tile opens an e-mail). */
.n-ad__contact { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.n-ad__contact small { font: 700 11px/14px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.n-ad__contact b { display: inline-flex; align-items: center; gap: 6px; font: 700 15px/20px var(--font-body); color: var(--action-text); overflow-wrap: anywhere; }
.n-ad__contact svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.n-ad:hover .n-ad__contact b { text-decoration: underline; text-underline-offset: 3px; }
.m-when--mail { color: var(--action-text); font-weight: 700; overflow-wrap: anywhere; }
.m-when--mail::first-letter { text-transform: none; }

/* ---------- Categories beside the map (replace the events there): two per row, subcategories in a pop-up ---------- */
/* Tall tiles in a window that scrolls round slowly (two copies of the list); it stops under the mouse or while a pop-up is open. */
.n-cats { height: 520px; }
/* The window really scrolls (wheel, trackpad, finger); home2.js moves it slowly by itself and keeps it looping. No scrollbar shown. */
.n-cats__window { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-inline: var(--space-3);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 5%, #000 94%, transparent); mask-image: linear-gradient(180deg, transparent, #000 5%, #000 94%, transparent); }
/* Rows of 136px + an 8px gap; the bottom padding equals the gap so half the list is exactly one copy. */
.n-cats__grid { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 136px; gap: 8px; }
.n-cats__window::-webkit-scrollbar { display: none; }
.n-cats__grid li { min-width: 0; }
.n-cat { position: relative; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: var(--n-night-2); color: #fff; text-align: left; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1); transition: box-shadow .15s ease, transform .15s ease; }
.n-cat__thumb, .n-cat__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The app pictures carry their name at the bottom: show the photo part only, the name is written in text. */
.n-cat__thumb img { height: 150%; object-fit: cover; object-position: 50% 0; transform-origin: 50% 0; transition: transform .3s ease; } /* 150%: the printed name stays below the tile */
.n-cat__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,26,37,0) 30%, rgba(6,26,37,.88)); }
.n-cat__name { position: absolute; left: 12px; right: 12px; bottom: 10px; font: 700 15px/19px var(--font-body); text-shadow: 0 1px 3px rgba(0,0,0,.5); text-wrap: balance; overflow-wrap: break-word; } /* longer names wrap to two lines */
.n-cat:hover, .n-cat[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--n-glow), 0 8px 20px rgba(0,0,0,.35); }
.n-cat:hover img, .n-cat[aria-expanded="true"] img { transform: scale(1.06); }
.n-cat:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 1080px) { .n-cats { height: min(640px, calc(100vh - 190px)); } }

/* The pop-up: our own card, white, with a small arrow pointing at the category. */
.n-pop { position: absolute; z-index: 60; width: 250px; max-width: calc(100vw - 24px); padding: var(--space-4); border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 18px 44px rgba(0,0,0,.38), 0 0 0 1px rgba(7,31,44,.06); opacity: 0; transform: translateX(6px); transition: opacity .14s ease, transform .14s ease; }
.n-pop--below { transform: translateY(-6px); }
.n-pop.is-in { opacity: 1; transform: none; }
.n-pop:has(.n-pop__list--two) { width: 370px; }
.n-pop::before { content: ""; position: absolute; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.n-pop--left::before { right: -6px; top: calc(var(--arrow, 30px) - 7px); }
.n-pop--below::before { top: -6px; left: calc(var(--arrow, 30px) - 7px); }
.n-pop__title { display: block; margin-bottom: var(--space-3); font: 800 18px/24px var(--font-display); }
.n-pop__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px 12px; }
.n-pop__list--two { grid-template-columns: 1fr 1fr; }
.n-pop__list li { position: relative; padding: 6px 0 6px 16px; font: 600 14px/19px var(--font-body); color: var(--ink); border-bottom: 1px solid var(--line); }
.n-pop__list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--n-glow); }
@media (prefers-reduced-motion: reduce) { .n-pop, .n-pop--below { transform: none; transition: none; } .n-cat__thumb img { transition: none; } }

/* Categories blended into the stage: no card around them (no border, glass or frame), the tiles sit directly on the dark background
   and fade out at the top and bottom of the loop. */
.n-cats { border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; }
.n-cats .n-rail__head { padding: 0 0 var(--space-3); border-bottom: 0; }
.n-cats__window { padding-inline: 3px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 9%, #000 88%, transparent); }
.n-cat { box-shadow: none; background: transparent; }
.n-cat:hover, .n-cat[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--n-glow); }

/* Events slideshow on computers: it takes its height from the cards beside it, so it never shrinks below 360px,
   and with fewer than 2 other events (nothing beside it) it spans the whole row with its own shape. */
@media (min-width: 1080px) {
  .m-hero { min-height: 360px; }
  .m-hero.is-solo { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 21 / 9; min-height: 320px; }
}

/* Events: empty state (no events yet, or none in the chosen city). Centred card with a small calendar whose days
   light up one after another, then start again. */
.n-feed__empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); min-height: 300px;
  padding: var(--space-8) var(--space-6); border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--surface); text-align: center; }
.n-feed__empty b { font: 700 18px/24px var(--font-display); color: var(--ink); }
.n-empty__art { display: block; width: 96px; height: 96px; animation: n-empty-float 3.2s ease-in-out infinite; }
.n-empty__art svg { width: 100%; height: 100%; overflow: visible; }
.n-empty__page { fill: #fff; stroke: var(--line-strong); stroke-width: 2.5; }
.n-empty__bar { fill: var(--action); }
.n-empty__ring { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.n-empty__day { fill: var(--surface-sunken); animation: n-empty-day 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes n-empty-float { 50% { transform: translateY(-6px); } }
@keyframes n-empty-day { 0%, 100% { fill: var(--surface-sunken); } 18%, 40% { fill: #f2bd00; } }
@media (prefers-reduced-motion: reduce) { .n-empty__art, .n-empty__day { animation: none; } }

/* Categories panel: still list with up/down arrows; the edge fade shows only where more categories are hidden. */
.n-cats__window { -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 9%, #000 88%, transparent); scroll-behavior: auto; overscroll-behavior: auto; }
.n-cats__window.is-top { -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent); }
.n-cats__window.is-bottom { -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%); mask-image: linear-gradient(180deg, transparent, #000 9%); }
.n-cats__window.is-top.is-bottom { -webkit-mask-image: none; mask-image: none; }
.n-cats__nav { flex: none; align-self: center; display: grid; place-items: center; width: 40px; height: 32px; margin: 4px 0; padding: 0; border: 1px solid var(--n-hair); border-radius: var(--radius-pill); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: opacity .2s ease, background .2s ease; }
.n-cats__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.n-cats__nav:hover:not(:disabled) { background: var(--n-glow); border-color: var(--n-glow); color: var(--n-night); }
.n-cats__nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.n-cats__nav:disabled { opacity: .25; cursor: default; }
@media (max-width: 699px) { .n-cats__nav { width: 100%; height: 40px; border-radius: 12px; } }
@media (prefers-reduced-motion: reduce) { .n-cats__nav { transition: none; } }
