/*
 * Sepo Help Desk — blocks inside help articles, on the page and in the editor.
 * Notices use tinted backgrounds; colours mix with the text colour so they
 * read well on light and dark pages.
 */
.shd-callout, .shd-steps, .shd-tabs, .shd-faq, .shd-related { --shd-a: var(--shd-accent, #1f5f8b); }

/* Callout */
.shd-callout { --c: var(--shd-a); margin: 1.4em 0; padding: 14px 18px; border-radius: 12px; background: color-mix(in srgb, var(--c) 11%, transparent); }
.shd-callout.is-tip { --c: #1f8a54; }
.shd-callout.is-warning { --c: #b7791f; }
.shd-callout.is-danger { --c: #c0392b; }
.shd-callout > :first-child { margin-top: 0; }
.shd-callout > :last-child { margin-bottom: 0; }
.shd-callout-label { margin: 0 0 4px !important; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 75%, currentColor); }

/* Steps */
.shd-steps { counter-reset: shd-step; margin: 1.6em 0; }
.shd-step { position: relative; margin: 0; padding: 0 0 22px 48px; counter-increment: shd-step; }
.shd-step::before { content: counter(shd-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--shd-a) 14%, transparent); color: color-mix(in srgb, var(--shd-a) 80%, currentColor); font-size: .9rem; font-weight: 700; }
.shd-step::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: 6px; width: 2px; border-radius: 2px; background: color-mix(in srgb, currentColor 12%, transparent); }
.shd-step:last-child { padding-bottom: 0; }
.shd-step:last-child::after { display: none; }
.shd-step-title { margin: 4px 0 6px !important; font-weight: 650; }
.shd-step-body > :first-child { margin-top: 0; }
.shd-step-body > :last-child { margin-bottom: 0; }

/* Tabs: the script turns the labels into a row of tabs */
.shd-tabs { margin: 1.4em 0; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 14px; overflow: hidden; }
.shd-tab { padding: 16px 18px; }
.shd-tab + .shd-tab { border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.shd-tab-label { margin: 0 0 8px !important; font-weight: 650; }
.shd-tab-body > :first-child { margin-top: 0; }
.shd-tab-body > :last-child { margin-bottom: 0; }
.shd-tabs.is-ready .shd-tab { border-top: 0; }
.shd-tabs.is-ready .shd-tab-label { display: none; }
.shd-tabs.is-ready .shd-tab[hidden] { display: none; }
.shd-tablist { display: flex; gap: 2px; padding: 6px 6px 0; overflow-x: auto; background: color-mix(in srgb, currentColor 4%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.shd-tablist button { flex: none; margin: 0 0 -1px; padding: 9px 16px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; background: transparent; color: inherit; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; opacity: .75; }
.shd-tablist button[aria-selected="true"] { border-color: color-mix(in srgb, currentColor 14%, transparent); background: var(--shd-bg, transparent); opacity: 1; }
.shd-tablist button:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.shd-tabs.is-editing .shd-tab { border-top: 1px dashed color-mix(in srgb, currentColor 20%, transparent); }

/* FAQ */
.shd-faq { margin: 1.4em 0; }
.shd-faq details { margin: 0 0 8px; padding: 0; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); border-radius: 12px; }
.shd-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-weight: 650; cursor: pointer; list-style: none; }
.shd-faq summary::-webkit-details-marker { display: none; }
.shd-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .7; transition: transform .15s; }
.shd-faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.shd-faq details > :not(summary) { margin: 0; padding: 0 18px 14px; }
.shd-faq summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 12px; }

/* Related articles */
.shd-related { margin: 2em 0 1em; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, currentColor 4%, transparent); }
.shd-related-t { margin: 0 0 8px !important; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; opacity: .8; }
.shd-related ul { margin: 0; padding: 0; list-style: none; }
.shd-related li { margin: 0; }
.shd-related a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: inherit; text-decoration: none; font-weight: 550; }
.shd-related a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.shd-related svg { flex: none; opacity: .65; }

/* Keyboard keys */
.shd-content kbd, .editor-styles-wrapper kbd { display: inline-block; min-width: 1.6em; padding: .05em .45em; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-bottom-width: 2px; border-radius: 6px; background: color-mix(in srgb, currentColor 5%, transparent); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; line-height: 1.5; text-align: center; white-space: nowrap; }

/* Video steps */
.shd-video { --shd-a: var(--shd-accent, #1f5f8b); margin: 1.5em 0; }
.shd-video video { display: block; width: 100%; border-radius: 14px; background: #000; }
.shd-video-ch { display: grid; gap: 4px; margin: 10px 0 0 !important; padding: 0 !important; list-style: none; }
.shd-video-ch li { margin: 0 !important; }
.shd-video-ch button { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 8px 12px; border: 0; border-radius: 10px; background: color-mix(in srgb, currentColor 4%, transparent); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.shd-video-ch button:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.shd-video-ch button:focus-visible { outline: 2px solid var(--shd-a); outline-offset: 1px; }
.shd-video-ch button[aria-current] { background: color-mix(in srgb, var(--shd-a) 14%, transparent); font-weight: 600; }
.shd-video-t { flex: none; min-width: 3.2em; font-variant-numeric: tabular-nums; color: var(--shd-accent-ink, var(--shd-a)); font-weight: 600; }
.shd-video figcaption { margin-top: 8px; font-size: .9em; opacity: .8; }
.shd-video-ch.is-edit li { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; }
.shd-video.is-editing > .components-button { margin-top: 8px; }
@media print { .shd-video video { display: none; } .shd-video-ch button { background: none; padding: 2px 0; } }
