/* Notice — the inline callout box (it-32.2; restyled it-41).
 *
 * This is not a new look. It is the pattern that was copy-pasted inline into TEN templates, finally
 * given a name — and as of it-41 it matches the house callout the contact / tracking-number edit
 * forms already used (`.form-dirty-banner`): a soft TINTED bar, icon and text on one line, rounded,
 * no heavy border. The previous treatment (white card + a 4px role-colored left border, plus a
 * separately-tinted icon) read as a thumbnail block hanging off the left edge and did not match that
 * banner, so the two house callouts disagreed. They agree now.
 *
 * Design-system only: MD3 container role tokens. No new colors.
 *
 * Variants: --info (neutral / explanatory, primary) · --warning (needs attention, tertiary) ·
 * --error (this failed / is broken). --compact for a stack of short one-liners.
 *
 * Markup — icon and message are DIRECT children of .notice:
 *   <div class="notice notice--info">
 *     <span class="material-symbols-rounded notice__icon">info</span>
 *     <div>Message. <strong>Emphasis</strong> is fine.</div>
 *   </div>
 * (The old `.notice__row` wrapper is gone — every template was flattened to the above.)
 */

.notice {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  /* 12px — the container scale (cards, the embedded canvas) and exactly what .form-dirty-banner
   * renders, which this matches. NOT --r-md: that token is 20px and reads as a pill here.
   * (See docs/KNOWN_BUGS.md — the --radius-* family is undefined, so this falls back to 12px like
   * its neighbors. Reconciling the two radius families is a separate cleanup.) */
  border-radius: var(--radius-md, 12px);
  margin-bottom: 1.25rem;
  /* Neutral default; a variant tints it. */
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  font-size: var(--md-sys-typescale-body-medium-size);
  line-height: var(--md-sys-typescale-body-medium-line-height);
}

.notice--info {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.notice--warning {
  background: var(--md-sys-color-tertiary-container);
  color: var(--md-sys-color-on-tertiary-container);
}
.notice--error {
  background: var(--md-sys-color-error-container);
  color: var(--md-sys-color-on-error-container);
}

/* The icon rides the container's on-color — a separately-tinted icon on an already-tinted bar just
 * fights it (and was half of why the old treatment read as a detached block). */
.notice__icon {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: inherit;
}

.notice__title {
  font-weight: 600;
  margin-bottom: 0.125rem;
}

/* Compact — for a stack of short one-line notices (the it-32.2 rule-hazard flags), where the full
 * padding would swamp the text. */
.notice--compact {
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.5rem;
  font-size: var(--md-sys-typescale-body-small-size);
}
.notice--compact .notice__icon { font-size: 18px; }
