/* Prev/next post nav cards: a two-column grid on a plain background with an inset border
   instead of an outer one. */
.post-nav-card{ display:flex; align-items:center; gap:8px; background:var(--background); box-shadow:inset 0 0 0 1px var(--border-soft); border:0; padding:14px 16px; text-decoration:none; transition:all .3s ease-in-out; font-size:14px; font-weight:500; }
.post-nav-card:hover{ background:var(--bg-elev); color:var(--accent-foreground); }
.post-nav-card--prev{ justify-content:flex-start; }
.post-nav-card--next{ justify-content:flex-end; }
.post-nav-arrow{ width:16px; height:16px; flex-shrink:0; transition:transform .2s ease; }
.post-nav-card--prev:hover .post-nav-arrow{ transform:translateX(-4px); }
.post-nav-card--next:hover .post-nav-arrow{ transform:translateX(4px); }
.post-nav-text{ display:flex; flex-direction:column; gap:2px; min-width:0; overflow:hidden; }
.post-nav-text--right{ align-items:flex-end; text-align:right; }
.post-nav-label{ font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted-foreground); font-family:var(--mono); font-weight:500; }
.post-nav-title{ font-size:13px; font-weight:600; color:var(--foreground); line-height:1.4; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:220px; }
@media (max-width:700px){ .post-nav-title{ max-width:100%; white-space:normal; } }
.taxo-search{ margin-bottom:16px; width:400px; max-width:100%; display:block; position:static; top:72px; background:var(--background); z-index:2; padding:4px 0; }
.taxo-search input{ width:100%; background:var(--background); border:1px solid color-mix(in oklab, var(--border) var(--tag-border-opacity, 100%), transparent); border-radius:0; padding:8px 12px; font-size:13px; color:var(--foreground); font-family:var(--font); display:block; }
.taxo-search input:focus-visible{ border-color:var(--foreground); box-shadow:0 0 0 1px var(--foreground); }
.taxo-grid{ display:flex; flex-wrap:wrap; gap:8px; min-height:120px; align-content:flex-start; width:100%; contain:layout; }
/* taxonomy.js limits the number of visible pills and shows a button for the remainder. */
.taxo-show-more{ display:block; margin:16px auto 0; padding:8px 20px; border-radius:0; border:1px solid var(--border-soft); background:var(--card); color:var(--foreground); font-family:var(--font); font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; cursor:pointer; }
.taxo-show-more:hover{ background:var(--bg-elev); }
.taxo-chip{ padding:8px 14px; border-radius:0; border:1px solid color-mix(in oklab, var(--border) var(--tag-border-opacity, 100%), transparent); background:var(--card); font-size:12px; font-weight:500; color:var(--foreground); font-family:var(--mono); display:inline-flex; align-items:center; gap:6px; text-transform:lowercase; /* Hugo title-cases taxonomy term titles by default; lowercased here to match how tags are actually written (front matter, code, CLI tool names). */ }
/* .taxo-grid .taxo-chip (not just .taxo-chip) deliberately, to outrank
   pages/single.css's .article-content a{text-decoration:underline} - the tag/category grid
   sits inside .article-content (list.html), and a class+tag selector (0,1,1) beats a single
   class selector (0,1,0) regardless of which stylesheet loads first. */
.taxo-grid .taxo-chip{ text-decoration:none; }
.taxo-chip:hover{ background:var(--foreground); color:var(--background); }
.taxo-chip span{ background:var(--foreground); color:var(--background); font-size:10px; padding:1px 6px; border-radius:0; font-weight:700; font-family:var(--mono); }
.taxo-chip:hover span{ background:var(--background); color:var(--foreground); }
.taxo-grid .taxo-chip[hidden],.taxo-show-more[hidden],.taxo-no-results[hidden]{display:none}
.taxo-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:10px}
.taxo-controls .taxo-search{margin:0;flex:1 1 240px}
.taxo-sort{display:flex;align-items:center;gap:8px;font:13px/1.6 var(--font);color:var(--muted-foreground)}
.taxo-sort select{padding:8px;border:1px solid var(--border-soft);border-radius:0;background:var(--background);color:var(--foreground);font:inherit;max-width:100%}
.taxo-match-count,.taxo-no-results{font:13px/1.6 var(--font);color:var(--muted-foreground)}
.taxo-sort select:focus-visible{outline:2px solid var(--foreground);outline-offset:3px}
.tag-directory :is(.taxo-search input,.taxo-sort select,.taxo-show-more){border-radius:3px}
/* Was oklch(97.35% .0261 90.1) - light theme's warm cream background borrowed by mistake,
   so it read as slightly off-white/tinted instead of matching the tag text's actual neutral
   color. Matches .cat-pill span's mono override (same component, same fix) instead. */
