/**
 * Reset some basic elements
 */
body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
  margin: 0;
  padding: 0;
}

/**
 * Basic styling
 */
body {
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #111;
  background-color: #fdfdfd;
  -webkit-text-size-adjust: 100%;
  -webkit-font-feature-settings: "kern" 1;
  -moz-font-feature-settings: "kern" 1;
  -o-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/**
 * Set `margin-bottom` to maintain vertical rhythm
 */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
.highlight {
  margin-bottom: 15px;
}

/**
 * `main` element
 */
main {
  display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
}

/**
 * Images
 */
img {
  max-width: 100%;
  vertical-align: middle;
}

/**
 * Figures
 */
figure > img {
  display: block;
}

figcaption {
  font-size: 14px;
}

/**
 * Lists
 */
ul, ol {
  margin-left: 30px;
}

li > ul,
li > ol {
  margin-bottom: 0;
}

/**
 * Headings
 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

/**
 * Links
 */
a {
  color: #2a7ae2;
  text-decoration: none;
}
a:visited {
  color: rgb(8.9993518068%, 33.8251498947%, 66.0986874088%);
}
a:hover {
  color: #111;
  text-decoration: underline;
}
.social-media-list a:hover {
  text-decoration: none;
}
.social-media-list a:hover .username {
  text-decoration: underline;
}

/**
 * Blockquotes
 */
blockquote {
  color: #828282;
  border-left: 4px solid #e8e8e8;
  padding-left: 15px;
  font-size: 18px;
  letter-spacing: -1px;
  font-style: italic;
}
blockquote > :last-child {
  margin-bottom: 0;
}

/**
 * Code formatting
 */
pre,
code {
  font-size: 15px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background-color: #eef;
}

code {
  padding: 1px 5px;
}

pre {
  padding: 8px 12px;
  overflow-x: auto;
}
pre > code {
  border: 0;
  padding-right: 0;
  padding-left: 0;
}

/**
 * Wrapper
 */
.wrapper {
  max-width: -webkit-calc(800px - (30px * 2));
  max-width: calc(800px - 30px * 2);
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
}
@media screen and (max-width: 800px) {
  .wrapper {
    max-width: -webkit-calc(800px - (30px));
    max-width: calc(800px - (30px));
    padding-right: 15px;
    padding-left: 15px;
  }
}

/**
 * Clearfix
 */
.footer-col-wrapper:after, .wrapper:after {
  content: "";
  display: table;
  clear: both;
}

/**
 * Icons
 */
.svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  fill: #828282;
  padding-right: 5px;
  vertical-align: text-top;
}

.social-media-list li + li {
  padding-top: 5px;
}

/**
 * Tables
 */
table {
  margin-bottom: 30px;
  width: 100%;
  text-align: left;
  color: rgb(24.6666666667%, 24.6666666667%, 24.6666666667%);
  border-collapse: collapse;
  border: 1px solid #e8e8e8;
}
table tr:nth-child(even) {
  background-color: rgb(96.9803921569%, 96.9803921569%, 96.9803921569%);
}
table th, table td {
  padding: 9.999999999px 15px;
}
table th {
  background-color: rgb(93.9803921569%, 93.9803921569%, 93.9803921569%);
  border: 1px solid rgb(86.9803921569%, 86.9803921569%, 86.9803921569%);
  border-bottom-color: rgb(78.9803921569%, 78.9803921569%, 78.9803921569%);
}
table td {
  border: 1px solid #e8e8e8;
}

/**
 * Site header
 */
.site-header {
  border-top: 5px solid rgb(25.9803921569%, 25.9803921569%, 25.9803921569%);
  border-bottom: 1px solid #e8e8e8;
  min-height: 55.95px;
  position: relative;
}

.site-title {
  font-size: 26px;
  font-weight: 300;
  line-height: 54px;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left;
}
.site-title, .site-title:visited {
  color: rgb(25.9803921569%, 25.9803921569%, 25.9803921569%);
}

