
.content-wrapper {
  background-color: var(--neutral-cream);
  padding-bottom: var(--space-5);
}

.article-wrapper p,
.article-wrapper li {
  line-height: 1.6;
  font-size: var(--text-sm); 
  color: var(--text-primary);
  text-align: left;
  font-weight: 300;
}

/* List marker colors */
.article-wrapper ol li::marker {
  color: var(--text-primary);
}

.article-wrapper ul li::marker {
  color: var(--primary-color);
}


@media (max-width: 600px) {
  .article-wrapper {
    margin: var(--space-4) var(--space-1);
    padding: var(--space-2) var(--space-1);
  }
}

.toc-wrapper {
  margin-block: var(--space-3);
  border-left: 3px solid var(--primary-color) !important;
  background: #fdfdfd;
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  box-shadow: 0 2px 8px rgba(0 0 0 / 5%);
}

.toc-wrapper details > summary {
  font-weight: 300;
  cursor: pointer;
  list-style: none;
  margin-bottom: .5rem;
}

.toc-wrapper details > summary::-webkit-details-marker {
  display: none; 
}


@media (min-width: 768px) {
  .toc-wrapper details[open] {
    open: open;
  }
  .toc-wrapper details > summary {
    cursor: default;
    pointer-events: none;
  }
}

.toc {
  font-size: 0.875rem !important; 
  font-weight: 400;
  padding-left: 0;
  counter-reset: toc-h2;
}

.toc li,
.toc li > a {
  font-size: 0.9875em !important;
}


.toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Number top-level ToC items (H2 headings) */
.toc > ul > li {
  counter-increment: toc-h2;
}

.toc > ul > li > a::before {
  content: counter(toc-h2) ". ";
  /* font-weight: 500; */
}


.toc ul ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0.25rem 0 0 0;
}


.toc ul ul li {
  border-left: 2px solid rgba(0,0,0,0.06);
  padding-left: 0.75rem;
  margin-bottom: .25rem;
}

.toc li {
  margin-bottom: .25rem;
  display: list-item;
}


.toc li > a {
  display: block;
  padding: .125rem 0;
}

.toc a {
  color: var(--text-primary);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.toc details {
  margin-bottom: .25rem;
  position: relative;
}

.toc details > summary {
  cursor: pointer;
  list-style: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 1.25em;
  height: 1.25em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toc details > summary::-webkit-details-marker { display: none; }

.toc details > summary::before {
  content: "▶";
  font-size: 0.6em;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: transform 0.15s ease;
}

.toc details[open] > summary::before {
  transform: rotate(90deg);
}

.toc li:has(> details) {
  position: relative;
  padding-right: 1.5em;
}

.toc-wrapper a:any-link {
  color: var(--text-base);
  text-decoration: none;
}
.toc-wrapper a:any-link:hover {
  text-decoration: underline;
}


.article-title {
  font-family: "Noto Sans", sans-serif;
  text-transform: capitalize !important;
  font-weight: 200;
  color: var(--text-base) !important;
  font-size: 1.35rem;
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  text-align: center;
  margin-bottom: var(--space-2);
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: .25rem;
}


/* ───────── SUMMARY METADATA ───────── */

.article-summary {
  margin-block: var(--space-2) var(--space-3);
  padding: var(--space-2) var(--space-2);
  background: #fdfdfd;
  /* border-left: 3px solid var(--primary-color-dark); */
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0 0 0 / 5%);

.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.section-card a {
  color: var(--text-tertiary);
  text-decoration: underline;
}
.section-card .muted {
  color: rgba(255,255,255,0.85);
}
}
.article-summary p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  font-weight: 400;
  margin: 0;
  text-align: center;
}

.article-wrapper h1 {
  text-align: center;
  font-family: "Noto Sans", sans-serif;
  text-transform: capitalize;
  font-weight: 300;
  color: var(--text-primary);
  font-size: 1.25rem; 
  font-size: clamp(1.25rem, 3vw, 1.50rem); 
  padding-bottom: .5rem;
  margin-bottom: var(--space-3);}
