
pre, .jwe-pre {
  padding: var(--jwe-space-md);
  font-size: 0.875rem;
  margin: var(--jwe-space-lg) 0;
}
@media (max-width: 540px) {
  pre, .jwe-pre {
    padding: var(--jwe-space-sm);
    font-size: 0.8rem;
    margin: var(--jwe-space-md) 0;
  }
}

.jwe-text-center { text-align: center; }
.jwe-text-muted { color: var(--jwe-text-muted); }
.jwe-text-italic { font-style: italic; }
.jwe-mt-1 { margin-top: 0.5rem; }
.jwe-mt-2 { margin-top: 1rem; }
.jwe-mt-3 { margin-top: 1.5rem; }
.jwe-mt-4 { margin-top: 2rem; }
.jwe-mb-1 { margin-bottom: 0.5rem; }
.jwe-mb-2 { margin-bottom: 1rem; }
.jwe-mb-3 { margin-bottom: 1.5rem; }
.jwe-mb-4 { margin-bottom: 2rem; }
.jwe-segment { padding: var(--jwe-space-xl) 0; width: 100%; }

.jwe-constrained {
  max-width: var(--jwe-content-width, 100%);
}
.jwe-wrap.jwe-constrained {
  max-width: calc(var(--jwe-content-width, 100%) + clamp(2rem, 6vw, 4rem));
}
.jwe-post.jwe-post--centered,
.jwe-post.jwe-post--centered {
  max-width: var(--jwe-content-width, 800px);
  margin: 0 auto;
}

/* Media classes (v3.30: figure margin unified above with stratum/manifold) */
.jwe-figure img,
.jwe-still img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--jwe-radius, 0.5rem);
}
.jwe-figure figcaption,
.jwe-still figcaption {
  font-size: 0.875rem;
  color: var(--jwe-text-muted);
  margin-top: var(--jwe-space-sm, 0.5rem);
  text-align: center;
}
.jwe-img-full {
  width: 100%;
  height: auto;
  border-radius: var(--jwe-radius, 0.5rem);
}

.jwe-figure--float-left,
.jwe-still--float-left {
  float: left;
  max-width: 40%;
  margin: 0 var(--jwe-space-lg) var(--jwe-space-md) 0;
  clear: left;
}
.jwe-figure--float-left img,
.jwe-still--float-left img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--jwe-radius, 0.5rem);
}
.jwe-figure--float-right,
.jwe-still--float-right {
  float: right;
  max-width: 40%;
  margin: 0 0 var(--jwe-space-md) var(--jwe-space-lg);
  clear: right;
}
.jwe-figure--float-right img,
.jwe-still--float-right img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--jwe-radius, 0.5rem);
}

.jwe-post-wrapper--sidebar .jwe-figure--float-left,
.jwe-post-wrapper--sidebar .jwe-still--float-left,
.jwe-post-wrapper--sidebar .jwe-figure--float-right,
.jwe-post-wrapper--sidebar .jwe-still--float-right {
  max-width: 50%;
}
/* Mobile: no floats — full width stacked */
@media (max-width: 540px) {
  .jwe-figure--float-left,
  .jwe-still--float-left,
  .jwe-figure--float-right,
  .jwe-still--float-right {
    float: none;
    max-width: 100%;
    margin: var(--jwe-space-md) 0;
  }
}

.jwe-figure--float-left.jwe-figure--diagram,
.jwe-figure--float-right.jwe-figure--diagram,
.jwe-still--float-left.jwe-still--diagram,
.jwe-still--float-right.jwe-still--diagram {
  max-width: 40%;
  width: auto;
}

.jwe-post__content h2,
.jwe-post__content h3,
.jwe-post__content .jwe-subheading {
  clear: both;
}

.jwe-figure--full-width,
.jwe-still--full-width {
  width: 100%;
  margin: var(--jwe-space-lg) 0;
}
.jwe-figure--full-width img,
.jwe-still--full-width img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--jwe-radius, 0.5rem);
}

.jwe-figure--medium,
.jwe-still--medium {
  width: 100%;
  max-width: var(--jwe-figure-medium);
  margin: var(--jwe-space-lg) auto;
}
.jwe-figure--medium img,
.jwe-still--medium img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--jwe-radius, 0.5rem);
}

.jwe-figure--small,
.jwe-figure--inline,
.jwe-still--small,
.jwe-still--inline {
  width: 100%;
  max-width: var(--jwe-figure-small);
  margin: var(--jwe-space-md) auto;
}
.jwe-figure--small img,
.jwe-figure--inline img,
.jwe-still--small img,
.jwe-still--inline img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--jwe-radius, 0.5rem);
}

.jwe-figure--diagram,
.jwe-still--diagram {
  width: fit-content;
  max-width: min(690px, 100%);
  margin: var(--jwe-space-lg) auto;
  padding: var(--jwe-space-md);
  border-radius: var(--jwe-radius, 0.5rem);
}

.jwe-figure--diagram.jwe-diagram-bg--gradient,
.jwe-still--diagram.jwe-diagram-bg--gradient {
  background: linear-gradient(225deg, var(--jwe-surface) 0%, var(--jwe-bg-alt, #f5f5f5) 100%);
}

.jwe-figure--diagram.jwe-diagram-bg--solid,
.jwe-still--diagram.jwe-diagram-bg--solid {
  background: var(--jwe-bg-alt, #f5f5f5);
}

.jwe-figure--diagram.jwe-diagram-bg--tinted,
.jwe-still--diagram.jwe-diagram-bg--tinted {
  background: color-mix(in srgb, var(--jwe-primary) 0.07, var(--jwe-surface) 100%);
}

.jwe-figure--diagram.jwe-diagram-bg--bordered,
.jwe-still--diagram.jwe-diagram-bg--bordered {
  background: var(--jwe-surface, #fff);
  border-left: 3px solid var(--jwe-primary);
}
.jwe-figure--diagram.jwe-diagram-bg--bordered.jwe-border-top,
.jwe-still--diagram.jwe-diagram-bg--bordered.jwe-border-top {
  border-left: none;
  border-top: 3px solid var(--jwe-primary);
}
.jwe-figure--diagram.jwe-diagram-bg--bordered.jwe-border-full,
.jwe-still--diagram.jwe-diagram-bg--bordered.jwe-border-full {
  border: 2px solid var(--jwe-primary);
  border-left-width: 2px;
}
.jwe-figure--diagram.jwe-diagram-bg--bordered.jwe-border-bottom,
.jwe-still--diagram.jwe-diagram-bg--bordered.jwe-border-bottom {
  border-left: none;
  border-bottom: 3px solid var(--jwe-primary);
}
.jwe-figure--diagram img,
.jwe-still--diagram img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

.jwe-figure--wide,
.jwe-still--wide {
  width: 100%;
  margin: var(--jwe-space-xl) 0;
}
.jwe-figure--wide img,
.jwe-still--wide img {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--jwe-radius, 0.5rem);
}
.jwe-figure--wide.jwe-figure--diagram img,
.jwe-still--wide.jwe-still--diagram img {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
}

.jwe-figure--hero,
.jwe-still--hero {
  width: 100%;
  margin: 0 0 var(--jwe-space-lg) 0;
}
.jwe-figure--hero img,
.jwe-wrap .jwe-figure--hero img,
.jwe-still--hero img,
.jwe-wrap .jwe-still--hero img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--jwe-radius, 0.5rem);
}

.jwe-figure--square,
.jwe-still--square {
  width: 100%;
  max-width: var(--jwe-figure-square);
  margin: var(--jwe-space-lg) auto;
}
.jwe-figure--square img,
.jwe-still--square img {
  max-width: 100%;
  width: auto;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--jwe-radius, 0.5rem);
}

.jwe-figure--portrait,
.jwe-still--portrait {
  width: 100%;
  max-width: var(--jwe-figure-portrait);
  margin: var(--jwe-space-lg) auto;
}
.jwe-figure--portrait img,
.jwe-still--portrait img {
  max-width: 100%;
  width: auto;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--jwe-radius, 0.5rem);
}

/* Legacy image classes (keep for compatibility) */
.jwe-img-float-left {
  float: left;
  max-width: 40%;
  margin: 0 var(--jwe-space-lg) var(--jwe-space-md) 0;
  border-radius: var(--jwe-radius, 0.5rem);
}
.jwe-img-float-right {
  float: right;
  max-width: 40%;
  margin: 0 0 var(--jwe-space-md) var(--jwe-space-lg);
  border-radius: var(--jwe-radius, 0.5rem);
}
.jwe-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: var(--jwe-space-lg) 0;
  border-radius: var(--jwe-radius, 0.5rem);
}
.jwe-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.jwe-team-photo {
  max-width: 100%;
  height: auto;
  border-radius: var(--jwe-radius, 0.5rem);
}
/* Override aspect-ratio for individual author photos in team-grid cards only */
.jwe-team-grid .jwe-cell .jwe-team-photo {
  width: auto;  
  height: auto;
  aspect-ratio: 1/1;
  max-width: 240px;  
  margin: 0 auto 1rem;
  display: block;
  object-fit: cover;
}

/* Text blocks */
.jwe-highlight {
  background: linear-gradient(transparent 60%, rgba(var(--jwe-primary-rgb, 0, 90, 140), 0.2) 60%);
  padding: 0 0.25rem;
}
.jwe-passage {
  padding: var(--jwe-space-md) var(--jwe-space-lg);
  border-left: 4.5px solid var(--jwe-accent);
  font-style: italic;
  background: var(--jwe-surface);
  margin: var(--jwe-space-lg) 0;
  border-radius: 0 var(--jwe-radius, 0.5rem) var(--jwe-radius, 0.5rem) 0;
}
.jwe-summary {
  padding: var(--jwe-space-lg);
  background: var(--jwe-surface);
  border: 1px solid var(--jwe-border);
  border-radius: var(--jwe-radius, 0.5rem);
  margin: var(--jwe-space-lg) 0;
}

/* List variants */
.jwe-list--numbered {
  list-style: decimal;
  padding-left: 1.5rem;
}
.jwe-list--pros {
  list-style: none;
  padding-left: 0;
}
.jwe-list--pros li::before {
  content: "✓";
  color: var(--jwe-success);
  margin-right: 0.5rem;
  font-weight: bold;
}
.jwe-list--cons {
  list-style: none;
  padding-left: 0;
}
.jwe-list--cons li::before {
  content: "✗";
  color: var(--jwe-error);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Table variants */
.jwe-catalog--comparison {
  width: 100%;
}
.jwe-catalog--comparison th {
  background: var(--jwe-surface);
  text-align: left;
}
.jwe-catalog--comparison td:first-child {
  font-weight: 600;
}

/* Base button styles */
.jwe-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--jwe-button-padding-y, 0.75rem) var(--jwe-button-padding-x, 1.5rem);
  min-height: var(--jwe-button-height, 2.75rem);
  text-decoration: none;
  border-radius: var(--jwe-radius, 0.5rem);
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 150ms ease-out, filter 150ms ease-out;
}
.jwe-control:hover {
  filter: brightness(1.1);
}
.jwe-control:focus-visible,
.jwe-control-main:focus-visible,
.jwe-control-ghost:focus-visible {
  outline: 2px solid var(--jwe-primary);
  outline-offset: 2px;
}

/* === CATEGORY DROPDOWN (Topics menu) === */
.jwe-has-drawer {
  position: relative;
}
.jwe-drawer-toggle {
  display: flex;
  align-items: center;
  gap: var(--jwe-space-sm, .5rem);
  padding: var(--jwe-space-sm, .5rem) 0;
  background: transparent;
  border: none;
  color: var(--jwe-header-text, inherit);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}
.jwe-drawer-toggle:hover {
  opacity: 0.8;
}
.jwe-drawer-arrow {
  font-size: 0.7em;
  transition: transform 150ms ease-out;
}
.jwe-has-drawer[data-shown="true"] .jwe-drawer-arrow {
  transform: rotate(180deg);
}
.jwe-drawer {
  
  display: none !important;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: max-content;
  background: var(--jwe-header-bg);
  border: 1px solid var(--jwe-border-on-dark);
  border-radius: var(--jwe-radius, 0.5rem);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  padding: var(--jwe-space-sm) 0;
  z-index: 10010;
  list-style: none;
  margin: 0;
}

.jwe-has-drawer.jwe-js-ready .jwe-drawer {
  display: none;
  visibility: hidden;
  pointer-events: none;
}
.jwe-has-drawer.jwe-js-ready[data-shown="true"] .jwe-drawer {
  display: block !important;
  visibility: visible;
  pointer-events: auto;
  
}
.jwe-drawer li {
  margin: 0;
  padding: 0;
}
.jwe-drawer li + li {
  border-top: none;
}
.jwe-drawer a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--jwe-header-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 150ms ease-out;
}
.jwe-drawer a:hover {
  background: var(--jwe-bg-on-dark-hover);
}

@media (max-width: 1000px) {
  nav[data-mode="open"] .jwe-drawer,
  .jwe-rail[data-mode="open"] .jwe-drawer {
    position: static;
    transform: none;
    background: var(--jwe-bg, #fff);  
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    padding: 0;
  }
  nav[data-mode="open"] .jwe-drawer a,
  .jwe-rail[data-mode="open"] .jwe-drawer a {
    color: var(--jwe-text, #333);  
    padding: var(--jwe-space-sm) var(--jwe-space-lg);
    border-bottom: 1px solid var(--jwe-border, #e5e7eb);
  }
  nav[data-mode="open"] .jwe-drawer a:hover,
  .jwe-rail[data-mode="open"] .jwe-drawer a:hover {
    background: var(--jwe-bg-alt, #f5f5f5);
  }
  
  nav[data-mode="open"] .jwe-drawer-toggle,
  .jwe-rail[data-mode="open"] .jwe-drawer-toggle {
    color: var(--jwe-text, #333);  
    width: 100%;
    justify-content: center;
    padding: var(--jwe-space-md);
    font-size: 1.125rem;
  }
}

/* === OVERFLOW MENU (More/... dropdown) === */
.jwe-rail-overflow {
  position: relative;
  display: none;  /* Hidden by default, JS shows when needed */
}
.jwe-rail-overflow.jwe-rail-overflow--active {
  display: block;
}

@media (max-width: 1000px) {
  .jwe-rail-overflow,
  .jwe-rail-overflow.jwe-rail-overflow--active {
    display: none !important;
  }
}
.jwe-rail-overflow__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--jwe-space-xs);
  min-width: 50px;
  min-height: 40px;
  padding: var(--jwe-space-xs) var(--jwe-space-sm);
  margin-left: var(--jwe-space-xs);
  background: transparent;
  border: none;
  color: var(--jwe-header-text);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}
.jwe-rail-overflow__toggle:hover {
  opacity: 0.8;
}
.jwe-rail-overflow__arrow {
  font-size: 0.85em;
  transition: transform 150ms ease-out;
}
.jwe-rail-overflow[data-shown="true"] .jwe-rail-overflow__arrow {
  transform: rotate(180deg);
}
.jwe-rail-overflow__dropdown {
  
  
  display: none !important;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: max-content;
  background: var(--jwe-header-bg);
  border: 1px solid var(--jwe-border-on-dark);
  border-radius: var(--jwe-radius, 0.5rem);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  padding: var(--jwe-space-sm) 0;
  z-index: 10010;
}

.jwe-rail-overflow.jwe-js-ready .jwe-rail-overflow__dropdown {
  display: none;
  visibility: hidden;
  pointer-events: none;
}
.jwe-rail-overflow.jwe-js-ready[data-shown="true"] .jwe-rail-overflow__dropdown {
  display: block !important;
  visibility: visible;
  pointer-events: auto;
  /* JS sets position:fixed with calculated top/right coordinates */
}
.jwe-rail-overflow__dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.jwe-rail-overflow__dropdown li + li {
  border-top: none;
}
.jwe-rail-overflow__dropdown a {
  display: block;
  padding: var(--jwe-space-sm) var(--jwe-space-md);
  color: var(--jwe-header-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 150ms ease-out;
}
.jwe-rail-overflow__dropdown a:hover {
  background: var(--jwe-bg-on-dark-hover);
}

/* Overflow toggle variants */
.jwe-rail-overflow__toggle--dots::after {
  content: "•••";
  letter-spacing: 2px;  
}
.jwe-rail-overflow__toggle--icon {
  font-size: 1.25rem;
}

/* ==========================================================================
   RELATED SECTION & GRID (v2.19)
   ========================================================================== */
.jwe-related-section {
  padding: 1.5rem 0;  
  background: var(--jwe-bg, #f8f9fa);
}
.jwe-related-section .jwe-section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Related list layout (vertical stack) */
.jwe-related-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: var(--jwe-inner-width);
  margin: 0 auto;
}

/* Grid compact variant */
.jwe-matrix--compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 360px));
  gap: var(--jwe-space-md);
}
@media (max-width: 540px) {
  .jwe-matrix--compact {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--jwe-space-sm);
  }
}

