/* B2B Knowledge Plugin Styles */

/* Reset & Base */
.b2bk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Higher top margin for all B2BK pages */
.b2bk-page {
    padding-top: 0px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.b2bk-page--topic .b2bk-container {
    max-width: 1220px;
}

.b2bk-page--topic .b2bk-article {
    max-width: 1080px;
    margin: 0 auto;
}

/* Breadcrumbs */
.b2bk-breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
}

.b2bk-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.b2bk-breadcrumb-item {
    display: flex;
    align-items: center;
}

.b2bk-breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #54595F;
}

.b2bk-breadcrumb-item a {
    color: #D0B263;
    text-decoration: none;
    transition: color 0.2s ease;
}

.b2bk-breadcrumb-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.b2bk-breadcrumb-item.current {
    color: #22212A;
    font-weight: 500;
}

/* Header Section */
.b2bk-header {
    margin-bottom: 40px;
}

.b2bk-title {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #142A5C;
}

.b2bk-excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #54595F;
    margin: 0;
    max-width: 800px;
}

.b2bk-meta-line {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: #54595F;
}

.b2bk-meta-line span {
    display: inline-flex;
    align-items: center;
}

.b2bk-meta-line span + span::before {
    content: '•';
    margin-right: 16px;
    color: #666666;
}

/* Featured Image */
.b2bk-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.b2bk-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Area */
.b2bk-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #22212A;
    margin-bottom: 60px;
}

.b2bk-content p {
    margin-bottom: 1.5em;
}

.b2bk-content h2,
.b2bk-content h3,
.b2bk-content h4 {
    color: #142A5C;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.b2bk-content h2 {
    font-size: 1.75rem;
}

.b2bk-content h3 {
    font-size: 1.5rem;
}

.b2bk-content ul,
.b2bk-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.b2bk-content li {
    margin-bottom: 0.5em;
}

.b2bk-content blockquote {
    border-left: 4px solid #D0B263;
    padding-left: 1.5em;
    margin: 2em 0;
    color: #54595F;
    font-style: italic;
}

/* Child Pages Section */
.b2bk-child-pages {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(74, 84, 107, 0.1);
}

.b2bk-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #142A5C;
    margin: 0 0 24px 0;
}

