/* The guide: series navigation, callouts, confidence labels, notes and figures. */
:root { --felt: #ff0000; }

.series-header { margin: 0 0 .75rem; color: var(--muted); font-size: .6875rem; line-height: 1.6; }
.article .series-header a { color: var(--muted); text-decoration: none; }
.article .series-header a:hover, .article .series-header a:focus-visible { color: var(--link); text-decoration: underline; }
.chapter-question { margin: -1rem 0 1.5rem; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.series-nav { display: grid; gap: 1.25rem; margin: 3rem 0 0; padding: 1.25rem 0 0; border-top: .0625rem solid var(--rule); }
.series-step { display: grid; gap: .25rem; }
.series-label { color: var(--muted); font-size: .625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.series-previous { font-size: .75rem; }
.series-question { display: block; color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.4; }
.series-next a { display: grid; gap: .25rem; text-decoration: none; }
.series-next a:hover .series-question, .series-next a:focus-visible .series-question { text-decoration: underline; text-underline-offset: .25rem; text-decoration-thickness: .0625rem; }
.series-title { color: var(--muted); font-size: .75rem; font-weight: 400; }
.series-soon { display: inline-block; margin-left: .35rem; padding: 0 .35rem; border: .0625rem solid var(--rule); border-radius: .25rem; color: var(--muted); font-size: .5625rem; font-weight: 500; letter-spacing: .04em; line-height: 1.6; text-transform: uppercase; vertical-align: .1em; }
.series-nav + .article-navigation { margin-top: 1.5rem; padding-top: 0; border-top: 0; }

.callout { margin: 2rem 0; padding: 1rem 1.125rem; border: .0625rem solid var(--rule); border-radius: .375rem; font-size: .8125rem; }
.callout > :last-child { margin-bottom: 0; }
.callout p { margin-bottom: .875rem; }
.callout-label { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; color: var(--muted); font-size: .625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.callout-question { color: var(--ink); font-size: .875rem; font-weight: 600; }
.callout ul, .callout ol { margin: .5rem 0 .875rem; padding-left: 1.1rem; }
.callout li { margin: .35rem 0; }
.callout[data-kind="try"], .callout[data-kind="experiment"] { border-style: dashed; }
.callout[data-kind="experiment"] { border-color: var(--muted); }
.callout[data-kind="lean"] { border-color: transparent; background: var(--image-frame); }
.callout[data-kind="hypothesis"] { border-color: var(--felt); }
.callout[data-kind="hypothesis"] .callout-label::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--felt); }

.confidence {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin: 0 .1rem;
    padding: 0 .45rem;
    border: .0625rem solid var(--rule);
    border-radius: 1rem;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: .5625rem;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.7;
    text-transform: uppercase;
    vertical-align: .12em;
    white-space: nowrap;
}
.confidence::before { content: ''; flex: none; width: .4rem; height: .4rem; border: .0625rem solid currentColor; border-radius: 50%; }
.confidence[data-level="solid"]::before { background: currentColor; }
.confidence[data-level="debated"]::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
button.confidence { cursor: help; }
button.confidence:hover, button.confidence:focus-visible { border-color: var(--muted); color: var(--ink); }
.confidence-row { display: block; margin-top: .6rem; }
.confidence-row .confidence { margin: 0 .3rem 0 0; }

.note-ref { appearance: none; margin: 0 0 0 .1rem; padding: 0 .15rem; border: 0; background: none; color: var(--muted); font: inherit; font-size: .625rem; font-weight: 600; line-height: 1; vertical-align: super; cursor: pointer; }
.note-ref:hover, .note-ref:focus-visible { color: var(--link); }
.note-number { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
@supports selector(:popover-open) {
    .note-panel { width: min(20rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); overflow-y: auto; margin: auto; padding: .75rem .875rem; border: .0625rem solid var(--rule); border-radius: .375rem; background: var(--paper); color: var(--ink); font-family: var(--text-font); font-size: .75rem; font-weight: 400; line-height: 1.55; box-shadow: 0 .25rem 1rem rgb(0 0 0 / 14%); }
    .note-panel.note-placed { inset: auto; margin: 0; }
}
@supports not selector(:popover-open) {
    .note-ref { display: none; }
    .note-panel { color: var(--muted); font-size: .75rem; }
    .note-panel::before { content: ' ('; }
    .note-panel::after { content: ')'; }
    .note-number { display: none; }
}

.guide-figure { margin: 1.25rem 0 2.75rem; }
.diagram-plate { padding: .8rem .7rem .65rem; border: 1px solid var(--rule); background: var(--paper); }
.diagram-plate[data-tone="light"] { --paper: #f6f5f1; --ink: #292824; --muted: #6f6c65; --rule: #e2dfd7; --image-frame: #ebe9e3; color: var(--ink); color-scheme: light; }
.figure-top, .figure-bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .6rem;
    color: var(--muted);
    font-size: .55rem;
    line-height: 1.5;
}
.figure-top > :last-child { text-align: right; color: var(--ink); }
.figure-top > :first-child { flex-shrink: 0; }
.figure-bottom > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.guide-figure figcaption, .candidate-figure figcaption { margin: .7rem 0 0; font-size: .65rem; line-height: 1.6; color: var(--muted); }
.figure-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1rem;
    margin-top: .8rem;
    font-size: .65rem;
    color: var(--ink);
}
.figure-controls[hidden] { display: none; }
.figure-range { display: grid; gap: .2rem; flex: 1 1 8rem; }
.figure-range > span { display: flex; justify-content: space-between; gap: .6rem; }
.figure-range output { color: var(--muted); font-variant-numeric: tabular-nums; }
.figure-range input { width: 100%; margin: 0; height: 1.7rem; accent-color: var(--ink); cursor: pointer; }
.figure-check { display: inline-flex; align-items: center; gap: .4rem; min-height: 1.85rem; }
.figure-check input { width: .75rem; height: .75rem; margin: 0; accent-color: var(--ink); cursor: pointer; }
.figure-choice { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; margin: 0; padding: 0; border: 0; }
.figure-choice legend { float: left; margin-right: .4rem; padding: 0; color: var(--muted); }
.figure-controls button {
    min-height: 1.85rem;
    border: 1px solid var(--rule);
    padding: .35rem .6rem;
    border-radius: .2rem;
    background: transparent;
    color: var(--ink);
    font: inherit;
    line-height: 1.4;
    cursor: pointer;
}
.figure-controls button:hover, .figure-controls button[aria-pressed="true"] { background: var(--image-frame); border-color: var(--muted); }
.figure-controls button:disabled { opacity: .45; cursor: default; }
.figure-controls :focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.guide-figure [data-hidden] { display: none; }

.illustration-svg { display: block; width: 100%; height: auto; margin: .8rem 0; overflow: visible; }
.illustration-svg :where(path, circle, rect, ellipse, polygon, line):where(:not([fill])) { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.illustration-svg .ink { stroke: var(--ink); stroke-width: 1.6; }
.illustration-svg .soft { stroke: var(--muted); stroke-width: 1.3; }
.illustration-svg .felt-line { stroke: var(--felt); stroke-width: 2; }
.illustration-svg .dash { stroke-dasharray: 5 6; }
.illustration-svg .felt { fill: var(--felt); }
.illustration-svg .fill-ink { fill: var(--ink); }
.illustration-svg .fill-paper { fill: var(--paper); }
.illustration-svg .fill-frame { fill: var(--image-frame); }
.illustration-svg text { fill: var(--ink); font: 450 17px var(--text-font); text-anchor: middle; }
.illustration-svg .note { fill: var(--muted); font-size: 15px; font-weight: 400; }
.illustration-svg .felt-text { fill: var(--felt); font-size: 16px; font-weight: 600; }
.illustration-svg .start { text-anchor: start; }
.illustration-svg .end { text-anchor: end; }
.illustration-svg .wave-number { font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
.illustration-svg .verdict { font-size: 26px; font-weight: 500; }
.illustration-svg .verdict[data-real] { fill: var(--felt); }
.illustration-svg [data-side] rect { fill: var(--paper); stroke: var(--muted); stroke-width: 1.3; stroke-dasharray: 4 5; }
.illustration-svg [data-side][data-recalled] rect { fill: rgb(255 0 0 / 14%); stroke: var(--felt); stroke-width: 2; stroke-dasharray: none; }
.illustration-svg .side-label { fill: var(--muted); font-size: 15px; font-weight: 400; }
.illustration-svg .side-label[data-recalled] { fill: var(--felt); font-weight: 600; }
.illustration-svg [data-bubble][data-felt] circle { fill: var(--felt); stroke: var(--felt); }
.illustration-svg [data-bubble][data-felt] text { display: none; }
.illustration-svg [data-edge] { stroke-width: 2.4; }
.illustration-svg [data-state]:not([data-selected]) [data-ring] { display: none; }
.illustration-svg [data-state][data-selected] text { font-weight: 600; }
.illustration-svg [data-owned]:not([data-off]) rect { stroke: var(--felt); fill: rgb(255 0 0 / 14%); }
.illustration-svg [data-schema][data-off] rect { stroke: var(--muted); stroke-dasharray: 5 6; }
.illustration-svg [data-schema][data-off] text { fill: var(--muted); }
.illustration-svg [data-verdict] circle { stroke-width: 1.6; }
.illustration-svg [data-verdict="likely"] circle { fill: var(--felt); stroke: var(--felt); }
.illustration-svg [data-verdict="possible"] circle { fill: url(#pick-theory-half); stroke: var(--felt); }
.illustration-svg [data-verdict="unlikely"] circle { fill: var(--paper); stroke: var(--muted); }
.illustration-svg [data-verdict="silent"] circle { fill: var(--paper); stroke: var(--muted); stroke-dasharray: 3 3; }
.illustration-svg [data-verdict]:not([data-verdict="silent"]) text { display: none; }
.illustration-svg [data-cell]:not([data-chip]) rect, .illustration-svg [data-cell][data-chip] circle { display: none; }
.illustration-svg [data-edge]:not([data-on]) { stroke-opacity: .5; }
.illustration-svg [data-edge][data-on] { stroke: var(--ink); stroke-width: 2.6; }
.illustration-svg [data-node][data-on] rect { fill: var(--image-frame); stroke-width: 2.2; }
.view-cards { margin-top: .9rem; }
.view-card { margin: 0 0 1rem; padding: .9rem 1rem; border: .0625rem solid var(--rule); border-radius: .375rem; font-size: .75rem; }
.view-card h3 { margin: 0 0 .5rem; font-size: .875rem; }
.view-card p { margin: 0 0 .5rem; }
.view-card .view-source { margin: 0; font-size: .6875rem; }
.figure-table { margin-top: .8rem; font-size: .65rem; }
.figure-table summary { cursor: pointer; color: var(--muted); }
.figure-table table { margin: .7rem 0 0; border-collapse: collapse; }
.figure-table caption { padding-bottom: .3rem; font-weight: 600; text-align: left; }
.figure-table th, .figure-table td { padding: .2rem 1rem .2rem 0; font-weight: 400; text-align: left; font-variant-numeric: tabular-nums; }
.theory-summary { margin: .9rem 0 .35rem; font-size: .75rem; line-height: 1.5; }
.verdict-list { list-style: none; margin: 0; padding: 0; font-size: .6875rem; line-height: 1.5; }
.verdict-list li { padding: .45rem 0; border-bottom: .0625rem solid var(--rule); }
.verdict-name { font-weight: 600; }
.verdict-chip { display: inline-block; margin: 0 .2rem; padding: 0 .4rem; border: .0625rem solid var(--rule); border-radius: 1rem; color: var(--muted); font-size: .5625rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; vertical-align: .1em; }
.verdict-chip[data-verdict="likely"], .verdict-chip[data-verdict="possible"] { border-color: var(--felt); color: var(--felt); }

.scoreboard-wrap { margin: 1.25rem 0 2.25rem; overflow-x: auto; }
.scoreboard { width: 100%; min-width: 26rem; border-collapse: collapse; font-size: .625rem; line-height: 1.45; }
.scoreboard caption { caption-side: bottom; padding-top: .6rem; color: var(--muted); font-size: .625rem; text-align: left; }
.scoreboard th, .scoreboard td { padding: .55rem .75rem .55rem 0; border-bottom: .0625rem solid var(--rule); text-align: left; vertical-align: top; }
.scoreboard thead th { color: var(--muted); font-size: .5625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.scoreboard tbody th { font-weight: 600; }

.ladder li, .pieces li, .experiment-list li { margin: .45rem 0; }
.experiment-list { font-size: .8125rem; }
.hypothesis-cards { display: grid; gap: 1rem; margin: 1.25rem 0 2rem; }
.hypothesis-card { padding: .9rem 1rem; border: .0625rem solid var(--rule); border-radius: .375rem; font-size: .75rem; }
.hypothesis-card h3 { margin: 0 0 .5rem; font-size: .875rem; }
.hypothesis-card p { margin: 0 0 .5rem; }
.hypothesis-card p:last-child { margin-bottom: 0; }

.chapter-sources { margin-top: 2.75rem; }
.chapter-sources ul { font-size: .75rem; }

.glossary-list { margin: 1.75rem 0 0; }
.glossary-entry { margin: 0 0 1.4rem; scroll-margin-top: 1.5rem; }
.glossary-entry dt { font-weight: 600; }
.glossary-entry:target dt { color: var(--felt); }
.glossary-entry dd { margin: .25rem 0 0; }
.glossary-entry dd p { margin: 0 0 .4rem; font-size: .8125rem; }
.glossary-entry .glossary-where { color: var(--muted); font-size: .6875rem; }

.home-guide { margin-top: 3rem; }
.home-guide > h2 { margin: 0 0 .375rem; }
.guide-lede { margin: 0 0 1.5rem; color: var(--muted); font-size: .75rem; }
.guide-acts, .guide-steps { list-style: none; margin: 0; padding: 0; }
.guide-act { margin: 0 0 1.25rem; }
.guide-act-title { margin: 0 0 .375rem; color: var(--muted); font-size: .6875rem; font-weight: 400; }
.guide-act-title span { margin-right: .25rem; color: var(--ink); font-weight: 600; }
.guide-step { margin: 0 -.5625rem .125rem; }
.guide-link { display: flex; gap: .75rem; padding: .5rem; border: .0625rem dashed transparent; }
a.guide-link:hover, a.guide-link:focus-visible { border-color: var(--rule); text-decoration: none; }
.guide-number { flex: none; width: 1.1rem; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.guide-destination .guide-number { color: var(--felt); }
.guide-text { display: grid; gap: .1rem; }
.guide-title { color: var(--link); font-weight: 450; line-height: 1.45; }
.guide-step[data-planned] .guide-title { color: var(--ink); font-weight: 400; }
.guide-question { color: var(--muted); font-size: .75rem; font-weight: 400; line-height: 1.5; }
.guide-status { color: var(--muted); font-size: .625rem; font-weight: 400; }
.guide-end { margin-top: .25rem; }

@media (max-width: 560px) {
    .guide-figure { margin-bottom: 2.25rem; }
    .diagram-plate { padding: .65rem .35rem; }
    .figure-top, .figure-bottom { font-size: .6rem; }
    .figure-bottom > :first-child { display: none; }
    .figure-bottom { justify-content: flex-end; }
    .guide-figure figcaption, .candidate-figure figcaption, .figure-controls { font-size: .7rem; }
    .figure-controls button, .figure-check { min-height: 2.2rem; }
    .figure-check input { width: .85rem; height: .85rem; }
    .illustration-svg text { font-size: 19px; }
    .illustration-svg .note, .illustration-svg .side-label { font-size: 17px; }
    .illustration-svg .felt-text { font-size: 18px; }
}