/* ==========================================================================
   GRID AUTO-FIT (v2.9) - Columns calculated from container width
   ========================================================================== */

/* Author/Category article grids - same constraints (v3.23) */

.jwe-contributor-grid,
.jwe-author-grid,
.jwe-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: var(--jwe-grid-gap, 1.5rem);
  align-items: start; 
  max-width: var(--jwe-content-width, var(--jwe-max-width, 1200px));
  margin-left: auto;
  margin-right: auto;
}
/* Single card — cap width so it doesn't stretch full row */
.jwe-contributor-grid:has(> *:only-child),
.jwe-author-grid:has(> *:only-child),
.jwe-category-grid:has(> *:only-child) {
  grid-template-columns: 1fr;
  justify-items: center;
}
.jwe-contributor-grid > *:only-child,
.jwe-author-grid > *:only-child,
.jwe-category-grid > *:only-child {
  max-width: 360px;
  width: 100%;
}
@media (max-width: 800px) {
  
  .jwe-contributor-grid,
  .jwe-author-grid,
  .jwe-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .jwe-contributor-grid > *,
  .jwe-author-grid > *,
  .jwe-category-grid > * {
    max-width: 100%;
    width: 100%;
  }
}
@media (max-width: 540px) {
  .jwe-contributor-grid,
  .jwe-author-grid,
  .jwe-category-grid {
    grid-template-columns: 1fr;
  }
  .jwe-contributor-grid > *,
  .jwe-author-grid > *,
  .jwe-category-grid > * {
    max-width: none;
  }
}

/* ==========================================================================
   GRID FIXED COLUMNS OVERRIDES (v2.19) - Responsive + child sizing
   v9.3: Base --cols-N definitions in CSS_GRID (critical), only overrides here.
   ========================================================================== */

/* Specificity must match .matrix > .card (0,2,0) to override card_grid_max_width */
.jwe-matrix--cols-2 > .jwe-cell,
.jwe-matrix--cols-3 > .jwe-cell,
.jwe-matrix--cols-4 > .jwe-cell {
  max-width: 100%;
  width: 100%;
}
/* Same for grid-2/3/4 (non-modifier classes used in AI-generated content) */
.jwe-grid-2 > .jwe-cell,
.jwe-grid-3 > .jwe-cell,
.jwe-grid-4 > .jwe-cell {
  max-width: 100%;
  width: 100%;
}
/* Tablet: reduce columns */
@media (max-width: 1000px) {
  .jwe-matrix--cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));  
  }
}
@media (max-width: 800px) {
  
  .jwe-matrix--cols-2,
  .jwe-matrix--cols-3,
  .jwe-matrix--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .jwe-team-grid .jwe-matrix,
  .jwe-matrix .jwe-matrix {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  .jwe-matrix--cols-2 > *,
  .jwe-matrix--cols-3 > *,
  .jwe-matrix--cols-4 > * {
    max-width: 100%;
    width: 100%;
  }
}
/* Mobile small: all single column */
@media (max-width: 540px) {
  .jwe-matrix--cols-2,
  .jwe-matrix--cols-3,
  .jwe-matrix--cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Team/Avatar grids - circular images (use .jwe-team-grid class) */
.jwe-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: var(--jwe-grid-gap, 1.5rem);
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
@media (max-width: 800px) {
  .jwe-team-grid {
    grid-template-columns: 1fr;
    gap: var(--jwe-space-sm, 0.75rem);
  }
  .jwe-team-avatar,
  .jwe-team-grid .jwe-cell img {
    max-width: 100%;
    width: auto;
    margin-bottom: 0.5rem;
  }
  .jwe-team-grid .jwe-cell,
  .jwe-team-grid .jwe-block,
  .jwe-team-grid > article {
    padding: var(--jwe-space-sm, 0.75rem);
  }
}

.jwe-team-grid .jwe-cell,
.jwe-team-grid .jwe-block,
.jwe-team-grid > article {
  text-align: center;
  align-items: center;
  justify-content: flex-start;
  padding: var(--jwe-space-md, 1rem);
  height: auto;
  border-top: none;
}

img.jwe-team-avatar.jwe-team-avatar {
  width: 220px;
  height: 220px;
  max-width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
}
.jwe-team-grid .jwe-cell img {
  width: 220px;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
}
.jwe-team-grid img.jwe-team-photo.jwe-team-photo,

figure.jwe-team-photo,
.jwe-team-photo {
  max-width: 100%;
  border-radius: var(--jwe-radius);
  aspect-ratio: auto;
  object-fit: initial;
  margin: 1rem auto 1rem;
  height: auto;
}
.jwe-team-grid .jwe-cell-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.jwe-team-grid .jwe-cell-body {
  font-size: 0.9rem;
  color: var(--jwe-text-muted);
  margin: 0;
}
/* Auto-center cards with small square images (team/avatar style) */
.jwe-matrix .jwe-cell img[width="140"],
.jwe-matrix .jwe-cell img[width="120"],
.jwe-matrix .jwe-cell img[width="100"] {
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  aspect-ratio: 1/1;
}
.jwe-matrix .jwe-cell--small-img,
.jwe-matrix .jwe-cell:has(img[width="140"]),
.jwe-matrix .jwe-cell:has(img[width="120"]),
.jwe-matrix .jwe-cell:has(img[width="100"]) {
  text-align: center;
  align-items: center;
  border-left: none;
  border-top: 4.5px solid var(--jwe-accent);
  height: auto;
}

.jwe-appraisal,.jwe-rating{display:inline-flex;align-items:center;gap:var(--jwe-space-sm);font-size:0.95rem}
.jwe-appraisal-average,.jwe-rating-average{font-size:0.85rem;color:var(--jwe-text-muted);margin-top:var(--jwe-space-xs,0.25rem)}
.jwe-related-section,.jwe-author-articles-section,.jwe-category-top-section{margin-block:var(--jwe-space-xl,2.5rem);max-width:none;padding-inline:0}

/* Hero Overlay: Solid Dark (default) - base styles already applied */

/* Hero Overlay: Gradient Bottom→Up (light overlay → dark text) */
body.jwe-shade-mode--gradient-up .jwe-panorama--overlay::before,
body.jwe-shade-mode--gradient-up .jwe-panorama--centered[style*="background-image"]::before {
  background: linear-gradient(to top, var(--jwe-bg, #fff) 0%, var(--jwe-bg, #fff) 8%, rgba(255,255,255,0.85) 25%, transparent 65%);
}
body.jwe-shade-mode--gradient-up .jwe-panorama--overlay,
body.jwe-shade-mode--gradient-up .jwe-panorama--centered[style*="background-image"] {
  --jwe-hero-fg: var(--jwe-text, #1a1a2e);
  --jwe-hero-fg-muted: var(--jwe-text-muted, #555);
  --jwe-hero-shadow: 0 1px 3px rgba(255,255,255,0.8);
}

/* Hero Overlay: Vignette */
body.jwe-shade-mode--vignette .jwe-panorama--overlay::before,
body.jwe-shade-mode--vignette .jwe-panorama--centered[style*="background-image"]::before {
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}

/* Hero Overlay: Diagonal Gradient */
body.jwe-shade-mode--diagonal .jwe-panorama--overlay::before,
body.jwe-shade-mode--diagonal .jwe-panorama--centered[style*="background-image"]::before {
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.15) 100%);
}

/* === Hero Image Blend (v2.40) === */

/* Blend: Split - gradient fades from left (toward text) */
.jwe-hero-blend--left .jwe-panorama--split .jwe-hero-image,
.jwe-hero-blend--left .jwe-panorama--split > img {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
  mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

/* Blend: Split-Reverse - gradient fades from right (toward text) */
.jwe-hero-blend--right .jwe-panorama--split-reverse .jwe-hero-image,
.jwe-hero-blend--right .jwe-panorama--split-reverse > img {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 25%);
  mask-image: linear-gradient(to left, transparent 0%, black 25%);
}

/* Blend: Down - for hero with image above (fade to content below) */
.jwe-hero-blend--down .jwe-panorama img {
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 30%);
  mask-image: linear-gradient(to top, transparent 0%, black 30%);
}

/* Blend: Vignette - soft fade around edges for overlay */
.jwe-hero-blend--vignette .jwe-panorama--overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

/* === Hero Bottom Fade (v2.40) === */

/* Fade: gradient to page background at bottom of hero */
.jwe-section-blend .jwe-panorama::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, var(--jwe-bg, #fff), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Ensure hero has relative positioning for ::after */
.jwe-section-blend .jwe-panorama {
  position: relative;
}

/* === FAQ: Cards === */

.jwe-queries--cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: var(--jwe-grid-gap, 1.5rem);
  max-width: none;
}
.jwe-queries--cards > h2 {
  grid-column: 1 / -1;
}

@media (min-width: 1001px) {
  .jwe-queries--cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .jwe-queries--cards:has(> .jwe-queries-item:nth-last-of-type(1):nth-of-type(3n+1)) {
    grid-template-columns: repeat(2, 1fr);
  }
}
.jwe-queries--cards .jwe-queries-item {
  border: 1px solid var(--jwe-border);
  border-radius: var(--jwe-radius, 0.5rem);
  padding: var(--jwe-space-lg);
  background: var(--jwe-surface);
}
.jwe-queries--cards .jwe-queries-item summary {
  padding: 0 0 1rem 0;
}
.jwe-queries--cards .jwe-queries-answer {
  padding: 0;
}

/* === FOOTER === */

.jwe-keel {
  background: var(--jwe-header-bg);
  color: var(--jwe-header-text);
  padding: 3.25rem 0 2.5rem;  
  margin-top: auto;
  text-align: center;
}
.jwe-keel h4,
.jwe-keel a,
.jwe-keel p {
  color: var(--jwe-header-text);
}
.jwe-keel a:hover {
  text-decoration: underline;
}

.jwe-keel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--jwe-space-xl);
  margin-bottom: 2rem;
}
.jwe-keel-about {
  max-width: var(--jwe-figure-portrait);
}
.jwe-keel-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.jwe-keel-links li {
  margin-bottom: 0.5rem;  
  overflow-wrap: break-word; 
}
.jwe-keel-categories {
  margin-top: var(--jwe-space-lg, 1.5rem);
}
.jwe-keel-categories ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--jwe-space-sm, 0.5rem);
}

.jwe-site-credit {
  text-align: center;
  border-top: 1px solid var(--jwe-border-on-dark);
  padding-top: 1.5rem;
  margin-top: 1rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;  
  word-break: break-word; 
}

@media (max-width: 800px) {
  .jwe-keel-grid {
    grid-template-columns: 1fr;
  }
}

/* === SOCIAL LINKS === */

.jwe-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--jwe-space-sm);
  margin-top: 1rem;
}

.jwe-social-links--centered {
  justify-content: center;
  margin: var(--jwe-space-lg) 0;
}

.jwe-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  line-height: 0;
  font-size: 0;

  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--jwe-footer-text, #fff);
  transition: all 150ms ease-out ease;
  text-decoration: none;
}

.jwe-social-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
}

.jwe-social-link svg {
  width: 26px;
  height: 26px;
}

.jwe-social-link:hover {
  background: var(--jwe-text, #222);
  filter: brightness(1.15);
}

/* === PROFILES (v5.86: 5 layout variants, baked values) === */

.jwe-contributor-section {
  padding-bottom: 2rem;
}

.jwe-contributor-profile {
  margin: 0;
}

/* --- hero-banner: grid photo left + body right on desktop --- */
.jwe-contributor-profile--hero-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 2rem;
  align-items: start;
  max-width: 720px;
  margin-inline: auto;
}

.jwe-contributor-profile--hero-banner .jwe-contributor-photo {
  grid-row: 1 / -1;
}

.jwe-contributor-photo {
  display: block;
}

.jwe-contributor-photo img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.jwe-contributor-photo img.jwe-photo--square {
  border-radius: 0;
  border: 4px solid var(--jwe-primary);
}

.jwe-contributor-photo img.jwe-photo--rounded {
  border-radius: var(--jwe-radius, 0.5rem);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.jwe-contributor-photo img.jwe-photo--circle {
  border-radius: 50%;
  border: 4px solid var(--jwe-primary);
}

.jwe-contributor-photo img.jwe-photo--minimal {
  border-radius: var(--jwe-radius-sm, 0.25rem);
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
}

.jwe-contributor-meta {
  margin-top: var(--jwe-space-sm, 0.5rem);
  padding: var(--jwe-space-xs, 0.25rem) var(--jwe-space-sm, 0.5rem);
  background: var(--jwe-surface);
  border-radius: var(--jwe-radius-sm, 0.25rem);
  font-size: 0.875rem;
  text-align: center;
  color: var(--jwe-text-muted);
  display: inline-block;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.jwe-contributor-info {
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
}

.jwe-contributor-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 var(--jwe-space-xs, 0.25rem);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.jwe-contributor-role {
  color: var(--jwe-text-muted);
  font-size: 1rem;
  margin-bottom: var(--jwe-space-md, 1rem);
}

.jwe-contributor-expertise {
  font-size: 0.9rem;
  margin-bottom: var(--jwe-space-md, 1rem);
}
.jwe-contributor-expertise--primary { color: var(--jwe-primary-text, var(--jwe-primary)); }
.jwe-contributor-expertise--accent { color: var(--jwe-accent); }
.jwe-contributor-expertise--muted { color: var(--jwe-text-muted); }

.jwe-contributor-info p {
  margin-bottom: var(--jwe-space-md, 1rem);
}

.jwe-contributor-info .jwe-lead {
  margin-bottom: var(--jwe-space-md, 1rem);
}

.jwe-contributor-credentials--inline {
  font-size: 0.9rem;
  color: var(--jwe-text-muted);
  margin-bottom: var(--jwe-space-md, 1rem);
}

.jwe-contributor-credentials--tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--jwe-space-md, 1rem);
}

.jwe-contributor-credentials--tags .jwe-flag,
.jwe-contributor-credentials--tags .jwe-tag,
.jwe-author-credentials--tags .jwe-flag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--jwe-surface);
  border: 1px solid var(--jwe-border, #e5e7eb);
  border-radius: var(--jwe-radius-sm, 0.25rem);
  font-size: 0.8rem;
  color: var(--jwe-tag-text, var(--jwe-text-muted));
}

.jwe-contributor-credentials--block {
  padding: var(--jwe-space-md, 1rem);
  border: 1px solid var(--jwe-border, #e5e7eb);
  border-radius: var(--jwe-radius-sm, 0.25rem);
  background: var(--jwe-surface);
  margin-bottom: var(--jwe-space-md, 1rem);
  font-size: 0.9rem;
  color: var(--jwe-text-muted);
}

.jwe-contributor-email {
  font-size: 0.9rem;
  margin-bottom: var(--jwe-space-md, 1rem);
}

.jwe-contributor-email a {
  color: var(--jwe-primary);
  text-decoration: none;
}

/* --- Bio wrapper styles --- */
.jwe-contributor-info--surface {
  background: var(--jwe-surface);
  padding: 1.5rem;
  border-radius: var(--jwe-radius, 0.5rem);
  border: 1px solid var(--jwe-border);
}

.jwe-contributor-info--border {
  border: 3px solid var(--jwe-text-muted);
  padding: 1.5rem;
  border-radius: var(--jwe-radius, 0.5rem);
}

.jwe-contributor-info--accent-left {
  border-left: 3px solid var(--jwe-text-muted);
  padding-left: 1.5rem;
}
.jwe-contributor-info--accent-top {
  border-top: 3px solid var(--jwe-text-muted);
  padding-top: 1.5rem;
}
.jwe-contributor-info--accent-bottom {
  border-bottom: 3px solid var(--jwe-text-muted);
  padding-bottom: 1.5rem;
}

/* --- hero-banner: gradient hero full-width, photo below --- */
.jwe-contributor-hero {
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.jwe-contributor-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, black, transparent);
  opacity: 0.55;
  z-index: 1;
}

.jwe-contributor-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--jwe-text-inv, #fff);
}

