/**
 * Core Download Plugin v2 — Download Card
 *
 * Utilitarian precision (Swiss-influenced): hairline rules carry structure,
 * one restrained cobalt accent on the primary action + focus + links only,
 * a strong but honest type ramp, near-flat surfaces. Every color/size/
 * duration below is a `--cdp-*` token from tokens.css — dark mode and
 * owner-tuned accent/radius/font follow automatically; nothing here is
 * re-declared for `[data-cdp-theme="dark"]`.
 *
 * Layout responds to its own box, not the viewport (`container-type:
 * inline-size` on the card root) so it holds up in a 280px sidebar column
 * exactly as well as a full-width content area. See the breakpoint
 * reference at the bottom of tokens.css: the one card breakpoint is 480px,
 * below which per-file meta stacks under the filename and the gated-form
 * fields stack vertically.
 */

.cdp-card {
  container-type: inline-size;
  container-name: cdp-card;

  box-sizing: border-box;
  width: 100%;
  background: var(--cdp-bg);
  color: var(--cdp-text);
  border: var(--cdp-border-hairline) solid var(--cdp-border);
  border-radius: var(--cdp-radius);
  box-shadow: var(--cdp-shadow-sm);
  font-family: var(--cdp-font-body);
  font-size: var(--cdp-text-base);
  line-height: var(--cdp-leading-normal);
  text-align: left;
}

.cdp-card * {
  box-sizing: border-box;
}

.cdp-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--cdp-space-8);
  padding: var(--cdp-space-9);
}

@container cdp-card (width < 480px) {
  .cdp-card__body {
    padding: var(--cdp-space-8);
    gap: var(--cdp-space-7);
  }
}

/* ----------------------------------------------------------------------
 * Header — title + description
 * -------------------------------------------------------------------- */

.cdp-card__header {
  display: flex;
  flex-direction: column;
  gap: var(--cdp-space-4);
}

.cdp-card__title {
  margin: 0;
  font-family: var(--cdp-font-display);
  font-size: var(--cdp-text-lg);
  font-weight: var(--cdp-weight-semibold);
  line-height: var(--cdp-leading-tight);
  letter-spacing: var(--cdp-tracking-tight);
  color: var(--cdp-text);
}

.cdp-card__description {
  margin: 0;
  font-size: var(--cdp-text-md);
  line-height: var(--cdp-leading-relaxed);
  color: var(--cdp-text-secondary);
}

.cdp-card__description > *:first-child {
  margin-top: 0;
}

.cdp-card__description > *:last-child {
  margin-bottom: 0;
}

.cdp-card__description a {
  color: var(--cdp-text-link);
  text-underline-offset: 0.15em;
}

/* ----------------------------------------------------------------------
 * File rows
 * -------------------------------------------------------------------- */

.cdp-card__files {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--cdp-border-hairline) solid var(--cdp-border);
}

.cdp-card__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cdp-space-6);
  padding: var(--cdp-space-7) 0;
  border-bottom: var(--cdp-border-hairline) solid var(--cdp-border);
}

.cdp-card__file-info {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--cdp-space-4) var(--cdp-space-6);
  min-width: 0;
}

.cdp-card__file-name {
  font-size: var(--cdp-text-md);
  font-weight: var(--cdp-weight-medium);
  color: var(--cdp-text);
  overflow-wrap: anywhere;
}

.cdp-card__file-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--cdp-space-5);
  flex-shrink: 0;
}

@container cdp-card (width < 480px) {
  .cdp-card__file-info {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--cdp-space-3);
  }
}

.cdp-card__badge {
  display: inline-flex;
  align-items: center;
  padding: var(--cdp-space-3) var(--cdp-space-5);
  background: var(--cdp-bg-tertiary);
  color: var(--cdp-text-secondary);
  border-radius: var(--cdp-radius-sm);
  font-size: var(--cdp-text-xs);
  font-weight: var(--cdp-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--cdp-tracking-wide);
  white-space: nowrap;
}

