/* ==========================================================================
   Filla Dey — modern magazine theme
   Loaded after the other stylesheets on every page and overrides them.
   ========================================================================== */

:root {
  --purple: #5a00a5;
  --purple-dark: #3b0070;
  --orange: #ff7a00;
  --orange-ink: #b45309;

  --bg: #faf8fc;
  --surface: #ffffff;
  --ink: #17121f;
  --ink-soft: #3f3a4a;
  --muted: #6c6679;
  --line: #ebe6f2;
  --line-strong: #d9d1e6;
  --text: var(--ink);
  --border: var(--line);

  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(35, 15, 60, .06), 0 2px 8px rgba(35, 15, 60, .04);
  --shadow-md: 0 4px 10px rgba(35, 15, 60, .06), 0 14px 32px rgba(35, 15, 60, .08);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --font-primary: var(--sans);

  /* Section colours, readable on white */
  --c-ghana: #1f6b45;
  --c-entertainment: #b0186b;
  --c-international: #1e4f8a;
  --c-lifestyle: #0b6e66;
  --c-sports: #b42318;
  --c-tech: #8a5a00;
  --section-color: var(--purple);

  --header-h: 76px;
}

/* ---------- section colours (matched from links and URLs, no markup needed) ---------- */
[href$="/sections/ghana"], [data-section="ghana"],
html:has(link[rel="canonical"][href$="/sections/ghana"]) { --section-color: var(--c-ghana); }
[href$="/sections/entertainment"], [data-section="entertainment"],
html:has(link[rel="canonical"][href$="/sections/entertainment"]) { --section-color: var(--c-entertainment); }
[href$="/sections/international"], [data-section="international"],
html:has(link[rel="canonical"][href$="/sections/international"]) { --section-color: var(--c-international); }
[href$="/sections/lifestyle"], [data-section="lifestyle"],
html:has(link[rel="canonical"][href$="/sections/lifestyle"]) { --section-color: var(--c-lifestyle); }
[href$="/sections/sport"], [data-section="sports"],
html:has(link[rel="canonical"][href$="/sections/sport"]) { --section-color: var(--c-sports); }
[href$="/sections/tech"], [data-section="tech"],
html:has(link[rel="canonical"][href$="/sections/tech"]) { --section-color: var(--c-tech); }

.post-card:has(a.category[href$="/sections/ghana"]), .hero-card:has(a.category[href$="/sections/ghana"]) { --section-color: var(--c-ghana); }
.post-card:has(a.category[href$="/sections/entertainment"]), .hero-card:has(a.category[href$="/sections/entertainment"]) { --section-color: var(--c-entertainment); }
.post-card:has(a.category[href$="/sections/international"]), .hero-card:has(a.category[href$="/sections/international"]) { --section-color: var(--c-international); }
.post-card:has(a.category[href$="/sections/lifestyle"]), .hero-card:has(a.category[href$="/sections/lifestyle"]) { --section-color: var(--c-lifestyle); }
.post-card:has(a.category[href$="/sections/sport"]), .hero-card:has(a.category[href$="/sections/sport"]) { --section-color: var(--c-sports); }
.post-card:has(a.category[href$="/sections/tech"]), .hero-card:has(a.category[href$="/sections/tech"]) { --section-color: var(--c-tech); }

/* ---------- base ---------- */
html, body { background: var(--bg); }

body {
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--display); color: var(--ink); letter-spacing: -.01em; }
a { color: inherit; }
::selection { background: rgba(255, 122, 0, .25); }
img { border-radius: 0; }

/* Category pill: tinted with the section colour */
.pill,
.post-card .category,
.hero-card .category,
.home-section .kicker,
.category-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  min-height: 0;
  margin: 0 0 8px;
  padding: 4px 10px;
  border: none;
  border-radius: 3px;
  background: color-mix(in srgb, var(--section-color) 12%, white);
  color: var(--section-color);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: none;
  text-shadow: none;
}

.post-date,
.meta .post-date,
.content .post-date {
  display: block;
  padding: 0 !important;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--muted) !important;
  text-align: left;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  z-index: 1000;
  /* Solid white, the same as the rates bar below it, so the two read as one */
  background: var(--surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(35, 15, 60, .02);
}

