:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#24303b}*{box-sizing:border-box}body{margin:0;line-height:1.65}.container{width:min(900px,calc(100% - 36px));margin:0 auto}.site-header{padding:22px 0;background:#18364a;color:white}.brand{font-size:1.65rem;font-weight:750;color:white;text-decoration:none}.tagline{display:block;color:#d6e3ed;font-size:.9rem}nav{background:#e9eff3}nav .container{display:flex;flex-wrap:wrap;gap:20px;padding:12px 0}nav a{color:#18364a;text-decoration:none;font-weight:650}nav a:hover,a:hover{text-decoration:underline}main{min-height:65vh;padding:35px 0 65px}h1{font-size:clamp(1.8rem,4vw,2.4rem);line-height:1.2;margin:0 0 20px}h2{margin-top:35px;font-size:1.35rem}p{margin:0 0 18px}a{color:#17618a}.intro{max-width:760px}.action,button{display:inline-block;background:#17618a;color:white;border:0;border-radius:6px;padding:11px 18px;text-decoration:none;font-size:1rem;cursor:pointer}.action:hover,button:hover{background:#114e70;text-decoration:none}.resources{padding-left:22px}.resources li{margin:8px 0}footer{border-top:1px solid #dce2e7;padding:20px 0;color:#52616a;font-size:.9rem}.panel{background:white;border:1px solid #dce2e7;border-radius:9px;padding:22px;max-width:780px}.panel label{display:block;margin:0 0 20px;font-weight:600}.panel input:not([type=checkbox]),.panel textarea{display:block;width:100%;padding:11px;margin-top:6px;border:1px solid #b9c5ce;border-radius:5px;font:inherit}.panel textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9rem;line-height:1.4}.panel .check{display:flex;align-items:center;gap:10px;font-weight:450;margin:12px 0}.check input{width:18px;height:18px}.adminbar{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:0 0 24px}.adminbar form{margin:0}.secondary{background:#56616c}.danger{background:#a33131;margin-top:12px}.prefix{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-weight:400}.prefix input{flex:1;min-width:170px}.muted{color:#77828b}.notice{color:#8a2a1d}.success{color:#126a33}.actions{display:flex;align-items:center;gap:18px}.content{overflow-wrap:anywhere}.content img{max-width:100%;height:auto}.content table{border-collapse:collapse;display:block;overflow-x:auto}.content td,.content th{border:1px solid #ccd6dc;padding:8px}