.b2bk-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.b2bk-page-card {
    background: transparent;
    border: 1px solid rgba(74, 84, 107, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.b2bk-page-card:hover {
    border-color: #D0B263;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.b2bk-page-card-image-wrap {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #f5f5f5;
}

.b2bk-page-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.b2bk-page-card-title {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #142A5C;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.b2bk-page-card-excerpt {
    font-size: 0.95rem;
    color: #54595F;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.b2bk-page-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.875rem;
    color: #666666;
}

.b2bk-page-card-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Archive Page */
.b2bk-archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.b2bk-archive-title {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: #142A5C;
    margin: 0 0 16px 0;
}

.b2bk-archive-description {
    font-size: 1.25rem;
    color: #54595F;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Evidence specific styles */
.b2bk-evidence-document {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.b2bk-evidence-document-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #D0B263;
    text-decoration: none;
    font-weight: 500;
}

.b2bk-evidence-document-link:hover {
    text-decoration: underline;
}

.b2bk-evidence-document-icon {
    width: 24px;
    height: 24px;
}

/* Image Gallery */
.b2bk-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.b2bk-gallery-image {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.b2bk-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.b2bk-gallery-image:hover img {
    transform: scale(1.05);
}

/* Parent link */
.b2bk-parent-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #D0B263;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.b2bk-parent-link:hover {
    text-decoration: underline;
}

.b2bk-parent-link svg {
    width: 16px;
    height: 16px;
}

/* Empty state */
.b2bk-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #54595F;
}

.b2bk-empty-state p {
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .b2bk-page {
        padding-top: 0px;
        padding-bottom: 40px;
    }

    .b2bk-title {
        font-size: 2rem;
    }

    .b2bk-archive-title {
        font-size: 2.25rem;
    }

    .b2bk-excerpt {
        font-size: 1.1rem;
    }

    .b2bk-pages-grid {
        grid-template-columns: 1fr;
    }

    .b2bk-content {
        font-size: 1rem;
    }
}

/* Floating Image Layout */
.ar-float-images {
    overflow: auto; /* Clear floats */
}

.ar-featured-image.ar-float-right {
    float: right;
    margin: 0 0 24px 32px;
    max-width: 45%;
}

.ar-image-wrapper {
    margin-bottom: 24px;
}

.ar-image-wrapper.ar-float-left {
    float: left;
    margin: 0 32px 24px 0;
    max-width: 45%;
}

.ar-image-wrapper.ar-float-right {
    float: right;
    margin: 0 0 24px 32px;
    max-width: 45%;
}

.ar-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Clear floats after content sections */
.ar-float-images::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive: disable floating on mobile */
@media (max-width: 768px) {
    .ar-featured-image.ar-float-right,
    .ar-image-wrapper.ar-float-left,
    .ar-image-wrapper.ar-float-right {
        float: none;
        max-width: 100%;
        margin: 0 0 24px 0;
    }
}

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .b2bk-page.dark-mode {
        background: #142A5C;
    }

    .b2bk-page.dark-mode .b2bk-title,
    .b2bk-page.dark-mode .b2bk-section-title,
    .b2bk-page.dark-mode .b2bk-page-card-title {
        color: #f9fafb;
    }

    .b2bk-page.dark-mode .b2bk-content,
    .b2bk-page.dark-mode .b2bk-excerpt {
        color: #d1d5db;
    }

    .b2bk-page.dark-mode .b2bk-page-card {
        background: #1f2937;
        border-color: #22212A;
    }

    .b2bk-page.dark-mode .b2bk-breadcrumb-item.current {
        color: rgba(74, 84, 107, 0.1);
    }
}

/* Valsuani timeline */
.ar-timeline {
    margin: 3.5rem 0 4.5rem;
}

.ar-timeline__header {
    margin-bottom: 1.75rem;
}

.ar-timeline__title {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.2;
    color: #1d3c78;
}

.ar-timeline__groups {
    display: grid;
    gap: 1.75rem;
}

.ar-timeline__group {
    display: grid;
    gap: 1rem;
}

.ar-timeline__group-label {
    background: #203b73;
    color: #e2c15d;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    padding: 0.65rem 1rem;
}

.ar-timeline__entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
    align-items: center;
    gap: 0;
}

.ar-timeline__card,
.ar-timeline__spacer {
    min-height: 100%;
}

.ar-timeline__card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(32, 59, 115, 0.18);
    box-shadow: 0 8px 24px rgba(21, 33, 60, 0.08);
    padding: 1.1rem 1.15rem 1rem;
    max-width: 320px;
}

.ar-timeline__entry--left .ar-timeline__card {
    justify-self: end;
    margin-right: 1rem;
}

.ar-timeline__entry--right .ar-timeline__card {
    justify-self: start;
    margin-left: 1rem;
}

.ar-timeline__year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0d77d;
    color: #1d3c78;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    margin-bottom: 0.75rem;
}

.ar-timeline__card-title {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    line-height: 1.35;
    color: #1b2540;
}

.ar-timeline__card-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #54595F;
}

