/* dpdpa.support: header call to action, the applicability check, and the contact / trust / online-store pages.
   Loads after site.css; uses its palette tokens only. */

/* Header: "Check if DPDPA applies" is the primary action, Buy the quieter one */
.header-check { white-space: nowrap; display: none; }
.header-check .hc-short { display: none; }
@media (max-width: 1139px) { .header-check { display: inline-flex; } }
@media (max-width: 479px) { .header-check .hc-long { display: none; } .header-check .hc-short { display: inline; } }
.nav a.nav-quiet { font-weight: 500; color: var(--muted); }
.nav .btn-ghost { box-shadow: inset 0 0 0 1px var(--line-strong); }
.ft-contact span { display: inline-flex; align-items: center; min-height: 44px; }

/* Home: three ways in, below the main sections */
.more-grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 800px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
.more-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: var(--border); text-decoration: none; color: var(--text); }
.more-card:hover { border-color: var(--ink); color: var(--text); }
.more-card h3 { margin: 0; font-size: 1.1rem; color: var(--ink); }
.more-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.more-card .more-go { margin-top: auto; font-weight: 600; color: var(--ink); }

/* The applicability check */
.q-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.q-switch button { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.q-switch button[aria-pressed="true"] { background: var(--fill); color: var(--on-fill); box-shadow: none; }
.q-switch button:focus-visible, .q-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
html:not(.js) .q-interactive, html:not(.js) .q-switch { display: none; }
.q-nojs { margin: 0 0 20px; color: var(--muted); }
.js .q-nojs { display: none; }
.q-result[hidden], .q-result [hidden], #q-d2c-note[hidden] { display: none; }
.q-form, .q-result { max-width: 52em; }
.q-fs { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.q-fs legend { padding: 0; font-weight: 600; font-size: 1.08rem; line-height: 1.4; color: var(--ink); margin-bottom: 4px; }
.q-cite { display: block; font-family: var(--font-mono); font-size: 0.8rem; color: var(--faint); margin: 0 0 10px; }
.q-opt { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 11px 14px; margin: 0 0 8px; border-radius: var(--radius-sm); border: var(--border); background: var(--surface); cursor: pointer; line-height: 1.45; }
.q-opt:hover { border-color: var(--ink); }
.q-opt input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.q-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.q-opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.q-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.q-msg { margin: 12px 0 0; color: var(--accent-dark); font-weight: 600; min-height: 1.4em; }
.q-result { margin-top: 8px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--bg-alt); border: var(--border); border-left: 6px solid var(--ink); }
.q-result:focus { outline: none; }
.q-result h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.q-result h3 { margin: 22px 0 8px; font-size: 1.02rem; }
.q-result ul, .q-result ol { margin: 0 0 12px; padding-left: 1.2em; }
.q-result li { margin-bottom: 6px; }
.q-result .q-small { font-size: 0.92rem; color: var(--muted); }
.q-quiet { font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
}

/* Plain text pages (contact, why these documents, online stores) */
.pg-list { padding-left: 1.2em; }
.pg-note { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-alt); border: var(--border); font-size: 0.95rem; }
.pg-address { font-style: normal; line-height: 1.6; }
.art-cta .btn { width: 100%; margin: 0 0 10px; }
.art-cta .q-quiet { display: inline-block; margin-top: 4px; }
.founder-photo { border-radius: var(--radius); float: left; margin: 0 16px 8px 0; }
.who-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--muted); }
.q-small { font-size: 0.92rem; color: var(--muted); }

/* Processing map */
.q-grid { display: grid; gap: 8px; }
@media (min-width: 760px) { .q-grid { grid-template-columns: 1fr 1fr; } }
.q-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.q-opt-s { min-height: 44px; margin: 0; padding: 8px 14px; }
.q-fs .q-fs { margin: 0 0 18px; padding: 0; }
.q-fs .q-fs legend { font-size: 1rem; font-weight: 500; }
.q-opt .q-cite { margin: 2px 0 0; }
.q-map { list-style: none; padding: 0; margin: 0 0 14px; }
.q-map li { padding: 12px 0; border-bottom: var(--border); }
.q-map li:last-child { border-bottom: 0; }
ol.q-map { list-style: decimal; padding-left: 1.4em; }
.q-map .q-cite, .q-map .q-duty, .q-map .q-steps { display: block; margin: 3px 0 0; }
.q-map .q-duty { color: var(--text); }
.q-map .q-steps { font-size: 0.92rem; color: var(--muted); }
.q-map .q-status { color: var(--accent-dark); font-weight: 600; }
.q-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 18px 0 8px; }
.q-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 10px; }
@media print {
  .site-header, .site-footer, .ticker, #cb-root, .art-hero, .q-form, .q-switch, .q-tools, .q-nojs, #q-d2c-note, .skip-link { display: none !important; }
  .q-result { border: 0; background: none; padding: 0; max-width: none; }
}

