/* =====================================================
   ehy-theme — Main Stylesheet
   Signal Lab — Component Styles (1:1 from mockup_b_signal-lab.html)
   CSS-Prefix: ehy-
   ===================================================== */

/* =====================================================
   UTILITIES
   ===================================================== */
.ehy-container {
  width: 100%;
  max-width: var(--ehy-content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .ehy-container { padding: 0 2rem; }
}

@media (min-width: 960px) {
  .ehy-container { padding: 0 2.5rem; }
}

.ehy-mono {
  font-family: var(--ehy-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.ehy-label {
  font-family: var(--ehy-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ehy-muted);
}

.ehy-accent-bar {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--ehy-accent);
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Screen reader only */
.ehy-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   PAGE DIVIDER (dev/debug use)
   ===================================================== */
.ehy-page-divider {
  background: var(--ehy-dark);
  color: var(--ehy-accent);
  padding: 0.6rem var(--ehy-space-lg);
  font-family: var(--ehy-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ehy-page-divider::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--ehy-accent);
  flex-shrink: 0;
}

.ehy-page-divider::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: rgba(250, 255, 0, 0.2);
}

/* =====================================================
   HEADER
   ===================================================== */
.ehy-header {
  background: var(--ehy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ehy-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.ehy-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.ehy-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--ehy-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ehy-logo-mark svg {
  width: 16px;
  height: 16px;
  fill: var(--ehy-dark);
}

.ehy-logo-text {
  font-family: var(--ehy-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
}

.ehy-logo-sub {
  font-family: var(--ehy-font-mono);
  font-size: 0.55rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.ehy-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .ehy-nav { display: flex; }
}

.ehy-nav a {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  transition: color 0.15s;
  letter-spacing: 0.02em;
}

.ehy-nav a:hover,
.ehy-nav a.ehy-active {
  color: #fff;
}

.ehy-nav a.ehy-active {
  border-bottom: 2px solid var(--ehy-accent);
}

.ehy-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ehy-lang-toggle {
  font-family: var(--ehy-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.3rem 0.6rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  text-decoration: none;
}

.ehy-lang-toggle span.ehy-active {
  color: var(--ehy-accent);
  font-weight: 600;
}

.ehy-lang-sep {
  color: rgba(255,255,255,0.2);
}

.ehy-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
  background: transparent;
  border: none;
}

.ehy-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.6);
}

@media (min-width: 640px) {
  .ehy-hamburger { display: none; }
}

/* Mobile nav drawer */
.ehy-nav-mobile {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ehy-nav-mobile.ehy-open {
  display: flex;
}

.ehy-nav-mobile a {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 0;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ehy-nav-mobile a.ehy-active {
  color: var(--ehy-accent);
}

@media (min-width: 640px) {
  .ehy-nav-mobile { display: none !important; }
}

/* =====================================================
   HERO
   ===================================================== */
.ehy-hero {
  padding: var(--ehy-space-xl) 0 var(--ehy-space-2xl);
  background: var(--ehy-bg);
}

.ehy-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ehy-space-xl);
}

@media (min-width: 960px) {
  .ehy-hero-inner {
    grid-template-columns: 1fr 380px;
    gap: var(--ehy-space-lg);
    align-items: start;
  }
}

.ehy-hero-left {
  position: relative;
}

.ehy-hero-kicker {
  font-family: var(--ehy-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ehy-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ehy-hero-kicker::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--ehy-accent);
}

.ehy-hero-headline {
  font-family: var(--ehy-font-display);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ehy-fg);
  margin-bottom: 0.75rem;
}

.ehy-hero-headline em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ehy-fg);
}

.ehy-hero-subtitle {
  font-family: var(--ehy-font-mono);
  font-size: 0.78rem;
  color: var(--ehy-muted);
  margin-bottom: var(--ehy-space-lg);
  letter-spacing: 0.02em;
}

