/* This guide's own additions to the vendored family chrome in site.css: dalMap's accent, the
   control that links back to the live map, and the callout, task-list, and card panels no
   other guide has. Loaded after site.css. Hand-maintained; never vendored.

   Sized on [the scale](../DESIGN.md#the-scale) as of 2026-08-13, which it had never been:
   type on the nine steps, spacing on `0.25/0.5/0.75/1/1.5/2/3rem`, radius from
   site.css's `--radius-xs/-sm/-radius/-lg`. Twelve declarations were off them -- eight
   distances, one type size, three radii written as ad hoc numbers instead of the token set.
   `tests/guide-scale.test.mjs` now reads this file and site.css together the way a browser
   resolves them, over both scales and the radius set -- the model mb243/dal#157 used for the
   parent guide's own site-local.css.

   Eleven moved onto a step or a token, none by more than one. `1.25rem` sat exactly between
   two spacing steps twice over -- the card grid's gap under its heading and the card's own
   padding -- and both went up to `1.5rem` rather than down to `1rem`: a heading-to-content gap
   and a card's interior read as the larger neighbor's role in the parent guide's own analogous
   `.product-grid` and `.product-card`, not the smaller one.

   The twelfth stays off the scale, with the reason beside the rule: `ol.task-list li`'s
   `padding-left` is a clearance for the counter badge, not a step. */

:root {
  --accent: #feafd5;
  --accent-surface: rgb(254 175 213 / 14%);
  /* Only .card still reaches for this; the shared button-link and theme-menu panel moved to a
     flat surface, following DESIGN.md#dark-appearance's surface-tone-not-shadow rule. */
  --panel-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.07);
}

html[data-theme="light"] {
  --accent: #ab2674;
  --accent-surface: rgb(171 38 116 / 12%);
}

/* A control in the header's trailing row, so it takes the frame's target and label size
   rather than a link's. */
.map-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--action-text);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.callout {
  margin: 2rem 0;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-left: 0.3rem solid var(--action);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.callout p:first-child,
.callout p:last-child {
  margin-block: 0;
}

.task-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.task-list li {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

ol.task-list {
  counter-reset: task;
}

ol.task-list li {
  /* Off the spacing scale on purpose: a clearance for the counter badge below, not a step.
     The badge sits at 1rem and is 1.75rem square, so its right edge falls at 2.75rem; this
     leaves 0.95rem of reading gap past it before the text starts. */
  padding-left: 3.7rem;
}

ol.task-list li::before {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(10, 132, 255, 0.5);
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.14);
  color: var(--action-text);
  content: counter(task);
  counter-increment: task;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  place-items: center;
}

.task-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--panel-shadow);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card h3 {
  margin: 0 0 0.5rem;
}

.card a {
  font-weight: 750;
}
