/* override padding */
@media (max-width: 544px) {

    .ast-separate-container #content .ast-container,
    .ast-container,
    .ast-container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
}



/* -------- page basics -------- */
.main-header-bar.ast-header-breadcrumb {
    display: none !important;
}

.csi-blog-archive {
    padding: 40px 0;
}

.csi-grid.csi-grid--blog {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 24px;
}

.csi-grid__left {
    min-height: 420px;
}

.csi-grid__right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width:1024px) {
    .csi-grid.csi-grid--blog {
        grid-template-columns: 1fr;
    }
}

/* -------- card base (main + grid) -------- */
.csi-blog__card {
    position: relative;
    border-radius: 0;
}

.csi-blog__meta {
    padding: 0;
}

.csi-blog__coverlink {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* media wrapper clips zoom + rounded edges */
.csi-blog__media {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.csi-blog__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transform: scale(1);
    transform-origin: center;
    transition: transform .35s ease;
}

.csi-archive-featured-header {
    padding-top: 16px;
    color: #343434;
    transition: color .25s ease;
    font-family: 'NHaasGroteskTXPro-65Md';
    font-size: 20px;
    line-height: 160%;
    /* 32px */
    letter-spacing: -1px;
}

.csi-blog__card.csi-archive-featured .csi-archive-featured-header {
    padding-top: 21px;
    color: #343434;
    transition: color .25s ease;
    font-family: 'NHaasGroteskTXPro-65Md';
    font-size: 40px;
    line-height: 120%;
    letter-spacing: -2px;
}

.csi-blog__card.csi-archive-featured.csi-archive-card .csi-archive-featured-header {
    padding-top: 16px;
    color: #343434;
    transition: color .25s ease;
    font-family: 'NHaasGroteskTXPro-65Md';
    font-size: 20px;
    line-height: 160%;
    /* 32px */
    letter-spacing: -1px;
}



.csi-archive-featured-excerpt {
    padding-top: 16px;
    color: #343434;
    font-family: 'NHaasGroteskTXPro-55Rg';
    font-size: 16px;
    line-height: 200%;
    letter-spacing: -0.16px;
    margin-bottom: 24px;

    /* clamp to 3 lines without breaking words */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* meta row (pills | author | date) */
.csi-archive-featured-meta {
    padding-top: 36px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.csi-archive-featured-meta-loop {
    padding-top: 24px;
}

.csi-archive-featured-meta>* {
    margin: 0;
}

.csi-archive-featured-pills {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.csi-archive-featured-pills .pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 5px;
    background: rgba(149, 113, 0, .25);
    color: #957100;
    font-family: 'NHaasGroteskTXPro-55Rg';
    font-size: 14px;
    line-height: 150%;
    letter-spacing: -0.7px;
    white-space: nowrap;
}

.csi-archive-featured-author {
    color: #717171;
    font-family: 'NHaasGroteskTXPro-65Md';
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -0.8px;
    transition: color .2s ease;
}

.csi-archive-featured-date {
    color: #717171;
    font-family: 'NHaasGroteskTXPro-55Rg';
    font-size: 14px;
    line-height: 150%;
    letter-spacing: -0.7px;
    transition: color .2s ease;
}

/* hover (main + grid): zoom image + shift all text to #957100) */
.csi-blog__card:hover .csi-blog__media img {
    transform: scale(1.05);
}

.csi-blog__card:hover .csi-archive-featured-header,
.csi-blog__card:hover .csi-archive-featured-excerpt,
.csi-blog__card:hover .csi-archive-featured-meta,
.csi-blog__card:hover .csi-archive-featured-author,
.csi-blog__card:hover .csi-archive-featured-date,

.csi-blog__card.csi-archive-featured.csi-archive-card:hover .csi-archive-featured-header {
    color: #957100;
}


/* -------- RHS list -------- */
.csi-rhs {
    display: grid;
    gap: 28px;
}

.csi-rhs__item {
    position: relative;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
    .csi-rhs__item {
        grid-template-columns: 1fr;
    }
}

.csi-rhs__item> :nth-child(2) {
    align-self: center;
}

.csi-rhs__media {
    position: relative;
    width: 200px;
    aspect-ratio: 5/3;
    overflow: hidden;
    border-radius: 6px;
}


@media (max-width: 640px) {
    .csi-rhs__media {
        width: auto;
    }
}

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

.csi-rhs__title {
    margin: 0 0 8px;
    color: #343434;
    font-family: 'NHaasGroteskTXPro-65Md';
    font-size: 18px;
    line-height: 140%;
    letter-spacing: -0.45px;
    transition: color .2s ease;
}

.csi-rhs__meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #717171;
    font-family: 'NHaasGroteskTXPro-55Rg';
    font-size: 14px;
    line-height: 150%;
    letter-spacing: -0.7px;
    transition: color .2s ease;
}

.csi-rhs__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 6px;
    transition: background-color .2s ease;
}

.csi-rhs__cover {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.csi-rhs__item:hover .csi-rhs__title {
    color: #957100;
}

.csi-rhs__item:hover .csi-rhs__meta {
    color: #957100;
}

.csi-rhs__item:hover .csi-rhs__dot {
    background: #957100;
}

.csi-rhs__item:hover .csi-rhs__media {
    border-radius: 0;
}


/* RIGHT-HAND LIST (RHS) */
.csi-rhs__meta time,
.csi-rhs__meta .csi-archive-featured-author {
    transition: color .2s ease;
}

.csi-rhs__item:hover .csi-rhs__meta time,
.csi-rhs__item:hover .csi-archive-featured-author {
    color: #957100;
}

/* -------- Collection hero -------- */
.csi-collection {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    min-height: 220px;
    color: #fff;
    background: transparent;
}

.csi-collection__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--collection-img) center/cover no-repeat;
}

