/* Marginal notes: .notice and .insight — a letter-spaced capital word in the tone colour sits in a 76 px margin
   (Wskazówka / Uwaga / Pilne / Dobrze / Notatka), the text runs in ink beside it. No box, stripe, dot or radius.
   Built as padding + absolutely placed ::before (not a grid) so mixed inline content and bare text stay one paragraph.
   The leading icon stays in the DOM but is hidden. */
@layer components {
  .notice, .insight {
    --tone: var(--ink-3); --word: "Notatka";
    position: relative; display: block; margin: 12px 0; padding: 6px 0 6px 86px;
    background: none; border: 0; border-radius: 0; font-size: var(--fs-caption); line-height: 1.4; color: var(--ink);
  }
  .notice::before, .insight::before {
    content: var(--word); position: absolute; left: 0; top: 7px; width: 76px; color: var(--tone);
    font-size: var(--fs-mark); font-weight: 600; letter-spacing: var(--ls-mark); text-transform: uppercase; line-height: 1.6;
  }
  .notice > .ico, .insight-ico { display: none; }
  .notice b { color: inherit; }
  .notice-info, .insight-info { --tone: var(--info); --word: "Wskazówka"; }
  .notice-warn, .insight-warn { --tone: var(--warn); --word: "Uwaga"; }
  .notice-danger, .insight-danger { --tone: var(--danger); --word: "Pilne"; }
  .notice-good, .insight-good { --tone: var(--good-ink); --word: "Dobrze"; }
  .notice.full { padding-left: 0; }
  .notice.full::before { display: none; }
  .notice .btn-text, .notice .link-btn { display: inline-flex; min-height: 44px; margin: -13px 0; padding: 0 2px; vertical-align: middle; }

  /* insights list (dashboard "Podpowiedzi"): rows with rules */
  .insight-list { display: flex; flex-direction: column; }
  .insight { margin: 0; padding-top: 10px; padding-bottom: 10px; border-top: 1px solid var(--rule); }
  .insight::before { top: 11px; }
  .insight-list > .insight:first-child { border-top: 0; }
  .insight-body { min-width: 0; overflow-wrap: anywhere; }
  .insight-title { font-weight: 600; font-size: var(--fs-body); }
  .insight-text { color: var(--ink-2); }
  .insight-cta { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-bottom: -10px; color: var(--accent); font-weight: 600; }
  @media (hover: hover) { .insight-cta:hover { text-decoration: underline; text-underline-offset: 3px; } }
}
