/* ==========================================================================
   JM2Cents v2 — loaded after Bootstrap 5.3, so these rules win.
   ========================================================================== */

/* ---- Design tokens ---------------------------------------------------- */
:root,
[data-bs-theme="light"] {
  --jm-green: #014421;
  --jm-green-hover: #02602f;
  --jm-gold: #ffd700;
  --jm-banner-fallback: #34495a;

  --jm-font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --jm-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --jm-font-brand: "Amatic SC", "Comic Sans MS", cursive;

  --jm-logo: 64px;          /* phones; 100px from tablet up (see media query below) — never grows past the original */
  --jm-logo-solid: 56px;
  --jm-header-h: calc(var(--jm-logo) + 1rem);
  --jm-measure: 70ch;                         /* comfortable reading width */
  --jm-section-gap: clamp(2rem, 5vw, 4rem);
  --jm-safe-l: env(safe-area-inset-left, 0px);
  --jm-safe-r: env(safe-area-inset-right, 0px);

  /* Feed our choices into Bootstrap */
  --bs-body-font-family: var(--jm-font-body);
  --bs-body-font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --bs-body-line-height: 1.65;
  --bs-link-color: var(--jm-green);
  --bs-link-color-rgb: 1, 68, 33;
  --bs-link-hover-color: var(--jm-green-hover);
  --bs-link-hover-color-rgb: 2, 96, 47;
  --jm-heading-color: var(--jm-green);
}

[data-bs-theme="dark"] {
  --bs-body-bg: #121614;
  --bs-body-bg-rgb: 18, 22, 20;
  --bs-tertiary-bg: #1b211e;
  --bs-tertiary-bg-rgb: 27, 33, 30;
  --bs-link-color: #7fd6a3;
  --bs-link-color-rgb: 127, 214, 163;
  --bs-link-hover-color: #a8e6c1;
  --bs-link-hover-color-rgb: 168, 230, 193;
  --jm-heading-color: #e9efe9;
}

/* ---- Base ------------------------------------------------------------- */
html {
  scroll-padding-top: calc(var(--jm-header-h) + 1rem); /* anchors don't hide under the fixed header */
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.site-main {
  flex: 1 0 auto;
  padding-block: var(--jm-section-gap);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--jm-font-display);
  font-weight: 700;
  text-wrap: balance;
}

p { text-wrap: pretty; }

img, video, iframe { max-width: 100%; }
img { height: auto; }

:focus-visible {
  outline: 3px solid var(--jm-gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1100;
  padding: 0.5rem 1rem;
  background: var(--jm-gold);
  color: #000;
  border-radius: 0.375rem;
  font-weight: 700;
}

/* Gutters respect notches / rounded corners */
.container-xl {
  --bs-gutter-x: 2rem;
  padding-left: max(calc(var(--bs-gutter-x) * 0.5), var(--jm-safe-l));
  padding-right: max(calc(var(--bs-gutter-x) * 0.5), var(--jm-safe-r));
}

/* ---- Buttons ---------------------------------------------------------- */
.btn-jm {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--jm-green);
  --bs-btn-border-color: var(--jm-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--jm-green-hover);
  --bs-btn-hover-border-color: var(--jm-green-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #013318;
  --bs-btn-active-border-color: #013318;
  --bs-btn-focus-shadow-rgb: 1, 68, 33;
  font-weight: 700;
  padding-inline: 1.5rem;
}

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  z-index: 1030;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: var(--jm-safe-l);
  padding-right: var(--jm-safe-r);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  view-transition-name: site-header;
}

/* Logged-in, ≤600px: WordPress lets the admin toolbar scroll away, so don't leave a gap for it.
   Over the banner the header scrolls with the toolbar; once solid it sticks flush to the top. */
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
  .admin-bar .site-header:not(.is-solid) {
    position: absolute;
    top: var(--wp-admin--admin-bar--height, 46px);
  }
}

/* Gentle top shade so white text stays readable over bright banners */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -1.5rem;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Scrolled past the banner: the header becomes a slice of the same image */
.site-header.is-solid {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    var(--banner, none) center 30% / cover no-repeat,
    var(--jm-banner-fallback);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
.site-header.is-solid::before { opacity: 0; }

.site-header .navbar {
  min-height: var(--jm-header-h);
  padding-block: 0.4rem;
}
.site-header .navbar > .container-xl { flex-wrap: nowrap; } /* logo + menu button never stack */

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  margin-right: 0.5rem;
}