@media (min-width: 769px) {
  /* logo | menu | search — all on one row, vertically centred */
  .site-header {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    align-items: center;
    gap: 16px;
    height: var(--header-h);
    /* Line the logo and search up with the page content (.container: 1400px wide, 16px padding) */
    padding: 0 max(16px, calc((100% - 1400px) / 2 + 16px));
  }

  .site-header .brand { justify-self: start; padding: 0; min-width: 0; }
  .site-header .logo { height: 52px; }

  .main-nav {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: none;
  }

  .main-nav a {
    padding: 8px 12px;
    border: none;
    border-radius: 3px;
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-soft);
    transition: background .15s ease, color .15s ease;
  }

  /* Rounded highlight only while hovering; the current page is just coloured text. */
  .main-nav a:hover { background: color-mix(in srgb, var(--section-color) 10%, white); color: var(--section-color); }
  .main-nav a[href="/"]:hover { background: rgba(90, 0, 165, .08); color: var(--purple); }

  .main-nav a::after,
  .main-nav a.active::after,
  .main-nav a:hover::after { display: none; }

  .main-nav a.active,
  .main-nav a:focus:not(:hover) { background: transparent; }
  .main-nav a.active { color: var(--section-color); font-weight: 700; }
  .main-nav a[href="/"].active { color: var(--purple); }
  .main-nav a.active:hover { background: color-mix(in srgb, var(--section-color) 10%, white); }
  .main-nav a[href="/"].active:hover { background: rgba(90, 0, 165, .08); }
  .main-nav a:focus { outline: none; }
  .main-nav a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

  .header-search {
    position: static;
    justify-self: end;
    display: flex;
    align-items: center;
    margin: 0;
  }

  .header-search a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3eff8;
    color: var(--ink);
    font-size: 18px;
    transition: background .15s ease, color .15s ease;
  }

  .header-search a:hover { background: var(--purple); color: #fff; }

  .site-body { margin-top: calc(var(--header-h) + 14px); }
  .article-container { margin: calc(var(--header-h) + 12px) auto 60px; }
}

/* Mid-size screens: tighter menu so it never collides with the logo or search */
@media (min-width: 769px) and (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 8px; }
  .site-header .logo { height: 44px; }
  .main-nav a { padding: 7px 8px; font-size: 13.5px; }
}

/* ---------- Phones & small tablets: dropdown menu card ---------- */
@media (max-width: 768px) {
  .site-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    height: var(--header-h);
    padding: 0 14px;
  }

  .site-header .logo { height: 44px; }
  .header-search { display: none; }

  .menu-toggle {
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-radius: 50%;
    background: #f3eff8;
    transition: background .15s ease;
  }

  .menu-toggle,
  .menu-toggle:focus { border-radius: 50% !important; outline: none; }
  .menu-toggle:focus-visible { box-shadow: 0 0 0 3px rgba(255, 122, 0, .45); }
  .menu-toggle i { font-size: 22px; color: var(--ink); }
  .menu-toggle[aria-expanded="true"] { background: var(--purple); }

  /* The blur effect would trap the page-dimming layer inside the header bar */
  .site-header.menu-open {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--surface);
  }
  .menu-toggle[aria-expanded="true"] i { color: #fff; }

  /* The panel */
  .main-nav,
  .site-header.menu-open .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 2;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 8px;
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
    background: var(--surface);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 50px rgba(30, 10, 60, .22), 0 2px 6px rgba(30, 10, 60, .08);
  }

  .site-header.menu-open .main-nav { display: flex; animation: menuIn .18s ease-out; }

  @keyframes menuIn {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to { opacity: 1; transform: none; }
  }

  /* Menu items: left aligned, chevron */
  .main-nav a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: none !important;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 15.5px;
    font-weight: 600;
    text-align: left;
    color: var(--ink);
    background: transparent;
  }

  .main-nav a::after {
    content: "\203A";
    display: block !important;
    position: static;
    margin-left: auto;
    width: auto;
    height: auto;
    background: none;
    opacity: .35;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: color-mix(in srgb, var(--section-color) 9%, white);
    color: var(--section-color);
  }

  .main-nav a[href="/"]:hover { background: rgba(90, 0, 165, .07); color: var(--purple); }

  /* Current page: coloured text only, no highlight block */
  .main-nav a.active {
    background: transparent;
    color: var(--section-color);
    font-weight: 700;
  }

  .main-nav a[href="/"].active { color: var(--purple); }

  .main-nav a.active::after { opacity: .8; }

  /* Search: a full-width button at the bottom of the panel */
  .main-nav a.mobile-search-link {
    display: flex !important;
    justify-content: center !important;
    gap: 8px;
    margin-top: 6px;
    background: var(--purple);
    color: #fff;
  }

  .main-nav a.mobile-search-link::before,
  .main-nav a.mobile-search-link::after { display: none !important; }
  .main-nav a.mobile-search-link i { color: #fff; font-size: 18px; }
  .main-nav a.mobile-search-link:hover { background: var(--purple-dark); color: #fff; }

  /* Dim the page behind the open menu (but not the header bar itself) */
  .site-header.menu-open::after {
    content: "";
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 1;
    opacity: 1;
    background: rgba(16, 6, 30, .45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: none;
  }
}

/* ==========================================================================
   Section headings ("Trending")
   ========================================================================== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 18px;
  padding: 0;
  border: none;
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-title::before {
  content: "";
  width: 6px;
  height: 1em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--purple), var(--orange));
}

/* ==========================================================================
   Lead story (homepage + section pages): 880 × 390 photo, compact text
   ========================================================================== */
.hero-card,
.main-content article.hero-card,
.home .hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 880px;
  height: auto;
  min-height: 0;
  margin: 0 0 8px !important;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  transform: none;
}

.hero-card:hover { transform: none; box-shadow: none; }
.hero-card::after, .hero-card::before { display: none; }

.hero-card .cover {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 880 / 390;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-lg);
  background: #ece6f4;
  box-shadow: var(--shadow-md);
}

