/*======================================================================================================================
    LR_cards.css  —  Link cards for Laminar manuals.  Shared file: edit the copy in _TOOLS_/master_templates/ and
    run update_templates.sh, never a project's copy (it is overwritten on every template update).
    Icons live in each manual's own docs/extras/card_icons/ folder (see the README.txt there).

    Two-column grid that fills in reading order: card 1 → row 1 col 1, card 2 → row 1 col 2, card 3 → row 2 col 1 ...
    Drops to one column on narrow screens. Markup (one <a> per card; the whole card is the link):

        <div class="lr-cards">
          <a class="lr-card" href="page.html">
            <span class="lr-card-icon"><img src="extras/card_icons/icon.svg" alt=""></span>
            <span class="lr-card-text">
              <span class="lr-card-title">Title</span>
              <span class="lr-card-desc">Tagline.</span>
            </span>
            <span class="lr-card-chevron" aria-hidden="true"></span>
          </a>
        </div>

    Note: hrefs in raw HTML are not rewritten by MkDocs — link to the built .html page, not the .md file.
======================================================================================================================*/

.lr-cards {
    display:                grid;
    grid-template-columns:  1fr 1fr;
    gap:                    14px 20px;
    margin:                 20px 0 30px;
}

@media (max-width: 900px) {
    .lr-cards { grid-template-columns: 1fr; }
}

.wm-page-content a.lr-card {
    display:            flex;
    align-items:        center;
    gap:                16px;
    padding:            14px 16px;
    background:         #ffffff;
    border:             1px solid #d9e1e8;
    border-radius:      10px;
    box-shadow:         0 1px 2px rgba(16, 42, 67, 0.06);
    color:              inherit;
    text-decoration:    none;
    transition:         border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wm-page-content a.lr-card:hover,
.wm-page-content a.lr-card:focus-visible {
    border-color:       #0FB5E8;
    box-shadow:         0 3px 10px rgba(16, 42, 67, 0.12);
    text-decoration:    none;
    transform:          translateY(-1px);
}

/* Pale-blue icon tile */
.lr-card-icon {
    flex:               0 0 52px;
    height:             52px;
    display:            flex;
    align-items:        center;
    justify-content:    center;
    background:         #e3f3fb;
    border-radius:      8px;
}

.wm-page-content .lr-card-icon img {
    width:              28px;
    height:             28px;
    background:         transparent;    /* base CSS gives content images a white background */
    border:             none;
    margin:             0;
}

.lr-card-text {
    flex:               1 1 auto;
    display:            flex;
    flex-direction:     column;
    gap:                3px;
    min-width:          0;
}

.lr-card-title {
    font-family:        'Lato', sans-serif;
    font-weight:        700;
    font-size:          17px;
    line-height:        1.25;
    color:              #1f2a33;
}

.lr-card-desc {
    font-family:        'Lato', sans-serif;
    font-size:          14px;
    line-height:        1.35;
    color:              #55626e;
}

/* Chevron drawn with CSS borders, so it needs no icon file or font */
.lr-card-chevron {
    flex:               0 0 auto;
    width:              8px;
    height:             8px;
    margin-right:       4px;
    border-top:         2px solid #1f2a33;
    border-right:       2px solid #1f2a33;
    transform:          rotate(45deg);
}
