/*
Theme Name:  Readable Blog
Theme URI:   https://yourblog.com
Author:      Your Name
Description: A clean, sans-serif blog theme built for long-form readability. Optimized line length, generous spacing, and subtle scroll interactions keep readers engaged.
Version:     2.0.0
License:     GNU General Public License v2 or later
Text Domain: readable-blog
Tags:        blog, one-column, custom-colors, custom-logo, featured-images, threaded-comments
*/

/* ── Import Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ════════════════════════════════════
   TOKENS
════════════════════════════════════ */
:root {
	--bg:          #FFFFFF;
	--text:        #1A1A1A;
	--text-muted:  #6B7280;
	--border:      #E5E7EB;
	--accent:      #2563EB;
	--accent-bg:   #EFF6FF;
	--accent-bdr:  #BFDBFE;
	--callout-bg:  #F9FAFB;
	--sans:        'Instrument Sans', system-ui, sans-serif;
	--serif:       'Lora', Georgia, serif;
	--prose-max:   66ch;
	--body-size:   19px;
	--body-line:   1.8;
}

/* ════════════════════════════════════
   RESET & BASE
════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--body-size); scroll-behavior: smooth; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration: none; }

/* ════════════════════════════════════
   READING PROGRESS BAR
════════════════════════════════════ */
#rb-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0%;
	background: var(--accent);
	z-index: 200;
	transition: width 0.1s linear;
	pointer-events: none;
}

/* ════════════════════════════════════
   NAVIGATION
════════════════════════════════════ */
.site-header {
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	background: rgba(255,255,255,0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 100;
}

.site-header-inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 0.9rem 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

/* Logo / Site title */
.site-title {
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
}
.site-title a {
	color: var(--text);
	text-decoration: none;
}
.site-title a:hover { color: var(--accent); }

.site-description {
	display: none; /* hidden by default, can be revealed via customizer */
}

/* Primary nav */
.main-navigation {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.main-navigation ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.main-navigation a {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--text-muted);
	text-decoration: none;
	transition: color 0.15s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--text);
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 0.35rem 0.6rem;
	font-size: 0.8rem;
	font-family: var(--sans);
	color: var(--text-muted);
	cursor: pointer;
}

/* ════════════════════════════════════
   BLOG INDEX — POST CARDS
════════════════════════════════════ */
.posts-index {
	max-width: 720px;
	margin: 0 auto;
	padding: 3rem 2rem 5rem;
}

.page-heading {
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 2.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border);
}

.post-card {
	padding: 2rem 0;
	border-bottom: 1px solid var(--border);
}
.post-card:last-child { border-bottom: none; }

.post-card-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-bottom: 0.6rem;
}
.post-card-meta-sep { color: var(--border); }
.post-card-cat {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}
.post-card-cat:hover { text-decoration: underline; }

.post-card-title {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin-bottom: 0.6rem;
}
.post-card-title a {
	color: var(--text);
	text-decoration: none;
}
.post-card-title a:hover { color: var(--accent); }

.post-card-excerpt {
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--text-muted);
	margin-bottom: 1rem;
}

.post-card-readmore {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}
.post-card-readmore:hover { text-decoration: underline; }

/* Pagination */
.posts-pagination {
	display: flex;
	gap: 0.5rem;
	margin-top: 3rem;
}
.posts-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	border-radius: 6px;
	border: 1px solid var(--border);
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--text-muted);
	text-decoration: none;
	transition: all 0.15s;
}
.posts-pagination .page-numbers:hover,
.posts-pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: white;
}

/* ════════════════════════════════════
   SINGLE POST HEADER
════════════════════════════════════ */
.post-header {
	max-width: var(--prose-max);
	margin: 0 auto;
	padding: 3.5rem 2rem 2.5rem;
	border-bottom: 1px solid var(--border);
}

.post-header-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.78rem;
	color: var(--text-muted);
	margin-bottom: 1.2rem;
	flex-wrap: wrap;
}
.post-header-meta-sep { color: var(--border); }
.post-header-cat {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}
.post-header-cat:hover { text-decoration: underline; }

.post-title {
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(1.75rem, 4vw, 2.4rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--text);
	margin-bottom: 1rem;
}