.hero-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform .5s ease;
}

.hero-card:hover .cover img { transform: scale(1.03); }

/* Text sits on the photo over a soft dark fade, like a magazine cover */
.hero-card .content,
.home .hero-card .content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 2;
  margin: 0;
  padding: 90px clamp(18px, 3vw, 32px) clamp(16px, 2.4vw, 26px) !important;
  background: linear-gradient(to top, rgba(16, 6, 30, .92) 0%, rgba(16, 6, 30, .72) 45%, rgba(16, 6, 30, 0) 100%);
  color: #fff;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: none;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  pointer-events: none;
}

.hero-card .content a { pointer-events: auto; }

.hero-card .category,
.home .hero-card .category {
  position: static;
  margin-bottom: 10px;
  background: var(--section-color);
  color: #fff;
  font-size: 11px;
  text-shadow: none;
}

.hero-card .title,
.hero-card .title a,
.hero-card .content .title {
  max-width: 720px;
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: #fff;
  text-decoration: none;
}

.hero-card .title a:hover { color: #ffd2a8; translate: none; }

.hero-card .excerpt {
  max-width: 680px;
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card .post-date,
.hero-card .content .post-date { color: rgba(255, 255, 255, .75) !important; }

/* Whenever the text is on the photo, it is white. Older tablet rules in
   style.css recolour the hero text dark, so these win explicitly. */
@media (min-width: 601px) {
  .hero-card .content,
  .home .hero-card .content { color: #fff !important; }

  .hero-card .title,
  .hero-card .title a,
  .hero-card .content .title,
  .hero-card .content .title a,
  .home .hero-card .title,
  .home .hero-card .title a { color: #fff !important; }

  .hero-card .title a:hover,
  .home .hero-card .title a:hover { color: #ffd2a8 !important; }

  .hero-card .excerpt,
  .home .hero-card .excerpt { color: rgba(255, 255, 255, .88) !important; }

  .hero-card .post-date,
  .home .hero-card .post-date { color: rgba(255, 255, 255, .8) !important; }

  .hero-card .title,
  .hero-card .excerpt { text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
}

/* Mid-size: keep the overlay compact */
@media (max-width: 800px) {
  .hero-card .content, .home .hero-card .content { padding-top: 60px !important; }
  .hero-card .excerpt { -webkit-line-clamp: 1; line-clamp: 1; }
}

/* Phones: the photo is too short for text on top, so it sits neatly below */
@media (max-width: 600px) {
  .hero-card .content,
  .home .hero-card .content {
    position: static;
    padding: 12px 2px 0 !important;
    background: none;
    border-radius: 0;
    color: var(--ink);
    text-shadow: none;
  }

  .hero-card .title, .hero-card .title a, .hero-card .content .title { color: var(--ink); }
  .hero-card .title a:hover { color: var(--purple); }
  .hero-card .excerpt { color: var(--muted); -webkit-line-clamp: 2; line-clamp: 2; }
  .hero-card .post-date, .hero-card .content .post-date { color: var(--muted) !important; }
  .hero-card .cover { border-radius: var(--radius-md); }
}

/* Wide screens: lead column exactly 880px, so the photo is a true 880 × 390 */
@media (min-width: 1240px) {
  .home .hero,
  body.page .content-wrap {
    grid-template-columns: minmax(0, 880px) minmax(300px, 1fr);
  }
}

.home .hero { gap: 28px; align-items: start; padding-top: 0; padding-bottom: 0; }
.home .hero .hero-card { margin-bottom: 0 !important; }

/* Just a little space between the lead story row and "Trending" */
.home .hero + .section-title { margin-top: 18px; }
body.page .content-wrap { gap: 28px; }

/* Tablets: lead story full width, Editor's Picks below it in two columns */
@media (max-width: 1000px) {
  .home .hero { grid-template-columns: minmax(0, 1fr); }
  .home .hero .hero-card { max-width: none; }
}

@media (min-width: 601px) and (max-width: 1000px) {
  .home .hero .trending-sidebar .card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .home .hero .trending-sidebar .trending-header { grid-column: 1 / -1; }
}

/* ==========================================================================
   Story cards
   ========================================================================== */
/* Same grid on the homepage and section pages (the old sections.css forced 4 columns) */
.grid.grid-3,
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px;
  margin: 0 !important;
}

@media (max-width: 1000px) {
  .grid.grid-3, .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 5px; }
}

@media (max-width: 600px) {
  .grid.grid-3, .section-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 5px; }
}

/* Each story is its own rounded card with a soft shadow */
.post-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0 !important;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(35, 15, 60, .08), 0 20px 40px rgba(35, 15, 60, .12);
}

.post-card .thumb {
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 880 / 390; /* same shape as the hero photo */
  overflow: hidden;
  border: none;
  border-radius: 0; /* the card's rounded corners frame the photo */
  background: #ece6f4;
  box-shadow: none;
}

/* Photo always fills its frame (sections.css used "contain", leaving an empty strip) */
.post-card .thumb img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0;
  transition: transform .45s ease;
}

.post-card:hover .thumb img { transform: scale(1.05); }

.post-card .meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px !important;
  border: none;
  margin: 0;
  text-align: left;
}