/* Business card is the shared heading on every public page. */
.site-header{background:#f9fafb;padding:20px 0 12px;text-align:center}
.business-card-link{display:inline-block;max-width:100%;line-height:0}
.business-card-image{display:block;width:597px;max-width:100%;height:auto;margin:0 auto}

/* White site background and centered business-card header. */

.site-header { background: #fff; }
.site-header > .container { display: flex; justify-content: center; align-items: center; }
.business-card-link { flex: 0 1 auto; }

/* Cleaner public layout and centered copyright notice. */
footer .container{text-align:center}
/* Admin text remains readable with the new white header. */
.site-header .brand{color:#18364a}
.site-header .tagline{color:#52616a}

/* Small centered return link on individual content pages only. */
.return-home{text-align:center;font-size:.8rem;margin:-18px 0 28px}


/* Paper-sheet design: one frame contains header, content and footer. */
/* Entire browser canvas stays tan, behind the centered paper frame. */
html, body {
    min-height: 100%;
    background-color: #cbb58c;
    background-image:
        repeating-linear-gradient(22deg, rgba(93,70,39,.085) 0px, rgba(93,70,39,.085) 1px, transparent 1px, transparent 7px),
        repeating-linear-gradient(112deg, rgba(255,255,255,.18) 0px, rgba(255,255,255,.18) 1px, transparent 1px, transparent 9px);
}
body { min-height: 100vh; display: flow-root; }

.paper-frame {
    width: min(940px, calc(100% - 32px));
    margin: 24px auto;
    border: 6px solid #171717;
    background: #fff;
    box-shadow: 0 5px 22px rgba(40, 33, 23, .16);
}
.paper-frame .site-header { background: #fff; }
.paper-frame main { min-height: 50vh; }
.paper-frame footer { background: #fff; }
@media (max-width: 600px) {
    .paper-frame { width: calc(100% - 16px); margin: 8px auto; border-width: 4px; }
    .paper-frame .container { width: calc(100% - 28px); }
}

/* Expandable resource index: stays inside the established white paper frame. */
.article-index {margin-top:32px;}
.article-tree-level {list-style:none;padding:0;margin:8px 0 0 0;}
.article-tree-level .article-tree-level {margin:5px 0 8px 22px;padding-left:14px;border-left:1px solid #ddd;}
.article-tree-item {position:relative;min-height:30px;margin:6px 0;}
.article-tree-item > a {display:inline-block;vertical-align:top;padding:3px 0;max-width:calc(100% - 40px);}
.article-tree-item a[aria-current="page"] {font-weight:700;}
.article-branch {display:block;position:relative;}
.article-branch > summary {list-style:none;display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;vertical-align:top;cursor:pointer;border:1px solid #aab2b8;border-radius:4px;margin-right:6px;background:#f9f9f7;color:#21313a;}
.article-branch > summary::-webkit-details-marker {display:none;}
.article-branch > summary:focus-visible {outline:3px solid #17618a;outline-offset:2px;}
.article-branch > summary:hover {background:#e9eff3;}
.toggle-marker::before {content:'+';font-size:21px;line-height:1;}
.article-branch[open] > summary .toggle-marker::before {content:'−';}
.article-branch > a {display:inline-block;padding:3px 0;vertical-align:top;max-width:calc(100% - 42px);}
.tree-spacer {display:inline-block;width:33px;}
.article-breadcrumb {font-size:.88rem;line-height:1.5;color:#52616a;margin:0 0 24px;overflow-wrap:anywhere;}
.up-one-level {margin-top:28px;font-weight:600;}
.panel select {display:block;width:100%;padding:10px;margin-top:6px;border:1px solid #b9c5ce;border-radius:5px;font:inherit;background:white;}

/* Keep the toggle and its article title together in one visible row. */
.article-branch > summary {
    width: fit-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
}
.article-branch > summary:hover { background: transparent; }
.article-branch > summary .toggle-marker {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #aab2b8;
    border-radius: 4px;
    background: #f9f9f7;
}
.article-branch > summary .toggle-marker:hover { background: #e9eff3; }
.article-branch > summary a { padding: 3px 0; min-width: 0; }
.article-tree-item > .article-branch { display: block; }

/* Current article is bold red text at its usual place in the navigation tree. */
.article-tree-item .article-current {
    display: inline-block;
    padding: 3px 0;
    color: #a32121;
    font-weight: 750;
    text-decoration: none;
}
.article-branch > summary .article-current { min-width: 0; }

/* Navigation consistency update: standalone plus/minus control, title stays separate. */
.article-outline .article-tree-level { list-style: none; margin: 6px 0 0; padding: 0; }
.article-outline .article-tree-level .article-tree-level { margin: 5px 0 8px 22px; padding-left: 14px; border-left: 1px solid #ddd; }
.article-outline .article-tree-item { margin: 6px 0; line-height: 1.55; }
.article-outline .article-branch { display: block; }
.article-outline .article-branch > summary {
    display: inline-flex; align-items: center; justify-content: center;
    width: 27px; height: 27px; max-width: none;
    margin: 0 6px 0 0; padding: 0;
    cursor: pointer; vertical-align: middle;
    border: 0; background: transparent;
}
.article-outline .article-branch > summary .toggle-marker {
    display: inline-flex; justify-content: center; align-items: center;
    width: 27px; height: 27px; border: 1px solid #aab2b8;
    background: #f9f9f7; border-radius: 4px;
}
.article-outline .article-branch > summary:hover .toggle-marker { background: #e9eff3; }
.article-outline .article-branch > a, .article-outline .article-branch > .article-current {
    display: inline; vertical-align: middle; padding: 0;
}
.article-outline .tree-spacer { display: inline-block; width: 33px; vertical-align: middle; }
.article-outline .article-current { font-weight: 750; color: #a32121; text-decoration: none; }
.article-outline a { overflow-wrap: anywhere; }

/* Compact, unboxed article-directory outline: no colored navigation panels. */
.article-index, .article-outline, .article-outline ul, .article-outline li,
.article-outline details { background: transparent; box-shadow: none; }
.article-index { margin-top: 28px; }
.article-outline .article-tree-level { margin-top: 4px; }
.article-outline .article-tree-item { margin: 3px 0; }
.article-outline .article-tree-level .article-tree-level { margin: 4px 0 6px 16px; padding-left: 12px; border-left: 1px solid #d8d3ca; }
.article-outline .article-branch > summary { width: 22px; height: 24px; margin-right: 6px; }
.article-outline .article-branch > summary .toggle-marker {
    width: 20px; height: 20px; border: 1px solid #a9a49c;
    border-radius: 3px; background: #fff; color: #333;
}
.article-outline .article-branch > summary:hover .toggle-marker { background: #f4f1eb; }
.article-outline .tree-spacer { width: 28px; }
.article-outline .article-current { color: #a32121; font-weight: 700; }

/* Down / Sideways / Up: plain outlines on the existing white paper. */
.resource-navigation, .resource-navigation ul, .resource-navigation li, .resource-navigation details,
.resource-navigation section {background:transparent;box-shadow:none;}
.resource-navigation {margin-top:28px;}
.resource-navigation h2 {margin:23px 0 8px;font-size:1.2rem;}
.resource-direction + .resource-direction {margin-top:20px;}
.resource-level, .resource-ancestors {list-style:none;padding:0;margin:4px 0 0;}
.resource-item,.resource-ancestors li {margin:5px 0;line-height:1.5;overflow-wrap:anywhere;}
.resource-level .resource-level {margin:6px 0 9px 18px;padding-left:12px;border-left:1px solid #dad6ce;}
.resource-branch {display:block;}
.resource-branch > summary {display:inline-flex;align-items:center;justify-content:center;width:22px;height:24px;margin-right:7px;padding:0;list-style:none;vertical-align:middle;cursor:pointer;background:transparent;border:0;}
.resource-branch > summary::-webkit-details-marker {display:none;}
.resource-branch > summary .resource-toggle {display:flex;width:20px;height:20px;align-items:center;justify-content:center;border:1px solid #aaa59d;border-radius:3px;background:white;color:#333;}
.resource-branch > summary .resource-toggle::before {content:'+';font-size:17px;line-height:1;}
.resource-branch[open] > summary .resource-toggle::before {content:'−';}
.resource-branch > summary:focus-visible {outline:2px solid #17618a;outline-offset:2px;}
.resource-branch > a {vertical-align:middle;}
.resource-spacer {display:inline-block;width:29px;vertical-align:middle;}
.resource-ancestors li {margin:5px 0;}

/* The document title stays visible; the adjacent plus expands only descendants. */
.resource-row {display:flex;align-items:baseline;gap:7px;min-width:0;}
.resource-row > a {flex:1;min-width:0;}
.resource-expander {flex:0 0 22px;width:22px;height:22px;padding:0;line-height:18px;text-align:center;cursor:pointer;border:1px solid #aaa59d;border-radius:3px;background:#fff;color:#333;font:inherit;font-size:17px;}
.resource-expander:hover {background:#f4f1eb;}
.resource-expander:focus-visible {outline:2px solid #17618a;outline-offset:2px;}
.resource-row .resource-spacer {flex:0 0 22px;width:22px;}
.resource-children[hidden] {display:none !important;}

/* Resource directory links should look like links, including inside <nav>.
   Override the legacy global nav a rule without affecting other navigation. */
.resource-navigation a:link,
.resource-navigation a:visited {
    color: #1459b5;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 400;
}
.resource-navigation a:hover,
.resource-navigation a:focus-visible {
    color: #0b3977;
    text-decoration: underline;
}

/* Small, plain expand/collapse marks for the article navigation.
   Preserve a comfortable click target without a button-shaped box. */
.resource-expander {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #444;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
}
.resource-expander:hover { background: transparent; color: #1459b5; }
.resource-expander:focus-visible { outline: 2px solid #1459b5; outline-offset: 1px; }
