/* Legacy posts styles - migrated from hubtee.css */
/* Based on 44BITS blog original styles */

/* Main Legacy Post Container */
.legacy-post {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #343a40;
  max-width: 850px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  word-break: keep-all;
  min-width: 100px;
}

@media screen and (max-width: 950px) {
  .legacy-post {
    word-break: normal;
    text-align: justify;
  }
}

/* Article container */
.legacy-post article { 
  margin: 0 0 40px 0;
  width: 100%;
}

/* Article Header - align with title */
.legacy-post header {
  max-width: 740px;
  margin: 0 auto 3rem;
}

@media screen and (max-width: 650px) {
  .legacy-post header {
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: 100%;
  }
}

.legacy-post header .byline {
  color: #868e96;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.legacy-post header .byline .date {
  color: #495057;
  font-weight: 500;
}

/* Header byline date responsive layout */
/* Desktop - keep as single line */
.legacy-post header .byline .mobile-break {
  display: none;
}

/* Mobile/Tablet - show line breaks */
@media screen and (max-width: 950px) {
  .legacy-post header .byline .mobile-break {
    display: block;
  }
  
  .legacy-post header .byline {
    line-height: 1.6;
  }
}

.legacy-post header h1.title {
  margin: 0.5rem 0 1rem;
  padding: 0;
}

