/*
Theme Name: Dalailama.ca Community
Theme URI: https://dalailama.ca
Author: dalailama.ca
Description: Mobile-first community theme for Tibetans in Canada. Headlines from dalailama.com, social feeds, city-by-city community news and events (The Events Calendar), and a Teachings & Prayers listening page built on YouTube playlists. Community site, not affiliated with the Office of His Holiness the Dalai Lama.
Version: 2.8.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dalailama-ca
Tags: one-column, two-columns, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, blog, news
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	/* Palette: Ocean of Wisdom. Deep ocean blue, lotus white, butter-lamp gold, robe maroon as a small accent */
	--c-ocean: #0e2a3b;
	--c-ocean-deep: #0a2130;
	--c-ocean-mid: #133447;
	--c-ocean-line: #23495e;
	--c-sky: #9fc3d4;
	--c-mist: #c9dbe2;
	--c-maroon: #7a2430;
	--c-maroon-deep: #4e1620;
	--c-saffron: #a65a12;
	--c-gold: #e3c27a;
	--c-paper: #f8f4ec;
	--c-paper-2: #f1ece1;
	--c-surface: #ffffff;
	--c-ink: #1f2a30;
	--c-ink-soft: #55626a;
	--c-line: #e4ddcf;
	--c-focus: #2d6fb0;

	/* Prayer-flag colours: sky, wind, fire, water, earth */
	--flag-blue: #2d6fb0;
	--flag-white: #ffffff;
	--flag-red: #b8322a;
	--flag-green: #2f7d4a;
	--flag-yellow: #e8b923;

	--font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-tibetan: "Noto Serif Tibetan", "Jomolhari", "Microsoft Himalaya", serif;

	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(14, 42, 59, .05), 0 6px 20px rgba(14, 42, 59, .05);
	--gutter: 16px;
	--max: 1180px;
	--header-h: 64px;

	/* The Events Calendar (v2 views) picks these up */
	--tec-color-accent-primary: var(--c-ocean);
	--tec-color-accent-primary-hover: var(--c-ocean-mid);
	--tec-color-link-accent: var(--c-maroon);
	--tec-font-family-sans-serif: var(--font-body);
	color-scheme: light;
}

@media (min-width: 768px) {
	:root { --gutter: 28px; --header-h: 72px; }
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--c-maroon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-maroon-deep); }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	margin: 0 0 .5em;
	color: var(--c-ink);
}
h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 4.4vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

/* Tibetan script: use lang="bo" on any block, or the .tibetan class */
:lang(bo), .tibetan { font-family: var(--font-tibetan); line-height: 2; font-size: 1.12em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: var(--c-surface); color: var(--c-ink);
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ==========================================================================
   3. Header & navigation
   ========================================================================== */
.flag-stripe {
	height: 5px;
	background: linear-gradient(90deg,
		var(--flag-blue) 0 20%, var(--flag-white) 20% 40%, var(--flag-red) 40% 60%,
		var(--flag-green) 60% 80%, var(--flag-yellow) 80% 100%);
}

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--c-paper) 92%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--c-line);
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }

.site-branding { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-branding .custom-logo { max-height: 44px; width: auto; }
.site-title {
	font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin: 0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-title a { color: var(--c-ink); text-decoration: none; }
.site-tagline { display: none; margin: 0; font-size: .8rem; color: var(--c-ink-soft); }
@media (min-width: 600px) { .site-tagline { display: block; } }

.menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border: 1px solid var(--c-line); border-radius: 12px;
	background: var(--c-surface); color: var(--c-ink); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle[aria-expanded="true"] .icon-open, .menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; text-decoration: none; color: var(--c-ink); font-weight: 500; }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--c-maroon); }

/* Mobile: full-width drop-down panel */
@media (max-width: 959px) {
	.primary-nav {
		position: fixed; inset: calc(var(--header-h) + 5px) 0 0 0;
		background: var(--c-paper); overflow-y: auto; padding: 8px var(--gutter) 40px;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .18s ease, transform .18s ease, visibility .18s;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 51px); }
	.primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.primary-nav li { border-bottom: 1px solid var(--c-line); }
	.primary-nav a { padding: 15px 4px; font-size: 1.1rem; }
	.primary-nav .sub-menu { padding-left: 14px; }
	.primary-nav .sub-menu li { border: 0; }
	.primary-nav .sub-menu a { padding: 10px 4px; font-size: 1rem; color: var(--c-ink-soft); }
	body.nav-open { overflow: hidden; }
}

/* Desktop: inline menu with hover drop-downs */
@media (min-width: 960px) {
	.menu-toggle { display: none; }
	.primary-nav > ul { display: flex; gap: 4px; }
	.primary-nav li { position: relative; }
	.primary-nav > ul > li > a { padding: 10px 14px; border-radius: 10px; }
	.primary-nav > ul > li > a:hover { background: var(--c-surface); }
	.primary-nav .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px;
		background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
		box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: all .15s ease;
	}
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .sub-menu a { padding: 8px 12px; border-radius: 6px; }
	.primary-nav .sub-menu a:hover { background: var(--c-paper); }
}

/* ==========================================================================
   4. Layout & sections
   ========================================================================== */
.site-main { padding: 28px 0 56px; }

.section { margin: 0 0 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head .more { font-size: .92rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.section-head .more::after { content: " →"; }
.section-kicker {
	display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--c-saffron); margin-bottom: 4px;
}

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid { gap: 22px; } }

.layout-split { display: grid; gap: 32px; }
@media (min-width: 960px) { .layout-split { grid-template-columns: minmax(0, 1fr) 360px; } }

/* Horizontal swipe row on phones, grid on larger screens */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto;
	scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
	scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 640px) { .scroller { grid-auto-columns: 46%; } }
