/* Import DM Sans font */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* Color theme matching the Ona front-end */
:root {
  --dark-blue: #040e2e;
  --primary-blue: #455bf1;
  --accent-blue: #3748c8;
  --text-dark: #333;
  --text-light: #4D4D4D;
  --background-light: #f5f5f5;
  --white: #fff;
  --border-grey: #e0e0e0;
  --neutral-grey: #F4F4F4;
  --code-bg: #f5f5f5;
  --code-text: #333;
  
  /* Ubuntu Terminal Color Scheme */
  --ubuntu-bg: #2E3436;
  --ubuntu-fg: #B5BBAE;
  --ubuntu-black: #2E3436;
  --ubuntu-red: #AE5E5E;
  --ubuntu-green: #4E9A06;
  --ubuntu-yellow: #8A7000;
  --ubuntu-blue: #3465A4;
  --ubuntu-purple: #75507B;
  --ubuntu-cyan: #06989A;
  --ubuntu-white: #B5BBAE;
  --ubuntu-bright-black: #555753;
  --ubuntu-bright-red: #EF2929;
  --ubuntu-bright-green: #8AE234;
  --ubuntu-bright-yellow: #FCE94F;
  --ubuntu-bright-blue: #729FCF;
  --ubuntu-bright-purple: #AD7FA8;
  --ubuntu-bright-cyan: #34E2E2;
  --ubuntu-bright-white: #EEEEEC;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth scrolling with proper anchor offset for fixed header. */
html {
  margin: 0 !important;
  padding: 0 !important;
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* Header height + padding */
}

body {
  font-family: 'DM Sans', Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--background-light);
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
}

ul {
  list-style: none;
}

/* Typography styles for headings and body text */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; /* Bold for headings */
}

p, span, a, button, input, select, textarea {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400; /* Normal weight for body text */
}

strong {
  font-weight: 500; /* Medium weight for emphasized text */
}

/* Header/Navigation Bar */
.header-bar {
  background-color: var(--dark-blue);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0 !important;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 40px 90px 0 90px;
  margin: 0;
}

.branding {
  position: relative;
  left: -10px; /* Adjust logo position to match original */
  display: flex;
  align-items: center; /* Ensures vertical centering */
  margin-top: -15px; /* Compensate for the added top padding */
}

.branding img {
  width: 50px;
  height: 50px; /* Make it a perfect square */
  object-fit: contain; /* Ensure the image fits without stretching */
  display: block; /* Remove any extra space below the image */
}

.site-title {
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  margin-left: 15px;
  white-space: nowrap;
  position: relative;
  top: 1px; /* Fine-tune vertical alignment */
}

.search-container-top {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  max-width: 320px;
  margin-top: -15px; /* Adjust for the new top padding */
}

.search-container-top input {
  width: 100%;
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  height: 38px;
}

.top-links {
  display: flex;
  gap: 15px;
  margin-left: auto;
  margin-top: -15px; /* Align with the logo for the new top padding */
}

.top-links a {
  color: var(--white);
  text-decoration: none;
  font: normal 12px / 16px 'DM Sans', Helvetica, Arial, sans-serif;
  padding: 5px;
}

/* Nav menu styles */
.top-links a:hover {
  color: var(--primary-blue);
}

/* Quickstart path cards */
.quickstart-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.path-card {
  background: var(--white);
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.path-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(69, 91, 241, 0.15);
}

.path-card h3 {
  color: var(--text-dark);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.path-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.5;
}

.path-button {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white) !important;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.path-button:hover {
  background: var(--accent-blue);
  color: var(--white) !important;
}

/* Sidebar Navigation */
.sidebar {
  height: calc(100vh - 70px);
  width: 250px;
  position: fixed;
  z-index: 1;
  top: 70px; /* Match the header height */
  left: 0;
  background-color: var(--white);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 0 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-blue) #f0f0f0;
}

/* Custom scrollbar for webkit browsers */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--dark-blue);
}

.side-nav a {
  color: var(--text-dark);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  font-size: 13px;
}

.side-nav a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.side-nav ul li {
  margin-bottom: 8px;
}

