/*
Theme Name: vDan
Theme URI: https://vdan.cz
Author: Daniel Micanek
Author URI: https://vdan.cz/about/
Description: Technical blog theme for vdan.cz inspired by the VirtualBytes look. DM Sans / DM Mono / Outfit typography, dark-first palette with light mode, featured hero, category filter strip, post cards with skill level and reading time, certification sidebar, and a built-in Knowledge Base page template that indexes the blog through the WordPress REST API.
Version: 1.11.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vdan
Tags: blog, dark-mode, custom-logo, custom-menu, featured-images, two-columns, right-sidebar, threaded-comments, translation-ready
*/

/* =============================================================================
   DESIGN TOKENS. Dark is the default; light applies via data-theme="light"
   (set by the no-flash script in header.php from localStorage / OS preference)
============================================================================= */
:root {
  --ff: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fm: 'DM Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --fd: 'Outfit', 'DM Sans', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --nav-h: 64px;
  --content-w: 780px;
  --wide-w: 1200px;

  --ac: #2563eb;
  --ac2: #1d4ed8;
  --ac3: #6ea1ff;
  --ac-soft: rgba(110,161,255,.14);
  --ac-text: #8fb6ff;
  --blue-hl: #6ea1ff;
  --purple: #bc8cff;

  --bg: #0e0f11;
  --bg2: #16181b;
  --bg3: #16181b;
  --bg4: #1f2226;
  --border: #26292e;
  --border2: #33363c;
  --text1: #ececee;
  --text2: #a3a6ad;
  --text3: #8a8e96;
  --text4: #7f838b;

  --green: #3fb950;  --green-s: rgba(63,185,80,.12);  --green-t: #56d364;
  --amber: #f0883e;  --amber-s: rgba(240,136,62,.12); --amber-t: #ffa657;
  --red:   #f85149;  --red-s: rgba(248,81,73,.12);    --red-t: #ff7b72;

  --code-bg: #16181b;
  --shadow: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.5);
  --grad-nav: linear-gradient(135deg, #0d2061, #1d4ed8 60%, #2563eb);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ac3: #1f5fd6;
  --ac-soft: rgba(31,95,214,.10);
  --ac-text: #1f5fd6;
  --blue-hl: #1f5fd6;
  --purple: #6639ba;
  --bg: #ffffff;
  --bg2: #f6f6f7;
  --bg3: #f6f6f7;
  --bg4: #ececee;
  --border: #e4e4e7;
  --border2: #d4d4d8;
  --text1: #18181b;
  --text2: #4b4b53;
  --text3: #5f5f68;
  --text4: #6b6b73;
  --green: #1a7f37;  --green-s: rgba(26,127,55,.12);  --green-t: #116329;
  --amber: #bf8700;  --amber-s: rgba(191,135,0,.14);  --amber-t: #7d4e00;
  --red:   #cf222e;  --red-s: rgba(207,34,46,.10);    --red-t: #a40e26;
  --code-bg: #f6f6f7;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.14);
  color-scheme: light;
}

