/* Base layer: structure, WordPress classes and article typography.
   Each theme's style.css sets the design tokens and personality. */

:root {
  --maxw: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --radius-ui: 6px;
  --font-ui: var(--font-body);
  --w-display: 700;
  --track-display: -0.01em;
  --lh-display: 1.12;
  --overlay: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.82) 100%);
  --header-bg: var(--bg);
  --header-text: var(--text);
  --footer-bg: var(--surface-2);
  --footer-text: var(--text);
  --footer-muted: var(--muted);
  --footer-line: var(--line);
  --link: var(--accent);
  --sticky-top: 96px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--sticky-top) + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
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; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display); font-weight: var(--w-display);
  letter-spacing: var(--track-display); line-height: var(--lh-display); margin: 0; text-wrap: balance;
}
p { margin: 0; }
[hidden] { display: none !important; }
.icon { width: 1em; height: 1em; flex: 0 0 auto; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.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:focus {
  clip: auto; width: auto; height: auto; margin: 0; z-index: 100000; top: 8px; left: 8px;
  padding: .75rem 1rem; background: var(--surface); color: var(--text); border-radius: var(--radius-ui);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.2rem; border: 2px solid transparent; border-radius: var(--radius-ui);
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-ui);
  font-weight: 700; font-size: .92rem; line-height: 1.1; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--accent-hover, var(--text)); color: var(--accent-hover-ink, var(--bg)); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius-ui); background: transparent;
  color: inherit; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.icon-btn:hover { border-color: currentColor; }
.icon-btn .icon { width: 19px; height: 19px; }
.mode-toggle .icon-moon, [data-theme="dark"] .mode-toggle .icon-sun { display: none; }
[data-theme="dark"] .mode-toggle .icon-moon { display: block; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 74px; }
.site-header__social { display: none; }
.site-brand { flex: 0 0 auto; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; color: var(--accent); }
.brand__name { font-family: var(--font-display); font-weight: var(--w-display); font-size: 1.6rem; line-height: 1; letter-spacing: var(--track-display); white-space: nowrap; }
.custom-logo-link { display: inline-block; }
.custom-logo { max-height: 56px; width: auto; }
.primary-nav { display: none; flex: 1 1 auto; min-width: 0; }
@media (min-width: 1024px) { .primary-nav { display: block; } .menu-toggle { display: none; } }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; }
.primary-menu li { position: relative; }
.primary-menu > li > a { display: block; padding: .5rem .62rem; font-family: var(--font-ui); font-weight: 600; font-size: .95rem; border-radius: var(--radius-ui); }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current-cat > a, .primary-menu .current-menu-ancestor > a { color: var(--nav-active, var(--accent)); }
.primary-menu .menu-item-has-children > a::after {
  content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .5em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.2em) rotate(45deg);
}
.primary-menu .sub-menu {
  position: absolute; left: 0; top: 100%; z-index: 5; min-width: 230px; list-style: none; margin: 0; padding: .45rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-ui);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a { display: block; padding: .55rem .7rem; border-radius: calc(var(--radius-ui) - 2px); font-weight: 500; font-size: .93rem; }
