/* stugo /blog/ — лента и статья. СГЕНЕРИРОВАНО scripts/build_blog.py — не править
   руками: правится BLOG_CSS_BASE в сборщике. Подключается ПОСЛЕ /style.css:
   шапка/футер/бейджи/.wrap и светлые переменные — оттуда. Тема: data-theme на
   <html> ставит /blog/theme.js (ключ stugo-tools-theme, как на / и /tools/);
   тёмная палитра — те же значения, что у .page-dashboard в public/style.css.
   Pygments: светлая = STYLE default, тёмная = monokai. Inline-стили запрещены
   CSP (default-src 'self'). */

/* --- тёмная палитра раздела (скоуп .page-blog: ветка ОС + явный override) --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page-blog {
    --bg:       #0F172A;
    --bg-card:  #1E293B;
    --bg-nav:   #0F172AEE;
    --bg-alt:   #273449;
    --text:     #F1F5F9;
    --text-mut: #94A3B8;
    --border:   #334155;

    --shadow:        0 1px 2px rgba(0,0,0,.30), 0 12px 32px rgba(0,0,0,.45);
    --shadow-hover:  0 2px 4px rgba(0,0,0,.35), 0 24px 48px rgba(0,0,0,.55);

    --c-link:   #60A5FA;  /* AA на тёмных поверхностях */
  }
}
:root[data-theme="dark"] .page-blog {
  --bg:       #0F172A;
  --bg-card:  #1E293B;
  --bg-nav:   #0F172AEE;
  --bg-alt:   #273449;
  --text:     #F1F5F9;
  --text-mut: #94A3B8;
  --border:   #334155;

  --shadow:        0 1px 2px rgba(0,0,0,.30), 0 12px 32px rgba(0,0,0,.45);
  --shadow-hover:  0 2px 4px rgba(0,0,0,.35), 0 24px 48px rgba(0,0,0,.55);

  --c-link:   #60A5FA;
}

.page-blog { transition: background .2s ease, color .2s ease; }
.page-blog a:focus-visible,
.page-blog .theme-toggle:focus-visible {
  outline: 2px solid var(--c-link);
  outline-offset: 2px;
}

/* --- колонка ~46rem: типографика чтения (план §1) --- */
.page-blog .wrap { max-width: 46rem; }

.post, .feed { padding: 2.5rem 0 3rem; }
.post h1, .feed h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.3rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--c-link);
  font-weight: 600;
}
.feed-sub { margin: 0 0 1.75rem; color: var(--text-mut); }

/* --- шапка заметки: дата + теги-бейджи --- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin: 0 0 1.5rem;
  color: var(--text-mut);
  font-size: .95rem;
}
.post-meta time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- оглавление (ставится сборщиком при h2 ≥ 3) --- */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
}
.toc-title {
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-mut);
}
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc a { color: var(--c-link); }

/* --- тело статьи --- */
.post-body { line-height: 1.7; }
.post-body a { color: var(--c-link); }  /* --c-link, не --c-blue: AA как цвет текста */
.post-body h2 {
  margin: 2.25rem 0 .75rem;
  font-size: 1.45rem;
  letter-spacing: -.01em;
  scroll-margin-top: 4.5rem;  /* якорь не прячется под sticky-шапку */
}
.post-body h3 { margin: 1.75rem 0 .5rem; font-size: 1.2rem; }
.post-body img { max-width: 100%; }
.post-body blockquote {
  margin: 1.25rem 0;
  padding: .25rem 0 .25rem 1rem;
  border-left: 3px solid var(--border);
  color: var(--text-mut);
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--bg-alt);
  border-radius: 4px;
  padding: .1em .35em;
}
.post-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;  /* широкая таблица скроллится, не ломая колонку */
  border-collapse: collapse;
}
.post-body th, .post-body td {
  border: 1px solid var(--border);
  padding: .4rem .65rem;
  text-align: left;
}

/* --- блоки кода (codehilite): фон/цвета дают правила pygments ниже --- */
.codehilite {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
}
.codehilite pre { margin: 0; font-size: .88rem; }
.codehilite code { background: transparent; padding: 0; font-size: inherit; }

pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.codehilite .hll { background-color: #ffffcc }
.codehilite { background: #f8f8f8; }
.codehilite .c { color: #3D7B7B; font-style: italic } /* Comment */
.codehilite .err { border: 1px solid #F00 } /* Error */
.codehilite .k { color: #008000; font-weight: bold } /* Keyword */
.codehilite .o { color: #666 } /* Operator */
.codehilite .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */
.codehilite .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */
.codehilite .cp { color: #9C6500 } /* Comment.Preproc */
.codehilite .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */
.codehilite .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */
.codehilite .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */
.codehilite .gd { color: #A00000 } /* Generic.Deleted */
.codehilite .ge { font-style: italic } /* Generic.Emph */
.codehilite .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.codehilite .gr { color: #E40000 } /* Generic.Error */
.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.codehilite .gi { color: #008400 } /* Generic.Inserted */
.codehilite .go { color: #717171 } /* Generic.Output */
.codehilite .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.codehilite .gs { font-weight: bold } /* Generic.Strong */
.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.codehilite .gt { color: #04D } /* Generic.Traceback */
.codehilite .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.codehilite .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.codehilite .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.codehilite .kp { color: #008000 } /* Keyword.Pseudo */
.codehilite .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.codehilite .kt { color: #B00040 } /* Keyword.Type */
.codehilite .m { color: #666 } /* Literal.Number */
.codehilite .s { color: #BA2121 } /* Literal.String */
.codehilite .na { color: #687822 } /* Name.Attribute */
.codehilite .nb { color: #008000 } /* Name.Builtin */
.codehilite .nc { color: #00F; font-weight: bold } /* Name.Class */
.codehilite .no { color: #800 } /* Name.Constant */
.codehilite .nd { color: #A2F } /* Name.Decorator */
.codehilite .ni { color: #717171; font-weight: bold } /* Name.Entity */
.codehilite .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */
.codehilite .nf { color: #00F } /* Name.Function */
.codehilite .nl { color: #767600 } /* Name.Label */
.codehilite .nn { color: #00F; font-weight: bold } /* Name.Namespace */
.codehilite .nt { color: #008000; font-weight: bold } /* Name.Tag */
.codehilite .nv { color: #19177C } /* Name.Variable */
.codehilite .ow { color: #A2F; font-weight: bold } /* Operator.Word */
.codehilite .w { color: #BBB } /* Text.Whitespace */
.codehilite .mb { color: #666 } /* Literal.Number.Bin */
.codehilite .mf { color: #666 } /* Literal.Number.Float */
.codehilite .mh { color: #666 } /* Literal.Number.Hex */
.codehilite .mi { color: #666 } /* Literal.Number.Integer */
.codehilite .mo { color: #666 } /* Literal.Number.Oct */
.codehilite .sa { color: #BA2121 } /* Literal.String.Affix */
.codehilite .sb { color: #BA2121 } /* Literal.String.Backtick */
.codehilite .sc { color: #BA2121 } /* Literal.String.Char */
.codehilite .dl { color: #BA2121 } /* Literal.String.Delimiter */
.codehilite .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.codehilite .s2 { color: #BA2121 } /* Literal.String.Double */
.codehilite .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */
.codehilite .sh { color: #BA2121 } /* Literal.String.Heredoc */
.codehilite .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */
.codehilite .sx { color: #008000 } /* Literal.String.Other */
.codehilite .sr { color: #A45A77 } /* Literal.String.Regex */
.codehilite .s1 { color: #BA2121 } /* Literal.String.Single */
.codehilite .ss { color: #19177C } /* Literal.String.Symbol */
.codehilite .bp { color: #008000 } /* Name.Builtin.Pseudo */
.codehilite .fm { color: #00F } /* Name.Function.Magic */
.codehilite .vc { color: #19177C } /* Name.Variable.Class */
.codehilite .vg { color: #19177C } /* Name.Variable.Global */
.codehilite .vi { color: #19177C } /* Name.Variable.Instance */
.codehilite .vm { color: #19177C } /* Name.Variable.Magic */
.codehilite .il { color: #666 } /* Literal.Number.Integer.Long */

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

/* --- лента: карточки заметок --- */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem 1.25rem;
}
.post-card h2 { margin: 0 0 .3rem; font-size: 1.18rem; letter-spacing: -.01em; }
.post-card .post-meta { margin: 0 0 .4rem; }
.post-card .desc { margin: 0; color: var(--text-mut); }
.post-card .tags { margin-top: .7rem; }
.feed-empty {
  margin: 0;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-mut);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

@media (max-width: 480px) {
  .post, .feed { padding: 1.75rem 0 2.5rem; }
  .codehilite { padding: .75rem .8rem; }
}