.site-nav {
  float: right;
  line-height: 54px;
}
.site-nav .nav-trigger {
  display: none;
}
.site-nav .menu-icon {
  display: none;
}
.site-nav .page-link {
  color: #111;
  line-height: 1.5;
}
.site-nav .page-link:not(:last-child) {
  margin-right: 20px;
}
@media screen and (max-width: 600px) {
  .site-nav {
    position: absolute;
    top: 9px;
    right: 15px;
    background-color: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    text-align: right;
  }
  .site-nav label[for=nav-trigger] {
    display: block;
    float: right;
    width: 36px;
    height: 36px;
    z-index: 2;
    cursor: pointer;
  }
  .site-nav .menu-icon {
    display: block;
    float: right;
    width: 36px;
    height: 26px;
    line-height: 0;
    padding-top: 10px;
    text-align: center;
  }
  .site-nav .menu-icon > svg {
    fill: rgb(25.9803921569%, 25.9803921569%, 25.9803921569%);
  }
  .site-nav input ~ .trigger {
    clear: both;
    display: none;
  }
  .site-nav input:checked ~ .trigger {
    display: block;
    padding-bottom: 5px;
  }
  .site-nav .page-link {
    display: block;
    margin-left: 20px;
    padding: 5px 10px;
  }
  .site-nav .page-link:not(:last-child) {
    margin-right: 0;
  }
}

/**
 * Site footer
 */
.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 30px 0;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 15px;
}

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0;
}

.footer-col-wrapper {
  font-size: 15px;
  color: #828282;
  margin-left: -15px;
}

.footer-col {
  float: left;
  margin-bottom: 15px;
  padding-left: 15px;
}

.footer-col-1 {
  width: -webkit-calc(35% - (30px / 2));
  width: calc(35% - 30px / 2);
}

.footer-col-2 {
  width: -webkit-calc(20% - (30px / 2));
  width: calc(20% - 30px / 2);
}

.footer-col-3 {
  width: -webkit-calc(45% - (30px / 2));
  width: calc(45% - 30px / 2);
}

@media screen and (max-width: 800px) {
  .footer-col-1,
  .footer-col-2 {
    width: -webkit-calc(50% - (30px / 2));
    width: calc(50% - 30px / 2);
  }
  .footer-col-3 {
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - 30px / 2);
  }
}
@media screen and (max-width: 600px) {
  .footer-col {
    float: none;
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - 30px / 2);
  }
}
/**
 * Page content
 */
.page-content {
  padding: 30px 0;
  flex: 1;
}

.page-heading {
  font-size: 32px;
}

.post-list-heading {
  font-size: 28px;
}

.post-list {
  margin-left: 0;
  list-style: none;
}
.post-list > li {
  margin-bottom: 30px;
}

.post-meta {
  font-size: 14px;
  color: #828282;
}

.post-link {
  display: block;
  font-size: 24px;
}

/**
 * Posts
 */
.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 42px;
  letter-spacing: -1px;
  line-height: 1;
}
@media screen and (max-width: 800px) {
  .post-title {
    font-size: 36px;
  }
}

.post-content {
  margin-bottom: 30px;
}
.post-content h2 {
  font-size: 32px;
}
@media screen and (max-width: 800px) {
  .post-content h2 {
    font-size: 28px;
  }
}
.post-content h3 {
  font-size: 26px;
}
@media screen and (max-width: 800px) {
  .post-content h3 {
    font-size: 22px;
  }
}
.post-content h4 {
  font-size: 20px;
}
@media screen and (max-width: 800px) {
  .post-content h4 {
    font-size: 18px;
  }
}

/**
 * Syntax highlighting styles
 */
