/* 06-portal.css — Phase content, phase headers, phase body layout, overview cards, task list/items/checks/tags, pathway selector, callout boxes, sidebar cards, phase progress ring, next-phase CTA, toolkit card */

/* ══════════════════════════════════════
   PHASE CONTENT
══════════════════════════════════════ */
.phase-content { display: none; }
.phase-content.active { display: block; }

.phase-header {
  background: var(--cobalt);
  padding: 44px 48px 52px;
  position: relative; overflow: hidden;
}

.phase-header::before {
  display: none;
}

/* Pathway accent stripe on phase header */
.phase-header.pathway-erv::after     { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--erv-color); }
.phase-header.pathway-nomad::after   { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--nomad-color); }
.phase-header.pathway-js::after      { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--js-color); }
.phase-header.pathway-student::after { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--student-color); }
.phase-header.pathway-family::after  { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--family-color); }

.phase-header-phase-num {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--terra-light); margin-bottom: 10px; position: relative;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  background: rgba(20, 30, 40, 0.35);
  display: inline-block;
  padding: 5px 14px 5px 12px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.phase-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400; color: white !important;
  line-height: 1.2; margin-bottom: 12px; position: relative;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 0 2px rgba(0,0,0,0.3);
}

.phase-header h1 em { font-style: italic; color: var(--gold-light) !important; }

.phase-header-sub {
  font-family: 'Spectral', serif;
  font-size: 16.5px; font-weight: 500; font-style: italic;
  color: rgba(255,255,255,0.93);
  max-width: 560px; line-height: 1.7; position: relative;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5), 0 0 2px rgba(0,0,0,0.3);
}

.phase-meta {
  display: flex; gap: 0;
  background: rgba(62, 48, 32, 0.4);
  border-top: 1px solid rgba(255,255,255,0.12);
  position: relative;
  margin-top: 14px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.phase-meta-item {
  flex: 1; padding: 12px 18px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.phase-meta-item:last-child { border-right: none; }

.phase-meta-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.78); margin-bottom: 3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.phase-meta-value {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.97);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.phase-body {
  padding: 36px 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px; align-items: start;
}

/* Cards */
.overview-card {
  background: var(--warm-white);
  border: 1px solid var(--rule);
  padding: 28px; margin-bottom: 20px;
}

.card-title {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}

.card-title::after {
  content: ''; flex: 1; height: 1px;
  background: var(--terracotta); opacity: 0.2;
}

.overview-text {
  font-family: 'Spectral', serif;
  font-size: 15px; font-weight: 300;
  line-height: 1.85; color: var(--text-mid); margin-bottom: 14px;
}

.overview-text:last-child { margin-bottom: 0; }

/* Tasks card — terracotta border */
.tasks-card {
  border: 2px solid var(--terracotta);
}

/* Task list — card grid */
.task-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.task-item {
  display: flex; flex-direction: column;
  padding: 16px;
  background: var(--warm-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.2s, border-color 0.2s;
  min-height: 120px;
}

.task-item:hover {
  box-shadow: 0 2px 8px rgba(44,31,20,0.06);
  border-color: var(--cobalt-light);
}

.task-check {
  width: 22px; height: 22px;
  border: 2px solid rgba(44,31,20,0.2);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
  margin-bottom: 10px;
}

.task-check:hover {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45,74,62,0.1);
}

.task-item.done {
  background: rgba(45,74,62,0.04);
  border-color: rgba(45,74,62,0.15);
}

.task-item.done .task-check {
  background: var(--forest); border-color: var(--forest);
  border-radius: 4px;
}
.task-item.done .task-check::after {
  content: '';
  width: 8px; height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

.task-item.done .task-text { text-decoration: line-through; color: var(--text-light); opacity: 0.6; }

.task-text {
  font-size: 12px; font-weight: 300;
  line-height: 1.55; color: var(--text);
  flex: 1;
}

.task-tag {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  align-self: flex-start;
}

.tag-action   { background: var(--cobalt-pale); color: var(--cobalt); }
.tag-document { background: var(--gold-pale); color: var(--text-mid); }
.tag-decision { background: var(--terra-pale); color: var(--terracotta); }
.tag-research { background: rgba(45,74,62,0.1); color: var(--forest); }

/* Pathway selector inside Phase 1 */
.pathway-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px; margin-bottom: 0;
}

.pathway-option {
  border: 1.5px solid var(--rule);
  padding: 14px 12px;
  cursor: pointer; transition: all 0.2s;
  position: relative;
}

.pathway-option:hover { border-color: var(--cobalt-light); background: rgba(28,58,86,0.02); }

.pathway-option.selected {
  border-color: var(--terracotta);
  background: rgba(184,92,56,0.04);
}

.pathway-option.selected::before {
  content: '\2713';
  position: absolute; top: 10px; right: 12px;
  width: 18px; height: 18px;
  background: var(--terracotta); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 18px; text-align: center;
}

.po-icon { font-size: 18px; margin-bottom: 6px; display: block; }

.po-name {
  font-family: 'Playfair Display', serif;
  font-size: 13px; font-weight: 400;
  color: var(--cobalt); margin-bottom: 3px;
}

.po-desc {
  font-size: 10px; font-weight: 300;
  color: var(--text-light-aa); line-height: 1.45;
}

.po-tag {
  display: inline-block; margin-top: 6px;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 2px 7px; color: white;
}

/* Callouts — Outfitter's Note (full-bleed) */
.insight-box {
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--gold-pale), #F5E8D0);
  margin: 24px -28px;
  position: relative;
}

