/* ================================================================
   AriRDC — Page-level extensions
   Loaded after app.css on every inner page.
   ================================================================ */

/* ---------- Page hero (dark band with breadcrumbs) ---------- */
.phero {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(48px, 5.6vw, 88px) 0;
  position: relative;
  overflow: hidden;
}
.phero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(200,16,46,.18), transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(200,16,46,.1), transparent 55%);
  pointer-events: none;
}
.phero .wrap { position: relative; z-index: 2; }
.phero h1 { color: #fff; max-width: 22ch; }
.phero .lead { color: #c4c8d3; max-width: 62ch; }
.phero .eyebrow { color: #ff8a99; margin-bottom: .8rem; }

.crumbs {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .08em;
  color: #8A90A0; margin-bottom: 16px;
  text-transform: uppercase;
}
.crumbs a { color: #A9AFBE; }
.crumbs a:hover { color: #fff; }

/* ---------- Sticky sub-nav ---------- */
.subnav {
  position: sticky;
  top: 76px;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav .wrap {
  display: flex; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  padding: 10px 0;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  font-size: .88rem; font-weight: 500;
  color: var(--mute);
  padding: .5em 1em;
  border-radius: 99px;
  white-space: nowrap;
  transition: .16s;
}
.subnav a:hover { background: var(--red-soft); color: var(--red); }
.subnav a.on { background: var(--ink-2); color: #fff; }
@media (max-width: 900px) { .subnav { top: 0; } }

/* ---------- Section blocks with anchors ---------- */
.blk { padding: 40px 0 8px; scroll-margin-top: 130px; }
.blk h2 { margin-bottom: .6em; }
.blk h3 { margin-top: 1.4em; margin-bottom: .6em; }
.blk:first-child { padding-top: 8px; }

/* ---------- Data tables ---------- */
.tw {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  box-shadow: var(--sh);
  background: var(--paper);
}
.tw table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 560px;
}
.tw th {
  text-align: left;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid var(--line-2);
  background: var(--cream);
}
.tw td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--mute);
}
.tw td:first-child { color: var(--text); font-weight: 600; }
.tw tbody tr:hover { background: var(--cream); }
.tw tbody tr:last-child td { border-bottom: none; }

/* ---------- Accordion ---------- */
details.acc {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--rad-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
details.acc summary {
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 600;
  list-style: none;
  display: flex; justify-content: space-between; gap: 14px;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 1.2rem;
  line-height: 1;
}
details.acc[open] summary::after { content: "–"; }
details.acc .b {
  padding: 0 20px 18px;
  color: var(--mute);
  font-size: .94rem;
}

/* ---------- Vertical timeline ---------- */
.tl {
  border-left: 2px solid var(--line-2);
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}
.tl li {
  padding: 0 0 24px 24px;
  position: relative;
  color: var(--mute);
}
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: "";
  position: absolute;
  left: -8px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--red);
}
.tl li b {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .1em;
  color: var(--red);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.tl li h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--text);
}
.tl li p { margin: 0; font-size: .92rem; }

/* ---------- Wizard ---------- */
.wizard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: clamp(24px, 3vw, 44px);
  box-shadow: var(--sh);
}
.wiz-bar {
  height: 6px;
  background: var(--cream-2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
}
.wiz-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--red-2), var(--red));
  transition: width .4s var(--ease);
}
.wiz-steps {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 30px;
}
.wiz-steps span {
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase;
  padding: .38em .85em;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--faint);
}
.wiz-steps span.done {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}
.wiz-steps span.on {
  background: var(--ink-2);
  color: #fff;
  border-color: var(--ink-2);
}
.step { display: none; }
.step.on { display: block; animation: fade .3s var(--ease); }
.step h3 { margin-bottom: .2em; }
.step .hint { color: var(--mute); font-size: .9rem; margin-bottom: 22px; }
.step .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .step .grid2 { grid-template-columns: 1fr; } }
.step .fieldset { margin-bottom: 6px; }
.wiz-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.wiz-nav .btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.wiz-summary {
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  overflow: hidden;
  margin-top: 12px;
}
.wiz-summary div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.wiz-summary div:last-child { border-bottom: none; }
.wiz-summary span:first-child { color: var(--mute); }
.wiz-summary span:last-child { font-weight: 600; text-align: right; }

