/* Journal home & sub-pages — sits on top of concept-platform.css */

/* Compact masthead for sub-pages (legacy, kept for compat) */
.j-masthead.j-masthead-compact { padding: 2.25rem 0 2rem; }
.j-masthead.j-masthead-compact .j-mast-inner { grid-template-columns: 1fr; }
.j-masthead.j-masthead-compact .j-mast-title { font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin-bottom: .6rem; }
.j-masthead.j-masthead-compact .j-mast-sub { margin-bottom: 0; font-size: .95rem; max-width: 680px; }

/* ============ Sub-page Hero (new) ============ */
.j-subhero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 0 2.5rem;
  border-bottom: 1px solid var(--p-line);
}
.j-subhero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(22,36,26,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 20% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
.j-subhero-green { background: linear-gradient(135deg, var(--p-bg-3) 0%, #fff 100%); }
.j-subhero-navy  { background: linear-gradient(135deg, var(--p-bg-2) 0%, #f3f6ea 100%); }
.j-subhero-coral { background: linear-gradient(135deg, var(--p-coral-3) 0%, #fff 100%); }

.j-subhero-top {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(22,36,26,.12);
  position: relative; z-index: 1;
}
.j-subhero-crumb { font-family: var(--p-mono); font-size: .76rem; letter-spacing: .06em; color: var(--p-muted); display: flex; align-items: center; gap: .5rem; }
.j-subhero-crumb a { color: var(--p-navy); font-weight: 700; text-decoration: none; letter-spacing: .12em; }
.j-subhero-crumb a:hover { color: var(--p-green-2); }
.j-subhero-crumb .sep { color: var(--p-line); }
.j-subhero-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; font-family: var(--p-mono); font-size: .72rem; color: var(--p-muted); letter-spacing: .05em; }
.j-subhero-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.j-subhero-meta i { color: var(--p-green-2); }

.j-subhero-main {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 1.5rem; align-items: center;
  position: relative; z-index: 1;
}
.j-subhero-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: var(--p-green-2);
  border: 1px solid var(--p-line);
  box-shadow: 0 6px 16px rgba(22,36,26,.08);
  position: relative;
}
.j-subhero-icon::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--p-green), var(--p-green-3));
  z-index: -1; opacity: .4;
  filter: blur(8px);
}
.j-subhero-navy .j-subhero-icon { color: var(--p-navy); }
.j-subhero-navy .j-subhero-icon::before { background: linear-gradient(135deg, var(--p-navy), var(--p-green-2)); }
.j-subhero-coral .j-subhero-icon { color: var(--p-coral-2); }
.j-subhero-coral .j-subhero-icon::before { background: linear-gradient(135deg, var(--p-coral), #f3be9f); }

.j-subhero-eyebrow {
  display: inline-block;
  font-family: var(--p-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--p-green-2);
  margin-bottom: .4rem;
}
.j-subhero-navy .j-subhero-eyebrow { color: var(--p-navy-2); }
.j-subhero-coral .j-subhero-eyebrow { color: var(--p-coral-2); }

body.p .j-subhero-text h1, .j-subhero-text h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--p-navy);
  letter-spacing: -.018em;
  line-height: 1.1;
  margin: 0 0 .5rem;
}
/* Prominent journal name as subtitle */
.j-subhero-journal {
  font-family: var(--p-serif, 'Inter', sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--p-ink);
  margin: 0 0 .65rem;
  letter-spacing: -.008em;
  line-height: 1.35;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.j-subhero-journal::before {
  content: ""; display: inline-block;
  width: 28px; height: 2px;
  background: var(--p-green);
}
.j-subhero-journal a { color: var(--p-ink); text-decoration: none; transition: color .15s; }
.j-subhero-journal a:hover { color: var(--p-green-2); }
.j-subhero-sub { font-size: .92rem; color: var(--p-ink-2); line-height: 1.6; margin: 0; max-width: 720px; }

@media (max-width: 700px) {
  .j-subhero { padding: 1.25rem 0 1.75rem; }
  .j-subhero-top { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .j-subhero-main { grid-template-columns: 60px 1fr; gap: 1rem; }
  .j-subhero-icon { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 14px; }
}

/* ============ Masthead ============ */
.j-masthead {
  padding: 3.5rem 0 3rem;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 800px 400px at 15% 0%, rgba(122,156,70,.1), transparent 60%),
    radial-gradient(ellipse 600px 400px at 95% 100%, rgba(197,112,82,.06), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--p-line);
}
.j-masthead::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(22,36,26,.04) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center left, #000 40%, transparent 85%);
  pointer-events: none;
}
.j-mast-inner {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 3rem; align-items: center;
  position: relative; z-index: 1;
}

.j-mast-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.j-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--p-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--p-bg-2);
  color: var(--p-ink-2);
  border: 1px solid var(--p-line);
}
.j-tag.j-tag-code { background: var(--p-navy); color: #fff; border-color: var(--p-navy); letter-spacing: .14em; }
.j-tag.j-tag-if { background: var(--p-coral-3); color: var(--p-coral-2); border-color: var(--p-coral-3); }
.j-tag.j-tag-open { background: var(--p-bg-3); color: var(--p-green-2); border-color: transparent; }
.j-tag.j-tag-open i { color: var(--p-green-2); }

.j-mast-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.12;
  color: var(--p-ink);
  margin: 0 0 1rem;
  max-width: 640px;
}
.j-mast-sub {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--p-ink-2);
  margin: 0 0 1.75rem;
  max-width: 560px;
}
.j-mast-ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.j-mast-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  font-size: .85rem;
  color: var(--p-muted);
}
.j-mast-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.j-mast-meta i { color: var(--p-green-2); font-size: .9rem; }
.j-mast-meta a { color: var(--p-muted); }
.j-mast-meta a:hover { color: var(--p-green-2); }

