/* ==========================================================================
   Shichvat Hafshata (שכבת הפשטה) — main stylesheet
   Concept: a UML class diagram on drafting paper. Charcoal strokes, one coral
   accent, monospace display type. RTL-first, logical properties throughout.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("../fonts/plex-hebrew-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("../fonts/plex-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("../fonts/plex-hebrew-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("../fonts/plex-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("../fonts/plex-hebrew-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; src: url("../fonts/plex-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cousine"; src: url("../fonts/cousine-hebrew-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Cousine"; src: url("../fonts/cousine-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cousine"; src: url("../fonts/cousine-hebrew-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Cousine"; src: url("../fonts/cousine-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cascadia Mono"; src: url("../fonts/cascadia-hebrew.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Cascadia Mono"; src: url("../fonts/cascadia-latin.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
    --bg: #FAFAF7;
    --surface: #FFFFFF;
    --tint: #F2F1EC;
    --ink: #2E2E3A;
    --ink-2: #5C5C6B;
    --line: #2E2E3A;
    --hair: #DCDBD4;
    --accent: #F25F4C;
    --accent-ink: #B83A2A;
    --accent-soft: #FCE4DF;
    --on-accent: #1F1F28;
    --code-bg: #F4F3EF;
    --shadow: #2E2E3A;
    --dots: rgba(46, 46, 58, .13);
    --focus: #B83A2A;

    --f-body: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
    --f-title: "Cousine", "Courier New", monospace;
    --f-mono: "Cascadia Mono", Consolas, "Courier New", monospace;

    --wrap: 1200px;
    --gutter: clamp(1rem, 3vw, 2rem);
    --stroke: 1.5px;
    --header-h: 68px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-mode="light"]) {
        --bg: #1C1C24; --surface: #24242E; --tint: #202029; --ink: #E8E6EF; --ink-2: #A9A8B8;
        --line: #8F8EA3; --hair: #383846; --accent-ink: #FF7A68; --accent-soft: #3A2628;
        --code-bg: #17171E; --shadow: #0E0E13; --dots: rgba(232, 230, 239, .09); --focus: #FF7A68;
        color-scheme: dark;
    }
}
:root[data-mode="dark"] {
    --bg: #1C1C24; --surface: #24242E; --tint: #202029; --ink: #E8E6EF; --ink-2: #A9A8B8;
    --line: #8F8EA3; --hair: #383846; --accent-ink: #FF7A68; --accent-soft: #3A2628;
    --code-bg: #17171E; --shadow: #0E0E13; --dots: rgba(232, 230, 239, .09); --focus: #FF7A68;
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.75 var(--f-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
#shp-main:focus { outline: none; }
[hidden] { display: none !important; }

.shp-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.shp-skip {
    position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 100;
    background: var(--ink); color: var(--bg); padding: .6rem 1rem; font-weight: 600; text-decoration: none;
}
.shp-skip:focus { inset-block-start: .75rem; }

.shp-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.shp-read { max-width: calc(48rem + 2 * var(--gutter)); }
.shp-icon { flex: none; vertical-align: middle; }

/* ---------- Shared bits ---------- */
.shp-kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    font: 600 .8125rem/1.4 var(--f-mono); color: var(--accent-ink); letter-spacing: .02em;
}
.shp-kicker::before { content: ""; width: .55rem; height: .55rem; background: var(--accent); border: var(--stroke) solid var(--line); flex: none; }

.shp-stereo {
    display: inline-block; font: 500 .78rem/1.4 var(--f-mono); color: var(--ink-2);
    border: 1px solid var(--hair); padding: .1rem .5rem; background: var(--surface);
}
.shp-stereo--lg { font-size: .85rem; }
.shp-stereo--link { text-decoration: none; color: var(--accent-ink); border-color: currentColor; }
.shp-stereo--link:hover { background: var(--accent-soft); }

.shp-vis { font-family: var(--f-mono); color: var(--accent-ink); font-weight: 700; }

.shp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 46px; padding: .55rem 1.25rem; font: 600 1rem/1.2 var(--f-body);
    text-decoration: none; border: var(--stroke) solid var(--line); cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.shp-btn--solid { background: var(--accent); color: var(--on-accent); box-shadow: 3px 3px 0 var(--shadow); }
.shp-btn--ghost { background: var(--surface); color: var(--ink); box-shadow: 3px 3px 0 var(--hair); }
.shp-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); text-decoration: none; }
.shp-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--shadow); }

.shp-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; min-height: 40px; }
.shp-more:hover { text-decoration: underline; }

.shp-avatar {
    display: inline-grid; place-items: center; flex: none;
    width: 2.6rem; height: 2.6rem; border: var(--stroke) solid var(--line);
    background: var(--accent-soft); color: var(--ink); font: 700 .95rem/1 var(--f-title);
}
.shp-avatar--lg { width: 3.5rem; height: 3.5rem; font-size: 1.2rem; }