.highlight {
  background: #fff;
}
.highlighter-rouge .highlight {
  background: #eef;
}
.highlight .c {
  color: #998;
  font-style: italic;
}
.highlight .err {
  color: #a61717;
  background-color: #e3d2d2;
}
.highlight .k {
  font-weight: bold;
}
.highlight .o {
  font-weight: bold;
}
.highlight .cm {
  color: #998;
  font-style: italic;
}
.highlight .cp {
  color: #999;
  font-weight: bold;
}
.highlight .c1 {
  color: #998;
  font-style: italic;
}
.highlight .cs {
  color: #999;
  font-weight: bold;
  font-style: italic;
}
.highlight .gd {
  color: #000;
  background-color: #fdd;
}
.highlight .gd .x {
  color: #000;
  background-color: #faa;
}
.highlight .ge {
  font-style: italic;
}
.highlight .gr {
  color: #a00;
}
.highlight .gh {
  color: #999;
}
.highlight .gi {
  color: #000;
  background-color: #dfd;
}
.highlight .gi .x {
  color: #000;
  background-color: #afa;
}
.highlight .go {
  color: #888;
}
.highlight .gp {
  color: #555;
}
.highlight .gs {
  font-weight: bold;
}
.highlight .gu {
  color: #aaa;
}
.highlight .gt {
  color: #a00;
}
.highlight .kc {
  font-weight: bold;
}
.highlight .kd {
  font-weight: bold;
}
.highlight .kp {
  font-weight: bold;
}
.highlight .kr {
  font-weight: bold;
}
.highlight .kt {
  color: #458;
  font-weight: bold;
}
.highlight .m {
  color: #099;
}
.highlight .s {
  color: #d14;
}
.highlight .na {
  color: #008080;
}
.highlight .nb {
  color: #0086B3;
}
.highlight .nc {
  color: #458;
  font-weight: bold;
}
.highlight .no {
  color: #008080;
}
.highlight .ni {
  color: #800080;
}
.highlight .ne {
  color: #900;
  font-weight: bold;
}
.highlight .nf {
  color: #900;
  font-weight: bold;
}
.highlight .nn {
  color: #555;
}
.highlight .nt {
  color: #000080;
}
.highlight .nv {
  color: #008080;
}
.highlight .ow {
  font-weight: bold;
}
.highlight .w {
  color: #bbb;
}
.highlight .mf {
  color: #099;
}
.highlight .mh {
  color: #099;
}
.highlight .mi {
  color: #099;
}
.highlight .mo {
  color: #099;
}
.highlight .sb {
  color: #d14;
}
.highlight .sc {
  color: #d14;
}
.highlight .sd {
  color: #d14;
}
.highlight .s2 {
  color: #d14;
}
.highlight .se {
  color: #d14;
}
.highlight .sh {
  color: #d14;
}
.highlight .si {
  color: #d14;
}
.highlight .sx {
  color: #d14;
}
.highlight .sr {
  color: #009926;
}
.highlight .s1 {
  color: #d14;
}
.highlight .ss {
  color: #990073;
}
.highlight .bp {
  color: #999;
}
.highlight .vc {
  color: #008080;
}
.highlight .vg {
  color: #008080;
}
.highlight .vi {
  color: #008080;
}
.highlight .il {
  color: #099;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined", "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

@layer base {
  :root {
    /* Color Palette - High Contrast WCAG 2.1 Compliant */
    --surface: #faf9f8;
    --surface-dim: #e2e8f0;
    --surface-bright: #ffffff;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f8fafc;
    --surface-container: #f1f5f9;
    --surface-container-high: #e2e8f0;
    --surface-container-highest: #cbd5e1;
    --on-surface: #0f172a;
    --on-surface-variant: #475569;
    --outline: #e2e8f0;
    --outline-variant: #cbd5e1;
    --primary: #0f172a;
    --on-primary: #ffffff;
    --secondary: #2563eb;
    --accent: #2563eb;
    /* Link Design Tokens - Light Mode (WCAG AA 5.8:1) */
    --link-color: #2563eb;
    --link-hover: #0284c7;
    --link-underline: rgba(37, 99, 235, 0.35);
    --link-underline-hover: #0284c7;
    /* Typography */
    --font-main: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Geist Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  }
  .dark {
    /* Link Design Tokens - Dark Mode (WCAG AAA 8.2:1) */
    --link-color: #60a5fa;
    --link-hover: #38bdf8;
    --link-underline: rgba(96, 165, 250, 0.35);
    --link-underline-hover: #38bdf8;
  }
  body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  /* Headings - Clean and Bold */
  h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.5em;
  }
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--outline);
    padding-bottom: 0.35em;
    margin-top: 1.75em;
  }
  h3 {
    font-size: 1.35rem;
    margin-top: 1.5em;
  }
  /* Links - Base Interaction */
  a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), text-decoration-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  }
  a:hover {
    color: var(--link-hover);
  }
  /* Code - Engineering Focus */
  code, pre {
    font-family: var(--font-mono);
    background-color: var(--surface-container-low);
    border-radius: 4px;
    font-size: 0.9em;
  }
  pre {
    padding: 1.25rem;
    overflow-x: auto;
    border: 1px solid var(--outline);
    margin: 1.5rem 0;
  }
  code {
    padding: 0.2em 0.4em;
  }
  /* Utility Components */
  .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  .card {
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline);
    border-radius: 8px;
    padding: 1.5rem;
    transition: background 0.2s ease;
  }
  .card:hover {
    background: var(--surface-container-low);
  }
  .divider {
    height: 1px;
    background-color: var(--outline-variant);
    margin: 2rem 0;
  }
  /* Custom UI touches */
  .callout {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--surface-container-low);
    border-radius: 4px;
    margin: 1rem 0;
  }
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    background-color: var(--surface-container-high);
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--on-surface-variant);
  }
}
.wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  border-top: 2px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  background-color: var(--surface);
}

