/* Semantic MetaData Pro — Frontend Styles (mobile-first) */
.smp-author-meta-line,
.smp-author-box,
.smp-toc,
.smp-summary,
.smp-also-read {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	max-width: 100%;
}
.smp-author-meta-line *,
.smp-author-box *,
.smp-toc *,
.smp-summary *,
.smp-also-read * { box-sizing: border-box; }

/* ============ AUTHOR META LINE ============ */
.smp-author-meta-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #444;
	margin: 0 0 18px;
	line-height: 1.4;
}
.smp-am-item { display: inline-flex; align-items: center; gap: 6px; }
.smp-am-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.smp-am-sep { color: #ccc; }
.smp-am-text a { color: #1a1a1a; font-weight: 600; text-decoration: none; }
.smp-am-text a:hover { text-decoration: underline; }
.smp-am-tick {
	display: inline-flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; border-radius: 50%;
	background: #e5f7e9; color: #2ea043; flex-shrink: 0;
}
@media (max-width: 480px) {
	.smp-author-meta-line { gap: 6px 8px; }
	.smp-am-sep:nth-of-type(n) { display: inline; }
}

/* Author Meta Style 1 — Plain inline line (default above) */

/* Author Meta Style 2 — Pill badge row */
.smp-am-style-2 { background: #f6f6fa; border: 1px solid #ececf3; border-radius: 999px; padding: 8px 16px; }
.smp-am-style-2 .smp-am-sep { display: none; }
.smp-am-style-2 .smp-am-item { background: #fff; border: 1px solid #ececf3; border-radius: 999px; padding: 4px 10px 4px 4px; }
.smp-am-style-2 .smp-am-tick { width: 18px; height: 18px; margin-left: 4px; }

/* Author Meta Style 3 — Card with divider */
.smp-am-style-3 { background: #fbfbfd; border: 1px solid #e6e6ea; border-radius: 10px; padding: 12px 16px; }
.smp-am-style-3 .smp-am-sep { width: 1px; height: 16px; background: #dcdce3; color: transparent; }

/* Author Meta Style 4 — Dark compact strip */
.smp-am-style-4 { background: #0f1226; color: #d9d9ec; border-radius: 8px; padding: 10px 16px; }
.smp-am-style-4 .smp-am-text a { color: #fff; }
.smp-am-style-4 .smp-am-sep { color: #3a3d5c; }
.smp-am-style-4 .smp-am-tick { background: rgba(46,160,67,.2); }

/* Author Meta Style 5 — Underline accent, stacked on mobile */
.smp-am-style-5 { border-bottom: 1px solid #ececf3; padding-bottom: 12px; }
.smp-am-style-5 .smp-am-sep { display: none; }
.smp-am-style-5 .smp-am-item::after { content: ""; }
@media (max-width: 480px) {
	.smp-am-style-5 { flex-direction: column; align-items: flex-start; gap: 4px; }
}

.smp-am-published .smp-am-text,
.smp-am-reviewed .smp-am-text { color: #6b6b78; font-size: 13px; }
.smp-am-style-4 .smp-am-published .smp-am-text,
.smp-am-style-4 .smp-am-reviewed .smp-am-text { color: #a8a8c9; }

/* ============ TABLE OF CONTENTS ============ */
.smp-toc {
	margin: 0 0 24px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e6e6ea;
	background: #fbfbfd;
}
.smp-toc-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 18px;
	cursor: default;
}
.smp-toc-title { font-weight: 700; font-size: 16px; letter-spacing: .2px; }
.smp-toc-toggle {
	background: none; border: none; cursor: pointer; padding: 4px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 6px; color: inherit;
}
.smp-toc-toggle:hover { background: rgba(0,0,0,.05); }
.smp-toc-chevron { transition: transform .25s ease; }
.smp-toc-collapsed .smp-toc-chevron { transform: rotate(-90deg); }
.smp-toc-body { padding: 4px 18px 16px; }
.smp-toc-list { list-style: none; margin: 0; padding: 0; }
.smp-toc-list .smp-toc-list { padding-left: 18px; margin-top: 6px; }
.smp-toc-item { margin: 0 0 8px; }
.smp-toc-item a {
	text-decoration: none; color: #2b2b33; font-size: 14.5px; line-height: 1.5;
	display: block; padding: 3px 0; border-left: 2px solid transparent; padding-left: 10px;
	transition: color .2s ease, border-color .2s ease;
}
.smp-toc-item a:hover { color: #6d3bf5; border-left-color: #6d3bf5; }

/* TOC Style 1 — Clean card */
.smp-toc-style-1 { background: #fff; border: 1px solid #ececf3; box-shadow: 0 1px 3px rgba(20,20,43,.05); }
.smp-toc-style-1 .smp-toc-header { border-bottom: 1px solid #f0f0f5; }
.smp-toc-style-1 .smp-toc-title::before { content: "📑 "; }

/* TOC Style 2 — Gradient premium */
.smp-toc-style-2 { border: none; background: linear-gradient(135deg,#6d3bf5 0%,#9b6bff 100%); color: #fff; }
.smp-toc-style-2 .smp-toc-title { color: #fff; }
.smp-toc-style-2 .smp-toc-toggle { color: #fff; }
.smp-toc-style-2 .smp-toc-body { background: #fff; border-radius: 10px; margin: 0 10px 10px; padding: 14px 16px; }
.smp-toc-style-2 .smp-toc-item a { color: #2b2b33; }

/* TOC Style 3 — Minimal underline */
.smp-toc-style-3 { border: none; background: transparent; border-top: 3px solid #111; border-bottom: 1px solid #eee; border-radius: 0; }
.smp-toc-style-3 .smp-toc-header { padding-left: 0; padding-right: 0; }
.smp-toc-style-3 .smp-toc-body { padding-left: 0; padding-right: 0; }
.smp-toc-style-3 .smp-toc-item a { padding-left: 0; border-left: none; border-bottom: 1px dashed #e2e2e2; padding-bottom: 8px; }

/* TOC Style 4 — Boxed numbered */
.smp-toc-style-4 { background: #0f1226; color: #fff; border: none; }
.smp-toc-style-4 .smp-toc-title { color: #fff; }
.smp-toc-style-4 .smp-toc-toggle { color: #fff; }
.smp-toc-style-4 .smp-toc-list { counter-reset: smp-toc-counter; }
.smp-toc-style-4 .smp-toc-item { counter-increment: smp-toc-counter; display: flex; align-items: flex-start; gap: 10px; }
.smp-toc-style-4 .smp-toc-item::before {
	content: counter(smp-toc-counter);
	background: #6d3bf5; color: #fff; font-size: 12px; font-weight: 700;
	width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	flex-shrink: 0; margin-top: 3px;
}
.smp-toc-style-4 .smp-toc-item a { color: #d9d9ec; padding-left: 0; }
.smp-toc-style-4 .smp-toc-item a:hover { color: #fff; }

/* TOC Style 5 — Sidebar pill */
.smp-toc-style-5 { background: #f4f6ff; border: 1px dashed #b9c3ff; border-radius: 18px; }
.smp-toc-style-5 .smp-toc-title::before { content: "🧭 "; }
.smp-toc-style-5 .smp-toc-item a { border-radius: 8px; padding: 6px 10px; border-left: none; }
.smp-toc-style-5 .smp-toc-item a:hover { background: #e3e8ff; }

/* ============ SUMMARY BOX ============ */
.smp-summary { margin: 0 0 24px; border-radius: 12px; padding: 18px 20px; border: 1px solid #e6e6ea; background: #fbfbfd; }
.smp-summary-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.smp-summary-title { font-weight: 700; font-size: 16px; }
.smp-summary-list { list-style: none; margin: 0; padding: 0; }
.smp-summary-point { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 14.5px; line-height: 1.55; }
.smp-summary-point:last-child { margin-bottom: 0; }
.smp-summary-bullet { flex-shrink: 0; margin-top: 2px; color: #2ea043; }

/* Summary Style 1 — Soft card */
.smp-sum-style-1 { background: #fff; box-shadow: 0 1px 3px rgba(20,20,43,.05); }

/* Summary Style 2 — Highlight left border */
.smp-sum-style-2 { border: none; border-left: 4px solid #6d3bf5; background: #f6f3ff; border-radius: 6px; }

/* Summary Style 3 — Dark premium */
.smp-sum-style-3 { background: #0f1226; color: #fff; border: none; }
.smp-sum-style-3 .smp-summary-bullet { color: #6de08a; }

/* Summary Style 4 — Gradient banner */
.smp-sum-style-4 { background: linear-gradient(135deg,#ffe9a8 0%,#ffd36e 100%); border: none; color: #302300; }
.smp-sum-style-4 .smp-summary-bullet { color: #7a4b00; }

/* Summary Style 5 — Checklist grid */
.smp-sum-style-5 { border: 1px solid #d7e9ff; background: #f3f9ff; }
.smp-sum-style-5 .smp-summary-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.smp-sum-style-5 .smp-summary-point { background: #fff; padding: 10px 12px; border-radius: 8px; margin-bottom: 0; border: 1px solid #e6f0ff; }

/* ============ ALSO READ ============ */
.smp-also-read { margin: 22px 0; border-radius: 12px; padding: 18px 20px; border: 1px solid #e6e6ea; background: #fbfbfd; }
.smp-ar-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.smp-ar-title { font-weight: 700; font-size: 16px; }
.smp-ar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.smp-ar-link { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid #ececf3; color: #1a1a1a; font-weight: 600; font-size: 14.5px; transition: transform .15s ease, box-shadow .15s ease; }
.smp-ar-link:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(20,20,43,.08); }
.smp-ar-link-icon { color: #6d3bf5; flex-shrink: 0; }

/* Also Read Style 1 — Card list (default above) */

/* Also Read Style 2 — Pill row (wraps on mobile) */
.smp-ar-style-2 .smp-ar-list { flex-direction: row; flex-wrap: wrap; }
.smp-ar-style-2 .smp-ar-link { border-radius: 999px; background: #f0edff; border: none; color: #4a1fc7; }
.smp-ar-style-2 .smp-ar-link-icon { color: #4a1fc7; }

/* Also Read Style 3 — Dark premium */
.smp-ar-style-3 { background: #0f1226; border: none; }
.smp-ar-style-3 .smp-ar-title { color: #fff; }
.smp-ar-style-3 .smp-ar-link { background: #1a1e3d; color: #fff; border: 1px solid #2a2f57; }
.smp-ar-style-3 .smp-ar-link-icon { color: #8f7bff; }

/* Also Read Style 4 — Numbered strip */
.smp-ar-style-4 .smp-ar-list { counter-reset: smp-ar-counter; }
.smp-ar-style-4 .smp-ar-item { counter-increment: smp-ar-counter; }
.smp-ar-style-4 .smp-ar-link { position: relative; padding-left: 40px; }
.smp-ar-style-4 .smp-ar-link::before {
	content: counter(smp-ar-counter);
	position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
	background: #6d3bf5; color: #fff; width: 20px; height: 20px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.smp-ar-style-4 .smp-ar-link-icon { display: none; }

/* Also Read Style 5 — Gradient banner strip */
.smp-ar-style-5 { background: linear-gradient(135deg,#e9f3ff 0%,#dceaff 100%); border: none; }
.smp-ar-style-5 .smp-ar-link { background: rgba(255,255,255,.7); border: 1px solid rgba(109,59,245,.15); }

/* ============ MANUAL INTERNAL LINK BLOCK ============ */
.smp-manual-link-block { margin: 0 0 1.4em; }
.smp-manual-internal-link { color: #4a1fc7; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.smp-manual-internal-link:hover { color: #6d3bf5; }

/* ============ AUTHOR BOX ============ */
.smp-author-box { display: flex; gap: 16px; align-items: flex-start; margin: 28px 0; padding: 20px; border-radius: 14px; border: 1px solid #e6e6ea; background: #fbfbfd; flex-wrap: wrap; }
.smp-ab-avatar-wrap { flex-shrink: 0; }
.smp-ab-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; }
.smp-ab-body { flex: 1; min-width: 200px; }
.smp-ab-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8a8a99; margin: 0 0 4px; font-weight: 700; }
.smp-ab-name { margin: 0 0 6px; font-size: 18px; }
.smp-ab-name a { color: #1a1a1a; text-decoration: none; }
.smp-ab-name a:hover { text-decoration: underline; }
.smp-ab-bio { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #52525b; }
.smp-ab-social { display: flex; gap: 8px; flex-wrap: wrap; }
.smp-ab-social-link { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #ececf3; color: #52525b; transition: all .2s ease; }
.smp-ab-social-link:hover { background: #6d3bf5; border-color: #6d3bf5; color: #fff; }

/* Author Box Style 1 — Clean card (default above) */
.smp-ab-style-1 { box-shadow: 0 1px 3px rgba(20,20,43,.05); background: #fff; }

/* Author Box Style 2 — Centered profile */
.smp-ab-style-2 { flex-direction: column; align-items: center; text-align: center; background: #fff; }
.smp-ab-style-2 .smp-ab-avatar { width: 96px; height: 96px; border: 4px solid #f0edff; }
.smp-ab-style-2 .smp-ab-social { justify-content: center; }

/* Author Box Style 3 — Dark premium ribbon */
.smp-ab-style-3 { background: #0f1226; border: none; color: #fff; }
.smp-ab-style-3 .smp-ab-label { color: #9d9dc9; }
.smp-ab-style-3 .smp-ab-name a { color: #fff; }
.smp-ab-style-3 .smp-ab-bio { color: #c6c6de; }
.smp-ab-style-3 .smp-ab-avatar { border: 3px solid #6d3bf5; }
.smp-ab-style-3 .smp-ab-social-link { background: #1a1e3d; border-color: #2a2f57; color: #d9d9ec; }

/* Author Box Style 4 — Gradient banner */
.smp-ab-style-4 { background: linear-gradient(135deg,#6d3bf5 0%,#9b6bff 100%); border: none; color: #fff; }
.smp-ab-style-4 .smp-ab-label { color: rgba(255,255,255,.75); }
.smp-ab-style-4 .smp-ab-name a { color: #fff; }
.smp-ab-style-4 .smp-ab-bio { color: rgba(255,255,255,.9); }
.smp-ab-style-4 .smp-ab-avatar { border: 3px solid #fff; }
.smp-ab-style-4 .smp-ab-social-link { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.smp-ab-style-4 .smp-ab-social-link:hover { background: #fff; color: #6d3bf5; }

/* Author Box Style 5 — Minimal left-border */
.smp-ab-style-5 { background: transparent; border: none; border-left: 3px solid #111; border-radius: 0; padding-left: 18px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
	.smp-author-meta-line { font-size: 13px; gap: 6px; }
	.smp-toc-header, .smp-toc-body { padding-left: 14px; padding-right: 14px; }
	.smp-author-box { padding: 16px; gap: 12px; }
	.smp-ab-avatar { width: 60px; height: 60px; }
	.smp-summary, .smp-also-read { padding: 14px 16px; }
}
