/*
Theme Name: Chùa Ngọc Hoàng
Description: Trang thông tin độc lập, chuyên biệt về Chùa Ngọc Hoàng (Phước Hải Tự), TP.HCM.
Author: chuangochoang.com
Version: 1.0.0
Requires PHP: 7.4
Text Domain: chua-ngoc-hoang
*/

/* ==========================================================================
   Design tokens — Temple Heritage system (Phase 8)
   ========================================================================== */
:root {
	/* Locked palette — do not invent another */
	--temple-red: #A52A20;
	--temple-red-dark: #781B17;
	--temple-red-deep: #551411;

	--temple-gold: #D6A84B;
	--temple-gold-light: #E8C66A;
	--temple-gold-dark: #A87522;

	--temple-ivory: #F7F0DF;
	--temple-cream: #EFE3C8;
	--temple-paper: #FBF7ED;

	--temple-brown: #3A2118;
	--temple-brown-soft: #634335;
	--temple-ink: #261813;

	--temple-muted: #7A695C;
	--temple-border: #DDCBA7;

	--white: #FFFFFF;
	--success: #496A4A;

	/* Legacy semantic aliases — every existing component keeps working,
	   automatically restyled through the new palette. */
	--color-jade: var(--temple-red);
	--color-jade-dark: var(--temple-red-dark);
	--color-jade-light: var(--temple-ivory);
	--color-gold: var(--temple-gold);
	--color-gold-dark: var(--temple-gold-dark);
	--color-cream: var(--temple-ivory);
	--color-vermilion: var(--temple-red-deep);
	--color-text: var(--temple-ink);
	--color-text-muted: var(--temple-brown-soft);
	--color-white: var(--white);
	--color-border: var(--temple-border);

	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-heading: "Noto Serif", Georgia, "Times New Roman", serif;

	--radius-sm: 6px;
	--radius-btn: 9px;
	--radius-md: 12px;
	--radius-lg: 14px;

	--shadow-sm: 0 4px 14px rgba(58,33,24,.06);
	--shadow-md: 0 10px 30px rgba(58,33,24,.10);
	--shadow-hero: 0 20px 60px rgba(20,8,6,.22);

	--container-width: 1120px;
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.75rem;
	--space-lg: 3rem;
	--space-xl: 5rem;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--temple-paper);
	line-height: 1.65;
	font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #8F241D; text-decoration: none; }