.ar-timeline__rail {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.ar-timeline__rail::before {
    content: "";
    position: absolute;
    top: -1.5rem;
    bottom: -1.5rem;
    width: 2px;
    background: rgba(32, 59, 115, 0.22);
}

.ar-timeline__dot {
    position: relative;
    z-index: 1;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #203b73;
    box-shadow: 0 0 0 5px rgba(240, 215, 125, 0.45);
}

.ar-timeline__spacer {
    min-width: 0;
}

@media (max-width: 860px) {
    .ar-timeline__entry {
        grid-template-columns: 1fr 44px;
    }

    .ar-timeline__entry--left .ar-timeline__card,
    .ar-timeline__entry--right .ar-timeline__card {
        justify-self: stretch;
        margin: 0;
        max-width: none;
    }

    .ar-timeline__entry--left .ar-timeline__card {
        grid-column: 1;
    }

    .ar-timeline__entry--right .ar-timeline__card {
        grid-column: 1;
    }

    .ar-timeline__entry--left .ar-timeline__spacer,
    .ar-timeline__entry--right .ar-timeline__spacer {
        display: none;
    }

    .ar-timeline__entry--left .ar-timeline__rail,
    .ar-timeline__entry--right .ar-timeline__rail {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 640px) {
    .ar-timeline {
        margin: 2.5rem 0 3.5rem;
    }

    .ar-timeline__entry {
        grid-template-columns: 1fr 32px;
    }

    .ar-timeline__group-label {
        font-size: 0.66rem;
        letter-spacing: 0.12em;
    }

    .ar-timeline__card {
        padding: 1rem;
    }
}

/* Editorial article shell */
.ar-reading-progress {
    display: none !important;
}

.ar-article-layout {
    display: grid;
    grid-template-columns: minmax(96px, 126px) minmax(0, 1fr) minmax(120px, 148px);
    gap: 1.25rem;
    align-items: start;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 22px 3.5rem;
}

.ar-toc {
    position: sticky !important;
    top: 116px;
    align-self: start;
    justify-self: start;
    width: 100%;
    padding-top: 0.35rem;
    padding-left: 1.35rem;
    margin-left: -74px;
    border-left: 1px solid rgba(208, 178, 99, 0.78);
}

.ar-toc__title {
    margin: 0 0 0.62rem;
    color: #d0b263;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.ar-toc__page-title {
    display: block;
    margin-bottom: 0.52rem;
    color: #203b73;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.18;
}

.ar-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.34rem;
}

.ar-toc__list a {
    color: #7b8190;
    font-size: 0.66rem;
    line-height: 1.16;
}

.ar-toc__list a:hover {
    color: #203b73;
}

.ar-article-body {
    min-width: 0;
    max-width: 940px;
}

.ar-article__eyebrow {
    margin: 0 0 0.85rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d0b263;
}

.ar-eyebrow__crumb--active {
    color: #d0b263;
}

.ar-eyebrow__sep {
    margin: 0 0.3rem;
}

.ar-article__title {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    margin: 0 0 0.5rem;
    color: #142A5C;
    font-size: clamp(3.4rem, 5vw, 4.55rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
}

.ar-article__title strong {
    font-weight: 700;
}

.ar-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin: 0 0 1.45rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(208, 178, 99, 0.68);
    color: #6a7280;
    font-size: 0.9rem;
}

.ar-article__meta span + span::before {
    content: '·';
    margin-right: 0.9rem;
    color: #666666;
}

.ar-article-content {
    font-size: 0.88rem;
    line-height: 1.54;
    color: #2f3746;
}

.ar-article-content .ar-lead {
    font-size: 0.94rem;
    line-height: 1.6;
    color: #2f3746;
}

.ar-article-content > p:first-of-type::first-letter {
    float: left;
    margin: 0.08rem 0.38rem 0 0;
    color: #d0b263;
    font-size: 3.2rem;
    line-height: 0.82;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
}

.ar-article-content p {
    margin-bottom: 0.72rem;
}

.ar-article-content h2 {
    clear: both;
    margin: 2.25rem 0 0.65rem;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #142A5C;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(208, 178, 99, 0.35);
}

.ar-article-content h2::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #D0B263;
    margin-bottom: 0.5rem;
}

.ar-article-content h3 {
    clear: both;
    margin: 1.75rem 0 0.5rem;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #142A5C;
}

.ar-article-content h4 {
    clear: both;
    margin: 1.5rem 0 0.5rem;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #142A5C;
}

.ar-article-content .b2bk-featured-image {
    max-width: 170px;
    margin: 0.15rem 0 0.45rem 1.2rem;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
}