.csi-collection__bg::after,
.csi-collection__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: opacity 100ms ease-out;
}

.csi-collection__bg::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, .54) 0%, rgba(0, 0, 0, .54) 100%);
    opacity: 1;
}

.csi-collection__bg::before {
    background:
        linear-gradient(0deg, rgba(0, 0, 0, .20) 0%, rgba(0, 0, 0, .20) 100%),
        linear-gradient(0deg, rgba(255, 239, 186, .18) 0%, rgba(255, 239, 186, .18) 100%);
    opacity: 0;
}

.csi-collection:hover .csi-collection__bg::after,
.csi-collection:active .csi-collection__bg::after {
    opacity: 0;
}

.csi-collection:hover .csi-collection__bg::before,
.csi-collection:active .csi-collection__bg::before {
    opacity: 1;
}

.csi-collection__top {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 16px;
    display: flex;
    align-items: flex-start;
}

.csi-collection__badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    background: #ffd400;
    color: #343434;
    font-family: 'NHaasGroteskTXPro-65Md';
    font-size: 17.6px;
    letter-spacing: -0.88px;
}

.csi-collection__bottom {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.csi-collection__bottom>div:first-child {
    flex: 1 1 auto;
}

.csi-collection__title {
    margin: 0 0 4px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    font-family: 'NHaasGroteskTXPro-65Md';
    font-size: 48px;
    letter-spacing: -1.44px;
}

.csi-collection__desc {
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    font-family: 'NHaasGroteskTXPro-55Rg';
    font-size: 20px;
    line-height: 150%;
    letter-spacing: -0.6px;
}

.csi-collection__arrow {
    align-self: flex-end;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    line-height: 0;
}

.csi-collection__arrow svg {
    display: block;
}



/* -------- Archive filter pills + grid -------- */
.csi-archive {
    background: #fff;
    padding: 60px 0;
}

.csi-archive__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.csi-pill {
    display: inline-block;
    border-radius: 30px;
    border: 1px solid #343434;
    background: #FFF;
    color: #343434;
    font-family: 'NHaasGroteskTXPro-55Rg';
    font-size: 16px;
    line-height: normal;
    padding: 8px 16px;
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

/* hover */
.csi-pill:hover {
    border-color: #957100;
    background: #FFF;
    color: #957100;
}

/* active (“All” initial + clicked) */
.csi-pill.is-active {
    border: none;
    background: #957100;
    color: #FFF;
}

/* keyboard focus */
.csi-pill:focus-visible {
    outline: 2px solid #957100;
    outline-offset: 2px;
}

.csi-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    row-gap: 60px;
    column-gap: 28px;
    align-items: stretch;
}

@media (max-width:1024px) {
    .csi-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:640px) {
    .csi-archive__grid {
        grid-template-columns: 1fr;
    }
}

.csi-archive-card {
    display: flex;
    flex-direction: column;
}

.csi-archive__grid>.csi-archive-card {
    height: 100%;
}

.csi-archive-card .csi-blog__meta {
    display: grid;
    grid-template-rows: auto 1fr auto;
    /* header | excerpt | meta */
    /* no fixed height here */
}

.csi-archive-card .csi-archive-featured-meta,
.csi-archive-card .csi-archive-featured-meta-loop {
    align-self: start;
    margin-top: 12px;
    /* small, consistent spacing above the meta row */
}

/* (optional) if the gap still feels big on short cards, clamp excerpt to 2–3 lines */
.csi-archive-card .csi-archive-featured-excerpt {
    -webkit-line-clamp: 3;
    /* adjust to 2 if you want even tighter rows */
}




/* 2) Card layout: image on top, meta fills remaining space */
.csi-archive-card {
    display: flex;
    flex-direction: column;
}

.csi-archive-card .csi-blog__media {
    flex: 0 0 auto;
}

/* fixed (aspect-ratio already set) */
.csi-archive-card .csi-blog__meta {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    /* <-- THIS fills the leftover height */
    min-height: 0;
    /* prevents overflow pushing things down */
}

/* 3) Pin the bottom meta row */
.csi-archive-card .csi-archive-featured-meta,
.csi-archive-card .csi-archive-featured-meta-loop {
    margin-top: auto;
    /* pushes it to the bottom of the meta column */
}

/* 4) Keep spacing tidy & consistent */
.csi-archive-featured-meta-loop {
    padding-top: 0;
}

/* was 24px; use margin above instead */
.csi-archive-card .csi-archive-featured-excerpt {
    -webkit-line-clamp: 3;
}




/* grid card media ratio */
.csi-archive-card .csi-blog__media {
    border-radius: 6px;
    aspect-ratio: 149/78;
}

/* pagination */
.csi-archive__pagination {
    margin-top: 28px;
    text-align: center;
}

.csi-archive__pagination a,
.csi-archive__pagination span {
    display: inline-block;
    margin: 0 6px;
    padding: 8px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    text-decoration: none;
    color: #343434;
}

.csi-archive__pagination .current {
    background: #957100;
    border-color: #957100;
    color: #fff;
}



/* 1) Make wrappers animate their radius */
.csi-blog__media,
.csi-rhs__media,
.csi-collection,
.csi-collection__bg {
    border-radius: 6px;
    /* your default */
    transition: border-radius 0.2s ease;
    /* only radius here */
}

/* 2) Keep img zoom transitions intact */
.csi-blog__media img {
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.35s ease;
    /* restore */
    will-change: transform;
}

/* 3) On hover: set radius to 0 on wrappers ONLY (don’t touch <img>) */
.csi-blog__card:hover .csi-blog__media,
.csi-rhs__item:hover .csi-rhs__media,
.csi-collection:hover,
.csi-collection:hover .csi-collection__bg {
    border-radius: 0;
}

/* 4) Existing zoom (works again because img transition wasn’t overwritten) */
.csi-blog__card:hover .csi-blog__media img {
    transform: scale(1.05);
}



/* 
 * loader
 */
/* Loader: veil + centered circular spinner */
#csi-archive-gridwrap {
    position: relative;
}

