/* Public site: design tokens, components and the three post-list layouts.
   A theme (themes/<id>/style.css) sets the tokens and adds its own touches on top. */

:root {
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);
  --font-ui: var(--font-body);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --heading-weight: 650;
  --heading-tracking: -0.015em;
  --heading-transform: none;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --text: #18181b;
  --muted: #5f5f69;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #2f54eb;
  --accent-contrast: #ffffff;
  --danger: #c0262d;
  --success: #1c7c4a;
  --warning: #9a6700;
  --info: #1d5fd1;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --shadow: none;
  --shadow-hover: none;
  --card-border: 1px solid var(--border);
  --header-bg: color-mix(in srgb, var(--bg) 88%, transparent);

  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}
/* Derived tokens live on body so they follow the accent chosen in the Customizer. */
body {
  --accent-hover: color-mix(in srgb, var(--accent) 80%, var(--text));
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --danger-soft: color-mix(in srgb, var(--danger) 10%, var(--surface));
  --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
body.width-narrow { --maxw: 960px; }
body.width-wide { --maxw: 1320px; }
body.font-sans { --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body.font-serif { --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
body.font-mono { --font-body: ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  text-transform: var(--heading-transform);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.visually-hidden {
  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: 12px; top: 0; z-index: 100; transform: translateY(-140%);
  background: var(--accent); color: var(--accent-contrast);
  padding: 8px 14px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { transform: translateY(12px); color: var(--accent-contrast); }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; width: 100%; }

/* ---------- Buttons, chips, inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  font: inherit; font-family: var(--font-ui); font-size: 15px; font-weight: 600; line-height: 1;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); border-color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-contrast); }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; font-size: 13px; font-weight: 600; line-height: 1.5; font-family: var(--font-ui);
  border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent);
  text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
a.chip:hover { background: var(--accent); color: var(--accent-contrast); }
.chip--tag { background: var(--surface-2); color: var(--muted); }
.chip--tag::before { content: "#"; opacity: .6; }
a.chip--tag:hover { background: var(--text); color: var(--bg); }
.chip--featured { background: var(--accent); color: var(--accent-contrast); }

.input {
  width: 100%; min-height: 42px; padding: 8px 12px;
  font: inherit; font-family: var(--font-ui); font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input:hover { border-color: color-mix(in srgb, var(--text) 35%, var(--border)); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.with-sidebar .container { max-width: none; padding-left: 0; padding-right: 0; }
.with-sidebar .container--narrow { max-width: 760px; margin: 0; }
.sidebar-left .with-sidebar { grid-template-columns: 300px minmax(0, 1fr); }
.sidebar-left .with-sidebar > main { order: 2; }
.sidebar { position: sticky; top: 84px; display: grid; gap: 22px; padding: clamp(36px, 7vw, 72px) 0 48px; }
@media (max-width: 960px) {
  .with-sidebar, .sidebar-left .with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar-left .with-sidebar > main { order: 0; }
  .sidebar { position: static; padding-top: 0; }
}

/* ---------- Header + menus ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 19px;
  letter-spacing: var(--heading-tracking); color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 30px; height: 30px; border-radius: calc(var(--radius-sm) + 2px); flex: none;
  display: grid; place-items: center; font-size: 15px; font-family: var(--font-ui);
  background: var(--accent); color: var(--accent-contrast);
}
.brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header__nav { display: flex; align-items: center; gap: 6px; }
.site-nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu-item { position: relative; display: flex; align-items: center; }
.site-nav__link, .site-search-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  font: inherit; font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.site-nav__link:hover, .site-search-link:hover, .nav-toggle:hover { color: var(--text); background: var(--surface-2); }
.site-nav__link[aria-current="page"], .site-search-link[aria-current="page"] { color: var(--text); }
.site-search-link { padding: 0 10px; }
.site-search-link svg, .nav-toggle svg { width: 19px; height: 19px; }
/* CAT and TAG: boxed, letter-spaced, impossible to miss */
.site-nav__link--term { border: 1.5px solid var(--border-strong); letter-spacing: .08em; font-size: 14px; color: var(--text); border-radius: var(--radius-pill); }
.site-nav__link--term svg { width: 15px; height: 15px; }
.site-nav__link--term:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.site-nav__link--term[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.submenu-toggle { display: grid; place-items: center; width: 28px; height: 32px; margin-left: -8px; padding: 0; background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: var(--radius-sm); }
.submenu-toggle svg { rotate: 90deg; transition: rotate .15s; }
.menu-item.is-open > .submenu-toggle svg { rotate: -90deg; }
.sub-menu {
  position: absolute; top: 100%; left: 0; z-index: 30; min-width: 210px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgb(0 0 0 / .14);
  display: none;
}
.sub-menu .site-nav__link { width: 100%; min-height: 38px; }
.menu-item.has-children:hover > .sub-menu, .menu-item.has-children:focus-within > .sub-menu, .menu-item.is-open > .sub-menu { display: block; }
.nav-toggle { display: none; color: var(--text); border: 1px solid var(--border-strong); }

@media (max-width: 760px) {
  .site-header__nav:not(.is-compact) .nav-toggle { display: inline-flex; }
  .site-header__nav:not(.is-compact) .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 64px); overflow-y: auto;
    padding: 10px var(--gutter) 16px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 16px 32px rgb(0 0 0 / .12);
  }
  .nav-open .site-header__nav:not(.is-compact) .site-nav { display: block; }
  .site-header__nav:not(.is-compact) .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-header__nav:not(.is-compact) .menu-item { flex-wrap: wrap; }
  .site-header__nav:not(.is-compact) .site-nav__link { flex: 1; min-height: 46px; }
  .site-header__nav:not(.is-compact) .submenu-toggle { width: 46px; height: 46px; margin: 0; }
  .site-header__nav:not(.is-compact) .sub-menu { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 0 14px; background: none; }
  .site-header__nav:not(.is-compact) .menu-item.has-children:hover > .sub-menu { display: none; }
  .site-header__nav:not(.is-compact) .menu-item.is-open > .sub-menu { display: block; }
  .site-header__nav:not(.is-compact) .site-nav__link--term { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .site-header__inner { min-height: 58px; gap: 8px; }
  .brand__name { display: none; }
  .site-header__nav { gap: 2px; }
  .is-compact .site-nav__list { gap: 2px; }
  .is-compact .site-nav__link { padding: 0 9px; }
  .site-search-link { padding: 0 8px; }
}
@media (max-width: 359px) { .is-compact .site-nav__link--term svg { display: none; } }

/* ---------- Page heading ---------- */
.page-head { padding: clamp(36px, 7vw, 72px) 0 clamp(20px, 4vw, 32px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.page-head h1 { font-size: clamp(32px, 6vw, 52px); margin-bottom: 12px; }
.page-head__lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 40em; margin: 0; }
.page-head__actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { position: relative; display: flex; gap: 8px; align-items: center; }
.search > svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 38px; }
.search--inline { max-width: 420px; margin-top: 22px; }
.search--big { max-width: 640px; margin-top: 18px; }
.search--big .input { min-height: 48px; font-size: 17px; }
.search--big .btn { min-height: 48px; }
.result-count { color: var(--muted); font-size: 15px; font-family: var(--font-ui); margin: 12px 0 0; min-height: 1.5em; }

/* ---------- Post list: layout-list (default) = clean rows ---------- */
.post-list { display: grid; gap: 0; margin-bottom: 48px; }
.post-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--border);
}
.post-card:last-child { border-bottom: 1px solid var(--border); }
.post-card__media { text-decoration: none; order: 2; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.post-card__title { font-size: clamp(21px, 2.6vw, 26px); margin-bottom: 8px; }
.post-card__title a { color: var(--text); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s; }
.post-card__title a:hover { color: var(--text); background-size: 100% 1.5px; }
.post-card__excerpt { color: var(--muted); margin-bottom: 10px; }
.post-card__meta { font-family: var(--font-ui); font-size: 14px; color: var(--muted); }
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 25% 20%, hsl(var(--h) 90% 75% / .9), transparent 55%),
    radial-gradient(circle at 80% 85%, hsl(calc(var(--h) + 50) 85% 60% / .85), transparent 60%),
    hsl(calc(var(--h) + 20) 60% 45%);
  color: rgb(255 255 255 / .92); font-family: var(--font-heading); font-weight: 700; font-size: 44px;
}
@media (max-width: 640px) {
  .post-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .post-card__media { order: 0; aspect-ratio: 16 / 9; }
}

/* layout-magazine: featured lead story + two columns */
@media (min-width: 760px) {
  .layout-magazine .post-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .layout-magazine .post-card { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
  .layout-magazine .post-card .post-card__media { order: 0; aspect-ratio: 3 / 2; }
  .layout-magazine .post-card:last-child { border-bottom: 0; }
  .layout-magazine .post-list:not(.post-list--related) .post-card:first-child {
    grid-column: 1 / -1; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; padding-bottom: 36px;
  }
  .layout-magazine .post-list:not(.post-list--related) .post-card:first-child .post-card__title { font-size: clamp(30px, 4vw, 42px); }
}

/* layout-grid: elevated cards */
.layout-grid .post-list, .post-list--related { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.layout-grid .post-card, .post-list--related .post-card {
  grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; padding: 0; overflow: hidden;
  background: var(--surface); border: var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.layout-grid .post-card:last-child, .post-list--related .post-card:last-child { border-bottom: var(--card-border); }
.layout-grid .post-card:hover, .post-list--related .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.layout-grid .post-card__media, .post-list--related .post-card__media { order: 0; aspect-ratio: 16 / 10; border-radius: 0; }
.layout-grid .post-card__body, .post-list--related .post-card__body { padding: 18px 20px 20px; }
.layout-grid .post-card__title, .post-list--related .post-card__title { font-size: 21px; }
.post-list--related .post-card__excerpt { display: none; }

/* layout-portfolio: image tiles — the picture is the card, the title sits on it */
.layout-portfolio .post-list:not(.post-list--related) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--tile-gap, 14px); }
.layout-portfolio .post-list:not(.post-list--related) .post-card {
  position: relative; display: block; padding: 0; border: 0; overflow: hidden; isolation: isolate;
  aspect-ratio: var(--tile-ratio, 4 / 3); border-radius: var(--radius); background: var(--surface-2);
}
.layout-portfolio .post-list:not(.post-list--related) .post-card:last-child { border-bottom: 0; }
.layout-portfolio .post-list:not(.post-list--related) .post-card__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -1; }
.layout-portfolio .post-list:not(.post-list--related) .post-card__body {
  position: absolute; inset: auto 0 0; padding: 48px 18px 16px; color: #fff;
  background: linear-gradient(transparent, rgb(0 0 0 / .78));
}
.layout-portfolio .post-list:not(.post-list--related) .post-card__title { font-size: clamp(18px, 2vw, 22px); margin: 0; }
.layout-portfolio .post-list:not(.post-list--related) .post-card__title a { color: #fff; }
.layout-portfolio .post-list:not(.post-list--related) .post-card__title a::after { content: ""; position: absolute; inset: 0; }
.layout-portfolio .post-list:not(.post-list--related) .post-card__excerpt { display: none; }
.layout-portfolio .post-list:not(.post-list--related) .post-card__meta { color: rgb(255 255 255 / .8); font-size: 13px; margin-top: 4px; }
.layout-portfolio .post-list:not(.post-list--related) .post-card__cats { margin-bottom: 6px; }
.layout-portfolio .post-list:not(.post-list--related) .post-card__cats .chip { background: rgb(255 255 255 / .16); color: #fff; backdrop-filter: blur(4px); position: relative; z-index: 1; }
@media (hover: hover) {
  .layout-portfolio .post-list:not(.post-list--related) .post-card__body { transform: translateY(var(--tile-reveal, 0)); transition: transform .3s ease; }
  .layout-portfolio .post-list:not(.post-list--related) .post-card:hover .post-card__body,
  .layout-portfolio .post-list:not(.post-list--related) .post-card:focus-within .post-card__body { transform: none; }
  .layout-portfolio .post-list:not(.post-list--related) .post-card:hover .post-card__media img { transform: scale(1.05); }
}
@media (min-width: 1000px) {
  /* every 7th project gets a double-width tile, so the grid has rhythm */
  .layout-portfolio .post-list:not(.post-list--related) .post-card:nth-child(7n+1) { grid-column: span 2; aspect-ratio: auto; }
}

/* layout-compact: an index of titles and dates — for docs, notes and archives */
.layout-compact .post-list:not(.post-list--related) { gap: 0; }
.layout-compact .post-list:not(.post-list--related) .post-card { grid-template-columns: minmax(0, 1fr); padding: 14px 0; gap: 0; }
.layout-compact .post-list:not(.post-list--related) .post-card__media { display: none; }
.layout-compact .post-list:not(.post-list--related) .post-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: baseline; }
.layout-compact .post-list:not(.post-list--related) .post-card__cats { grid-column: 1 / -1; margin-bottom: 4px; }
.layout-compact .post-list:not(.post-list--related) .post-card__title { font-size: 19px; margin: 0; }
.layout-compact .post-list:not(.post-list--related) .post-card__meta { grid-column: 2; grid-row: 2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.layout-compact .post-list:not(.post-list--related) .post-card__excerpt { grid-column: 1 / -1; margin: 4px 0 0; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) {
  .layout-compact .post-list:not(.post-list--related) .post-card__body { grid-template-columns: minmax(0, 1fr); }
  .layout-compact .post-list:not(.post-list--related) .post-card__meta { grid-column: 1; grid-row: auto; margin-top: 2px; }
}

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: -16px 0 64px; }
.page-numbers {
  min-width: 42px; min-height: 42px; padding: 0 12px; display: inline-grid; place-items: center;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px; text-decoration: none;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.page-numbers.dots { border-color: transparent; background: none; }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 56px 20px; margin-bottom: 64px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); }
.empty h2 { color: var(--text); font-size: 22px; }

/* ---------- Article ---------- */
.article { padding-top: clamp(28px, 6vw, 56px); padding-bottom: 72px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: 15px; font-weight: 600; text-decoration: none; color: var(--muted); margin-bottom: 24px; }
.back-link:hover { color: var(--accent); }
.article__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.article h1 { font-size: clamp(32px, 5.5vw, 50px); margin-bottom: 14px; }
.article__meta { font-family: var(--font-ui); color: var(--muted); font-size: 15px; margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 0 6px; align-items: center; }
.article__author { color: var(--text); font-weight: 600; text-decoration: none; }
a.article__author:hover { color: var(--accent); text-decoration: underline; }
.reading-time { display: inline-flex; align-items: center; gap: 4px; }
.article__image { border-radius: var(--radius); overflow: hidden; margin: 0 0 36px; aspect-ratio: 16 / 9; background: var(--surface-2); }
.article__image img { width: 100%; height: 100%; object-fit: cover; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.article__tags-label { font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--muted); margin-right: 4px; }

/* ---------- Content (prose) ---------- */
.prose { font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: 27px; margin-top: 1.6em; scroll-margin-top: 84px; }
.prose h3 { font-size: 22px; margin-top: 1.4em; scroll-margin-top: 84px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-size: 1.12em; font-style: italic; color: var(--text); }
.prose pre { background: var(--surface-2); padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 15px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose img { border-radius: var(--radius); margin: 1.6em auto; height: auto; cursor: zoom-in; }
.prose figure.image { margin: 1.8em 0; }
.prose figure.image img { margin: 0 auto; }
.prose figcaption { margin-top: 8px; font-family: var(--font-ui); font-size: 14px; color: var(--muted); text-align: center; }
.prose .video { margin: 1.8em 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.prose .video iframe { width: 100%; height: 100%; border: 0; display: block; }
.prose mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; padding: 0 .15em; border-radius: 3px; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--surface-2); font-family: var(--font-ui); }
.prose tr:last-child td { border-bottom: 0; }
.prose details { margin: 1em 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose summary { cursor: pointer; font-weight: 700; font-family: var(--font-ui); }
.prose details[open] summary { margin-bottom: 8px; }
.prose .callout { margin: 1.6em 0; padding: 14px 18px 14px 18px; border-radius: var(--radius-sm); border-left: 4px solid var(--info); background: color-mix(in srgb, var(--info) 9%, var(--surface)); }
.prose .callout > :last-child { margin-bottom: 0; }
.prose .callout-success { border-left-color: var(--success); background: color-mix(in srgb, var(--success) 9%, var(--surface)); }
.prose .callout-warning { border-left-color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, var(--surface)); }
.prose .callout-danger { border-left-color: var(--danger); background: var(--danger-soft); }
.prose a.wp-button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; margin: .4em 0;
  font-family: var(--font-ui); font-size: 16px; font-weight: 700; text-decoration: none;
  background: var(--accent); color: var(--accent-contrast); border-radius: var(--radius-sm);
}
.prose a.wp-button:hover { background: var(--accent-hover); color: var(--accent-contrast); }

