/* ============================================================
   Gaussian Process Summer School Reveal.js Theme
   Matches the visual language of https://gpss.cc/

   Usage in frontmatter:
     talktheme: white
     talkcss:   gpss.css
     talkfontsize: xs
     potx:      gpss-simple-reference.potx   (optional PowerPoint)

   Brand palette (from https://gpss.cc/assets/css/gpss.css):
     Body text     : #303030
     Heading text  : #111111
     Header bar    : #424242
     Accent blue   : #2A7AE2
     Visited blue  : #1756A9
     Orange accent : #F66A0A
     Muted grey    : #828282
     Code wash     : #EEF
     Page white    : #FFFFFF
   ============================================================ */

/* -- Fonts ----------------------------------------------------------------
   Site uses the system UI stack. Inter is a close open substitute so
   slides look the same on every machine. */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* -- Base slides ---------------------------------------------------------- */
.reveal {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* CIP-0014: deck size comes from talkfontsize (xs / extra-small). */
    color: #303030;
    background-color: #ffffff;
}

.reveal .slides {
    text-align: left !important;
}

.reveal .slides > section {
    text-align: left !important;
    background: transparent;
}

/*
 * Full-page colour + brand chrome live on .slide-background (outside the
 * scaled slide; see https://revealjs.com/backgrounds/). That layer does not
 * receive Reveal's scale transform, so sizes use --slide-scale (set from
 * Reveal.getScale() in slides-header.html).
 *
 * Top 5px #424242 bar matches .site-header on gpss.cc. Circular seal is
 * the GPSS wordmark.
 */
.reveal .slide-background {
    background-color: #ffffff !important;
    background-image:
        url('diagrams/logos/logo-gpss.svg'),
        linear-gradient(#424242, #424242) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position:
        left calc(1.35rem * var(--slide-scale, 1)) top calc(1.55rem * var(--slide-scale, 1)),
        left top !important;
    background-size:
        calc(96px * var(--slide-scale, 1)) auto,
        100% calc(5px * var(--slide-scale, 1)) !important;
}

/* Reveal white theme sets ul/ol to inline-block, which centres them when
   the parent is text-align:center. Force block so lists sit left. */
.reveal ol,
.reveal dl,
.reveal ul {
    display: block !important;
    text-align: left !important;
    margin: 0.2em 0 0.6em 0 !important;
}

/* -- Headings ------------------------------------------------------------- */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.02em;
    color: #111111;
}

.reveal h1 {
    font-size: 1.85em;
    font-weight: 700;
}

.reveal h2 {
    font-size: 1.35em;
    font-weight: 600;
    color: #111111;
    margin-top: 0;
    margin-bottom: 0.55em;
}

.reveal h3 {
    font-size: 1.05em;
    color: #303030;
}

/* -- Title slide ---------------------------------------------------------- */
.reveal section#title-slide {
    text-align: left !important;
}

.reveal section#title-slide h1.title {
    font-size: 2.1em;
    font-weight: 700;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111111;
    text-align: left;
    line-height: 1.15;
    margin: 2.4rem 0 0.5rem 0;
}

.reveal section#title-slide p.subtitle {
    font-size: 0.95em;
    font-weight: 500;
    color: #303030;
    text-align: left !important;
    margin: 0.2rem 0 1.2rem 0;
}

.reveal section#title-slide p.author,
.reveal section#title-slide p.date,
.reveal section#title-slide p.venue {
    font-size: 0.72em;
    color: #828282;
    text-align: left !important;
    margin: 0.15rem 0;
}

.reveal section#title-slide p.author {
    font-weight: 600;
    color: #111111;
    margin-top: 1.4rem;
}

.reveal section#title-slide p.venue {
    color: #2A7AE2;
    font-weight: 500;
}

/* -- Lists ---------------------------------------------------------------- */
.reveal ul,
.reveal ol {
    margin-left: 0 !important;
    padding-left: 0;
    line-height: 1.55;
}

.reveal ul {
    list-style: none;
}

.reveal ul li {
    position: relative;
    padding-left: 0;
    margin-bottom: 0.4em;
}

.reveal ul li::before {
    content: '';
    display: inline-block;
    width: 0.42em;
    height: 0.42em;
    margin-right: 0.55em;
    border-radius: 50%;
    background: #2A7AE2;
    vertical-align: 0.12em;
}

/* -- Blockquotes ---------------------------------------------------------- */
.reveal blockquote {
    border-left: 4px solid #2A7AE2;
    background: #f7f7f7;
    color: #303030;
    padding: 0.55em 1em;
    font-style: italic;
    font-weight: 400;
    width: 92%;
    box-shadow: none;
    font-size: 0.92em;
    margin: 0.5em 0;
}

/* -- Inline code & code blocks -------------------------------------------- */
.reveal code {
    background: #eef;
    color: #111111;
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.82em;
    border: 1px solid #e8e8e8;
}

.reveal pre {
    box-shadow: none;
    border-radius: 3px;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #2A7AE2;
    background: #eef;
}

.reveal pre code {
    background: #eef;
    color: #111111;
    font-size: 0.75em;
    padding: 0.8em 1em;
    border: 0;
}

/* -- Links ---------------------------------------------------------------- */
.reveal a {
    color: #2A7AE2;
    text-decoration: none;
}

.reveal a:hover {
    color: #111111;
    text-decoration: underline;
}

/* -- Progress bar --------------------------------------------------------- */
.reveal .progress {
    background: rgba(66, 66, 66, 0.12);
    color: #2A7AE2;
}

.reveal .progress span {
    background: #2A7AE2;
    transition: width 0.8s cubic-bezier(0.26, 0.86, 0.44, 0.985);
}

/* -- Controls ------------------------------------------------------------- */
.reveal .controls {
    color: #424242;
}

/* -- Tables --------------------------------------------------------------- */
.reveal table {
    border-collapse: collapse;
    font-size: 0.8em;
    color: #3f3f3f;
}

.reveal table th {
    background: #f0f0f0;
    color: #111111;
    padding: 0.4em 0.8em;
    font-weight: 600;
    border: 1px solid #e0e0e0;
}

.reveal table td {
    padding: 0.35em 0.8em;
    border: 1px solid #e8e8e8;
}

.reveal table tr:nth-child(even) td {
    background: #f7f7f7;
}

/* -- Utility classes ------------------------------------------------------ */
.reveal .slides section.scrollable {
    overflow-y: auto !important;
    height: 100% !important;
    top: 0 !important;
    text-align: left;
}

.reveal p {
    text-align: left;
}

.reveal li {
    text-align: left;
}

.reveal .gpss-panel {
    background: #ededed;
    color: #111111;
    padding: 0.8em 1em;
    border-radius: 0.2rem;
    font-weight: 500;
}

.reveal .orange {
    color: #F66A0A;
}

.reveal .grey {
    color: #828282;
}
