@charset "utf-8";

/*
    One feature detail page.
    ? .feature-point-list itself moved here from features.css - it used to sit in a two-column
    ? row beside the icon/name/lede; here it is the page's main content, full width.
*/

.feature-detail-badge {
    margin: 0 0 24px;
}

.feature-point-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-point-list li {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 16.5px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--mp-border);
}

.feature-point-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-point-list li > i {
    color: var(--mp-red);
    font-size: 14px;
    margin-top: 5px;
    flex: 0 0 auto;
}

.feature-point-list li > span:first-of-type {
    flex: 1 1 240px;
}

/*  Read as a single column of prose, not stretched across the whole content-container */
.feature-point-list-standalone {
    max-width: 780px;
}

/*  A feature with a picture: the checklist on the left, the picture on the right. Stacks below
    ? 900px, picture under the list. The list's own 780px cap is lifted inside the layout, since the
    ? column is what limits it there. */
.feature-detail-layout {
    display: flex;
    align-items: center;
    gap: 48px;
}

.feature-detail-main {
    flex: 1 1 0;
    min-width: 0;
}

.feature-detail-layout .feature-point-list-standalone {
    max-width: none;
}

.feature-detail-figure {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.feature-detail-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--mp-radius-lg);
    box-shadow: var(--mp-shadow-lift);
}

@media (max-width: 899px) {

    .feature-detail-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }
}

/*  Teaser to the pages under this feature - a wide row rather than a tile, since there is usually
    ? only one and a lone tile would sit in a third of the width */
.feature-children {
    padding: 48px 0 8px;
}

.feature-child-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 780px;
}

.feature-child {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    padding: 22px 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.feature-child:hover,
.feature-child:focus {
    border-color: #cfd6dd;
    box-shadow: var(--mp-shadow-lift);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.feature-child-icon {
    font-size: 24px;
    color: var(--mp-red);
    flex: 0 0 auto;
}

.feature-child-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-child-name {
    font-size: 17px;
    font-weight: 700;
}

.feature-child-line {
    font-size: 14.5px;
    color: var(--mp-muted);
}

.feature-child .tile-card-go {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 767px) {

    .feature-child {
        flex-wrap: wrap;
    }

    .feature-child-body {
        flex: 1 1 200px;
    }

    .feature-point-list li {
        font-size: 15.5px;
    }
}

/*  "How it works" - numbered steps, same look as the steps on a page under a feature */
.feature-steps-section {
    padding: 56px 0 16px;
}

.feature-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    counter-reset: feature-step;
}

.feature-steps li {
    counter-increment: feature-step;
    background-color: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    padding: 24px;
}

.feature-steps li::before {
    content: counter(feature-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--mp-red);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
}

.feature-step-title {
    font-size: 17px;
    margin: 0 0 8px;
}

.feature-step-text {
    font-size: 15px;
    color: var(--mp-muted);
    margin: 0;
}

/*  The catalogues a feature works with - a wash band so it reads as its own showcase */
.feature-catalogues {
    background-color: var(--mp-wash);
    padding: 56px 0;
    margin-top: 48px;
}

.feature-catalogues-lede {
    font-size: 17px;
    color: var(--mp-muted);
    max-width: 68ch;
    margin: 0 0 28px;
}

.catalogue-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.catalogue-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 132px;
    padding: 24px 16px;
    text-align: center;
    background-color: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
}

.catalogue-card-icon {
    font-size: 22px;
    color: var(--mp-red);
    margin-bottom: 4px;
}

.catalogue-card-name {
    font-size: 19px;
    font-weight: 700;
}

.catalogue-card-note {
    font-size: 14px;
    color: var(--mp-muted);
}

.feature-catalogues-note {
    font-size: 14px;
    color: var(--mp-muted);
    max-width: 78ch;
    margin: 24px 0 0;
}
