/* Native buttons retain the approved diagram geometry. */
:where(.system-node) { appearance:none; display:block; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; text-align:inherit; cursor:pointer; min-width:0; }
.skunk-page,.skunk-page * { box-sizing:border-box; }
html,body,#root { margin:0; min-height:100%; width:100%; }
.skunk-page { --ink:#171a18; --muted:#59605b; --accent:#315c49; min-height:100svh; padding:clamp(24px,3.3vw,48px) clamp(24px,6vw,88px) 24px; display:flex; flex-direction:column; color:var(--ink); background:#fff; font-family:Arial,"Helvetica Neue",Helvetica,sans-serif; font-synthesis:none; overflow-wrap:anywhere; }
.skunk-page p,.skunk-page h1,.skunk-page a,.skunk-page figure { margin:0; font-family:inherit; }
.skunk-header,.skunk-main,.skunk-footer { width:100%; max-width:1280px; margin-inline:auto; }
.skunk-logo { display:block; width:224px; max-width:100%; height:auto; }
.skunk-main { flex:1; display:grid; grid-template-columns:1.27fr 1fr; align-items:center; gap:clamp(32px,4vw,64px); padding:36px 0; }
.skunk-page h1 { font-size:clamp(2.5rem,4.4vw,4.6rem); line-height:1.07; letter-spacing:-.06em; font-weight:600; }
.skunk-page h1 span { color:var(--accent); }
.skunk-description { max-width:28em; margin-top:26px!important; font-size:clamp(1.0625rem,1.5vw,1.3125rem); line-height:1.5; color:var(--muted); letter-spacing:-.013em; }
.skunk-description strong { color:var(--ink); font-weight:600; }
.skunk-detail { width:100%; max-width:480px; justify-self:end; }
.skunk-system figcaption { color:var(--muted); font-size:.875rem; margin-bottom:20px; }
.system-flow { display:grid; grid-template-columns:.8fr 18px 1.4fr 18px .8fr; align-items:center; gap:5px; }
.system-end { display:flex; flex-direction:column; align-items:center; gap:7px; text-align:center; font-size:.75rem; line-height:1.3; }
.system-end strong { font-weight:500; }
.goal-symbol,.outcome-symbol { color:var(--accent); font-size:28px; line-height:1; font-weight:400; }
.system-link { color:var(--accent); text-align:center; font-size:19px; }
.system-operator { background:#edf3ef; border:1px solid #b6c9bf; border-radius:10px; padding:20px 8px; text-align:center; display:flex; flex-direction:column; gap:6px; }
.system-operator strong { color:var(--accent); font-size:1rem; font-weight:600; letter-spacing:-.025em; }
.system-operator span { font-size:.75rem; color:var(--muted); }
.system-return { display:flex; justify-content:space-between; align-items:center; margin:0 9%; padding:6px 0; border-bottom:1px solid #8ca898; border-radius:0 0 10px 10px; gap:8px; color:var(--accent); }
.system-return p { font-size:.6875rem; background:white; padding:0 10px; }
.system-return>span { font-size:16px; }
.system-capability { display:flex; flex-direction:column; align-items:center; padding-bottom:16px; }
.capability-connector { color:#8ca898; font-size:18px; height:24px; line-height:24px; }
.system-capability>.system-factory { display:flex; align-items:center; gap:12px; border:1px solid #d6ded8; border-radius:6px; padding:9px 13px; font-size:.75rem; }
.system-capability strong { font-weight:500; }
.system-capability>.system-factory>span { color:var(--muted); font-size:.6875rem; }
.system-foundation { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 10px; background:#f4f6f3; border-top:2px solid #93a99b; border-radius:0 0 6px 6px; padding:11px 12px; color:var(--muted); font-size:.6875rem; line-height:1.5; }
.system-foundation strong { color:var(--ink); font-size:.75rem; font-weight:600; }
.skunk-status { margin-top:22px; padding-left:13px; border-left:2px solid #bccbbc; }
.status-label { color:var(--ink); font-size:.8125rem; font-weight:600; line-height:1.5; }
.status-description { font-size:.8125rem; color:var(--muted); line-height:1.5; margin-top:5px!important; max-width:33em; }
.skunk-footer { border-top:1px solid #dce1de; padding-top:14px; font-size:1rem; line-height:1.5; }
.skunk-footer a { display:inline-flex; align-items:center; gap:20px; min-height:44px; color:var(--ink); text-decoration:none; }
.skunk-footer a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:5px; }
.skunk-footer a:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
.skunk-page ::selection { background:var(--accent); color:white; }
.skunk-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@media(max-width:800px) {
 .skunk-page { padding:18px 24px 12px; }
 .skunk-logo { width:180px; }
 .skunk-main { grid-template-columns:1fr; gap:22px; padding:22px 0; }
 .skunk-page h1 { font-size:clamp(2.1rem,7.5vw,3.5rem); }
 .desktop-break { display:none; }
 .skunk-description { margin-top:14px!important; font-size:1rem; max-width:34em; }
 .skunk-detail { justify-self:start; max-width:480px; }
 .skunk-system figcaption { margin-bottom:12px; font-size:.75rem; }
 .system-flow { grid-template-columns:.8fr 12px 1.4fr 12px .8fr; gap:3px; }
 .system-end { font-size:.6875rem; gap:5px; }
 .goal-symbol,.outcome-symbol { font-size:24px; }
 .system-operator { padding:13px 5px; border-radius:8px; gap:4px; }
 .system-operator strong { font-size:.8125rem; }
 .system-operator span { font-size:.6875rem; }
 .system-return { padding:3px 0; }
 .system-capability { padding-bottom:10px; }
 .capability-connector { height:18px; line-height:18px; font-size:15px; }
 .system-capability>.system-factory { padding:6px 10px; font-size:.6875rem; }
 .system-foundation { padding:8px 10px; font-size:.625rem; }
 .system-foundation strong { font-size:.6875rem; }
 .skunk-status { margin-top:15px; padding-left:10px; }
 .status-label,.status-description { font-size:.75rem; }
 .skunk-footer { padding-top:8px; font-size:.875rem; }
}
@media(min-width:801px) and (max-height:700px) {
 .skunk-page { padding-top:24px; }
 .skunk-logo { width:204px; }
 .skunk-main { padding:24px 0; }
}

.skunk-stage { color:var(--muted); font-size:.8125rem; line-height:1.5; margin-bottom:20px!important; }
@media(max-width:800px) { .skunk-stage { font-size:.75rem; margin-bottom:12px!important; } }

/* Two distinct inputs inform work; the outcome loop also renews research. */
.system-flow { grid-template-columns:1.35fr 16px 1.25fr 16px .8fr; }
.system-inputs { display:flex; flex-direction:column; gap:8px; min-width:0; }
.input-goals,.input-research { border:1px solid #d6ded8; border-radius:7px; padding:10px 7px; text-align:center; }
.input-goals strong,.input-research strong { font-size:.75rem; font-weight:500; line-height:1.35; display:block; }
.input-research { background:#f7f9f6; }
.input-research span { display:block; color:var(--muted); font-size:.625rem; line-height:1.5; margin-top:4px; }
.system-input-arrows { display:flex; flex-direction:column; justify-content:space-around; align-self:stretch; text-align:center; color:var(--accent); font-size:18px; }
.system-return { margin-left:13%; margin-right:9%; }
@media(max-width:800px) {
 .system-flow { grid-template-columns:1.35fr 10px 1.25fr 10px .8fr; gap:3px; }
 .system-inputs { gap:6px; }
 .input-goals,.input-research { padding:7px 4px; }
 .input-goals strong,.input-research strong { font-size:.6875rem; }
 .input-research span { font-size:.5625rem; }
 .system-input-arrows { font-size:15px; }
 .system-operator strong { font-size:.75rem; }
}

/* Owner-approved explanations use native HTML popovers; no JavaScript. */
.skunk-system figcaption { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:4px 12px; }
.diagram-hint { font-size:.6875rem; color:var(--muted); }
.system-node { -webkit-tap-highlight-color:transparent; }
.system-foundation { width:100%; }
.system-node:hover { outline:1px solid #8ca898; outline-offset:2px; }
.system-node:focus-visible,.popover-close:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.skunk-popover { position:fixed; inset:0; width:min(31rem,calc(100vw - 32px)); height:fit-content; max-height:calc(100dvh - 32px); margin:auto; padding:24px; overflow:auto; border:1px solid #b6c9bf; border-radius:12px; background:#fff; color:var(--ink); box-shadow:0 16px 64px rgb(23 26 24 / 18%); font-size:1rem; line-height:1.6; overflow-wrap:anywhere; }
.skunk-popover::backdrop { background:rgb(23 26 24 / 12%); }
.popover-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.popover-heading { min-width:0; }
.popover-eyebrow { color:var(--muted); font-size:.75rem; line-height:1.5; }
.popover-heading h2 { margin:5px 0 0; font-size:1.35rem; font-weight:600; letter-spacing:-.025em; line-height:1.2; }
.popover-close { appearance:none; display:flex; flex:none; align-items:center; justify-content:center; width:44px; height:44px; margin:0; padding:0; border:1px solid #d6ded8; border-radius:50%; background:#fff; color:var(--ink); font:inherit; font-size:1.5rem; line-height:1; cursor:pointer; }
.popover-close:hover { background:#edf3ef; }
.skunk-popover .popover-note { margin-top:20px; padding-top:14px; border-top:1px solid #dce1de; color:var(--muted); font-size:.8125rem; line-height:1.5; }
@media(max-width:800px) { .diagram-hint { font-size:.625rem; } .skunk-popover { padding:20px; } }
