/*
 * Repify Hjælp
 * Selvstændigt dokumentationssite til docs.repify.dk.
 * Fladt Repify-design uden gradients eller shadows.
 */

:root {
    --page: #f5f3ef;
    --surface: #ffffff;
    --surface-soft: #f1efeb;
    --surface-strong: #e9e6df;
    --line: #dedad2;
    --line-strong: #c9c3b8;
    --ink: #1b1a18;
    --muted: #6d6962;
    --muted-2: #928c83;
    --black: #181715;
    --accent: #df6c32;
    --accent-strong: #c95724;
    --accent-soft: #fff1e8;
    --success: #246b4a;
    --success-soft: #edf6f1;
    --warning: #8b5d13;
    --warning-soft: #fff7e7;
    --info: #345f8c;
    --info-soft: #eef5fb;
    --sidebar: 292px;
    --topbar: 76px;
    --content: 850px;
    --toc: 220px;
    --radius-sm: 7px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--topbar) + 24px);
    background: var(--page);
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.sidebar-open {
    overflow: hidden;
}

::selection {
    background: #f4cbb5;
    color: var(--ink);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

img,
svg {
    display: block;
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.skip-link {
    position: fixed;
    z-index: 3000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border: 1px solid var(--black);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transform: translateY(-140%);
}

.skip-link:focus {
    transform: translateY(0);
}

.docs-shell {
    min-height: 100vh;
}

.docs-sidebar {
    position: fixed;
    z-index: 1200;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    background: #fbfaf8;
}

.sidebar-header {
    min-height: var(--topbar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.docs-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.docs-brand img {
    width: 94px;
    height: 33px;
    object-fit: contain;
}

.docs-brand span {
    padding-left: 12px;
    border-left: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.sidebar-close .icon {
    width: 18px;
    height: 18px;
}

.docs-nav {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 14px 28px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

.docs-nav-home,
.docs-nav-links a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: #56514b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.docs-nav-home {
    gap: 10px;
    margin-bottom: 14px;
}

.docs-nav-home .icon {
    width: 17px;
    height: 17px;
}

.docs-nav-home:hover,
.docs-nav-links a:hover {
    border-color: var(--line);
    background: var(--surface-soft);
    color: var(--ink);
}

.docs-nav-home.is-active,
.docs-nav-links a.is-active {
    border-color: var(--black);
    background: var(--black);
    color: #fff;
}

.docs-nav-section {
    margin-top: 8px;
}

.docs-nav-section-toggle {
    width: 100%;
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: var(--muted-2);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
}

.docs-nav-section-toggle .icon {
    width: 15px;
    height: 15px;
    transition: transform .18s ease;
}

.docs-nav-section.is-open .docs-nav-section-toggle .icon {
    transform: rotate(180deg);
}

.docs-nav-links {
    display: none;
    padding: 2px 0 8px;
}

.docs-nav-section.is-open .docs-nav-links {
    display: grid;
    gap: 2px;
}

.docs-nav-links a {
    padding-left: 14px;
}

.sidebar-support {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0 14px 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.sidebar-support > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.sidebar-support .icon {
    width: 18px;
    height: 18px;
}

.sidebar-support strong,
.sidebar-support a {
    display: block;
}

.sidebar-support strong {
    font-size: 12px;
    line-height: 1.35;
}

.sidebar-support a {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.sidebar-backdrop {
    display: none;
}

.docs-main {
    min-height: 100vh;
    margin-left: var(--sidebar);
}

.docs-topbar {
    position: sticky;
    z-index: 1000;
    top: 0;
    min-height: var(--topbar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(22px, 3vw, 44px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
}

.topbar-left {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
}

.topbar-search {
    position: relative;
    width: min(560px, 100%);
    display: flex;
    align-items: center;
}

.topbar-search > .icon {
    position: absolute;
    z-index: 1;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
}

.topbar-search input {
    width: 100%;
    min-height: 46px;
    padding: 10px 64px 10px 43px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    outline: none;
    background: var(--surface-soft);
    color: var(--ink);
}

.topbar-search input::placeholder {
    color: var(--muted-2);
}

.topbar-search input:focus {
    border-color: var(--black);
    background: var(--surface);
}

.topbar-search kbd {
    position: absolute;
    right: 10px;
    min-width: 40px;
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
    color: var(--muted);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

.search-suggestions {
    position: absolute;
    z-index: 1500;
    top: calc(100% + 8px);
    left: 0;
    width: min(680px, calc(100vw - 32px));
    max-height: min(540px, calc(100vh - 110px));
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.search-suggestion:hover,
.search-suggestion.is-selected {
    border-color: var(--line);
    background: var(--surface-soft);
}

.search-suggestion strong,
.search-suggestion small {
    display: block;
}

.search-suggestion strong {
    font-size: 13px;
}

.search-suggestion small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.search-suggestion > span:last-child {
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.search-suggestion-empty {
    padding: 22px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.topbar-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-link {
    padding: 9px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.topbar-link:hover {
    color: var(--ink);
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
}

.button .icon {
    width: 16px;
    height: 16px;
}

.button--dark {
    border-color: var(--black);
    background: var(--black);
    color: #fff;
}

.button--dark:hover {
    background: #2a2825;
}

.button--light {
    border-color: var(--surface);
    background: var(--surface);
    color: var(--ink);
}

.button--light:hover {
    border-color: var(--line-strong);
}

.button--outline {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink);
}

.button--outline:hover {
    border-color: var(--black);
}

.docs-content {
    min-height: calc(100vh - var(--topbar));
    padding: clamp(32px, 4vw, 62px) clamp(22px, 4vw, 64px) 84px;
}

.eyebrow {
    display: block;
    color: var(--accent-strong);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.docs-home-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(42px, 7vw, 86px);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--surface);
}

.hero-copy {
    max-width: 790px;
}

.hero-copy h1 {
    margin: 11px 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 6vw, 74px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .98;
}

.hero-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.6;
}

.hero-search {
    position: relative;
    max-width: 760px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 34px;
    padding: 7px 7px 7px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
}

.hero-search > .icon {
    color: var(--muted);
}

.hero-search input {
    min-width: 0;
    min-height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
}

.hero-search input::placeholder {
    color: var(--muted-2);
}

.hero-search button {
    min-height: 46px;
    padding: 10px 22px;
    border: 1px solid var(--black);
    border-radius: var(--radius-md);
    background: var(--black);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}

.audience-grid,
.guide-grid,
.home-section,
.support-strip {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.audience-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 20px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-decoration: none;
}

.audience-card:hover {
    border-color: var(--black);
}

.audience-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.audience-icon .icon {
    width: 25px;
    height: 25px;
}

.audience-card h2 {
    margin: 7px 0 8px;
    font-size: 22px;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.audience-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.card-link .icon {
    width: 15px;
    height: 15px;
}

.home-section {
    margin-top: 64px;
}

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

.section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -.04em;
    line-height: 1.08;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.guide-card {
    min-width: 0;
    min-height: 238px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-decoration: none;
}

.guide-card:hover {
    border-color: var(--black);
}

.guide-card-meta {
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.guide-card h3 {
    margin: 15px 0 8px;
    font-size: 18px;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.guide-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.guide-card .card-link {
    margin-top: auto;
    padding-top: 20px;
}

.home-getting-started {
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: #fbfaf8;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.home-steps li {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 24px;
    border-right: 1px solid var(--line);
}

.home-steps li:last-child {
    border-right: 0;
}

.home-steps li > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.home-steps strong,
.home-steps p {
    display: block;
}

.home-steps strong {
    font-size: 14px;
    line-height: 1.35;
}

.home-steps p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.support-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 64px;
    padding: 32px;
    border: 1px solid var(--black);
    border-radius: var(--radius-lg);
    background: var(--black);
    color: #fff;
}

.support-strip h2 {
    margin: 7px 0 8px;
    font-size: 26px;
    letter-spacing: -.035em;
}

.support-strip p {
    max-width: 720px;
    margin: 0;
    color: #c7c3bd;
    font-size: 13px;
}

.support-strip .eyebrow {
    color: #f0a47f;
}

.article-layout {
    width: min(1160px, 100%);
    display: grid;
    grid-template-columns: minmax(0, var(--content)) var(--toc);
    gap: clamp(42px, 6vw, 82px);
    align-items: start;
    margin: 0 auto;
}

.article {
    min-width: 0;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--ink);
    text-decoration: underline;
}

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

.article-header h1 {
    max-width: 820px;
    margin: 10px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1.02;
}

.article-header > p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-meta .icon {
    width: 15px;
    height: 15px;
}

.article-body {
    padding-top: 12px;
}

.article-body > * {
    max-width: 790px;
}

.article-body .article-lead {
    margin: 26px 0 30px;
    color: #4f4a44;
    font-size: 18px;
    line-height: 1.75;
}

.article-body h2 {
    position: relative;
    margin: 48px 0 16px;
    padding-top: 8px;
    font-size: 27px;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.article-body h2:focus {
    outline: none;
}

.heading-anchor {
    display: inline-flex;
    margin-left: 8px;
    color: var(--muted-2);
    opacity: 0;
    text-decoration: none;
    vertical-align: middle;
}

.article-body h2:hover .heading-anchor,
.heading-anchor:focus {
    opacity: 1;
}

.heading-anchor .icon {
    width: 17px;
    height: 17px;
}

.article-body > p:not(.article-lead) {
    margin: 0 0 18px;
    color: #4f4a44;
    font-size: 15px;
}

.article-list {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.article-list li {
    position: relative;
    padding-left: 26px;
    color: #4f4a44;
}

.article-list li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.steps-list {
    display: grid;
    gap: 0;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
}

.steps-list li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.steps-list li:last-child {
    border-bottom: 0;
}

.step-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface-soft);
    font-size: 11px;
    font-weight: 800;
}

.steps-list strong {
    display: block;
    padding-top: 1px;
    font-size: 14px;
}

.steps-list p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.callout {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    margin: 28px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: var(--radius-md);
}

.callout--info {
    border-left-color: var(--info);
    background: var(--info-soft);
}

.callout--warning {
    border-left-color: var(--warning);
    background: var(--warning-soft);
}

.callout--success {
    border-left-color: var(--success);
    background: var(--success-soft);
}

.callout-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .72);
}

.callout-icon .icon {
    width: 18px;
    height: 18px;
}

.callout strong {
    display: block;
    font-size: 13px;
}

.callout p {
    margin: 4px 0 0;
    color: #4f4a44;
    font-size: 12px;
    line-height: 1.65;
}

.docs-table-wrap {
    margin: 0 0 28px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.docs-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 13px;
}

.docs-table th,
.docs-table td {
    padding: 15px 17px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.docs-table th {
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.docs-table td {
    color: #4f4a44;
}

.docs-table tbody tr:last-child td {
    border-bottom: 0;
}

.code-block {
    margin: 24px 0 30px;
    border: 1px solid #35322f;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #211f1c;
    color: #f7f3ee;
}

.code-block-head {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 12px 8px 16px;
    border-bottom: 1px solid #3d3934;
    color: #bbb5ad;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #4a4640;
    border-radius: 5px;
    background: transparent;
    color: #ddd7d0;
    cursor: pointer;
    font-size: 10px;
    text-transform: none;
}

.copy-button .icon {
    width: 14px;
    height: 14px;
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.7;
}

.article-toc {
    position: sticky;
    top: calc(var(--topbar) + 32px);
    max-height: calc(100vh - var(--topbar) - 64px);
    overflow-y: auto;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.article-toc > strong {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.article-toc nav {
    display: grid;
    gap: 3px;
}

.article-toc nav a {
    padding: 6px 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    text-decoration: none;
}

.article-toc nav a:hover,
.article-toc nav a.is-active {
    color: var(--ink);
}

.article-toc nav a.is-active {
    font-weight: 750;
}

.toc-support {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.toc-support:hover {
    color: var(--ink);
}

.toc-support .icon {
    width: 16px;
    height: 16px;
}

.article-help {
    max-width: 790px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 54px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fbfaf8;
}

.article-help h2 {
    margin: 6px 0 6px;
    font-size: 20px;
    letter-spacing: -.03em;
}

.article-help p {
    max-width: 580px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.article-pagination {
    max-width: 790px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.article-pagination > a {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-decoration: none;
}

.article-pagination > a:hover {
    border-color: var(--black);
}

.article-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.article-pagination span .icon {
    width: 14px;
    height: 14px;
}

.article-pagination strong {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
}

.article-pagination .article-next {
    align-items: flex-end;
    text-align: right;
}

.search-page {
    width: min(900px, 100%);
    margin: 0 auto;
}

.search-page-header h1 {
    margin: 8px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 62px);
    letter-spacing: -.05em;
    line-height: 1;
}

.search-page-header p {
    margin: 0;
    color: var(--muted);
}

.search-page-form {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 28px;
    padding: 7px 7px 7px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.search-page-form > .icon {
    color: var(--muted);
}

.search-page-form input {
    min-width: 0;
    min-height: 46px;
    border: 0;
    outline: 0;
    color: var(--ink);
}

.search-page-form button {
    min-height: 46px;
    padding: 8px 20px;
    border: 1px solid var(--black);
    border-radius: var(--radius-md);
    background: var(--black);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}

.search-results {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.search-results > a {
    display: block;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-decoration: none;
}

.search-results > a:hover {
    border-color: var(--black);
}

.search-result-meta {
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.search-results h2 {
    margin: 9px 0 6px;
    font-size: 20px;
    letter-spacing: -.025em;
}

.search-results p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.search-empty,
.not-found {
    display: grid;
    justify-items: center;
    margin-top: 36px;
    padding: 58px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.search-empty > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--muted);
}

.search-empty h2 {
    margin: 18px 0 6px;
    font-size: 22px;
}

.search-empty p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.not-found {
    width: min(720px, 100%);
    margin: 0 auto;
}

.not-found-code {
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 84px;
    font-weight: 700;
    line-height: 1;
}

.not-found h1 {
    margin: 18px 0 8px;
    font-size: 36px;
    letter-spacing: -.04em;
}

.not-found p {
    margin: 0;
    color: var(--muted);
}

.not-found > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.docs-footer {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px clamp(22px, 4vw, 64px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.docs-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.docs-footer a {
    text-decoration: none;
}

.docs-footer a:hover {
    color: var(--ink);
}

.toast {
    position: fixed;
    z-index: 2500;
    right: 20px;
    bottom: 20px;
    padding: 12px 15px;
    border: 1px solid var(--black);
    border-radius: var(--radius-sm);
    background: var(--black);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.toast[hidden] {
    display: none;
}

@media (max-width: 1180px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-toc {
        display: none;
    }

    .guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .docs-sidebar {
        width: min(330px, 88vw);
        transform: translateX(-101%);
        transition: transform .2s ease;
    }

    body.sidebar-open .docs-sidebar {
        transform: translateX(0);
    }

    .sidebar-close {
        display: grid;
    }

    .sidebar-backdrop {
        position: fixed;
        z-index: 1150;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: rgba(24, 23, 21, .48);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .docs-main {
        margin-left: 0;
    }

    .mobile-menu-button {
        display: grid;
    }

    .docs-topbar {
        padding-inline: 18px;
    }

    .topbar-actions .topbar-link {
        display: none;
    }

    .docs-content {
        padding-inline: clamp(18px, 4vw, 36px);
    }
}

@media (max-width: 760px) {
    :root {
        --topbar: 68px;
    }

    .docs-topbar {
        gap: 10px;
        min-height: var(--topbar);
        padding-block: 11px;
    }

    .topbar-search kbd {
        display: none;
    }

    .topbar-search input {
        padding-right: 12px;
    }

    .topbar-actions .button {
        width: 42px;
        padding-inline: 0;
        font-size: 0;
    }

    .topbar-actions .button .icon {
        width: 17px;
        height: 17px;
    }

    .docs-content {
        padding-top: 30px;
    }

    .docs-home-hero {
        padding: 34px 24px;
        border-radius: var(--radius-lg);
    }

    .hero-copy h1 {
        font-size: clamp(40px, 12vw, 58px);
    }

    .hero-search {
        grid-template-columns: 22px minmax(0, 1fr);
        padding-right: 14px;
    }

    .hero-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .audience-grid,
    .guide-grid,
    .home-steps {
        grid-template-columns: 1fr;
    }

    .audience-card {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 15px;
        padding: 22px;
    }

    .audience-icon {
        width: 46px;
        height: 46px;
    }

    .guide-card {
        min-height: 0;
    }

    .home-steps li {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-steps li:last-child {
        border-bottom: 0;
    }

    .support-strip,
    .article-help {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-header h1 {
        font-size: clamp(38px, 11vw, 54px);
    }

    .article-header > p,
    .article-body .article-lead {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 24px;
    }

    .article-pagination {
        grid-template-columns: 1fr;
    }

    .article-pagination .article-next {
        align-items: flex-start;
        text-align: left;
    }

    .search-page-form {
        grid-template-columns: 22px minmax(0, 1fr);
        padding-right: 14px;
    }

    .search-page-form button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .docs-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 14px;
    }

    .mobile-menu-button,
    .topbar-actions .button {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }

    .topbar-search input {
        min-height: 40px;
        padding-left: 39px;
        font-size: 13px;
    }

    .topbar-search > .icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }

    .docs-content {
        padding-inline: 15px;
        padding-bottom: 62px;
    }

    .docs-home-hero {
        padding: 28px 20px;
    }

    .hero-copy h1 {
        margin-top: 9px;
    }

    .audience-card,
    .guide-card,
    .home-getting-started,
    .support-strip {
        padding: 20px;
    }

    .home-section,
    .support-strip {
        margin-top: 44px;
    }

    .article-header {
        padding-bottom: 24px;
    }

    .article-meta {
        display: grid;
    }

    .steps-list li {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 12px;
        padding: 17px;
    }

    .step-number {
        width: 31px;
        height: 31px;
    }

    .callout {
        grid-template-columns: 32px minmax(0, 1fr);
        padding: 15px;
    }

    .callout-icon {
        width: 30px;
        height: 30px;
    }

    .article-help .button {
        width: 100%;
    }

    .not-found > div {
        width: 100%;
    }

    .not-found .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Guide paths and real Repify screenshots */
.article-path {
    display: grid;
    gap: 8px;
    margin: 24px 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.article-path-label {
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.article-path-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.article-path-arrow {
    width: 15px;
    height: 15px;
    color: var(--muted-2);
}

.guide-figure {
    margin: 28px 0 34px;
}

.guide-image-button {
    position: relative;
    width: 100%;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    cursor: zoom-in;
    text-align: left;
}

.guide-image-button img {
    width: 100%;
    height: auto;
}

.guide-image-button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.guide-image-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    font-size: 11px;
    font-weight: 750;
}

.guide-image-zoom .icon {
    width: 15px;
    height: 15px;
}

.guide-figure figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.guide-lightbox {
    width: min(1280px, calc(100vw - 38px));
    max-width: none;
    max-height: calc(100vh - 38px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--ink);
}

.guide-lightbox::backdrop {
    background: rgba(20, 19, 17, .76);
}

.guide-lightbox-head {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 14px 10px 18px;
    border-bottom: 1px solid var(--line);
}

.guide-lightbox-head strong {
    font-size: 13px;
}

.guide-lightbox-head button {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}

.guide-lightbox-body {
    max-height: calc(100vh - 96px);
    overflow: auto;
    padding: 16px;
    background: var(--page);
}

.guide-lightbox-body img {
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.guide-lightbox-body p {
    margin: 12px 2px 2px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 720px) {
    .article-path-items {
        gap: 6px;
        font-size: 12px;
    }

    .guide-image-zoom {
        position: static;
        width: 100%;
        justify-content: center;
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 0;
        background: var(--surface-soft);
    }

    .guide-lightbox {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
}


.article-related {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.article-related .section-heading {
    margin-bottom: 18px;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.article-related-grid a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 152px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.article-related-grid a:hover,
.article-related-grid a:focus-visible {
    border-color: var(--accent);
}

.article-related-grid strong {
    font-size: 1rem;
}

.article-related-grid span {
    color: var(--muted);
    line-height: 1.55;
}

.article-related-grid em {
    margin-top: auto;
    color: var(--accent-dark);
    font-style: normal;
    font-weight: 700;
}

@media (max-width: 700px) {
    .article-related-grid {
        grid-template-columns: 1fr;
    }
}
