/* ==========================================================================
   Premium Technical Blog Stylesheet - Optimized for Scannability
   ========================================================================== */

/* Main Container Frame */
.blog-post-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2d3748; /* Off-black for reduced eye strain */
    line-height: 1.8; /* Increased line spacing for readability */
    max-width: 720px; /* Crucial: Restricts line width so eyes don't wander */
    margin: 40px auto; /* Centers the content block perfectly */
    padding: 0 24px;
    -webkit-font-smoothing: antialiased;
}

/* Post Meta (Author, Date) Styling */
.blog-post-content p:first-of-type {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* Technical Headings Layout */
.blog-post-content h2 {
    color: #1a365d; /* Deep professional navy blue */
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 48px; /* Pushes headers down away from preceding text */
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.blog-post-content h3 {
    color: #2c5282;
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
}

/* Paragraph Formatting */
.blog-post-content p {
    font-size: 1.1rem; /* Slightly larger, crisp font size */
    margin-top: 0;
    margin-bottom: 24px; /* Distinct breathing room between paragraphs */
}

/* Bullet Lists (Fixes your hardware specs layout) */
.blog-post-content ul, 
.blog-post-content ol {
    padding-left: 24px;
    margin-top: 12px;
    margin-bottom: 28px;
}

.blog-post-content li {
    font-size: 1.1rem;
    margin-bottom: 12px; /* Spaces out each bullet item */
    line-height: 1.6;
}

/* Hyperlinks */
.blog-post-content a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid #ebf8ff; /* Subtle, elegant bottom border highlight */
    transition: all 0.2s ease-in-out;
}

.blog-post-content a:hover {
    color: #2b6cb0;
    border-bottom-color: #3182ce;
    background-color: #f7fafc;
}

/* Inline Code Snippets (e.g., bashh-ai) */
.blog-post-content :not(pre) > code {
    background-color: #f7fafc;
    color: #dd6b20; /* Deep subtle orange/red for highlights */
    padding: 3px 6px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

/* ==========================================================================
   MODERN ULTRA-THIN FRAMED CODEBLOCK LAYOUT
   ========================================================================== */

/* Targets the outer code block container and overrides heavy inherited frames */
.codehilite, 
.blog-post-content pre,
.blog-post-content .codehilite pre { 
    background: #202020 !important; 
    color: #D0D0D0 !important;
    padding: 18px 20px !important;
    border-radius: 6px !important;
    margin: 24px 0 !important;
    
    /* Elegant, ultra-thin border outline that separates the block cleanly */
    border: 1px solid #343a40 !important; 
    outline: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    
    /* Forces code syntax strings to wrap down naturally instead of overflowing */
    white-space: pre-wrap !important;       
    white-space: -moz-pre-wrap !important;  
    white-space: -pre-wrap !important;       
    white-space: -o-pre-wrap !important;     
    word-wrap: break-word !important;        
    overflow-x: hidden !important; /* Completely eliminates horizontal scrollbars */
}

/* Explicitly scales font variables down so wrapped text blocks look tight and structured */
.codehilite pre span, 
.codehilite code { 
    line-height: 1.6 !important; 
    font-size: 0.92rem !important;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace !important;
}

/* ==========================================================================
   PYGMENTS DARK THEME SYNTAX COLOR TOKENS
   ========================================================================== */
.codehilite .hll { background-color: #404040 }
.codehilite .c { color: #ABABAB; font-style: italic } /* Comment */
.codehilite .err { color: #A61717; background-color: #E3D2D2 } /* Error */
.codehilite .esc { color: #D0D0D0 } /* Escape */
.codehilite .g { color: #D0D0D0 } /* Generic */
.codehilite .k { color: #6EBF26; font-weight: bold } /* Keyword */
.codehilite .l { color: #D0D0D0 } /* Literal */
.codehilite .n { color: #D0D0D0 } /* Name */
.codehilite .o { color: #D0D0D0 } /* Operator */
.codehilite .x { color: #D0D0D0 } /* Other */
.codehilite .p { color: #D0D0D0 } /* Punctuation */
.codehilite .ch { color: #ABABAB; font-style: italic } /* Comment.Hashbang */
.codehilite .cm { color: #ABABAB; font-style: italic } /* Comment.Multiline */
.codehilite .cp { color: #FF3A3A; font-weight: bold } /* Comment.Preproc */
.codehilite .cpf { color: #ABABAB; font-style: italic } /* Comment.PreprocFile */
.codehilite .c1 { color: #ABABAB; font-style: italic } /* Comment.Single */
.codehilite .cs { color: #E50808; font-weight: bold; background-color: #520000 } /* Comment.Special */
.codehilite .gd { color: #FF3A3A } /* Generic.Deleted */
.codehilite .ge { color: #D0D0D0; font-style: italic } /* Generic.Emph */
.codehilite .ges { color: #D0D0D0; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.codehilite .gr { color: #FF3A3A } /* Generic.Error */
.codehilite .gh { color: #FFF; font-weight: bold } /* Generic.Heading */
.codehilite .gi { color: #589819 } /* Generic.Inserted */
.codehilite .go { color: #CCC } /* Generic.Output */
.codehilite .gp { color: #AAA } /* Generic.Prompt */
.codehilite .gs { color: #D0D0D0; font-weight: bold } /* Generic.Strong */
.codehilite .gu { color: #FFF; text-decoration: underline } /* Generic.Subheading */
.codehilite .gt { color: #FF3A3A } /* Generic.Traceback */
.codehilite .kc { color: #6EBF26; font-weight: bold } /* Keyword.Constant */
.codehilite .kd { color: #6EBF26; font-weight: bold } /* Keyword.Declaration */
.codehilite .kn { color: #6EBF26; font-weight: bold } /* Keyword.Namespace */
.codehilite .kp { color: #6EBF26 } /* Keyword.Pseudo */
.codehilite .kr { color: #6EBF26; font-weight: bold } /* Keyword.Reserved */
.codehilite .kt { color: #6EBF26; font-weight: bold } /* Keyword.Type */
.codehilite .ld { color: #D0D0D0 } /* Literal.Date */
.codehilite .m { color: #51B2FD } /* Literal.Number */
.codehilite .s { color: #ED9D13 } /* Literal.String */
.codehilite .na { color: #BBB } /* Name.Attribute */
.codehilite .nb { color: #2FBCCD } /* Name.Builtin */
.codehilite .nc { color: #71ADFF; text-decoration: underline } /* Name.Class */
.codehilite .no { color: #40FFFF } /* Name.Constant */
.codehilite .nd { color: #FFA500 } /* Name.Decorator */
.codehilite .ni { color: #D0D0D0 } /* Name.Entity */
.codehilite .ne { color: #BBB } /* Name.Exception */
.codehilite .nf { color: #71ADFF } /* Name.Function */
.codehilite .nl { color: #D0D0D0 } /* Name.Label */
.codehilite .nn { color: #71ADFF; text-decoration: underline } /* Name.Namespace */
.codehilite .nx { color: #D0D0D0 } /* Name.Other */
.codehilite .py { color: #D0D0D0 } /* Name.Property */
.codehilite .nt { color: #6EBF26; font-weight: bold } /* Name.Tag */
.codehilite .nv { color: #40FFFF } /* Name.Variable */
.codehilite .ow { color: #6EBF26; font-weight: bold } /* Operator.Word */
.codehilite .pm { color: #D0D0D0 } /* Punctuation.Marker */
.codehilite .w { color: #666 } /* Text.Whitespace */
.codehilite .mb { color: #51B2FD } /* Literal.Number.Bin */
.codehilite .mf { color: #51B2FD } /* Literal.Number.Float */
.codehilite .mh { color: #51B2FD } /* Literal.Number.Hex */
.codehilite .mi { color: #51B2FD } /* Literal.Number.Integer */
.codehilite .mo { color: #51B2FD } /* Literal.Number.Oct */
.codehilite .sa { color: #ED9D13 } /* Literal.String.Affix */
.codehilite .sb { color: #ED9D13 } /* Literal.String.Backtick */
.codehilite .sc { color: #ED9D13 } /* Literal.String.Char */
.codehilite .dl { color: #ED9D13 } /* Literal.String.Delimiter */
.codehilite .sd { color: #ED9D13 } /* Literal.String.Doc */
.codehilite .s2 { color: #ED9D13 } /* Literal.String.Double */
.codehilite .se { color: #ED9D13 } /* Literal.String.Escape */
.codehilite .sh { color: #ED9D13 } /* Literal.String.Heredoc */
.codehilite .si { color: #ED9D13 } /* Literal.String.Interpol */
.codehilite .sx { color: #FFA500 } /* Literal.String.Other */
.codehilite .sr { color: #ED9D13 } /* Literal.String.Regex */
.codehilite .s1 { color: #ED9D13 } /* Literal.String.Single */
.codehilite .ss { color: #ED9D13 } /* Literal.String.Symbol */
.codehilite .bp { color: #2FBCCD } /* Name.Builtin.Pseudo */
.codehilite .fm { color: #71ADFF } /* Name.Function.Magic */
.codehilite .vc { color: #40FFFF } /* Name.Variable.Class */
.codehilite .vg { color: #40FFFF } /* Name.Variable.Global */
.codehilite .vi { color: #40FFFF } /* Name.Variable.Instance */
.codehilite .vm { color: #40FFFF } /* Name.Variable.Magic */
.codehilite .il { color: #51B2FD } /* Literal.Number.Integer.Long */
