/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: #2c2e32;
  background-color: #fff;
  font-size: 17px;
}

tbody {
  font-size: 15px;
}

/* Container and layout */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content {
  max-width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  color: #212223;
  position: relative;
}

h1 {
  font-size: 3em;
  margin-top: 0;
  padding-bottom: 0.3em;
  line-height: 1;
  color: oklch(50% 0.134 242.749)
}

h2 {
  font-size: 2em;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  color: oklch(50% 0.134 242.749);
}

h3 {
  font-size: 1.4em;
}

h4 {
  font-size: 1.em;
}

h5,
h6 {
  font-size: 1.1em;
}

p {
  margin-bottom: 1.2em;
  line-height: 1.7;
}

/* Links */
a {
  color: #005cc5db;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s ease;
}

a:hover {
  border-bottom-color: #005cc5ad;
}

/* Lists */
ul,
ol {
  margin: 1.2em 0;
  padding-left: 2em;
}

li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

ul li {
  list-style-type: disc;
}

ol li {
  list-style-type: decimal;
}

/* Code blocks and inline code */
code {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code", "Fira Mono",
    "Roboto Mono", monospace;
  font-size: 0.9em;
  background-color: #f8f9fa;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: #d63948;
}

pre {
  background-color: #f8f9fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1em;
  margin: 1.5em 0;
  overflow-x: auto;
  line-height: 1.45;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.84rem;
  line-height: 1.8;
}

/* Specific syntax highlighting adjustments */
.hljs {
  background: #f8f9fa;
}

/* Blockquotes */
blockquote {
  margin: 2.5em 0;
  padding: 1.5em;
  border: 1px solid #3498db8c;
  color: #232324;
  border-radius: 8px;
  background-color: #c5f6ff30;
}

blockquote > *:first-child {
  margin-top: 0;
}

blockquote > *:last-child {
  margin-bottom: 0;
}

blockquote code {
    background-color: #e3f3f6;
    color: #000000;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  margin: 1.5em 0;
  background-color: #fff;
}

th,
td {
  padding: 0.75em;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

thead:not(:has(th:not(:empty))) {
  display: none;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}


/* Horizontal rules */
hr {
  border: none;
  height: 2px;
  background-color: #ecf0f1;
  margin: 3.5em 0 3em 0;
}

/* Images */
.image-container {
  width: 100%;
  margin: 1.5em 0 2.5em 0;
  text-align: center;
}

.image-container img {
  width: 100%;
  margin: 0;
  height: auto;
  border: 1px solid #e1e4e8;
}

.image-container figcaption {
  margin-top: 0;
  text-align: left;
  font-size: 0.8em;
  color: #767676;
  font-style: italic;
  line-height: 1.4;
}

/* Fallback for regular img tags */
img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
  border-radius: 4px;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.75em;
  }

  h3 {
    font-size: 1.5em;
  }

  pre {
    padding: 0.75em;
    font-size: 0.8em;
  }
}

/* Print styles */
@media print {
  .container {
    max-width: none;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  pre {
    background: #fff;
    border: 1px solid #ccc;
  }
}