.ehy-hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.ehy-btn {
  font-family: var(--ehy-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s;
}

.ehy-btn-primary {
  background: var(--ehy-accent);
  color: var(--ehy-dark);
}

.ehy-btn-primary:hover {
  background: #fff;
}

.ehy-btn-ghost {
  background: transparent;
  color: var(--ehy-fg);
  border: 1px solid var(--ehy-border);
}

.ehy-btn-ghost:hover {
  border-color: var(--ehy-fg);
}

/* =====================================================
   HERO RIGHT: LATEST LIST
   ===================================================== */
.ehy-hero-right {
  border-left: 1px solid var(--ehy-border);
  padding-left: var(--ehy-space-lg);
}

@media (max-width: 959px) {
  .ehy-hero-right {
    border-left: none;
    border-top: 1px solid var(--ehy-border);
    padding-left: 0;
    padding-top: var(--ehy-space-lg);
  }
}

.ehy-latest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ehy-space-md);
}

.ehy-latest-title {
  font-family: var(--ehy-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ehy-muted);
}

.ehy-latest-link {
  font-family: var(--ehy-font-mono);
  font-size: 0.6rem;
  color: var(--ehy-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ehy-fg);
  padding: 0.2rem 0.5rem;
}

.ehy-latest-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ehy-latest-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr 4.5rem;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ehy-border);
  cursor: pointer;
  transition: background 0.1s;
  align-items: center;
}

.ehy-latest-thumb {
  width: 4.5rem;
  height: 3rem;
  object-fit: cover;
  display: block;
  border: 1px solid var(--ehy-border);
  flex-shrink: 0;
}

.ehy-latest-thumb-empty {
  width: 4.5rem;
  height: 3rem;
  background: var(--ehy-surface);
  border: 1px solid var(--ehy-border);
  flex-shrink: 0;
}

.ehy-latest-item:last-child {
  border-bottom: none;
}

