/* Pinterest Dark Mode (ROADMAP-Calcs-PinPin.md PP92) — on a phone: the answer, Pinterest's steps, the device, the Pin preview, then
   the sentences behind it and the "where Pinterest has dark mode" table; on a desktop the device and the preview sit beside the rest.
   The two screens use Pinterest's own Gestalt colours (data/pinterest-dark-mode.json `tokens`; the test reads these hexes). */
.dm { display: grid; gap: 1rem; grid-template-areas: "a" "s" "f" "p" "d"; }
.dm > * { min-width: 0; }
.dm .dm-answer { grid-area: a; background: var(--chqt-cream); border-radius: 14px; padding: 14px 16px; }
.dm .dm-steps { grid-area: s; }
.dm .dm-form { grid-area: f; }
.dm .dm-pv { grid-area: p; }
.dm .dm-detail { grid-area: d; }
@media (min-width: 900px) { .dm { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "a f" "s p" "d p"; align-items: start; } }
.dm .dm-how { border: 1px solid var(--chqt-line, #ddd5e6); border-radius: 12px; background: #fff; padding: .7rem .9rem; margin-bottom: .7rem; }
.dm .dm-how h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.dm .dm-how ol { margin: 0 0 .4rem; padding-left: 1.3rem; }
.dm .dm-how li { margin: .2rem 0; line-height: 1.45; }
.dm .dm-src { display: block; margin-top: .25rem; color: var(--chqt-muted, #4c4658); font-size: .85rem; }
.dm .dm-h { margin: 1rem 0 .3rem; font-size: 1.05rem; }
.dm .dm-notes { margin: 0; padding-left: 1.2rem; }
.dm .dm-notes li { margin: .45rem 0; line-height: 1.45; }
.dm .dm-none { margin: 0 0 .7rem; color: var(--chqt-muted, #4c4658); }
.dm .dm-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--chqt-line, #ddd5e6); border-radius: 12px; background: #fff; }
.dm .dm-what { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dm .dm-what th, .dm .dm-what td { padding: .5rem .6rem; text-align: left; border-top: 1px solid var(--chqt-line, #ddd5e6); vertical-align: top; }
.dm .dm-what thead th { border-top: 0; font-size: .85rem; color: var(--chqt-muted, #4c4658); }
.dm .dm-what tbody th { font-weight: 600; }
.dm .dm-what tr.dm-on > * { background: var(--chqt-cream); }
.dm .dm-what tr.dm-on th { box-shadow: inset 4px 0 0 var(--chqt-accent, #b3124e); }
.dm .dm-pv { border: 1px solid var(--chqt-line, #ddd5e6); border-radius: 14px; background: #fff; padding: .8rem .9rem; }
.dm .dm-pv .dm-h { margin-top: 0; }
.dm .dm-pv-lede { margin: 0 0 .6rem; }
.dm .dm-pv-add { margin-bottom: .6rem; }
.dm .dm-shades { margin-bottom: .7rem; }
.dm .dm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.dm .dm-card { margin: 0; min-width: 0; }
.dm .dm-card figcaption { font-size: .85rem; color: var(--chqt-muted, #4c4658); margin-top: .3rem; text-align: center; }
.dm .dm-screen { border-radius: 16px; padding: 12px; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--chqt-line, #ddd5e6); }
.dm .dm-screen[data-screen="light"] { background: #ffffff; color: #111111; }
.dm .dm-screen[data-screen="dark"] { background: #111111; color: #ffffff; }
.dm[data-sh="vr"] .dm-screen[data-screen="light"] { color: #000000; }
.dm[data-sh="vr"] .dm-screen[data-screen="dark"] { background: #000000; }
.dm .dm-screen img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; border-radius: 16px; }
.dm .dm-title { font-weight: 600; font-size: .9rem; }
.dm .dm-pv-out { margin: .7rem 0 .3rem; font-weight: 600; }
