/*
 * Design system components. Plain CSS, no build step, no framework.
 * Scope: put class="ds" on <body> (or any root). Every rule hangs off .ds, so
 * it never leaks into a host app.
 *
 * Load order:  tokens.base.css  ->  theme-<name>.css  ->  components.css
 * Set the theme with <body class="ds" data-theme="harbour"> (default: eggplant).
 *
 * Every colour here is a token. If you need a new colour, you need a new
 * token in tokens/*.tokens.json, and you probably don't. Spec: DESIGN.md.
 */

/* ---------- Base ---------- */
.ds {
  margin: 0;
  background: var(--page);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: var(--size-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.ds *,
.ds *::before,
.ds *::after { box-sizing: border-box; }
.ds h1, .ds h2, .ds h3, .ds h4, .ds p { margin: 0; }
.ds a { color: inherit; text-decoration: none; }
.ds button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.ds *:focus-visible:not(.input) { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.ds img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
.ds .t-hero    { font-size: var(--size-hero); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink-900); text-wrap: balance; }
.ds .t-page    { font-size: var(--size-page); font-weight: 600; letter-spacing: -0.028em; line-height: 1.15; color: var(--ink-900); text-wrap: balance; }
.ds .t-feature { font-size: var(--size-feature); font-weight: 600; letter-spacing: -0.022em; line-height: 1.2; color: var(--ink-900); text-wrap: balance; }
.ds .t-section { font-size: var(--size-section); font-weight: 600; letter-spacing: -0.018em; line-height: 1.3; color: var(--ink-900); }
.ds .t-card    { font-size: var(--size-card); font-weight: 600; letter-spacing: -0.012em; line-height: 1.35; color: var(--ink-900); }
.ds .t-lede    { font-size: var(--size-lede); line-height: 1.6; color: var(--ink-500); text-wrap: pretty; }
.ds .t-body    { font-size: var(--size-body); line-height: 1.6; color: var(--ink-700); }
.ds .t-secondary { font-size: var(--size-secondary); line-height: 1.55; color: var(--ink-500); }
.ds .t-meta    { font-size: var(--size-meta); line-height: 1.5; color: var(--ink-400); }
.ds .t-label   { font-size: var(--size-meta); font-weight: 500; color: var(--ink-500); }
.ds .t-colhead { font-size: var(--size-caption); font-weight: 500; color: var(--ink-400); }
.ds .tnum      { font-variant-numeric: tabular-nums; }
/* Reference numbers and counts: same face, tabular figures. Never monospace. */
.ds .ref       { font-size: var(--size-meta); font-weight: 500; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.ds .link      { color: var(--link); font-weight: 500; transition: color var(--duration-fast) ease; }
.ds .link:hover { color: var(--brand-400); }
.ds .prose p + p { margin-top: 1em; }
.ds .prose { max-width: var(--reading); font-size: 16.5px; line-height: 1.65; }
.ds .prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.ds .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; line-height: 1.2; padding: 10px 16px;
  border-radius: var(--radius-control); border: 1px solid transparent; white-space: nowrap; cursor: pointer;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}
.ds .btn-primary { background: var(--action); color: #fff; }
.ds .btn-primary:hover { background: var(--action-hover); }
.ds .btn-secondary { background: #fff; border-color: var(--control); color: var(--ink-700); }
.ds .btn-secondary:hover { border-color: var(--ink-300); color: var(--ink-900); }
.ds .btn-tertiary { padding-left: 4px; padding-right: 4px; color: var(--link); }
.ds .btn-tertiary:hover { color: var(--brand-400); }
.ds .btn-ghost { color: var(--ink-500); }
.ds .btn-ghost:hover { background: var(--surface); color: var(--ink-900); }
/* The fix a row needs. Outlined so it can never read as a status chip. */
.ds .btn-needs { background: #fff; border-color: var(--brand-400); color: var(--brand-700); }
.ds .btn-needs:hover { background: var(--brand-50); border-color: var(--brand-600); }
.ds .btn-danger { background: #fff; border-color: var(--danger-600); color: var(--danger-800); }
.ds .btn-danger:hover { background: var(--danger-50); }
.ds .btn:disabled, .ds .btn[aria-disabled="true"] { background: var(--surface); border-color: transparent; color: var(--ink-300); cursor: not-allowed; }
.ds .btn-sm { font-size: 13px; padding: 7px 12px; border-radius: 9px; }
.ds .btn-lg { font-size: 15px; padding: 12px 20px; border-radius: 11px; }
.ds .btn-icon { padding: 8px; }

/* ---------- Fields ---------- */
.ds .field-label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-600); margin-bottom: 7px; }
.ds .field-label-group { font-size: 15px; font-weight: 600; color: var(--ink-900); margin-bottom: 10px; }
.ds .input {
  width: 100%; background: #fff; border: 1px solid var(--control); border-radius: var(--radius-control);
  padding: 11px 14px; font: inherit; font-size: 16px; color: var(--ink-900);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}
@media (min-width: 768px) { .ds .input { font-size: 15px; } }
.ds .input::placeholder { color: var(--ink-300); }
.ds .input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.ds .input[aria-invalid="true"] { border-color: var(--danger-600); }
.ds .input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--danger-100); }
.ds .field-error { display: block; margin-top: 6px; font-size: var(--size-meta); font-weight: 500; color: var(--danger-600); }
.ds .field-hint { margin-top: 6px; font-size: var(--size-meta); color: var(--ink-400); }
.ds textarea.input { min-height: 96px; resize: vertical; }

/* One choice: an outlined row. Chosen is a tint plus a filled mark, never a solid block. */
.ds .option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 16px;
  border: 1px solid var(--control); border-radius: var(--radius-control); background: #fff;
  color: var(--ink-700); font-size: 15px; font-weight: 500; text-align: left; cursor: pointer;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.ds .option:hover { border-color: var(--ink-300); }
.ds .option[aria-checked="true"], .ds .option[aria-pressed="true"] { background: var(--brand-50); border-color: var(--brand-400); color: var(--brand-800); font-weight: 600; }
.ds .option-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--control); background: #fff; }
.ds .option-mark::after { content: ""; width: 10px; height: 10px; border-radius: 999px; }
.ds [aria-checked="true"] > .option-mark, .ds [aria-pressed="true"] > .option-mark { border-color: var(--brand-600); }
.ds [aria-checked="true"] > .option-mark::after, .ds [aria-pressed="true"] > .option-mark::after { background: var(--brand-600); }

/* One choice with a picture: the same idea as a tile. */
.ds .choice { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; border: 1px solid var(--control); border-radius: var(--radius-card); background: #fff; text-align: left; cursor: pointer; transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease; }
.ds .choice:hover { border-color: var(--ink-300); }
.ds .choice[aria-pressed="true"], .ds .choice[aria-checked="true"] { background: var(--brand-50); border-color: var(--brand-400); }
.ds .choice > .option-mark { position: absolute; top: 10px; right: 10px; }
.ds .choice-picture { display: block; width: 100%; aspect-ratio: 4 / 3; background: #fff; border-radius: var(--radius-card) var(--radius-card) 0 0; overflow: hidden; }
.ds .choice-body { display: flex; flex: 1; flex-direction: column; padding: 12px 14px 14px; }
.ds .choice-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink-900); }
/* The recommended tile: a solid tab on its top edge, part of its frame. One per set. */
.ds .choice-tab { position: absolute; top: 0; left: 16px; transform: translateY(-50%); padding: 3px 10px; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: var(--size-caption); font-weight: 600; line-height: 1.3; }

/* ---------- Search, filters, toggles ---------- */
.ds .search { display: flex; align-items: center; gap: 9px; background: var(--surface); border-radius: var(--radius-control); padding: 0 14px; height: 40px; color: var(--ink-400); }
.ds .search input { background: transparent; border: 0; outline: none; width: 100%; font: inherit; font-size: 16px; color: var(--ink-900); }
@media (min-width: 768px) { .ds .search input { font-size: 14px; } }
.ds .search input::placeholder { color: var(--ink-400); }
.ds .search:focus-within { box-shadow: 0 0 0 3px var(--brand-100); }

.ds .filter { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; background: transparent; color: var(--ink-600); font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background var(--duration-fast) ease, color var(--duration-fast) ease; }
.ds .filter:hover { background: var(--surface); color: var(--ink-900); }
.ds .filter .count { font-size: var(--size-caption); color: var(--ink-400); font-variant-numeric: tabular-nums; }
.ds .filter[aria-pressed="true"] { background: var(--brand-50); color: var(--brand-800); font-weight: 600; }
.ds .filter[aria-pressed="true"] .count { color: var(--brand-600); }

.ds .toggle { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--control); background: #fff; color: var(--ink-700); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease; }
.ds .toggle:hover { border-color: var(--ink-300); }
.ds .toggle[aria-pressed="true"] { background: var(--brand-50); border-color: var(--brand-400); color: var(--brand-800); font-weight: 600; }

/* ---------- Chips: status and category only ---------- */
.ds .chip { display: inline-flex; align-items: center; gap: 5px; font-size: var(--size-caption); font-weight: 600; line-height: 1.3; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.ds .chip-neutral { background: var(--surface); color: var(--ink-500); }
.ds .chip-muted   { background: var(--surface); color: var(--ink-400); }
.ds .chip-b50     { background: var(--brand-50);  color: var(--brand-800); }
.ds .chip-b100    { background: var(--brand-100); color: var(--brand-800); }
.ds .chip-b600    { background: var(--brand-600); color: #fff; }
.ds .chip-b800    { background: var(--brand-800); color: #fff; }
/* Done is calm on purpose: a tint with a tick. Always render the tick. */
.ds .chip-done    { background: var(--done-50);   color: var(--done-800); }
/* Warning and error chips are tints with dark text. Pair each with an icon. */
.ds .chip-warning { background: var(--warning-100); color: var(--warning-800); }
.ds .chip-danger  { background: var(--danger-100);  color: var(--danger-800); }

/* ---------- Surfaces ---------- */
.ds .panel   { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-panel); padding: 26px; }
.ds .card    { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-card); }
.ds .fill    { background: var(--surface); border-radius: var(--radius-card); }
.ds .callout { display: flex; align-items: flex-start; gap: 12px; background: var(--brand-50); border-radius: var(--radius-card); padding: 18px 22px; }
.ds .callout-done { background: var(--done-50); }
.ds .hairline-b { border-bottom: 1px solid var(--hairline); }
.ds .hairline-t { border-top: 1px solid var(--hairline); }

.ds .callout-warning { background: var(--warning-50); }
.ds .callout-warning > svg { color: var(--warning-600); }
.ds .callout-danger { background: var(--danger-50); }
.ds .callout-danger > svg { color: var(--danger-600); }
.ds .callout-done > svg { color: var(--done-600); }

/* ---------- Menus ---------- */
.ds .menu { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 6px; min-width: 220px; outline: 4px solid rgb(0 0 0 / 0.04); }
.ds .menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-700); cursor: pointer; }
.ds .menu-item:hover, .ds .menu-item:focus-visible { background: var(--brand-50); color: var(--ink-900); outline: none; }
.ds .menu-item[aria-current="page"] { color: var(--ink-900); font-weight: 600; }
.ds .menu-sep { height: 1px; background: var(--hairline); margin: 6px 4px; }
.ds .menu-heading { padding: 8px 12px 4px; font-size: var(--size-caption); font-weight: 500; color: var(--ink-400); }