/* Dim/veil everything while loading */
#csi-archive-gridwrap.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 5;
}

/* Spinner */
#csi-archive-gridwrap.is-loading::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 200px;
    /* ⬅️ fixed offset from top */
    width: 36px;
    height: 36px;
    margin-left: -18px;
    /* keep centered horizontally */
    border-radius: 50%;
    border: 3px solid #e6e6e6;
    border-top-color: #957100;
    animation: csi-spin .6s linear infinite;
    z-index: 6;
}


@keyframes csi-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Optional: soften underlying content while loading */
#csi-archive-gridwrap.is-loading .csi-archive__grid,
#csi-archive-gridwrap.is-loading .csi-archive__pagination {
    opacity: .6;
}

/* 
 * pills active
 */
/* base */
.csi-archive__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.csi-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 30px;
    border: 1px solid #343434;
    background: #fff;
    color: #343434;
    font-family: 'NHaasGroteskTXPro-55Rg';
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: color .15s, border-color .15s, background-color .15s;
}

/* hover */
.csi-pill:hover {
    border-color: #957100;
    color: #957100;
    background: #fff;
}

/* active */
.csi-pill.is-active {
    border-color: transparent;
    background: #957100;
    color: #fff;
}

/* keyboard focus */
.csi-pill:focus-visible {
    outline: 2px solid #957100;
    outline-offset: 2px;
}