.ehy-latest-item:hover {
  background: var(--ehy-surface);
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.ehy-latest-idx {
  font-family: var(--ehy-font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ehy-border);
  line-height: 1;
  padding-top: 0.15rem;
  transition: color 0.15s;
}

.ehy-latest-item:hover .ehy-latest-idx {
  color: var(--ehy-accent);
}

.ehy-latest-content {}

.ehy-latest-cat {
  font-family: var(--ehy-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ehy-muted);
  margin-bottom: 0.2rem;
}

.ehy-latest-name {
  font-family: var(--ehy-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ehy-fg);
  margin-bottom: 0.3rem;
}

.ehy-latest-meta {
  font-family: var(--ehy-font-mono);
  font-size: 0.62rem;
  color: var(--ehy-muted);
}

/* =====================================================
   SILO GRID
   ===================================================== */
.ehy-silo {
  padding: var(--ehy-space-xl) 0;
  background: var(--ehy-surface);
}

.ehy-silo-header {
  margin-bottom: var(--ehy-space-lg);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.ehy-silo-title {
  font-family: var(--ehy-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ehy-silo-sub {
  font-family: var(--ehy-font-mono);
  font-size: 0.65rem;
  color: var(--ehy-muted);
  letter-spacing: 0.1em;
}

/* Asymmetric 5-tile grid */
.ehy-silo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--ehy-border);
}

@media (min-width: 640px) {
  .ehy-silo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .ehy-silo-grid {
    /* Asymmetric: tile 1 spans 2 cols, tiles 2-5 fill 3 cols */
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
}

.ehy-silo-tile {
  background: var(--ehy-bg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.15s;
  display: block;
}

.ehy-silo-tile:hover {
  background: var(--ehy-fg);
}

.ehy-silo-tile:hover .ehy-silo-tile-title,
.ehy-silo-tile:hover .ehy-silo-tile-desc {
  color: #fff;
}

.ehy-silo-tile:hover .ehy-silo-tile-num {
  color: var(--ehy-accent);
}

/* Tile 1: double wide */
@media (min-width: 960px) {
  .ehy-silo-tile:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    padding: 2.5rem;
  }
}

.ehy-silo-tile-num {
  font-family: var(--ehy-font-mono);
  font-size: 0.6rem;
  color: var(--ehy-border);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  transition: color 0.15s;
}

.ehy-silo-tile-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ehy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-family: var(--ehy-font-mono);
  font-size: 0.7rem;
  color: var(--ehy-muted);
}

.ehy-silo-tile:first-child .ehy-silo-tile-icon {
  width: 56px;
  height: 56px;
  border-color: var(--ehy-accent);
  background: rgba(250,255,0,0.06);
  font-size: 1rem;
}

.ehy-silo-tile-title {
  font-family: var(--ehy-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.ehy-silo-tile:first-child .ehy-silo-tile-title {
  font-size: 1.35rem;
}

.ehy-silo-tile-desc {
  font-size: 0.82rem;
  color: var(--ehy-muted);
  line-height: 1.5;
  transition: color 0.15s;
}

.ehy-silo-tile-count {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  font-family: var(--ehy-font-mono);
  font-size: 0.6rem;
  color: var(--ehy-border);
  letter-spacing: 0.1em;
}

/* Accent marker on first tile */
.ehy-silo-tile:first-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ehy-accent);
}

/* =====================================================
   FOOTER
   ===================================================== */
.ehy-footer {
  background: var(--ehy-dark);
  color: rgba(255,255,255,0.5);
  padding: var(--ehy-space-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ehy-footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ehy-space-md);
}

@media (min-width: 640px) {
  .ehy-footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

@media (min-width: 960px) {
  .ehy-footer-inner {
    grid-template-columns: 1fr auto auto;
  }
}

.ehy-footer-brand .ehy-logo-text {
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
  display: block;
}

.ehy-footer-tagline {
  font-family: var(--ehy-font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}

.ehy-footer-meta {
  font-family: var(--ehy-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  line-height: 2;
}

.ehy-footer-meta span {
  display: block;
}

.ehy-footer-meta strong {
  color: rgba(255,255,255,0.7);
  margin-right: 0.5rem;
}

.ehy-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ehy-footer-nav a {
  font-family: var(--ehy-font-mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

.ehy-footer-nav a:hover {
  color: var(--ehy-accent);
}

/* =====================================================
   ARTICLE PAGE
   ===================================================== */
.ehy-article-page {
  background: var(--ehy-bg);
  padding: var(--ehy-space-xl) 0 var(--ehy-space-2xl);
}

/* --- BREADCRUMBS --- */
.ehy-breadcrumb {
  font-family: var(--ehy-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--ehy-muted);
  margin-bottom: var(--ehy-space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.ehy-breadcrumb a {
  color: var(--ehy-muted);
}

.ehy-breadcrumb a:hover {
  color: var(--ehy-fg);
}

.ehy-breadcrumb-sep {
  color: var(--ehy-border);
}

.ehy-breadcrumb-current {
  color: var(--ehy-fg);
}

/* --- ARTICLE LAYOUT --- */
.ehy-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ehy-space-2xl);
}

@media (min-width: 960px) {
  .ehy-article-layout {
    grid-template-columns: 1fr 280px;
  }
}

/* --- ARTICLE HEADER --- */
.ehy-article-header {
  margin-bottom: var(--ehy-space-lg);
}

.ehy-article-category-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ehy-tag {
  font-family: var(--ehy-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  background: var(--ehy-fg);
  color: var(--ehy-accent);
  font-weight: 600;
}

.ehy-tag-outline {
  background: transparent;
  color: var(--ehy-muted);
  border: 1px solid var(--ehy-border);
}

.ehy-article-title {
  font-family: var(--ehy-font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.ehy-article-filename {
  font-family: var(--ehy-font-mono);
  font-size: 0.65rem;
  color: var(--ehy-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--ehy-space-md);
}

/* --- META BLOCK --- */
.ehy-meta-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--ehy-border);
  border-bottom: 1px solid var(--ehy-border);
  margin-bottom: var(--ehy-space-xl);
}

.ehy-meta-item {
  padding: 0.75rem 1.25rem;
  border-right: 1px solid var(--ehy-border);
  flex: 1;
  min-width: 120px;
}

.ehy-meta-item:last-child {
  border-right: none;
}

.ehy-meta-key {
  font-family: var(--ehy-font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ehy-muted);
  margin-bottom: 0.2rem;
}

.ehy-meta-val {
  font-family: var(--ehy-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ehy-fg);
  letter-spacing: 0.02em;
}

/* --- ARTICLE BODY --- */
.ehy-article-body {
  font-size: 1rem;
  line-height: 1.75;
}

.ehy-article-body h2 {
  font-family: var(--ehy-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ehy-border);
}

.ehy-article-body h3 {
  font-family: var(--ehy-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

.ehy-article-body p {
  margin-bottom: 1.25rem;
  color: #2A2A32;
}

.ehy-article-body strong {
  font-weight: 600;
  color: var(--ehy-fg);
}

.ehy-article-body ul,
.ehy-article-body ol {
  margin: 0 0 1.25rem 1.25rem;
  color: #2A2A32;
}

.ehy-article-body ul li,
.ehy-article-body ol li {
  list-style: disc outside;
  margin-bottom: 0.4rem;
}

.ehy-article-body ol li {
  list-style: decimal outside;
}

.ehy-article-body a {
  color: var(--ehy-fg);
  border-bottom: 1px solid var(--ehy-accent);
  transition: background 0.15s;
}

.ehy-article-body a:hover {
  background: var(--ehy-accent);
}

/* Tables inside article body (pillar chronology, comparison matrices) */
.ehy-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0 2rem;
  font-size: 0.9rem;
  font-family: var(--ehy-font-body);
}
.ehy-article-body table thead {
  background: var(--ehy-dark);
}
.ehy-article-body table thead th {
  color: var(--ehy-bg);
  text-align: left;
  font-family: var(--ehy-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 0.9rem;
  border-bottom: 2px solid var(--ehy-accent);
}
.ehy-article-body table tbody tr {
  border-bottom: 1px solid var(--ehy-border);
}
.ehy-article-body table tbody tr:nth-child(even) {
  background: var(--ehy-surface);
}
.ehy-article-body table tbody td {
  padding: 0.7rem 0.9rem;
  vertical-align: top;
  color: #2A2A32;
  line-height: 1.55;
}
.ehy-article-body table tbody td:first-child {
  font-family: var(--ehy-font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ehy-fg);
  white-space: nowrap;
}
.ehy-article-body table em {
  font-style: italic;
  color: var(--ehy-fg);
}

/* Infographic figures */
.ehy-infographic {
  margin: 2.5rem 0;
  padding: 0;
}
.ehy-infographic img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ehy-border);
}
.ehy-infographic figcaption {
  margin-top: 0.5rem;
  font-family: var(--ehy-font-mono);
  font-size: 0.75rem;
  color: #888890;
  line-height: 1.5;
}

/* FAQ block — wrapped by ehy_wrap_faq_block() filter */
.ehy-faq {
  margin-top: 0.5rem;
}
.ehy-faq h3 {
  font-family: var(--ehy-font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ehy-fg);
  margin: 1.5rem 0 0.5rem;
  padding: 1rem 0 0 1.6rem;
  border-top: 1px solid var(--ehy-border);
  position: relative;
}
.ehy-faq h3:first-child {
  border-top: 0;
  padding-top: 0.25rem;
}
.ehy-faq h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--ehy-font-mono);
  color: var(--ehy-dark);
  background: var(--ehy-accent);
  width: 1.15rem;
  height: 1.15rem;
  line-height: 1.15rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.ehy-faq h3:first-child::before {
  top: 0.2rem;
}
.ehy-faq p {
  color: #2A2A32;
  margin: 0 0 1rem 1.6rem;
  padding-left: 0;
  position: relative;
}
.ehy-faq p::before {
  content: "A";
  position: absolute;
  left: -1.6rem;
  top: 0.2rem;
  font-family: var(--ehy-font-mono);
  color: var(--ehy-muted);
  background: transparent;
  border: 1px solid var(--ehy-border);
  width: 1.15rem;
  height: 1.15rem;
  line-height: 1.13rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
}
.ehy-faq p + p::before {
  content: "";
  border: 0;
}

/* Hub Index (e.g. Artist Profiles) — wrapped by ehy_wrap_hub_index() filter */
.ehy-hub-index {
  margin: 1.25rem 0 2.25rem;
}
.ehy-hub-index > p {
  color: var(--ehy-muted);
  font-family: var(--ehy-font-mono);
  font-size: 0.82rem;
  padding: 0.5rem 0 1.25rem;
  border-bottom: 1px solid var(--ehy-border);
  margin-bottom: 1.25rem;
}
.ehy-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}
.ehy-hub-card {
  background: var(--ehy-surface);
  border: 1px solid var(--ehy-border);
  border-left: 3px solid var(--ehy-accent);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
}
.ehy-hub-card h3 {
  font-family: var(--ehy-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  color: var(--ehy-fg);
  border: 0;
  padding: 0;
}
.ehy-hub-card h3::before {
  content: "";
}
.ehy-hub-card p:first-of-type {
  font-family: var(--ehy-font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ehy-fg);
  background: var(--ehy-bg);
  border: 1px solid var(--ehy-border);
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.85rem;
}
.ehy-hub-card p:first-of-type strong {
  color: var(--ehy-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}
.ehy-hub-card p {
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  color: #2A2A32;
}
.ehy-hub-card a[href^="/artists/"],
.ehy-hub-card a[href^="/konstnarer/"] {
  display: inline-block;
  margin-top: auto;
  font-family: var(--ehy-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ehy-fg);
  background: var(--ehy-accent);
  padding: 0.35rem 0.7rem;
  border: 0;
  text-decoration: none;
  align-self: flex-start;
}
.ehy-hub-card a[href^="/artists/"]:hover,
.ehy-hub-card a[href^="/konstnarer/"]:hover {
  background: var(--ehy-fg);
  color: var(--ehy-accent);
}

/* Pull quote */
.ehy-pullquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--ehy-accent);
  background: var(--ehy-surface);
  font-family: var(--ehy-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ehy-fg);
}

.ehy-pullquote cite {
  display: block;
  font-family: var(--ehy-font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  font-style: normal;
  color: var(--ehy-muted);
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
}

/* Callout box */
.ehy-callout {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--ehy-accent);
  background: rgba(250, 255, 0, 0.04);
}

.ehy-callout-label {
  font-family: var(--ehy-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ehy-accent);
  background: var(--ehy-fg);
  display: inline-block;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.ehy-callout p {
  font-family: var(--ehy-font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ehy-fg);
  margin-bottom: 0;
}

/* Image placeholder */
.ehy-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
}

.ehy-img-placeholder-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-family: var(--ehy-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.ehy-img-meta {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-family: var(--ehy-font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.5);
  padding: 0.2rem 0.5rem;
}

.ehy-img-placeholder-caption {
  font-family: var(--ehy-font-mono);
  font-size: 0.65rem;
  color: var(--ehy-muted);
  letter-spacing: 0.04em;
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--ehy-border);
}

/* Card image (featured image) */
.ehy-card-img {
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  display: block;
}

/* Gradient placeholders */
.ehy-grad-1 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%); }
.ehy-grad-2 { background: linear-gradient(135deg, #0d1117 0%, #161b22 40%, #21262d 70%, #30363d 100%); }
.ehy-grad-3 { background: linear-gradient(135deg, #1e1e2e 0%, #313244 50%, #45475a 100%); }
.ehy-grad-4 { background: linear-gradient(135deg, #090909 0%, #1c1c1c 50%, #2a2a2a 100%); }
.ehy-grad-5 { background: linear-gradient(135deg, #0a0a16 0%, #111128 40%, #1e1e3f 100%); }

/* --- AUTHOR BOX --- */
.ehy-author-box {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--ehy-border);
  margin-top: 3rem;
  align-items: start;
}

.ehy-author-avatar {
  width: 64px;
  height: 64px;
  background: var(--ehy-dark);
  border: 2px solid var(--ehy-border);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.ehy-author-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ehy-author-avatar-id {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  font-family: var(--ehy-font-mono);
  font-size: 0.45rem;
  color: var(--ehy-bg);
  background: rgba(17, 17, 24, 0.75);
  text-align: center;
  padding: 1px 0;
  letter-spacing: 0.05em;
}

.ehy-author-name {
  font-family: var(--ehy-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.ehy-author-role {
  font-family: var(--ehy-font-mono);
  font-size: 0.62rem;
  color: var(--ehy-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.ehy-author-bio {
  font-size: 0.82rem;
  color: var(--ehy-muted);
  line-height: 1.55;
}

/* --- LANG SWITCH --- */
.ehy-lang-switch {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--ehy-border);
  background: var(--ehy-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ehy-lang-switch-label {
  font-family: var(--ehy-font-mono);
  font-size: 0.65rem;
  color: var(--ehy-muted);
  letter-spacing: 0.1em;
}

.ehy-lang-switch-link {
  font-family: var(--ehy-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ehy-fg);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ehy-lang-switch-link::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--ehy-accent);
}

/* --- ARTICLE SIDEBAR --- */
.ehy-article-sidebar {
  display: none;
}

@media (min-width: 960px) {
  .ehy-article-sidebar {
    display: block;
    padding-top: 0;
  }
}

.ehy-sidebar-widget {
  border: 1px solid var(--ehy-border);
  margin-bottom: var(--ehy-space-lg);
  overflow: hidden;
}

.ehy-sidebar-widget-header {
  background: var(--ehy-fg);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ehy-sidebar-widget-title {
  font-family: var(--ehy-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ehy-accent);
  font-weight: 600;
}

.ehy-sidebar-widget-body {
  padding: 1rem;
}

.ehy-sidebar-toc li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--ehy-border);
}

.ehy-sidebar-toc li:last-child {
  border-bottom: none;
}

.ehy-sidebar-toc a {
  font-family: var(--ehy-font-mono);
  font-size: 0.68rem;
  color: var(--ehy-muted);
  letter-spacing: 0.04em;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  transition: color 0.15s;
}

.ehy-sidebar-toc a:hover {
  color: var(--ehy-fg);
}

.ehy-sidebar-toc a.ehy-active {
  color: var(--ehy-fg);
}

.ehy-toc-num {
  color: var(--ehy-border);
  flex-shrink: 0;
  font-size: 0.6rem;
}

.ehy-related-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ehy-border);
}

.ehy-related-list li:last-child {
  border-bottom: none;
}

.ehy-related-cat {
  font-family: var(--ehy-font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ehy-muted);
  margin-bottom: 0.2rem;
}

.ehy-related-name {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ehy-fg);
}

.ehy-sidebar-meta {
  font-family: var(--ehy-font-mono);
  font-size: 0.6rem;
  line-height: 2;
  color: var(--ehy-muted);
}

.ehy-sidebar-meta strong {
  color: var(--ehy-fg);
}

/* =====================================================
   ARCHIVE PAGE
   ===================================================== */
.ehy-archive-page {
  background: var(--ehy-bg);
  padding: var(--ehy-space-xl) 0 var(--ehy-space-2xl);
}

/* --- ARCHIVE HEADER --- */
.ehy-archive-header {
  margin-bottom: var(--ehy-space-xl);
  padding-bottom: var(--ehy-space-lg);
  border-bottom: 1px solid var(--ehy-border);
}

.ehy-archive-title {
  font-family: var(--ehy-font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.ehy-archive-title span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ehy-fg);
}

.ehy-archive-subtitle {
  font-family: var(--ehy-font-mono);
  font-size: 0.7rem;
  color: var(--ehy-muted);
  letter-spacing: 0.08em;
}

/* --- FILTER BAR --- */
.ehy-filter-bar {
  margin-bottom: var(--ehy-space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ehy-filter-label {
  font-family: var(--ehy-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ehy-muted);
  margin-right: 0.5rem;
}

.ehy-filter-chip {
  font-family: var(--ehy-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  background: transparent;
  border: 1px solid var(--ehy-border);
  color: var(--ehy-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}

.ehy-filter-chip:hover,
.ehy-filter-chip.ehy-active {
  background: var(--ehy-fg);
  color: var(--ehy-accent);
  border-color: var(--ehy-fg);
}

.ehy-filter-divider {
  width: 1px;
  height: 20px;
  background: var(--ehy-border);
  margin: 0 0.25rem;
  display: none;
}

@media (min-width: 640px) {
  .ehy-filter-divider { display: block; }
}

/* --- ARCHIVE TABLE --- */
.ehy-archive-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ehy-archive-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.ehy-archive-table thead {
  background: var(--ehy-fg);
}

.ehy-archive-table thead th {
  font-family: var(--ehy-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 500;
}

.ehy-archive-table thead th:first-child {
  width: 3rem;
  color: var(--ehy-accent);
}

.ehy-archive-table tbody tr {
  border-bottom: 1px solid var(--ehy-border);
  transition: background 0.1s;
  cursor: pointer;
}

.ehy-archive-table tbody tr:hover {
  background: var(--ehy-surface);
}

.ehy-archive-table tbody td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
}

.ehy-td-idx {
  font-family: var(--ehy-font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ehy-border);
  letter-spacing: 0.05em;
}

tr:hover .ehy-td-idx {
  color: var(--ehy-accent);
}

.ehy-td-name {
  font-family: var(--ehy-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ehy-fg);
  line-height: 1.2;
}

.ehy-td-name-sub {
  font-family: var(--ehy-font-mono);
  font-size: 0.6rem;
  color: var(--ehy-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.05em;
}

.ehy-td-mono {
  font-family: var(--ehy-font-mono);
  font-size: 0.72rem;
  color: var(--ehy-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ehy-td-region {
  font-family: var(--ehy-font-mono);
  font-size: 0.65rem;
  color: var(--ehy-muted);
  letter-spacing: 0.06em;
}

.ehy-td-link {
  font-family: var(--ehy-font-mono);
  font-size: 0.6rem;
  color: var(--ehy-fg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ehy-border);
  padding: 0.25rem 0.6rem;
  display: inline-block;
  transition: all 0.15s;
}

tr:hover .ehy-td-link {
  background: var(--ehy-fg);
  color: var(--ehy-accent);
  border-color: var(--ehy-fg);
}

/* Status dot */
.ehy-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.ehy-status-active { background: #22c55e; }
.ehy-status-archive { background: var(--ehy-muted); }
.ehy-status-new { background: var(--ehy-accent); }

/* --- LOAD MORE / PAGINATION --- */
.ehy-load-more-wrap {
  text-align: center;
  margin-top: var(--ehy-space-xl);
  padding-top: var(--ehy-space-lg);
  border-top: 1px solid var(--ehy-border);
}

.ehy-load-more-count {
  font-family: var(--ehy-font-mono);
  font-size: 0.62rem;
  color: var(--ehy-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.ehy-btn-load-more {
  font-family: var(--ehy-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2.5rem;
  background: transparent;
  color: var(--ehy-fg);
  border: 1.5px solid var(--ehy-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.15s;
  text-decoration: none;
}

.ehy-btn-load-more:hover {
  background: var(--ehy-fg);
  color: var(--ehy-accent);
}

.ehy-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--ehy-space-lg);
}

.ehy-pagination a,
.ehy-pagination span {
  font-family: var(--ehy-font-mono);
  font-size: 0.7rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--ehy-border);
  color: var(--ehy-muted);
  letter-spacing: 0.05em;
}

.ehy-pagination .current {
  background: var(--ehy-fg);
  color: var(--ehy-accent);
  border-color: var(--ehy-fg);
}

.ehy-pagination a:hover {
  color: var(--ehy-fg);
  border-color: var(--ehy-fg);
}

/* =====================================================
   404
   ===================================================== */
.ehy-404 {
  padding: var(--ehy-space-2xl) 0;
  text-align: center;
  min-height: 50vh;
}

.ehy-404-code {
  font-family: var(--ehy-font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ehy-fg);
  margin-bottom: 1rem;
  line-height: 1;
}

.ehy-404-title {
  font-family: var(--ehy-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ehy-404-sub {
  font-family: var(--ehy-font-mono);
  font-size: 0.8rem;
  color: var(--ehy-muted);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

/* =====================================================
   SEARCH FORM
   ===================================================== */
.ehy-search-form {
  display: flex;
  gap: 0;
  margin: 1.5rem 0;
  max-width: 480px;
}

.ehy-search-field {
  flex: 1;
  font-family: var(--ehy-font-mono);
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ehy-border);
  background: var(--ehy-bg);
  color: var(--ehy-fg);
}

.ehy-search-field:focus {
  outline: none;
  border-color: var(--ehy-fg);
}

.ehy-search-submit {
  font-family: var(--ehy-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  background: var(--ehy-fg);
  color: var(--ehy-accent);
  border: 1px solid var(--ehy-fg);
  cursor: pointer;
}

/* =====================================================
   ABOUT / PAGE CONTENT
   ===================================================== */
.ehy-page-content {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 760px;
}

.ehy-page-content h2 {
  font-family: var(--ehy-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.ehy-page-content p {
  margin-bottom: 1.25rem;
  color: #2A2A32;
}

/* =====================================================
   RESPONSIVE FINAL ADJUSTMENTS
   ===================================================== */
@media (min-width: 640px) {
  .ehy-meta-block {
    flex-wrap: nowrap;
  }
}

@media (max-width: 639px) {
  .ehy-meta-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .ehy-meta-item {
    border-right: 1px solid var(--ehy-border);
    border-bottom: 1px solid var(--ehy-border);
  }
  .ehy-meta-item:nth-child(even) {
    border-right: none;
  }
}

@media (max-width: 639px) {
  .ehy-hero-right {
    display: none;
  }
  .ehy-hero-headline {
    font-size: 2rem;
  }
  .ehy-archive-filter-label { display: none; }
}

/* Kill WP default alignments used by core blocks, keep them minimally styled */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
