/* careeraid.dk – kun til ikigai-siden (lægges oven på style.css) */

/* ---------- Diagrammet ---------- */

.ik-figure {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
  padding: 16px 16px 12px;
  width: 100%;
  max-width: 460px;
  justify-self: center;
}
.ik-svg {
  display: block;
  width: 100%;
  height: auto;
}
.ik-svg text {
  font-family: var(--sans);
  text-anchor: middle;
}
.ik-main {
  font-size: 20px;
  font-weight: 800;
  fill: var(--ink);
}
.ik-pair {
  font-size: 18px;
  font-weight: 750;
  fill: var(--accent);
}
.ik-center {
  font-size: 23px;
  font-weight: 800;
  fill: var(--black);
}
.ik-fill {
  fill: rgba(0, 0, 0, 0.06);
}
.ik-ring {
  fill: none;
  stroke: var(--black);
  stroke-width: 3;
}
.ik-figure figcaption {
  margin-top: 4px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Cirklerne folder sig ud én ad gangen, og midten lyser op til sidst */
@keyframes ik-bloom {
  from {
    opacity: 0;
    transform: scale(0.55);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ik-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.ik-a {
  transform-box: fill-box;
  transform-origin: center;
  animation: ik-bloom 1s var(--ease-out) both;
}
.ik-a1 {
  animation-delay: 0.45s;
}
.ik-a2 {
  animation-delay: 0.6s;
}
.ik-a3 {
  animation-delay: 0.75s;
}
.ik-a4 {
  animation-delay: 0.9s;
}
.ik-core {
  animation: ik-fade 0.8s ease-out 1.35s both;
}
.ik-labels {
  animation: ik-fade 0.7s ease-out 1.5s both;
}

/* ---------- Små "næsten"-kort ---------- */

.ik-almost {
  display: grid;
  gap: 12px;
  margin: 20px 0 16px;
}
.ik-almost .card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 14px;
  align-items: start;
}
.ik-almost .card h3 {
  margin: 0;
}
.ik-almost .card p {
  grid-column: 2;
}
.ik-dots {
  width: 40px;
  height: 40px;
  grid-row: span 2;
}
.ik-dots .on {
  fill: var(--accent);
}
.ik-dots .off {
  fill: none;
  stroke: var(--bad);
  stroke-width: 1.6;
  stroke-dasharray: 2.6 2.4;
}
.ik-dots .dim {
  fill: var(--tint);
  stroke: #d6d6d1;
  stroke-width: 1.2;
}
/* ---------- Øvelsen ---------- */

.ik-step {
  padding: 24px 0 8px;
}
.ik-step + .ik-step {
  border-top: 1px solid var(--line);
}
.ik-step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.ik-step-head .ik-dots {
  flex: none;
}
.ik-step-head h3 {
  margin: 0;
  font-size: 1.3rem;
}
.ik-step .callout {
  margin: 14px 0 8px;
}

/* Skrivelinjer vises kun på print, så siden kan bruges som arbejdsark */
.ik-write {
  display: none;
}

/* ---------- Fra ikigai til overskrift (mørk sektion) ---------- */

.ik-map {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ik-map li {
  display: grid;
  gap: 2px 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ik-slot {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--sand);
}
.ik-from {
  color: rgba(255, 255, 255, 0.85);
}
.plan .note {
  color: var(--ink);
}
.plan .formula {
  color: var(--ink);
}

@media (min-width: 40rem) {
  .ik-almost {
    grid-template-columns: 1fr 1fr;
  }
  .ik-map li {
    grid-template-columns: 17rem 1fr;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ik-a,
  .ik-core,
  .ik-labels {
    animation: none !important;
  }
}

@media print {
  .ik-a,
  .ik-core,
  .ik-labels {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ik-figure {
    box-shadow: none;
    border: 1px solid #999;
    max-width: 120mm;
    margin: 6pt auto 0;
    break-inside: avoid;
  }
  .ik-almost .card,
  .ik-map li {
    break-inside: avoid;
  }
  .ik-step {
    break-inside: avoid;
  }
  .ik-write {
    display: block;
    margin: 4pt 0 10pt;
  }
  .ik-write span {
    display: block;
    height: 9mm;
    border-bottom: 0.6pt solid #888;
  }
  .ik-map li {
    background: none;
    border: 1px solid #999;
  }
  .ik-slot,
  .ik-from {
    color: #000;
  }
}