/* Journal cover card */
.j-mast-right { display: flex; justify-content: flex-end; }
.j-cover {
  width: 100%; max-width: 320px;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--p-navy) 0%, #1c2916 100%);
  color: #fff;
  border-radius: 10px;
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(43,59,34,.35);
}
.j-cover::before {
  content: ""; position: absolute; top: -40%; right: -30%;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122,156,70,.25), transparent 70%);
  filter: blur(30px);
}
.j-cover::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--p-green), var(--p-coral));
}
.j-cover .j-cover-code {
  font-family: var(--p-mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--p-green-3);
  position: relative; z-index: 1;
}
.j-cover .j-cover-name {
  font-family: var(--p-sans);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #fff;
  margin-top: 1.25rem;
  position: relative; z-index: 1;
  flex: 1;
}
.j-cover .j-cover-issn {
  font-family: var(--p-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .12em;
  margin-top: 1rem;
  position: relative; z-index: 1;
}
.j-cover .j-cover-impact {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  position: relative; z-index: 1;
}
.j-cover .j-cover-impact .n {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  background: linear-gradient(180deg, var(--p-green-3), var(--p-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.j-cover .j-cover-impact .l {
  display: block;
  font-family: var(--p-mono);
  font-size: .7rem;
  color: rgba(255,255,255,.7);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: .3rem;
  font-weight: 600;
}
.j-cover .j-cover-ribbon {
  position: absolute; bottom: 1rem; right: -2rem;
  background: var(--p-green);
  color: #fff;
  padding: .3rem 2.25rem;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: 0 4px 10px rgba(122,156,70,.35);
}

/* ============ Journal Sub-Nav ============ */
.j-subnav {
  background: #fff;
  border-bottom: 1px solid var(--p-line);
  position: sticky; top: 76px; z-index: 40;
  box-shadow: 0 1px 3px rgba(22,36,26,.03);
}
.j-subnav-inner {
  display: flex; gap: 0; flex-wrap: wrap;
  overflow-x: auto;
}
.j-subnav-inner a {
  display: inline-block;
  padding: 1rem 1.1rem;
  font-size: .88rem; font-weight: 500;
  color: var(--p-ink-2);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.j-subnav-inner a:first-child { padding-left: 0; }
.j-subnav-inner a:hover { color: var(--p-green-2); }
.j-subnav-inner a.is-active { color: var(--p-navy); border-bottom-color: var(--p-green); font-weight: 600; }

/* ============ Section headers / body grid ============ */
.j-two-col { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.j-main { min-width: 0; }

.j-section-h {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--p-navy);
  letter-spacing: -.015em;
  margin: 0 0 1rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--p-green-3);
  position: relative;
}
.j-section-h::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: var(--p-green); }

.j-section { margin-top: 2.5rem; }
.j-section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; }
.j-section-head h2 { margin-bottom: 0; padding-bottom: .7rem; }
.j-see-all {
  font-family: var(--p-sans);
  font-size: .82rem; font-weight: 600;
  color: var(--p-green-2);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
  padding-bottom: .6rem;
}
.j-see-all:hover { color: var(--p-navy); }
.j-see-all i { font-size: .72rem; transition: transform .15s; }
.j-see-all:hover i { transform: translateX(3px); }

.j-home-content {
  color: var(--p-ink-2);
  font-size: 1rem;
  line-height: 1.75;
}
.j-home-content p { margin: 0 0 1rem; }
.j-home-content strong, .j-home-content b { color: var(--p-navy); font-weight: 700; }
.j-home-content a { color: var(--p-green-2); text-decoration: underline; text-underline-offset: 3px; }
.j-home-content a:hover { color: var(--p-navy); }
.j-home-content ul, .j-home-content ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.j-home-content li { padding: .25rem 0; }
.j-home-content h1, .j-home-content h2, .j-home-content h3 { color: var(--p-navy); margin: 1.5rem 0 .75rem; font-weight: 700; }

/* ============ Article cards ============ */
.j-articles { display: flex; flex-direction: column; gap: 1rem; }
.j-article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.15rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--p-line-2);
}
.j-article:last-child { border-bottom: none; }
.j-article-stamp {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--p-navy), var(--p-navy-2));
  color: #fff;
  border-radius: var(--p-r);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--p-mono);
  font-weight: 700; letter-spacing: .08em;
  flex-shrink: 0;
}
.j-article:nth-child(2n) .j-article-stamp { background: linear-gradient(135deg, var(--p-coral-2), var(--p-coral)); }
.j-article-stamp .code { font-size: .82rem; }
.j-article-stamp .year { font-size: .68rem; opacity: .72; margin-top: .3rem; font-weight: 500; }
.j-article-body h3 { font-size: 1.02rem; font-weight: 600; color: var(--p-ink); margin: 0 0 .4rem; line-height: 1.4; }
.j-article-body h3 a { color: inherit; text-decoration: none; }
.j-article-body h3 a:hover { color: var(--p-green-2); }
.j-article-authors { font-size: .82rem; color: var(--p-muted); margin-bottom: .45rem; }
.j-article-authors i { color: var(--p-green-2); margin-right: .25rem; }
.j-article-snip { font-size: .9rem; line-height: 1.6; color: var(--p-ink-2); margin: 0 0 .75rem; }
.j-article-actions { display: flex; gap: 1rem; font-size: .82rem; }
.j-article-actions a { display: inline-flex; align-items: center; gap: .35rem; color: var(--p-green-2); font-weight: 600; text-decoration: none; }
.j-article-actions a:hover { color: var(--p-navy); }