/* ---------- Status pill (used by wizard & forms) ---------- */
.status {
  padding: 12px 16px;
  border-radius: var(--rad-sm);
  font-size: .9rem;
  display: none;
  margin-top: 18px;
}
.status.ok,
.status.err {
  display: block;
  background: var(--red-soft);
  border: 1px solid var(--red);
  color: var(--red);
}

/* ---------- Auth split ---------- */
.auth {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: calc(100vh - 118px);
}
.auth .visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #1C1D1C, #2F3336 55%, #3A2F14);
}
.auth .visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(200,16,46,.42), transparent 52%),
    radial-gradient(circle at 82% 72%, rgba(255,84,104,.28), transparent 55%);
}
.auth .visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 40px, rgba(255,255,255,.03) 40px, rgba(255,255,255,.03) 41px),
    repeating-linear-gradient(90deg, transparent 0, transparent 40px, rgba(255,255,255,.03) 40px, rgba(255,255,255,.03) 41px);
}
.auth .visual .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(28px, 4vw, 52px);
  z-index: 3;
  color: #fff;
}
.auth .visual .cap .eyebrow { color: #ffd0d7; }
.auth .visual .cap h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  margin-bottom: .3em;
}
.auth .visual .cap p { color: #c9c7be; margin: 0; max-width: 44ch; }

.auth .panel {
  display: grid;
  place-items: center;
  padding: clamp(30px, 5vw, 68px) 28px;
  background: var(--paper);
}
.auth .panel .card {
  width: 100%; max-width: 440px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.auth .panel h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .2em; }
.auth .tabs {
  display: flex; gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.auth .tabs button {
  background: none; border: 0;
  padding: 12px 0;
  font: 500 1rem var(--font-body);
  color: var(--mute);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth .tabs button.on { color: var(--text); border-color: var(--red); }

.auth .social {
  display: flex; gap: 10px;
  margin: 20px 0;
}
.auth .social a {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: var(--rad-sm);
  padding: .7em;
  font-size: .85rem;
  font-weight: 600;
  color: var(--mute);
  transition: .16s;
}
.auth .social a:hover { border-color: var(--red); color: var(--red); }
.auth .or {
  display: flex; align-items: center; gap: 12px;
  color: var(--faint);
  font-size: .78rem;
  margin: 16px 0;
}
.auth .or::before,
.auth .or::after {
  content: ""; height: 1px; background: var(--line); flex: 1;
}
.auth .alt-link { font-size: .9rem; color: var(--mute); margin-top: 18px; }
.auth .alt-link a { color: var(--red); font-weight: 600; }
.auth .frm { display: grid; gap: 16px; margin-top: 20px; }
.auth .frm button { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: auto; }
  .auth .visual { min-height: 220px; }
}

/* ---------- Journal card ---------- */
.jcard {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 24px;
  box-shadow: var(--sh);
  transition: .2s;
}
.jcard:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: var(--sh-lg);
}
@media (max-width: 700px) {
  .jcard { grid-template-columns: 90px 1fr; gap: 18px; padding: 20px; }
}
.jcard .cover {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--ink-2), var(--red));
  color: #fff;
  display: flex; align-items: flex-end;
  padding: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 8px;
}
.jcard h3 { margin-bottom: .2em; }
.jcard .meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--faint);
  margin-bottom: .6em;
}
.jcard p { color: var(--mute); font-size: .93rem; margin: 0 0 .6em; }
.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.spec div {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.spec b {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .35em;
}
.spec span { font-size: .92rem; font-weight: 600; }

/* ---------- Faculty / person card ---------- */
.person {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: .2s;
}
.person:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--red);
}
.person .avatar {
  height: 140px;
  background: linear-gradient(140deg, var(--red-soft), var(--cream-2));
  display: grid;
  place-items: center;
}
.person .avatar .initials {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--red);
}
.person .pb { padding: 18px; }
.person h3 { font-size: 1.05rem; margin: 0 0 .2em; }
.person .role {
  font-size: .82rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: .4em;
}
.person .meta { font-size: .82rem; color: var(--mute); margin: 0; }

/* ---------- Pillar card (numbered domains) ---------- */
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: .22s;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--red);
}
.pillar .ph {
  height: 100px;
  background: linear-gradient(135deg, var(--red-soft), var(--cream-2));
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.pillar .ph .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red);
  opacity: .7;
  line-height: 1;
}
.pillar .pb { padding: 20px; }
.pillar h3 { font-size: 1.08rem; margin: 0 0 .35em; }
.pillar p { font-size: .9rem; color: var(--mute); margin: 0; }
.pillar .tag { margin-top: 10px; }