/* =============================================================================
   RESET & BASE
============================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ac-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--fd); line-height: 1.2; letter-spacing: -.01em; margin: 1.6em 0 .6em; color: var(--text1); }
h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1.2em; }
code, kbd, pre, samp { font-family: var(--fm); font-size: .88em; }
code { background: var(--bg4); border: 1px solid var(--border); border-radius: 4px; padding: .1em .4em; color: var(--text1); }
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow: auto;
  line-height: 1.55;
  position: relative;
  margin: 1.4em 0;
}
pre code { background: none; border: 0; padding: 0; font-size: 13px; }
blockquote { margin: 1.4em 0; padding: .8em 1.2em; border-left: 3px solid var(--ac); background: var(--ac-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text2); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
table { border-collapse: collapse; width: 100%; font-size: .95em; margin: 1.4em 0; }
th, td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--bg2); font-family: var(--fm); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ac); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--blue-hl); outline-offset: 2px; }

/* =============================================================================
   LAYOUT
============================================================================= */
.container { max-width: var(--wide-w); margin: 0 auto; padding: 0 24px; }
.site-content { padding: 32px 0 64px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.content-layout.is-full { grid-template-columns: minmax(0, 1fr); }
.content-main { min-width: 0; }
@media (max-width: 960px) { .content-layout { grid-template-columns: minmax(0, 1fr); } }

/* =============================================================================
   HEADER / NAVIGATION
============================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 40px; height: 100%; position: relative; }
.site-branding { display: flex; align-items: center; gap: 12px; color: var(--text1); text-decoration: none !important; flex-shrink: 0; }
.site-logo-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-nav); color: #fff; font-family: var(--fd); font-weight: 800; font-size: 13px; letter-spacing: -.02em; overflow: hidden; }
.site-logo-icon img { width: 32px; height: 32px; object-fit: cover; }
.site-name { font-family: var(--fd); font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.site-name span { color: var(--text3); }
.site-tagline { display: block; font-family: var(--fm); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text4); margin-top: 2px; }
@media (max-width: 1240px) { .site-tagline { display: none; } .site-header .container { gap: 18px; } .main-navigation > ul { gap: 14px; } .main-navigation ul li a { font-size: 13.5px; } .nav-actions { gap: 6px; } }
@media (max-width: 1060px) and (min-width: 961px) { .main-navigation > ul { gap: 10px; } .main-navigation ul li a { font-size: 13px; letter-spacing: 0; } }

.main-navigation { display: flex; align-items: stretch; gap: 10px; flex: 1; align-self: stretch; }
.main-navigation > ul { list-style: none; margin: 0 auto 0 0; padding: 0; display: flex; gap: 28px; align-items: stretch; }
.main-navigation > ul > li { position: relative; display: flex; align-items: stretch; }
.main-navigation ul li a {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; color: var(--text2); padding: 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none !important; white-space: nowrap;
}
.main-navigation ul li a:hover { color: var(--text1); }
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a,
.main-navigation ul li.current-menu-ancestor > a { color: var(--text1); border-bottom-color: var(--blue-hl); }
.main-navigation .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; opacity: .7; }
.main-navigation ul ul {
  list-style: none; margin: 0; padding: 6px;
  position: absolute; top: 100%; left: -12px; min-width: 260px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: none; flex-direction: column; z-index: 50;
}
.main-navigation ul ul ul { top: -6px; left: 100%; }
.main-navigation ul li:hover > ul, .main-navigation ul li:focus-within > ul, .main-navigation ul li.is-open > ul { display: flex; }
.main-navigation ul ul li { display: block; position: relative; }
.main-navigation ul ul a { padding: 8px 12px; border: 0; margin: 0; border-radius: var(--radius-sm); white-space: normal; font-size: 13.5px; }
.main-navigation ul ul a:hover { background: var(--bg4); color: var(--text1); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 1px solid var(--border2); border-radius: var(--radius-sm); background: var(--bg2);
  color: var(--text1); font-family: var(--ff); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none !important;
}
.nav-btn:hover { border-color: var(--blue-hl); color: var(--blue-hl); }
.nav-btn.is-icon { width: 34px; padding: 0; justify-content: center; }
.nav-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn .vb-icon-sun { display: none; }
:root[data-theme="light"] .nav-btn .vb-icon-sun { display: block; }
:root[data-theme="light"] .nav-btn .vb-icon-moon { display: none; }
.nav-tools-btn { background: var(--ac-soft); border-color: transparent; color: var(--ac-text); }
.nav-tools-dd { position: relative; }
.nav-tools-menu {
  list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; right: 0; top: 100%; min-width: 300px; max-height: 70vh; overflow: auto;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); display: none; z-index: 60;
}
.nav-tools-dd.is-open .nav-tools-menu { display: block; }
.nav-tools-menu li { display: block; }
.nav-tools-menu a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text2); font-size: 13.5px; text-decoration: none !important; }
.nav-tools-menu a:hover { background: var(--bg4); color: var(--text1); }
@media (max-width: 960px) { .nav-tools-menu { position: static; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; } }
.menu-toggle { display: none; }

/* search panel */
.nav-search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); display: none; padding: 14px 24px; }
.nav-search-panel.is-open { display: block; }
.nav-search-panel-inner { max-width: var(--content-w); margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.search-form { display: flex; gap: 8px; width: 100%; }
.search-field {
  flex: 1; padding: 9px 12px; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-sm);
  color: var(--text1); font-family: var(--fm); font-size: 13px; outline: none; min-width: 0;
}
.search-field:focus { border-color: var(--blue-hl); }
.search-submit {
  padding: 9px 14px; background: var(--ac); color: #fff; border: 0; border-radius: var(--radius-sm);
  font-family: var(--fm); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
}
.search-submit:hover { background: var(--ac2); }

@media (max-width: 960px) {
  .site-header .container { gap: 12px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .main-navigation { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; display: none; padding: 12px 24px 18px; box-shadow: var(--shadow-md); max-height: calc(100vh - var(--nav-h)); overflow: auto; }
  .main-navigation.is-open { display: flex; }
  .main-navigation > ul { flex-direction: column; gap: 0; width: 100%; }
  .main-navigation ul li a { padding: 10px 0; border-bottom: 1px solid var(--border); margin: 0; }
  .main-navigation ul ul { position: static; display: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; min-width: 0; }
  .main-navigation ul li:hover > ul { display: none; }
  .main-navigation ul li.is-open > ul { display: flex; }
  .nav-actions { margin-left: 0; margin-top: 12px; }
}

/* reading progress (single) */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--ac), var(--purple)); z-index: 200; transition: width .1s linear; }

