@font-face {
  font-family: "NunitoRegular";
  src: url("https://s3.g.megas4.com/lo2ikeaaey3wczhxqzbpgm2jggyiapjkbu5ua/miraculous/ui/static/Nunito-Regular.ttf");
}

@font-face {
  font-family: "NunitoMedium";
  src: url("https://s3.g.megas4.com/lo2ikeaaey3wczhxqzbpgm2jggyiapjkbu5ua/miraculous/ui/static/Nunito-Medium.ttf");
}
* {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: "NunitoRegular", serif;
      background: #ffdbe9;
      color: #222;
    }

    .page {
      margin: 0 auto;
      background: #ffdbe9;
    }

    /* HEADER */

.header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffdbe9;
  overflow: visible;
  z-index: 1;
}

.header::before {
  content: "";
  position: absolute;

  /* center the bar behind the header image */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  /* full monitor width */
  width: 100vw;

  /* bar size */
  height: 55px;

  /* bar appearance */
  background: #ffffff;
  border-top: 10px solid #f2188a;
  border-bottom: 10px solid #f2188a;

  z-index: 0;
}

.header img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}
    
    .header img{
      width: 100%;
    }

    /* NAVIGATION AS DROPDOWN MENU */

    .nav {
  display: flex;
  margin-top: 10px;
  justify-content: center;
  position: relative;
  z-index: 50;
}

/* Container no longer has rounded corners or gradient */
.nav-inner {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: visible;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}


    .nav-item {
  width:10vw;
      position: relative;
      flex: 1;
    }


