@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');
@import url("../css/typography.828f90bc5394.css");

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-sub);
}
::-webkit-scrollbar-thumb {
    background: var(--rule);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--ink-3);
}

body {
  margin-top: 0; /* fd-nav is sticky, not fixed — no offset needed */
  padding: 0;
  width: 100%;
  height: 100%;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed); /* Improved line height for readability */
  font-family: var(--font-family-base); /* Consistent Geeky Font */
  color: var(--ink-2);
  background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--font-size-h1);
  border-bottom: 2px solid var(--rule);
  padding-bottom: 10px;
}

h1.article-title {
  font-family: var(--font-family-headline);
  font-weight: 600;
  font-size: clamp(1.875rem, 1.25rem + 2.2vw, 2.875rem); /* 30px → 46px */
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--ink);
}

/* Layout Centering & Readability */
.content-part {
  width: 100%;
  display: flex;
  justify-content: center; /* Center the column */
  padding: clamp(28px, 5vw, 56px) var(--pad-x);
  margin-bottom: clamp(48px, 8vw, 100px);
}

/* The article sits on a contained "sheet" — card surface on the page mist,
   the funDesk metaphor: a clean page on a desk. */
.content-part .content {
  width: 100%;
  max-width: 960px; /* editorial reading measure */
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 72px) clamp(22px, 5vw, 72px);
  box-shadow:
    0 1px 2px rgba(20, 22, 28, 0.04),
    0 18px 48px -20px rgba(20, 22, 28, 0.16);
}

@media screen and (max-width: 600px) {
  .content-part {
    padding: 20px 14px;
  }
  .content-part .content {
    border-radius: var(--radius-lg);
    padding: 26px 20px;
  }
}

/* Code Blocks - Dark Geeky Theme */
pre {
  background-color: #1e293b !important; /* Dark Slate */
  color: #e2e8f0 !important; /* Light text */
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #334155;
  overflow-x: auto;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

pre code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: transparent !important;
  color: inherit !important;
  padding: 0;
}

/* Inline code elements - using body selector for higher specificity */
body code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-headline);
  font-weight: var(--font-weight-normal);
  letter-spacing: -0.015em;
  line-height: var(--line-height-tight);
}
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); font-family: var(--font-family-base); font-weight: var(--font-weight-semibold); }
h5 { font-size: var(--font-size-h5); font-family: var(--font-family-base); font-weight: var(--font-weight-semibold); }
h6 { font-size: var(--font-size-h6); font-family: var(--font-family-base); font-weight: var(--font-weight-semibold); }

.sidebar {
  /* display: flex; */
  width: 18%;
  float: left;
  margin-inline-end: 0.5cm;
  margin-inline-start: 0.5cm;
  font-size: var(--font-size-lg);
  overflow-y: scroll;
}

.sidebar .card {
  background-color: var(--bg-card);
}

/* .sidebar .card{
  position: fixed;
  width: 18%;
  overflow-y: scroll;
} */


.middle-section{
  display: flex;
  margin-bottom: 20px;
}

.like-and-unlike{
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
}

.like-and-unlike .like-btn{
  padding-right: 10px;
}

.like-and-unlike .unlike-btn{
  padding-left: 20px;
  padding-right: 10px;
}

.stage{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-right: 10px;
}

.article-stage {
  display: inline-flex;
  padding: 6px 12px;
  color: white;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  text-align: center;
}

/* .article-stage h6{
  border: 2px solid white;
} */
.content {
  display: block;
}

main {
  display: flex;
  font-family: var(--font-family-fallback);
  font-size: var(--font-size-base);
}

@media screen and (max-width: 480px) {
  main {
    font-size: var(--font-size-base);
  }
}

@media only screen and (min-width: 40.063em) { /* min-width 641px, medium screens */
  main {
    font-size: var(--font-size-base);
  }
}

/* .container {
  overflow: hidden;
} */

/* .navbar-nav {
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .navbar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    margin: 0;
  }
} */

/* For header only */
@media (min-width: 768px) {
  .navbar-custom {
    padding-left: 20px;
    padding-right: 5px;
  }

  /* For sizing the right side of items in header. */
  .nav-item {
    font-size: var(--font-size-xl);
  }
}

.flex-wrapper {
  display: inline-block;
  width: 100%;
  float: none;
  max-width: 70%;
  flex-wrap: wrap;
  overflow-wrap: break-word;
  padding: 0 15px;
  /* Add padding instead of margin-left */
  margin-bottom: 55px;
  /* Set bottom margin equal to footer height */
}

