@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,500;0,600;0,700;1,500&family=IBM+Plex+Sans:wght@100..700&display=swap");

.ibm-plex-sans-regular {
  font-family: "IBM Plex Sans", serif;
  font-weight: 400;
  font-style: normal;
}

.ibm-plex-sans-semibold {
  font-family: "IBM Plex Sans", serif;
  font-weight: 600;
  font-style: normal;
}

/* ------------------------------------------------------ */
/*                        Defaults                        */
/* ------------------------------------------------------ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: #111222;
  color: #fafafa;
}

p {
  font-family: "IBM Plex Sans", serif !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* ------------------------------------------------------ */
/*                         Layout                         */
/* ------------------------------------------------------ */

.two-column {
  display: flex;
  max-width: 1200px;
  gap: 2rem;
}

.main-content {
  flex: 2;
  /* outline: 1px solid red; */
  min-height: 400px;
}

.side-content {
  flex: 1;
  /* background: white; */
  /* padding: 2rem; */
  /* outline: 1px solid red; */
  min-height: 400px;
}

@media (max-width: 800px) {
  .two-column {
    flex-direction: column;
  }
}

.scenario-wrapper {
  margin: 8rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ------------------------------------------------------ */
/*                         Header                         */
/* ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: #162140;
  color: white;
  padding: 1rem 2rem;
  /* border-bottom: 1px solid #826022; */
  font-family: "IBM Plex Sans", sans-serif;
}

/* ------------------------------------------------------ */
/*                    Background Image                    */
/* ------------------------------------------------------ */