/* ============ Editorial board ============ */
.j-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.j-member {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: .85rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: var(--p-r);
  align-items: center;
}
.j-member img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--p-line); }
.j-member-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--p-navy), var(--p-green));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.j-member-info h4 { font-size: .95rem; font-weight: 700; color: var(--p-navy); margin: 0 0 .15rem; }
.j-member-info .role { font-size: .75rem; color: var(--p-green-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .15rem; }
.j-member-info .aff { font-size: .8rem; color: var(--p-muted); line-height: 1.4; }

/* ============ Sidebar ============ */
.j-aside { position: sticky; top: 140px; align-self: start; display: flex; flex-direction: column; gap: 1rem; }
.j-aside-card {
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: var(--p-r-lg);
  padding: 1.35rem 1.5rem;
}
.j-aside-card h4 {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--p-green-2);
  margin: 0 0 .85rem;
}

.j-aside-facts ul { list-style: none; padding: 0; margin: 0; }
.j-aside-facts ul li {
  display: flex; justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--p-line-2);
  font-size: .88rem;
}
.j-aside-facts ul li:last-child { border-bottom: none; }
.j-aside-facts ul li span { color: var(--p-muted); }
.j-aside-facts ul li strong { color: var(--p-ink); font-weight: 600; }

.j-aside-submit { background: var(--p-bg-3); border-color: transparent; }
.j-aside-submit p { font-size: .88rem; color: var(--p-ink-2); line-height: 1.55; margin: 0 0 1rem; }
.j-aside-submit .p-btn { width: 100%; justify-content: center; }