/* Related articles — editorial card list */
.related-article {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.related-article h5 {
  font-family: 'Newsreader', ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 20px 0;
  border-bottom: none;
  padding-bottom: 0;
}

.related-article .article {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-2);
  transition: padding-left 0.18s ease;
}

.related-article .article:last-child {
  border-bottom: none;
}

.related-article .article:hover {
  padding-left: 6px;
}

.related-article .article a {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.related-article .article a:hover {
  color: var(--accent);
  text-decoration: none;
}

.related-article .article i {
  display: inline-block;
  width: 18px;
  color: var(--ink-3);
  margin-right: 4px;
  font-size: 13px !important;
  transition: color 0.15s ease, transform 0.18s ease;
}

.related-article .article:hover i {
  color: var(--accent);
  transform: translateX(2px);
}

/* Style for mobile devices */

@media screen and (max-width: 1200px) {
  .container {
    flex-wrap: wrap;
    /* Allow flex items to wrap */
  }

  .sidebar {
    display: none;
    /* Hide the sidebar */
  }
}

@media screen and (max-width: 768px) {
  .container {
    flex-wrap: wrap;
    /* Allow flex items to wrap */
  }

  .sidebar {
    display: none;
    /* Hide the sidebar */
  }
}

/* .row {
  max-width: 1200px;
} */

.code-container {
  max-width: 1200px;
}

.body-content {
  /* display: flex; */
  max-width: 1200px;
  overflow-wrap: break-word;
  /* min-height: 100vh; */
  flex-direction: column;
  justify-content: space-between;

}

body {
  margin-top: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  font-style: normal;
  font-weight: 400;
  background-color: var(--bg);
}

/* main {
  flex: 1;
} */

#main-content {
  display: flex;
  justify-content: center;
}

#main-content .article-content {
  width: 70%;
}

footer {
  background-color: #f5f5f5;
  padding-top: 15px;
  padding-bottom: 5px;
  height: 50px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2;
}

/* Media Queries */
@media (max-width: 768px) {
  footer {
    text-align: center;
  }
}


/* .blockquote{
  font-family: 'Spline Sans Mono', monospace;
  max-width: 950px;
  flex-direction: column;
  display:inline-block;
  color: #A1C181;
  font-weight: 450;
  font-size: 50px;
} */

.button-container {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  max-width: 900px;
  justify-content: center;
}


.button {
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  text-decoration: none;
  padding: 6px 20px;
  margin-inline-end: 20px;
  margin-bottom: 30px;
  font-family: 'Spline Sans Mono', monospace;
  font-size: var(--font-size-xl);
  color: #181818;
  box-sizing: border-box;
  border: 3px solid #f578045f;
  border-radius: 10px;
}

@media (max-width: 576px) {
  .button {
    height: auto;
    line-height: 1.5;
  }
}


ul {
  margin: 0;
}

/* 7452FF */
.bg-steel {
  background-color: #64d3b9;
}

.back-button {
  color: #181818;
  box-sizing: border-box;
  border: 3px solid #f578045f;
}

.back-button:hover {
  background-color: #ffd752;
  /* set the background color on hover */
  color: white;
  /* set the font color on hover */
}

/* For telling search to adjust the image. */
img {
  max-inline-size: 100%;
  block-size: auto;
  aspect-ratio: 2/1;
  object-fit: contain;
}

/* .feedback{
  display: flex;
  justify-content: left;
  align-items: center;
}
.feedback .likebtn button{
  padding: 0px 5px 0px 5px;
  border: none;
  border-radius: 5px;
  background-color: transparent;
}
.feedback .unlikebtn button{
  padding: 0px 5px 0px 5px;
  border: none;
  border-radius: 5px;
  margin-left: 10px;
  background-color: transparent;
} */

.msg-feedback {
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-msg {
  padding: 10px 16px;
  font-family: var(--font-family-base);
  font-size: 0.9rem;
  font-weight: 600;
  color: #166534;
  background-color: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}


.likebtn,
.unlikebtn {
  margin: 0;
  border: none;
  outline: none;
}

input[type="radio"] {
  display: none;
}

.feedback label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  color: var(--ink-2);
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.feedback label:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--bg-card);
  transform: translateY(-1px);
}

.feedback label svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.feedback label svg path {
  fill: currentColor;
}

.feedback {
  display: flex;
  gap: 10px;
  margin: 24px 0 16px;
  justify-content: flex-start;
  align-items: center;
}