.site-title, .site-title:visited {
  color: var(--on-surface) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  background-color: var(--surface-container-low);
  border: 1px solid var(--outline);
  border-radius: 8px;
}

.site-nav .page-link {
  color: var(--on-surface-variant);
}

.site-nav .page-link:hover {
  color: var(--on-surface);
  text-decoration: none;
}

.post-title {
  color: var(--on-surface);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.post-meta {
  color: var(--on-surface-variant);
}

.post-link, .post-link:visited, .post-title a, .post-title a:visited {
  color: var(--on-surface) !important;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-link:hover, .post-title a:hover {
  color: var(--link-color) !important;
  text-decoration: none;
}

.dark .post-link:hover, .dark .post-title a:hover {
  color: var(--link-color) !important;
}

/* Article Content Links & References - Enforced High Contrast (WCAG AA 5.8:1 Light, 8.2:1 Dark) */
article.post .post-content a, article.post .post-content a:visited,
article.post .entry-content a,
article.post .entry-content a:visited,
.post-content a,
.post-content a:visited,
article.post a,
article.post a:visited {
  color: var(--link-color);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3.5px;
  text-decoration-color: var(--link-underline);
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), text-decoration-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
article.post .post-content a:hover,
article.post .entry-content a:hover,
.post-content a:hover,
article.post a:hover {
  color: var(--link-hover) !important;
  text-decoration-color: var(--link-underline-hover) !important;
}
article.post .post-content a:focus-visible,
article.post .entry-content a:focus-visible,
.post-content a:focus-visible,
article.post a:focus-visible {
  box-shadow: 0 0 0 2px var(--link-hover);
  border-radius: 2px;
  outline: none;
}

.dark article.post .post-content a, .dark article.post .post-content a:visited,
.dark article.post .entry-content a,
.dark article.post .entry-content a:visited,
.dark .post-content a,
.dark .post-content a:visited,
.dark article.post a,
.dark article.post a:visited {
  color: var(--link-color);
  text-decoration-color: var(--link-underline);
}
.dark article.post .post-content a:hover,
.dark article.post .entry-content a:hover,
.dark .post-content a:hover,
.dark article.post a:hover {
  color: var(--link-hover) !important;
  text-decoration-color: var(--link-underline-hover) !important;
}
.dark article.post .post-content a:focus-visible,
.dark article.post .entry-content a:focus-visible,
.dark .post-content a:focus-visible,
.dark article.post a:focus-visible {
  box-shadow: 0 0 0 2px var(--link-hover);
  outline: none;
}

.post-content h2 {
  color: var(--on-surface);
  font-weight: 700;
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 8px;
  margin-top: 48px;
}

.post-content h3 {
  color: var(--on-surface);
  font-weight: 600;
}

figure {
  margin: 40px 0;
  text-align: center;
}

.post-content img {
  border: 1px solid var(--outline);
  border-radius: 6px;
  box-shadow: none;
  margin: 28px auto;
  display: block;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  height: auto;
}

.post-content p, .post-content li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--on-surface);
}

.post-content ul {
  list-style-type: disc;
  margin: 1.25rem 0;
  padding-left: 1.75rem;
}
.post-content ul ul {
  list-style-type: circle;
  margin: 0.5rem 0;
}

.post-content ol {
  list-style-type: decimal;
  margin: 1.25rem 0;
  padding-left: 1.75rem;
}
.post-content ol ol {
  list-style-type: lower-alpha;
  margin: 0.5rem 0;
}