.shp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.shp-chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .85rem;
    border: var(--stroke) solid var(--line); background: var(--surface); color: var(--ink);
    text-decoration: none; font-weight: 600; font-size: .95rem;
}
.shp-chip:hover { background: var(--accent-soft); }

/* ---------- Header ---------- */
.shp-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--surface); border-block-end: var(--stroke) solid var(--line);
}
.admin-bar .shp-header { top: 32px; }
.shp-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.shp-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: none; }
.shp-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.shp-brand__name { font: 700 1.3rem/1.15 var(--f-mono); letter-spacing: -.01em; word-spacing: -.25em; }
.shp-brand__sub { font-size: .76rem; color: var(--ink-2); margin-top: .15rem; }
.shp-mark { display: block; }

.shp-nav { margin-inline-start: auto; }
.shp-nav__list { list-style: none; display: flex; gap: .15rem; }
.shp-nav__list a {
    display: flex; align-items: center; min-height: 44px; padding: .25rem .7rem;
    color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; position: relative;
}
.shp-nav__list a::after {
    content: ""; position: absolute; inset-inline: .7rem; inset-block-end: 4px; height: 3px;
    background: var(--accent); transform: scaleX(0); transition: transform .2s ease;
}
.shp-nav__list a:hover::after, .shp-nav__list .current-menu-item > a::after, .shp-nav__list .current-post-ancestor > a::after, .shp-nav__list .current-category-ancestor > a::after { transform: scaleX(1); }
.shp-nav__list .current-menu-item > a { color: var(--ink); }

.shp-actions { display: flex; align-items: center; gap: .35rem; }
.shp-iconbtn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
    background: transparent; border: var(--stroke) solid transparent; cursor: pointer; color: var(--ink);
}
.shp-iconbtn:hover { border-color: var(--line); background: var(--tint); }
.shp-iconbtn[aria-expanded="true"] { border-color: var(--line); background: var(--accent-soft); }
.shp-mode-light { display: none; }
:root[data-mode="dark"] .shp-mode-light { display: inline; }
:root[data-mode="dark"] .shp-mode-dark { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-mode="light"]) .shp-mode-light { display: inline; }
    :root:not([data-mode="light"]) .shp-mode-dark { display: none; }
}
.shp-menubtn { display: none; }
.shp-menubtn__close { display: none; }
.shp-menubtn[aria-expanded="true"] .shp-menubtn__close { display: inline; }
.shp-menubtn[aria-expanded="true"] .shp-menubtn__open { display: none; }

.shp-searchbar { border-block-start: 1px solid var(--hair); background: var(--tint); padding-block: .9rem; }
.shp-search { display: flex; gap: .5rem; max-width: 40rem; }
.shp-search__input {
    flex: 1; min-width: 0; min-height: 46px; padding: .5rem .9rem; font: inherit; font-size: 1rem;
    color: var(--ink); background: var(--surface); border: var(--stroke) solid var(--line); border-radius: 0;
}
.shp-search__input::placeholder { color: var(--ink-2); opacity: 1; }
.shp-search .shp-btn { box-shadow: none; }

@media (max-width: 1180px) {
    .shp-menubtn { display: inline-grid; }
    .shp-js .shp-nav {
        position: absolute; inset-inline: 0; inset-block-start: 100%;
        background: var(--surface); border-block-end: var(--stroke) solid var(--line);
        display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .shp-js .shp-nav.is-open { display: block; }
    .shp-nav__list { flex-direction: column; padding: .5rem var(--gutter) 1rem; }
    .shp-nav__list a { border-block-end: 1px solid var(--hair); min-height: 48px; }
    .shp-nav__list a::after { inset-inline: auto; inset-inline-start: 0; inset-block: 10px; width: 3px; height: auto; transform: scaleY(0); }
    .shp-nav__list a:hover::after, .shp-nav__list .current-menu-item > a::after { transform: scaleY(1); }
    html:not(.shp-js) .shp-header__inner { flex-wrap: wrap; }
    html:not(.shp-js) .shp-nav { order: 3; width: 100%; }
    html:not(.shp-js) .shp-menubtn { display: none; }
    .shp-actions { margin-inline-start: auto; }
}
@media (max-width: 520px) {
    .shp-brand__sub { display: none; }
    .shp-brand__name { font-size: 1.12rem; }
    .shp-brand .shp-mark { width: 34px; height: 34px; }
    .shp-header__inner { gap: .5rem; }
    .shp-iconbtn { width: 42px; height: 42px; }
}

/* ---------- Sections ---------- */
.shp-section { padding-block: clamp(3rem, 6vw, 5rem); }
.shp-section--flush { padding-block-start: clamp(2rem, 4vw, 3rem); }
.shp-section--tint { background: var(--tint); border-block: 1px solid var(--hair); }
.shp-sechead { margin-block-end: 2.25rem; max-width: 46rem; }
.shp-sechead--split { display: flex; align-items: end; justify-content: space-between; gap: 1rem; max-width: none; flex-wrap: wrap; }
.shp-sechead__title { font: 700 clamp(1.6rem, 1.2rem + 1.3vw, 2.15rem)/1.25 var(--f-title); margin-block-start: .5rem; letter-spacing: -.01em; }
.shp-sechead__lead { margin-block-start: .75rem; color: var(--ink-2); font-size: 1.05rem; }

/* Dot-grid drafting paper behind headers */
.shp-hero, .shp-head, .shp-article__head {
    background-color: var(--bg);
    background-image: radial-gradient(var(--dots) 1px, transparent 1.2px);
    background-size: 22px 22px;
    background-position: center top;
}

/* ---------- Hero ---------- */
.shp-hero { padding-block: clamp(2.75rem, 6vw, 5rem); border-block-end: var(--stroke) solid var(--line); }
.shp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.shp-hero__title { font: 700 clamp(1.85rem, 1.25rem + 2.1vw, 2.9rem)/1.22 var(--f-title); margin-block-start: 1rem; letter-spacing: -.015em; text-wrap: balance; }
.shp-hero__lead { margin-block-start: 1.1rem; font-size: 1.15rem; color: var(--ink-2); max-width: 38rem; }
.shp-hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-block-start: 1.9rem; }

