/*======================================================================================================================
    LR_windmill-index.css  —  Cover-page header for Laminar manuals

    Shared across manuals. Used ONLY by the cover page (docs/index.md), which contains:

        <div class="cover-header">
          <div class="cover-header-text">
            <img class="cover-header-logo" src="<manual>_cover_logo.svg" alt="...">
            <span class="cover-header-subtitle">User Manual</span>
          </div>
          <img class="cover-header-x" src="extras/gradientX.png" alt="">
        </div>

    The header sits inside the content card (div.wm-page-content), so wm_base.js SPA navigation swaps it in and
    out with the page content — no template or JS changes needed.

    Per-manual tuning goes in the manual's own LR_windmill-<manual>.css, in :root:
        --cover-subtitle-indent    shifts the subtitle right so it lines up under the title, past the logo icon.
    The header follows the card's side padding (--content-padding-left) automatically, so a manual that
    widens or narrows its page there needs nothing extra here.
======================================================================================================================*/

/* Lato Light, used only by the cover subtitle. Given its own family name so it can't change any
   other text on the site that asks for a light Lato weight. */
@font-face {
    font-family:    "Lato Light Cover";
    font-weight:    300;
    src:            url('../fonts/Lato-Light.ttf') format('truetype');
}

.cover-header {
    position:       relative;
    height:         170px;
    display:        flex;
    align-items:    center;
    overflow:       hidden;
    background:     linear-gradient(90deg, #04121f 0%, #073553 45%, #0b6a9c 100%);

    /* Bleed to the card edges: cancel the card's 20px top padding and its side padding */
    margin:         -20px
                    calc(-1 * var(--content-padding-left, 100px))
                    30px;
    border-radius:  12px 12px 0 0;      /* match the card's rounded top corners */
}

.cover-header-text {
    position:       relative;           /* keep text above the X */
    z-index:        1;
    display:        flex;
    flex-direction: column;
    align-items:    flex-start;         /* don't stretch the logo to the subtitle's width (it would shift right) */
    padding-left:   48px;
}

.wm-page-content img.cover-header-logo {
    height:         80px;               /* scales the SVG; width follows */
    width:          auto;
    max-width:      none;
    display:        block;
    background:     transparent;        /* base CSS gives content images a white background */
    border:         none;
}

.cover-header-subtitle {
    font-family:    'Lato Light Cover', 'Lato', sans-serif;
    font-size:      20px;
    font-weight:    300;
    line-height:    1;
    color:          #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.55em;             /* the wide "U S E R   M A N U A L" spacing */
    margin-top:     8px;
    padding-left:   var(--cover-subtitle-indent, 0px);
}

.wm-page-content img.cover-header-x {
    position:       absolute;
    right:          -20px;
    top:            0;
    height:         100%;
    width:          auto;
    max-width:      none;
    background:     transparent;
    border:         none;
    opacity:        0.35;               /* faint X; adjust to taste */
    pointer-events: none;
}
