/* feature-page-cards.css - page-specific styles split from feature-page.css
   (WO-MDT-1313-002). Loaded only by: connections, help, press, support, whats-new.
   (Loader list corrected 2026-11-26, WO-MDT-AG-014: support.html also loads
   this sheet — PR #162's pin already asserted it; the comment had not moved.)
   Rules keep their original cascade order relative to the core sheet:
   this file loads immediately after feature-page.css. */


/* ---- cards (used by the 404 index, connections, directory) --------------- */
.dt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

@media (min-width: 900px) {
  .dt-grid:has(> .dt-card:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
  .dt-grid > .dt-card:last-child:nth-child(3n+5) { grid-column: span 2; }
  .dt-grid > .dt-card:last-child:nth-child(3n+4) { grid-column: 1 / -1; }
}

.dt-card { padding: 22px; border: 1px solid var(--m2-hair); border-radius: 16px; background: #fff; position: relative; isolation: isolate; transition: transform var(--m-dur-fast) var(--m2-ease); }

.dt-card h2, .dt-card h3 { margin: 0 0 8px; font-size: 1.1875rem; font-weight: 650; line-height: 1.2; letter-spacing: -.02em; }

/* Card-title links (e.g. /support directory cards) need >= 44px tap height without distorting vertical card rhythm. */
.dt-card h2:has(> a), .dt-card h3:has(> a) { margin: -10px 0 0; }

.dt-card h2 > a, .dt-card h3 > a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }

.dt-card p { margin: 0 0 8px; color: var(--m2-muted); font-size: .9375rem; line-height: 1.6; }

.dt-card p:last-child { margin-bottom: 0; }

.js .dt-cascade > * { opacity: 0; transform: translateY(10px); }

.js .dt-cascade > *.is-shown { opacity: 1; transform: none; transition: opacity var(--m-dur) var(--m2-ease), transform var(--m-dur) var(--m2-ease); transition-delay: calc(min(var(--dt-i, 0), 2) * var(--m-stagger) * 0.8); }
@media (max-width: 899px) {

  .dt-grid { grid-template-columns: repeat(2, 1fr); }

  .dt-grid > .dt-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
.dt-grid { grid-template-columns: 1fr; }
}
/* Cards (r100): the same crossfade law on .dt-card - the ring and the soft
   shadow live on the pseudo and fade by opacity; the card itself only ever
   translates (the pointer-fine lift below). --hv-ring opts into a brand ring. */
.dt-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; border: 1px solid var(--hv-ring, #cfc6ba); box-shadow: 0 14px 28px -14px rgba(20, 18, 16, .22); transition: opacity var(--m-dur-fast) var(--m2-ease); }

.dt-card:hover::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {

  /* r100: cards lift 2px, directory tiles and chips 1px, same 140ms transform. */
  .dt-card:hover { transform: translateY(-2px); }

  /* Cascaded cards: the reveal's .is-shown transform:none outranks the plain
     hover rule, so the lift is restated at cascade specificity. */
  .dt-cascade > .dt-card:hover { transform: translateY(-2px); }
}
