/* Callouts: Tip, Warning and Note boxes in posts, pages and reviews.
   The same left-bar box as the review verdict quote (.feature__quote), in three muted colours.
   Use a Paragraph or Group block with the classes "sp-callout sp-callout--tip|warning|note",
   or pick the Tip, Warning or Note block style in the editor (is-style-callout-*).
   Every callout starts with a bold label ("Tip:", "Warning:", "Note:"), so the meaning is never colour only.
   Contrast (WCAG 2.2): body text #161412 on each tint is 14:1 or more, the labels 6.3:1 to 7.9:1 (AA text),
   the bars 4.7:1 to 5.4:1 against the tint and 5.0:1 or more against the page (AA non-text, 3:1).
   ":root" lifts the rules above ".entry-content p" so a Paragraph callout keeps its own margin.
   Colours are literal so the same file works inside the block editor. */
:root :is(.sp-callout,[class*="is-style-callout-"]){
  --callout-bar:#6d6356; --callout-bg:#ebe5d8; --callout-label:#4a4238;
  box-sizing:border-box;margin:28px 0;padding:14px 18px;
  color:#161412;background:var(--callout-bg);border-left:4px solid var(--callout-bar);border-radius:0
}
:root :is(.sp-callout--tip,.is-style-callout-tip){--callout-bar:#23704a;--callout-bg:#e3ebd6;--callout-label:#1d5e3e}
:root :is(.sp-callout--warning,.is-style-callout-warning){--callout-bar:#a3302a;--callout-bg:#f5ddd3;--callout-label:#8c2722}
:root :is(.sp-callout--note,.is-style-callout-note){--callout-bar:#6d6356;--callout-bg:#ebe5d8;--callout-label:#4a4238}
/* The bold label: first <strong> at the start of the box */
:root :is(.sp-callout,[class*="is-style-callout-"]) > strong:first-child,
:root :is(.sp-callout,[class*="is-style-callout-"]) > :first-child > strong:first-child,
:root :is(.sp-callout,[class*="is-style-callout-"]) > .wp-block-group__inner-container > :first-child > strong:first-child{color:var(--callout-label);font-weight:700}
/* A Group callout holds paragraphs, lists or code; classic themes wrap them in .wp-block-group__inner-container */
:root :is(.sp-callout,[class*="is-style-callout-"]) > *,:root :is(.sp-callout,[class*="is-style-callout-"]) > .wp-block-group__inner-container > *{margin-top:0;margin-bottom:0}
:root :is(.sp-callout,[class*="is-style-callout-"]) > * + *,:root :is(.sp-callout,[class*="is-style-callout-"]) > .wp-block-group__inner-container > * + *{margin-top:.7em}
:root :is(.sp-callout,[class*="is-style-callout-"]) > :last-child,:root :is(.sp-callout,[class*="is-style-callout-"]) > .wp-block-group__inner-container > :last-child{margin-bottom:0}
:root :is(.sp-callout,[class*="is-style-callout-"]) a{color:inherit;text-decoration-color:var(--callout-bar)}
/* Same 28px rhythm as screenshots and tables; 22px and a little less padding on phones */
@media(max-width:600px){:root :is(.sp-callout,[class*="is-style-callout-"]){margin:22px 0;padding:12px 14px}}
/* High contrast: system colours, a full outline so the box stays visible, a thicker left bar */
@media(forced-colors:active){:root :is(.sp-callout,[class*="is-style-callout-"]){border:1px solid CanvasText;border-left:6px solid CanvasText;background:Canvas;color:CanvasText}:root :is(.sp-callout,[class*="is-style-callout-"]) > strong:first-child,:root :is(.sp-callout,[class*="is-style-callout-"]) > :first-child > strong:first-child,:root :is(.sp-callout,[class*="is-style-callout-"]) > .wp-block-group__inner-container > :first-child > strong:first-child{color:CanvasText}}
@media(prefers-contrast:more){:root :is(.sp-callout,[class*="is-style-callout-"]){--callout-bg:#fbf7ec;border:1px solid #161412;border-left:4px solid var(--callout-bar)}:root :is(.sp-callout,[class*="is-style-callout-"]) > strong:first-child,:root :is(.sp-callout,[class*="is-style-callout-"]) > :first-child > strong:first-child,:root :is(.sp-callout,[class*="is-style-callout-"]) > .wp-block-group__inner-container > :first-child > strong:first-child{color:#161412}}
