/* development.css - TRL readiness cards + animated timeline. */
.development-page h1, .development-page h2, .development-page h3 { text-align: left; }
.development-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); gap: 24px; align-items: center; }
.development-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }

.readiness-stack { display: grid; gap: 14px; }
.readiness-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border-top: 5px solid var(--primary); }
.readiness-card.is-working { border-top-color: var(--coral); }
.readiness-card.is-working strong { color: var(--coral); }
.readiness-card strong { display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--primary); }
.readiness-card span { display: block; margin: 8px 0 4px; font-weight: 700; color: var(--ink); }
.readiness-card p { margin: 6px 0 0; color: var(--muted); font-size: .96rem; }

/* timeline (radio tabs) */
.trl-radio { position: absolute; width: 1px; height: 1px; opacity: 0; }
.trl-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(92px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 32px 0 18px;
}
.trl-map::before {
  content: "";
  position: absolute;
  left: 48px;
  right: 48px;
  top: 67px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0 68%, #d7dde3 68% 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.trl-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 92px;
  padding: 0 4px;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: transform .22s var(--ease-out);
}
.trl-step:hover,
.trl-step:focus-visible { transform: translateY(-4px); outline: none; }
.trl-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 4px solid #fff;
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.45rem;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 129, 167, .35), 0 8px 20px rgba(6, 53, 67, .14);
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), background .22s var(--ease-out);
}
.trl-step.done .trl-num,
.trl-step.current .trl-num { background: var(--primary); }
.trl-step.next .trl-num { background: var(--coral); box-shadow: 0 0 0 8px rgba(255, 107, 53, .22), 0 8px 20px rgba(255, 107, 53, .18); }
.trl-step.future .trl-num { background: #f1f5f9; color: var(--muted); box-shadow: 0 0 0 2px #cfd7df, 0 8px 18px rgba(15, 23, 42, .08); }
.trl-step.done::after,
.trl-step.current::after {
  content: "\2713";
  position: absolute;
  top: -9px;
  right: calc(50% - 42px);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 129, 167, .28);
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(6, 53, 67, .12);
}
.trl-step.current .trl-num { box-shadow: 0 0 0 8px rgba(0, 175, 185, .28), 0 10px 24px rgba(6, 53, 67, .18); }
.trl-step:hover .trl-num { transform: scale(1.05); }
.trl-step-label { font-size: .82rem; font-weight: 800; color: #334155; line-height: 1.14; min-height: 2.5em; }
.trl-step-date {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid #d8dee6;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .04);
}

/* active step (the checked radio's label) */
#trl-1:checked ~ .trl-map label[for="trl-1"] .trl-num,
#trl-2:checked ~ .trl-map label[for="trl-2"] .trl-num,
#trl-3:checked ~ .trl-map label[for="trl-3"] .trl-num,
#trl-4:checked ~ .trl-map label[for="trl-4"] .trl-num,
#trl-5:checked ~ .trl-map label[for="trl-5"] .trl-num,
#trl-6:checked ~ .trl-map label[for="trl-6"] .trl-num,
#trl-7:checked ~ .trl-map label[for="trl-7"] .trl-num,
#trl-8:checked ~ .trl-map label[for="trl-8"] .trl-num,
#trl-9:checked ~ .trl-map label[for="trl-9"] .trl-num {
  box-shadow: 0 0 0 8px rgba(0, 129, 167, .16), 0 0 0 10px rgba(0, 129, 167, .5), 0 12px 28px rgba(6, 53, 67, .16);
}
#trl-7:checked ~ .trl-map label[for="trl-7"] .trl-num {
  box-shadow: 0 0 0 8px rgba(255, 107, 53, .18), 0 0 0 10px rgba(255, 107, 53, .42), 0 12px 28px rgba(255, 107, 53, .2);
}

/* keyboard focus on the active step */
#trl-1:focus-visible ~ .trl-map label[for="trl-1"],
#trl-2:focus-visible ~ .trl-map label[for="trl-2"],
#trl-3:focus-visible ~ .trl-map label[for="trl-3"],
#trl-4:focus-visible ~ .trl-map label[for="trl-4"],
#trl-5:focus-visible ~ .trl-map label[for="trl-5"],
#trl-6:focus-visible ~ .trl-map label[for="trl-6"],
#trl-7:focus-visible ~ .trl-map label[for="trl-7"],
#trl-8:focus-visible ~ .trl-map label[for="trl-8"],
#trl-9:focus-visible ~ .trl-map label[for="trl-9"] { outline: 3px solid var(--secondary); outline-offset: 4px; }

/* panels - only the checked one shows */
.trl-panel { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; animation: trl-panel-in .28s var(--ease-out); }
#trl-1:checked ~ .trl-panels #trl-panel-1,
#trl-2:checked ~ .trl-panels #trl-panel-2,
#trl-3:checked ~ .trl-panels #trl-panel-3,
#trl-4:checked ~ .trl-panels #trl-panel-4,
#trl-5:checked ~ .trl-panels #trl-panel-5,
#trl-6:checked ~ .trl-panels #trl-panel-6,
#trl-7:checked ~ .trl-panels #trl-panel-7,
#trl-8:checked ~ .trl-panels #trl-panel-8,
#trl-9:checked ~ .trl-panels #trl-panel-9 { display: block; }

.trl-panel-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.trl-eyebrow { margin: 0 0 4px; font-family: var(--serif); color: var(--primary); font-weight: 700; }
.trl-panel h3 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.trl-date { margin: 6px 0 0; color: var(--muted); font-weight: 700; }
.trl-status { border: 1px solid var(--line); border-radius: 999px; background: var(--neutral3); padding: 6px 12px; white-space: nowrap; font-weight: 700; font-size: .85rem; }
.trl-status[data-status="Current level"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.trl-status[data-status="Next milestone"] { background: var(--coral); color: #fff; border-color: var(--coral); }
.trl-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-block { border-top: 1px solid var(--line); padding-top: 12px; }
.detail-block h4 { margin: 0 0 6px; font-family: var(--serif); }
.detail-block ul { margin: 0; padding-left: 20px; }
.detail-block li { margin-bottom: 6px; }

.trl-video { margin-top: 16px; }
.trl-video summary { display: inline-flex; cursor: pointer; font-weight: 800; color: #fff; background: var(--primary); border-radius: 999px; padding: 9px 15px; box-shadow: 0 14px 28px rgba(0, 129, 167, .16); transition: background .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.trl-video summary:hover { background: var(--coral); transform: translateY(-2px); box-shadow: 0 18px 34px rgba(255, 107, 53, .24); }
.trl-video video { width: 100%; max-height: 70vh; margin-top: 12px; border-radius: var(--radius); background: #000; }

.position-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.position-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border-top: 5px solid var(--secondary); }
.position-panel:nth-child(2) { border-top-color: var(--coral); }

.development-note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.development-note-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.development-note-card:nth-child(even) { border-top-color: var(--coral); }
.development-note-card .meta { color: var(--muted); font-size: .85rem; font-weight: 700; margin: 0 0 8px; }
.development-note-card p { color: var(--muted); }
.development-notes-cta,
.development-back-link { margin-top: 24px; }

@media (max-width: 860px) {
  .development-hero, .trl-detail-grid, .position-grid, .development-note-grid { grid-template-columns: 1fr; }
  .trl-map { grid-template-columns: repeat(9, 118px); }
  .trl-map::before { left: 58px; right: 58px; }
}

@keyframes trl-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
