/* Site overrides on top of the Ghost theme (assets/built/screen.css). */

:root {
    --primary-text-color: #1b1b1f;
    --secondary-text-color: #5f6368;
    --dark-gray-color: #121214;
    --font-base: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-alt: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-serif: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --accent-dark: #b85a12;
    --line: #e3e4e8;
}

body {
    font-size: 16px;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.015em;
}

.menu-item-link {
    font-weight: 700;
}

/* --- Listing cards --- */

.post-feed .post-title {
    font-size: 20px;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--secondary-text-color);
    font-size: 15px;
}

.post-tag {
    font-weight: 700;
}

.post-link {
    background: var(--dark-gray-color);
    border-radius: 6px;
    color: #fff;
    display: inline-block;
    font-size: 12px;
    padding: 10px 16px;
}

.post-footer {
    align-items: center;
    height: auto;
    padding-bottom: 16px;
    padding-top: 16px;
}

.post-link:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* --- Article --- */

.single .post-title {
    font-size: 38px;
    line-height: 1.15;
}

.post-content {
    font-size: 18px;
    line-height: 1.7;
}

/* Ghost's card CSS pins direct children of .gh-content to 15px. */
.post-content.gh-content > p:not(.answer),
.post-content.gh-content > ul,
.post-content.gh-content > ol,
.post-content.gh-content > dl {
    font-size: inherit;
}

.gh-content p {
    margin: 0 0 20px;
}

.gh-content h2 {
    border-top: 1px solid var(--line);
    font-size: 28px;
    margin: 44px 0 16px;
    padding-top: 36px;
}

.gh-content h3 {
    font-size: 21px;
    margin: 32px 0 10px;
}

.gh-content strong {
    color: #000;
    font-weight: 700;
}

.gh-content a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--ghost-accent-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.gh-content a:hover {
    color: var(--accent-dark);
}

.gh-content ul,
.gh-content ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.gh-content li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.gh-content li::marker {
    color: var(--accent-dark);
    font-weight: 700;
}

.gh-content figure {
    margin: 28px 0;
}

.gh-content .answer {
    background: #fff6ec;
    border-left: 4px solid var(--ghost-accent-color);
    border-radius: 0 8px 8px 0;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 26px;
    padding: 18px 22px;
}

.keypoints {
    background: #f7f7f9;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 0 0 26px;
    padding: 20px 24px;
}

.gh-content .keypoints__title,
.gh-content .toc__title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.07em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.gh-content .keypoints ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gh-content .keypoints li {
    padding-left: 30px;
    position: relative;
}

.gh-content .keypoints li:last-child {
    margin-bottom: 0;
}

.keypoints li::before {
    color: var(--accent-dark);
    content: "\2713";
    font-weight: 800;
    left: 2px;
    position: absolute;
}

.toc {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 0 0 8px;
    padding: 20px 24px;
}

.gh-content .toc ol {
    columns: 2;
    column-gap: 32px;
    font-size: 16px;
    margin: 0;
}

.gh-content .toc li {
    break-inside: avoid;
    margin-bottom: 6px;
}

.gh-content .toc a {
    font-weight: 500;
    text-decoration-thickness: 1px;
}

.table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 0 26px;
    overflow-x: auto;
}

.table-wrap table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    font-size: 16px;
    line-height: 1.45;
    margin: 0;
    min-width: 520px;
}

.table-wrap th {
    background: var(--dark-gray-color);
    border: 0;
    color: #fff;
    font-size: 14px;
    padding: 12px 14px;
    white-space: nowrap;
}

.table-wrap td {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 12px 14px;
    vertical-align: top;
}

.table-wrap tbody tr:nth-child(even) td {
    background: #f7f7f9;
}

.table-wrap td:first-child {
    font-weight: 600;
}

.gh-content .table-wrap a {
    text-decoration-thickness: 1px;
}

.pick {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin: 26px 0;
    padding: 26px 26px 10px;
}

.gh-content .pick h3 {
    font-size: 23px;
    margin-top: 0;
}

.gh-content .pick img {
    border-radius: 8px;
}