.shp-iface { background: var(--surface); border: var(--stroke) solid var(--line); box-shadow: 8px 8px 0 var(--accent); }
.shp-iface__head { text-align: center; padding: .9rem 1rem .8rem; border-block-end: var(--stroke) solid var(--line); background: var(--accent-soft); }
.shp-iface__name { font: 700 1.35rem/1.3 var(--f-mono); margin-block-start: .2rem; }
.shp-iface__ops { list-style: none; padding: 1rem 1.25rem; font: 400 .98rem/1.9 var(--f-mono); border-block-end: var(--stroke) solid var(--line); }
.shp-iface__ops b, .shp-iface__foot b { color: var(--accent-ink); }
.shp-iface__foot { padding: .75rem 1.25rem; font-size: .92rem; color: var(--ink-2); }

/* ---------- UML class box ---------- */
.shp-class {
    position: relative; background: var(--surface); border: var(--stroke) solid var(--line);
    box-shadow: 4px 4px 0 var(--hair); transition: box-shadow .18s ease, transform .18s ease; height: 100%;
}
.shp-class:hover, .shp-class:focus-within { box-shadow: 5px 5px 0 var(--accent); transform: translate(-1px, -1px); }
.shp-class__head { text-align: center; padding: .65rem .75rem .6rem; border-block-end: var(--stroke) solid var(--line); }
.shp-class--abstract .shp-class__head { background: var(--accent-soft); }
.shp-class__stereo { display: block; font: 400 .76rem/1.4 var(--f-mono); color: var(--ink-2); }
.shp-class__name { font: 700 1.05rem/1.35 var(--f-title); margin-block-start: .15rem; }
.shp-class__name a { color: var(--ink); text-decoration: none; }
.shp-class__name a::after { content: ""; position: absolute; inset: 0; }
.shp-class__name a:focus-visible { outline: none; }
.shp-class:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.shp-class__attrs { list-style: none; padding: .6rem .8rem .7rem; font: 400 .84rem/1.65 var(--f-mono); color: var(--ink-2); }
.shp-class__attrs b { color: var(--ink); }
.shp-class__newest { color: var(--ink); }

/* ---------- Diagram ---------- */
.shp-diagram { color: var(--line); }
.shp-pkg {
    position: relative; border: var(--stroke) solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent);
    padding: 1.75rem clamp(1rem, 2.5vw, 1.75rem) 1.75rem; margin-block-start: 2rem; color: var(--ink);
}
.shp-pkg__tab {
    position: absolute; inset-block-start: calc(-2rem + 0px); inset-inline-start: calc(var(--stroke) * -1);
    height: 2rem; display: flex; align-items: center; gap: .45rem; padding-inline: .85rem;
    border: var(--stroke) solid var(--line); border-block-end: 0; background: var(--surface);
    font: 700 .9rem/1 var(--f-title); color: var(--ink);
}
.shp-pkg__tab span { font: 400 .74rem/1 var(--f-mono); color: var(--ink-2); }

/* Inheritance tree: abstract root, hollow-triangle generalisation, bus line, children */
.shp-tree__root { display: flex; flex-direction: column; align-items: center; }
.shp-tree__root .shp-class { width: min(22rem, 100%); }
.shp-tree__link { display: block; position: relative; width: 22px; height: 2.25rem; color: var(--line); }
.shp-tree__link svg { display: block; position: absolute; inset-block-start: 0; inset-inline-start: 0; }
.shp-tree__link::after { content: ""; position: absolute; inset-block: 15px 0; inset-inline-start: 10.25px; border-inline-start: var(--stroke) solid var(--line); }
.shp-tree__kids { --gap: 1.25rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); position: relative; padding-block-start: 1.75rem; }
.shp-tree__kids::before {
    content: ""; position: absolute; inset-block-start: 0;
    inset-inline: calc((100% - 3 * var(--gap)) / 8); border-block-start: var(--stroke) solid var(--line);
}
.shp-tree__kid { position: relative; }
.shp-tree__kid::before { content: ""; position: absolute; inset-block-start: -1.75rem; height: 1.75rem; inset-inline-start: 50%; border-inline-start: var(--stroke) solid var(--line); }

