#exploration-tools {
  --explore-line: #d7e2ed38;
  --explore-text: #dbe6f2;
  --explore-title: #fffdf4;
  --explore-accent: #e5cc91;
  --explore-surface: #0c2343;
  --explore-active: #e5cc91;
  --explore-active-text: #102440;
  display: block;
  min-width: 0;
  padding: 16px 0 22px;
}
:root[data-theme="light"] #exploration-tools {
  --explore-line: #11143938;
  --explore-text: #344463;
  --explore-title: #111439;
  --explore-accent: #72591d;
  --explore-surface: #f8f8f9;
  --explore-active: #111439;
  --explore-active-text: #fff;
}
.stage.ready { touch-action:pinch-zoom; }
.stage.ready #kitchen-canvas {
  cursor: grab;
  touch-action: pinch-zoom;
}
.stage.is-dragging #kitchen-canvas { cursor: grabbing; }
.stage:not(.ready) #kitchen-canvas { pointer-events:none; }
.stage-status:not([hidden]) {
  z-index:4;
  bottom:10%;
  display:flex;
  align-items:center;
  gap:.62rem;
  max-width:calc(100% - 2rem);
  padding:.6rem .95rem;
  border-radius:999px;
  font-size:.82rem;
  white-space:normal;
  text-align:center;
}
.stage-status.is-loading::before {
  content:"";
  flex:none;
  width:.9rem;
  height:.9rem;
  border:2px solid currentColor;
  border-inline-end-color:transparent;
  border-radius:50%;
  animation:kitchen-loading .9s linear infinite;
}
@keyframes kitchen-loading { to { transform:rotate(1turn); } }
.stage:focus-visible { outline:2px solid var(--accent-ink); outline-offset:3px; }
.stage.is-pointer-focused:focus { outline:none; }
@media (prefers-reduced-motion:reduce) {
  .stage-status.is-loading::before { animation:none; }
  .stage :is(.hero-poster,#kitchen-canvas) { transition:none; }
}
#marker-connectors, #markers { position: absolute; inset: 0; pointer-events: none; }
#marker-connectors { width: 100%; height: 100%; }
#exploration-tools [hidden], #markers[hidden], #marker-connectors[hidden], .exploration-marker[hidden] { display: none; }

.exploration-connector {
  stroke: #f7e4b6;
  stroke-width: 1;
  stroke-opacity: .5;
  stroke-linecap: round;
}
.exploration-connector.is-highlighted { stroke-opacity: .95; }
.exploration-marker {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fae2a6;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
}
.exploration-marker::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #112745;
  box-shadow: 0 0 0 2px #12244366;
  transition: opacity .18s, background .18s, box-shadow .18s;
}
.exploration-marker::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transition: opacity .18s;
}
.exploration-marker:is(.is-obscured, .is-deemphasized):not(.is-highlighted)::before,
.exploration-marker:is(.is-obscured, .is-deemphasized):not(.is-highlighted)::after { opacity: .57; }
.exploration-marker.is-highlighted::before {
  box-shadow: 0 0 0 3px #f6d78a63, 0 0 12px #e5af6390;
  animation: exploration-marker-pulse 2.5s ease-in-out infinite;
}
@keyframes exploration-marker-pulse {
  50% { box-shadow: 0 0 0 5px #f6d78a38, 0 0 16px #e5af638c; }
}
.exploration-marker:is(:hover, :focus-visible) { z-index: 2; }
.exploration-tooltip {
  display: none;
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: calc(100% + 3px);
  translate: -50% 0;
  width: max-content;
  max-width: min(200px, 64vw);
  padding: 5px 9px;
  border: 1px solid #e5cc9180;
  border-radius: 6px;
  background: #102440;
  color: #fffdf4;
  font-size: .75rem;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 6px 18px #07142544;
  pointer-events: none;
}
.exploration-marker:is(:hover, :focus-visible) .exploration-tooltip { display: block; }
.exploration-marker.tooltip-left .exploration-tooltip { left: auto; right: 0; translate: 0; }
.exploration-marker.tooltip-right .exploration-tooltip { left: 0; translate: 0; }
.exploration-marker.tooltip-below .exploration-tooltip { bottom: auto; top: calc(100% + 3px); }

.exploration-toolbar, .exploration-navigation, .exploration-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.exploration-toolbar {
  justify-content: space-between;
  gap: 10px 24px;
}
.exploration-toolbar button, #inspection-close, #component-groups button {
  border: 1px solid var(--explore-line);
  color: var(--explore-text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .8rem;
  transition: background .18s, color .18s, border-color .18s;
}
.exploration-toolbar button, #inspection-close {
  min-height: 38px;
  border-radius: 99px;
  padding: 6px 12px;
}
.exploration-toolbar button:disabled { opacity: .6; cursor: default; }
.exploration-toolbar button[aria-pressed="true"] {
  color: var(--explore-active-text);
  background: var(--explore-active);
  border-color: var(--explore-active);
  font-weight: 650;
}
.exploration-toolbar button:not(:disabled):hover, #inspection-close:hover, #component-groups button:hover {
  border-color: var(--explore-accent);
}
#exploration-tools .stage-instruction {
  margin: 12px 0;
  color: var(--explore-text);
  font-size: .79rem;
  text-align: left;
}
.exploration-details {
  display: grid;
  gap: 10px;
}
.exploration-inspection, .exploration-index {
  border: 1px solid var(--explore-line);
  border-radius: 12px;
  background: var(--explore-surface);
  color: var(--explore-text);
}
.exploration-inspection {
  padding: clamp(14px, 2.5vw, 23px);
  scroll-margin-block: 88px 16px;
}
.exploration-inspection-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 8px;
}
#inspection-category {
  color: var(--explore-accent);
  font-size: .75rem;
  font-weight: 650;
}
#inspection-name, .exploration-index summary {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--explore-title);
  font-weight: 600;
  letter-spacing: 0;
}
#inspection-name { font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.15; margin: 3px 0 0; }
#inspection-type { margin-bottom: 5px; font-size: .8rem; font-weight: 650; }
#inspection-copy { max-width: 74ch; font-size: .92rem; line-height: 1.55; }
.exploration-index {
  --index-space:clamp(.85rem,2.25vw,1.4rem);
  border-radius:24px;
}
.exploration-index summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:52px;
  padding:.7rem var(--index-space);
  border-radius:24px;
  font-size:1.12rem;
  line-height:1.3;
  list-style:none;
  cursor:pointer;
}
.exploration-index summary::-webkit-details-marker { display:none; }
.exploration-index summary::after {
  content:"";
  flex:none;
  width:.48rem;
  height:.48rem;
  border:solid var(--explore-accent);
  border-width:0 1.5px 1.5px 0;
  transform:translateY(-2px) rotate(45deg);
}
.exploration-index[open] summary::after { transform:translateY(2px) rotate(225deg); }
.exploration-index summary:hover { background:var(--hover); }
.exploration-index summary:focus-visible { outline-offset:-3px; }
.exploration-index-content {
  display:grid;
  justify-items:start;
  gap:.95rem;
  padding:0 var(--index-space) var(--index-space);
}
#component-groups { width:100%; }
#component-groups ul {
  list-style:none;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));
  gap:.55rem;
  margin:0;
  padding:0;
}
#component-groups button {
  width:100%;
  height:100%;
  min-height:44px;
  padding:.6rem .8rem;
  border-radius:12px;
  background:var(--paper);
  text-align:start;
}
#component-groups button:hover { background:var(--hover); }
#component-groups button[aria-expanded="true"] {
  border-color:var(--explore-accent);
  color:var(--explore-title);
}
@media (max-width: 480px) {
  .exploration-marker { width: 22px; height: 22px; }
  .exploration-toolbar button { min-height: 42px; padding-inline: 10px; }
  #exploration-tools { padding-top: 12px; }
}
@media (min-width: 731px) {
  .hero .stage {
    margin-inline-start: -7%;
    margin-inline-end: -5%;
  }
}
@media (min-width: 1080px) {
  .hero .stage { min-block-size: clamp(600px, 88svh, 840px); }
}
@media (max-width: 730px) {
  .hero .stage {
    --stage-bleed: calc(var(--edge) - 4px);
    width: calc(100% + 2 * var(--stage-bleed));
    min-block-size: min(100vw, 450px);
    margin-inline: calc(-1 * var(--stage-bleed));
  }
}
@media (prefers-reduced-motion: reduce) {
  .exploration-marker.is-highlighted::before { animation: none; }
}
