/* ── La page d'un enfant ──────────────────────────────────────
   A child's page for their legal representative, in the import kit's frame: the tasks and the week
   in the main column, the licence and the squad in the rail. */

.cp-week {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cp-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cp-section__title {
    margin: 0;
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
}

.cp-go {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: 600 13px/1.2 var(--font-body, inherit);
    color: var(--dark-fg-2);
    text-decoration: none;
    white-space: nowrap;
}

.cp-go svg { color: var(--thonon-blue-bright); }
.cp-go:hover { color: #fff; }

.cp-card {
    overflow: hidden;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    background: var(--thonon-night);
}

.cp-card__foot {
    margin: 0;
    padding: 9px 14px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--dark-fg-3);
    background: rgba(255, 255, 255, 0.015);
}

.cp-empty {
    margin: 0;
    padding: 14px;
    font-size: 13px;
    color: var(--dark-fg-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* A day of the week, as the agenda draws it: the date, the kind, what and where, the answer. */
.cp-row {
    display: grid;
    grid-template-columns: 46px 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cp-row--today { background: rgba(240, 192, 48, 0.05); }

.cp-row__date { text-align: center; }

.cp-row__day {
    display: block;
    font: 700 22px/0.9 var(--font-display);
    color: #fff;
}

.cp-row--today .cp-row__day { color: var(--thonon-yellow); }

.cp-row__dow {
    display: block;
    margin-top: 4px;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.cp-row__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(52, 164, 224, 0.34);
    border-radius: 6px;
    background: rgba(52, 164, 224, 0.12);
    color: var(--thonon-blue-bright);
}

.cp-row__icon--match {
    border-color: rgba(240, 192, 48, 0.4);
    background: rgba(240, 192, 48, 0.14);
    color: var(--thonon-yellow);
}

.cp-row__what {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cp-row__title {
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.25;
    color: #fff;
}

.cp-row__meta {
    overflow: hidden;
    font: 600 12px/1.3 var(--font-mono);
    color: var(--dark-fg-3);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The rail: the licence, bordered in the family's blue, then the squad. */
.cp-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    background: var(--thonon-night);
}

.cp-panel--licence { box-shadow: inset 0 3px 0 var(--thonon-blue-bright); }

/* The squad's Google calendar, at the foot of « Son collectif ». */
.cp-subscribe {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--dark-border-1);
}

.cp-subscribe__note {
    margin: 0;
    font: 400 12px/1.5 var(--font-body, inherit);
    color: var(--dark-fg-3);
}

/* The family's season around the child's matches: trips, jerseys washed, snacks. */
.cp-duties {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.cp-duties__note {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--dark-fg-3);
}

.cp-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cp-reads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.cp-reads dt {
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.cp-reads dd {
    margin: 4px 0 0;
    font-size: 14px;
    color: #fff;
}

.cp-reads dd.cp-dim { color: var(--dark-fg-3); }

.cp-squad {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cp-squad__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cp-squad__name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.cp-squad__sub,
.cp-coach__role {
    font-size: 12px;
    color: var(--dark-fg-3);
}

.cp-coach {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.cp-coach__name {
    font-weight: 500;
    font-size: 13px;
    color: #fff;
}

@media (max-width: 900px) {
    .cp-section__head { flex-wrap: wrap; }

    .cp-row {
        grid-template-columns: 38px 28px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
    }

    .cp-row__answer {
        grid-column: 3;
    }

    .cp-row__answer:empty { display: none; }
}


/* « Son équipe »: the team's code, its standing, the next match in yellow. */
.cp-team__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.cp-team__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 64px;
    height: 52px;
    padding: 0 10px;
    border: 1px solid var(--dark-border-2);
    border-radius: var(--radius-card);
    background: var(--thonon-black);
    font: 400 22px/1 var(--font-display);
    color: var(--thonon-yellow);
}

.cp-next {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--thonon-yellow-deep);
    border-radius: var(--radius-card);
    background: rgba(240, 192, 48, 0.06);
}

.cp-next__title { font: 700 13px/1.2 var(--font-condensed); letter-spacing: 0.12em; text-transform: uppercase; color: var(--thonon-yellow); }
.cp-next__teams { font: 800 20px/1.15 var(--font-condensed); text-transform: uppercase; }
.cp-next__when { font-size: 14px; color: var(--dark-fg-2); }
.cp-panel .gk-slot + .gk-slot { margin-top: 6px; }