/* ---------- Table of contents, share, post navigation, related ---------- */
.toc { margin: 0 0 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-ui); }
.toc summary { padding: 14px 18px; cursor: pointer; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.toc ol { margin: 0; padding: 0 18px 16px 38px; font-size: 15px; line-height: 1.5; }
.toc li { margin: 4px 0; }
.toc__item--h3 { margin-left: 16px !important; list-style-type: circle; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--accent); text-decoration: underline; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.share__label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-weight: 700; font-size: 14px; color: var(--muted); margin-right: 4px; }
.share__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  font: inherit; font-family: var(--font-ui); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
}
.share__btn:hover { border-color: var(--accent); color: var(--accent); }
.share__btn.is-copied { background: var(--success); border-color: var(--success); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.post-nav__link { display: grid; gap: 4px; padding: 16px 18px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.post-nav__link span { font-family: var(--font-ui); font-size: 13px; color: var(--muted); font-weight: 600; }
.post-nav__link:hover { border-color: var(--accent); color: var(--text); }
.post-nav__link--next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .post-nav { grid-template-columns: minmax(0, 1fr); } .post-nav__link--next { grid-column: 1; } }
.related { margin-top: 56px; }
.related__title { font-size: 24px; margin-bottom: 18px; }
.post-list--related { margin-bottom: 0; }

/* ---------- CAT page ---------- */
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-bottom: 72px; }
.term-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; min-height: 180px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.term-card:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.term-card__badge {
  width: 44px; height: 44px; border-radius: calc(var(--radius-sm) + 2px); margin-bottom: 8px;
  display: grid; place-items: center; font-weight: 700; font-size: 20px; font-family: var(--font-heading); color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 75% 58%), hsl(calc(var(--h) + 40) 70% 46%));
}
.term-card__name { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 21px; letter-spacing: var(--heading-tracking); }
.term-card__desc { color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1; }
.term-card__count { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.term-card__count svg { width: 16px; height: 16px; transition: translate .2s; }
.term-card:hover .term-card__count svg { translate: 4px 0; }

/* ---------- TAG page ---------- */
.az-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.az-bar a {
  min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 8px;
  font-family: var(--font-ui); font-weight: 700; font-size: 14px; text-decoration: none;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.az-bar a:hover { border-color: var(--accent); color: var(--accent); }
.tag-groups { display: grid; gap: 14px; margin-bottom: 72px; }
.tag-group {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  scroll-margin-top: 84px;
}
.tag-group__letter { font-family: var(--font-heading); font-size: 34px; font-weight: 700; line-height: 1; color: var(--accent); }
.tag-group__list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  color: var(--text); text-decoration: none; background: var(--surface-2);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  transition: background-color .15s, color .15s, border-color .15s;
}
.tag-pill::before { content: "#"; color: var(--accent); margin-right: -6px; }
.tag-pill__count { min-width: 24px; padding: 0 7px; height: 22px; display: grid; place-items: center; font-size: 12px; border-radius: var(--radius-pill); background: var(--surface); color: var(--muted); }
.tag-pill:hover { background: var(--accent); color: var(--accent-contrast); }
.tag-pill:hover::before { color: inherit; }
.tag-pill:hover .tag-pill__count { background: rgb(255 255 255 / .2); color: inherit; }
@media (max-width: 520px) { .tag-group { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ---------- Widgets ---------- */
.widget { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.widget__title { font-size: 15px; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.widget-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.4; }
.widget-list li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.widget-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.widget-list a:hover { color: var(--accent); text-decoration: underline; }
.widget-list time, .widget-list .count { font-family: var(--font-ui); font-size: 13px; color: var(--muted); }
.widget-list .count { min-width: 26px; text-align: center; padding: 0 6px; border-radius: var(--radius-pill); background: var(--surface-2); }
.widget-search { display: flex; gap: 6px; }
.widget-search .btn { padding: 0 12px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.tag-cloud__item { font-size: calc(15px * var(--w, 1)); font-weight: 600; text-decoration: none; color: var(--text); }
.tag-cloud__item:hover { color: var(--accent); }
.widget-text { font-size: 15px; line-height: 1.6; }
.widget-text > :last-child { margin-bottom: 0; }
.widget-cta p { font-size: 15px; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--text); text-decoration: none; font-family: var(--font-ui); font-size: 14px; font-weight: 600; }
.social-link svg { width: 15px; height: 15px; }
.social-link:hover { border-color: var(--accent); color: var(--accent); }
.widget-rss .btn svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 88px; color: var(--muted); font-family: var(--font-ui); font-size: 14px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-bottom: 28px; font-family: var(--font-body); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }

/* ---------- Reading progress, lightbox, back to top ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.has-toolbar .read-progress { top: 32px; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 56px 16px 16px; background: rgb(0 0 0 / .9); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; cursor: zoom-out; }
.lightbox__caption { color: #eee; font-family: var(--font-ui); font-size: 14px; padding-top: 10px; text-align: center; min-height: 1.5em; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; font-size: 22px; cursor: pointer; }
.lightbox__btn:hover { background: rgb(255 255 255 / .28); }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 10px; top: 50%; translate: 0 -50%; }
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; border-radius: var(--radius-pill, 999px); cursor: pointer;
  background: var(--accent); color: var(--accent-contrast); box-shadow: 0 6px 20px rgb(0 0 0 / .18);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s, transform .2s, visibility .2s, background-color .15s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-hover); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
@media (max-width: 600px) { .to-top { width: 44px; height: 44px; } }

/* ---------- Live preview (inside the CMS) + toolbar for signed-in users ---------- */
.preview-banner {
  position: sticky; top: 0; z-index: 30; padding: 6px 16px; text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  background: #fff4d6; color: #6b4a00; border-bottom: 1px solid #f1d58a;
}
.has-banner .site-header { top: 31px; }
#wp-toolbar {
  position: fixed; inset: 0 0 auto 0; z-index: 99; height: 32px; display: flex; align-items: center; gap: 2px; padding: 0 8px;
  background: #1d2327; color: #f0f0f1; font: 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; overflow-x: auto; white-space: nowrap;
}
#wp-toolbar a { color: #f0f0f1; text-decoration: none; padding: 9px 8px; }
#wp-toolbar a:hover, #wp-toolbar a:focus-visible { color: #72aee6; background: #2c3338; outline: none; }
.wp-toolbar__howdy { margin-left: auto; padding: 0 8px; color: #c3c4c7; }
.has-toolbar body { padding-top: 32px; }
.has-toolbar .site-header { top: 32px; }
@media (max-width: 520px) { .wp-toolbar__howdy { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print / Save as PDF: every theme prints as a clean white page ---------- */
@media print {
  @page { margin: 16mm 15mm; }
  :root, body {
    --bg: #fff; --surface: #fff; --surface-2: #f3f3f3; --text: #111; --muted: #555;
    --border: #ccc; --border-strong: #999; --accent: #1d4ed8; --accent-soft: #eef2ff;
  }
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; filter: none !important; animation: none !important; }
  html, body { background: #fff !important; color: #111 !important; font-size: 11.5pt; }
  .site::before, .site::after, .site-header, .sidebar, .site-footer, .share, .post-nav, .related, .back-link,
  .to-top, .read-progress, #wp-toolbar, .preview-banner, .lightbox, .skip-link, .pagination, .search { display: none !important; }
  .site-content.with-sidebar { display: block; }
  .container, .container--narrow { max-width: none; padding: 0; }
  .article { padding: 0; }
  .article h1, .page-head h1 { color: #111 !important; background: none !important; -webkit-text-fill-color: #111; font-size: 24pt; text-transform: none; letter-spacing: 0; }
  .article h1::before, .article h1::after, .prose h2::before, .prose h3::before { content: none !important; }
  .prose, .prose * { color: #111 !important; }
  .prose a { color: #1d4ed8 !important; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555 !important; word-break: break-all; }
  .chip { background: none !important; color: #333 !important; border: 1px solid #bbb !important; }
  .article__meta, .article__meta * { color: #555 !important; }
  .prose pre, .prose code, .prose .callout, .prose blockquote, .prose details, .toc, .prose th { background: #f5f5f5 !important; }
  .prose img, .article__image, .prose .video { break-inside: avoid; border: 0 !important; }
  .prose .video { display: none; }
  .prose h2, .prose h3 { break-after: avoid; }
  .prose p, .prose li { orphans: 3; widows: 3; }
  .toc details > ol { display: block; }
}

/* ---------- Code Blocks Pro ---------- */
body { --code-bg: #0f1117; --code-text: #e6e9f2; --code-bar: #1a1d27; --tok-kw: #c792ea; --tok-str: #c3e88d; --tok-num: #f78c6c; --tok-com: #7f8aa3; --tok-fn: #82aaff; --tok-type: #ffcb6b; --tok-attr: #89ddff; --tok-tag: #f07178; }
.prose .code-block { margin: 1.6em 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--code-bg); border: 1px solid color-mix(in srgb, var(--code-text) 12%, transparent); }
.code-block__bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; background: var(--code-bar); font-family: var(--font-ui); font-size: 12.5px; color: color-mix(in srgb, var(--code-text) 70%, transparent); }
.code-block__lang { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--code-text); }
.code-block__lines { margin-right: auto; }
.code-block__copy, .copybox__btn {
  min-height: 32px; padding: 0 12px; font: inherit; font-family: var(--font-ui); font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--code-text); background: color-mix(in srgb, var(--code-text) 12%, transparent); border: 1px solid color-mix(in srgb, var(--code-text) 22%, transparent); border-radius: var(--radius-sm);
}
.code-block__copy:hover { background: color-mix(in srgb, var(--code-text) 22%, transparent); }
.code-block__copy.is-copied, .copybox__btn.is-copied { background: var(--success); border-color: var(--success); color: #fff; }
.prose .code-block pre { margin: 0; border: 0 !important; border-radius: 0; background: var(--code-bg) !important; color: var(--code-text) !important; font-size: 14.5px; line-height: 1.65; padding: 14px 16px; overflow-x: auto; tab-size: 2; }
.prose .code-block pre code { background: none !important; color: inherit !important; padding: 0; font-size: inherit; }
.tok-kw { color: var(--tok-kw); font-weight: 600; } .tok-str { color: var(--tok-str); } .tok-num { color: var(--tok-num); } .tok-com { color: var(--tok-com); font-style: italic; }
.tok-fn { color: var(--tok-fn); } .tok-type { color: var(--tok-type); } .tok-attr { color: var(--tok-attr); } .tok-tag { color: var(--tok-tag); }

/* ---------- Copy Box ---------- */
.prose .copybox { display: flex; align-items: center; gap: 12px; margin: 1.4em 0; padding: 12px 12px 12px 16px; background: var(--surface); border: 1.5px dashed var(--accent); border-radius: var(--radius-sm); }
.copybox__text { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 15.5px; overflow-wrap: anywhere; }
.copybox__text > :last-child { margin-bottom: 0; }
.copybox__btn { flex: none; color: var(--accent-contrast); background: var(--accent); border-color: var(--accent); }
.copybox__btn:hover { background: var(--accent-hover); }
@media (max-width: 480px) { .prose .copybox { flex-direction: column; align-items: stretch; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin: 0 0 18px; font-family: var(--font-ui); font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--muted); min-width: 0; }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.container > .breadcrumbs { padding-top: clamp(20px, 4vw, 32px); margin-bottom: -16px; }
.article > .breadcrumbs { margin-bottom: 24px; }

/* ---------- Post Layouts & Author Box ---------- */
.container--wide { max-width: 980px; }
.with-sidebar .container--wide { max-width: none; }
.post-cover { position: relative; display: grid; align-items: end; min-height: clamp(320px, 56vh, 560px); margin-bottom: clamp(24px, 5vw, 48px); background: linear-gradient(180deg, rgb(0 0 0 / .1), rgb(0 0 0 / .78)), var(--cover) center / cover no-repeat, var(--surface-2); color: #fff; }
.post-cover__inner { width: 100%; padding-top: 48px; padding-bottom: clamp(24px, 5vw, 48px); }
.post-cover h1, .post-cover .article__meta, .post-cover .article__author, .post-cover .breadcrumbs a, .post-cover .breadcrumbs li, .post-cover .breadcrumbs [aria-current] { color: #fff !important; -webkit-text-fill-color: #fff; background: none; filter: none; text-shadow: 0 2px 16px rgb(0 0 0 / .5); }
.post-cover h1 { font-size: clamp(32px, 6vw, 58px); }
.with-sidebar .post-cover { margin-top: 24px; border-radius: var(--radius); overflow: hidden; }
.layout-post-minimal .article__header { text-align: center; }
.layout-post-minimal .article__cats, .layout-post-minimal .article__meta { justify-content: center; }
.layout-post-minimal .article h1 { font-size: clamp(30px, 5vw, 44px); }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 36px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.author-box__avatar { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 42%)); }
.author-box p { margin: 0; }
.author-box__label { font-family: var(--font-ui); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.author-box__name { font-family: var(--font-heading); font-weight: 700; font-size: 19px; }
.author-box__name a { color: var(--text); text-decoration: none; }
.author-box__name a:hover { color: var(--accent); }
.author-box__bio { margin-top: 4px !important; color: var(--muted); font-size: 15.5px; }
.author-box__count { margin-top: 6px !important; font-family: var(--font-ui); font-size: 13px; color: var(--accent); }
@media print { .code-block__copy, .copybox__btn, .breadcrumbs { display: none !important; } .post-cover { min-height: 0; background: none !important; color: #111; } .post-cover * { color: #111 !important; -webkit-text-fill-color: #111; text-shadow: none; } .prose .code-block pre, .prose .code-block { background: #f5f5f5 !important; } .tok-kw, .tok-str, .tok-num, .tok-com, .tok-fn, .tok-type, .tok-attr, .tok-tag { color: #111 !important; } }

/* ---------- Plugins: Announcement Bar ---------- */
.announce { position: relative; z-index: 21; font-family: var(--font-ui); font-size: 14.5px; line-height: 1.45; background: var(--accent); color: var(--accent-contrast); }
.announce--dark { background: #111318; color: #f3f4f6; }
.announce--light { background: var(--surface-2); color: var(--text); border-bottom: 1px solid var(--border); }
.announce--warning { background: #ffd23f; color: #1d1600; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.announce p { margin: 0; text-align: center; }
.announce a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.announce__close { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 15px; cursor: pointer; opacity: .8; }
.announce__close:hover { opacity: 1; background: rgb(0 0 0 / .12); }
.announce[hidden] { display: none; }

/* ---------- Plugins: Social Icons ---------- */
.social-icons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; text-decoration: none; transition: color .15s, background-color .15s, border-color .15s, transform .15s; }
.social-icon svg { width: 20px; height: 20px; }
.social-icons--outline .social-icon { border: 1.5px solid var(--border-strong); }
.social-icons--filled .social-icon { background: var(--surface-2); color: var(--text); }
.social-icon:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social-icons--filled .social-icon:hover { background: var(--accent); color: var(--accent-contrast); }
.social-icons--header { gap: 2px; }
.social-icons--header .social-icon { width: 36px; height: 36px; border: 0; background: none; }
.social-icons--header .social-icon svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .social-icons--header { display: none; } }
.footer-top { display: flex; justify-content: center; margin-bottom: 18px; }

/* ---------- Plugins: Footer Builder ---------- */
.footer-built { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; width: 100%; }
.footer-built__main { display: grid; gap: 4px; }
.footer-built__note { margin: 0; max-width: 46em; font-size: 13.5px; opacity: .85; }
.footer-centered .site-footer__inner, .footer-centered .footer-built, .footer-stacked .footer-built { flex-direction: column; text-align: center; justify-content: center; }
.footer-stacked .footer-built { align-items: flex-start; text-align: left; }
.footer-centered .footer-nav ul, .footer-centered .footer-top { justify-content: center; }

/* ---------- Plugins: Header Options ---------- */
.header-static .site-header { position: relative; }
.header-cta { margin-left: 6px; }
@media (max-width: 520px) { .header-cta { padding: 0 10px; font-size: 13px; } }
.brand__text { display: grid; min-width: 0; }
.brand__tagline { display: none; font-family: var(--font-ui); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32ch; }
.header-tagline .brand__tagline { display: block; }
@media (max-width: 520px) { .brand__text { display: none; } }

/* ---------- Menu Styles plugin (body classes from plugins/menuStyle) ---------- */
.menu-upper .site-nav__link { text-transform: uppercase; letter-spacing: .08em; font-size: .86em; }
.menu-no-terms .site-nav__link--term { display: none; }
.menu-no-search .site-search-link { display: none; }
.menu-plain .site-nav__link, .menu-plain .site-nav__link--term { background: none; border-color: transparent; box-shadow: none; border-radius: 0; }
.menu-plain .site-nav__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-pills .site-nav__link { border-radius: 999px; border: 1px solid transparent; }
.menu-pills .site-nav__link:hover { background: var(--accent-soft); }
.menu-pills .site-nav__link[aria-current="page"] { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.menu-underline .site-nav__link, .menu-underline .site-nav__link--term { background: none; border: 0; border-radius: 0; box-shadow: inset 0 -2px 0 transparent; }
.menu-underline .site-nav__link:hover { box-shadow: inset 0 -2px 0 var(--border-strong); }
.menu-underline .site-nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); color: var(--text); }
.menu-boxed .site-nav__link { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.menu-boxed .site-nav__link[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
@media (min-width: 761px) {
  .menu-align-center .site-header__inner { flex-wrap: wrap; justify-content: center; }
  .menu-align-center .brand { flex: 1 0 100%; justify-content: center; padding-top: 8px; }
  .menu-align-center .site-header__nav { flex: 1 0 100%; justify-content: center; padding-bottom: 6px; }
  .menu-align-left .site-header__nav { margin-left: 28px; margin-right: auto; }
}

/* ---------- Post Details plugin ---------- */
.old-post-notice { display: flex; gap: 8px; align-items: center; padding: 10px 14px; margin: 0 0 24px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--warning) 12%, var(--surface)); color: var(--text); font-family: var(--font-ui); font-size: 15px; border-left: 3px solid var(--warning); }
.post-cta { margin: 40px 0 8px; padding: clamp(20px, 4vw, 32px); border-radius: var(--radius); }
.post-cta--accent { background: var(--accent); color: var(--accent-contrast); }
.post-cta--accent .post-cta__title, .post-cta--accent .post-cta__text { color: inherit; }
.post-cta--accent .post-cta__btn { background: var(--accent-contrast); color: var(--accent); border-color: var(--accent-contrast); }
.post-cta--subtle { background: var(--surface-2); }
.post-cta--outline { border: 2px solid var(--accent); }
.post-cta__title { font-size: clamp(20px, 2.6vw, 26px); margin: 0 0 8px; }
.post-cta__text { margin: 0 0 16px; max-width: 60ch; }
.post-cta__text:last-child { margin-bottom: 0; }

/* ---------- Homepage Builder plugin ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 5vw, 48px); }
.hero__title { font-size: clamp(36px, 6.5vw, 64px); line-height: 1.05; margin: 0 0 16px; max-width: 18ch; }
.hero__text { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 46ch; margin: 0 0 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.hero .search--inline { margin-top: 18px; }
.btn--lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.hero--centered { text-align: center; }
.hero--centered .hero__title, .hero--centered .hero__text { margin-left: auto; margin-right: auto; }
.hero--centered .hero__actions { justify-content: center; }
.hero--centered .search--inline { margin-left: auto; margin-right: auto; }
.hero--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.hero__media { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--banner {
  position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(320px, 52vh, 520px);
  margin: clamp(16px, 3vw, 28px) 0 clamp(20px, 4vw, 36px); padding: clamp(28px, 6vw, 64px); border-radius: var(--radius); overflow: hidden;
  background: var(--hero-img, none) center / cover no-repeat, linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000));
  color: #fff;
}
.hero--banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / .72), rgb(0 0 0 / .15) 70%); }
.hero--banner .hero__title, .hero--banner .hero__text { color: #fff; -webkit-text-fill-color: #fff; background: none; text-shadow: 0 2px 18px rgb(0 0 0 / .35); }
.hero--banner .btn--ghost { color: #fff; border-color: rgb(255 255 255 / .6); }
.hero--banner .btn--ghost:hover { background: rgb(255 255 255 / .14); }
.hero--center { text-align: center; justify-items: center; }
.hero--center .hero__title, .hero--center .hero__text { margin-left: auto; margin-right: auto; }
.hero--center .hero__actions { justify-content: center; }
.hero--minimal { padding: clamp(28px, 5vw, 48px) 0 clamp(12px, 2vw, 20px); }
.hero--minimal .hero__title { font-size: clamp(26px, 4vw, 36px); max-width: none; }
.home-hero-none .site-content main > .container { padding-top: clamp(24px, 5vw, 48px); }
@media (max-width: 760px) { .hero--split { grid-template-columns: minmax(0, 1fr); } .hero__media { order: -1; aspect-ratio: 16 / 9; } }
.home-block__title { font-size: clamp(20px, 2.6vw, 26px); margin: clamp(24px, 4vw, 40px) 0 16px; }
.home-featured { margin-bottom: 12px; }
.post-list.post-list--featured, .post-list.post-list--section { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px; margin-bottom: 24px; }
.post-list--featured .post-card, .post-list--section .post-card {
  grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; padding: 0; overflow: hidden;
  background: var(--surface); border: var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.post-list--featured .post-card:last-child, .post-list--section .post-card:last-child { border-bottom: var(--card-border); }
.post-list--featured .post-card__media, .post-list--section .post-card__media { order: 0; aspect-ratio: 16 / 10; border-radius: 0; }
.post-list--featured .post-card__body, .post-list--section .post-card__body { padding: 16px 18px 18px; }
.post-list--featured .post-card__title, .post-list--section .post-card__title { font-size: 20px; }
@media (min-width: 900px) {
  .home-featured--spotlight .post-list--featured { grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; }
  .home-featured--spotlight .post-list--featured .post-card:first-child { grid-row: span 2; }
  .home-featured--spotlight .post-list--featured .post-card:first-child .post-card__title { font-size: clamp(26px, 3vw, 34px); }
  .home-featured--spotlight .post-list--featured .post-card:not(:first-child) .post-card__excerpt { display: none; }
  body:not(.has-sidebar) .home-featured--spotlight .post-list--featured .post-card:not(:first-child) { grid-template-columns: 160px minmax(0, 1fr); }
  body:not(.has-sidebar) .home-featured--spotlight .post-list--featured .post-card:not(:first-child) .post-card__media { aspect-ratio: auto; height: 100%; }
  body.has-sidebar .home-featured--spotlight .post-list--featured .post-card:not(:first-child) .post-card__media { aspect-ratio: 16 / 7; }
  body.has-sidebar .home-featured--spotlight .post-list--featured .post-card:not(:first-child) .post-card__title { font-size: 18px; }
}
.home-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.home-cats__count { opacity: .6; font-size: .85em; margin-left: 2px; }
.home-section { margin-top: clamp(28px, 5vw, 48px); }
.home-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-section__all { font-family: var(--font-ui); font-size: 15px; font-weight: 600; text-decoration: none; }
.home-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: clamp(32px, 5vw, 56px) 0; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.home-cta__title { font-size: clamp(22px, 3vw, 30px); margin: 0 0 6px; }
.home-cta p { margin: 0; color: var(--muted); max-width: 60ch; }

/* ---------- Post Cards & Grid plugin ---------- */
@media (min-width: 640px) {
  body.cards-cols-2:is(.layout-grid, .layout-portfolio, .layout-magazine) .post-list:not(.post-list--related):not(.post-list--featured) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  body.cards-cols-3:is(.layout-grid, .layout-portfolio, .layout-magazine) .post-list:not(.post-list--related):not(.post-list--featured) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.cards-cols-4:is(.layout-grid, .layout-portfolio, .layout-magazine) .post-list:not(.post-list--related):not(.post-list--featured) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 899px) {
  body:is(.cards-cols-3, .cards-cols-4):is(.layout-grid, .layout-portfolio, .layout-magazine) .post-list:not(.post-list--related):not(.post-list--featured) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.cards-cols-1:is(.layout-grid, .layout-portfolio, .layout-magazine) .post-list:not(.post-list--related):not(.post-list--featured) { grid-template-columns: minmax(0, 1fr); }
body.cards-cols-1.layout-portfolio .post-list .post-card:nth-child(n) { grid-column: auto; }
body.cards-on .post-list { gap: var(--card-gap, 22px); }
body.cards-on.layout-list .post-list, body.cards-on.layout-compact .post-list { gap: 0; }
body.cards-on .post-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--excerpt-lines, none); overflow: hidden; }
body.cards-on .post-card, body.cards-on .post-card__media { border-radius: var(--card-radius, var(--radius)); }
body.cards-on.layout-list .post-card, body.cards-on.layout-compact .post-card { border-radius: 0; }
body.cards-on.layout-list .post-card__media { border-radius: var(--card-radius, var(--radius)); }
body.cards-ratio .post-list .post-card__media, body.cards-ratio.layout-grid .post-list .post-card__media, body.cards-ratio.layout-magazine .post-list .post-card .post-card__media { aspect-ratio: var(--card-ratio); }
body.cards-no-image .post-card .post-card__media { display: none; }
body.cards-no-image .post-card { grid-template-columns: minmax(0, 1fr); }
body.cards-no-image.layout-portfolio .post-list .post-card .post-card__body { position: static; background: var(--surface); color: var(--text); }
body.cards-no-placeholder .post-card__media:has(.ph) { display: none; }
body.cards-no-placeholder .post-card:has(.ph) { grid-template-columns: minmax(0, 1fr); }
body.cards-no-excerpt .post-card .post-card__excerpt { display: none; }
body.cards-no-cats .post-card .post-card__cats .chip:not(.chip--featured) { display: none; }
body.cards-no-date .post-card__meta time { display: none; }
body.cards-no-date .post-card__meta .post-card__reading { margin-left: -.3em; }
body.cards-no-reading .post-card__reading { display: none; }
body.cards-center .post-card__body { text-align: center; }
body.cards-center .post-card__cats { justify-content: center; }
body.cards-title-small .post-card .post-card__title { font-size: clamp(17px, 2vw, 19px); }
body.cards-title-large .post-card .post-card__title { font-size: clamp(24px, 3vw, 30px); }
.post-card__more { display: inline-block; margin-top: 10px; font-family: var(--font-ui); font-size: 14.5px; font-weight: 700; text-decoration: none; color: var(--accent); }
.post-card__more:hover { text-decoration: underline; text-underline-offset: 3px; }
body.cards-on:is(.cards-bordered, .cards-shadow, .cards-flat, .cards-tinted):is(.layout-grid, .layout-magazine) .post-list .post-card { padding: 0; overflow: hidden; }
body.cards-on.cards-bordered:is(.layout-grid, .layout-magazine) .post-list .post-card { border: 1px solid var(--border-strong); box-shadow: none; background: var(--surface); }
body.cards-on.cards-shadow:is(.layout-grid, .layout-magazine) .post-list .post-card { border: 0; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08); }
body.cards-on.cards-shadow:is(.layout-grid, .layout-magazine) .post-list .post-card:hover { box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 16px 36px rgb(0 0 0 / .14); }
body.cards-on.cards-flat:is(.layout-grid, .layout-magazine) .post-list .post-card { border: 0; box-shadow: none; background: transparent; }
body.cards-on.cards-flat:is(.layout-grid, .layout-magazine) .post-list .post-card__body { padding-left: 0; padding-right: 0; }
body.cards-on.cards-flat:is(.layout-grid, .layout-magazine) .post-list .post-card__media { border-radius: var(--card-radius, var(--radius)); }
body.cards-on.cards-tinted:is(.layout-grid, .layout-magazine) .post-list .post-card { border: 0; box-shadow: none; background: var(--accent-soft); }
body.cards-on.cards-tinted.layout-list .post-list .post-card { background: var(--accent-soft); padding: 22px; border: 0; border-radius: var(--card-radius, var(--radius)); margin-bottom: var(--card-gap, 14px); }
body.cards-on.cards-bordered.layout-list .post-list .post-card { border: 1px solid var(--border-strong); padding: 22px; border-radius: var(--card-radius, var(--radius)); margin-bottom: var(--card-gap, 14px); }
body.cards-on.cards-shadow.layout-list .post-list .post-card { border: 0; padding: 22px; border-radius: var(--card-radius, var(--radius)); margin-bottom: var(--card-gap, 14px); background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08); }
body.cards-hover-lift .post-list .post-card { transition: transform .2s, box-shadow .2s; }
body.cards-hover-lift .post-list .post-card:hover { transform: translateY(-4px); }
body.cards-hover-zoom .post-list .post-card:hover { transform: none; }
body.cards-hover-zoom .post-list .post-card:hover .post-card__media img { transform: scale(1.07); }
body.cards-hover-none .post-list .post-card, body.cards-hover-none .post-list .post-card:hover, body.cards-hover-none .post-list .post-card:hover .post-card__media img { transform: none; }
@media (prefers-reduced-motion: reduce) { body.cards-on .post-list .post-card, body.cards-on .post-card__media img { transition: none; } }

/* ---------- Post Page Display plugin ---------- */
body.pd-size .prose { font-size: var(--prose-size); }
body.pd-leading .prose { line-height: var(--prose-leading); }
body.pd-width .article.container--narrow, body.pd-width .post-cover__inner.container--narrow { max-width: var(--prose-width); }
body.pd-title-left .article__header, body.pd-title-left .article__cats, body.pd-title-left .article__meta { text-align: left; justify-content: flex-start; }
body.pd-title-center .article__header { text-align: center; }
body.pd-title-center .article__cats, body.pd-title-center .article__meta { justify-content: center; }
body.pd-title-small .article h1 { font-size: clamp(26px, 4vw, 36px); }
body.pd-title-large .article h1, body.pd-title-large .post-cover h1 { font-size: clamp(38px, 7vw, 64px); }
body.pd-title-huge .article h1, body.pd-title-huge .post-cover h1 { font-size: clamp(44px, 9vw, 84px); line-height: 1.02; letter-spacing: -0.03em; }
body.pd-image-hidden .article__image { display: none; }
body.pd-image-contained .article__image { margin-left: 0; margin-right: 0; }
@media (min-width: 900px) {
  body.pd-image-wide .article__image { margin-left: -80px; margin-right: -80px; }
  body.pd-image-full:not(.has-sidebar) .article__image { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; }
}
body.pd-ratio-natural .article__image { aspect-ratio: auto; }
body.pd-ratio-natural .article__image img { height: auto; }
body.pd-ratio-wide .article__image { aspect-ratio: 21 / 9; }
body.pd-ratio-classic .article__image { aspect-ratio: 4 / 3; }
body.pd-links-underline .prose a:not(.wp-button) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; color: var(--accent); }
body.pd-links-accent .prose a:not(.wp-button) { text-decoration: none; color: var(--accent); font-weight: 600; }
body.pd-links-accent .prose a:not(.wp-button):hover { text-decoration: underline; }
body.pd-links-highlight .prose a:not(.wp-button) { text-decoration: none; color: var(--text); background: linear-gradient(transparent 58%, color-mix(in srgb, var(--accent) 30%, transparent) 0); }
body.pd-links-highlight .prose a:not(.wp-button):hover { background: color-mix(in srgb, var(--accent) 30%, transparent); }
body.pd-headings-bar .prose :is(h2, h3) { padding-left: 14px; border-left: 4px solid var(--accent); }
body.pd-headings-line .prose h2 { padding-bottom: 8px; border-bottom: 2px solid var(--border-strong); }
body.pd-headings-upper .prose :is(h2, h3) { text-transform: uppercase; letter-spacing: .06em; font-size: .8em; }
body.pd-dropcap .prose > p:first-of-type::first-letter { float: left; font-family: var(--font-heading); font-size: 3.6em; line-height: .85; font-weight: 700; margin: .06em .1em 0 0; color: var(--accent); }
body.pd-no-author .article__meta > :is(a.article__author, span.article__author) { display: none; }
body.pd-no-author .article__meta { font-size: 0; gap: 0 8px; }
body.pd-no-author .article__meta > * { font-size: 15px; }
body.pd-no-date .article__meta > time { display: none; }
body.pd-no-updated .article__updated { display: none; }
body.pd-no-cats .article__cats { display: none; }
body.pd-no-tags .article__tags { display: none; }
body.pd-no-back .back-link { display: none; }
body.pd-no-nav .post-nav { display: none; }
body.pd-no-print .share__btn--print { display: none; }

/* ---------- Sidebar Options plugin ---------- */
body.has-sidebar .with-sidebar { grid-template-columns: minmax(0, 1fr) var(--sidebar-w, 300px); }
body.has-sidebar.sidebar-left .with-sidebar { grid-template-columns: var(--sidebar-w, 300px) minmax(0, 1fr); }
@media (max-width: 960px) { body.has-sidebar .with-sidebar, body.has-sidebar.sidebar-left .with-sidebar { grid-template-columns: minmax(0, 1fr); } }
body.sb-posts-only:not(.single) .with-sidebar, body.sb-lists-only.single .with-sidebar { grid-template-columns: minmax(0, 1fr); }
body.sb-posts-only:not(.single) .sidebar, body.sb-lists-only.single .sidebar { display: none; }
body.sb-lists-only.single .with-sidebar .container--narrow { margin: 0 auto; }
body.sb-static .sidebar { position: static; }
body.sb-boxed .sidebar .widget { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 20px; box-shadow: none; }
body.sb-lined .sidebar { gap: 0; }
body.sb-lined .sidebar .widget { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 22px 0; border-top: 1px solid var(--border); }
body.sb-lined .sidebar .widget:first-child { border-top: 0; padding-top: 0; }
body.sb-panel .sidebar { background: var(--surface-2); border-radius: var(--radius); padding: 22px; gap: 0; margin-top: clamp(36px, 7vw, 72px); }
body.sb-panel .sidebar .widget { background: none; border: 0; box-shadow: none; padding: 0 0 20px; }
body.sb-titles-upper .sidebar .widget__title { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
body.sb-titles-underline .sidebar .widget__title { text-transform: none; letter-spacing: 0; font-size: 17px; color: var(--text); padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
body.sb-titles-accent .sidebar .widget__title { color: var(--accent); text-transform: none; letter-spacing: 0; font-size: 17px; }
@media (max-width: 960px) { body.sb-hide-mobile .sidebar { display: none; } }

/* ---------- Related & Recommended posts: compact lists ---------- */
.mini-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini-posts a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.mini-posts__img { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.mini-posts__img img { width: 100%; height: 100%; object-fit: cover; }
.mini-posts__img .ph { font-size: 22px; }
.mini-posts__text { display: grid; gap: 2px; min-width: 0; }
.mini-posts__text strong { font-family: var(--font-heading); font-size: 16px; line-height: 1.3; }
.mini-posts a:hover strong { color: var(--accent); }
.mini-posts__text time { font-family: var(--font-ui); font-size: 13px; color: var(--muted); }
.mini-posts--titles a { grid-template-columns: minmax(0, 1fr); }
.mini-posts--titles li { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.related .mini-posts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.recommended--home { margin-bottom: 32px; }

/* ---------- Social Share Buttons ---------- */
.share__btn svg { flex: none; }
.share--top { margin: 0 0 28px; }
.share-pos-above .share:not(.share--top) .share__btn:not(.share__btn--print), .share-pos-above .share:not(.share--top) .share__label { display: none; }
.share-style-icons .share__btn { width: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
.share-style-icons .share__btn .share__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.share-style-icons .share__btn--print { width: auto; padding: 0 12px; border-radius: var(--radius-pill); }
.share-style-minimal .share__btn { border: 0; background: none; padding: 0 6px; min-height: 30px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.share-style-minimal .share__btn svg { display: none; }
.share-style-minimal .share__btn:hover { color: var(--accent); }
.share-style-pills .share__btn { border: 0; color: #fff; background: var(--net, var(--accent)); }
.share-style-pills .share__btn:hover { color: #fff; filter: brightness(1.1); }
.share-style-pills .share__btn--print, .share-style-pills .share__btn--copy, .share-style-pills .share__btn--native { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.share__btn--x { --net: #0f1419; } .share__btn--facebook { --net: #1877f2; } .share__btn--linkedin { --net: #0a66c2; }
.share__btn--whatsapp { --net: #1da851; } .share__btn--telegram { --net: #229ed9; } .share__btn--reddit { --net: #ff4500; }
.share__btn--bluesky { --net: #0a7aff; } .share__btn--threads { --net: #000; } .share__btn--pinterest { --net: #e60023; } .share__btn--email { --net: #5f6368; }
@media (min-width: 1240px) {
  .share-floating .article { position: relative; }
  .share-floating .article .share:not(.share--top) { position: fixed; top: 50%; transform: translateY(-50%); left: max(12px, calc(50% - var(--prose-width, 760px) / 2 - 120px)); flex-direction: column; align-items: stretch; margin: 0; z-index: 5; }
  .share-floating .article .share:not(.share--top) .share__label { justify-content: center; margin: 0 0 4px; }
  .share-floating.has-sidebar .article .share:not(.share--top) { position: static; transform: none; flex-direction: row; }
}
@media (max-width: 760px) {
  .share-floating .article .share:not(.share--top) { position: sticky; bottom: 0; z-index: 5; flex-wrap: nowrap; overflow-x: auto; margin: 28px calc(-1 * var(--gutter)) 0; padding: 10px var(--gutter); background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(6px); }
  .share-floating .article .share:not(.share--top) .share__label { display: none; }
}

/* ---------- Privacy & Cookies plugin ---------- */
.video--consent { display: grid; place-items: center; position: relative; background: radial-gradient(circle at 30% 30%, #2a2f3a, #0d0f14); color: #fff; }
.video__load { display: grid; justify-items: center; gap: 8px; padding: 24px; border: 0; background: none; color: inherit; font: inherit; font-family: var(--font-ui); cursor: pointer; text-align: center; }
.video__play { display: grid; place-items: center; width: 68px; height: 48px; border-radius: 14px; background: #e62117; font-size: 22px; padding-left: 4px; transition: transform .15s; }
.video__load:hover .video__play, .video__load:focus-visible .video__play { transform: scale(1.08); }
.video__load:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 8px; }
.video__label { font-size: 17px; font-weight: 700; }
.video__load small { font-size: 13px; opacity: .8; max-width: 36ch; }
.video__privacy { position: absolute; right: 12px; bottom: 10px; font-family: var(--font-ui); font-size: 12.5px; color: rgb(255 255 255 / .8); }
.privacy-link { margin: 0; font-family: var(--font-ui); font-size: 14px; }
.privacy-link a { color: var(--muted); }
.announce--info { background: var(--surface-2); color: var(--text); border-bottom: 1px solid var(--border); }
.plugin-page__article .prose h2 { font-size: 22px; }
@media print { .video--consent { display: none; } }

/* ---------- Header Options: look, height, site name ---------- */
body.header-look-line .site-header { border-bottom: 1px solid var(--border-strong); box-shadow: none; }
body.header-look-shadow .site-header { border-bottom-color: transparent; box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 6px 20px rgb(0 0 0 / .07); }
body.header-look-accent .site-header { background: var(--accent); border-bottom-color: transparent; }
body.header-look-dark .site-header { background: #14161b; border-bottom-color: #2a2d35; }
body:is(.header-look-accent, .header-look-dark) .site-header :is(.brand, .brand__tagline, .site-nav__link, .site-search-link, .nav-toggle, .social-icon) { color: #fff; }
body.header-look-accent .site-header .brand__mark { background: var(--accent-contrast); color: var(--accent); }
body:is(.header-look-accent, .header-look-dark) .site-header .site-nav__link:hover { background: rgb(255 255 255 / .14); }
body:is(.header-look-accent, .header-look-dark) .site-header .site-nav__link[aria-current="page"] { background: rgb(255 255 255 / .2); color: #fff; }
body:is(.header-look-accent, .header-look-dark) .site-header .sub-menu .site-nav__link { color: var(--text); }
body.header-look-accent .site-header .header-cta { background: var(--accent-contrast); color: var(--accent); border-color: var(--accent-contrast); }
body.header-look-transparent:not(.single) .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
body.header-compact .site-header__inner { min-height: 52px; }
body.header-tall .site-header__inner { min-height: 84px; }
body.header-no-mark .brand__mark { display: none; }
body.header-name-small .brand { font-size: 16px; }
body.header-name-large .brand { font-size: clamp(21px, 2.6vw, 26px); }
@media (max-width: 760px) { body.header-no-mark .brand__name { display: block; } }

/* ---------- Menu Styles: size, spacing, weight ---------- */
body.menu-size-small .site-nav__link { font-size: 13.5px; }
body.menu-size-large .site-nav__link { font-size: 17px; }
body.menu-space-compact .site-nav__list { gap: 0; }
body.menu-space-compact .site-nav__link { padding: 0 8px; }
body.menu-space-roomy .site-nav__list { gap: 10px; }
body.menu-space-roomy .site-nav__link { padding: 0 16px; }
body.menu-weight-normal .site-nav__link { font-weight: 400; }
body.menu-weight-bold .site-nav__link { font-weight: 800; }

/* ---------- Footer Builder: look and widget columns ---------- */
body.footer-look-light .site-footer { background: var(--surface-2); border-top: 0; }
body.footer-look-dark .site-footer { background: #14161b; color: #b7bcc6; border-top: 0; }
body.footer-look-accent .site-footer { background: var(--accent); color: var(--accent-contrast); border-top: 0; }
body:is(.footer-look-dark, .footer-look-accent) .site-footer :is(a, .widget__title, .social-icon) { color: inherit; }
body:is(.footer-look-dark, .footer-look-accent) .site-footer .widget { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); color: inherit; }
body:is(.footer-look-dark, .footer-look-accent) .site-footer .widget :is(a, li, p, time, .count) { color: inherit; }
@media (min-width: 700px) {
  body.footer-cols-1 .footer-widgets { grid-template-columns: minmax(0, 1fr); }
  body.footer-cols-2 .footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.footer-cols-3 .footer-widgets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.footer-cols-4 .footer-widgets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Social Icons: size and brand colours ---------- */
body.social-small .social-icons:not(.social-icons--header) .social-icon { width: 32px; height: 32px; }
body.social-small .social-icons .social-icon svg { width: 16px; height: 16px; }
body.social-large .social-icons:not(.social-icons--header) .social-icon { width: 50px; height: 50px; }
body.social-large .social-icons:not(.social-icons--header) .social-icon svg { width: 24px; height: 24px; }
body.social-brand .social-icon--github { color: #24292f; } body.social-brand .social-icon--x { color: #0f1419; }
body.social-brand .social-icon--youtube { color: #ff0000; } body.social-brand .social-icon--instagram { color: #d62976; }
body.social-brand .social-icon--linkedin { color: #0a66c2; } body.social-brand .social-icon--facebook { color: #1877f2; }
body.social-brand .social-icon--mastodon { color: #6364ff; } body.social-brand .social-icon--bluesky { color: #0a7aff; }
body.social-brand .social-icon--tiktok { color: #111; } body.social-brand .social-icon--discord { color: #5865f2; }
body.social-brand .social-icon--twitch { color: #9146ff; } body.social-brand .social-icon--telegram { color: #229ed9; }
body.social-brand .social-icon--whatsapp { color: #1da851; } body.social-brand .social-icon--rss { color: #f26522; }
body.social-brand:is(.scheme-dark) .social-icon:is(.social-icon--github, .social-icon--x, .social-icon--tiktok) { color: #f3f4f6; }

/* ---------- Customizer preview: “✎ Edit …” on hover (only inside the CMS preview) ---------- */
.cms-edit-part { position: absolute; z-index: 9999; padding: 5px 10px; border: 0; border-radius: 4px; background: #2271b1; color: #fff; font: 600 12.5px/1.2 system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.cms-edit-part:hover, .cms-edit-part:focus-visible { background: #135e96; }
.is-preview .cms-edit-outline { outline: 2px dashed #2271b1; outline-offset: -2px; }

/* ---------- PDF download cards (inserted in posts from downloads/pdf/) ---------- */
.prose .pdf-download { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 1.8em 0; padding: 18px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.pdf-download__icon { position: relative; display: grid; place-items: center; width: 52px; height: 60px; border-radius: var(--radius-sm); background: color-mix(in srgb, #d93025 12%, var(--surface)); color: #c5221f; }
.pdf-download__icon b { position: absolute; bottom: 7px; font: 800 10px/1 var(--font-ui); letter-spacing: .06em; }
.pdf-download__icon svg { margin-top: -10px; }
.pdf-download__body { display: grid; gap: 3px; min-width: 0; }
.pdf-download__title { font-family: var(--font-heading); font-size: 1.08em; line-height: 1.3; color: var(--text); }
.pdf-download__desc { color: var(--muted); font-size: .9em; line-height: 1.5; }
.pdf-download__meta { font-family: var(--font-ui); font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.prose .pdf-download__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-contrast); font: 700 15px/1 var(--font-ui); text-decoration: none; white-space: nowrap; }
.prose .pdf-download__btn:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.prose .pdf-download__btn:focus-visible { outline: none; box-shadow: var(--focus); }
.prose .pdf-download--compact { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 14px; gap: 12px; border-style: dashed; }
.pdf-download--compact .pdf-download__icon { width: 36px; height: 42px; }
.pdf-download--compact .pdf-download__icon svg { width: 20px; height: 20px; }
.pdf-download--compact .pdf-download__icon b { font-size: 8px; bottom: 5px; }
.pdf-download--compact .pdf-download__desc { display: none; }
.prose .pdf-download--compact .pdf-download__btn { min-height: 36px; padding: 0 12px; font-size: 14px; background: transparent; color: var(--accent); border: 1px solid currentColor; }
.prose .pdf-download--compact .pdf-download__btn:hover { background: var(--accent-soft); color: var(--accent); }
.prose .pdf-download--banner { grid-template-columns: auto minmax(0, 1fr); padding: clamp(20px, 4vw, 32px); border: 0; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); }
.pdf-download--banner .pdf-download__icon { width: 64px; height: 76px; background: var(--surface); box-shadow: 0 6px 18px rgb(0 0 0 / .08); }
.pdf-download--banner .pdf-download__title { font-size: 1.35em; }
.pdf-download--banner .pdf-download__btn { grid-column: 2; justify-self: start; margin-top: 4px; }
@media (max-width: 560px) {
  .prose .pdf-download, .prose .pdf-download--compact { grid-template-columns: auto minmax(0, 1fr); }
  .prose .pdf-download .pdf-download__btn { grid-column: 1 / -1; justify-content: center; }
}
@media print { .pdf-download__btn::after { content: " (" attr(href) ")"; font-weight: 400; } }