/* =============================================================================
   FEATURED HERO
============================================================================= */
.vb-featured-hero { margin: 0 0 36px; }
.vb-featured-card {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center;
  color: inherit; text-decoration: none !important;
}
.vb-featured-eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--fm); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text3); margin-bottom: 14px; }
.vb-featured-pill { background: var(--ac-soft); color: var(--ac-text); padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.vb-featured-cat { color: var(--text1); font-weight: 600; }
.vb-featured-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin: 0 0 14px; letter-spacing: -.02em; }
.vb-featured-excerpt { color: var(--text2); font-size: 15.5px; margin: 0 0 16px; }
.vb-featured-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.vb-featured-cta { font-weight: 600; color: var(--text1); display: inline-flex; align-items: center; gap: 6px; }
.vb-featured-card:hover .vb-featured-cta { color: var(--blue-hl); }
.vb-featured-media { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg2); aspect-ratio: 16/9; }
.vb-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.vb-featured-media.is-placeholder { display: grid; place-items: center; font-family: var(--fd); font-weight: 800; font-size: 56px; color: var(--border2); }
@media (max-width: 760px) { .vb-featured-card { grid-template-columns: 1fr; gap: 20px; } .vb-featured-media { order: -1; } }

/* =============================================================================
   CHIPS / BADGES
============================================================================= */
.vb-chip, .vb-skill-badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--border2); background: var(--bg2);
  font-family: var(--ff); font-size: 12px; font-weight: 500; color: var(--text2); white-space: nowrap;
}
.vb-chip.is-verified { color: var(--green-t); background: var(--green-s); border-color: transparent; }
.vb-skill-badge { font-weight: 600; }
.vb-skill-beginner { color: var(--green-t); background: var(--green-s); border-color: transparent; }
.vb-skill-intermediate { color: var(--amber-t); background: var(--amber-s); border-color: transparent; }
.vb-skill-expert { color: var(--red-t); background: var(--red-s); border-color: transparent; }

/* =============================================================================
   CATEGORY FILTER STRIP
============================================================================= */
.vb-cat-strip { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 22px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.vb-cat-strip a {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border2); background: var(--bg); color: var(--text2); font-size: 13px; font-weight: 500; text-decoration: none !important;
}
.vb-cat-strip a:hover { border-color: var(--blue-hl); color: var(--text1); }
.vb-cat-strip a.is-active { background: var(--text1); color: var(--bg); border-color: var(--text1); }
.vb-cat-strip a small { font-family: var(--fm); font-size: 10px; margin-left: 6px; color: inherit; opacity: .6; }