.primary-menu .sub-menu a:hover { background: var(--surface-2); }
.site-header__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.header-cta { display: none; }
@media (min-width: 1280px) { .header-cta { display: inline-flex; } }
.search-panel { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 1.1rem; }
.drawer { background: var(--surface); border-bottom: 1px solid var(--line); }
.drawer-menu { list-style: none; margin: 0; padding: .4rem 0 1rem; }
.drawer-menu a { display: block; padding: .8rem 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer-menu .sub-menu { list-style: none; margin: 0; padding-left: 1rem; }
.drawer .social { padding-bottom: 1.2rem; }
@media (min-width: 1024px) { .drawer { display: none !important; } }

.social { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: color .15s, border-color .15s; }
.social a:hover { color: var(--accent); border-color: currentColor; }
.social .icon { width: 16px; height: 16px; }

/* ---------- Sections and grids ---------- */
.section { padding-block: clamp(40px, 6vw, 76px); }
.section--tight { padding-block: clamp(24px, 4vw, 44px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(18px, 2.5vw, 28px); }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.section-desc { color: var(--muted); margin-top: .4rem; max-width: 60ch; font-size: .98rem; }
.section-link { font-family: var(--font-ui); font-weight: 700; font-size: .9rem; color: var(--accent); white-space: nowrap; }
.section-link:hover { text-decoration: underline; text-underline-offset: .2em; }

.grid { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.layout { display: grid; gap: clamp(36px, 4.5vw, 60px); }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 330px; } .sidebar { position: sticky; top: var(--sticky-top); align-self: start; } }
.layout__main { min-width: 0; }
.stack > * + * { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.1rem; }

/* ---------- Media ---------- */
.media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); aspect-ratio: 16 / 10; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--tall { aspect-ratio: 4 / 5; }
.media__ph { position: absolute; inset: 0; background: linear-gradient(135deg, hsl(var(--ph-hue, 220) 42% 32%), hsl(calc(var(--ph-hue, 220) + 45) 52% 58%)); }

