/* Progressive disclosure for Current focus cards. */
.focus-grid { align-items: start; }
.focus-card {
  position: relative;
  cursor: pointer;
}
.focus-card[data-expanded='true'] {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}
.focus-expand-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  color: var(--muted);
  cursor: pointer;
  z-index: 2;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.focus-expand-toggle::before,
.focus-expand-toggle::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.focus-expand-toggle::after { transform: rotate(90deg); }
.focus-card[data-expanded='true'] .focus-expand-toggle::after { transform: rotate(90deg) scaleX(0); }
.focus-card[data-expanded='true'] .focus-expand-toggle {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 75%, var(--line));
}

.focus-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows .34s cubic-bezier(.2,.8,.2,1), opacity .24s ease, margin-top .34s cubic-bezier(.2,.8,.2,1);
}
.focus-details-inner {
  min-height: 0;
  overflow: hidden;
}
.focus-card[data-expanded='true'] .focus-details {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 16px;
}
.focus-detail-rule {
  height: 1px;
  background: var(--line);
  margin: 0 0 14px;
}
.focus-detail-row {
  display: grid;
  grid-template-columns: 104px minmax(0,1fr);
  gap: 12px;
  padding: 7px 0;
}
.focus-detail-label {
  margin: 0;
  color: var(--muted);
  font: 700 .68rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.focus-detail-value {
  margin: 0;
  color: var(--ink) !important;
  font-size: .9rem;
  line-height: 1.5;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (hover:hover) and (pointer:fine) {
  .focus-card:hover .focus-expand-toggle {
    color: var(--ink);
    border-color: color-mix(in srgb, var(--ink) 22%, var(--line));
  }
  .focus-expand-toggle:hover { transform: scale(1.05); }
}

@media (max-width:620px) {
  .focus-expand-toggle { top: 14px; right: 14px; width: 32px; height: 32px; }
  .focus-details { grid-column: 1 / -1; }
  .focus-card[data-expanded='true'] .focus-details { margin-top: 14px; }
  .focus-detail-row { grid-template-columns: 88px minmax(0,1fr); gap: 10px; }
  .focus-detail-value { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .focus-expand-toggle,
  .focus-expand-toggle::before,
  .focus-expand-toggle::after,
  .focus-details { transition: none !important; }
}