/* =============================================================================
   POST CARDS
============================================================================= */
.posts-grid { display: grid; gap: 28px; }
.post-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; padding: 0 0 28px; border-bottom: 1px solid var(--border); }
.post-card:last-child { border-bottom: 0; }
.post-card.is-no-thumb { grid-template-columns: minmax(0, 1fr); }
.post-card-thumb { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg2); aspect-ratio: 16/9; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--fm); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); margin-bottom: 8px; }
.post-cat { color: var(--ac-text); font-weight: 700; }
.post-card-title { font-size: 1.3rem; margin: 0 0 8px; font-weight: 700; }
.post-card-title a { color: var(--text1); }
.post-card-title a:hover { color: var(--blue-hl); text-decoration: none; }
.post-card-excerpt { color: var(--text2); font-size: 14.5px; margin: 0 0 12px; }
.post-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.post-card-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.read-more-btn { font-size: 13px; font-weight: 600; color: var(--text1); }
.read-more-btn:hover { color: var(--blue-hl); text-decoration: none; }
@media (max-width: 640px) { .post-card { grid-template-columns: 1fr; gap: 14px; } }

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related-grid .post-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 0; overflow: hidden; background: var(--bg2); }
.related-grid .post-card-thumb { border: 0; border-radius: 0; }
.related-grid .post-card-body { padding: 14px 16px 16px; }
.related-grid .post-card-title { font-size: 1.02rem; }
.related-grid .post-card-excerpt, .related-grid .post-card-footer { display: none; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

.section-heading { font-size: 1.2rem; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.archive-header { margin: 0 0 24px; }
.archive-header h1 { margin: 0 0 6px; font-size: 1.9rem; }
.archive-header .archive-description { color: var(--text2); }
.archive-kicker { font-family: var(--fm); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text3); }

/* =============================================================================
   PAGINATION
============================================================================= */
.navigation.pagination { margin: 32px 0 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border2); border-radius: var(--radius-sm); color: var(--text2); font-family: var(--fm); font-size: 13px; text-decoration: none !important; }
.nav-links .page-numbers:hover { border-color: var(--blue-hl); color: var(--text1); }
.nav-links .page-numbers.current { background: var(--ac); border-color: var(--ac); color: #fff; }
.nav-links .page-numbers.dots { border: 0; }

/* =============================================================================
   SINGLE POST / PAGE
============================================================================= */
.post-article { max-width: var(--content-w); }
/* Full width (tools) template: interactive content gets the whole container. */
.post-article.is-wide { max-width: none; }
.post-article.is-wide .entry-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.post-article.is-wide .entry-content { font-size: 16px; }
.post-article.is-wide .entry-content > p,
.post-article.is-wide .entry-content > ul,
.post-article.is-wide .entry-content > ol,
.post-article.is-wide .entry-content > h2,
.post-article.is-wide .entry-content > h3 { max-width: 960px; }
.post-article.is-wide .entry-content iframe,
.post-article.is-wide .entry-content .wp-block-html,
.post-article.is-wide .entry-content .wp-block-embed,
.post-article.is-wide .entry-content .wp-block-table,
.post-article.is-wide .entry-content figure,
.post-article.is-wide .entry-content pre { width: 100%; max-width: none; }
.post-article.is-wide .entry-content iframe { min-height: 70vh; border: 1px solid var(--border); border-radius: var(--radius); }
.entry-header { margin-bottom: 26px; }
.entry-header .post-card-meta { margin-bottom: 12px; }
.entry-title { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin: 0 0 14px; letter-spacing: -.02em; }
.entry-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-thumb { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 28px; }
.entry-content { font-size: 16.5px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2em; padding-bottom: .3em; border-bottom: 1px solid var(--border); }
.entry-content img { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: 13px; color: var(--text3); text-align: center; margin-top: 8px; font-family: var(--fm); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .35em; }
.entry-content .wp-block-code, .entry-content pre.wp-block-code { background: var(--code-bg); }
.entry-content .wp-block-table table { font-size: .92em; }
.entry-content iframe { max-width: 100%; }
.wp-block-group.has-background { border-radius: var(--radius); }
.alignwide { max-width: var(--wide-w); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

/* copy button on code blocks (added by theme.js) */
.vb-copy-btn { position: absolute; top: 8px; right: 8px; height: 26px; padding: 0 9px; border: 1px solid var(--border2); background: var(--bg4); color: var(--text2); border-radius: 5px; font-family: var(--fm); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; opacity: 0; transition: opacity .15s; }
pre:hover .vb-copy-btn, .vb-copy-btn:focus { opacity: 1; }
.vb-copy-btn.is-done { color: var(--green-t); border-color: var(--green-t); }

.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--border); }
.post-tags-label { font-family: var(--fm); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text3); margin-right: 4px; }
.tag-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border2); font-size: 12.5px; color: var(--text2); text-decoration: none !important; }
.tag-pill:hover { border-color: var(--blue-hl); color: var(--text1); }

.author-card { display: flex; gap: 16px; align-items: center; margin: 32px 0 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg2); }
.author-card img { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.author-card-name { font-family: var(--fd); font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.author-card-bio { font-size: 13.5px; color: var(--text2); margin: 0; }

.related-posts { margin-top: 48px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.post-nav a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text1); text-decoration: none !important; background: var(--bg2); }
.post-nav a:hover { border-color: var(--blue-hl); }
.post-nav a small { display: block; font-family: var(--fm); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); margin-bottom: 4px; }
.post-nav .nav-next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }

/* =============================================================================
   SIDEBAR / WIDGETS
============================================================================= */
.sidebar { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.widget { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg2); overflow: hidden; padding: 14px 16px; font-size: 14px; }
.widget > *:last-child { margin-bottom: 0; }
.widget-title, .widget .wp-block-heading { margin: -14px -16px 12px; padding: 12px 16px; font-family: var(--fm); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text3); border-bottom: 1px solid var(--border); }
.widget .wp-block-group .wp-block-heading { margin-top: 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--text1); }
.widget li a:hover { color: var(--blue-hl); }
.widget .post-date { display: block; font-family: var(--fm); font-size: 11px; color: var(--text4); }
.widget .tagcloud, .widget .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.widget .tagcloud a, .widget .wp-block-tag-cloud a { font-size: 12px !important; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border2); color: var(--text2); text-decoration: none; }
.widget .tagcloud a:hover, .widget .wp-block-tag-cloud a:hover { border-color: var(--blue-hl); color: var(--text1); }
.widget select { width: 100%; padding: 8px 10px; background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius-sm); color: var(--text1); font-family: var(--fm); font-size: 12px; }
.widget .search-form { flex-direction: column; }
.widget .search-form .search-submit { width: 100%; }
.widget img { border-radius: var(--radius-sm); }
.widget .wp-block-image { margin: 0; }

