/*
 * Single blog post (single.php): hero, article, table of contents, tables, FAQ, notes, author box, comments
 * and sidebar. The only stylesheet for these parts; old rules for them were removed from main.css (2026-10-10).
 * Loaded after design-system.css's tokens (var(--ds-*)).
 */

/* ---------- Hero -------------------------------------------------------------------------------- */
.bcr-post-hero { padding: 96px 0 84px !important; }
.bcr-post-hero-inner { max-width: 860px; }
.bcr-post-crumbs { margin-bottom: 18px; color: rgba(255, 255, 255, .8); font-size: 14px; }
.bcr-post-crumbs a { color: #fff; text-decoration: none; }
.bcr-post-crumbs a:hover { color: var(--ds-accent); }
.bcr-post-hero .bcr-page-title { margin: 0 0 16px; font-size: clamp(30px, 4.4vw, 52px) !important; line-height: 1.12 !important; }
.bcr-post-hero-text { margin: 0 0 22px; font-size: 18px; line-height: 1.7; }
.bcr-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: rgba(255, 255, 255, .9); font-size: 15px; }
.bcr-post-meta i { margin-right: 4px; color: var(--ds-accent); }
.bcr-post-meta-author { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 600; text-decoration: none; }
.bcr-post-meta-avatar { width: 36px; height: 36px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 50%; }

.bcr-post-section { padding: 56px 0 88px; background: var(--ds-soft); }

/* ---------- Article card ------------------------------------------------------------------------ */
.bcr-single-article {
	padding: 48px 52px;
	border: 1px solid var(--ds-line);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--ds-shadow);
}