.post-card .title,
.post-card .title a {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(15px, 1.15vw, 17px) !important;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  border: none;
  padding: 0;
}

.post-card .title a:hover { color: var(--section-color); }

.post-card .excerpt {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 13.5px !important;
  line-height: 1.55;
  color: var(--muted);
  text-align: left;
}

/* Dates line up along the bottom of every card in a row */
.post-card .meta .post-date { margin-top: auto; }

/* Brick-laying layout (scripts/main.js): 1px rows, each card spans its own
   height + 5px, so cards stack 5px apart in each column */
.grid.masonry,
.section-grid.masonry {
  grid-auto-rows: 1px;
  row-gap: 0 !important;
  align-items: start;
}

.masonry > .post-card .meta .post-date { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card .thumb img { transition: none; }
  .post-card:hover { transform: none; }
  .post-card:hover .thumb img { transform: none; }
}

/* ==========================================================================
   Homepage section blocks (generated by the CMS)
   ========================================================================== */
.home-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 44px 0 20px;
}

.home-section {
  min-width: 0;
  padding: 20px 20px 22px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--section-color);
}

.home-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
  padding: 0;
  border: none;
}

.home-section__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  font-style: normal;
  line-height: 1.1;
}

.home-section__head h2 a { color: var(--section-color); text-decoration: none; }

.home-section__more {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--section-color) 35%, white);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--section-color);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.home-section__more:hover { background: var(--section-color); color: #fff; }

.home-section__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
}

.home-section__body--single { grid-template-columns: minmax(0, 1fr); }

.home-section__body--single .home-section__lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.home-section__lead .thumb {
  display: block;
  aspect-ratio: 880 / 390; /* same shape as the hero photo */
  overflow: hidden;
  border: none;
  border-radius: var(--radius-md);
  background: #ece6f4;
  line-height: 0;
}

.home-section__lead img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.home-section__lead:hover img { transform: scale(1.04); }
.home-section__lead .meta { padding-top: 12px; }
.home-section__body--single .home-section__lead .meta { padding-top: 0; }

.home-section .title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.home-section .title a { color: var(--ink); text-decoration: none; }
.home-section .title a:hover { color: var(--section-color); }

.home-section .excerpt {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-section__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
  counter-reset: sec;
}

.home-section__list li {
  position: relative;
  padding: 0 0 12px 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Section-colour marker instead of numbers */
.home-section__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--section-color), color-mix(in srgb, var(--section-color) 45%, var(--orange)));
}