.feedback_click_class {
  background: var(--accent-2) !important;
  border-color: var(--accent-2) !important;
  color: var(--bg-card) !important;
}

.css-1qgnve6 {
  color: #181818;
}

#likeicon2 {
  display: none;
}

#unlikeicon2 {
  display: none;
}


.blockquote {
  padding: 60px 80px 40px;
  position: relative;
}

.blockquote p {
  font-family: "Utopia-italic";
  font-size: var(--font-size-h2);
  font-weight: 700px;
  text-align: center;
}

/*blockquote p::before {
  content: "\f095"; 
  font-family: FontAwesome;
 display: inline-block;
 padding-right: 6px;
 vertical-align: middle;
font-size: 180px;
}*/

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic);

.otro-blockquote {
  font-size: var(--font-size-lg);
  width: 100%;
  margin: 50px auto;
  font-family: Open Sans;
  font-style: italic;
  padding: 1.2em 30px 1.2em 75px;
  border-left: 8px solid var(--teal);
  line-height: var(--line-height-relaxed);
  position: relative;
  color: var(--ink);
  background-color: var(--bg-sub);
  border-radius: 7px;
}

.otro-blockquote::before {
  font-family: Arial;
  content: "\201C";
  color: #78C0A8;
  font-size: 4em;
  position: absolute;
  left: 10px;
  top: -10px;
}

.otro-blockquote::after {
  content: '';
}

.otro-blockquote span {
  display: block;
  font-style: normal;
  font-weight: bold;
  margin-top: 1em;
  text-align: end;
}

/* Tables - Markdown generated */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  overflow-x: auto;
  display: block;
}

thead {
  background-color: var(--bg-sub);
}

th, td {
  padding: 10px 16px;
  text-align: left;
  border: 1px solid var(--rule);
  white-space: normal;
  word-wrap: break-word;
}

th {
  font-weight: var(--font-weight-bold);
  color: var(--ink);
}

tr:nth-child(even) {
  background-color: var(--rule-2);
}

/* Tip/Info Callout Boxes */
.tip-box {
  background: #e8f4fd;
  border-left: 4px solid #2196F3;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
  color: #1e293b;
}

.warning-box {
  background: #fff8e1;
  border-left: 4px solid #FF9800;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
  color: #1e293b;
}

.important-box {
  background: #fde8e8;
  border-left: 4px solid #f44336;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
  color: #1e293b;
}

/* Content Feedback Widget — editorial section, matches .related-article rhythm */
.content-feedback-section {
  margin: 48px 0 0;
  padding-top: 32px;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}

.content-feedback-title {
  font-family: 'Newsreader', ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 20px 0;
  padding-bottom: 0;
  border-bottom: none;
}

.cf-field {
  margin-bottom: 14px;
}

.cf-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: default;
  padding: 0;
  border-radius: 0;
}

.cf-optional {
  font-weight: 400;
  color: var(--ink-3);
}

