:root {
    --header-height: 72px;
    --wiki-width: 1320px;
    --wiki-gutter: clamp(20px, 4.2vw, 60px);
}
.site-header {
    background: #fbfbf7;
}
.header-inner {
    max-width: var(--wiki-width);
    min-height: calc(var(--header-height) - 1px);
    padding-inline: var(--wiki-gutter);
}
.wordmark small {
    display: none;
}
.brand-logo {
    width: clamp(132px, 16vw, 184px);
}
.wiki-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
}
.wiki-tabs a {
    display: block;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--green);
    font-size: .95rem;
    font-weight: 650;
    white-space: nowrap;
}
.wiki-tabs a:hover {
    background: #e9eee3;
}
.wiki-tabs .is-current {
    background: var(--green);
    color: #fff;
}
.wiki-tabs .is-current:hover {
    background: #1b5140;
}
.workspace-shell, .article-page .shell {
    width: min(100%, var(--wiki-width));
    margin-inline: auto;
    padding-inline: var(--wiki-gutter);
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100vh - var(--header-height));
}
.workspace-shell .landing, .article-page .main {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: clamp(28px, 5vw, 64px) 0 72px;
}
.workspace-shell .landing-hero:not(.landing-hero-home) {
    border-radius: 0;
    background: transparent;
}
.workspace-shell .landing-hero:not(.landing-hero-home) .hero-copy {
    padding: 0;
}
.landing-crumb, .article-page .crumb {
    margin-bottom: 14px;
    font-size: .88rem;
}
.workspace-shell .landing-section {
    margin-top: clamp(30px, 5vw, 58px);
}
.workspace-shell .landing-section h2 {
    margin-bottom: 16px;
    font-size: clamp(1.45rem, 2.7vw, 2.05rem);
}
.workspace-shell .landing-section > p {
    line-height: 1.65;
}
.workspace-outline {
    min-width: 0;
    margin-top: 22px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    font-size: .92rem;
}
.workspace-outline summary {
    color: var(--ink);
    cursor: pointer;
    font-weight: 700;
}
.workspace-outline ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}
.workspace-outline a {
    display: block;
    padding: 6px 0;
    line-height: 1.4;
}
.workspace-outline a:hover {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.workspace-outline a[aria-current="location"],
.article-page .toc a[aria-current="location"] {
    color: var(--green);
    background: #e6ede0;
    border-radius: 6px;
    box-shadow: inset 2px 0 var(--green);
    padding-inline: 9px;
    font-weight: 700;
}
.workspace-shell [id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}
.wiki-home .landing-hero-home {
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
    border-radius: 20px;
    background: var(--green);
}
.wiki-home .hero-copy {
    padding: clamp(28px, 5.3vw, 76px);
}
.wiki-home .landing-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 5.8vw, 5.35rem);
    letter-spacing: -.055em;
}
.wiki-home .hero-photo {
    height: 100%;
    min-height: 300px;
    aspect-ratio: 1.45;
    object-fit: cover;
}
.home-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 10px 15px;
    border-radius: 999px;
    background: #f1f1e5;
    color: var(--green);
    font-weight: 700;
}
.home-cta:hover {
    background: #e0ebd8;
}
.wiki-home .area-card {
    border-radius: 16px;
    padding: clamp(19px, 2.8vw, 30px);
}
.wiki-home .area-card.erp {
    background: #edf2e9;
}
.wiki-home .area-card.system {
    background: #f2eee4;
}
.wiki-home .area-card.ki {
    background: #eef0eb;
}
.wiki-home .area-card.sales-data {
    background: #e9f1f2;
}
.sales-data .area-icon {
    background: #dcebed;
    color: #28525a;
}
.wiki-home .area-card:hover {
    border-color: #7f9f88;
    box-shadow: 0 5px 18px #103a2d14;
}
.workspace-shell .topic-grid {
    display: block;
    border-top: 1px solid var(--line);
}
.workspace-shell .topic-card {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) auto;
    align-items: center;
    gap: 16px;
    padding: 17px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}
