/* Kairo — methodology.html (heatmap console, prescription panel, fiduciary protocol cards) */
/* Load after career-architect.css */

.ca-heatmap-head {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.ca-heatmap-split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (max-width: 991px) {
  .ca-prescription-panel {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }
}

.ca-heatmap-layout {
  --ca-hm-cell-min: 6rem;
  --ca-hm-gap: 0.45rem;
  --ca-hm-pad: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  background: linear-gradient(165deg, rgba(21, 28, 44, 0.75) 0%, rgba(11, 15, 25, 0.92) 100%);
}

.ca-heatmap-y-rail {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ca-heatmap-y-axis-label {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding-inline-start: 0.15rem;
  min-width: 0;
}

.ca-heatmap-y-axis-label-text {
  display: block;
  font-size: var(--ca-text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.25;
  color: #64748b;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  transform-origin: center center;
}

.ca-heatmap-matrix-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.ca-heatmap-main {
  flex: 1;
  min-width: 0;
  max-width: none;
  width: 100%;
  margin: 0;
}

.ca-heatmap-grid {
  display: flex;
  flex-direction: column;
  gap: var(--ca-hm-gap, 0.45rem);
}

.ca-heatmap-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ca-hm-gap, 0.45rem);
}

.ca-heatmap-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: var(--ca-hm-cell-min, 5.25rem);
  padding: 0.45rem 0.35rem;
  border: 1px solid var(--ca-border);
  border-radius: 8px;
  background: rgba(11, 15, 25, 0.55);
  color: var(--ca-muted);
  font-family: inherit;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ca-heatmap-cell-title {
  display: block;
  max-width: 100%;
  font-size: clamp(0.7rem, 0.35vw + 0.62rem, 0.84rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.ca-heatmap-cell-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ca-heatmap-cell-icon-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 14px rgba(0, 0, 0, 0.25);
  color: #64748b;
  transition: color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.ca-heatmap-cell-icon-glass svg {
  width: 1.0625rem;
  height: 1.0625rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ca-heatmap-cell:hover,
.ca-heatmap-cell:focus-visible {
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--ca-text);
  outline: none;
}

.ca-heatmap-cell.is-selected {
  border-color: var(--ca-emerald);
  color: var(--ca-heading);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25);
}

.ca-heatmap-cell.ca-heatmap-pulse {
  animation: caHeatmapPulse 0.75s ease-out 1;
}

@keyframes caHeatmapPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55), 0 0 0 0 rgba(16, 185, 129, 0.15) inset;
  }
  100% {
    box-shadow: 0 0 0 14px rgba(16, 185, 129, 0), 0 0 0 0 rgba(16, 185, 129, 0) inset;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ca-heatmap-cell.ca-heatmap-pulse {
    animation: none;
  }
}

.ca-heatmap-x-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  font-size: var(--ca-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.ca-heatmap-x-title {
  text-align: center;
  font-size: var(--ca-text-xs);
  padding-top: 0.3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (min-width: 992px) {
  .ca-heatmap-split {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(2rem, 4vw, 3rem);
  }

  .ca-heatmap-layout {
    flex: 1 1 60%;
    max-width: 60%;
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }

  .ca-heatmap-matrix-body {
    flex: 1;
    min-height: 0;
  }

  .ca-prescription-panel {
    flex: 1 1 40%;
    max-width: 40%;
    min-width: 0;
    align-self: stretch;
  }
}

.ca-prescription-panel {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ca-prescription-panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.45rem;
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ca-prescription-panel-inner.ca-prescription-leave {
  opacity: 0;
  transform: translateX(12px);
}

.ca-prescription-panel-inner.ca-prescription-enter {
  animation: caPrescriptionEnter 0.32s ease forwards;
}

@keyframes caPrescriptionEnter {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ca-prescription-panel-inner,
  .ca-prescription-panel-inner.ca-prescription-leave,
  .ca-prescription-panel-inner.ca-prescription-enter {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.ca-type-kicker--muted {
  font-size: var(--ca-text-bridge);
  letter-spacing: 0.16em;
  color: var(--ca-muted);
  margin-bottom: 0.45rem;
}

.ca-prescription-persona {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #10b981;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.ca-prescription-read {
  margin-bottom: 1.15rem;
}

.ca-prescription-read-label {
  font-size: var(--ca-text-bridge);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #64748b;
  margin: 0 0 0.35rem;
}

.ca-prescription-read-body {
  font-size: var(--ca-text-lead);
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0;
}

.ca-prescription-protocol-label {
  font-size: var(--ca-text-bridge);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #64748b;
  margin: 0 0 0.55rem;
}

.ca-prescription-protocol-card {
  border-radius: 10px;
  border: 2px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  padding: 0.5rem;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ca-prescription-protocol-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.ca-prescription-protocol-icon-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.ca-prescription-protocol-icon-glass svg {
  width: 58%;
  height: 58%;
  display: block;
  fill: none;
  stroke: #10b981;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ca-prescription-protocol-meta {
  min-width: 0;
}

.ca-prescription-protocol-code {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.ca-prescription-protocol-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0;
  line-height: 1.25;
}

.ca-prescription-protocol-objective {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fbbf24;
  margin: 0 0 0.55rem;
}

.ca-prescription-protocol-desc {
  font-size: var(--ca-text-caption);
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}

.ca-prescription-cta {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  margin-top: auto;
}

.ca-heatmap-section {
  position: relative;
  border-top: none;
  border-bottom: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.55) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(2, 6, 23, 0.5) 100%),
    radial-gradient(100% 60% at 50% 0%, rgba(16, 185, 129, 0.06), transparent 55%);
}

.ca-methodology-deep {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ca-methodology-deep::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.52;
  background:
    linear-gradient(118deg, rgba(226, 232, 240, 0.12) 0%, transparent 44%),
    linear-gradient(205deg, rgba(148, 163, 184, 0.09) 0%, transparent 40%),
    repeating-linear-gradient(
      105deg,
      transparent 0 52px,
      rgba(255, 255, 255, 0.035) 52px 53px,
      transparent 53px 104px
    ),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 68px),
    radial-gradient(ellipse 120% 65% at 78% 0%, rgba(148, 163, 184, 0.16), transparent 58%),
    radial-gradient(ellipse 85% 55% at 12% 92%, rgba(16, 185, 129, 0.06), transparent 56%);
}

.ca-methodology-deep::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.94) 48%,
    rgba(15, 23, 42, 0.97) 100%
  );
}