/* Logo shown as-is (square, no effects). 100px like the original on wide screens, smaller on phones. */
.site-logo {
  width: var(--jm-logo);
  max-width: none; /* never squeezed by the menu */
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
  transition: width 0.3s ease;
}
.site-header.is-solid .site-logo { width: var(--jm-logo-solid); }

.site-title {
  font-family: var(--jm-font-brand);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);
  line-height: 1;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Article title in the collapsed header (single posts only).
   Always occupies its slot so nothing shifts; it just fades in once the header turns solid. */
.header-post-title {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 0.75rem 0 0;
  font-family: var(--jm-font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;            /* phones: up to two lines, then … */
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.site-header--post.is-solid .header-post-title {
  opacity: 1;
  visibility: visible;
}

/* Phones: the article title takes the site name's place when collapsed */
@media (max-width: 767.98px) {
  .site-header--post .site-title { transition: opacity 0.2s ease; }
  .site-header--post.is-solid .site-title { display: none; }
}

/* Tablet/desktop: site name stays; title sits between it and the menu on one line */
@media (min-width: 768px) {
  .header-post-title {
    display: block;
    margin: 0 1.5rem;
    font-size: 1.1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
  }
  .site-header--post .navbar-expand-md .offcanvas,
  .site-header--post .offcanvas { flex-grow: 0; }
}

.site-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  padding: 0.4rem 0.6rem;
}

.site-header .nav-link {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.45);
  transition: color 0.2s ease;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-link.active,
.site-header .current-menu-item > .nav-link {
  color: var(--jm-gold);
}

@media (min-width: 768px) {
  :root { --jm-logo: 100px; --jm-logo-solid: 64px; }
  .site-branding { flex-shrink: 0; }
  .site-header .navbar-nav { gap: clamp(0.5rem, 2vw, 2rem); }
  .site-header .nav-link { padding-inline: 0.75rem; }
}

/* Mobile menu panel */
.site-menu.offcanvas {
  --bs-offcanvas-width: min(20rem, 85vw);
  --bs-offcanvas-bg: var(--jm-green);
  --bs-offcanvas-color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: var(--jm-safe-r);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.site-menu.offcanvas:focus-visible { outline: none; } /* panel itself receives focus on open */
.site-menu .offcanvas-title {
  font-family: var(--jm-font-brand);
  font-size: 2rem;
  color: #fff;
}
@media (max-width: 767.98px) {
  .site-menu .nav-link {
    font-size: 1.4rem;
    padding-block: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* ---- Page banner ------------------------------------------------------ */
.page-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(18rem, 48vh, 34rem);
  min-height: clamp(18rem, 48svh, 34rem);
  padding: calc(var(--jm-header-h) + env(safe-area-inset-top, 0px) + 1.25rem)
           max(1rem, var(--jm-safe-r)) 2.5rem max(1rem, var(--jm-safe-l));
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: var(--jm-banner-fallback);
}

.page-banner__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  view-transition-name: banner-img;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.3));
}

.page-banner__overlay {
  max-width: min(48rem, 100%);
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 4vw, 2.25rem);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0.75rem;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  view-transition-name: banner-text;
}

.banner-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 1.2rem + 3vw, 3.25rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.banner-subtitle {
  margin: 0.5rem 0 0;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  color: #f0f0f0;
}

/* ---- Footer: the bottom of the same banner image ---------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(5.5rem, 12vh, 9rem);
  min-height: clamp(5.5rem, 12svh, 9rem);
  padding-block: 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  color: #fff;
  background: var(--banner, none) center bottom / cover no-repeat, var(--jm-banner-fallback);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.45);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}
.site-footer__top {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.site-footer__top:hover { color: var(--jm-gold); }

/* ---- Front page ------------------------------------------------------- */
.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--jm-heading-color);
}

.section-divider {
  width: min(50rem, 100%);
  margin: var(--jm-section-gap) auto;
  border: 0;
  border-top: 2px solid var(--bs-border-color);
  opacity: 1;
}
.section-divider--short { width: min(16rem, 60%); }