.j-quick { list-style: none; padding: 0; margin: 0; }
.j-quick li { border-bottom: 1px solid var(--p-line-2); }
.j-quick li:last-child { border-bottom: none; }
.j-quick li a {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem 0;
  color: var(--p-ink); font-size: .88rem; font-weight: 500;
  text-decoration: none;
  transition: padding-left .15s, color .15s;
}
.j-quick li a:hover { color: var(--p-green-2); padding-left: .35rem; }
.j-quick li a i { color: var(--p-green-2); width: 16px; text-align: center; }

.j-aside-indexed .j-indexed-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .85rem; }
.j-aside-indexed .j-indexed-chips span {
  display: inline-block;
  font-family: var(--p-sans);
  font-size: .7rem; font-weight: 600;
  padding: .3rem .65rem;
  background: var(--p-bg-2);
  color: var(--p-ink-2);
  border-radius: 999px;
}
.j-aside-link { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--p-green-2); text-decoration: none; }
.j-aside-link:hover { color: var(--p-navy); }

/* ============ Related journals ============ */
.j-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.j-related-card {
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: var(--p-r);
  padding: 1.35rem 1.25rem;
  display: flex; flex-direction: column; gap: .4rem;
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.j-related-card:hover { border-color: var(--p-green); box-shadow: var(--p-shadow-md); color: inherit; text-decoration: none; }
.j-related-card .code { font-family: var(--p-mono); font-size: .72rem; font-weight: 700; color: var(--p-green-2); letter-spacing: .12em; }
.j-related-card h3 { font-size: 1rem; font-weight: 700; color: var(--p-navy); margin: 0; line-height: 1.35; letter-spacing: -.005em; }
.j-related-card .meta { font-family: var(--p-mono); font-size: .72rem; color: var(--p-muted); }
.j-related-card .visit { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--p-line-2); font-size: .78rem; font-weight: 600; color: var(--p-green-2); display: flex; justify-content: space-between; align-items: center; }
.j-related-card .visit i { transition: transform .15s; }
.j-related-card:hover .visit i { transform: translateX(3px); }

/* ============ CTA band ============ */
.j-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--p-navy) 0%, #1c2916 100%);
  color: #fff;
  padding: 2.5rem 2.5rem;
  border-radius: var(--p-r-lg);
  position: relative;
  overflow: hidden;
}
.j-cta::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122,156,70,.28), transparent 70%);
  filter: blur(40px);
}
body.p .j-cta h2, .j-cta h2 { color: #fff !important; font-size: 1.6rem; font-weight: 700; margin: 0 0 .5rem; letter-spacing: -.015em; position: relative; z-index: 1; }
body.p .j-cta p, .j-cta p { color: rgba(255,255,255,.8) !important; font-size: .95rem; line-height: 1.6; margin: 0; max-width: 520px; position: relative; z-index: 1; }
.j-cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; position: relative; z-index: 1; }
body.p .j-cta-actions a.p-btn-ghost,
.j-cta-actions .p-btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.3); background: transparent; }
body.p .j-cta-actions a.p-btn-ghost:hover,
.j-cta-actions .p-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff !important; border-color: rgba(255,255,255,.55); }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .j-mast-inner, .j-two-col { grid-template-columns: 1fr; }
  .j-mast-right { justify-content: flex-start; margin-top: 2rem; }
  .j-cover { max-width: 280px; }
  .j-aside { position: static; }
  .j-related { grid-template-columns: repeat(2, 1fr); }
  .j-cta { grid-template-columns: 1fr; padding: 2rem 1.75rem; }
}
@media (max-width: 640px) {
  .j-masthead { padding: 2.25rem 0 2rem; }
  .j-board, .j-related { grid-template-columns: 1fr; }
  .j-subnav { top: 56px; }
  .j-subnav-inner a { padding: .85rem .75rem; font-size: .82rem; }
  .j-article { grid-template-columns: 56px 1fr; gap: .85rem; }
  .j-article-stamp { width: 56px; height: 56px; }
}
