*,*::before,*::after {
  box-sizing:border-box
}

html,body {
  margin:0
}

body {
  background:#fff9f2;
  color:#342519;
  font-family:'Geist','Noto Sans Thai',system-ui,sans-serif
}

.frame {
  width:100%;
  min-width:0;
  max-width:760px;
  margin:0 auto;
  padding:24px 20px 8px
}

.eyebrow {
  margin:0 0 4px;
  color:#a94c16;
  font:500 11px 'Geist Mono','Noto Sans Thai',monospace;
  letter-spacing:.1em
}

h1 {
  margin:0 0 12px;
  color:#342519;
  font:400 28px 'Instrument Serif','Noto Sans Thai',serif;
  line-height:1.25
}

.diagram-container {
  width:100%;
  max-width:680px;
  margin:0 auto;
  overflow:hidden;
  border:1px solid #e9d3bd;
  border-radius:8px;
  background:#fffaf4
}

svg {
  display:block;
  width:100%;
  height:auto
}

.route {
  fill:none;
  stroke:#8a6b55;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round
}

.accent-route {
  stroke:#bc4b09;
  stroke-width:2
}

.return-route {
  stroke-dasharray:5 5
}

.node rect,.node polygon {
  fill:#fffdf9;
  stroke:#80614a;
  stroke-width:1.2
}

.node.start rect {
  fill:#b94d0d;
  stroke:#b94d0d
}

.node.start .name,.node.start .note {
  fill:#fff
}

.node.step rect {
  fill:#fff4e9;
  stroke:#caa688
}

.node.decision polygon {
  fill:#fff1df;
  stroke:#c9813b
}

.node.side rect {
  fill:#fcebea;
  stroke:#c88e82
}

.node.focal rect,.node.finish rect {
  fill:#fce5ce;
  stroke:#bc4b09;
  stroke-width:1.7
}

.name {
  font:600 12px 'Geist','Noto Sans Thai',sans-serif;
  fill:#342519
}

.note {
  font:400 9px 'Geist Mono','Noto Sans Thai',sans-serif;
  fill:#705744
}

.edge {
  font:500 8px 'Geist Mono','Noto Sans Thai',sans-serif;
  fill:#705744
}

.accent-text {
  fill:#a03f08
}

.branch-label rect {
  fill:#fffaf4
}

body:has(#embed-light:target),body:has(#embed-dark:target) {
  background:transparent
}

body:has(#embed-light:target) .frame,body:has(#embed-dark:target) .frame {
  padding:0;
  max-width:none
}

body:has(#embed-light:target) .eyebrow,body:has(#embed-light:target) h1,
body:has(#embed-dark:target) .eyebrow,body:has(#embed-dark:target) h1 {
  display:none
}

body:has(#embed-light:target) .diagram-container,body:has(#embed-dark:target) .diagram-container {
  border:0;
  border-radius:0
}

body:has(#embed-light:target) .name,body:has(#embed-dark:target) .name {
  font-size:14px
}

body:has(#embed-light:target) .note,body:has(#embed-dark:target) .note {
  font-size:11px
}

body:has(#embed-light:target) .edge,body:has(#embed-dark:target) .edge {
  font-size:10px
}

body:has(#embed-light:target) .canvas {
  fill:#fff
}

body:has(#embed-light:target) .node.step rect {
  fill:#fff4e9
}

body:has(#embed-light:target) .node.start rect {
  fill:#b94d0d;
  stroke:#b94d0d
}

body:has(#embed-light:target) .node.start .name,body:has(#embed-light:target) .node.start .note {
  fill:#fff
}

body:has(#embed-dark:target) .canvas {
  fill:#141413
}

body:has(#embed-dark:target) .dots {
  opacity:.14
}

body:has(#embed-dark:target) .node.step rect {
  fill:#f2ede8;
  stroke:#a88e76
}

body:has(#embed-dark:target) .node.start rect {
  fill:#b94d0d;
  stroke:#b94d0d
}

body:has(#embed-dark:target) .node.start .name,body:has(#embed-dark:target) .node.start .note {
  fill:#fff
}

body:has(#embed-dark:target) .node.decision polygon {
  fill:#fff1df;
  stroke:#c9813b
}

body:has(#embed-dark:target) .node.side rect {
  fill:#fcebea;
  stroke:#c88e82
}

body:has(#embed-dark:target) .node.focal rect,body:has(#embed-dark:target) .node.finish rect {
  fill:#f9dfc1;
  stroke:#b94d0d
}

body:has(#embed-dark:target) .route {
  stroke:#b6a89b
}

body:has(#embed-dark:target) .accent-route {
  stroke:#e87924
}

body:has(#embed-dark:target) .edge {
  fill:#d5c4b4
}

body:has(#embed-dark:target) .accent-text {
  fill:#f9a55b
}

body:has(#embed-dark:target) .branch-label rect {
  fill:#141413
}

@media print {
  .diagram-container {
    overflow:visible
  }

}