#article,
body {
  background: url(https://res.cloudinary.com/csisideaslab/image/upload/v1746037981/bg_3_nq3ycm.jpg)
    #101221 top / 100vw no-repeat;
  color: #fff;
}

/* ------------------------------------------------------ */
/*                          Hero                          */
/* ------------------------------------------------------ */

.scenario-header {
  margin-top: 5.5rem;
  color: #fff !important;
  font-family: "IBM Plex Sans" !important;
}

.scenario-header,
.about {
  max-width: 650px;
}

.scenario-header__label {
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

.scenario-header__label a {
  color: #f4d9a7;
  transition: all 0.3s ease;
  text-decoration: none;
}

.scenario-header__label a:hover {
  color: #ecbd65;
}

/* ------------------------ Title ----------------------- */
.scenario-header .scenario-header__title {
  font-family: "IBM Plex Sans";
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 3.75rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ------------------- Expert Section ------------------- */
.scenario-header__meta-label {
  font-size: 0.875rem;
  margin-top: 2rem;
  margin-bottom: 1.125rem;
  line-height: 1.3;
}

.scenario-header__experts {
  display: grid;
  margin-bottom: 0.75rem;
  gap: 1.25rem;
}

@media screen and (min-width: 900px) {
  .scenario-header__experts {
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
  }
}

/* ------------------ Individual Expert ----------------- */

.scenario-header__expert {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.scenario-header__expert-img {
  width: 65px;
  height: 65px;
  min-width: 65px;
  min-height: 65px;
  overflow: hidden;
  border-radius: 50%;
}

.scenario-header__expert-img img {
  display: block;
  width: 65px;
  height: 65px;
  object-fit: cover;
  object-position: center;
}

.scenario-header__expert-meta {
  flex: 1 0 70%;
}

.scenario-header .scenario-header__expert-name {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: #f4d9a7;
}

.scenario-header .scenario-header__expert-name a {
  text-decoration: none;
  border-bottom: 0 !important;
  color: #f4d9a7;
}

.scenario-header .scenario-header__expert-name a:hover {
  color: #ecbd65;
}

.scenario-header__expert-details {
  font-size: 0.8125rem;
  line-height: 1.2;
  color: #e4e4e4;
}

/* ------------------------ About ----------------------- */
.about {
  background: linear-gradient(
    90deg,
    rgba(218, 223, 255, 0.2) 0%,
    rgba(16, 18, 33, 0) 100%
  );
  padding: 1.5rem;
  margin-top: 3rem;
}

.about-series {
  font-style: italic;
}

.about p {
  font-size: 0.875rem !important;
  line-height: 1.3 !important;
}

.about p:first-child {
  margin-top: 0;
}

/* ----------------------- Divider ---------------------- */
.divider {
  border-bottom: 1px solid #fff;
  max-width: 650px;
  margin: 2rem 0;
}
/* ------------------------------------------------------ */
/*                          Cards                         */
/* ------------------------------------------------------ */
.card-img img {
  border-radius: 50%;
  max-width: 32px;
}

.card-name {
  font-weight: 600;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tabs-container {
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #1b1f33;
}

@media (max-width: 767px) {
  .tabs-container {
    margin-top: 1rem;
  }
}
/* ------------------------------------------------------ */
/*                     Annotated Words                    */
/* ------------------------------------------------------ */
.annotated {
  background: #473b1f;
  color: #f5deb3;
  padding: 0 0.125em;
}

.annotated + .annotated {
  margin: 0 0.25em;
}

@media (max-width: 767px) {
  .annotated + .annotated {
    margin: 0;
  }
}

.annotated:hover,
.annotated.hovered {
  background: #ecbd65;
  color: #101221;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

@media (max-width: 767px) {
  .annotated:hover,
  .annotated.hovered {
    background: #473b1f;
    color: #f5deb3;
  }
}

/* ------------------------------------------------------ */
/*                        Behavior                        */
/* ------------------------------------------------------ */
.tabs-container.highlighted {
  outline: 2px solid #ecbd65;
  box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.3);
  transition: outline 0.3s ease;
}

.tabs-container:hover,
.tabs-container.hovered {
  outline: 2px solid #ecbd65;
  transition: outline 0.3s ease-in-out;
}

.comment-card[data-collapsed="true"] .card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines before truncation */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comment-card[data-collapsed="true"] .card-excerpt::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2em;
  width: 100%;
}

.toggle-button {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #3367d6;
  text-decoration: underline;
  cursor: pointer;
}

/* ------------------------------------------------------ */
/*                   Additional Reading                   */
/* ------------------------------------------------------ */
.additional-reading {
  background: #261f11;
  color: #fff7e6;
  padding: 3rem 2rem;
  font-size: 0.95rem;
  font-family: "IBM Plex Sans", serif;
  margin-top: 5rem;
}

.additional-reading h2 {
  color: #fff;
  margin-top: 0;
  font-size: 1.75rem;
}

.additional-reading ol {
  padding-left: 1.5rem;
}

.additional-reading li {
  margin-bottom: 1.25rem;
}

.additional-reading a {
  color: #eac86f;
  text-decoration: underline;
}

.additional-reading span {
  display: block;
  margin-top: 0.25rem;
}

/* ------------------------------------------------------ */
/*                         Credits                        */
/* ------------------------------------------------------ */
.credits {
  background: #2f3243;
  color: #fff;
  padding: 2rem 1rem; /* outer padding */
}

.credits .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.credits__block {
  flex: 1 1 300px;
  margin-bottom: 1.5rem;
}

.credits h3 {
  margin-top: 0;
  font-size: 1.75rem;
}

/* ------------------------------------------------------ */
/*                         Footer                         */
/* ------------------------------------------------------ */
.footer {
  background-color: #141624;
  color: #fff;
  padding: 2rem;
  font-size: 0.95rem;
}

.footer__logo img {
  max-width: 180px;
  margin-bottom: 1.5rem;
}

.footer__main {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__about {
  flex: 1 1 60%;
}

.footer__address {
  flex: 1 1 35%;
}

.footer__copyright {
  font-size: 0.875rem;
  color: #aaa;
}

.footer__copyright a {
  color: #fff;
  text-decoration: underline;
}

/* ------------------------------------------------------ */
/*                      Mobile Toggle                     */
/* ------------------------------------------------------ */
.comment-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #5e4620; /* brownish tone */
  color: white;
  border: none;
  border-radius: 6px;
  width: 20px;
  height: 20px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  margin: 0 3px;
  cursor: pointer;
  padding: 0;
}

.comment-toggle::before {
  display: block;
  font-size: 16px;
}

/* Only show the inline toggle on small screens */
@media (min-width: 768px) {
  .comment-toggle {
    display: none;
  }
}

/* Hide side content on mobile */
@media (max-width: 767px) {
  .side-content {
    display: none;
  }
}