/* «use» dependency between packages: one dashed arrow above each lower package */
.shp-uses { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; height: 3.25rem; }
.shp-uses__col { display: flex; justify-content: center; align-items: center; gap: .6rem; position: relative; }
.shp-uses__arrow { position: relative; align-self: stretch; border-inline-start: var(--stroke) dashed var(--line); }
.shp-uses__arrow::before {
    content: ""; position: absolute; inset-block-start: 0; left: -5.5px; width: 9px; height: 9px;
    border-top: var(--stroke) solid var(--line); border-left: var(--stroke) solid var(--line); transform: rotate(45deg);
}
.shp-uses__label { font: 400 .8rem/1 var(--f-mono); color: var(--ink-2); }
.shp-diagram__row .shp-pkg { margin-block-start: 0; }
.shp-uses { margin-block-end: 2rem; }

.shp-diagram__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: stretch; }
.shp-pkg__items { --gap: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: var(--gap); }
.shp-pkg__item { position: relative; }
/* association lines between neighbouring classes; composition diamond in the architecture package */
.shp-pkg__item + .shp-pkg__item::before {
    content: ""; position: absolute; inset-block-start: 2.6rem; inset-inline-start: calc(var(--gap) * -1);
    width: var(--gap); border-block-start: var(--stroke) solid var(--line);
}
.shp-pkg--architecture .shp-pkg__item + .shp-pkg__item::after {
    content: ""; position: absolute; inset-block-start: calc(2.6rem - 5px); inset-inline-start: calc(var(--gap) * -1 - 1px);
    width: 9px; height: 9px; background: var(--line); transform: rotate(45deg);
}

@media (max-width: 1060px) {
    .shp-diagram__row { grid-template-columns: 1fr; gap: 3.5rem; }
    .shp-uses { grid-template-columns: 1fr; }
    .shp-uses__col + .shp-uses__col { display: none; }
}
@media (max-width: 760px) {
    .shp-tree__root { align-items: stretch; }
    .shp-tree__root .shp-class { width: 100%; }
    .shp-tree__link { margin-inline-start: 1rem; }
    .shp-tree__kids { grid-template-columns: 1fr; padding-block-start: 0; padding-inline-start: 2.25rem; gap: .9rem; }
    .shp-tree__kids::before { inset-inline: auto; inset-inline-start: calc(1rem + 10.25px); inset-block: 0 2.4rem; border-block-start: 0; border-inline-start: var(--stroke) solid var(--line); }
    .shp-tree__kid::before { inset-block-start: 2.4rem; height: 0; width: calc(2.25rem - 1rem - 10.25px); inset-inline-start: calc((2.25rem - 1rem - 10.25px) * -1); border-inline-start: 0; border-block-start: var(--stroke) solid var(--line); }
    .shp-pkg__items { grid-auto-flow: row; grid-template-columns: 1fr; --gap: 1rem; }
    .shp-pkg__item + .shp-pkg__item::before { inset-block-start: calc(var(--gap) * -1); inset-inline-start: 50%; width: 0; height: var(--gap); border-block-start: 0; border-inline-start: var(--stroke) solid var(--line); }
    .shp-pkg--architecture .shp-pkg__item + .shp-pkg__item::after { inset-block-start: calc(var(--gap) * -1 - 5px); inset-inline-start: calc(50% - 4px); }
}