.intro-blurb {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.intro-blurb p {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  line-height: 1.6;
  margin: 0;
}

.featured-post {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}
.featured-post__media {
  display: block;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
}
.featured-post__media img { object-fit: cover; }
.featured-post__title {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  margin-bottom: 0.5rem;
}
.featured-post__title a { color: var(--jm-heading-color); text-decoration: none; }
.featured-post__title a:hover { text-decoration: underline; }
.featured-post__excerpt {
  max-width: var(--jm-measure);
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

/* ---- Post cards ------------------------------------------------------- */
.post-card {
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover,
.post-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.post-card__media img { object-fit: cover; }
.post-card .card-title { font-weight: 700; line-height: 1.3; }
.post-card .card-title a {
  color: var(--jm-heading-color);
  text-decoration: none;
}
.post-card .card-title a:focus-visible { outline: none; }
.post-card:has(a:focus-visible) { outline: 3px solid var(--jm-gold); outline-offset: 2px; }

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
}
.post-card__more {
  font-weight: 700;
  color: var(--bs-link-color);
}

/* ---- Pagination ------------------------------------------------------- */
.pagination {
  --bs-pagination-color: var(--bs-link-color);
  --bs-pagination-hover-color: var(--bs-link-hover-color);
  --bs-pagination-active-bg: var(--jm-green);
  --bs-pagination-active-border-color: var(--jm-green);
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(1, 68, 33, 0.3);
  gap: 0.25rem;
}
.pagination .page-link { border-radius: 0.375rem; }

/* ---- Single post & pages --------------------------------------------- */
.entry-content,
.entry-footer,
.about-content,
.contact-page,
.archive-listing,
.post-navigation,
.comments-area {
  max-width: var(--jm-measure);
  margin-inline: auto;
}

.entry-content { font-size: clamp(1.05rem, 1rem + 0.25vw, 1.15rem); line-height: 1.75; }
.entry-content > .alignwide,
.entry-content > .alignfull { max-width: none; margin-left: 50%; margin-right: 0; transform: translateX(-50%); }
.entry-content > .alignwide { width: min(72rem, calc(100vw - 2rem)); }
.entry-content > .alignfull { width: 100vw; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--jm-heading-color);
}
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul,
.entry-content ol { margin: 1rem 0 1.25rem; padding-left: 1.5rem; }
.entry-content li { margin-bottom: 0.35rem; }
.entry-content blockquote,
.entry-content .wp-block-quote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--jm-green);
  font-style: italic;
  color: var(--bs-secondary-color);
}
.entry-content figure { margin: 2rem 0; }
.entry-content figure img,
.entry-content > p img { border-radius: 0.5rem; }
.entry-content figcaption { font-size: 0.875rem; color: var(--bs-secondary-color); text-align: center; margin-top: 0.5rem; }
.entry-content pre {
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--bs-tertiary-bg);
  overflow-x: auto;
}
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-embed iframe { width: 100%; }

.alignleft { float: left; margin: 0.25rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.25rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
@media (max-width: 575.98px) {
  .alignleft, .alignright { float: none; margin-inline: auto; display: block; }
}

.entry-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bs-border-color);
  font-size: 0.95rem;
  color: var(--bs-secondary-color);
}
.entry-tags .badge { font-weight: 600; margin: 0.15rem 0.1rem; }

/* Previous / next post */
.post-navigation { margin-top: 3rem; }
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 1rem;
}
.post-navigation a {
  display: block;
  height: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.75rem;
  text-decoration: none;
}
.post-navigation a:hover { background: var(--bs-tertiary-bg); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-label { display: block; font-size: 0.85rem; color: var(--bs-secondary-color); }
.post-navigation .nav-title { font-family: var(--jm-font-display); font-weight: 700; color: var(--jm-heading-color); }

/* Related articles */
.related-articles {
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 5px solid var(--jm-green);
  border-radius: 0.5rem;
  background: var(--bs-tertiary-bg);
}

/* Comments */
.comments-area { margin-top: 3rem; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .children { list-style: none; padding-left: clamp(0.75rem, 3vw, 2rem); }
.comment-body {
  padding: 1rem 0;
  border-bottom: 1px solid var(--bs-border-color);
}
.comment-author .avatar { border-radius: 50%; margin-right: 0.5rem; vertical-align: middle; }
.comment-metadata { font-size: 0.85rem; }
.comment-reply-title { font-size: 1.4rem; margin-top: 2rem; }

/* About */
.about-content { text-align: center; }
.about-content h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); margin-top: 2.5rem; color: var(--jm-heading-color); }
.about-content h2:first-child { margin-top: 0; }
.about-content p { font-size: 1.1rem; }