.insight-box::before,
.insight-box::after {
  content: '';
  position: absolute; left: 28px; right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 80%);
  opacity: 0.25;
}

.insight-box::before { top: 0; }
.insight-box::after  { bottom: 0; }

.insight-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}

.insight-text {
  font-family: 'Spectral', serif;
  font-size: 16px; font-weight: 400; font-style: italic;
  color: var(--text); line-height: 1.7;
}

.warning-box {
  border-left: 4px solid var(--terracotta);
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--terra-pale), #F0D8CC);
  margin: 24px -28px;
  position: relative;
}

.warning-box::before,
.warning-box::after {
  content: '';
  position: absolute; left: 28px; right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--terracotta), transparent 80%);
  opacity: 0.25;
}

.warning-box::before { top: 0; }
.warning-box::after  { bottom: 0; }

.warning-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 8px;
}

.warning-text {
  font-family: 'Spectral', serif;
  font-size: 16px; font-weight: 400;
  color: var(--text); line-height: 1.7;
}

/* Sidebar cards */
.side-card {
  background: var(--warm-white);
  border: 1px solid var(--rule);
  padding: 20px; margin-bottom: 16px;
}

.side-card-title {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-light-aa); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}

.phase-progress-ring {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}

.ring-wrap {
  position: relative; width: 52px; height: 52px; flex-shrink: 0;
}

.ring-wrap svg { transform: rotate(-90deg); width: 52px; height: 52px; }
.ring-track { fill: none; stroke: var(--rule); stroke-width: 3; }
.ring-fill {
  fill: none; stroke: var(--terracotta); stroke-width: 3;
  stroke-linecap: round; transition: stroke-dashoffset 0.5s ease;
}

.ring-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: var(--cobalt);
}

.ring-meta-title { font-size: 13px; font-weight: 500; color: var(--cobalt); margin-bottom: 2px; }
.ring-meta-sub { font-size: 12px; font-weight: 300; color: var(--text-light-aa); }

.next-phase-cta {
  background: var(--terracotta); padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: background 0.2s; margin-top: 6px;
}

.next-phase-cta:hover { background: var(--terra-light); }

.next-cta-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); margin-bottom: 3px;
}

.next-cta-name { font-family: 'Playfair Display', serif; font-size: 14px; color: white; }

.next-cta-arrow {
  width: 24px; height: 1px;
  background: white; position: relative; flex-shrink: 0;
}

.next-cta-arrow::after {
  content: '';
  position: absolute; right: -1px; top: -4px;
  width: 7px; height: 7px;
  border-right: 1.5px solid white; border-top: 1.5px solid white;
  transform: rotate(45deg);
}

.toolkit-card {
  background: var(--cobalt); padding: 20px;
  position: relative; overflow: hidden;
}

.toolkit-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
}

.toolkit-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 400; color: white; margin-bottom: 6px;
}

.toolkit-card-desc {
  font-size: 12px; font-weight: 300;
  color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 14px;
}

.btn-download {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; cursor: pointer; padding: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  transition: background 0.2s;
}

.btn-download:hover { background: rgba(255,255,255,0.18); }

.info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 16px;
}

.info-cell { background: var(--parchment); padding: 12px 14px; }
.info-cell-label { font-size: 10px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light-aa); margin-bottom: 4px; }
.info-cell-value { font-size: 12px; font-weight: 400; color: var(--cobalt); }
