/*** Blog post page (resources/views/home/blog/single.blade.php) ***/
.bp {
    --bp-red: #93241f;
    --bp-gold: #e2b66e;
    --bp-gold-dark: #b38a4b;
    --bp-ink: #1d1716;
    --bp-text: #3d3532;
    --bp-muted: #6f6560;
    --bp-cream: #faf6f0;
    --bp-line: #ece4dc;
    --bp-measure: 760px;
    color: var(--bp-text);
    background: #fff;
    font-family: 'r-montserrat', Arial, sans-serif;
    overflow-x: clip; /* not "hidden": that would stop the sticky sidebar */
}
.bp *,
.bp *::before,
.bp *::after {
    box-sizing: border-box;
}

/** hero **/
.bp-hero {
    padding: 56px 16px 40px;
    background: var(--bp-cream);
    border-bottom: 1px solid var(--bp-line);
    text-align: center;
}
.bp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-family: 'm-montserrat', Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bp-muted);
}
.bp-breadcrumb a {
    color: var(--bp-muted);
    text-decoration: none;
}
.bp-breadcrumb a:hover,
.bp-breadcrumb a:focus {
    color: var(--bp-red);
}
.bp-title {
    max-width: 920px;
    margin: 0 auto;
    color: var(--bp-ink);
    font-family: 'r-playfair-display', Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: none;
    overflow-wrap: break-word;
}
.bp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    margin: 20px 0 0;
    color: var(--bp-muted);
    font-size: 14px;
}
.bp-meta__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bp-gold);
}

/** article + sidebar **/
.bp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 16px 0;
}

/** cover image **/
.bp-cover {
    margin: 0 0 40px;
}
.bp-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
}