/* Archive (page template) */
.archive-year {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--bs-border-color);
  color: var(--jm-heading-color);
}
.archive-year:first-child { margin-top: 0; }
.archive-posts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
}
.archive-date { flex-shrink: 0; font-size: 0.875rem; color: var(--bs-secondary-color); }

/* Search form (core markup) */
.search-form { display: flex; gap: 0.5rem; }
.search-form label { flex: 1; }
.search-form .search-field {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}
.search-form .search-submit {
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 0.375rem;
  background: var(--jm-green);
  color: #fff;
  font-weight: 700;
}

/* Stock table (from the original theme) */
.stock-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.stock-table th,
.stock-table td { padding: 12px 16px; text-align: left; }
.stock-table thead { background-color: var(--bs-tertiary-bg); border-bottom: 2px solid var(--bs-border-color); }
.stock-table tbody tr:nth-child(even) { background-color: rgba(var(--bs-emphasis-color-rgb), 0.03); }
.stock-table tbody tr:last-child { font-weight: bold; background-color: rgba(var(--bs-emphasis-color-rgb), 0.06); }
.stock-table td:nth-child(2),
.stock-table td:nth-child(4) { white-space: nowrap; }

/* ---- Small & odd screens ---------------------------------------------- */

/* Very narrow (e.g. original Galaxy Fold cover screen, 280px) */
@media (max-width: 359.98px) {
  :root { --jm-logo: 2.75rem; --jm-logo-solid: 2.5rem; }
  .site-title { font-size: 1.3rem; }
  .site-branding { gap: 0.4rem; }
  .container-xl { --bs-gutter-x: 1.25rem; }
}

/* Short screens: phones in landscape, laptops in "tent" mode, small cover screens */
@media (orientation: landscape) and (max-height: 540px) {
  :root { --jm-logo: 2.5rem; --jm-logo-solid: 2.5rem; }
  .site-title { font-size: 1.5rem; }
  .page-banner {
    min-height: clamp(12rem, 70vh, 18rem);
    min-height: clamp(12rem, 70svh, 18rem);
    padding-bottom: 1.25rem;
  }
  .site-footer { min-height: 4.5rem; }
}

/* ---- Foldables / dual-screen (progressive enhancement) --------------- */

/* Spanned side-by-side (book posture): banner pins to the left screen, content on the right,
   nothing gets split across the hinge. */
@media (horizontal-viewport-segments: 2) {
  body {
    display: grid;
    grid-template-columns: env(viewport-segment-width 0 0) 1fr;
    column-gap: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0));
    align-items: start;
  }
  .page-banner {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 0;
  }
  .site-header { right: auto; width: env(viewport-segment-width 0 0); } /* header rides with the banner */
  .site-main { grid-column: 2; grid-row: 1; }
  .site-footer { grid-column: 2; grid-row: 2; }
  .site-main .row-cols-lg-3 > * { flex: 0 0 auto; width: 50%; }
}

/* Folded like a laptop (tabletop posture): banner fills the top screen, content starts below the fold. */
@media (vertical-viewport-segments: 2) {
  .page-banner {
    min-height: env(viewport-segment-height 0 0);
  }
  .site-main {
    padding-top: calc(env(viewport-segment-top 0 1) - env(viewport-segment-bottom 0 0) + var(--jm-section-gap));
  }
}

/* ---- Page transitions (Chrome/Edge/Safari; ignored elsewhere) --------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(banner-img),
  ::view-transition-new(banner-img) { animation-duration: 0.35s; }
}

/* ---- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .post-card:hover, .post-card:focus-within { transform: none; }
}