/* ---------- Pattern catalog cards ---------- */
.shp-catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.shp-pcard { display: flex; flex-direction: column; background: var(--surface); border: var(--stroke) solid var(--line); box-shadow: 4px 4px 0 var(--hair); }
.shp-pcard__head { padding: .8rem 1rem .75rem; border-block-end: var(--stroke) solid var(--line); text-align: center; }
.shp-pcard__title { font: 700 1.12rem/1.35 var(--f-title); margin-block-start: .15rem; }
.shp-pcard__title a { color: var(--ink); text-decoration: none; }
.shp-pcard__title a:hover { color: var(--accent-ink); text-decoration: underline; }
.shp-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-block-end: 1px solid var(--hair); }
.shp-tabs [role="tab"] {
    min-height: 44px; padding: .3rem .25rem; background: transparent; border: 0; cursor: pointer;
    font: 600 .86rem/1.2 var(--f-body); color: var(--ink-2); border-block-end: 3px solid transparent; margin-block-end: -1px;
}
.shp-tabs [role="tab"] + [role="tab"] { border-inline-start: 1px solid var(--hair); }
.shp-tabs [role="tab"]:hover { color: var(--ink); background: var(--tint); }
.shp-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-block-end-color: var(--accent); background: var(--accent-soft); }
.shp-tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.shp-tabpanel { padding: .9rem 1rem; font-size: .95rem; line-height: 1.65; flex: 1; }
.shp-js .shp-tabpanel { min-height: 11.5rem; }
.shp-tabpanel__label { font: 600 .78rem/1.4 var(--f-mono); color: var(--accent-ink); margin-block-end: .35rem; }
.shp-js .shp-tabpanel__label { display: none; }
html:not(.shp-js) .shp-tabpanel + .shp-tabpanel { border-block-start: 1px dashed var(--hair); }
.shp-parts { margin: 0; display: grid; gap: .45rem; }
.shp-parts div { display: grid; gap: .05rem; }
.shp-parts dt { font: 600 .84rem/1.4 var(--f-mono); color: var(--ink); text-align: end; justify-self: start; unicode-bidi: isolate; }
.shp-parts dd { margin: 0; color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.shp-cons { list-style: none; display: grid; gap: .45rem; }
.shp-cons li { position: relative; padding-inline-start: 1.1rem; }
.shp-cons li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .6em; width: .45rem; height: .45rem; border: var(--stroke) solid var(--accent-ink); transform: rotate(45deg); }
.shp-pcard__foot { border-block-start: 1px solid var(--hair); padding: .2rem 1rem; }
.shp-pcard__foot a { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.shp-pcard__foot a:hover { text-decoration: underline; }
@media (max-width: 1100px) { .shp-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .shp-catalog { grid-template-columns: 1fr; } }

/* ---------- Note cards (UML note: folded corner) ---------- */
.shp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
@media (max-width: 980px) { .shp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .shp-grid { grid-template-columns: 1fr; } }
.shp-card {
    --fold: 20px;
    position: relative; display: flex; flex-direction: column; background: var(--surface);
    border: var(--stroke) solid var(--line); padding: .85rem;
    transition: box-shadow .18s ease, transform .18s ease; box-shadow: 4px 4px 0 var(--hair);
}
.shp-card::before {
    content: ""; position: absolute; inset-block-start: calc(var(--stroke) * -1); left: calc(var(--stroke) * -1);
    width: var(--fold); height: var(--fold);
    background: linear-gradient(to bottom right, var(--page-bg, var(--bg)) 50%, var(--accent-soft) 50%);
    border-right: var(--stroke) solid var(--line); border-bottom: var(--stroke) solid var(--line);
}
.shp-card::after {
    content: ""; position: absolute; inset-block-start: calc(var(--stroke) * -1); left: calc(var(--stroke) * -1);
    width: calc(var(--fold) * 1.4142); height: var(--stroke); background: var(--line);
    transform-origin: 0 0; transform: translate(0, var(--fold)) rotate(-45deg);
}
.shp-section--tint .shp-card { --page-bg: var(--tint); }
.shp-card:hover, .shp-card:focus-within { box-shadow: 5px 5px 0 var(--accent); transform: translate(-1px, -1px); }
.shp-card__top { min-height: var(--fold); padding-inline-end: calc(var(--fold) - .4rem); margin-block-end: .7rem; }
.shp-card__media { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--hair); background: var(--tint); }
.shp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shp-card:hover .shp-card__media img { transform: scale(1.03); }
.shp-card__body { display: flex; flex-direction: column; gap: .55rem; padding: .9rem .2rem .2rem; flex: 1; }
.shp-card__title { font: 700 1.08rem/1.4 var(--f-title); }
.shp-card__title a { color: var(--ink); text-decoration: none; }
.shp-card__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.shp-card__title a:focus-visible { outline: none; }
.shp-card:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.shp-card__excerpt { color: var(--ink-2); font-size: .95rem; line-height: 1.65; }
.shp-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-block-start: auto; padding-block-start: .3rem; font: 400 .8rem/1.5 var(--f-mono); color: var(--ink-2); }

/* Compact rows (search, 404) */
.shp-rows { display: grid; gap: 0; border-block-start: var(--stroke) solid var(--line); }
.shp-row { position: relative; padding: 1rem .25rem; border-block-end: 1px solid var(--hair); display: grid; gap: .3rem; }
.shp-row__title { font: 700 1.08rem/1.4 var(--f-title); }
.shp-row__title a { color: var(--ink); text-decoration: none; }
.shp-row__title a:hover { color: var(--accent-ink); text-decoration: underline; }
.shp-row .shp-stereo { justify-self: start; }