.post-content li {
  margin-bottom: 0.35rem;
}

/* Blockquotes - Clean style */
blockquote {
  background: var(--surface-container-low);
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1.25rem;
  margin: 2.5rem 0;
  color: var(--on-surface);
  border-radius: 0 4px 4px 0;
}
blockquote p {
  margin: 0;
}

hr {
  border: 0;
  height: 1px;
  background-color: var(--outline-variant);
  margin: 3.5rem 0;
}

@media (max-width: 600px) {
  blockquote {
    padding: 0.5rem 0.75rem;
    font-size: 14px;
  }
}
/* Modern Card Layouts for Post Lists */
.post-list > li {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.post-list > li:hover {
  transform: translateY(-2px);
  border-color: var(--outline-variant);
  background: var(--surface-container-low);
}

/* Centered layout for posts */
.post-centered-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

html {
  scroll-padding-top: 64px;
}

/* 3-Column Chirpy-like Layout CSS */
.wrapper:has(.chirpy-layout-container) {
  max-width: 100% !important;
  padding: 0;
}

.chirpy-layout-container {
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  gap: 32px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  align-items: start;
}

/* Left Sidebar (Chirpy sidebar) */
.chirpy-sidebar {
  position: sticky;
  top: 40px;
  padding: 24px 0;
  border-right: 1px solid var(--outline);
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-container-lowest) !important;
}

.sidebar-brand {
  margin-bottom: 36px;
}

.brand-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--on-surface-variant);
  font-weight: 500;
}

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

.sidebar-nav li {
  margin-bottom: 8px;
}

.sidebar-nav a {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background-color: var(--surface-container-low);
  color: var(--on-surface);
}

.sidebar-profile-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-image: url("https://avatars.githubusercontent.com/u/15291772?v=4");
  background-size: cover;
  border: 2px solid var(--outline);
}

.mini-name {
  font-size: 13px;
  color: var(--on-surface-variant);
  font-weight: 600;
}

/* Main Content Area */
.chirpy-main {
  min-width: 0;
  padding: 24px 0;
  background: var(--surface) !important;
}

/* Right Sidebar (TOC sidebar) */
/* Table of Contents (High Contrast & Dark Mode Compatible) */
#toc-wrapper .toc-title {
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
#toc-wrapper .toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
#toc-wrapper .toc-item {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
#toc-wrapper .toc-item a, #toc-wrapper .toc-item a:visited {
  color: #475569;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.15s ease, font-weight 0.15s ease;
}
#toc-wrapper .toc-item a:hover, #toc-wrapper .toc-item a.active {
  color: var(--link-color) !important;
}
#toc-wrapper .toc-item a:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
  border-radius: 4px;
}
#toc-wrapper .toc-h3 {
  padding-left: 1rem;
  font-size: 0.8rem;
}

/* Dark Mode TOC */
.dark #toc-wrapper .toc-title {
  color: #94a3b8;
}
.dark #toc-wrapper .toc-item a, .dark #toc-wrapper .toc-item a:visited {
  color: #cbd5e1;
}
.dark #toc-wrapper .toc-item a:hover, .dark #toc-wrapper .toc-item a.active {
  color: var(--link-color) !important;
}

/* Reader Content Overflow Protection */
.post-content pre, .post-content table, .post-content .mermaid {
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 1100px) {
  .chirpy-layout-container {
    grid-template-columns: 250px 1fr;
  }
  .chirpy-toc-sidebar {
    display: none;
  }
}
@media (max-width: 768px) {
  .chirpy-layout-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }
  .chirpy-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 24px;
    margin-bottom: 20px;
  }
  .sidebar-profile-mini {
    display: none;
  }
}
.site-footer {
  border-top: 1px solid var(--outline);
  background-color: var(--surface-container-low);
  padding: 32px 0;
}

.footer-heading {
  color: var(--on-surface);
}

.contact-list a, .contact-list a:visited, .footer-social a, .footer-social a:visited, .site-footer a, .site-footer a:visited {
  color: var(--on-surface-variant);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.contact-list a:hover, .footer-social a:hover, .site-footer a:hover {
  color: var(--link-color) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--link-color);
}

