/*
 * Digital Humanist — design system layer (R1: foundation)
 *
 * Loaded after main.css, style.css and every plugin stylesheet.
 * It only ADDS tokens and refines components; it never removes selectors,
 * markup or block attributes. Delete this file (or its enqueue in
 * functions.php) to return to the previous look.
 */

:root {
  /* Accent tints: same hue as #7267C2, no new colors. */
  --accent-50:  #F1EFFA;
  --accent-100: #E3DFF5;
  --accent-300: #A89FDB;
  --accent-600: #5B50A8;
  --accent-900: #1B1636; /* deep ink-violet for dark scenes */

  /* Fluid spacing scale (8pt based). */
  --space-1: clamp(4px, .4vw, 6px);
  --space-2: clamp(8px, .8vw, 12px);
  --space-3: clamp(16px, 1.6vw, 24px);
  --space-4: clamp(24px, 2.6vw, 40px);
  --space-5: clamp(40px, 4.5vw, 72px);
  --space-6: clamp(64px, 7vw, 120px);
  --space-7: clamp(96px, 11vw, 200px);

  /* Type scale. Syne for display, Inter for reading. */
  --fs-display-xl: clamp(56px, 11vw, 176px);
  --fs-display-l:  clamp(44px, 7.2vw, 116px);
  --fs-display-m:  clamp(32px, 4.4vw, 72px);
  --fs-display-s:  clamp(24px, 2.6vw, 40px);
  --fs-body-l:     clamp(18px, 1.25vw, 21px);
  --fs-body:       clamp(16px, 1.1vw, 18px);
  --fs-kicker:     clamp(11px, .76vw, 13px);
  --lh-display:    .9;
  --lh-body:       1.65;
  --measure:       66ch;

  /* Motion tokens (used from R3 onward). */
  --dur-1: 240ms;
  --dur-2: 600ms;
  --dur-3: 1000ms;
  --ease-out: var(--ease);
}

html[data-theme="dark"] {
  --accent-50:  #1F1B3A;
  --accent-100: #2A2552;
  --accent-300: #8D82D6;
  --accent-600: #A89FDB;
}

/* Reading rhythm: tabular figures for numbered kickers like "01 / about .me". */
.hero__eyebrow,
.footer-credit,
[class*="__kicker"],
[class*="-kicker"] {
  font-variant-numeric: tabular-nums;
}

/* Header: a short, quiet bar — the dh mark, a theme dot and a menu button.
   mix-blend-mode makes it readable on any background (light pages, dark 3D). */
html:root { --header-h: 64px; }
.site-header.dh-hdr {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 var(--page-gutter);
  color: var(--text);
  background: transparent; box-shadow: none;
  pointer-events: none;
}
.dh-hdr > * { pointer-events: auto; }
.dh-hdr__brand { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.08em; line-height: 1; color: inherit; }
.dh-hdr__tools { display: flex; align-items: center; gap: 10px; }
.dh-hdr__theme, .dh-hdr__menu {
  height: 36px; border: 1px solid var(--line); border-radius: 999px; color: inherit;
  /* frosted pills: readable over photos, particles and dark scenes alike */
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.dh-hdr__theme { width: 36px; display: grid; place-items: center; }
.dh-hdr__theme::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.dh-hdr__menu { padding: 0 16px; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: -.02em; }
.dh-hdr__theme:hover, .dh-hdr__theme:focus-visible, .dh-hdr__menu:hover, .dh-hdr__menu:focus-visible { background: var(--text); border-color: var(--text); color: var(--bg); }
/* once scrolled, a soft frosted band keeps the dh mark readable over images */
.site-header.dh-hdr::before {
  content: ""; position: absolute; inset: 0 0 -18px; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  opacity: 0; transition: opacity .35s var(--ease);
}
.site-header.dh-hdr.is-scrolled::before { opacity: 1; }
body.menu-open .site-header.dh-hdr::before { opacity: 0; }

/* Full-screen menu */
.dh-menu {
  position: fixed; inset: 0; z-index: 99;
  display: grid; align-content: center; gap: 5vh; padding: var(--header-h) var(--page-gutter) 6vh;
  background: var(--bg); color: var(--text);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.dh-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease); }
