/* deck.css: additions for the web version of The Shrinking Perimeter.
 * Loaded after fiedor.css. Adds the Latin Extended subset of Fira Sans
 * (the vendored theme ships Latin only, which has no "ł"), the link bar on
 * the title slide, two-column layouts and inline-chart sizing. */

@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/fira-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/fira-sans-latin-ext-400-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/fira-sans-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/fira-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/fira-sans-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Title slide: links to the paper and the essay */
.reveal .title-slide .links { margin-top: 22px; font-size: 18px; }
.reveal .title-slide .links a {
  color: var(--fd-accent); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--fd-rule); margin-right: 26px;
}
.reveal .title-slide .links a:hover { border-bottom-color: var(--fd-accent); }
.reveal .title-slide .hint { color: var(--fd-muted); font-size: 14px; margin-top: 12px; }

/* Links elsewhere */
.reveal a { color: var(--fd-accent); }
.reveal .backlink { font-size: 0.5em; color: var(--fd-muted); margin-top: 8px; }
.reveal .backlink a { color: var(--fd-muted); }

/* Two columns */
.reveal .cols { display: flex; gap: 40px; align-items: flex-start; }
.reveal .cols > div { flex: 1 1 0; }
.reveal .cols table { margin: 6px 0; }

/* Inline charts */
.reveal .chart svg { display: block; width: 100%; max-height: 50vh; height: auto; margin: 0 auto; }

/* Tighter tables when they carry many rows */
.reveal table.dense { font-size: 0.56em; }
.reveal table.dense th, .reveal table.dense td { padding: 4px 12px; }
.reveal table td.l { text-align: left; }
.reveal table tr.sep td { border-top: 0.75px solid var(--fd-rule); }
.reveal table tr.strong td { font-weight: 600; }

/* Backup menu */
.reveal .menu { columns: 2; column-gap: 50px; font-size: 0.66em; }
.reveal .menu li { break-inside: avoid; }

/* Exhibits: the SVGs carry their print size (about 550px wide); scale them to the slide */
.reveal figure img { width: 100%; height: auto; max-height: 470px; object-fit: contain; }
.reveal .chart svg { max-height: 440px; }

/* Web reading: slightly larger small print and dense tables than the projector theme */
.reveal .source { font-size: 0.55em; }
.reveal table.dense { font-size: 0.62em; }

/* Keep the takeaway clear of the navigation arrows and slide number */
.reveal .takeaway { margin-right: 64px; }
.reveal .slide-number { right: auto; left: 16px; }

/* Table slides: the projector theme sets tables at 0.68em, which leaves a
   web slide mostly empty. Larger type, more air, and the table block centred
   in the space between the title and the takeaway. */
.reveal section > table { font-size: 1em; margin: auto auto 0 auto; }
.reveal section > table.dense { font-size: 0.8em; }
.reveal section > table th, .reveal section > table td { padding: 9px 20px; }
.reveal section > table.dense th, .reveal section > table.dense td { padding: 6px 16px; }
.reveal .cols { margin-top: auto; }
.reveal .cols table { font-size: 0.9em; }
.reveal .cols table th, .reveal .cols table td { padding: 9px 16px; }
.reveal section > table + .source, .reveal .cols + .source { margin-top: 18px; }
