/*
 * Blog styles — index/archive/search/single.
 * Dark hero + overlapping category bar, article cards matching the
 * travel-guide anatomy, single-article layout with share/author/related.
 * Load order: after style.css.
 */

.blg-main {
	background: #f9faf6;
	color: var(--db-text);
}

.blg-inner {
	max-width: var(--db-container);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------- */
.blg-hero,
.art-hero {
	position: relative;
	height: 340px;
	overflow: hidden;
	background: #122d22;
}

.blg-hero-img,
.art-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blg-hero-shade,
.art-hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 31, 24, 0.95) 0%, rgba(11, 31, 24, 0.7) 55%, rgba(11, 31, 24, 0.15) 100%);
}

.blg-hero-shade-bottom,
.art-hero-shade-bottom {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 45%);
}

.blg-hero-inner,
.art-hero-inner {
	position: relative;
	z-index: 1;
	max-width: var(--db-container);
	margin: 0 auto;
	padding: 0 24px;
	height: 100%;
	display: flex;
	align-items: flex-end;
}

.blg-hero-content,
.art-hero-content {
	padding: 32px 0;
	max-width: 720px;
}

.blg-hero-title,
.art-hero-title {
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
}

.blg-hero-content {
	padding-bottom: 64px;
}

/* Single hero */
.art-hero {
	height: 400px;
}

.art-hero-content {
	max-width: 800px;
	padding-bottom: 40px;
}

.art-hero-title {
	font-size: 30px;
	line-height: 1.15;
}

.art-hero-meta {
	margin-top: 14px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
}

/* ---------------------------------------------------------------------------
 * Category bar
 * ------------------------------------------------------------------------- */
.blg-bar-wrap {
	position: relative;
	z-index: 20;
	margin-top: -36px;
}

.blg-bar {
	background: var(--db-card);
	border: 1px solid #eef1ea;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.blg-bar-cats {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	overflow-x: auto;
	min-width: 0;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.blg-bar-cats::-webkit-scrollbar {
	display: none;
}

.blg-pill {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 14px;
	border-radius: 999px;
	background: #f0f7ec;
	border: 1px solid #e6f0e1;
	color: #1a5a32;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.blg-pill:hover {
	background: #e2efdc;
	color: #164a2e;
}

.blg-pill-active {
	background: #165a2e;
	border-color: #165a2e;
	color: #fff;
}

.blg-bar-search {
	flex-shrink: 0;
}

.blg-bar-search .filter-search {
	display: flex;
	max-width: none;
}

.blg-bar-search .filter-search input[type="search"] {
	height: 32px;
	width: 200px;
	padding: 0 12px 0 30px;
	font-size: 12.5px;
}

.blg-bar-search .filter-search .search-submit {
	height: 32px;
	padding: 0 14px;
	font-size: 12.5px;
	border-radius: 0 8px 8px 0;
}

.blg-bar-search-wide {
	width: 100%;
}

.blg-bar-search-wide .filter-search {
	max-width: 560px;
}

/* ---------------------------------------------------------------------------
 * Cards grid
 * ------------------------------------------------------------------------- */
.blg-section {
	padding: 40px 0 56px;
}

.blg-grid,
.art-related-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

/* Main + sidebar layout */
.blg-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: start;
}

.blg-content {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}

.blg-card {
	background: var(--db-card);
	border: 1px solid #eef2eb;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blg-card:hover {
	box-shadow: 0 10px 30px rgba(14, 47, 36, 0.08);
	transform: translateY(-2px);
}

.blg-card-media {
	position: relative;
	display: block;
	height: 170px;
	overflow: hidden;
	background: #e8ede6;
}

.blg-card-media img,
.blg-card-media .wp-post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.blg-card:hover .blg-card-media img {
	transform: scale(1.04);
}

.blg-card-badge {
	position: absolute;
	left: 12px;
	top: 12px;
	background: #16a34a;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
}

.blg-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.blg-card-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.blg-card-title a {
	color: var(--db-text);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s ease;
}

.blg-card-title a:hover {
	color: #165a2e;
}

.blg-card-excerpt {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: #6b7280;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blg-card-meta {
	margin-top: auto;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 11.5px;
	color: #9ca3af;
}