.ar-article-content .b2bk-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.ar-article-content .ar-object-views {
    display: grid;
    gap: 1rem;
    margin: 1.35rem 0 1.7rem;
}

.ar-article-content .ar-object-views--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ar-article-content .ar-object-views figure {
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ar-article-content .ar-object-views img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.ar-article-content .ar-object-views figcaption {
    padding: 0.58rem 0 0;
    color: #475569;
    font-size: 0.74rem;
    line-height: 1.55;
}

.ar-article-sidebar {
    position: sticky !important;
    top: 116px;
    align-self: start;
    justify-self: end;
    width: 100%;
    max-width: 164px;
    margin-right: -74px;
    padding-top: 0.1rem;
}

.ar-sidebar-box {
    margin-bottom: 1.5rem;
    border: 0;
    border-radius: 0;
    padding: 0 0 1rem;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(32, 59, 115, 0.1);
}

.ar-sidebar-box--dark {
    background: transparent;
    color: #203b73;
}

.ar-sidebar-box__title {
    margin: 0 0 0.62rem;
    color: inherit;
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.ar-sidebar-box--dark .ar-sidebar-box__title {
    color: #d0b263;
}

.ar-sidebar-box__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
    padding: 0.36rem 0;
    border-top: 1px solid rgba(32, 59, 115, 0.08);
    font-size: 0.72rem;
}

.ar-sidebar-box--dark .ar-sidebar-box__row {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.ar-sidebar-box__row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.ar-sidebar-box__label {
    color: #7b8190;
}

.ar-sidebar-box--dark .ar-sidebar-box__label,
.ar-sidebar-box--dark .ar-sidebar-box__value {
    color: #203b73;
}

.ar-sidebar-box__value {
    color: #203b73;
    text-align: right;
    font-weight: 700;
}

.ar-sidebar-progress {
    display: grid;
    gap: 0.3rem;
}

.ar-sidebar-progress__track {
    position: relative;
    height: 2px;
    background: rgba(32, 59, 115, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.ar-sidebar-progress__fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #d0b263 0%, #f1db82 100%);
    border-radius: inherit;
    transition: width 0.12s linear;
}

.ar-sidebar-progress__label {
    font-size: 0.66rem;
    color: #7b8190;
    text-align: left;
}

.ar-sidebar-link {
    display: block;
    padding: 0.38rem 0;
    color: #203b73;
    border-top: 1px solid rgba(32, 59, 115, 0.08);
    font-size: 0.74rem;
    line-height: 1.22;
    text-decoration: none;
}

.ar-sidebar-link:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.ar-faq {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(32, 59, 115, 0.12);
}

.ar-faq__header {
    margin-bottom: 1rem;
}

.ar-faq__eyebrow {
    margin: 0 0 0.3rem;
    color: #203b73;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ar-faq__title {
    margin: 0;
    color: #203b73;
    font-size: 1.6rem;
}

.ar-faq__list {
    display: grid;
    gap: 0.75rem;
}

.ar-faq__item {
    border: 1px solid rgba(32, 59, 115, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.95rem 1rem;
}

.ar-faq__question {
    cursor: pointer;
    color: #203b73;
    font-weight: 700;
    list-style: none;
}

.ar-faq__question::-webkit-details-marker {
    display: none;
}

.ar-faq__answer {
    margin-top: 0.75rem;
    color: #475569;
    line-height: 1.7;
}

/* Timeline matching reference layout */
.ar-timeline {
    clear: both;
    width: min(100%, 980px);
    margin: 3.2rem auto 4.3rem;
}

.ar-timeline__heading {
    margin: 0 0 1.2rem;
    color: #203b73;
    font-size: 2rem;
    line-height: 1.15;
}

.ar-timeline-era {
    width: min(100%, 910px);
    margin: 2.1rem auto 1.45rem;
    background: #1f376f;
    color: #d6b45b;
    position: relative;
    z-index: 3;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.78rem 1.2rem;
}

.ar-timeline-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.ar-timeline-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -2rem;
    bottom: -2rem;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #e3ca7a 0%, #d6b45b 100%);
    z-index: 0;
}

.ar-timeline-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 249, 243, 0.98) 100%);
    border: 1px solid rgba(214, 180, 91, 0.28);
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(63, 52, 24, 0.08);
    padding: 1.4rem 1.5rem 1.25rem;
    max-width: 390px;
    position: relative;
    z-index: 1;
}