/* Main Content */
.content {
  margin-left: 250px; /* Same as sidebar width */
  margin-top: 70px; /* Header height */
  padding: 40px;
  width: calc(100% - 250px - 240px); /* 100% minus sidebar and TOC panel */
  background-color: var(--white);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Page headers */
.content h1 {
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 20px;
  color: var(--text-dark);
  font-size: 32px;
  line-height: 1.2;
}

/* Search Container */
.search-container {
  margin-bottom: 20px;
  padding: 0 15px;
}

.search-container input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Search styles */
#search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  margin-top: 5px;
  text-align: left;
}

.search-results ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.search-results li {
  padding: 0;
  border-bottom: 1px solid #eee;
}

.search-results li:last-child {
  border-bottom: none;
}

.search-results li a {
  display: block;
  padding: 10px 15px;
  color: var(--primary-blue);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}

.search-results li a:hover {
  background-color: #f5f5f5;
}

.search-results a strong {
  color: var(--text-dark);
  display: block;
  margin-bottom: 4px;
}

.search-results a span {
  font-size: 0.9em;
  color: #666;
  display: block;
  margin-top: 4px;
  line-height: 1.4;
}

.search-results p {
  padding: 10px 15px;
  margin: 0;
  color: #666;
  text-align: center;
}

/* Content Styling */
.content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: var(--text-dark);
}

.content h3 {
  margin-top: 25px;
  color: var(--text-dark);
}

/* Inline code styling */
code {
  background: var(--neutral-grey);
  color: var(--code-text);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
}

/* Code block styling */
pre {
  background: var(--neutral-grey);
  color: var(--code-text);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  display: block;
  overflow-x: auto;
  line-height: 1.5;
  color: inherit;
  font-size: inherit;
}

