/* ============================================================
   Blog Detail Page Styles
   ============================================================ */

/* --- Reading Progress Bar --- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
    z-index: 200;
    transition: width 0.1s linear;
}

/* --- Article Hero --- */
.article-hero {
    padding-top: 100px;
    padding-bottom: 3rem;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

/* Breadcrumb (reuse from blog.css, also defined here for standalone use) */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    padding-top: 1rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-tertiary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand-blue); }
.breadcrumb svg { width: 12px; height: 12px; color: var(--text-tertiary); flex-shrink: 0; }
.breadcrumb span { color: var(--text-primary); font-weight: 500; }

/* Article Hero Content */
.article-hero-content {
    max-width: 800px;
}

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.article-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
}
.article-tag-tutorial    { background: #eff6ff; color: #1d4ed8; }
.article-tag-comparison  { background: #f0fdf4; color: #15803d; }
.article-tag-troubleshoot { background: #faf5ff; color: #7e22ce; }
.article-tag-tech        { background: #fff7ed; color: #c2410c; }
.article-tag-basics      { background: #f0fdf4; color: #15803d; }
.article-tag-advanced    { background: #faf5ff; color: #7e22ce; }

.article-hero-meta time,
.article-hero-meta .read-time {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}
.article-hero-meta .meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-tertiary);
    flex-shrink: 0;
}

.article-hero-content h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    max-width: 680px;
}

/* --- Article Layout --- */
.article-layout {
    padding: 4rem 0 6rem;
    background: #fafafa;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

/* --- Table of Contents (Sidebar) --- */
.article-toc {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 16px;
    padding: 1.5rem;
}

.toc-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toc-list a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    line-height: 1.45;
    transition: all 0.2s;
}
.toc-list a:hover {
    color: var(--brand-blue);
    background: #eff6ff;
}
.toc-list a.active {
    color: var(--brand-blue);
    background: #eff6ff;
    font-weight: 500;
}

.toc-list .toc-h3 a {
    padding-left: 1.25rem;
    font-size: 0.82rem;
}

/* --- Article Body --- */
.article-body {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 20px;
    padding: 3rem 3.5rem;
    min-width: 0;
}

/* Article typography */
.article-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}
.article-content h2:first-child { margin-top: 0; border-top: none; }

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 1.75rem 0 0.75rem;
}

.article-content p {
    font-size: 0.975rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
    font-size: 0.975rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.article-content li strong { color: var(--text-primary); }

.article-content strong { color: var(--text-primary); font-weight: 600; }

.article-content code {
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    background: #f5f5f5;
    color: #d63384;
    padding: 0.15em 0.45em;
    border-radius: 5px;
}

.article-content pre {
    background: #0f172a;
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}
.article-content pre code {
    background: none;
    color: #e2e8f0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.7;
}

.article-content blockquote {
    border-left: 3px solid var(--brand-blue);
    padding: 0.75rem 1.25rem;
    background: #eff6ff;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.25rem;
}
.article-content blockquote p {
    margin: 0;
    color: #1d4ed8;
    font-size: 0.95rem;
}

/* Info/tip callout */
.callout {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}
.callout-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.callout-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
}
.callout-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.callout-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.callout p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
}
.callout-info p { color: #1e40af; }
.callout-warn p { color: #92400e; }
.callout-success p { color: #166534; }

/* Steps — block layout + absolute step badge so nested lists/text nodes are not flex siblings */
.step-list {
    counter-reset: step-counter;
    list-style: none !important;
    padding-left: 0 !important;
}
.step-list > li {
    counter-increment: step-counter;
    position: relative;
    display: block;
    margin-bottom: 1rem !important;
    padding: 1rem 1.25rem 1rem calc(1.25rem + 28px + 1rem);
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}
.step-list > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    width: 28px;
    height: 28px;
    background: var(--text-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
}
.step-list > li > ul,
.step-list > li > ol {
    margin: 0.65rem 0;
    padding-left: 1.25rem;
    list-style: disc;
}
.step-list > li > ol {
    list-style: decimal;
}
.step-list > li > ul > li,
.step-list > li > ol > li {
    margin-bottom: 0.35rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}
.step-list > li > ul > li::before,
.step-list > li > ol > li::before {
    content: none;
    display: none;
}

/* Responsive table wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}
.table-responsive table {
    margin-bottom: 0;
    min-width: 480px;
    border-radius: 0;
}

/* Comparison table */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.article-content th {
    background: #f5f5f5;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #e5e5e5;
}
.article-content td {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border: 1px solid #e5e5e5;
    vertical-align: top;
}
.article-content tr:nth-child(even) td { background: #fafafa; }

/* Responsive images */
.article-content img,
.article-content figure img,
.article-figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
.article-figure {
    margin: 1.75rem 0;
}

/* --- Inline Product Recommendation (end of article body) --- */
.article-product-inline {
    margin-top: 3rem;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.article-product-inline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.25) 0%, transparent 60%);
}
.article-product-inline > * { position: relative; z-index: 1; }

.article-product-inline h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.article-product-inline p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.article-product-inline a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--text-primary);
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}
.article-product-inline a:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.article-product-inline a svg { width: 16px; height: 16px; fill: currentColor; }

/* --- Article Footer (tags, share) --- */
.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0 0;
    margin-top: 2rem;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    background: transparent;
}
.article-footer-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.article-footer-tag {
    font-size: 0.78rem;
    padding: 0.2rem 0.7rem;
    background: #f5f5f5;
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
}
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-blue);
}
.back-to-blog svg { width: 14px; height: 14px; }
.back-to-blog:hover { opacity: 0.8; }

/* --- Product Recommendation Block (after article) --- */
.product-recommend-section {
    padding: 0 0 4rem;
    background: #fafafa;
}

