/* Compact, self-contained component cards. */
.info-card {
  --card-muted: #aebdc7;
  left: 42px; top: 122px; width: 382px;
  max-height: calc(100dvh - 258px);
  color: #edf3f6; background: #18222bf7;
  border: 1px solid #b7cfdf38; border-radius: 14px;
  box-shadow: 0 24px 70px #07101866, inset 0 1px 0 #ffffff08;
  backdrop-filter: blur(20px);
  overflow: hidden; isolation: isolate;
}
.card-top { padding: 16px 18px 0; gap: 12px; }
.card-category { display: flex; align-items: center; gap: 10px; }
.card-number {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid #fa794754; border-radius: 7px;
  color: #ffa174; background: #fa79470b;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.card-top .eyebrow { color: #c1cdd5; font-size: 9px; letter-spacing: 1.35px; }
.info-card .close-button {
  width: 34px; height: 34px; flex-shrink: 0; color: #b6c4ce;
  border: 1px solid #b7cfdf20; border-radius: 50%; background: transparent;
  transition: background .18s, color .18s;
}
.info-card .close-button:hover { background: #ffffff10; color: #fff; }
.info-card .close-button svg { width: 16px; height: 16px; }
.card-body { padding: 0 20px 18px; scrollbar-color: #637583 transparent; overscroll-behavior: contain; }
.card-body:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.card-body h2 {
  margin: 10px 0 8px; font-size: 30px; line-height: 1.2;
  font-weight: 550; letter-spacing: -1.05px; color: #f4f7f9;
}
.card-body #infoCopy { display: block; font-size: 13px; line-height: 1.6; color: #bcc9d2; margin: 0; }
.info-graphic {
  margin: 18px 0 16px; padding: 0; width: 100%;
  background: #101b24; border: 1px solid #8cabb824; border-radius: 8px;
  overflow: hidden; color: #d9e5ed;
}
.technical-figure { margin: 0; }
.technical-figure figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 11px 12px 6px; font-size: 8px; font-weight: 550;
  letter-spacing: 1.1px; color: #acbecb;
}
.diagram-state { font-size: 7px; font-weight: 400; letter-spacing: .75px; color: #8fa5b5; }
.info-graphic svg { display: block; width: 100%; height: auto; aspect-ratio: 420/246; overflow: hidden; }
.diagram-label { font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.diagram-label.small { font-size: 12px; }
.diagram-state { display: inline-flex; align-items: center; gap: 5px; }
.diagram-state i { width: 4px; height: 4px; background: #8da9ba; border-radius: 50%; }
.diagram-legend {
  display: flex; gap: 14px; padding: 9px 12px 11px; border-top: 1px solid #99bdd21a;
  font-size: 10px; color: #b7cbd9; line-height: 1.35;
}
.diagram-legend span { display: flex; align-items: center; gap: 5px; }
.diagram-legend i { height: 2px; width: 11px; background: var(--legend-color); flex-shrink: 0; }
.info-card .diagram-legend { display: none; }
.component-roles { margin: 0; display: grid; gap: 12px; }
.component-role { position: relative; padding-left: 13px; }
.component-role:before {
  content: ''; position: absolute; left: 0; top: 5px; bottom: 3px;
  width: 2px; border-radius: 2px; background: var(--role-color);
}
.component-role.cold { --role-color: #70d8ed; }
.component-role.warm { --role-color: #ff955f; }
.component-role dt { color: var(--role-color); font-size: 12px; line-height: 1.4; font-weight: 550; }
.component-role dd { margin: 3px 0 0; color: #b9c7d0; font-size: 12px; line-height: 1.5; }
.info-card .card-footer {
  padding: 10px 14px; gap: 12px; background: #121c25;
  border-top: 1px solid #adc8db24; min-height: 62px;
}
.card-arrow, .card-next {
  border: 1px solid #bed3e52b; background: transparent; border-radius: 7px;
  min-height: 40px; transition: background .18s, border-color .18s;
}
.card-arrow { width: 40px; flex-shrink: 0; display: grid; place-items: center; color: #c3d1db; }
.card-arrow svg, .card-next svg { width: 17px; height: 17px; }
.card-next { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-left: auto; padding: 6px 10px; min-width: 139px; text-align: left; color: #f0f4f7; }
.card-next>span { display: grid; gap: 3px; }
.card-next small { color: #9fb0bd; font-size: 7px; letter-spacing: 1.2px; font-weight: 500; }
.card-next strong { font-size: 12px; font-weight: 550; }
.card-next svg { color: #ffa174; flex-shrink: 0; }
.card-arrow:hover, .card-next:hover { background: #ffffff0b; border-color: #fa79477a; }
.card-pagination { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.card-pagination #infoIndex { color: #b3c2cd; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.card-progress { display: flex; gap: 3px; }
.card-progress i { width: 10px; height: 2px; background: #60758466; border-radius: 1px; }
.card-progress i.active { background: #ffa174; }
.diagram-rotor { transform-box: view-box; transform-origin: 0 0; animation: technical-rotation 13s linear infinite; }
.diagram-rotor.fast { animation-duration: 8s; }
.diagram-flow { animation: technical-flow 2.4s linear infinite; }
.diagram-flow.reverse { animation-direction: reverse; }
.motion-paused .diagram-rotor, .motion-paused .diagram-flow { animation-play-state: paused !important; }
@keyframes technical-rotation { to { transform: rotate(360deg); } }
@keyframes technical-flow { to { stroke-dashoffset: -48; } }
@media (min-width: 1600px) {
  .info-card { left: 60px; top: 150px; width: 400px; }
  .card-body #infoCopy { font-size: 14px; }
  .component-role dd { font-size: 13px; }
}
@media (max-width: 1050px) and (min-width: 701px) {
  .info-card { left: 26px; top: 110px; width: 350px; }
  .card-body h2 { font-size: 28px; }
}
@media (min-width: 701px) and (max-height: 800px) {
  .info-card { top: 112px; max-height: calc(100dvh - 254px); }
  .card-top { padding-top: 9px; }
  .card-body { padding-bottom: 12px; }
  .card-body h2 { font-size: 27px; margin-top: 5px; margin-bottom: 6px; }
  .card-body #infoCopy { font-size: 12px; line-height: 1.5; }
  .info-graphic { margin: 12px 0; }
  .technical-figure figcaption { padding-top: 8px; padding-bottom: 4px; }
  .info-graphic svg { max-height: none; }
  .component-roles { gap: 9px; }
  .component-role dt, .component-role dd { font-size: 12px; }
  .info-card .card-footer { min-height: 56px; padding-top: 7px; padding-bottom: 7px; }
}
@media (max-width: 700px) {
  .info-card { top: auto; left: 14px; right: 14px; bottom: 120px; width: auto; max-height: 54dvh; border-radius: 13px; }
  .card-top { padding: 8px 12px 0; }
  .card-category { gap: 8px; }
  .card-number { width: 23px; height: 23px; font-size: 9px; border-radius: 5px; }
  .card-top .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .info-card .close-button { width: 32px; height: 32px; }
  .card-body { padding: 0 14px 12px; }
  .card-body h2 { font-size: 25px; margin: 4px 0 6px; letter-spacing: -.8px; }
  .card-body #infoCopy { font-size: 12px; line-height: 1.5; }
  .info-graphic { margin: 11px 0; }
  .technical-figure figcaption { padding: 8px 10px 3px; font-size: 8px; }
  .info-graphic svg { max-height: none; }
  .component-roles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .component-role { padding-left: 10px; }
  .component-role dt { font-size: 12px; }
  .component-role dd { font-size: 12px; line-height: 1.45; }
  .info-card .card-footer { min-height: 54px; padding: 6px 11px; gap: 12px; }
  .card-next { min-width: 145px; }
  .exploring .flow-legend { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #app.motion-enabled .diagram-rotor, #app.motion-enabled .diagram-flow { animation: none !important; }
}
