@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,600;8..60,700;8..60,800&family=Roboto:wght@400;500;700&display=swap");


/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --lc-red: #e21615;               /* the paper's red (also set inline) */
  --lc-red-deep: #b30f0e;
  --lc-ink: #121212;
  --lc-ink-soft: #565656;
  --lc-rule: #e3e3e3;
  --lc-paper: #ffffff;
  --lc-ground: #f5f5f2;

  /* Mali: green, gold, red */
  --lc-green: #14b53a;
  --lc-gold: #fcd116;
  --lc-flag-red: #ce1126;

  --lc-font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --lc-font-text: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --lc-container: 1200px;
  --lc-gutter: clamp(0.9rem, 3vw, 1.5rem);
  --lc-sidebar: 300px;
}


/* ==========================================================================
   2. Base (the pages set 13px text inline; readable sizes here)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html body {
  margin: 0;
  font-family: var(--lc-font-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lc-ink);
  background-color: var(--lc-paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--lc-ink);
  text-decoration: none;
}

a:hover {
  color: var(--lc-red);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clear {
  clear: both;
}

.container {
  width: 100%;
  max-width: calc(var(--lc-container) + 2 * var(--lc-gutter));
  margin-inline: auto;
  padding-inline: var(--lc-gutter);
}

::selection {
  color: #ffffff;
  background: var(--lc-red);
}


/* ==========================================================================
   3. Parts that need the theme's scripts, or are empty
   ========================================================================== */

#slide-out,
.background-cover,
.slide-out-open,
#topcontrol,
#reading-position-indicator,
.social-icons,                       /* icons without links */
.overlay-icon,
.scroll-nav,
.flex-control-nav,
.flex-direction-nav,
#breaking-news:not(:has(li)),        /* the news ticker has no items */
#theme-footer:not(:has(.widget)),
.logo h1 strong {
  display: none !important;
}

/* Icon-font glyphs (only kept where they sit next to text) */
.fa:empty:not(i) {
  display: none;
}

.tie-date .fa {
  display: none;
}


/* ==========================================================================
   4. Masthead: date strip, logo with the banner ad, flag stripe, menu
   ========================================================================== */

.top-nav {
  font-size: 0.8125rem;
  color: #d8d8d8;
  background-color: var(--lc-ink);
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.4rem;
}

.today-date {
  text-transform: capitalize;
}

/* Search */
.search-block form {
  display: flex;
}

.search-block input[type="text"] {
  width: 12rem;
  padding: 0.3rem 0.6rem;
  font: inherit;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 0;
}

.search-block .search-button {
  position: relative;
  width: 2rem;
  padding: 0;
  color: #ffffff;
  background-color: var(--lc-red);
  border: 0;
  cursor: pointer;
}

.search-block .search-button .fa {
  display: none;
}

.search-block .search-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}

.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: calc(var(--lc-container) + 2 * var(--lc-gutter));
  margin: 0 auto;
  padding: 1.25rem var(--lc-gutter);
}

.logo h1 {
  margin: 0;
  line-height: 0;
}

.logo img {
  width: auto;
  max-height: 90px;
}

.e3lan-top img {
  max-height: 90px;
  width: auto;
}

/* Thin green-gold-red stripe */
#theme-header {
  border-top: 0 !important;
}

.header-content + .clear,
#main-nav::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--lc-green) 0 33.33%, var(--lc-gold) 33.33% 66.66%, var(--lc-flag-red) 66.66% 100%);
}

.header-content + .clear {
  display: none;
}

#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--lc-ink);
  border-bottom: 3px solid var(--lc-red);
}

#main-nav .menu {
  display: flex;
  flex-wrap: wrap;
}

#main-nav .menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  padding: 0.8rem 0.85rem;
  font-family: var(--lc-font-text);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

#main-nav .menu > li > a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

#main-nav .menu > li > a .fa {
  display: none;
}

@media (max-width: 1023px) {
  #main-nav .container {
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #main-nav .container::-webkit-scrollbar {
    display: none;
  }

  #main-nav .menu {
    flex-wrap: nowrap;
    width: max-content;
    padding-inline: calc(var(--lc-gutter) - 0.6rem);
  }

  #main-nav .menu > li > a {
    padding-inline: 0.6rem;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .top-nav .search-block {
    display: none;
  }

  .header-content {
    justify-content: center;
    text-align: center;
  }

  .logo img {
    max-height: 64px;
  }
}


/* ==========================================================================
   5. Page layout: stories and sidebar
   ========================================================================== */

#main-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--lc-sidebar);
  gap: 2rem;
  align-items: start;
  padding-block: 1.75rem 2.5rem;
}

#main-content > .clear,
#main-content > .video-content:empty {
  display: none;
}

/* Inside the story column: full-width sections, two-up for "column2" boxes */
.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 1.75rem;
  min-width: 0;
}