.blg-card-cat {
	color: #165a2e;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 10.5px;
}

.blg-card-cat:hover {
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * Featured post
 * ------------------------------------------------------------------------- */
.blg-featured {
	background: var(--db-card);
	border: 1px solid #eef2eb;
	border-radius: 16px;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr;
	transition: box-shadow 0.2s ease;
}

.blg-featured:hover {
	box-shadow: 0 14px 36px rgba(14, 47, 36, 0.1);
}

.blg-featured-media {
	position: relative;
	display: block;
	height: 220px;
	overflow: hidden;
	background: #e8ede6;
}

.blg-featured-media img,
.blg-featured-media .wp-post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.blg-featured:hover .blg-featured-media img {
	transform: scale(1.03);
}

.blg-featured-tag {
	position: absolute;
	left: 14px;
	top: 14px;
	background: #165a2e;
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
}

.blg-featured-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.blg-featured-title {
	margin: 0;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.blg-featured-title a {
	color: var(--db-text);
	text-decoration: none;
	transition: color 0.15s ease;
}

.blg-featured-title a:hover {
	color: #165a2e;
}

.blg-featured-excerpt {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: #6b7280;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blg-featured-more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #165a2e;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	padding-top: 6px;
}

.blg-featured-more:hover {
	color: #124a26;
}

.blg-featured-more .db-icon {
	transition: transform 0.15s ease;
}

.blg-featured-more:hover .db-icon {
	transform: translateX(3px);
}

/* ---------------------------------------------------------------------------
 * Sidebar
 * ------------------------------------------------------------------------- */
.blg-aside {
	min-width: 0;
}

.blg-aside-sticky {
	display: grid;
	gap: 24px;
	align-content: start;
}

.blg-side-card {
	background: var(--db-card);
	border: 1px solid #eef1ea;
	border-radius: 16px;
	padding: 20px;
}

.blg-side-title {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--db-text);
}

.blg-side-cats {
	display: flex;
	flex-direction: column;
}

.blg-side-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 10px;
	margin: 0 -10px;
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.blg-side-cat:hover {
	background: #f4f8f0;
}

.blg-side-cat-name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--db-text);
	transition: color 0.15s ease;
}

.blg-side-cat:hover .blg-side-cat-name {
	color: #165a2e;
}

.blg-side-cat-count {
	font-size: 11px;
	font-weight: 600;
	color: #165a2e;
	background: #eaf3e5;
	border-radius: 999px;
	padding: 2px 9px;
}

.blg-side-cat-active .blg-side-cat-name {
	color: #165a2e;
}

.blg-side-posts {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.blg-side-post {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	text-decoration: none;
}

.blg-side-post-thumb {
	width: 60px;
	height: 60px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: #e8ede6;
}

.blg-side-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.blg-side-post:hover .blg-side-post-thumb img {
	transform: scale(1.06);
}

.blg-side-post-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.blg-side-post-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--db-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s ease;
}

.blg-side-post:hover .blg-side-post-title {
	color: #165a2e;
}

.blg-side-post-date {
	font-size: 11.5px;
	color: #9ca3af;
}

.blg-side-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.blg-side-tag {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 13px;
	border-radius: 999px;
	background: #f0f7ec;
	border: 1px solid #e6f0e1;
	color: #1a5a32;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.blg-side-tag:hover {
	background: #e2efdc;
}

