/* Safety Mastery: WordPress compat layer.
   Maps WordPress core blocks onto the components the design already styles (numbered sections, cards, chips, notes),
   so editors can use ordinary Group / Heading / List / Details blocks. Loaded after site.css and shell.css. */

/* ---- numbered sections: a Group block with the class "blk" and a Heading 2 first inside it */
.prose { counter-reset: smsec; }
.prose .blk { counter-increment: smsec; }
.prose .blk > h2:first-child { display: flex; align-items: center; gap: 16px; margin: 0 0 22px !important; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
.prose .blk > h2:first-child::before { content: counter(smsec, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font: 800 1rem var(--display); color: color-mix(in srgb, var(--ha, #b86e00) 78%, #000); background: rgba(var(--glow), .12); border: 1px solid rgba(var(--glow), .4); }
.prose .blk > h2:first-child::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--glow), .5), transparent); }
.prose .blk > h3 { margin-top: 1.4rem; }
@media (max-width: 680px) { .prose .blk > h2:first-child::before { width: 40px; height: 40px; border-radius: 12px; } }


/* ---- What you study: the number is its own paragraph */
.mod > p.mod-no { margin:0; }
.wrap.narrow:not(.prose) > h2:first-child { margin-top:0; }

/* ---- FAQ: Group "faq" > Details blocks */
.faq > .wp-block-details, .faq > details { margin: 0; }

/* ---- guides: the title can be long */
.page-hero h1 { text-wrap: balance; }

/* ---- table block output (see inc/blocks.php) */
.prose .tbl-wrap + .note { margin-top: 1.6rem; }
.prose .wp-block-group.note > p { margin: 0; max-width: none; }
.cx-foot a { font-weight: 700; }

/* ---- logged-in editors: keep the sticky header and section nav below the WordPress admin bar */
body.sm-admin-bar .sm-shell > header { top: 32px; }
body.sm-admin-bar .secnav { top: 104px; }
@media (max-width: 960px) { body.sm-admin-bar .secnav { top: 92px; } }
@media (max-width: 782px) { body.sm-admin-bar .sm-shell > header { top: 46px; } body.sm-admin-bar .secnav { top: 106px; } }
#wpadminbar { z-index: 99999; }

/* Components that used raw HTML, now ordinary blocks (same look) */
.fee-tiles > div > p.ft-l { display:block; margin:0; font:700 .72rem var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--t3); }
.fee-tiles > div > p.ft-v { display:block; margin:6px 0 0; font:800 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.1 var(--display); letter-spacing:-.02em; color:var(--t1); }
.pillars .pi { display:grid; place-items:center; width:46px; height:46px; border-radius:14px; background:rgba(var(--glow), .16); color:var(--ha); margin-bottom:14px; }
.find .fi { flex:none; display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:rgba(var(--glow), .16); color:var(--ha); }
.pillars .pi::before, .find .fi::before { content:""; background:currentColor; -webkit-mask:var(--ico) center/contain no-repeat; mask:var(--ico) center/contain no-repeat; }
.pillars .pi::before { width:24px; height:24px; }
.find .fi::before { width:20px; height:20px; }
.find > .fl { position:relative; }
.find > .fl:hover { transform:translateX(5px); border-color:rgba(var(--glow), .55); }
.find p a { color:inherit; text-decoration:none; }
.find .fl a::after { content:""; position:absolute; inset:0; }
.guide-list em { display:block; margin-top:6px; font-style:normal; color:var(--t3); font-size:.98rem; }
.who-ic::before, .rec-ic::before { content:""; background:currentColor; -webkit-mask:var(--ico) center/contain no-repeat; mask:var(--ico) center/contain no-repeat; }
.who-ic::before { width:22px; height:22px; }
.rec-ic::before { width:26px; height:26px; }
.page-hero h1.sm-h1-22ch { max-width:22ch; }

/* 404 quick links as blocks */
.sm-stretch a { color: inherit; text-decoration: none; }
.sm-stretch a::after { content: ""; position: absolute; inset: 0; }
.sec-head > p.sec-no { margin: 0; }
.rel { position: relative; }
.rel > .wp-block-group:not(.rel-ar) { flex: 1; min-width: 0; }
.nf .hero-actions { margin-bottom: 1rem; }
@media (min-width: 861px) { .nf .hero-actions { margin-bottom: calc(1rem + 1px); } }
.rel p.nf-b { margin: 0; display: block; font: 800 1.12rem var(--display); }
.rel p.nf-s { display: inline; margin: 0; color: var(--t3); font-size: .88rem; }
.rel > figure.rel-photo { margin: 0; }
.rel > figure.rel-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.rel-ar { flex: none; width: 19px; height: 19px; color: var(--ha); transition: transform .25s; }
.rel-ar::before { content: ""; display: block; width: 19px; height: 19px; background: currentColor; -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat; }
.rel:hover .rel-ar { transform: translateX(4px); }
/* footer links that sit in paragraphs */
#site-footer p a { color: inherit; text-decoration: none; }

/*@icons*/
.ico-arrow { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.ico-x { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.ico-check { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ico-phone { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a2 2 0 01-2 2A15 15 0 013 6a2 2 0 012-2z'/%3E%3C/svg%3E"); }
.ico-chat { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }
.ico-shield { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6zM9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.ico-cap { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5zM6 11v5c0 1.5 3 3 6 3s6-1.5 6-3v-5'/%3E%3C/svg%3E"); }
.ico-bank { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-5 9 5M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20h18'/%3E%3C/svg%3E"); }
.ico-award { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a5 5 0 100 10 5 5 0 000-10zM8.5 12.5L7 21l5-3 5 3-1.5-8.5'/%3E%3C/svg%3E"); }
.ico-globe { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 100 18 9 9 0 000-18zM3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E"); }
.ico-clock { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 100 18 9 9 0 000-18zM12 7v5l3 2'/%3E%3C/svg%3E"); }
.ico-user { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12a4 4 0 100-8 4 4 0 000 8zM4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }
.ico-badge { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.4 1.6 2.9-.2 1 2.7 2.4 1.7-.9 2.8.9 2.8-2.4 1.7-1 2.7-2.9-.2L12 21l-2.4-1.6-2.9.2-1-2.7L3.3 15l.9-2.8-.9-2.8 2.4-1.7 1-2.7 2.9.2zM9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.ico-laptop { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6h14v9H5zM2 19h20'/%3E%3C/svg%3E"); }
.ico-trend { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8M15 7h6v6'/%3E%3C/svg%3E"); }
.ico-id { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v14H4zM9 11a2 2 0 100-4 2 2 0 000 4zM6 16c0-2 6-2 6 0M14 9h4M14 12h4'/%3E%3C/svg%3E"); }
.ico-lock { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 11h12v9H6zM8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E"); }
.ico-bolt { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 3L5 14h6l-1 7 8-11h-6z'/%3E%3C/svg%3E"); }
.ico-download { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }
.ico-mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v12H3zM3 7l9 7 9-7'/%3E%3C/svg%3E"); }
.ico-pin { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6 7-11a7 7 0 10-14 0c0 5 7 11 7 11zM12 12a2 2 0 100-4 2 2 0 000 4z'/%3E%3C/svg%3E"); }
.ico-headset { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0116 0v2M4 14h3v5H5a1 1 0 01-1-1zM20 14h-3v5h2a1 1 0 001-1z'/%3E%3C/svg%3E"); }
.ico-star { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z'/%3E%3C/svg%3E"); }