/** article body (HTML written in the admin editor) **/
.bp-content {
    max-width: var(--bp-measure);
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: break-word;
}
.bp-content > :first-child {
    margin-top: 0;
}
/* one font for the whole text (the global stylesheet sets its own on p) */
.bp-content p,
.bp-content li,
.bp-content td,
.bp-content span {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
.bp-content td {
    font-size: 15px;
    line-height: 1.5;
}
.bp-content p {
    margin: 0 0 1.3em;
    color: var(--bp-text);
}
.bp-content h2,
.bp-content h3,
.bp-content h4 {
    color: var(--bp-ink);
    font-family: 'r-playfair-display', Georgia, serif;
    font-weight: 400;
    line-height: 1.3;
    text-transform: none;
    text-align: left;
}
.bp-content h2 {
    margin: 2em 0 0.7em;
    padding-top: 0.9em;
    border-top: 1px solid var(--bp-line);
    font-size: 30px;
}
.bp-content h3 {
    margin: 1.6em 0 0.5em;
    font-size: 23px;
}
.bp-content h4 {
    margin: 1.4em 0 0.4em;
    font-size: 19px;
}
.bp-content strong,
.bp-content b,
.bp-content th {
    color: var(--bp-ink);
    font-family: 'b-montserrat', Arial, sans-serif;
    font-weight: normal;
}
/* bold tags the editor puts inside headings keep the heading font */
.bp-content h2 b, .bp-content h2 strong, .bp-content h2 span,
.bp-content h3 b, .bp-content h3 strong, .bp-content h3 span,
.bp-content h4 b, .bp-content h4 strong, .bp-content h4 span {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
.bp-content a {
    color: var(--bp-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.bp-content a:hover,
.bp-content a:focus {
    color: var(--bp-gold-dark);
}
.bp-content ul,
.bp-content ol {
    margin: 0 0 1.4em;
    padding-left: 1.4em;
}
.bp-content li {
    margin-bottom: 0.6em;
    padding-left: 0.2em;
}
.bp-content ul li::marker {
    color: var(--bp-red);
}
.bp-content blockquote {
    margin: 1.8em 0;
    padding: 18px 24px;
    border-left: 3px solid var(--bp-gold);
    background: var(--bp-cream);
    color: var(--bp-ink);
    font-family: 'r-playfair-display', Georgia, serif;
    font-size: 20px;
    line-height: 1.6;
}
.bp-content blockquote p:last-child {
    margin-bottom: 0;
}
.bp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
/* tables scroll sideways on small screens instead of widening the page */
.bp-content table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 1.8em 0 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}
.bp-content th,
.bp-content td {
    min-width: 140px;
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--bp-line);
    text-align: left;
    vertical-align: top;
}
.bp-content th,
.bp-content thead td {
    background: var(--bp-cream);
    color: var(--bp-ink);
    font-family: 'm-montserrat', Arial, sans-serif;
}

/** back link **/
.bp-back {
    padding-top: 16px;
}
.bp-back a {
    color: var(--bp-red);
    font-family: 'm-montserrat', Arial, sans-serif;
    font-size: 14px;
    text-decoration: none;
}
.bp-back a:hover,
.bp-back a:focus {
    text-decoration: underline;
}

/** call to action **/
.bp-cta {
    max-width: 1148px;
    margin: 56px auto 72px;
    padding: 48px 24px;
    background: var(--bp-ink);
    color: #f3eeea;
    text-align: center;
}
.bp-cta__title {
    margin: 0 0 12px;
    color: #fff;
    font-family: 'r-playfair-display', Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: none;
}
.bp-cta__text {
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.6;
}
.bp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.bp-btn,
.bp-btn:visited {
    display: inline-block;
    min-width: 190px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: 'm-montserrat', Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.bp-btn--primary,
.bp-btn--primary:visited {
    background: var(--bp-red);
    color: #fff;
}
.bp-btn--primary:hover,
.bp-btn--primary:focus {
    background: #7a1d19;
    color: #fff;
}
.bp-btn--ghost,
.bp-btn--ghost:visited {
    border-color: var(--bp-gold);
    color: var(--bp-gold);
}
.bp-btn--ghost:hover,
.bp-btn--ghost:focus {
    background: var(--bp-gold);
    color: var(--bp-ink);
}

/** sidebar: other articles **/
.bp-sidebar {
    position: sticky;
    top: 110px; /* below the header once it becomes fixed on scroll */
}
.bp-sidebar__inner {
    padding: 28px 24px;
    border: 1px solid var(--bp-line);
    border-radius: 6px;
    background: var(--bp-cream);
}
.bp-sidebar__title {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bp-line);
    color: var(--bp-ink);
    font-family: 'r-playfair-display', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    text-transform: none;
}
.bp-sidebar__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.bp-sidebar__list li + li {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--bp-line);
}
.bp-card,
.bp-card:visited {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0;
    color: var(--bp-text);
    text-decoration: none;
}
.bp-card:hover,
.bp-card:focus {
    color: var(--bp-text);
    text-decoration: none;
}
.bp-card__media {
    flex: 0 0 84px;
    height: 64px;
    border-radius: 4px;
    background: var(--bp-line);
    overflow: hidden;
}
.bp-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.bp-card:hover .bp-card__media img {
    transform: scale(1.06);
}
.bp-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.bp-card__title {
    color: var(--bp-ink);
    font-family: 'r-playfair-display', Georgia, serif;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: break-word;
    transition: color 0.2s ease;
}
.bp-card:hover .bp-card__title,
.bp-card:focus .bp-card__title {
    color: var(--bp-red);
}
.bp-card__date {
    color: var(--bp-muted);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.bp-sidebar__all {
    display: inline-block;
    margin-top: 18px;
    color: var(--bp-red);
    font-family: 'm-montserrat', Arial, sans-serif;
    font-size: 13px;
    text-decoration: none;
}
.bp-sidebar__all:hover,
.bp-sidebar__all:focus {
    color: var(--bp-red);
    text-decoration: underline;
}

/** small desktop **/
@media (max-width: 1199px) {
    .bp-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 40px;
    }
}

/** tablet: sidebar goes under the article **/
@media (max-width: 991px) {
    .bp-title {
        font-size: 34px;
    }
    .bp-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    .bp-content {
        max-width: none;
    }
    .bp-sidebar {
        position: static;
    }
    .bp-cta {
        margin-left: 16px;
        margin-right: 16px;
    }
}

/** phone **/
@media (max-width: 767px) {
    .bp-hero {
        padding: 36px 16px 28px;
    }
    .bp-title {
        font-size: 26px;
    }
    .bp-meta {
        font-size: 13px;
    }
    .bp-layout {
        padding-top: 24px;
    }
    .bp-cover {
        margin-bottom: 28px;
    }
    .bp-content {
        font-size: 16px;
        line-height: 1.75;
    }
    .bp-content h2 {
        font-size: 24px;
    }
    .bp-content h3 {
        font-size: 20px;
    }
    .bp-content blockquote {
        padding: 14px 18px;
        font-size: 18px;
    }
    /* images given a small width in the editor (e.g. 25%) are full width on phones */
    .bp-content img {
        width: 100% !important;
        float: none !important;
        margin: 1em 0 !important;
    }
    .bp-content th,
    .bp-content td {
        min-width: 120px;
        padding: 10px 12px !important;
    }
    .bp-cta {
        margin-top: 40px;
        padding: 36px 20px;
    }
    .bp-cta__title {
        font-size: 24px;
    }
    .bp-btn {
        width: 100%;
    }
    .bp-sidebar__inner {
        padding: 22px 18px;
    }
}