.ar-timeline-card--left {
    justify-self: end;
    margin-right: 0.9rem;
}

.ar-timeline-card--right {
    justify-self: start;
    margin-left: 0.9rem;
}

.ar-timeline-card--empty {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: 1px;
}

.ar-timeline-card__subtitle {
    display: inline-block;
    margin-bottom: 0.9rem;
    color: #d6b45b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ar-timeline-card__title {
    margin: 0 0 0.8rem;
    color: #17356e;
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 700;
}

.ar-timeline-card__body {
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.65;
}

.ar-timeline-card__inline-link {
    color: #2f7d4c;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 0.14em;
}

.ar-timeline-card__verified {
    margin-top: 0.7rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.ar-timeline-card__doc-link {
    color: #2f7d4c;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 0.14em;
}

.ar-timeline-card__doc-link:hover,
.ar-timeline-card__inline-link:hover {
    color: #245f39;
}

.ar-timeline-card__tag {
    display: inline-block;
    margin-top: 0.95rem;
    padding: 0.34rem 0.72rem;
    border-radius: 6px;
    background: #f8f1dd;
    color: #96752a;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.ar-timeline-year__bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.1rem;
    height: 4.1rem;
    margin: 0 auto;
    border-radius: 999px;
    background: #1f376f;
    color: #d6b45b;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 0 0 5px #d6b45b, 0 3px 12px rgba(31, 55, 111, 0.18);
    text-align: center;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

@media (max-width: 1100px) {
    .ar-article-layout {
        grid-template-columns: 84px minmax(0, 1fr) 112px;
        gap: 0.95rem;
    }

    .ar-toc__list a {
        font-size: 0.76rem;
    }

    .ar-sidebar-link,
    .ar-sidebar-box__row {
        font-size: 0.7rem;
    }

    .ar-toc,
    .ar-article-sidebar {
        margin-inline: 0;
        position: static !important;
    }
}

@media (max-width: 900px) {
    .ar-article-layout {
        grid-template-columns: 1fr;
    }

    .ar-toc,
    .ar-article-sidebar {
        position: static;
    }

    .ar-toc {
        order: 1;
    }

    .ar-article-body {
        order: 2;
        max-width: none;
    }

    .ar-article-sidebar {
        order: 3;
    }

    .ar-article-content .ar-object-views--grid {
        grid-template-columns: 1fr;
    }

    .ar-timeline-item {
        grid-template-columns: 1fr 64px;
    }

    .ar-timeline-card--left,
    .ar-timeline-card--right {
        justify-self: stretch;
        margin: 0;
        max-width: none;
    }

    .ar-timeline-card--left {
        grid-column: 1;
    }

    .ar-timeline-card--right {
        grid-column: 1;
    }

    .ar-timeline-card--empty {
        display: none;
    }

    .ar-timeline-year__bubble {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 640px) {
    .ar-article-layout {
        padding-inline: 16px;
        gap: 1.25rem;
    }

    .ar-article__title {
        font-size: 2.6rem;
        line-height: 1;
    }

    .ar-timeline-item {
        grid-template-columns: 1fr 44px;
    }

    .ar-timeline-item::before {
        width: 3px;
    }

    .ar-timeline-card {
        padding: 1rem;
        max-width: none;
    }

    .ar-timeline-era {
        width: 100%;
        font-size: 0.68rem;
        padding-inline: 0.75rem;
    }

    .ar-timeline-year__bubble {
        width: 3rem;
        height: 3rem;
        font-size: 0.68rem;
    }
}