@media (min-width: 960px) { .scroller { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; } }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
	position: relative; overflow: hidden; border-radius: var(--radius);
	background: var(--c-ocean);
	color: #e8f0f2; padding: 30px 22px; margin-bottom: 36px;
}
.hero h1, .hero h2 { color: #fff; max-width: 18ch; }
.hero p { max-width: 52ch; color: var(--c-mist); font-size: 1.05rem; }
.hero .tibetan { color: var(--c-gold); display: block; margin-bottom: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (min-width: 768px) { .hero { padding: 56px 48px; } }

/* ==========================================================================
   6. Buttons & chips
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
	font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
	background: var(--c-ocean); color: #fffdf7;
}
.btn:hover { background: var(--c-ocean-mid); color: #fffdf7; }
.btn-light { background: var(--c-gold); color: var(--c-ocean); }
.btn-light:hover { background: #ecd197; color: var(--c-ocean); }
.btn-outline { background: transparent; border-color: var(--c-line); color: var(--c-ink); }
.btn-outline:hover { background: var(--c-surface); color: var(--c-ink); }
.hero .btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }

.chip {
	display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
	background: #fbf1d6; color: #7a5410;
}

/* ==========================================================================
   7. Cards
   ========================================================================== */
.card {
	display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%;
}
.card-media { aspect-ratio: 16 / 9; background: var(--c-line); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 1.12rem; margin: 0; }
.card-title a { color: var(--c-ink); text-decoration: none; }
.card-title a:hover { color: var(--c-maroon); }
.card-meta { font-size: .85rem; color: var(--c-ink-soft); }
.card-excerpt { font-size: .95rem; color: var(--c-ink-soft); margin: 0; }

/* Headline list (dalailama.com news) */
.headlines { list-style: none; margin: 0; padding: 0; background: var(--c-surface);
	border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.headlines li { border-bottom: 1px solid var(--c-line); }
.headlines li:last-child { border-bottom: 0; }
.headlines a { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 16px 18px; text-decoration: none; color: var(--c-ink); }
.headlines a:hover { background: var(--c-paper); }
.headlines .h-title { font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.headlines .h-date { grid-column: 1; font-size: .82rem; color: var(--c-ink-soft); }
.headlines .h-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--c-maroon); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.headlines .h-thumb { grid-column: 1 / -1; border-radius: var(--radius-sm); aspect-ratio: 16/9; object-fit: cover; width: 100%; margin-bottom: 6px; }
.source-note { font-size: .8rem; color: var(--c-ink-soft); margin-top: 10px; }

/* ==========================================================================
   8. Events
   ========================================================================== */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event-item { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: start;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.event-date { text-align: center; border-radius: 10px; background: var(--c-ocean); color: #fffdf7; padding: 8px 0 6px; line-height: 1.1; }
.event-date .m { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.event-date .d { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; }
.event-info h3 { font-size: 1.05rem; margin: 0 0 4px; }
.event-info h3 a { color: var(--c-ink); text-decoration: none; }
.event-info .card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.empty-note { padding: 18px; border: 1px dashed var(--c-line); border-radius: var(--radius); color: var(--c-ink-soft); background: var(--c-surface); }

.city-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.city-tabs::-webkit-scrollbar { display: none; }
.city-tabs a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--c-line);
	background: var(--c-surface); text-decoration: none; color: var(--c-ink); font-size: .92rem; font-weight: 500; }
.city-tabs a:hover, .city-tabs a.is-active { background: var(--c-ocean); border-color: var(--c-ocean); color: #fffdf7; }

/* ==========================================================================
   9. Teachings & Prayers (listening page)
   ========================================================================== */
.playlist-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .playlist-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .playlist-grid { grid-template-columns: repeat(3, 1fr); } }

.playlist-card {
	display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; width: 100%;
	padding: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow);
	transition: border-color .15s ease, transform .15s ease;
}
.playlist-card:hover { border-color: var(--c-gold); transform: translateY(-1px); }
.playlist-card.is-playing { border-color: var(--c-maroon); box-shadow: 0 0 0 2px var(--c-maroon) inset; }
.pl-art { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
	background: var(--c-ocean-mid); }
.pl-art img { width: 100%; height: 100%; object-fit: cover; }
.pl-art .pl-play { position: absolute; inset: auto 6px 6px auto; width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--c-maroon); }
.pl-art .pl-play svg { width: 16px; height: 16px; margin-left: 2px; }
.pl-text strong { display: block; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; }
.pl-text span { display: block; font-size: .86rem; color: var(--c-ink-soft); margin-top: 2px; }
.pl-text .pl-state { color: var(--c-maroon); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

/* Sticky "now playing" player. YouTube requires the player to stay at least 200x200 px. */
.dock-player {
	position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
	background: var(--c-surface); border-top: 1px solid var(--c-line); box-shadow: 0 -8px 30px rgba(0, 0, 0, .15);
	padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
	transform: translateY(110%); transition: transform .25s ease;
}
.dock-player.is-open { transform: none; }
.dock-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dock-title { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-btn { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-paper); color: var(--c-ink); cursor: pointer; font-size: 1.1rem; }
.dock-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; max-height: 42vh; border-radius: 10px; overflow: hidden; background: #000; }
.dock-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.has-dock { padding-bottom: 300px; }
@media (min-width: 768px) {
	.dock-player { left: auto; right: 20px; bottom: 20px; width: 420px; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px; }
	body.has-dock { padding-bottom: 0; }
}

/* ==========================================================================
   10. Social embeds (click-to-load keeps phones fast)
   ========================================================================== */
.embed-shell { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.embed-shell-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); font-weight: 600; }
.embed-shell-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-gold); }
.embed-shell-body { padding: 12px; min-height: 160px; }
.embed-placeholder { display: grid; place-items: center; gap: 10px; text-align: center; padding: 28px 12px; color: var(--c-ink-soft); }
.embed-shell-body iframe { width: 100%; border: 0; display: block; }
.embed-follow { display: block; text-align: center; padding: 12px; border-top: 1px solid var(--c-line); font-weight: 600; text-decoration: none; }

.social-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.social-tabs button { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); font: inherit; font-weight: 600; cursor: pointer; }
.social-tabs button[aria-selected="true"] { background: var(--c-ocean); border-color: var(--c-ocean); color: #fffdf7; }
.social-panel[hidden] { display: none; }

.insta-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .insta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
.insta-grid .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; }

.social-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255, 255, 255, .08); color: inherit; }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }

/* ==========================================================================
   11. Posts, pages & content
   ========================================================================== */
.entry-header { margin-bottom: 20px; }
.entry-meta { font-size: .9rem; color: var(--c-ink-soft); }
.entry-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.entry-content { max-width: 72ch; }
.full-width .entry-content, .entry-content.is-wide { max-width: none; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--c-gold); font-family: var(--font-head); font-size: 1.3rem; }
.entry-content .wp-block-image img, .entry-content img { border-radius: var(--radius-sm); }
.entry-content iframe { width: 100%; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }

.page-header { margin-bottom: 24px; }
.page-header .archive-description { color: var(--c-ink-soft); max-width: 60ch; }

.pagination { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px;
	border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); text-decoration: none; color: var(--c-ink); }
.pagination .current { background: var(--c-ocean); border-color: var(--c-ocean); color: #fffdf7; }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; min-height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); font: inherit; font-size: 16px; }

/* Forms: 16px+ text stops iPhone from zooming in */
input, select, textarea { font-size: 16px; }

.widget { margin-bottom: 28px; }
.widget-title { font-size: 1.1rem; }

/* Comments */
.comments-area { margin-top: 48px; max-width: 72ch; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--c-line); }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { background: var(--c-ocean-deep); color: var(--c-mist); padding: 44px 0 calc(28px + env(safe-area-inset-bottom)); }
.site-footer a { color: var(--c-gold); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2, .site-footer .widget-title { color: #fff; font-size: 1.1rem; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-menu a { text-decoration: none; }
.disclaimer {
	margin-top: 32px; padding: 14px 16px; border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
	font-size: .9rem; color: #e8f0f2;
}
.disclaimer-inline { font-size: .85rem; color: var(--c-ink-soft); border-left: 3px solid var(--c-gold); padding: 6px 0 6px 12px; margin: 12px 0 0; }
.footer-bottom { margin-top: 18px; font-size: .82rem; opacity: .8; }

/* ==========================================================================
   13. WordPress core classes
   ========================================================================== */
.alignleft { float: left; margin: .3em 1.2em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: none; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--c-ink-soft); text-align: center; margin-top: 6px; }
.sticky .card { border-color: var(--c-gold); }
.bypostauthor { }
.gallery-caption { }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .dock-player, .flag-stripe { display: none; }
	body { background: #fff; color: #000; }
}

/* ==========================================================================
   14. Ocean of Wisdom (v2): notice, marks, home page sections
   ========================================================================== */
.site-notice { background: var(--c-ocean-deep); color: var(--c-mist); font-size: .8rem; line-height: 1.4; text-align: center; padding: 7px 16px; }
.brand-mark { display: inline-flex; flex: 0 0 auto; }
.btn-ghost { background: transparent; border-color: rgba(159, 195, 212, .5); color: #fffdf7; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fffdf7; }
.prayer-flags { display: flex; gap: 6px; margin: 0 0 18px; }
.prayer-flags span { width: 34px; height: 22px; border-radius: 2px; }
.pf-blue { background: var(--flag-blue); }
.pf-white { background: var(--flag-white); box-shadow: inset 0 0 0 1px #dad3c4; }
.pf-red { background: var(--flag-red); }
.pf-green { background: var(--flag-green); }
.pf-yellow { background: var(--flag-yellow); }
.prayer-flags.pf-footer span { width: 26px; height: 16px; }
.site-footer .pf-white { box-shadow: none; }
.footer-blessing { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; color: #fffdf7; margin: 0 0 6px; line-height: 1.2; }
.site-footer h2 { font-size: 1.3rem; }

.home-ocean { padding: 0; }
.h-section { padding: 56px 0; }
@media (min-width: 900px) { .h-section { padding: 72px 0; } }
.h-white { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.h-ocean { background: var(--c-ocean); color: #e8f0f2; }
.h-ocean .h-title { color: #fffdf7; }
.h-ocean .h-lead { color: var(--c-mist); }
.h-ocean .h-source, .h-ocean .h-source a { color: var(--c-sky); }
.h-bo { margin: 0; color: var(--c-saffron); font-size: 1.15rem; }
.h-kicker { margin: 0 0 6px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--c-saffron); }
.h-kicker-sky { color: var(--c-sky); }
.h-kicker-gold { color: var(--c-gold); }
.h-title { font-size: clamp(2.1rem, 5.4vw, 3.3rem); line-height: 1.06; margin: 0 0 10px; }
.h-title-sm { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.h-lead { color: var(--c-ink-soft); max-width: 42em; margin: 0 0 24px; }
.h-source { font-size: .82rem; color: #6a757b; margin: 14px 0 0; }
.h-note { font-size: .9rem; color: var(--c-ink-soft); margin: 14px 0 0; }
.h-two { display: grid; gap: 36px; }
@media (min-width: 900px) { .h-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }
.h-narrow { max-width: 640px; text-align: center; }
.h-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; }
.h-card p { margin: 8px 0 0; font-size: .95rem; color: #3e4a50; }
.h-card strong { font-family: var(--font-head); font-size: 1.55rem; line-height: 1.15; display: block; }
.h-card-k { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--c-saffron); }
.h-three, .h-texts { display: grid; gap: 14px; }
@media (min-width: 900px) { .h-three, .h-texts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.h-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.h-chips button, .h-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; background: var(--c-surface); color: var(--c-ink); border: 1px solid #d8cdb6; text-decoration: none; }
.h-chips button[aria-pressed="true"] { background: var(--c-ocean); border-color: var(--c-ocean); color: #fffdf7; }
.h-chips-dark button { background: transparent; color: #e8f0f2; border-color: #3e6e86; }
.h-chips-dark button[aria-pressed="true"] { background: #fffdf7; border-color: #fffdf7; color: var(--c-ocean); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dot-white { background: #fffdf7; box-shadow: inset 0 0 0 1px #9fc3d4; } .dot-gold { background: #e3c27a; } .dot-blue { background: #9cc7e0; } .dot-orange { background: #f08a3c; }
.h-more { display: block; width: 100%; min-height: 50px; margin-top: 14px; border-radius: 999px; border: 1px solid #d8cdb6; background: var(--c-surface); color: var(--c-maroon); font: inherit; font-weight: 600; cursor: pointer; }
.h-more[hidden] { display: none; }
.h-ocean .h-more { background: transparent; color: #fffdf7; border-color: #3e6e86; }
[data-dlc-hidden] { display: none !important; }

/* Hero */
.h-hero { background: var(--c-ocean); color: #e8f0f2; overflow: hidden; }
.h-hero-grid { display: grid; gap: 24px; padding-top: 44px; padding-bottom: 48px; }
@media (min-width: 900px) { .h-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; padding-top: 60px; padding-bottom: 64px; } }
.h-hero-bo { color: var(--c-gold); font-size: 1.45rem; margin: 0 0 2px; }
.h-hero-title { font-size: clamp(3rem, 8vw, 5.4rem); line-height: 1; color: #fffdf7; margin: 0 0 18px; font-weight: 600; }
.h-hero-text { font-size: 1.08rem; color: var(--c-mist); max-width: 33em; margin: 0 0 24px; }
.h-hero-art { width: 100%; height: auto; display: block; max-width: 520px; margin: 0 auto; }

/* Sacred days */
.h-days { background: var(--c-paper-2); border-bottom: 1px solid var(--c-line); }
.h-coming { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--c-ocean); color: #e8f0f2; border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.h-coming[hidden] { display: none; }
.h-coming-main { flex: 1 1 420px; min-width: 0; }
.h-coming h3 { color: #fffdf7; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.1; margin: 12px 0 4px; font-weight: 700; }
.h-coming p { margin: 8px 0 0; color: var(--c-mist); font-size: .95rem; }
.h-coming .h-coming-date { color: var(--c-gold); font-weight: 600; margin-top: 0; }
.h-pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--c-gold); color: var(--c-ocean); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.h-feature-days { display: grid; gap: 14px; margin-bottom: 28px; }
@media (min-width: 900px) { .h-feature-days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.h-feature { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; }
.h-feature-gold { box-shadow: inset 0 6px 0 var(--flag-yellow); }
.h-feature-blue { box-shadow: inset 0 6px 0 var(--flag-blue); }
.h-feature h3 { font-size: 1.75rem; line-height: 1.1; margin: 0; font-weight: 700; }
.h-feature p { margin: 4px 0 8px; font-size: .95rem; color: #3e4a50; }
.h-bigdate { text-align: center; border-radius: 10px; padding: 12px 4px; }
.h-bigdate .d { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.9rem; line-height: 1; }
.h-bigdate .m { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.h-bigdate-gold { background: var(--c-gold); color: var(--c-ocean); }
.h-bigdate-ocean { background: var(--c-ocean); color: #fffdf7; }
.h-when { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--c-paper); font-size: .8rem; font-weight: 700; color: var(--c-saffron); }
.h-when:empty { display: none; }
.h-subhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.h-subhead h3 { margin: 0; font-size: 1.75rem; font-weight: 700; }
.h-subhead span { font-size: .88rem; color: var(--c-ink-soft); }
.h-daylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .h-daylist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.h-day { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 10px; padding: 12px 14px; }
.h-day-tile { display: block; text-align: center; border-radius: 8px; padding: 8px 4px; }
.h-day-tile .m { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.h-day-tile .d { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.h-tile-celebration { background: var(--c-gold); color: var(--c-ocean); }
.h-tile-milestone { background: var(--c-paper); color: var(--c-ocean); box-shadow: inset 0 0 0 1px #d8cdb6; }
.h-tile-honour { background: var(--c-ocean); color: #fffdf7; }
.h-tile-remembrance { background: var(--c-maroon); color: #fffdf7; }
.h-day-body { display: block; min-width: 0; }
.h-day-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.h-day-head strong { font-size: 1rem; }
.h-cat { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.h-cat-celebration { background: #fbf1d6; color: #7a5410; }
.h-cat-milestone { background: #eef3f5; color: var(--c-ocean-line); }
.h-cat-honour { background: #e7eef4; color: var(--c-ocean-mid); }
.h-cat-remembrance { background: #f6e6e6; color: var(--c-maroon); }
.h-day-text { display: block; font-size: .9rem; color: #3e4a50; margin-top: 2px; }
.h-day-when { display: block; font-size: .82rem; font-weight: 600; color: var(--c-saffron); margin-top: 2px; }

/* Qualities */
.h-qualities { display: grid; gap: 14px; }
@media (min-width: 600px) { .h-qualities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .h-qualities { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.h-quality { display: flex; flex-direction: column; text-decoration: none; color: var(--c-ink); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.h-quality:hover { color: var(--c-ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.h-q-band { display: block; height: 10px; }
.h-q-blue .h-q-band { background: var(--flag-blue); } .h-q-red .h-q-band { background: var(--flag-red); } .h-q-yellow .h-q-band { background: var(--flag-yellow); } .h-q-green .h-q-band { background: var(--flag-green); }
.h-q-white .h-q-band { background: #fff; border-bottom: 1px solid var(--c-line); }
.h-q-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 20px; flex: 1; }
.h-q-body .tibetan { color: var(--c-saffron); font-size: 1.15rem; line-height: 1.8; }
.h-q-title { font-family: var(--font-head); font-weight: 600; font-size: 1.75rem; line-height: 1.1; }
.h-q-text { font-size: .95rem; color: #3e4a50; flex: 1; }
.h-q-link { margin-top: 8px; font-size: .88rem; font-weight: 600; color: var(--c-maroon); }
.h-divider { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 0 8px; }
.h-divider span { width: 90px; height: 1px; background: #d8cdb6; }

/* Lineage */
.h-lineage { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.h-lin { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--c-line); align-items: baseline; }
.h-lin-num { font-family: var(--font-head); font-weight: 600; font-size: 2.6rem; line-height: 1; color: #c9a45c; }
.h-lin-name strong { display: block; font-family: var(--font-head); font-size: 1.55rem; line-height: 1.2; }
.h-lin-name span { font-size: .88rem; font-weight: 700; color: var(--c-maroon); }
.h-lin-meta { grid-column: 2; }
.h-lin-meta em { display: block; font-family: var(--font-head); font-size: 1.2rem; color: #3e4a50; }
.h-lin-meta span { display: block; font-size: .95rem; color: #3e4a50; }
@media (min-width: 760px) { .h-lin { grid-template-columns: 84px 240px minmax(0, 1fr); gap: 20px; } .h-lin-meta { grid-column: auto; } }

/* Life */
.h-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
@media (min-width: 760px) { .h-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.h-stats div { background: var(--c-paper); border-radius: 10px; padding: 14px 10px; text-align: center; }
.h-stats strong { display: block; font-family: var(--font-head); font-size: 2.1rem; line-height: 1.05; color: var(--c-ocean); }
.h-stats span { display: block; font-size: .8rem; color: var(--c-ink-soft); line-height: 1.35; }
.h-portrait { border-radius: var(--radius); width: 100%; height: auto; }
.h-timeline, .h-stream ol { list-style: none; margin: 0; padding: 0; }
.h-timeline li, .h-stream li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid #eee8dc; }
@media (min-width: 760px) { .h-timeline li, .h-stream li { grid-template-columns: 92px minmax(0, 1fr); gap: 24px; } }
.h-tl-year { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1.2; color: var(--c-ocean); }
.h-timeline strong { display: block; }
.h-timeline li > span > span { display: block; font-size: .95rem; color: #3e4a50; }

/* Journey */
.h-mapbox { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-ocean-line); border-radius: var(--radius); background: var(--c-ocean-deep); }
.h-mapbox svg { display: block; width: 100%; height: auto; min-width: 760px; }
@media (min-width: 760px) { .h-mapbox svg { min-width: 0; } }
.h-map-label text { font-family: var(--font-body); font-size: 13px; letter-spacing: 3px; fill: #7e9dac; }
.h-map-note { font-family: var(--font-body); font-size: 11px; fill: #7e9dac; }
.h-pin circle { stroke: #0a2130; stroke-width: 2; }
.h-pin .n { font-family: var(--font-body); font-size: 12px; font-weight: 700; fill: var(--c-ocean); text-anchor: middle; }
.h-pin .t { font-family: var(--font-body); font-size: 14px; font-weight: 600; fill: #e8f0f2; }
.h-pin .t.big { font-family: var(--font-head); font-size: 22px; font-weight: 700; fill: #fffdf7; }
.h-route, .h-pin { transition: opacity .3s ease; }
.is-dim { opacity: .15; }
.h-stops { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 600px) { .h-stops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .h-stops { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.h-stops li { background: var(--c-ocean-mid); border: 1px solid var(--c-ocean-line); border-radius: var(--radius); padding: 16px 18px; }
.h-stop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.h-stop-head strong { font-family: var(--font-head); font-size: 1.45rem; color: #fffdf7; }
.h-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; font-weight: 700; color: var(--c-ocean); flex: 0 0 auto; }
.h-badge-gold { background: #e3c27a; } .h-badge-white { background: #fffdf7; } .h-badge-blue { background: #9cc7e0; } .h-badge-orange { background: #f08a3c; }
.h-stop-date { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--c-gold); }
.h-stop-text { display: block; margin-top: 4px; font-size: .95rem; color: var(--c-mist); }

/* Quiet moment */
.h-pause { background: var(--c-paper-2); }
.h-breath { width: 150px; height: 150px; border-radius: 50%; margin: 8px auto 0; background: var(--c-gold); opacity: .85; transform: scale(.62); }
.h-cue { position: relative; height: 32px; margin: 18px 0 18px; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--c-ocean); }
.h-cue span { position: absolute; left: 0; right: 0; opacity: 0; }
.h-cue .idle { opacity: 1; }
.h-pause.is-breathing .h-breath { animation: dlcBreathe 10s ease-in-out infinite; }
.h-pause.is-breathing .h-cue .idle { opacity: 0; }
.h-pause.is-breathing .h-cue .in { animation: dlcCueIn 10s ease-in-out infinite; }
.h-pause.is-breathing .h-cue .out { animation: dlcCueOut 10s ease-in-out infinite; }
@keyframes dlcBreathe { 0%, 100% { transform: scale(.62); } 50% { transform: scale(1); } }
@keyframes dlcCueIn { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dlcCueOut { 0%, 45% { opacity: 0; } 50%, 95% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .h-pause.is-breathing .h-cue .in { opacity: 1; animation: none; } }

/* Reincarnation stream */
.h-stream { margin-top: 32px; background: var(--c-ocean); color: #e8f0f2; border-radius: var(--radius); padding: 28px 22px; }
.h-stream h3 { color: #fffdf7; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.12; margin: 0 0 14px; }
.h-stream li { border-bottom-color: var(--c-ocean-line); font-size: .95rem; }
.h-stream .h-tl-year { color: var(--c-gold); }
.h-stream .h-source, .h-stream .h-source a { color: var(--c-sky); }

/* Listen */
.h-listen { display: grid; gap: 8px; margin-bottom: 24px; }
@media (min-width: 900px) { .h-listen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.h-listen .pl-section { margin: 0; }
.h-listen .pl-section .section-head h2 { font-size: 1.7rem; }
.h-listen .playlist-grid { grid-template-columns: 1fr; gap: 8px; }
.h-listen-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; background: var(--c-ocean); color: #e8f0f2; border-radius: var(--radius); padding: 22px 24px; }
.h-listen-cta strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: #fffdf7; }
.h-listen-cta span { display: block; font-size: .95rem; color: var(--c-mist); }

/* Community */
#community .headlines { box-shadow: none; }

/* ==========================================================================
   15. Tibetan calendar (v2.1)
   ========================================================================== */
.tc { display: grid; gap: 28px; }
.tc section { min-width: 0; }
.tc h2 { font-size: clamp(1.8rem, 4.4vw, 2.4rem); margin: 0 0 10px; }
.tc [lang="bo"] { font-family: var(--font-tibetan); }
.tc-today { background: var(--c-ocean); color: #e8f0f2; border-radius: var(--radius); padding: 22px 20px; }
.tc-today-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.tc-today-big { text-align: center; background: var(--c-gold); color: var(--c-ocean); border-radius: 12px; padding: 10px 14px 8px; line-height: 1.3; }
.tc-today-big span { display: block; font-size: 2.1rem; font-weight: 600; }
.tc-today-big small { display: block; font-size: 1rem; }
.tc-today p { margin: 0 0 4px; }
.tc-today-en { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: #fffdf7; line-height: 1.15; }
.tc-today-year, .tc-today-wd { color: var(--c-mist); font-size: .95rem; }
.tc-today-year [lang="bo"], .tc-today-wd [lang="bo"] { color: var(--c-gold); }
.tc-today-items { margin-top: 8px !important; }
.tc-tag { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #fffdf7; color: var(--c-ocean); }

.tc-month { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 12px 18px; }
@media (min-width: 700px) { .tc-month { padding: 22px; } }
.tc-nav { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 8px; text-align: center; }
.tc-nav h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.1rem); }
.tc-nav p { margin: 0; color: var(--c-ink-soft); font-size: .9rem; }
.tc-arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-paper); color: var(--c-ocean); font-size: 1.6rem; line-height: 1; text-decoration: none; }
.tc-arrow:hover { background: var(--c-ocean); color: #fffdf7; }
.tc-gotoday { text-align: center; margin: 6px 0 0; font-size: .9rem; font-weight: 600; }
.tc-grid { margin-top: 14px; }
.tc-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tc-head { margin-bottom: 4px; }
.tc-head span { text-align: center; font-size: .72rem; color: var(--c-ink-soft); line-height: 1.2; }
.tc-head b { display: block; font-weight: 700; }
.tc-head i { display: block; font-style: normal; font-size: .72rem; }
.tc-cell { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 64px; padding: 5px 6px 18px; border-radius: 8px; border: 1px solid var(--c-line); background: var(--c-paper); color: var(--c-ink); font: inherit; text-align: left; cursor: pointer; }
@media (min-width: 700px) { .tc-cell { min-height: 84px; padding: 7px 9px 22px; } }
.tc-empty { background: transparent; border-color: transparent; cursor: default; }
.tc-cell:hover { border-color: var(--c-ocean-line); }
.tc-cell.is-selected { box-shadow: 0 0 0 2px var(--c-ocean); border-color: var(--c-ocean); }
.tc-cell.is-today { background: var(--c-ocean); border-color: var(--c-ocean); color: #fffdf7; }
.tc-cell.is-today .tc-t, .tc-cell.is-today .tc-mo { color: var(--c-gold); }
.tc-cell.is-sacred:not(.is-today) { background: #fbf1d6; border-color: #e8cf8f; }
.tc-g { font-weight: 700; font-size: .92rem; line-height: 1.1; }
.tc-t { font-family: var(--font-tibetan); font-size: 1.05rem; color: var(--c-saffron); line-height: 1.5; }
.tc-mo { font-family: var(--font-tibetan); font-size: .66rem; color: var(--c-ocean-line); line-height: 1.2; }
.tc-flag { position: absolute; top: 4px; right: 4px; font-size: .62rem; font-weight: 700; padding: 0 4px; border-radius: 4px; line-height: 1.5; }
.tc-dbl { background: #e7eef4; color: var(--c-ocean-mid); }
.tc-skip { background: #f6e6e6; color: var(--c-maroon); }
.tc-dots { position: absolute; left: 6px; bottom: 5px; display: flex; gap: 3px; }
.tc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.tc-k-losar, .tc-k-duchen { background: #c99a2e; }
.tc-k-hh { background: var(--c-maroon); }
.tc-k-event { background: var(--flag-blue); }
.tc-k-practice { background: #7fa9be; }
.tc-cell.is-today .tc-dot { box-shadow: 0 0 0 1.5px #fffdf7; }
.tc-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; padding: 0; font-size: .8rem; color: var(--c-ink-soft); }
.tc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tc-legend .tc-flag { position: static; }
.tc-detail { margin-top: 14px; padding: 16px; border-radius: 10px; background: var(--c-paper-2); }
.tc-detail p { margin: 0 0 2px; }
.tc-d-date { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.tc-d-bo { font-family: var(--font-tibetan); color: var(--c-saffron); }
.tc-d-tib { font-size: .92rem; color: var(--c-ink-soft); }
.tc-d-items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.tc-d-items li { background: var(--c-surface); border-radius: 8px; padding: 10px 12px 10px 14px; box-shadow: inset 4px 0 0 currentColor; color: var(--c-ink); }
.tc-d-items li.tc-k-losar, .tc-d-items li.tc-k-duchen { box-shadow: inset 4px 0 0 #c99a2e; background: #fffdf7; }
.tc-d-items li.tc-k-hh { box-shadow: inset 4px 0 0 var(--c-maroon); background: #fffdf7; }
.tc-d-items li.tc-k-event { box-shadow: inset 4px 0 0 var(--flag-blue); background: #fffdf7; }
.tc-d-items li.tc-k-practice { box-shadow: inset 4px 0 0 #7fa9be; background: #fffdf7; }
.tc-d-items span, .tc-d-items strong { display: block; }
.tc-d-kind { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-soft); }
.tc-d-itbo { font-family: var(--font-tibetan); color: var(--c-saffron); }
.tc-d-items span:last-child { font-size: .88rem; color: var(--c-ink-soft); }

.tc-up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .tc-up-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-up { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 10px; padding: 12px 14px; }
.tc-up-date { text-align: center; border-radius: 8px; padding: 7px 4px; background: var(--c-paper); color: var(--c-ocean); line-height: 1.2; }
.tc-up-date b { display: block; font-family: var(--font-head); font-size: 1.3rem; }
.tc-up-date i { display: block; font-style: normal; font-size: .72rem; }
.tc-up-losar .tc-up-date, .tc-up-duchen .tc-up-date { background: var(--c-gold); }
.tc-up-hh .tc-up-date { background: var(--c-maroon); color: #fffdf7; }
.tc-up-event .tc-up-date { background: var(--c-ocean); color: #fffdf7; }
.tc-up-body { min-width: 0; }
.tc-up-body > span, .tc-up-body > a { display: block; }
.tc-up-bo { font-family: var(--font-tibetan); color: var(--c-saffron); line-height: 1.6; }
.tc-up-title { font-weight: 700; color: var(--c-ink); }
a.tc-up-title { color: var(--c-ocean); }
.tc-up-meta { font-size: .85rem; color: var(--c-ink-soft); }

.tc-sign, .tc-sub, .tc-about { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; }
.tc-sign-form label, .tc-copy label { display: block; font-weight: 600; margin-bottom: 6px; }
.tc-sign-row, .tc-copy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-sign-row input, .tc-copy-row input { flex: 1 1 200px; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--c-line); background: var(--c-paper); font: inherit; font-size: 16px; color: var(--c-ink); min-width: 0; }
.tc-sign-out { margin: 12px 0 0; font-size: 1.05rem; }
.tc-sign-out strong { font-family: var(--font-head); font-size: 1.5rem; display: block; }
.tc-sub { background: var(--c-ocean); color: #e8f0f2; border-color: var(--c-ocean); }
.tc-sub h2 { color: #fffdf7; }
.tc-sub p { color: var(--c-mist); }
.tc-sub-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.tc-sub .btn { background: var(--c-gold); color: var(--c-ocean); }
.tc-sub .btn:hover { background: #ecd197; }
.tc-sub .btn-outline { background: transparent; color: #fffdf7; border-color: #3e6e86; }
.tc-sub .btn-outline:hover { background: rgba(255,255,255,.08); color: #fffdf7; }
.tc-sub .tc-copy label { color: #fffdf7; }
.tc-sub .tc-copy-row input { background: var(--c-ocean-mid); border-color: var(--c-ocean-line); color: #e8f0f2; }
.tc-practice { margin-top: 14px; border-top: 1px solid var(--c-ocean-line); padding-top: 12px; }
.tc-practice summary { cursor: pointer; font-weight: 600; color: #fffdf7; min-height: 44px; display: flex; align-items: center; }
.tc-sub-note { font-size: .85rem; margin: 10px 0 0; }

.tc-today-mini { display: grid; gap: 2px; margin: 0 0 18px; padding: 14px 18px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); }
.tc-today-mini:hover { border-color: var(--c-ocean-line); color: var(--c-ink); }
.tc-mini-bo { font-family: var(--font-tibetan); color: var(--c-saffron); font-size: 1.1rem; }
.tc-mini-en { font-weight: 600; }
.tc-mini-go { font-size: .88rem; font-weight: 600; color: var(--c-maroon); }

/* Event submission form */
.tc-form { display: grid; gap: 14px; max-width: 760px; }
.tc-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.tc-field input, .tc-field select, .tc-field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid #d8cdb6; background: var(--c-surface); font: inherit; font-size: 16px; color: var(--c-ink); }
.tc-field textarea { min-height: 140px; }
.tc-two { display: grid; gap: 14px; }
@media (min-width: 640px) { .tc-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-hint { margin: -4px 0 0; font-size: .85rem; color: var(--c-ink-soft); }
.tc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tc-notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }
.tc-ok { background: #e6f2ea; color: #1f5133; }
.tc-err { background: #f6e6e6; color: var(--c-maroon); }

/* ==========================================================================
   16. Calendar year list & FAQ (v2.2)
   ========================================================================== */
.tc-intro { max-width: 760px; font-size: 1.08rem; color: var(--c-ink-soft); margin: 0 0 22px; }
.tc-year, .tc-faq { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; margin-top: 28px; }
.tc-year h2 + .tc-year-wrap { margin-bottom: 24px; }
.tc-year-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tc-year-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tc-year-table th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--c-line); }
.tc-year-table td { padding: 10px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.tc-year-table td:first-child { white-space: nowrap; font-weight: 700; color: var(--c-ocean); }
.tc-year-table td:last-child { color: var(--c-ink-soft); font-size: .88rem; }
.tc-year-table [lang="bo"] { display: block; font-family: var(--font-tibetan); color: var(--c-saffron); font-size: .95rem; }
.tc-year-table tr.tc-up-losar td:first-child, .tc-year-table tr.tc-up-duchen td:first-child { box-shadow: inset 4px 0 0 #c99a2e; }
.tc-year-table tr.tc-up-hh td:first-child { box-shadow: inset 4px 0 0 var(--c-maroon); }
@media (max-width: 560px) { .tc-year-table td:last-child, .tc-year-table th:last-child { display: none; } }
.tc-faq-item { border-top: 1px solid var(--c-line); }
.tc-faq-item:first-of-type { border-top: 0; }
.tc-faq-item summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; position: relative; min-height: 44px; }
.tc-faq-item summary::-webkit-details-marker { display: none; }
.tc-faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--c-saffron); }
.tc-faq-item[open] summary::after { content: "−"; }
.tc-faq-item h3 { display: inline; font-size: 1.15rem; margin: 0; }
.tc-faq-item p { margin: 0 0 16px; color: var(--c-ink-soft); }

.tc-year > h2:first-child, .tc-faq > h2:first-child { margin-top: 0; }
.tc-year h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }

/* Journey map v2.4: outline of Tibet’s three provinces */
.h-map-country text { font-size: 11px; fill: #5f7f8f; }
.h-map-name .en { font-family: var(--font-head); font-size: 46px; font-weight: 700; letter-spacing: 12px; fill: #ffffff; paint-order: stroke; stroke: #0a2130; stroke-width: 4px; }
.h-map-name .bo { font-family: var(--font-tibetan); font-size: 24px; font-weight: 700; fill: #ffffff; paint-order: stroke; stroke: #0a2130; stroke-width: 3px; }
.h-map-disclaimer { margin: 12px 0 18px; padding: 12px 16px; border-left: 3px solid var(--c-gold); background: rgba(255,255,255,.04); border-radius: 0 10px 10px 0; font-size: .9rem; line-height: 1.55; color: #cfe0e7; }

/* v2.6: read-more links and tables on guide pages */
.h-more { margin: 6px 0 0; font-weight: 600; }
.h-more a { color: var(--c-saffron); text-decoration: none; border-bottom: 1px solid currentColor; }
.h-ocean .h-more a { color: var(--c-gold); }
.dl-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dl-table th, .dl-table td { padding: 10px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.dl-table th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-soft); }
.dl-table td:first-child { font-weight: 700; color: var(--c-saffron); }
.dl-table { overflow-x: auto; }
h3.faq-q { font-size: 1.2rem; margin: 22px 0 6px; }

/* v2.6.1: keep desktop menu on one line */
@media (min-width: 960px) {
	.header-inner { gap: 20px; }
	.site-branding { flex: 1 1 auto; }
	.primary-nav { flex: 0 0 auto; }
	.primary-nav > ul { flex-wrap: nowrap; align-items: center; }
	.primary-nav > ul > li > a { white-space: nowrap; }
}
@media (min-width: 960px) {
	.primary-nav > ul { gap: 0; }
	.primary-nav > ul > li > a { padding: 8px 9px; font-size: .95rem; }
	.site-title { font-size: 1.1rem; }
}
@media (min-width: 960px) {
	.site-branding > div { min-width: 0; }
	.primary-nav > ul > li:last-child > .sub-menu, .primary-nav > ul > li:nth-last-child(2) > .sub-menu { left: auto; right: 0; }
}
@media (min-width: 960px) and (max-width: 1099px) {
	.site-title { font-size: .98rem; }
	.primary-nav > ul > li > a { padding: 8px 7px; }
}

/* v2.6.3: mobile menu panel fills the screen below the header (the header blur traps fixed children) */
@media (max-width: 959px) {
	.primary-nav, .admin-bar .primary-nav {
		position: absolute; inset: auto; top: 100%; left: 0; right: 0;
		height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
		overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
		padding-bottom: 60px;
	}
	.admin-bar .primary-nav { height: calc(100vh - var(--header-h) - 46px); height: calc(100dvh - var(--header-h) - 46px); }
}
/* v2.6.4: larger desktop menu where there is room */
@media (min-width: 1100px) {
	.primary-nav > ul > li > a { padding: 9px 10px; font-size: 1rem; }
}
@media (min-width: 1200px) {
	.primary-nav > ul { gap: 2px; }
	.primary-nav > ul > li > a { padding: 10px 12px; font-size: 1.08rem; }
	.site-title { font-size: 1.2rem; }
}
@media (min-width: 1200px) {
	.header-inner { max-width: 1300px; }
}

/* v2.7: footer in titled columns */
.footer-v2 { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-v2 { grid-template-columns: minmax(260px, 1fr) minmax(0, 2.4fr); gap: 56px; } }
.footer-brand p { margin: 0; }
.footer-blessing { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: #fffdf7; margin-top: 14px !important; line-height: 1.2; }
.footer-name { font-family: var(--font-head); font-size: 1.15rem; color: var(--c-gold); margin-top: 6px !important; }
.footer-about { margin-top: 10px !important; font-size: .95rem; color: var(--c-mist); max-width: 34ch; }
.footer-contact { margin-top: 18px !important; display: grid; gap: 2px; }
.footer-contact span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8fb0bf; }
.footer-contact a { font-weight: 600; word-break: break-all; }
.footer-cols-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer-cols-menu > li > a { display: inline-block; font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: #fffdf7; text-decoration: none; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--c-gold); }
.footer-cols-menu .sub-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols-menu .sub-menu a { color: #e6d3a6; text-decoration: none; font-size: .95rem; }
.footer-cols-menu .sub-menu a:hover, .footer-cols-menu > li > a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 559px) { .footer-cols-menu { grid-template-columns: 1fr 1fr; gap: 24px 18px; } }
.footer-widgets { margin-top: 28px; }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 8px; }
@media (min-width: 900px) { .footer-base { grid-template-columns: 1fr auto; align-items: center; gap: 24px; } }
.footer-disclaimer { margin: 0; font-size: .85rem; color: #a9c0cb; }
.footer-base .footer-bottom { margin: 0; font-size: .82rem; color: #8fb0bf; opacity: 1; }
.footer-base .footer-bottom a { color: #c9b07a; }

/* v2.7.1: events call-to-action */
.dlc-ev-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 0 0 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--c-ocean); color: #e8f0f2; }
.dlc-ev-cta-text { flex: 1 1 320px; font-size: 1rem; line-height: 1.5; }
.dlc-ev-cta-text strong { color: #fffdf7; font-family: var(--font-head); font-size: 1.25rem; display: block; }
.dlc-ev-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dlc-ev-cta .btn { background: var(--c-gold); color: var(--c-ocean); text-decoration: none; }
.dlc-ev-cta .btn-outline { background: transparent; color: #fffdf7; border: 1px solid #3e6e86; }
body .dlc-ev-cta { padding: 20px 24px !important; margin: 8px 0 28px !important; }
body .dlc-ev-cta .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px !important; border-radius: 999px; font-weight: 700; font-size: .98rem; line-height: 1.2; white-space: nowrap; }
body .dlc-ev-cta .dlc-ev-cta-text strong { margin-bottom: 4px; }
@media (max-width: 599px) { body .dlc-ev-cta .btn { flex: 1 1 100%; } }

/* v2.7.3: About page highlight */
.about-highlight { margin: 6px 0 30px; padding: 20px 22px 18px; border-radius: var(--radius); background: linear-gradient(135deg, #0e2a3b 0%, #173a4f 100%); color: #e8f0f2; border-left: 5px solid #c0392b; box-shadow: var(--shadow); }
.about-highlight p { margin: 0 0 8px; }
.about-highlight p:last-child { margin: 0; }
.about-highlight-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold); }
.about-highlight-title { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; line-height: 1.25; color: #fffdf7; }
.about-highlight a { color: var(--c-gold); font-weight: 600; }
#celebration { scroll-margin-top: 110px; }

/* v2.7.4: intro paragraphs span the full content width */
.entry-content .tc-intro, .tc-intro { max-width: none; }

/* v2.8: Teaching of the day */
.h-daily-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .h-daily-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 52px; } }
.h-daily-text .h-title { margin-bottom: 14px; }
.h-daily-vt { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; line-height: 1.2; color: var(--c-maroon); margin: 0 0 6px; }
.h-daily-meta { font-size: .9rem; color: var(--c-ink-soft); margin: 0 0 16px; }
.h-daily .h-lead { margin-bottom: 20px; }
.h-daily-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.h-daily-media { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--c-ocean); box-shadow: 0 22px 48px rgba(14, 42, 59, .28); outline: 1px solid rgba(201, 154, 46, .55); outline-offset: 7px; }
.h-daily-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.h-daily-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; display: block; }
.h-daily-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.h-daily-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 42, 59, .05) 35%, rgba(14, 42, 59, .7)); }
.h-daily-play:hover img { transform: scale(1.035); }
.h-daily-play:focus-visible { outline: 3px solid var(--c-gold); outline-offset: -3px; }
.h-daily-icon { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--c-gold); color: var(--c-ocean); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); transition: transform .2s ease; }
.h-daily-icon svg { margin-left: 4px; }
.h-daily-play:hover .h-daily-icon { transform: translate(-50%, -50%) scale(1.07); }
.h-daily-badge { position: absolute; left: 16px; bottom: 14px; z-index: 1; padding: 5px 12px; border-radius: 999px; background: rgba(14, 42, 59, .85); color: var(--c-gold); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 899px) { .h-daily-media { order: 2; } .h-daily-text { display: contents; } .h-daily-text > .h-daily-btns { order: 3; } .h-daily-text > * { order: 1; } .h-daily-grid { gap: 14px; } .h-daily-media { margin: 10px 0 16px; } }
@media (max-width: 899px) { .h-daily-text > .h-lead { order: 3; margin-bottom: 4px; } .h-daily-text > .h-daily-btns { order: 4; } .h-daily-media { margin: 6px 0 12px; } }