.post-subtitle {
	font-size: 1rem;
	color: var(--text-muted);
	line-height: 1.55;
	margin-bottom: 1.6rem;
}

.author-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.author-avatar {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--accent-bg);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 0.8rem;
	color: var(--accent);
	flex-shrink: 0;
	overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info { font-size: 0.82rem; line-height: 1.3; }
.author-name { font-weight: 600; color: var(--text); }
.author-date { color: var(--text-muted); font-size: 0.76rem; margin-top: 2px; }

/* Featured image */
.post-featured-image {
	max-width: var(--prose-max);
	margin: 2rem auto 0;
	padding: 0 2rem;
}
.post-featured-image img {
	width: 100%;
	border-radius: 8px;
	border: 1px solid var(--border);
}

/* ════════════════════════════════════
   PROSE / POST CONTENT
════════════════════════════════════ */
.post-content {
	max-width: var(--prose-max);
	margin: 0 auto;
	padding: 1.5rem 2rem 4rem;
}

/* Paragraphs */
.post-content p {
	font-size: 1rem;
	line-height: var(--body-line);
	color: var(--text);
	margin-bottom: 1.5rem;
}

/* Headings */
.post-content h2 {
	font-family: var(--serif);
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.015em;
	margin: 2.8rem 0 0.9rem;
	color: var(--text);
}
.post-content h3,
.entry-content h3,
body .post-content h3,
body .entry-content h3 {
	font-family: var(--serif);
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--text);
	margin: 2rem 0 0.7rem;
}
.post-content h4 {
	font-family: var(--sans);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 2rem 0 0.6rem;
	color: var(--text-muted);
}

/* Links inside content */
.post-content a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Lists */
.post-content ul,
.post-content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}
.post-content li {
	font-size: 1rem;
	line-height: var(--body-line);
	margin-bottom: 0.4rem;
}

/* Paragraph directly after h3 sits closer — they're a unit */
.post-content h3 + p {
	margin-top: 0;
}
.post-content blockquote {
	border-left: 3px solid var(--accent);
	margin: 2.2rem 0;
	padding: 0.5rem 0 0.5rem 1.5rem;
}
.post-content blockquote p {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.18rem;
	line-height: 1.55;
	color: var(--text);
	margin: 0;
}
.post-content blockquote cite {
	display: block;
	font-family: var(--sans);
	font-style: normal;
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-top: 0.6rem;
}

/* Code */
.post-content code {
	font-family: 'Menlo', 'Consolas', monospace;
	font-size: 0.85em;
	background: var(--callout-bg);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 0.1em 0.4em;
}
.post-content pre {
	background: #1A1A1A;
	border-radius: 8px;
	padding: 1.3rem 1.5rem;
	overflow-x: auto;
	margin: 1.8rem 0;
}
.post-content pre code {
	background: none;
	border: none;
	padding: 0;
	font-size: 0.85rem;
	color: #E5E7EB;
}

/* Images inside content */
.post-content figure {
	margin: 2rem 0;
}
.post-content figure img {
	width: 100%;
	border-radius: 8px;
	border: 1px solid var(--border);
}
.post-content figcaption {
	font-size: 0.78rem;
	color: var(--text-muted);
	text-align: center;
	margin-top: 0.6rem;
	line-height: 1.4;
}

/* Horizontal rule */
.post-content hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 2.5rem 0;
}

/* ── Callout boxes (via shortcode or custom blocks) ── */
.wp-block-rb-callout,
.callout {
	background: var(--callout-bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin: 2rem 0;
}
.wp-block-rb-callout p,
.callout p {
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--text-muted);
	margin: 0;
}
.wp-block-rb-callout strong,
.callout strong { color: var(--text); }

.wp-block-rb-callout-blue,
.callout-blue {
	background: var(--accent-bg);
	border: 1px solid var(--accent-bdr);
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin: 2rem 0;
}
.wp-block-rb-callout-blue p,
.callout-blue p {
	font-size: 0.95rem;
	line-height: 1.65;
	color: #1E40AF;
	margin: 0;
}

