/* ==========================================================
   Treasures of Lisboa — Single blog post styles
   ========================================================== */

/* ── Design tokens (shared with blog.css) ───────────────── */
:root {
	--tol-brown:       #3C2317;
	--tol-offwhite:    #F5EFE6;
	--tol-white:       #FFFFFF;
	--tol-yellow:      #FFCC00;
	--tol-radius-card: 20px;
	--tol-radius-btn:  30px;
	--tol-ff-heading:  'Cormorant Garamond', serif;
	--tol-ff-body:     'Raleway', sans-serif;
	--tol-ff-ui:       'Roboto', sans-serif;
}

/* ==========================================================
   LAYOUT
   ========================================================== */
.tol-post {
	background: var(--tol-offwhite);
	max-width: 100%;
	padding: 0 64px 60px;
	color: var(--tol-brown);
}

/* Centered content column for readability */
.tol-post__header,
.tol-post__content,
.tol-post__tags,
.tol-post__nav {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================
   BACK LINK
   ========================================================== */
.tol-post__topbar {
	max-width: 780px;
	margin: 0 auto;
	padding: 28px 0 20px;
}

.tol-post__back {
	font-family: var(--tol-ff-ui);
	font-weight: 600;
	font-size: 14px;
	line-height: 21px;
	color: var(--tol-brown);
	text-decoration: none;
	transition: opacity 0.2s;
}

.tol-post__back:hover {
	opacity: 0.7;
}

/* ==========================================================
   FEATURED IMAGE
   ========================================================== */
.tol-post__hero {
	margin-bottom: 40px;
}

.tol-post__hero-img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: var(--tol-radius-card);
	display: block;
}

/* ==========================================================
   HEADER (category, title, meta)
   ========================================================== */
.tol-post__header {
	margin-bottom: 36px;
}

/* Category pills */
.tol-post__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.tol-post__cat {
	display: inline-block;
	padding: 6px 16px;
	background: var(--tol-white);
	border-radius: var(--tol-radius-btn);
	font-family: var(--tol-ff-ui);
	font-weight: 600;
	font-size: 13px;
	line-height: 21px;
	color: var(--tol-brown);
	text-decoration: none;
	transition: background 0.2s;
}

.tol-post__cat:hover {
	background: var(--tol-yellow);
}

/* Title */
.tol-post__title {
	font-family: var(--tol-ff-heading);
	font-weight: 700;
	font-size: 40px;
	line-height: 1.2;
	letter-spacing: -0.03em;
	color: var(--tol-brown);
	margin: 0 0 16px;
}

/* Meta line */
.tol-post__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--tol-ff-ui);
	font-weight: 400;
	font-size: 14px;
	line-height: 21px;
	color: var(--tol-brown);
	opacity: 0.7;
}

/* Divider */
.tol-post__divider {
	border: none;
	border-top: 1px solid var(--tol-brown);
	opacity: 0.2;
	margin: 24px 0;
}

/* ==========================================================
   POST CONTENT — the_content() output
   All text: 14px, 21px line-height, #3C2317
   ========================================================== */
.tol-post__content {
	font-family: var(--tol-ff-body);
	font-weight: 400;
	font-size: 14px;
	line-height: 21px;
	color: var(--tol-brown);
}

/* ── Paragraphs ──────────────────────────────────────────── */
.tol-post__content p {
	font-size: 14px;
	line-height: 21px;
	color: var(--tol-brown);
	margin: 0 0 21px;
}

/* ── Headings inside content ─────────────────────────────── */
.tol-post__content h1,
.tol-post__content h2,
.tol-post__content h3,
.tol-post__content h4,
.tol-post__content h5,
.tol-post__content h6 {
	font-family: var(--tol-ff-heading);
	font-weight: 700;
	color: var(--tol-brown);
	letter-spacing: -0.03em;
	margin: 40px 0 16px;
}

.tol-post__content h1 { font-size: 40px; line-height: 1.2; }
.tol-post__content h2 { font-size: 32px; line-height: 1.3; }
.tol-post__content h3 { font-size: 26px; line-height: 1.3; }
.tol-post__content h4 { font-size: 22px; line-height: 1.35; }
.tol-post__content h5 { font-size: 18px; line-height: 1.4; }
.tol-post__content h6 { font-size: 16px; line-height: 1.5; }

/* First heading after content start shouldn't have top margin */
.tol-post__content > h1:first-child,
.tol-post__content > h2:first-child,
.tol-post__content > h3:first-child,
.tol-post__content > h4:first-child {
	margin-top: 0;
}

/* ── Links ───────────────────────────────────────────────── */
.tol-post__content a {
	color: var(--tol-brown);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: opacity 0.2s;
}

.tol-post__content a:hover {
	opacity: 0.7;
}

/* ── Lists ───────────────────────────────────────────────── */
.tol-post__content ul,
.tol-post__content ol {
	margin: 0 0 21px;
	padding-left: 24px;
	color: var(--tol-brown);
}

.tol-post__content li {
	font-size: 14px;
	line-height: 21px;
	color: var(--tol-brown);
	margin-bottom: 8px;
}

.tol-post__content ul li {
	list-style-type: disc;
}

.tol-post__content ol li {
	list-style-type: decimal;
}

/* ── Blockquotes ─────────────────────────────────────────── */
.tol-post__content blockquote {
	margin: 32px 0;
	padding: 24px 28px;
	border-left: 4px solid var(--tol-yellow);
	background: var(--tol-white);
	border-radius: 0 12px 12px 0;
}