:is([data-theme="mono"],[data-color-scheme="dark"]) .taxo-chip span{ background:oklch(80% 0 0); color:oklch(7.67% 0 0); }
:is([data-theme="mono"],[data-color-scheme="dark"]) .taxo-chip:hover span{ background:oklch(7.67% 0 0); color:oklch(97.35% 0 0); }
/* Tag-cloud sizing tiers by post count (list.html computes $tier from .Count). t1 (1 post)
   is the existing base size/weight, unchanged. */
.taxo-chip--t2{ font-size:13px; font-weight:600; }
.taxo-chip--t3{ font-size:14.5px; font-weight:700; }
.taxo-chip--t4{ font-size:16px; font-weight:700; border-color:color-mix(in oklab, var(--foreground) var(--tag-border-opacity, 30%), transparent); }
/* Soft tag pills; popularity changes weight, never text size. Hidden wins over display. */
.taxo-grid.taxo-directory{display:flex;flex-wrap:wrap;gap:8px;align-content:flex-start}
/* The head marks JS-enabled directories before the first paint. Keep the full list
   measurable but out of view until filtering and font metrics are ready. Without JS
   this attribute is never set, so all links remain available. */
html[data-taxonomy-state="pending"] .taxo-directory{height:120px;overflow:hidden;visibility:hidden;}
/* A shrinking directory must not change the distance of an entrance transform. */
html[data-taxonomy-page] :is(.main,.container){animation:none;}
.taxo-directory .taxo-chip{display:inline-flex;align-items:baseline;min-width:0;max-width:100%;gap:8px;padding:6px 12px;border:0;border-radius:999px;background:var(--bg-elev);font-size:13px;font-weight:400;line-height:1.6;overflow-wrap:anywhere}
.taxo-directory .taxo-chip--t2{font-weight:600}
.taxo-directory .taxo-chip--t3,.taxo-directory .taxo-chip--t4{font-weight:700}
.taxo-directory .taxo-chip span{flex:none;padding:0;background:transparent;color:var(--muted-foreground);font-size:11px;font-weight:400}
.taxo-directory .taxo-chip .taxo-name{flex:0 1 auto;min-width:0;color:inherit;font:inherit}
.taxo-directory .taxo-chip:hover{background:var(--bg-elev);color:var(--link-hover);text-decoration:none}
:is([data-theme="mono"],[data-color-scheme="dark"]) .taxo-directory .taxo-chip{background:#242424}
:is([data-theme="mono"],[data-color-scheme="dark"]) .taxo-directory .taxo-chip:hover{background:#242424}
/* Keep the tag name and count clear of the generic chip's inverted hover background. */
.taxo-directory .taxo-chip:hover span{background:transparent}
.taxo-directory .taxo-chip:hover span:not(.taxo-name){color:var(--muted-foreground)}
.taxo-directory .taxo-chip:hover .taxo-name{color:inherit;text-decoration:none}
.taxo-directory .taxo-chip:focus-visible{outline:1px solid var(--foreground);outline-offset:2px}
/* Empty taxonomy term (list.html) - a category/tag with no posts filed under it yet used to
   just render an empty .post-grid and stop, leaving a dead gap between the breadcrumb and
   the footer with no explanation. A short message + a way back out (Archive/Tags) instead. */
.taxo-empty{ text-align:center; padding:48px 16px; }
.taxo-empty__title{ font-family:var(--display); font-size:20px; font-weight:400; color:var(--foreground); margin:0; }
.taxo-empty__message{ margin:8px 0 0; color:var(--muted-foreground); font-size:14px; }
.taxo-empty__links{ display:flex; gap:10px; justify-content:center; margin-top:20px; }
.badge{ display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:0; border:1px solid var(--border); background:var(--card); font-size:calc(11px * var(--type-scale)); font-weight:500; color:var(--muted-foreground); font-family:var(--mono); }
.site-footer{ position:relative; bottom:0; left:0; z-index:2; width:100%; overflow:visible; padding:0 16px; margin-top:auto; background:transparent; border:none; color:var(--muted-foreground); font-family:var(--font); font-size:12px; }
.footer-inner{ max-width:calc(var(--max) + 1rem); margin:0 auto; display:flex; flex-direction:column; gap:8px; padding:12px 0 24px; padding-left: 2rem; padding-right: 2rem;} /* top padding kept small to close up the gap above the footer; bottom unchanged */
.footer-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,2fr); gap:16px; }
