/*
Theme Name: Eduard Dossier
Theme URI: https://www.jameseduard.com/
Author: James Eduard
Author URI: https://www.jameseduard.com/
Description: Dark "dossier" theme for the James Eduard DevSecOps blog, in the same design language as Kage Security Lab. Dropdown category menu, lead-post blog index, card grid with generated covers, sticky post sidebar, Customizer accent colour and hero, and an Elementor-friendly full-width template. No external fonts or trackers.
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eduard-dossier
Tags: blog, dark, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --bg: #07080a;
  --bg-2: #0b0d10;
  --panel: #0f1216;
  --panel-2: #141820;
  --line: #1d222b;
  --line-2: #2a313c;
  --text: #e7e9ec;
  --muted: #8b94a3;
  --dim: #5d6573;
  --accent: #ff3b30;
  --accent-2: #ff6a3d;
  --ok: #3ddc97;
  --warn: #ffb020;
  --info: #5cc8ff;
  --radius: 10px;
  --wrap: 1200px;
  --sans: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.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: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.ico { width: 1.05em; height: 1.05em; vertical-align: -0.15em; flex: none; }

/* ---------- Buttons & form controls ---------- */
.btn, .wp-block-button__link, button, input[type="submit"], .post-password-form input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 .95rem/1 var(--sans); padding: .85em 1.25em; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
  background: var(--accent); color: #fff;
}
.btn:hover, .wp-block-button__link:hover, button:hover, input[type="submit"]:hover { background: var(--accent-2); color: #fff; }
.btn:active, button:active { transform: translateY(1px); }
.btn-outline, .is-style-outline .wp-block-button__link { background: none; border-color: var(--line-2); color: var(--text); }
.btn-outline:hover, .is-style-outline .wp-block-button__link:hover { background: none; border-color: var(--accent); color: #fff; }
.btn-sm { padding: .6em .9em; font-size: .85rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], textarea, select {
  font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 8px; padding: .7rem .9rem; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
select option { background: var(--panel); }
label { font-size: .85rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex: none; }
.brand:hover { color: inherit; }
.brand .custom-logo { max-height: 34px; width: auto; display: block; }
.logo-mark { width: 30px; height: 30px; }
.lm-shadow { fill: var(--accent); opacity: .9; }
.lm-front { fill: var(--bg); stroke: var(--text); stroke-width: 1.6; }
.lm-text { fill: var(--text); font: 800 9.5px/1 var(--sans); letter-spacing: .02em; }
.brand-name { font: 800 1.05rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; display: flex; flex-direction: column; gap: .2rem; }
.brand-sub { font: 500 .6rem/1.2 var(--mono); letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }

/* Primary menu (wp_nav_menu) with dropdowns */
.primary-nav { display: flex; align-items: center; gap: .5rem; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.menu li { position: relative; }
.menu > li > a { display: flex; align-items: center; gap: .3rem; padding: .5rem .75rem; text-decoration: none; color: var(--muted); font-weight: 550; font-size: .93rem; white-space: nowrap; }
.menu > li > a:hover, .menu > li:focus-within > a,
.menu > .current-menu-item > a, .menu > .current-menu-ancestor > a, .menu > .current_page_item > a { color: #fff; }
.menu > .current-menu-item > a, .menu > .current-menu-ancestor > a, .menu > .current_page_item > a { box-shadow: inset 0 -2px 0 var(--accent); }
.menu > .menu-item-has-children > a::after { content: ""; width: .4em; height: .4em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.menu .sub-menu {
  list-style: none; margin: 0; padding: .6rem; position: absolute; top: calc(100% + 10px); left: -.5rem; min-width: 240px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 30px 60px -20px #000;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; z-index: 60;
}
.menu .sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu .sub-menu a { display: block; padding: .45rem .6rem; border-radius: 6px; text-decoration: none; font-size: .9rem; color: var(--text); }
.menu .sub-menu a:hover, .menu .sub-menu .current-menu-item > a { background: var(--panel-2); color: #fff; }
.menu .sub-menu .menu-item-has-children > a { font: 600 .68rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); padding-top: .7rem; }
.menu .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 .3rem .6rem; min-width: 0; border-left: 1px solid var(--line-2); margin-left: .6rem; }
.menu .sub-menu .sub-menu::before { display: none; }
/* Large sub-menus get two columns */
.menu > li > .sub-menu:has(> li:nth-child(7)) { columns: 2; column-gap: .5rem; min-width: 420px; }
.menu > li > .sub-menu:has(> li:nth-child(7)) > li { break-inside: avoid; }
.menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: -.5rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 8px; background: none; border: 1px solid transparent; color: var(--muted); }
.icon-btn:hover { background: var(--panel-2); color: #fff; }
.icon-btn .ico { width: 20px; height: 20px; }
.nav-toggle { display: none; }
.header-actions .header-social { display: none; margin: 0 .25rem 0 0; gap: .1rem; }
.header-actions .header-social a { width: 32px; height: 32px; border: 0; border-radius: 7px; }
.header-actions .header-social a:hover { background: var(--panel-2); }
.header-actions .header-social .ico { width: 16px; height: 16px; }
.primary-nav .nav-social { display: none; }
@media (min-width: 1280px) { .header-actions .header-social { display: flex; } }

.search-drop { border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 1rem 0; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: .5rem 16px 1.25rem; flex-direction: column; align-items: stretch; }
  .nav-open .primary-nav { display: flex; }
  .primary-nav .nav-social { display: flex; margin-top: 1rem; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li > a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .menu > .current-menu-item > a, .menu > .current-menu-ancestor > a { box-shadow: none; color: var(--accent); }
  .menu .sub-menu, .menu > li > .sub-menu:has(> li:nth-child(7)) { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none;
    columns: 1; min-width: 0; padding: .25rem 0 .5rem 1rem; display: none; }
  .menu li.is-open > .sub-menu { display: block; }
  .menu .sub-menu .sub-menu { display: block; }
}

/* ---------- Common blocks ---------- */
.eyebrow { font: 500 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin: 0 0 1rem; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 64ch; }
.tag { display: inline-block; font: 500 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: .4em .6em; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line-2)); border-radius: 4px; color: var(--accent); text-decoration: none; }
a.tag:hover { background: var(--accent); color: #fff; }
.tag-plain { border-color: var(--line-2); color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; gap: .5em; align-items: center; font: 500 .78rem/1 var(--mono); padding: .55em .85em; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--text); text-decoration: none; }
.chip:hover { border-color: var(--muted); color: #fff; }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-n { color: var(--dim); }
.chip.is-on .chip-n { color: #ffd9d6; }
.section-label { font: 500 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin: 3rem 0 1.25rem; }

/* ---------- Hero (blog home, page 1) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 60% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 80% at 60% 30%, #000 30%, transparent 80%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 45% 70% at 92% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%); }
.hero-bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font: 500 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--muted); padding-bottom: 1.1rem; border-bottom: 1px dashed var(--line-2); margin-bottom: clamp(2rem, 4vw, 3rem); }
.hero-live { color: var(--ok); display: inline-flex; gap: .6em; align-items: center; }
.hero-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -0.035em; margin-bottom: .4em; }
.hero h1 .hl { color: var(--accent); display: block; }
.hero-search { margin-top: 2rem; max-width: 560px; }
.hero-search .panel-title { margin-bottom: .75rem; }
.term { background: #050607; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 45%, transparent); }
.term-bar { margin: 0; padding: .7rem 1rem; font: .72rem var(--mono); color: var(--dim); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .4rem; }
.term-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.term-bar b { margin-left: auto; font-weight: 400; }
.term pre { margin: 0; padding: 1.25rem; font: .8rem/1.85 var(--mono); overflow-x: auto; color: #c9ced6; white-space: pre-wrap; }
.term .p { color: var(--accent); } .term .ok { color: var(--ok); } .term .warn { color: var(--warn); } .term .c { color: var(--dim); }
.term .ln { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term a { text-decoration: none; color: #e7e9ec; }
.term a:hover { color: var(--accent); }
.term .cursor { display: inline-block; width: .55em; height: 1em; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .header-cta { display: none; } .brand-name { font-size: .95rem; } }
@media (prefers-reduced-motion: reduce) { .term .cursor { animation: none; } }

.panel-title { font: 500 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 0 0 .75rem; }

/* Search form */
.search-form { display: flex; align-items: center; gap: .5rem; padding: 0 .4rem 0 .9rem; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted); }
.search-form:focus-within { border-color: var(--accent); }
.search-form input[type="search"] { background: none; border: 0; padding: .75rem 0; border-radius: 0; }
.search-form button { padding: .55em .9em; font-size: .85rem; }
.search-form .ico { width: 18px; height: 18px; }

/* ---------- Listing ---------- */
.listing { padding: 2.5rem 0 5rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.filter-bar .search-form { min-width: min(100%, 300px); }

.lead-post { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); text-decoration: none; position: relative; }
.lead-art { position: relative; border-right: 1px solid var(--line); background: #0b0d10; overflow: hidden; display: flex; align-items: center; }
.lead-art img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .5s ease; }
.lead-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform .5s ease; }
.lead-art:has(> svg) { min-height: 320px; }
.lead-post:hover .lead-art img, .lead-post:hover .lead-art svg { transform: scale(1.03); }
.lead-body { padding: clamp(1.5rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.lead-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin: 0; }
.lead-body h2 a { text-decoration: none; }
.lead-body h2 a::after { content: ""; position: absolute; inset: 0; }
.lead-body .excerpt { color: var(--muted); margin: 0; }
.read-more { position: relative; z-index: 1; color: var(--accent); font-weight: 650; text-decoration: none; display: inline-flex; gap: .45em; align-items: center; }
.read-more:hover { color: var(--accent-2); }
@media (max-width: 860px) { .lead-post { grid-template-columns: 1fr; } .lead-art { border-right: 0; border-bottom: 1px solid var(--line); } .lead-art:has(> svg) { min-height: 220px; } }

.post-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; transition: border-color .2s, transform .2s, background .2s; }
.post-card:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-2px); }
.post-card::after { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 0; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); opacity: 0; transition: opacity .2s; z-index: 2; }
.post-card:hover::after { opacity: 1; }
.card-art { aspect-ratio: 1200 / 630; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.card-art img, .card-art svg { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .card-art img, .post-card:hover .card-art svg { transform: scale(1.04); }
.card-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.post-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.28; margin: 0; }
.post-title a { text-decoration: none; }
.post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-sum { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.post-meta { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; font: .76rem/1.4 var(--mono); color: var(--muted); }
.post-meta .sep { color: var(--dim); }
.post-meta .tag { position: relative; z-index: 2; }
.post-card .lock, .lead-post .lock { color: var(--warn); }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { font: 500 .85rem/1 var(--mono); padding: .7em .95em; border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; color: var(--muted); background: var(--panel); }
.pagination .page-numbers:hover { color: #fff; border-color: var(--muted); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .dots { border: 0; background: none; }

.empty { text-align: center; padding: 4rem 1rem; }

/* ---------- Page head ---------- */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 2.5rem; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 100% at 85% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%); }
.page-head h1 { max-width: 24ch; }
.page-head .lede p:last-child { margin: 0; }
.crumbs { font: .78rem/1.5 var(--mono); color: var(--dim); margin: 0 0 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-head .post-meta { margin-top: 1.25rem; }
.byline { display: inline-flex; align-items: center; gap: .5rem; }
.byline img { border-radius: 50%; width: 22px; height: 22px; }

/* ---------- Article ---------- */
.article-wrap { padding: 2.5rem 0 4rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
.article-layout.no-side { grid-template-columns: minmax(0, 1fr); }
.article-layout.no-side .prose { margin: 0 auto; }
.article-cover { margin: 0 0 2rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.article-cover img { display: block; width: 100%; height: auto; }
.side { display: grid; gap: 1rem; position: sticky; top: 84px; }
.admin-bar .side { top: 116px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .side { position: static; } }

.prose { font-size: 1.05rem; max-width: 74ch; overflow-wrap: break-word; }
.prose > * + h2 { margin-top: 2.4rem; }
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.9rem; }
.prose h4 { font-size: 1.05rem; margin-top: 1.5rem; }
.prose p, .prose li { color: #c9ced6; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: #fff; text-decoration-color: var(--accent); }
.prose strong { color: #fff; }
.prose code, .prose kbd { font: .88em var(--mono); background: var(--panel-2); border: 1px solid var(--line); padding: .1em .35em; border-radius: 4px; }
.prose pre, .wp-block-code, .wp-block-preformatted { position: relative; background: #050607; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; overflow-x: auto; color: #c9ced6; font: .86rem/1.7 var(--mono); }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.copy-btn { position: absolute; top: .5rem; right: .5rem; padding: .35em .6em; font: 500 .7rem/1 var(--mono); background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); opacity: 0; }
pre:hover .copy-btn, .copy-btn:focus { opacity: 1; }
.copy-btn:hover { background: var(--panel-2); color: #fff; border-color: var(--accent); }
.prose blockquote, .wp-block-quote { margin: 1.5em 0; padding: .4em 1.2em; border-left: 3px solid var(--accent); color: var(--muted); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%); }
.prose blockquote cite, .wp-block-quote cite { font: .8rem var(--mono); color: var(--dim); font-style: normal; }
.wp-block-pullquote { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 2rem 0; text-align: center; }
.wp-block-pullquote blockquote { border: 0; background: none; font-size: 1.35rem; color: var(--text); }
.prose hr, .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose img { border-radius: 8px; }
.prose figure { margin: 1.75em 0; }
.prose figcaption, .wp-caption-text { font: .78rem/1.5 var(--mono); color: var(--dim); text-align: center; margin-top: .6rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 .7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); background: var(--bg-2); }
.wp-block-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.wp-block-table table { margin: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--bg-2); }
.alignwide { margin-left: min(-6vw, -4rem); margin-right: min(-6vw, -4rem); max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
@media (max-width: 1100px) { .alignwide { margin-left: 0; margin-right: 0; } }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.has-text-align-center { text-align: center; }
.sticky .lead-body .eyebrow::after { content: " · Pinned"; }
.bypostauthor {}
.gallery-caption {}

/* Callouts (add class "callout", "callout-tip", "callout-warning" to any Group block) */
.callout, .is-style-callout, .is-style-callout-tip, .is-style-callout-warning { margin: 1.5em 0; padding: 1rem 1.2rem; border: 1px solid var(--line-2); border-left: 3px solid var(--info); border-radius: 8px; background: var(--panel); }
.callout > :last-child, [class*="is-style-callout"] > :last-child { margin-bottom: 0; }
.callout-tip, .is-style-callout-tip { border-left-color: var(--ok); }
.callout-warning, .is-style-callout-warning { border-left-color: var(--warn); }
.callout-important { border-left-color: var(--accent); }

/* Password-protected posts */
.post-password-form { background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--warn); border-radius: var(--radius); padding: 1.5rem; }
.post-password-form p:first-child::before { content: "RESTRICTED · "; font: 600 .72rem var(--mono); letter-spacing: .14em; color: var(--warn); }
.post-password-form p:last-child { display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; margin: 0; }
.post-password-form label { flex: 1; display: grid; gap: .4rem; min-width: 220px; }

/* Tags, share, author, nav, related */
.post-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-tags .tag { color: var(--muted); border-color: var(--line-2); }
.post-tags .tag:hover { color: #fff; background: var(--panel-2); }
.share { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; font: .75rem var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .12em; margin-top: 1.25rem; }
.share a { font: 500 .78rem/1 var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); padding: .5em .75em; border: 1px solid var(--line-2); border-radius: 6px; text-decoration: none; }
.share a:hover { color: #fff; border-color: var(--accent); }
.author-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2.5rem; }
.author-box img { border-radius: 50%; flex: none; }
.author-box h3 { margin: 0 0 .25rem; font-size: 1rem; }
.author-box p { color: var(--muted); font-size: .92rem; margin: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-nav a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-decoration: none; }
.post-nav a:hover { border-color: var(--line-2); background: var(--panel-2); }
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav small { display: block; font: .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .35rem; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } }
.related { border-top: 1px solid var(--line); padding: 3.5rem 0 4.5rem; background: var(--bg-2); }

/* Sidebar widgets */
.widget { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
.widget-title, .widget .wp-block-heading { font: 500 .72rem/1.4 var(--mono) !important; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 .8rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget li a { text-decoration: none; }
.widget li a:hover { color: var(--accent); }
.widget .post-date, .widget .wp-block-latest-posts__post-date { display: block; font: .72rem var(--mono); color: var(--dim); }
.widget img { border-radius: 6px; display: block; }
.widget select { margin-top: .25rem; }
.widget .search-form, .widget .wp-block-search__inside-wrapper { background: var(--bg-2); }
.wp-block-search__inside-wrapper { display: flex; gap: .4rem; }
.wp-block-search__label { display: none; }
.toc { font-size: .9rem; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc li:last-child { border-bottom: 0; }
.toc a { display: flex; gap: .6rem; padding: .5rem 0; text-decoration: none; color: var(--muted); }
.toc a::before { content: counter(toc, decimal-leading-zero); font: .72rem/1.9 var(--mono); color: var(--dim); }
.toc a:hover, .toc a.is-on { color: #fff; }
.toc a.is-on::before { color: var(--accent); }
.toc .h3 a { padding-left: 1.4rem; font-size: .85rem; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 70; }

/* ---------- Comments ---------- */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { margin-left: 1.5rem; border-left: 1px solid var(--line); padding-left: 1rem; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata, .comment-metadata a { font: .72rem var(--mono); color: var(--dim); text-decoration: none; }
.comment-content { color: #c9ced6; margin-top: .5rem; }
.reply a { font: .75rem var(--mono); color: var(--accent); text-decoration: none; }
.comment-respond { margin-top: 2rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form p { margin: 0; display: grid; gap: .35rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: center; }

/* ---------- 404 ---------- */
.nf { min-height: 62vh; display: flex; align-items: center; padding: 4rem 0; }
.nf .code { font: 800 clamp(5rem, 16vw, 10rem)/1 var(--mono); color: transparent; -webkit-text-stroke: 1px var(--line-2); letter-spacing: -.04em; }
.nf .code span { color: var(--accent); -webkit-text-stroke: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 4rem 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer-brand p { margin-top: 1rem; max-width: 40ch; font-size: .92rem; color: var(--muted); }
.footer-grid .widget { background: none; border: 0; padding: 0; }
.footer-grid .widget-title { color: var(--text); }
.footer-grid .widget li { border: 0; padding: .25rem 0; }
.footer-grid .widget li a, .footer-menu a { color: var(--muted); }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .92rem; }
.footer-menu a { text-decoration: none; }
.footer-menu a:hover { color: #fff; }
.social { display: flex; gap: .4rem; margin-top: 1.25rem; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted); text-decoration: none; }
.social a:hover { color: #fff; border-color: var(--accent); }
.social .ico { width: 17px; height: 17px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); font: .74rem/1.5 var(--mono); color: var(--dim); }
.footer-base a { color: var(--muted); text-decoration: none; }
.to-top:hover { color: var(--accent); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Elementor / full-width pages ---------- */
.page-template-template-full-width .site-main > .elementor,
.page-template-template-canvas .elementor { width: 100%; }
.full-width-content { min-height: 50vh; }
.elementor-widget-text-editor { color: #c9ced6; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

body { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }
.section-label-top { margin-top: 0; }