/* --- New dotted loader (opt-in) ---
   Add class 'use-dots' to #csi-archive-gridwrap to show dotted loader instead of pseudo spinner.
*/
#csi-archive-gridwrap.use-dots.is-loading::before,
#csi-archive-gridwrap.use-dots.is-loading::after {
    content: none !important;
    display: none !important;
}

#csi-archive-gridwrap .csi-archive-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    z-index: 6;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s;
}

#csi-archive-gridwrap.is-loading .csi-archive-loader {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* dotted loader visuals (matches other pages) */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 10px;
    transition: all .25s;
    color: currentColor;
}

.loading-dots>span {
    width: 8px;
    height: 8px;
    margin: 0 8px;
    background-color: currentColor;
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}

.loading-dots>span:nth-child(1) {
    animation-delay: -.4s;
}

.loading-dots>span:nth-child(2) {
    animation-delay: -.3s;
}

.loading-dots>span:nth-child(3) {
    animation-delay: -.2s;
}

.loading-dots>span:nth-child(4) {
    animation-delay: -.1s;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(.6);
    }

    50% {
        transform: scale(1.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading-dots>span {
        animation: none;
        transform: scale(1);
    }
}


/* disable pseudo spinner when using dotted loader */
#csi-archive-gridwrap.use-dots.is-loading::before,
#csi-archive-gridwrap.use-dots.is-loading::after {
    content: none !important;
    display: none !important;
    animation: none !important;
    border: 0 !important;
    background: transparent !important;
}



/* Force-disable legacy pseudo spinner */
#csi-archive-gridwrap.is-loading::before,
#csi-archive-gridwrap.is-loading::after {
    content: none !important;
    display: none !important;
    animation: none !important;
    border: 0 !important;
    background: transparent !important;
}


#csi-archive-gridwrap.is-loading::before,
#csi-archive-gridwrap.is-loading::after {
    content: none !important;
    display: none !important;
}



/* loader position */
/* Position dotted loader ~200px from the top (instead of vertical center) */
#csi-archive-gridwrap {
    position: relative;
}

#csi-archive-gridwrap .csi-archive-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    /* stick to top edge */
    justify-content: center;
    /* center horizontally */
    padding-top: 150px !important;
    /* offset from the top */
    background: rgba(255, 255, 255, 0.85);
    z-index: 6;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s;
}

#csi-archive-gridwrap.is-loading .csi-archive-loader {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* If you kept the legacy pseudo spinner, make sure it stays off */
#csi-archive-gridwrap.is-loading::before,
#csi-archive-gridwrap.is-loading::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 640px) {
    #csi-archive-gridwrap .csi-archive-loader {
        padding-top: 140px !important;
    }
}



/*
 * remove author from the loop
 */
.csi-blog-archive.csi-archive .csi-archive-featured-author {
    display: none;
}

/* Scope to single so archive styles remain untouched */
/* Keep single featured looking like archive featured */
.single-post .site-content .csi-archive-featured--single .csi-archive-featured-media {
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

.single-post .site-content .csi-archive-featured--single .csi-archive-featured-media img {
    display: block;
    width: 100%;
    height: auto;
    /* or fixed height + object-fit if that’s what archive uses */
    object-fit: cover;
}

/* Remove hover effects for single post featured block */
.single-post .site-content .csi-archive-featured--single,
.single-post .site-content .csi-archive-featured--single * {
    transition: none !important;
}

/* Override hover behaviors that may come from archive styles */
.single-post .site-content .csi-archive-featured--single:hover,
.single-post .site-content .csi-archive-featured--single .csi-blog__card:hover,
.single-post .site-content .csi-archive-featured--single .csi-archive-featured-header:hover,
.single-post .site-content .csi-archive-featured--single .csi-archive-featured-media:hover,
.single-post .site-content .csi-archive-featured--single .csi-archive-featured-meta:hover {
    background: inherit !important;
    color: #343434 !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    text-decoration: none !important;
    cursor: default !important;
}


.single-post .site-content .csi-blog__card:hover .csi-archive-featured-header,
.single-post .site-content .csi-blog__card.csi-archive-featured.csi-archive-card:hover .csi-archive-featured-header {
    color: #343434;
}

.single-post .site-content .csi-blog__card:hover .csi-archive-featured-author,
.single-post .site-content .csi-blog__card:hover .csi-archive-featured-date {
    color: #717171;
}










/* Single post: two-column grid with 1px divider and 44px padding on both sides */
.single-post .site-content .csi-grid.csi-grid--blog {
    display: grid;
    /* keep if already using grid */
    grid-template-columns: 1fr 470px;
    /* adjust RHS width to your design */
    column-gap: 87px;
    /* 44 + 1 + 44 */
}

/* Make the divider live off the left column so it matches its height */
.single-post .site-content .csi-grid--blog .csi-grid__left {
    position: relative;
}

.single-post .site-content .csi-grid--blog .csi-grid__left::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -45px;
    width: 1px;
    background: rgba(0, 0, 0, 0.15);
}