.product-recommend-inner {
    background: var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 3.5rem 4rem;
    position: relative;
    overflow: hidden;
}
.product-recommend-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% 50%, rgba(59,130,246,0.35) 0%, transparent 55%),
                radial-gradient(ellipse at 85% 50%, rgba(6,182,212,0.2) 0%, transparent 55%);
}
.product-recommend-inner > * { position: relative; z-index: 1; }

.product-recommend-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.75rem;
}

.product-recommend-inner h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.product-recommend-inner > p {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 2rem;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.product-feature {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}
.product-feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.product-feature-icon svg { width: 16px; height: 16px; color: rgba(255,255,255,0.85); }
.product-feature-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}
.product-feature-text strong {
    display: block;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.product-recommend-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.btn-recommend-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-recommend-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.btn-recommend-primary svg { width: 18px; height: 18px; fill: currentColor; }
.btn-recommend-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}
.btn-recommend-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* Related Articles */
.related-section {
    padding: 0 0 5rem;
    background: #fafafa;
}
.related-title {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}
.related-card {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    border-color: #e0e0e0;
}
.related-card-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.75rem;
}
.related-card h3 {
    font-size: 0.975rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card-link {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
    height: 100%;
    color: inherit;
}
.related-card-link .related-card {
    flex: 1 1 auto;
}

/* --- Floating Widget --- */
.float-widget {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 280px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    padding: 1.25rem 1.5rem;
    z-index: 150;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.float-widget.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.float-widget-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.float-widget-close:hover { background: #e5e5e5; }
.float-widget-close svg { width: 12px; height: 12px; }
.float-widget-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
}
.float-widget-icon svg { width: 20px; height: 20px; color: #fff; }
.float-widget h4 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.float-widget p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
}
.float-widget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    background: var(--text-primary);
    color: #fff;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}
.float-widget-btn:hover {
    background: #333;
    transform: translateY(-1px);
}
.float-widget-btn svg { width: 15px; height: 15px; fill: currentColor; }

/* Mobile float widget: bottom banner */
@media (max-width: 768px) {
    .float-widget {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        display: flex;
        gap: 1rem;
        align-items: center;
        padding: 1rem 1.25rem;
    }
    .float-widget-icon { margin-bottom: 0; flex-shrink: 0; }
    .float-widget-content { flex: 1; min-width: 0; }
    .float-widget h4 { font-size: 0.88rem; }
    .float-widget p { display: none; }
    .float-widget-btn { width: auto; padding: 0.55rem 1rem; font-size: 0.82rem; flex-shrink: 0; }
    .float-widget-close { top: 0.75rem; right: 0.75rem; }
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    .article-toc { display: none; }

    .product-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Related grid: 2 columns only between tablet and mobile breakpoint */
@media (max-width: 1100px) and (min-width: 769px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Center the lone third card so the row does not look left-hugging */
    .related-card-link:nth-child(3):last-child {
        grid-column: 1 / -1;
        align-items: center;
    }
    .related-card-link:nth-child(3):last-child .related-card {
        width: 100%;
        max-width: calc((100% - 1.25rem) / 2);
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .article-hero-desc { font-size: 1rem; }

    .article-layout { padding: 1.5rem 0 3rem; }

    .article-body {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .article-content h2 { font-size: 1.25rem; }
    .article-content h3 { font-size: 1.05rem; }

    .article-content code {
        word-break: break-all;
        font-size: 0.825rem;
    }

    .step-list > li {
        padding: 0.875rem 1rem 0.875rem calc(1rem + 28px + 0.75rem);
    }
    .step-list > li::before {
        left: 1rem;
        top: 0.875rem;
    }

    .product-recommend-section { padding: 0 0 2rem; }

    .product-recommend-inner {
        padding: 2rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .product-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .product-recommend-actions { flex-direction: column; }
    .btn-recommend-primary, .btn-recommend-secondary { text-align: center; justify-content: center; }

    .related-section { padding: 0 0 3rem; }
    .related-grid { grid-template-columns: 1fr; }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Adjacent Articles (이전 / 다음) */
.adjacent-section {
    padding: 3.5rem 0 0;
    background: #fafafa;
}
.adjacent-title {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.adjacent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}
.adjacent-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    transition: var(--transition);
    color: inherit;
    height: 100%;
}
.adjacent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    border-color: #e0e0e0;
}
.adjacent-card.is-next { text-align: right; }
.adjacent-direction {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1d4ed8;
    background: #eff6ff;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    align-self: flex-start;
    margin-bottom: 0.75rem;
}
.adjacent-card.is-next .adjacent-direction { align-self: flex-end; }
.adjacent-direction svg { width: 12px; height: 12px; flex-shrink: 0; }
.adjacent-headline {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.45;
    margin: 0 0 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.adjacent-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}
.adjacent-card.is-next .adjacent-keywords { justify-content: flex-end; }
.adjacent-kw {
    font-size: 0.74rem;
    color: var(--text-secondary);
    background: #f5f5f7;
    border: 1px solid #ececec;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-pill);
    line-height: 1.4;
}
.adjacent-card-placeholder {
    border: 1px dashed #e5e5e5;
    border-radius: 16px;
    background: transparent;
}
.adjacent-section + .related-section { padding-top: 2.5rem; }
@media (max-width: 768px) {
    .adjacent-section { padding: 2.5rem 0 0; }
    .adjacent-grid { grid-template-columns: 1fr; }
    .adjacent-card.is-next { text-align: left; }
    .adjacent-card.is-next .adjacent-direction,
    .adjacent-card.is-next .adjacent-keywords { align-self: flex-start; justify-content: flex-start; }
    .adjacent-card-placeholder { display: none; }
}
