/* ==============================================================
   HOME — journal front page

   Pairs with front-page.php. Tokens come from base.css and
   journal.css; nothing here redefines a colour or a font.
   ============================================================== */

.iw-jwrap {
  max-width: var(--iw-max-width, 1280px);
  margin: 0 auto;
  padding: 0 28px;
}

.iw-jsec { padding: var(--iw-sec-gap, 68px) 0; }
.iw-jsec--alt {
  background: #fff;
  border-top: 1px solid var(--iw-border);
  border-bottom: 1px solid var(--iw-border);
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.iw-jhero {
  background: #fff;
  border-bottom: 1px solid var(--iw-border);
  padding: 52px 0 56px;
}

.iw-jhero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.iw-jhero-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--iw-radius);
  aspect-ratio: 16 / 11;
  background: var(--iw-navy);
}
.iw-jhero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: iw-kenburns 22s ease-out forwards;
}
@keyframes iw-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

.iw-jhero-noimg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--iw-navy) 0%, var(--iw-purple) 100%);
}

.iw-jhero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.iw-jhero-eyebrow i {
  width: 26px;
  height: 2px;
  background: var(--iw-orange);
  display: block;
  flex: none;
}

.iw-jhero-title {
  font-size: clamp(27px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.14;
  margin-bottom: 16px;
}
.iw-jhero-title a { color: var(--iw-navy); }
.iw-jhero-title a:hover { color: var(--iw-orange-t); }

.iw-jhero-excerpt {
  font-size: 15.5px;
  color: var(--iw-gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 52ch;
}

.iw-jmeta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--iw-muted);
}
.iw-jmeta-who { font-weight: 600; color: var(--iw-text); }
.iw-jsep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--iw-gray-300);
  flex: none;
}

.iw-jread {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--iw-orange-t);
  transition: gap var(--iw-t);
}
.iw-jread:hover { gap: 15px; }

/* ── Secondary headlines ── */
.iw-jhero-sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 46px;
  border-top: 1px solid var(--iw-border);
}
.iw-jhero-subitem {
  padding: 24px 28px 20px;
  border-right: 1px solid var(--iw-border);
  transition: background var(--iw-t);
  min-width: 0;
}
.iw-jhero-subitem:last-child { border-right: 0; }
.iw-jhero-subitem:hover { background: var(--iw-gray-50); }
.iw-jhero-subitem h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 9px 0;
  transition: color var(--iw-t);
}
.iw-jhero-subitem:hover h3 { color: var(--fc); }

/* ══════════════════════════════════════════
   EXPLORE BY DISCIPLINE
   ══════════════════════════════════════════ */
.iw-jdisc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--iw-border);
  border: 1px solid var(--iw-border);
  border-radius: var(--iw-radius);
  overflow: hidden;
}

.iw-jdcard {
  background: #fff;
  padding: 26px 26px 22px;
  transition: background var(--iw-t);
  min-width: 0;
}
.iw-jdcard:hover { background: var(--iw-gray-50); }

.iw-jdcard-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--iw-border);
  margin-bottom: 14px;
}
.iw-jdcard-rule {
  width: 4px;
  height: 26px;
  background: var(--fc);
  border-radius: 2px;
  flex: none;
  align-self: center;
}
.iw-jdcard h3 {
  font-size: 19px;
  font-weight: 800;
  transition: color var(--iw-t);
  min-width: 0;
  overflow-wrap: break-word;
}
.iw-jdcard-top:hover h3 { color: var(--fc); }
.iw-jdcard-n {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--iw-muted);
  white-space: nowrap;
}

.iw-jdsub { display: flex; flex-direction: column; }
.iw-jdsub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--iw-gray-700);
  border-bottom: 1px dashed var(--iw-gray-200);
  transition: color var(--iw-t), padding-left var(--iw-t);
}
.iw-jdsub a:last-child { border-bottom: 0; }
.iw-jdsub a:hover { color: var(--fc); padding-left: 5px; }
.iw-jdsub-c { font-size: 11.5px; color: var(--iw-gray-400); font-weight: 600; flex: none; }

/* Article-title fallback for disciplines with no sub-categories.
   Titles run long, so they clamp to two lines and the date stays put. */
.iw-jdsub--posts a { align-items: flex-start; }
.iw-jdsub-t {
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}
.iw-jdsub--posts .iw-jdsub-c { padding-top: 1px; white-space: nowrap; }

/* ══════════════════════════════════════════
   LATEST LISTING + RAIL
   ══════════════════════════════════════════ */
.iw-jcols {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 56px;
  align-items: start;
}
.iw-jlist { min-width: 0; }

.iw-jentry {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--iw-border);
}
.iw-jentry:first-child { padding-top: 0; }

.iw-jentry-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--iw-radius-sm);
  aspect-ratio: 4 / 3;
  background: var(--iw-gray-100);
}
.iw-jentry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.iw-jentry:hover .iw-jentry-img img { transform: scale(1.06); }
.iw-jentry-noimg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--iw-gray-200), var(--iw-gray-300));
}

