/*
 * EDGE JOURNAL / EDITORIAL SYSTEM 2026
 * Single visual layer for the front page and the article archive.
 * Loaded after the original theme; keeps Hugo templates, URLs and assets intact.
 * Design: ink, paper, typography and one deliberate signal colour.
 */
body.edge-journal-page .edge-journal.eh-redesign,
body.posts-index-page .posts-index.eh-archive {
  --eh-ink: #f7f9fc;
  --eh-dim: #b2b2b0;
  --eh-subtle: #8c9094;
  --eh-rule: rgba(243, 242, 237, .16);
  --eh-paper: #edf5ff;
  --eh-signal: #4a9dff;
  --eh-surface: #111317;
  color: var(--eh-ink);
}
body.edge-journal-page .edge-journal.eh-redesign :is(a, button, input):focus-visible,
body.posts-index-page .posts-index.eh-archive a:focus-visible {
  outline: 2px solid var(--eh-signal) !important;
  outline-offset: 4px;
}
body.edge-journal-page .edge-journal.eh-redesign {
  padding-bottom: clamp(44px, 7vw, 90px);
}
body.edge-journal-page .edge-journal.eh-redesign .ej-intro {
  isolation: isolate;
  border: 1px solid var(--eh-rule) !important;
  border-top: 2px solid var(--eh-signal) !important;
  border-radius: 3px;
  padding: clamp(20px, 2.5vw, 38px) !important;
  background: #0d0e10 !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-intro::before {
  content: "E / J";
  position: absolute;
  inset: auto 16px -12px auto;
  color: rgba(255,255,255,.035);
  font: 800 clamp(100px, 15vw, 220px)/.8 Arial, sans-serif;
  letter-spacing: -.09em;
  white-space: nowrap;
  pointer-events: none;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-intro::after {
  background: var(--eh-signal);
  width: 12%;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-eyebrow {
  color: #bfc0bd;
  font-size: 11px !important;
  letter-spacing: .13em;
  padding-bottom: 12px;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-eyebrow span:first-child {
  color: var(--eh-signal);
}
body.edge-journal-page .edge-journal.eh-redesign .ej-intro-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(230px, .65fr) !important;
  align-items: end !important;
  gap: clamp(24px, 4vw, 60px) !important;
  padding: clamp(25px, 3vw, 52px) 0 clamp(22px, 2vw, 30px) !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-intro h1 {
  max-width: 860px;
  font: 700 clamp(58px, 6.4vw, 116px)/.94 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: -.09em !important;
  text-wrap: balance;
  color: #f7f9fc !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-intro h1 .eh-serif {
  display: block;
  margin: .08em 0 .02em;
  color: var(--eh-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .97em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.075em;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-manifesto {
  padding-left: clamp(14px, 1.8vw, 26px);
  border-left: 1px solid var(--eh-signal);
}
body.edge-journal-page .edge-journal.eh-redesign .ej-manifesto p {
  color: #c8c9c8 !important;
  font-size: clamp(15px, 1.4vw, 19px) !important;
  line-height: 1.52 !important;
  margin: 0 0 18px !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-manifesto a {
  display: inline-flex;
  gap: 20px;
  width: auto;
  min-height: 40px !important;
  padding: 6px 0 !important;
  font-size: 13px !important;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--eh-paper);
}
body.edge-journal-page .edge-journal.eh-redesign .ej-manifesto a:hover {
  color: var(--eh-signal);
  border-color: var(--eh-signal);
}
body.edge-journal-page .edge-journal.eh-redesign .ej-stats {
  align-items: center;
  gap: 10px 0 !important;
  padding-top: 15px !important;
  border-top: 1px solid var(--eh-rule);
  color: #a9acae;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-stats > span {
  padding: 0 18px;
  border-right: 1px solid var(--eh-rule);
  font: 600 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
  white-space: nowrap;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-stats > span:first-child { padding-left: 0; }
body.edge-journal-page .edge-journal.eh-redesign .ej-stats > span:last-child { padding-right: 0; border-right: 0; }
body.edge-journal-page .edge-journal.eh-redesign .ej-stats b {
  color: #edf5ff;
  font-size: 15px !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-status {
  margin-left: auto;
  color: #c9d1dc;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-status i {
  background: var(--eh-signal);
  box-shadow: 0 0 12px rgba(74, 157, 255,.38);
}

/* Search the entire Hugo catalogue, not just the six visible home cards. */
body.edge-journal-page .edge-journal.eh-redesign .eh-discover {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  margin-top: 14px;
  padding: clamp(20px, 2.5vw, 35px);
  border: 1px solid #b9cbdd;
  border-radius: 3px;
  color: #151619;
  background: var(--eh-paper);
}
/* Search lives at archive end: visible destination, not hero interruption. */
body.edge-journal-page .edge-journal.eh-redesign .eh-discover {
  margin-top: clamp(36px, 6vw, 82px);
  border-color: var(--ej-ui-cyan, #50f6ff);
  box-shadow: 0 0 0 1px rgba(80,246,255,.08), 0 18px 45px rgba(0,0,0,.18);
}
body.edge-journal-page .edge-journal.eh-redesign .eh-search-field button {
  border-color: var(--ej-ui-cyan, #50f6ff);
  background: var(--ej-ui-surface, #1b233d);
  color: var(--ej-ui-cyan, #50f6ff);
}
body.edge-journal-page .edge-journal.eh-redesign .eh-overline {
  display: block;
  margin-bottom: 10px;
  color: #245d95;
  font: 750 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .17em;
  text-transform: uppercase;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-discover h2 {
  margin: 0;
  color: #151619;
  font: 750 clamp(25px, 2.5vw, 41px)/1.05 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.065em;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-discover h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-search-form {
  display: block;
  min-width: 0;
  margin: 0;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-search-form label {
  display: block;
  margin-bottom: 8px;
  color: #4b4e50;
  font: 650 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-search-field {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 51px;
  padding: 4px;
  border: 1px solid #a7a7a2;
  border-radius: 2px;
  background: #f7f9fc;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-search-field:focus-within {
  border-color: #245d95;
  box-shadow: 0 0 0 2px rgba(154,84,64,.12);
}
body.edge-journal-page .edge-journal.eh-redesign .eh-search-field input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 0 !important;
  border-radius: 0;
  outline: none !important;
  background: transparent !important;
  color: #151619 !important;
  box-shadow: none !important;
  font-size: 15px !important;
  line-height: 1.35;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-search-field input::placeholder { color: #7d7d79; }
body.edge-journal-page .edge-journal.eh-redesign .eh-search-field button {
  flex: 0 0 auto;
  min-height: 41px;
  padding: 10px 16px;
  border: 1px solid #151619;
  border-radius: 1px;
  color: #fffaf2;
  background: #151619;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-search-field button:hover {
  border-color: #245d95;
  background: #245d95;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 13px;
  padding-top: 12px;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-shortcuts > span {
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #686865;
  letter-spacing: .06em;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-shortcuts a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-bottom: 1px solid #aaa8a0;
  color: #383c40;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-shortcuts a:hover { color: #245d95; border-color: #245d95; }
body.edge-journal-page .edge-journal.eh-redesign .eh-search-results {
  position: absolute;
  z-index: 40;
  top: calc(100% - 2px);
  right: 0;
  width: min(100%, 710px);
  max-height: min(75vh, 560px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #8e8d88;
  background: #f7f9fc;
  color: #151619;
  box-shadow: 0 24px 65px rgba(0,0,0,.45);
}
body.edge-journal-page .edge-journal.eh-redesign .eh-search-results[hidden] { display: none !important; }
body.edge-journal-page .edge-journal.eh-redesign .eh-search-results-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #c9c7be;
  font: 650 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #595950;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-search-results-head button {
  border: 0;
  padding: 0 4px;
  background: transparent;
  color: #245d95;
  cursor: pointer;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px 3px;
  border-bottom: 1px solid #dedbd4;
  color: #1b1d20;
  text-decoration: none;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-result:hover { color: #245d95; }
body.edge-journal-page .edge-journal.eh-redesign .eh-result strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-result small {
  color: #787772;
  font: 600 10px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-search-empty {
  margin: 14px 0 4px;
  font-size: 14px;
  color: #5a5b5b;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-search-more {
  display: inline-flex;
  margin-top: 14px;
  color: #245d95;
  font-size: 12px;
  font-weight: 700;
}

/* Coverage and story rhythm. Strong typography, restrained media surfaces. */
body.edge-journal-page .edge-journal.eh-redesign .ej-lead {
  display: grid !important;
  grid-template-columns: minmax(0, 1.65fr) minmax(255px, .65fr) !important;
  gap: 12px !important;
  margin-top: 16px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-feature,
body.edge-journal-page .edge-journal.eh-redesign .ej-radar {
  border: 1px solid var(--eh-rule) !important;
  background: var(--eh-surface) !important;
  border-radius: 3px;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-feature {
  display: grid !important;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
  grid-template-rows: auto !important;
  min-width: 0;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-feature-art {
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  background: #070a0f !important;
  border-right: 1px solid var(--eh-rule);
  border-bottom: none !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-feature-art img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  filter: none !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-feature-art::after {
  background: linear-gradient(180deg, rgba(0,0,0,.16), transparent 50%) !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-feature-copy {
  justify-content: center !important;
  padding: clamp(19px, 2.3vw, 34px) !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-label,
body.edge-journal-page .edge-journal.eh-redesign .ej-radar-head {
  font: 700 10px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace !important;
  color: var(--eh-signal) !important;
  letter-spacing: .13em !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-label::before { background: var(--eh-signal); box-shadow: none; }
body.edge-journal-page .edge-journal.eh-redesign .ej-feature-copy h2 {
  max-width: 28ch !important;
  margin: 15px 0 12px !important;
  color: #f6f5f0 !important;
  font-size: clamp(26px, 2.5vw, 42px) !important;
  line-height: 1.06 !important;
  letter-spacing: -.055em !important;
  overflow-wrap: anywhere;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-feature-copy > p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3 !important;
  overflow: hidden;
  margin: 0 !important;
  font-size: clamp(13px, 1.12vw, 16px) !important;
  line-height: 1.5 !important;
  color: #b7b9ba !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-meta { color: #999b9f !important; font-size: 11px !important; }
body.edge-journal-page .edge-journal.eh-redesign .eh-readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: 17px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--eh-signal);
  color: #f5e1d6;
  font-size: 12px;
  font-weight: 700;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-radar {
  padding: 10px 15px !important;
  border-top: 2px solid var(--eh-signal) !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-radar-head {
  padding: 9px 0 13px !important;
  color: #e5e3dc !important;
  border-bottom-color: var(--eh-rule);
}
body.edge-journal-page .edge-journal.eh-redesign .ej-radar-head span:last-child { color: var(--eh-signal); }
body.edge-journal-page .edge-journal.eh-redesign .ej-radar-item {
  padding: 13px 0 !important;
  grid-template-columns: 22px minmax(0,1fr) 12px;
  border-color: var(--eh-rule);
}
body.edge-journal-page .edge-journal.eh-redesign .ej-radar-item h3 {
  font-size: clamp(13px, 1.08vw, 16px) !important;
  line-height: 1.3 !important;
  color: #f1f0eb;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-radar-item small { font-size: 10px !important; color: #8e939a; }
body.edge-journal-page .edge-journal.eh-redesign .ej-radar-item:hover h3,
body.edge-journal-page .edge-journal.eh-redesign .ej-radar-item:hover > b { color: var(--eh-signal); }
body.edge-journal-page .edge-journal.eh-redesign .eh-radar-note {
  margin-top: auto;
  padding: 17px 0 5px;
  border-top: 1px solid var(--eh-rule);
}
body.edge-journal-page .edge-journal.eh-redesign .eh-radar-note span {
  display: block;
  margin-bottom: 8px;
  color: var(--eh-signal);
  font: 650 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
}
body.edge-journal-page .edge-journal.eh-redesign .eh-radar-note p {
  margin: 0;
  color: #b4b4b2;
  font: 400 13px/1.5 Georgia, "Times New Roman", serif;
  font-style: italic;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches,
body.edge-journal-page .edge-journal.eh-redesign .ej-spectrum {
  margin-top: clamp(32px, 3vw, 52px) !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-section-head {
  gap: 16px;
  align-items: end;
  padding-bottom: 16px !important;
  border-color: var(--eh-rule);
}
body.edge-journal-page .edge-journal.eh-redesign .ej-section-head::before { background: var(--eh-signal); height: 2px; }
body.edge-journal-page .edge-journal.eh-redesign .ej-section-head > div > span {
  color: var(--eh-signal);
  font: 650 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-section-head h2 {
  margin-top: 7px;
  color: #f7f9fc;
  font-size: clamp(28px, 3vw, 46px) !important;
  letter-spacing: -.06em;
  line-height: 1.05;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-section-head > a { color: #d4d1ca; font-size: 13px; }
body.edge-journal-page .edge-journal.eh-redesign .ej-section-head > a:hover { color: var(--eh-signal); }
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-grid {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 12px !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  border: 1px solid var(--eh-rule) !important;
  border-radius: 3px !important;
  background: var(--eh-surface) !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color .2s ease, transform .2s ease !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card:hover {
  border-color: rgba(74, 157, 255,.7) !important;
  background: #15171a !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 13px 32px rgba(0,0,0,.22) !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card-art {
  display: block !important;
  position: relative;
  width: 100% !important;
  aspect-ratio: 16 / 8 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #090c10 !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card-art::before { content: none !important; }
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card-art::after {
  background: linear-gradient(0deg, rgba(0,0,0,.26), transparent 50%) !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card-art img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #090c10 !important;
  filter: none !important;
  border-radius: 0 !important;
  transition: transform .3s ease !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card:hover .ej-card-art img { transform: scale(1.02) !important; }
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card-art > span {
  top: 11px !important;
  left: 12px !important;
  font-size: 11px !important;
  padding: 5px 7px;
  color: #f5eee7;
  background: rgba(0,0,0,.55);
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card-copy {
  display: flex !important;
  flex: 1 1 auto;
  padding: clamp(20px, 2vw, 28px) !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card h3 {
  display: block !important;
  margin: 12px 0 9px !important;
  color: #f2f0eb !important;
  font-size: clamp(21px, 1.85vw, 29px) !important;
  line-height: 1.13 !important;
  letter-spacing: -.045em;
  overflow: visible !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card p {
  color: #b1b3b4 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  -webkit-line-clamp: 2 !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-card-tags span {
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--eh-signal) !important;
  letter-spacing: .09em;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card .ej-meta {
  padding-top: 14px !important;
  margin-top: auto !important;
  border-top: 1px solid var(--eh-rule);
}
body.edge-journal-page .edge-journal.eh-redesign .ej-categories {
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 9px !important;
  border: 0 !important;
  background: transparent !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-categories a {
  min-height: 95px !important;
  padding: 17px !important;
  border: 1px solid var(--eh-rule);
  border-radius: 2px;
  background: #101216;
  transition: border-color .2s ease, background .2s ease;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-categories a:hover {
  background: #1b1717;
  border-color: var(--eh-signal);
}
body.edge-journal-page .edge-journal.eh-redesign .ej-categories a > span {
  color: #f2eee9;
  font-size: 15px !important;
  text-transform: capitalize;
  line-height: 1.3;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-categories a > small { font-size: 11px !important; color: #9b9fa3; }
body.edge-journal-page .edge-journal.eh-redesign .ej-categories a > b { color: var(--eh-signal); }
body.edge-journal-page .edge-journal.eh-redesign .ej-lab {
  margin-top: clamp(33px, 4vw, 56px) !important;
  padding: clamp(24px, 3.5vw, 48px) !important;
  border: 1px solid var(--eh-rule);
  border-left: 3px solid var(--eh-signal);
  border-radius: 2px;
  background: #131313 !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-lab > div > span { color: var(--eh-signal); font-size: 11px; }
body.edge-journal-page .edge-journal.eh-redesign .ej-lab h2 { font-size: clamp(30px, 3.2vw, 49px) !important; }
body.edge-journal-page .edge-journal.eh-redesign .ej-lab > p { color: #b6b7b8; font-size: 14px; }
body.edge-journal-page .edge-journal.eh-redesign .ej-lab > b { font-size: 13px; color: var(--eh-signal); }

/* Archive page: continue the same editorial language past the cover. */
body.posts-index-page .posts-index.eh-archive {
  max-width: 1400px;
  margin-inline: auto;
}
body.posts-index-page .posts-index.eh-archive .posts-index-hero {
  padding: clamp(28px, 3.6vw, 58px) !important;
  border: 1px solid var(--eh-rule) !important;
  border-top: 2px solid var(--eh-signal) !important;
  border-radius: 3px !important;
  background: #0d0e10 !important;
}
body.posts-index-page .posts-index.eh-archive .posts-index-kicker { color: var(--eh-signal) !important; font-size: 11px !important; }
body.posts-index-page .posts-index.eh-archive .posts-index-hero h1 {
  color: var(--eh-ink) !important;
  font-size: clamp(34px, 4.2vw, 68px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.065em !important;
}
body.posts-index-page .posts-index.eh-archive .posts-index-hero p { max-width: 65ch; color: #bcbfbe; font-size: 16px; }
body.posts-index-page .posts-index.eh-archive .eh-archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  margin-top: 24px;
}
body.posts-index-page .posts-index.eh-archive .eh-archive-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid var(--eh-rule);
  color: #efeee9;
  font-size: 13px;
  text-decoration: none;
}
body.posts-index-page .posts-index.eh-archive .eh-archive-links a:hover { border-color: var(--eh-signal); color: var(--eh-signal); }
body.posts-index-page .posts-index.eh-archive .posts-card-grid {
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 12px !important;
}
body.posts-index-page .posts-index.eh-archive .posts-card {
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 3px !important;
  border: 1px solid var(--eh-rule) !important;
  background: #111317 !important;
  box-shadow: none !important;
  transform: none !important;
}
body.posts-index-page .posts-index.eh-archive .posts-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(74, 157, 255,.65) !important;
  background: #17191d !important;
}
body.posts-index-page .posts-index.eh-archive .posts-card-media {
  aspect-ratio: 16 / 9 !important;
  border-radius: 0 !important;
  background: #090c10 !important;
}
body.posts-index-page .posts-index.eh-archive .posts-card-media::before { content: none !important; }
body.posts-index-page .posts-index.eh-archive .posts-card-media::after { background: transparent !important; }
body.posts-index-page .posts-index.eh-archive .posts-card-media img {
  object-fit: contain !important;
  border-radius: 0 !important;
  background: #090c10 !important;
}
body.posts-index-page .posts-index.eh-archive .posts-card-top { color: #aab0b4; }
body.posts-index-page .posts-index.eh-archive .posts-card-cat { color: var(--eh-signal) !important; }
body.posts-index-page .posts-index.eh-archive .posts-card h3 {
  color: #f3f0ea !important;
  font-size: clamp(22px, 1.8vw, 29px) !important;
  line-height: 1.13 !important;
  letter-spacing: -.045em;
}
body.posts-index-page .posts-index.eh-archive .posts-card p { color: #b5b7b9 !important; }
body.posts-index-page .posts-index.eh-archive .posts-card-foot { border-top: 1px solid var(--eh-rule) !important; }
body.posts-index-page .posts-index.eh-archive .posts-card-foot > span:last-child { color: var(--eh-signal) !important; }

/* Layout safeguards across laptop/tablet/phone. */
@media (max-width: 1320px) {
  body.edge-journal-page .edge-journal.eh-redesign .ej-feature {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0,1fr) !important;
  }
  body.edge-journal-page .edge-journal.eh-redesign .ej-feature-art {
    aspect-ratio: 16 / 7 !important;
    height: auto !important;
    max-height: 300px !important;
    border-right: 0;
    border-bottom: 1px solid var(--eh-rule) !important;
  }
}
@media (max-width: 1050px) {
  body.edge-journal-page .edge-journal.eh-redesign .ej-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  body.edge-journal-page .edge-journal.eh-redesign .ej-manifesto { max-width: 560px; }
  body.edge-journal-page .edge-journal.eh-redesign .eh-discover { grid-template-columns: 1fr; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-lead { grid-template-columns: 1fr !important; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-radar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-radar-head,
  body.edge-journal-page .edge-journal.eh-redesign .eh-radar-note { grid-column: 1/-1; }
  body.posts-index-page .posts-index.eh-archive .posts-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 740px) {
  body.edge-journal-page .edge-journal.eh-redesign .ej-intro { padding: 19px !important; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-intro h1 {
    font-size: clamp(46px, 10vw, 77px) !important;
    line-height: 1 !important;
  }
  body.edge-journal-page .edge-journal.eh-redesign .ej-manifesto { margin-top: 0; padding-left: 16px; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-stats > span { padding: 0 10px; font-size: 10px; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-status { margin-left: 0; }
  body.edge-journal-page .edge-journal.eh-redesign .eh-discover {
    padding: 20px;
    margin-top: 10px;
  }
  body.edge-journal-page .edge-journal.eh-redesign .eh-search-results { width: 100%; max-height: 60vh; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-grid { grid-template-columns: minmax(0,1fr) !important; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-radar { display: block; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-categories { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.posts-index-page .posts-index.eh-archive .posts-card-grid { grid-template-columns: minmax(0,1fr) !important; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-lab { grid-template-columns: 1fr !important; gap: 20px; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-lab > b { grid-column: auto !important; }
}
@media (max-width: 420px) {
  body.edge-journal-page .edge-journal.eh-redesign .ej-intro h1 { font-size: clamp(41px, 10.4vw, 50px) !important; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-intro h1 .eh-serif { letter-spacing: -.085em; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-stats > span:nth-child(3) { border-right: none; }
  body.edge-journal-page .edge-journal.eh-redesign .ej-categories { grid-template-columns: 1fr !important; }
  body.edge-journal-page .edge-journal.eh-redesign .eh-search-field button { padding-inline: 11px; }
  body.edge-journal-page .edge-journal.eh-redesign .eh-result { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  body.edge-journal-page .edge-journal.eh-redesign *,
  body.posts-index-page .posts-index.eh-archive * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Dispatch cards: Uiverse card language, adapted to article proportions/content. */
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card {
  padding: 7px !important;
  border: 1px solid rgba(80,246,255,.15) !important;
  border-radius: 20px !important;
  background: var(--ej-ui-surface, #1b233d) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.26) !important;
  transform: translateY(0) scale(1) !important;
  transition: transform .48s cubic-bezier(.175,.885,.32,1.275), border-color .25s ease, box-shadow .3s ease !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card:hover {
  border-color: rgba(80,246,255,.6) !important;
  background: var(--ej-ui-surface-hover, #202b49) !important;
  box-shadow: 0 22px 56px rgba(0,0,0,.42), 0 0 0 1px rgba(80,246,255,.12) !important;
  transform: translateY(-5px) scale(1.018) !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card-art {
  aspect-ratio: 3 / 2 !important;
  border-radius: 15px !important;
  background: linear-gradient(45deg, var(--ej-ui-cyan-deep, #049fbb), var(--ej-ui-cyan, #50f6ff)) !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card-art::before {
  content: "EDGE / JOURNAL" !important;
  position: absolute !important;
  z-index: 5 !important;
  top: 0 !important;
  left: 0 !important;
  width: 165px !important;
  height: 33px !important;
  padding: 0 24px 0 14px !important;
  display: flex !important;
  align-items: center;
  background: var(--ej-ui-surface, #1b233d) !important;
  color: #e4f6ff !important;
  clip-path: polygon(0 0,100% 0,calc(100% - 24px) 100%,0 100%);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace !important;
  letter-spacing: .11em;
  pointer-events: none;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card-art img {
  object-fit: contain !important;
  border-radius: 0 !important;
  background: #0b1222 !important;
  filter: saturate(.92) contrast(1.02) !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card-copy {
  padding: 15px 10px 10px !important;
  background: transparent !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card h3 {
  margin: 12px 0 9px !important;
  color: var(--ej-ui-ink, #f4f8ff) !important;
  font-size: clamp(19px, 1.55vw, 26px) !important;
  line-height: 1.13 !important;
  letter-spacing: -.045em;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card p {
  color: var(--ej-ui-muted, #adc6dd) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card .ej-meta {
  border-top-color: rgba(170,222,243,.2) !important;
}

/* Compact file-browser density: three readable cards on desktop. */
@media (min-width: 1024px) {
  body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}
@media (min-width: 741px) and (max-width: 1023px) {
  body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card {
  border-radius: 12px !important;
  padding: 5px !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card-art {
  aspect-ratio: 16 / 9 !important;
  border-radius: 9px !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card-copy {
  padding: 11px 8px 7px !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card h3 {
  margin: 8px 0 6px !important;
  font-size: clamp(16px, 1.25vw, 20px) !important;
  line-height: 1.16 !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12px !important;
  line-height: 1.4 !important;
}
body.edge-journal-page .edge-journal.eh-redesign .ej-dispatches .ej-card .ej-meta {
  padding-top: 8px !important;
  margin-top: 10px !important;
  font-size: 10px !important;
}

/* The radar no longer has ordinal labels; let its story and arrow fill the row. */
body.edge-journal-page .edge-journal.eh-redesign .ej-radar-item {
  grid-template-columns: minmax(0, 1fr) 16px !important;
}