.dh-menu__links, .dh-menu__links ul { display: grid; gap: 1vh; margin: 0; padding: 0; list-style: none; }
.dh-menu__links li { margin: 0; }
.dh-menu__link {
  display: inline-block; width: max-content; max-width: 100%;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5.2vw, 84px); line-height: 1.02; letter-spacing: -.05em; color: inherit;
  transition: color .25s var(--ease), transform .5s var(--ease);
}
.dh-menu__link:hover, .dh-menu__link:focus-visible, .dh-menu .current-menu-item > .dh-menu__link { color: var(--accent); transform: translateX(.08em); }
.dh-menu__talk {
  width: max-content; padding: 14px 22px; border-radius: 999px; background: var(--accent); color: #FFFFFF;
  font-family: var(--font-display); font-weight: 700;
}
body.admin-bar .dh-menu { top: 32px; }
@media (max-width: 782px) { body.admin-bar .dh-menu { top: 46px; } }
@media (prefers-reduced-motion: reduce) { .dh-menu, .dh-menu.is-open { transition: none; } }

/* Article hero: the theme now recognises header-articoli as well as the legacy block. */
.entry-shell--has-article-hero .entry-content > .wp-block-digitalhumanist-header-articoli:first-child {
  margin-top: 0;
}

/* Consistent focus ring across theme and blocks. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* =========================================================================
 * R2 — reading experience: cards, Journal/archives, single article.
 * ====================================================================== */

/* ---- Cards ------------------------------------------------------------- */
.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.article-card__category { color: var(--accent); }
.article-card__category + time::before {
  content: "/";
  margin-right: 12px;
  color: var(--line);
}
/* Same look as the original card h3, whatever heading level is used. */
.article-card__body .article-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.article-card__title a { color: inherit; text-decoration: none; }
/* Whole card is clickable through the title link; image link is hidden from AT. */
.article-card { position: relative; }
.article-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.article-card__title a:focus-visible { outline: none; }
.article-card:has(.article-card__title a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.article-card__body .article-card__excerpt {
  margin: var(--space-3) 0 0;
  max-width: 52ch;
  color: var(--muted-strong);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}
.article-card__body .article-card__reading {
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

/* Feature: wide horizontal card, image left, story right. */
.article-card--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: stretch;
}
.article-card--feature .article-card__image { aspect-ratio: 4 / 3; height: 100%; }
.article-card--feature .article-card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
}
.article-card--feature .article-card__title {
  font-size: var(--fs-display-m);
  line-height: .95;
  letter-spacing: -.055em;
}

/* Compact: used in "continue reading". */
.article-card--compact {
  display: grid;
  grid-template-columns: minmax(96px, 34%) 1fr;
  align-items: stretch;
}
.article-card--compact .article-card__image { aspect-ratio: 1 / 1; height: 100%; min-height: 0; }
.article-card--compact .article-card__body { padding: var(--space-3); align-self: center; }
.article-card--compact .article-card__title { font-size: clamp(18px, 1.4vw, 22px); }

/* ---- Journal / archives ------------------------------------------------- */
.archive-kicker,
.dh-continue__kicker {
  margin: 0 0 var(--space-3);
  color: var(--accent);
  font-size: var(--fs-kicker);
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.archive-description {
  max-width: 60ch;
  margin-top: var(--space-4);
  color: var(--muted-strong);
  font-size: var(--fs-body-l);
  line-height: var(--lh-body);
}
.dh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: calc(-1 * var(--space-3)) 0 var(--space-5);
}
.dh-pills .nav-pill { -webkit-backdrop-filter: none; backdrop-filter: none; }
.dh-pills .nav-pill.is-active {
  color: #FFFFFF;
  border-color: var(--accent);
  background: var(--accent);
}
.archive-grid--editorial {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5) clamp(18px, 2.5vw, 34px);
}