.cf-field textarea,
.cf-field input[type="text"],
.cf-field input[type="email"] {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.cf-field textarea:focus,
.cf-field input[type="text"]:focus,
.cf-field input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.cf-submit-btn {
  display: inline-block;
  padding: 11px 26px;
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bg-card);
  background: var(--accent-2);
  border: 1px solid var(--accent-2);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.cf-submit-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.cf-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cf-success {
  padding: 12px 16px;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.cf-error {
  padding: 8px 12px;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Middle Quotes css */

.middle-quote {
  padding: 10px 0px 10px 0px;
  margin-bottom: 20px;
}

/* =========================================================
   Article reading experience — editorial layer
   Structural rules; colors live in article-detail-*.css
   ========================================================= */

/* Breadcrumb — mono uppercase eyebrow, Fresh Desk language */
.navigation-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 0;
  color: var(--ink-3);
}

.navigation-bar i {
  font-size: 11px;
}

.navigation-bar a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s ease;
}

.navigation-bar a:hover {
  color: var(--ink);
  text-decoration: none;
}

.navigation-bar .bc-sep {
  color: var(--ink-3);
  opacity: 0.5;
  font-weight: 400;
}

.navigation-bar .bc-current {
  color: var(--ink-3);
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* On mobile the H1 below already shows the full title — hide the redundant breadcrumb tail */
@media (max-width: 600px) {
  .navigation-bar .bc-sep:has(+ .bc-current),
  .navigation-bar .bc-current {
    display: none;
  }
}

h1.article-title {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Date + difficulty + tag row */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

/* Publish date — inline mono eyebrow, no pill (visual restraint) */
.meta-date {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* When the date is followed by other meta items, a hairline separator
   sits between it and the next item — outside any pill */
.meta-date:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 12px;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: 0.4;
  vertical-align: middle;
}

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-family: var(--font-family-base);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.difficulty-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.difficulty-easy   { background: #e7f6ec; color: #1a7a3e; }
.difficulty-easy   .difficulty-dot { background: #2ea44f; }
.difficulty-medium { background: #fbf0e0; color: #97580f; }
.difficulty-medium .difficulty-dot { background: #d98324; }
.difficulty-hard   { background: #fdeaea; color: #b3261e; }
.difficulty-hard   .difficulty-dot { background: #e5484d; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-sub);
  border: 1px solid var(--rule);
  color: var(--ink-3);
  font-family: var(--font-family-base);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tag-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* Body prose */
.article-body {
  font-size: 1.1875rem;
  line-height: 1.78;
  color: var(--ink-2);
}

.article-body p {
  font-size: 1.1875rem;
  line-height: 1.78;
  margin: 0 0 1.5rem;
}

/* Opening paragraph — same size as body, only a slightly darker tone
   as a subtle "this is the intro" cue. No size jump. */
.article-body > p:first-of-type {
  color: var(--ink);
}

/* Headings inside the article body */
.article-body h2 {
  font-family: var(--font-family-headline);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 3rem 0 1rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.article-body h3 {
  font-family: var(--font-family-headline);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 2.25rem 0 0.75rem;
}

.article-body h4 {
  font-family: var(--font-family-base);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 2rem 0 0.6rem;
}

.article-body > h2:first-child,
.article-body > h3:first-child {
  margin-top: 0.5rem;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  font-size: 1.1875rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.article-body li::marker {
  color: var(--ink-3);
}

.article-body li > ul,
.article-body li > ol {
  margin: 0.5rem 0 0.25rem;
}

/* Links in prose */
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(79, 91, 213, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease;
}

.article-body a:hover {
  text-decoration-color: var(--accent);
}

/* Inline code */
.article-body :not(pre) > code {
  background: var(--bg-sub);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.12em 0.38em;
  font-size: 0.86em;
  color: var(--ink-2);
}

/* Code blocks + media spacing */
.article-body pre {
  margin: 1.75rem 0;
}

.article-body img {
  border-radius: 8px;
  margin: 1.75rem 0;
}

/* Blockquote */
.article-body blockquote {
  margin: 1.75rem 0;
  padding: 0.35rem 0 0.35rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  font-style: italic;
}

.article-body blockquote p {
  margin-bottom: 0.5rem;
}

/* Horizontal rules */
.article-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.75rem 0;
}

/* End-of-article ornament — three small dots, centered.
   Replaces the flat hairline before the feedback / related sections. */
.article-end-rule {
  border: 0;
  height: 4px;
  width: 60px;
  margin: 3.5rem auto 2.75rem;
  background-image: radial-gradient(circle, var(--ink-3) 1.4px, transparent 1.8px);
  background-size: 18px 4px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.55;
}

/* Heading anchor mark — a # in the gutter on hover. Functional via the
   IDs the toc Markdown extension already generates, but rendered with
   restraint: hidden by default, faint on hover. Engineer-audience cue. */
.article-body :is(h2, h3)[id] {
  position: relative;
  scroll-margin-top: 96px;
}

.article-body :is(h2, h3)[id]::before {
  content: '#';
  position: absolute;
  left: -1.6ch;
  top: 0;
  color: var(--accent);
  font-family: var(--font-family-headline);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.article-body :is(h2, h3)[id]:hover::before {
  opacity: 0.5;
}

/* Don't let the gutter # overflow the panel on narrow viewports */
@media (max-width: 820px) {
  .article-body :is(h2, h3)[id]::before {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .article-body,
  .article-body p,
  .article-body li {
    font-size: 1.0625rem;
  }
  .article-body h2 {
    font-size: 1.55rem;
    margin-top: 2.5rem;
  }
  .article-body h3 {
    font-size: 1.25rem;
  }
}

/* Tables — clean editorial style, no heavy grid */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  line-height: 1.55;
}

.article-body thead {
  background: transparent;
}

.article-body th {
  padding: 10px 16px;
  text-align: left;
  border: 0;
  border-bottom: 2px solid var(--rule);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.article-body td {
  padding: 12px 16px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  vertical-align: top;
  white-space: normal;
}

.article-body tr:nth-child(even) {
  background: transparent;
}

.article-body tbody tr:last-child td {
  border-bottom: 0;
}

/* Callout boxes — editorial */
.article-body .tip-box,
.article-body .warning-box,
.article-body .important-box {
  margin: 1.85rem 0;
  padding: 16px 20px;
  border-left: 3px solid;
  border-radius: 8px;
  font-size: 1.0625rem;
  line-height: 1.66;
}

.article-body .tip-box p,
.article-body .warning-box p,
.article-body .important-box p,
.article-body .tip-box li,
.article-body .warning-box li,
.article-body .important-box li {
  font-size: 1.0625rem;
  line-height: 1.66;
}

.article-body .tip-box > :last-child,
.article-body .warning-box > :last-child,
.article-body .important-box > :last-child {
  margin-bottom: 0;
}

.article-body .tip-box {
  background: #eef5fb;
  border-left-color: #3b82f6;
  color: #1e3a5f;
}

.article-body .warning-box {
  background: #fbf4e6;
  border-left-color: #e0930f;
  color: #5c4407;
}

.article-body .important-box {
  background: #fbecec;
  border-left-color: #e5484d;
  color: #6e1c1c;
}

/* Editorial link to the parent topic — replaces the off-brand Bootstrap button */
.topic-browse-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
}

.topic-browse-link:hover {
  color: var(--ink);
  text-decoration: none;
  gap: 9px;
}

/* =========================================================
   Syntax highlighting — Pygments (codehilite), One Dark palette.
   Code blocks render on a dark surface in BOTH site themes,
   so this single palette is theme-independent.
   Broad/un-lexed tokens stay neutral so plain code never
   floods with colour.
   ========================================================= */
.article-body .highlight {
  background: transparent;
  color: #abb2bf;
}

/* Comments */
.article-body .highlight .c,
.article-body .highlight .ch,
.article-body .highlight .cm,
.article-body .highlight .cp,
.article-body .highlight .cpf,
.article-body .highlight .c1,
.article-body .highlight .cs { color: #7f848e; font-style: italic; }

/* Keywords */
.article-body .highlight .k,
.article-body .highlight .kd,
.article-body .highlight .kn,
.article-body .highlight .kp,
.article-body .highlight .kr { color: #c678dd; }

/* Types, constants, builtins, class names */
.article-body .highlight .kc,
.article-body .highlight .kt,
.article-body .highlight .nc,
.article-body .highlight .nb,
.article-body .highlight .bp,
.article-body .highlight .no { color: #e5c07b; }

/* Strings */
.article-body .highlight .s,
.article-body .highlight .s1,
.article-body .highlight .s2,
.article-body .highlight .sa,
.article-body .highlight .sb,
.article-body .highlight .sc,
.article-body .highlight .dl,
.article-body .highlight .sd,
.article-body .highlight .se,
.article-body .highlight .sh,
.article-body .highlight .si,
.article-body .highlight .sx,
.article-body .highlight .sr,
.article-body .highlight .ss { color: #98c379; }

/* Numbers */
.article-body .highlight .m,
.article-body .highlight .mb,
.article-body .highlight .mf,
.article-body .highlight .mh,
.article-body .highlight .mi,
.article-body .highlight .mo,
.article-body .highlight .il { color: #d19a66; }

/* Functions & decorators */
.article-body .highlight .nf,
.article-body .highlight .fm,
.article-body .highlight .nd { color: #61afef; }

/* Markup tags & attributes */
.article-body .highlight .nt { color: #e06c75; }
.article-body .highlight .na { color: #d19a66; }

/* Operators */
.article-body .highlight .o,
.article-body .highlight .ow { color: #56b6c2; }

/* Plain names, punctuation, whitespace, errors — neutral */
.article-body .highlight .n,
.article-body .highlight .nx,
.article-body .highlight .nv,
.article-body .highlight .nn,
.article-body .highlight .nl,
.article-body .highlight .ni,
.article-body .highlight .ne,
.article-body .highlight .py,
.article-body .highlight .vc,
.article-body .highlight .vg,
.article-body .highlight .vi,
.article-body .highlight .vm,
.article-body .highlight .p,
.article-body .highlight .pm,
.article-body .highlight .w,
.article-body .highlight .err,
.article-body .highlight .esc { color: #abb2bf; }