/* ---------- Writers (object instances) ---------- */
.shp-objects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem; }
.shp-object { background: var(--surface); border: var(--stroke) solid var(--line); box-shadow: 4px 4px 0 var(--hair); }
.shp-object__head { display: flex; align-items: center; gap: .85rem; padding: .9rem 1.1rem; border-block-end: var(--stroke) solid var(--line); }
.shp-object__name { font: 700 1.12rem/1.35 var(--f-title); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.shp-object__name a { color: inherit; }
.shp-object__type { color: var(--ink-2); font-weight: 400; }
.shp-object__label { font: 400 .8rem/1.4 var(--f-mono); color: var(--ink-2); }
.shp-object .shp-class__attrs { border-block-end: 1px solid var(--hair); }
.shp-object__bio { padding: .9rem 1.1rem 1rem; color: var(--ink-2); font-size: .97rem; line-height: 1.7; }
.shp-object--author { margin-block-start: 2.5rem; }
.shp-object--author .shp-object__bio { border-block-start: 0; }

/* ---------- Page / archive header ---------- */
.shp-head { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 4vw, 2.75rem); border-block-end: var(--stroke) solid var(--line); }
.shp-head .shp-stereo { margin-block-start: .9rem; }
.shp-head__title { font: 700 clamp(1.75rem, 1.25rem + 1.8vw, 2.6rem)/1.25 var(--f-title); margin-block-start: .6rem; letter-spacing: -.01em; max-width: 52rem; text-wrap: balance; }
.shp-head__lead { margin-block-start: 1rem; max-width: 50rem; color: var(--ink-2); font-size: 1.06rem; display: grid; gap: .75rem; }
.shp-head__lead a { font-weight: 600; }

.shp-crumbs { font-size: .85rem; color: var(--ink-2); }
.shp-crumbs a { color: var(--ink-2); }
.shp-crumbs a:hover { color: var(--accent-ink); }
.shp-crumbs .breadcrumb_last { color: var(--ink); }

.shp-empty { padding-block: 1rem 2rem; display: grid; gap: 1.25rem; }
.shp-empty__title { font: 700 1.25rem/1.35 var(--f-title); margin-block: 2rem 1rem; }
.shp-searchbox { margin-block-end: 2rem; }

.shp-pagination { margin-block-start: 2.5rem; }
.shp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.shp-pagination .page-numbers {
    display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: .7rem;
    border: var(--stroke) solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: 600 .95rem/1 var(--f-mono);
}
.shp-pagination .page-numbers.current { background: var(--accent); color: var(--on-accent); }
.shp-pagination .page-numbers.dots { border-color: transparent; background: transparent; }
.shp-pagination a.page-numbers:hover { background: var(--accent-soft); }

/* ---------- Single article ---------- */
.shp-article__head { padding-block: clamp(1.75rem, 4vw, 3rem) 2rem; border-block-end: var(--stroke) solid var(--line); }
.shp-article__head .shp-stereo { margin-block-start: 1rem; }
.shp-article__title { font: 700 clamp(1.7rem, 1.2rem + 1.9vw, 2.55rem)/1.28 var(--f-title); margin-block-start: .7rem; max-width: 56rem; letter-spacing: -.012em; text-wrap: balance; }
.shp-article__lead { margin-block-start: 1rem; font-size: 1.14rem; color: var(--ink-2); max-width: 50rem; line-height: 1.7; }
.shp-byline { display: flex; align-items: center; gap: .8rem; margin-block-start: 1.5rem; }
.shp-byline__text { display: grid; gap: .1rem; }
.shp-byline__name { font-weight: 700; color: var(--ink); }
.shp-byline__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .88rem; color: var(--ink-2); }
.shp-byline__meta span { display: inline-flex; align-items: center; gap: .3rem; }

.shp-article__layout { padding-block: 2.5rem 4rem; }
.shp-article__main { min-width: 0; max-width: 48rem; }
.shp-article__layout:not(.has-toc) .shp-article__main { margin-inline: auto; }
.shp-article__media { margin: 0 0 2rem; border: var(--stroke) solid var(--line); padding: .5rem; background: var(--surface); box-shadow: 6px 6px 0 var(--accent); }
.shp-article__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

@media (min-width: 1100px) {
    .shp-article__layout.has-toc { display: grid; grid-template-columns: minmax(0, 48rem) minmax(15rem, 18rem); gap: 3.5rem; justify-content: space-between; align-items: start; }
    .shp-article__layout.has-toc .shp-toc { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 1.5rem); }
    .shp-article__layout.has-toc .shp-article__main { grid-column: 1; grid-row: 1; }
}

.shp-toc { margin-block-end: 2rem; }
.shp-toc__box { background: var(--surface); border: var(--stroke) solid var(--line); box-shadow: 4px 4px 0 var(--hair); }
.shp-toc__head { list-style: none; cursor: pointer; text-align: center; padding: .6rem .9rem; border-block-end: var(--stroke) solid var(--line); background: var(--accent-soft); min-height: 44px; }
.shp-toc__head::-webkit-details-marker { display: none; }
.shp-toc__box:not([open]) .shp-toc__head { border-block-end: 0; }
.shp-toc__title { font: 700 1rem/1.4 var(--f-title); }
.shp-toc__list { list-style: none; counter-reset: toc; padding: .5rem 0; max-height: calc(100vh - var(--header-h) - 10rem); overflow-y: auto; }
.shp-toc__list li { counter-increment: toc; }
.shp-toc__list a {
    display: grid; grid-template-columns: 1.9rem 1fr; gap: .2rem; align-items: center; min-height: 40px; padding: .38rem .9rem; color: var(--ink-2);
    text-decoration: none; font-size: .9rem; line-height: 1.45; border-inline-start: 3px solid transparent;
}
.shp-toc__list a::before { content: counter(toc, decimal-leading-zero); font: 400 .78rem/1.8 var(--f-mono); color: var(--ink-2); }
.shp-toc__list a:hover { color: var(--ink); background: var(--tint); }
.shp-toc__list a.is-active { color: var(--ink); border-inline-start-color: var(--accent); background: var(--tint); font-weight: 600; }

