/* ==========================================================================
   Basic Starter Kit theme
   Design tokens shared with jonathanfeistdevelopments.com (navy, green, purple,
   Roboto, rounded cards). Brand colors come from Customize > Colors and are
   injected as --brand-navy / --brand-green / --brand-purple.
   ========================================================================== */

/* ---------- 0. Font (self-hosted: no Google Fonts request, GDPR-friendly) --- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ------------------------------------------------------ */
:root {
  --brand-navy: #1f4175;
  --brand-green: #227a16;
  --brand-purple: #8054b3;

  --navy: var(--brand-navy);
  --navy-strong: color-mix(in srgb, var(--brand-navy) 78%, #000);
  --green: var(--brand-green);
  --green-soft: color-mix(in srgb, var(--brand-green) 12%, #fff);
  --purple: var(--brand-purple);
  --purple-soft: color-mix(in srgb, var(--brand-purple) 9%, #fff);

  --bg: #f0f1f3;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --border: #dfe2e7;
  --text: #16191f;
  --text-muted: #5b6372;
  --link: var(--navy);
  --heading: var(--navy);
  --topbar-bg: var(--navy);
  --topbar-text: #fff;
  --header-bg: #ffffff;
  --header-text: #16191f;
  --footer-bg: #ffffff;
  --overlay: linear-gradient(180deg, rgba(10, 18, 33, 0) 30%, rgba(10, 18, 33, .88) 100%);

  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.2rem;
  --fs-xl: clamp(1.4rem, 1.15rem + 1vw, 1.8rem);
  --fs-title: clamp(1.9rem, 1.3rem + 2.4vw, 2.85rem);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-hover: 0 10px 24px -8px rgba(16, 24, 40, .18);

  --container: 1240px;
  --sidebar: 330px;
  --gap: clamp(1rem, .6rem + 1.4vw, 1.75rem);
}

[data-theme="dark"] {
  --navy: color-mix(in srgb, var(--brand-navy) 55%, #fff);
  --navy-strong: color-mix(in srgb, var(--brand-navy) 85%, #fff);
  --green: color-mix(in srgb, var(--brand-green) 70%, #fff);
  --green-soft: color-mix(in srgb, var(--brand-green) 25%, #131313);
  --purple-soft: color-mix(in srgb, var(--brand-purple) 22%, #131313);
  --bg: #131313;
  --surface: #1c1d20;
  --surface-2: #232428;
  --border: #2f3137;
  --text: #e9eaed;
  --text-muted: #a4a9b3;
  --link: #8fb3ec;
  --heading: #ffffff;
  --topbar-bg: #000;
  --header-bg: #000000;
  --header-text: #ffffff;
  --footer-bg: #000000;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-hover: 0 12px 28px -10px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- 2. Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
h1, h2, h3, h4, h5, h6 { color: var(--heading); line-height: 1.22; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.icon { width: 20px; height: 20px; flex: none; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 1000; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { left: 1rem; color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  font: 700 var(--fs-sm)/1 var(--font); letter-spacing: .02em; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--brand-navy); color: #fff; }
.btn-primary:hover { background: var(--navy-strong); color: #fff; transform: translateY(-1px); }
[data-theme="dark"] .btn-primary { background: #2c5aa0; }
.link-button { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.tag {
  display: inline-block; padding: .2rem .55rem; border-radius: 4px;
  background: var(--brand-navy); color: #fff !important; text-decoration: none;
  font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; line-height: 1.45;
}
.tag:hover { background: var(--brand-green); }
[data-theme="dark"] .tag { background: #2c5aa0; }

.eyebrow { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--green); margin-bottom: .5rem; }
.lead { font-size: var(--fs-lg); color: var(--text-muted); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--border); margin-bottom: 1.25rem; }
.section-head h2 {
  margin: 0 0 -2px; padding-bottom: .55rem; border-bottom: 2px solid var(--green);
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- 3. Header ------------------------------------------------------ */
.topbar { background: var(--topbar-bg); color: var(--topbar-text); font-size: var(--fs-xs); }
.topbar__inner { display: flex; align-items: center; gap: 1rem; min-height: 36px; }
.topbar__date { font-weight: 500; letter-spacing: .02em; }
.topbar__nav { margin-left: auto; }
.topbar__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: 0; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: inherit; }
.topbar__social { margin-left: auto; }
.topbar__nav + .topbar__social { margin-left: .5rem; }
.topbar .icon { width: 16px; height: 16px; }

.social-links { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.social-links a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; }
.social-links a:hover { background: rgba(127, 127, 127, .18); color: inherit; }

.header-main { background: var(--header-bg); color: var(--header-text); }
.header-main__inner { display: flex; align-items: center; gap: 1rem; min-height: 92px; padding-block: .75rem; }
.site-branding { margin-right: auto; min-width: 0; }
.site-title { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.1; }
.site-title a { color: var(--navy); text-decoration: none; }
[data-theme="dark"] .site-title a { color: #fff; }
.site-title a:hover { color: var(--green); }
.site-description { margin: .25rem 0 0; color: var(--text-muted); font-size: var(--fs-sm); }
.custom-logo { max-height: 72px; width: auto; }

.header-actions { display: flex; gap: .5rem; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; flex: none;
  border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--header-text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.mode-toggle .icon-sun { display: none; }
[data-theme="dark"] .mode-toggle .icon-sun { display: block; }
[data-theme="dark"] .mode-toggle .icon-moon { display: none; }

.header-search { border-top: 1px solid var(--border); padding-block: 1rem; background: var(--header-bg); }

.nav-bar {
  background: var(--header-bg); border-top: 1px solid var(--border); border-bottom: 2px solid var(--green);
  position: sticky; top: 0; z-index: 40;
}
.admin-bar .nav-bar { top: 32px; }
.main-nav__list { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.main-nav__list > li { position: relative; }
.main-nav a {
  display: block; padding: .85rem .9rem; color: var(--header-text); text-decoration: none;
  font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.main-nav__list > li:first-child > a { padding-left: 0; }
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current-post-ancestor > a,
.main-nav .current-category-ancestor > a { color: var(--green); }
.main-nav .sub-menu {
  list-style: none; margin: 0; padding: .4rem 0; position: absolute; left: 0; top: 100%; min-width: 230px; z-index: 50;
  background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--green); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: .55rem 1rem; text-transform: none; font-weight: 500; letter-spacing: 0; }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: .4rem; border: 4px solid transparent; border-top-color: currentColor; vertical-align: middle; transform: translateY(2px); }

.drawer-toggle { display: none; }
.drawer-toggle.has-panel { display: inline-grid; }

@media (max-width: 900px) {
  .nav-bar { display: none; }
  .drawer-toggle { display: inline-grid; }
  .topbar__nav { display: none; }
  .header-main__inner { min-height: 72px; }
}
@media (max-width: 600px) {
  .site-description { display: none; }
  .header-actions { gap: .35rem; }
  .icon-btn { width: 40px; height: 40px; }
}
@media (max-width: 782px) { .admin-bar .nav-bar { top: 46px; } }

/* Slide-out panel */
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0; height: 100%; max-height: 100dvh; width: min(380px, 90vw);
  background: var(--surface); color: var(--text); overflow-y: auto; box-shadow: var(--shadow-hover);
}
.drawer::backdrop { background: rgba(10, 14, 22, .55); }
.drawer[open] { animation: bsk-slide .2s ease-out; }
@keyframes bsk-slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 2px solid var(--green); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.drawer__title { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--heading); }
.drawer__nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem; }
.drawer__nav a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 700; }
.drawer__nav .sub-menu { padding: 0 0 0 1rem; }
.drawer__nav .sub-menu a { font-weight: 400; }
.drawer__nav .current-menu-item > a { color: var(--green); }
.drawer__nav--small a { font-size: var(--fs-sm); font-weight: 500; }
.drawer__widgets { padding: 1rem 1.25rem; }
.drawer__widgets .widget { margin-bottom: 1.5rem; }
.drawer__social { padding: 0 1.25rem 1.5rem; }

/* ---------- 4. Layout ------------------------------------------------------ */
.site-content { padding-block: 1.75rem 3rem; }
.layout { display: grid; gap: calc(var(--gap) * 1.25); align-items: start; }
.has-sidebar .layout { grid-template-columns: minmax(0, 1fr) var(--sidebar); }
.has-sidebar.sidebar-left .layout { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.has-sidebar.sidebar-left .site-main { order: 2; }
.site-main { min-width: 0; }
@media (max-width: 1000px) {
  .has-sidebar .layout, .has-sidebar.sidebar-left .layout { grid-template-columns: minmax(0, 1fr); }
  .has-sidebar.sidebar-left .site-main { order: 0; }
}

/* ---------- 5. Featured block (homepage) ---------------------------------- */
.featured { margin-top: -.25rem; margin-bottom: 2rem; }
.featured__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--gap); }
.feature--lead { position: relative; border-radius: var(--radius); overflow: hidden; background: #0a1221; min-height: 100%; box-shadow: var(--shadow); }
.feature--lead .card__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.feature--lead .card__media img { height: 100%; }
.feature--lead::after { content: ""; position: absolute; inset: 0; background: var(--overlay); pointer-events: none; }
.feature__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; min-height: clamp(320px, 38vw, 470px); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); color: #fff; }
.feature__title { margin: 0; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.18; }
.feature__title a { color: #fff; text-decoration: none; }
.feature__title a:hover { text-decoration: underline; color: #fff; }
.feature__excerpt { margin: 0; color: rgba(255, 255, 255, .86); max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured__side { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 900px) {
  .featured__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .featured__side { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .featured__side .card__title { font-size: .95rem; }
}

/* ---------- 6. Cards & lists ---------------------------------------------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--green) 50%, var(--border)); }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .card__media img, .feature--lead:hover .card__media img { transform: scale(1.03); }
.card__noimg { display: grid; place-items: center; height: 100%; font-weight: 900; color: var(--navy); opacity: .35; letter-spacing: -.02em; }
.card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.card__title { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.card__title a { color: var(--heading); text-decoration: none; }
.card__title a:hover { color: var(--green); }
.card__excerpt { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.card__date { font-size: var(--fs-xs); color: var(--text-muted); }

.post-card--compact .card__body { padding: .8rem .9rem .95rem; gap: .35rem; }
.post-card--compact .card__title { font-size: 1rem; }

.post-list { display: grid; gap: var(--gap); }
.post-card--list { flex-direction: row; }
.post-card--list .card__media { flex: 0 0 40%; aspect-ratio: 16 / 10; }
.post-card--list .card__body { padding: 1.1rem 1.25rem; justify-content: center; }
.post-card--list .card__title { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
@media (max-width: 640px) {
  .post-card--list { flex-direction: column; }
  .post-card--list .card__media { flex-basis: auto; aspect-ratio: 16 / 9; }
}

.grid { display: grid; gap: var(--gap); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid--4 { gap: .75rem; } .grid--4 .card__title { font-size: .95rem; } }
.post-row { margin-top: 2.5rem; }
.layout .post-row .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .layout .post-row .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .layout .post-row .grid--4 > :nth-child(3) { display: none; } }
@media (min-width: 1240px) { .no-sidebar .layout .post-row .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: var(--fs-sm); color: var(--text-muted); }
.entry-meta a { color: inherit; font-weight: 500; text-decoration: none; }
.entry-meta a:hover { color: var(--green); }
.entry-meta__avatar { border-radius: 50%; width: 36px; height: 36px; }
.reading-time { display: inline-flex; align-items: center; gap: .3rem; }
.reading-time .icon { width: 15px; height: 15px; }
.updated { font-style: italic; }

.list-head { margin-bottom: 1.25rem; }
.list-title { font-size: var(--fs-xl); margin-bottom: .35rem; }
.list-desc { color: var(--text-muted); }
.list-desc p:last-child { margin: 0; }

.breadcrumbs { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumbs a { color: inherit; }
.breadcrumbs .sep { margin: 0 .3rem; opacity: .6; }

.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.page-numbers {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 700; font-size: var(--fs-sm);
}
a.page-numbers:hover { border-color: var(--green); color: var(--green); }
.page-numbers.current { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.page-numbers.dots { background: none; border: 0; }

/* ---------- 7. Single post / page ----------------------------------------- */
.entry { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem, .6rem + 2vw, 2.25rem); box-shadow: var(--shadow); }
.entry-header { margin-bottom: 1.25rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.entry-title { font-size: var(--fs-title); font-weight: 900; letter-spacing: -.025em; line-height: 1.12; margin-bottom: .6rem; }
.entry-dek { font-size: var(--fs-lg); color: var(--text-muted); margin-bottom: 1rem; }
.entry-media { margin: 0 0 1.5rem; }
.entry-media img { width: 100%; border-radius: var(--radius); }
.entry-media figcaption { font-size: var(--fs-xs); color: var(--text-muted); margin-top: .5rem; }

.disclosure {
  font-size: var(--fs-sm); padding: .8rem 1rem; margin: 0 0 1.5rem; border-radius: var(--radius-sm);
  background: var(--purple-soft); border-left: 4px solid var(--purple); color: var(--text);
}

.disclosure p:last-child { margin-bottom: 0; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * { margin-top: 0; margin-bottom: 1.15em; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin-top: 2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.7em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--green); }
.prose blockquote { margin-inline: 0; padding: .4rem 0 .4rem 1.2rem; border-left: 4px solid var(--green); color: var(--text-muted); font-size: 1.12rem; }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { font-size: var(--fs-xs); color: var(--text-muted); text-align: center; margin-top: .4rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { border: 1px solid var(--border); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--heading); }
.prose .wp-block-table { overflow-x: auto; }
.prose pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; overflow-x: auto; font-size: .9rem; }
.prose code { font-size: .92em; }
.prose iframe, .prose embed, .prose object { max-width: 100%; }
.prose .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.prose .alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignwide, .prose .alignfull { margin-inline: 0; max-width: 100%; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) { .prose .alignleft, .prose .alignright { float: none; margin: 0 0 1rem; } }
.wp-block-button__link { border-radius: 999px; }
.page-links { margin: 1.5rem 0; display: flex; gap: .5rem; }

.entry-taglist { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.75rem 0 0; }
.entry-taglist a { font-size: var(--fs-xs); padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text-muted); }
.entry-taglist a:hover { border-color: var(--green); color: var(--green); }

.author-box { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; margin-top: 2rem; background: var(--surface-2); box-shadow: none; }
.author-box img { border-radius: 50%; flex: none; }
.author-box__name { font-weight: 700; margin: 0 0 .2rem; }
.author-box__name a { color: var(--heading); text-decoration: none; }
.author-box__bio { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }

.post-navigation { margin-top: 2rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.post-navigation a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; height: 100%; }
.post-navigation a:hover { border-color: var(--green); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.nav-title { color: var(--heading); font-weight: 700; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { text-align: left; } }

/* Comments */
.comments { margin-top: 2.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem, .6rem + 2vw, 2rem); }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: var(--fs-xs); }
.comment-metadata a { color: var(--text-muted); }
.comment-form label { display: block; font-weight: 500; font-size: var(--fs-sm); margin-bottom: .25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
}
.comment-form-cookies-consent label { display: inline; }

/* ---------- 8. Sidebar & widgets ----------------------------------------- */
.sidebar { display: grid; gap: var(--gap); }
.sidebar .widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.2rem; box-shadow: var(--shadow); min-width: 0; }
.widget-title, .sidebar .widget .wp-block-heading, .footer-col .wp-block-heading {
  font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); position: relative;
}
.widget-title::after, .sidebar .widget .wp-block-heading::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--green); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .45rem 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: 0; }
.widget li a { text-decoration: none; color: var(--text); font-weight: 500; }
.widget li a:hover { color: var(--green); }
.widget img { border-radius: var(--radius-sm); }
.widget .search-form { margin: 0; }
.mini-posts .mini-post { display: flex; gap: .75rem; align-items: center; }
.mini-post__thumb { flex: 0 0 72px; }
.mini-post__thumb img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius-sm); }
.mini-post__title { display: block; line-height: 1.3; font-size: .95rem; }
.mini-post__date { font-size: var(--fs-xs); color: var(--text-muted); }
.wp-block-latest-posts__post-title { font-weight: 500; }

/* Search form */
.search-form { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .3rem .3rem .3rem 1rem; }
.search-form:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.search-form .icon { width: 18px; height: 18px; color: var(--text-muted); }
.search-field { flex: 1; min-width: 0; border: 0; background: transparent; padding: .5rem 0; outline: none; }
.search-form .btn { padding: .65rem 1.1rem; }

/* ---------- 9. Ads --------------------------------------------------------- */
.bsk-ad-wrap { margin: 1.75rem 0; display: grid; gap: 1rem; clear: both; }
.bsk-ad { text-align: center; min-width: 0; }
.bsk-ad__label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .35rem; }
.bsk-ad ins.adsbygoogle { min-height: 250px; }
.bsk-ad--header ins.adsbygoogle, .bsk-ad--footer ins.adsbygoogle { min-height: 90px; }
.bsk-ad--in-article ins.adsbygoogle { min-height: 200px; }
.bsk-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
.bsk-ad-wrap:has(> .bsk-ad:only-child ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
.bsk-house-ad img { margin-inline: auto; height: auto; }
.bsk-house-ad + .bsk-house-ad { margin-top: .75rem; }
.bsk-ad--placeholder .bsk-ad__ph {
  display: grid; place-items: center; min-height: 110px; padding: 1rem; border: 2px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: var(--fs-sm); background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(127, 127, 127, .06) 10px 20px);
}
.header-ad .bsk-ad-wrap { margin: 1.25rem 0 0; }
.footer-ad .bsk-ad-wrap { margin: 0 0 2rem; }
.sidebar .bsk-ad-wrap { margin: 0; }
.post-list .bsk-ad-wrap { margin: 0; }

/* ---------- 10. 404 / empty ------------------------------------------------ */
.notfound { max-width: 900px; margin-inline: auto; padding-block: 2rem; }
.notfound h1 { font-size: var(--fs-title); font-weight: 900; }
.notfound .search-form { max-width: 560px; margin: 1.5rem 0 1rem; }
.no-results { padding: 1.5rem; }

/* ---------- 11. Footer ----------------------------------------------------- */
.site-footer { background: var(--footer-bg); border-top: 3px solid var(--green); padding-block: 3rem 1.5rem; font-size: var(--fs-sm); color: var(--text-muted); }
[data-theme="dark"] .site-footer { color: #b9bdc6; }
.footer-grid { display: grid; gap: calc(var(--gap) * 1.25); grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-grid--1 { grid-template-columns: 1fr; }
.footer-grid--2 { grid-template-columns: 1.4fr 1fr; }
.footer-grid--3 { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid, .footer-grid--2, .footer-grid--3 { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid, .footer-grid--2, .footer-grid--3 { grid-template-columns: 1fr; } }
.footer-brand { display: inline-block; font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em; color: var(--navy); text-decoration: none; margin-bottom: .5rem; }
[data-theme="dark"] .footer-brand { color: #fff; }
.footer-about p { max-width: 42ch; }
.footer-social { margin-top: .5rem; }
.footer-col .widget-title { font-size: var(--fs-xs); color: var(--heading); }
.footer-col .widget-title::after { display: none; }
.footer-col a { color: inherit; }
.footer-col a:hover { color: var(--green); }
.footer-col .widget li { border: 0; padding: .25rem 0; }
.footer-col .widget li a { color: inherit; font-weight: 400; }
.footer-note { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: var(--fs-xs); }
.footer-bottom { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-xs); }
.footer-bottom p { margin: 0; }
.footer-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; padding: 0; }
.footer-links a, .footer-links .link-button { color: inherit; font-size: var(--fs-xs); }
.footer-links a:hover, .footer-links .link-button:hover { color: var(--green); }
.to-top { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); color: inherit; }
.to-top:hover { border-color: var(--green); color: var(--green); }
.to-top .icon { width: 18px; height: 18px; }

/* ---------- 12. WooCommerce (product database) ---------------------------- */
.woo-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem, .6rem + 2vw, 2rem); }
.woocommerce .woocommerce-breadcrumb { font-size: var(--fs-sm); color: var(--text-muted); }
.woocommerce .woocommerce-breadcrumb a { color: inherit; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--heading); font-size: 1rem; }
.woocommerce ul.products li.product a img { border-radius: var(--radius-sm); }
.woocommerce .product_title { font-weight: 900; color: var(--heading); }
.woocommerce a.button, .woocommerce button.button, .woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--brand-navy); color: #fff; border-radius: 999px; padding: .75rem 1.3rem; font-weight: 700;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--navy-strong); color: #fff; }
.woocommerce div.product p.price, .woocommerce ul.products li.product .price { color: var(--green); }
[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--surface-2); border-color: var(--border); }

/* ---------- 13. Motion & print ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .header-actions, .nav-bar, .drawer, .sidebar, .bsk-ad-wrap, .site-footer, .post-navigation, .comments, .related, .missed { display: none !important; }
  .entry { border: 0; box-shadow: none; padding: 0; }
}