.blg-side-cta {
	background: linear-gradient(160deg, #123f27 0%, #0e2f24 100%);
	border-radius: 16px;
	padding: 22px 20px;
}

.blg-side-cta h4 {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	margin: 0;
}

.blg-side-cta p {
	color: rgba(255, 255, 255, 0.72);
	font-size: 12.5px;
	line-height: 1.5;
	margin: 8px 0 0;
}

.blg-side-cta-btn {
	margin-top: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 38px;
	border-radius: 999px;
	background: #16a34a;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.blg-side-cta-btn:hover {
	background: #15803d;
	color: #fff;
}

.blg-side-cta-wa {
	margin-top: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 38px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.blg-side-cta-wa:hover {
	background: #25d366;
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * Single article
 * ------------------------------------------------------------------------- */
.art-section {
	padding: 40px 0 56px;
}

.art-article {
	background: var(--db-card);
	border: 1px solid #eef1ea;
	border-radius: 16px;
	padding: 28px 24px;
}

.art-content {
	font-size: 15.5px;
	line-height: 1.75;
	color: #374151;
}

.art-content > p:first-child {
	font-size: 17px;
	line-height: 1.7;
	color: #1f2937;
}

.art-content h2 {
	font-size: 22px;
	font-weight: 700;
	color: var(--db-text);
	margin: 32px 0 12px;
	line-height: 1.3;
}

.art-content h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--db-text);
	margin: 26px 0 10px;
}

.art-content a {
	color: #165a2e;
	text-decoration: underline;
	text-decoration-color: rgba(22, 90, 46, 0.35);
	text-underline-offset: 3px;
}

.art-content a:hover {
	text-decoration-color: #165a2e;
}

.art-content blockquote {
	margin: 24px 0;
	padding: 14px 20px;
	border-left: 3px solid #165a2e;
	background: #f4f8f0;
	border-radius: 0 10px 10px 0;
	font-style: italic;
	color: #1f2937;
}

.art-content blockquote p {
	margin: 0;
}

.art-content ul,
.art-content ol {
	margin: 16px 0;
	padding-left: 24px;
}

.art-content li {
	margin: 6px 0;
}

.art-content li::marker {
	color: #165a2e;
	font-weight: 600;
}

.art-content img {
	border-radius: 12px;
	height: auto;
}

.art-content figure {
	margin: 24px 0;
}

.art-content figcaption {
	font-size: 12.5px;
	color: #9ca3af;
	text-align: center;
	margin-top: 8px;
}

.art-content code {
	background: #f3f4f6;
	border-radius: 6px;
	padding: 2px 6px;
	font-size: 13.5px;
}

.art-content pre {
	background: #0e2f24;
	color: #e5f2e8;
	border-radius: 12px;
	padding: 18px 20px;
	overflow-x: auto;
	font-size: 13.5px;
	line-height: 1.6;
}

.art-content pre code {
	background: none;
	color: inherit;
	padding: 0;
}

/* Tags */
.art-tags {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #eef1ea;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.art-tags a {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 13px;
	border-radius: 999px;
	background: #f0f7ec;
	border: 1px solid #e6f0e1;
	color: #1a5a32;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.art-tags a::before {
	content: '#';
	margin-right: 2px;
	opacity: 0.6;
}

.art-tags a:hover {
	background: #e2efdc;
}

/* Share */
.art-share {
	margin-top: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 16px;
	background: #f6f8f3;
	border-radius: 12px;
}

.art-share-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--db-text);
}

.art-share-buttons {
	display: flex;
	align-items: center;
	gap: 8px;
}

.art-share-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--db-card);
	border: 1px solid #e5e7eb;
	color: #6b7280;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.art-share-btn:hover {
	background: #165a2e;
	border-color: #165a2e;
	color: #fff;
}

.art-share-btn-wa {
	color: #25d366;
}

.art-share-btn-wa:hover {
	background: #25d366;
	border-color: #25d366;
	color: #fff;
}

/* Author */
.art-author {
	margin-top: 20px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: #f6f8f3;
	border-radius: 12px;
	padding: 20px;
}

.art-author-avatar,
.art-author-avatar img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	flex-shrink: 0;
	display: block;
}

.art-author-avatar img {
	object-fit: cover;
}

.art-author-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.art-author-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #9ca3af;
}

.art-author-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--db-text);
}

.art-author-bio {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: #6b7280;
}

