/* Pass 11: script-free Direct Care Deck */
html { scroll-behavior: auto; }
.deck-page { max-width: 1120px; }
.deck-hero h1 { max-width: 18ch; }
.deck-principles, .deck-nav, .deck-risk-key, .deck-yellow-index, .deck-literacy, .deck-ending { width: min(900px, 100%); margin-inline: auto; }
.deck-page, .deck-nav, .deck-risk-key, .deck-yellow-index, .deck-literacy, .deck-ending { scroll-margin-top: 8.5rem; }
.deck-principles .button-row, .deck-ending .button-row { margin-top: 1rem; }

.deck-nav ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}
.deck-nav a {
  display: block;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--paper-soft);
  color: var(--plum-dark);
  font-weight: 700;
  text-decoration: none;
}
.deck-nav a:hover { text-decoration: underline; }
.deck-nav a:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

.deck-risk-key p:last-child, .deck-yellow-index p:last-child { margin-bottom: 0; }
.deck-yellow-index { border-width: 2px; }
.deck-yellow-index ul { margin-bottom: 0; }
.deck-yellow-index li { margin-bottom: 0.45rem; }

.deck-verb { margin-top: 2.4rem; scroll-margin-top: 8.5rem; }
.deck-section-head { max-width: 760px; margin-bottom: 1rem; }
.deck-section-head h2 { margin-bottom: 0.25rem; font-size: clamp(2rem, 5vw, 3.4rem); }
.deck-section-head p:last-child { margin-top: 0.25rem; font-size: 1.05rem; }
.deck-grid {
  display: grid;
  width: min(900px, 100%);
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.deck-grid > .deck-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc((100% - 1rem) / 2);
  justify-self: center;
}
.deck-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-top: 6px solid var(--clay);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(62, 38, 63, 0.06);
  scroll-margin-top: 8rem;
  break-inside: avoid;
}
.deck-card.risk-yellow { border-top-width: 8px; border-top-color: #d0a329; }
.deck-card.risk-orange { border-top-width: 8px; border-top-color: #c46830; }
.deck-card.risk-red { border-top-width: 8px; border-top-color: #9e3249; }
.deck-card h3 { margin: 0.15rem 0 0.65rem; font-size: 1.35rem; }
.deck-card-kicker { margin-bottom: 0; }
.deck-action { font-size: 1.02rem; line-height: 1.58; white-space: pre-line; }
.deck-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin: 0.2rem 0 0; }
.deck-meta > div { min-width: 0; padding-top: 0.55rem; border-top: 1px solid var(--line); }
.deck-meta .deck-meta-wide { grid-column: 1 / -1; }
.deck-meta dt { color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.deck-meta dd { margin: 0.18rem 0 0; overflow-wrap: anywhere; }
.deck-safety { margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.deck-consequence { margin-top: 0.9rem; padding: 0.8rem 0.9rem; border-left: 4px solid #d0a329; background: var(--paper-soft); }
.deck-consequence p { margin: 0.35rem 0; }
.deck-consequence p:first-child { margin-top: 0; }
.deck-consequence p:last-child { margin-bottom: 0; }
.deck-why { margin-top: auto; padding-top: 0.9rem; }
.deck-why-print { display: none; }
.deck-why > summary { min-height: 44px; display: list-item; }
.deck-back { margin: 0.9rem 0 0; }
.deck-ending { margin-top: 2.5rem; }
.deck-literacy { scroll-margin-top: 8.5rem; }

@media (max-width: 780px) {
  .deck-nav ul, .deck-grid { grid-template-columns: 1fr; }
  .deck-grid > .deck-card:last-child:nth-child(odd) { grid-column: auto; width: 100%; }
  .deck-card { padding: 1rem; }
  .deck-meta { grid-template-columns: 1fr; }
  .deck-meta .deck-meta-wide { grid-column: auto; }
  .deck-principles .button-row, .deck-ending .button-row { display: grid; grid-template-columns: 1fr; }
  .deck-principles .button-row .button, .deck-ending .button-row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .deck-page *, .deck-page *::before, .deck-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .deck-hero, .deck-nav, .deck-back, .deck-ending .button-row, .site-header, .site-footer { display: none !important; }
  .deck-grid { display: block; }
  .deck-card { margin-bottom: 1rem; box-shadow: none; break-inside: avoid-page; page-break-inside: avoid; }
  .deck-why { display: none; }
  .deck-why-print { display: block; }
}
