@font-face {
    font-family: "Gabii";
    src: url("../fonts/gabii-Regular.woff2") format("woff2");
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: "Gabii";
    src: url("../fonts/gabii-Bold.woff2") format("woff2");
    font-display: swap;
    font-weight: 700;
}

@font-face {
    font-family: "Obviously";
    src: url("../fonts/Obviously.woff2") format("woff2");
    font-display: swap;
    font-weight: 700;
}

@font-face {
    font-family: "Nioicon";
    src: url("../fonts/Nioicon.woff") format("woff");
    font-display: block;
    font-style: normal;
    font-weight: 400;
}

.ni {
    font-family: "Nioicon" !important;
    font-style: normal;
    font-variant: normal;
    font-weight: 400;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ni-linkedin::before { content: "\eacb"; }
.ni-cmd::before { content: "\e9ec"; }
.ni-mail-fill::before { content: "\ead9"; }
.ni-menu::before { content: "\eaec"; }

:root {
    --ink: #131927;
    --ink-soft: #4f596b;
    --night: #111827;
    --night-2: #182235;
    --paper: #ffffff;
    --surface: #f4f6f8;
    --line: #dfe4ea;
    --lime: #d0ff71;
    --orange: #ff7a18;
    --purple: #6f1cba;
    --radius: 18px;
    --shadow: 0 20px 55px rgba(19, 25, 39, 0.09);
    --content: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--paper);
    color: var(--ink);
    font-family: "Gabii", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
}

.site-header,
.site-footer {
    flex: 0 0 auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

.sr-only,
.skip-link:not(:focus) {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.skip-link {
    background: var(--lime);
    color: var(--night);
    font-weight: 700;
    left: 1rem;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 1rem;
    z-index: 100;
}

.site-header {
    background: rgba(17, 24, 39, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    align-items: center;
    display: flex;
    height: 76px;
    justify-content: space-between;
    margin: auto;
    max-width: var(--content);
    padding: 0 24px;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 11px;
    line-height: 1;
    text-decoration: none;
}

.brand img {
    height: 42px;
    object-fit: contain;
    width: 36px;
}

.brand b {
    display: block;
    font-family: "Obviously", "Gabii", sans-serif;
    font-size: 1.18rem;
    letter-spacing: -0.04em;
}

.brand small {
    color: rgba(255, 255, 255, 0.62);
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    margin-top: 5px;
    text-transform: uppercase;
}

.primary-nav {
    align-items: center;
    display: flex;
    gap: 30px;
}

.primary-nav a,
.mobile-nav a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.primary-nav a:hover {
    color: var(--lime);
}

.nav-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #fff;
    display: none;
    height: 44px;
    justify-content: center;
    padding: 10px;
    width: 44px;
}

.nav-toggle span:not(.sr-only) {
    background: currentColor;
    display: block;
    height: 2px;
    margin: 6px 0;
    width: 23px;
}

.mobile-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 8px 24px 20px;
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
}

.social-rail {
    left: 18px;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 18;
}

.social-rail .rs-menu-social-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-rail .rs-menu-social-item {
    line-height: 0;
}

.social-rail a,
.social-rail button {
    align-items: center;
    background: #202833;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 48px;
    justify-content: center;
    padding: 0;
    position: relative;
    text-decoration: none;
    transition: background-color .2s, transform .2s;
    width: 48px;
}

.social-rail a:hover,
.social-rail button:hover {
    background: var(--orange);
    color: var(--night);
    transform: translateX(3px);
}

.social-rail em {
    font-size: 28px;
}

.social-rail span {
    background: var(--night);
    border-radius: 5px;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    left: calc(100% + 10px);
    opacity: 0;
    padding: 5px 8px;
    pointer-events: none;
    position: absolute;
    transform: translateX(-5px);
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
}

.social-rail a:hover span,
.social-rail a:focus-visible span,
.social-rail button:hover span,
.social-rail button:focus-visible span {
    opacity: 1;
    transform: translateX(0);
}

.side-menu-overlay {
    background: rgba(11, 17, 28, .62);
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: opacity .3s;
    z-index: 39;
}

.side-menu {
    background: #111a2a;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-width: calc(100vw - 28px);
    overflow-y: auto;
    padding: 30px 30px 55px;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(101%);
    transition: transform .32s cubic-bezier(.22, .61, .36, 1);
    width: 370px;
    z-index: 40;
}

.side-menu-open {
    overflow: hidden;
}

.side-menu-open .side-menu-overlay {
    opacity: 1;
}

.side-menu-open .side-menu {
    transform: translateX(0);
}

.side-menu-close {
    align-items: center;
    align-self: flex-end;
    background: #283449;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 1.55rem;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 3px;
    width: 40px;
}

.side-menu-close:hover {
    background: var(--orange);
    color: var(--night);
}

.side-menu-intro {
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.13);
    display: grid;
    gap: 15px;
    grid-template-columns: 68px 1fr;
    margin: 16px 0 20px;
    padding-bottom: 22px;
}