.cdp-card__badge--muted {
  color: var(--cdp-text-muted);
}

.cdp-card__file-size {
  font-size: var(--cdp-text-sm);
  color: var(--cdp-text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cdp-card__file--unavailable .cdp-card__file-name {
  color: var(--cdp-text-muted);
}

.cdp-card__file-status {
  display: inline-flex;
  align-items: center;
  gap: var(--cdp-space-3);
  flex-shrink: 0;
  font-size: var(--cdp-text-xs);
  font-weight: var(--cdp-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--cdp-tracking-wide);
  color: var(--cdp-text-muted);
}

.cdp-card__icon {
  flex-shrink: 0;
}

/* Compact per-file link, shown only on multi-file cards. */
.cdp-card__file-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--cdp-space-3);
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
  padding: var(--cdp-space-4) var(--cdp-space-6);
  margin: calc(var(--cdp-space-4) * -1) calc(var(--cdp-space-6) * -1);
  border-radius: var(--cdp-radius-sm);
  color: var(--cdp-text-link);
  font-size: var(--cdp-text-sm);
  font-weight: var(--cdp-weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--cdp-duration-fast) var(--cdp-ease);
}

.cdp-card__file-link:hover {
  background: var(--cdp-accent-subtle);
  text-decoration: underline;
}

.cdp-card__file-link:focus-visible {
  outline: none;
  box-shadow: var(--cdp-focus-ring);
}

.cdp-card__file-link.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

/* ----------------------------------------------------------------------
 * Action area — primary button, login prompt, or gated form
 * -------------------------------------------------------------------- */

.cdp-card__action {
  display: flex;
  flex-direction: column;
  gap: var(--cdp-space-6);
}

.cdp-card__button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--cdp-space-5);
  width: 100%;
  min-height: 44px;
  padding: var(--cdp-space-6) var(--cdp-space-8);
  background: var(--cdp-accent);
  color: var(--cdp-on-accent);
  border: var(--cdp-border-hairline) solid transparent;
  border-radius: var(--cdp-radius);
  font: inherit;
  font-size: var(--cdp-text-md);
  font-weight: var(--cdp-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--cdp-duration-fast) var(--cdp-ease),
    opacity var(--cdp-duration-fast) var(--cdp-ease);
}

.cdp-card__button:hover {
  background: var(--cdp-accent-hover);
}

.cdp-card__button:active {
  background: var(--cdp-accent-active);
}

.cdp-card__button:focus-visible {
  outline: none;
  box-shadow: var(--cdp-focus-ring);
}

.cdp-card__button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cdp-card__button.is-busy {
  opacity: 0.85;
  cursor: progress;
}

/* Non-spinner busy cue: a thin bar sweeping the button's bottom edge. */
.cdp-card__button.is-busy::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 40%;
  background: var(--cdp-on-accent);
  opacity: 0.7;
  animation: cdp-card-progress 900ms var(--cdp-ease) infinite;
}

@keyframes cdp-card-progress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

/* Quiet secondary affordance: "log in to download". Deliberately a link,
   not a filled button — the accent is reserved for the one primary action. */
.cdp-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--cdp-space-3);
  min-height: 44px;
  width: fit-content;
  color: var(--cdp-text-link);
  font-size: var(--cdp-text-md);
  font-weight: var(--cdp-weight-medium);
  text-decoration: none;
}

.cdp-card__link:hover {
  text-decoration: underline;
}

.cdp-card__link:focus-visible {
  outline: none;
  box-shadow: var(--cdp-focus-ring);
  border-radius: var(--cdp-radius-sm);
}

.cdp-card__note {
  display: flex;
  align-items: flex-start;
  gap: var(--cdp-space-4);
  margin: 0;
  font-size: var(--cdp-text-md);
  line-height: var(--cdp-leading-normal);
  color: var(--cdp-text-secondary);
}

