/*
 * Thai Nomad Life article template, "Lagoon & Mango" (wp-blog-design "Article template").
 * Loads on singular pages; the reading styles apply only inside the Group block class "tnl-article".
 * Tokens: tokens.css.
 */

/* Title (Blocksy hero) on articles and pages: Fraunces 44 / 32 px, pine */
:is(.single, .page:not(.tnl-glass-header)) .hero-section .page-title {
	margin: 0;
	font-family: var(--tnl-display);
	font-weight: 600;
	font-size: 44px;
	line-height: 1.15;
	letter-spacing: -.2px;
	text-transform: none;
	color: var(--tnl-pine);
}
:is(.single, .page:not(.tnl-glass-header)) .hero-section .entry-meta { color: var(--tnl-muted); font-family: var(--tnl-text); }

/* Reading column: 720 px, 18 px text, 1.7 line height */
.entry-content .tnl-article {
	max-width: 720px;
	margin-inline: auto;
	color: var(--tnl-rock);
	font-family: var(--tnl-text);
	font-size: 18px;
	line-height: 1.7;
}
.entry-content .tnl-article > * + * { margin-top: 1.1em; }
.entry-content .tnl-article p,
.entry-content .tnl-article li { font-size: inherit; line-height: inherit; }

.entry-content .tnl-article h2,
.entry-content .tnl-article h3 {
	color: var(--tnl-pine);
	font-family: var(--tnl-display);
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.25;
}
.entry-content .tnl-article h2 { font-size: 32px; font-weight: 500; margin-top: 2em; }
.entry-content .tnl-article h3 { font-size: 23px; font-weight: 600; margin-top: 1.6em; }

.entry-content .tnl-article a {
	color: var(--tnl-lagoon-deep);
	text-decoration: underline;
	text-decoration-color: var(--tnl-lagoon);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.entry-content .tnl-article a:hover { color: var(--tnl-lagoon-deep-hover); text-decoration-thickness: 2px; }
.entry-content .tnl-article a:focus-visible {
	outline: 3px solid var(--tnl-lagoon-deep);
	outline-offset: 2px;
	border-radius: 3px;
}

.entry-content .tnl-article ul,
.entry-content .tnl-article ol { padding-left: 1.3em; }
.entry-content .tnl-article li + li { margin-top: .35em; }
.entry-content .tnl-article li::marker { color: var(--tnl-lagoon-deep); }

/* Byline and dates under the title */
.entry-content .tnl-article .tnl-byline {
	color: var(--tnl-muted);
	font-size: 15px;
	line-height: 1.5;
}

/* Callouts: "In short" (powder-2), "How we know this" (lagoon tint), "Watch out" (mango tint) */
.entry-content .tnl-article .tnl-callout {
	padding: 22px 24px;
	border-radius: 16px;
	background: var(--tnl-powder-2);
	border: 1px solid var(--tnl-line);
}
.entry-content .tnl-article .tnl-callout > * + * { margin-top: .6em; }
.entry-content .tnl-article .tnl-callout .tnl-callout__label {
	margin: 0;
	color: var(--tnl-mango-deep);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2.6px;
	text-transform: uppercase;
}
.entry-content .tnl-article .tnl-callout--method {
	background: var(--tnl-lagoon-tint);
	border-color: var(--tnl-lagoon-tint-line);
}
.entry-content .tnl-article .tnl-callout--method .tnl-callout__label { color: var(--tnl-lagoon-deep); }
.entry-content .tnl-article .tnl-callout--warn {
	background: var(--tnl-mango-tint);
	border-color: var(--tnl-mango-tint-line);
	border-left: 4px solid var(--tnl-mango);
}

/* Tables scroll sideways on narrow screens instead of squeezing */
.entry-content .tnl-article .wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-inline: 0;
}
.entry-content .tnl-article .wp-block-table table {
	min-width: 560px;
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}
.entry-content .tnl-article .wp-block-table th,
.entry-content .tnl-article .wp-block-table td {
	padding: 10px 12px;
	border: 1px solid var(--tnl-line);
	vertical-align: top;
	text-align: left;
}
.entry-content .tnl-article .wp-block-table thead th {
	background: var(--tnl-pine);
	color: var(--tnl-white);
	font-weight: 600;
}
.entry-content .tnl-article .wp-block-table tbody tr:nth-child(even) td { background: var(--tnl-powder-2); }
.entry-content .tnl-article .tnl-table-source {
	color: var(--tnl-muted);
	font-size: 14px;
}

/* Sources list at the end */
.entry-content .tnl-article .tnl-sources li { font-size: 15px; line-height: 1.55; }

/* Draft-only: facts waiting for the owner. Never published (publishing is blocked while any remain). */
.entry-content .tnl-article .tnl-confirm {
	padding: 10px 14px;
	border: 2px dashed var(--tnl-mango-deep);
	border-radius: 10px;
	background: var(--tnl-mango-tint);
	color: var(--tnl-rock);
	font-size: 15px;
}

@media (max-width: 689.98px) {
	:is(.single, .page:not(.tnl-glass-header)) .hero-section .page-title { font-size: 32px; }
	.entry-content .tnl-article h2 { font-size: 26px; }
	.entry-content .tnl-article h3 { font-size: 20px; }
	.entry-content .tnl-article .tnl-callout { padding: 18px; }
}

/* Show Avatars is off: hide the (empty) author picture slot in Blocksy's post meta */
.tnl-no-avatars .entry-meta .meta-author .ct-media-container-static { display: none; }
