.rmkb-page,
.rmkb-page * {
    box-sizing: border-box;
}

.rmkb-page {
    --rmkb-blue: #3565e8;
    --rmkb-blue-dark: #2452cd;
    --rmkb-navy: #172033;
    --rmkb-text: #172033;
    --rmkb-muted: #667085;
    --rmkb-line: #e1e7f0;
    --rmkb-soft: #f0f5fa;
    --rmkb-yellow: #ffd54a;
    color: var(--rmkb-text);
    font-family: inherit;
}

.rmkb-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.rmkb-hero {
    padding: 42px 0 0;
    color: var(--rmkb-text);
}

.rmkb-hero > .rmkb-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rmkb-line);
    border-radius: 18px;
    background:
        radial-gradient(circle at 94% 6%, rgba(53, 101, 232, 0.12), transparent 26%),
        #fff;
    padding: 34px 32px 30px;
    box-shadow: 0 14px 30px rgba(25, 38, 70, 0.05);
}

.rmkb-eyebrow,
.rmkb-empty__label {
    display: inline-block;
    margin-bottom: 11px;
    color: var(--rmkb-blue);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
}

.rmkb-hero .rmkb-eyebrow {
    color: var(--rmkb-blue);
}

.rmkb-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--rmkb-navy) !important;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.rmkb-hero p {
    max-width: 780px;
    margin: 12px 0 0;
    color: var(--rmkb-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.rmkb-search {
    display: flex;
    width: 100%;
    max-width: 850px;
    margin-top: 22px;
}

.rmkb-search label {
    flex: 1;
}

.rmkb-search input {
    width: 100%;
    min-height: 56px;
    border: 1px solid var(--rmkb-line) !important;
    border-radius: 14px !important;
    outline: 0 !important;
    background: #fbfcfe !important;
    padding: 0 18px !important;
    color: var(--rmkb-text) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

.rmkb-search input::placeholder {
    color: #98a2b3;
}

.rmkb-search input:focus {
    border-color: var(--rmkb-blue) !important;
    box-shadow: 0 0 0 3px rgba(53, 101, 232, 0.12) !important;
}

.rmkb-search button {
    min-width: 132px;
    min-height: 56px;
    margin-left: 10px;
    border: 0;
    border-radius: 14px;
    background: var(--rmkb-blue);
    padding: 0 22px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(53, 101, 232, 0.22);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rmkb-search button:hover {
    background: var(--rmkb-blue-dark);
    transform: translateY(-1px);
}

.rmkb-main {
    padding-block: 28px 80px;
}

.rmkb-topics {
    display: flex;
    gap: 9px;
    overflow: auto;
    margin: 0 0 22px;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.rmkb-topics a {
    flex: 0 0 auto;
    min-height: 40px;
    border: 1px solid var(--rmkb-line);
    border-radius: 999px;
    background: #fff;
    padding: 9px 15px;
    color: #596579 !important;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none !important;
}

.rmkb-topics a:hover,
.rmkb-topics a.is-active {
    border-color: var(--rmkb-blue);
    background: var(--rmkb-blue);
    color: #fff !important;
}

.rmkb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.rmkb-card {
    overflow: hidden;
    border: 1px solid var(--rmkb-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(25, 38, 70, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rmkb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(25, 38, 70, 0.09);
}

.rmkb-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #eff4ff, #dbe8ff);
    text-decoration: none !important;
}

.rmkb-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rmkb-card:hover .rmkb-card__image img {
    transform: scale(1.025);
}

.rmkb-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--rmkb-blue);
    font-size: 54px;
    font-weight: 900;
}

.rmkb-card__body {
    padding: 20px;
}

.rmkb-card__category {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--rmkb-blue);
    font-size: 11px;
    font-weight: 850;
}

.rmkb-card h2 {
    margin: 0;
    color: var(--rmkb-navy);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.rmkb-card h2 a {
    color: var(--rmkb-navy) !important;
    text-decoration: none !important;
}

.rmkb-card p {
    margin: 10px 0 0;
    color: var(--rmkb-muted);
    font-size: 14px;
    line-height: 1.62;
}

.rmkb-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
    color: var(--rmkb-blue) !important;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none !important;
}

.rmkb-pagination {
    margin-top: 32px;
}

.rmkb-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rmkb-pagination .page-numbers {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--rmkb-line);
    border-radius: 12px;
    background: #fff;
    color: var(--rmkb-text) !important;
    font-weight: 750;
    text-decoration: none !important;
}

.rmkb-pagination .current {
    border-color: var(--rmkb-blue);
    background: var(--rmkb-blue);
    color: #fff !important;
}

.rmkb-empty {
    border: 1px solid var(--rmkb-line);
    border-radius: 18px;
    background: #fff;
    padding: 38px 30px;
    text-align: center;
    box-shadow: 0 14px 30px rgba(25, 38, 70, 0.05);
}

.rmkb-empty__label {
    margin-bottom: 8px;
}

.rmkb-empty h2 {
    margin: 0;
    color: var(--rmkb-navy);
    font-size: 26px;
    font-weight: 850;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.rmkb-empty p {
    max-width: 620px;
    margin: 9px auto 0;
    color: var(--rmkb-muted);
    font-size: 15px;
    line-height: 1.6;
}

.rmkb-seo {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    margin-top: 48px;
    border: 1px solid var(--rmkb-line);
    border-radius: 18px;
    background: #fff;
    padding: 34px 32px;
    box-shadow: 0 14px 30px rgba(25, 38, 70, 0.05);
}

.rmkb-seo h2,
.rmkb-related > h2 {
    margin: 0;
    color: var(--rmkb-navy);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.rmkb-seo > div > p {
    color: var(--rmkb-muted);
    font-size: 15px;
    line-height: 1.7;
}

.rmkb-faq {
    display: grid;
    gap: 9px;
}

.rmkb-faq details {
    border: 1px solid var(--rmkb-line);
    border-radius: 14px;
    background: #fbfcfe;
}

.rmkb-faq summary {
    padding: 15px 17px;
    color: var(--rmkb-text);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.rmkb-faq p {
    margin: 0;
    padding: 0 17px 17px;
    color: var(--rmkb-muted);
    font-size: 14px;
    line-height: 1.6;
}

.rmkb-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 26px 0 20px;
    color: #8a94a6;
    font-size: 13px;
    font-weight: 650;
}

.rmkb-breadcrumbs a {
    color: #667085 !important;
    text-decoration: none !important;
}

.rmkb-article {
    max-width: 1040px;
    margin: 0 auto;
}

.rmkb-article__header {
    max-width: none;
    margin: 0;
    border: 1px solid var(--rmkb-line);
    border-radius: 18px;
    background: #fff;
    padding: 40px 36px;
    text-align: center;
    box-shadow: 0 14px 30px rgba(25, 38, 70, 0.05);
}

.rmkb-article__header h1 {
    max-width: 850px;
    margin: 0 auto;
    color: var(--rmkb-navy) !important;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.rmkb-article__intro {
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--rmkb-muted);
    font-size: 17px;
    line-height: 1.65;
}

.rmkb-article__meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 17px;
    color: #8a94a6;
    font-size: 13px;
    font-weight: 650;
}

.rmkb-article__image {
    overflow: hidden;
    margin: 18px 0 0;
    border: 1px solid var(--rmkb-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(25, 38, 70, 0.05);
}

.rmkb-article__image img {
    display: block;
    width: 100%;
    max-height: 920px;
    margin: auto;
    object-fit: contain;
}

.rmkb-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.rmkb-article__content {
    border: 1px solid var(--rmkb-line);
    border-radius: 18px;
    background: #fff;
    padding: 30px;
    box-shadow: 0 14px 30px rgba(25, 38, 70, 0.05);
}

.rmkb-prose {
    color: #3b4659;
    font-size: 16px;
    line-height: 1.8;
}

.rmkb-prose > :first-child {
    margin-top: 0;
}

.rmkb-prose > :last-child {
    margin-bottom: 0;
}

.rmkb-prose h2 {
    margin: 38px 0 11px;
    color: var(--rmkb-navy);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.rmkb-prose h3 {
    margin: 28px 0 9px;
    color: var(--rmkb-navy);
    font-size: 21px;
    font-weight: 850;
}

.rmkb-prose a {
    color: var(--rmkb-blue);
    font-weight: 750;
}

.rmkb-takeaway {
    margin-bottom: 27px;
    border-left: 5px solid var(--rmkb-yellow);
    border-radius: 0 14px 14px 0;
    background: #fff9dc;
    padding: 19px 21px;
}

.rmkb-takeaway strong {
    color: #705500;
    font-size: 13px;
}

.rmkb-takeaway p {
    margin: 5px 0 0;
    color: #584c1b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

.rmkb-source {
    margin-top: 28px;
    border-top: 1px solid var(--rmkb-line);
    padding-top: 17px;
    color: #7b8798;
    font-size: 13px;
}

.rmkb-article__aside {
    position: sticky;
    top: 110px;
}

.rmkb-cta {
    border: 1px solid var(--rmkb-line);
    border-radius: 18px;
    background: #fff;
    padding: 24px;
    color: var(--rmkb-text);
    box-shadow: 0 14px 30px rgba(25, 38, 70, 0.05);
}

.rmkb-cta .rmkb-eyebrow {
    color: var(--rmkb-blue);
}

.rmkb-cta h2 {
    margin: 0;
    color: var(--rmkb-navy);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.rmkb-cta p {
    color: var(--rmkb-muted);
    font-size: 14px;
    line-height: 1.62;
}

.rmkb-cta a {
    display: flex;
    justify-content: center;
    border-radius: 14px;
    background: var(--rmkb-blue);
    padding: 13px 15px;
    color: #fff !important;
    font-weight: 850;
    text-decoration: none !important;
    box-shadow: 0 14px 26px rgba(53, 101, 232, 0.18);
}

.rmkb-cta a:hover {
    background: var(--rmkb-blue-dark);
}

.rmkb-related {
    margin: 56px 0 76px;
}

.rmkb-related > h2 {
    margin-bottom: 22px;
}

.rmkb-related .rmkb-card__body {
    padding: 18px;
}

.rmkb-related .rmkb-card h2 {
    font-size: 19px;
}

.rmkb-related .rmkb-card p {
    display: none;
}

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

    .rmkb-seo {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .rmkb-article__layout {
        grid-template-columns: 1fr;
    }

    .rmkb-article__aside {
        position: static;
    }

    .rmkb-cta {
        max-width: 520px;
    }

    .rmkb-related .rmkb-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .rmkb-shell {
        width: min(100% - 24px, 1180px);
    }

    .rmkb-hero {
        padding-top: 20px;
    }

    .rmkb-hero > .rmkb-shell {
        border-radius: 16px;
        padding: 25px 20px 21px;
    }

    .rmkb-hero h1 {
        font-size: 35px;
    }

    .rmkb-hero p {
        font-size: 15px;
    }

    .rmkb-search {
        display: grid;
    }

    .rmkb-search button {
        min-height: 50px;
        margin: 8px 0 0;
    }

    .rmkb-grid,
    .rmkb-related .rmkb-grid {
        grid-template-columns: 1fr;
    }

    .rmkb-card {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        border-radius: 16px;
    }

    .rmkb-card__image {
        height: 100%;
        aspect-ratio: auto;
    }

    .rmkb-card__body {
        padding: 15px;
    }

    .rmkb-card h2 {
        font-size: 18px;
    }

    .rmkb-card p {
        display: none;
    }

    .rmkb-empty {
        padding: 30px 20px;
    }

    .rmkb-empty h2 {
        font-size: 22px;
    }

    .rmkb-seo {
        margin-top: 34px;
        border-radius: 16px;
        padding: 25px 20px;
    }

    .rmkb-seo h2,
    .rmkb-related > h2 {
        font-size: 26px;
    }

    .rmkb-breadcrumbs {
        padding-top: 20px;
    }

    .rmkb-article__header {
        border-radius: 16px;
        padding: 28px 20px;
    }

    .rmkb-article__header h1 {
        font-size: 34px;
    }

    .rmkb-article__intro {
        font-size: 16px;
    }

    .rmkb-article__meta {
        display: grid;
        gap: 3px;
    }

    .rmkb-article__image {
        border-radius: 16px;
    }

    .rmkb-article__content {
        border-radius: 16px;
        padding: 22px 20px;
    }

    .rmkb-prose {
        font-size: 15px;
    }

    .rmkb-related {
        margin: 44px 0 56px;
    }

    .rmkb-related .rmkb-card {
        grid-template-columns: 105px minmax(0, 1fr);
    }
}