/* ════════════════════════════════════
   POST FOOTER / AUTHOR BIO
════════════════════════════════════ */
.post-footer {
	max-width: var(--prose-max);
	margin: 0 auto;
	padding: 2rem 2rem 1rem;
	border-top: 1px solid var(--border);
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}
.post-tags a {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--text-muted);
	background: var(--callout-bg);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 0.25rem 0.6rem;
	text-decoration: none;
	transition: all 0.15s;
}
.post-tags a:hover {
	color: var(--accent);
	border-color: var(--accent-bdr);
	background: var(--accent-bg);
}

.author-bio {
	display: flex;
	gap: 1.2rem;
	padding: 1.5rem;
	background: var(--callout-bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	margin-bottom: 2rem;
}
.author-bio-avatar {
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--accent-bg);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 1rem;
	color: var(--accent);
	flex-shrink: 0;
	overflow: hidden;
}
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-name {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 0.3rem;
}
.author-bio-text {
	font-size: 0.82rem;
	line-height: 1.6;
	color: var(--text-muted);
	margin: 0;
}

/* Post nav: prev/next */
.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	max-width: var(--prose-max);
	margin: 0 auto 3rem;
	padding: 0 2rem;
}
.post-nav-item {
	padding: 1rem 1.2rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s;
}
.post-nav-item:hover {
	border-color: var(--accent-bdr);
	background: var(--accent-bg);
}
.post-nav-label {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: 0.3rem;
}
.post-nav-title {
	font-family: var(--serif);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--text);
}
.post-nav-item.next { text-align: right; }