/* Author info in header */
.legacy-post .byline-simple {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.legacy-post .byline-simple .author .name {
  font-weight: 600;
  color: #212529;
  font-size: 1rem;
  margin-right: 1rem;
}

.legacy-post .byline-simple .author .link {
  margin: 0 0.5rem;
  font-size: 0.85rem;
}

.legacy-post .byline-simple .author .link a {
  color: #868e96;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.legacy-post .byline-simple .author .link a:hover {
  color: #495057;
  border-bottom-color: #495057;
}

/* Article Header author info responsive layout */
@media screen and (max-width: 950px) {
  .legacy-post .byline-simple .author .name {
    display: block;
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
  
  .legacy-post .byline-simple .author .link {
    display: inline-block;
    margin: 0.3rem 0.4rem;
    line-height: 1.8;
  }
}

@media screen and (max-width: 650px) {
  .legacy-post .byline-simple .author .link {
    display: block;
    margin: 0.5rem 0;
  }
}

/* Typography - Headers */
.legacy-post h1 {
  margin-top: 0.8rem;
  margin-bottom: 0.8rem;
  font-weight: normal;
  font-size: 1.8rem;
  color: #343a40;
  line-height: 1.45em;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 650px) {
  .legacy-post h1 {
    font-size: 1.44rem;
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: calc(100% - 2rem);
  }
}

.legacy-post h1 .subtitle {
  margin-top: 0.4rem;
  font-size: 1.4rem;
  line-height: 1.45em;
  color: #495057;
}

.legacy-post h2 {
  font-weight: normal;
  font-size: 1.6rem;
  margin-top: 4rem;
  margin-bottom: 1.4rem;
  color: #495057;
  line-height: 1.45em;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 650px) {
  .legacy-post h2 {
    font-size: 1.28rem;
    font-weight: bold;
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: calc(100% - 2rem);
  }
}

.legacy-post h3 {
  font-size: 1.4rem;
  margin-top: 4rem;
  margin-bottom: 1.4rem;
  color: #495057;
  line-height: 1.45em;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 650px) {
  .legacy-post h3 {
    font-size: 1.26rem;
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: calc(100% - 2rem);
  }
}

.legacy-post h4 {
  font-size: 1.25rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  color: #495057;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 650px) {
  .legacy-post h4 {
    font-size: 1.175rem;
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: calc(100% - 2rem);
  }
}

.legacy-post h5 {
  font-size: 1.1rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #495057;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.legacy-post h6 {
  font-size: 1rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: #495057;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

/* Paragraphs */
.legacy-post p {
  line-height: 2rem;
  margin: 1.6rem auto;
  padding-left: 0.34rem;
  text-indent: 0;
  overflow-x: hidden;
  max-width: 740px;
  padding-right: 0;
}

@media screen and (max-width: 650px) {
  .legacy-post p {
    margin-left: 1rem;
    margin-right: 1rem;
    max-width: calc(100% - 2rem);
    padding-left: 0;
  }
}


/* Links */
.legacy-post a {
  color: #0e7c5a;
  text-decoration: none;
  padding-bottom: 0;
  border-bottom: none;
}

.legacy-post a:visited {
  color: #ae3ec9;
  border-bottom: none;
}

.legacy-post a:hover {
  text-decoration: underline;
  border-bottom: none;
}

/* Strong emphasis */
.legacy-post strong {
  font-weight: bold;
  color: #099268;
}

/* Images and Figures */
.legacy-post img,
.legacy-post figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  border-radius: 0.08rem;
}

.legacy-post figure {
  margin: 3rem 0;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 650px) {
  .legacy-post figure {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.legacy-post figcaption {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.6rem;
  padding: 0 0.5rem;
  color: #495057;
  font-size: 0.88rem;
  text-align: center;
}

/* Code blocks - modern design */
.legacy-post pre {
  margin: 2.5rem auto;
  max-width: 740px;
  background: #f6f8fa;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
  border: 1px solid #d1d5db;
}

@media screen and (max-width: 650px) {
  .legacy-post pre {
    margin: 2rem 1rem;
    border-radius: 6px;
    max-width: calc(100% - 2rem);
  }
}

/* Code block header (decorative) */
.legacy-post pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5rem;
  background: #e5e7eb;
  border-bottom: 1px solid #d1d5db;
}

/* Code block dots (decorative) */
.legacy-post pre::after {
  content: '';
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 1.25rem 0 0 #eab308, 2.5rem 0 0 #22c55e;
}

.legacy-post pre code {
  overflow-x: auto;
  background: transparent;
  padding: 4rem 1.5rem 2rem;
  display: block;
  line-height: 1.6;
  font-size: 0.875rem;
  font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Courier New', monospace;
  color: #24292e;
  border: none;
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #f6f8fa;
}

.legacy-post pre code::-webkit-scrollbar {
  height: 8px;
}

.legacy-post pre code::-webkit-scrollbar-track {
  background: #f6f8fa;
}

.legacy-post pre code::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 4px;
}

.legacy-post pre code::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Fallback syntax highlighting for existing span classes - light theme */
.legacy-post pre code .keyword,
.legacy-post pre code span.kw { color: #d73a49; font-weight: 500; }
.legacy-post pre code .string,
.legacy-post pre code span.st { color: #032f62; }
.legacy-post pre code .comment,
.legacy-post pre code span.co { color: #6a737d; font-style: italic; }
.legacy-post pre code .function,
.legacy-post pre code span.fu { color: #6f42c1; }
.legacy-post pre code .number,
.legacy-post pre code span.dv,
.legacy-post pre code span.fl { color: #005cc5; }
.legacy-post pre code .operator,
.legacy-post pre code span.op { color: #d73a49; }
.legacy-post pre code .class-name,
.legacy-post pre code span.dt { color: #e36209; font-weight: 500; }
.legacy-post pre code .variable,
.legacy-post pre code span.va { color: #e36209; }

@media screen and (max-width: 950px) {
  .legacy-post pre code {
    font-size: 0.9rem;
    margin-left: 0;
    padding: 4rem 1.5rem 2rem;
  }
}

@media screen and (max-width: 650px) {
  .legacy-post pre code {
    font-size: 0.8rem;
    margin-left: 0;
    padding: 4rem 1rem 2rem;
  }
}

/* Inline code */
.legacy-post code {
  color: #0550ae;
  font-family: 'SF Mono', 'Monaco', 'Courier New', 'Courier', monospace;
  font-size: 0.85em;
  background: transparent;
  padding: 0 0.1em;
  border-radius: 3px;
  white-space: nowrap;
}


/* Blockquotes */
.legacy-post blockquote {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.4rem 0.2rem 0.4rem 2rem;
  line-height: 1.9rem;
  border-left: 5px solid #e9ecef;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  color: #555;
  font-style: italic;
}

.legacy-post blockquote p {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  padding-right: 0;
}

.legacy-post blockquote cite {
  display: block;
  text-align: right;
  color: #495057;
  font-size: 0.86rem;
  margin-top: 1rem;
}

/* Lists - improved visibility */
.legacy-post ul,
.legacy-post ol {
  margin: 2rem auto;
  font-size: 0.95rem;
  line-height: 1.8rem;
  padding-left: 2rem;
  max-width: 740px;
}

@media screen and (max-width: 650px) {
  .legacy-post ul,
  .legacy-post ol {
    margin-left: 1rem;
    margin-right: 1rem;
    padding-left: 1.5rem;
    max-width: calc(100% - 2rem);
  }
}

.legacy-post ul {
  list-style-type: disc;
}

.legacy-post ol {
  list-style-type: decimal;
}

.legacy-post li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.legacy-post li > ul,
.legacy-post li > ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

@media screen and (max-width: 950px) {
  .legacy-post li {
    margin-bottom: 0.75rem;
  }
}

/* Tables */
.legacy-post table {
  font-size: 1rem;
  margin: 3rem 0 4rem;
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  overflow: auto;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.legacy-post table caption {
  color: #495057;
  font-size: 0.86rem;
  margin: 0 0 1.5rem;
}

.legacy-post table th {
  color: #343a40;
  padding: 0.5rem 0.4rem;
  border-bottom: 2px solid #adb5bd;
  background-color: #e9ecef;
  font-weight: 600;
  text-align: left;
}

.legacy-post table td {
  color: #343a40;
  margin: 0;
  padding: 0.5rem 0.4rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #dee2e6;
}

.legacy-post table tr {
  background-color: #fff;
}

.legacy-post table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

/* Horizontal rule */
.legacy-post hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #e1e4e8;
  border: 0;
}

/* Definition lists */
.legacy-post dl {
  margin: 2rem;
  line-height: 2rem;
  padding: 0.4rem 6.5rem 0.4rem 1.5rem;
  overflow-x: hidden;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.legacy-post dt {
  margin: 1rem 0 0.4rem;
  font-weight: bold;
  font-size: 0.95rem;
}

.legacy-post dd {
  margin: 0;
  padding-left: 1.3rem;
  font-size: 0.90rem;
}

@media screen and (max-width: 950px) {
  .legacy-post dd {
    padding-left: 0;
  }
}


/* Superscript and subscript */
.legacy-post sup {
  color: #495057;
  font-size: 0.76rem;
  margin: 0;
  padding: 0 0.12rem;
  vertical-align: super;
}

.legacy-post sub {
  vertical-align: sub;
}

/* Annotations */
.legacy-post .annotation {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.6rem;
  padding: 0 0.5rem;
  color: #495057;
  font-size: 0.88rem;
}

.legacy-post .annotation strong {
  font-weight: bold;
  color: #495057;
}

/* Footnotes */
.legacy-post .footnoteref a {
  border-bottom: 0;
}

.legacy-post .footnoteref a sup {
  color: #20c997;
}

.legacy-post .footnotes {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
  font-size: 0.9rem;
  color: #495057;
}

/* Keywords */
.legacy-post .keywords {
  max-width: 740px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.legacy-post .keyword {
  font-size: 0.85rem;
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  border: 1.3px solid #343a40;
  border-radius: 0.5rem;
  padding: 0.18rem 0.65rem;
  margin-right: 0.7rem;
  display: inline-block;
  line-height: 1rem;
}

.legacy-post .keyword a {
  border: 0;
}

/* Information block */
.legacy-post .information {
  margin: 2.5rem 0 3.5rem;
  line-height: 0.8rem;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.legacy-post .information div {
  margin: 1.2rem 0.5rem;
}

.legacy-post .information .author {
  color: #495057;
  letter-spacing: 0.12rem;
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
}

.legacy-post .information .additional {
  margin: 0.5rem 1rem;
  color: #495057;
}

/* TOC (Table of Contents) */
.legacy-post #TOC {
  max-width: 740px;
  margin: 3.6rem auto 4rem;
}

@media screen and (max-width: 740px) {
  .legacy-post #TOC {
    margin: 2.5rem 1rem 3rem;
    max-width: calc(100% - 2rem);
  }
}

.legacy-post #TOC a {
  color: #343a40;
  text-decoration: none;
  padding-bottom: 0;
  border-bottom: none;
}

.legacy-post #TOC a:hover {
  text-decoration: underline;
}

.legacy-post #TOC ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.7em;
  margin-left: 0.3rem;
}

.legacy-post #TOC ul li {
  margin: 0;
  padding: 0;
  margin-bottom: 0.2em;
}

.legacy-post #TOC ul li a {
  color: #343a40;
  border-bottom: none;
}

.legacy-post #TOC ul li ul {
  margin: 0;
  padding: 0;
  padding-left: 1.5rem;
}

.legacy-post #TOC ul li ul li {
  margin: 0;
  padding: 0;
  margin-left: 0;
  font-weight: normal;
}

.legacy-post #TOC ul li ul li a {
  color: #495057;
  border-bottom: none;
}

.legacy-post #TOC ul li ul li ul {
  margin: 0;
  padding: 0;
}

.legacy-post #TOC ul li ul li ul li {
  margin-left: 1.5rem;
  font-weight: normal;
}

/* Footer-style Author Profile */
.legacy-post footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 651px) and (max-width: 950px) {
  .legacy-post footer {
    margin: 4rem 1rem 0;
    padding: 2rem 1rem 0;
  }
}

