/* ── ARTICLE PAGE ── */
.article-grid { display: grid; grid-template-columns: 1fr var(--theme-sidebar-width); gap: var(--theme-sidebar-gap); }
body.no-sidebar .article-grid { grid-template-columns: 1fr; }
.article-featured-img { height: 340px; border-radius: var(--theme-image-radius); overflow: hidden; position: relative; margin-bottom: 24px; }
.article-featured-img .sd-thumb-img, .article-featured-img .sd-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.article-tag-abs { position: absolute; bottom: 20px; left: 20px; background: rgba(255,255,255,.9); color: var(--theme-success); font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 9999px; }
.article-title { font-size: var(--theme-font-size-h1); font-weight: 900; line-height: 1.25; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13px; color: var(--theme-muted); margin-bottom: 16px; }
.sd-author { display: inline-flex; align-items: center; gap: 6px; }
.sd-author-avatar { border-radius: 50%; }
.sd-author a:hover { color: var(--theme-primary); }

.share-row { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.share-label { font-size: 13px; font-weight: 500; }
.share-btn { width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: opacity .15s, transform .15s; }
.share-btn:hover { opacity: .85; transform: scale(1.1); }

/* Pillar nav */
.pillar-nav { background: var(--theme-surface); border: var(--theme-border-width) solid var(--theme-border); border-radius: var(--theme-card-radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--theme-shadow); }
.pillar-nav-inner { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pillar-btn { display: flex; align-items: center; gap: 4px; padding: 12px 20px; font-size: 13px; font-weight: 600; white-space: nowrap; border-right: var(--theme-border-width) solid var(--theme-border); transition: background .15s, color .15s; color: var(--theme-text); position: relative; }
.pillar-btn:last-child { border-right: none; }
.pillar-btn:hover, .pillar-btn.open, .pillar-btn[aria-expanded="true"] { background: var(--theme-primary); color: #fff; }
.pillar-dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--theme-surface); border: var(--theme-border-width) solid var(--theme-border); border-radius: 0 0 12px 12px; box-shadow: var(--theme-shadow-md); z-index: 50; }
.pillar-btn.open .pillar-dropdown, .pillar-btn[aria-expanded="true"] .pillar-dropdown { display: block; }
.pillar-dropdown a { display: block; padding: 10px 16px; font-size: 13px; color: var(--theme-text); transition: background .15s, color .15s; }
.pillar-dropdown a:hover { background: var(--theme-primary-light, #e8f0fd); color: var(--theme-primary); }

/* Quick Summary (TLDR) */
.tldr-box { background: color-mix(in srgb, var(--theme-accent) 8%, white); border: 1px solid color-mix(in srgb, var(--theme-accent) 35%, white); border-radius: 16px; padding: 24px; margin-bottom: 32px; }
.tldr-badge { display: inline-block; background: var(--theme-accent); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 12px; border-radius: 9999px; margin-bottom: 14px; }
.tldr-list { list-style: none; }
.tldr-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.tldr-item:last-child { margin-bottom: 0; }
.tldr-check { color: var(--theme-accent); flex-shrink: 0; font-size: 16px; }

/* Article body typography */
.article-body { font-family: var(--theme-font-article); font-size: 17px; line-height: var(--theme-line-height-article); color: #1f2937; max-width: var(--theme-content-width); }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-family: var(--theme-font-heading); font-size: var(--theme-font-size-h2); font-weight: 800; margin: 36px 0 14px; color: var(--theme-text); }
.article-body h3 { font-family: var(--theme-font-heading); font-size: var(--theme-font-size-h3); font-weight: 700; margin: 28px 0 12px; color: var(--theme-text); }
.article-body h4 { font-family: var(--theme-font-heading); font-size: var(--theme-font-size-h4); font-weight: 700; margin: 22px 0 10px; color: var(--theme-text); }
.article-body ul, .article-body ol { margin-bottom: 20px; padding-left: 4px; }
.article-body ul li { display: flex; gap: 10px; margin-bottom: 10px; list-style: none; }
.article-body ul li::before { content: "•"; color: var(--theme-primary); font-size: 18px; flex-shrink: 0; margin-top: -1px; }
.article-body ol { list-style: decimal; padding-left: 22px; }
.article-body ol li { margin-bottom: 10px; }
.article-body strong { font-weight: 700; color: var(--theme-text); }
.article-body a { color: var(--theme-primary); text-decoration: underline; }
.article-body blockquote { border-left: 4px solid var(--theme-primary); padding: 4px 20px; margin: 24px 0; font-style: italic; color: var(--theme-muted); }
.article-body img { border-radius: var(--theme-card-radius); margin: 20px 0; }
.article-body figcaption { font-size: 12px; color: var(--theme-muted); text-align: center; margin-top: 6px; }
.article-body .wp-block-buttons a,
.article-body .wp-block-button__link { display: inline-flex; background: var(--theme-primary); color: #fff; padding: 10px 22px; border-radius: var(--theme-button-radius); font-weight: 600; text-decoration: none; font-family: var(--theme-font-heading); }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; box-shadow: var(--theme-shadow); margin: 28px 0; font-size: 13px; }
.data-table thead th { background: var(--theme-primary); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; }
.data-table tbody tr:nth-child(even) { background: var(--theme-background); }
.data-table tbody tr:nth-child(odd) { background: var(--theme-surface); }
.data-table tbody td { padding: 11px 16px; border-bottom: var(--theme-border-width) solid var(--theme-border); color: var(--theme-text); }
.data-table.green-head thead th { background: var(--theme-success); }
.article-body table:not(.data-table) { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-body table:not(.data-table) th,
.article-body table:not(.data-table) td { border: var(--theme-border-width) solid var(--theme-border); padding: 10px 14px; text-align: left; }
.article-body table:not(.data-table) th { background: var(--theme-background); font-weight: 700; }

/* FAQ */
.faq-section { margin: 40px 0 32px; }
.faq-section-title, .faq-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.faq-item { background: var(--theme-surface); border: var(--theme-border-width) solid var(--theme-border); border-radius: 12px; overflow: hidden; box-shadow: var(--theme-shadow); margin-bottom: 10px; }
.faq-btn, .faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-size: 14px; font-weight: 600; text-align: left; color: var(--theme-text); }
.faq-btn-left { display: flex; align-items: center; gap: 12px; }
.faq-num { width: 22px; height: 22px; border-radius: 50%; background: var(--theme-primary-light, #e8f0fd); color: var(--theme-primary); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-arrow { transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-arrow, .faq-item[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 20px; font-size: 13px; color: var(--theme-muted); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 600px; padding: 0 20px 18px; }
@media (prefers-reduced-motion: reduce) {
	.faq-answer { transition: none; }
}