/* Post navigation */
.art-article .nav-links {
	margin-top: 24px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.art-article .nav-previous,
.art-article .nav-next {
	background: var(--db-card);
	border: 1px solid #eef1ea;
	border-radius: 12px;
	padding: 14px 16px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.art-article .nav-previous:hover,
.art-article .nav-next:hover {
	border-color: #dbe7d4;
	box-shadow: 0 6px 18px rgba(14, 47, 36, 0.06);
}

.art-article .nav-previous .nav-metadata,
.art-article .nav-next .nav-metadata {
	display: none;
}

.art-nav-sub {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #9ca3af;
	margin-bottom: 4px;
}

.art-nav-title {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	color: var(--db-text);
}

.art-article .nav-previous a,
.art-article .nav-next a {
	text-decoration: none;
}

/* Related */
.art-related {
	margin-top: 32px;
}

.art-related-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.art-related-head h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.art-related-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #165a2e;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.art-related-all:hover {
	color: #124a26;
}

/* CTA banner */
.art-cta-wrap {
	padding: 0 0 56px;
}

.art-cta {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	min-height: 240px;
	background: #122d22;
	display: flex;
	align-items: flex-end;
}

.art-cta > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.art-cta-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(11, 31, 24, 0.9) 0%, rgba(11, 31, 24, 0.35) 60%, rgba(11, 31, 24, 0.05) 100%);
}

.art-cta-body {
	position: relative;
	z-index: 1;
	padding: 28px 24px;
	max-width: 560px;
}

.art-cta-body h3 {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	margin: 0;
}

.art-cta-body p {
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	margin: 6px 0 0;
}