.iw-jentry-body { min-width: 0; }
.iw-jentry-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fc);
  margin-bottom: 9px;
}
.iw-jentry h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 9px;
  transition: color var(--iw-t);
  overflow-wrap: break-word;
}
.iw-jentry:hover h3 { color: var(--fc); }
.iw-jentry p {
  font-size: 13.5px;
  color: var(--iw-muted);
  line-height: 1.65;
  margin-bottom: 11px;
}
.iw-jauthors { font-size: 12.5px; color: var(--iw-gray-700); }
.iw-jauthors b { font-weight: 600; }

/* ── Rail ── */
.iw-jrail {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.iw-jpanel {
  background: #fff;
  border: 1px solid var(--iw-border);
  border-radius: var(--iw-radius);
  padding: 24px;
}
.iw-jpanel-h {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
  color: var(--iw-navy);
  padding-bottom: 13px;
  border-bottom: 2px solid var(--iw-navy);
  margin-bottom: 6px;
}
.iw-jpanel-h svg { color: var(--iw-orange); flex: none; }

.iw-jmr {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--iw-gray-100);
  transition: padding-left var(--iw-t);
}
.iw-jmr:last-child { border-bottom: 0; padding-bottom: 0; }
.iw-jmr:hover { padding-left: 4px; }
.iw-jmr-num {
  font-size: 19px;
  font-weight: 800;
  color: var(--iw-gray-300);
  line-height: 1.1;
  width: 24px;
  flex: none;
  transition: color var(--iw-t);
}
.iw-jmr:hover .iw-jmr-num { color: var(--iw-orange); }
.iw-jmr-t {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--iw-navy);
  transition: color var(--iw-t);
}
.iw-jmr:hover .iw-jmr-t { color: var(--iw-orange-t); }
.iw-jmr-m { display: block; font-size: 11px; color: var(--iw-muted); margin-top: 3px; }

.iw-jauth {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--iw-gray-100);
  transition: padding-left var(--iw-t);
}
.iw-jauth:last-child { border-bottom: 0; }
.iw-jauth:hover { padding-left: 4px; }
.iw-jauth img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.iw-jauth-n { display: block; font-size: 14px; font-weight: 700; color: var(--iw-navy); }
.iw-jauth-r { display: block; font-size: 11.5px; color: var(--iw-muted); }

/* ══════════════════════════════════════════
   CALL FOR CONTRIBUTIONS
   ══════════════════════════════════════════ */
.iw-jband {
  background: linear-gradient(135deg, var(--iw-navy) 0%, #2d3478 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.iw-jband::after {
  content: "";
  position: absolute;
  right: -120px; top: -140px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}
.iw-jband .iw-jwrap { padding-top: 64px; padding-bottom: 64px; position: relative; z-index: 2; }
.iw-jband-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 56px;
  align-items: center;
}
.iw-label--onDark { color: var(--iw-yellow); }
.iw-jband h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 14px 0;
  max-width: 19ch;
}
.iw-jband p {
  color: rgba(255,255,255,.72);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 54ch;
}

/* .iw-jbtn / .iw-jbtns moved to journal.css — they are used on the
   thesis templates too, and journal.css is the only stylesheet that
   loads on every page. Only the on-dark variant stays here. */
.iw-jband .iw-jbtn--line {
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.iw-jband .iw-jbtn--line:hover { background: #fff; color: var(--iw-navy); border-color: #fff; }

.iw-jsteps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--iw-radius);
  overflow: hidden;
}
.iw-jstep {
  background: var(--iw-navy);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.iw-jstep b { font-size: 12px; font-weight: 800; color: var(--iw-yellow); width: 20px; flex: none; }
.iw-jstep span { font-size: 13px; color: rgba(255,255,255,.82); font-weight: 500; }

/* ══════════════════════════════════════════
   STATISTICS
   ══════════════════════════════════════════ */
.iw-jstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--iw-border);
  border: 1px solid var(--iw-border);
  border-radius: var(--iw-radius);
  overflow: hidden;
}
.iw-jstat { background: #fff; padding: 32px 20px; text-align: center; }
.iw-jstat-v {
  font-size: 38px;
  font-weight: 800;
  color: var(--iw-navy);
  letter-spacing: -1.5px;
  line-height: 1;
}
.iw-jstat-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--iw-muted);
  margin-top: 9px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1080px) {
  .iw-jhero-grid { grid-template-columns: 1fr; gap: 32px; }
  .iw-jcols { grid-template-columns: 1fr; gap: 44px; }
  .iw-jrail { position: static; }
  .iw-jdisc { grid-template-columns: repeat(2, 1fr); }
  .iw-jband-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  .iw-jhero { padding: 34px 0 38px; }
  .iw-jhero-sub { grid-template-columns: 1fr; margin-top: 30px; }
  .iw-jhero-subitem { border-right: 0; border-bottom: 1px solid var(--iw-border); padding: 20px 0; }
  .iw-jdisc { grid-template-columns: 1fr; }
  .iw-jstats { grid-template-columns: repeat(2, 1fr); }
  .iw-jwrap { padding: 0 18px; }
}

@media (max-width: 520px) {
  .iw-jentry { grid-template-columns: 1fr; gap: 14px; }
  .iw-jentry-img { aspect-ratio: 16 / 9; }
  .iw-jstats { grid-template-columns: 1fr; }
  .iw-jband .iw-jwrap { padding-top: 40px; padding-bottom: 40px; }
}