/* User Custom Aesthetic Recommendations */
.author-card {
  margin-top: 48px;
  padding: 28px;
  background-color: var(--surface-container-low);
  border: 1px solid var(--outline);
  border-radius: 8px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

.nav-links a, .post-nav a, .pagination a {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--surface-container-low);
  color: var(--on-surface) !important;
  text-decoration: none;
  border: 1px solid var(--outline);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover, .post-nav a:hover, .pagination a:hover {
  background-color: var(--surface-container-high);
  color: var(--link-color) !important;
  border-color: var(--link-color);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
  text-decoration: none;
}

.dark .nav-links a:hover,
.dark .post-nav a:hover,
.dark .pagination a:hover {
  border-color: var(--link-color);
  box-shadow: 0 4px 10px rgba(96, 165, 250, 0.18);
}

/* Visual Frame Divider Before Comments */
.comments-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--outline-variant);
}

/* Custom Share Button Hover Styling */
.share-trigger-btn:hover {
  background: var(--primary) !important;
  color: var(--on-primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-popover a:hover, .share-popover button:hover {
  transform: translateY(-2px);
  background: var(--surface-container-high) !important;
  filter: brightness(0.95);
}

/* Custom Table Styling for High Contrast Light Theme */
table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  font-family: inherit;
  color: var(--on-surface) !important;
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline);
  border-radius: 4px;
  overflow: hidden;
}

table th, table td {
  padding: 12px 16px;
  border: 1px solid var(--outline);
  text-align: left;
}

table th {
  background-color: var(--surface-container-low);
  color: var(--on-surface) !important;
  font-weight: 700;
}

table tr:nth-child(odd) {
  background-color: var(--surface-container-lowest);
}

table tr:nth-child(even) {
  background-color: var(--surface-container-low);
}

table td {
  color: var(--on-surface) !important;
}

/* Custom Code & Syntax Highlighting Overrides */
code {
  background-color: var(--surface-container-low) !important;
  color: var(--primary) !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  font-size: 88% !important;
}

pre, .highlight, .highlighter-rouge, .highlighter-rouge .highlight {
  background-color: var(--surface-container-low) !important;
  color: var(--on-surface) !important;
  border-radius: 4px !important;
  border: 1px solid var(--outline) !important;
}

.highlight pre {
  background-color: transparent !important;
  margin: 0 !important;
  padding: 20px !important;
}

/* Code syntax highlighting - Light theme */
.highlight .c {
  color: #6a737d;
  font-style: italic !important;
}
.highlight .k {
  color: #d73a49;
  font-weight: bold !important;
}
.highlight .o {
  color: #d73a49 !important;
}
.highlight .cm {
  color: #6a737d;
  font-style: italic !important;
}
.highlight .cp {
  color: #6a737d;
  font-weight: bold !important;
}
.highlight .c1 {
  color: #6a737d;
  font-style: italic !important;
}
.highlight .cs {
  color: #6a737d;
  font-weight: bold !important;
  font-style: italic !important;
}
.highlight .gd {
  color: #d73a49 !important;
}
.highlight .ge {
  font-style: italic !important;
}
.highlight .gr {
  color: #d73a49 !important;
}
.highlight .gh {
  color: #005cc5;
  font-weight: bold !important;
}
.highlight .gi {
  color: #28a745 !important;
}
.highlight .go {
  color: #6a737d !important;
}
.highlight .gp {
  color: #6a737d !important;
}
.highlight .gs {
  font-weight: bold !important;
}
.highlight .gu {
  color: #005cc5;
  font-weight: bold !important;
}
.highlight .gt {
  color: #d73a49 !important;
}
.highlight .kc {
  color: #d73a49;
  font-weight: bold !important;
}
.highlight .kd {
  color: #d73a49;
  font-weight: bold !important;
}
.highlight .kn {
  color: #d73a49;
  font-weight: bold !important;
}
.highlight .kp {
  color: #d73a49 !important;
}
.highlight .kr {
  color: #d73a49;
  font-weight: bold !important;
}
.highlight .kt {
  color: #d73a49;
  font-weight: bold !important;
}
.highlight .m {
  color: #005cc5;
}
.highlight .s {
  color: #032f62;
}
.highlight .n {
  color: #24292e;
}
.highlight .na {
  color: #005cc5;
}
.highlight .nb {
  color: #d73a49 !important;
}
.highlight .nc {
  color: #6f42c1;
  font-weight: bold !important;
}
.highlight .no {
  color: #005cc5;
}
.highlight .ni {
  color: #24292e;
}
.highlight .ne {
  color: #d73a49;
  font-weight: bold !important;
}
.highlight .nf {
  color: #6f42c1;
  font-weight: bold !important;
}
.highlight .nn {
  color: #24292e;
}
.highlight .nt {
  color: #22863a;
}
.highlight .nv {
  color: #24292e;
}
.highlight .ow {
  color: #d73a49;
  font-weight: bold !important;
}
.highlight .w {
  color: #24292e;
}
.highlight .mb {
  color: #005cc5;
}
.highlight .mf {
  color: #005cc5;
}
.highlight .mh {
  color: #005cc5;
}
.highlight .mi {
  color: #005cc5;
}
.highlight .mo {
  color: #005cc5;
}
.highlight .sb {
  color: #032f62;
}
.highlight .sc {
  color: #032f62;
}
.highlight .sd {
  color: #032f62;
}
.highlight .s2 {
  color: #032f62;
}
.highlight .se {
  color: #032f62;
}
.highlight .sh {
  color: #032f62;
}
.highlight .si {
  color: #032f62;
}
.highlight .sx {
  color: #032f62;
}
.highlight .sr {
  color: #032f62;
}
.highlight .s1 {
  color: #032f62;
}
.highlight .ss {
  color: #032f62;
}
.highlight .bp {
  color: #d73a49 !important;
}
.highlight .vc {
  color: #24292e;
}
.highlight .vg {
  color: #24292e;
}
.highlight .vi {
  color: #24292e;
}
.highlight .il {
  color: #005cc5;
}