/* ---------- Prose ---------- */
.shp-prose { font-size: 1.075rem; line-height: 1.85; counter-reset: sec; }
.shp-prose > * + * { margin-block-start: 1.15em; }
.shp-prose h2 {
    counter-increment: sec; font: 700 clamp(1.4rem, 1.2rem + .7vw, 1.7rem)/1.35 var(--f-title);
    margin-block-start: 2.4em; padding-block-start: 1.1rem; border-block-start: 1px solid var(--hair); position: relative;
}
.shp-prose h2::before {
    content: "§" counter(sec, decimal-leading-zero); display: table; direction: ltr; margin-block-end: .35rem;
    font: 600 .8rem/1 var(--f-mono); color: var(--accent-ink); letter-spacing: .04em;
}
.shp-prose h3 { font: 700 1.2rem/1.45 var(--f-body); margin-block-start: 1.9em; }
.shp-prose h3 + * , .shp-prose h2 + * { margin-block-start: .7em; }
.shp-prose ul, .shp-prose ol { padding-inline-start: 1.4rem; }
.shp-prose li + li { margin-block-start: .45em; }
.shp-prose ul li::marker { color: var(--accent-ink); }
.shp-prose ol li::marker { color: var(--accent-ink); font-family: var(--f-mono); font-size: .9em; }
.shp-prose strong { font-weight: 700; color: var(--ink); }
.shp-prose a { font-weight: 500; }
.shp-prose blockquote { margin-inline: 0; padding: .5rem 1.25rem; border-inline-start: 4px solid var(--accent); background: var(--tint); }
.shp-prose img { border: 1px solid var(--hair); }
.shp-prose hr { border: 0; border-block-start: 1px dashed var(--line); margin-block: 2.5rem; }
.shp-prose--front > h2:first-child { margin-block-start: 0; }

.shp-prose code, .shp-object code {
    font-family: var(--f-mono); font-size: .86em; background: var(--code-bg); color: var(--ink);
    border: 1px solid var(--hair); padding: .08em .35em; unicode-bidi: isolate; white-space: break-spaces;
}

/* Code block frame */
.shp-code { margin: 1.75rem 0 0; border: var(--stroke) solid var(--line); background: var(--code-bg); direction: ltr; text-align: left; box-shadow: 4px 4px 0 var(--hair); }
.shp-prose > .shp-code + * { margin-block-start: 1.5em; }
.shp-code__bar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .2rem .35rem .2rem .9rem; border-block-end: 1px solid var(--hair); background: var(--surface);
}
.shp-code__lang { display: inline-flex; align-items: center; gap: .45rem; font: 600 .76rem/1 var(--f-mono); color: var(--accent-ink); letter-spacing: .04em; }
.shp-code__lang::before { content: ""; width: .5rem; height: .5rem; border: var(--stroke) solid var(--accent-ink); }
.shp-code__copy {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .2rem .75rem;
    background: transparent; border: 1px solid transparent; cursor: pointer; font: 500 .82rem/1 var(--f-body); color: var(--ink-2);
}
.shp-code__copy:hover { border-color: var(--line); color: var(--ink); background: var(--tint); }
.shp-code__copy.is-done { color: var(--accent-ink); }
.shp-code pre {
    margin: 0; padding: 1rem 1.15rem 1.1rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
    font: 400 .875rem/1.65 var(--f-mono); tab-size: 4; white-space: pre; color: var(--ink);
}
.shp-code pre:focus-visible { outline-offset: -3px; }
.shp-code pre code { font: inherit; background: none; border: 0; padding: 0; white-space: inherit; unicode-bidi: normal; }

/* Tables: UML-compartment look, scroll on narrow screens */
.shp-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: var(--stroke) solid var(--line); background: var(--surface); }
.shp-table:focus-visible { outline-offset: 2px; }
.shp-table table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.6; }
.shp-table table:has(tr > :nth-child(3)) { min-width: 36rem; }
.shp-table th { text-align: start; font: 700 .92rem/1.4 var(--f-title); background: var(--accent-soft); padding: .7rem .85rem; border-block-end: var(--stroke) solid var(--line); vertical-align: bottom; }
.shp-table td { padding: .65rem .85rem; border-block-start: 1px solid var(--hair); vertical-align: top; }
.shp-table th + th, .shp-table td + td { border-inline-start: 1px solid var(--hair); }
.shp-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--tint) 60%, transparent); }

.shp-readalso { padding: .9rem 1.1rem; border: 1px dashed var(--line); background: var(--tint); }

