/* Reading pages and news share the kiosk palette, type and card shapes. */
.bwk-editorial,
.bwk-editorial-legacy #content {
    padding-block: clamp(20px, 3vw, 32px) clamp(40px, 6vw, 64px);
    color: var(--bwk-ink);
}
.bwk-editorial { min-height: 48vh; }
.bwk-editorial-hero,
.bwk-editorial-legacy #inner-content > .featured-products {
    padding: clamp(20px, 3vw, 36px);
    border: 1px solid var(--bwk-line);
    border-radius: var(--bwk-card-radius);
    background: var(--bwk-wash);
    margin: 0 0 clamp(24px, 3.5vw, 40px);
}
.bwk-editorial-hero h1,
.bwk-editorial-legacy #content .article-header h1,
.bwk-editorial-legacy #content .mkb-page-title {
    color: var(--bwk-ink) !important;
    font: 900 clamp(27px, 4.2vw, 48px)/1.12 var(--bwk-font-heading) !important;
    letter-spacing: -.025em;
    text-transform: none;
    overflow-wrap: anywhere;
    margin: 0;
}
.bwk-editorial-back {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--bwk-blue);
    font-weight: 700;
    text-decoration: none;
}
.bwk-editorial-back:hover { text-decoration: underline; }
.bwk-editorial-hero .bwk-primary { display: inline-flex; }
.bwk-editorial-hero > p,
.bwk-editorial-hero-copy > p,
.bwk-editorial-intro {
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.6;
}
.bwk-editorial-intro > :last-child { margin-bottom: 0; }
.bwk-editorial-meta, .bwk-editorial-card time {
    color: var(--bwk-muted);
    font-size: 13px;
}
.bwk-editorial-hero .bwk-editorial-meta { font-size: 14px; }
.bwk-editorial-hero-with-photo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 3vw, 36px);
}
.bwk-editorial-hero-photo {
    margin: 0;
    border-radius: var(--bwk-card-radius);
    overflow: hidden;
}
.bwk-editorial-hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    max-height: 260px;
    object-fit: cover;
}

.bwk-editorial-prose, .bwk-editorial-legacy #content .entry-content {
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.bwk-editorial-prose :is(p, li),
.bwk-editorial-legacy #content .entry-content :is(p, li) {
    color: var(--bwk-ink);
    line-height: 1.7;
}
.bwk-editorial-legacy #content :is(h2,h3,h4),
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) > :is(h2,h3,h4,h5,h6) {
    color: var(--bwk-ink);
    font-family: var(--bwk-font-heading);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
    text-transform: none;
}
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) > :is(h2,h3,h4,h5,h6) {
    margin-block: clamp(22px, 2.5vw, 34px) 8px;
}
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) > h2,
body.bwk-active .bwk-editorial-prose:not(:has(> h2)) > h3 {
    font-size: clamp(22px, 1.8vw, 26px);
    font-weight: 900 !important;
}
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) > h3 {
    font-size: clamp(18px, 1.5vw, 21px);
}
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) > :is(h4,h5,h6) {
    font-size: clamp(16px, 1.3vw, 18px);
}
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) > :is(p, ul, ol) {
    margin-block: 0 14px;
}
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) > :is(h2,h3,h4,h5,h6):first-child {
    margin-block-start: 0;
}
.bwk-editorial-prose :is(ul, ol) { padding-inline-start: 1.5em; }
.bwk-editorial-prose ul { list-style: disc; }
.bwk-editorial-prose ol { list-style: decimal; }
.bwk-editorial-prose ul ul { list-style: circle; }
.bwk-editorial-prose li { margin-block: .25em; }
.bwk-editorial-prose :is(img, iframe, video, figure) { max-width: 100%; }
.bwk-editorial-prose img { height: auto; }
.bwk-editorial-prose figure { margin-inline: 0; }
.bwk-editorial-prose figcaption { color: var(--bwk-muted); font-size: 13px; }
.bwk-editorial-prose blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    border-inline-start: 3px solid var(--bwk-blue);
    background: var(--bwk-wash);
}
.bwk-editorial-prose blockquote > :last-child { margin-bottom: 0; }
/* Style published data tables, including tables inside lists and blocks. */
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) table:not(:where(form *, .elementor *, .woocommerce *)) {
    width: 100%;
    margin: clamp(16px, 2vw, 24px) 0;
    border: 1px solid var(--bwk-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--bwk-card-radius);
    overflow: hidden;
    background: var(--bwk-surface);
    color: var(--bwk-ink);
    font-size: clamp(14px, 1.25vw, 16px);
    line-height: 1.45;
}
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) table:not(:where(form *, .elementor *, .woocommerce *)) :is(th, td) {
    border: 0;
    padding: clamp(9px, 1.25vw, 16px);
    text-align: start;
    vertical-align: top;
    overflow-wrap: anywhere;
}
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) table:not(:where(form *, .elementor *, .woocommerce *)) :is(thead, tbody, tfoot) + :is(tbody, tfoot) > tr:first-child > *,
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) table:not(:where(form *, .elementor *, .woocommerce *)) tr + tr > * {
    border-block-start: 1px solid var(--bwk-line);
}
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) table:not(:where(form *, .elementor *, .woocommerce *)) tbody tr:nth-child(even) > * {
    background: var(--bwk-wash);
}
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) table:not(:where(form *, .elementor *, .woocommerce *)) :is(th, td) > p {
    margin-block: 0 .5em;
    line-height: inherit;
}
:is(.bwk-editorial-prose, .bwk-editorial-legacy .entry-content) table:not(:where(form *, .elementor *, .woocommerce *)) :is(th, td) > :last-child {
    margin-block-end: 0;
}
.bwk-editorial-prose :is(.wp-block-table, pre) { overflow-x: auto; }
.bwk-editorial-prose a:not(.button), .bwk-editorial-meta a {
    color: var(--bwk-blue);
    text-underline-offset: 3px;
}

