/* Leave & Attendance page: the site's own navy, royal blue, orange and light blue. */

.lv { background: var(--white); }
.lv--tint { background: var(--cream); }

.lv__head { max-width: 48rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.lv__lead { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.7; color: #44516b; }

/* Leave: four open columns split by thin dividers. */
.lv__cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
}

.lv-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem clamp(1rem, 2vw, 1.75rem) 1rem;
}

.lv-col + .lv-col { border-left: 1px solid var(--line); }
.lv-col:first-child { padding-left: 0; }

.lv-col__icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--indigo-100);
    color: var(--indigo-700);
}

.lv-col--alt .lv-col__icon { background: #ffe9d6; color: var(--orange-600); }

.lv-col__no,
.lv-rule__no {
    display: inline-grid;
    place-items: center;
    min-width: 2rem;
    height: 1.625rem;
    padding-inline: 0.5rem;
    border-radius: 999px;
    background: var(--indigo-700);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
}

.lv-col--alt .lv-col__no,
.lv-rule--alt .lv-rule__no { background: var(--orange-500); }

.lv-col h3 { margin-block: 0.875rem 0.5rem; font-size: 1.125rem; line-height: 1.3; color: var(--navy-900); }
.lv-col p { font-size: 0.9375rem; line-height: 1.65; color: #44516b; }

.lv-col__bar {
    width: 2rem;
    height: 3px;
    margin-top: auto;
    padding-top: 0;
    border-radius: 2px;
    background: var(--indigo-700);
}

.lv-col p { margin-bottom: 1.25rem; }
.lv-col--alt .lv-col__bar { background: var(--orange-500); }

/* Rules: a three-column grid of equal cards, each rule with a number badge and icon. */
.lv__rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 0;
}

.lv-rule { display: flex; align-items: flex-start; gap: 1rem; }

.lv-rule__no {
    flex: none;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
    font-size: 0.875rem;
}

.lv-rule__icon {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.5rem;
    border-radius: 0.625rem;
    background: var(--indigo-100);
    color: var(--indigo-700);
}

.lv-rule--alt .lv-rule__icon { background: #ffe9d6; color: var(--orange-600); }

.lv-rule h3 { margin-bottom: 0.375rem; font-size: 1.0625rem; line-height: 1.3; color: var(--navy-900); }
.lv-rule p { font-size: 0.9375rem; line-height: 1.65; color: #44516b; }

@media (max-width: 1100px) {
    .lv__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
    .lv-col:nth-child(odd) { border-left: 0; padding-left: 0; }
    .lv__rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .lv__cols,
    .lv__rules { grid-template-columns: minmax(0, 1fr); }
    .lv-col,
    .lv-col + .lv-col { padding-left: 0; border-left: 0; }
    .lv-col + .lv-col { padding-top: 1.5rem; border-top: 1px solid var(--line); }
}

/* Rules: the stagger is gone; each rule starts on the same line as its neighbours, and the number badge, icon and title line up. */
.lv-rule { min-width: 0; }
.lv-rule__body { min-width: 0; }

/* Rules: a plain three-column grid, no boxes; each rule starts on the same line as its neighbours. */
.lv__rules { align-items: start; gap: 2.25rem 2.5rem; }
