/* Shared visual language for the two research courses. No external fonts or runtime dependencies. */
:root {
    --paper:#faf8f2;
    --ink:#192f38;
    --muted:#52646a;
    --teal:#086d70;
    --orange:#a84620;
    --wash:#e4efeb;
    --line:#c6d4ce;
    --white:#fff;
    --font:clamp(18px,1.8vw,28px)
}
* {
    box-sizing:border-box
}
[hidden] {
    display:none!important
}
body {
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:Inter,"Segoe UI",Arial,sans-serif
}
a {
    color:var(--teal);
    text-underline-offset:4px
}
button,select {
    font:inherit
}
button,a,summary,select {
    -webkit-tap-highlight-color:transparent
}
:focus-visible {
    outline:3px solid var(--orange);
    outline-offset:4px
}
button,select {
    color:var(--ink);
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:6px;
    padding:7px 11px;
    cursor:pointer
}
button:disabled {
    opacity:.4;
    cursor:default
}
.toolbar {
    position:sticky;
    top:0;
    z-index:5;
    min-height:54px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 3vw;
    background:var(--paper);
    border-bottom:1px solid var(--line);
    font-size:14px
}
.toolbar-group {
    display:flex;
    align-items:center;
    gap:9px
}
.toolbar select {
    max-width:31vw
}
.toolbar button[aria-pressed=true] {
    background:var(--teal);
    color:white
}
.skip {
    position:fixed;
    left:10px;
    top:-100px;
    z-index:20;
    background:white;
    padding:10px
}
.skip:focus {
    top:8px
}
.slide {
    position:relative;
    min-height:calc(100vh - 54px);
    padding:28px 5vw 18px;
    display:flex;
    flex-direction:column;
    border-bottom:1px solid var(--line);
    scroll-margin-top:54px
}
.presenting .slide {
    display:none
}
.presenting .slide.active {
    display:flex
}
.eyebrow {
    font-size:14px;
    font-weight:700;
    letter-spacing:.13em;
    text-transform:uppercase;
    color:var(--teal);
    margin:0 0 14px
}
.slide h1 {
    font-size:clamp(30px,3.2vw,50px);
    font-weight:680;
    line-height:1.12;
    letter-spacing:-.035em;
    max-width:1100px;
    margin:0 0 22px
}
.visual {
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:20px;
    font-size:var(--font);
    line-height:1.4;
    max-width:1400px;
    width:100%;
    margin:auto
}
.visual p {
    margin:0
}
.visual h2 {
    font-size:1.2em;
    line-height:1.15;
    margin:0 0 12px
}
.visual h3 {
    font-size:1em;
    margin:0 0 9px
}
.split {
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:36px;
    align-items:center
}
.cards {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px
}
.cards.two {
    grid-template-columns:repeat(2,minmax(0,1fr))
}
.card {
    border-top:3px solid var(--teal);
    padding:20px 0
}
.card:nth-child(even) {
    border-color:var(--orange)
}
.card .num,.step .num {
    display:block;
    color:var(--teal);
    font:600 .65em ui-monospace,monospace;
    margin-bottom:14px
}
.card p {
    color:var(--muted);
    font-size:.88em
}
.flow {
    display:flex;
    align-items:stretch;
    gap:0;
    list-style:none;
    padding:0;
    margin:0
}
.step {
    flex:1;
    min-width:0;
    padding:20px 18px;
    background:var(--wash);
    border-right:3px solid var(--paper);
    position:relative
}
.step:not(:last-child)::after {
    content:'→';
    position:absolute;
    right:-12px;
    top:45%;
    z-index:1;
    color:var(--orange);
    font-weight:bold
}
.step strong {
    display:block;
    font-size:1.08em;
    margin-bottom:12px
}
.step p {
    font-size:.78em;
    color:var(--muted)
}
.takeaway {
    margin:22px 0 8px;
    padding:12px 18px;
    border-left:4px solid var(--orange);
    font-size:clamp(17px,1.65vw,25px);
    line-height:1.35;
    background:#f1ece2
}
.slide-footer {
    margin-top:14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    color:var(--muted);
    font-size:12px
}
.slide-footer a {
    color:inherit
}
.page-number {
    font-variant-numeric:tabular-nums;
    white-space:nowrap
}
.source {
    max-width:70%;
    font-size:11px
}
.notes {
    font-size:16px;
    line-height:1.6;
    margin-top:8px
}
.notes summary {
    font-size:12px;
    color:var(--teal);
    cursor:pointer;
    width:max-content
}
.notes-content {
    padding:18px 24px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:6px;
    overflow-wrap:anywhere
}
.notes-content table {
    width:100%;
    border-collapse:collapse
}
.notes-content td,.notes-content th {
    border:1px solid var(--line);
    padding:6px
}
.notes-content pre {
    white-space:pre-wrap;
    overflow-wrap:anywhere
}
.notes-content img {
    max-width:100%
}
.presenting .notes[open] {
    position:fixed;
    right:18px;
    top:66px;
    bottom:18px;
    width:min(600px,90vw);
    z-index:10;
    background:white;
    box-shadow:0 8px 50px #192f3833;
    border:1px solid var(--line);
    border-radius:8px;
    overflow:auto;
    padding:18px
}
.presenting .notes[open] summary {
    font-size:16px;
    margin-bottom:14px
}
.presenting .notes[open] .notes-content {
    border:0;
    padding:0
}
.reading .slide {
    min-height:100vh
}
.reading .notes {
    margin-top:24px
}
.reading .visual {
    min-height:400px
}
pre {
    margin:0;
    background:var(--ink);
    color:#f6faf6;
    padding:22px;
    border-radius:9px;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    font:clamp(13px,1.3vw,20px)/1.5 ui-monospace,SFMono-Regular,Consolas,monospace
}
code {
    font-family:ui-monospace,monospace;
    font-size:.9em;
    overflow-wrap:anywhere
}
.code-key {
    color:#8de5d1
}
.code-value {
    color:#ffd196
}
.artifact {
    background:white;
    border:1px solid var(--line);
    padding:24px;
    box-shadow:7px 7px 0 #e4e9e1;
    border-radius:3px
}
.artifact .label,.label {
    display:block;
    color:var(--muted);
    font-size:.6em;
    text-transform:uppercase;
    letter-spacing:.1em;
    margin-bottom:14px
}
.artifact p+p {
    margin-top:14px
}
.mark {
    background:#d6eee3;
    padding:0 4px
}
.warn {
    color:var(--orange)
}
.small {
    font-size:.75em;
    color:var(--muted)
}
.big {
    font-size:clamp(52px,7vw,110px);
    font-weight:700;
    line-height:1;
    color:var(--teal);
    letter-spacing:-.06em
}
.quote {
    font-size:1.3em;
    line-height:1.4;
    margin:0;
    border-left:4px solid var(--teal);
    padding-left:24px
}
.matrix {
    width:100%;
    border-collapse:collapse;
    font-size:.8em
}
.matrix caption {
    text-align:left;
    color:var(--muted);
    font-size:.8em;
    padding-bottom:12px
}
.matrix th {
    text-align:left;
    color:var(--teal);
    border-bottom:2px solid var(--teal);
    padding:12px
}
.matrix td {
    padding:14px 12px;
    border-bottom:1px solid var(--line);
    vertical-align:top
}
.matrix tr.highlight {
    background:var(--wash)
}
.network {
    width:100%;
    max-height:340px;
    overflow:visible
}
.network text {
    font-family:inherit;
    fill:var(--ink);
    font-size:18px
}
.network .edge {
    stroke:#90aaa6;
    stroke-width:2
}
.network .node {
    fill:var(--wash);
    stroke:var(--teal);
    stroke-width:2
}
.network .hub {
    fill:var(--teal)
}
.network .light {
    fill:#fff
}
.network .caption {
    font-size:14px;
    fill:var(--muted)
}
.paper {
    background:white;
    border:1px solid var(--line);
    padding:20px;
    min-height:230px
}
.paper .line {
    height:8px;
    background:#dfe5df;
    margin:12px 0
}
.paper .line.short {
    width:60%
}
.paper .line.focus {
    background:#64a99b;
    height:16px
}
.paper header {
    font-weight:700;
    margin-bottom:18px
}
.paper footer {
    font-size:.7em;
    color:var(--teal);
    margin-top:20px
}
.bars {
    display:flex;
    flex-direction:column;
    gap:16px
}
.bar-row {
    display:grid;
    grid-template-columns:65px 1fr 45px;
    align-items:center;
    gap:12px;
    font-size:.8em
}
.bar {
    height:28px;
    background:var(--teal);
    width:var(--value)
}
.bar.alt {
    background:var(--orange)
}
.axis {
    display:flex;
    justify-content:space-between;
    border-top:1px solid var(--muted);
    padding-top:6px;
    font-size:.65em
}
.badge {
    display:inline-block;
    background:var(--wash);
    color:var(--teal);
    font-size:.7em;
    padding:6px 10px;
    border-radius:5px
}
.activity {
    border:2px solid var(--teal);
    padding:24px;
    border-radius:8px
}
.activity ol {
    padding-left:1.2em;
    margin:0
}
.activity li+li {
    margin-top:10px
}
.rubric {
    display:flex;
    gap:12px;
    flex-wrap:wrap
}
.rubric span {
    font-size:.7em;
    border:1px solid var(--line);
    padding:8px 12px
}
.refs {
    font-size:.7em;
    line-height:1.5;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px 35px;
    padding-left:20px
}
.refs li {
    padding-left:4px
}
.hero {
    display:grid;
    grid-template-columns:1.2fr 1fr;
    align-items:center;
    gap:40px
}
.hero .subtitle {
    font-size:1.5em;
    line-height:1.25;
    margin-bottom:24px
}
.hero .byline {
    font-size:.7em;
    color:var(--muted);
    line-height:1.7
}
.progress {
    height:3px;
    background:var(--teal);
    position:absolute;
    bottom:0;
    left:0;
    width:var(--progress)
}
@media screen and (min-width:701px) and (max-height:780px) {
    .slide {
        padding-top:20px;
        padding-bottom:12px
    }
    .slide h1 {
        margin-bottom:16px
    }
    .visual {
        gap:16px
    }
    .artifact {
        padding:20px
    }
    .artifact .network {
        max-height:200px
    }
    .takeaway {
        margin-top:16px
    }
    .step {
        padding:16px 14px
    }
}
@media(max-width:700px) {
    .toolbar {
        padding:8px 12px;
        flex-wrap:wrap
    }
    .toolbar select {
        max-width:48vw
    }
    .toolbar-group {
        gap:5px
    }
    .toolbar button {
        padding:6px
    }
    .toolbar .shortcut {
        display:none
    }
    .slide {
        padding:24px 6vw;
        min-height:calc(100svh - 100px)
    }
    .visual {
        gap:24px
    }
    .split,.hero,.cards,.cards.two {
        grid-template-columns:1fr;
        gap:20px
    }
    .flow {
        flex-direction:column
    }
    .step:not(:last-child)::after {
        content:'↓';
        top:auto;
        bottom:-16px;
        right:48%
    }
    .step {
        border-right:0;
        border-bottom:3px solid var(--paper);
        padding:16px
    }
    .step strong {
        margin-bottom:6px
    }
    .step .num {
        margin-bottom:6px
    }
    .slide h1 {
        font-size:32px
    }
    .card {
        padding:12px 0
    }
    .matrix {
        font-size:13px
    }
    .matrix td,.matrix th {
        padding:8px 5px
    }
    .refs {
        grid-template-columns:1fr
    }
    .slide-footer {
        flex-wrap:wrap
    }
    .source {
        max-width:100%
    }
    .network {
        max-height:280px
    }
    .presenting .notes[open] {
        top:108px
    }
    .bar-row {
        grid-template-columns:45px 1fr 35px
    }
    .reading .visual {
        min-height:0
    }
}
@media print {
    @page {
        size:338.67mm 190.5mm;
        margin:0
    }
    * {
        -webkit-print-color-adjust:exact;
        print-color-adjust:exact
    }
    html,body {
        width:338.67mm;
        background:var(--paper)
    }
    .toolbar,.skip,.notes {
        display:none!important
    }
    .slide,.presenting .slide,.reading .slide {
        display:flex!important;
        width:338.67mm;
        height:190.5mm;
        min-height:0;
        padding:8mm 16mm 6mm;
        break-after:page;
        break-inside:avoid;
        border:0
    }
    .slide:last-child {
        break-after:auto
    }
    .slide h1 {
        font-size:32px;
        margin-bottom:16px
    }
    .eyebrow {
        font-size:12px;
        margin-bottom:10px
    }
    .visual {
        font-size:22px;
        min-height:0!important;
        gap:16px
    }
    .takeaway {
        font-size:20px;
        margin-top:16px
    }
    .network {
        max-height:280px
    }
    .slide-footer {
        font-size:10px;
        margin-top:10px
    }
    .source {
        font-size:9px
    }
    .big {
        font-size:80px
    }
    pre {
        font-size:16px
    }
    .progress {
        display:none
    }
    .refs {
        font-size:15px
    }
    .hero .subtitle {
        font-size:34px
    }
    .card {
        padding:14px 0
    }
    .matrix td,.matrix th {
        padding:10px
    }
    .artifact {
        padding:20px
    }
}
.bibliography .num {
    display:none
}
.bibliography .card {
    padding:16px 0
}
.bibliography .visual h2 {
    font-size:1.05em
}