.cdp-card__note .cdp-card__icon {
  margin-top: 0.2em;
  color: var(--cdp-text-tertiary);
}

.cdp-card__action--empty .cdp-card__note {
  font-size: var(--cdp-text-base);
}

/* ----------------------------------------------------------------------
 * Gated form. The same markup for both deliveries: card.js posts it to
 * REST `cdp/v2/leads`, and the response either unlocks the files
 * (`instant`) or replaces the form with the verify-sent note (`verify`,
 * the link goes by email).
 * -------------------------------------------------------------------- */

.cdp-card__form {
  position: relative; /* contains the honeypot field's absolute offset */
  display: flex;
  flex-direction: column;
  gap: var(--cdp-space-6);
}

.cdp-card__form-row {
  display: flex;
  gap: var(--cdp-space-6);
}

@container cdp-card (width < 480px) {
  .cdp-card__form-row {
    flex-direction: column;
  }
}

.cdp-card__field {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: var(--cdp-space-3);
  min-width: 0;
}

.cdp-card__label {
  font-size: var(--cdp-text-xs);
  font-weight: var(--cdp-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--cdp-tracking-wide);
  color: var(--cdp-text-secondary);
}

.cdp-card__input {
  min-height: 44px;
  padding: 0 var(--cdp-space-7);
  background: var(--cdp-bg);
  color: var(--cdp-text);
  /* 3:1 or more against the card: an input's edge is how it is found. */
  border: var(--cdp-border-hairline) solid var(--cdp-border-control);
  border-radius: var(--cdp-radius);
  font: inherit;
  font-size: var(--cdp-text-md);
}

/* A placeholder is read (an example of what to type), so it is muted,
   not the disabled tertiary grey, which is under 3:1. */
.cdp-card__input::placeholder {
  color: var(--cdp-text-muted);
}

.cdp-card__input:focus-visible {
  outline: none;
  border-color: var(--cdp-border-focus);
  box-shadow: var(--cdp-focus-ring);
}

.cdp-card__input:disabled {
  background: var(--cdp-bg-tertiary);
  color: var(--cdp-text-tertiary);
  cursor: not-allowed;
}

/* Error state is never color-only: the field also gets aria-invalid (a
   screen reader announces it) and the paired .cdp-card__field-error text
   names the problem -- the red border is a sighted-user accelerant, not
   the only signal. */
.cdp-card__input[aria-invalid="true"] {
  border-color: var(--cdp-error);
}

.cdp-card__input[aria-invalid="true"]:focus-visible {
  box-shadow: 0 0 0 2px var(--cdp-bg), 0 0 0 4px var(--cdp-error);
}

.cdp-card__field-error {
  font-size: var(--cdp-text-sm);
  color: var(--cdp-error);
}

.cdp-card__field-error:empty {
  display: none;
}

/* A full-width field sits straight in the column form; flex: 1 1 0 there
   would size it along the column, not the row it was written for. */
.cdp-card__form > .cdp-card__field {
  flex: none;
}

/* "(optional)" beside a label: the label's small caps are for the field's
   name, not for this aside. Secondary, not tertiary, text colour: it says
   something a visitor needs, and tertiary grey is under 3:1 on white. */
.cdp-card__optional {
  font-weight: var(--cdp-weight-normal);
  text-transform: none;
  letter-spacing: 0;
  color: var(--cdp-text-secondary);
}

.cdp-card__help {
  margin: 0;
  font-size: var(--cdp-text-sm);
  line-height: var(--cdp-leading-normal);
  color: var(--cdp-text-secondary);
}

.cdp-card__input--textarea {
  min-height: 88px;
  padding: var(--cdp-space-6) var(--cdp-space-7);
  line-height: var(--cdp-leading-normal);
  resize: vertical;
}

/* The native arrow stays: it is the one control whose affordance a
   visitor already knows. Room is left so a long choice is not printed
   under it. */