.q-proof { margin-top: 40px; max-width: 760px; }
.q-proof h2 { margin-bottom: 14px; }

/* Peek: blurred teaser of a toolkit document (name, section count, skeleton rows). Decorative rows hold no heading text.
   Plain card everywhere; it glows only because it sits inside .art-cta.glow-card. Loaded with pages.css, so the toolkit pages and the articles share it. Fixed sizes, no script, so nothing shifts. */
.peek { position: relative; display: grid; gap: 12px; box-sizing: border-box; width: 100%; max-width: 360px; margin: 20px 0 16px; padding: 14px 14px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-alt); color: var(--text); overflow: hidden; }
.peek-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.peek-title { font-weight: 700; font-size: 0.98rem; line-height: 1.3; color: var(--ink); }
.peek-count { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }
.peek-view { position: relative; }
.peek-rows { list-style: none; margin: 0; padding: 4px 2px; display: grid; gap: 12px; filter: blur(2.5px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%); mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  pointer-events: none; user-select: none; }
.peek-rows li { display: flex; align-items: center; gap: 10px; height: 20px; }
.peek-dot { flex: none; display: grid; place-items: center; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); font-size: 0.66rem; font-weight: 700; line-height: 1; color: var(--muted); }
.peek-bar { height: 12px; border-radius: 6px; background: var(--line-strong); }
.peek-rows li:nth-child(1) .peek-bar { width: 78%; }
.peek-rows li:nth-child(2) .peek-bar { width: 58%; }
.peek-rows li:nth-child(3) .peek-bar { width: 88%; }
.peek-rows li:nth-child(4) .peek-bar { width: 66%; }
.peek-rows li:nth-child(5) .peek-bar { width: 82%; }
.peek-rows li:nth-child(6) .peek-bar { width: 50%; }
.peek-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--shadow-sm);
  font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.peek-lock-ico { flex: none; }
/* In the buy box the card is tighter, so the button stays in view on a short window. */
.art-cta .peek { margin: 4px 0 16px; padding: 12px 12px 10px; gap: 8px; max-width: none; }
.art-cta .peek-rows { gap: 8px; }
.art-cta .peek-rows li { height: 16px; }
.art-cta .peek-dot { width: 16px; height: 16px; font-size: 0.58rem; }
.art-cta .peek-bar { height: 10px; border-radius: 5px; }
/* With the peek the buy box is taller than most laptop windows, so the sidebar sticks only where the whole box fits. */
@media (min-width: 1100px) and (max-height: 1149px) {
  .art-aside-in:has(.peek) { position: static; max-height: none; }
  .art-aside-in:has(.peek) .toc { overflow: visible; }
}

/* Rule 7: several peeks side by side on a step page (one per document), and the true-date price block (launch-price line + "Price rises in N days"). */
.peek-set { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 20px 0 4px; }
.peek-set .peek { flex: 1 1 240px; max-width: 360px; margin: 0 0 14px; }
.price-deadline { margin: 14px 0 0; }
.price-deadline .price-rise { margin: 6px 0 0; font-weight: 600; color: var(--ink); }
.price-deadline .price-rise .countdown.compact { margin: 0; padding: 0; display: inline-flex; }
.price-deadline .price-rise .cd-units { font-size: 0.92rem; color: var(--ink); }
.art-cta .price-deadline { margin: 0; }
.cta-band .price-deadline { max-width: 38em; }
.price-deadline .price-rise .cd-unit, .price-deadline .price-rise .cd-num { display: inline; font: inherit; font-weight: 700; vertical-align: baseline; min-width: 0; padding: 0; color: var(--ink); }
.price-deadline .price-lines .pl { display: block; }
.price-deadline .price-rise, .price-deadline .price-rise .cd-unit, .price-deadline .price-rise .cd-num { font-weight: 700; }