.side-menu-intro img {
    border-radius: 15px;
    height: 68px;
    object-fit: cover;
    object-position: top;
    width: 68px;
}

.side-menu-intro strong {
    font-size: 1.08rem;
}

.side-menu-intro p {
    color: rgba(255,255,255,.62);
    font-size: .76rem;
    line-height: 1.45;
    margin: 5px 0 0;
}

.side-menu-links {
    display: flex;
    flex-direction: column;
}

.side-menu-links a {
    border-bottom: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.86);
    font-size: .87rem;
    font-weight: 700;
    padding: 10px 2px;
    text-decoration: none;
    transition: color .15s, padding-left .15s;
}

.side-menu-links a:hover {
    color: var(--orange);
    padding-left: 6px;
}

.hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(111, 28, 186, 0.32), transparent 30%),
        linear-gradient(135deg, #111827 0%, #182235 72%, #111827 100%);
    color: #fff;
    padding: clamp(60px, 8vw, 112px) 24px 54px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero > * {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--content);
    position: relative;
    z-index: 1;
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: clamp(40px, 7vw, 100px);
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.eyebrow {
    color: var(--purple);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.hero .eyebrow,
.expert-band .eyebrow {
    color: var(--lime);
}

.eyebrow > span:not(.tech-dot) {
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
    height: 6px;
    margin-right: 7px;
    vertical-align: 1px;
    width: 6px;
}

.hero h1,
.archive-header h1,
.article-header h1,
.error-page h1 {
    font-family: "Obviously", "Gabii", sans-serif;
    letter-spacing: -0.045em;
}

.hero h1 {
    font-size: clamp(2.8rem, 6.4vw, 5.7rem);
    line-height: 0.98;
    margin: 0;
    max-width: 800px;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    margin: 28px 0 0;
    max-width: 680px;
}

.hero-terminal {
    background: #0b101b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.42);
    font-family: Consolas, Monaco, monospace;
    overflow: hidden;
    transform: rotate(1.5deg);
}

.hero-terminal > div {
    align-items: center;
    background: #1e293b;
    color: #94a3b8;
    display: flex;
    font-size: 0.72rem;
    gap: 6px;
    padding: 11px 14px;
}

.hero-terminal i {
    background: #ff6b6b;
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.hero-terminal i:nth-child(2) { background: #ffd43b; }
.hero-terminal i:nth-child(3) { background: #69db7c; }
.hero-terminal span { margin-left: 8px; }
.hero-terminal pre {
    font-size: clamp(0.73rem, 1.3vw, 0.92rem);
    line-height: 1.8;
    margin: 0;
    overflow: auto;
    padding: 28px;
}
.hero-terminal b { color: #c792ea; }
.hero-terminal em { color: #667085; font-style: normal; }
.hero-terminal strong { color: #82aaff; }
.hero-terminal mark { background: transparent; color: var(--lime); }

.resource-search {
    margin-top: 48px;
    max-width: 850px;
    position: relative;
}

.resource-search > label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 9px;
    text-transform: uppercase;
}

.search-control {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.17);
    display: flex;
    padding: 7px;
}

.search-control svg {
    fill: none;
    flex: 0 0 auto;
    margin-left: 12px;
    stroke: #7b8494;
    stroke-linecap: round;
    stroke-width: 2;
}

.search-control input {
    background: transparent;
    border: 0;
    color: var(--ink);
    min-width: 0;
    outline: none;
    padding: 11px 14px;
    width: 100%;
}

.search-control button,
.button {
    background: var(--lime);
    border: 0;
    border-radius: 8px;
    color: var(--night);
    cursor: pointer;
    font-weight: 700;
    padding: 11px 20px;
    text-decoration: none;
    white-space: nowrap;
}

.live-results {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    color: var(--ink);
    left: 0;
    margin-top: 8px;
    overflow: hidden;
    position: absolute;
    right: 0;
    z-index: 10;
}

.live-results a {
    align-items: center;
    display: grid;
    gap: 4px 16px;
    grid-template-columns: 1fr auto;
    padding: 13px 18px;
    text-decoration: none;
}

.live-results a + a { border-top: 1px solid var(--line); }
.live-results a:hover,
.live-results a:focus { background: var(--surface); }
.live-results strong { line-height: 1.25; }
.live-results small { color: var(--ink-soft); grid-row: 2; }
.live-results span { color: var(--purple); font-size: 0.73rem; font-weight: 700; grid-column: 2; grid-row: 1 / span 2; text-transform: uppercase; }
.live-empty { color: var(--ink-soft); margin: 0; padding: 18px; }

.quick-links {
    align-items: center;
    color: rgba(255, 255, 255, 0.58);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 12px;
    margin-top: 15px;
}

.quick-links a {
    color: rgba(255, 255, 255, 0.8);
}

.section-shell,
.page-shell,
.article-shell {
    margin: auto;
    max-width: var(--content);
    padding: 82px 24px;
}

.section-soft {
    max-width: none;
    padding-left: max(24px, calc((100vw - var(--content)) / 2 + 24px));
    padding-right: max(24px, calc((100vw - var(--content)) / 2 + 24px));
    background: var(--surface);
}

.section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-heading h2,
.expert-band h2,
.service-cta h2 {
    font-family: "Obviously", "Gabii", sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
}

.section-heading > p {
    color: var(--ink-soft);
    margin: 0;
    max-width: 480px;
}

.technology-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}

.technology-card {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 16px;
    grid-template-columns: auto 1fr auto;
    padding: 24px;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.technology-card:hover {
    border-color: #b9c1cd;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.technology-icon {
    align-items: center;
    background: var(--night);
    border-radius: 12px;
    color: #fff;
    display: flex;
    font-size: 0.72rem;
    font-weight: 700;
    height: 47px;
    justify-content: center;
    width: 47px;
}

.technology-woocommerce .technology-icon { background: #96588a; }
.technology-wordpress .technology-icon { background: #2271b1; }
.technology-prestashop .technology-icon { background: #25b9d7; color: #111827; }
.technology-card strong { display: block; font-size: 1.05rem; }
.technology-card small { color: var(--ink-soft); }
.technology-card svg { fill: none; height: 22px; stroke: currentColor; stroke-width: 2; width: 22px; }

.resource-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
}

.resource-grid-single {
    grid-template-columns: repeat(2, 1fr);
}

.resource-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 25px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.resource-card:hover {
    border-color: #b7bfca;
    box-shadow: 0 14px 32px rgba(19, 25, 39, 0.07);
    transform: translateY(-2px);
}

.card-meta {
    align-items: center;
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 7px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tech-dot {
    background: var(--purple);
    border-radius: 50%;
    display: inline-block;
    height: 8px;
    width: 8px;
}

.tech-woocommerce { background: #96588a; }
.tech-wordpress { background: #2271b1; }
.tech-prestashop { background: #25b9d7; }

.resource-card h2 {
    font-size: 1.19rem;
    line-height: 1.25;
    margin: 16px 0 10px;
    overflow-wrap: anywhere;
}

.resource-card h2 a {
    text-decoration: none;
}

.resource-card h2 a::after {
    content: "";
    inset: 0;
    position: absolute;
}

.resource-card {
    position: relative;
}

.resource-card p {
    color: var(--ink-soft);
    font-size: .91rem;
    margin: 0 0 22px;
}

.card-footer {
    border-top: 1px solid var(--line);
    color: #687386;
    display: flex;
    font-size: .76rem;
    gap: 18px;
    margin-top: auto;
    padding-top: 13px;
}

.text-link {
    color: var(--purple);
    font-weight: 700;
}

.expert-band {
    align-items: center;
    background: var(--night);
    border-radius: 24px;
    color: #fff;
    display: grid;
    gap: 34px;
    grid-template-columns: 150px 1fr auto;
    margin: 24px auto 82px;
    max-width: calc(var(--content) - 48px);
    overflow: hidden;
    padding: 34px;
}

.expert-band img {
    border-radius: 18px;
    height: 150px;
    object-fit: cover;
    object-position: top;
    width: 150px;
}

.expert-band p:not(.eyebrow) {
    color: rgba(255, 255, 255, .66);
    margin-bottom: 0;
}

.button-light {
    align-items: center;
    display: inline-flex;
}

.breadcrumbs {
    align-items: center;
    color: #6a7485;
    display: flex;
    flex-wrap: wrap;
    font-size: .82rem;
    gap: 9px;
    margin-bottom: 44px;
}

.breadcrumbs a {
    color: var(--purple);
}

.archive-header {
    border-bottom: 1px solid var(--line);
    margin-bottom: 48px;
    padding-bottom: 48px;
}

.archive-header h1,
.article-header h1 {
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1;
    margin: 0;
}

.archive-header > p:not(.eyebrow) {
    color: var(--ink-soft);
    font-size: 1.16rem;
    max-width: 720px;
}

.archive-header .resource-search {
    margin-top: 32px;
    max-width: 720px;
}

.archive-header .resource-search > label {
    color: var(--ink-soft);
}

.archive-header.compact {
    max-width: 900px;
}

.archive-layout {
    align-items: start;
    display: grid;
    gap: 48px;
    grid-template-columns: 235px 1fr;
}

.filter-panel,
.article-sidebar nav {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

.filter-panel {
    position: sticky;
    top: 102px;
}

.filter-panel > strong,
.article-sidebar p {
    display: block;
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.filter-panel ul {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.filter-panel li {
    border-top: 1px solid var(--line);
    display: flex;
    font-size: .85rem;
    justify-content: space-between;
    padding: 9px 0;
}

.filter-panel li b {
    color: var(--purple);
}

.filter-panel p {
    color: var(--ink-soft);
    font-size: .8rem;
    margin-bottom: 0;
}

.list-heading {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.list-heading h2 {
    font-size: 1.4rem;
    margin: 0;
}

.list-heading p {
    color: var(--ink-soft);
    font-size: .85rem;
    margin: 0;
}

.article-shell {
    max-width: 1280px;
}

.article-layout {
    align-items: start;
    display: grid;
    gap: 58px;
    grid-template-columns: 220px minmax(0, 790px);
    justify-content: center;
}

.article-sidebar {
    position: sticky;
    top: 102px;
}

.article-sidebar nav {
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    padding: 2px 0 2px 20px;
}

.article-sidebar p {
    margin: 0 0 12px;
}

.article-sidebar ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-sidebar li + li {
    margin-top: 8px;
}

.article-sidebar a {
    color: #6a7485;
    display: block;
    font-size: .79rem;
    line-height: 1.35;
    text-decoration: none;
}

.article-sidebar a:hover {
    color: var(--purple);
}

.technical-article {
    min-width: 0;
}

.article-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 35px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.article-tags a,
.article-tags span {
    background: #f0e6fa;
    border-radius: 999px;
    color: var(--purple);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 5px 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.article-tags span {
    background: var(--surface);
    color: #5c6676;
}

.article-header h1 {
    overflow-wrap: anywhere;
}

.article-lead {
    color: var(--ink-soft);
    font-size: 1.22rem;
    margin: 24px 0 0;
}

.article-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    margin: 28px 0 0;
}

.article-facts div {
    display: grid;
    gap: 1px;
}

.article-facts dt {
    color: #778193;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.article-facts dd {
    font-size: .82rem;
    margin: 0;
}

.article-intro {
    background: var(--surface);
    border-left: 4px solid var(--orange);
    border-radius: 0 12px 12px 0;
    font-size: 1.08rem;
    margin: 40px 0 54px;
    padding: 19px 24px;
}

.article-intro p {
    margin: 0;
}

.article-section {
    margin: 0 0 56px;
}

.article-section h2,
.references h2 {
    font-family: "Obviously", "Gabii", sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: -.035em;
    line-height: 1.1;
    margin: 0 0 20px;
}

.prose {
    color: #364154;
}

.prose p:first-child {
    margin-top: 0;
}

.prose code,
.article-intro code,
.faq-list code {
    background: #edf0f3;
    border: 1px solid #dfe4e8;
    border-radius: 4px;
    color: #63259a;
    font-family: Consolas, Monaco, monospace;
    font-size: .86em;
    padding: .1em .32em;
}

.prose li + li {
    margin-top: 8px;
}

.parameter-list {
    border: 1px solid var(--line);
    border-radius: 10px;
}

.parameter-list div {
    display: grid;
    gap: 16px;
    grid-template-columns: 180px 1fr;
    padding: 14px 16px;
}

.parameter-list div + div {
    border-top: 1px solid var(--line);
}

.parameter-list dd {
    margin: 0;
}

.code-block {
    background: #0d1422;
    border: 1px solid #273248;
    border-radius: 13px;
    color: #d7deea;
    margin: 26px 0 0;
    overflow: hidden;
}

.code-block figcaption {
    align-items: center;
    background: #172033;
    border-bottom: 1px solid #273248;
    color: #9eabc0;
    display: flex;
    font-size: .7rem;
    font-weight: 700;
    justify-content: space-between;
    letter-spacing: .05em;
    min-height: 44px;
    padding: 0 15px;
    text-transform: uppercase;
}

.code-block button {
    background: transparent;
    border: 1px solid #3b4860;
    border-radius: 6px;
    color: #cbd5e1;
    cursor: pointer;
    font-size: .68rem;
    padding: 5px 9px;
}

.code-block button:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.code-block pre {
    font-family: Consolas, Monaco, monospace;
    font-size: .82rem;
    line-height: 1.72;
    margin: 0;
    overflow-x: auto;
    padding: 22px;
    tab-size: 4;
}

.tok-comment { color: #667085; }
.tok-string { color: #c3e88d; }
.tok-keyword { color: #c792ea; }
.tok-function { color: #82aaff; }
.tok-variable { color: #f78c6c; }

.notice {
    background: #fff9e7;
    border: 1px solid #f0d98d;
    border-radius: 10px;
    margin-top: 20px;
    padding: 17px 20px;
}

.notice strong {
    color: #745c08;
    display: block;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.notice p {
    color: #5c5130;
    margin: 4px 0 0;
}

.faq-list {
    border: 0;
    display: grid;
    gap: 14px;
}

.faq-list details {
    background: #fff;
    border: 1px solid #d9dee5;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(19, 25, 39, .055);
    overflow: hidden;
}

.faq-list summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-weight: 700;
    list-style: none;
    min-height: 76px;
    padding: 18px 76px 18px 23px;
    position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    align-items: center;
    background: var(--orange);
    border-radius: 50%;
    color: var(--night);
    display: flex;
    font-size: 1.45rem;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.faq-list details > div { color: var(--ink-soft); padding: 18px 23px 20px; }
.faq-list details > div p { margin-top: 0; }

.references {
    border-top: 1px solid var(--line);
    margin-top: 65px;
    padding-top: 36px;
}

.references p,
.references li {
    color: var(--ink-soft);
    font-size: .88rem;
}

.references a {
    color: var(--purple);
}

.service-cta {
    align-items: center;
    background:
        radial-gradient(circle at right top, rgba(111, 28, 186, .45), transparent 38%),
        var(--night);
    border-radius: 18px;
    color: #fff;
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr auto;
    margin: 60px 0;
    padding: 32px;
}

.service-cta h2 {
    font-size: 1.8rem;
}

.service-cta p:not(.eyebrow) {
    color: rgba(255,255,255,.68);
    margin-bottom: 0;
}

.related-section {
    margin-top: 60px;
}

.related-section .resource-grid {
    grid-template-columns: repeat(3, 1fr);
}

.related-section .resource-card {
    padding: 20px;
}

.related-section .resource-card h2 {
    font-size: 1rem;
}

.related-section .resource-card p {
    display: none;
}

.search-page {
    min-height: 68vh;
}

.result-count {
    color: var(--ink-soft);
}

.empty-state {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 42px;
    text-align: center;
}

.empty-state h2 {
    margin-top: 0;
}

.empty-state p {
    color: var(--ink-soft);
    margin-bottom: 0;
}

.error-page {
    margin: auto;
    max-width: 720px;
    min-height: 72vh;
    padding: 100px 24px;
    text-align: center;
}

.error-code {
    color: var(--orange);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .15em;
}

.error-page h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
}

.error-page > p:not(.error-code) {
    color: var(--ink-soft);
    margin: 0 auto 30px;
    max-width: 550px;
}

.site-footer {
    align-items: center;
    background: #0c1220;
    color: rgba(255, 255, 255, .62);
    display: flex;
    font-size: .82rem;
    justify-content: space-between;
    padding: 42px max(24px, calc((100vw - var(--content)) / 2 + 24px));
}

.site-footer p {
    margin: 0;
}

.site-footer strong {
    color: #fff;
}

.site-footer nav {
    display: flex;
    gap: 22px;
}

.site-footer a {
    color: rgba(255, 255, 255, .72);
}

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-terminal { display: none; }
    .technology-grid,
    .resource-grid { grid-template-columns: repeat(2, 1fr); }
    .archive-layout { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
    .article-layout { grid-template-columns: minmax(0, 790px); }
    .article-sidebar { display: none; }
    .expert-band { grid-template-columns: 120px 1fr; }
    .expert-band img { height: 120px; width: 120px; }
    .expert-band .button { grid-column: 2; justify-self: start; }
    .related-section .resource-grid { grid-template-columns: repeat(2, 1fr); }
    .social-rail {
        bottom: 14px;
        left: 14px;
        top: auto;
        transform: none;
    }
    .social-rail .rs-menu-social-list {
        flex-direction: row;
    }
    .social-rail a,
    .social-rail button {
        box-shadow: 0 6px 20px rgba(0,0,0,.2);
        height: 43px;
        width: 43px;
    }
    .social-rail a:hover,
    .social-rail button:hover {
        transform: translateY(-2px);
    }
    .social-rail span {
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translate(-50%, 5px);
    }
    .social-rail a:hover span,
    .social-rail a:focus-visible span,
    .social-rail button:hover span,
    .social-rail button:focus-visible span {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .primary-nav { display: none; }
    .nav-toggle { display: block; }
    .hero { padding-top: 62px; }
    .hero h1 { font-size: clamp(2.6rem, 14vw, 4.6rem); }
    .section-shell,
    .page-shell,
    .article-shell { padding: 56px 18px; }
    .section-heading { align-items: start; flex-direction: column; gap: 14px; }
    .section-heading > p { max-width: none; }
    .technology-grid,
    .resource-grid,
    .resource-grid-single,
    .related-section .resource-grid { grid-template-columns: 1fr; }
    .search-control button { padding-left: 13px; padding-right: 13px; }
    .quick-links span { flex-basis: 100%; }
    .expert-band { border-radius: 0; grid-template-columns: 74px 1fr; margin-bottom: 0; max-width: none; padding: 28px 20px; }
    .expert-band img { border-radius: 12px; height: 74px; width: 74px; }
    .expert-band h2 { font-size: 1.7rem; }
    .expert-band p:not(.eyebrow) { display: none; }
    .expert-band .button { grid-column: 1 / -1; justify-content: center; }
    .breadcrumbs { margin-bottom: 30px; }
    .archive-header h1,
    .article-header h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
    .archive-header { margin-bottom: 35px; padding-bottom: 35px; }
    .list-heading { align-items: start; flex-direction: column; gap: 4px; }
    .article-facts { display: grid; grid-template-columns: 1fr 1fr; }
    .article-intro { margin: 30px 0 44px; }
    .parameter-list div { grid-template-columns: 1fr; gap: 5px; }
    .code-block { border-radius: 9px; margin-left: -8px; margin-right: -8px; }
    .code-block pre { font-size: .76rem; padding: 18px 15px; }
    .service-cta { align-items: start; grid-template-columns: 1fr; padding: 26px; }
    .service-cta .button { text-align: center; }
    .site-footer { align-items: start; flex-direction: column; gap: 24px; }
    .site-footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