.workspace-shell .topic-card::after {
    content: "→";
    color: var(--green);
}
.workspace-shell .topic-card:hover {
    background: #edf2e9;
}
.article-page .hero {
    border: 1px solid var(--line);
    background: #edf2e9;
    border-radius: 16px;
}
@media (min-width: 1000px) {
    .workspace-shell:has(.workspace-outline), .article-page .shell:has(.toc) {
        grid-template-columns: minmax(0, 1fr) 190px;
        column-gap: clamp(24px, 3.7vw, 52px);
    }
    .workspace-shell > .landing {
        grid-area: 1 / 1;
    }
    .workspace-outline, .article-page .toc {
        position: sticky;
        top: calc(var(--header-height) + 22px);
        grid-area: 1 / 2;
        align-self: start;
        height: auto;
        max-height: calc(100dvh - var(--header-height) - 44px);
        overflow: auto;
        margin: clamp(28px, 5vw, 64px) 0 0;
        padding: 0 0 0 13px;
        border: 0;
        border-left: 1px solid var(--line);
        border-radius: 0;
    }
    .article-page .toc {
        display: block;
    }
}
@media (max-width: 640px) {
    :root {
        --header-height: 100px;
    }
    .header-inner {
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    .wiki-tabs {
        max-width: 100%;
        gap: 3px;
    }
    .wiki-tabs a {
        padding: 7px 10px;
        font-size: .88rem;
    }
    .wiki-home .landing-hero-home {
        grid-template-columns: 1fr;
    }
    .wiki-home .hero-photo {
        min-height: 0;
        height: auto;
        aspect-ratio: 1.65;
    }
    .workspace-shell .topic-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 5px 12px;
    }
    .workspace-shell .topic-card span {
        grid-row: 2;
    }
    .workspace-shell .topic-card::after {
        grid-area: 1 / 2;
    }
}

body {
    color: var(--ink);
    background-color: var(--paper);
}
.site-header {
    background: #fff;
}
.wiki-tabs {
    padding: 4px;
    border: 1px solid #e7ebe1;
    border-radius: 999px;
    background: #f7f8f3;
}
.wiki-tabs a {
    padding: 7px 14px;
}
.wiki-home .landing-hero-home {
    background: #e7ede0;
    color: var(--green);
}
.wiki-home .landing-hero-home p {
    color: #365547;
    max-width: 32ch;
}
.wiki-home .hero-photo {
    min-height: 340px;
    object-position: 50% 54%;
}
.wiki-home .home-cta {
    --bs-btn-color: #fff;
    --bs-btn-bg: #103a2d;
    --bs-btn-border-color: #103a2d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #20523f;
    --bs-btn-hover-border-color: #20523f;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #20523f;
    --bs-btn-active-border-color: #20523f;
    --bs-btn-focus-shadow-rgb: 55, 104, 79;
}
.wiki-area-grid .area-card {
    color: var(--ink);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 1px 2px #103a2d0a;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.wiki-area-grid .area-card h3 {
    margin-top: 17px;
}
.wiki-area-grid .area-action {
    width: 100%;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}
.wiki-area-grid .area-action span {
    float: right;
}
@media (prefers-reduced-motion: reduce) {
    .wiki-area-grid .area-card {
        transition: none;
    }
}
@media (max-width: 640px) {
    .wiki-tabs a {
        padding: 6px 9px;
    }
    .wiki-home .hero-photo {
        min-height: 0;
    }
}
body {
    font-family: inherit;
}
:root {
    --bs-code-color: #215842;
}
.landing-hero h1, .article-page .hero h1 {
    font-weight: 750;
}

/* Vertical rhythm for process articles and wiki overview sections. */
.article-page .main {
    --article-block-gap: clamp(20px, 3vw, 32px);
    --article-section-gap: clamp(30px, 4.5vw, 48px);
}
.article-page .main > :is(.hero, .status-pill, .notice, .section) {
    margin-block: 0;
}
.article-page .main > :is(.hero, .status-pill, .notice, .section) + * {
    margin-block-start: var(--article-block-gap);
}
.article-page .main > .section + .section {
    margin-block-start: var(--article-section-gap);
}
.article-page .main > .status-pill {
    display: block;
    width: fit-content;
    max-width: 100%;
}
.article-page .hero .meta {
    gap: 8px 18px;
    margin: 20px 0 0;
    padding: 14px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
}
.article-page .section > :is(.info-grid, .steps, .flow, .integration) + p {
    margin-block-start: 16px;
}
.workspace-shell .landing-section > h2 + p {
    margin-block-start: 0;
    margin-block-end: 16px;
}