.jwe-contributor-hero-inner .jwe-contributor-name {
  color: var(--jwe-text-inv, #fff);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.jwe-contributor-hero-inner .jwe-contributor-role {
  color: rgba(255,255,255,0.85);
}

.jwe-contributor-profile--hero-banner .jwe-contributor-photo {
  margin-top: -3rem;
  position: relative;
  z-index: 3;
}
.jwe-contributor-profile--hero-banner .jwe-contributor-photo img {
  border-color: rgba(255,255,255,0.6);
}

.jwe-contributor-profile--hero-banner .jwe-contributor-body {
  padding-top: 0.75rem;
}

/* --- card-box: bordered card with photo + info grid --- */
.jwe-contributor-profile--card-box .jwe-contributor-card {
  background: var(--jwe-surface);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 720px;
  margin-inline: auto;
}

.jwe-contributor-profile--card-box .jwe-contributor-card--border-left {
  border-left: 5px solid var(--jwe-primary);
}

.jwe-contributor-profile--card-box .jwe-contributor-card--border-top {
  border-top: 5px solid var(--jwe-primary);
}

.jwe-contributor-profile--card-box .jwe-contributor-card--photo-right {
  grid-template-columns: 1fr auto;
}

.jwe-contributor-profile--card-box .jwe-contributor-card--photo-right .jwe-contributor-photo {
  order: 2;
}

.jwe-contributor-profile--card-box .jwe-contributor-card--photo-right .jwe-contributor-info {
  order: 1;
}

/* --- sidebar-classic: surface background, 2-col grid --- */
.jwe-contributor-profile--sidebar-classic .jwe-contributor-sidebar {
  background: var(--jwe-surface);
  padding: 1.5rem;
  border-radius: var(--jwe-radius, 0.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 720px;
  margin-inline: auto;
}

.jwe-contributor-profile--sidebar-classic .jwe-contributor-sidebar--photo-right {
  grid-template-columns: 1fr auto;
}

.jwe-contributor-profile--sidebar-classic .jwe-contributor-sidebar--photo-right .jwe-contributor-photo {
  order: 2;
}

.jwe-contributor-profile--sidebar-classic .jwe-contributor-sidebar--photo-right .jwe-contributor-info {
  order: 1;
}

/* --- centered-magazine: profile-level grid, header flattened via display:contents --- */
.jwe-contributor-profile--centered-magazine {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 2rem;
  max-width: 720px;
  margin-inline: auto;
  align-items: start;
}

.jwe-contributor-profile--centered-magazine .jwe-contributor-header {
  display: contents;
}

.jwe-contributor-profile--centered-magazine .jwe-contributor-photo {
  grid-row: 1 / -1;
}

/* --- split-panel: 2-col grid, colored left panel --- */
.jwe-contributor-profile--split-panel .jwe-contributor-split {
  display: grid;
  grid-template-columns: 3fr 4fr;
  min-height: 300px;
  border-radius: var(--jwe-radius, 0.5rem);
  overflow: hidden;
}

.jwe-contributor-profile--split-panel .jwe-contributor-panel-left {
  background: var(--jwe-header-bg);
  color: var(--jwe-header-text, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.jwe-contributor-profile--split-panel .jwe-contributor-panel-left .jwe-contributor-name {
  color: var(--jwe-header-text, #fff);
}

.jwe-contributor-profile--split-panel .jwe-contributor-panel-left .jwe-contributor-role {
  color: var(--jwe-header-text, rgba(255,255,255,0.85));
}

.jwe-contributor-profile--split-panel .jwe-contributor-panel-right {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jwe-contributor-profile--split-panel .jwe-contributor-split--reversed {
  direction: rtl;
}

.jwe-contributor-profile--split-panel .jwe-contributor-split--reversed > * {
  direction: ltr;
}

/* --- Compact list: base --- */
.jwe-compact-articles {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.jwe-compact-articles li {
  padding: 0.75rem 0;
}

.jwe-compact-articles li a {
  color: var(--jwe-text);
  text-decoration: underline;
  font-weight: 500;
}

.jwe-compact-articles li a:hover {
  text-decoration: underline;
}

.jwe-compact-articles .jwe-compact-date {
  font-size: 0.8rem;
  color: var(--jwe-text-muted);
  white-space: nowrap;
}

.jwe-compact-articles .jwe-compact-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--jwe-text-muted);
  margin-top: 0.25rem;
}

.jwe-compact-articles .jwe-compact-num {
  display: inline-block;
  min-width: 2rem;
  flex-shrink: 0;
  color: var(--jwe-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  margin-right: 0.25rem;
}

/* compact variant: clean */
.jwe-compact-articles--clean li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

/* compact variant: border-bottom */
.jwe-compact-articles--border-bottom li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--jwe-border, #e5e7eb);
}

/* compact variant: numbered */
.jwe-compact-articles--numbered li {
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid var(--jwe-border, #e5e7eb);
}

.jwe-compact-articles--numbered .jwe-compact-date {
  margin-left: auto;
  padding-left: 1rem;
}

/* compact variant: with-desc */
.jwe-compact-articles--with-desc li {
  border-bottom: 1px solid var(--jwe-border, #e5e7eb);
}

.jwe-compact-articles--with-desc li .jwe-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.jwe-compact-articles--date-before li {
  flex-direction: row-reverse;
}
.jwe-compact-articles--date-before .jwe-compact-date {
  margin-left: 0;
  margin-right: auto;
  padding-left: 0;
  padding-right: 1rem;
}

.jwe-compact-articles--date-below li {
  flex-wrap: wrap;
}
.jwe-compact-articles--date-below .jwe-compact-date {
  display: block;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  margin-top: 0.125rem;
  font-size: 0.75rem;
}

.jwe-compact-articles--date-above li {
  flex-wrap: wrap;
  flex-direction: column;
}
.jwe-compact-articles--date-above .jwe-compact-date {
  display: block;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 0.125rem;
  font-size: 0.75rem;
  order: -1;
}

.jwe-photo-top.jwe-contributor-profile--hero-banner
.jwe-photo-top.jwe-contributor-profile--centered-magazine {
  grid-template-columns: 1fr;
  gap: 2rem 0;
}
.jwe-photo-top .jwe-contributor-photo img {
  margin-left: auto;
  margin-right: auto;
}

/* photo-top: sidebar/card fallback to single column */
.jwe-photo-top .jwe-contributor-sidebar
.jwe-photo-top .jwe-contributor-card {
  grid-template-columns: 1fr;
  text-align: center;
}

/* === photo-top sub-variant: centered === */
.jwe-photo-top--centered .jwe-contributor-photo {
  grid-row: auto;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.jwe-photo-top--centered.jwe-contributor-profile--centered-magazine .jwe-contributor-header {
  display: block;
  text-align: center;
}
.jwe-photo-top--centered .jwe-contributor-body {
  max-width: 680px;
  margin: 0 auto;
}

/* === photo-top sub-variant: inline-left [PHOTO | NAME/ROLE], bio below === */
.jwe-photo-top--inline-left .jwe-contributor-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}
.jwe-photo-top--inline-left .jwe-contributor-photo {
  flex-shrink: 0;
  width: fit-content;
}

/* === photo-top sub-variant: inline-right [NAME/ROLE | PHOTO], bio below === */
.jwe-photo-top--inline-right .jwe-contributor-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}
.jwe-photo-top--inline-right .jwe-contributor-photo {
  order: 2;
  flex-shrink: 0;
  width: fit-content;
}

/* === photo-top sub-variant: name-first — NAME/ROLE on top, PHOTO, bio === */
.jwe-photo-top--name-first.jwe-contributor-profile--centered-magazine .jwe-contributor-header {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  text-align: center;
}
.jwe-photo-top--name-first .jwe-contributor-info-compact {
  margin-bottom: 2rem;
}
.jwe-photo-top--name-first .jwe-contributor-body {
  max-width: 680px;
  margin: 0 auto;
}

/* === photo-top sub-variant: full-left [PHOTO | NAME+ROLE] + bio below === */
.jwe-photo-top--full-left .jwe-contributor-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}
.jwe-photo-top--full-left .jwe-contributor-photo {
  flex-shrink: 0;
  width: fit-content;
}

.jwe-photo-top--inline-left .jwe-contributor-body
.jwe-photo-top--inline-right .jwe-contributor-body
.jwe-photo-top--full-left .jwe-contributor-body
.jwe-photo-top--full-right .jwe-contributor-body {
  max-width: 680px;
  margin: 0;
}
.jwe-photo-top--inline-left .jwe-contributor-articles
.jwe-photo-top--inline-right .jwe-contributor-articles
.jwe-photo-top--full-left .jwe-contributor-articles
.jwe-photo-top--full-right .jwe-contributor-articles {
  text-align: left;
}

/* === photo-top sub-variant: full-right [NAME+ROLE | PHOTO] + bio below === */
.jwe-photo-top--full-right .jwe-contributor-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}
.jwe-photo-top--full-right .jwe-contributor-photo {
  order: 2;
  flex-shrink: 0;
  width: fit-content;
}

/* hero-banner + photo-top: photo centered, body full-width */
.jwe-photo-top.jwe-contributor-profile--hero-banner .jwe-contributor-photo {
  grid-row: auto;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.jwe-photo-right.jwe-contributor-profile--hero-banner
.jwe-photo-right.jwe-contributor-profile--centered-magazine {
  direction: rtl;
}
.jwe-photo-right.jwe-contributor-profile--hero-banner > *
.jwe-photo-right.jwe-contributor-profile--centered-magazine > *
.jwe-photo-right .jwe-contributor-info
.jwe-photo-right .jwe-contributor-info-compact
.jwe-photo-right .jwe-contributor-body {
  direction: ltr;
}

/* Articles wrapper */
.jwe-contributor-articles-wrap {
  padding-top: 0.75rem;
  padding-bottom: 2rem;
}

.jwe-contributor-articles-wrap h2 {
  margin-top: 0.75rem;
}

/* Author page bottom padding */
.jwe-contributor-page-bottom {
  padding-bottom: 2rem;
}

/* Mobile: all profile variants stack vertically */
@media (max-width: 1000px) {
  .jwe-contributor-photo img
    margin-left: auto;
    margin-right: auto;
  }

  .jwe-contributor-hero
    min-height: auto;
    padding: var(--jwe-space-lg, 1.5rem);
  }
  .jwe-contributor-profile--hero-banner
    grid-template-columns: 1fr;
  }
  .jwe-contributor-profile--hero-banner .jwe-contributor-photo
    margin-top: -2rem;
    grid-row: auto;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .jwe-contributor-profile--card-box .jwe-contributor-card
  .jwe-contributor-profile--card-box .jwe-contributor-card--photo-right
  .jwe-contributor-profile--sidebar-classic .jwe-contributor-sidebar
  .jwe-contributor-profile--sidebar-classic .jwe-contributor-sidebar--photo-right
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .jwe-contributor-profile--sidebar-classic .jwe-contributor-sidebar--photo-right .jwe-contributor-photo
  .jwe-contributor-profile--card-box .jwe-contributor-card--photo-right .jwe-contributor-photo
    order: 1;
  }
  .jwe-contributor-profile--sidebar-classic .jwe-contributor-sidebar--photo-right .jwe-contributor-info
  .jwe-contributor-profile--card-box .jwe-contributor-card--photo-right .jwe-contributor-info
    order: 2;
  }
  .jwe-contributor-profile--card-box .jwe-contributor-photo
  .jwe-contributor-profile--sidebar-classic .jwe-contributor-photo
    margin: 0 auto 0;
    text-align: center;
  }

  .jwe-contributor-profile--centered-magazine
  .jwe-photo-right.jwe-contributor-profile--hero-banner
  .jwe-photo-right.jwe-contributor-profile--centered-magazine
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .jwe-contributor-profile--centered-magazine .jwe-contributor-header
    display: block;
  }
  .jwe-contributor-profile--centered-magazine .jwe-contributor-photo
    grid-row: auto;
    text-align: center;
    margin: 0 auto;
  }
  .jwe-contributor-profile--centered-magazine .jwe-contributor-info-compact
    text-align: center;
  }

  
  .jwe-photo-top--inline-left .jwe-contributor-header
  .jwe-photo-top--inline-right .jwe-contributor-header
    display: block;
    text-align: center;
  }
  .jwe-photo-top--inline-left .jwe-contributor-photo
  .jwe-photo-top--inline-right .jwe-contributor-photo
    order: 0;
    width: auto;
    margin: 0 auto;
  }

  
  .jwe-photo-top--full-left .jwe-contributor-header
  .jwe-photo-top--full-right .jwe-contributor-header
    display: block;
    text-align: center;
  }
  .jwe-photo-top--full-left .jwe-contributor-photo
  .jwe-photo-top--full-right .jwe-contributor-photo
    order: 0;
    width: auto;
    margin: 0 auto;
  }

  .jwe-contributor-profile--split-panel .jwe-contributor-split
  .jwe-contributor-profile--split-panel .jwe-contributor-split--reversed
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .jwe-contributor-profile--split-panel .jwe-contributor-panel-left
    padding: var(--jwe-space-lg, 1.5rem);
    text-align: center;
  }

  .jwe-mob-info-first.jwe-contributor-profile--sidebar-classic .jwe-contributor-sidebar .jwe-contributor-info
  .jwe-mob-info-first.jwe-contributor-profile--card-box .jwe-contributor-card .jwe-contributor-info
  .jwe-mob-info-first.jwe-contributor-profile--centered-magazine .jwe-contributor-header .jwe-contributor-info-compact
    order: -1;
  }

  
  .jwe-mob-text-center .jwe-contributor-name
  .jwe-mob-text-center .jwe-contributor-role
  .jwe-mob-text-center .jwe-contributor-expertise
  .jwe-mob-text-center .jwe-contributor-meta
  .jwe-mob-text-center .jwe-contributor-info-compact
    text-align: center;
  }

  
  .jwe-contributor-info--surface
  .jwe-contributor-info--border
    padding: 1rem;
  }
  .jwe-contributor-info--accent-left
    padding-left: 1rem;
  }
  .jwe-contributor-info--accent-top
    padding-top: 1rem;
  }
  .jwe-contributor-info--accent-bottom
    padding-bottom: 1rem;
  }
  .jwe-contributor-profile--hero-banner .jwe-contributor-body
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.jwe-lead-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--jwe-space-xl);
  align-items: center;
  margin-bottom: 3rem;
  padding: var(--jwe-space-xl);
  background: var(--jwe-surface);
  border-radius: var(--jwe-radius, 0.5rem);
}
.jwe-lead-profile__photo img {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 50%;
  aspect-ratio: 1/1;
}
.jwe-lead-profile__info {
  text-align: left;
}
.jwe-lead-profile__info h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.jwe-lead-profile__info h2 a {
  color: var(--jwe-accent);
  text-decoration: none;
}
.jwe-lead-profile__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.jwe-lead-profile__role {
  font-size: 0.9rem;
  color: var(--jwe-text-muted);
  margin-bottom: 0.5rem;
}
.jwe-lead-profile__bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--jwe-text-muted);
}
@media (max-width: 800px) {
  .jwe-lead-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .jwe-lead-profile__photo {
    display: flex;
    justify-content: center;
  }
  .jwe-lead-profile__info {
    text-align: center;
  }
}

/* === E-E-A-T TRUST CLASSES === */

/* Author inline (within article content) — v8.8: dual-selector for v_author vocab */
.jwe-contributor,
.jwe-author {
  display: flex;
  align-items: center;
  gap: var(--jwe-space-sm);
  padding: 1rem 0;
  border-top: 1px solid var(--jwe-border);
  margin-top: 1.5rem;
}
.jwe-contributor__avatar,
.jwe-author__avatar {
  width: var(--jwe-byline-avatar-size, 48px);   
  height: var(--jwe-byline-avatar-size, 48px);  
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;  
}

.jwe-cell .jwe-contributor__avatar,
.jwe-cell .jwe-author__avatar {
  aspect-ratio: 1/1;
  width: auto;
  height: auto !important;  /* Override base height */
  max-width: var(--jwe-author-avatar-size, 240px);
  margin: 0 auto 1rem;
  align-self: center;
  border-radius: 0.125rem;
}

.jwe-contributor__name,
.jwe-author__name {
  font-weight: 600;
  color: var(--jwe-text);
}
.jwe-contributor__bio,
.jwe-author__bio {
  font-size: 0.9rem;
  color: var(--jwe-text-muted);
}