.cdp-card__select {
  padding-right: var(--cdp-space-9);
}

/* Radios: a fieldset whose legend reads as the field label. */
.cdp-card__choices {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cdp-card__choices > .cdp-card__label {
  padding: 0;
  margin-bottom: var(--cdp-space-3);
}

/* A radio or checkbox with its words beside it. The whole line is the
   label, so the target is the words as well as the box. */
.cdp-card__choice {
  display: flex;
  align-items: flex-start;
  gap: var(--cdp-space-6);
  padding: var(--cdp-space-3) 0;
  font-size: var(--cdp-text-md);
  line-height: var(--cdp-leading-normal);
  color: var(--cdp-text);
  cursor: pointer;
}

.cdp-card__check {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--cdp-accent);
  cursor: pointer;
}

.cdp-card__check:focus-visible {
  outline: none;
  box-shadow: var(--cdp-focus-ring);
  border-radius: var(--cdp-radius-sm);
}

/* An unanswered required box: outlined as well as described, never colour
   alone -- the error text under it names the problem. */
.cdp-card__check[aria-invalid="true"] {
  outline: 2px solid var(--cdp-error);
  outline-offset: 2px;
}

.cdp-card__choices[aria-invalid="true"] .cdp-card__check {
  outline: 2px solid var(--cdp-error);
  outline-offset: 2px;
}

.cdp-card__choice-text a {
  color: var(--cdp-text-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Honeypot: visually hidden (not display:none/hidden, which some bots
   specifically skip) and unreachable by keyboard (tabindex="-1" in markup)
   -- a no-op for every genuine visitor. */
.cdp-card__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The spam check's widget (Turnstile or reCAPTCHA), when one is set up.
   The providers draw it at a fixed width; in a card narrower than that it
   scrolls sideways rather than pushing the card wider. */
.cdp-card__captcha {
  max-width: 100%;
  overflow-x: auto;
}

/* Gated-form success confirmation (card.js swaps the form region into
   this after a successful submission). Success is never color-only: the
   check icon + message carry the meaning, the tint is secondary. */
.cdp-card__action--done {
  background: var(--cdp-success-subtle);
  border-radius: var(--cdp-radius);
  padding: var(--cdp-space-7);
}

.cdp-card__note--done {
  color: var(--cdp-success);
  font-weight: var(--cdp-weight-medium);
}

/* Programmatically focused right after the form swaps out (moves
   screen-reader/keyboard focus to the confirmation instead of dropping it
   to <body>) -- gets the same token-based ring as every other focusable
   element rather than the browser's mismatched default outline. */
.cdp-card__note--done:focus,
.cdp-card__note--done:focus-visible {
  outline: none;
  box-shadow: var(--cdp-focus-ring);
  border-radius: var(--cdp-radius-sm);
}

.cdp-card__note--done .cdp-card__icon {
  color: var(--cdp-success);
}

/* Verify-delivery "link sent" confirmation (card.js's showVerifySentState()
   swaps the gated form into this on a `verify` response). Same shape as the
   success confirmation above -- tinted panel, focusable note -- but info
   tokens, not success tokens: nothing has downloaded yet, the visitor is
   only being told where to look next. */
.cdp-card__action--info {
  background: var(--cdp-info-subtle);
}

.cdp-card__note--info {
  color: var(--cdp-info);
  font-weight: var(--cdp-weight-medium);
}

.cdp-card__note--info:focus,
.cdp-card__note--info:focus-visible {
  outline: none;
  box-shadow: var(--cdp-focus-ring);
  border-radius: var(--cdp-radius-sm);
}

.cdp-card__note--info .cdp-card__icon {
  color: var(--cdp-info);
}

/* ----------------------------------------------------------------------
 * Status line (aria-live). "success" for download confirmations, "error"
 * for gated-form failures, "info" for the verify-sent note ("We sent your
 * download link to …"). Never color-only: every message carries a leading
 * glyph or explicit text, not just a tint.
 * -------------------------------------------------------------------- */

.cdp-card__status {
  display: flex;
  align-items: center;
  gap: var(--cdp-space-4);
  font-size: var(--cdp-text-sm);
  font-weight: var(--cdp-weight-medium);
  line-height: var(--cdp-leading-normal);
}

.cdp-card__status:empty {
  display: none;
}

.cdp-card__status[data-state="success"] {
  color: var(--cdp-success);
}

.cdp-card__status[data-state="error"] {
  color: var(--cdp-error);
}

.cdp-card__status[data-state="info"] {
  color: var(--cdp-info);
}

/* ----------------------------------------------------------------------
 * Footer — quiet status line + optional count chip
 * -------------------------------------------------------------------- */

.cdp-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--cdp-space-5);
  padding-top: var(--cdp-space-6);
  border-top: var(--cdp-border-hairline) solid var(--cdp-border);
}