/* Certification widget */
.vb-cert-list li { padding: 0; border: 0; }
.vb-cert-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.vb-cert-list li:last-child .vb-cert-row { border-bottom: 0; }
.vb-cert-thumb { width: 54px; height: 54px; flex-shrink: 0; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border); display: grid; place-items: center; padding: 4px; }
.vb-cert-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 0; }
.vb-cert-name { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.3; color: var(--text1); }
.vb-cert-sub { display: block; font-family: var(--fm); font-size: 11px; color: var(--text3); margin-top: 2px; }
.vb-cert-list li.is-wide .vb-cert-row { flex-direction: column; align-items: stretch; text-align: center; }
a.vb-cert-row { color: inherit; text-decoration: none !important; border-radius: var(--radius-sm); transition: background .15s, transform .15s; }
a.vb-cert-row:hover { background: var(--bg4); }
a.vb-cert-row:hover .vb-cert-name { color: var(--blue-hl); }
a.vb-cert-row .vb-cert-sub::after { content: ' ↗'; opacity: .6; }
.vb-cert-list li.is-wide .vb-cert-thumb { width: 100%; height: auto; aspect-ratio: 2/1; }

/* Tools / KB CTA widget */
.widget-tools-cta { background: var(--grad-nav); color: #fff; border-color: transparent; }
.widget-tools-cta .widget-title { color: rgba(255,255,255,.75); border-bottom-color: rgba(255,255,255,.2); }
.widget-tools-cta p { color: rgba(255,255,255,.85); font-size: 13.5px; }
.widget-tools-cta .vb-cta-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #fff; color: #0d2061; border-radius: var(--radius-sm); font-weight: 700; font-size: 13px; text-decoration: none !important; }

/* =============================================================================
   FOOTER
============================================================================= */
.site-footer { border-top: 1px solid var(--border); background: var(--bg2); margin-top: 40px; }
.footer-inner { max-width: var(--wide-w); margin: 0 auto; padding: 28px 24px; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.footer-widgets .widget { background: transparent; border: 0; padding: 0; }
.footer-widgets .widget-title { margin: 0 0 10px; padding: 0 0 10px; }
@media (max-width: 760px) { .footer-widgets { grid-template-columns: 1fr; } }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: 13px; color: var(--text3); }
.footer-mark { width: 24px; height: 24px; border-radius: 6px; }
.footer-copy a { color: var(--text1); }
.footer-copy-links { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.footer-copy-links a { color: var(--text2); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.footer-menu a { color: var(--text2); font-size: 13px; }

/* =============================================================================
   COMMENTS
============================================================================= */
.comments-area { margin-top: 48px; max-width: var(--content-w); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 16px 0; border-top: 1px solid var(--border); }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-author img { display: inline-block; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-family: var(--fm); font-size: 11px; color: var(--text4); }
.comment-content { font-size: 15px; }
.comment-form label { display: block; font-family: var(--fm); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 9px 12px; background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius-sm); color: var(--text1); font-family: var(--ff); font-size: 14px; }
.comment-form .submit { padding: 10px 18px; background: var(--ac); color: #fff; border: 0; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }

/* =============================================================================
   404 / UTILITY
============================================================================= */
.vb-empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--border2); border-radius: var(--radius); color: var(--text2); }
.vb-empty h2 { margin-top: 0; }
.wp-caption { max-width: 100%; }
.sticky { position: static; }
.bypostauthor { display: block; }
.gallery-caption { display: block; }
@media print { .site-header, .sidebar, .site-footer, .reading-progress, .vb-copy-btn, .related-posts, .comments-area { display: none !important; } .content-layout { display: block; } }

/* ------------------------------------------------------------------
   Easy Table of Contents: follow the theme tokens in dark and light
   (the plugin paints a white box with its own inline colours)
------------------------------------------------------------------ */
#ez-toc-container,
.ez-toc-sticky-container .ez-toc-sticky-fixed {
	background: var(--bg2) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius) !important;
	box-shadow: none !important;
	color: var(--text2) !important;
}
#ez-toc-container { padding: 14px 18px !important; margin: 0 0 28px !important; width: auto !important; max-width: 560px; }
#ez-toc-container .ez-toc-title,
#ez-toc-container p.ez-toc-title,
.ez-toc-sticky-title,
.ez-toc-sticky-container .ez-toc-sticky-title {
	color: var(--text3) !important;
	font-family: var(--fm) !important;
	font-size: 11px !important;
	font-weight: 500 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
}
#ez-toc-container .ez-toc-list,
#ez-toc-container ul,
.ez-toc-sticky-container ul { background: transparent !important; }
#ez-toc-container a.ez-toc-link,
#ez-toc-container a,
#ez-toc-container li,
#ez-toc-container li::before,
.ez-toc-sticky-container a.ez-toc-link,
.ez-toc-sticky-container a,
.ez-toc-sticky-container li,
.ez-toc-sticky-container li::before {
	color: var(--text2) !important;
	background: transparent !important;
	text-decoration: none !important;
	font-size: 14px;
	line-height: 1.5;
}
#ez-toc-container a.ez-toc-link:hover,
#ez-toc-container a.ez-toc-link:focus,
.ez-toc-sticky-container a.ez-toc-link:hover { color: var(--blue) !important; }
#ez-toc-container a.ez-toc-link.active,
.ez-toc-sticky-container a.ez-toc-link.active { color: var(--text1) !important; font-weight: 600; }
#ez-toc-container nav ul li { margin: 3px 0 !important; }
/* toggle button (burger icon) */
#ez-toc-container .ez-toc-toggle,
#ez-toc-container .ez-toc-toggle label,
#ez-toc-container .ez-toc-js-icon-con,
#ez-toc-container .ez-toc-title-container p:nth-child(2) label {
	color: var(--text2) !important;
	background: var(--bg) !important;
	border-color: var(--border2) !important;
}
#ez-toc-container .ez-toc-toggle label:hover,
#ez-toc-container .ez-toc-js-icon-con:hover { border-color: var(--blue) !important; color: var(--blue) !important; }
#ez-toc-container .ez-toc-icon-toggle-span svg,
#ez-toc-container .ez-toc-toggle svg,
.ez-toc-sticky-container svg { fill: var(--text2) !important; stroke: var(--text2) !important; }
/* sticky side panel and its tab */
.ez-toc-sticky-container .ez-toc-sticky-fixed { padding: 14px 18px !important; }
.ez-toc-sticky-container .ez-toc-sticky-fixed a.ez-toc-link { color: var(--text2) !important; }
.ez-toc-sticky-container .ez-toc-close-icon,
.ez-toc-sticky-container .ez-toc-close-icon svg { color: var(--text2) !important; fill: var(--text2) !important; }
.ez-toc-sticky-container .ez-toc-open-icon,
.ez-toc-sticky-container .ez-toc-sticky-toggle-div,
.ez-toc-sticky-container button {
	background: var(--bg2) !important;
	color: var(--text1) !important;
	border: 1px solid var(--border2) !important;
	box-shadow: none !important;
}
/* sticky TOC: the side panel and its "Index" tab (plugin markup: .ez-toc-sticky > a.ez-toc-open-icon / .ez-toc-sticky-fixed) */
.ez-toc-sticky .ez-toc-sticky-fixed,
.ez-toc-sticky-fixed {
	background: var(--bg2) !important;
	border: 1px solid var(--border) !important;
	color: var(--text2) !important;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .35) !important;
}
.ez-toc-sticky .ez-toc-sticky-fixed a.ez-toc-link,
.ez-toc-sticky .ez-toc-sticky-fixed li,
.ez-toc-sticky .ez-toc-sticky-fixed li::before { color: var(--text2) !important; background: transparent !important; }
.ez-toc-sticky .ez-toc-sticky-fixed a.ez-toc-link:hover { color: var(--blue) !important; }
.ez-toc-sticky .ez-toc-sticky-title { color: var(--text3) !important; }
.ez-toc-sticky .ez-toc-close-icon { color: var(--text2) !important; }
a.ez-toc-open-icon,
.ez-toc-sticky a.ez-toc-open-icon {
	top: auto !important;
	bottom: 24px !important;
	left: 0 !important;
	background: var(--bg2) !important;
	color: var(--text1) !important;
	border: 1px solid var(--border2) !important;
	border-left: 0 !important;
	border-radius: 0 8px 8px 0 !important;
	box-shadow: none !important;
	font-family: var(--fm) !important;
	font-size: 11px !important;
	letter-spacing: .1em !important;
	text-transform: uppercase !important;
	opacity: .85;
}
a.ez-toc-open-icon:hover { opacity: 1; color: var(--blue) !important; border-color: var(--blue) !important; }
a.ez-toc-open-icon .text, a.ez-toc-open-icon .arrow { color: inherit !important; }