.art-cta-actions {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.art-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.art-cta-btn-solid {
	background: #16a34a;
	color: #fff;
}

.art-cta-btn-solid:hover {
	background: #15803d;
	color: #fff;
}

.art-cta-btn-wa {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.art-cta-btn-wa:hover {
	background: #25d366;
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.blg-hero {
		height: 320px;
	}

	.blg-hero-title,
	.art-hero-title {
		font-size: 32px;
	}

	.blg-grid,
	.art-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.blg-aside-sticky {
		grid-template-columns: repeat(2, 1fr);
	}

	.blg-featured {
		grid-template-columns: 5fr 7fr;
	}

	.blg-featured-media {
		height: 100%;
		min-height: 280px;
	}

	.art-hero {
		height: 380px;
	}

	.art-article {
		padding: 36px;
	}
}

@media (min-width: 1024px) {
	.blg-layout {
		grid-template-columns: minmax(0, 1fr) 340px;
	}

	.blg-aside-sticky {
		grid-template-columns: 1fr;
		position: sticky;
		top: 80px;
	}

	.blg-grid,
	.art-related-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.blg-hero {
		height: 340px;
	}

	.blg-hero-shade {
		background: linear-gradient(90deg, rgba(11, 31, 24, 0.95) 0%, rgba(11, 31, 24, 0.7) 55%, rgba(11, 31, 24, 0.05) 100%);
	}

	.art-hero-title {
		font-size: 34px;
	}
}

@media (max-width: 640px) {
	.blg-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.blg-bar-cats {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}

	.art-article .nav-links {
		grid-template-columns: 1fr;
	}
}
/* ---------------------------------------------------------------------------
 * Article tables & long-form reading (moved from Customizer Additional CSS,
 * 25 Oct 2026). Scoped to .art-content so it only touches post bodies.
 * ------------------------------------------------------------------------- */

/* ============================================================
   Dev Bhoomi Safar — editorial article styling
   Tables, headings and long-form reading refinements.
   ============================================================ */

/* ---------- Tables ---------- */

.art-content table {
  width: 100%;
  max-width: 100%;
  margin: 26px 0 32px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--db-border, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  font-variant-numeric: tabular-nums;
}

/* Header row */
.art-content table thead th {
  background: var(--db-green, #1e5a3a);
  color: #fff;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: bottom;
  hyphens: none;
}

/* Body cells */
.art-content table tbody td,
.art-content table tr > td {
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid #eef1ec;
  vertical-align: top;
  color: #374151;
  hyphens: none;
}

.art-content table tbody tr:last-child td {
  border-bottom: 0;
}

/* Zebra striping + hover */
.art-content table tbody tr:nth-child(even) {
  background: #f8faf6;
}

.art-content table tbody tr:hover {
  background: var(--db-green-soft-4, #eef6ee);
}

.art-content table strong {
  color: var(--db-text, #101828);
  font-weight: 600;
}

/* Long URLs only — never break place names */
.art-content table td a {
  overflow-wrap: anywhere;
}

/* ---------- Key/value tables (no header row) ---------- */

.art-content table:not(:has(thead)) td:first-child {
  width: 34%;
  font-weight: 600;
  color: var(--db-text, #101828);
  background: #f6faf3;
  border-right: 1px solid #eef1ec;
}

.art-content table:not(:has(thead)) tbody tr:nth-child(even) td:first-child {
  background: #f1f7ed;
}

/* ---------- Scroll wrapper ---------- */

.table-scroll {
  margin: 26px 0 32px;
  max-width: 100%;
}

.table-scroll > table {
  margin: 0;
}

.table-scroll::-webkit-scrollbar {
  height: 6px;
}

.table-scroll::-webkit-scrollbar-track {
  background: #f1f5f0;
  border-radius: 3px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: #cbd5c4;
  border-radius: 3px;
}

/* ---------- Section headings ---------- */

.art-content h2 {
  position: relative;
  margin-top: 44px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--db-border, #e5e7eb);
}

.art-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--db-green, #1e5a3a);
}

.art-content h3 {
  margin-top: 30px;
}

/* ---------- Reading rhythm ---------- */

.art-content > p {
  margin: 0 0 18px;
}

.art-content > ul,
.art-content > ol {
  margin-bottom: 20px;
}

.art-content > p:first-of-type {
  font-size: 17px;
  line-height: 1.7;
  color: #1f2937;
}

/* Closing verification note */
.art-content > p > em:only-child {
  display: block;
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #f8faf6;
  border-left: 3px solid var(--db-green-border, #d6e9cf);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--db-text-3, #667085);
}

/* ============================================================
   Mobile — wide tables become labelled cards, not a scroller
   ============================================================ */

@media (max-width: 720px) {
  .art-content h2 {
    margin-top: 34px;
    font-size: 20px;
  }

  /* key/value table just gets tighter */
  .art-content table {
    font-size: 14px;
  }

  .art-content table:not(:has(thead)) td {
    padding: 10px 12px;
  }

  .art-content table:not(:has(thead)) td:first-child {
    width: 40%;
  }

  /* --- data tables: one card per row --- */

  .table-scroll {
    overflow: visible;
    margin: 22px 0 26px;
  }

  .art-content table:has(thead) {
    display: block;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    font-size: 14px;
  }

  .art-content table:has(thead) thead {
    display: none;
  }

  .art-content table:has(thead) tbody {
    display: block;
  }

  .art-content table:has(thead) tbody tr {
    display: block;
    margin: 0 0 12px;
    padding: 0 0 4px;
    background: #fff !important;
    border: 1px solid var(--db-border, #e5e7eb);
    border-left: 3px solid var(--db-green, #1e5a3a);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  }

  /* first cell = card heading */
  .art-content table:has(thead) tbody td:first-child {
    display: block;
    padding: 12px 14px 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--db-text, #101828);
    border-bottom: 1px solid #eef1ec;
    text-align: left;
  }

  .art-content table:has(thead) tbody td:first-child::before {
    display: none;
  }

  /* remaining cells = label / value rows */
  .art-content table:has(thead) tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 14px;
    border-bottom: 0;
    text-align: right;
  }

  .art-content table:has(thead) tbody td::before {
    content: attr(data-label);
    flex: 0 1 auto;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--db-text-2, #475467);
    white-space: normal;
    overflow-wrap: break-word;
    min-width: 0;
  }

  /* Fallback for tables written without data-label: scroll instead of break */
  .art-content > table:has(thead) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
/* ---------------------------------------------------------------------------
 * Archive hero: the term description inherited body text colour and rendered
 * #101828 on #122d22 (~1.4:1). Fixed 26 Oct 2026.
 * ------------------------------------------------------------------------- */
.blg-hero-content > p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 62ch;
  margin: 10px 0 0;
}
/* ---------------------------------------------------------------------------
 * Share row: neutral icons, brand-coloured hover (26 Oct 2026)
 * The X mark is a solid glyph while the rest are outlined, so the template
 * renders it a little smaller to keep the row optically even.
 * ---------------------------------------------------------------- */
.art-share-btn.art-share-wa:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.art-share-btn.art-share-x:hover {
  background: #0f1419;
  border-color: #0f1419;
  color: #fff;
}

.art-share-btn.art-share-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