/* Rouge syntax highlighting for Jekyll */
/* Comments */
.highlight .c,    /* Comment */
.highlight .cm,   /* Comment.Multiline */
.highlight .cp,   /* Comment.Preproc */  
.highlight .c1,   /* Comment.Single */
.highlight .cs {  /* Comment.Special */
  color: var(--ubuntu-bright-black);
  font-style: italic;
  font-family: 'Ubuntu Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Strings */
.highlight .s,    /* Literal.String */
.highlight .sb,   /* Literal.String.Backtick */
.highlight .sc,   /* Literal.String.Char */
.highlight .s2,   /* Literal.String.Double */
.highlight .se,   /* Literal.String.Escape */
.highlight .sh,   /* Literal.String.Heredoc */
.highlight .si,   /* Literal.String.Interpol */
.highlight .sx,   /* Literal.String.Other */
.highlight .sr,   /* Literal.String.Regex */
.highlight .s1,   /* Literal.String.Single */
.highlight .ss {  /* Literal.String.Symbol */
  color: var(--ubuntu-bright-green);
  font-family: 'Ubuntu Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Numbers */
.highlight .m,    /* Literal.Number */
.highlight .mb,   /* Literal.Number.Bin */
.highlight .mf,   /* Literal.Number.Float */
.highlight .mh,   /* Literal.Number.Hex */
.highlight .mi,   /* Literal.Number.Integer */
.highlight .il,   /* Literal.Number.Integer.Long */
.highlight .mo {  /* Literal.Number.Oct */
  color: var(--ubuntu-bright-cyan);
  font-family: 'Ubuntu Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Keywords */
.highlight .k,    /* Keyword */
.highlight .kc,   /* Keyword.Constant */
.highlight .kd,   /* Keyword.Declaration */
.highlight .kn,   /* Keyword.Namespace */
.highlight .kp,   /* Keyword.Pseudo */
.highlight .kr,   /* Keyword.Reserved */
.highlight .kt {  /* Keyword.Type */
  color: var(--ubuntu-bright-blue);
  font-weight: bold;
  font-family: 'Ubuntu Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Operators */
.highlight .o,    /* Operator */
.highlight .ow {  /* Operator.Word */
  color: var(--ubuntu-bright-yellow);
  font-family: 'Ubuntu Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Functions and Names */
.highlight .n,    /* Name */
.highlight .na,   /* Name.Attribute */
.highlight .nb,   /* Name.Builtin */
.highlight .bp,   /* Name.Builtin.Pseudo */
.highlight .nc,   /* Name.Class */
.highlight .no,   /* Name.Constant */
.highlight .nd,   /* Name.Decorator */
.highlight .ni,   /* Name.Entity */
.highlight .ne,   /* Name.Exception */
.highlight .nf,   /* Name.Function */
.highlight .nl,   /* Name.Label */
.highlight .nn,   /* Name.Namespace */
.highlight .nx,   /* Name.Other */
.highlight .py,   /* Name.Property */
.highlight .nt,   /* Name.Tag */
.highlight .nv,   /* Name.Variable */
.highlight .vc,   /* Name.Variable.Class */
.highlight .vg,   /* Name.Variable.Global */
.highlight .vi {  /* Name.Variable.Instance */
  color: var(--ubuntu-fg);
  font-family: 'Ubuntu Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Special highlighting for function names */
.highlight .nf {  /* Name.Function */
  color: var(--ubuntu-bright-purple);
  font-family: 'Ubuntu Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Variables */
.highlight .nv,   /* Name.Variable */
.highlight .vc,   /* Name.Variable.Class */
.highlight .vg,   /* Name.Variable.Global */
.highlight .vi {  /* Name.Variable.Instance */
  color: var(--ubuntu-bright-cyan);
  font-family: 'Ubuntu Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Generic tokens */
.highlight .gd {  /* Generic.Deleted */
  color: var(--ubuntu-bright-red);
  font-family: 'Ubuntu Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

.highlight .gi {  /* Generic.Inserted */
  color: var(--ubuntu-bright-green);
  font-family: 'Ubuntu Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Ensure all syntax highlighting elements use the same font */
.highlight * {
  font-family: 'Ubuntu Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Special styling for bash/shell commands */
pre code:has(.bash), 
pre[class*="bash"],
pre[class*="shell"] {
  position: relative;
}

pre code:has(.bash)::before,
pre[class*="bash"]::before,
pre[class*="shell"]::before {
  content: "$ ";
  color: var(--ubuntu-bright-green);
  font-weight: bold;
  position: absolute;
  left: 20px;
  top: 20px;
}

/* Adjust padding for bash/shell blocks to account for prompt */
pre[class*="bash"] code,
pre[class*="shell"] code {
  padding-left: 30px;
}

/* Terminal window styling for larger code blocks */
pre.terminal {
  background-color: var(--ubuntu-bg);
  border: 2px solid var(--ubuntu-bright-black);
  border-radius: 8px;
  position: relative;
  padding-top: 35px;
}

pre.terminal::before {
  content: "???";
  position: absolute;
  top: 8px;
  left: 12px;
  color: var(--ubuntu-red);
  font-size: 12px;
  letter-spacing: 3px;
}

pre.terminal::after {
  content: "Terminal";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ubuntu-white);
  font-size: 12px;
  font-weight: normal;
}

/* Media Queries for Mobile */
@media screen and (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 70px; /* Match desktop sidebar */
    margin-bottom: 0;
    padding: 15px 0;
  }
  
  .content {
    margin-left: 0;
    margin-top: 0;
    width: 100%;
    padding: 30px 20px;
  }

  .header-bar {
    padding: 0 20px;
  }

  .search-container-top {
    display: none; /* Hide search on small screens */
  }
  
  /* Adjust main container for mobile */
  .main-container {
    flex-direction: column;
  }

  .page-toc {
    display: none;
  }
}

.main-container {
  display: flex;
  min-height: calc(100vh - 70px);
  margin-top: 70px; /* Header height */
  background-color: var(--white);
  position: relative;
}

/* Remove masthead styles, top-bar, nav menu styles, assistive text */

/* Collapsible navigation menu */
.nav-list {
  padding-left: 20px;
  padding-right: 10px;
}

.nav-item {
  margin-bottom: 10px;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 5px 15px 5px 5px;
}

.nav-header a {
  flex-grow: 1;
  font-weight: bold;
  color: var(--text-dark);
}

.toggle-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  cursor: pointer;
  color: #777;
  font-weight: bold;
  user-select: none;
}

.sub-menu {
  display: none;
  padding-left: 15px;
  margin-top: 5px;
}

.sub-menu li {
  margin-bottom: 5px;
}

.sub-menu a {
  color: #555;
  font-size: 12px;
}

/* Fix for bullet points not displaying properly */
.content ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 20px;
}

.content ul li {
  margin-bottom: 5px;
  display: list-item;
}

.content ul ul {
  list-style-type: circle;
  margin-left: 20px;
}

.content ul ul li {
  margin-bottom: 3px;
}

/* Table styling */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border: 1px solid #e1e4e8;
  table-layout: fixed;
}

.content table, 
.content th, 
.content td {
  border: 1px solid #e1e4e8;
}

.content th {
  background-color: #f6f8fa;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #24292e;
}

.content td {
  padding: 10px 15px;
  vertical-align: top;
}

.content tr:nth-child(even) {
  background-color: #f8f8f8;
}

.content tr:hover {
  background-color: #f1f1f1;
}

/* Ensure table styles are applied to generated HTML */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border: 1px solid #e1e4e8;
}

table, th, td {
  border: 1px solid #e1e4e8;
}

th {
  background-color: #f6f8fa;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #24292e;
}

td {
  padding: 10px 15px;
  vertical-align: top;
}

tr:nth-child(even) {
  background-color: #f8f8f8;
}

tr:hover {
  background-color: #f1f1f1;
}

/* Responsive tables */
@media screen and (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* YouTube embed responsive container */
.youtube-embed {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

@media screen and (max-width: 768px) {
  .youtube-embed {
    max-width: 100%;
  }
}

/* YouTube subscribe button */
.subscribe-button {
  text-align: left;
  margin: 15px 0 25px;
}

.subscribe-button a {
  display: inline-block;
  background-color: #FF0000; /* YouTube red */
  color: white;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.subscribe-button a:hover {
  background-color: #CC0000; /* Darker red on hover */
  text-decoration: none;
}

/* Support CTA styling */
.support-cta {
  background-color: #f5f8ff;
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.support-cta h3 {
  margin-top: 0;
  color: var(--primary-blue);
  font-size: 22px;
}

.support-cta p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #555;
}

.support-button {
  display: inline-block;
  background-color: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-size: 15px;
}

.support-button:hover {
  background-color: var(--accent-blue);
  color: var(--white);
  text-decoration: none;
}

/* Horizontal rule styling for better spacing */
hr {
  margin: 30px 0;
  border: 0;
  height: 1px;
  background-color: #e1e4e8;
  margin-bottom: 25px !important;
}

/* Content spacing after horizontal rules */
hr + h1, hr + h2, hr + h3, hr + h4, hr + h5, hr + h6, hr + p, hr + div, hr + ul, hr + ol, hr + blockquote {
  margin-top: 25px;
}

/* Content spacing before horizontal rules */
h1 + hr, h2 + hr, h3 + hr, h4 + hr, h5 + hr, h6 + hr, p + hr, div + hr, ul + hr, ol + hr, blockquote + hr {
  margin-top: 25px;
}

/* Additional specific spacing for content patterns we've encountered */
hr + h3,
hr + h2,
hr + h4,
hr + blockquote,
hr + .youtube-embed,
hr + div {
  margin-top: 30px;
  padding-top: 5px;
}

/* Fix for specific content arrangements */
hr + blockquote,
hr + p + blockquote {
  margin-top: 25px;
}

/* Ensure space before horizontal rules */
p, ul, ol, div, blockquote, table, h1, h2, h3, h4, h5, h6 {
  margin-bottom: 25px;
}

/* Two-column end section */
.page-end-section {
  display: flex;
  flex-wrap: wrap;
  margin: 40px 0 20px;
  gap: 30px;
}

.end-column {
  flex: 1;
  min-width: 300px;
}

.end-column .support-cta {
  height: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

.end-column #mc_embed_signup {
  max-width: 100% !important;
  width: 100% !important;
}

/* Make sure the Mailchimp form fits in its container */
.end-column #mc_embed_shell {
  width: 100%;
}

/* Responsive adjustment for mobile */
@media screen and (max-width: 768px) {
  .page-end-section {
    flex-direction: column;
  }
  
  .end-column {
    width: 100%;
  }
}

/* Fix Mailchimp form width */
#mc_embed_signup {
  width: 100% !important;
  max-width: 100% !important;
}

/* Fix anchor navigation - ensure headers appear below top nav bar */
html {
  scroll-padding-top: 90px; /* 70px header + 20px buffer */
}

/* Additional padding for anchor targets */
h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] {
  scroll-margin-top: 90px;
  padding-top: 20px;
  margin-top: -20px;
}

/* Mermaid diagram styling */
.mermaid {
  text-align: center;
  margin: 2rem 0;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* Pipeline Container */
.pipeline-container {
  margin: 32px 0;
}

.pipeline-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.pipeline-row:last-child {
  margin-bottom: 0;
}

.pipeline-step {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  flex: 1;
  max-width: 280px;
  display: flex;
  flex-direction: column;
}

.step-number {
  font-size: 2rem;
  font-weight: 800;
  color: #4551bf;
  opacity: 0.3;
  margin-bottom: 8px;
  line-height: 1;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.step-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #4551bf;
  font-weight: bold;
  min-width: 30px;
}

@media (max-width: 900px) {
  .pipeline-row {
    flex-direction: column;
    align-items: center;
  }

  .pipeline-step {
    max-width: 100%;
    width: 100%;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    margin: 8px 0;
  }
}

/* Roadmap Specific Styles */
.roadmap-container {
  margin: 32px 0;
}

.roadmap-step {
  max-width: 320px;
}

.step-phase {
  display: inline-block;
  background: #4551bf;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.step-list li {
  font-size: 0.85rem;
  color: #64748b;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.step-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4551bf;
  font-weight: bold;
}

/* Utility classes for roadmap */
.text-center {
  text-align: center;
}

.mb-12 {
  margin-bottom: 3rem;
}

.text-gray-600 {
  color: #718096;
}

/* ============================================
   Overview Card Grids (from DOCUMENTATION_IA_GUIDE.md)
   ============================================ */

.overview-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.overview-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.2s ease;
}

.overview-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(69, 91, 241, 0.1);
  transform: translateY(-2px);
}

.overview-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.overview-card p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.card-link:hover {
  color: var(--accent-blue);
}

/* ============================================
   Index Page Components (from DOCUMENTATION_IA_GUIDE.md)
   ============================================ */

/* A. Compact Title + Version Indicator */
.page-header {
  text-align: center;
  padding: 20px 40px;
  margin: 20px 0;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
}

.version-label {
  font-weight: 500;
}

.version-value {
  font-weight: 700;
  color: var(--primary-blue);
}

.version-separator {
  color: var(--border-grey);
  margin: 0 4px;
}

/* B. Quick Start CTA */
.quick-start-section {
  text-align: center;
  margin: 30px 0;
}

.quick-start-button {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(69, 91, 241, 0.2);
}

.quick-start-button:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(69, 91, 241, 0.3);
}

.quick-start-subtext {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.quick-start-subtext a {
  color: var(--primary-blue);
  text-decoration: none;
}

.quick-start-subtext a:hover {
  text-decoration: underline;
}

/* D. Popular Quick Links Grid */
.quick-links-section {
  margin: 60px 0;
}

.quick-links-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.quick-link-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
}

.quick-link-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(69, 91, 241, 0.1);
}

.quick-link-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.quick-link-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.quick-link-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* H. Version & Updates Section */
.version-updates-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 60px 0;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
}

.version-info h3,
.whats-new h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.version-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.version-date {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.changelog-link,
.whats-new-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.changelog-link:hover,
.whats-new-link:hover {
  color: var(--accent-blue);
}

.whats-new-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.whats-new-list li {
  padding: 4px 0;
  color: var(--text-dark);
  position: relative;
  padding-left: 20px;
}

.whats-new-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

/* I. Community & Support Section */
.community-section {
  margin: 60px 0;
}

.community-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.community-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.community-link-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 24px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.community-link-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(69, 91, 241, 0.1);
}

.community-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.community-link-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.community-link-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* J. Documentation Sections Overview */
.sections-overview {
  margin: 60px 0;
}

.sections-overview h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.section-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.2s ease;
}

