/* AM-Blog Post Version 3.0 - Frontend Styles */

:root {
	--wbm-navy: #0b1f3a;
	--wbm-navy-2: #16345e;
	--wbm-gold: #c9a24b;
	--wbm-gold-dark: #8f6f1c;
	--wbm-text: #1f2937;
	--wbm-muted: #6b7280;
	--wbm-border: #e5e7eb;
	--wbm-soft: #f5f6f8;
	--wbm-radius: 14px;
	--wbm-shadow: 0 2px 14px rgba(15, 30, 60, .07);
	--wbm-shadow-lg: 0 14px 32px rgba(15, 30, 60, .14);
	--wbm-sticky-top: 96px;
}
.admin-bar { --wbm-sticky-top: 128px; }

.wbm-single-wrapper, .wbm-archive-wrapper { box-sizing: border-box; }
.wbm-single-wrapper *, .wbm-archive-wrapper * { box-sizing: border-box; }

.wbm-section-title { font-size: 26px; line-height: 1.25; color: var(--wbm-navy); margin: 0 0 18px; position: relative; padding-bottom: 12px; }
.wbm-section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--wbm-gold); }

/* ---------- Cards grid ---------- */
.wbm-grid { display: grid; grid-template-columns: repeat(var(--wbm-columns, 3), 1fr); gap: 28px; margin: 24px 0; }
@media (max-width: 900px) { .wbm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wbm-grid { grid-template-columns: 1fr; } }

.wbm-card { background: #fff; border: 1px solid var(--wbm-border); border-radius: var(--wbm-radius); overflow: hidden; box-shadow: var(--wbm-shadow); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; }
.wbm-card:hover { transform: translateY(-5px); box-shadow: var(--wbm-shadow-lg); }

.wbm-card-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--wbm-soft); }
.wbm-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.wbm-card:hover .wbm-card-thumb img { transform: scale(1.05); }
.wbm-card-thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--wbm-navy), var(--wbm-navy-2)); }

.wbm-badge { position: absolute; top: 14px; left: 14px; background: var(--wbm-gold); color: var(--wbm-navy); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; }

.wbm-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.wbm-meta { font-size: 13px; color: var(--wbm-muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.wbm-card-title { margin: 0 0 10px; font-size: 19px; line-height: 1.38; }
.wbm-card-title a { color: var(--wbm-navy); text-decoration: none; }
.wbm-card-title a:hover { color: var(--wbm-gold-dark); }
.wbm-card-excerpt { color: #4b5563; font-size: 14.5px; line-height: 1.65; flex: 1; margin: 0 0 16px; }
.wbm-readmore { color: var(--wbm-navy); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--wbm-gold); padding-bottom: 2px; }
.wbm-readmore:hover { color: var(--wbm-gold-dark); }
.wbm-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 10px; }
.wbm-card-author { font-size: 12.5px; color: var(--wbm-muted); }
.wbm-empty { text-align: center; padding: 50px 0; color: var(--wbm-muted); background: var(--wbm-soft); border-radius: var(--wbm-radius); }
.wbm-loading { opacity: .5; transition: opacity .2s; }

/* ---------- Archive page ---------- */
.wbm-archive-wrapper { max-width: 1240px; margin: 0 auto; padding: 44px 20px 60px; }
.wbm-archive-header { text-align: center; margin-bottom: 36px; }
.wbm-archive-header h1 { font-size: 44px; color: var(--wbm-navy); margin: 0 0 8px; letter-spacing: -.01em; }
.wbm-archive-header p { color: var(--wbm-muted); font-size: 17px; margin: 0; }

.wbm-latest-section { margin-bottom: 20px; }
.wbm-older-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--wbm-border); }
.wbm-older-head { text-align: center; margin-bottom: 22px; }
.wbm-older-head .wbm-section-title { display: inline-block; margin-bottom: 8px; }
.wbm-older-head .wbm-section-title::after { left: 50%; transform: translateX(-50%); }
.wbm-older-sub { color: var(--wbm-muted); margin: 8px 0 0; font-size: 15px; }