.article-wrapper h2,
.article-wrapper h3,
.article-wrapper h4 {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 250;
  color: var(--text-secondary);
  /* border-bottom: 1px solid #e0e0e0; */
  padding-bottom: .5rem;
  margin-block: var(--space-4) var(--space-3);
  text-align: left;
}

.article-wrapper h1,
.article-wrapper h2 {
  border-bottom: 1px solid #e0e0e0;
}

/* .article-wrapper h1 { font-size: var(--text-lg); text-transform: uppercase; font-weight: 300;} */
.article-wrapper h2 { font-size: var(--text-lg); text-transform: capitalize; }
.article-wrapper h3 { font-size: var(--text-base);  }
.article-wrapper h4 { font-size: var(--text-base);}

.article-wrapper h2 {
  color: var(--text-primary);
  font-weight: 300;
  /* letter-spacing: 0.2px; */
}

.article-wrapper h3 {
  color: var(--text-primary);
  font-weight: 300;
  /* letter-spacing: 0.1px; */
  margin-top: .75rem;
}
.article-wrapper {
  max-width: clamp(300px, 60vw, 1200px);
  width: 90%;
  font-size: var(--text-sm); 
  color: var(--text-primary);
  text-align: left;
  /* font-weight: 400; */
}
.article-wrapper strong,
.article-wrapper b {
  font-weight: 400; 
}
.article-wrapper ul,
.article-wrapper ol {
  list-style-position: outside;
  padding-left: var(--space-3);
  margin-bottom: var(--space-3);
}
.article-wrapper li::marker { color: var(--primary-color); }
.article-wrapper img {
  display: block;
  max-width: 95%;
  margin: var(--space-4) auto;
  border-radius: var(--radius-sm);
}

.article-content a:any-link {
  color: var(--primary-color);
  text-decoration: none;
}
.article-content a:any-link:hover {
  text-decoration: underline;
}



/* ───────── Quotes, case studies and diagrams ───────── */
.article-wrapper blockquote {
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-2);
  border-left: 4px solid var(--secondary-color);
  background: var(--neutral-dark);
  color: var(--text-secondary);
  font-style: italic;
  border-radius: var(--radius-sm);
}
.article-body blockquote p {
  font-weight: 400;
  margin: 0;
}
.case-study {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  background: #f7f9fb;
}
figure.diagram {
  margin: 2.5rem 0;
  text-align: center;
  /* max-height: 250px; */
}
figure.diagram img,
figure.diagram svg {
  max-height: 900px;      /* or whatever limit you want */
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;    /* maintains aspect ratio */
}
figure.diagram figcaption {
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-top: 0.75rem;
  font-style: italic;
}
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.photo-gallery .photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

/* Table styling */
.article-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-3) 0;
}
.article-wrapper table th,
.article-wrapper table td {
  border: 1px solid rgba(0,0,0,0.1);
  padding: var(--space-1);
  text-align: center;
  font-size: var(--text-xs);
}
.article-wrapper table th {
  background-color: var(--primary-color-dark);
  color: var(--neutral-white);
  font-weight: 500;
}
.article-wrapper table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}
.article-wrapper table tbody tr:hover {
  background-color: #f1f1f1;
}



/* ───────── “BACK” BUTTON ROW ───────── */
.article-footer {
  text-align: center;
  margin-top: var(--space-6);
}
.article-footer .btn {
  min-width: 140px;
}
.article-button {
  display: flex;
  justify-content: center;
  margin: var(--space-4) 0 0;
}
.article-button .btn {
  width: auto;
  /* min-width: 140px; */
  max-width: 150px;
  /* min-width: 130px; */
  padding: 0.5rem 1.5rem;
  display: inline-flex;
  font-size: clamp(0.85rem, 1.75vw, 0.9rem);
  font-weight: 250;
  white-space: nowrap;
}

.article-button .btn-two {
  background: var(--primary-color);
  border: 1px solid #fff;
  color: #fff;
  box-shadow: 0 12px 24px rgba(1, 86, 179, 0.18);
}

.article-button .btn-two:hover {
  background: var(--primary-color-light);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .article-button .btn {
    width: auto;
    max-width: 120px;
    min-width: 90px;
  }
}