/* ---- Single article ----------------------------------------------------- */
.dh-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-1) var(--ease-out);
}
.dh-progress.is-ready { opacity: 1; }
.dh-progress__bar {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
body.admin-bar .dh-progress { top: 32px; }
@media (max-width: 782px) { body.admin-bar .dh-progress { top: 46px; } }

.entry-shell--post .entry-header { max-width: 1120px; }
.entry-shell--post .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 var(--space-4);
  font-size: var(--fs-kicker);
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.entry-shell--post .entry-meta a { color: var(--accent); }
.entry-meta__sep { color: var(--line); }

/* Reading measure for plain text only; custom blocks keep their own widths. */
.entry-shell--post .entry-content > p,
.entry-shell--post .entry-content > ul,
.entry-shell--post .entry-content > ol {
  max-width: min(var(--measure), 790px);
}
.entry-shell--post .entry-content > p { line-height: var(--lh-body); }

/* Continue reading */
.dh-continue {
  width: var(--wrap);
  max-width: 1120px;
  margin: var(--space-6) auto 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.dh-continue__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.dh-continue__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color var(--dur-1) var(--ease-out);
}
.dh-continue__link--next { grid-column: 2; text-align: right; align-items: flex-end; }
.dh-continue__dir {
  color: var(--muted);
  font-size: var(--fs-kicker);
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dh-continue__title {
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}
.dh-continue__link:hover .dh-continue__title,
.dh-continue__link:focus-visible .dh-continue__title { color: var(--accent); }
.dh-continue__related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 34px);
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .archive-grid--editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-grid--editorial .article-card--standard { display: block; }
  .archive-grid--editorial .article-card--standard .article-card__image { height: auto; min-height: 0; }
  .article-card--feature { grid-template-columns: 1fr; }
  .article-card--feature .article-card__image { height: auto; min-height: 0; }
  .dh-continue__related { grid-template-columns: 1fr; }
  .dh-continue__related .article-card--compact { display: grid; }
}
@media (max-width: 760px) {
  .archive-grid--editorial { grid-template-columns: 1fr; }
  .article-card--feature .article-card__body { padding: var(--space-4); }
  .dh-continue__nav { grid-template-columns: 1fr; }
  .dh-continue__link--next { grid-column: 1; text-align: left; align-items: flex-start; }
  .dh-continue__related .article-card--compact { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .dh-progress { display: none; }
}

/* =========================================================================
 * R4 — accessibility: accent contrast (WCAG 2.2 AA, 4.5:1 for text).
 * #7267C2 reaches only 4.27:1 on #F3F3F3 and 4.13:1 on #0C0C0C. These are the
 * nearest shades of the same hue that pass: #6C60BF (4.66:1) in light mode and
 * #7A70C6 (4.62:1) in dark mode. The difference is about 2% lightness.
 * Applied to the theme and every Digital Humanist plugin token.
 * To restore the original value, delete this block.
 * ====================================================================== */
html:root {
  --accent: #6C60BF;  --accent-rgb: 108, 96, 191;
  --bh-accent: #6C60BF;  --bh-accent-rgb: 108, 96, 191;
  --ha-accent: #6C60BF;  --ha-accent-rgb: 108, 96, 191;
  --dhh-accent: #6C60BF; --dhh-accent-rgb: 108, 96, 191;
  --bp-accent: #6C60BF;  --bp-accent-rgb: 108, 96, 191;
  --bes-accent: #6C60BF; --bes-accent-rgb: 108, 96, 191;
  --bap-accent: #6C60BF; --bap-accent-rgb: 108, 96, 191;
}
html[data-theme="dark"]:root {
  --accent: #7A70C6;  --accent-rgb: 122, 112, 198;
  --bh-accent: #7A70C6;  --bh-accent-rgb: 122, 112, 198;
  --ha-accent: #7A70C6;  --ha-accent-rgb: 122, 112, 198;
  --dhh-accent: #7A70C6; --dhh-accent-rgb: 122, 112, 198;
  --bp-accent: #7A70C6;  --bp-accent-rgb: 122, 112, 198;
  --bes-accent: #7A70C6; --bes-accent-rgb: 122, 112, 198;
  --bap-accent: #7A70C6; --bap-accent-rgb: 122, 112, 198;
}

/* =========================================================================
 * Footer (v2.2): aligned 12-column grid, icon socials, soft rounded fade.
 * ====================================================================== */
.site-footer.dh-ftr {
  --ftr-bg: #E9E6F3;
  position: relative; z-index: 2; overflow: hidden;
  padding: clamp(120px, 16vw, 220px) 0 28px;
  color: var(--text);
  /* a wide elliptical fade: no hard edge between the page and the footer */
  background: radial-gradient(150% 100% at 50% 100%, var(--ftr-bg) 62%, rgba(233, 230, 243, 0) 100%);
}
html[data-theme="dark"] .site-footer.dh-ftr { --ftr-bg: #12101C; background: radial-gradient(150% 100% at 50% 100%, var(--ftr-bg) 62%, rgba(18, 16, 28, 0) 100%); }
.dh-ftr .wrap { width: var(--wrap); margin-inline: auto; }
.dh-ftr__top {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end;
  padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line);
}
.dh-ftr__wisdom {
  grid-column: 1 / span 7; margin: 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6.4vw, 112px);
  line-height: .9; letter-spacing: -.06em;
}
.dh-ftr__wisdom span { color: var(--accent); }
.dh-ftr__cta { grid-column: 9 / span 4; display: grid; gap: 22px; justify-items: start; }
.dh-ftr__intro { margin: 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: var(--muted-strong); }
.dh-ftr__intro strong { color: var(--accent); font-weight: 700; }
.dh-ftr__talk {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--accent); color: #fff !important;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), filter .35s var(--ease);
}
.dh-ftr__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  padding: clamp(36px, 4vw, 56px) 0;
}
.dh-ftr__col { grid-column: span 4; }
.dh-ftr__label { margin: 0 0 16px; color: var(--muted); font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.dh-ftr__address { font-style: normal; font-size: 17px; line-height: 1.6; }
.dh-ftr__address a, .dh-ftr__nav a { color: var(--text); transition: color .25s; }
.dh-ftr__address a:hover, .dh-ftr__nav a:hover, .dh-ftr__address a:focus-visible, .dh-ftr__nav a:focus-visible { color: var(--accent); }
.dh-ftr__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dh-ftr__nav li { margin: 0; }
.dh-ftr__nav a { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; display: inline-block; }
.dh-ftr__nav > a { display: block; margin-bottom: 8px; }
.dh-ftr__social { display: flex; gap: 10px; }
.dh-ftr__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--text);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.dh-ftr__icon svg { width: 21px; height: 21px; }
.dh-ftr__icon:hover, .dh-ftr__icon:focus-visible {
  background: var(--accent); border-color: var(--accent); color: #fff !important; transform: translateY(-2px);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .14), 0 10px 30px rgba(var(--accent-rgb), .45);
}
.dh-ftr__wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(54px, 11.4vw, 200px);
  line-height: .8; letter-spacing: -.075em; white-space: nowrap; color: var(--text);
  padding: clamp(10px, 2vw, 30px) 0 clamp(20px, 3vw, 44px);
}
.dh-ftr__base {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.dh-ftr__credit { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dh-ftr__credit em { font-style: normal; color: var(--accent); }
.dh-ftr__legal, .dh-ftr__legal ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.dh-ftr__legal li { margin: 0; }
.dh-ftr__legal a { color: var(--muted); }
.dh-ftr__legal a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .dh-ftr__wisdom, .dh-ftr__cta { grid-column: 1 / -1; }
  .dh-ftr__col, .dh-ftr__col:last-child { grid-column: span 4; }
  .dh-ftr__wordmark { white-space: normal; font-size: clamp(44px, 14vw, 96px); }
}
@media (max-width: 640px) { .dh-ftr__col, .dh-ftr__col:last-child { grid-column: 1 / -1; } }

/* =========================================================================
 * Accent buttons: hovering lights them up instead of turning the text lilac
 * (lilac on lilac was unreadable). One rule for every "want to talk?".
 * ====================================================================== */
.dh-menu__talk, .dh-ftr__talk, .pill--solid { transition: box-shadow .35s var(--ease), transform .35s var(--ease), filter .35s var(--ease); }
.dh-menu__talk:hover, .dh-menu__talk:focus-visible,
.dh-ftr__talk:hover, .dh-ftr__talk:focus-visible,
.pill--solid:hover, .pill--solid:focus-visible {
  color: #fff !important; background: var(--accent);
  filter: brightness(1.1);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .18), 0 0 46px rgba(var(--accent-rgb), .75), 0 12px 30px rgba(var(--accent-rgb), .35);
  transform: translateY(-1px);
}