/* Mermaid Diagram Styling */
.mermaid {
  display: flex;
  justify-content: center;
  margin: 32px 0;
  padding: 24px 16px;
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline);
  border-radius: 8px;
  overflow-x: auto;
}
.mermaid svg {
  max-width: 100%;
  height: auto;
  font-family: var(--font-main) !important;
}

/* ==========================================================================
   Modern Reading Experience & Accessibility Suite Styles
   ========================================================================== */
/* Universal Top Reading Progress Indicator */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, #2563eb, #0284c7, #6366f1);
  transform-origin: 0% 50%;
  transform: scaleX(var(--reading-progress, 0));
  z-index: 99999;
  transition: transform 0.05s linear;
  pointer-events: none;
}

/* Reading Themes */
[data-reading-theme=sepia] {
  --surface: #fbf0d9;
  --surface-container: #f4e4c1;
  --surface-container-low: #faecd0;
  --surface-container-lowest: #fbf0d9;
  --on-surface: #433422;
  --on-surface-variant: #6b5840;
  --outline: #ead8b1;
  --outline-variant: #dfc89d;
  --link-color: #b45309;
  --link-hover: #d97706;
  --link-underline: rgba(180, 83, 9, 0.35);
  --link-underline-hover: #d97706;
}

[data-reading-theme=solarized] {
  --surface: #002b36;
  --surface-container: #073642;
  --surface-container-low: #00212b;
  --surface-container-lowest: #002b36;
  --on-surface: #93a1a1;
  --on-surface-variant: #657b83;
  --outline: #073642;
  --outline-variant: #586e75;
  --link-color: #268bd2;
  --link-hover: #2aa198;
  --link-underline: rgba(38, 139, 210, 0.35);
  --link-underline-hover: #2aa198;
}

[data-reading-theme=oled] {
  --surface: #000000;
  --surface-container: #121214;
  --surface-container-low: #09090b;
  --surface-container-lowest: #000000;
  --on-surface: #fafafa;
  --on-surface-variant: #a1a1aa;
  --outline: #27272a;
  --outline-variant: #3f3f46;
  --link-color: #38bdf8;
  --link-hover: #7dd3fc;
  --link-underline: rgba(56, 189, 248, 0.4);
  --link-underline-hover: #7dd3fc;
}