@media screen and (max-width: 650px) {
  .legacy-post footer {
    margin: 4rem 0 0;
    padding: 2rem 0 0;
    max-width: 100%;
  }
}

.legacy-post footer .byline,
.legacy-post > div > footer .byline,
.legacy-post .byline:last-of-type {
  display: none !important;
}

.legacy-post footer .byline .author {
  display: block;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

.legacy-post footer .byline .author a {
  color: #212529;
  text-decoration: none;
  border-bottom: none;
  padding-bottom: 0;
}

.legacy-post footer .byline .author a:hover {
  color: #0e7c5a;
}

.legacy-post footer .byline .date {
  color: #868e96;
  font-weight: 500;
}

.legacy-post footer .profile {
  margin-top: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
}

@media screen and (min-width: 651px) and (max-width: 950px) {
  .legacy-post footer .profile {
    margin: 2rem 1rem;
    padding: 2rem 1rem;
  }
  
  /* Better link spacing for tablet view */
  .legacy-post footer .profile .author .link {
    margin: 0.4rem 0.3rem;
    line-height: 1.8;
  }
}

@media screen and (max-width: 650px) {
  .legacy-post footer .profile {
    margin: 2rem 0;
    padding: 2rem 1rem;
    max-width: 100%;
    border-radius: 0;
  }
  
  /* Smaller author name in mobile */
  .legacy-post footer .profile .author .name {
    font-size: 0.95rem;
  }
  
  /* Display links one per line with better spacing */
  .legacy-post footer .profile .author .link {
    display: block;
    margin: 0.75rem 0;
    line-height: 1.5;
  }
}

/* Hide author description only in very small mobile (under 480px) */
@media screen and (max-width: 480px) {
  .legacy-post footer .profile .author_description {
    display: none;
  }
}

.legacy-post footer .profile .author {
  text-align: center;
  margin-bottom: 1.5rem;
}

.legacy-post footer .profile .author .name {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.75rem;
}

.legacy-post footer .profile .author .link {
  display: inline-block;
  margin: 0.4rem 0.25rem;
  font-size: 0.9rem;
}

.legacy-post footer .profile .author .link a {
  color: #495057;
  text-decoration: none !important;
  padding: 0.35rem 0.75rem;
  border: 1px solid #dee2e6 !important;
  border-bottom: 1px solid #dee2e6 !important;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.2s;
  background: white;
}

.legacy-post footer .profile .author .link a:hover {
  background: #495057;
  border-color: #495057 !important;
  color: white;
}

.legacy-post footer .author_description {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: center;
  list-style: none;
}

.legacy-post footer .author_description ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legacy-post footer .author_description li {
  list-style: none;
  margin: 0.5rem 0;
}

.legacy-post footer .author_description strong {
  font-weight: 600;
  color: #343a40;
}

.legacy-post footer .author_description a {
  color: #495057;
  text-decoration: none !important;
  border-bottom: 1px solid #495057 !important;
}

.legacy-post footer .author_description a:hover {
  color: #212529;
  border-bottom: 1px solid #212529 !important;
}

/* Syntax highlighting */
.legacy-post code > span.bold { font-weight: 900; }
.legacy-post code > span.kw { color: #099268; font-weight: bold; } /* Keyword */
.legacy-post code > span.dt { color: #f03e3e; } /* DataType */
.legacy-post code > span.dv { color: #12b886; } /* DecVal */
.legacy-post code > span.bn { color: #12b886; } /* BaseN */
.legacy-post code > span.fl { color: #12b886; } /* Float */
.legacy-post code > span.ch { color: #5c7cfa; } /* Char */
.legacy-post code > span.st { color: #5c7cfa; } /* String */
.legacy-post code > span.co { color: #868e96; font-style: italic; } /* Comment */
.legacy-post code > span.ot { color: #099268; } /* Other */
.legacy-post code > span.al { color: #ff0000; font-weight: bold; } /* Alert */
.legacy-post code > span.fu { color: #06287e; } /* Function */
.legacy-post code > span.er { color: #ff0000; font-weight: bold; } /* Error */
.legacy-post code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
.legacy-post code > span.cn { color: #880000; } /* Constant */
.legacy-post code > span.sc { color: #4070a0; } /* SpecialChar */
.legacy-post code > span.vs { color: #4070a0; } /* VerbatimString */
.legacy-post code > span.ss { color: #bb6688; } /* SpecialString */
.legacy-post code > span.va { color: #19177c; } /* Variable */
.legacy-post code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
.legacy-post code > span.op { color: #666666; } /* Operator */
.legacy-post code > span.pp { color: #bc7a00; } /* Preprocessor */
.legacy-post code > span.at { color: #7d9029; } /* Attribute */
.legacy-post code > span.do { color: #ba2121; font-style: italic; } /* Documentation */
.legacy-post code > span.an { color: #868e96; font-weight: bold; font-style: italic; } /* Annotation */
.legacy-post code > span.cv { color: #868e96; font-weight: bold; font-style: italic; } /* CommentVar */
.legacy-post code > span.in { color: #868e96; font-weight: bold; font-style: italic; } /* Information */

/* Admonition blocks (NOTE, WARNING, etc.) */
.legacy-post .admonitionblock {
  display: flex;
  margin: 2.7rem 0 3.8rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 0.4rem 1rem;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 950px) {
  .legacy-post .admonitionblock {
    flex-direction: column;
  }
}

.legacy-post .admonitionblock .icon {
  box-sizing: border-box;
  padding: 1rem;
  width: 14%;
  font-weight: bold;
}

@media screen and (max-width: 950px) {
  .legacy-post .admonitionblock .icon {
    width: 100%;
    padding: 1rem 1.5rem 0;
  }
}

.legacy-post .admonitionblock .icon .title {
  padding: 0 0.2rem 0.1rem;
  border-bottom: 3px double #495057;
}

.legacy-post .admonitionblock .content {
  box-sizing: border-box;
  padding: 1rem;
  width: 86%;
  font-size: 0.88rem;
}

@media screen and (max-width: 950px) {
  .legacy-post .admonitionblock .content {
    width: 100%;
    padding: 1rem 1.5rem;
  }
}

.legacy-post .admonitionblock .content p {
  margin: 1rem 0 0;
  font-size: 0.88rem;
}

.legacy-post .admonitionblock .content > .title {
  font-size: 1rem;
  padding: 0 0.34rem 0.18rem;
  font-weight: bold;
  border-bottom: 1px solid #ced4da;
}

/* Utterances Comments Section */
.legacy-post .legacy-post-comments {
  max-width: 740px;
  margin: 5rem auto 0;
  padding: 3rem 0 2rem;
  border-top: 1px solid #e9ecef;
}

@media screen and (max-width: 650px) {
  .legacy-post .legacy-post-comments {
    margin: 4rem 1.2rem 0;
    padding: 2.5rem 0 1.5rem;
  }
}

/* Comprehensive responsive rules for tablet/mobile (650px) */
@media screen and (max-width: 650px) {
  /* Container setup for consistent 650px max-width */
  .legacy-post {
    padding: 0 1rem;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
  }
  
  /* All content elements fill available width with consistent padding */
  .legacy-post header,
  .legacy-post h1,
  .legacy-post h2,
  .legacy-post h3,
  .legacy-post h4,
  .legacy-post h5,
  .legacy-post h6,
  .legacy-post ul,
  .legacy-post ol,
  .legacy-post blockquote,
  .legacy-post .keywords,
  .legacy-post .toc,
  .legacy-post figure {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Full-bleed elements that extend to edges */
  .legacy-post pre,
  .legacy-post .legacy-post-comments {
    width: calc(100% + 2rem);
    max-width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }
  
  /* Post-box and profile - consistent margins (now handled in specific media queries) */
  
  /* Pre code blocks */
  .legacy-post pre {
    border-radius: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Images */
  .legacy-post img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
  }
  
  /* TOC specific - fill width with padding */
  .legacy-post .toc {
    padding: 1rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
  }
  
  
  /* Comments section */
  .legacy-post .legacy-post-comments {
    margin-top: 3rem;
    margin-bottom: 0;
    padding: 2rem 1rem 1rem;
  }
  
  /* Keywords section */
  .legacy-post .keywords {
    margin: 0;
    padding: 0.5rem 0;
  }
  
  /* Lists specific adjustments */
  .legacy-post ul,
  .legacy-post ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
  }
  
  /* Blockquote specific */
  .legacy-post blockquote {
    padding: 1rem;
    margin: 1.5rem 0;
    border-left: 4px solid #dee2e6;
    background: #f8f9fa;
  }
  
  /* Table responsive */
  .legacy-post table {
    display: block;
    overflow-x: auto;
    margin: 1.5rem 0;
    width: 100%;
  }
  
  /* Header elements sizing */
  .legacy-post h1 { 
    font-size: 1.44rem;
    margin: 2rem 0 1rem;
  }
  .legacy-post h2 { 
    font-size: 1.28rem;
    margin: 2rem 0 1rem;
  }
  .legacy-post h3 { 
    font-size: 1.26rem;
    margin: 1.5rem 0 0.75rem;
  }
  .legacy-post h4 { 
    font-size: 1.175rem;
    margin: 1.5rem 0 0.75rem;
  }
  
}

.legacy-post .legacy-post-comments .comments-container {
  padding: 0;
}

/* Ensure utterances iframe fits properly */
.legacy-post .legacy-post-comments .utterances {
  max-width: 100%;
}

/* Post box - clean and minimal style */
.legacy-post .post-box {
  margin: 3rem auto;
  padding: 2rem;
  max-width: 740px;
  background: #f8f9fa;
  border-left: 3px solid #20c997;
  border-radius: 4px;
}

@media screen and (min-width: 651px) and (max-width: 950px) {
  .legacy-post .post-box {
    margin: 3rem 1rem;
    padding: 2rem 1rem;
  }
}

@media screen and (max-width: 650px) {
  .legacy-post .post-box {
    margin: 3rem 0;
    padding: 2rem 1rem;
    max-width: 100%;
    border-radius: 0;
    border-left-width: 3px;
  }
}

.legacy-post .post-box .title-image {
  display: none; /* Hide image to minimize */
}

.legacy-post .post-box .post-summary {
  margin: 0;
}

.legacy-post .post-box .post-summary h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.legacy-post .post-box .post-summary h2 a {
  color: #212529;
  text-decoration: none;
  border-bottom: none;
}

.legacy-post .post-box .post-summary h2 a:hover {
  color: #0e7c5a;
}

.legacy-post .post-box .post-summary .description {
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.6;
}

.legacy-post .post-box .post-summary .description .date {
  display: block;
  margin-bottom: 0.5rem;
  color: #868e96;
  font-size: 0.85rem;
}