.bwk-editorial-search {
    display: flex;
    gap: 8px;
    margin: 18px 0 0;
    max-width: 460px;
}
.bwk-editorial-search input[type="search"] {
    flex: 1;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--bwk-line);
    border-radius: var(--bwk-button-radius);
    font: inherit;
}
.bwk-editorial-search .bwk-primary { width: auto; }
.bwk-editorial-topics { margin-top: 16px; }
.bwk-editorial-topics summary { cursor: pointer; font-weight: 700; }
.bwk-editorial-topics ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}
.bwk-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.bwk-editorial-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--bwk-line);
    border-radius: var(--bwk-card-radius);
    background: var(--bwk-surface);
}
.bwk-editorial-card-image {
    display: block;
    margin-bottom: 14px;
    border-radius: 6px;
    aspect-ratio: 1.6;
    overflow: hidden;
}
.bwk-editorial-card-image img { width: 100%; height: 100%; object-fit: cover; }
.bwk-editorial-card h2 {
    color: var(--bwk-ink);
    font: 700 20px/1.25 var(--bwk-font-heading);
    letter-spacing: -.02em;
    margin: 6px 0 10px;
    overflow-wrap: anywhere;
}
.bwk-editorial-card h2 a { color: inherit; text-decoration: none; }
.bwk-editorial-card h2 a:hover { color: var(--bwk-blue); }
.bwk-editorial-card p { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.bwk-editorial-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    align-self: flex-start;
    min-height: 44px;
    margin-top: auto;
    color: var(--bwk-blue);
    font-weight: 700;
    text-decoration: none;
}
.bwk-editorial-card-link:hover { text-decoration: underline; }
.bwk-editorial .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}
.bwk-editorial .nav-links .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 8px;
    border: 1px solid var(--bwk-line);
    border-radius: 8px;
    color: var(--bwk-ink);
    text-decoration: none;
}
.bwk-editorial .nav-links .current { background: var(--bwk-blue); color: #fff; }
.bwk-editorial .nav-links a:hover { border-color: var(--bwk-blue); }

/* These templates include forms, team profiles or FAQ content in PHP. */
.bwk-editorial-legacy #inner-content > .featured-products .wrap {
    padding: 0;
    width: 100%;
}
.bwk-editorial-legacy #inner-content > .featured-products .split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
    align-items: center;
    gap: clamp(16px, 4vw, 44px);
}
.bwk-editorial-legacy #inner-content > .featured-products :is(.split-section-left,.split-section-right) {
    position: relative;
    inset: auto !important;
    float: none;
    width: auto !important;
    min-height: 0 !important;
}
.bwk-editorial-legacy #inner-content > .featured-products .gallery-image {
    position: static;
    height: clamp(150px, 22vw, 300px);
    min-height: 0;
    border-radius: var(--bwk-card-radius);
}
.bwk-editorial-legacy #inner-content > .cat-info > .wrap,
.bwk-editorial-legacy #content .accord-body > .wrap,
.bwk-company-page.bwk-editorial-legacy #content .accord-header > .wrap {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}
.bwk-editorial-legacy #inner-content > .cat-info.background-gray {
    background: var(--bwk-wash);
    border: 1px solid var(--bwk-line);
    border-radius: var(--bwk-card-radius);
}
.bwk-editorial-legacy.page-template-page-authors #inner-content > .cat-info.background-gray .entry-content > div {
    border-color: var(--bwk-line) !important;
    border-radius: var(--bwk-card-radius);
    padding: clamp(16px, 3vw, 32px) !important;
}
.bwk-editorial-legacy #content :is(.accord-header,.intaccord-header) {
    background: var(--bwk-wash);
    border: 1px solid var(--bwk-line);
    border-radius: var(--bwk-button-radius);
    margin: 8px 0;
}
.bwk-editorial-legacy #content :is(.accord-header,.intaccord-header) :is(h2,h3,h4) {
    color: var(--bwk-ink);
}
.bwk-editorial-legacy #content :is(.accord-header,.intaccord-header):is(:hover,.active) :is(h2,h3,h4) {
    color: var(--bwk-blue);
}
@media (max-width: 1050px) {
    .bwk-editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .bwk-editorial-grid,
    .bwk-editorial-legacy #inner-content > .featured-products .split-section { grid-template-columns: minmax(0, 1fr); }
    .bwk-editorial-legacy.page-template-page-authors #inner-content > .cat-info.background-gray .entry-content > div img {
        float: none !important;
        margin: 0 0 16px !important;
    }
}

