/* The "What's inside" page contains three large parts, split into chapters,
 each of which cover topics. */

/* The vertical space between each topic */


/* The indent of a topic relative to its chapter heading */


/* The horizontal space between each chapter */


/* The vertical space between each chapter */


/* The space between the chapter heading and the first topic */


/* The space between the part heading and the chapter heading */


/* The vertical space between each part */


/* The vertical space between the main content and the footer */




body.whats-inside {
    /* The page doesn't contain any paragraphs -- make it wider for more cols */
    max-width: 1500px;
}

body.whats-inside,
body.intro-page,
body.chapter-page {
    background-color: #fffdf3;
}

body.whats-inside #main-content,
body.intro-page header > h1.intro-name {
    margin-top: 80px;
}

body.whats-inside #main-content,
body.intro-page #main-content {
    margin-bottom: 80px;
}

body.whats-inside ol,
body.whats-inside ul {
    list-style: none;
}

/* Font styles */
body.whats-inside header > h1.intro-name,
body.intro-page header > h1.intro-name {
    font-family: Source Serif Pro;
    font-weight: 400;
    font-size: 28px;
}


body.whats-inside ol.parts h2 {
    font-family: Source Serif Pro;
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 19px;
}

/* Chapter heading */
body.whats-inside ol.chapters h3 {
    font-family: Source Serif Pro;
    font-size: 21px;
    font-weight: 600;
    font-variant: small-caps;
}

/* Link to next page */
body.whats-inside footer,
body.intro-page footer {
    text-align: right;
    font-family: Source Serif Pro, serif;
    font-weight: 600;
    font-size: 21px;
}


/* Spacing */

body.whats-inside ol.parts {
    /* Override the default padding */
    padding-left: 0;
}

body.whats-inside ol.parts > li {
    padding-top: 52.800000000000004px;
    margin-top: 26.400000000000002px;
    /* Line division between parts */
    border-top: 1px dashed grey;
}

body.whats-inside ol.parts > li > h2 {
    /* Override the default margin */
    margin-top: 0;
    margin-bottom: 40px;
}

body.whats-inside ol.chapters {
    /* Override the default padding */
    padding-left: 0;
    grid-row-gap: 40px;
    grid-column-gap: 20px;
}

body.whats-inside ol.chapters ul {
    padding-left: 20px;
}

body.whats-inside ol.chapters > li > h3 {
    /* Override the default margin */
    margin-top: 0;
    margin-bottom: 20px;
}

body.whats-inside li.topic {
    margin-bottom: 10px;
}

/* Chapter grid */
body.whats-inside ol.chapters {
    display: grid;
    grid-auto-rows: auto;
}

@media not (max-width: 500px) {
    body.whats-inside ol.chapters {
        grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    }
}

@media (max-width: 500px) {
    body.whats-inside ol.chapters {
            grid-template-columns: 1fr;
    }
}