.home-section__list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.home-section__list a {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.home-section__list a:hover { color: var(--section-color); }

@media (max-width: 1000px) {
  .home-sections { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .home-section { padding: 16px 14px 18px; border-radius: var(--radius-md); }
  .home-section__body,
  .home-section__body--single .home-section__lead { grid-template-columns: minmax(0, 1fr); }
  .home-section__list { padding-top: 4px; }
}

/* ==========================================================================
   Sidebar: Editor's Picks (numbered)
   ========================================================================== */
.sidebar,
.trending-sidebar { min-width: 0; }

.trending-sidebar .card,
.sidebar .card {
  padding: 18px 18px 8px;
  margin: 0;
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  counter-reset: pick;
}

.trending-sidebar .card:hover { transform: none; box-shadow: var(--shadow-sm); }

.trending-header {
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 2px;
  padding: 0 0 4px;
  border: none !important;
}

.trending-header h3 {
  margin: 0;
  padding: 0 !important;
  border: none !important;
  text-decoration: none;
  background: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}

.trending-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 122, 0, .14);
  color: var(--orange);
  font-size: 16px;
}

.trending-item {
  position: relative;
  display: grid;
  grid-template-columns: 5px 104px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transform: none;
}

/* Gradient marker, the same as the one beside "Trending" */
.trending-item::before {
  content: "";
  width: 5px;
  height: 34px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--purple), var(--orange));
}

.trending-item:last-of-type { border-bottom: none; }
.trending-item:hover { transform: none; }

/* Whole picture, never cropped: story photos are 880 × 390 and fill the box exactly;
   any other shape sits on a soft background instead of losing its sides. */
.trending-image {
  display: block;
  width: 104px;
  height: auto;
  aspect-ratio: 880 / 390;
  border: none;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--line);
}

.trending-item a {
  min-width: 0;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.trending-item a:hover { color: var(--purple); }

/* ==========================================================================
   Section pages
   ========================================================================== */
/* Section pages start right under the header */
body.page .site-body > .container,
body.page .content-wrap,
body.page .main-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.content-wrap > .main-content::before {
  display: block;
  margin: 0 0 16px;
  padding: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--section-color);
  border: none;
  background: linear-gradient(var(--section-color), var(--section-color)) left bottom / 72px 5px no-repeat;
  text-align: left;
}

html:has(link[rel="canonical"][href$="/sections/ghana"]) .content-wrap > .main-content::before { content: "Ghana"; }
html:has(link[rel="canonical"][href$="/sections/entertainment"]) .content-wrap > .main-content::before { content: "Entertainment"; }
html:has(link[rel="canonical"][href$="/sections/international"]) .content-wrap > .main-content::before { content: "International"; }
html:has(link[rel="canonical"][href$="/sections/lifestyle"]) .content-wrap > .main-content::before { content: "Lifestyle"; }
html:has(link[rel="canonical"][href$="/sections/sport"]) .content-wrap > .main-content::before { content: "Sports"; }
html:has(link[rel="canonical"][href$="/sections/tech"]) .content-wrap > .main-content::before { content: "Tech"; }

body.page .section-grid { margin-top: 30px !important; }
body.page .post-card .title { border: none; padding: 0; }