/* Comprehensive Theme Overrides for Post & Reader */
[data-reading-theme] body {
  background-color: var(--surface) !important;
  color: var(--on-surface) !important;
}
[data-reading-theme] #main-wrapper {
  background-color: var(--surface-container-lowest) !important;
  border-color: var(--outline) !important;
  color: var(--on-surface) !important;
}
[data-reading-theme] #sidebar,
[data-reading-theme] #toc-wrapper {
  border-color: var(--outline) !important;
}
[data-reading-theme] .site-header {
  background-color: var(--surface) !important;
  border-color: var(--outline) !important;
}
[data-reading-theme] .post-header {
  border-color: var(--outline) !important;
}
[data-reading-theme] h1, [data-reading-theme] h2, [data-reading-theme] h3, [data-reading-theme] h4, [data-reading-theme] h5, [data-reading-theme] h6,
[data-reading-theme] .post-header h1,
[data-reading-theme] .post-title,
[data-reading-theme] .post-content,
[data-reading-theme] .post-content p,
[data-reading-theme] .post-content li,
[data-reading-theme] .post-content h2,
[data-reading-theme] .post-content h3,
[data-reading-theme] .post-content h4,
[data-reading-theme] .post-content blockquote {
  color: var(--on-surface) !important;
}
[data-reading-theme] .post-meta,
[data-reading-theme] .post-meta time,
[data-reading-theme] .post-meta span,
[data-reading-theme] .post-share-box span {
  color: var(--on-surface-variant) !important;
}
[data-reading-theme] blockquote {
  background-color: var(--surface-container-low) !important;
  border-color: var(--link-color) !important;
  color: var(--on-surface) !important;
}
[data-reading-theme] .post-content code {
  background-color: var(--surface-container-low) !important;
  color: var(--link-color) !important;
}
[data-reading-theme] .post-content pre,
[data-reading-theme] .post-content .highlight,
[data-reading-theme] .post-content .highlighter-rouge {
  background-color: var(--surface-container-low) !important;
  border-color: var(--outline) !important;
  color: var(--on-surface) !important;
}
[data-reading-theme] .architecture-card {
  background-color: var(--surface-container-low) !important;
  border-color: var(--outline) !important;
}
[data-reading-theme] .architecture-card > div:first-child {
  background-color: var(--surface-container) !important;
  border-color: var(--outline) !important;
}
[data-reading-theme] .diagram-viewport {
  background-color: var(--surface-container-low) !important;
}
[data-reading-theme] .nav-links a,
[data-reading-theme] .post-nav a,
[data-reading-theme] .pagination a {
  background-color: var(--surface-container-low) !important;
  border-color: var(--outline) !important;
  color: var(--on-surface) !important;
}
[data-reading-theme] .author-card {
  background-color: var(--surface-container-low) !important;
  border-color: var(--outline) !important;
}
[data-reading-theme] .author-profile-box p.profile-name {
  color: var(--on-surface) !important;
}
[data-reading-theme] .author-profile-box p.profile-bio {
  color: var(--on-surface-variant) !important;
}
[data-reading-theme] .share-trigger-btn {
  background-color: var(--surface-container-low) !important;
  border-color: var(--outline) !important;
  color: var(--on-surface) !important;
}

/* Zen Focus Mode */
body.zen-mode #sidebar, body.zen-mode #toc-wrapper, body.zen-mode .site-footer, body.zen-mode .comments-section, body.zen-mode .post-share-box, body.zen-mode .site-header {
  display: none !important;
}
body.zen-mode #main-wrapper {
  max-width: 760px !important;
  margin: 0 auto !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* TTS Active Paragraph Narration Highlight */
.tts-active-paragraph {
  background-color: rgba(37, 99, 235, 0.08) !important;
  border-left: 3px solid #2563eb !important;
  padding-left: 12px !important;
  border-radius: 0 6px 6px 0 !important;
  transition: all 0.2s ease !important;
}

.dark .tts-active-paragraph,
[data-reading-theme=solarized] .tts-active-paragraph,
[data-reading-theme=oled] .tts-active-paragraph {
  background-color: rgba(56, 189, 248, 0.12) !important;
  border-left-color: #38bdf8 !important;
}

/* Dynamic Typography Adjuster */
.post-content {
  font-size: var(--reader-font-size, 1.1rem);
  line-height: var(--reader-line-height, 1.8);
  font-family: var(--reader-font-family, inherit);
}

.bionic-bold {
  font-weight: 700;
  color: inherit;
}

/*# sourceMappingURL=main.css.map */