/* Additions for the talk on top of the lecture's style.css: title slide, cards grid, statement slides, per-slide layouts. */
.backup-tag{margin:0;font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:600;color:var(--warn)}
/* Figures shrink with the window height so that no slide needs a scrollbar (header, title and footer take about 320px). */
.slide-body.with-figure .figure-wrap svg{max-height:min(62vh,calc(100vh - 330px))}
/* Title slide: place/date and speaker as plain lines, the event in small grey. */
.title-slide .title-line{margin:0;color:var(--fg)}
.title-slide h1+.title-line{margin-top:6px}
.title-small{margin:0;font-size:clamp(14px,1.15vw,16px);color:var(--muted);line-height:1.45}
.title-line+.title-small{margin-top:10px}
.title-slide .title-subtitle{margin:10px 0 18px;font-size:clamp(20px,2vw,28px);font-weight:600;line-height:1.25;color:var(--accent);max-width:36ch}
/* Statement slides: one large claim, used sparingly. */
.slide.statement{justify-content:center}
.slide.statement h1{font-size:clamp(34px,4.6vw,64px);max-width:20ch;line-height:1.05}
.slide.statement .lead{font-size:clamp(19px,1.8vw,24px);max-width:48ch}
/* Card grid */
.cards{margin:10px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cards.count-2,.cards.count-4{grid-template-columns:repeat(2,minmax(0,1fr))}
.cards.count-5{grid-template-columns:repeat(6,minmax(0,1fr))}
.cards.count-5 li{grid-column:span 2}
.cards.count-5 li:nth-child(4){grid-column:2/span 2}
.cards li{display:flex;flex-direction:column;gap:6px;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}
.cards strong{font-size:clamp(20px,1.9vw,27px);line-height:1.15;letter-spacing:-.01em}
.cards p{margin:0;white-space:pre-line;font-size:clamp(15.5px,1.25vw,18px);line-height:1.45;color:var(--fg)}
.card-tag{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:600;color:var(--accent)}
@media (max-width:900px){.cards,.cards.count-2,.cards.count-4,.cards.count-5{grid-template-columns:1fr}.cards.count-5 li,.cards.count-5 li:nth-child(4){grid-column:auto}}
/* Footer: speaker notes button centred. */
.footer-actions{display:flex;gap:8px;justify-content:center}
/* Figure-only slides: the figure uses the full content width. */
.slide .slide-body.with-figure.figure-only .figure-wrap{max-width:none}
.slide .slide-body.with-figure.figure-only .figure-wrap svg{width:100%}
/* ------------------------------------------------------------ layout and look */
/* The slides use the whole window. The content area is wider, a figure fills the height left under the
   title (the SVG keeps its proportions), and cards stretch to the bottom. */
body:not(.reading) main#slide{max-width:1560px}
body:not(.reading) main#slide>.slide{min-height:0}
body:not(.reading) .slide-body.with-figure.figure-only{flex:1;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch}
body:not(.reading) .slide-body.with-figure.figure-only .figure-wrap{height:100%;min-height:0;display:flex;align-items:center;justify-content:center;padding:clamp(14px,2vw,28px)}
body:not(.reading) .slide-body.with-figure.figure-only .figure-wrap svg{width:100%;height:100%;max-height:none}
body:not(.reading) .slide:has(.cards) .cards{flex:1;grid-auto-rows:1fr;gap:clamp(16px,1.6vw,24px)}
.cards li{justify-content:center;padding:clamp(20px,2.2vw,34px) clamp(22px,2.4vw,38px);gap:12px}
.cards strong{font-size:clamp(22px,2.3vw,34px)}
.cards p{font-size:clamp(17px,1.5vw,22px)}
.title-slide .title-subtitle{font-size:clamp(22px,2.3vw,34px);max-width:40ch}
.title-slide .points li{font-size:clamp(15px,1.15vw,17px)}
.title-slide .logos img{max-height:64px;max-width:190px}

/* Larger titles, an accent edge on figures, cards in the diagram colours, an accent bar and the levels pyramid on
   the title slide. */
.slide{position:relative;isolation:isolate}
.slide h1{font-size:clamp(30px,3.9vw,56px);letter-spacing:-.025em}
.figure-wrap{border-top:4px solid var(--accent)}
.cards li{border-top-width:5px}
.cards li:nth-child(4n+1){--card-c:#1A5DB4}
.cards li:nth-child(4n+2){--card-c:#0C7C8C}
.cards li:nth-child(4n+3){--card-c:#C66B2D}
.cards li:nth-child(4n+4){--card-c:#6B4FA0}
.cards li:nth-child(5){--card-c:#1E7F4F}
.cards li{border-top-color:var(--card-c,var(--accent))}
.title-slide{padding-left:clamp(20px,2.4vw,36px);border-left:6px solid var(--accent)}
.title-slide .title-subtitle{color:var(--accent)}

/* A soft colour wash behind the slides, and each slide builds up when it appears: title first,
   then the parts of the diagram one after the other, then the cards. */
body:not(.reading) main#slide{max-width:none;background:radial-gradient(1200px 600px at 100% 0,rgba(26,93,180,.09),transparent 60%),radial-gradient(900px 500px at 0 100%,rgba(12,124,140,.07),transparent 60%)}
body:not(.reading) main#slide>.slide{width:100%;max-width:1560px;margin:0 auto}
@media (prefers-reduced-motion:no-preference){
 @keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
 @keyframes appear{from{opacity:0}to{opacity:1}}
 body:not(.reading) .slide>:is(h1,.lead,.title-subtitle,.title-line,.points,.logos){animation:rise .5s cubic-bezier(.2,.7,.2,1) both}
 body:not(.reading) .slide>h1{animation-delay:.05s}
 body:not(.reading) .slide>:is(.lead,.title-subtitle){animation-delay:.12s}
 body:not(.reading) .slide>:is(.title-line,.points){animation-delay:.2s}
 body:not(.reading) .slide>.logos{animation-delay:.3s}
 body:not(.reading) .figure-wrap{animation:rise .5s .1s cubic-bezier(.2,.7,.2,1) both}
 body:not(.reading) .figure-wrap svg>:not(defs){animation:appear .45s ease both;animation-delay:calc(.2s + min(var(--i,0) * 18ms, 1.2s))}
 body:not(.reading) .cards li{animation:rise .5s cubic-bezier(.2,.7,.2,1) both}
 body:not(.reading) .cards li:nth-child(1){animation-delay:.15s}
 body:not(.reading) .cards li:nth-child(2){animation-delay:.27s}
 body:not(.reading) .cards li:nth-child(3){animation-delay:.39s}
 body:not(.reading) .cards li:nth-child(4){animation-delay:.51s}
 body:not(.reading) .cards li:nth-child(5){animation-delay:.63s}
}
/* The six levels as a large pyramid on the empty right half of the title slide. */
.title-slide{background:url(assets/levels.svg) no-repeat right 2% center/auto min(70%,520px)}
@media (max-width:1100px){.title-slide{background:none}}
/* Reading view: a slide and its speaker notes belong together on screen; printed, the notes get a page of their own. */
body.reading .print-page:has(+ .print-page .slide-notes) .slide{border-bottom:none;padding-bottom:0}
body.reading .slide-notes{padding-bottom:36px;border-bottom:1px solid var(--line-strong)}
body.printing .slide-notes{display:block;margin:12px 0;padding:0;border:none}
body.printing .slide-notes .explanation.print{font-size:10.5pt;line-height:1.5;box-shadow:none}
/* Outlook: four cards in two rows, the open question centred underneath at the same width. */
.slide[data-slide="outlook"] .cards.count-5{grid-template-columns:repeat(4,minmax(0,1fr))}
.slide[data-slide="outlook"] .cards.count-5 li{grid-column:span 2}
.slide[data-slide="outlook"] .cards.count-5 li:nth-child(4){grid-column:span 2}
.slide[data-slide="outlook"] .cards.count-5 li:nth-child(5){grid-column:2/span 2}
@media (max-width:900px){.slide[data-slide="outlook"] .cards.count-5{grid-template-columns:1fr}.slide[data-slide="outlook"] .cards.count-5 li,.slide[data-slide="outlook"] .cards.count-5 li:nth-child(5){grid-column:auto}}
/* Five cards need the height to set their padding and title size, so they still fit on short screens. */
.slide[data-slide="outlook"] .cards.count-5 li{padding:clamp(10px,2.4vh,30px) clamp(20px,2.4vw,38px);gap:8px}
.slide[data-slide="outlook"] .cards.count-5 strong{font-size:clamp(19px,min(2.3vw,3.5vh),34px)}
.slide[data-slide="outlook"] .cards.count-5 p{font-size:clamp(15px,min(1.5vw,2.4vh),22px)}
/* Backup slides: highlighted words in red, as in the quoted original, and the question for the audience in a box at the end. */
mark.hl{background:none;color:#C0392B;font-weight:600}
.slide.is-backup .points li{font-size:clamp(17px,min(1.55vw,2.6vh),24px);line-height:1.4}
.slide.is-backup .question{margin-top:clamp(14px,2.4vh,30px);padding:clamp(14px,2vh,22px) clamp(18px,1.8vw,28px)}
.slide.is-backup .question-text{font-size:clamp(20px,min(1.9vw,3.2vh),30px);font-weight:600;display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
@media (prefers-reduced-motion:no-preference){body:not(.reading) .slide>:is(.question,.slide-sources){animation:rise .5s .35s cubic-bezier(.2,.7,.2,1) both}}