/* Mobile/tablet - collapse to single column and hide the divider */
@media (max-width: 991px) {
    .single-post .site-content .csi-grid.csi-grid--blog {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .single-post .site-content .csi-grid--blog .csi-grid__left::after {
        display: none;
    }
}



/*
 * single post
 */



.single-post .site-content p,
.single-post .site-content div,
.single-post .site-content ul,
.single-post .site-content ol,
.single-post .site-content li {
    color: #343434;
    font-family: 'NHaasGroteskTXPro-55Rg', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 200%;
    letter-spacing: -0.16px;
}


/* Headings */
.single-post .site-content h2,
.single-post .site-content h3,
.single-post .site-content h4,
.single-post .site-content h5 {
    color: #343434;
    font-family: 'NHaasGroteskTXPro-65Md', Arial, Helvetica, sans-serif;
}

.single-post .site-content h2 {
    font-size: 36px;
    line-height: 200%;
    letter-spacing: -1.8px;
    margin-bottom: 0;
}

.single-post .site-content h3 {
    font-size: 24px;
    line-height: 200%;
    letter-spacing: -1.2px;
}

.single-post .site-content h4 {
    font-size: 20px;
    line-height: 200%;
    letter-spacing: -1px;
}

/* Lists indentation */
.single-post .site-content ul,
.single-post .site-content ol {
    padding-left: 24px;
    margin-left: 0;
}

/* Separator (hr) */
.single-post .site-content hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    margin: 44px 0 60px 0 !important;

    background-color: transparent;
    /* border: 0;
    height: auto !important;
    margin-top: .5rem !important; */
    /* height: 1px; */
    /* margin-bottom: 1.5em !important; */
}

figcaption {
    font-family: 'NHaasGroteskTXPro-55Rg', Arial, Helvetica, sans-serif;
    color: #343434;
    /* font-family: Inter; */
    font-size: 14px;
    font-style: italic;
    /* font-weight: 300; */
    line-height: 200%;

}

.wp-block-image :where(figcaption) {
    margin-bottom: 0;
    margin-top: 18px;
}


/* clamp and overrides */

/* 2-line clamp with ellipsis */
.csi-rhs__title,
.csi-rhs__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* number of lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* helps in some browsers */
    line-height: 140%;
    /* match your title line-height */
    max-height: calc(2 * 1.3em);
    /* keeps layout stable */
}

/* Optional: ensure anchors do not reintroduce inline display */
.csi-rhs__title a {
    display: -webkit-box;
}

.single-post .site-content .csi-rhs__title {
    margin: 0 0 8px;

    font-family: 'NHaasGroteskTXPro-65Md';
    font-size: 18px;
    line-height: 140%;
    letter-spacing: -0.45px;
    transition: color .2s ease;
}

.single-post .site-content .csi-collection__top {
    line-height: normal;
}

.single-post .site-content .csi-collection__badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    background: #ffd400;
    color: #343434;
    font-family: 'NHaasGroteskTXPro-65Md';
    font-size: 17.6px;
    letter-spacing: -0.88px;
}

.single-post .site-content .csi-collection__title {
    margin: 0 0 4px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    font-family: 'NHaasGroteskTXPro-65Md';
    font-size: 48px;
    letter-spacing: -1.44px;
    line-height: normal;
}

.single-post .site-content .csi-collection__desc {
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    font-family: 'NHaasGroteskTXPro-55Rg';
    font-size: 20px;
    line-height: 150%;
    letter-spacing: -0.6px;
}


.single-post .site-content a {
    color: #957100 !important;
    font-family: 'NHaasGroteskTXPro-65Md', Arial, Helvetica, sans-serif !important;
    text-decoration: underline !important;
}

.single-post .site-content a:hover,
.single-post .site-content a:active {
    color: #343434 !important;
    text-decoration: underline !important;
}




/*
 * table
 */

.csi-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-family: 'NHaasGroteskTXPro-55Rg', Arial, Helvetica, sans-serif;
    color: #343434;
}

.csi-table thead {
    border-bottom: 0;
}