body.page h1:not(.title):not(.article-title) {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

body.page .card,
body.page .page-header {
  background: transparent;
  box-shadow: none;
}

body.page .trending-sidebar .card { background: var(--surface); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Article pages
   ========================================================================== */
.article-container[data-section="ghana"] { --section-color: var(--c-ghana); }
.article-container[data-section="entertainment"] { --section-color: var(--c-entertainment); }
.article-container[data-section="international"] { --section-color: var(--c-international); }
.article-container[data-section="lifestyle"] { --section-color: var(--c-lifestyle); }
.article-container[data-section="sports"] { --section-color: var(--c-sports); }
.article-container[data-section="tech"] { --section-color: var(--c-tech); }

.breadcrumb {
  padding: 0 0 6px;
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.breadcrumb a { color: var(--section-color); font-weight: 700; text-decoration: none; }
.breadcrumb .current { color: var(--muted); }

.article-main,
.article-header {
  background: transparent;
  box-shadow: none;
}

.category-badge { margin-bottom: 14px; font-size: 12px; }

.article-title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink);
}

.article-deck {
  margin: 0 0 18px;
  padding: 0;
  border: none;
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 12px 0;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.article-meta strong { color: var(--ink); font-weight: 700; }
.article-meta .dot { color: var(--line-strong); }

.article-hero-image { margin: 22px 0; position: relative; }

.article-hero-image img {
  width: 100%;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.article-hero-image .image-credit { border-radius: 0 0 var(--radius-lg) 0; }

.article-body { font-family: var(--serif); color: var(--ink); }

.article-body p,
.article-body li {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.75;
  color: #241f2b;
}

.article-body > p:first-of-type::first-letter {
  float: left;
  margin: 8px 12px 0 0;
  font-family: var(--display);
  font-size: 4em;
  font-weight: 800;
  line-height: .78;
  color: var(--section-color);
}

.article-body h2,
.article-body h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  border: none;
  padding: 0;
}

.article-body h2 { margin-top: 1.8em; font-size: clamp(22px, 2.4vw, 30px); }
.article-body h3 { margin-top: 1.4em; font-size: clamp(19px, 2vw, 23px); }

/* Links: section colour, no underline; a soft highlight on hover */
.article-body a {
  color: var(--section-color);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transition: background .15s ease, color .15s ease;
}

.article-body a:hover {
  color: color-mix(in srgb, var(--section-color) 75%, black);
  background: color-mix(in srgb, var(--section-color) 10%, transparent);
}

/* Share icons sit inside the article body: no link styling on them */
.article-body .share-button,
.article-body .share-button:hover,
.social-share-wrapper a {
  text-decoration: none !important;
  background-color: transparent;
}

.article-body img {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.article-body img:hover { transform: none; }

.article-figure { position: relative; max-width: 100%; margin: 26px 0; }
.article-figure img { max-width: 100%; width: 100%; height: auto; margin: 0; }

/* Pictures in the article text show whole (never cropped), scaled down to fit
   a 560 × 420 box and centred; the caption sits on the picture itself. */
.article-figure { width: fit-content; max-width: min(100%, 560px); margin-left: auto; margin-right: auto; }

.article-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; }

.pull-quote {
  margin: 30px 0;
  padding: 6px 0 6px 22px;
  background: none;
  border: none;
  border-left: 5px solid;
  border-image: linear-gradient(180deg, var(--purple), var(--orange)) 1;
  border-radius: 0;
  box-shadow: none;
}

.pull-quote::before { display: none; }

.pull-quote p {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink) !important; /* article.css forces white text for the old dark quote box */
}

.pull-quote cite { font-family: var(--sans); font-style: normal; font-weight: 700; color: var(--section-color); }

.note {
  background: color-mix(in srgb, var(--section-color) 7%, white);
  border: none;
  border-left: 4px solid var(--section-color);
  border-radius: var(--radius-md);
}

.also-read {
  font-family: var(--sans);
  font-weight: 700;
  border-left: 4px solid var(--section-color);
  padding: 2px 0 2px 14px;
}

.also-read span { color: var(--section-color); text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.04em; margin-right: 4px; }

.also-read a { color: inherit; text-decoration: underline; text-decoration-color: var(--section-color); text-underline-offset: 3px; }

.also-read a:hover { color: var(--section-color); }

.article-body table {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.article-body table caption { font-family: var(--display); font-weight: 700; color: var(--ink); }

.article-body th {
  background: var(--purple);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.article-body td { border-color: var(--line); }

/* Same page width and columns as the homepage, so Editor's Picks is the same width on both. */
.article-container { max-width: 1400px; padding-left: 16px; padding-right: 16px; }

@media (min-width: 993px) {
  .article-wrapper {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
  }
}

@media (min-width: 1240px) {
  /* Article text a little narrower (780px) for easier reading; any spare room
     goes between the columns, so the sidebar stays on the right edge. */
  .article-wrapper { grid-template-columns: minmax(0, 780px) minmax(300px, 460px); justify-content: space-between; }
}

.article-sidebar { min-width: 0; }

.article-sidebar .sidebar,
.article-sidebar .trending-sidebar,
.article-sidebar .card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Author box & Recent Posts */
.author-section,
.recent-posts-section {
  margin-top: 32px;
  padding: 20px;
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Author box at the end of each article */
.author-bio { display: flex; gap: 18px; align-items: flex-start; }

.author-section .author-avatar {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3eff8;
  padding: 0;
  border: none;
}

.author-section .author-avatar img,
.author-hero__photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: none;
  margin: 0;
}

.author-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  color: var(--purple);
}

.author-label {
  margin: 0 0 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

.author-section .author-name { margin: 0 0 2px; font-size: 22px; }
.author-section .author-name a { color: var(--ink); text-decoration: none; }
.author-section .author-name a:hover { color: var(--purple); }
.author-role { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.author-section .author-description { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; }

.author-more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
}

.author-more:hover { color: var(--orange-ink); }

.article-meta a.article-author { color: var(--ink); text-decoration: none; }
.article-meta a.article-author:hover strong { color: var(--section-color); }

@media (max-width: 480px) {
  .author-bio { flex-direction: column; }
}

/* Author page */
.author-main { padding-top: 6px; }

.author-hero {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.author-hero__photo {
  width: 160px;
  height: 160px;
  padding: 4px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: var(--shadow-md);
}

.author-hero__text { text-align: left; min-width: 0; }

.author-hero__role {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange-ink);
}

.author-hero__name {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  border: none !important;
  padding: 0 !important;
}

.author-hero__bio { max-width: 680px; margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.author-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.author-hero__count {
  padding: 6px 12px;
  border-radius: 3px;
  background: rgba(90, 0, 165, .08);
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
}

.author-hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
}

.author-hero__link:hover { background: var(--purple); color: #fff; }

@media (max-width: 600px) {
  .author-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; gap: 16px; justify-items: start; }
  .author-hero__photo { width: 110px; height: 110px; }
}

.author-name,
.recent-posts-header h3 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
}

.author-description { font-family: var(--sans); color: var(--muted); }

.recent-post-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.recent-post-item:last-child { border-bottom: none; }
.recent-post-item img { border: none; border-radius: var(--radius-sm); }

.recent-post-category {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--purple);
  background: none;
}

.recent-post-title { font-family: var(--display); font-weight: 700; color: var(--ink); }
.recent-post-date { font-family: var(--sans); color: var(--muted); }

/* ==========================================================================
   Search page
   ========================================================================== */
.search-count {
  margin: 8px 0 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.search-results mark {
  padding: 0;
  border-radius: 3px;
  background: rgba(255, 122, 0, .22);
  color: inherit;
}

/* Pages with no photo show the logo, whole and centred, instead of a cropped image */
.search-results .post-card .thumb--logo {
  background: linear-gradient(135deg, rgba(90, 0, 165, .08), rgba(255, 122, 0, .1));
}

.search-results .post-card .thumb--logo img {
  padding: 8%;
  box-sizing: border-box;
  object-fit: contain !important;
}

/* ==========================================================================
   Footer, cookie banner, responsiveness fixes
   ========================================================================== */
/* ---------- Footer ---------- */
.site-footer.ft {
  position: relative;
  margin-top: 56px;
  padding: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .78);
  font-family: var(--sans);
  text-align: left;
  border: none;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 122, 0, .22), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(161, 32, 156, .35), transparent 70%),
    linear-gradient(160deg, #3d0a6e 0%, #24063f 60%, #1a0430 100%);
}

