/* Basecamp Blog — scoped so it will not restyle the rest of the site.
   Override any value with a more specific rule, or change the variables below. */

.bc-blog,
.bc-blog-single {
    --bc-red: #e1262d;
    --bc-bg: transparent;
    --bc-card: #ffffff;
    --bc-text: #141414;
    --bc-muted: #5c5c5c;
    --bc-line: #d9d9d9;
    --bc-heading: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
    --bc-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    color: var(--bc-text);
    font-family: var(--bc-body);
    box-sizing: border-box;
}

.bc-blog *,
.bc-blog-single * {
    box-sizing: border-box;
}

.bc-blog {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 0 32px;
}

.bc-blog-search {
    margin: 0 0 28px;
}

.bc-blog-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.bc-blog-search-row {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: none;
}

.bc-blog-search,
.bc-blog-search-row {
    width: 100% !important;
    max-width: none !important;
}

.bc-blog-search-row button {
    flex-shrink: 0;
    border-radius: 4px;
}

.bc-blog-search-row input[type="search"] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d0d0d0 !important;
    background: #ffffff !important;
    color: #141414 !important;
    font-family: var(--bc-body);
    font-size: 15px;
    border-radius: 4px;
    box-shadow: none;
}

.bc-blog-search-row input[type="search"]::placeholder {
    color: #8a8a8a;
}

.bc-blog-search-row input[type="search"]:focus {
    outline: 2px solid var(--bc-red);
    outline-offset: 0;
}

.bc-blog-search-row button,
.bc-blog-pager-link {
    height: 48px;
    padding: 0 18px;
    border: 0;
    background: var(--bc-red);
    color: #fff;
    font-family: var(--bc-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bc-blog-search-row button:hover,
.bc-blog-pager-link:hover {
    background: #c81f26;
    color: #fff;
}

.bc-blog-search-status,
.bc-blog-empty {
    margin: 0 0 20px;
    color: var(--bc-muted);
    font-size: 14px;
}

.bc-blog-search-status a {
    color: #141414;
    margin-left: 10px;
}

.bc-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 22px;
}

.bc-blog-card {
    min-width: 0;
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    padding: 12px 12px 16px;
}

.bc-blog-card-link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.bc-blog-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    max-width: calc(100% - 20px);
    padding: 6px 10px;
    border-radius: 999px;
    background: #e1262d;
    color: #ffffff;
    font-family: var(--bc-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bc-blog .bc-blog-card-media {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding: 0 0 56.25% 0 !important;
    overflow: hidden !important;
    background: #f2f2f2;
    border-radius: 12px;
}

.bc-blog .bc-blog-card-media img,
.bc-blog .bc-blog-card-fallback {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
}

.bc-blog-card-title {
    margin: 0;
    padding: 16px 6px 0;
    font-family: var(--bc-heading);
    font-weight: 700;
    font-size: 32px !important;
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #141414;
    min-height: 1.9em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.bc-blog-card-date {
    display: block;
    margin: 8px 6px 16px;
    color: #6b6b6b;
    font-family: var(--bc-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.bc-blog-card-link:hover .bc-blog-card-title {
    color: var(--bc-red);
}

.bc-blog-card-excerpt {
    margin: 0;
    padding: 0 6px;
    color: #5c5c5c;
    font-size: 18px !important;
    line-height: 1.5;
}

.bc-blog-card-more {
    display: inline-block;
    margin: 14px 6px 4px;
    color: var(--bc-red);
    font-family: var(--bc-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.bc-blog-card-more:hover {
    color: #141414;
}

.bc-blog-pager {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.bc-blog-pager-link,
.bc-blog-pager-current {
    min-width: 48px;
}

.bc-blog-pager-current {
    height: 48px;
    padding: 0 14px;
    background: #141414;
    color: #fff;
    font-family: var(--bc-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bc-blog-single {
    width: 100%;
    background: #0d0d0d !important;
    padding: 45px 20px 72px;
}

.bc-blog-frame {
    width: min(1280px, 100%);
    margin: 0 auto;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.bc-blog-single-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px 32px 36px;
    border-radius: 0 0 10px 10px;
}

.bc-blog-single-media {
    width: 100%;
    margin: 0;
}

.bc-blog-single .bc-blog-single-media {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent;
    margin: 0 !important;
}

.bc-blog-single .bc-blog-ratio {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    padding: 0 0 56.25% 0 !important;
    overflow: hidden !important;
    border-radius: 10px 10px 0 0;
    background: #000;
}

.bc-blog-single .bc-blog-ratio img {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
}

.bc-blog-single h1 {
    margin: 0 0 10px;
    font-family: var(--bc-heading);
    font-weight: 700;
    font-size: 40px !important;
    line-height: 0.9;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #fff;
}

.bc-blog-single-date {
    display: block;
    margin: 0 0 28px;
    color: #c8c8c8;
    font-family: var(--bc-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.bc-blog-single-content {
    font-size: 17px;
    line-height: 1.7;
    color: #e8e8e8;
}

.bc-blog-single-content p {
    margin: 0 0 1.1em;
}

.bc-blog-single-content a {
    color: var(--bc-red);
}

.bc-blog-single-back {
    display: inline-block;
    margin: 28px 0 0;
    color: #fff;
    font-family: var(--bc-heading);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.bc-blog-single-back:hover {
    color: var(--bc-red);
}

@media (max-width: 980px) {
    .bc-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .bc-blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .bc-blog-search-row {
        max-width: none;
    }

    .bc-blog-card-title {
        font-size: 28px !important;
    }

    .bc-blog-single h1 {
        font-size: 32px !important;
    }

    .bc-blog-card-excerpt {
        font-size: 16px !important;
    }
}