body.bwk-active.bwk-about-page #content :is(h1,h2,h3,h4,h5,h6,.page-title){font-family:"museo-sans-rounded",sans-serif!important;font-weight:900!important}

/* About Us: a balanced introduction with the same rounded type as the site. */
body.bwk-active.bwk-about-page #inner-content>.featured-products .split-section{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:40px;padding:0;margin:0;min-height:0}
body.bwk-active.bwk-about-page #inner-content>.featured-products :is(.split-section-left,.split-section-right){position:static!important;float:none!important;inset:auto!important;width:auto!important;margin:0!important;padding:0!important;min-height:0!important}
body.bwk-active.bwk-about-page #inner-content>.featured-products .split-section-left{order:0}
body.bwk-active.bwk-about-page #inner-content>.featured-products .split-section-right{order:1}
body.bwk-active.bwk-about-page #inner-content>.featured-products .gallery{margin:0;padding:0}
body.bwk-active.bwk-about-page #inner-content>.featured-products .gallery-image{height:300px;border-radius:18px}
body.bwk-active.bwk-about-page #content .article-header h1{font-family:"museo-sans-rounded",sans-serif!important;font-weight:900!important;font-size:calc(clamp(32px,3.4vw,48px) - 6pt)!important;line-height:1.12;letter-spacing:-1px;margin:0 0 20px}
body.bwk-active.bwk-about-page #content hr{display:none}
body.bwk-active.bwk-about-page #content .bwk-about-value{font-size:22px!important;line-height:1.3;margin:28px 0 10px}
@media(max-width:700px){body.bwk-active.bwk-about-page #inner-content>.featured-products .split-section{grid-template-columns:minmax(0,1fr);gap:24px}body.bwk-active.bwk-about-page #inner-content>.featured-products .gallery-image{height:230px}}

/* Override the internal-page display-font rule in site.css for About Us. */
body.bwk-active.bwk-about-page.bwk-editorial-legacy #content .article-header h1.page-title{font-family:"museo-sans-rounded",sans-serif!important;font-weight:900!important}

/* About Us supporting photos: slightly larger with the site's rounded corners. */
body.bwk-active.bwk-about-page #content .entry-content .m-all.t-1of4.d-1of4 img{width:110%;max-width:110%;height:auto;border-radius:18px;display:block}
@media(max-width:767px){body.bwk-active.bwk-about-page #content .entry-content .m-all.t-1of4.d-1of4 img{width:100%;max-width:100%}}

/* Clearfix pseudo-elements must not occupy cells in the About Us hero grid. */
body.bwk-active.bwk-about-page #inner-content>.featured-products .split-section::before,
body.bwk-active.bwk-about-page #inner-content>.featured-products .split-section::after{display:none!important;content:none!important}
body.bwk-active.bwk-about-page #inner-content>.featured-products .split-section-left{grid-column:1;grid-row:1}
body.bwk-active.bwk-about-page #inner-content>.featured-products .split-section-right{grid-column:2;grid-row:1}
body.bwk-active.bwk-about-page #inner-content>.featured-products .half-wrap{float:none!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
body.bwk-active.bwk-about-page #inner-content>.featured-products .content-holder p{font-size:17px;line-height:1.7;color:#3a3a3b;margin:0 0 24px}
.bwk-about-highlights{display:flex;flex-wrap:wrap;gap:10px;list-style:none!important;padding:0!important;margin:0!important}
.bwk-about-highlights li{padding:8px 12px;border-radius:99px;background:#e8ecff;color:#344fc4;font-size:12px;font-weight:700;line-height:1.5;margin:0}
@media(max-width:700px){body.bwk-active.bwk-about-page #inner-content>.featured-products .split-section-right{grid-column:1;grid-row:2}}

/* Company introductions and FAQ panels. */
.bwk-company-page .bwk-company-intro { font-size: 17px; color: var(--bwk-muted); }
.bwk-company-page .bwk-editorial-prose img,.bwk-company-page .bwk-editorial-card-image img{border-radius:18px}
.bwk-company-page #content hr,.bwk-company-page .bwk-editorial-prose hr{display:none}
.bwk-company-page #inner-content>.featured-products .split-section::before,
.bwk-company-page #inner-content>.featured-products .split-section::after{display:none!important;content:none!important}
.bwk-company-page #inner-content>.featured-products .half-wrap{float:none!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
.bwk-company-page #inner-content>.featured-products .gallery{margin:0;padding:0}
.bwk-company-page #content .accord-header{padding:18px 22px}
.bwk-company-page #content .accord-body{padding:18px 22px;line-height:1.7}
@media (max-width: 700px) {
    .bwk-editorial-hero-with-photo { grid-template-columns: minmax(0, 1fr); }
    .bwk-editorial-hero-photo img { aspect-ratio: 16 / 9; }
}