.ca-methodology-deep .ca-container {
  position: relative;
  z-index: 1;
}

.ca-methodology-deep.ca-section-alt {
  background: transparent;
}

.ca-methodology-deep-head p {
  max-width: 66rem;
}

.ca-meth-deep-card-lead strong {
  color: #e2e8f0;
  font-weight: 700;
}

.ca-meth-deep-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .ca-meth-deep-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ca-meth-deep-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid #10b981;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.35rem 1.25rem 1.3rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ca-meth-deep-card-title {
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ca-heading);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.ca-meth-deep-card-lead {
  color: var(--ca-text);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.55rem;
}

.ca-meth-deep-card-body {
  color: #fbbf24;
  font-size: var(--ca-text-sm);
  font-weight: 600;
  line-height: 1.6;
}

.ca-heatmap-y-rail {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  gap: 0;
  min-width: 2.35rem;
}

.ca-heatmap-x-wrap {
  gap: 0;
}

.ca-heatmap-x-title {
  padding-top: 0;
  border-top: none;
  width: 100%;
}

.ca-heatmap-layout {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ca-heatmap-grid {
  padding: 0.65rem 0.55rem;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ca-heatmap-cell {
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(100, 116, 139, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 1;
  color: rgba(148, 163, 184, 0.92);
  min-height: 8rem;
}

.ca-heatmap-cell-title {
  color: rgba(148, 163, 184, 0.95);
  font-size: clamp(0.86rem, 0.48vw + 0.74rem, 1.04rem);
  line-height: 1.2;
}

.ca-heatmap-cell:hover,
.ca-heatmap-cell:focus-visible {
  opacity: 1;
  color: var(--ca-text);
}

.ca-heatmap-cell:hover .ca-heatmap-cell-title,
.ca-heatmap-cell:focus-visible .ca-heatmap-cell-title {
  color: var(--ca-text);
}

.ca-heatmap-cell.is-selected {
  opacity: 1;
  color: var(--ca-heading);
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.14);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.55),
    0 0 36px rgba(16, 185, 129, 0.32);
}

.ca-heatmap-cell.is-selected .ca-heatmap-cell-title {
  color: var(--ca-heading);
}

.ca-heatmap-cell .ca-heatmap-cell-icon-glass {
  color: #64748b;
}

.ca-heatmap-cell:hover .ca-heatmap-cell-icon-glass,
.ca-heatmap-cell:focus-visible .ca-heatmap-cell-icon-glass {
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.38);
}

.ca-heatmap-cell.is-selected .ca-heatmap-cell-icon-glass {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 28px rgba(16, 185, 129, 0.55),
    0 0 0 1px rgba(16, 185, 129, 0.22);
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5));
}

@media (min-width: 992px) {
  .ca-heatmap-console {
    align-items: stretch;
    min-height: clamp(21rem, 40vh, 29rem);
  }

  .ca-heatmap-matrix-body {
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }

  .ca-heatmap-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  .ca-heatmap-grid {
    flex: 1 1 auto;
  }
}

.ca-methodology-bridge {
  padding: 0.5rem 0;
  text-align: center;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.72);
}