.tol-post__content blockquote p {
	font-size: 16px;
	line-height: 24px;
	font-style: italic;
	margin-bottom: 0;
}

.tol-post__content blockquote p + p {
	margin-top: 12px;
}

/* ── Images ──────────────────────────────────────────────── */
.tol-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--tol-radius-card);
	display: block;
	margin: 32px 0;
}

.tol-post__content figure {
	margin: 32px 0;
}

.tol-post__content figure img {
	margin: 0;
}

.tol-post__content figcaption {
	font-family: var(--tol-ff-ui);
	font-size: 13px;
	line-height: 21px;
	color: var(--tol-brown);
	opacity: 0.6;
	text-align: center;
	margin-top: 10px;
}

/* ── Horizontal rule ─────────────────────────────────────── */
.tol-post__content hr {
	border: none;
	border-top: 1px solid var(--tol-brown);
	opacity: 0.2;
	margin: 36px 0;
}

/* ── Tables ──────────────────────────────────────────────── */
.tol-post__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 14px;
	line-height: 21px;
}

.tol-post__content th,
.tol-post__content td {
	padding: 12px 16px;
	border: 1px solid rgba(60, 35, 23, 0.15);
	color: var(--tol-brown);
	text-align: left;
}

.tol-post__content th {
	font-family: var(--tol-ff-ui);
	font-weight: 600;
	background: var(--tol-white);
}

/* ── Pre / Code ──────────────────────────────────────────── */
.tol-post__content pre {
	background: var(--tol-white);
	border-radius: 12px;
	padding: 20px 24px;
	overflow-x: auto;
	margin: 24px 0;
	font-size: 13px;
	line-height: 21px;
}

.tol-post__content code {
	font-size: 13px;
	background: var(--tol-white);
	padding: 2px 6px;
	border-radius: 4px;
}

.tol-post__content pre code {
	background: none;
	padding: 0;
}

/* ── WordPress block overrides ───────────────────────────── */
.tol-post__content .wp-block-image img {
	border-radius: var(--tol-radius-card);
}

.tol-post__content .wp-block-gallery {
	margin: 32px 0;
}

.tol-post__content .wp-block-gallery .wp-block-image img {
	border-radius: 12px;
}

.tol-post__content .wp-block-separator {
	border-top: 1px solid var(--tol-brown);
	opacity: 0.2;
}

/* Strong / Bold / Italic */
.tol-post__content strong,
.tol-post__content b {
	font-weight: 700;
	color: var(--tol-brown);
}

.tol-post__content em,
.tol-post__content i {
	font-style: italic;
	color: var(--tol-brown);
}

/* ==========================================================
   TAGS
   ========================================================== */
.tol-post__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 40px;
	margin-bottom: 12px;
}

.tol-post__tag {
	display: inline-block;
	padding: 6px 16px;
	background: var(--tol-white);
	border-radius: var(--tol-radius-btn);
	font-family: var(--tol-ff-ui);
	font-weight: 400;
	font-size: 13px;
	line-height: 21px;
	color: var(--tol-brown);
	text-decoration: none;
	transition: background 0.2s;
}

.tol-post__tag:hover {
	background: var(--tol-yellow);
}

/* ==========================================================
   PREV / NEXT NAVIGATION
   ========================================================== */
.tol-post__nav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 20px;
}

.tol-post__nav-link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
	color: var(--tol-brown);
	max-width: 45%;
	transition: opacity 0.2s;
}

.tol-post__nav-link:hover {
	opacity: 0.7;
}

.tol-post__nav-link--next {
	text-align: right;
	margin-left: auto;
}

.tol-post__nav-label {
	font-family: var(--tol-ff-ui);
	font-weight: 600;
	font-size: 13px;
	line-height: 21px;
	color: var(--tol-brown);
	opacity: 0.6;
}

.tol-post__nav-title {
	font-family: var(--tol-ff-heading);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: -0.03em;
	color: var(--tol-brown);
}

/* ==========================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ========================================================== */
@media (max-width: 1024px) {
	.tol-post {
		padding: 0 32px 48px;
	}

	.tol-post__hero-img {
		max-height: 400px;
	}

	.tol-post__title {
		font-size: 36px;
	}

	.tol-post__nav-title {
		font-size: 20px;
	}
}

/* ==========================================================
   RESPONSIVE — Mobile (≤ 767px)
   ========================================================== */
@media (max-width: 767px) {
	.tol-post {
		padding: 0 20px 36px;
	}

	.tol-post__topbar {
		padding: 20px 0 16px;
	}

	.tol-post__hero {
		margin-bottom: 28px;
	}

	.tol-post__hero-img {
		max-height: 280px;
		border-radius: 14px;
	}

	.tol-post__title {
		font-size: 30px;
	}

	.tol-post__header {
		margin-bottom: 28px;
	}

	/* Content stays 14px / 21px on mobile as requested */

	.tol-post__content img {
		border-radius: 14px;
		margin: 24px 0;
	}

	.tol-post__content blockquote {
		margin: 24px 0;
		padding: 20px 20px;
	}

	.tol-post__content h2 { font-size: 28px; }
	.tol-post__content h3 { font-size: 22px; }
	.tol-post__content h4 { font-size: 20px; }

	/* Nav stacks vertically */
	.tol-post__nav {
		flex-direction: column;
		gap: 20px;
	}

	.tol-post__nav-link {
		max-width: 100%;
	}

	.tol-post__nav-link--next {
		text-align: left;
	}

	.tol-post__nav-title {
		font-size: 18px;
	}
}