.ft-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 24px 0;
}

.ft-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.ft-logo { display: inline-block; }
.ft-logo img { height: 74px; width: auto; display: block; }

.ft-tagline {
  max-width: 460px;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .72);
}

.ft-cta {
  justify-self: end;
  width: 100%;
  max-width: 440px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ft-cta-title {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.ft-cta-text { margin: 0 0 16px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.ft-cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.ft-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 10px 16px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.ft-btn i { font-size: 18px; }
/* A shade deeper than the apps' own colours so the white label stays easy to read. */
.ft-btn--whatsapp { background: #0d8340; }
.ft-btn--telegram { background: #1a7ab0; }
.ft-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); filter: brightness(1.05); color: #fff; }

.ft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 32px;
  padding: 36px 0;
}

.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }

.ft-col h4 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffb066;
  text-align: left;
  width: auto;
}

.ft-col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 0;
  padding: 5px 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  justify-content: flex-start;
  transition: color .15s ease, transform .15s ease;
}

.ft-col a:hover { color: #fff; transform: translateX(3px); }

.ft-socials {
  display: grid;
  grid-template-columns: repeat(5, 42px);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 19px;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

.ft-socials a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--purple), var(--orange));
  border-color: transparent;
}

.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .6);
}

.ft-bottom p { margin: 0; }

.ft-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 6px 12px;
  border-radius: 3px;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .16);
  transition: background .15s ease;
}

.ft-top-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }

@media (max-width: 1000px) {
  .ft-top { grid-template-columns: minmax(0, 1fr); }
  .ft-cta { justify-self: start; max-width: none; }
  .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-follow { grid-column: 1 / -1; }
  .ft-socials { grid-template-columns: repeat(9, 42px); }
}

@media (max-width: 600px) {
  .ft-inner { padding: 40px 18px 0; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .ft-socials { grid-template-columns: repeat(5, 42px); }
  .ft-bottom { flex-direction: column-reverse; align-items: flex-start; }
  .ft-cta { padding: 18px; }
}

/* Keep page content clear of the fixed header when jumping to a section */
.section-grid, #trendingSection { scroll-margin-top: calc(var(--header-h) + 16px); }

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .site-body { margin-top: calc(var(--header-h) + 12px); }
  .article-container { margin-top: calc(var(--header-h) + 14px) !important; }
}

