* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

svg {
    display: block;
}

.shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 14px;
    color: white;
    background: var(--green-dark);
    border-radius: 8px;
    transform: translateY(-150%);
}

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

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(19, 40, 33, .1);
    background: rgba(247, 245, 239, .9);
    backdrop-filter: blur(14px);
}

.docs-header {
    position: sticky;
    top: 0;
}

.header-inner {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .12em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    overflow: visible;
}

.brand-mark path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.brand-mark circle {
    fill: var(--paper);
    stroke: currentColor;
    stroke-width: 2;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: 90px;
}

.main-nav a {
    position: relative;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 650;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 750;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.main-nav a:focus-visible,
.brand:focus-visible,
.docs-toc a:focus-visible {
    outline: 3px solid rgba(30, 106, 85, .3);
    outline-offset: 4px;
}

.button-small {
    min-height: 42px;
    padding: 0 18px;
    font-size: 13px;
}

.button-primary {
    color: #fff;
    background: var(--green);
    box-shadow: 0 10px 24px rgba(30, 106, 85, .18);
}

.button-primary:hover {
    background: var(--green-dark);
    box-shadow: 0 14px 30px rgba(30, 106, 85, .24);
}

.button-primary svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.button-outline {
    border-color: rgba(19, 40, 33, .25);
}

.button-outline:hover {
    background: var(--white);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(19, 40, 33, .35);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.text-link span {
    transition: transform .2s ease;
}

.text-link:hover span {
    transform: translate(2px, -2px);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 24px;
    height: 1px;
    background: currentColor;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 98px;
}

.hero::before {
    content: "";
    position: absolute;
    top: -260px;
    right: -220px;
    width: 680px;
    height: 680px;
    border: 1px solid rgba(30, 106, 85, .1);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(30, 106, 85, .025), 0 0 0 180px rgba(30, 106, 85, .018);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(540px, 1.1fr);
    align-items: center;
    gap: 72px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero h1 {
    max-width: 650px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(52px, 5.3vw, 78px);
    font-weight: 500;
    letter-spacing: -.047em;
    line-height: .98;
}

.hero h1 em,
.docs-hero h1 em {
    color: var(--green);
    font-weight: 500;
}

.hero-lead {
    max-width: 620px;
    margin: 30px 0 0;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 36px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.hero-note svg {
    width: 17px;
    height: 17px;
    padding: 2px;
    color: var(--green);
    border: 1px solid rgba(30, 106, 85, .3);
    border-radius: 50%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.hero-visual {
    position: relative;
    z-index: 1;
    transform: rotate(1deg);
}

.diagram-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(19, 40, 33, .14);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.diagram-toolbar {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots span {
    width: 7px;
    height: 7px;
    background: #c6cec9;
    border-radius: 50%;
}

.window-dots span:first-child {
    background: var(--amber);
}

.diagram-title {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.diagram-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.diagram-status i {
    width: 7px;
    height: 7px;
    background: #58a985;
    border-radius: 50%;
}

.hero-diagram {
    width: 100%;
    height: auto;
}

.preview-nodes .node {
    fill: var(--white);
    stroke: var(--green);
    stroke-width: 3;
}

.preview-nodes .node-start {
    fill: var(--green-light);
}

.preview-nodes .node-finish {
    fill: var(--lime);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid rgba(19, 40, 33, .12);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(25, 53, 44, .14);
    transform: rotate(-1deg);
}

.floating-card-top {
    top: 76px;
    right: -35px;
    padding: 13px 17px;
}

.floating-card-top strong {
    color: var(--green);
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
}

.floating-card-top span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.floating-card-bottom {
    right: 28px;
    bottom: -22px;
    padding: 13px 17px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.floating-card-bottom svg {
    width: 23px;
    height: 23px;
    padding: 4px;
    color: white;
    background: var(--green);
    border-radius: 50%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.principles-strip {
    color: #eff5f1;
    background: var(--ink);
}

.principles-grid {
    min-height: 126px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.principles-grid > div {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 28px;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.principles-grid > div:first-child {
    padding-left: 0;
}

.principles-grid > div:last-child {
    border-right: 0;
}

.principles-grid strong {
    color: var(--lime);
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;
}

.principles-grid span {
    display: flex;
    flex-direction: column;
}

.principles-grid b {
    font-size: 13px;
}

.principles-grid small {
    color: #94a79f;
    font-size: 10px;
}

.approach-section {
    padding: 120px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: .85fr 1.4fr;
    column-gap: 50px;
}

.section-heading .eyebrow {
    grid-column: 1;
}

.section-heading h2 {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4.5vw, 59px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.07;
}

.section-heading > p:last-child {
    grid-column: 2;
    max-width: 570px;
    margin: -70px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
}

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

.step-card {
    position: relative;
    min-height: 330px;
    padding: 30px;
    background: rgba(255, 254, 250, .55);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .25s ease, box-shadow .25s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(25, 53, 44, .08);
}

.step-card.featured {
    background: #e7eee9;
    border-color: #cbd9d1;
}

.step-number {
    color: #98a59f;
    font-family: Georgia, serif;
    font-size: 14px;
}

.step-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 52px 0 28px;
    color: var(--green);
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(25, 53, 44, .08);
}

.step-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.step-card h3 {
    margin: 0 0 12px;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 500;
}

.step-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.focus-callout {
    display: grid;
    grid-template-columns: auto 1fr 1.35fr auto;
    align-items: center;
    gap: 26px;
    margin-top: 68px;
    padding: 32px 38px;
    color: #eff5f1;
    background: var(--green-dark);
    border-radius: var(--radius);
}

.focus-mark {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: var(--lime);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 28px;
}

.focus-callout p {
    margin: 0;
    color: #bbcbc4;
    font-size: 13px;
}

.focus-callout > div:nth-child(2) p {
    margin-bottom: 3px;
    color: var(--lime);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.focus-callout h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 500;
}

.text-link.light {
    color: white;
    border-color: rgba(255, 255, 255, .35);
}

.final-cta {
    padding: 90px 0;
    background: #e5ece6;
    border-top: 1px solid #d2ddd5;
}

.final-cta-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.final-cta h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.final-cta-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-bottom: 7px;
}

.site-footer {
    color: #dfe8e3;
    background: var(--ink);
}

.footer-inner {
    min-height: 110px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-footer .brand-mark circle {
    fill: var(--ink);
}

.footer-inner > p {
    margin: 0;
    color: #899d94;
    font-size: 12px;
}

.footer-inner nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
    font-size: 12px;
    font-weight: 650;
}

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

/* Documentation */

.docs-hero {
    padding: 78px 0 85px;
    color: #f2f6f3;
    background: var(--ink);
}

.docs-hero-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: end;
    gap: 80px;
}

.breadcrumb {
    display: flex;
    gap: 9px;
    margin: 0 0 48px;
    color: #84988f;
    font-size: 12px;
}

.breadcrumb a:hover {
    color: white;
}

.docs-hero .eyebrow {
    color: var(--lime);
}

.docs-hero h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(50px, 6vw, 76px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1;
}

.docs-hero h1 em {
    color: var(--lime);
}

.docs-intro {
    margin: 0 0 4px;
    color: #bccbc4;
    font-size: 17px;
    line-height: 1.75;
}

.docs-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 760px);
    justify-content: space-between;
    gap: 86px;
    padding-top: 80px;
    padding-bottom: 110px;
}

.docs-aside {
    position: sticky;
    top: 108px;
    align-self: start;
}

.docs-toc {
    position: static;
}

.docs-toc > p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.docs-toc ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs-toc a {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 7px;
    padding: 8px 0;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.docs-toc a span {
    color: #9aa8a2;
    font-family: Georgia, serif;
}

.docs-toc a:hover {
    color: var(--green);
}

.aside-card {
    position: static;
    margin-top: 34px;
    padding: 20px;
    background: #e5ece6;
    border-radius: 12px;
}

.aside-card > span,
.doc-final-cta span,
.editor-tip > span {
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.aside-card strong {
    display: block;
    margin: 9px 0;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.aside-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.55;
}

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

.doc-section {
    position: relative;
    scroll-margin-top: 112px;
    padding: 0 0 92px;
    margin: 0 0 88px;
    border-bottom: 1px solid var(--line);
}

.doc-section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.section-index {
    position: absolute;
    top: 2px;
    right: 0;
    color: #c0c8c3;
    font-family: Georgia, serif;
    font-size: 18px;
}

.section-kicker {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.doc-section h2 {
    max-width: 650px;
    margin: 0 0 27px;
    font-family: Georgia, serif;
    font-size: clamp(35px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.doc-section h3 {
    margin: 40px 0 14px;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -.015em;
}

.doc-section > p,
.lead-paragraph {
    max-width: 710px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.75;
}

.lead-paragraph {
    font-size: 18px !important;
}

.scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 35px;
}

.scope-card {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.scope-card.included {
    background: #e6eee8;
}

.scope-card.excluded {
    background: #f1eee7;
}

.scope-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 600;
}

.scope-title span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--green);
    border-radius: 50%;
    font-family: sans-serif;
    font-size: 13px;
}

.excluded .scope-title span {
    background: #a17b6a;
}

.scope-card ul {
    display: grid;
    gap: 7px;
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 13px;
}

.note {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
    margin-top: 28px;
    padding: 23px 25px;
    border-left: 3px solid var(--green);
    background: var(--white);
}

.note.warning {
    border-left-color: var(--amber);
}

.note-symbol {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    color: var(--green);
    border: 1px solid rgba(30, 106, 85, .3);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 20px;
}

.warning .note-symbol {
    color: #9b641d;
    border-color: rgba(155, 100, 29, .35);
}

.note strong {
    font-size: 14px;
}

.note p {
    margin: 3px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.boundary-row {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    align-items: center;
    margin: 42px 0;
}

.boundary-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.boundary-dot {
    width: 38px;
    height: 24px;
    flex: 0 0 auto;
    margin-top: 4px;
    background: var(--green-light);
    border: 3px solid var(--green);
    border-radius: 5px;
}

.boundary-item.finish .boundary-dot {
    background: var(--lime);
}

.boundary-item small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.boundary-item strong {
    display: block;
    margin: 2px 0 4px;
    font-family: Georgia, serif;
    font-size: 17px;
}

.boundary-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.45;
}

.boundary-line {
    position: relative;
    height: 1px;
    background: var(--ink-soft);
}

.boundary-line::after {
    content: "";
    position: absolute;
    top: -4px;
    right: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid var(--ink-soft);
}

.boundary-line span {
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 100px;
    color: var(--muted);
    font-size: 8px;
    text-align: center;
    transform: translateX(-50%);
}

.number-list,
.build-steps {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.number-list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--ink-soft);
    font-size: 14px;
}

.number-list li > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--green);
    border: 1px solid rgba(30, 106, 85, .3);
    border-radius: 50%;
    font-family: Georgia, serif;
}

.example-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 35px;
}

.example-pair > div {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.example-pair span {
    display: block;
    margin-bottom: 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.example-pair .bad {
    color: #9f5c50;
}

.example-pair .good {
    color: var(--green);
}

.example-pair code {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
}

.example-pair p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.rule-table {
    overflow: hidden;
    margin-top: 34px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.rule-table > div {
    display: grid;
    grid-template-columns: .8fr 1.25fr 1.25fr;
}

.rule-table > div + div {
    border-top: 1px solid var(--line);
}

.rule-table span {
    padding: 13px 16px;
    color: var(--ink-soft);
    font-size: 12px;
}

.rule-table span + span {
    border-left: 1px solid var(--line);
}

.rule-table-head {
    background: #e7ece8;
}

.rule-table-head span {
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.decision-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 25px;
}

.decision-cards > div {
    padding: 23px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.decision-icon {
    display: block;
    margin-bottom: 18px;
    color: var(--green);
    font-family: Georgia, serif;
    font-size: 26px;
}

.decision-cards strong {
    font-family: Georgia, serif;
    font-size: 18px;
}

.decision-cards p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.method-box {
    margin: 30px 0;
    padding: 28px;
    color: #edf4f0;
    background: var(--green-dark);
    border-radius: 14px;
}

.method-label {
    color: var(--lime);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.method-box > p {
    max-width: 560px;
    margin: 12px 0 24px;
    font-family: Georgia, serif;
    font-size: 22px;
    line-height: 1.35;
}

.method-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.method-options > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
}

.method-options b {
    color: var(--lime);
    font-family: Georgia, serif;
    font-size: 18px;
}

.method-options span {
    color: #becdc7;
    font-size: 11px;
}

.dependency-example {
    overflow: hidden;
    margin: 32px 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.dependency-caption {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.dependency-caption span {
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dependency-caption strong {
    font-size: 12px;
}

.dependency-network {
    position: relative;
    min-height: 235px;
    background-image: radial-gradient(#ced6d1 .8px, transparent .8px);
    background-size: 18px 18px;
}

.dependency-network svg {
    width: 100%;
    height: auto;
}

.network-edges path {
    fill: none;
    stroke: var(--ink-soft);
    stroke-width: 1.6;
    marker-end: url(#networkArrow);
}

.network-edges .network-dummy {
    stroke: var(--green);
    stroke-dasharray: 5 4;
}

.dependency-network marker path {
    fill: var(--ink-soft);
}

.network-labels text {
    fill: var(--ink-soft);
    font-size: 10px;
    font-weight: 650;
    text-anchor: middle;
}

.network-nodes rect {
    fill: var(--white);
    stroke: var(--green);
    stroke-width: 3;
}

.network-nodes .network-finish {
    fill: var(--lime);
}

.network-node-labels text {
    fill: var(--ink);
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
}

.dependency-example > p {
    margin: 0;
    padding: 15px 20px;
    color: var(--muted);
    background: #f0f2ed;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 33px;
}

.legend-card {
    min-height: 180px;
    padding: 23px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.legend-card > span {
    height: 38px;
    display: block;
    margin-bottom: 22px;
}

.legend-event::before {
    content: "";
    display: block;
    width: 54px;
    height: 31px;
    background: var(--green-light);
    border: 3px solid var(--green);
    border-radius: 6px;
}

.legend-work,
.legend-dummy {
    position: relative;
    width: 82px;
    border-top: 2px solid var(--ink);
}

.legend-dummy {
    border-top-style: dashed;
}

.legend-work::after,
.legend-dummy::after {
    content: "";
    position: absolute;
    top: -5px;
    right: -1px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid var(--ink);
}

.legend-card strong {
    font-family: Georgia, serif;
    font-size: 17px;
}

.legend-card p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.build-steps {
    counter-reset: build;
}

.build-steps li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 19px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.build-steps li > span {
    color: var(--green);
    font-family: Georgia, serif;
    font-size: 17px;
}

.build-steps strong {
    font-size: 14px;
}

.build-steps p {
    margin: 3px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.dummy-explainer {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 25px;
    margin-top: 36px;
    padding: 28px;
    color: white;
    background: var(--ink);
    border-radius: 14px;
}

.dummy-explainer h3 {
    margin: 10px 0 10px;
    color: white;
    font-size: 23px;
}

.dummy-explainer p {
    margin: 0;
    color: #aebfb7;
    font-size: 12px;
}

.dummy-explainer svg {
    width: 100%;
}

.dummy-explainer svg path.solid,
.dummy-explainer svg path.dummy {
    fill: none;
    stroke: #cedad4;
    stroke-width: 1.5;
    marker-end: url(#docArrow);
}

.dummy-explainer svg path.dummy {
    stroke: var(--lime);
    stroke-dasharray: 5 4;
}

.dummy-explainer svg marker path {
    fill: #cedad4;
}

.dummy-explainer svg rect {
    fill: var(--ink);
    stroke: #e6eee9;
    stroke-width: 2;
}

.dummy-explainer svg text {
    fill: #aebfb7;
    font-size: 9px;
    text-anchor: middle;
}

.checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 32px 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: grid;
    grid-template-columns: 31px 1fr;
    gap: 12px;
    padding: 19px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 11px;
}

.checklist li > span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--green);
    border-radius: 50%;
    font-size: 12px;
}

.checklist strong {
    font-size: 12px;
}

.checklist p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.review-questions {
    margin-top: 34px;
    padding: 28px;
    background: #e4ece6;
    border-radius: 14px;
}

.review-questions > p {
    margin: 0 0 16px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.review-questions ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 21px;
    color: var(--ink-soft);
    font-family: Georgia, serif;
    font-size: 16px;
}

.review-questions li::marker {
    color: var(--green);
}

.mistakes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mistakes-grid > div {
    padding: 21px;
    border-top: 2px solid #bc7766;
    background: #f2eee7;
}

.mistakes-grid span {
    display: block;
    margin-bottom: 13px;
    color: #a16b5f;
    font-family: Georgia, serif;
    font-size: 12px;
}

.mistakes-grid strong {
    font-size: 12px;
}

.mistakes-grid p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.editor-guide {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 16px;
    margin-top: 35px;
}

.editor-guide-copy {
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.editor-guide-copy ol {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.editor-guide-copy li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 11px;
    align-items: start;
}

.editor-guide-copy li > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--green);
    border: 1px solid rgba(30, 106, 85, .3);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 12px;
}

.editor-guide-copy p {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.editor-tip {
    padding: 27px;
    color: white;
    background: var(--green-dark);
    border-radius: 14px;
}

.editor-tip > span {
    color: var(--lime);
}

.editor-tip strong {
    display: block;
    margin: 55px 0 14px;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.25;
}

.editor-tip p {
    margin: 0;
    color: #bac9c2;
    font-size: 11px;
}

.doc-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    padding: 35px;
    background: #e4ece6;
    border-radius: 14px;
}

.doc-final-cta h3 {
    margin: 7px 0 0;
    font-size: 27px;
}

/* Extended documentation content */

.legend-grid.four-items {
    grid-template-columns: repeat(2, 1fr);
}

.legend-grid.four-items .legend-card {
    min-height: 165px;
}

.doc-section code {
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: .9em;
}

.prose-list {
    display: grid;
    gap: 9px;
    margin: 20px 0 0;
    padding-left: 22px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.65;
}

.prose-list li::marker {
    color: var(--green);
}

.columns-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 42px;
}

.network-sketch {
    max-width: 100%;
    overflow-x: auto;
    margin: 24px 0 0;
    padding: 21px 23px;
    color: #dce8e2;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    line-height: 1.75;
    tab-size: 4;
    white-space: pre;
}

.pattern-list {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

.pattern-card {
    position: relative;
    padding: 27px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.pattern-card:nth-child(even) {
    background: #f0f2ed;
}

.pattern-card h3 {
    max-width: 620px;
    margin: 0 45px 10px 0;
    font-size: 23px;
}

.pattern-card > p {
    max-width: 660px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.65;
}

.pattern-card .network-sketch {
    margin-top: 19px;
}

.pattern-index {
    position: absolute;
    top: 28px;
    right: 27px;
    color: #a9b4ae;
    font-family: Georgia, serif;
    font-size: 14px;
}

.compact-checklist {
    margin-top: 24px;
}

.audit-steps li:first-child {
    border-top-color: var(--green);
}

.example-flow {
    display: grid;
    gap: 17px;
    margin-top: 38px;
}

.example-flow .network-sketch {
    margin: 0 0 22px;
}

.example-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 15px;
    align-items: start;
}

.example-step > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--green);
    border: 1px solid rgba(30, 106, 85, .3);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 13px;
}

.example-step h3 {
    margin: 3px 0 6px;
    font-size: 22px;
}

.example-step p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.6;
}

.duration-cards .decision-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(30, 106, 85, .3);
    border-radius: 50%;
    font-size: 17px;
}

.formula-card {
    margin: 28px 0;
    padding: 30px;
    color: white;
    background: var(--green-dark);
    border-radius: 14px;
}

.formula-card > span {
    color: var(--lime);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.formula-card > p {
    margin: 18px 0 24px;
    font-family: Georgia, serif;
    font-size: clamp(28px, 5vw, 42px);
    letter-spacing: .02em;
}

.formula-card dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0;
}

.formula-card dl > div {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 7px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
}

.formula-card dt {
    color: var(--lime);
    font-family: Georgia, serif;
    font-size: 18px;
}

.formula-card dd {
    align-self: center;
    margin: 0;
    color: #c1d0c9;
    font-size: 10px;
    line-height: 1.35;
}

.review-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 34px;
}

.review-group {
    padding: 23px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.review-group:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.review-group h3 {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 20px;
}

.review-group ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.55;
}

.review-group li::marker {
    color: var(--green);
}

.quick-rules {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 28px 28px 28px 50px;
    color: var(--ink-soft);
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.45;
}

.quick-rules li::marker {
    color: var(--green);
    font-weight: 700;
}

.materials-list {
    display: grid;
    gap: 1px;
    overflow: hidden;
    margin: 20px 0 0;
    padding: 0;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    list-style: none;
}

.materials-list li {
    background: var(--white);
}

.materials-list a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.materials-list a:hover {
    color: var(--green);
    background: #e6eee8;
}

.materials-list a span {
    flex: 0 0 auto;
    color: var(--green);
}

@media (max-width: 1050px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 58px;
    }

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

    .hero-visual {
        max-width: 760px;
        margin: 0 auto;
    }

    .section-heading > p:last-child {
        margin-top: -55px;
    }

    .focus-callout {
        grid-template-columns: auto 1fr 1.3fr;
    }

    .focus-callout .text-link {
        grid-column: 2;
    }

    .docs-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 55px;
    }
}

@media (max-width: 820px) {
    .shell {
        width: min(100% - 36px, 720px);
    }

    .main-nav {
        margin-left: auto;
        margin-right: 25px;
    }

    .hero {
        padding-top: 64px;
    }

    .principles-grid {
        grid-template-columns: 1fr 1fr;
        padding: 20px 0;
    }

    .principles-grid > div,
    .principles-grid > div:first-child {
        padding: 15px;
        border-right: 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        min-height: 240px;
    }

    .step-icon {
        margin-top: 30px;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p:last-child {
        margin-top: 25px;
    }

    .focus-callout {
        grid-template-columns: auto 1fr;
    }

    .focus-callout > p,
    .focus-callout .text-link {
        grid-column: 2;
    }

    .final-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .docs-hero-inner {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .docs-intro {
        max-width: 650px;
    }

    .docs-layout {
        display: block;
    }

    .docs-aside {
        display: none;
    }

    .docs-article {
        max-width: 700px;
        margin: 0 auto;
    }
}

@media (max-width: 620px) {
    .shell {
        width: min(100% - 28px, 520px);
    }

    .header-inner {
        height: 66px;
    }

    .main-nav {
        display: none;
    }

    .brand {
        font-size: 17px;
    }

    .brand-mark {
        width: 29px;
        height: 29px;
    }

    .header-action {
        min-height: 38px;
        padding: 0 13px;
        font-size: 11px;
    }

    .hero {
        padding: 50px 0 72px;
    }

    .hero-grid {
        gap: 48px;
    }

    .hero h1 {
        font-size: 47px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-actions,
    .final-cta-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .hero-note {
        align-items: flex-start;
    }

    .diagram-card {
        margin: 0 -4px;
    }

    .hero-diagram {
        min-height: 255px;
        object-fit: cover;
    }

    .floating-card-top {
        top: 60px;
        right: -8px;
    }

    .floating-card-bottom {
        right: 12px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .principles-grid > div {
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .principles-grid > div:last-child {
        border-bottom: 0;
    }

    .approach-section {
        padding: 84px 0;
    }

    .section-heading h2 {
        font-size: 39px;
    }

    .steps-grid {
        margin-top: 48px;
    }

    .focus-callout {
        display: block;
        padding: 27px;
    }

    .focus-mark {
        margin-bottom: 22px;
    }

    .focus-callout > p {
        margin: 18px 0;
    }

    .final-cta {
        padding: 70px 0;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 28px 0;
    }

    .footer-inner nav {
        margin: 8px 0 0;
    }

    .docs-hero {
        padding: 54px 0 60px;
    }

    .breadcrumb {
        margin-bottom: 32px;
    }

    .docs-hero h1 {
        font-size: 46px;
    }

    .docs-intro {
        font-size: 15px;
    }

    .docs-layout {
        padding-top: 58px;
        padding-bottom: 80px;
    }

    .doc-section {
        padding-bottom: 67px;
        margin-bottom: 63px;
    }

    .doc-section h2 {
        padding-right: 26px;
        font-size: 34px;
    }

    .scope-grid,
    .example-pair,
    .decision-cards,
    .legend-grid,
    .checklist,
    .mistakes-grid,
    .editor-guide,
    .review-groups,
    .formula-card dl {
        grid-template-columns: 1fr;
    }

    .legend-grid.four-items {
        grid-template-columns: 1fr;
    }

    .columns-list {
        grid-template-columns: 1fr;
    }

    .network-sketch {
        margin-right: -14px;
        margin-left: -14px;
        padding: 18px 15px;
        border-radius: 0;
        font-size: 10px;
    }

    .pattern-card {
        padding: 23px 18px;
    }

    .pattern-card h3 {
        margin-right: 34px;
        font-size: 21px;
    }

    .pattern-index {
        top: 25px;
        right: 18px;
    }

    .review-group:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .quick-rules {
        padding: 24px 24px 24px 44px;
        font-size: 14px;
    }

    .boundary-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .boundary-line {
        width: 1px;
        height: 55px;
        margin-left: 31px;
    }

    .boundary-line::after {
        top: auto;
        right: -3px;
        bottom: 0;
        border-top: 7px solid var(--ink-soft);
        border-right: 4px solid transparent;
        border-bottom: 0;
        border-left: 4px solid transparent;
    }

    .boundary-line span {
        bottom: auto;
        left: 12px;
        top: 18px;
        width: 100px;
        text-align: left;
        transform: none;
    }

    .rule-table {
        overflow-x: auto;
    }

    .rule-table > div {
        min-width: 570px;
    }

    .method-options {
        grid-template-columns: 1fr;
    }

    .dependency-network {
        min-height: 190px;
    }

    .dummy-explainer {
        grid-template-columns: 1fr;
    }

    .dummy-explainer svg {
        margin-top: 15px;
    }

    .doc-final-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 27px;
    }
}

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

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

/* Public creation guide */

.guide-hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.04;
}

.guide-layout {
    grid-template-columns: 240px minmax(0, 800px);
}

.guide-toc ol {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: 10px;
}

.guide-content {
    min-width: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.75;
}

.guide-content h2,
.guide-content h3 {
    scroll-margin-top: 112px;
    color: var(--ink);
    font-family: Georgia, serif;
    font-weight: 500;
    letter-spacing: -.02em;
}

.guide-content h2 {
    margin: 82px 0 25px;
    padding-top: 76px;
    border-top: 1px solid var(--line);
    font-size: 39px;
    line-height: 1.12;
}

.guide-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.guide-content h3 {
    margin: 43px 0 15px;
    font-size: 25px;
    line-height: 1.25;
}

.guide-content p {
    margin: 0 0 19px;
}

.guide-content ul,
.guide-content ol {
    display: grid;
    gap: 8px;
    margin: 18px 0 26px;
    padding-left: 25px;
}

.guide-content li::marker {
    color: var(--green);
    font-weight: 700;
}

.guide-content strong {
    color: var(--ink);
}

.guide-content a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-color: rgba(30, 106, 85, .35);
    text-underline-offset: 3px;
}

.guide-content a:hover {
    text-decoration-color: currentColor;
}

.guide-content code {
    padding: 2px 5px;
    color: var(--ink);
    background: #e6ece7;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: .88em;
}

.guide-content pre {
    max-width: 100%;
    overflow-x: auto;
    margin: 23px 0 30px;
    padding: 22px 24px;
    color: #dce8e2;
    background: var(--ink);
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.65;
    tab-size: 2;
}

.guide-content pre code {
    padding: 0;
    color: inherit;
    background: transparent;
    border-radius: 0;
    font-size: inherit;
}

.guide-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 24px 0 34px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.guide-content table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: var(--white);
    font-size: 12px;
    line-height: 1.55;
}

.guide-content th,
.guide-content td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.guide-content th + th,
.guide-content td + td {
    border-left: 1px solid var(--line);
}

.guide-content th {
    color: var(--ink);
    background: #e7ece8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.guide-content tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 720px) {
    .guide-hero h1 {
        font-size: 39px;
    }

    .guide-content {
        font-size: 14px;
    }

    .guide-content h2 {
        margin-top: 62px;
        padding-top: 58px;
        font-size: 31px;
    }

    .guide-content h3 {
        font-size: 22px;
    }

    .guide-content pre {
        margin-right: -14px;
        margin-left: -14px;
        padding: 18px 14px;
        border-radius: 8px;
        font-size: 10px;
    }
}