a:hover { color: var(--temple-red-deep); text-decoration: underline; }
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	color: var(--color-jade-dark);
	line-height: 1.25;
	margin: 0 0 var(--space-sm);
	font-weight: 700;
}
h1 { font-size: clamp(2.375rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 var(--space-sm); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--space-sm);
}
.section {
	padding: var(--space-xl) 0;
}
.section--muted { background: var(--color-cream); }
.section-head {
	max-width: 720px;
	margin: 0 0 var(--space-lg);
}
.section-head .eyebrow, .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--temple-red);
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-size: 0.82rem;
	margin-bottom: var(--space-xs);
}
.eyebrow::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 8px;
	background: var(--temple-gold);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'><path d='M2 12c3-6 7-6 9-1 2-6 8-6 10 0 2-5 7-5 9 1' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>") center/contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'><path d='M2 12c3-6 7-6 9-1 2-6 8-6 10 0 2-5 7-5 9 1' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>") center/contain no-repeat;
	opacity: 0.85;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-jade);
	color: var(--color-white);
	padding: 0.75rem 1.25rem;
	z-index: 1000;
}
.skip-link:focus { left: var(--space-sm); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-btn);
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary {
	background: var(--temple-red);
	color: #FFF8E8;
	border-color: var(--temple-gold);
}
.btn-primary:hover { background: var(--temple-red-dark); color: #FFF8E8; text-decoration: none; }
.btn-outline {
	background: transparent;
	color: var(--temple-brown);
	border-color: var(--temple-gold-dark);
}
.btn-outline:hover { background: var(--temple-ivory); text-decoration: none; }
.btn-ghost {
	background: rgba(251,247,237,.08);
	color: #FBF7ED;
	border-color: rgba(214,168,75,.65);
	backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgba(251,247,237,.16); color: #FBF7ED; text-decoration: none; }
.btn[disabled], .btn.is-pending {
	background: var(--white);
	color: var(--color-text-muted);
	border-color: var(--color-border);
	cursor: default;
	pointer-events: none;
}
.badge-pending {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	background: var(--color-cream);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	padding: 0.2rem 0.65rem;
}

/* ==========================================================================
   Site header / navigation
   ========================================================================== */
.site-header {
	background: linear-gradient(110deg, var(--temple-red) 0%, var(--temple-red-dark) 55%, var(--temple-red-deep) 100%);
	border-bottom: 1px solid rgba(214,168,75,.75);
	position: sticky;
	top: 0;
	z-index: 500;
}
.site-header .container { max-width: 1320px; }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	padding: 0.85rem 0;
	flex-wrap: nowrap;
}
.site-branding { display: flex; align-items: center; gap: 0.65rem; }
.site-branding a { color: #FBF7ED; text-decoration: none; display: flex; align-items: center; gap: 0.65rem; }
.site-branding__mark { width: 34px; height: 34px; flex: none; color: var(--temple-gold-light); }
.site-title {
	font-family: var(--font-heading);
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
	color: #FBF7ED;
}
.site-tagline {
	display: block;
	font-family: var(--font-body);
	font-size: 0.72rem;
	letter-spacing: 0.03em;
	color: rgba(251,247,237,.72);
	font-weight: 400;
}
.header-cta {
	margin-left: 0.5rem;
	padding: 0.55rem 1.1rem !important;
	font-size: 0.85rem;
}
.menu-toggle {
	display: none;
	background: rgba(251,247,237,.08);
	border: 1px solid rgba(214,168,75,.5);
	border-radius: var(--radius-sm);
	padding: 0.55rem 0.85rem;
	color: #FBF7ED;
}
.primary-nav ul { display: flex; align-items: center; gap: 0.1rem; flex-wrap: nowrap; white-space: nowrap; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block;
	padding: 0.6rem 0.6rem;
	color: #FBF7ED;
	font-weight: 600;
	font-size: 0.94rem;
	border-radius: var(--radius-sm);
}
.primary-nav a:hover, .primary-nav a:focus {
	background: rgba(251,247,237,.12);
	color: var(--temple-gold-light);
	text-decoration: none;
}
.primary-nav .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 220px;
	background: var(--temple-paper);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
	padding: 0.4rem;
}
.primary-nav .sub-menu a { color: var(--temple-brown); }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu a:focus { background: var(--temple-ivory); color: var(--temple-red); }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: 0.55rem 0.75rem; font-weight: 500; }

@media (max-width: 1150px) {
	.menu-toggle { display: inline-flex; align-items: center; gap: .4rem; }
	.primary-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: var(--temple-paper);
		border-bottom: 1px solid var(--color-border);
		box-shadow: var(--shadow-md);
	}
	.primary-nav.is-open { display: block; }
	.primary-nav .container, .primary-nav ul { display: block; padding: var(--space-sm); }
	.primary-nav a { color: var(--temple-brown); }
	.primary-nav a:hover, .primary-nav a:focus { background: var(--temple-ivory); color: var(--temple-red); }
	.primary-nav .sub-menu { position: static; box-shadow: none; border: none; display: block; padding-left: var(--space-sm); }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
	.header-cta { display: none; }
}

/* ==========================================================================
   Hero — cinematic temple hero (Phase 8)
   ========================================================================== */
.hero {
	position: relative;
	min-height: clamp(440px, 60vh, 620px);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--temple-ink);
	padding: var(--space-lg) 0;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__overlay {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, rgba(28,14,10,.88) 0%, rgba(42,20,14,.68) 38%, rgba(42,20,14,.20) 68%, rgba(42,20,14,.05) 100%);
}
.hero__credit {
	position: absolute; z-index: 2; right: var(--space-sm); bottom: var(--space-xs);
	font-size: 0.7rem; color: rgba(251,247,237,.8);
	background: rgba(20,8,6,.35); padding: 0.2rem 0.6rem; border-radius: 999px;
}
.hero__credit a { color: inherit; }
.hero__content { position: relative; z-index: 2; width: 100%; }
.hero__grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: var(--space-lg);
	align-items: center;
}
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: .5rem;
	color: var(--temple-gold-light);
	letter-spacing: 0.18em;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}
.hero h1 { color: #F6D675; margin-bottom: 0.6rem; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero__subtitle { color: #F7F0DF; font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-family: var(--font-heading); font-weight: 600; margin-bottom: 0.75rem; }
.hero__intro { color: rgba(251,247,237,.88); font-size: 1.02rem; max-width: 50ch; }
.hero__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: var(--space-md); }