.cdp-card__footer-status {
  font-size: var(--cdp-text-xs);
  font-weight: var(--cdp-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--cdp-tracking-wide);
  color: var(--cdp-text-muted);
}

.cdp-card__count {
  display: inline-flex;
  align-items: center;
  padding: var(--cdp-space-3) var(--cdp-space-6);
  background: var(--cdp-bg-tertiary);
  color: var(--cdp-text-secondary);
  border-radius: var(--cdp-radius-full);
  font-size: var(--cdp-text-xs);
  font-weight: var(--cdp-weight-medium);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------------
 * Button-only layout (layout="button"): the card's root keeps its tokens
 * and data for card.js, but none of its box -- just the button(s), the
 * count beside them, and the status line under them.
 * -------------------------------------------------------------------- */

.cdp-card--button {
  container-type: normal;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cdp-space-6) var(--cdp-space-7);
  width: auto;
  max-width: 100%;
  background: none;
  border: 0;
  box-shadow: none;
  color: inherit;
}

/* Everything but the button sits on the page's own background, not a
   card's, so it takes the page's colour -- and the count is outlined
   rather than filled -- to read on a light page or a dark one. */
.cdp-card--button .cdp-card__status,
.cdp-card--button .cdp-card__status[data-state],
.cdp-card--button .cdp-card__note,
.cdp-card--button .cdp-card__link {
  color: inherit;
}

.cdp-card--button .cdp-card__count {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 var(--cdp-border-hairline) currentColor;
}

.cdp-card--button .cdp-card__action {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--cdp-space-6);
}

.cdp-card--button .cdp-card__button {
  width: auto;
}

.cdp-card--button .cdp-card__status {
  flex-basis: 100%;
}

/* ----------------------------------------------------------------------
 * Listings ([cdp_downloads] and the Downloads list block): cards side by
 * side, as many as fit at 18rem or more each, or one under another.
 * Each card is the compact form of the same card.
 * -------------------------------------------------------------------- */