/* Search bar */
.wbm-search-filter-bar { display: flex; gap: 10px; max-width: 720px; margin: 0 auto 22px; flex-wrap: wrap; }
.wbm-search-input-wrap { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #d1d5db; border-radius: 10px; padding: 0 14px; color: var(--wbm-muted); transition: border-color .2s, box-shadow .2s; }
.wbm-search-input-wrap:focus-within { border-color: var(--wbm-gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, .22); }
.wbm-search-input-wrap input[type="search"], .wbm-search-input-wrap input[type="text"] { flex: 1; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; padding: 12px 0; font-size: 15px; min-width: 0; color: var(--wbm-text); }
.wbm-search-filter-bar select { padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 14px; background: #fff; }
.wbm-search-filter-bar button { background: var(--wbm-navy); color: #fff; border: 0; padding: 12px 24px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: background .2s; }
.wbm-search-filter-bar button:hover { background: var(--wbm-navy-2); }

/* Category tabs */
.wbm-cat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-bottom: 6px; margin-bottom: 18px; }
.wbm-cat-tabs a { padding: 8px 18px; border-radius: 24px; font-size: 14px; font-weight: 600; color: var(--wbm-navy); text-decoration: none; background: var(--wbm-soft); border: 1px solid transparent; transition: all .2s ease; }
.wbm-cat-tabs a:hover { background: #fff; border-color: var(--wbm-gold); }
.wbm-cat-tabs a.active { background: var(--wbm-navy); color: #fff; }

.wbm-archive-layout { display: flex; gap: 40px; align-items: flex-start; margin-top: 10px; }
.wbm-archive-main { flex: 1; min-width: 0; }

.wbm-pagination { text-align: center; margin-top: 30px; }
.wbm-pagination .page-numbers { display: inline-block; min-width: 40px; padding: 9px 14px; margin: 0 3px 6px; border-radius: 10px; border: 1px solid var(--wbm-border); color: var(--wbm-navy); text-decoration: none; font-weight: 600; background: #fff; }
.wbm-pagination .page-numbers.current, .wbm-pagination .page-numbers:hover { background: var(--wbm-navy); border-color: var(--wbm-navy); color: #fff; }
.wbm-pagination .dots { border: 0; background: transparent; }

/* Featured section */
.wbm-featured-section { display: flex; gap: 28px; margin-bottom: 20px; align-items: stretch; }
.wbm-featured-main { flex: 1.5; background: #fff; border: 1px solid var(--wbm-border); border-radius: 18px; overflow: hidden; box-shadow: var(--wbm-shadow); }
.wbm-featured-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--wbm-soft); }
.wbm-featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wbm-featured-body { padding: 26px; }
.wbm-featured-body h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.3; }
.wbm-featured-body h2 a { color: var(--wbm-navy); text-decoration: none; }
.wbm-featured-body h2 a:hover { color: var(--wbm-gold-dark); }
.wbm-featured-body p { color: #4b5563; font-size: 15.5px; line-height: 1.65; margin: 0 0 14px; }

.wbm-featured-small-list { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.wbm-featured-small-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--wbm-border); border-radius: 12px; padding: 10px; text-decoration: none; align-items: center; flex: 1; transition: box-shadow .2s, transform .2s; }
.wbm-featured-small-item:hover { box-shadow: var(--wbm-shadow-lg); transform: translateX(3px); }
.wbm-featured-small-thumb { width: 78px; height: 78px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--wbm-soft); }
.wbm-featured-small-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wbm-featured-small-cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--wbm-gold-dark); }
.wbm-featured-small-item h4 { margin: 3px 0; font-size: 14px; line-height: 1.38; color: var(--wbm-navy); }
.wbm-featured-small-date { font-size: 11.5px; color: var(--wbm-muted); }
@media (max-width: 900px) { .wbm-featured-section { flex-direction: column; } }

/* ---------- Single post ---------- */
.wbm-single-wrapper { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }

.wbm-breadcrumb { font-size: 13px; color: var(--wbm-muted); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.wbm-breadcrumb a { color: var(--wbm-muted); text-decoration: none; }
.wbm-breadcrumb a:hover { color: var(--wbm-navy); }

/* Layout: article + sticky right column */
.wbm-single-layout { display: flex; gap: 48px; align-items: stretch; }
.wbm-single-main { flex: 1; min-width: 0; }
.wbm-single-aside { width: 320px; flex-shrink: 0; }
.wbm-sticky { position: sticky; top: var(--wbm-sticky-top); display: flex; flex-direction: column; gap: 16px; }

.wbm-single-cat { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wbm-gold-dark); text-decoration: none; margin-bottom: 10px; }
.wbm-single-title { font-size: 38px; color: var(--wbm-navy); line-height: 1.25; margin: 0 0 16px; letter-spacing: -.01em; }
.wbm-single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13.5px; color: var(--wbm-muted); padding-bottom: 20px; border-bottom: 1px solid var(--wbm-border); margin-bottom: 28px; }
.wbm-meta-author { display: inline-flex; align-items: center; gap: 8px; color: var(--wbm-text); }
.wbm-meta-author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.wbm-single-featured-img { border-radius: 16px; overflow: hidden; margin-bottom: 30px; }
.wbm-single-featured-img img { width: 100%; height: auto; display: block; }