.hero__facts {
	background: rgba(251,247,237,.96);
	color: var(--temple-brown);
	border: 1px solid rgba(214,168,75,.65);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-hero);
	padding: 1.5rem 1.6rem;
}
.hero__facts h2 {
	font-size: 0.78rem; text-transform: uppercase; letter-spacing: .1em;
	color: var(--temple-red); font-family: var(--font-body); margin-bottom: 1rem;
}
.hero__facts dl { margin: 0; }
.hero__facts .hero__fact-row {
	display: flex; align-items: flex-start; gap: 0.65rem;
	padding: 0.6rem 0; border-top: 1px solid var(--temple-border);
}
.hero__facts .hero__fact-row:first-of-type { border-top: none; padding-top: 0; }
.hero__fact-icon { flex: none; width: 20px; height: 20px; color: var(--temple-red); margin-top: 0.1rem; }
.hero__facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--temple-muted); font-weight: 700; margin: 0; }
.hero__facts dd { margin: 0.1rem 0 0; font-weight: 600; font-size: 0.98rem; }
.hero__facts dd.is-pending { font-weight: 500; color: var(--temple-muted); font-size: 0.9rem; }

@media (max-width: 900px) {
	.hero { min-height: 0; }
	.hero__grid { grid-template-columns: 1fr; }
	.hero__overlay { background: linear-gradient(180deg, rgba(28,14,10,.55) 0%, rgba(28,14,10,.82) 65%, rgba(28,14,10,.92) 100%); }
	.hero__facts { margin-top: var(--space-md); }
}

/* ==========================================================================
   Discovery strip
   ========================================================================== */
.discovery-strip {
	background: var(--white);
	border-bottom: 1px solid var(--temple-border);
}
.discovery-strip__list {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	list-style: none;
	margin: 0; padding: 0;
}
.discovery-strip__list li { border-left: 1px solid var(--temple-border); }
.discovery-strip__list li:first-child { border-left: none; }
.discovery-strip__link {
	display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
	padding: 1.1rem 0.5rem;
	text-align: center;
	color: var(--temple-brown);
	font-size: 0.82rem;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}
.discovery-strip__link:hover { background: var(--temple-ivory); color: var(--temple-red); text-decoration: none; }
.discovery-strip__link svg { width: 26px; height: 26px; color: var(--temple-red); }
.discovery-strip__link.is-pending { color: var(--temple-muted); }
.discovery-strip__link.is-pending svg { color: var(--temple-gold-dark); opacity: 0.9; }
.discovery-strip__link .discovery-strip__note { font-size: 0.68rem; font-weight: 500; color: var(--temple-muted); }
@media (max-width: 900px) {
	.discovery-strip__list { grid-template-columns: repeat(4, 1fr); }
	.discovery-strip__list li { border-left: 1px solid var(--temple-border); border-bottom: 1px solid var(--temple-border); }
	.discovery-strip__list li:nth-child(4n+1) { border-left: none; }
}
@media (max-width: 480px) {
	.discovery-strip__list { grid-template-columns: repeat(3, 1fr); }
	.discovery-strip__list li:nth-child(4n+1) { border-left: 1px solid var(--temple-border); }
	.discovery-strip__list li:nth-child(3n+1) { border-left: none; }
}