.section-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(69, 91, 241, 0.1);
}

.section-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-card p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.section-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.section-link:hover {
  color: var(--accent-blue);
}

/* Responsive adjustments for new components */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .version-badge {
    flex-direction: column;
    gap: 4px;
  }
  
  .version-updates-section {
    grid-template-columns: 1fr;
  }
  
  .overview-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .role-cards {
    grid-template-columns: 1fr;
  }
}

/* C. SDK Links Section */
.sdk-links-section {
  margin: 40px 0;
}

.sdk-links-section h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.sdk-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.sdk-link-card {
  background: var(--white);
  border: 2px solid var(--border-grey);
  border-radius: 8px;
  padding: 24px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.sdk-link-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(69, 91, 241, 0.1);
}

.sdk-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.sdk-link-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.sdk-install {
  display: block;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 8px 12px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.875rem;
  margin: 12px 0;
}

.sdk-link-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* E. Code Examples Section */
.code-examples-section {
  margin: 60px 0;
}

.code-examples-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.code-examples-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.code-tab {
  padding: 8px 16px;
  border: 2px solid var(--border-grey);
  background: var(--white);
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-dark);
}

.code-tab:hover {
  border-color: var(--primary-blue);
}

.code-tab.active {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.code-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.code-example-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 20px;
}

