/*
 * AAMV design system: homepage (Homepage/*.html.twig), loaded by Homepage/index.html.twig. Page-specific
 * layout, prefixed by the page class (.page-home) as in pages.css.
 */

/* ---------- Visitor's hero: text and doors on the left, logo "blob" and members badge on the right ---------- */
.page-home .home-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 456px;
    align-items: center;
    gap: 72px;
}
.page-home .home-hero__kicker { align-self: flex-start; white-space: nowrap; }
.page-home .home-hero__title { margin: 0; font-size: var(--a-fs-h1-hero); line-height: 1.04; }
.page-home .home-hero__mark {
    color: var(--a-coral);
    text-decoration: underline wavy var(--a-sun);
    text-decoration-thickness: 4px;
    text-underline-offset: 14px;
    text-decoration-skip-ink: none;
}
.page-home .home-hero__text .a-lead { margin: 0; }

.page-home .home-hero__art { position: relative; width: 100%; aspect-ratio: 1; }
.page-home .home-hero__art::before,
.page-home .home-hero__art::after { content: ""; position: absolute; }
.page-home .home-hero__art::before { inset: 0; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: var(--a-sun); }
.page-home .home-hero__art::after {
    inset: 22px;
    border: 3px dashed var(--a-ink);
    border-radius: 52% 48% 56% 44% / 46% 54% 46% 54%;
    background: var(--a-card);
}
.page-home .home-hero__logo {
    position: absolute;
    z-index: 1;
    top: 21%;
    left: 10.5%;
    width: 79%;
    height: auto;
    object-fit: contain;
}
.page-home .home-hero__stat { position: absolute; z-index: 2; right: -8px; bottom: 32px; max-width: 220px; }

/* ---------- Welcome bands (parent, assistant, member) ---------- */
.page-home .home-welcome {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: var(--a-gutter);
}
.page-home .home-welcome > :nth-child(odd) { grid-column: span 7; }
.page-home .home-welcome > :nth-child(even) { grid-column: span 5; }
.page-home .home-welcome__kicker { align-self: flex-start; }
.page-home .home-welcome .a-band__title,
.page-home .home-member .a-band__title,
.page-home .home-welcome .a-band__lead,
.page-home .home-member .a-band__lead { margin: 0; }

.page-home .home-member { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 32px; }

/* Card head: overline on the left, status chip on the right */
.page-home .home-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }

/* Row of buttons */
.page-home .home-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Members' latest documents (side card) ---------- */
.page-home .home-files__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.page-home .home-files__list > li + li { border-top: var(--a-border) dashed var(--a-line); }
.page-home .home-file {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    padding: 12px 0;
    color: var(--a-ink);
    text-decoration: none;
}
.page-home .home-file:hover .home-file__name { color: var(--a-coral); }
.page-home .home-file__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.page-home .home-file__name { font-size: var(--a-fs-field); font-weight: 800; overflow-wrap: anywhere; }
.page-home .home-file__meta { color: var(--a-muted); font-size: var(--a-fs-small); font-weight: 600; }

/* ---------- Members' news cards: an odd last card takes the whole row (no half-empty row) ---------- */
.page-home .home-news-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/*
 * ---------- Call card (Homepage/_call_card.html.twig) ----------
 * Completes a row of 3 cards holding 1 or 2 of them; .home-call--fill-N spans the N empty columns.
 */
.page-home .home-call { justify-content: center; border-style: dashed; border-color: var(--a-line-strong); background: transparent; }
.page-home .home-call--fill-2 { grid-column: span 2; }

/* ---------- "See all" button at the foot of a section (Homepage/_see_all.html.twig): phones only ---------- */
.page-home .home-see-all { display: none; margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .page-home .home-hero__inner { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
}
@media (max-width: 991.98px) {
    .page-home .home-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .page-home .home-hero__art { display: none; }
    .page-home .home-welcome { grid-template-columns: minmax(0, 1fr); }
    .page-home .home-welcome > :nth-child(n) { grid-column: auto; }
    /* 2 columns: the call card completes a single card only */
    .page-home .home-call--fill-2 { grid-column: auto; }
    .page-home .home-call--fill-1 { display: none; }
}
@media (max-width: 767.98px) {
    .page-home .home-hero__mark { text-underline-offset: 10px; text-decoration-thickness: 3px; }
    .page-home .home-actions > .btn { width: 100%; }
    /*
     * The band star goes to the top right corner on phones (layout.css), where the kicker chip starts: the chip
     * keeps clear of it (the bands of the homepage have no .a-band__inner, whose rule does the same).
     */
    .page-home :is(.home-hero__kicker, .home-welcome__kicker) { max-width: calc(100% - 48px); }
    /* One column: no call card; the "see all" button follows the list instead of the section title (T17) */
    .page-home .home-call { display: none; }
    .page-home .a-section-head > .btn { display: none; }
    .page-home .home-see-all { display: block; }
}