/* Policy pages (cookie policy): readable left-aligned text and tables */
main.policy { text-align: left; }
main.policy h1, main.policy h2, main.policy h3, main.policy p, main.policy li { text-align: left; }
main.policy h2 { margin-top: 34px; }
main.policy h3 { margin-top: 22px; font-size: 18px; }
main.policy ul { padding-left: 22px; }
main.policy li { margin: 6px 0; line-height: 1.6; }
main.policy .breadcrumb { margin-bottom: 10px; }
main.policy .table-scroll { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: var(--radius-md); }
main.policy table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
main.policy th, main.policy td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
main.policy th { background: #f6f3fa; font-weight: 700; white-space: nowrap; }
main.policy tr:last-child td { border-bottom: 0; }
main.policy code { font-size: 13px; background: #f3eff8; padding: 1px 5px; border-radius: 4px; white-space: nowrap; }

/* ==========================================================================
   Tags: links under articles, the row on section pages, tag pages
   ========================================================================== */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tag-chip:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.tag-chip__count { font-size: 12px; font-weight: 700; color: var(--muted); }
.tag-chip:hover .tag-chip__count { color: rgba(255, 255, 255, .8); }
.tag-chip--all { border-style: dashed; color: var(--muted); }

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 8px; }
.article-tags__label, .tag-bar__label { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }

.tag-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 22px; }

.tag-main { padding-top: 8px; padding-bottom: 40px; }
.tag-hero { margin: 10px 0 24px; text-align: left; }
.tag-hero__kicker { margin: 0 0 4px; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }
.tag-hero__name { margin: 0; font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--ink); text-align: left; }
.tag-hero__count { margin: 6px 0 0; font-family: var(--sans); color: var(--muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tag-page .breadcrumb { margin-top: 6px; justify-content: flex-start; text-align: left; }

/* ==========================================================================
   Homepage news bar: the cedi exchange rates
   ========================================================================== */
/* Hangs from the bottom of the fixed header and stays with it on computers;
   on phones it scrolls away with the page. */
body.home .site-body { margin-top: var(--header-h); padding-top: 0; }
.news-bar {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-h);
  z-index: 999;
  box-sizing: border-box;
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 13px;
}
/* Edge to edge like the header; the contents line up with the logo and the search button. */
.news-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 14px;
  min-height: 42px;
  padding: 0 max(16px, calc((100% - 1400px) / 2 + 16px));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.news-bar__fx {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.news-bar__fx li[data-cur] { padding: 3px 8px; border-radius: 999px; background: #f3eff8; color: var(--ink); }
.news-bar__fx .news-bar__fx-title { margin-right: 2px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.news-bar__cur { margin-right: 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
/* Room for the rate numbers before they arrive, so nothing in the bar jumps */
.news-bar__fx b { display: inline-block; min-width: 4.2ch; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.news-bar__fx b.up { color: #157347; }
.news-bar__fx b.down { color: #b42318; }

@media (max-width: 720px) {
  .news-bar { position: static; margin-bottom: 14px; font-size: 12px; }
  .news-bar__inner { min-height: 38px; padding: 8px 14px; justify-content: center; text-align: center; }
  .news-bar__fx { justify-content: center; }
  .news-bar__fx li[data-cur] { padding: 2px 7px; }
}
@media (max-width: 380px) {
  .news-bar__fx .news-bar__fx-title { display: none; }
}

/* Sidebar story lists (article "More in …", section "Elsewhere on Filla Dey") */
.trending-list { margin: 0; padding: 0; list-style: none; }
.sidebar-intro { margin: 4px 0 12px; color: var(--muted); font-family: var(--sans); font-size: 14.5px; line-height: 1.55; }
.section-sidebar { gap: 18px !important; }
.section-sidebar > .trending-sidebar { margin-top: 0 !important; }
/* Homepage on computers: no line between the menu and the rates bar, they read as one */
@media (min-width: 721px) { body.home .site-header { box-shadow: none; } }

/* Section page sidebar: "About <section>" with its two must-reads, shown large */
.section-about { padding-bottom: 18px !important; }
.section-about__sub { margin: 14px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); }
.section-picks { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.section-pick { display: grid; gap: 6px; }
.section-pick__img img { display: block; width: 100%; height: auto; aspect-ratio: 880 / 390; object-fit: cover; border-radius: var(--radius-md); background: var(--line); }
.section-pick__topic { margin-top: 4px; color: var(--section-color, var(--orange)); font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.section-pick__title { color: var(--ink); font-family: var(--display); font-size: 18px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.section-pick__title:hover { color: var(--purple); }
.section-pick__desc { margin: 0; color: var(--muted); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