/* ---------- Category label and meta ---------- */
.cat { display: inline-block; align-self: flex-start; font-family: var(--font-ui); font-weight: 700; font-size: .82rem; line-height: 1.25; color: var(--accent); }
.cat:hover { text-decoration: underline; text-underline-offset: .2em; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; font-family: var(--font-ui); font-size: .82rem; line-height: 1.4; color: var(--muted); }
.meta__author { color: var(--text-2); font-weight: 600; }
.meta__avatar img { width: 26px; height: 26px; border-radius: 50%; }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: .95rem; min-width: 0; }
.card__body { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.card__title { font-size: 1.22rem; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { color: var(--text-2); font-size: .96rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card-overlay { position: relative; display: flex; align-items: flex-end; min-height: 280px; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; background: #222; }
.card-overlay > .media { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; z-index: -2; }
.card-overlay::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--overlay); pointer-events: none; }
.card-overlay .card__body { width: 100%; padding: clamp(16px, 2.4vw, 30px); gap: .6rem; }
.card-overlay .card__title a::after { content: ""; position: absolute; inset: 0; }
.card-overlay .card__title a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.card-overlay .cat, .card-overlay .meta { position: relative; z-index: 1; }
.card-overlay .cat { color: #fff; }
.card-overlay .meta, .card-overlay .meta__author { color: rgba(255,255,255,.85); }
.card-overlay .card__excerpt { color: rgba(255,255,255,.88); }

.card-row { display: grid; grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: start; }
.card-row .card__body { gap: .45rem; }
.card-row .card__title { font-size: 1.12rem; }

.mini { display: flex; gap: .9rem; align-items: flex-start; min-width: 0; }
.mini > .media { width: 76px; flex: 0 0 76px; border-radius: calc(var(--radius) * .75); }
.mini__body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.mini__title { font-size: 1rem; line-height: 1.3; }
.mini__title a:hover { color: var(--accent); }

.ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ranked > li { counter-increment: rank; display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: .7rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.ranked > li:first-child { border-top: 0; padding-top: 0; }
.ranked > li::before { content: counter(rank); font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Sidebar widgets ---------- */
.sidebar { display: flex; flex-direction: column; gap: 2.4rem; min-width: 0; }
.widget-title, .widget .wp-block-heading { font-size: 1.15rem; margin-bottom: 1rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding-block: .55rem; border-top: 1px solid var(--line); }
.widget li:first-child { border-top: 0; }
.widget a:hover { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { display: inline-block; padding: .38rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-ui); font-size: .85rem; line-height: 1.3; transition: border-color .15s, color .15s; }
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Newsletter ---------- */
.signup { display: flex; flex-direction: column; gap: 1rem; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.signup__title { font-size: 1.45rem; }
.signup__text { font-size: .96rem; opacity: .9; margin-top: .35rem; }
.signup__form { display: flex; flex-wrap: wrap; gap: .5rem; }
.signup__form input[type="email"] { flex: 1 1 190px; min-width: 0; padding: .78rem .95rem; border: 1px solid transparent; border-radius: var(--radius-ui); background: #fff; color: #161616; }
.signup__button { background: var(--text); color: var(--bg); }
.signup__button:hover { background: #fff; color: #161616; }
.signup__status { font-size: .86rem; font-weight: 600; }
.signup__status:empty { display: none; }
.signup__admin { font-size: .78rem; padding: .55rem .7rem; border: 1px dashed currentColor; border-radius: 4px; opacity: .85; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: clamp(44px, 6vw, 76px); }
.site-footer .brand__mark { color: currentColor; }
.site-footer__grid { display: grid; gap: 2.4rem; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.5fr .8fr .8fr 1.6fr; } }
.site-footer__about { color: var(--footer-muted); margin: 1rem 0 1.25rem; max-width: 36ch; font-size: .95rem; }
.site-footer__title { font-family: var(--font-ui); font-size: .95rem; letter-spacing: 0; margin-bottom: 1rem; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.site-footer__col a { color: var(--footer-muted); }
.site-footer__col a:hover { color: var(--footer-text); }
.site-footer .social a { border-color: var(--footer-line); }
.site-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; margin-top: clamp(36px, 5vw, 60px); padding-block: 1.5rem; border-top: 1px solid var(--footer-line); font-size: .86rem; color: var(--footer-muted); }
.site-footer__links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer__bar a:hover { color: var(--footer-text); }

/* ---------- Listing pages ---------- */
.page-header { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(24px, 3vw, 36px); }
.page-title { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.page-desc { color: var(--text-2); margin-top: .7rem; max-width: 62ch; font-size: 1.05rem; }
.listing.grid { row-gap: clamp(32px, 4vw, 48px); }
.listing.stack-list > * + * { margin-top: clamp(24px, 3vw, 36px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.empty-state { padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 1rem; }
.layout { padding-bottom: clamp(48px, 6vw, 80px); }

.pagination { margin-top: clamp(36px, 5vw, 56px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--radius-ui); font-family: var(--font-ui); font-weight: 600; font-size: .92rem; }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--text); border-color: var(--text); color: var(--bg); }
.pagination .dots { border: 0; }

.search-form { display: flex; gap: .5rem; width: 100%; max-width: 560px; }
.search-form__input { flex: 1; min-width: 0; padding: .78rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-ui); background: var(--bg); }
.search-form__input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

.not-found { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.1rem; padding-block: clamp(48px, 8vw, 110px); }
.not-found__code { font-family: var(--font-display); font-weight: var(--w-display); font-size: clamp(4rem, 12vw, 8rem); line-height: .9; color: var(--accent); }
.not-found__title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.not-found__text { color: var(--text-2); max-width: 52ch; }

/* ---------- Single entry ---------- */
.entry-header { padding-top: clamp(36px, 5.5vw, 72px); padding-bottom: clamp(22px, 3vw, 34px); }
.entry-header__inner { max-width: var(--entry-head, 760px); display: flex; flex-direction: column; gap: 1rem; margin-inline: auto; text-align: var(--entry-align, left); align-items: var(--entry-items, flex-start); }
.entry-title { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.entry-dek { font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--text-2); max-width: 62ch; }
.entry-byline { display: flex; align-items: center; gap: .8rem; margin-top: .3rem; }
.entry-byline img { width: 46px; height: 46px; border-radius: 50%; }
.entry-byline__text { display: flex; flex-direction: column; gap: .15rem; align-items: var(--entry-items, flex-start); }
.entry-author { font-family: var(--font-ui); font-weight: 700; font-size: .95rem; }
.entry-media { margin-block: 0 clamp(28px, 4vw, 48px); }
.entry-media img { width: 100%; border-radius: var(--radius); }
.entry-media figcaption { margin-top: .6rem; font-size: .85rem; color: var(--muted); }
.entry-body { max-width: calc(760px + var(--gut) * 2); padding-bottom: clamp(40px, 5vw, 64px); }
.entry-content { font-size: 1.12rem; line-height: 1.75; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > * { margin-block: 0 1.35em; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.9em; margin-bottom: .6em; }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.7em; margin-bottom: .55em; }
.entry-content h4 { font-size: 1.15rem; margin-top: 1.5em; margin-bottom: .5em; }
.entry-content a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .45em; }
.entry-content blockquote, .wp-block-quote { margin-inline: 0; padding-left: 1.3rem; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.45; }
.entry-content blockquote p { margin-bottom: .6em; }
.entry-content cite { display: block; font-family: var(--font-ui); font-size: .88rem; font-style: normal; color: var(--muted); }
.wp-block-pullquote { padding: 2rem 0; border-block: 3px solid var(--text); text-align: center; }
.entry-content img, .entry-content video, .entry-content iframe { border-radius: var(--radius); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text, .wp-element-caption { margin-top: .6rem; font-size: .88rem; color: var(--muted); text-align: center; }
.entry-content hr, .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.entry-content pre { overflow-x: auto; padding: 1.1rem; border-radius: var(--radius); background: var(--surface-2); font-size: .92rem; line-height: 1.55; }
.entry-content code { font-size: .9em; padding: .12em .35em; border-radius: 4px; background: var(--surface-2); }
.entry-content pre code { padding: 0; background: none; }
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.wp-block-table { overflow-x: auto; }
.entry-content th, .entry-content td { padding: .65rem .8rem; border: 1px solid var(--line); text-align: left; }
.entry-content a.btn { color: var(--accent-ink); text-decoration: none; }
.entry-content a.btn:hover { color: var(--accent-hover-ink, var(--bg)); }
.entry-content a.btn--ghost { color: inherit; }
.entry-content .wp-block-button__link { display: inline-block; padding: .8rem 1.3rem; border-radius: var(--radius-ui); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; }
.page-links { display: flex; gap: .5rem; margin-top: 2rem; font-weight: 600; }
.entry-footer { display: flex; flex-direction: column; gap: 2rem; margin-top: clamp(32px, 4vw, 48px); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.share__label { font-family: var(--font-ui); font-weight: 700; font-size: .92rem; margin-right: .4rem; }
.share__link { display: inline-flex; align-items: center; gap: .45rem; height: 40px; min-width: 40px; justify-content: center; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-family: var(--font-ui); font-size: .86rem; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.share__link:hover { border-color: var(--accent); color: var(--accent); }
.share__link .icon { width: 17px; height: 17px; }
.author-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.4rem; border-radius: var(--radius); background: var(--surface-2); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; }
.author-box__name { font-family: var(--font-ui); font-weight: 700; margin-bottom: .3rem; }
.author-box__bio { color: var(--text-2); font-size: .95rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-nav a { display: flex; flex-direction: column; gap: .3rem; }
.post-nav__label { font-family: var(--font-ui); font-size: .82rem; color: var(--muted); }
.post-nav__title { font-family: var(--font-display); font-weight: var(--w-display); line-height: 1.3; }
.post-nav a:hover .post-nav__title { color: var(--accent); }
.post-nav__next { text-align: right; }
.related { border-top: 1px solid var(--line); }

/* ---------- Comments ---------- */
.comments { max-width: calc(760px + var(--gut) * 2); padding-bottom: clamp(40px, 5vw, 64px); }
.comments__title, .comment-reply-title { font-size: 1.5rem; margin-bottom: 1.2rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: clamp(16px, 4vw, 44px); }
.comment-body { padding-block: 1.2rem; border-top: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: .65rem; font-family: var(--font-ui); font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: .25rem 0 .7rem; font-size: .82rem; color: var(--muted); }
.comment-content p { margin-bottom: .75rem; }
.reply a { font-family: var(--font-ui); font-size: .85rem; font-weight: 700; color: var(--accent); }
.comment-respond { margin-top: 2rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { display: block; margin-bottom: .35rem; font-family: var(--font-ui); font-size: .88rem; font-weight: 600; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-ui); background: var(--bg);
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }

/* ---------- WordPress classes ---------- */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 50%; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 50%; }
.aligncenter { margin-inline: auto; display: block; }
@media (min-width: 1100px) { .entry-content .alignwide { margin-inline: -120px; max-width: none; } }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; }
.entry-content .alignfull img { border-radius: 0; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.sticky, .bypostauthor { position: relative; }