/* Inside a pick the heading already names the product, so the card is just photo and button. */
.pick .product-card {
    align-items: center;
    background: none;
    border: 0;
    margin: 4px 0 16px;
    padding: 0;
}

.pick .product-card__title {
    display: none;
}

.gh-content .pick > a > img,
.gh-content .pick > img {
    display: block;
    margin: 6px auto 18px;
    max-height: 300px;
    width: auto;
}

.gh-content .pick__badge {
    background: #fff1e2;
    border-radius: 999px;
    color: var(--accent-dark);
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin: 0 0 10px;
    padding: 4px 12px;
    text-transform: uppercase;
}

.gh-content .pick h3 a {
    font-weight: 800;
}

.quicklist {
    border: 2px solid var(--dark-gray-color);
    border-radius: 12px;
    margin: 0 0 26px;
    padding: 20px 22px 8px;
}

.gh-content .quicklist__title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.07em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.quicklist__item {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 16px;
    padding: 14px 0;
}

.gh-content .quicklist__img {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    flex-shrink: 0;
    height: 72px;
    margin: 0;
    object-fit: contain;
    padding: 4px;
    width: 72px;
}

.gh-content .quicklist__img--none {
    visibility: hidden;
}

.quicklist__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
    min-width: 0;
}

.quicklist__badge {
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gh-content a.quicklist__name {
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.gh-content a.quicklist__more {
    color: var(--secondary-text-color);
    font-size: 13px;
    font-weight: 500;
    text-decoration-thickness: 1px;
}

.gh-content a.quicklist__cta {
    background: var(--ghost-accent-color);
    border-radius: 8px;
    color: #1a1a1a;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 16px;
    text-decoration: none;
    white-space: nowrap;
}

.gh-content a.quicklist__cta:hover {
    background: #ee9040;
    color: #1a1a1a;
}

.faq {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 36px 18px 0;
    position: relative;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    color: var(--accent-dark);
    content: "+";
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    position: absolute;
    right: 4px;
    top: 16px;
}

.faq[open] summary::after {
    content: "\2212";
}

.gh-content .faq h3 {
    display: inline;
    font-size: 18px;
    margin: 0;
}

.gh-content .faq p {
    margin-bottom: 18px;
}

.next-cta {
    background: var(--dark-gray-color);
    border-radius: 12px;
    color: #fff;
    margin: 40px 0 8px;
    padding: 24px 26px;
}

.gh-content .next-cta p {
    color: #c9cad1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.gh-content .next-cta strong {
    color: #fff;
    display: block;
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.gh-content a.btn {
    background: var(--ghost-accent-color);
    border-radius: 8px;
    color: #1a1a1a;
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    text-decoration: none;
}

.gh-content a.btn:hover {
    background: #ee9040;
    color: #1a1a1a;
}

.post-tags .tag {
    font-weight: 700;
}

/* --- Footer --- */

.site-footer .footer-inner {
    display: block;
    font-size: 14px;
    padding: 28px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    justify-content: center;
    margin-bottom: 12px;
}

.footer-links a {
    font-weight: 700;
}

.footer-note {
    color: var(--secondary-text-color);
    margin: 0 auto;
    max-width: 640px;
}

@media (max-width: 600px) {
    .single .post-title {
        font-size: 28px;
    }

    .post-content {
        font-size: 17px;
    }

    .gh-content .answer {
        font-size: 18px;
        padding: 16px 18px;
    }

    .gh-content h2 {
        font-size: 24px;
    }

    .gh-content .toc ol {
        columns: 1;
    }

    .pick {
        padding: 20px 18px 6px;
    }

    .quicklist {
        padding: 16px 16px 4px;
    }

    .quicklist__item {
        gap: 10px;
        padding: 12px 0;
    }

    .gh-content .quicklist__img {
        height: 48px;
        width: 48px;
    }

    .gh-content a.quicklist__name {
        font-size: 15px;
    }

    .quicklist__badge {
        font-size: 11px;
    }

    .gh-content a.quicklist__more {
        display: none;
    }

    .gh-content a.quicklist__cta {
        font-size: 13px;
        padding: 9px 10px;
    }
}