/* Each button gets the gradient and animation */
.nav-link {
  display: block;
  padding: 12px 40px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  background: linear-gradient(#ff4ea3, #ff1b7b);
  border-radius: 0;
  transition: border-radius 0s ease;
}

/* First and last buttons have rounded corners by default */
.nav-item:first-child .nav-link {
  border-left: none;
  border-radius: 10px 0 0 10px;
}

.nav-item:last-child .nav-link {
  border-radius: 0 10px 10px 0;
}

/* On hover, flatten corners so dropdown connects cleanly */
.nav-item:first-child:hover .nav-link{
  border-radius: 10px 0 0 0px;
}

.nav-item:last-child:hover .nav-link {
  border-radius: 0 10px 0 0;
}
/* Optional hover background tweak */
.nav-item:hover .nav-link {
  background: linear-gradient(#ff5fbc, #ff2a88);
}


    .dropdown {
      position: absolute;
      left: 0;
      top: 100%;
      background: #ff4ea3;
      list-style: none;
      padding: 0;
      margin: 0;
      min-width: 10vw;
      box-shadow: 0 3px 6px rgba(0,0,0,0.25);
      display: none;
      z-index: 20;
    }

    .dropdown li a {
      display: block;
      padding: 8px 16px;
      color: #fff;
      text-decoration: none;
      font-size: 13px;
      text-align: left;
      border-top: 1px solid rgba(255,255,255,0.25);
      background: linear-gradient(#ff4ea3, #ff1b7b);
    }

    .dropdown li:first-child a {
      border-top: none;
    }

    .dropdown li a:hover {
      background: rgba(255,255,255,0.15);
    }

    .nav-item:hover .dropdown {
      display: block;
    }

    /* MAIN LAYOUT */

    .layout {
      display: flex;
      padding: 24px 40px 40px;
      align-items: flex-start;
    }

    /* LEFT SIDEBAR */

    .sidebar {
      display:block;
      position:relative;
      background: linear-gradient( to bottom, #eb0a76 0%, #ffdbe9 100% );
      width: 20vw;
      height: 55vh;
      padding: 20px 16px;
      border-radius: 4px;
      color: #fff;
    }

    .social-buttons {
      display: flex;
      gap: 8px;
      margin-bottom: 18px;
      justify-content: center;
    }

    .social-circle {
      width: 26px;
      height: 26px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #001935;
      font-size: 13px;
      cursor: pointer;
    }
/**
    .social-circle:nth-child(2) { background: #0300e7; }
    .social-circle:nth-child(3) { background: #f25c06; }
    .social-circle:nth-child(4) { background: #418dff; }
    **/

    .sidebar-title {
  margin: 10px 0 8px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.newly-added-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.new-item {
  margin-bottom: 8px;
}

.new-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
}

.new-item a:hover {
  background: rgba(0, 0, 0, 0.28);
}

.new-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.new-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.new-item-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-item-meta {
  font-size: 11px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


    /* MAIN ARTICLE */

    .content {
      display: block;
      position:relative;
      background: #ffe6f1;
      padding: 18px 24px 24px;
      border-radius: 4px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.06);
      width:52vw;
      margin-left:2%;
    }

    .article-header {
      display: flex;
      align-items: center;
      margin-bottom: 14px;
      gap: 16px;
    }

    .date-badge {
      width: 60px;
      height: 60px;
      border-radius: 16px;
      background: #ff4ea3;
      color: #fff;
      text-align: center;
      font-weight: 700;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      text-transform: uppercase;
      line-height: 1.1;
    }

    .date-badge span:first-child {
      font-size: 20px;
    }

    .article-header h1 {
      font-size: 26px;
      margin: 0;
      font-weight: 600;
    }

    .article-image img {
      width: 100%;
      border-radius: 4px;
      display: block;
      margin-bottom: 16px;
      background: #ccc;
      object-fit: cover;
      max-height: 370px;
    }

    .article-body p {
      font-size: 15px;
      line-height: 1.6;
    }

    /* RIGHT SILHOUETTE */

    .right-figure {
      display: block;
      position: fixed;
      right:0;
      bottom:0;
    }

    .right-figure img {
      width:20vw;
      object-fit: contain;
    }
    

   /* Responsive: portrait mode */
@media (orientation: portrait) {

  /* NAV: turn into stacked vertical menu, dropdowns always visible */
  .nav {
    justify-content: stretch;
    margin-top: 8px;
  }

  .nav-inner {
    flex-direction: column;
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-item {
    width: 100%;
    flex: 0 0 auto;
  }

  .nav-link {
    text-align: left;
    padding: 12px 16px;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.35);
    border-radius: 0 !important;
  }

  .nav-item:first-child .nav-link {
    border-top: none;
  }

  /* Dropdown menus: inline under each section */
  .dropdown {
    position: static;
    min-width: 100%;
    box-shadow: none;
    display: block;        /* always visible in portrait */
    background: #ff4ea3;
  }

  .dropdown li a {
    padding: 6px 24px;     /* indent subitems */
    font-size: 13px;
  }

  /* LAYOUT: stack sidebar above main content */
  .layout {
    flex-direction: column;
    padding: 16px;
  }

  .sidebar {
    width: 100%;
    height: auto;
    margin-top: 0;
    margin-bottom: 16px;
  }

  .content {
    width: 100%;
    margin-left: 0;
  }

  /* Hide figure in portrait */
  .right-figure {
    display: none;
  }

  .right-figure img {
    width: 0;
    height: 0;
  }
}

/* ULTRAWIDE / DESKTOP LAYOUT FIXES */

:root {
  --page-max: 1480px;
  --gutter: clamp(16px, 3vw, 42px);
  --sidebar-w: clamp(220px, 20vw, 300px);
  --content-max: 820px;
  --figure-w: clamp(180px, 18vw, 320px);
}

html {
  overflow-x: hidden;
  background: #ffdbe9;
}

body {
  min-width: 320px;
}

/* Keep the whole site from stretching endlessly on ultrawide screens */
.page {
  width: min(100%, var(--page-max));
  margin-inline: auto;
}

/* Prevent banner/header image from causing weird scaling gaps */
.header img {
  display: block;
  width: 100%;
  height: auto;
}

/* NAVIGATION */

.nav {
  width: min(100%, var(--page-max));
  margin: 10px auto 0;
  padding-inline: var(--gutter);
}

.nav-inner {
  width: min(100%, 960px);
}

.nav-item {
  width: auto;
  min-width: 0;
  flex: 1 1 0;
}

.nav-link {
  padding: 12px clamp(14px, 2vw, 40px);
  white-space: nowrap;
}

.dropdown {
  min-width: 100%;
  width: max-content;
  max-width: 260px;
}

.dropdown li a {
  white-space: nowrap;
}

/* MAIN LAYOUT */

.layout {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: clamp(18px, 2.5vw, 36px)
           calc(var(--figure-w) + var(--gutter))
           40px
           var(--gutter);

  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, var(--content-max));
  gap: clamp(18px, 2vw, 32px);
  align-items: start;
}

.sidebar {
  width: 100%;
  height: auto;
  min-height: 420px;
}

.content {
  width: 100%;
  max-width: var(--content-max);
  margin-left: 0;
}

.article-body {
  max-width: 72ch;
}

.article-image img {
  max-height: min(370px, 45vh);
  height: auto;
}

/* Keep figure aligned to the page edge instead of monitor edge */
.right-figure {
  position: fixed;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.right-figure img {
  width: var(--figure-w);
  max-height: 90vh;
  object-fit: contain;
}

/* Hide the figure when there is not enough horizontal space */
@media (max-width: 1180px) {
  .layout {
    padding-right: var(--gutter);
  }

  .right-figure {
    display: none;
  }
}

/* Your portrait layout, reinforced so this override does not break mobile */
@media (orientation: portrait) {
  .nav {
    justify-content: stretch;
    padding-inline: 0;
  }

  .nav-inner {
    flex-direction: column;
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-item {
    width: 100%;
    flex: 0 0 auto;
  }

  .nav-link {
    text-align: left;
    padding: 12px 16px;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.35);
    border-radius: 0 !important;
  }

  .dropdown {
    position: static;
    width: 100%;
    max-width: none;
    min-width: 100%;
    box-shadow: none;
    display: block;
  }

  .layout {
    display: flex;
    flex-direction: column;
    padding: 16px;
  }

  .sidebar {
    width: 100%;
    min-height: 0;
    height: auto;
    margin-top: 0;
    margin-bottom: 16px;
  }

  .content {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .right-figure {
    display: none;
  }
}

/* MOBILE / PORTRAIT NAV FIX */

@media (max-width: 760px), (orientation: portrait) {
  
  .header::before {

  /* bar size */
  height: 40px;

  /* bar appearance */
  border-top: 5px solid #f2188a;
  border-bottom: 5px solid #f2188a;
}
  .page {
    width: 100%;
  }

  .nav {
    width: 100%;
    margin: 8px auto 0;
    padding: 0 12px;
    justify-content: center;
    position: relative;
    z-index: 999;
  }

  .nav-inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  }

  .nav-item {
    width: 100%;
    flex: 0 0 auto;
    position: relative;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    padding: 12px 16px;
    text-align: left;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.35);
    border-radius: 0 !important;

    font-size: 14px;
    line-height: 1.2;
    user-select: none;
  }

  .nav-link::after {
    content: "▾";
    font-size: 12px;
    margin-left: 10px;
    transition: transform 0.15s ease;
  }

  .nav-item.is-open .nav-link::after {
    transform: rotate(180deg);
  }

  .nav-item:first-child .nav-link {
    border-top: none;
    border-radius: 12px 12px 0 0 !important;
  }

  .nav-item:last-child .nav-link {
    border-radius: 0 0 12px 12px !important;
  }

  .nav-item:last-child.is-open .nav-link {
    border-radius: 0 !important;
  }

  .dropdown {
    position: static;
    display: none;
    width: 100%;
    max-width: none;
    min-width: 100%;

    padding: 0;
    margin: 0;
    box-shadow: none;
    background: #ff2a88;
    border-radius: 0;
  }

  /* Disable sticky mobile hover behavior */
  .nav-item:hover .dropdown {
    display: none;
  }

  /* Mobile dropdown opens by tap/class */
  .nav-item.is-open .dropdown,
  .nav-item:focus-within .dropdown {
    display: block;
  }

  .dropdown li a {
    display: block;
    width: 100%;
    padding: 10px 22px 10px 30px;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.25);
  }

  .dropdown li a:hover,
  .dropdown li a:focus {
    background: rgba(255,255,255,0.18);
  }

  .layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px;
    gap: 16px;
  }

  .sidebar {
    width: 100%;
    min-height: 0;
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
  }

  .content {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-top: 0 !important;
  }

  .article-header {
    align-items: flex-start;
  }

  .article-header h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .article-image img {
    max-height: none;
  }

  .right-figure {
    display: none;
  }
}

.lb-article {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(255, 78, 163, 0.18);
}

.lb-article:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.article-year {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.65;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.site-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* Sidebar disclaimer inserted by lbmenu.js */

.sidebar {
  overflow-y: auto;
}

.sidebar-disclaimer {
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10.5px;
  line-height: 1.35;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sidebar-disclaimer-title {
  margin-bottom: 5px;
  font-family: "NunitoMedium", "NunitoRegular", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-disclaimer p {
  margin: 0 0 6px;
}

.sidebar-disclaimer p:last-child {
  margin-bottom: 0;
}

.sidebar-disclaimer em {
  font-style: normal;
  font-family: "NunitoMedium", "NunitoRegular", sans-serif;
}

@media (max-width: 760px), (orientation: portrait) {
  .sidebar-disclaimer {
    font-size: 11px;
  }
}