.content > * {
  grid-column: 1 / -1;
}

.content > .column2 {
  grid-column: auto;
}

.content > .clear {
  display: none;
}

@media (max-width: 1023px) {
  #main-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 699px) {
  .content > .column2 {
    grid-column: 1 / -1;
  }
}


/* ==========================================================================
   6. Front page: the lead-story slider as a grid
   ========================================================================== */

#flexslider {
  margin-bottom: 2rem;
}

#flexslider .slides {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: 11rem;
  gap: 0.6rem;
}

#flexslider .slides > li {
  position: relative !important;
  z-index: auto !important;
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  overflow: hidden;
  opacity: 1 !important;
  background-color: var(--lc-ink);
}

#flexslider .slides > li.clone {
  display: none !important;
}

#flexslider .slides > li:first-child {
  grid-row: span 2;
}

#flexslider .slides > li > a {
  display: block;
  height: 100%;
}

#flexslider .slides img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#flexslider .slides > li:hover img {
  transform: scale(1.03);
}

#flexslider .slider-caption {
  position: absolute;
  right: 0;
  bottom: 0 !important;
  left: 0;
  padding: 2.5rem 0.9rem 0.8rem;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 15%, rgba(0, 0, 0, 0));
}

#flexslider .slider-caption a {
  pointer-events: auto;
}

#flexslider .slider-caption h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: var(--lc-font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

#flexslider .slider-caption p {
  display: none;
}

#flexslider .slides > li:first-child .slider-caption {
  padding: 4rem 1.25rem 1.25rem;
}

#flexslider .slides > li:first-child .slider-caption h2 a {
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.85rem);
  -webkit-line-clamp: 4;
}

#flexslider .slides > li:first-child .slider-caption p {
  display: block;
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767px) {
  #flexslider .slides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 9rem;
  }

  #flexslider .slides > li:first-child {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  #flexslider .slides > li:nth-child(n+4) {
    display: none !important;
  }
}


/* ==========================================================================
   7. Category boxes
   ========================================================================== */

.cat-box {
  margin-bottom: 2.25rem;
}

/* Section label: red title on a black rule (the red comes from the page) */
#main-content .cat-box-title {
  display: flex;
  align-items: flex-end;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--lc-ink);
}

#main-content .cat-box-title h2 {
  margin: 0;
  padding: 0.35rem 0.85rem;
  font-family: var(--lc-font-text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-color: var(--lc-red);
}

#main-content .cat-box-title h2 a {
  font-family: var(--lc-font-text);
  font-size: inherit;
  color: #ffffff;
}

.stripe-line {
  display: none;
}

/* Headlines */
#main-content h2.post-box-title,
#main-content h3.post-box-title,
#main-content h2.post-box-title a,
#main-content h3.post-box-title a {
  font-family: var(--lc-font-head);
  font-weight: 700;
  color: var(--lc-ink);
}

#main-content h2.post-box-title {
  margin: 0.75rem 0 0.35rem;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.22;
}

#main-content h2.post-box-title a {
  font-size: inherit;
}

#main-content h3.post-box-title,
#main-content h3.post-box-title a {
  font-size: 1rem;
  line-height: 1.3;
}

#main-content .post-box-title a:hover {
  color: var(--lc-red);
}

p.post-meta,
.tie-date {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--lc-ink-soft);
}

.cat-box .entry p {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--lc-ink-soft);
}

.post-thumbnail img {
  display: block;
  width: 100%;
}

/* Wide and list boxes: lead story beside a list of headlines */
.wide-box .cat-box-content > ul,
.list-box .cat-box-content > ul {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-auto-flow: dense;
  gap: 0 1.5rem;
}

.cat-box .first-news {
  grid-row: span 10;
}

.cat-box .first-news .post-thumbnail img {
  aspect-ratio: 310 / 165;
  object-fit: cover;
}

.cat-box .other-news {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 0.85rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--lc-rule);
}

.cat-box .other-news:first-of-type,
.cat-box .first-news + .other-news {
  padding-top: 0;
}

.cat-box .other-news .post-thumbnail {
  grid-row: span 2;
}

.cat-box .other-news .post-thumbnail img {
  aspect-ratio: 110 / 75;
  object-fit: cover;
}

.cat-box .other-news h3.post-box-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Two-up boxes: lead story, then headlines below */
.column2 .cat-box-content > ul {
  display: block;
}

.column2 .first-news {
  margin-bottom: 0.75rem;
}

.column2 .other-news:first-of-type {
  padding-top: 0.75rem;
}

@media (max-width: 699px) {
  .wide-box .cat-box-content > ul,
  .list-box .cat-box-content > ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .cat-box .first-news {
    grid-row: auto;
    margin-bottom: 0.75rem;
  }
}