/* ------------------------------------------------------------------
   Generated cover cards (posts without a featured image)
   Always dark, like a terminal card; the accent hue follows the category.
------------------------------------------------------------------ */
.post-card-thumb, .vb-featured-media, .entry-thumb { container-type: inline-size; }
.vb-cover {
	--cover-accent: hsl(var(--cover-hue, 212) 85% 70%);
	--cover-bg: #0b1020;
	--cover-bg2: #0f172a;
	--cover-line: rgba(148, 163, 184, .18);
	--cover-text: #e5e7eb;
	--cover-muted: #94a3b8;
	position: relative; display: flex; flex-direction: column; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
	background: radial-gradient(120% 90% at 100% 0%, rgba(99, 102, 241, .18), transparent 55%), radial-gradient(80% 70% at 0% 100%, hsl(var(--cover-hue, 212) 70% 50% / .16), transparent 60%), linear-gradient(180deg, var(--cover-bg2), var(--cover-bg));
	color: var(--cover-text); border-radius: inherit; padding: 5.5cqw 5.5cqw 5cqw; box-sizing: border-box; text-align: left;
}
.vb-cover::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #2563eb, #22d3ee 50%, #22c55e); }
.vb-cover-top { display: flex; align-items: center; justify-content: space-between; gap: 2.5cqw; margin-bottom: 2.6cqw; min-width: 0; }
.vb-cover-brand { display: flex; align-items: center; gap: 1.6cqw; flex: none; font-family: var(--fd); font-weight: 700; font-size: max(11px, 2.9cqw); letter-spacing: -.01em; }
.vb-cover-mark { display: inline-grid; place-items: center; width: max(16px, 4.4cqw); height: max(16px, 4.4cqw); border-radius: 1.2cqw; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; font-size: max(8px, 2cqw); font-family: var(--fm); font-weight: 700; }
.vb-cover-name b { color: var(--cover-accent); font-weight: 700; }
.vb-cover-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr); gap: 4cqw; align-items: center; flex: 1; min-height: 0; }
.vb-cover-kicker { font-family: var(--fm); font-size: max(9.5px, 2.2cqw); color: var(--cover-accent); margin: 0; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-cover-title { font-family: var(--fd); font-weight: 800; font-size: 5.3cqw; line-height: 1.08; letter-spacing: -.02em; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 2cqw; }
.vb-cover-sub { font-family: var(--ff); font-size: max(10.5px, 2.35cqw); line-height: 1.4; color: var(--cover-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 2.4cqw; }
.vb-cover-chips { display: flex; flex-wrap: wrap; gap: 1.2cqw; }
.vb-cover-chips span { font-family: var(--fm); font-size: max(8.5px, 1.85cqw); padding: .5cqw 1.8cqw; border-radius: 99px; border: 1px solid var(--cover-line); color: var(--cover-muted); white-space: nowrap; }
.vb-cover-chips span.is-ok { color: #4ade80; border-color: rgba(74, 222, 128, .45); }
.vb-cover-panel { background: rgba(2, 6, 23, .55); border: 1px solid var(--cover-line); border-radius: 2cqw; padding: 2.6cqw 3cqw; font-family: var(--fm); min-width: 0; }
.vb-cover-panel-h { font-size: max(10px, 2.3cqw); font-weight: 700; color: #fff; padding-bottom: 1.6cqw; margin-bottom: 1.6cqw; border-bottom: 1px solid var(--cover-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-cover-row { display: grid; grid-template-columns: minmax(0, 6.5em) minmax(0, 1fr); gap: 1.5cqw; font-size: max(9px, 2.05cqw); line-height: 1.75; }
.vb-cover-row span { color: var(--cover-muted); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-cover-row b { font-weight: 500; color: var(--cover-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-cover-row b.t-warn { color: #fbbf24; }
.vb-cover-row b.t-ok { color: #4ade80; }
.vb-cover-row b.t-muted { color: var(--cover-text); }
@container (max-width: 340px) {
	.vb-cover-main { grid-template-columns: 1fr; }
	.vb-cover-panel, .vb-cover-sub { display: none; }
	.vb-cover-title { font-size: 7cqw; -webkit-line-clamp: 3; }
	.vb-cover-kicker { font-size: 3cqw; }
	.vb-cover-brand { font-size: 3.6cqw; }
	.vb-cover-chips span { font-size: 2.6cqw; }
}
@container (min-width: 700px) {
	.vb-cover { padding: 3.6cqw 4cqw 3.4cqw; }
	.vb-cover-top { margin-bottom: 2cqw; }
	.vb-cover-brand { font-size: 2.1cqw; }
	.vb-cover-mark { width: 3.2cqw; height: 3.2cqw; font-size: 1.5cqw; border-radius: 1cqw; }
	.vb-cover-kicker { font-size: 1.55cqw; }
	.vb-cover-title { font-size: 3.7cqw; -webkit-line-clamp: 3; margin-bottom: 1.4cqw; }
	.vb-cover-sub { font-size: 1.7cqw; margin-bottom: 1.6cqw; }
	.vb-cover-chips span { font-size: 1.3cqw; padding: .35cqw 1.3cqw; }
	.vb-cover-panel { padding: 1.9cqw 2.2cqw; border-radius: 1.4cqw; }
	.vb-cover-panel-h { font-size: 1.65cqw; }
	.vb-cover-row { font-size: 1.45cqw; line-height: 1.8; }
}
.vb-featured-media.is-cover { aspect-ratio: auto; }
.vb-featured-media.is-cover .vb-cover { aspect-ratio: 16 / 10; }
.entry-thumb.is-cover { margin: 0 0 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.entry-thumb.is-cover .vb-cover { aspect-ratio: 21 / 9; }
@media (max-width: 640px) { .entry-thumb.is-cover .vb-cover { aspect-ratio: 16 / 10; } }

/* ------------------------------------------------------------------
   Post list as a card grid (home, archives, search)
------------------------------------------------------------------ */
.posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.post-card, .post-card.is-no-thumb {
	display: flex; flex-direction: column; grid-template-columns: none; gap: 0; padding: 0;
	border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg2); overflow: hidden;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--border2); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.post-card:last-child { border-bottom: 1px solid var(--border); }
.post-card-thumb { border: 0; border-radius: 0; aspect-ratio: 16 / 9; background: var(--bg); }
.post-card-thumb.is-cover { aspect-ratio: auto; }
.post-card-thumb.is-cover a { display: block; }
.post-card-thumb.is-cover .vb-cover { border-radius: 0; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.post-card-title { font-size: 1.12rem; line-height: 1.3; margin: 0 0 8px; }
.post-card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; margin-bottom: 14px; }
.post-card-footer { margin-top: auto; }
.related-grid .post-card-body { padding: 14px 16px 16px; }
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .post-card { grid-template-columns: none; gap: 0; } }

/* ------------------------------------------------------------------
   TablePress / DataTables: follow the theme tokens (dark and light)
   The plugin paints its own light palette through CSS variables on
   .tablepress; redefining them here keeps the plugin's layout intact.
------------------------------------------------------------------ */
body .tablepress {
	--text-color: var(--text1);
	--head-text-color: var(--text3);
	--head-bg-color: var(--bg2);
	--head-active-bg-color: var(--bg4);
	--head-active-text-color: var(--text1);
	--head-sort-arrow-color: var(--text3);
	--odd-text-color: var(--text1);
	--odd-bg-color: var(--bg);
	--even-text-color: var(--text1);
	--even-bg-color: var(--bg2);
	--hover-text-color: var(--text1);
	--hover-bg-color: var(--ac-soft);
	--border-color: var(--border);
	--padding: 8px 12px;
	font-family: var(--ff);
	font-size: 13.5px;
	color: var(--text1);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
}
body .tablepress > :not(caption) > * > * { border-bottom: 1px solid var(--border); }
body .tablepress > :where(thead, tfoot) > tr > * {
	font-family: var(--fm); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	border-bottom: 1px solid var(--border2);
}
body .tablepress thead .dt-column-order::before, body .tablepress thead .dt-column-order::after { color: var(--text3); }
body .tablepress a { color: var(--ac-text); }
body .tablepress a:hover { color: var(--blue-hl); }
body .tablepress code, body .tablepress .mono { font-family: var(--fm); font-size: 12px; }
body .tablepress tbody td.dt-type-numeric, body .tablepress tbody td.dt-right { font-family: var(--fm); font-size: 12.5px; }
/* DataTables controls: search, length, info, paging */
.dt-container { color: var(--text2); font-family: var(--ff); font-size: 13px; }
.dt-container .dt-search label, .dt-container .dt-length label, .dt-container .dt-info { color: var(--text3); font-family: var(--fm); font-size: 11.5px; }
.dt-container .dt-input, .dt-container .dt-search input, .dt-container .dt-length select {
	background: var(--bg) !important; color: var(--text1) !important; border: 1px solid var(--border2) !important; border-radius: var(--radius-sm) !important;
	padding: 6px 10px; font-family: var(--fm); font-size: 12.5px; outline: none;
}
.dt-container .dt-input:focus, .dt-container .dt-search input:focus { border-color: var(--blue-hl) !important; }
.dt-container .dt-paging .dt-paging-button { color: var(--text2) !important; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent !important; }
.dt-container .dt-paging .dt-paging-button:hover { background: var(--bg4) !important; color: var(--text1) !important; border-color: var(--border2); }
.dt-container .dt-paging .dt-paging-button.current, .dt-container .dt-paging .dt-paging-button.current:hover { background: var(--ac) !important; color: #fff !important; border-color: var(--ac); }
.dt-container .dt-paging .dt-paging-button.disabled, .dt-container .dt-paging .dt-paging-button.disabled:hover { color: var(--text4) !important; background: transparent !important; border-color: transparent; cursor: default; }
.dt-container .dt-scroll-body { border-color: var(--border) !important; }
/* older TablePress/DataTables 1.x markup, in case a page still uses it */
.dataTables_wrapper, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_filter label, .dataTables_wrapper .dataTables_length label { color: var(--text3); font-family: var(--fm); font-size: 11.5px; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { background: var(--bg) !important; color: var(--text1) !important; border: 1px solid var(--border2) !important; border-radius: var(--radius-sm); padding: 6px 10px; font-family: var(--fm); }
.dataTables_wrapper .dataTables_paginate .paginate_button { color: var(--text2) !important; background: transparent !important; border: 1px solid transparent !important; border-radius: var(--radius-sm); }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--bg4) !important; color: var(--text1) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--ac) !important; color: #fff !important; }
/* plain content tables: zebra rows and a hover, same tokens */
.entry-content table:not(.tablepress) tbody tr:nth-child(even) td { background: var(--bg2); }
.entry-content table:not(.tablepress) tbody tr:hover td { background: var(--ac-soft); }
.entry-content table:not(.tablepress) { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