/* Credentials block */
.jwe-credentials {
  background: var(--jwe-surface);
  border-radius: var(--jwe-radius, 0.5rem);
  padding: var(--jwe-space-lg);
  margin: var(--jwe-space-lg) 0;
  border-left: 4.5px solid var(--jwe-accent);
}
.jwe-credentials h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--jwe-text-muted);
}
.jwe-credentials ul {
  margin: 0;
  padding-left: 1.25rem;
}
.jwe-credentials li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Sources/references */
.jwe-sources {
  background: var(--jwe-surface);
  border-radius: var(--jwe-radius, 0.5rem);
  padding: var(--jwe-space-lg);
  margin: var(--jwe-space-xl) 0;
  border-top: 1px solid var(--jwe-border);
  font-size: 0.9em;
  color: var(--jwe-text-muted);
}
.jwe-sources h4 {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--jwe-text-muted);
}
.jwe-sources ol {
  margin: 0;
  padding-left: 1.5rem;
}
.jwe-sources li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.jwe-sources a {
  color: var(--jwe-accent);
  word-break: break-word;
}
.jwe-sources--boxed {
  border: 1px solid var(--jwe-border);
  padding: 1.5rem;
  background: var(--jwe-surface);
  border-radius: var(--jwe-radius);
}
.jwe-sources--links li {
  margin-bottom: 0.5rem;
}

/* Fact-check badge */
.jwe-fact-check {
  display: inline-flex;
  align-items: center;
  gap: var(--jwe-space-sm);
  background: linear-gradient(135deg, var(--jwe-surface) 0%, rgba(var(--jwe-success-rgb, 0,128,0), 0.1) 100%);
  border: 1px solid rgba(var(--jwe-success-rgb, 0,128,0), 0.3);
  border-radius: var(--jwe-radius, 0.5rem);
  padding: var(--jwe-space-sm) var(--jwe-space-md);
  font-size: 0.85rem;
  margin: var(--jwe-space-md) 0;
}
.jwe-fact-check::before {
  content: "✓";
  color: var(--jwe-success, #10b981);
  font-weight: bold;
}

/* Trust signals container */
.jwe-trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--jwe-space-md);
  padding: var(--jwe-space-lg);
  background: var(--jwe-surface);
  border-radius: var(--jwe-radius, 0.5rem);
  margin: var(--jwe-space-xl) 0;
}

/* Updated date */
.jwe-updated {
  font-size: 0.85rem;
  color: var(--jwe-text-muted);
  font-style: italic;
}

/* === ACCORDION (Generic, non-FAQ) === */

.jwe-accordion {
  border: 1px solid var(--jwe-border);
  border-radius: var(--jwe-radius, 0.5rem);
  overflow: hidden;
  margin: var(--jwe-space-lg) 0;
}
.jwe-accordion__item {
  border-bottom: 1px solid var(--jwe-border);
}
.jwe-accordion__item:last-child {
  border-bottom: none;
}
.jwe-accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  background: var(--jwe-surface);
  transition: background 150ms ease-out;
}
.jwe-accordion__header:hover {
  background: var(--jwe-border);
}
.jwe-accordion__header::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--jwe-accent);
  transition: transform 150ms ease-out;
}
.jwe-accordion__item[open] .jwe-accordion__header::after {
  content: '−';
}
.jwe-accordion__content {
  padding: 1rem 1.25rem;
  line-height: 1.7;
  color: var(--jwe-text-muted);
}

/* === TABS === */

.jwe-tabs {
  margin: var(--jwe-space-lg) 0;
}
.jwe-tabs__nav {
  display: flex;
  border-bottom: 2px solid var(--jwe-border);
  gap: 0;
  overflow-x: auto;
}
.jwe-tab {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--jwe-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 150ms ease-out, border-color 150ms ease-out;
  white-space: nowrap;
}
.jwe-tab:hover {
  color: var(--jwe-text);
}
.jwe-tab.active,
.jwe-tab--active {
  color: var(--jwe-accent);
  border-bottom-color: var(--jwe-accent);
}
.jwe-tab-content {
  display: none;
  padding: 1.5rem 0;
}
.jwe-tab-content.active,
.jwe-tab-content--active {
  display: block;
}

/* === INFO CARDS (grid of small info blocks) === */

.jwe-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--jwe-space-md);
  margin: var(--jwe-space-lg) 0;
  align-items: stretch; 
}

.jwe-info-cards.jwe-matrix--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.jwe-info-cards.jwe-matrix--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jwe-info-cards .jwe-cell {
  overflow: visible;
  min-height: 0;  /* Allow flex shrink if needed */
}
.jwe-info-cards > div {
  display: flex;
  flex-direction: column;
  background: var(--jwe-surface);
  border-radius: var(--jwe-radius, 0.5rem);
  text-align: center;
}

.jwe-matrix.jwe-info-cards > .jwe-cell,
.jwe-info-cards > div {
  padding: var(--jwe-space-lg);
}
.jwe-info-cards > div p:last-child {
  margin-top: auto;
  color: var(--jwe-text-muted);
  font-size: 0.9rem;
}

.jwe-info-cards .jwe-cell-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.jwe-info-cards .jwe-control,
.jwe-info-cards .jwe-cell-body > a:last-child {
  margin-top: auto;
}
.jwe-info-cards strong {
  display: block;
  font-size: 1.5rem;
  color: var(--jwe-accent);
  margin-bottom: 0.5rem;
}

.jwe-info-cards .jwe-cell-body > p,
.jwe-info-cards .jwe-cell-body > p.jwe-text-muted,
.jwe-info-cards .jwe-cell-body,
.jwe-info-cards p {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  text-overflow: unset;
}

.jwe-info-cards .jwe-cell-body {
  margin-left: 0;
  margin-right: 0;
}

/* === FAQ Question (standalone) === */

.jwe-queries-question {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--jwe-text);
}

/* Sidebar */
.jwe-post-sidebar {
  min-width: 0;
  position: sticky;
  top: calc(var(--jwe-space-4xl, 6rem) + var(--jwe-space-lg, 1.5rem));
  align-self: start;
}
.jwe-sidebar-block {
  margin-bottom: 1.5rem;
  padding: var(--jwe-space-lg);
  background: var(--jwe-surface, #fff);
  border-radius: var(--jwe-radius, 0.5rem);
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
}
.jwe-sidebar-title {
  margin: 0 0 var(--jwe-space-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--jwe-text-muted);
}
.jwe-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.jwe-sidebar-list li {
  padding: var(--jwe-space-sm) 0;
  border-bottom: 1px solid var(--jwe-border, #e5e7eb);
}
.jwe-sidebar-list li:last-child {
  border-bottom: none;
}
.jwe-sidebar-list a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--jwe-text);
  display: block;
  line-height: 1.4;
}
.jwe-sidebar-list a:hover {
  color: var(--jwe-accent);
}

/* Sidebar author */
.jwe-sidebar-author {
  text-align: center;
}
.jwe-sidebar-author img {
  border-radius: 50%;
  margin: 0 auto 0.75rem auto;
  width: var(--jwe-sidebar-author-size, 80%); 
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.jwe-sidebar-author strong {
  display: block;
  margin-bottom: 0.25rem;
}
.jwe-sidebar-author__role {
  display: block;
  font-size: 0.85rem;
  color: var(--jwe-text-muted);
  margin-bottom: 0.5rem;
}
.jwe-sidebar-author p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  color: var(--jwe-text-muted);
}

/* TOC - Sidebar version */
.jwe-navigator {
  font-size: 0.95rem;
}
.jwe-navigator ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.jwe-navigator li {
  padding: 0.4rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
}
.jwe-navigator li.active {
  border-left-color: var(--jwe-accent);
}
.jwe-navigator a {
  color: var(--jwe-primary);
  text-decoration: none;
  font-weight: 500;
}
.jwe-navigator a:hover {
  color: var(--jwe-accent);
  text-decoration: underline;
}
.jwe-navigator-placeholder {
  font-size: 0.85rem;
  color: var(--jwe-text-muted);
  font-style: italic;
}

/* Inline TOC Box - for article content (v1.27, v2.29: mobile overflow fix) */
.jwe-navigator-box {
  background: var(--jwe-bg, #f8fafc);
  border: 1px solid var(--jwe-border, #e5e7eb);
  border-radius: var(--jwe-radius, 0.5rem);
  padding: var(--jwe-card-padding) var(--jwe-space-lg);
  margin: var(--jwe-space-lg) 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}
.jwe-navigator-box li {
  white-space: normal;
}
.jwe-navigator-box a {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.jwe-navigator-box__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--jwe-text);
  display: flex;
  align-items: center;
  gap: var(--jwe-space-sm);
}
.jwe-navigator-box__title::before {
  content: '📋';
  font-size: 1.1rem;
}
.jwe-navigator-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.jwe-navigator-box li {
  padding: 0.35rem 0;
  padding-left: 1rem;
  position: relative;
}
.jwe-navigator-box li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--jwe-primary);
}
.jwe-navigator-box a {
  color: var(--jwe-primary);
  text-decoration: none;
  font-size: 0.95rem;
}
.jwe-navigator-box a:hover {
  text-decoration: underline;
}

.jwe-navigator-box a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--jwe-primary, #3b82f6);
  border-radius: var(--jwe-radius-xs, 2px);
}

/* TOC Box Variant: included conditionally via build_module_css() */

.jwe-navigator-box .jwe-list--checked li::before {
  content: '→' !important;
  color: var(--jwe-primary);
}
.jwe-navigator-box .jwe-list--checked li {
  padding-left: 1rem !important;
}

