* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fafaf7;
    color: #1f2328;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 860px; width: 100%; margin: 0 auto; padding: 0 1.25rem; }

.site-header { padding: 1.4rem 0; border-bottom: 1px solid #e6e4de; }
.site-header .container { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.logo { font-weight: 600; font-size: 1.05rem; color: #1f2328; text-decoration: none; }
.logo span { color: #8a8577; font-weight: 400; }
.doc-nav { font-size: .85rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.doc-nav a { color: #57534a; text-decoration: none; border-bottom: 1px solid transparent; }
.doc-nav a:hover { border-bottom-color: #b9b4a5; }
.doc-nav a.active { color: #1f2328; font-weight: 600; border-bottom-color: #1f2328; }

main.container { flex: 1; padding-top: 2.5rem; padding-bottom: 3rem; }

.site-footer { padding: 1.5rem 0; border-top: 1px solid #e6e4de; color: #8a8577; font-size: 0.85rem; }

h1 { font-size: 1.7rem; line-height: 1.25; margin-bottom: .4rem; }
h2 { font-size: 1.25rem; margin: 2.4rem 0 .8rem; padding-top: .4rem; }
h3 { font-size: 1.02rem; margin: 1.6rem 0 .5rem; }
p { margin-bottom: .9rem; }
ul, ol { margin: 0 0 1rem 1.4rem; }
li { margin-bottom: .35rem; }
a { color: #1d4ed8; }

.doc-meta { color: #8a8577; font-size: .85rem; margin-bottom: 2rem; }

.lede { font-size: 1.05rem; color: #57534a; margin-bottom: 1.4rem; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em;
       background: #f0efe9; border: 1px solid #e6e4de; border-radius: 4px; padding: .05em .3em; }
pre { background: #1f2328; color: #e8e6df; border-radius: 10px; padding: 1rem 1.2rem; overflow-x: auto;
      margin: 0 0 1.1rem; font-size: .82rem; line-height: 1.55; }
pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
pre .c { color: #8a8577; }

table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e6e4de;
        border-radius: 10px; overflow: hidden; margin-bottom: 1.2rem; font-size: .9rem; }
th, td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid #eeece6; vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #8a8577; background: #fbfaf7; }
tr:last-child td { border-bottom: none; }

.card { border: 1px solid #e6e4de; border-radius: 10px; background: #fff; padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.card h3 { margin-top: 0; }
.card .goto { font-size: .85rem; }

.callout { border: 1px solid #e6e4de; border-left: 4px solid #b9b4a5; background: #fff;
           border-radius: 8px; padding: .8rem 1.1rem; margin: 1.1rem 0; font-size: .92rem; }
.callout.warn { border-left-color: #b45309; }
.callout.ok { border-left-color: #15803d; }
.callout.rec { border-left-color: #1d4ed8; }
.callout .tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase;
                letter-spacing: .05em; margin-right: .4rem; }
.callout.warn .tag { color: #b45309; }
.callout.ok .tag { color: #15803d; }
.callout.rec .tag { color: #1d4ed8; }

.pill { display: inline-block; font-size: .72rem; font-weight: 600; border-radius: 999px;
        padding: .1rem .6rem; border: 1px solid; vertical-align: middle; }
.pill.ok { color: #15803d; border-color: #86efac; background: #f0fdf4; }
.pill.no { color: #b91c1c; border-color: #fca5a5; background: #fef2f2; }
.pill.mid { color: #b45309; border-color: #fcd34d; background: #fffbeb; }

figure { margin: 1.4rem 0 1.6rem; }
figcaption { font-size: .8rem; color: #8a8577; margin-top: .5rem; text-align: center; }

svg.diagram { width: 100%; height: auto; display: block; background: #fff;
              border: 1px solid #e6e4de; border-radius: 10px; }
.d-t   { font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; fill: #1f2328; }
.d-txt { font: 12.5px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; fill: #1f2328; }
.d-s   { font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; fill: #57534a; }
.d-m   { font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; fill: #8a8577; }
.d-cap { font: 700 11px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; fill: #8a8577; letter-spacing: .08em; }
.d-code { font: 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; fill: #1f2328; }
.d-box    { fill: #fff;     stroke: #b9b4a5; }
.d-box-b  { fill: #eef4ff;  stroke: #93b4f5; }
.d-box-g  { fill: #f0fdf4;  stroke: #86efac; }
.d-box-r  { fill: #fef2f2;  stroke: #fca5a5; }
.d-box-y  { fill: #fffbeb;  stroke: #fcd34d; }
.d-group  { fill: none; stroke: #d6d2c6; stroke-dasharray: 5 4; }
.d-line   { stroke: #57534a; stroke-width: 1.3; fill: none; }
.d-line-d { stroke: #57534a; stroke-width: 1.3; fill: none; stroke-dasharray: 5 3; }
.d-life   { stroke: #d6d2c6; stroke-width: 1; }
.d-sep    { stroke: #e6e4de; stroke-width: 1; }

.checklist td:first-child { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }

@media (max-width: 640px) {
    h1 { font-size: 1.4rem; }
    pre { font-size: .74rem; }
}
