/* Smooth scroll for anchor links (all resource pages) */
html { scroll-behavior: smooth; }

.resrouces_btn {
  display: flex;
  padding: 4px 12px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  border: 1px solid var(--cl-green);
  width: fit-content;
  margin-inline: auto;
  text-decoration: none;
}
/* Main content area */
.content {
  flex: 1;
  min-width: 0;
  max-width: 800px;
}
.content ul,
.content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.content ul li,
.content ol li {
  margin-bottom: 1rem;
  color: var(--ca-white-70);
  font-size: var(--text-p1-fz);
  line-height: var(--text-p1-lh);
  font-family: var(--ff-text);
}
.content ul li {
  list-style-type: disc;
}
@media (max-width: 1139px) {
  .content ul li,
  .content ol li {
    font-size: var(--text-p2-fz);
    line-height: var(--text-p2-lh);
  }
}

hr {
  border: none;
  border-top: 1px solid var(--ca-white-10);
}
.content hr {
  margin: 2.5rem 0;
}

h1 {
  max-width: 910px;
  margin-inline: auto;
}
h2,
h3 {
  margin-bottom: 24px;
}
.mb_16 {
  margin-bottom: 16px;
}

.container {
  max-width: 1200px;
  padding: 80px 0px;
  gap: 80px;
}
/* Mobile responsive */
@media (max-width: 900px) {
  main {
    background-size: auto !important;
  }
  .container {
    flex-direction: column;
    gap: 20px;
  }
  .content {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .top_section .section_body {
    padding-inline: 16px;
  }
  .container {
    padding: 32px 16px 40px !important;
  }
}
.highlight-box {
  border-radius: 20px;
  border: 1px solid rgba(187, 236, 83, 0.6);
  background: rgba(187, 236, 83, 0.1);
}
.rotate_180 {
  transform: rotate(180deg);
}
.back_to_report_btn_top a:visited,
.back_to_report_btn_top {
  text-decoration: none !important;
}
.back_to_report_btn {
  border: 1px solid var(--ca-white-30);
  background: var(--ca-white-10);
  text-decoration: none !important;
}
.back_to_report_btn:hover {
  background: var(--ca-white-30);
}

.theme_highlight li::marker {
  color: var(--cl-green-light);
}
.theme_highlight_p_str,
.theme_highlight li strong {
  background-color: var(--cl-green-light-20);
  border-radius: 6px;
  color: var(--cl-green);
  padding: 2px 3px;
}
.theme_highlight.numbered li {
    list-style-type: decimal;
}

/* ===== Article Tables ===== */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-p1-fz);
  line-height: var(--text-p1-lh);
  font-family: var(--ff-text);
}
.article-table thead {
  background: rgba(137, 187, 30, 0.12);
}
.article-table th {
  padding: 12px 16px;
  text-align: left;
  color: var(--cl-green);
  font-weight: 600;
  font-size: var(--text-p2-fz);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(137, 187, 30, 0.25);
  white-space: nowrap;
}
.article-table td {
  padding: 12px 16px;
  color: var(--ca-white-70);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.article-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.article-table td strong {
  color: var(--cl-white);
  font-weight: 600;
}
@media (max-width: 600px) {
  .article-table th,
  .article-table td {
    padding: 8px 12px;
    font-size: var(--text-p2-fz);
  }
}

/* ===== Code Blocks ===== */
.code-block {
  margin: 1.5rem 0 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.code-block pre {
  margin: 0;
  padding: 20px 24px;
  overflow-x: auto;
}
.code-block code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cl-green-light);
  white-space: pre;
}

/* ===== Inline Code ===== */
.content code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.9em;
  background: rgba(137, 187, 30, 0.1);
  color: var(--cl-green-light);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(137, 187, 30, 0.15);
}
/* Don't double-style code inside code blocks */
.code-block code {
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
}

/* D1 — inline hyperlinks in article body: override UA default blue on dark theme */
.content a {
  color: var(--cl-green);
  text-decoration: underline;
  text-decoration-color: rgba(187, 236, 83, 0.4);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.content a:hover,
.content a:focus {
  color: var(--cl-green-light);
  text-decoration-color: var(--cl-green-light);
}
.content a:visited { color: var(--cl-green); }

/* ===== Article Blockquotes ===== */
.article-quote {
  margin: 2rem 0;
  padding: 20px 24px;
  border-left: 3px solid var(--cl-green);
  background: rgba(137, 187, 30, 0.06);
  border-radius: 0 12px 12px 0;
}
.article-quote p {
  margin: 0;
  font-style: italic;
  color: var(--ca-white-70);
}

/* ===== Enhanced Content Spacing ===== */
.content h2 {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.content h3 {
  margin-top: 2rem;
}

/* D4 — infographic figures need margin above/below to not render flush against prose */
.content figure.article-visual {
  margin: 2.5rem 0;
}
.content figure.article-visual + p,
.content figure.article-visual + h2,
.content figure.article-visual + h3 {
  margin-top: 1.5rem;
}
@media (max-width: 600px) {
  .content figure.article-visual { margin: 1.5rem 0; }
}

/* ===== Enhanced List Styling ===== */
.content ol.theme_highlight {
  counter-reset: article-list;
  list-style: none;
  padding-left: 0;
}
.content ol.theme_highlight li {
  counter-increment: article-list;
  padding-left: 2rem;
  position: relative;
}
.content ol.theme_highlight li::before {
  content: counter(article-list);
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--cl-green);
  font-size: 0.9em;
  background: rgba(137, 187, 30, 0.12);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 2px;
}