/* Author compact variant */
.jwe-contributor-compact {
  display: flex;
  align-items: center;
  gap: var(--jwe-space-sm);
  margin: var(--jwe-space-lg) 0;
  padding: var(--jwe-space-md);
  background: var(--jwe-bg, #f8f9fa);
  border-radius: var(--jwe-radius, 0.5rem);
}
.jwe-contributor-compact img {
  border-radius: 50%;
  flex-shrink: 0;
}
.jwe-contributor-compact__info strong {
  display: block;
}
.jwe-contributor-compact__info span {
  font-size: 0.85rem;
  color: var(--jwe-text-muted);
}

/* ==========================================================================
   AUTHOR BOX - FULL VARIANT (v2.13)
   ========================================================================== */
.jwe-contributor-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 2.5rem auto;
  padding: var(--jwe-space-lg);
  background: var(--jwe-surface, #f8f9fa);
  border-radius: var(--jwe-radius, 0.5rem);
  border-left: 4.5px solid var(--jwe-accent, #3b82f6);
  max-width: var(--jwe-max-width, 1200px);
  box-sizing: border-box;
}
.jwe-post-wrapper .jwe-contributor-box,
.jwe-post-wrapper .jwe-author-box,
.jwe-sidebar-block .jwe-contributor-box {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.jwe-contributor-box__avatar
  /* Default base - overridden by modifiers */
  flex-shrink: 0;
  object-fit: cover;
  width: 96px;
  height: 96px;
}
.jwe-contributor-box--round .jwe-contributor-box__avatar {
  border-radius: 50%;
}
.jwe-contributor-box--square .jwe-contributor-box__avatar {
  border-radius: var(--jwe-radius, 0.5rem);
}
.jwe-contributor-inline__avatar {
  border-radius: 50%;
}
.jwe-contributor-box__info {
  flex: 1;
  min-width: 0;
}
.jwe-contributor-box__info strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--jwe-text, #1a1a2e);
}
.jwe-contributor-box__role {
  display: block;
  font-size: 0.875rem;
  color: var(--jwe-accent, #3b82f6);
  margin-bottom: 0.75rem;
}
.jwe-contributor-box__info p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--jwe-text-muted, #666);
}
/* Author box without avatar */
.jwe-contributor-box--no-avatar {
  border-left: none;
  border-top: 2px solid var(--jwe-border, #e5e7eb);
  padding-top: 1.5rem;
}
/* Author box minimal (v2.13 - simple text, no frame) */
.jwe-contributor-box--minimal {
  display: flex;
  align-items: center;
  gap: var(--jwe-space-md);
  background: transparent;
  padding: 1.5rem 0 0;
  border: none;
  border-top: 1px solid var(--jwe-border, #e5e7eb);
  margin: 2rem 0 0;
}
.jwe-contributor-box--minimal .jwe-contributor-box__avatar {
  width: var(--jwe-byline-avatar-size, 48px);   
  height: var(--jwe-byline-avatar-size, 48px);
  border-radius: 50%;
  flex-shrink: 0;
}
.jwe-contributor-box--minimal .jwe-contributor-box__info {
  display: block;
}
.jwe-contributor-box--minimal .jwe-contributor-box__info strong {
  font-size: 0.95rem;
  display: inline;
}
.jwe-contributor-box--minimal .jwe-contributor-box__role {
  display: inline;
  margin-left: 0.5rem;
  font-size: 0.85rem;
}
.jwe-contributor-box--minimal .jwe-contributor-box__info p {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--jwe-text-muted, #666);
}
.jwe-contributor-box__link {
  color: inherit;
  text-decoration: none;
}
.jwe-contributor-box__link:hover {
  color: var(--jwe-accent);
}
.jwe-contributor-box__btn {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--jwe-accent);
  text-decoration: none;
  font-weight: 500;
}
.jwe-contributor-box__btn:hover {
  text-decoration: underline;
}
@media (max-width: 540px) {
  .jwe-contributor-box
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .jwe-contributor-box__info
    text-align: center;
  }
}

/* ==========================================================================
   AUTHOR INLINE - FOR ARTICLE HEADER (v2.13)
   ========================================================================== */
.jwe-contributor-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--jwe-space-sm);
  font-size: 0.9rem;
  color: var(--jwe-text-muted, #666);
}
.jwe-contributor-inline img {
  width: 40px;
  height: 40px;

  border-radius: 50%;
  object-fit: cover;
}
.jwe-contributor-inline__name {
  font-weight: 500;
  color: var(--jwe-text, #1a1a2e);
}
.jwe-contributor-inline__role {
  font-size: 0.8rem;
  color: var(--jwe-text-muted, #888);
}
.jwe-contributor-inline--name-only {
  font-weight: 500;
  color: var(--jwe-text, #1a1a2e);
}

/* ==========================================================================
   AUTHOR HEADER - FOR ARTICLE HEADER (v5.8)
   ========================================================================== */
.jwe-contributor-header {
  display: flex;
  align-items: center;
  gap: var(--jwe-space-sm, 0.5rem);
  margin-top: var(--jwe-space-md, 0.75rem);
  font-size: 0.9rem;
  color: var(--jwe-text-muted, #666);
}
.jwe-contributor-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.jwe-contributor-header__name {
  font-weight: 500;
  color: var(--jwe-text, #1a1a2e);
}
.jwe-contributor-header__name:hover {
  color: var(--jwe-primary, #3b82f6);
}
.jwe-contributor-header__role {
  font-size: 0.8rem;
  color: var(--jwe-text-muted, #888);
}
.jwe-contributor-header--name-only {
  display: block;
  margin-top: var(--jwe-space-sm, 0.5rem);
  font-weight: 500;
  color: var(--jwe-text-muted, #666);
}
.jwe-contributor-header--name-only a {
  color: var(--jwe-text, #1a1a2e);
  text-decoration: none;
}
.jwe-contributor-header--name-only a:hover {
  color: var(--jwe-primary, #3b82f6);
}

.jwe-contributor-header__prefix {
  color: var(--jwe-text-muted, #666);
  font-weight: 400;
}

.jwe-contributor-combo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--jwe-space-lg, 1.5rem);
  margin: 2rem 0;
  align-items: start;
}
.jwe-contributor-combo--author-right {
  direction: rtl;
}
.jwe-contributor-combo--author-right > * {
  direction: ltr;
}
.jwe-contributor-combo .jwe-contributor-box {
  margin: 0;
}
.jwe-contributor-combo .jwe-follow,
.jwe-contributor-combo .jwe-subscribe,
.jwe-author-combo .jwe-follow
.jwe-contributor-combo .jwe-appraisal-widget,
.jwe-contributor-combo .jwe-rating-widget,
.jwe-author-combo .jwe-appraisal-widget {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 800px) {
  .jwe-contributor-combo
    grid-template-columns: 1fr;
  }
  .jwe-contributor-combo--author-right
    direction: ltr;
  }
}

.jwe-contributor-standalone {
  margin: 2.5rem auto;
  max-width: var(--jwe-figure-portrait);
  padding: var(--jwe-space-lg, 1.5rem);
}

.jwe-contributor-centered {
  text-align: center;
  margin: 2.5rem auto;
  max-width: var(--jwe-figure-portrait);
  padding: var(--jwe-space-lg, 1.5rem);
}
.jwe-contributor-centered .jwe-contributor-box {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.jwe-contributor-centered .jwe-contributor-box__avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
}
.jwe-contributor-centered .jwe-contributor-box__info {
  text-align: center;
}
.jwe-contributor-centered .jwe-contributor-box__info p {
  text-align: center;
}
/* Centered card style variants */
.jwe-contributor-centered--card {
  background: var(--jwe-surface, #f8f9fa);
  border-radius: var(--jwe-radius, 0.5rem);
}
.jwe-contributor-centered--clean {
  background: transparent;
  padding: var(--jwe-space-md, 1rem) 0;
}
.jwe-contributor-centered--bordered {
  background: transparent;
  border: 1px solid var(--jwe-border, #dee2e6);
  border-radius: var(--jwe-radius, 0.5rem);
}
.jwe-contributor-centered--outline {
  background: transparent;
  border: 2px solid var(--jwe-muted, #6c757d);
  border-radius: 1.5rem;
}
.jwe-contributor-centered--shadow {
  background: var(--jwe-bg, #fff);
  border-radius: var(--jwe-radius, 0.5rem);
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
}
/* Centered direction: row (avatar side, name next) */
.jwe-contributor-centered--row .jwe-contributor-box {
  flex-direction: row;
  gap: var(--jwe-space-md, 1rem);
}
.jwe-contributor-centered--row .jwe-contributor-box__info {
  text-align: left;
}
.jwe-contributor-centered--row .jwe-contributor-box__info p {
  text-align: left;
}
/* Label */
.jwe-contributor-bottom-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--jwe-muted, #6c757d);
  margin-bottom: 0.75rem;
}
.jwe-contributor-centered .jwe-contributor-bottom-label {
  text-align: center;
}

/* ==========================================================================
   META WRAPPER VARIANTS (v5.9 - Anti-footprint)
   ========================================================================== */
/* Divider wrapper - lines above/below meta */
.jwe-meta-wrapper--divider-bottom {
  padding-bottom: var(--jwe-space-sm, 0.5rem);
  margin-bottom: var(--jwe-space-sm, 0.5rem);
  border-bottom: 1px solid var(--jwe-border, #e5e7eb);
}
.jwe-meta-wrapper--divider-top-bottom {
  padding: var(--jwe-space-sm, 0.5rem) 0;
  margin: var(--jwe-space-sm, 0.5rem) 0;
  border-top: 1px solid var(--jwe-border, #e5e7eb);
  border-bottom: 1px solid var(--jwe-border, #e5e7eb);
}
.jwe-post__header .jwe-meta-wrapper--divider-bottom {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.jwe-post__header .jwe-meta-wrapper--divider-top-bottom {
  border-bottom: none;
}
/* Box wrapper - subtle background */
.jwe-meta-wrapper--box {
  padding: var(--jwe-space-sm, 0.5rem) var(--jwe-space-md, 1rem);
  background: var(--jwe-bg-alt, #f8f9fa);
  border-radius: var(--jwe-radius-sm, 4px);
  margin-bottom: var(--jwe-space-sm, 0.5rem);
}
/* Pill wrapper - chips for meta elements */
.jwe-meta-wrapper--pill > * {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--jwe-pill-bg, var(--jwe-bg-alt, #f5f5f5));
  color: var(--jwe-pill-text, inherit);
  border-radius: 999px;
  margin-right: var(--jwe-space-xs, 0.25rem);
  margin-bottom: var(--jwe-space-xs, 0.25rem);
}

[class*="--dark"] .jwe-meta-wrapper--pill > *,
[class*="--backdrop-dark"] .jwe-meta-wrapper--pill > *,
[class*="--contrast-dark"] .jwe-meta-wrapper--pill > * {
  --jwe-pill-bg: rgba(var(--jwe-primary-rgb, 0,0,0), 0.3);
  --jwe-pill-text: var(--jwe-text-inv, #fff);
}
/* Accent wrapper - colored bar on left */
.jwe-meta-wrapper--accent {
  padding-left: var(--jwe-space-md, 1rem);
  border-left: 3px solid var(--jwe-primary, #3b82f6);
  margin-bottom: var(--jwe-space-sm, 0.5rem);
}

/* ==========================================================================
   META VARIANTS (v2.13) - Position, Separator, Category Style
   ========================================================================== */

/* Meta position: above title */
.jwe-post__meta--above {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.jwe-post__meta--above + .jwe-post__title {
  margin-top: 0;
}

/* Meta position: between title and image */
.jwe-post__meta--between {
  margin: var(--jwe-space-md) 0;
  padding: var(--jwe-space-sm) 0;
  border-top: 1px solid var(--jwe-border, #e5e7eb);
  border-bottom: 1px solid var(--jwe-border, #e5e7eb);
}

/* Meta separator variants */
.jwe-post__meta--sep-dot > *:not(:last-child)::after {
  content: '·';
  margin: 0 var(--jwe-space-sm, 0.5rem);
  color: var(--jwe-text-muted, #888);
}
.jwe-post__meta--sep-dash > *:not(:last-child)::after {
  content: '—';
  margin: 0 var(--jwe-space-sm, 0.5rem);
  color: var(--jwe-text-muted, #888);
}
.jwe-post__meta--sep-pipe > *:not(:last-child)::after {
  content: '|';
  margin: 0 var(--jwe-space-sm, 0.5rem);
  color: var(--jwe-text-muted, #888);
}
.jwe-post__meta--sep-newline {
  display: flex;
  flex-direction: column;
  gap: var(--jwe-space-xs);
  align-items: flex-start;
}
.jwe-post__meta--sep-newline > *::after {
  display: none;
}

/* Category style: label (muted, no link style) */
.jwe-post__category--label {
  color: var(--jwe-text-muted, #666);
  text-decoration: none;
  font-weight: 400;
}
.jwe-post__category--label:hover {
  color: var(--jwe-text, #1a1a2e);
  text-decoration: none;
}

/* Category style: badge */
.jwe-post__category--badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--jwe-accent, #3b82f6);
  color: var(--jwe-button-text, #fff);  
  border-radius: var(--jwe-radius-xs, 3px);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.jwe-post__category--badge:hover {
  background: var(--jwe-accent-hover, #2563eb);
  text-decoration: none;
}

/* Category style: caps (uppercase, spaced) */
.jwe-post__category--caps {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--jwe-accent, #3b82f6);
}

/* Article type label */
.jwe-post__type {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--jwe-bg, #f1f5f9);
  color: var(--jwe-text-muted, #666);
  border-radius: var(--jwe-radius-xs, 3px);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Reading time in meta */
.jwe-post__reading-time {
  font-size: 0.85rem;
  color: var(--jwe-text-muted, #666);
}
.jwe-post__reading-time::before {
  content: '⏱';
  margin-right: 0.25rem;
}

/* Rating in meta */
.jwe-post__rating {
  font-size: 0.85rem;
  color: var(--jwe-text-muted, #666);
}
.jwe-post__rating::before {
  content: '★';
  color: var(--jwe-warning, #f59e0b);
  margin-right: 0.2rem;
}
.jwe-post__rating small {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Comments count in meta */
.jwe-post__comments {
  font-size: 0.85rem;
  color: var(--jwe-text-muted, #666);
  text-decoration: none;
  cursor: pointer;
}
.jwe-post__comments::before {
  content: '💬';
  margin-right: 0.25rem;
}
.jwe-post__comments:hover {
  color: var(--jwe-accent, #3b82f6);
}

/* ==========================================================================
   FLOATING RATING WIDGET (v2.14, v2.17 z-index fix, v2.19 stack fix)
   ========================================================================== */
.jwe-appraisal-float {
  position: fixed;
  bottom: 2rem;
  z-index: 10001; 
  background: var(--jwe-surface, #fff);
  padding: 0.75rem 1rem;
  border: 1px solid var(--jwe-border, #e5e7eb);
  border-radius: var(--jwe-radius, 0.5rem);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 150ms ease-out ease, opacity 150ms ease-out ease;
  max-width: 280px;
  pointer-events: none; 
}
/* Position variants (anti-footprint) */
/* Bottom positions */
.jwe-appraisal-float--bottom-right {
  right: 1.5rem;
}
.jwe-appraisal-float--bottom-left {
  left: 2rem;
}
.jwe-appraisal-float--bottom-center {
  left: 50%;
  transform: translateX(-50%) translateY(150%);
}
.jwe-appraisal-float--bottom-center.jwe-appraisal-float--visible {
  transform: translateX(-50%) translateY(0);
}

.jwe-appraisal-float--top-right {
  top: 5rem; /* Below header */
  bottom: auto;
  right: 1.5rem;
  transform: translateY(-150%);
}
.jwe-appraisal-float--top-right.jwe-appraisal-float--visible {
  transform: translateY(0);
}
.jwe-appraisal-float--top-center {
  top: 5rem;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
}
.jwe-appraisal-float--top-center.jwe-appraisal-float--visible {
  transform: translateX(-50%) translateY(0);
}

.jwe-appraisal-float--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto; 
}
.jwe-appraisal-float__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--jwe-text-muted, #888);
  line-height: 1;
  padding: var(--jwe-space-xs);
}
.jwe-appraisal-float__close:hover {
  color: var(--jwe-text, #1a1a2e);
}
.jwe-appraisal-float .jwe-appraisal-prompt {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 801px) {
  /* When subscribe-floating visible, rating stays right */
  body.jwe-has-follow-float .jwe-appraisal-float--bottom-right,
  body.jwe-has-follow-float .jwe-rating-float--bottom-right,
  body.jwe-has-subscribe-float .jwe-appraisal-float--bottom-right
    right: 1.5rem; /* Keep position */
  }
}

/* Mobile layout */
@media (max-width: 800px) {
  .jwe-appraisal-float
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: 1rem;
    top: auto !important; 
    max-width: none;
    text-align: center;
    width: auto;
  }
  /* Reset ALL position variants on mobile - always centered at bottom */
  .jwe-appraisal-float--bottom-right
  .jwe-appraisal-float--bottom-left
  .jwe-appraisal-float--bottom-center
  .jwe-appraisal-float--top-right
  .jwe-appraisal-float--top-center
    left: 0.75rem !important;
    right: 0.75rem !important;
    top: auto !important;
    bottom: 1rem;
    transform: translateY(150%);
  }
  .jwe-appraisal-float--bottom-center.jwe-appraisal-float--visible
  .jwe-appraisal-float--bottom-right.jwe-appraisal-float--visible
  .jwe-appraisal-float--bottom-left.jwe-appraisal-float--visible
  .jwe-appraisal-float--top-right.jwe-appraisal-float--visible
  .jwe-appraisal-float--top-center.jwe-appraisal-float--visible
    transform: translateY(0);
  }
  
  .jwe-appraisal-float .jwe-appraisal-widget
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .jwe-appraisal-float .jwe-appraisal-thumbs
  .jwe-appraisal-float .jwe-appraisal-stars
  .jwe-appraisal-float .jwe-appraisal-numbers
    justify-content: center;
  }
  
  
}

/* ==========================================================================
   RATING POSITION VARIANTS (v2.13)
   ========================================================================== */
/* Rating after content, before author */
.jwe-appraisal-position--after-content {
  margin: var(--jwe-space-xl) 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--jwe-border, #e5e7eb);
}
/* Rating after author */
.jwe-appraisal-position--after-author {
  margin-top: 1rem;
}
/* Rating inline with interactions */

.jwe-post-interactions {
  margin: 2rem auto 0;
  padding: 1.5rem var(--jwe-hero-padding-h, 1.5rem) 0;
  max-width: var(--jwe-content-width, var(--jwe-max-width, 1200px));
  border-top: 1px solid var(--jwe-border, #e5e7eb);
}

/* ==========================================================================
   ARTICLE CONTENT TABLES (v2.14)
   ========================================================================== */
.jwe-catalog-wrap,
.jwe-catalog-wrapper {
  overflow-x: auto;
  max-width: 100%;
  margin: var(--jwe-space-lg) 0;
  -webkit-overflow-scrolling: touch;
}
.jwe-catalog {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: var(--jwe-text, #1f2937);
}
.jwe-catalog caption {
  font-size: 0.85rem;
  color: var(--jwe-text-muted, #666);
  margin-bottom: 0.75rem;
  text-align: left;
  font-style: italic;
}
.jwe-catalog th,
.jwe-catalog td {
  padding: var(--jwe-space-sm, 0.5rem) var(--jwe-space-md, 1rem);
  text-align: left;
  border-bottom: 1px solid var(--jwe-border, #e5e7eb);
}

@media (max-width: 800px) {
  .jwe-catalog th,
  .jwe-catalog td {
    padding: var(--jwe-space-xs, 0.25rem) var(--jwe-space-sm, 0.5rem);
  }
}
.jwe-catalog th {
  font-weight: 600;
  background: var(--jwe-bg, #f8f9fa);
  white-space: nowrap;
}
.jwe-catalog--striped tbody tr:nth-child(even) {
  background: var(--jwe-bg-alt, #f8fafc);
}
.jwe-catalog--bordered {
  border: 1px solid var(--jwe-border, #e5e7eb);
}
.jwe-catalog--bordered th,
.jwe-catalog--bordered td {
  border: 1px solid var(--jwe-border, #e5e7eb);
}
.jwe-catalog--compact th,
.jwe-catalog--compact td {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}
@media (max-width: 540px) {
  .jwe-catalog {
    font-size: 0.8rem;
  }
  .jwe-catalog th,
  .jwe-catalog td {
    padding: var(--jwe-space-sm);
  }
}

/* Hero meta */
.jwe-post__meta--hero {
  color: rgba(255,255,255,0.85);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.jwe-post__meta--hero a {
  color: rgba(255,255,255,0.9);
}
.jwe-post__meta--hero time {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.jwe-post__meta--hero .jwe-post__category--badge {
  background: rgba(255,255,255,0.15);
  color: var(--jwe-button-text, #fff);
  border: 1px solid rgba(255,255,255,0.3);
}
.jwe-post__meta--hero .jwe-post__category--badge:hover {
  background: rgba(255,255,255,0.25);
}
.jwe-post__meta--hero .jwe-post__category--label {
  color: rgba(255,255,255,0.85);
}
.jwe-post__meta--hero .jwe-post__category--caps {
  color: rgba(255,255,255,0.9);
}

/* Article grid */
.jwe-post-grid {
  display: grid;
  gap: var(--jwe-space-lg);
}
/* Cards grid: auto-fill prevents stretching, justify-content centers */
.jwe-post-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  justify-content: center;
}
/* Compact grid: similar but smaller cards */
.jwe-post-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  justify-content: center;
}
.jwe-post-grid--list {
  grid-template-columns: 1fr;
  max-width: var(--jwe-content-width, 720px);
  margin: 0 auto;
}
@media (max-width: 540px) {
  .jwe-post-grid,
  .jwe-post-grid--cards,
  .jwe-post-grid--compact {
    gap: var(--jwe-space-md); 
  }
  .jwe-post-grid--cards,
  .jwe-post-grid--compact {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* Article item */
.jwe-post-item {
  background: var(--jwe-surface, #fff);
  border-radius: var(--jwe-radius, 0.5rem);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
}
.jwe-post-item--card {
  display: flex;
  flex-direction: column;
}
.jwe-post-item--compact {
  display: flex;
  flex-direction: column;
}
.jwe-post-item__image {
  display: block;
  overflow: hidden;
}
.jwe-post-item--card .jwe-post-item__image {
  aspect-ratio: 3/2;
}
.jwe-post-item__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.jwe-post-item--card .jwe-post-item__image img {
  height: 225px;
}

.jwe-post-item--compact .jwe-post-item__image img {
  height: 140px;
}

.jwe-post-item__content {
  padding: var(--jwe-space-md);
}
.jwe-post-item--compact .jwe-post-item__content {
  padding: var(--jwe-space-sm);
}
.jwe-post-item__category {
  font-size: 0.75rem;
  color: var(--jwe-accent);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}
.jwe-post-item__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}
.jwe-post-item--compact .jwe-post-item__title {
  font-size: 0.95rem;
}
.jwe-post-item__title a {
  text-decoration: none;
  color: inherit;
}
.jwe-post-item__title a:hover {
  color: var(--jwe-accent);
}
.jwe-post-item__excerpt {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--jwe-text-muted);
  line-height: 1.4;
}

/* List style */
.jwe-post-item--list {
  display: flex;
  gap: var(--jwe-space-md);
  padding: 1rem 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid var(--jwe-border, #e5e7eb);
  border-radius: 0;
}
.jwe-post-item--list .jwe-post-item__image {
  flex-shrink: 0;
}
.jwe-post-item--list .jwe-post-item__image img {
  width: 100px;
  height: 70px;
  border-radius: var(--jwe-radius-sm, 4px);
}
.jwe-post-item--list .jwe-post-item__content {
  padding: 0;
}

.jwe-post-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--jwe-text-muted, #666);
}
.jwe-post-item__date {
  display: inline-flex;
  align-items: center;
}
.jwe-post-item__reading-time {
  display: inline-flex;
  align-items: center;
}
.jwe-post-item__reading-time::before {
  content: '⏱';
  margin-right: 0.25rem;
  font-size: 0.9em;
}
.jwe-post-item__rating {
  display: inline-flex;
  align-items: center;
  color: var(--jwe-warning, #f59e0b);
  font-weight: 500;
}
.jwe-post-item__author {
  display: inline-flex;
  align-items: center;
}
.jwe-post-item__author::before {
  content: 'By';
  margin-right: 0.25rem;
  font-weight: 400;
}
/* Compact/list: inline date */
.jwe-post-item--compact .jwe-post-item__date,
.jwe-post-item--list .jwe-post-item__date {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--jwe-text-muted, #888);
}

/* Bottom sections */
.jwe-contributor-articles-section {
  padding: 3rem 0;
}
.jwe-category-top-section {
  padding: 3rem 0;
  background: var(--jwe-surface, #fff);
}
.jwe-section-title {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
/* Remove margin-top when inside padded section */
.jwe-section-pad .jwe-section-title,
.jwe-related-section .jwe-section-title {
  margin-top: 0;
}

@media (max-width: 800px) {
  h2, .jwe-section-title {
    margin-top: var(--jwe-space-lg, 1.5rem);
  }
  /* First h2 in section doesn't need extra top margin */
  .jwe-stratum > h2:first-child,
  .jwe-section-pad h2:first-child {
    margin-top: var(--jwe-space-md, 1rem);
  }
}

.jwe-navigator-box--border-left {
  border-left: 4.5px solid var(--jwe-primary);
  border-radius: 0;
}
.jwe-navigator-box--border-left li::before {
  content: '•';
}

/* === CONTACT FORM === */
.jwe-contact-form {
  max-width: var(--jwe-inner-width);
  margin: 2rem auto;
}

.jwe-form-field {
  margin-bottom: 1.25rem;
  min-width: 200px;
}
.jwe-input-row {
  display: flex;
  gap: var(--jwe-space-md, 1rem);
  flex-wrap: wrap;
}
@media (max-width: 540px) {
  .jwe-input-row {
    flex-direction: column;
  }
}
.jwe-input-row .jwe-form-field {
  flex: 1;
}

.jwe-field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--jwe-text);
  font-size: 0.95rem;
}

.jwe-text-input,
.jwe-field-area,
.jwe-form-dropdown {
  width: 100%;
  padding: var(--jwe-input-padding);
  border: 1px solid var(--jwe-border, #e5e7eb);
  border-radius: var(--jwe-radius, 0.375rem);
  background: var(--jwe-surface, #fff);
  color: var(--jwe-text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.jwe-text-input:focus,
.jwe-field-area:focus,
.jwe-form-dropdown:focus {
  outline: 2px solid var(--jwe-primary, #2563eb);
  outline-offset: -2px;
  border-color: var(--jwe-primary, #2563eb);
}

.jwe-field-area {
  min-height: 150px;
  resize: vertical;
}

.jwe-form-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--jwe-primary, #2563eb);
  color: var(--jwe-text-inv, #fff);
  border: none;
  border-radius: var(--jwe-radius, 0.375rem);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease-out, filter 150ms ease-out;
}

.jwe-form-send:hover {
  filter: brightness(1.1);
}

.jwe-form-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 540px) {
  .jwe-text-input,
  .jwe-form-dropdown {
    min-height: 44px;
  }
  .jwe-contact-form {
    padding-inline: 1rem;
  }
}

/* === CONTACT FORM VARIANTS === */

/* Standard: all fields visible */
.jwe-contact-form--standard {
  /* Default - all fields shown */
}

/* Simple: only email + message */
.jwe-contact-form--simple .jwe-form-field--name,
.jwe-contact-form--simple .jwe-form-field--subject,
.jwe-contact-form--simple .jwe-form-field--department {
  display: none;
}

/* Subject: name + email + subject + message */
.jwe-contact-form--subject .jwe-form-field--department {
  display: none;
}

/* Department: name + email + department dropdown + message */
.jwe-contact-form--department .jwe-form-field--subject {
  display: none;
}

.jwe-contact-form-wrapper {
  max-width: var(--jwe-content-width, 800px);
  margin: 0 auto;
}

.jwe-form-field--message {
  grid-column: 1 / -1;
}

.jwe-form-warn {
  padding: 0.75rem 1rem;
  background: var(--jwe-bg-alt, #fef3cd);
  border-radius: var(--jwe-radius-sm, 0.25rem);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* === COMMENT FORM === */
.jwe-feedback-section {
  margin-top: 3rem;
  padding: 2rem var(--jwe-hero-padding-h, 1.5rem) 0;
  border-top: 1px solid var(--jwe-border, #e5e7eb);
  max-width: var(--jwe-content-width, var(--jwe-max-width, 1200px));
  margin-left: auto;
  margin-right: auto;
}

.jwe-post-interactions .jwe-feedback-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  padding-left: 0;
  padding-right: 0;
}

.jwe-feedback-section-title,
.jwe-feedback-section__title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.jwe-reply-form__title,
.jwe-contact-form-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.jwe-input-count {
  font-size: 0.9rem;
  color: var(--jwe-text-muted, #6b7280);
  margin-bottom: var(--jwe-space-md, 1rem);
}
.jwe-inputs-list,
.jwe-input-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jwe-reply-form-wrapper {
  max-width: var(--jwe-content-width, 800px);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--jwe-border, #e5e7eb);
}

.jwe-reply-form {
  margin-bottom: 2rem;
  padding: var(--jwe-space-lg);
  background: var(--jwe-bg, #f8fafc);
  border-radius: var(--jwe-radius, 0.5rem);
}

/* === COMMENT FORM VARIANTS === */

/* Full: name + email + comment (default) */
.jwe-reply-form--full {
  /* Default - all fields shown */
}

/* Simple: name + comment (no email) */
.jwe-reply-form--simple .jwe-form-field--email {
  display: none;
}

/* Minimal: just comment field */
.jwe-reply-form--minimal .jwe-form-field--name,
.jwe-reply-form--minimal .jwe-form-field--email {
  display: none;
}

/* Inline layout for simple/minimal */
.jwe-reply-form--inline {
  display: flex;
  gap: var(--jwe-space-md);
  flex-wrap: wrap;
}
.jwe-reply-form--inline .jwe-form-field {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}
.jwe-reply-form--inline .jwe-form-field--comment {
  flex: 100%;
}
@media (max-width: 540px) {
  .jwe-reply-form--inline {
    flex-direction: column;
  }
  .jwe-reply-form--inline .jwe-form-field {
    min-width: 0;
  }
}

/* Base comment styles (v1.26 - proper BEM classes) */
.jwe-input {
  position: relative;
  background: var(--jwe-surface, #fff);
  padding: var(--jwe-space-lg);
  padding-right: 2.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--jwe-border, #e5e7eb);
  border-radius: var(--jwe-radius, 0.5rem);
}

.jwe-input__header {
  display: flex;
  align-items: center;
  gap: var(--jwe-space-sm);
  margin-bottom: 0.5rem;
}

.jwe-input__author {
  font-weight: 600;
  color: var(--jwe-text);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.jwe-input__date,
.jwe-input__date-sub,
.jwe-input__date-foot,
.jwe-input__date-inline {
  font-size: 0.85rem;
  color: var(--jwe-text-muted, #64748b);
}
.jwe-input__date-sub {
  display: block;
  margin-bottom: 5px;
}
.jwe-input__date-foot {
  display: block;
  margin-top: 8px;
}
.jwe-input__date-inline {
  margin-left: 0.5rem;
}

.jwe-input__subtitle {
  font-size: 0.8rem;
  color: var(--jwe-text-muted);
  margin-top: 0.15rem;
}

.jwe-input__footer {
  background: transparent;
  color: inherit;
  padding: 0;
  margin-top: 0.5rem;
}

.jwe-input__flag {
  margin-right: 0.25rem;
}

.jwe-input__content {
  line-height: 1.6;
  color: var(--jwe-text);
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Comment display: flat (simple separator) */
.jwe-feedback-section--flat .jwe-input {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.25rem 2.5rem 1.25rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--jwe-border, #e5e7eb);
}

.jwe-feedback-section--flat .jwe-input:last-child {
  border-bottom: none;
}

/* Comment display: cards */
.jwe-feedback-section--cards .jwe-input,
.jwe-input--card {
  background: var(--jwe-surface, #fff);
  box-shadow: var(--jwe-shadow, 0 1px 3px rgba(0,0,0,0.08));
}

/* Comment display: thread (indented replies) */
.jwe-feedback-section--thread .jwe-input {
  margin-left: 0;
}
.jwe-feedback-section--thread .jwe-input[data-depth="1"] {
  margin-left: 1.5rem;
  border-left: 2px solid var(--jwe-border, #e5e7eb);
}
.jwe-feedback-section--thread .jwe-input[data-depth="2"] {
  margin-left: 3rem;
  border-left: 2px solid var(--jwe-border, #e5e7eb);
}

/* Legacy class support (old hyphen style) */
.jwe-input-author { font-weight: 600; word-break: break-word; overflow-wrap: break-word; max-width: 100%; }
.jwe-input-date { font-size: 0.85rem; color: var(--jwe-text-muted, #64748b); }
.jwe-input-text { margin-top: 0.5rem; line-height: 1.6; word-break: break-word; overflow-wrap: break-word; }

.jwe-inputs-empty {
  text-align: center;
  padding: var(--jwe-space-xl);
  color: var(--jwe-text-muted, #64748b);
  font-style: italic;
}

/* ==========================================================================
   PENDING COMMENT (v2.25) - Shown to author after submission
   New design: close button in corner, badge inline with author
   ========================================================================== */
.jwe-input--pending {
  background: var(--jwe-bg-warning, #fffbeb);
  border: 2px dashed var(--jwe-border-warning, #fbbf24);
  border-radius: var(--jwe-radius, 0.5rem);
  padding: 1.25rem 2.5rem 1.25rem 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Close button in top-right corner */
.jwe-input--pending .jwe-input__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--jwe-text-muted, #64748b);
  background: transparent;
  border: 1px solid var(--jwe-border, #e5e7eb);
  border-radius: var(--jwe-radius-sm, 4px);
  cursor: pointer;
  transition: all 0.15s ease;
}
.jwe-input--pending .jwe-input__close:hover {
  color: var(--jwe-error, #dc2626);
  border-color: var(--jwe-error, #dc2626);
  background: var(--jwe-error-bg, #fef2f2);
}

/* Pending comment badge (header/author inherit from base rules above) */
.jwe-input--pending .jwe-input__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--jwe-warning-dark, #92400e);
  background: var(--jwe-warning-light, #fde68a);
  padding: 0.2rem 0.5rem;
  border-radius: var(--jwe-radius-xs, 3px);
}

/* Content */
.jwe-input--pending .jwe-input__content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--jwe-text);
}

/* Legacy class support */
.jwe-input--pending__status { display: none; }
.jwe-input--pending__delete { display: none; }

/* Admin delete button (v1.26) */
.jwe-input__admin-delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--jwe-error, #dc2626);
  background: var(--jwe-error-bg, #fef2f2);
  border: 1px solid var(--jwe-error, #dc2626);
  border-radius: var(--jwe-radius-xs, 3px);
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.15s ease;
}
.jwe-input__admin-delete:hover {
  opacity: 1;
  background: var(--jwe-error, #dc2626);
  color: white;
}

.jwe-inputs-loadmore {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
}
.jwe-inputs-loadmore button {
  display: inline-flex;
  align-items: center;
  gap: var(--jwe-space-sm);
  padding: var(--jwe-space-sm) var(--jwe-space-lg);
  background: var(--jwe-bg-alt, #f8fafc);
  border: 1px solid var(--jwe-border, #e5e7eb);
  border-radius: var(--jwe-radius, 0.375rem);
  color: var(--jwe-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--jwe-transition, 0.2s) ease;
}
.jwe-inputs-loadmore button:hover {
  background: var(--jwe-surface, #fff);
  border-color: var(--jwe-primary, #2563eb);
  color: var(--jwe-primary, #2563eb);
}
.jwe-inputs-loadmore button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Load more button variants */
.jwe-inputs-loadmore--outline button {
  background: transparent;
}
.jwe-inputs-loadmore--filled button {
  background: var(--jwe-primary, #2563eb);
  border-color: var(--jwe-primary, #2563eb);
  color: white;
}
.jwe-inputs-loadmore--filled button:hover {
  background: var(--jwe-primary-dark, #1d4ed8);
}
.jwe-inputs-loadmore--minimal button {
  background: transparent;
  border: none;
  text-decoration: underline;
  padding: var(--jwe-space-sm) var(--jwe-space-md);
}
.jwe-inputs-loadmore--text button {
  background: transparent;
  border: none;
  color: var(--jwe-primary, #2563eb);
}

/* Comment pagination (noindex pages) */
.jwe-input-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--jwe-space-md);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--jwe-border, #e5e7eb);
}

.jwe-input-pagination a {
  display: inline-flex;
  align-items: center;
  padding: var(--jwe-space-sm) var(--jwe-space-md);
  background: var(--jwe-bg, #f8fafc);
  border: 1px solid var(--jwe-border, #e5e7eb);
  border-radius: var(--jwe-radius, 0.375rem);
  color: var(--jwe-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 150ms ease-out, border-color 150ms ease-out;
}

.jwe-input-pagination a:hover {
  background: var(--jwe-surface, #fff);
  border-color: var(--jwe-primary, #2563eb);
  color: var(--jwe-primary, #2563eb);
}

.jwe-input-pagination-info {
  font-size: 0.9rem;
  color: var(--jwe-text-muted, #64748b);
}

.jwe-form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.jwe-form-actions .cf-turnstile {
  flex: 0 0 auto;
}
.jwe-form-actions .jwe-form-send {
  margin: 0;
}
/* Layout A: Turnstile left, button right */
.jwe-form-actions--ts-left {
  justify-content: space-between;
}
.jwe-form-actions--ts-left .jwe-form-send {
  margin-left: auto;
}
/* Layout B: Button left, Turnstile right */
.jwe-form-actions--ts-right {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
/* Layout C: Stacked — Turnstile on top, button below centered */
.jwe-form-actions--ts-stacked {
  flex-direction: column;
  align-items: center;
}
/* No Turnstile — button stays right */
.jwe-form-actions .jwe-form-send:first-child {
  margin-left: auto;
}

/* === RATING WIDGET === */
.jwe-appraisal,
.jwe-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--jwe-space-sm);
  font-size: 0.95rem;
}

/* Rating: stars */
.jwe-appraisal-widget--stars .jwe-appraisal-stars,
.jwe-rating-widget--stars .jwe-rating-stars {
  color: var(--jwe-accent, #f59e0b);
  letter-spacing: 2px;  
}

.jwe-appraisal-widget--stars .jwe-appraisal-stars span,
.jwe-rating-widget--stars .jwe-rating-stars span {
  cursor: pointer;
  transition: transform 0.1s;
}

.jwe-appraisal-widget--stars .jwe-appraisal-stars span:hover,
.jwe-rating-widget--stars .jwe-rating-stars span:hover {
  transform: scale(1.2);
}

/* Rating: number */
.jwe-appraisal-widget--number .jwe-appraisal-value,
.jwe-rating-widget--number .jwe-rating-value {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--jwe-primary, #2563eb);
}

/* Rating widget base */
.jwe-appraisal-widget,
.jwe-rating-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--jwe-space-sm);
  padding: 1.5rem 0;
}

.jwe-appraisal-prompt,
.jwe-rating-prompt {
  font-weight: 500;
  color: var(--jwe-text, #333);
  font-size: 1rem;
}

/* Rating numbers container (1-10 buttons) */
.jwe-appraisal-numbers,
.jwe-rating-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--jwe-space-sm);
  justify-content: center;
}

@media (max-width: 540px) {
  .jwe-appraisal-numbers,
  .jwe-rating-numbers {
    gap: var(--jwe-space-xs);
  }
  .jwe-appraisal-number,
  .jwe-rating-number {
    min-width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
    padding: 0 0.25rem;
  }
  /* Float widget on mobile - ensure it fits */
  .jwe-appraisal-float .jwe-appraisal-numbers,
  .jwe-rating-float .jwe-rating-numbers {
    justify-content: center;
  }
}

.jwe-appraisal-scale,
.jwe-rating-scale {
  display: flex;
  align-items: center;
  gap: var(--jwe-space-sm);
  flex-wrap: wrap;
}

.jwe-appraisal-scale-label,
.jwe-rating-scale-label {
  font-size: 0.8rem;
  color: var(--jwe-text-muted, #666);
  white-space: nowrap;
}

.jwe-appraisal-scale-label--low,
.jwe-rating-scale-label--low {
  text-align: right;
}

.jwe-appraisal-scale-label--high,
.jwe-rating-scale-label--high {
  text-align: left;
}

@media (max-width: 540px) {
  .jwe-appraisal-scale,
  .jwe-rating-scale {
    flex-direction: column;
    align-items: flex-start;
  }
  .jwe-appraisal-scale-label,
  .jwe-rating-scale-label {
    display: none; /* Hide labels on mobile - too cramped */
  }
}

/* Individual number button */
.jwe-appraisal-number,
.jwe-rating-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  background: var(--jwe-surface, #fff);
  border: 1px solid var(--jwe-border, #e5e7eb);
  border-radius: 0.25rem;
  color: var(--jwe-text, #333);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.jwe-appraisal-number:hover,
.jwe-rating-number:hover {
  background: var(--jwe-primary, #2563eb);
  border-color: var(--jwe-primary, #2563eb);
  color: var(--jwe-text-inv, #fff);
}

/* Voted state */
.jwe-appraisal-widget--voted,
.jwe-rating-widget--voted {
  /* Remove opacity - use better visual feedback */
}

.jwe-appraisal-widget--voted .jwe-appraisal-number,
.jwe-rating-widget--voted .jwe-rating-number {
  cursor: default;
  pointer-events: none;
}

.jwe-appraisal-widget--voted .jwe-appraisal-number:hover,
.jwe-rating-widget--voted .jwe-rating-number:hover {
  transform: none;
  background: var(--jwe-surface, #fff);
  border-color: var(--jwe-border, #e5e7eb);
  color: var(--jwe-text, #333);
}

/* ==========================================================================
   RATING BUTTON STYLE VARIANTS (v2.14 anti-footprint)
   ========================================================================== */

/* Selected state - highlighted button */
.jwe-appraisal--selected,
.jwe-rating--selected {
  background: var(--jwe-primary, #2563eb) !important;
  border-color: var(--jwe-primary, #2563eb) !important;
  color: var(--jwe-button-text, #fff);  
  box-shadow: 0 2px 8px 0 1px 3px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
}

/* Disabled state - grayed out unselected */
.jwe-appraisal--disabled:not(.jwe-appraisal--selected),
.jwe-rating--disabled:not(.jwe-rating--selected) {
  opacity: 0.5;
  background: var(--jwe-bg, #f8f9fa) !important;
}

/* Style: Rounded (border-radius: 0.5rem) */
.jwe-appraisal-widget--style-rounded .jwe-appraisal-number,
.jwe-rating-widget--style-rounded .jwe-rating-number {
  border-radius: 0.5rem;
}

/* Style: Pill (fully rounded) */
.jwe-appraisal-widget--style-pill .jwe-appraisal-number,
.jwe-rating-widget--style-pill .jwe-rating-number {
  border-radius: 9999px;
  min-width: 2.5rem;
}

/* Style: Minimal (no border, subtle bg) */
.jwe-appraisal-widget--style-minimal .jwe-appraisal-number,
.jwe-rating-widget--style-minimal .jwe-rating-number {
  border: none;
  background: var(--jwe-bg, #f1f5f9);
}
.jwe-appraisal-widget--style-minimal .jwe-appraisal-number:hover,
.jwe-rating-widget--style-minimal .jwe-rating-number:hover {
  background: var(--jwe-primary, #2563eb);
}

/* Style: Outline (transparent bg, colored border) */
.jwe-appraisal-widget--style-outline .jwe-appraisal-number,
.jwe-rating-widget--style-outline .jwe-rating-number {
  background: transparent;
  border: 2px solid var(--jwe-border, #d1d5db);
}
.jwe-appraisal-widget--style-outline .jwe-appraisal-number:hover,
.jwe-rating-widget--style-outline .jwe-rating-number:hover {
  border-color: var(--jwe-primary, #2563eb);
  background: var(--jwe-primary, #2563eb);
}

/* Style: Compact (smaller buttons) */
.jwe-appraisal-widget--style-compact .jwe-appraisal-number,
.jwe-rating-widget--style-compact .jwe-rating-number {
  min-width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8rem;
  padding: 0 0.3rem;
}

/* Rating feedback styling */
.jwe-appraisal-feedback,
.jwe-rating-feedback {
  margin-top: 0.75rem;
  padding: var(--jwe-space-sm, .5rem);
  background: var(--jwe-bg-success, #ecfdf5);
  border-radius: var(--jwe-radius, 0.375rem);
  font-size: 0.9rem;
  text-align: center;
}
.jwe-appraisal-feedback strong,
.jwe-rating-feedback strong {
  color: var(--jwe-success, #10b981);
  display: block;
  margin-bottom: 0.25rem;
}
.jwe-appraisal-feedback small,
.jwe-rating-feedback small {
  color: var(--jwe-text-muted, #666);
}

/* Stars buttons (clickable) */
.jwe-appraisal-stars,
.jwe-rating-stars {
  display: flex;
  gap: var(--jwe-space-xs);
}

.jwe-appraisal-star,
.jwe-rating-star {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--jwe-space-xs);
  font-size: 1.5rem;
  color: var(--jwe-border, #d1d5db);
  transition: color 0.1s, transform 0.1s;
}

.jwe-appraisal-star:hover,
.jwe-rating-star:hover,
.jwe-appraisal-star--active,
.jwe-rating-star--active {
  color: var(--jwe-accent, #f59e0b);
}

.jwe-appraisal-star:hover,
.jwe-rating-star:hover {
  transform: scale(1.15);
}

/* Rating feedback message — initial state before voting */
.jwe-appraisal-widget:not(.jwe-appraisal-widget--voted) .jwe-appraisal-feedback,
.jwe-rating-widget:not(.jwe-rating-widget--voted) .jwe-rating-feedback {
  font-size: 0.9rem;
  color: var(--jwe-text-muted, #64748b);
  margin-top: 0.5rem;
}

/* Rating: full (stars + number) */
.jwe-appraisal-widget--full,
.jwe-rating-widget--full {
  gap: var(--jwe-space-sm);
}

/* Rating: bar */
.jwe-appraisal-widget--bar,
.jwe-rating-widget--bar {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--jwe-space-xs);
}

.jwe-appraisal-bar,
.jwe-rating-bar {
  width: 120px;
  height: 8px;
  background: var(--jwe-border, #e5e7eb);
  border-radius: var(--jwe-radius-sm, 4px);
  overflow: hidden;
}

.jwe-appraisal-bar-fill,
.jwe-rating-bar-fill {
  height: 100%;
  background: var(--jwe-accent, #f59e0b);
  transition: width 150ms ease-out ease;
}

.jwe-appraisal-bar-container,
.jwe-rating-bar-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.jwe-appraisal-bar-value,
.jwe-rating-bar-value {
  font-size: 0.85rem;
  color: var(--jwe-text-muted);
}
.jwe-appraisal-bar-submit,
.jwe-rating-bar-submit {
  display: none;
}

.jwe-appraisal-count,
.jwe-rating-count {
  font-size: 0.85rem;
  color: var(--jwe-text-muted, #6b7280);
}
.jwe-appraisal-stats,
.jwe-rating-stats {
  display: flex;
  align-items: center;
  gap: var(--jwe-space-sm, 0.5rem);
  font-size: 0.9rem;
  color: var(--jwe-text-muted);
}
.jwe-appraisal-full,
.jwe-rating-full {
  text-align: center;
  padding: var(--jwe-space-md);
}
.jwe-appraisal-thumb,
.jwe-rating-thumb {
  display: inline-flex;
  align-items: center;
  gap: var(--jwe-space-xs, 0.25rem);
  cursor: pointer;
}

/* Rating: thumbs */
.jwe-appraisal-widget--thumbs,
.jwe-rating-widget--thumbs {
  gap: var(--jwe-space-md);
}

.jwe-appraisal-thumbs,
.jwe-rating-thumbs {
  display: flex;
  gap: var(--jwe-space-sm);
  justify-content: center;
  align-items: center;
}

.jwe-appraisal-widget--thumbs button,
.jwe-rating-widget--thumbs button {
  display: inline-flex;
  align-items: center;
  gap: var(--jwe-space-sm);
  padding: var(--jwe-space-sm) var(--jwe-space-md);
  background: var(--jwe-bg, #f8fafc);
  border: 1px solid var(--jwe-border, #e5e7eb);
  border-radius: 2rem;
  cursor: pointer;
  transition: background 150ms ease-out;
}

.jwe-appraisal-widget--thumbs button:hover,
.jwe-rating-widget--thumbs button:hover {
  background: var(--jwe-surface, #fff);
}

.jwe-appraisal-widget--thumbs .jwe-appraisal-thumb--up:hover,
.jwe-rating-widget--thumbs .jwe-rating-thumb--up:hover {
  border-color: var(--jwe-success, #10b981);
}

.jwe-appraisal-widget--thumbs .jwe-appraisal-thumb--down:hover,
.jwe-rating-widget--thumbs .jwe-rating-thumb--down:hover {
  border-color: var(--jwe-error, #ef4444);
}

/* Rating: user voted state */
.jwe-appraisal-voted,
.jwe-rating-voted {
  color: var(--jwe-text-muted, #64748b);
  font-size: 0.9rem;
}

.jwe-appraisal-voted strong,
.jwe-rating-voted strong {
  color: var(--jwe-accent, #f59e0b);
}

.jwe-appraisal-widget--voted .jwe-appraisal--selected,
.jwe-rating-widget--voted .jwe-rating--selected {
  color: var(--jwe-accent, #f59e0b) !important;
  border-color: var(--jwe-accent, #f59e0b) !important;
  background: rgba(var(--jwe-accent-rgb, 245,158,11), 0.1) !important;
  transform: scale(1.05);
}

.jwe-appraisal--unselected,
.jwe-rating--unselected {
  opacity: 0.4;
  cursor: default;
}

.jwe-appraisal--filled svg,
.jwe-rating--filled svg {
  fill: var(--jwe-accent, #f59e0b);
  stroke: var(--jwe-accent, #f59e0b);
}

.jwe-appraisal-prompt--voted,
.jwe-rating-prompt--voted {
  color: var(--jwe-success, #10b981);
  font-weight: 500;
}

/* Thumbs specific voted states */
.jwe-appraisal-thumb--up.jwe-appraisal--selected,
.jwe-rating-thumb--up.jwe-rating--selected {
  border-color: var(--jwe-success, #10b981) !important;
  background: rgba(var(--jwe-success-rgb, 16,185,129), 0.1) !important;
  color: var(--jwe-success, #10b981) !important;
}

.jwe-appraisal-thumb--down.jwe-appraisal--selected,
.jwe-rating-thumb--down.jwe-rating--selected {
  border-color: var(--jwe-error, #ef4444) !important;
  background: rgba(var(--jwe-error-rgb, 239,68,68), 0.1) !important;
  color: var(--jwe-error, #ef4444) !important;
}

/* Disabled buttons after voting */
.jwe-appraisal-widget--voted button:disabled,
.jwe-rating-widget--voted button:disabled {
  cursor: default;
}

.jwe-feedback-section,.jwe-contact-form-wrapper{max-width:510px;margin-left:auto;margin-right:auto}

.jwe-section-bg--lines{background-image:repeating-linear-gradient(45deg,transparent,transparent 10px,var(--jwe-border,#e5e7eb) 10px,var(--jwe-border,#e5e7eb) 11px)!important}
@media print{.jwe-section-bg--lines{background:none!important;background-image:none!important}}

/* === FEEDBACK MODAL (centered, auto-sized) === */
.jwe-feedback {
  position: fixed;
  z-index: 10000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--jwe-space-sm, .5rem);
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.5;
  text-align: center;
  width: auto;
  min-width: 180px;
  max-width: min(90vw, 520px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease-out, transform 150ms ease-out, visibility 150ms ease-out;
}

.jwe-feedback--visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Style variants (hash-based cosmetic diversity) */
.jwe-feedback--toast {
  border-radius: 0.125rem;
}

.jwe-feedback--pill {
  border-radius: 999px;
}

.jwe-feedback--modal {
  border-radius: 1rem;
}

.jwe-feedback--compact {
  border-radius: 0.25rem;
}

/* Color variants — use WCAG-paired text vars, not hardcoded white */
.jwe-feedback--success {
  background: var(--jwe-success, #10b981);
  color: var(--jwe-success-text, #fff);
}

.jwe-feedback--primary {
  background: var(--jwe-primary, #2563eb);
  color: var(--jwe-primary-text, #fff);
}

.jwe-feedback--accent {
  background: var(--jwe-accent, #f59e0b);
  color: var(--jwe-accent-text, #fff);
}

.jwe-feedback--neutral {
  background: var(--jwe-surface, #fff);
  color: var(--jwe-text, #333);
  border: 1px solid var(--jwe-border, #e5e7eb);
}

/* Error state */
.jwe-feedback--error {
  background: var(--jwe-error, #ef4444);
  color: var(--jwe-error-text, #fff);
}

/* Close button (bottom center, hash-based v3.1) */
.jwe-feedback-close {
  display: block;
  margin: 0 auto;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 0.25rem;
  color: inherit;
  opacity: 0.85;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.2rem 0.6rem;
}

.jwe-feedback-close:hover {
  opacity: 1;
  filter: brightness(1.2);
}

/* Animation variants */
.jwe-feedback--anim-fade {
  transition: opacity 150ms ease-out;
}

.jwe-feedback--anim-slide {
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}

.jwe-feedback--anim-scale {
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}
.jwe-feedback--anim-scale:not(.jwe-feedback--visible) {
  transform: translate(-50%, -50%) scale(0.8);
}

.jwe-feedback--anim-none {
  transition: none;
}

/* Mobile */
@media (max-width: 540px) {
  .jwe-feedback {
    min-width: 0;
    max-width: calc(100vw - 2rem);
    font-size: 0.9rem;
  }
}

@media print {
  .jwe-masthead,
  .jwe-masthead-search,
  .jwe-nav-trigger,
  .jwe-scroll-top,
  .jwe-gdpr-banner,
  .jwe-appraisal-float,
  .jwe-share-buttons,
  .jwe-comment-form,
  .jwe-subscribe-box {
    display: none !important;
  }

  .jwe-cell {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}

/* === 404 PAGE === */

.jwe-404-image {
  display: block;
  max-width: var(--jwe-figure-portrait);
  width: 100%;
  height: auto;
  margin: 0 auto var(--jwe-space-lg, 2rem) auto;
  mix-blend-mode: multiply;
}

.jwe-404-subheading {
  font-size: 1.5rem;
  color: var(--jwe-text-muted, #6b7280);
  margin-bottom: 0.5rem;
}

.jwe-404-btn {
  display: inline-block;
  margin-top: 1rem;
}

.jwe-404-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.jwe-404-message {
  color: var(--jwe-text-muted, #6b7280);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.jwe-404-btn-secondary {
  display: inline-block;
  margin-top: 1rem;
  margin-left: 0.5rem;
}

.jwe-403-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.jwe-403-message {
  color: var(--jwe-text-muted, #6b7280);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.jwe-403-btn {
  display: inline-block;
  margin-top: 1rem;
}

.jwe-404-categories {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--jwe-border, #e5e7eb);
}

.jwe-404-browse-text {
  color: var(--jwe-text-muted, #6b7280);
  margin-bottom: 1rem;
}

.jwe-404-category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--jwe-space-sm);
}

.jwe-404-category-link {
  display: inline-block;
  padding: var(--jwe-space-sm) var(--jwe-space-md);
  background: var(--jwe-bg-alt, #f3f4f6);
  color: var(--jwe-text);
  border-radius: var(--jwe-radius, 0.5rem);
  text-decoration: none;
  transition: background 150ms ease-out;
}

.jwe-404-category-link:hover {
  background: var(--jwe-primary, #3b82f6);
  color: var(--jwe-text-inv, #fff);
}

.jwe-control-prime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--jwe-accent);
  color: var(--jwe-button-text, #fff);
  border-radius: var(--jwe-radius, 0.5rem);
  text-decoration: none;
  font-weight: 600;
}

.jwe-error-page {
  padding: 4rem 0;
}

.jwe-error-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  line-height: 1;
  opacity: 0.12;
  color: var(--jwe-primary);
  margin-bottom: -1.5rem;
  user-select: none;
}

.jwe-error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.jwe-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--jwe-text-muted, #6b7280);
  border-radius: var(--jwe-radius, 0.5rem);
}

.jwe-trust-badge--counter {
  background: var(--jwe-surface, #f5f5f5);
}

.jwe-trust-badge--counter strong {
  color: var(--jwe-primary);
  font-weight: 700;
}

.jwe-trust-badge--year {
  border: 1px solid var(--jwe-border, #e5e7eb);
}

.jwe-trust-badge--year .jwe-trust-badge__year {
  font-weight: 700;
  color: var(--jwe-text);
}

.jwe-trust-badge--quality {
  background: color-mix(in srgb, var(--jwe-primary) 5%, transparent);
}

.jwe-trust-badge--sources {
  flex-direction: column;
  text-align: center;
  gap: 0.25rem;
}

.jwe-trust-badge__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jwe-trust-badge__text {
  font-size: 0.85rem;
  color: var(--jwe-text-muted, #6b7280);
  line-height: 1.4;
}

.jwe-trust-badge-wrap {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
}

.jwe-module-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--jwe-space-lg, 1.5rem);
}

/* === PAGINATION BASE (CANONICAL) === */
.jwe-navigate {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 3rem 0;
  font-size: 0.95rem;
}

.jwe-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.6rem;
  text-decoration: none;
  color: var(--jwe-text);
  border: 1px solid var(--jwe-border-subtle);
  background: transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border .15s ease;
}

.jwe-page:hover {
  background: var(--jwe-surface-alt);
}

.jwe-page.is-active {
  font-weight: 600;
  pointer-events: none;
}

.jwe-page.is-ellipsis {
  border: none;
  cursor: default;
  background: none;
}

/* Mobile base: smaller gaps */
@media (max-width: 540px) {
  .jwe-navigate
    gap: var(--jwe-space-xs);
  }
}

/* Overlay behind mobile menu */
.jwe-rail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1999;
}
.jwe-rail-overlay.jwe-active {
  display: block;
}

@keyframes jwe-slide-l { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes jwe-slide-r { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes jwe-fade-in { from { opacity: 0; } to { opacity: 1; } }
body.jwe-menu-slide-left nav[data-mode="open"],
body.jwe-menu-slide-left .jwe-rail[data-mode="open"] {
  animation: jwe-slide-l 0.3s ease-out;
}
body.jwe-menu-slide-right nav[data-mode="open"],
body.jwe-menu-slide-right .jwe-rail[data-mode="open"] {
  animation: jwe-slide-r 0.3s ease-out;
}
body.jwe-menu-fade nav[data-mode="open"],
body.jwe-menu-fade .jwe-rail[data-mode="open"] {
  animation: jwe-fade-in 0.25s ease-out;
}

/* Mobile menu OPEN state - ONLY ON MOBILE! */
@media (max-width: 1000px) {
  nav[data-mode="open"],
  .jwe-rail[data-mode="open"] {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--jwe-surface, #fff) !important; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav[data-mode="open"] ul,
  .jwe-rail[data-mode="open"] ul {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    text-align: center;
    width: 100%;
    max-width: var(--jwe-figure-portrait);
    padding: 0 1rem;
    list-style: none;
    margin: 0;
  }
  nav[data-mode="open"] li,
  .jwe-rail[data-mode="open"] li {
    width: 100%;
    border-bottom: 1px solid var(--jwe-border, #e5e7eb);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  nav[data-mode="open"] a,
  .jwe-rail[data-mode="open"] a {
    display: block;
    padding: var(--jwe-space-md);
    color: var(--jwe-text, #1a1a1a) !important; 
    text-decoration: none;
    font-size: 1.125rem;
    border-left: none;
  }
}

/* Hide toggle button when menu is open */
@media (max-width: 1000px) {
  nav[data-mode="open"] ~ .jwe-nav-trigger,
  .jwe-rail[data-mode="open"] ~ .jwe-nav-trigger {
    display: none !important;
  }
}

/* Block body scroll when menu is open - NO position:fixed! */
body.jwe-menu-open,
body.jwe-query-open {
  overflow: hidden !important;
}
html.jwe-menu-open {
  overflow: hidden !important;
}

/* DESKTOP: Force nav visible and reset mobile state */

@media (min-width: 1001px) {
  .jwe-rail,
  nav[data-mode="open"],
  .jwe-rail[data-mode="open"] {
    display: block !important;
    position: static !important;
    background: transparent !important;
    z-index: auto !important;
  }
  /* Hide burger on desktop */
  .jwe-nav-trigger {
    display: none !important;
  }
}

/* Mobile search link in menu */
.jwe-mobile-query {
  display: none;
}
nav[data-mode="open"] .jwe-mobile-query,
.jwe-rail[data-mode="open"] .jwe-mobile-query,
.jwe-rail.jwe-rail--open .jwe-mobile-query {
  display: block;
}
.jwe-mobile-query a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--jwe-space-sm);
}

/* Pagination: Rounded (academic/lab/blog) */
.jwe-navigate--rounded .jwe-page {
  border-radius: 999px;
}
.jwe-navigate--rounded .jwe-page.is-active {
  background: var(--jwe-accent);
  color: var(--jwe-accent-text, #fff);
  border-color: var(--jwe-accent);
}
/* Arrows via CSS - only if --arrows-css */
.jwe-navigate--rounded.jwe-navigate--arrows-css .jwe-page--prev::before {
  content: "\2190";
  margin-right: 0.4rem;
}
.jwe-navigate--rounded.jwe-navigate--arrows-css .jwe-page--next::after {
  content: "\2192";
  margin-left: 0.4rem;
}
/* Mobile: hide numbers, show prev/active/next */
@media (max-width: 540px) {
  .jwe-navigate--rounded .jwe-page:not(.is-active):not(.jwe-page--prev):not(.jwe-page--next)
    display: none;
  }
}

/* === DEFERRED VARIANTS: two-col === */

/* Footer Two-Col */
.jwe-footer--two-col .jwe-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.jwe-footer--two-col .jwe-keel-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}

.jwe-footer--two-col a:not(.jwe-social-link) {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

.jwe-footer--two-col a:hover {
  text-decoration: underline;
}

/* Social links in two-col footer */
.jwe-footer--two-col .jwe-social-links {
  margin-top: 1rem;
}

@media (max-width: 540px) {
  .jwe-footer--two-col .jwe-matrix {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Hover Underline — only for clickable cards */
.jwe-cell:not(.jwe-cell--compact):has(> a):hover {
  box-shadow: inset 0 -3px 0 var(--jwe-accent);
}
.jwe-cell--compact:hover h3 {
  color: var(--jwe-accent);
}

/* Cookie Consent Banner - Base (v2.9.1 with CSS Variables) */
.jwe-gdpr-banner {
  position: fixed;
  z-index: 10100; 
  background: var(--jwe-surface, #fff);
  color: var(--jwe-text, #333);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  /* CSS Variables from inline style for micro-variations */
  padding: var(--jwe-ck-pad, 1rem);
  border-radius: var(--jwe-ck-radius, 0);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--jwe-space-md);
  font-size: 0.9rem;
  line-height: 1.5;
}
.jwe-gdpr-banner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.jwe-cookie-actions {
  display: flex;
  gap: var(--jwe-space-sm);
  align-items: center;
  flex-wrap: wrap;
}
.jwe-approve-btn {
  background: var(--jwe-accent, #2563eb);
  color: var(--jwe-button-text, #fff);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--jwe-ck-radius, 0.375rem);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 150ms ease-out;
}
.jwe-approve-btn:hover {
  background: var(--jwe-accent-hover, #1d4ed8);
}
.jwe-cookie-link {
  color: var(--jwe-text-muted, #666);
  text-decoration: underline;
  font-size: 0.85rem;
}
.jwe-cookie-link:hover {
  color: var(--jwe-accent, #2563eb);
}
/* Hidden state (for JS classList.add method) */
.jwe-gdpr-banner.jwe-hidden,
.jwe-gdpr-banner[hidden] {
  display: none !important;
}

/* Prevent overlap with scroll-to-top button */
/* Uses body class as fallback for browsers without :has() support */
@media (min-width: 541px) {
  /* Class-based fallback (JS adds this class) */
  body.jwe-has-cookie-banner .jwe-scroll-top {
    bottom: calc(2rem + 80px);
  }
  
  body.jwe-has-cookie-banner .jwe-appraisal-float:not([class*="top-"]) {
    bottom: calc(2rem + 100px);
  }
  /* Modern browsers with :has() - more specific for corner banners */
  body:has(.jwe-gdpr-banner--corner-left) .jwe-scroll-top,
  body:has(.jwe-gdpr-banner--corner-right) .jwe-scroll-top {
    bottom: calc(2rem + 140px);
  }
  body:has(.jwe-gdpr-banner--corner-left) .jwe-appraisal-float:not([class*="top-"]),
  body:has(.jwe-gdpr-banner--corner-right) .jwe-appraisal-float:not([class*="top-"]),
  body:has(.jwe-gdpr-banner--corner-left) .jwe-rating-float:not([class*="top-"]),
  body:has(.jwe-gdpr-banner--corner-right) .jwe-rating-float:not([class*="top-"]) {
    bottom: calc(2rem + 160px);
  }
  body:has(.jwe-gdpr-banner--floating) .jwe-appraisal-float:not([class*="top-"]),
  body:has(.jwe-gdpr-banner--floating) .jwe-rating-float:not([class*="top-"]) {
    bottom: calc(2rem + 120px);
  }
}
/* Mobile: all banners are full-width at bottom */
@media (max-width: 540px) {
  body.jwe-has-cookie-banner .jwe-scroll-top {
    bottom: calc(1rem + 80px);
  }
  body.jwe-has-cookie-banner .jwe-appraisal-float:not([class*="top-"]) {
    bottom: calc(1rem + 130px);
  }
}

/* Cookie Banner: Corner Left */
.jwe-gdpr-banner--corner-left {
  bottom: 1rem;
  left: 1rem;
  right: auto;
  max-width: var(--jwe-ck-width, 380px);
  border: 1px solid var(--jwe-border-subtle);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
@media (max-width: 540px) {
  .jwe-gdpr-banner--corner-left {
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
    border-radius: 0.5rem 0.5rem 0 0;
    bottom: 0;
  }
}

/* === SUBSCRIBE: inline/minimal === */

/* ==========================================================================
   SUBSCRIBE/NEWSLETTER FORM (v2.19)
   ========================================================================== */

/* Base subscribe container */
.jwe-follow {
  --subscribe-bg: var(--jwe-surface, #fff);
  --subscribe-border: var(--jwe-border, #e5e7eb);
  --subscribe-accent: var(--jwe-primary, #2563eb);
}

.jwe-follow__headline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--jwe-heading, #1a1a2e);
  margin: 0 0 0.5rem 0;
}

.jwe-follow__subhead {
  font-size: 0.9rem;
  color: var(--jwe-text-muted, #666);
  margin: 0 0 1rem 0;
}

.jwe-follow__form {
  display: flex;
  gap: var(--jwe-space-sm);
  flex-wrap: wrap;
}

.jwe-follow__input {
  flex: 1;
  min-width: 200px;
  padding: var(--jwe-space-sm) var(--jwe-space-md);
  border: 1px solid var(--subscribe-border);
  border-radius: var(--jwe-radius, 0.375rem);
  font-size: 1rem;
  background: var(--subscribe-bg);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.jwe-follow__input:focus {
  outline: 2px solid var(--subscribe-accent);
  outline-offset: -2px;
  border-color: var(--subscribe-accent);
}

.jwe-follow__input::placeholder {
  color: var(--jwe-text-muted, #9ca3af);
}

.jwe-follow__btn {
  padding: var(--jwe-space-sm) var(--jwe-space-lg);
  background: var(--subscribe-accent);
  color: var(--jwe-button-text, #fff);
  border: none;
  border-radius: var(--jwe-radius, 0.375rem);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background 150ms ease-out;
  white-space: nowrap;
}

.jwe-follow__btn:hover {
  background: var(--jwe-primary-hover, #1d4ed8);
  filter: brightness(1.1);
}

.jwe-follow__captcha {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0.5rem 0;
}

.jwe-follow__privacy {
  font-size: 0.75rem;
  color: var(--jwe-text-muted, #9ca3af);
  margin-top: 0.75rem;
}

.jwe-follow__privacy a {
  color: var(--subscribe-accent);
  text-decoration: none;
}

.jwe-follow__privacy a:hover {
  text-decoration: underline;
}

/* Success/Error states */
.jwe-follow__message {
  padding: var(--jwe-space-sm) var(--jwe-space-md);
  border-radius: var(--jwe-radius, 0.375rem);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.jwe-follow__message--success {
  background: rgba(var(--jwe-success-rgb, 34,197,94), 0.1);
  color: var(--jwe-success, #10b981);
  border: 1px solid rgba(var(--jwe-success-rgb, 34,197,94), 0.2);
}

.jwe-follow__message--error {
  background: rgba(var(--jwe-error-rgb, 239,68,68), 0.1);
  color: var(--jwe-error, #dc2626);
  border: 1px solid rgba(var(--jwe-error-rgb, 239,68,68), 0.2);
}

/* Mobile */
@media (max-width: 540px) {
  .jwe-follow__form
    flex-direction: column;
  }
  .jwe-follow__input
    min-width: 100%;
  }
  .jwe-follow__btn
    width: 100%;
  }
}

/* Subscribe: Inline (in content flow) */
.jwe-follow--inline {
  margin: var(--jwe-space-xl) auto;
  padding: var(--jwe-space-lg);
  background: var(--jwe-bg-alt, #f9fafb);
  border-radius: var(--jwe-radius-lg, 0.5rem);
  border: 1px solid var(--subscribe-border);
  max-width: var(--jwe-content-width, var(--jwe-max-width, 1200px));
}

/* Subscribe style: Minimal */
.jwe-follow--minimal {
  text-align: left;
}
.jwe-follow--minimal .jwe-follow__headline {
  font-size: 1.1rem;
}

/* Dark mode disabled — sites are light-only (color-scheme: light only) */

/* === UI Variants: Alerts === */
/* Base alerts defined in CSS_CORE */

.jwe-bulletin--top-accent {
    border-left: none;
    border-top: 4px solid var(--jwe-primary);
}

.jwe-bulletin--boxed {
    border: 1px solid var(--jwe-border);
    border-left: 4px solid var(--jwe-primary); /* Keep accent */
    background: var(--jwe-surface);
    box-shadow: var(--jwe-shadow-sm);
    padding: 1.5rem;
}

.jwe-bulletin--minimal {
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    font-style: italic;
    color: var(--jwe-text-muted);
    border-left: 2px solid var(--jwe-border); /* Subtle subtle */
    padding-left: 1rem;
}

/* === UI Variants: Blockquotes === */
/* Base quote defined in CSS_CORE */

.jwe-passage--big-icon {
    padding-left: 3rem;
    border-left: none;
}
.jwe-passage--big-icon::before {
    content: "“";
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 4rem;
    line-height: 1;
    color: var(--jwe-border);
    font-family: serif;
}

.jwe-passage--boxed {
    border: 1px solid var(--jwe-border);
    padding: 2rem;
    background: var(--jwe-surface-alt);
    border-radius: var(--jwe-radius);
    border-left: none; /* Override default */
}

.jwe-passage--simple {
    border: none;
    padding: 0;
    font-family: var(--jwe-font-display);
    font-size: 1.5em;
    text-align: center;
    color: var(--jwe-primary);
}

/* === UI Variants: Tables === */
.jwe-catalog--bordered {
    border: 1px solid var(--jwe-border);
}
.jwe-catalog--bordered td, 
.jwe-catalog--bordered th { 
    border: 1px solid var(--jwe-border); 
}

.jwe-catalog--minimal { 
    border: none; 
}
.jwe-catalog--minimal td { 
    border-bottom: 1px solid var(--jwe-border); 
}
.jwe-catalog--minimal th {
    border-bottom: 2px solid var(--jwe-primary);
}

/* Sources variants moved to author_trust.py (base + variants together) */
/* Author Box styles are fully defined in CSS_PROFILE block above */