/* ---------- Info card ---------- */
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 24px;
  box-shadow: var(--sh);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.info-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: var(--sh-lg);
}
.info-card h3 { font-size: 1.05rem; margin: 0 0 .4em; }
.info-card p { color: var(--mute); font-size: .92rem; margin: 0; }

/* ---------- Dark surface variants (investor page) ---------- */
.sec.dark .info-card,
.sec.dark .card,
.sec.dark .person,
.sec.dark .pillar,
.sec.dark details.acc,
.sec.dark .tw {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.15);
}
.sec.dark .info-card h3,
.sec.dark .card h3,
.sec.dark .person h3,
.sec.dark .pillar h3,
.sec.dark details.acc summary { color: #fff; }
.sec.dark .info-card p,
.sec.dark .card p,
.sec.dark .person .meta,
.sec.dark .pillar p,
.sec.dark details.acc .b,
.sec.dark .tw td { color: #c4c8d3; }
.sec.dark .tw th {
  background: rgba(255,255,255,.04);
  color: #c4c8d3;
  border-color: rgba(255,255,255,.12);
}
.sec.dark .tw td { border-color: rgba(255,255,255,.08); }
.sec.dark .tw td:first-child { color: #fff; }
.sec.dark .tw tbody tr:hover { background: rgba(255,255,255,.04); }
.sec.dark .tl { border-color: rgba(255,255,255,.2); }
.sec.dark .tl li b { color: var(--red); }
.sec.dark .tl li h4 { color: #fff; }
.sec.dark .tl li p { color: #c4c8d3; }
.sec.dark .tl li::before { background: var(--ink); }

/* ---------- List styles (tick / dot) ---------- */
ul.tk {
  list-style: none; padding: 0; margin: 0 0 1em;
}
ul.tk li {
  position: relative;
  padding-left: 28px;
  margin-bottom: .65em;
  color: var(--mute);
}
ul.tk li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 9px; height: 9px;
  border: 1.6px solid var(--red);
  border-radius: 50%;
}
ul.tk li b { color: var(--text); }
.sec.dark ul.tk li { color: #c4c8d3; }
.sec.dark ul.tk li b { color: #fff; }
.sec.dark ul.tk li::before { border-color: var(--red); }

/* ==========================================================
   CONNECTED HORIZONTAL PIPELINE (CARD STYLE WITH CONNECTOR)
   Phase 1 ----- Phase 2 ----- Phase 3
   ========================================================== */
.h-pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 32px;
  position: relative;
  overflow-x: auto;
  padding: 12px 4px 24px 4px;
  scrollbar-width: thin;
}
.h-pipeline::-webkit-scrollbar {
  height: 6px;
}
.h-pipeline::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 10px;
}
.h-pipeline-item {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 220px;
  position: relative;
}
.h-pipeline-card {
  flex: 1;
  background: var(--paper, #fff);
  border: 1.5px solid var(--line, #e2e4e9);
  border-radius: var(--rad, 10px);
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s;
  z-index: 2;
}
.h-pipeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.12);
}
.h-pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.h-pipeline-step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
}
.h-pipeline-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}
.h-pipeline-card h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}
.h-pipeline-card p {
  font-size: 0.88rem;
  color: var(--mute);
  line-height: 1.55;
  margin: 0;
}
.h-pipeline-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.h-pipeline-connector::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0, var(--red) 7px, transparent 7px, transparent 12px);
}
.h-pipeline-connector::after {
  content: "▸";
  color: var(--red);
  font-size: 15px;
  font-weight: bold;
  background: var(--bg);
  padding: 0 3px;
  position: relative;
  z-index: 2;
}
.h-pipeline-item:last-child .h-pipeline-connector {
  display: none;
}
@media (max-width: 900px) {
  .h-pipeline {
    flex-direction: column;
    gap: 16px;
  }
  .h-pipeline-item {
    flex-direction: column;
    min-width: 100%;
  }
  .h-pipeline-connector {
    width: 100%;
    height: 32px;
  }
  .h-pipeline-connector::before {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(180deg, var(--red) 0, var(--red) 6px, transparent 6px, transparent 10px);
  }
  .h-pipeline-connector::after {
    content: "▾";
  }
}