/* The dh mark stays itself on hover (the header blends with the page: a colour change showed up green). */
.site-header .dh-hdr__brand:hover, .site-header .dh-hdr__brand:focus-visible { color: inherit !important; opacity: .72; }

/* Contacts and other short pages: the page fills the screen, so the footer never shows while the e-mail types. */
body.page main.entry-shell:has(.wp-block-digitalhumanist-syne-typing-text) {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
}

/* Contacts: the typed e-mail stays on one line on desktop (it used to break mid-word). */
@media (min-width: 761px) {
  /* bigger: the address breaks before the "@" (see main.js), so the longest line is ~9.4em */
  body.page .stt-block .stt-text { font-size: min(var(--stt-font-size, 72px), calc((100vw - 2 * var(--page-gutter, 64px)) / 9.6)); white-space: normal; overflow-wrap: normal; word-break: normal; }
}

/* =========================================================================
 * Cursor ring + dot (mouse only), on every page. Moved here from dh-story.css.
 * ====================================================================== */
.st-cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; display: none; }
.st-cursor.is-on { display: block; }
.st-cursor__ring, .st-cursor__dot { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.st-cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center;
  border: 1px solid rgba(var(--accent-rgb), .7);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s var(--ease), border-color .35s;
}
.st-cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.st-cursor.is-hover .st-cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--accent); }
.st-cursor.has-label .st-cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--accent); border-color: var(--accent); }
.st-cursor__ring em { font-style: normal; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity .25s; }
.st-cursor.has-label .st-cursor__ring em { opacity: 1; }
.st-cursor.has-label .st-cursor__dot { opacity: 0; }

/* =========================================================================
 * Inner pages: the end of the page meets the footer without a big empty band
 * (theme layout, so it stays here whatever plugin animates the page).
 * ====================================================================== */
body.page:not(.home) .entry-content > p:empty,
body.page:not(.home) .entry-content > .wp-block-spacer:last-child,
body.page:not(.home) .entry-content > .wp-block-spacer:has(+ p:empty:last-child),
body.page:not(.home) .entry-content > .wp-block-spacer:has(+ .wp-block-spacer:last-child) { display: none; }
body.page:not(.home) .entry-content > .dhb-buttons:last-of-type,
body.page:not(.home) .entry-content > .dhx-skills:last-of-type { padding-bottom: clamp(24px, 4vw, 56px); }
body.page:not(.home) .site-footer.dh-ftr { padding-top: clamp(72px, 8vw, 128px); }
body.page:not(.home) main#main { padding-bottom: clamp(24px, 3vw, 48px); }
/* sliding sheets stay under the footer */
.pg-motion .site-footer { position: relative; z-index: 3; }