.cdp-listing {
  display: grid;
  gap: var(--cdp-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cdp-listing--grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  align-items: start;
}

.cdp-listing--list {
  grid-template-columns: minmax(0, 1fr);
}

.cdp-listing__item {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.cdp-listing__item::before,
.cdp-listing__item::marker {
  content: none;
}

.cdp-card--compact .cdp-card__body {
  gap: var(--cdp-space-7);
  padding: var(--cdp-space-8);
}

.cdp-card--compact .cdp-card__title {
  font-size: var(--cdp-text-md);
}

.cdp-card--compact .cdp-card__description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: var(--cdp-text-base);
}

.cdp-card--compact .cdp-card__file {
  padding: var(--cdp-space-6) 0;
}

/* ----------------------------------------------------------------------
 * Inside a theme's article text
 *
 * Themes style the body of a post or page by element --
 * `.entry-content h3 { color }`, `.entry-content ul { list-style: disc }`,
 * `.entry-content a { text-decoration: underline }` -- and a class plus an
 * element (0,1,1) outranks the card's single classes (0,1,0). A card put in
 * that text by the shortcode or a block took the article's heading colour
 * (teal on a dark card), bulleted file rows and underlined buttons. What
 * the card's own elements must keep is restated here under the card root,
 * at 0,2,0 and up. A theme still restyles the card through the tokens.
 * -------------------------------------------------------------------- */

.cdp-card .cdp-card__title {
  margin: 0;
  color: var(--cdp-text);
}

.cdp-card .cdp-card__files,
.cdp-listing.cdp-listing--grid,
.cdp-listing.cdp-listing--list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cdp-card .cdp-card__file,
.cdp-listing .cdp-listing__item {
  margin: 0;
}

.cdp-card .cdp-card__button {
  color: var(--cdp-on-accent);
  text-decoration: none;
}

.cdp-card .cdp-card__file-link,
.cdp-card .cdp-card__link {
  color: var(--cdp-text-link);
  text-decoration: none;
}

.cdp-card .cdp-card__file-link:hover,
.cdp-card .cdp-card__link:hover {
  text-decoration: underline;
}

.cdp-card .cdp-card__description a,
.cdp-card .cdp-card__choice-text a,
.cdp-card .cdp-card__help a {
  color: var(--cdp-text-link);
}

/* An underline, where the card has one, in the link's own colour and
   weight rather than the article's. */
.cdp-card .cdp-card__body a {
  text-decoration-color: currentColor;
  text-decoration-thickness: auto;
}

/* A theme's own form rules outrank the fields' single class the same way:
   the starter theme's `input[type="text"] { color: #666; border: 1px solid
   #ccc; border-radius: 3px; padding: 3px }` (0,1,1) left the fields
   cramped and grey-edged, and its `input[type="text"]:focus { color: #111 }`
   (0,2,1) made typed text vanish on a dark card. The fields' own look,
   then each state restated after it so the base does not undo them. */
.cdp-card .cdp-card__input {
  padding: 0 var(--cdp-space-7);
  background: var(--cdp-bg);
  color: var(--cdp-text);
  border: var(--cdp-border-hairline) solid var(--cdp-border-control);
  border-radius: var(--cdp-radius);
}

.cdp-card .cdp-card__input--textarea {
  padding: var(--cdp-space-6) var(--cdp-space-7);
}

.cdp-card .cdp-card__select {
  padding-right: var(--cdp-space-9);
}

.cdp-card .cdp-card__input:focus {
  color: var(--cdp-text);
}

.cdp-card .cdp-card__input:focus-visible {
  border-color: var(--cdp-border-focus);
}

.cdp-card .cdp-card__input[aria-invalid="true"] {
  border-color: var(--cdp-error);
}

.cdp-card .cdp-card__input:disabled {
  background: var(--cdp-bg-tertiary);
  color: var(--cdp-text-tertiary);
}

/* ----------------------------------------------------------------------
 * Preview mode (the block editor, the Appearance tab's live preview):
 * identical stylesheet, submission just inert. Cursor communicates it,
 * nothing moves.
 * -------------------------------------------------------------------- */

.cdp-card--preview .cdp-card__button,
.cdp-card--preview .cdp-card__file-link,
.cdp-card--preview .cdp-card__link {
  cursor: default;
}

/* The block editor's note in place of a card that would print nothing
   (a download not published, or gone). Outside any card, so no tokens. */
.cdp-block-note {
  margin: 0;
  padding: 12px 16px;
  border: 1px dashed #a1a1aa;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}

/* ----------------------------------------------------------------------
 * Motion
 * -------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .cdp-card *,
  .cdp-card *::before,
  .cdp-card *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  /* The busy cue must still communicate "in progress" without motion:
     freeze it as a full-width static bar rather than a frozen sliver. */
  .cdp-card__button.is-busy::after {
    width: 100%;
    transform: none;
    opacity: 0.9;
  }
}
