/* Reference-instance theme — the editorial vocabulary for a Missionary-Newsletter
   style issue: a banner masthead, poem and recipe blocks, and the home-page hero
   typography. Per the one-image contract this CSS is *instance data*: it belongs in
   the instance volume, not the image — paste or upload it at /Admin/Theme (served
   at /media/theme/instance.css). The class names it styles must match the
   ContentStyle rows registered at /Admin/Styles so the editor's Styles dropdown
   exposes them (see #37, #38, #60).

   The typefaces it names — Merriweather, Montserrat, Bokor, all SIL OFL — are
   self-hosted with the app (see #64 and wwwroot/css/fonts.css), so no Google Fonts
   CDN is involved. The neutral site ships with no theme and renders in the system
   font stack. */

/* --- Banner masthead (issue page) --- */
.banner-montserrat {
    border: double;
    background-color: lightgrey;
    font-family: 'Montserrat', sans-serif;
}

.banner-bokor {
    border: double;
    background-color: lightgrey;
    font-family: 'Bokor', cursive;
}

.banner-title {
    font-size: calc(1.375rem + 1.5vw);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.banner-subtitle {
    font-size: calc(1.3rem + 0.6vw);
    letter-spacing: 5px;
}

.banner-thirdrow {
    font-size: calc(.8rem + 0.5vw);
    padding: 0 5px 0 5px;
    letter-spacing: 1px;
}

/* --- Home-page hero typography --- */
.jumbotron .title {
    font-weight: bold;
    letter-spacing: 5px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.jumbotron .subtitle {
    letter-spacing: 5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

/* --- Poem block --- */
.poem {
    padding: .5em;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Merriweather', serif;
    font-weight: 300;
    font-size: .85rem;
}

.poem .title {
    font-weight: bold;
    text-align: center;
    text-decoration: underline;
}

.poem .byline {
    font-size: smaller;
    text-align: center;
    margin-bottom: 1em;
}

.poem p {
    break-inside: avoid;
    text-align: left;
}

/* --- Recipe block --- */
.recipe {
    border: 1px dashed;
    padding: .7em .7em 0 .7em;
    background-color: #FFFDD0;
    font-family: 'Courier New', Courier, monospace;
    break-inside: avoid;
    margin-bottom: .7em;
}

.recipe .title {
    font-weight: bold;
    text-align: center;
}

.recipe p {
    text-align: left;
}

/* --- Print: keep the blocks tight and unbroken on the page --- */
@media print {
    .poem {
        padding: .5em .5em 0 .5em !important;
        margin-bottom: 0 !important;
    }

    .poem,
    .poem p,
    .poem .title,
    .poem .byline {
        font-size: 8.5pt !important;
        line-height: 1.1 !important;
    }

    .poem .title {
        margin-bottom: 0 !important;
    }

    .poem .byline {
        margin-top: 0 !important;
        margin-bottom: 3pt !important;
    }

    .poem p {
        margin-bottom: 3pt !important;
    }

    .recipe {
        padding: .7em !important;
        font-size: 8.5pt;
        line-height: 1;
        margin-bottom: 5pt !important;
    }

    .recipe .title {
        margin-bottom: 2pt !important;
        line-height: 1.1 !important;
    }

    .recipe p {
        margin-top: 0 !important;
        margin-bottom: 4pt !important;
    }

    .recipe p:last-child {
        margin-bottom: 0 !important;
    }

    .banner-montserrat,
    .banner-bokor {
        border: 3pt double #000000 !important;
        background-color: #d3d3d3 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        padding: 4pt 0 !important;
        margin-bottom: 12pt !important;
        display: block;
        width: 100%;
    }

    .row:has(.banner-montserrat),
    .row:has(.banner-bokor) {
        margin-bottom: 0 !important;
    }

    .banner-title {
        font-size: 18pt !important;
        line-height: 1.1;
        margin: 0 !important;
    }

    .banner-subtitle {
        font-size: 12pt !important;
        margin: 0 !important;
    }

    .banner-thirdrow {
        font-size: 9pt !important;
        margin: 0 !important;
    }

    .banner-montserrat > .d-flex,
    .banner-bokor > .d-flex {
        margin-top: 0 !important;
        margin-bottom: 1pt !important;
    }
}