/* ==========================================================================
   Card grids
   ========================================================================== */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: var(--space-sm);
}
.card {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	box-shadow: var(--shadow-sm);
	border-top: 3px solid transparent;
	transition: border-color .15s ease;
}
.card__icon { width: 22px; height: 22px; color: var(--temple-red); margin-bottom: 0.6rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
a.card { display: block; color: inherit; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
a.card:hover { box-shadow: var(--shadow-md); text-decoration: none; transform: translateY(-2px); border-top-color: var(--temple-gold); }
.card--pending { color: var(--color-text-muted); }

/* ==========================================================================
   Quick Facts — heritage plaque grid (Phase 8.2)
   ========================================================================== */
.qf-section {
	position: relative;
	background: #FBF6E8;
	background-image:
		radial-gradient(ellipse 900px 500px at 8% 0%, rgba(214,168,75,.05), transparent 60%),
		radial-gradient(ellipse 700px 500px at 100% 100%, rgba(165,42,32,.04), transparent 55%);
	border-top: 3px solid #8F241D;
	padding: 4.5rem 0 5rem;
	overflow: hidden;
}
.qf-lotus {
	position: absolute; right: -20px; bottom: -20px; z-index: 0;
	width: 220px; height: 220px; opacity: 0.06;
	color: #A52A20;
	pointer-events: none;
}
.qf-head {
	position: relative; z-index: 1;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: var(--space-lg);
	margin-bottom: 2.75rem;
}
.qf-head__main { max-width: 40%; }
.qf-eyebrow {
	display: inline-flex; align-items: center; gap: 0.5rem;
	color: #9C2B22;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0.6rem;
}
.qf-eyebrow svg { width: 18px; height: 9px; color: #D6A84B; }
.qf-title {
	font-family: var(--font-heading);
	color: #32190F;
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: 700;
	line-height: 1.05;
	margin: 0 0 0.9rem;
}
.qf-underline { display: block; width: 84px; height: 3px; }
.qf-underline span { display: block; height: 100%; }
.qf-underline__solid { background: #D6A84B; }
.qf-underline__fade { background: linear-gradient(90deg, rgba(214,168,75,.20), rgba(214,168,75,0)); }
.qf-underline-row { display: flex; }
.qf-intro {
	max-width: 44%;
	color: #4C392F;
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}
.qf-grid {
	position: relative; z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.qf-card {
	position: relative;
	background: #FFFCF4;
	border: 1px solid rgba(198,154,69,.58);
	border-radius: 8px;
	padding: 28px;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 6px 18px rgba(58,33,24,.035);
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
	overflow: hidden;
}
.qf-card:hover {
	transform: translateY(-2px);
	border-color: rgba(168,117,34,.85);
	box-shadow: 0 12px 28px rgba(58,33,24,.08);
}
.qf-card::before, .qf-card::after {
	content: "";
	position: absolute;
	width: 14px; height: 14px;
	opacity: 0.65;
	border: 1.5px solid #D6A84B;
}
.qf-card::before { top: 8px; left: 8px; border-width: 1.5px 0 0 1.5px; }
.qf-card::after { bottom: 8px; right: 8px; border-width: 0 1.5px 1.5px 0; }
.qf-card__watermark {
	position: absolute; right: -6px; bottom: -6px; z-index: 0;
	width: 74px; height: 74px;
	color: #C98D32;
	opacity: 0.07;
	pointer-events: none;
}
.qf-card__icon {
	position: relative; z-index: 1;
	width: 72px; height: 72px;
	border-radius: 50%;
	background: #F8EAC8;
	display: flex; align-items: center; justify-content: center;
	flex: none;
	margin-bottom: 1rem;
}
.qf-card__icon svg { width: 30px; height: 30px; color: #A52A20; }
.qf-card__body { position: relative; z-index: 1; flex: 1; }
.qf-card__label {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #715548;
	margin-bottom: 0.4rem;
}
.qf-card__value {
	display: block;
	font-family: var(--font-heading);
	color: #8F241D;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.35rem;
}
.qf-card__value--long { font-size: 1.15rem; line-height: 1.35; }
.qf-card__desc {
	color: #4C392F;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0;
}
.qf-card__arrow {
	position: relative; z-index: 1;
	align-self: flex-end;
	margin-top: 0.9rem;
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 1px solid #D6A84B;
	background: transparent;
	color: #5A2A1C;
	display: flex; align-items: center; justify-content: center;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.qf-card__arrow svg { width: 18px; height: 18px; }
.qf-card__arrow:hover {
	background: #A52A20;
	color: #FFF8E8;
	border-color: #A52A20;
	text-decoration: none;
}
@media (max-width: 1150px) {
	.qf-head { flex-direction: column; align-items: flex-start; }
	.qf-head__main, .qf-intro { max-width: 100%; }
}
@media (max-width: 1024px) {
	.qf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.qf-section { padding: 3rem 0 3.25rem; }
	.qf-grid { grid-template-columns: 1fr; }
	.qf-card { padding: 22px; min-height: 0; }
	.qf-card__icon { width: 60px; height: 60px; }
	.qf-card__icon svg { width: 26px; height: 26px; }
}
.qf-section .updated-note {
	position: relative; z-index: 1;
	font-size: 0.85rem;
	color: var(--temple-muted);
}

/* ==========================================================================
   Shared heritage section head (worship + guide, Phase 8.3)
   ========================================================================== */
.heritage-head {
	position: relative; z-index: 1;
	margin-bottom: 2.5rem;
}
.heritage-head .eyebrow {
	display: inline-flex; align-items: center; gap: 0.5rem;
}
.heritage-head .eyebrow::before { content: none; }
.heritage-head .eyebrow svg { width: 18px; height: 9px; color: #D6A84B; }
.heritage-head h2 {
	color: #32190F;
	margin-bottom: 0.75rem;
}
.heritage-head p {
	max-width: 840px;
	color: var(--temple-brown-soft);
}

/* ==========================================================================
   Worship directory (Phase 8.3)
   ========================================================================== */
.worship-section {
	position: relative;
	background: #F7EEDB;
	padding: 5.5rem 0;
	overflow: hidden;
}
.worship-section__ornament {
	position: absolute; top: -30px; right: -30px; z-index: 0;
	width: 260px; height: 260px;
	color: #A52A20;
	opacity: 0.05;
	pointer-events: none;
}
.worship-grid {
	position: relative; z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.worship-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #FFFCF4;
	border: 1px solid rgba(198,154,69,.55);
	border-radius: 8px;
	padding: 28px;
	min-height: 270px;
	overflow: hidden;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.worship-card:hover {
	transform: translateY(-2px);
	border-color: rgba(168,117,34,.9);
	box-shadow: 0 12px 28px rgba(58,33,24,.09);
	text-decoration: none;
}
.worship-card__top {
	position: relative; z-index: 1;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 1.1rem;
}
.worship-card__icon {
	width: 60px; height: 60px;
	border-radius: 50%;
	background: #F8EAC8;
	display: flex; align-items: center; justify-content: center;
	flex: none;
	transition: background .2s ease, color .2s ease;
}
.worship-card__icon svg { width: 27px; height: 27px; color: #A52A20; transition: color .2s ease; }
.worship-card:hover .worship-card__icon { background: #A52A20; }
.worship-card:hover .worship-card__icon svg { color: #FFF8E8; }
.worship-card__number {
	font-family: var(--font-heading);
	font-size: 1.3rem;
	color: #D6A84B;
	font-weight: 700;
}
.worship-card__title {
	position: relative; z-index: 1;
	font-family: var(--font-heading);
	color: #8F241D;
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.7rem;
}
.worship-card__role {
	position: relative; z-index: 1;
	color: #634335;
	font-size: 0.92rem;
	padding-top: 0.6rem;
	margin: 0 0 auto;
	border-top: 2px solid #D6A84B;
	width: fit-content;
}
.worship-card__link {
	position: relative; z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 1.25rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #A52A20;
}
.worship-card:hover .worship-card__link { color: #781B17; }
.worship-card__watermark {
	position: absolute; right: -8px; bottom: -8px; z-index: 0;
	width: 80px; height: 80px;
	color: #C98D32;
	opacity: 0.06;
	pointer-events: none;
}
@media (max-width: 1150px) {
	.worship-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.worship-section { padding: 3rem 0; }
	.worship-grid { grid-template-columns: 1fr; }
	.worship-card { min-height: 0; padding: 24px; }
}

/* ==========================================================================
   Visitor guide grid (Phase 8.3)
   ========================================================================== */
.guide-section {
	position: relative;
	padding: 5.5rem 0;
}
.guide-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.guide-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: rgba(255,252,244,.6);
	border: 1px solid rgba(198,154,69,.28);
	border-top: 3px solid #D6A84B;
	border-radius: 8px;
	padding: 26px;
	color: inherit;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.guide-card:hover {
	transform: translateY(-2px);
	border-top-color: #A52A20;
	border-color: rgba(198,154,69,.5);
	box-shadow: 0 12px 26px rgba(58,33,24,.07);
	background: #FFFCF4;
	text-decoration: none;
}
.guide-card__number {
	position: absolute; top: 18px; right: 20px;
	font-family: var(--font-heading);
	font-size: 1.9rem;
	font-weight: 700;
	color: rgba(168,117,34,.55);
}
.guide-card__icon { width: 28px; height: 28px; color: #A52A20; margin-bottom: 0.9rem; }
.guide-card__title {
	font-family: var(--font-heading);
	color: #8F241D;
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	padding-right: 2rem;
}
.guide-card__desc { color: var(--temple-brown-soft); font-size: 0.92rem; margin: 0; }
.guide-card__arrow {
	display: inline-flex; align-items: center; gap: 0.3rem;
	margin-top: 1rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: #A52A20;
}
@media (max-width: 900px) {
	.guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.guide-section { padding: 3rem 0; }
	.guide-grid { grid-template-columns: 1fr; gap: 14px; }
	.guide-card {
		flex-direction: row;
		align-items: center;
		gap: 1rem;
		padding: 18px;
		min-height: 44px;
	}
	.guide-card__icon { margin-bottom: 0; flex: none; }
	.guide-card__number { display: none; }
	.guide-card__body { flex: 1; }
	.guide-card__title { padding-right: 0; font-size: 1.1rem; }
	.guide-card__arrow { margin-top: 0.35rem; }
}

/* ==========================================================================
   Location hub (Phase 8.4)
   ========================================================================== */
.location-section {
	position: relative;
	background: #F7EEDB;
	padding: 5.5rem 0;
}
.location-feature {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1.75rem;
	background: #FFFCF4;
	border: 1px solid rgba(198,154,69,.62);
	border-top: 3px solid #A52A20;
	border-radius: 8px;
	padding: 34px;
	overflow: hidden;
	margin-bottom: 1.5rem;
}
.location-feature__map {
	position: absolute; right: -10px; bottom: -10px; z-index: 0;
	width: 220px; height: 140px;
	color: #A52A20;
	opacity: 0.05;
	pointer-events: none;
}
.location-feature__icon {
	position: relative; z-index: 1;
	width: 78px; height: 78px;
	border-radius: 50%;
	background: #F8EAC8;
	display: flex; align-items: center; justify-content: center;
	flex: none;
}
.location-feature__icon svg { width: 34px; height: 34px; color: #A52A20; }
.location-feature__body { position: relative; z-index: 1; flex: 1; min-width: 0; }
.location-feature__label {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #715548;
	margin-bottom: 0.4rem;
}
.location-feature__address {
	font-family: var(--font-heading);
	color: #8F241D;
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.3rem;
}
.location-feature__secondary {
	color: #3A2118;
	font-size: 1.05rem;
	margin: 0 0 1rem;
}
.location-feature__old-note {
	background: #FBF6E8;
	border-left: 3px solid #D6A84B;
	border-radius: 4px;
	padding: 0.7rem 1rem;
	font-size: 0.88rem;
	color: var(--temple-brown-soft);
	margin: 0 0 1rem;
	max-width: 60ch;
}
.location-feature__link {
	display: inline-flex; align-items: center; gap: 0.4rem;
	font-weight: 700; font-size: 0.92rem; color: #A52A20;
}
.location-actions {
	position: relative; z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.location-action {
	display: flex; align-items: center; gap: 0.9rem;
	background: rgba(255,252,244,.55);
	border: 1px solid rgba(198,154,69,.45);
	border-radius: 8px;
	padding: 18px 20px;
	color: inherit;
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.location-action:hover {
	transform: translateY(-2px);
	border-color: rgba(168,117,34,.85);
	background: #FFFCF4;
	text-decoration: none;
}
.location-action__icon { width: 26px; height: 26px; color: #A52A20; flex: none; }
.location-action__body { flex: 1; min-width: 0; }
.location-action__title { font-family: var(--font-heading); color: #8F241D; font-weight: 700; font-size: 1.05rem; display: block; }
.location-action__desc { color: var(--temple-brown-soft); font-size: 0.85rem; }
.location-action__arrow { color: #A52A20; flex: none; }
@media (max-width: 900px) {
	.location-feature { flex-direction: column; }
	.location-actions { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.location-section { padding: 3rem 0; }
	.location-feature { padding: 24px; }
	.location-feature__address { font-size: 1.5rem; }
}

/* ==========================================================================
   Prayer hub (Phase 8.4)
   ========================================================================== */
.prayer-section {
	position: relative;
	background: #FBF6E8;
	padding: 5.5rem 0;
}
.prayer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.prayer-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #FFFCF4;
	border: 1px solid rgba(198,154,69,.55);
	border-top: 2px solid transparent;
	border-radius: 8px;
	padding: 28px;
	min-height: 250px;
	overflow: hidden;
	transition: transform .18s ease, border-top-color .18s ease, box-shadow .18s ease;
}
.prayer-card:hover {
	transform: translateY(-2px);
	border-top-color: #A52A20;
	box-shadow: 0 12px 26px rgba(58,33,24,.08);
	text-decoration: none;
}
.prayer-card__motif {
	position: absolute; right: -10px; bottom: -6px; z-index: 0;
	width: 96px; height: 96px;
	color: #A52A20;
	opacity: 0.06;
	pointer-events: none;
}
.prayer-card__icon {
	position: relative; z-index: 1;
	width: 64px; height: 64px;
	border-radius: 50%;
	background: #F8EAC8;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 1.1rem;
}
.prayer-card__icon svg { width: 28px; height: 28px; color: #A52A20; }
.prayer-card__title {
	position: relative; z-index: 1;
	font-family: var(--font-heading);
	color: #8F241D;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.5rem;
}
.prayer-card__desc {
	position: relative; z-index: 1;
	color: var(--temple-brown-soft);
	font-size: 0.92rem;
	line-height: 1.5;
	margin: 0 0 auto;
}
.prayer-card__link {
	position: relative; z-index: 1;
	display: inline-flex; align-items: center; gap: 0.35rem;
	margin-top: 1.1rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: #A52A20;
}
@media (max-width: 1150px) {
	.prayer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.prayer-section { padding: 3rem 0; }
	.prayer-grid { grid-template-columns: 1fr; }
	.prayer-card { min-height: 0; padding: 24px; }
}

/* Preview sections (Cầu con / Cầu duyên) */
.preview-block {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-lg);
	align-items: center;
}
.preview-block__media {
	position: relative;
	aspect-ratio: 4/3;
	border-radius: var(--radius-lg);
	background: var(--color-jade-light);
	border: 1px solid rgba(168,117,34,.30);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}
.preview-block__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.preview-block__credit {
	position: absolute; z-index: 2; right: 0.6rem; bottom: 0.6rem;
	font-size: 0.68rem; color: rgba(251,247,237,.92);
	background: rgba(20,8,6,.45); padding: 0.2rem 0.55rem; border-radius: 999px;
	line-height: 1.3;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: var(--space-sm) 0; }
.tag-list li {
	background: var(--color-cream);
	border: 1px solid var(--color-border);
	color: var(--color-jade-dark);
	border-radius: 999px;
	padding: 0.3rem 0.85rem;
	font-size: 0.85rem;
	font-weight: 600;
}
@media (max-width: 900px) {
	.preview-block { grid-template-columns: 1fr; }
	.preview-block__media { order: -1; aspect-ratio: 4/3; }
}

/* Timeline (lịch sử) */
.timeline-placeholder {
	border: 1px dashed var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	text-align: center;
	color: var(--color-text-muted);
	background: var(--color-cream);
}
.cnh-timeline {
	list-style: none;
	margin: 0; padding: 0;
	position: relative;
	max-width: 760px;
}
.cnh-timeline::before {
	content: "";
	position: absolute;
	left: 7px; top: 6px; bottom: 6px;
	width: 2px;
	background: linear-gradient(180deg, var(--temple-gold), var(--temple-border));
}
.cnh-timeline li {
	position: relative;
	padding: 0 0 1.6rem 2rem;
}
.cnh-timeline li:last-child { padding-bottom: 0; }
.cnh-timeline li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.35rem;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--temple-red);
	border: 3px solid var(--temple-paper);
	box-shadow: 0 0 0 1.5px var(--temple-gold);
}
.cnh-timeline strong { color: var(--temple-red-dark); }
.cnh-timeline p { margin: 0; color: var(--color-text); }

/* Gallery / video placeholders */
.media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--space-xs);
}
.media-placeholder {
	aspect-ratio: 1/1;
	border-radius: var(--radius-md);
	background: var(--color-jade-light);
	border: 1px solid var(--color-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-jade-dark);
	font-size: 0.8rem;
	text-align: center;
	padding: var(--space-xs);
}

/* Real photo tiles (Phase 5.5) */
.media-photo {
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--color-border);
	background: var(--color-cream);
}
.media-photo figure { margin: 0; }
.media-photo img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	display: block;
}
.media-photo figcaption {
	padding: 0.5rem 0.75rem;
	font-size: 0.75rem;
	color: var(--color-text-muted);
	line-height: 1.4;
}
.media-photo figcaption a { color: inherit; text-decoration: underline; }
.media-photo--wide img { aspect-ratio: 16/10; }
.video-placeholder {
	aspect-ratio: 16/9;
	max-width: 800px;
	border-radius: var(--radius-lg);
	background: var(--color-jade-light);
	border: 1px solid var(--color-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-jade-dark);
	font-weight: 600;
}

/* Map placeholder */
.map-placeholder {
	aspect-ratio: 16/9;
	max-width: 100%;
	border-radius: var(--radius-lg);
	border: 1px dashed var(--color-border);
	background: var(--color-cream);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-muted);
	text-align: center;
	padding: var(--space-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: linear-gradient(135deg, #421915, #26100E);
	color: var(--color-white);
	padding: var(--space-lg) 0 var(--space-md);
	border-top: 1px solid rgba(214,168,75,.35);
	position: relative;
}
.site-footer a { color: #F0DDBE; opacity: 0.92; }
.site-footer a:hover { opacity: 1; color: var(--temple-gold-light); }
.site-footer .site-title { color: #F6D675 !important; font-family: var(--font-heading); }
.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: var(--space-lg);
	margin-bottom: var(--space-md);
}
.footer-grid nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-disclaimer {
	font-size: 0.85rem;
	opacity: 0.85;
	max-width: 60ch;
}
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.15);
	padding-top: var(--space-sm);
	font-size: 0.82rem;
	opacity: 0.75;
}
@media (max-width: 700px) {
	.footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Generic page/post content
   ========================================================================== */
.page-header {
	padding: 2.75rem 0 2rem;
	background: var(--temple-ivory);
	border-bottom: 1px solid var(--temple-border);
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header .lead { margin-bottom: 0; }
.breadcrumbs { font-size: 0.82rem; color: var(--temple-muted); margin-bottom: 0.65rem; }
.breadcrumbs a { color: var(--temple-muted); }
.breadcrumbs a:hover { color: var(--temple-red); }
.entry-content { padding: var(--space-lg) 0; max-width: 760px; margin: 0 auto; }
.entry-content img { border-radius: var(--radius-md); }

.topic-content table, .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--space-sm) 0 var(--space-md);
	font-size: 0.95rem;
}
.topic-content th, .topic-content td, .entry-content th, .entry-content td {
	border: 1px solid var(--temple-border);
	padding: 0.6rem 0.85rem;
	text-align: left;
}
.topic-content th, .entry-content th {
	background: var(--temple-ivory);
	color: var(--temple-brown);
	font-weight: 700;
}
.topic-content tr:nth-child(even) td, .entry-content tr:nth-child(even) td { background: var(--temple-paper); }

/* ==========================================================================
   Editorial content components (Phase 2)
   ========================================================================== */
.lead {
	font-size: 1.1rem;
	color: var(--color-text-muted);
	max-width: 70ch;
}
.topic-content {
	max-width: 760px;
	margin: 0 auto;
	padding: var(--space-lg) 0;
}
.topic-content h2 { margin-top: var(--space-lg); }
.topic-content h3 { margin-top: var(--space-md); color: var(--color-text); }
.topic-content p, .topic-content li { color: var(--color-text); }
.topic-content ul, .topic-content ol { padding-left: 1.25rem; margin-bottom: var(--space-sm); }
.topic-content li { margin-bottom: 0.4rem; }

.callout {
	background: var(--color-cream);
	border-left: 4px solid var(--color-gold);
	border-radius: var(--radius-sm);
	padding: 1rem 1.25rem;
	margin: var(--space-sm) 0;
	font-size: 0.95rem;
	color: var(--color-text-muted);
}
.callout--caution { border-left-color: var(--color-vermilion); }

.fact-tag {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 0.2rem 0.7rem;
	margin: 0 0.35rem 0.35rem 0;
}
.fact-tag--documented { background: var(--color-jade-light); color: var(--color-jade-dark); }
.fact-tag--folk { background: #F3E9D8; color: #6B4512; }
.fact-tag--unverified { background: #F1E3E1; color: var(--color-vermilion); }

.source-list {
	margin-top: var(--space-md);
	padding-top: var(--space-md);
	border-top: 1px solid var(--color-border);
	font-size: 0.9rem;
}
.source-list h2, .source-list h3 { margin-bottom: 0.5rem; }
.source-list ol { padding-left: 1.25rem; }
.source-list li { margin-bottom: 0.5rem; color: var(--color-text-muted); }
.source-list a { word-break: break-word; }

.related-links {
	background: var(--color-cream);
}
.faq-item summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--color-jade-dark);
	padding: 0.25rem 0;
}
.faq-item {
	border-bottom: 1px solid var(--color-border);
	padding: 0.75rem 0;
}
.faq-item p { margin-top: 0.5rem; margin-bottom: 0; color: var(--color-text-muted); }

/* Responsive container tightening on small phones */
@media (max-width: 400px) {
	.container { padding: 0 var(--space-sm); }
	.section { padding: var(--space-lg) 0; }
}
