/* How-to readable reading layout */

.howto-content {
    background: #f7f7f8;
    padding-bottom: 72px;
}

.howto-hero {
    background: #1d1d1f;
    color: #fff;
    padding: 56px 0 48px;
    margin-bottom: 40px;
}

.howto-hero-inner {
    max-width: 760px;
}

.howto-kicker {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
}

.howto-kicker a {
    color: #ff6b6b;
    text-decoration: none;
}

.howto-title {
    margin: 0 0 16px;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
}

.howto-deck {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .78);
    max-width: 42em;
}

.howto-layout {
    max-width: 760px;
    margin: 0 auto;
}

.howto-article {
    background: #fff;
    border: 1px solid #e7e7ea;
    border-radius: 8px;
    padding: 40px 44px 48px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.howto-entry {
    color: #222;
    font-size: 18px;
    line-height: 1.7;
}

.howto-entry > *:first-child {
    margin-top: 0;
}

.howto-entry p,
.howto-entry ul,
.howto-entry ol {
    margin: 0 0 1.15em;
}

.howto-entry li {
    margin-bottom: .35em;
}

.howto-entry a {
    color: #c94c4c;
}

.howto-entry h2 {
    margin: 1.75em 0 .65em;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #111;
}

.howto-entry h3 {
    margin: 1.4em 0 .5em;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #1a1a1a;
}

.howto-entry h2:first-child,
.howto-entry h3:first-child {
    margin-top: 0;
}

.howto-entry ul,
.howto-entry ol {
    padding-left: 1.25em;
}

.howto-entry code {
    background: #f2f2f4;
    border-radius: 4px;
    padding: .1em .35em;
    font-size: .92em;
}

.howto-figure {
    margin: 1.5em 0 1.75em;
    background: #fafafa;
    border: 1px solid #ececf0;
    border-radius: 8px;
    overflow: hidden;
}

.howto-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.howto-figure figcaption {
    padding: 10px 14px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    border-top: 1px solid #ececf0;
}

.howto-toc {
    background: #f8f8fa;
    border: 1px solid #ebebef;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 0 0 1.75em;
}

.howto-toc ol {
    margin: .5em 0 0;
}

.howto-checklist {
    background: #fff8f8;
    border: 1px solid #f0d0d0;
    border-radius: 8px;
    padding: 18px 22px;
}

/* Archive cards */
.howto-archive-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.howto-archive-card {
    background: #fff;
    border: 1px solid #e7e7ea;
    border-radius: 8px;
    padding: 28px 30px;
}

.howto-archive-title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.25;
}

.howto-archive-title a {
    color: #111;
    text-decoration: none;
}

.howto-archive-title a:hover {
    color: #c94c4c;
}

.howto-archive-excerpt {
    color: #555;
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 12px;
}

.howto-archive-more {
    color: #c94c4c;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 767px) {
    .howto-hero {
        padding: 36px 0 32px;
        margin-bottom: 24px;
    }

    .howto-title {
        font-size: 30px;
    }

    .howto-deck {
        font-size: 16px;
    }

    .howto-article {
        padding: 24px 18px 32px;
        border-radius: 6px;
    }

    .howto-entry {
        font-size: 16px;
    }

    .howto-entry h2 {
        font-size: 24px;
    }

    .howto-entry h3 {
        font-size: 19px;
    }
}
