/* ── Reading progress bar ─────────────────────────────────────────────────── */

#reading-progress {
	position: fixed;
	left: 0;
	top: 0;
	width: 0%;
	height: 3px;
	background: #ff9900;
	z-index: 101;
	pointer-events: none;
	transition: width 0.08s linear;
}

/* ── Blog listing ─────────────────────────────────────────────────────────── */

.blog-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.blog-card {
	display: block;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-card:hover {
	border-color: #ff9900;
	box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.blog-card-img-wrap {
	width: 100%;
	aspect-ratio: 16 / 8;
	overflow: hidden;
	background: #f5f5f5;
}

.blog-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.03); }

.blog-card-content {
	padding: 1.75rem 2rem 2rem;
}

.blog-card-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.blog-card-tag {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #ff9900;
	background: rgba(255,153,0,0.1);
	padding: 0.2rem 0.55rem;
	border-radius: 4px;
}

.blog-card-date {
	font-size: 0.82rem;
	color: #aaa;
}

.blog-card-title {
	font-family: 'Roboto Slab', serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
	margin-bottom: 0.75rem;
}

.blog-card-excerpt {
	font-size: 0.95rem;
	color: #666;
	line-height: 1.7;
	margin-bottom: 1rem;
}

.blog-card-read {
	font-size: 0.875rem;
	font-weight: 600;
	color: #ff9900;
}

/* ── TL;DR box ────────────────────────────────────────────────────────────── */

.post-tldr {
	background: #f8f4ee;
	border: 1px solid #e8d8bb;
	border-left: 4px solid #ff9900;
	border-radius: 0 10px 10px 0;
	padding: 1.25rem 1.5rem 1.25rem 1.5rem;
	margin-bottom: 2.5rem;
}

.post-tldr-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ff9900;
	margin-bottom: 0.75rem;
}

.post-tldr-list {
	margin: 0;
	padding-left: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.post-tldr-list li {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #3a3a3a;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */

.post-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.82rem;
	color: #aaa;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.post-breadcrumb a {
	color: #aaa;
	text-decoration: none;
	transition: color 0.15s;
}
.post-breadcrumb a:hover { color: #ff9900; }

.post-breadcrumb span[aria-hidden] { color: #ccc; }

/* ── Post back link ───────────────────────────────────────────────────────── */

.post-back {
	margin-bottom: 2rem;
}

.post-back-link {
	font-size: 0.875rem;
	color: #888;
	text-decoration: none;
	transition: color 0.15s;
}
.post-back-link:hover { color: #ff9900; }

/* ── Post header ──────────────────────────────────────────────────────────── */

.post-header {
	padding-bottom: 2.5rem;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid #f0f0f0;
}

.post-header-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.post-title {
	font-family: 'Roboto Slab', serif;
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.25;
	margin-bottom: 1rem;
}

.post-dek {
	font-size: 1.1rem;
	color: #555;
	line-height: 1.7;
	font-style: italic;
}

.post-byline {
	margin-top: 1rem;
	font-size: 0.875rem;
	color: #999;
}

/* ── Post hero image ──────────────────────────────────────────────────────── */

.post-hero {
	margin: 1.5rem 0 2.5rem;
	border-radius: 12px;
	overflow: hidden;
	line-height: 0;
}

.post-hero img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 12px;
}

/* ── Post body ────────────────────────────────────────────────────────────── */

.post-body {
	font-size: 1rem;
	color: #323232;
	line-height: 1.8;
}

.post-body p {
	margin-bottom: 1.4rem;
}

.post-body h2 {
	font-family: 'Roboto Slab', serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 2.5rem 0 1rem;
	line-height: 1.3;
}

.post-body h3 {
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 2rem 0 0.6rem;
	letter-spacing: 0.01em;
}

.post-rule {
	border: none;
	border-top: 1px solid #ebebeb;
	margin: 2.5rem 0;
}

/* ── Post table ───────────────────────────────────────────────────────────── */

.post-table-wrap {
	overflow-x: auto;
	margin: 1.5rem 0 0.5rem;
	border-radius: 8px;
	border: 1px solid #e8e8e8;
}

.post-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.post-table th {
	background: #f5f5f5;
	padding: 0.7rem 1rem;
	text-align: left;
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #666;
	border-bottom: 1px solid #e8e8e8;
}

.post-table td {
	padding: 0.7rem 1rem;
	border-bottom: 1px solid #f0f0f0;
	color: #323232;
}

.post-table tr:last-child td { border-bottom: none; }

.post-table-row--highlight td {
	background: rgba(255,153,0,0.05);
	font-weight: 600;
}

.post-table-row--baseline td {
	color: #888;
	font-size: 0.88rem;
}

.post-table-note {
	font-size: 0.8rem;
	color: #aaa;
	margin-bottom: 1.5rem;
}

/* ── Post list & sources ──────────────────────────────────────────────────── */

.post-list {
	padding-left: 1.5rem;
	margin-bottom: 1.4rem;
}

.post-list li {
	margin-bottom: 0.9rem;
	line-height: 1.7;
}

.post-sources {
	padding-left: 1.5rem;
	margin-bottom: 1.4rem;
}

.post-sources li {
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.post-sources a {
	color: #ff9900;
	text-decoration: none;
}
.post-sources a:hover { text-decoration: underline; }

.post-data-note {
	font-size: 0.82rem;
	color: #aaa;
	font-style: italic;
	margin-top: 1rem;
}

/* ── Key finding callout ──────────────────────────────────────────────────── */

.post-key-finding {
	background: rgba(255,153,0,0.07);
	border-left: 3px solid #ff9900;
	padding: 1rem 1.25rem;
	border-radius: 0 8px 8px 0;
	margin-bottom: 1.4rem;
	font-size: 1rem;
	line-height: 1.7;
	color: #1a1a1a;
}

/* ── WSD Take callout ─────────────────────────────────────────────────────── */

.post-wsd-take {
	background: #f7f7f7;
	border-left: 4px solid #cccccc;
	border-radius: 0 10px 10px 0;
	padding: 1.75rem 2rem;
	margin: 0 0 1.4rem;
}

.post-wsd-take h2 {
	margin-top: 0;
}

/* ── FAQ accordion ────────────────────────────────────────────────────────── */

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: 2rem;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
}

.faq-item {
	border-bottom: 1px solid #e8e8e8;
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 1.1rem 1.5rem;
	background: #fff;
	border: none;
	cursor: pointer;
	font-size: 0.975rem;
	font-weight: 600;
	color: #1a1a1a;
	text-align: left;
	line-height: 1.4;
	transition: background 0.15s;
}
.faq-q:hover { background: #fafafa; }

.faq-chevron {
	flex-shrink: 0;
	color: #aaa;
	transition: transform 0.2s;
}

.faq-answer {
	display: none;
	padding: 0 1.5rem 1.25rem;
	font-size: 0.95rem;
	color: #555;
	line-height: 1.7;
}
.faq-answer p { margin: 0; }
.faq-answer code {
	font-family: monospace;
	font-size: 0.88em;
	background: #f5f5f5;
	padding: 0.1em 0.35em;
	border-radius: 3px;
}

.faq-item--open .faq-q { background: #fffbf5; }
.faq-item--open .faq-chevron { transform: rotate(180deg); color: #ff9900; }
.faq-item--open .faq-answer { display: block; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
	.blog-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.post-title { font-size: 1.5rem; }
	.blog-card-content { padding: 1.25rem; }
	.post-table th,
	.post-table td { padding: 0.6rem 0.75rem; }
}