/* ---------- Navigation ---------- */
.ds .nav-pill { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 11px; border-radius: var(--radius-control); font-size: 14px; font-weight: 500; color: var(--ink-600); white-space: nowrap; transition: background var(--duration-fast) ease; }
.ds .nav-pill:hover { background: var(--surface); color: var(--ink-900); }
.ds .nav-pill[aria-current="page"] { background: var(--brand-50); color: var(--ink-900); font-weight: 600; }
.ds .site-header { border-bottom: 1px solid var(--hairline); background: #fff; }
.ds .site-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-row); }
.ds .site-header-left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.ds .site-logo { font-size: var(--size-card); font-weight: 600; white-space: nowrap; color: var(--brand-700); }
.ds .site-nav { display: flex; gap: 4px; min-width: 0; }
.ds .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-400); }
.ds .crumbs [aria-current="page"] { color: var(--ink-600); font-weight: 500; }

.ds .tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--hairline); }
.ds .tab { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 0 13px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 16px; font-weight: 500; color: var(--ink-500); cursor: pointer; transition: color var(--duration-fast) ease; }
.ds .tab:hover { color: var(--ink-900); }
.ds .tab .count { font-size: 14px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.ds .tab[aria-selected="true"] { color: var(--ink-900); font-weight: 600; border-bottom-color: var(--brand-600); }

/* ---------- Table ---------- */
.ds .table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ds .table th { text-align: left; font-size: var(--size-caption); font-weight: 500; color: var(--ink-400); padding: 13px 16px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.ds .table td { padding: 17px 16px; border-bottom: 1px solid var(--row-rule); font-size: 14px; color: var(--ink-600); vertical-align: middle; }
.ds .table tbody tr:last-child td { border-bottom: 0; }
.ds .table tbody tr:hover { background: var(--surface); }
.ds .table th:first-child, .ds .table td:first-child { padding-left: 24px; }
.ds .table th:last-child, .ds .table td:last-child { padding-right: 18px; }
.ds .table .cell-title { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.ds .table .col-status { width: 150px; text-align: center; }
.ds .table-wrap { padding: 0; overflow-x: auto; }

/* ---------- Small parts ---------- */
.ds .avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 999px; background: var(--brand-100); color: var(--brand-800); font-weight: 600; width: 31px; height: 31px; font-size: 12px; }
.ds .stat { display: flex; flex-direction: column; gap: 4px; }
.ds .stat-value { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.ds .stat-label { font-size: var(--size-meta); color: var(--ink-400); }
.ds .toast { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-card); background: var(--ink-900); color: #fff; font-size: 14px; font-weight: 500; }
.ds .toast-done { background: var(--done-50); color: var(--done-800); }
.ds .toast-done svg { color: var(--done-600); }
.ds .toast-warning { background: var(--warning-50); color: var(--warning-800); }
.ds .toast-warning svg { color: var(--warning-600); }
.ds .toast-danger { background: var(--danger-50); color: var(--danger-800); }
.ds .toast-danger svg { color: var(--danger-600); }
.ds .tip { position: relative; }
.ds .tip[data-tip]:hover::after, .ds .tip[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--ink-900); color: #fff; font-size: var(--size-caption); font-weight: 500; padding: 6px 9px; border-radius: 7px; white-space: nowrap; z-index: 30; pointer-events: none; }
.ds .skeleton { background: var(--surface); border-radius: 6px; animation: ds-pulse 1.4s ease-in-out infinite; }
@keyframes ds-pulse { 50% { opacity: 0.55; } }

/* Timeline: done (filled brand, tick) or not yet (hollow). No half-done. */
.ds .timeline { list-style: none; margin: 0; padding: 0; }
.ds .timeline li { position: relative; padding: 0 0 22px 34px; }
.ds .timeline li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--hairline); }
.ds .timeline li:last-child::before { display: none; }
.ds .timeline .dot { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--control); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ds .timeline li[data-done="true"] .dot { background: var(--brand-600); border-color: var(--brand-600); }
.ds .timeline li[data-done="true"]::before { background: var(--brand-600); }

/* ---------- Layout ---------- */
.ds .gutter { padding-left: var(--gutter); padding-right: var(--gutter); }
.ds .container { width: 100%; max-width: var(--container); margin-inline: auto; }
.ds .container.gutter { max-width: var(--container-header); }
.ds .page-y { padding-top: 72px; padding-bottom: 120px; }
.ds .section-y { padding-top: 96px; padding-bottom: 96px; }
.ds .section-gap { margin-top: clamp(80px, 9vw, 128px); }
.ds .page-title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 56px; }
.ds .page-title-row .t-lede { margin-top: 10px; max-width: 640px; }
.ds .progress { display: flex; gap: 8px; list-style: none; margin: 0 0 40px; padding: 0; }
.ds .progress li { flex: 1; height: 4px; border-radius: 999px; background: var(--hairline); }
.ds .progress li[data-done="true"] { background: var(--brand-600); }
.ds .stack > * + * { margin-top: var(--stack, 16px); }
.ds .grid-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ds .main-side { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .ds .main-side { grid-template-columns: minmax(0, 1fr) var(--side); gap: 80px; }
  .ds .side-sticky { position: sticky; top: 130px; align-self: start; }
}
@media (max-width: 720px) {
  .ds .page-y { padding-top: 40px; padding-bottom: 80px; }
  .ds .section-y { padding-top: 64px; padding-bottom: 64px; }
  .ds .t-page { font-size: 26px; }
  .ds .tabs { gap: 20px; }
  /* Header on phones: logo and actions share row one, the nav scrolls on its own row */
  .ds .site-header-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; row-gap: 4px; }
  .ds .site-header-left { display: contents; }
  .ds .site-logo { order: 1; }
  .ds .site-header-row > :last-child { order: 2; }
  .ds .site-nav { order: 3; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; }
  .ds .site-nav::-webkit-scrollbar { display: none; }
  .ds .page-title-row { flex-direction: column; align-items: flex-start; }
}
/* Tables become cards below 768px: give each td a data-label and wrap in .table-cards */
@media (max-width: 767px) {
  .ds .table-cards thead { display: none; }
  .ds .table-cards, .ds .table-cards tbody, .ds .table-cards tr, .ds .table-cards td { display: block; width: 100%; }
  .ds .table-cards tr { padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
  .ds .table-cards td { padding: 4px 0; border: 0; }
  .ds .table-cards td::before { content: attr(data-label); display: block; font-size: var(--size-caption); color: var(--ink-400); }
}

/* ===================================================================
   BRAND REGISTER (marketing). Colour is a place, not a signal.
   Colour cards hold one idea and no UI. Pure CSS washes below; see
   DESIGN.md section 8 for the rules.
   =================================================================== */
.ds .bx-card { position: relative; overflow: hidden; border-radius: var(--radius-feature); isolation: isolate; padding: clamp(28px, 4vw, 48px); }
.ds .bx-eggplant { background: var(--brand-800); color: rgb(255 255 255 / 0.78); }
.ds .bx-night    { background: var(--night);     color: rgb(255 255 255 / 0.78); }
.ds .bx-lilac    { background: var(--brand-100); color: var(--ink-600); }
.ds .bx-haze     { background: var(--brand-50);  color: var(--ink-600); }
.ds .bx-eggplant .bx-h, .ds .bx-night .bx-h, .ds .bx-eggplant .bx-big, .ds .bx-night .bx-big { color: #fff; }
.ds .bx-lilac .bx-h, .ds .bx-haze .bx-h, .ds .bx-lilac .bx-big, .ds .bx-haze .bx-big { color: var(--ink-900); }
.ds .bx-h   { font-size: 22px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.25; text-wrap: balance; }
.ds .bx-big { font-size: var(--size-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.ds .bx-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; color: inherit; }
.ds .bx-eggplant .bx-link, .ds .bx-night .bx-link { color: #fff; text-decoration-color: rgb(255 255 255 / 0.4); }
.ds .bx-lilac .bx-link, .ds .bx-haze .bx-link { color: var(--ink-900); text-decoration-color: rgb(0 0 0 / 0.3); }
.ds .bx-link:hover { text-decoration-color: currentColor; }
.ds .bx-icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); }
.ds .bx-eggplant .bx-icon-tile, .ds .bx-night .bx-icon-tile { background: rgb(255 255 255 / 0.1); color: #fff; }
.ds .bx-haze .bx-icon-tile, .ds .bx-lilac .bx-icon-tile { background: #fff; }

/* Wash: pigment on paper with no subject. Colour gathers at the top; the lower
   left stays pale so ink text sits on it. Ink text only, never white. */
.ds .wash { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-feature); padding: clamp(28px, 4vw, 48px); background-color: #fbf8f2; color: var(--ink-900); }
.ds .wash::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: var(--wash-image); filter: blur(18px) saturate(1.05); transition: transform 2000ms var(--ease-out); }
.ds .wash-sky      { --wash-image: radial-gradient(60% 70% at 85% 0%, #7fb2d9aa, transparent 70%), radial-gradient(50% 60% at 40% 5%, #cfe3f0, transparent 70%), radial-gradient(40% 50% at 100% 60%, #d6cce8aa, transparent 70%); }
.ds .wash-sand     { --wash-image: radial-gradient(60% 70% at 80% 0%, #e6d3aebb, transparent 70%), radial-gradient(45% 55% at 100% 55%, #e3a386aa, transparent 70%); }
.ds .wash-earth    { --wash-image: radial-gradient(60% 70% at 85% 0%, #b8583e99, transparent 70%), radial-gradient(55% 60% at 40% 0%, #e3a386bb, transparent 70%), radial-gradient(40% 50% at 100% 60%, #e6d3ae, transparent 70%); }
.ds .wash-eucalypt { --wash-image: radial-gradient(60% 70% at 85% 0%, #5e857499, transparent 70%), radial-gradient(55% 60% at 35% 0%, #a9c2b2, transparent 70%), radial-gradient(40% 50% at 100% 60%, #cfe3f0, transparent 70%); }
.ds .wash-lilac    { --wash-image: radial-gradient(60% 70% at 85% 0%, #8e78ae88, transparent 70%), radial-gradient(55% 60% at 35% 0%, #d6cce8, transparent 70%), radial-gradient(40% 50% at 100% 60%, #cfe3f0, transparent 70%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a.wash:hover::before { transform: translate3d(-28px, 0, 0) scale(1.06); transition-duration: 1100ms; }
}

/* ---------- Motion ---------- */
@keyframes ds-fade-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.ds .anim-in { animation: ds-fade-in var(--duration-base) ease-out; }
@keyframes ds-arrive { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ds [data-motion="in"] .arrive { animation: ds-arrive 640ms var(--ease-out) var(--arrive-delay, 0ms) both; }
}
@media (prefers-reduced-motion: reduce) {
  .ds .skeleton, .ds .anim-in, .ds .wash::before { animation: none; transition: none; }
}
