/* PaxHelios — Journal (editorial blog) */

/* ============================================================ HERO */
.journal-page .jr-hero {
  padding: 64px 0 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.jr-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.jr-hero-top h1.display { font-size: clamp(64px, 9vw, 132px); }

/* Featured article — magazine cover style */
.jr-feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: stretch;
}
@media (max-width: 1000px) { .jr-feature { grid-template-columns: 1fr; } }
.jr-feature-img {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  color: white;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 100%), linear-gradient(135deg, #E68458 0%, #C8542B 100%);
}
.jr-feature-img .issue {
  position: absolute; top: 28px; left: 36px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.85);
}
.jr-feature-img .issue-n {
  font-size: 80px;
  line-height: 1;
  font-style: italic;
}
.jr-feature-img .number-grid {
  position: absolute;
  top: 50%; right: 36px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  text-align: right;
  color: rgba(255,255,255,.18);
}
.jr-feature-img .number-grid .big {
  font-size: 160px;
  line-height: .9;
  font-style: italic;
}
.jr-feature-img .lower-meta {
  position: relative; z-index: 2;
  display: flex; gap: 16px; align-items: baseline;
  font-size: 13px;
  color: rgba(255,255,255,.9);
  font-family: var(--font-sans);
  letter-spacing: .04em;
}
.jr-feature-img .lower-meta span:first-child {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .1em;
}
.jr-feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0;
}
.jr-feature-text .tag {
  display: inline-block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
}
.jr-feature-text h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 18px 0 0;
  color: var(--ink);
}
.jr-feature-text .deck {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 24px;
  max-width: 520px;
}
.jr-feature-text .byline {
  margin-top: 32px;
  display: flex; gap: 14px; align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}
.jr-feature-text .byline .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: white;
}

/* ============================================================ TABS */
.jr-tabs-section {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: var(--header-h); z-index: 30;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}
.jr-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.jr-tabs::-webkit-scrollbar { display: none; }
.jr-tabs-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.jr-tab {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.jr-tab:hover { color: var(--ink); background: var(--surface); }
.jr-tab.is-active { background: var(--ink); color: var(--bg); }

.jr-search {
  display: inline-flex;
  align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
}
.jr-search:hover { border-color: var(--ink-3); color: var(--ink); }

/* ============================================================ MAIN GRID */
.jr-main {
  padding: var(--s-10) 0;
  background: var(--bg);
}
.jr-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
}
@media (max-width: 1100px) { .jr-layout { grid-template-columns: 1fr; } }

.jr-articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 32px;
}
@media (max-width: 700px) { .jr-articles { grid-template-columns: 1fr; gap: 40px; } }

.jr-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease);
}
.jr-card:hover { transform: translateY(-2px); }
.jr-card .thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 22px;
}
.jr-card .thumb svg { width: 100%; height: 100%; display: block; }
.jr-card .thumb .number-label {
  position: absolute;
  bottom: 16px; right: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  color: rgba(255,255,255,.75);
  line-height: 1;
}
.jr-card .tag {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}
.jr-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  margin: 12px 0 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.jr-card .lede-short {
  font-family: var(--font-serif);
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
  margin-top: 14px;
}
.jr-card .byline-row {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-3);
}
.jr-card .byline-row .dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4);
}

/* Pagination / "Load more" */
.jr-loadmore {
  text-align: center;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* ============================================================ SIDEBAR */
.jr-side > * + * { margin-top: 48px; }

.jr-side h4 {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin: 0 0 24px;
  display: flex; align-items: center; gap: 10px;
}
.jr-side h4::after {
  content: ""; flex: 1; border-top: 1px solid var(--line);
}

.jr-popular {
  display: flex; flex-direction: column;
  gap: 20px;
}
.jr-popular-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  cursor: pointer;
}
.jr-popular-item:hover h5 { color: var(--accent); }
.jr-popular-item .n {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-4);
  line-height: 1.1;
}
.jr-popular-item h5 {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.jr-popular-item .meta {
  font-size: 12px; color: var(--ink-3); margin-top: 6px;
}

/* Newsletter card */
.jr-newsletter {
  background: var(--ink); color: var(--bg);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.jr-newsletter h3 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0;
  line-height: 1.1;
  color: var(--bg);
}
.jr-newsletter p {
  font-family: var(--font-serif);
  color: color-mix(in srgb, var(--bg) 75%, transparent);
  font-size: 14px;
  line-height: 1.55;
  margin: 14px 0 22px;
}
.jr-newsletter .input-row {
  display: flex; gap: 6px;
  background: color-mix(in srgb, var(--bg) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  border-radius: 999px;
  padding: 4px;
}
.jr-newsletter input {
  flex: 1; background: transparent; border: 0;
  color: var(--bg); padding: 8px 12px;
  font-size: 13px;
}
.jr-newsletter input::placeholder { color: color-mix(in srgb, var(--bg) 55%, transparent); }
.jr-newsletter button {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
}
.jr-newsletter .badge {
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--accent); opacity: .15;
}

/* Tags cloud */
.jr-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.jr-tags .tag-pill {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.jr-tags .tag-pill:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

/* Editor pick — small */
.jr-editor-pick {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  gap: 16px;
}
.jr-editor-pick .cover { width: 80px; flex-shrink: 0; }
.jr-editor-pick .by {
  font-size: 12px; color: var(--ink-3);
  margin-top: 2px;
}
.jr-editor-pick h5 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.jr-editor-pick .reason {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
