*,
*::before,
*::after {
    box-sizing: border-box;
}

body.re-blog-detail {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    color: #1f2a37;
    background:
        radial-gradient(circle at 10% 0%, rgba(11, 122, 117, 0.12), transparent 32%),
        radial-gradient(circle at 92% 4%, rgba(240, 127, 58, 0.14), transparent 29%),
        var(--re-bg);
}

.bd-container {
    width: min(1160px, 92vw);
    margin: 0 auto;
}

.bd-main {
    padding-bottom: 2rem;
}

.bd-hero {
    padding: 1.1rem 0 0.9rem;
}

.bd-back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    color: var(--re-primary);
}

.bd-eyebrow {
    margin: 0.8rem 0 0.4rem;
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--re-primary);
}

.bd-hero h1 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.bd-subtext {
    margin: 0.65rem 0 0;
    color: #4b5a6f;
    max-width: 72ch;
}

.bd-content-wrap {
    padding-top: 0.6rem;
}

.bd-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 1rem;
    align-items: start;
}

.bd-article {
    background: #fff;
    border: 1px solid #d7e4da;
    border-radius: 16px;
    overflow: hidden;
}

.bd-cover img {
    width: 100%;
    height: clamp(240px, 36vw, 400px);
    object-fit: cover;
    display: block;
}

.bd-article-body {
    padding: 1.1rem 1.1rem 1.2rem;
}

.bd-article-body p {
    margin: 0 0 0.95rem;
    color: #37475d;
    font-size: 1.02rem;
    line-height: 1.65;
}

.bd-article-body p:last-child {
    margin-bottom: 0;
}

.bd-sidebar {
    display: grid;
    gap: 0.8rem;
    position: sticky;
    top: 94px;
}

.bd-side-card {
    background: #fff;
    border: 1px solid #d7e4da;
    border-radius: 14px;
    padding: 0.9rem;
}

.bd-side-card h3 {
    margin: 0 0 0.7rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
}

.bd-hot-list {
    display: grid;
    gap: 0.45rem;
}

.bd-hot-item {
    border: 1px solid #e3ebe4;
    border-radius: 8px;
    padding: 0.5rem 0.58rem;
    text-decoration: none;
    display: grid;
    gap: 0.18rem;
    color: #1f2a37;
    background: #fbfcfa;
}

.bd-hot-title {
    font-weight: 700;
    line-height: 1.24;
    font-size: 0.94rem;
}

.bd-hot-meta {
    color: #5a6778;
    font-size: 0.82rem;
}

.bd-hot-item small {
    color: #0f645e;
    font-size: 0.84rem;
    font-weight: 700;
}

.bd-city-list {
    display: grid;
    gap: 0.35rem;
}

.bd-city-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.38rem 0.45rem;
    color: #1f2a37;
}

.bd-city-item:hover {
    border-color: #d2e5d7;
    background: #f9fcf8;
}

.bd-city-item span {
    font-weight: 700;
}

.bd-city-item small {
    color: #607086;
    font-size: 0.8rem;
}

.bd-latest-list {
    display: grid;
    gap: 0.45rem;
}

.bd-latest-item {
    display: grid;
    gap: 0.14rem;
    text-decoration: none;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    color: #1f2a37;
    border: 1px solid transparent;
}

.bd-latest-item:hover {
    border-color: #d2e5d7;
    background: #f9fcf8;
}

.bd-latest-item span {
    font-weight: 700;
    line-height: 1.2;
}

.bd-latest-item small {
    color: #617084;
}

.bd-help-card p {
    margin: 0 0 0.68rem;
    color: #4f5f74;
}

.bd-help-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.56rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, var(--re-secondary), var(--re-secondary-deep));
}

.bd-calc-card label {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
}

.bd-calc-card input {
    min-height: 36px;
    border: 1px solid #d5dfd4;
    border-radius: 9px;
    background: #fff;
    padding: 0.3rem 0.54rem;
    font-size: 0.86rem;
    color: #273447;
}

.bd-calc-inline {
    margin-top: 0.45rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bd-calc-card button {
    margin-top: 0.58rem;
    width: 100%;
    border: 0;
    border-radius: 10px;
    min-height: 38px;
    background: linear-gradient(120deg, var(--re-primary), var(--re-primary-deep));
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
}

.bd-calc-result {
    margin: 0.52rem 0 0;
    color: #4f5f74;
    font-size: 0.85rem;
}

.bd-calc-result strong {
    color: #153752;
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 980px) {
    .bd-layout {
        grid-template-columns: 1fr;
    }

    .bd-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .bd-calc-inline {
        grid-template-columns: 1fr;
    }
}