.code-example-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.code-example-card pre {
  background: var(--code-bg);
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.code-example-card code {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--code-text);
}

.code-example-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.code-example-link:hover {
  color: var(--accent-blue);
}

.code-examples-footer {
  text-align: center;
  margin-top: 24px;
}

.view-all-examples {
  display: inline-block;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
}

.view-all-examples:hover {
  color: var(--accent-blue);
}

/* F. Product/Service Categories */
.product-categories-section {
  margin: 60px 0;
}

.product-categories-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.product-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-category-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 24px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.product-category-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(69, 91, 241, 0.1);
}

.product-category-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.product-category-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* G. Role-Based Entry Points */
.wayfinding-section {
  margin: 60px 0;
}

.wayfinding-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.role-card {
  background: var(--white);
  border: 2px solid var(--border-grey);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.role-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(69, 91, 241, 0.15);
}

.role-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 20px;
}

.role-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-align: center;
}

.role-card p {
  color: var(--text-light);
  margin-bottom: 24px;
  text-align: center;
  font-size: 1rem;
}

.role-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.role-features li {
  padding: 8px 0;
  color: var(--text-dark);
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
}

.role-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

.role-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.role-button {
  flex: 1;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.role-button.primary {
  background: var(--primary-blue);
  color: var(--white);
}

.role-button.primary:hover {
  background: var(--accent-blue);
  color: var(--white);
}

.role-button.secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.role-button.secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Responsive adjustments for code examples and role cards */
@media (max-width: 768px) {
  .sdk-links-grid,
  .code-examples-grid {
    grid-template-columns: 1fr;
  }

  .product-categories-grid {
    grid-template-columns: 1fr;
  }

  .role-cards {
    grid-template-columns: 1fr;
  }

  .role-actions {
    flex-direction: column;
  }

  .version-updates-section {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Screenshot and Image Styling
   ============================================ */

/* Container for screenshots with proper sizing */
.screenshot-container {
  width: 100%;
  max-width: 900px;
  margin: 24px auto;
  overflow: hidden;
  box-sizing: border-box;
}

/* Single screenshot - full width with max constraint */
.screenshot {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-grey);
  display: block;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Grid for side-by-side screenshots */
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin: 32px auto;
}

.screenshot-grid .screenshot {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Screenshot caption */
.screenshot-caption {
  text-align: center;
  color: var(--text-light);
  margin-top: 12px;
  font-size: 0.875rem;
  font-style: italic;
}

/* Small screenshot (for inline or card use) */
.screenshot-small {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border-grey);
}

/* Medium screenshot (for guides) */
.screenshot-medium {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border-grey);
  margin: 20px auto;
  display: block;
}

/* Responsive screenshot grid */
@media (max-width: 768px) {
  .screenshot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .screenshot-container {
    margin: 16px auto;
  }

  .screenshot-medium {
    max-width: 100%;
  }
}

/* ============================================
   Right-hand "On this page" TOC Panel
   ============================================ */

.page-toc {
  position: fixed;
  top: 90px;
  right: 20px;
  width: 200px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  z-index: 10;
}

.page-toc h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin: 0 0 12px 0;
  padding: 0;
}

.page-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-toc li {
  margin: 0;
  padding: 0;
  display: block;
}

.page-toc li[data-level="3"] {
  padding-left: 14px;
}

.page-toc a {
  display: block;
  padding: 4px 0 4px 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-light);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.page-toc a:hover {
  color: var(--primary-blue);
}

.page-toc a.active {
  color: var(--primary-blue);
  border-left-color: var(--primary-blue);
  font-weight: 500;
}

/* Hide TOC and restore content width on narrower screens */
@media (max-width: 1100px) {
  .page-toc {
    display: none;
  }

  .content {
    width: calc(100% - 250px);
  }
}