.wbm-single-content { font-size: 17.5px; line-height: 1.85; color: #263041; }
.wbm-single-content p { margin: 0 0 1.3em; }
.wbm-single-content h2, .wbm-single-content h3, .wbm-single-content h4 { color: var(--wbm-navy); line-height: 1.3; scroll-margin-top: calc(var(--wbm-sticky-top) + 8px); }
.wbm-single-content h2 { font-size: 29px; margin: 1.8em 0 .6em; }
.wbm-single-content h3 { font-size: 23px; margin: 1.5em 0 .5em; }
.wbm-single-content a { color: var(--wbm-navy-2); text-decoration: underline; text-decoration-color: var(--wbm-gold); text-underline-offset: 3px; }
.wbm-single-content img { border-radius: 12px; max-width: 100%; height: auto; }
.wbm-single-content blockquote { border-left: 4px solid var(--wbm-gold); margin: 26px 0; padding: 14px 22px; background: #faf7ee; font-style: italic; border-radius: 0 10px 10px 0; }
.wbm-single-content ul, .wbm-single-content ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.wbm-single-content li { margin-bottom: .4em; }
.wbm-single-content table { width: 100%; border-collapse: collapse; margin: 24px 0; display: block; overflow-x: auto; }
.wbm-single-content table th, .wbm-single-content table td { border: 1px solid var(--wbm-border); padding: 11px 15px; text-align: left; font-size: 15px; }
.wbm-single-content table th { background: var(--wbm-soft); color: var(--wbm-navy); }

/* Shared card look */
.wbm-card-box { background: #fff; border: 1px solid var(--wbm-border); border-radius: 12px; box-shadow: 0 1px 6px rgba(15, 30, 60, .04); }

/* Share card */
.wbm-share-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.wbm-share-label { font-size: 14px; color: var(--wbm-text); }
.wbm-share-icons { display: flex; gap: 8px; }
.wbm-share-icons a, .wbm-copy-link-btn { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--wbm-soft); color: var(--wbm-navy); border: 0; cursor: pointer; text-decoration: none; transition: all .2s; }
.wbm-share-icons a:hover, .wbm-copy-link-btn:hover { background: var(--wbm-navy); color: #fff; }
.wbm-copy-link-btn.wbm-copied { background: #16a34a; color: #fff; }

/* ---------- Sticky Table of Contents ---------- */
.wbm-toc { overflow: hidden; }
.wbm-toc-head { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--wbm-border); cursor: default; }
.wbm-toc-title { font-weight: 700; font-size: 16px; color: var(--wbm-navy); }
.wbm-toc-time { margin-left: auto; font-size: 13px; color: var(--wbm-muted); }
.wbm-toc-chevron { display: none; transition: transform .2s; color: var(--wbm-muted); }
.wbm-toc-list { list-style: none; margin: 0; padding: 8px 0 10px; max-height: calc(100vh - var(--wbm-sticky-top) - 190px); overflow-y: auto; counter-reset: none; scrollbar-width: thin; }
.wbm-toc-item { margin: 0; padding: 0; }
.wbm-toc-item a { display: block; padding: 9px 20px 9px 17px; font-size: 14.5px; line-height: 1.45; color: #374151; text-decoration: none; border-left: 3px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.wbm-toc-item.wbm-toc-l3 a { padding-left: 33px; font-size: 13.5px; color: var(--wbm-muted); }
.wbm-toc-item a:hover { background: var(--wbm-soft); color: var(--wbm-navy); }
.wbm-toc-item a.active { color: var(--wbm-gold-dark); font-weight: 600; border-left-color: var(--wbm-gold); background: #fbf8ef; }

/* ---------- Engagement ---------- */
.wbm-engagement-bar { display: flex; gap: 12px; margin: 34px 0 10px; flex-wrap: wrap; }
.wbm-like-btn, .wbm-bookmark-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d1d5db; color: var(--wbm-navy); padding: 10px 20px; border-radius: 24px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.wbm-like-btn:hover, .wbm-bookmark-btn:hover { background: var(--wbm-navy); border-color: var(--wbm-navy); color: #fff; }
.wbm-like-btn.wbm-liked { background: var(--wbm-navy); border-color: var(--wbm-navy); color: #fff; }
.wbm-bookmark-btn.wbm-bookmarked { background: var(--wbm-gold); border-color: var(--wbm-gold); color: var(--wbm-navy); }

/* ---------- Author box ("Written By") ---------- */
.wbm-author-box { margin: 34px 0; padding: 26px 0; border-top: 1px solid var(--wbm-border); border-bottom: 1px solid var(--wbm-border); }
.wbm-author-top { display: flex; align-items: center; gap: 18px; }
.wbm-author-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--wbm-border); }
.wbm-author-initials { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--wbm-navy), var(--wbm-navy-2)); color: var(--wbm-gold); font-weight: 700; font-size: 24px; }
.wbm-author-name { margin: 0 0 2px; font-size: 19px; font-weight: 700; color: var(--wbm-navy); line-height: 1.3; }
.wbm-author-role { display: block; font-size: 13.5px; color: var(--wbm-muted); margin-bottom: 8px; }
.wbm-author-socials { display: flex; gap: 8px; margin-top: 8px; }
.wbm-author-bio { margin: 16px 0 0; font-size: 15px; line-height: 1.75; color: #4b5563; }

.wbm-social, .wbm-sidebar-social a { width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6; color: var(--wbm-navy); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all .2s; }
.wbm-social:hover, .wbm-sidebar-social a:hover { transform: translateY(-2px); color: #fff; }
.wbm-social-linkedin:hover { background: #0a66c2; }
.wbm-social-twitter:hover { background: #000; }
.wbm-social-facebook:hover { background: #1877f2; }
.wbm-social-instagram:hover { background: #d62976; }
.wbm-social-youtube:hover { background: #ff0000; }
.wbm-social-website:hover { background: var(--wbm-navy); }

/* Prev / next */
.wbm-single-nav { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0 4px; font-weight: 600; font-size: 15px; }
.wbm-single-nav > div { max-width: 48%; }
.wbm-nav-next { text-align: right; }
.wbm-single-nav a { color: var(--wbm-navy); text-decoration: none; }
.wbm-single-nav a:hover { color: var(--wbm-gold-dark); }

/* Explore + related */
.wbm-explore { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--wbm-border); }
.wbm-related { margin-top: 56px; }

/* ---------- Sidebar boxes ---------- */
.wbm-sidebar { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.wbm-sidebar--row { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: start; }
.wbm-sidebar-box { background: #fff; border: 1px solid var(--wbm-border); border-radius: 14px; padding: 22px; box-shadow: 0 1px 6px rgba(15, 30, 60, .04); }
.wbm-sidebar-box h3 { margin: 0 0 14px; font-size: 16px; color: var(--wbm-navy); }
.wbm-sidebar-list { list-style: none; margin: 0; padding: 0; }
.wbm-sidebar-list li { padding: 10px 0; border-bottom: 1px solid #f1f2f4; }
.wbm-sidebar-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.wbm-sidebar-list a { color: var(--wbm-text); text-decoration: none; font-size: 14px; line-height: 1.5; }
.wbm-sidebar-list a:hover { color: var(--wbm-gold-dark); }
.wbm-sidebar-ranked { counter-reset: rank; }
.wbm-sidebar-ranked li { counter-increment: rank; display: flex; gap: 12px; }
.wbm-sidebar-ranked li::before { content: counter(rank); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--wbm-soft); color: var(--wbm-navy); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }

.wbm-sidebar-newsletter { background: var(--wbm-navy); border-color: var(--wbm-navy); color: #fff; }
.wbm-sidebar-newsletter h3 { color: #fff; }
.wbm-sidebar-newsletter p { font-size: 13.5px; color: #cbd3e0; margin: 0 0 16px; line-height: 1.6; }
.wbm-sidebar-newsletter form { display: flex; flex-direction: column; gap: 10px; }
.wbm-sidebar-newsletter input[type="email"] { padding: 11px 12px; border-radius: 8px; border: 0; font-size: 14px; }
.wbm-sidebar-newsletter button { background: var(--wbm-gold); color: var(--wbm-navy); border: 0; padding: 11px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.wbm-sidebar-newsletter button:hover { background: #dab662; }
.wbm-sub-msg { font-size: 12.5px; color: #9be6ab; margin: 8px 0 0; }
.wbm-sub-msg.wbm-sub-error { color: #f2a1a1; }

.wbm-sidebar-search form { display: flex; flex-direction: column; gap: 10px; }
.wbm-sidebar-search .wbm-search-input-wrap { background: var(--wbm-soft); }
.wbm-sidebar-search button { background: var(--wbm-navy); color: #fff; border: 0; padding: 11px; border-radius: 10px; font-weight: 600; cursor: pointer; }

.wbm-sidebar-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.wbm-sidebar-cats a { background: var(--wbm-soft); color: var(--wbm-navy); font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 18px; text-decoration: none; }
.wbm-sidebar-cats a:hover { background: var(--wbm-navy); color: #fff; }
.wbm-sidebar-social { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Article callouts ---------- */
.wbm-callout { border-radius: 12px; padding: 16px 20px; margin: 24px 0; font-size: 15.5px; line-height: 1.7; }
.wbm-callout-info { background: #eef4fb; border-left: 4px solid #2b6cb0; }
.wbm-callout-warning { background: #fdf3e0; border-left: 4px solid #b3821f; }
.wbm-callout-cta { background: var(--wbm-navy); color: #fff; text-align: center; }
.wbm-cta-btn { display: inline-block; background: var(--wbm-gold); color: var(--wbm-navy) !important; font-weight: 700; padding: 10px 24px; border-radius: 8px; text-decoration: none !important; font-size: 14px; }
.wbm-cta-btn:hover { background: #dab662; }
.wbm-callout-cta .wbm-cta-btn { margin-top: 10px; }
.wbm-proscons { display: flex; gap: 20px; margin: 24px 0; flex-wrap: wrap; }
.wbm-proscons > div { flex: 1; min-width: 220px; border-radius: 12px; padding: 16px 20px; }
.wbm-pros { background: #eaf7ee; }
.wbm-cons { background: #fdeceb; }
.wbm-faq { background: #faf7ee; border-radius: 12px; padding: 16px 20px; margin: 16px 0; }

/* WP native comments */
.wbm-comments-section { margin-top: 40px; }
.wbm-comments-section .comment-form input, .wbm-comments-section .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; margin-bottom: 12px; }
.wbm-comments-section .comment-form input[type="submit"] { width: auto; background: var(--wbm-navy); color: #fff; border: 0; padding: 11px 26px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.wbm-single-layout { gap: 32px; }
	.wbm-single-aside { width: 280px; }
}
@media (max-width: 900px) {
	.wbm-archive-layout { flex-direction: column; }
	.wbm-sidebar { width: 100%; }
	.wbm-single-title { font-size: 30px; }
	.wbm-archive-header h1 { font-size: 34px; }

	/* Single: TOC becomes a collapsible bar pinned at the top while reading. */
	.wbm-single-layout { flex-direction: column; gap: 0; }
	.wbm-single-aside, .wbm-sticky { display: contents; }
	.wbm-toc { order: -1; position: sticky; top: calc(var(--wbm-sticky-top) - 70px); z-index: 30; margin-bottom: 20px; box-shadow: 0 4px 16px rgba(15, 30, 60, .1); }
	.wbm-toc-head { cursor: pointer; border-bottom: 0; }
	.wbm-toc-chevron { display: inline-flex; }
	.wbm-toc:not(.wbm-toc-collapsed) .wbm-toc-head { border-bottom: 1px solid var(--wbm-border); }
	.wbm-toc:not(.wbm-toc-collapsed) .wbm-toc-chevron { transform: rotate(180deg); }
	.wbm-toc-list { max-height: 55vh; }
	.wbm-toc-collapsed .wbm-toc-list { display: none; }
	.wbm-share-card { order: 1; margin-top: 24px; }
}
@media (max-width: 600px) {
	.wbm-single-content { font-size: 16.5px; }
	.wbm-single-content h2 { font-size: 24px; }
	.wbm-author-top { align-items: flex-start; }
	.wbm-single-nav { flex-direction: column; }
	.wbm-single-nav > div { max-width: 100%; }
	.wbm-nav-next { text-align: left; }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wbm-card, .wbm-card-thumb img { transition: none; } }
.wbm-toc-head:focus-visible { outline: 2px solid var(--wbm-gold); outline-offset: -2px; }