/* Closing code note: a UML note with a folded corner */
.shp-umlnote {
    --fold: 22px; position: relative; margin-block-start: 2.5rem; padding: 1.1rem 1.25rem 1.2rem;
    background: var(--accent-soft); border: var(--stroke) solid var(--line); font-size: .97rem; line-height: 1.7;
}
.shp-umlnote::before {
    content: ""; position: absolute; inset-block-start: calc(var(--stroke) * -1); left: calc(var(--stroke) * -1);
    width: var(--fold); height: var(--fold);
    background: linear-gradient(to bottom right, var(--bg) 50%, var(--surface) 50%);
    border-right: var(--stroke) solid var(--line); border-bottom: var(--stroke) solid var(--line);
}
.shp-umlnote::after {
    content: ""; position: absolute; inset-block-start: calc(var(--stroke) * -1); left: calc(var(--stroke) * -1);
    width: calc(var(--fold) * 1.4142); height: var(--stroke); background: var(--line);
    transform-origin: 0 0; transform: translate(0, var(--fold)) rotate(-45deg);
}
.shp-umlnote__title { display: flex; align-items: center; gap: .45rem; font: 700 1rem/1.4 var(--f-title); margin-block-end: .4rem; }

/* Contact form (ADX plugin): adopt the theme's tokens */
.shp-prose .adxc {
    --adxc-accent: var(--accent); --adxc-bg: var(--surface); --adxc-fg: var(--ink);
    --adxc-input-bg: var(--bg); --adxc-input-fg: var(--ink); --adxc-border: var(--line);
    --adxc-btn-fg: var(--on-accent); --adxc-radius: 0;
}
.shp-prose .adxc .adxc-form { box-shadow: 6px 6px 0 var(--accent); border-width: var(--stroke); }
.shp-prose .adxc .adxc-field input, .shp-prose .adxc .adxc-field textarea { border-radius: 0; border-width: var(--stroke); }
.shp-prose .adxc .adxc-field input:focus, .shp-prose .adxc .adxc-field textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: none; }
.shp-prose .adxc .adxc-submit { border-radius: 0; border: var(--stroke) solid var(--line); min-height: 46px; box-shadow: 3px 3px 0 var(--shadow); }
.shp-prose .adxc .adxc-submit:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.shp-prose .adxc.adxc-state-ok .adxc-msg { color: #1D7A43; }
.shp-prose .adxc.adxc-state-err .adxc-msg { color: var(--accent-ink); }
:root[data-mode="dark"] .shp-prose .adxc.adxc-state-ok .adxc-msg { color: #6FD39A; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .shp-prose .adxc.adxc-state-ok .adxc-msg { color: #6FD39A; } }

/* ---------- Footer ---------- */
.shp-footer { background: #2E2E3A; color: #E8E6EF; padding-block: 3.5rem 1.5rem; border-block-start: 4px solid var(--accent); }
:root[data-mode="dark"] .shp-footer { background: #121218; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .shp-footer { background: #121218; } }
.shp-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.shp-brand--footer { color: #FFFFFF; }
.shp-brand--footer .shp-brand__sub { color: #B9B8C6; }
.shp-brand--footer .shp-mark rect:first-child { stroke: #8F8EA3; stroke-width: 2; }
.shp-footer__desc { margin-block-start: 1rem; color: #D6D4E0; max-width: 30rem; }
.shp-footer__note { margin-block-start: 1rem; color: #B9B8C6; font-size: .88rem; line-height: 1.65; max-width: 30rem; padding-inline-start: .85rem; border-inline-start: 2px solid var(--accent); }
.shp-footer__title { font: 700 1rem/1.4 var(--f-title); color: #FFFFFF; margin-block-end: .8rem; display: flex; gap: .45rem; align-items: baseline; }
.shp-footer__title span { font: 400 .74rem/1 var(--f-mono); color: #B9B8C6; }
.shp-footer__list { list-style: none; display: grid; gap: .1rem; }
.shp-footer__list a { display: inline-flex; align-items: center; min-height: 40px; color: #E8E6EF; text-decoration: none; font-size: .95rem; }
.shp-footer__list a:hover { color: #FF8F80; text-decoration: underline; }
.shp-footer a:focus-visible { outline-color: #FF8F80; }
.shp-footer__copy { margin-block-start: 2.5rem; padding-block-start: 1.25rem; border-block-start: 1px solid #4A4A5A; font: 400 .82rem/1.5 var(--f-mono); color: #B9B8C6; }
@media (max-width: 860px) {
    .shp-footer__grid { grid-template-columns: 1fr 1fr; }
    .shp-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .shp-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Responsive hero ---------- */
@media (max-width: 900px) {
    .shp-hero__grid { grid-template-columns: 1fr; }
    .shp-iface { max-width: 30rem; margin-inline-end: 8px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .shp-card:hover, .shp-class:hover, .shp-btn:hover, .shp-card:hover .shp-card__media img { transform: none; }
}

/* ---------- Print ---------- */
@media print {
    .shp-header, .shp-footer, .shp-toc, .shp-code__copy, .shp-section--tint { display: none !important; }
    .shp-hero, .shp-head, .shp-article__head { background: none; }
}