/* ---------- Typography -------------------------------------------------------------------------- */
.bcr-entry-content { color: var(--ds-text); font-size: 17px; line-height: 1.85; }
.bcr-entry-content > :first-child { margin-top: 0; }
.bcr-entry-content > :last-child { margin-bottom: 0; }
.bcr-entry-content p { margin: 0 0 1.25em; color: var(--ds-text); }
.bcr-entry-content strong { color: var(--ds-ink); font-weight: 700; }
.bcr-entry-content h2,
.bcr-entry-content h3,
.bcr-entry-content h4 { color: var(--ds-ink); font-weight: 700; letter-spacing: -.02em; scroll-margin-top: 100px; }
.bcr-entry-content h2 {
	position: relative;
	margin: 2.2em 0 .75em;
	padding: 0 0 0 18px;
	border: 0;
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.25;
}
.bcr-entry-content h2::before {
	content: "";
	position: absolute;
	left: 0; top: .18em; bottom: .18em;
	width: 5px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--ds-accent), #f08a00);
}
.bcr-entry-content h3 { margin: 1.8em 0 .6em; font-size: clamp(20px, 2vw, 23px); line-height: 1.3; }
.bcr-entry-content h4 { margin: 1.5em 0 .5em; font-size: 18px; }
.bcr-entry-content a { color: var(--ds-accent-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(166, 95, 0, .3); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bcr-entry-content a:hover { text-decoration-color: currentColor; }

/* Lists: orange dots, roomy nested lists */
.bcr-entry-content ul,
.bcr-entry-content ol { margin: 0 0 1.4em; padding-left: 1.35em; }
.bcr-entry-content li { margin: .45em 0; padding-left: .2em; }
.bcr-entry-content li::marker { color: var(--ds-accent-ink); font-weight: 700; }
.bcr-entry-content li > ul,
.bcr-entry-content li > ol { margin: .4em 0 .7em; }
.bcr-entry-content ul ul li::marker { color: #c4ccd6; }

/* Images */
.bcr-entry-content img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 18px; box-shadow: 0 14px 30px -20px rgba(15, 23, 42, .45); }
.bcr-entry-content figure { margin: 2em 0; }
.bcr-entry-content figcaption { margin-top: 10px; color: var(--ds-muted); font-size: 14px; text-align: center; }

/* Quotes */
.bcr-entry-content blockquote {
	margin: 2em 0; padding: 20px 26px;
	border: 0; border-radius: 16px;
	background: var(--ds-soft);
	box-shadow: inset 4px 0 0 var(--ds-navy);
	color: var(--ds-ink); font-size: 18px;
}
.bcr-entry-content blockquote p:last-child { margin: 0; }

/* Notes: paragraphs starting with "Note:" / "Tip:" (inc/content-notes.php) */
.bcr-entry-content .bcr-note {
	position: relative;
	margin: 1.6em 0;
	padding: 16px 20px 16px 56px;
	border: 1px solid #fde3a7;
	border-radius: 14px;
	background: #fffaf0;
	font-size: 16px; line-height: 1.75;
}
.bcr-entry-content .bcr-note::before {
	content: "i";
	position: absolute; left: 18px; top: 16px;
	display: grid; place-items: center;
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--ds-accent); color: #111827;
	font-size: 14px; font-weight: 800; font-style: italic; line-height: 1;
}
.bcr-entry-content .bcr-note strong:first-child { color: var(--ds-accent-ink); }

/* ---------- Tables: one frame (the figure), no double borders ----------------------------------- */
.bcr-entry-content .wp-block-table,
.bcr-entry-content figure:has(> table) {
	margin: 2em 0;
	padding: 0;
	overflow-x: auto;
	border: 1px solid var(--ds-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 28px -22px rgba(15, 23, 42, .35);
}
.bcr-entry-content table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	box-shadow: none;
	background: none;
	font-size: 15px;
	line-height: 1.6;
	table-layout: auto;
}
/* A table without a figure around it gets the frame itself. */
.bcr-entry-content > table {
	display: block;
	overflow-x: auto;
	margin: 2em 0;
	border: 1px solid var(--ds-line);
	border-radius: 16px;
}
.bcr-entry-content th,
.bcr-entry-content td {
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--ds-line);
	background: none;
	color: var(--ds-text);
	text-align: left;
	vertical-align: top;
	width: auto;
}
.bcr-entry-content tr:last-child > td,
.bcr-entry-content tr:last-child > th { border-bottom: 0; }
.bcr-entry-content tbody tr:nth-child(even) > td { background: #f9fafc; }
.bcr-entry-content tbody tr:hover > td { background: #fffaf0; }
/* Header row: a real <thead>, or a first row of <th>s */
.bcr-entry-content thead th,
.bcr-entry-content thead td,
.bcr-entry-content tbody tr:first-child > th {
	background: var(--ds-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .01em;
	border-bottom: 0;
}
/* Two-column label | value tables: label column tinted */
.bcr-entry-content tr > td:first-child:not(:only-child) { width: 36%; color: var(--ds-ink); font-weight: 600; }
.bcr-entry-content td p { margin: 0; }
.bcr-entry-content td strong { color: var(--ds-ink); }

/* ---------- Table of contents ------------------------------------------------------------------- */
.bcr-entry-content .bcr-toc {
	margin: 2em 0;
	padding: 22px 26px 20px;
	border: 1px solid #fde3a7;
	border-radius: 16px;
	background: #fffaf0;
}
.bcr-toc-title { margin-bottom: 10px; color: var(--ds-ink); font-size: 17px; font-weight: 700; line-height: 1.4; }
.bcr-entry-content .bcr-toc-list { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.bcr-entry-content .bcr-toc-list li { margin: 0 0 6px; padding: 0; break-inside: avoid; font-size: 15px; line-height: 1.5; }
.bcr-entry-content .bcr-toc-list a { color: var(--ds-text); font-weight: 500; text-decoration: none; }
.bcr-entry-content .bcr-toc-list a:hover { color: var(--ds-accent-ink); }

/* ---------- FAQ blocks (Yoast) ------------------------------------------------------------------ */
.bcr-entry-content .schema-faq { margin: 1.4em 0 0; }
.bcr-entry-content .schema-faq-section {
	margin: 0 0 12px;
	padding: 18px 22px;
	border: 1px solid var(--ds-line);
	border-radius: 14px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.bcr-entry-content .schema-faq-section:hover { border-color: #fde3a7; box-shadow: 0 10px 24px -20px rgba(15, 23, 42, .4); }
.bcr-entry-content .schema-faq-question { display: block; margin-bottom: 6px; color: var(--ds-ink); font-size: 17px; font-weight: 700; line-height: 1.45; }
.bcr-entry-content .schema-faq-answer { margin: 0; font-size: 16px; }

/* ---------- Tags -------------------------------------------------------------------------------- */
.bcr-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.bcr-tag { padding: 6px 14px; border: 1px solid var(--ds-line); border-radius: 999px; background: var(--ds-soft); color: var(--ds-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.bcr-tag:hover { border-color: var(--ds-accent); color: var(--ds-accent-ink); }

/* ---------- Author box -------------------------------------------------------------------------- */
.bcr-author-box {
	display: flex; gap: 20px; align-items: flex-start;
	margin-top: 44px; padding: 26px;
	border: 1px solid var(--ds-line); border-radius: 18px;
	background: var(--ds-soft);
}
.bcr-author-avatar { flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%; box-shadow: 0 0 0 4px #fff; }
.bcr-author-label { color: var(--ds-muted); font-size: 13px; font-weight: 500; }
.bcr-author-box .bcr-author-name { margin: 2px 0 8px; font-size: 21px !important; }
.bcr-author-name a { color: var(--ds-ink); text-decoration: none; }
.bcr-author-name a:hover { color: var(--ds-accent-ink); }
.bcr-author-bio { margin: 0 0 10px; color: var(--ds-text); font-size: 15px; line-height: 1.7; }
.bcr-author-more { display: inline-flex; align-items: center; gap: 6px; color: var(--ds-accent-ink) !important; font-size: 15px; font-weight: 600; text-decoration: none; }

/* ---------- Comments ---------------------------------------------------------------------------- */
.bcr-comments-wrap {
	margin-top: 28px; padding: 38px 44px;
	border: 1px solid var(--ds-line); border-radius: 24px;
	background: #fff; box-shadow: var(--ds-shadow);
}
.bcr-comments { padding: 0; border: 0; background: none; box-shadow: none; }
.bcr-comments-title,
.comment-reply-title { margin: 0 0 16px; color: var(--ds-ink); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.bcr-comment-list { margin: 0 0 28px; padding: 0; list-style: none; }
.bcr-comment-list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--ds-line); }
.bcr-comment-list .comment-author { display: flex; align-items: center; gap: 10px; color: var(--ds-ink); font-weight: 600; }
.bcr-comment-list .comment-author img { border-radius: 50%; }
.bcr-comment-list .comment-metadata { margin: 2px 0 8px; font-size: 13px; }
.bcr-comment-list .comment-metadata a { color: var(--ds-muted); text-decoration: none; }
.bcr-comment-list .comment-content p { margin: 0 0 8px; color: var(--ds-text); }
.bcr-comment-list .reply a { color: var(--ds-accent-ink); font-size: 14px; font-weight: 600; }
.bcr-comment-form .comment-notes,
.bcr-comment-form .logged-in-as { margin-bottom: 18px; color: var(--ds-muted); font-size: 14px; }
.bcr-comment-form p { margin: 0 0 16px; }
.bcr-comment-form label { display: block; margin-bottom: 6px; color: var(--ds-ink); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.bcr-comment-form input[type="text"],
.bcr-comment-form input[type="email"],
.bcr-comment-form input[type="url"],
.bcr-comment-form textarea {
	width: 100%; padding: 12px 14px;
	border: 1px solid var(--ds-line); border-radius: 12px;
	background: var(--ds-soft); color: var(--ds-ink); font-size: 15px;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.bcr-comment-form input:focus,
.bcr-comment-form textarea:focus { outline: 0; border-color: var(--ds-accent); background: #fff; box-shadow: 0 0 0 4px rgba(253, 167, 2, .18); }
.bcr-comment-form .comment-form-author,
.bcr-comment-form .comment-form-email { display: inline-block; width: calc(50% - 8px); vertical-align: top; }
.bcr-comment-form .comment-form-author { margin-right: 12px; }
.bcr-comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.bcr-comment-form .comment-form-cookies-consent label { margin: 0; color: var(--ds-muted); font-weight: 400; }
.bcr-comment-form .form-submit { margin: 6px 0 0; }

/* ---------- Responsive -------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.bcr-single-article { padding: 36px 32px; }
}
@media (max-width: 600px) {
	.bcr-post-hero { padding: 64px 0 56px !important; }
	.bcr-post-section { padding: 28px 0 56px; }
	.bcr-single-article,
	.bcr-comments-wrap { padding: 24px 20px; border-radius: 18px; }
	.bcr-entry-content { font-size: 16px; }
	.bcr-entry-content h2 { padding-left: 14px; }
	.bcr-entry-content .bcr-toc-list { columns: 1; }
	.bcr-entry-content th, .bcr-entry-content td { padding: 12px 14px; font-size: 14px; }
	.bcr-author-box { flex-direction: column; }
	.bcr-comment-form .comment-form-author,
	.bcr-comment-form .comment-form-email { display: block; width: 100%; margin-right: 0; }
}
/* Sidebar */
.bcr-single-post .bcr-blog-sidebar { position: sticky; top: 100px; display: grid; gap: 22px; }
.bcr-single-post .bcr-sidebar-box {
	margin: 0; padding: 24px;
	border: 1px solid var(--ds-line); border-radius: 18px; background: #fff; box-shadow: var(--ds-shadow);
}
.bcr-sidebar-title { margin: 0 0 14px; color: var(--ds-ink); font-size: 18px !important; font-weight: 700 !important; }
.bcr-sidebar-search { position: relative; display: flex; }
.bcr-sidebar-search .form-control { padding: 12px 46px 12px 14px; border: 1px solid var(--ds-line); border-radius: 12px; background: var(--ds-soft); font-size: 15px; }
.bcr-sidebar-search .form-control:focus { border-color: var(--ds-accent); background: #fff; box-shadow: 0 0 0 4px rgba(253, 167, 2, .18); }
.bcr-sidebar-search button { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--ds-accent); color: #111827; }
.bcr-sidebar-recent { display: grid; gap: 4px; margin: 0; }
.bcr-sidebar-recent li a { padding: 8px; margin: 0 -8px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.bcr-sidebar-recent li a:hover { background: var(--ds-soft); }
.bcr-sidebar-thumb { flex-shrink: 0; width: 72px !important; height: 56px !important; border-radius: 10px; object-fit: cover; }
.bcr-sidebar-recent-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bcr-sidebar-recent-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ds-ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.bcr-sidebar-recent li a:hover .bcr-sidebar-recent-title { color: var(--ds-accent-ink); }
.bcr-sidebar-recent-date { color: var(--ds-muted); font-size: 13px; }
.bcr-single-post .bcr-sidebar-cta { background: var(--ds-navy); border-color: var(--ds-navy); text-align: left; }
.bcr-sidebar-cta-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 12px; background: rgba(253, 167, 2, .15); color: var(--ds-accent); font-size: 20px; }
.bcr-sidebar-cta .bcr-sidebar-title { color: #fff !important; }
.bcr-sidebar-cta p { margin: 0 0 16px; color: rgba(255, 255, 255, .85) !important; font-size: 15px; line-height: 1.65; }
.bcr-sidebar-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: var(--ds-accent); color: #111827 !important; font-size: 15px; font-weight: 600; text-decoration: none; }
.bcr-sidebar-cta-btn:hover { background: var(--ds-accent-hover); }

@media (max-width: 991px) {
	.bcr-single-post .bcr-blog-sidebar { position: static; }
}
@media (max-width: 600px) {
	.bcr-post-hero { padding: 64px 0 56px !important; }
	.bcr-post-section { padding: 28px 0 56px; }
	.bcr-single-post .bcr-single-article, .bcr-single-post .bcr-comments-wrap { padding: 24px 20px; border-radius: 18px; }
	.bcr-entry-content { font-size: 16px; }
	.bcr-single-post .bcr-author-box { flex-direction: column; }
}