/* Carousels (three at a time) as a row of cards */
.group_items-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  position: static !important;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
}

.group_items-box > .clear {
  display: none;
}

/* the carousel script wraps cards in groups and positions them */
.group_items-box .group_items {
  display: contents !important;
}

.scroll-item {
  position: static !important;
  min-width: 0;
  opacity: 1 !important;
}

.scroll-item .post-thumbnail img {
  aspect-ratio: 310 / 165;
  object-fit: cover;
}

.scroll-item h3.post-box-title {
  margin-top: 0.6rem;
}

/* Video items get a small play mark */
.tie_video .post-thumbnail {
  position: relative;
}

.tie_video .post-thumbnail::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='white'/%3E%3C/svg%3E") center / 1.3rem no-repeat,
    var(--lc-red);
}

@media (max-width: 599px) {
  .group_items-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .scroll-item:not(:first-child) {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    column-gap: 0.85rem;
  }

  .scroll-item:not(:first-child) .post-thumbnail {
    grid-row: span 2;
  }

  .scroll-item:not(:first-child) h3.post-box-title {
    margin-top: 0;
  }
}


/* ==========================================================================
   8. Sidebar
   ========================================================================== */

#sidebar {
  min-width: 0;
}

#sidebar .widget {
  margin-bottom: 1.75rem;
}

#sidebar .widget-top {
  display: flex;
  margin-bottom: 0.85rem;
  border-bottom: 2px solid var(--lc-ink);
}

#sidebar .widget-top h4 {
  padding: 0.3rem 0.75rem;
  font-family: var(--lc-font-text);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: var(--lc-ink);
}

/* Advertising and the front page of the day */
.e3lan-cell {
  text-align: center;
}

.e3lan-cell img {
  border: 1px solid var(--lc-rule);
}

#sidebar .categort-posts li,
#sidebar .tabs-wrap li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--lc-rule);
}

#sidebar .categort-posts li:first-child,
#sidebar .tabs-wrap li:first-child {
  padding-top: 0;
}

#sidebar h3 {
  font-family: var(--lc-font-head);
  font-size: 0.975rem;
  line-height: 1.3;
}

#sidebar .categort-posts .post-thumbnail {
  margin-bottom: 0.5rem;
}

#sidebar .categort-posts .post-thumbnail img {
  aspect-ratio: 310 / 165;
  object-fit: cover;
}

#sidebar .tabs-wrap li:has(.post-thumbnail) {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  column-gap: 0.75rem;
}

#sidebar .tabs-wrap li .post-thumbnail {
  grid-row: span 3;
}

.facebook-box iframe {
  max-width: 100%;
}

/* Tabs: work with plain links (#tab1...); "Récent" shows by default */
#tabbed-widget .widget-top {
  border-bottom: 2px solid var(--lc-ink);
}

#tabbed-widget .posts-taps {
  display: flex;
  flex-wrap: wrap;
}

#tabbed-widget .posts-taps a {
  display: block;
  padding: 0.35rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--lc-ink-soft);
}

#tabbed-widget .tabs-wrap {
  display: none;
  scroll-margin-top: 4rem;
}

#tabbed-widget .tabs-wrap:target,
#tabbed-widget:not(:has(.tabs-wrap:target)) #tab2 {
  display: block;
}

#tabbed-widget:has(#tab1:target) a[href="#tab1"],
#tabbed-widget:has(#tab2:target) a[href="#tab2"],
#tabbed-widget:has(#tab3:target) a[href="#tab3"],
#tabbed-widget:has(#tab4:target) a[href="#tab4"],
#tabbed-widget:not(:has(.tabs-wrap:target)) a[href="#tab2"],
#tabbed-widget .posts-taps li.active a {
  color: #ffffff;
  background-color: var(--lc-ink);
}

.tagcloud a {
  display: inline-block;
  margin: 0 0.3rem 0.3rem 0;
  padding: 0.2rem 0.6rem;
  font-size: 0.8125rem !important;
  background-color: var(--lc-ground);
}


/* ==========================================================================
   9. Bottom banner and footer
   ========================================================================== */

.e3lan-bottom {
  padding: 1rem var(--lc-gutter) 1.5rem;
  text-align: center;
}

.footer-bottom {
  font-size: 0.85rem;
  color: #cfcfcf;
  background-color: var(--lc-ink);
  border-top: 4px solid var(--lc-red);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem 1.3rem;
}

.footer-bottom .alignright {
  order: 2;
}

.footer-bottom a {
  color: #ffffff;
}

.footer-bottom .container > .clear {
  display: none;
}


/* ==========================================================================
   10. Focus and motion
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--lc-red);
  outline-offset: 2px;
}

#main-nav :focus-visible,
.top-nav :focus-visible,
.footer-bottom :focus-visible {
  outline-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}