.csi-table th,
.csi-table td {
    padding: 12px 16px;
    vertical-align: top;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    line-height: 160%;
    color: #343434;
}

.csi-table thead th {
    font-family: 'NHaasGroteskTXPro-65Md', Arial, Helvetica, sans-serif;
    font-size: 16px;
    letter-spacing: -0.2px;
    text-align: left;
    color: #343434;
}

.csi-table td {
    font-size: 14px;
}

/* Stacked card layout on small screens */
@media (max-width: 768px) {
    .csi-table--responsive thead {
        display: none;
    }

    .csi-table--responsive tbody tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 0;
    }

    .csi-table--responsive tbody tr+tr {
        border-top: 1px solid rgba(0, 0, 0, 0.15);
    }

    .csi-table--responsive td {
        display: flex;
        gap: 10px;
        padding: 6px 0;
        /* tighter per-row spacing */
        border: 0;
        /* row border handled above */
        font-size: 16px;
    }

    /* Header label appears before each cell value */
    .csi-table--responsive td::before {
        content: attr(data-label);
        flex: 0 0 40%;
        max-width: 40%;
        color: #343434;
        font-family: 'NHaasGroteskTXPro-65Md', Arial, Helvetica, sans-serif;
        font-size: 16px;
        letter-spacing: -0.2px;
        line-height: 160%;
    }
}



/*
 * table figure
 */
figure.wp-block-table.csi-table {
    width: 100%;
    margin: 0 0 24px 0;
}

figure.wp-block-table.csi-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    /* Gutenberg adds .has-fixed-layout; keep fixed for 3 cols */
    font-family: 'NHaasGroteskTXPro-55Rg', Arial, Helvetica, sans-serif;
    color: #343434;
}

/* Reset any core WP block table styles that add extra borders/margins */
figure.wp-block-table.csi-table table,
figure.wp-block-table.csi-table thead,
figure.wp-block-table.csi-table tbody,
figure.wp-block-table.csi-table tr,
figure.wp-block-table.csi-table th,
figure.wp-block-table.csi-table td {
    border: 0;
}

/* Head + cells */
figure.wp-block-table.csi-table thead {
    border-bottom: 0;
}

figure.wp-block-table.csi-table th,
figure.wp-block-table.csi-table td {
    padding: 12px 16px;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    line-height: 160%;
    color: #343434;
}

figure.wp-block-table.csi-table thead th {
    font-family: 'NHaasGroteskTXPro-65Md', Arial, Helvetica, sans-serif;
    font-size: 16px;
    letter-spacing: -0.2px;
    text-align: left;
    color: #343434;
}

figure.wp-block-table.csi-table td {
    font-size: 14px;
}

/* Optional: handle WP's striped style gracefully */
figure.wp-block-table.is-style-stripes.csi-table tbody tr:nth-child(odd) td {
    background: transparent;
    /* neutralize default stripes, or set your own */
}

/* ----- Mobile stacked cards ----- */
@media (max-width: 768px) {

    /* Hide header row on mobile */
    figure.wp-block-table.csi-table.csi-table--responsive thead {
        display: none;
    }

    /* Each row becomes a "card" */
    figure.wp-block-table.csi-table.csi-table--responsive tbody tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 0;
    }

    figure.wp-block-table.csi-table.csi-table--responsive tbody tr+tr {
        border-top: 1px solid rgba(0, 0, 0, 0.45);
    }

    /* Cells show label + value */
    figure.wp-block-table.csi-table.csi-table--responsive td {
        display: flex;
        gap: 10px;
        padding: 6px 0 10px 0;
        border: 0;
        /* row border handled above */
        font-size: 16px;
        border-bottom: 1px dashed rgba(0, 0, 0, 0.20);
    }

    /* remove the dashed line on the last cell in each row */
    figure.wp-block-table.csi-table.csi-table--responsive tbody tr td:last-child,
    figure.wp-block-table.csi-table.csi-table--responsive tbody tr td:last-of-type {
        border-bottom: 0;
        padding-bottom: 0;
        /* optional: tighten the last one */
    }

    figure.wp-block-table.csi-table.csi-table--responsive td::before {
        content: attr(data-label);
        flex: 0 0 40%;
        max-width: 40%;
        color: #343434;
        font-family: 'NHaasGroteskTXPro-65Md', Arial, Helvetica, sans-serif;
        font-size: 16px;
        letter-spacing: -0.2px;
        line-height: 160%;
    }
}

.single-post .site-content strong {
    color: inherit !important;
}