/* ===================================================================
   Blog Post Template Styles
   Breakpoint: 974px (matches site convention)
   =================================================================== */

/* -------------------------------------------------------
   Base
   ------------------------------------------------------- */
.svglogoNoMorph {
    fill: var(--white);
}

/* -------------------------------------------------------
   Blog Hero
   ------------------------------------------------------- */
.blogHeroWrap {
    width: 100%;
}

.blogHeroBg {
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.blogHeroImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blogHeroTitle {
    padding: 2.5rem 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.blogHeroTitle h1 {
    font-size: 1.75rem;
    font-family: var(--light);
    line-height: 1.3;
}

.blogHeroTitle h1::before {
    content: "";
    display: block;
    height: 3px;
    width: 80px;
    background-color: var(--black);
    margin-bottom: 1rem;
}

.blogHeroTitle .breadcrumb {
    font-size: 1rem;
    font-family: var(--light);
    display: block;
    margin-bottom: .4rem;
    opacity: 0.55;
    transition: opacity 200ms ease;
}

.blogHeroTitle .breadcrumb:hover {
    opacity: 1;
}

/* -------------------------------------------------------
   Category Label & Date
   ------------------------------------------------------- */
.blogCategory {
    font-size: .7rem;
    text-transform: uppercase;
    font-family: var(--medium);
    letter-spacing: .08em;
    color: #888;
}

.blogDate {
    font-size: .75rem;
    font-family: var(--light);
    color: #999;
    text-transform: uppercase;
}

/* -------------------------------------------------------
   Blog Post Full-Width Image
   ------------------------------------------------------- */
.blogPostFullImg img {
    max-height: 100vh;
    object-fit: cover;
}

/* -------------------------------------------------------
   Blog Post Image Grid
   ------------------------------------------------------- */
.blogPostImgGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 2rem;
}

.blogPostImgGrid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* -------------------------------------------------------
   Blog Post Body
   ------------------------------------------------------- */
.blogPostBody {
    width: 100%;
}

.blogPostBody h3 {
    font-size: 1.15rem;
    font-family: var(--medium);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.blogPostBody p a {
    font-family: var(--medium);
}

.blogPostBody ul,
.blogPostBody ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

.blogPostBody li {
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    list-style: disc;
}

.blogPostBody hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.blogPostBody blockquote {
    max-width: calc(800px - 4rem);
    width: calc(100% - 4rem);
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 0;
    box-sizing: border-box;
    border-left: 3px solid var(--black);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
}

.blogPostBody blockquote p {
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    width: auto;
}

.blogPostBody > p,
.blogPostBody > h1,
.blogPostBody > h2,
.blogPostBody > h3,
.blogPostBody > h4,
.blogPostBody > h5,
.blogPostBody > h6,
.blogPostBody > ul,
.blogPostBody > ol,
.blogPostBody > hr,
.blogPostBody > .woven-table-scroll,
.blogPostBody > table,
.blogPostBody > .articleImgHalf {
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

.blogPostBody > ul,
.blogPostBody > ol {
    padding-left: calc(2rem + 1.25rem);
}

.blogPostBody > .articleImgFull {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.blogPostBody > .articleImgText {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.blogPostBody > .blogPostFullImg,
.blogPostBody > .blogPostImgGrid {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* -------------------------------------------------------
   Image Components
   ------------------------------------------------------- */
/* Half Image w/ Text: full-bleed band, image + copy, stacked on mobile / two columns on desktop */
.articleImgText {
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
}

.articleImgText img {
    width: 100%;
    display: block;
}

.articleImgTextContent {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: center;
}

.blogPostBody .articleImgTextContent h2 {
    font-size: 1.2rem;
    font-family: var(--medium);
    line-height: 1.4;
    text-transform: lowercase;
    margin-top: 0;
    margin-bottom: 0;
}

.blogPostBody .articleImgTextContent p {
    font-size: .875rem;
    line-height: 1.6;
    font-family: var(--light);
    text-transform: lowercase;
    margin-top: 0;
    margin-bottom: 0;
}

/* ===================================================================
   Mobile ( <= 974px )
   =================================================================== */
@media (max-width: 974px) {
    .blogPostMeta {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        gap: .5rem;
        max-width: 800px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .blogPostBody {
        padding: 3rem 0;
    }

    .blogPostBody p {
        font-size: .95rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .blogPostBody h2 {
        font-size: 1.3rem;
        font-family: var(--medium);
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .blogPostImgGrid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 2rem 2rem;
    }

    .blogPostFullImg {
        padding: 0;
    }
}
/* -------------------------------------------------------
   Blog Post Tables
   ------------------------------------------------------- */
.blogPostBody .woven-table-scroll {
    width: 100%;
    margin-top: 34px;
    margin-bottom: 38px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.blogPostBody table {
    width: 100%;
    min-width: 660px;
    margin: 0 auto 3rem;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 15px;
    line-height: 1.55;
}

.blogPostBody table.woven-size-guide-table .room-column {
    width: 23%;
}

.blogPostBody table.woven-size-guide-table .size-column {
    width: 25%;
}

.blogPostBody table.woven-size-guide-table .check-column {
    width: 52%;
}

.blogPostBody table th,
.blogPostBody table td {
    padding: 17px 22px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.blogPostBody table thead th {
    padding-top: 0;
    padding-bottom: 14px;
    font-weight: 600;
    color: #2f2f2f;
    border-bottom: 1px solid rgba(0, 0, 0, 0.28);
}

.blogPostBody table tbody tr:last-child td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.28);
}

.blogPostBody table td:first-child {
    font-weight: 500;
    color: #333;
}

@media (max-width: 760px) {
    .blogPostBody .woven-table-scroll {
        margin-top: 28px;
        margin-bottom: 32px;
    }

    .blogPostBody table {
        font-size: 14px;
    }

    .blogPostBody table th,
    .blogPostBody table td {
        padding: 15px 18px;
    }
}

.blogPostBody table caption {
    padding: 4px 0;
    background-color: var(--black);
    color: var(--white);
    margin-bottom: 1rem;
}
/* ===================================================================
   Desktop ( >= 974px )
   =================================================================== */
@media (min-width: 974px) {
    .blogHeroTitle {
        padding: 4rem 2rem 2rem;
        max-width: 800px;
        margin: 0 auto;
    }

    .blogHeroTitle h1 {
        font-size: 2.5rem;
    }

    .blogHeroTitle .breadcrumb {
        font-size: 1.5rem;
        margin-bottom: .6rem;
    }

    .blogPostMeta {
        padding: 0 2rem 3rem;
        display: flex;
        gap: 2rem;
        align-items: center;
        max-width: 800px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .blogPostBody {
        max-width: none;
        margin: 0 auto;
        padding: 0 0 4rem;
    }

    .blogPostBody p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

    .blogPostBody h3 {
        font-size: 1.3rem;
    }

    .blogPostBody li {
        font-size: 1rem;
    }

    .blogPostBody h2 {
        font-size: 1.75rem;
        font-family: var(--medium);
        margin-top: 3rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .blogPostBody blockquote {
        font-size: 1.1rem;
    }

    .blogPostFullImg {
        padding: 0;
        display: flex;
        justify-content: center;
    }

    .blogPostImgGrid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem 10rem;
    }

    .blogPostCta {
        padding: 4rem 10rem 6rem;
        max-width: 900px;
        margin: 0 auto;
    }

    .blogPostCta p {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Half Image w/ Text becomes a full-width two-column band */
    .articleImgText {
        display: grid;
        grid-template-columns: 2fr 3fr;
        gap: 4rem;
        align-items: center;
        padding: 6rem 10rem;
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    .blogPostBody .articleImgTextContent h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .blogPostBody .articleImgTextContent p {
        font-size: .95rem;
        line-height: 1.7;
    }
}
