:root {
    --detector-ink: #0b1326;
    --detector-muted: #5f6c82;
    --detector-line: #ccd6e6;
    --detector-blue: #406dff;
    --detector-cyan: #58d8ef;
    --detector-violet: #8d72ff;
    --detector-amber: #ffb25f;
}

body.detector-guide-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(72, 114, 255, 0.1), transparent 28rem),
        linear-gradient(180deg, #eef3f9 0%, #f8fafc 56%, #edf2f8 100%);
    color: var(--detector-ink);
    font-family: "Figtree", "Noto Sans JP", sans-serif;
}

.detector-guide-skip {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 200;
    padding: 0.7rem 1rem;
    transform: translateY(-180%);
    border: 2px solid #ffffff;
    border-radius: 0.55rem;
    background: #0b1326;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.detector-guide-skip:focus {
    transform: translateY(0);
}

body.detector-guide-page .nav {
    background: rgba(244, 247, 251, 0.9);
    box-shadow: 0 1px 0 rgba(102, 120, 148, 0.18);
    backdrop-filter: blur(18px);
}

body.detector-guide-page .nav-links .is-current {
    color: var(--detector-blue);
}

.detector-guide-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(1.4rem, 3vw, 3.2rem) 0 clamp(4rem, 8vw, 7rem);
}

.detector-guide-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: clamp(1.5rem, 3.5vw, 3.25rem);
    padding: clamp(1.35rem, 3vw, 3rem);
    overflow: hidden;
    border: 1px solid rgba(133, 164, 229, 0.24);
    border-radius: clamp(1.25rem, 3vw, 2.25rem);
    background:
        radial-gradient(ellipse at 82% 12%, rgba(98, 123, 255, 0.28), transparent 34%),
        radial-gradient(ellipse at 22% 88%, rgba(54, 211, 238, 0.13), transparent 36%),
        linear-gradient(145deg, #0a1731 0%, #030712 56%, #071027 100%);
    box-shadow: 0 34px 85px rgba(21, 39, 77, 0.25);
    color: #f7f9ff;
    grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
    align-items: center;
}

.detector-guide-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.28), transparent 42%, rgba(3, 7, 18, 0.12));
}

.detector-guide-copy {
    display: grid;
    gap: 1rem;
    align-content: center;
}

.detector-guide-back {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    gap: 0.55rem;
    color: #cbd8f8;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.detector-guide-back:hover {
    color: #ffffff;
}