/* ════════════════════════════════════
   COMMENTS
════════════════════════════════════ */
.comments-area {
	max-width: var(--prose-max);
	margin: 0 auto;
	padding: 0 2rem 5rem;
}
.comments-title {
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border);
}
.comment-list { list-style: none; }
.comment { padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.comment-author .fn { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.comment-metadata { font-size: 0.72rem; color: var(--text-muted); }
.comment-body p { font-size: 0.9rem; line-height: 1.65; color: var(--text-muted); }
.comment-reply-link { font-size: 0.75rem; font-weight: 600; color: var(--accent); text-decoration: none; }

/* Comment form */
.comment-respond { margin-top: 2.5rem; }
.comment-reply-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.comment-form label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.35rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.65rem 0.9rem;
	font-family: var(--sans);
	font-size: 0.9rem;
	color: var(--text);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	margin-bottom: 1rem;
	transition: border-color 0.15s;
}
.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .submit {
	background: var(--accent);
	color: white;
	border: none;
	border-radius: 6px;
	padding: 0.65rem 1.4rem;
	font-family: var(--sans);
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}
.comment-form .submit:hover { background: #1D4ED8; }

/* ════════════════════════════════════
   SITE FOOTER
════════════════════════════════════ */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 2rem;
	text-align: center;
	font-size: 0.78rem;
	color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* ════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════ */
.rb-reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.rb-reveal.rb-in {
	opacity: 1;
	transform: none;
}

/* ════════════════════════════════════
   LAST UPDATED
════════════════════════════════════ */
.post-content .last-updated,
.last-updated {
	display: block;
	font-size: 0.76rem;
	color: var(--text-muted);
	margin-top: 0.4rem;
	margin-bottom: 2rem;
}

/* ════════════════════════════════════
   TABLE OF CONTENTS
════════════════════════════════════ */
nav.table-of-contents {
	background: var(--callout-bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 1.4rem 1.6rem;
	margin: 0 0 2.5rem;
}
nav.table-of-contents h3 {
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 0.9rem;
	border: none;
	padding: 0;
}
nav.table-of-contents ol {
	padding-left: 1.3rem;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
nav.table-of-contents li {
	font-size: 0.88rem;
	line-height: 1.4;
	margin: 0;
}
nav.table-of-contents a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
}
nav.table-of-contents a:hover { text-decoration: underline; }

/* ════════════════════════════════════
   VERDICT BOX
════════════════════════════════════ */
.verdict-box {
	background: #F0FDF4 !important;
	border: 1px solid #86EFAC !important;
	border-left: 4px solid #22C55E !important;
	border-radius: 8px;
	padding: 1.4rem 1.6rem;
	margin: 2rem 0;
}
.verdict-box p {
	font-size: 0.95rem !important;
	line-height: 1.65;
	color: #14532D !important;
	margin-bottom: 0.75rem;
}
.verdict-box p:last-child { margin-bottom: 0; }
.verdict-box strong { color: #15803D !important; }

/* ════════════════════════════════════
   CTA BUTTONS
════════════════════════════════════ */
.cta-button,
a.cta-button,
p > a.cta-button,
.verdict-box a.cta-button,
.cta-block a.cta-button {
	display: inline-block !important;
	background: var(--accent) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	font-family: var(--sans) !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	padding: 0.75rem 1.6rem !important;
	border-radius: 6px !important;
	border: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
	line-height: 1.2 !important;
	transition: background 0.15s, transform 0.1s;
	-webkit-appearance: none;
}
.cta-button:hover,
a.cta-button:hover,
p > a.cta-button:hover,
.verdict-box a.cta-button:hover,
.cta-block a.cta-button:hover {
	background: #1D4ED8 !important;
	color: #ffffff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
}
.verdict-box .cta-button,
.verdict-box a.cta-button {
	background: #16A34A !important;
	margin-top: 0.5rem;
}
.verdict-box .cta-button:hover,
.verdict-box a.cta-button:hover { background: #15803D !important; }

/* ════════════════════════════════════
   CTA BLOCKS
════════════════════════════════════ */
.cta-block {
	background: #1A1A1A !important;
	border-radius: 10px;
	padding: 2rem;
	margin: 2.5rem 0;
	text-align: center;
}
.cta-block p {
	color: #E5E7EB !important;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}
.cta-block p:last-child { margin-bottom: 0; }
.cta-block strong { color: #ffffff !important; font-size: 1.05rem; }
.cta-block small { font-size: 0.75rem; color: #9CA3AF !important; }
.cta-block.cta-final { background: #111827 !important; }

/* ════════════════════════════════════
   ARTICLE SCREENSHOT FIGURE
════════════════════════════════════ */
figure.article-screenshot {
	margin: 2rem 0;
	text-align: center;
}
figure.article-screenshot a {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	transition: box-shadow 0.2s, transform 0.2s;
	text-decoration: none;
}
figure.article-screenshot a:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.13);
	transform: translateY(-2px);
}
figure.article-screenshot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0 !important;
	border: none !important;
}

/* ════════════════════════════════════
   RELATED ARTICLES
════════════════════════════════════ */
.related-articles {
	margin: 2.5rem 0;
	padding: 1.5rem 1.6rem;
	background: var(--callout-bg);
	border: 1px solid var(--border);
	border-radius: 10px;
}
.related-articles .related-articles-heading {
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 1rem;
	border: none;
	padding: 0;
}
.related-article-card {
	display: inline-block;
	width: calc(50% - 0.4rem);
	vertical-align: top;
	margin: 0 0.6rem 0.6rem 0;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 0.75rem 1rem;
	box-sizing: border-box;
	transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.related-article-card:nth-child(even) { margin-right: 0; }
.related-article-card:hover {
	border-color: var(--accent-bdr);
	background: var(--accent-bg);
	transform: translateY(-1px);
}
.related-article-card a {
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	color: var(--text) !important;
	text-decoration: none !important;
	line-height: 1.35;
	display: block;
}
.related-article-card a:hover { color: var(--accent) !important; }

/* ════════════════════════════════════
   FAQ ACCORDION
════════════════════════════════════ */
/* h2 above the accordion */
h2#frequently-asked-questions,
.faq-section h2 {
	margin-bottom: 1.5rem;
}

/* ════════════════════════════════════
   COMPARISON TABLE
   (.comparison-table-wrapper / .comparison-table kept as aliases
    for posts written before the class rename)
════════════════════════════════════ */
.table-wrapper,
.comparison-table-wrapper {
	margin: 2rem 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--border);
	border-radius: 10px;
	width: fit-content;
	max-width: 100%;
}

.table-wrapper table,
table.table,
.comparison-table-wrapper table,
table.comparison-table {
	width: auto;
	border-collapse: collapse !important;
	font-size: 0.88rem !important;
	font-family: var(--sans) !important;
}

.table-wrapper table thead tr,
table.table thead tr,
.comparison-table-wrapper table thead tr,
table.comparison-table thead tr {
	background: var(--accent) !important;
}

.table-wrapper table th,
table.table th,
.comparison-table-wrapper table th,
table.comparison-table th {
	padding: 0.8rem 1rem !important;
	text-align: left !important;
	font-weight: 700 !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	color: #ffffff !important;
	white-space: nowrap;
}

.table-wrapper table tbody tr,
table.table tbody tr,
.comparison-table-wrapper table tbody tr,
table.comparison-table tbody tr {
	border-top: 1px solid var(--border) !important;
	transition: background 0.12s;
}
.table-wrapper table tbody tr:hover,
table.table tbody tr:hover,
.comparison-table-wrapper table tbody tr:hover,
table.comparison-table tbody tr:hover {
	background: var(--callout-bg);
}


.table-wrapper table td,
table.table td,
.comparison-table-wrapper table td,
table.comparison-table td {
	padding: 0.9rem 1.25rem !important;
	color: var(--text) !important;
	vertical-align: middle;
	line-height: 1.4;
}

/* Force links inside cells to inherit text color */
.table-wrapper table td a,
table.table td a,
.comparison-table-wrapper table td a,
table.comparison-table td a {
	color: inherit !important;
	text-decoration: none;
}



.faq-item {
	border: 1px solid var(--border);
	border-radius: 8px;
	margin-bottom: 0.5rem;
	overflow: hidden;
}

/* summary = the clickable question row */
.faq-item summary.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.3rem;
	cursor: pointer;
	font-family: var(--serif);
	font-size: 1rem;
	font-weight: 600;
	color: var(--text);
	line-height: 1.35;
	list-style: none;
	transition: background 0.15s;
	user-select: none;
}
.faq-item summary.faq-question::-webkit-details-marker { display: none; }
.faq-item summary.faq-question::marker { display: none; }
.faq-item summary.faq-question:hover { background: var(--callout-bg); }
.faq-item[open] summary.faq-question {
	background: var(--callout-bg);
	border-bottom: 1px solid var(--border);
}

.faq-question span { flex: 1; }

.faq-chevron {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--text-muted);
	transition: transform 0.25s ease;
}
.faq-item[open] .faq-chevron {
	transform: rotate(180deg);
	color: var(--accent);
}

.faq-item .faq-answer {
	max-height: none;
	overflow: visible;
}
.faq-item .faq-answer p {
	margin: 0 !important;
	padding: 1.1rem 1.3rem !important;
	font-size: 0.95rem !important;
	line-height: 1.72 !important;
	color: var(--text-muted) !important;
}


/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 700px) {
	:root { --body-size: 17px; }

	.site-header-inner { padding: 0.75rem 1.25rem; }

	.main-navigation { display: none; }
	.main-navigation.is-open {
		display: flex;
		flex-direction: column;
		position: fixed;
		inset: 0;
		background: var(--bg);
		z-index: 99;
		padding: 5rem 2rem 2rem;
		align-items: flex-start;
		gap: 0;
	}
	.main-navigation.is-open ul { flex-direction: column; gap: 0; width: 100%; }
	.main-navigation.is-open a {
		display: block;
		padding: 0.9rem 0;
		font-size: 1rem;
		border-bottom: 1px solid var(--border);
		color: var(--text);
	}
	.menu-toggle { display: block; position: relative; z-index: 101; }

	.post-header,
	.post-content,
	.post-footer,
	.post-navigation,
	.comments-area { padding-left: 1.25rem; padding-right: 1.25rem; }

	.post-navigation { grid-template-columns: 1fr; }
	.post-nav-item.next { text-align: left; }

	.posts-index { padding-left: 1.25rem; padding-right: 1.25rem; }

	.author-bio { flex-direction: column; }

	/* Related articles — stack to 1 col on mobile */
	.related-articles-grid { grid-template-columns: 1fr; }
	.related-article-card {
		width: 100% !important;
		margin-right: 0 !important;
	}

	/* Comparison table padding */
	table.table th,
	table.table td { padding: 0.65rem 0.75rem; }

	/* CTA blocks */
	.cta-block { padding: 1.5rem 1.25rem !important; }
}
