/* Blog — leans on styles.css for colour/type; only adds what posts need. */
.post-wrap{max-width:44rem}
.post h1{margin:.2em 0 .1em}
.post-meta{color:var(--faint,#938aa6);font-size:.9rem;margin:0 0 1.4em}
.post-body{font-size:1.02rem;line-height:1.75}
.post-body h2{margin:2.2em 0 .5em;font-size:1.35rem}
.post-body p{margin:0 0 1.1em}
.post-body ul,.post-body ol{margin:0 0 1.2em 1.2em}
.post-body li{margin:.3em 0}
.post-body code{font-family:var(--mono,ui-monospace,SFMono-Regular,Menlo,monospace);
  font-size:.9em;background:rgba(255,255,255,.06);padding:.12em .38em;border-radius:4px}
.post-body pre{background:rgba(0,0,0,.32);border:1px solid var(--line,#241f30);
  border-radius:10px;padding:14px 16px;overflow-x:auto;margin:0 0 1.3em}
.post-body pre code{background:none;padding:0;font-size:.86rem;line-height:1.55}
.post-body blockquote{border-left:2px solid var(--acc,#7c5cff);margin:0 0 1.2em;
  padding:.1em 0 .1em 1em;color:var(--mist,#ada4be)}
.post-body hr{border:0;border-top:1px solid var(--line,#241f30);margin:2em 0}
.post-body a{color:var(--acc-soft,#9b82ff)}
.post-body em{color:var(--mist,#ada4be)}
.post-back{margin-top:2.5em;font-size:.92rem}

/* index */
.post-list{list-style:none;margin:2em 0 0;padding:0}
.post-item{border-top:1px solid var(--line,#241f30)}
.post-item:last-child{border-bottom:1px solid var(--line,#241f30)}
.post-link{display:block;padding:1.4em 0;text-decoration:none;color:inherit}
.post-link:hover h2{color:var(--acc-soft,#9b82ff)}
.post-link time{color:var(--faint,#938aa6);font-size:.85rem;
  font-family:var(--mono,ui-monospace,monospace)}
.post-tag{margin-left:.8em;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--acc-soft,#9b82ff);border:1px solid var(--line2,#322b42);
  padding:.16em .55em;border-radius:99px}
.post-link h2{margin:.45em 0 .3em;font-size:1.3rem}
.post-link p{margin:0;color:var(--mist,#ada4be);font-size:.96rem;max-width:60ch}
@media(max-width:600px){.post-body{font-size:1rem}.post-link h2{font-size:1.15rem}}

/* Long code must not widen the page on mobile: the <pre> scrolls internally,
   and long inline identifiers wrap rather than pushing the layout. */
.post-body pre{max-width:100%}
.post-body pre code{white-space:pre;display:block;min-width:0}
.post-body :not(pre) > code{overflow-wrap:anywhere;word-break:break-word}
.post-body{overflow-wrap:break-word}

/* Syntax highlighting (pygments monokai), block styling left to the site. */
.codehilite .hll { background-color: #49483e }
.codehilite .c { color: #959077 } /* Comment */
.codehilite .err { color: #ED007E; background-color: #1E0010 } /* Error */
.codehilite .esc { color: #F8F8F2 } /* Escape */
.codehilite .g { color: #F8F8F2 } /* Generic */
.codehilite .k { color: #66D9EF } /* Keyword */
.codehilite .l { color: #AE81FF } /* Literal */
.codehilite .n { color: #F8F8F2 } /* Name */
.codehilite .o { color: #FF4689 } /* Operator */
.codehilite .x { color: #F8F8F2 } /* Other */
.codehilite .p { color: #F8F8F2 } /* Punctuation */
.codehilite .ch { color: #959077 } /* Comment.Hashbang */
.codehilite .cm { color: #959077 } /* Comment.Multiline */
.codehilite .cp { color: #959077 } /* Comment.Preproc */
.codehilite .cpf { color: #959077 } /* Comment.PreprocFile */
.codehilite .c1 { color: #959077 } /* Comment.Single */
.codehilite .cs { color: #959077 } /* Comment.Special */
.codehilite .gd { color: #FF4689 } /* Generic.Deleted */
.codehilite .ge { color: #F8F8F2; font-style: italic } /* Generic.Emph */
.codehilite .ges { color: #F8F8F2; font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.codehilite .gr { color: #FF4689 } /* Generic.Error */
.codehilite .gh { color: #F8F8F2 } /* Generic.Heading */
.codehilite .gi { color: #A6E22E } /* Generic.Inserted */
.codehilite .go { color: #66D9EF } /* Generic.Output */
.codehilite .gp { color: #FF4689; font-weight: bold } /* Generic.Prompt */
.codehilite .gs { color: #F8F8F2; font-weight: bold } /* Generic.Strong */
.codehilite .gu { color: #959077 } /* Generic.Subheading */
.codehilite .gt { color: #66D9EF } /* Generic.Traceback */
.codehilite .kc { color: #66D9EF } /* Keyword.Constant */
.codehilite .kd { color: #66D9EF } /* Keyword.Declaration */
.codehilite .kn { color: #FF4689 } /* Keyword.Namespace */
.codehilite .kp { color: #66D9EF } /* Keyword.Pseudo */
.codehilite .kr { color: #66D9EF } /* Keyword.Reserved */
.codehilite .kt { color: #66D9EF } /* Keyword.Type */
.codehilite .ld { color: #E6DB74 } /* Literal.Date */
.codehilite .m { color: #AE81FF } /* Literal.Number */
.codehilite .s { color: #E6DB74 } /* Literal.String */
.codehilite .na { color: #A6E22E } /* Name.Attribute */
.codehilite .nb { color: #A6E22E } /* Name.Builtin */
.codehilite .nc { color: #A6E22E } /* Name.Class */
.codehilite .no { color: #66D9EF } /* Name.Constant */
.codehilite .nd { color: #A6E22E } /* Name.Decorator */
.codehilite .ni { color: #F8F8F2 } /* Name.Entity */
.codehilite .ne { color: #A6E22E } /* Name.Exception */
.codehilite .nf { color: #A6E22E } /* Name.Function */
.codehilite .nl { color: #F8F8F2 } /* Name.Label */
.codehilite .nn { color: #F8F8F2 } /* Name.Namespace */
.codehilite .nx { color: #A6E22E } /* Name.Other */
.codehilite .py { color: #F8F8F2 } /* Name.Property */
.codehilite .nt { color: #FF4689 } /* Name.Tag */
.codehilite .nv { color: #F8F8F2 } /* Name.Variable */
.codehilite .ow { color: #FF4689 } /* Operator.Word */
.codehilite .pm { color: #F8F8F2 } /* Punctuation.Marker */
.codehilite .w { color: #F8F8F2 } /* Text.Whitespace */
.codehilite .mb { color: #AE81FF } /* Literal.Number.Bin */
.codehilite .mf { color: #AE81FF } /* Literal.Number.Float */
.codehilite .mh { color: #AE81FF } /* Literal.Number.Hex */
.codehilite .mi { color: #AE81FF } /* Literal.Number.Integer */
.codehilite .mo { color: #AE81FF } /* Literal.Number.Oct */
.codehilite .sa { color: #E6DB74 } /* Literal.String.Affix */
.codehilite .sb { color: #E6DB74 } /* Literal.String.Backtick */
.codehilite .sc { color: #E6DB74 } /* Literal.String.Char */
.codehilite .dl { color: #E6DB74 } /* Literal.String.Delimiter */
.codehilite .sd { color: #E6DB74 } /* Literal.String.Doc */
.codehilite .s2 { color: #E6DB74 } /* Literal.String.Double */
.codehilite .se { color: #AE81FF } /* Literal.String.Escape */
.codehilite .sh { color: #E6DB74 } /* Literal.String.Heredoc */
.codehilite .si { color: #E6DB74 } /* Literal.String.Interpol */
.codehilite .sx { color: #E6DB74 } /* Literal.String.Other */
.codehilite .sr { color: #E6DB74 } /* Literal.String.Regex */
.codehilite .s1 { color: #E6DB74 } /* Literal.String.Single */
.codehilite .ss { color: #E6DB74 } /* Literal.String.Symbol */
.codehilite .bp { color: #A6E22E } /* Name.Builtin.Pseudo */
.codehilite .fm { color: #A6E22E } /* Name.Function.Magic */
.codehilite .vc { color: #F8F8F2 } /* Name.Variable.Class */
.codehilite .vg { color: #F8F8F2 } /* Name.Variable.Global */
.codehilite .vi { color: #F8F8F2 } /* Name.Variable.Instance */
.codehilite .vm { color: #F8F8F2 } /* Name.Variable.Magic */
.codehilite .il { color: #AE81FF } /* Literal.Number.Integer.Long */

/* Monokai is a dark palette, so the block stays dark in BOTH themes — a light
   card with pale-yellow tokens on it is unreadable, which the render showed. */
.post-body pre{background:#1c1a23 !important;border-color:#2b2733}
.post-body pre code, .codehilite pre{color:#f8f8f2}

/* Tables: markdown emits bare <table>, and the site has no rules for it —
   1px padding and no rules is unreadable. */
.post-body table{width:100%;border-collapse:collapse;margin:0 0 1.4em;font-size:.94rem}
.post-body th,.post-body td{padding:9px 14px 9px 0;text-align:left;
  border-bottom:1px solid var(--line,#241f30);vertical-align:top}
.post-body th{font-weight:600;color:var(--ink,#f4f1f9);
  font-size:.78rem;letter-spacing:.06em;text-transform:uppercase}
:root[data-theme="light"] .post-body th{color:#17131f}
.post-body td:not(:first-child),.post-body th:not(:first-child){
  text-align:right;font-family:var(--mono,ui-monospace,monospace);font-size:.9em;
  padding-right:0;padding-left:14px}
.post-body tbody tr:last-child td{border-bottom:none}
@media(max-width:600px){.post-body table{font-size:.86rem}
  .post-body th,.post-body td{padding:7px 8px 7px 0}}
