/* CP17 — Home rows for Nữ 18-derived/clone tasks.
   Each published task uses one four-book row, matching the Nữ 18 book strip. */
.ng-home-derived-task {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eeeeee;
}

.ng-home-derived-task__title {
    display: inline-block;
    margin: 0;
    padding: 10px 0 2px;
    color: #111111;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.ng-home-derived-task__title:focus-visible {
    outline: 2px solid var(--ng-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.ng-home-derived-task__books {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    min-width: 0;
    padding: 8px 0 10px;
}

.ng-home-derived-task__book {
    display: block;
    min-width: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.ng-home-derived-task__book img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 158px;
    object-fit: contain;
    object-position: center bottom;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.ng-home-derived-task__book:focus-visible {
    outline: 2px solid var(--ng-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 420px) {
    .ng-home-derived-task__books {
        gap: 4px;
        padding-top: 7px;
    }

    .ng-home-derived-task__book img {
        max-height: 148px;
    }
}

@media (max-width: 359px) {
    .ng-home-derived-task__books {
        gap: 3px;
    }

    .ng-home-derived-task__book img {
        max-height: 132px;
    }
}