body.detector-guide-page .detector-guide-kicker,
.detector-section-heading > .mono,
.detector-guide-return .mono {
    margin: 0;
    color: var(--detector-cyan);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

body.detector-guide-page .detector-guide-copy h1 {
    max-width: none;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.3rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.055em;
}

body.detector-guide-page .detector-guide-lede,
body.detector-guide-page .detector-guide-prompt {
    max-width: 37rem;
    margin: 0;
    color: rgba(226, 234, 255, 0.78);
    line-height: 1.8;
}

body.detector-guide-page .detector-guide-lede {
    font-size: clamp(0.98rem, 1.35vw, 1.12rem);
}

body.detector-guide-page .detector-guide-prompt {
    padding: 0.72rem 0.9rem;
    border-left: 3px solid var(--detector-cyan);
    background: rgba(90, 216, 239, 0.08);
    color: #eaf8ff;
    font-size: 0.86rem;
}

.detector-map {
    min-width: 0;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    border: 1px solid rgba(152, 183, 255, 0.2);
    border-radius: 1.25rem;
    background: rgba(2, 7, 18, 0.72);
    box-shadow: inset 0 0 70px rgba(56, 100, 226, 0.09);
}

.detector-event-map {
    display: grid;
    gap: 0.8rem;
}

.detector-event-context {
    display: flex;
    min-width: 0;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.detector-event-context > div {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.detector-event-context p,
.detector-event-context strong,
.detector-event-context small {
    margin: 0;
}

.detector-event-context p {
    color: #72e6f3;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.detector-event-context strong {
    overflow: hidden;
    color: #ffffff;
    font-size: clamp(0.84rem, 1.25vw, 1rem);
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detector-event-context small {
    color: rgba(206, 220, 249, 0.64);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
}

.detector-layer-reset {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(153, 182, 239, 0.28);
    border-radius: 999px;
    background: rgba(13, 25, 50, 0.78);
    color: rgba(221, 232, 255, 0.76);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
}

.detector-layer-reset:hover,
.detector-layer-reset.is-active {
    border-color: rgba(105, 226, 242, 0.78);
    background: rgba(33, 89, 113, 0.72);
    color: #ffffff;
}

.detector-region-instruction {
    margin: 0;
    padding: 0.58rem 0.7rem;
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 0.68rem;
    background: rgba(50, 111, 138, 0.12);
    color: rgba(220, 240, 255, 0.78);
    font-size: 0.72rem;
    line-height: 1.55;
}

.detector-event-stage {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(138, 169, 229, 0.2);
    border-radius: 0.9rem;
    aspect-ratio: 760 / 620;
    background: #02050a;
    box-shadow: inset 0 0 56px rgba(53, 105, 219, 0.1);
    touch-action: manipulation;
}

.detector-event-canvas,
.detector-guide-event-svg,
.guide-event-track-labels {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detector-guide-event-svg {
    display: block;
}

.guide-event-axis {
    stroke: rgba(146, 169, 208, 0.1);
    stroke-width: 1;
    stroke-dasharray: 4 9;
}

.guide-event-layer,
.guide-event-response,
.guide-event-muon-hit,
.guide-event-layer-name {
    transition: opacity 160ms ease, filter 160ms ease;
}

.guide-event-layer-band {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.guide-event-layer-tracker .guide-event-layer-band {
    stroke: rgba(73, 224, 240, 0.09);
    stroke-width: 70;
}

.guide-event-tracker-rings circle,
.guide-event-tracker-spokes line {
    fill: none;
    stroke: rgba(94, 225, 242, 0.22);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.guide-event-tracker-spokes line:nth-child(6n + 1) {
    stroke: rgba(94, 225, 242, 0.42);
}

.guide-event-layer-calorimeter .guide-event-layer-band {
    stroke: rgba(255, 178, 95, 0.1);
    stroke-width: 68;
}

.guide-event-calorimeter-modules path {
    fill: rgba(255, 178, 95, 0.055);
    stroke: rgba(255, 187, 112, 0.28);
    stroke-width: 0.9;
    vector-effect: non-scaling-stroke;
}

.guide-event-layer-muon .guide-event-layer-band {
    stroke: rgba(152, 125, 255, 0.065);
    stroke-width: 46;
}

.guide-event-region-control {
    fill: none;
    stroke: rgba(255, 255, 255, 0.001);
    cursor: pointer;
    outline: none;
    pointer-events: stroke;
    transition: stroke 150ms ease, filter 150ms ease;
    vector-effect: non-scaling-stroke;
}

.guide-event-region-control-tracker {
    stroke-width: 116;
}

.guide-event-region-control-calorimeter {
    stroke-width: 76;
}

.guide-event-region-control-muon {
    stroke-width: 48;
}

.guide-event-region-control:focus-visible {
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.78));
}

.detector-event-map[data-active-layer="tracker"] .guide-event-region-control-tracker {
    stroke: rgba(94, 225, 242, 0.14);
}

.detector-event-map[data-active-layer="calorimeter"] .guide-event-region-control-calorimeter {
    stroke: rgba(255, 178, 95, 0.14);
}

.detector-event-map[data-active-layer="muon"] .guide-event-region-control-muon {
    stroke: rgba(181, 161, 255, 0.14);
}

.guide-event-muon-modules path {
    fill: rgba(152, 125, 255, 0.035);
    stroke: rgba(181, 161, 255, 0.28);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.detector-event-map[data-active-layer="tracker"] :is(.guide-event-layer-calorimeter, .guide-event-layer-muon, .guide-event-response, .guide-event-muon-hit),
.detector-event-map[data-active-layer="calorimeter"] :is(.guide-event-layer-tracker, .guide-event-layer-muon, .guide-event-muon-hit),
.detector-event-map[data-active-layer="muon"] :is(.guide-event-layer-tracker, .guide-event-layer-calorimeter, .guide-event-response) {
    opacity: 0.13;
}

.detector-event-map[data-active-layer="tracker"] .guide-event-layer-tracker,
.detector-event-map[data-active-layer="calorimeter"] :is(.guide-event-layer-calorimeter, .guide-event-response),
.detector-event-map[data-active-layer="muon"] :is(.guide-event-layer-muon, .guide-event-muon-hit) {
    filter: brightness(1.65) saturate(1.25);
}

.guide-event-track {
    color: var(--guide-track-color);
}

.guide-event-track-path,
.guide-event-track-glow,
.guide-event-track-touch,
.guide-event-jet-cone {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.guide-event-track-glow {
    stroke: var(--guide-track-color);
    stroke-width: 8;
    opacity: 0.13;
}

.guide-event-track-glow.is-selected {
    stroke-width: 15;
    opacity: 0.34;
}

.guide-event-track-path {
    stroke: var(--guide-track-color);
    stroke-width: 2.8;
}

.guide-event-track-path-photon {
    stroke-dasharray: 7 8;
}

.guide-event-track-path.is-selected {
    stroke-width: 5;
}

.guide-event-jet-cone {
    fill: color-mix(in srgb, var(--guide-track-color) 13%, transparent);
    stroke: var(--guide-track-color);
    stroke-width: 2.5;
}

.guide-event-jet-cone.is-selected {
    fill: color-mix(in srgb, var(--guide-track-color) 24%, transparent);
    stroke-width: 4;
}

.guide-event-track-hit {
    fill: #f8fdff;
    stroke: var(--guide-track-color);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.guide-event-end-mark,
.guide-event-muon-hit {
    fill: var(--guide-track-color);
    stroke: #ffffff;
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.guide-event-response-base,
.guide-event-response-jet {
    fill: color-mix(in srgb, var(--guide-track-color) 20%, transparent);
    stroke: var(--guide-track-color);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.guide-event-response-cells path {
    fill: color-mix(in srgb, var(--guide-track-color) 38%, #fff1a8 18%);
    stroke: rgba(255, 255, 255, 0.65);
    stroke-width: 0.75;
    vector-effect: non-scaling-stroke;
}

.guide-event-response.is-selected .guide-event-response-cells path,
.guide-event-response-jet.is-selected {
    filter: brightness(1.55);
}

.guide-event-track-touch {
    stroke: transparent;
    stroke-width: 30;
    pointer-events: stroke;
    cursor: pointer;
}

.guide-event-origin circle:first-child {
    fill: rgba(103, 232, 249, 0.12);
    stroke: rgba(103, 232, 249, 0.3);
}

.guide-event-origin circle:last-child {
    fill: #ffffff;
    filter: drop-shadow(0 0 5px #67e8f9);
}

.guide-event-layer-name {
    fill: rgba(224, 234, 255, 0.68);
    stroke: #02050a;
    stroke-width: 5px;
    paint-order: stroke fill;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
}

.guide-event-track-labels {
    pointer-events: none;
}

.guide-event-track-label {
    position: absolute;
    left: var(--guide-label-left);
    top: var(--guide-label-top);
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 1px solid color-mix(in srgb, var(--guide-track-color) 74%, white);
    border-radius: 50%;
    background: rgba(3, 8, 18, 0.84);
    box-shadow: 0 0 0 2px rgba(2, 6, 13, 0.6);
    color: #ffffff;
    font: inherit;
    cursor: pointer;
    pointer-events: auto;
    place-items: center;
}

.guide-event-track-label:hover,
.guide-event-track-label:focus-visible,
.guide-event-track-label.is-hovered,
.guide-event-track-label.is-selected {
    background: color-mix(in srgb, var(--guide-track-color) 24%, #06101e);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--guide-track-color) 38%, transparent), 0 0 22px color-mix(in srgb, var(--guide-track-color) 45%, transparent);
}

.guide-event-track-symbol {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1;
}

.guide-event-track-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.55rem);
    z-index: 5;
    width: max-content;
    max-width: min(16rem, 60vw);
    padding: 0.38rem 0.55rem;
    transform: translate(-50%, 4px);
    border: 1px solid color-mix(in srgb, var(--guide-track-color) 55%, white);
    border-radius: 0.45rem;
    background: rgba(2, 7, 16, 0.96);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease;
}

.guide-event-track-label.is-left .guide-event-track-tooltip {
    left: -0.1rem;
    transform: translate(0, 4px);
}

.guide-event-track-label.is-right .guide-event-track-tooltip {
    right: -0.1rem;
    left: auto;
    transform: translate(0, 4px);
}

.guide-event-track-label.is-below .guide-event-track-tooltip {
    top: calc(100% + 0.55rem);
    bottom: auto;
}

.guide-event-track-label:hover .guide-event-track-tooltip,
.guide-event-track-label:focus-visible .guide-event-track-tooltip,
.guide-event-track-label.is-hovered .guide-event-track-tooltip {
    transform: translate(-50%, 0);
    opacity: 1;
}

.guide-event-track-label.is-left:hover .guide-event-track-tooltip,
.guide-event-track-label.is-left:focus-visible .guide-event-track-tooltip,
.guide-event-track-label.is-left.is-hovered .guide-event-track-tooltip,
.guide-event-track-label.is-right:hover .guide-event-track-tooltip,
.guide-event-track-label.is-right:focus-visible .guide-event-track-tooltip,
.guide-event-track-label.is-right.is-hovered .guide-event-track-tooltip {
    transform: translate(0, 0);
}

.detector-region-explanation {
    --detector-region-color: #67e8f9;
    display: grid;
    min-width: 0;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid color-mix(in srgb, var(--detector-region-color) 32%, transparent);
    border-radius: 0.82rem;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--detector-region-color) 10%, transparent), transparent 45%),
        rgba(8, 18, 38, 0.94);
    grid-template-columns: 0.35rem minmax(0, 1fr);
}

.detector-region-explanation[data-detector-region="calorimeter"] {
    --detector-region-color: #ffb25f;
}

.detector-region-explanation[data-detector-region="muon"] {
    --detector-region-color: #a991ff;
}

.detector-region-accent {
    width: 0.35rem;
    min-height: 100%;
    border-radius: 999px;
    background: var(--detector-region-color);
    box-shadow: 0 0 18px color-mix(in srgb, var(--detector-region-color) 62%, transparent);
}

.detector-region-explanation-body {
    display: grid;
    min-width: 0;
    gap: 0.42rem;
}

.detector-region-explanation :is(.mono, h2, p, strong) {
    margin: 0;
}

.detector-region-explanation .mono {
    color: var(--detector-region-color);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.detector-region-explanation h2 {
    color: #ffffff;
    font-size: clamp(0.94rem, 1.45vw, 1.08rem);
    line-height: 1.4;
}

.detector-region-explanation-copy {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detector-region-explanation-copy > div {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 0.24rem;
    padding-top: 0.48rem;
    border-top: 1px solid rgba(170, 197, 241, 0.14);
}

.detector-region-explanation-copy strong {
    color: color-mix(in srgb, var(--detector-region-color) 74%, white);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.55rem;
    letter-spacing: 0.05em;
}

.detector-region-explanation-copy p {
    color: rgba(220, 231, 251, 0.78);
    font-size: clamp(0.72rem, 1.2vw, 0.78rem);
    line-height: 1.65;
}

.detector-selected-track {
    display: grid;
    min-width: 0;
    gap: 0.75rem;
    padding: 0.78rem 0.85rem;
    border: 1px solid rgba(153, 182, 239, 0.18);
    border-radius: 0.8rem;
    background: rgba(13, 25, 50, 0.78);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

.detector-selected-track-mark {
    width: 0.45rem;
    min-height: 3.6rem;
    border-radius: 999px;
    background: var(--guide-track-color);
    box-shadow: 0 0 15px color-mix(in srgb, var(--guide-track-color) 55%, transparent);
}

.detector-selected-track > div {
    display: grid;
    min-width: 0;
    gap: 0.3rem;
}

.detector-selected-track small,
.detector-selected-track strong,
.detector-selected-track p {
    margin: 0;
}

.detector-selected-track small {
    color: rgba(194, 213, 249, 0.58);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.detector-selected-track strong {
    color: #ffffff;
    font-size: 0.84rem;
    line-height: 1.45;
}

.detector-selected-track strong span {
    margin-left: 0.35rem;
    color: rgba(218, 231, 255, 0.68);
    font-size: 0.7rem;
    font-weight: 600;
}

.detector-selected-track p {
    color: #d7e4ff;
    font-size: 0.7rem;
    line-height: 1.5;
}

.detector-selected-track .detector-selected-track-clue {
    color: rgba(204, 218, 244, 0.67);
}

.detector-event-learning-note {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-left: 2px solid rgba(255, 178, 95, 0.72);
    background: rgba(255, 178, 95, 0.075);
    color: rgba(220, 230, 249, 0.66);
    font-size: 0.64rem;
    line-height: 1.55;
}

.detector-event-empty {
    position: absolute;
    inset: 0;
    display: grid;
    margin: 0;
    padding: 2rem;
    color: rgba(230, 238, 255, 0.74);
    font-size: 0.85rem;
    text-align: center;
    place-items: center;
}

.detector-map-svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
}

.detector-map-grid line {
    stroke: rgba(143, 169, 220, 0.13);
    stroke-width: 1;
    stroke-dasharray: 4 8;
}

.detector-ring {
    fill: none;
}

.detector-ring-tracker {
    stroke: #5ee1f2;
    stroke-width: 20;
    stroke-opacity: 0.58;
}

.detector-ring-calo {
    stroke: #ffb25f;
    stroke-width: 48;
    stroke-opacity: 0.38;
}

.detector-ring-muon {
    stroke: #987dff;
    stroke-width: 18;
    stroke-opacity: 0.48;
}

.detector-core {
    fill: #ffffff;
    filter: url(#detectorSoftGlow);
}

.detector-response path {
    fill: none;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.detector-response text {
    fill: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 22px;
    font-weight: 700;
}

.detector-response-electron path {
    stroke: #72e6f3;
    stroke-width: 4;
}

.detector-response-electron circle,
.detector-response-photon circle {
    fill: #ffb25f;
    filter: url(#detectorSoftGlow);
}

.detector-response-photon path {
    stroke: #ffe08d;
    stroke-width: 3;
    stroke-dasharray: 8 10;
}

.detector-response-muon path {
    stroke: #b6a6ff;
    stroke-width: 4;
}

.detector-response-muon circle {
    fill: #b6a6ff;
    filter: url(#detectorSoftGlow);
}

.detector-map-number circle {
    fill: #071127;
    stroke: rgba(255, 255, 255, 0.86);
    stroke-width: 2;
}

.detector-map-number text {
    fill: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 20px;
    font-weight: 700;
    text-anchor: middle;
}

.detector-layer-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detector-layer-list li {
    min-width: 0;
}

.detector-layer-list button {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.72rem;
    border: 1px solid rgba(154, 184, 239, 0.16);
    border-radius: 0.8rem;
    background: rgba(13, 25, 50, 0.78);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.detector-layer-list button:hover,
.detector-layer-list button.is-active,
.detector-layer-list button.is-previewed {
    border-color: rgba(103, 232, 249, 0.65);
    background: rgba(25, 51, 91, 0.92);
}

.detector-layer-list button > span:first-child {
    display: grid;
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: #4c71ff;
    color: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    place-items: center;
}

.detector-layer-list button > span:last-child {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.detector-layer-list strong {
    color: #ffffff;
    font-size: 0.76rem;
    line-height: 1.4;
}

.detector-layer-list small {
    color: rgba(202, 216, 246, 0.58);
    font-size: 0.65rem;
    line-height: 1.35;
}

.detector-layer-explanations,
.detector-signatures {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0 0;
}

.detector-section-heading {
    display: grid;
    max-width: 48rem;
    gap: 0.75rem;
    margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.detector-section-heading > .mono,
.detector-guide-return .mono {
    color: var(--detector-blue);
}

.detector-section-heading h2,
.detector-guide-return h2 {
    margin: 0;
    color: var(--detector-ink);
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.detector-section-heading > p:last-child {
    margin: 0;
    color: var(--detector-muted);
    line-height: 1.75;
}

.detector-layer-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detector-layer-cards article,
.detector-signature {
    position: relative;
    min-width: 0;
    padding: clamp(1.25rem, 2.5vw, 1.8rem);
    border: 1px solid var(--detector-line);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 40px rgba(41, 60, 93, 0.08);
}

.detector-layer-index {
    display: block;
    margin-bottom: 1.1rem;
    color: var(--detector-blue);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.detector-layer-cards h3,
.detector-signature h3,
.detector-met-note h3 {
    margin: 0 0 0.75rem;
    color: var(--detector-ink);
    font-size: 1.04rem;
    line-height: 1.45;
}

.detector-layer-cards p,
.detector-signature p,
.detector-met-note p {
    margin: 0;
    color: var(--detector-muted);
    font-size: 0.9rem;
    line-height: 1.78;
}

.detector-layer-deep-link {
    display: inline-flex;
    min-height: 44px;
    margin-top: 1rem;
    align-items: center;
    gap: 0.5rem;
    color: #355bd2;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.detector-layer-deep-link:hover {
    color: #163aaf;
}

.tracker-zoom-section {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0 0;
    scroll-margin-top: 5.5rem;
}

.tracker-zoom-heading {
    margin-bottom: 1.2rem;
}

.tracker-zoom-boundary {
    display: grid;
    gap: 0.65rem 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(82, 112, 189, 0.28);
    border-radius: 0.9rem;
    background: rgba(234, 240, 255, 0.78);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

.tracker-zoom-boundary-label {
    display: inline-flex;
    width: fit-content;
    min-height: 1.75rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #355bd2;
    color: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    align-items: center;
    justify-self: start;
    white-space: nowrap;
}

.tracker-zoom-boundary p,
.tracker-zoom-context {
    margin: 0;
    color: #4f5e76;
    font-size: 0.82rem;
    line-height: 1.7;
}

.tracker-zoom-context {
    max-width: 58rem;
    margin-top: 0.8rem;
    padding-left: 0.1rem;
}

.tracker-pattern-picker {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.tracker-pattern-picker > p {
    margin: 0;
    color: #374762;
    font-size: 0.82rem;
    font-weight: 800;
}

.tracker-pattern-buttons {
    display: grid;
    width: min(100%, 54rem);
    gap: 0.55rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tracker-pattern-button {
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    border: 1px solid #bdc9dd;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.86);
    color: #40506a;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
    cursor: pointer;
}

.tracker-pattern-button:hover {
    border-color: #7891d9;
    color: #183eae;
}

.tracker-pattern-button.is-active,
.tracker-pattern-button[aria-pressed="true"] {
    border-color: #355bd2;
    background: #153578;
    box-shadow: 0 8px 18px rgba(32, 72, 172, 0.18);
    color: #ffffff;
}

.tracker-zoom-workspace {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    grid-template-columns: minmax(0, 1.45fr) minmax(17rem, 0.75fr);
    align-items: stretch;
}

.tracker-zoom-figure,
.tracker-pattern-notes {
    min-width: 0;
    border: 1px solid var(--detector-line);
    border-radius: 1.1rem;
    box-shadow: 0 18px 40px rgba(41, 60, 93, 0.08);
}

.tracker-zoom-figure {
    padding: clamp(0.65rem, 1.7vw, 1rem);
    background: #071127;
}

.tracker-zoom-viewport {
    --tracker-scale: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(135, 166, 232, 0.26);
    border-radius: 0.8rem;
    aspect-ratio: 800 / 420;
    background:
        radial-gradient(circle at 10% 88%, rgba(76, 191, 235, 0.18), transparent 32%),
        linear-gradient(145deg, #050a17, #0b1731);
    touch-action: pan-y pinch-zoom;
}

.tracker-pattern-svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: scale(var(--tracker-scale));
    transform-origin: 48.5% 54%;
    transition: transform 180ms ease;
}

.tracker-pattern-grid path {
    fill: none;
    stroke: rgba(116, 160, 221, 0.2);
    stroke-width: 14;
    vector-effect: non-scaling-stroke;
}

.tracker-pattern-grid path:nth-child(even) {
    stroke: rgba(76, 218, 239, 0.14);
}

.tracker-origin {
    fill: #ffffff;
    filter: url(#trackerPointGlow);
}

.tracker-pattern-scene {
    display: none;
}

.tracker-pattern-scene.is-active {
    display: block;
}

.tracker-pattern-track,
.tracker-pattern-neutral,
.tracker-pattern-photon,
.tracker-pattern-callout {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.tracker-pattern-track {
    stroke: #6de2f0;
    stroke-width: 4;
}

.tracker-pattern-track-parent {
    stroke: #6de2f0;
}

.tracker-pattern-track-daughter {
    stroke: #ffbd6d;
}

.tracker-pattern-track-positive {
    stroke: #ffbd6d;
}

.tracker-pattern-track-negative {
    stroke: #a895ff;
}

.tracker-pattern-neutral,
.tracker-pattern-photon {
    stroke: rgba(236, 240, 255, 0.58);
    stroke-width: 3;
    stroke-dasharray: 7 10;
}

.tracker-pattern-neutral {
    stroke-opacity: 0.58;
}

.tracker-hit-points circle {
    fill: #f8fdff;
    stroke: #22c9e6;
    stroke-width: 3;
    filter: url(#trackerPointGlow);
    vector-effect: non-scaling-stroke;
}

.tracker-hit-points-positive circle {
    stroke: #ffb65e;
}

.tracker-hit-points-negative circle {
    stroke: #a895ff;
}

.tracker-pattern-focus {
    fill: #071127;
    stroke: #fff39c;
    stroke-width: 4;
    filter: url(#trackerPointGlow);
    vector-effect: non-scaling-stroke;
}

.tracker-pattern-callout {
    stroke: #fff39c;
    stroke-width: 2;
}

.tracker-pattern-symbol,
.tracker-pattern-neutral-label,
.tracker-pattern-charge {
    fill: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
}

.tracker-pattern-symbol {
    fill: #fff39c;
    stroke: #071127;
    stroke-width: 8px;
    paint-order: stroke fill;
    font-size: 22px;
    letter-spacing: 0.06em;
}

.tracker-pattern-neutral-label {
    fill: rgba(236, 240, 255, 0.68);
    font-size: 15px;
}

.tracker-pattern-charge {
    font-size: 22px;
}

.tracker-zoom-controls {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.7rem;
    align-items: center;
}

.tracker-zoom-controls button,
.tracker-zoom-controls output {
    display: inline-grid;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(177, 199, 244, 0.34);
    border-radius: 0.65rem;
    place-items: center;
}

.tracker-zoom-controls button {
    padding: 0.45rem 0.8rem;
    background: rgba(18, 39, 79, 0.96);
    color: #ffffff;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
}

.tracker-zoom-controls button:hover:not(:disabled) {
    background: #244d9f;
}

.tracker-zoom-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.tracker-zoom-controls output {
    min-width: 4.25rem;
    color: #dfe9ff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.74rem;
}

.tracker-zoom-controls .tracker-zoom-reset {
    min-width: 7rem;
    margin-left: auto;
    font-size: 0.75rem;
}

.tracker-zoom-keyboard-hint {
    margin: 0.55rem 0 0;
    color: rgba(205, 220, 250, 0.58);
    font-size: 0.68rem;
    line-height: 1.55;
}

.tracker-pattern-notes {
    display: grid;
    padding: clamp(1.25rem, 2.6vw, 2rem);
    background: rgba(255, 255, 255, 0.9);
    align-content: center;
}

.tracker-pattern-notes article[hidden] {
    display: none;
}

.tracker-pattern-notes .mono {
    margin: 0 0 0.75rem;
    color: var(--detector-blue);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.tracker-pattern-notes h3 {
    margin: 0 0 0.8rem;
    color: var(--detector-ink);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.4;
}

.tracker-pattern-notes p:not(.mono) {
    margin: 0;
    color: var(--detector-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.detector-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.detector-signature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detector-signature {
    padding-left: clamp(4.6rem, 7vw, 5.5rem);
}

.detector-particle-symbol {
    position: absolute;
    top: 1.35rem;
    left: 1.3rem;
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: #e9efff;
    color: var(--detector-blue);
    font-family: "IBM Plex Mono", monospace;
    font-size: 1.1rem;
    font-weight: 700;
    place-items: center;
}

.detector-signature-muon .detector-particle-symbol {
    background: #f0ecff;
    color: #7353de;
}

.detector-signature-photon .detector-particle-symbol,
.detector-signature-jet .detector-particle-symbol {
    background: #fff1db;
    color: #ad5e09;
}

.detector-met-note {
    display: grid;
    gap: 1.1rem;
    margin-top: 1rem;
    padding: clamp(1.25rem, 2.5vw, 1.8rem);
    border: 1px dashed #9f8bdd;
    border-radius: 1.1rem;
    background: rgba(244, 241, 255, 0.82);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.detector-met-mark {
    display: grid;
    width: 4.1rem;
    height: 4.1rem;
    border-radius: 50%;
    background: #7e64d8;
    color: #ffffff;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
    place-items: center;
}

.detector-guide-return {
    display: flex;
    gap: 2rem;
    margin-top: clamp(3.5rem, 7vw, 6.5rem);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(104, 134, 210, 0.25);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #ffffff, #eef3ff);
    box-shadow: 0 18px 42px rgba(41, 60, 93, 0.08);
    align-items: center;
    justify-content: space-between;
}

.detector-guide-return > div {
    display: grid;
    gap: 0.65rem;
}

.detector-guide-return p {
    margin: 0;
    color: var(--detector-muted);
    line-height: 1.7;
}

.detector-guide-return .primary-btn {
    flex: 0 0 auto;
    min-height: 48px;
    text-decoration: none;
}

.detector-guide-disclosure {
    margin-top: 1.25rem;
    border-top: 1px solid var(--detector-line);
    color: var(--detector-muted);
}

.detector-guide-disclosure summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0.85rem 0;
    color: #42516b;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.detector-guide-disclosure > div {
    display: grid;
    gap: 0.65rem;
    max-width: 58rem;
    padding-bottom: 1rem;
}

.detector-guide-disclosure p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.7;
}

.detector-guide-disclosure a {
    color: #355bd2;
}

.detector-guide-footer {
    display: flex;
    width: min(1180px, calc(100% - 2rem));
    min-height: 110px;
    margin: 0 auto;
    border-top: 1px solid var(--detector-line);
    align-items: center;
    justify-content: space-between;
}

.detector-guide-footer .brand-lockup {
    display: inline-flex;
}

.detector-guide-footer .brand-particle-mark {
    width: 36px;
    height: 36px;
}

.detector-guide-footer .brand-wordmark {
    font-size: 1.35rem;
}

.detector-guide-footer p {
    margin: 0;
    color: var(--detector-muted);
    font-size: 0.78rem;
}

.detector-guide-page :is(a, button, summary):focus-visible {
    outline: 3px solid var(--detector-blue);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .detector-guide-hero {
        grid-template-columns: 1fr;
    }

    body.detector-guide-page .detector-guide-copy h1 {
        max-width: none;
    }

    .detector-map-svg {
        max-height: 430px;
    }

    .tracker-zoom-workspace {
        grid-template-columns: 1fr;
    }

    .tracker-pattern-notes {
        min-height: 13rem;
    }
}

@media (max-width: 860px) {
    body.detector-guide-page .nav {
        min-height: 64px;
        padding: 0.55rem 1rem;
        flex-wrap: nowrap;
    }

    body.detector-guide-page .nav-links {
        display: none;
    }

    body.detector-guide-page .nav-actions {
        gap: 0.45rem;
        margin-left: auto;
    }

    body.detector-guide-page .nav-user {
        display: none;
    }
}

@media (max-width: 760px) {
    .detector-guide-shell {
        width: min(100% - 1rem, 1180px);
        padding-top: 0.65rem;
    }

    .detector-guide-hero {
        gap: 1.2rem;
        padding: 1rem;
        border-radius: 1.1rem;
    }

    body.detector-guide-page .detector-guide-copy h1 {
        max-width: none;
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .detector-guide-lede {
        font-size: 0.94rem;
    }

    .detector-map {
        padding: 0.5rem;
    }

    .detector-event-context {
        padding: 0.2rem;
    }

    .detector-event-context strong {
        max-width: 68vw;
    }

    .detector-event-stage {
        width: 100%;
        min-height: 0;
        aspect-ratio: 760 / 620;
    }

    .guide-event-track-label {
        width: 28px;
        height: 28px;
    }

    .detector-selected-track strong span {
        display: block;
        margin: 0.12rem 0 0;
    }

    .detector-layer-list {
        grid-template-columns: 1fr;
    }

    .detector-region-explanation-copy {
        grid-template-columns: 1fr;
    }

    .detector-layer-cards,
    .detector-signature-grid {
        grid-template-columns: 1fr;
    }

    .tracker-zoom-boundary {
        grid-template-columns: 1fr;
    }

    .tracker-pattern-buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tracker-pattern-button {
        padding-inline: 0.45rem;
        font-size: 0.75rem;
    }

    .detector-guide-return {
        align-items: stretch;
        flex-direction: column;
        gap: 1.25rem;
    }

    .detector-guide-return .primary-btn {
        width: 100%;
        justify-content: center;
    }

    .detector-guide-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.4rem 0;
    }
}

@media (max-width: 480px) {
    .detector-event-context {
        align-items: stretch;
        flex-direction: column;
    }

    .detector-event-context strong {
        max-width: 100%;
        white-space: normal;
    }

    .detector-layer-reset {
        width: fit-content;
    }

    .guide-event-layer-name {
        font-size: 15px;
    }

    .guide-event-track-label {
        width: 26px;
        height: 26px;
    }

    .guide-event-track-symbol {
        font-size: 0.62rem;
    }

    .detector-response text {
        font-size: 26px;
    }

    .detector-signature {
        padding: 4.6rem 1.1rem 1.2rem;
    }

    .detector-particle-symbol {
        top: 1rem;
        left: 1rem;
    }

    .detector-met-note {
        grid-template-columns: 1fr;
    }

    .tracker-zoom-section {
        scroll-margin-top: 4.5rem;
    }

    .tracker-pattern-buttons {
        grid-template-columns: 1fr;
    }

    .tracker-zoom-viewport {
        min-height: 250px;
        aspect-ratio: auto;
    }

    .tracker-zoom-controls {
        flex-wrap: wrap;
    }

    .tracker-zoom-controls .tracker-zoom-reset {
        flex: 1 0 100%;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .detector-guide-page *,
    .detector-guide-page *::before,
    .detector-guide-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Compact, event-first detector guide. Explanations appear over the same event. */
.detector-guide-shell {
    width: min(1280px, calc(100% - 2rem));
    padding-top: clamp(0.8rem, 2vw, 1.6rem);
}

.detector-guide-hero {
    display: grid;
    gap: 0.9rem;
    padding: clamp(0.75rem, 1.6vw, 1.2rem);
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.detector-guide-copy {
    display: grid;
    gap: 0.25rem 0.85rem;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.detector-guide-back {
    grid-row: 1 / span 3;
}

body.detector-guide-page .detector-guide-kicker {
    grid-column: 2;
}

body.detector-guide-page .detector-guide-copy h1 {
    grid-column: 2;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.08;
}

body.detector-guide-page .detector-guide-prompt {
    grid-column: 2;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(225, 235, 255, 0.7);
    font-size: 0.76rem;
    line-height: 1.5;
}

.detector-map {
    padding: clamp(0.45rem, 1.2vw, 0.8rem);
}

.detector-event-stage {
    width: min(100%, 1050px);
    margin-inline: auto;
    aspect-ratio: 760 / 620;
}

.detector-region-instruction {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 8;
    margin: 0;
    padding: 0.38rem 0.55rem;
    border-color: rgba(160, 190, 239, 0.18);
    background: rgba(2, 7, 18, 0.7);
    color: rgba(221, 234, 255, 0.72);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.detector-layer-list {
    position: absolute;
    bottom: 0.65rem;
    left: 0.65rem;
    z-index: 10;
    display: flex;
    max-width: calc(100% - 30rem);
    gap: 0.35rem;
    pointer-events: auto;
}

.detector-layer-list button {
    width: auto;
    min-height: 44px;
    align-items: center;
    padding: 0.5rem 0.72rem;
    border-radius: 999px;
    background: rgba(5, 13, 29, 0.78);
    color: rgba(231, 239, 255, 0.78);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(12px);
}

.detector-layer-list button > span:first-child,
.detector-layer-list button > span:last-child {
    display: inline;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.detector-event-overlay {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 9;
    width: min(28rem, calc(100% - 2rem));
    max-height: calc(100% - 4rem);
    overflow: hidden;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
    pointer-events: none;
    backdrop-filter: blur(16px) saturate(1.12);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.detector-event-map[data-overlay-kind="track"] .detector-region-explanation,
.detector-event-map[data-overlay-kind="region"] .detector-selected-track {
    transform: translateY(8px);
    opacity: 0;
    visibility: hidden;
}

.detector-region-explanation {
    gap: 0.55rem;
    padding: 0.7rem;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--detector-region-color) 11%, transparent), transparent 48%),
        rgba(5, 13, 29, 0.86);
}

.detector-region-explanation-body {
    gap: 0.28rem;
}

body.detector-guide-page .detector-region-explanation h2 {
    color: #ffffff;
    font-size: clamp(0.9rem, 1.4vw, 1.04rem);
}

.detector-region-explanation-copy {
    display: grid;
    gap: 0.16rem;
    grid-template-columns: minmax(0, 1fr);
}

body.detector-guide-page .detector-region-explanation-copy > p {
    display: flex;
    gap: 0.45rem;
    margin: 0;
    color: rgba(222, 232, 250, 0.78);
    font-size: 0.7rem;
    line-height: 1.45;
}

.detector-region-explanation-copy strong {
    flex: 0 0 auto;
    color: color-mix(in srgb, var(--detector-region-color) 76%, white);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.58rem;
}

.detector-selected-track {
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
    border-color: rgba(153, 182, 239, 0.24);
    background: rgba(5, 13, 29, 0.86);
}

.detector-selected-track-mark {
    min-height: 2.75rem;
}

.detector-selected-track > div {
    gap: 0.18rem;
}

.detector-selected-track .detector-selected-track-clue {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: rgba(218, 229, 250, 0.72);
}

.guide-event-track-label {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.guide-event-track-symbol {
    display: grid;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 0;
    background: transparent;
    place-items: center;
    text-shadow:
        0 1px 2px rgba(1, 5, 14, 0.95),
        0 0 9px color-mix(in srgb, var(--guide-track-color) 70%, transparent);
}

.guide-event-track-label:hover,
.guide-event-track-label:focus-visible,
.guide-event-track-label.is-hovered,
.guide-event-track-label.is-selected {
    background: transparent;
    box-shadow: none;
}

.guide-event-track-label:hover .guide-event-track-symbol,
.guide-event-track-label:focus-visible .guide-event-track-symbol,
.guide-event-track-label.is-hovered .guide-event-track-symbol,
.guide-event-track-label.is-selected .guide-event-track-symbol {
    background: transparent;
    box-shadow: none;
    text-shadow:
        0 1px 2px rgba(1, 5, 14, 0.95),
        0 0 13px color-mix(in srgb, var(--guide-track-color) 90%, transparent);
}

.guide-event-track-tooltip {
    display: none;
}

.detector-event-learning-note {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(214, 226, 249, 0.66);
}

.detector-event-learning-note summary {
    width: fit-content;
    min-height: 36px;
    padding: 0.45rem 0.25rem;
    color: rgba(208, 222, 249, 0.58);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
}

.detector-event-learning-note p {
    max-width: 58rem;
    margin: 0;
    padding: 0.25rem 0.25rem 0.55rem;
    font-size: 0.68rem;
    line-height: 1.6;
}

.detector-guide-more {
    margin-top: 1.25rem;
    border: 1px solid var(--detector-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 36px rgba(41, 60, 93, 0.06);
}

.detector-guide-more > summary {
    display: flex;
    min-height: 64px;
    padding: 0.8rem 1rem;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.detector-guide-more > summary > span {
    display: grid;
    gap: 0.12rem;
}

.detector-guide-more > summary strong {
    color: var(--detector-ink);
    font-size: 0.92rem;
}

.detector-guide-more > summary small {
    color: var(--detector-muted);
    font-size: 0.72rem;
}

.detector-guide-more > summary i::before {
    content: "+";
    color: var(--detector-blue);
    font-size: 1.2rem;
    font-style: normal;
}

.detector-guide-more[open] > summary i::before {
    content: "−";
}

.detector-guide-more-body {
    padding: 0 1rem 1.5rem;
}

.detector-guide-more-body :is(.detector-layer-explanations, .detector-signatures) {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

@media (max-width: 760px) {
    .detector-guide-shell {
        width: min(100% - 0.5rem, 1280px);
        padding-top: 0.3rem;
    }

    .detector-guide-hero {
        gap: 0.55rem;
        padding: 0.5rem;
        border-radius: 0.8rem;
    }

    .detector-guide-copy {
        gap: 0.15rem 0.55rem;
    }

    .detector-guide-back {
        min-height: 38px;
        font-size: 0.72rem;
    }

    body.detector-guide-page .detector-guide-copy h1 {
        font-size: clamp(1.3rem, 6.5vw, 1.8rem);
    }

    body.detector-guide-page .detector-guide-kicker {
        font-size: 0.58rem;
    }

    body.detector-guide-page .detector-guide-prompt {
        font-size: 0.66rem;
    }

    .detector-map {
        padding: 0.25rem;
    }

    .detector-event-context {
        align-items: center;
        flex-direction: row;
        padding: 0.15rem;
    }

    .detector-event-context strong,
    .detector-event-context small {
        display: none;
    }

    .detector-region-instruction {
        display: none;
    }

    .detector-layer-list {
        top: 0.35rem;
        right: 0.35rem;
        bottom: auto;
        left: 0.35rem;
        max-width: none;
        overflow-x: auto;
        justify-content: center;
        scrollbar-width: none;
    }

    .detector-layer-list button {
        min-height: 40px;
        padding: 0.45rem 0.58rem;
        font-size: 0.62rem;
    }

    .detector-event-overlay {
        right: 0.35rem;
        bottom: 0.35rem;
        width: calc(100% - 0.7rem);
        max-height: 46%;
    }

    .detector-region-explanation {
        padding: 0.5rem;
    }

    .detector-region-explanation .mono,
    .detector-selected-track small {
        display: none;
    }

    body.detector-guide-page .detector-region-explanation h2 {
        font-size: 0.8rem;
    }

    body.detector-guide-page .detector-region-explanation-copy > p {
        font-size: 0.62rem;
        line-height: 1.35;
    }

    .detector-region-explanation-copy strong {
        font-size: 0.52rem;
    }

    .detector-selected-track {
        padding: 0.5rem 0.58rem;
    }

    .detector-selected-track-mark {
        min-height: 2.2rem;
    }

    .detector-selected-track strong {
        font-size: 0.72rem;
    }

    .detector-selected-track p {
        font-size: 0.6rem;
        line-height: 1.35;
    }

    .guide-event-track-label {
        width: 44px;
        height: 44px;
    }

    .guide-event-track-symbol {
        width: 23px;
        height: 23px;
    }

    .detector-guide-more {
        margin-top: 0.65rem;
    }

    .detector-guide-more-body {
        padding-inline: 0.65rem;
    }
}
