html {scroll-padding-top:20px}
.ch-page {background-image:url("/assets/layout/paper-grain.webp");background-size:296px 120px}
.ch-page .ep-crumbs {margin-block:19px 17px}
.ep-page [hidden] {display:none!important}
.ch-page .ep-wrap {width:min(1280px,calc(100% - clamp(36px,8vw,140px)))}
.ch-banner {
  --channel:#573225;
  display:grid;grid-template-columns:1.35fr 1fr;
  background:var(--channel);color:#f8e6c5;min-height:245px;
  position:relative;isolation:isolate;overflow:hidden;
}
.ch-banner:before {
  content:"";position:absolute;inset:0;z-index:-1;
  background:url("/assets/layout/ruyi-clouds.svg") left center/250px 152px repeat;
  opacity:.15;pointer-events:none;
}
.ch-banner-copy {padding:32px clamp(24px,3.4vw,50px);align-self:center}
.ch-kicker {font:600 .82rem/1.6 var(--sans);letter-spacing:.12em;color:#9b4830}
.ch-banner .ch-kicker {color:#f0ce90}
.ch-banner h1 {font:700 clamp(42px,4.8vw,68px)/1.25 var(--serif);letter-spacing:.075em;margin:7px 0 13px}
.ch-introduction {font:400 clamp(16px,1.4vw,20px)/1.8 var(--prose);max-width:28em;color:#efe1ca}
.ch-banner figure {position:relative;align-self:stretch;overflow:hidden}
.ch-banner figure>img {width:100%;height:100%;max-height:285px;object-fit:cover}
.ch-banner figcaption {position:absolute;inset:auto 0 0;background:linear-gradient(transparent,#23180fdd);color:#fbefdc;font:12px/1.5 var(--sans);padding:22px 12px 8px}
.ch-banner .ch-source-links {display:block;font-size:12px}
.ch-banner .ch-source-links a {display:inline;margin:0 10px 0 0;padding:0;border:0}
.ch-banner .ch-source-links a:hover {color:#f4d9a5}
.ch-roots {--channel:#344036}.ch-lineage {--channel:#5b4028}.ch-wealth {--channel:#6c2b20}
.ch-art {--channel:#38271d}.ch-news {--channel:#352b23}.ch-temples {--channel:#304337}
.ch-temples figure {padding:25px;background:#ede2cd}
.ch-temples figure>img {object-fit:contain;mix-blend-mode:multiply}
.ch-temples figcaption {background:none;color:#594f3e;padding-top:5px}
.ch-objects {--channel:#6c4930}.ch-incense {--channel:#682a20}
.ch-local-nav {display:flex;gap:30px;align-items:center;border-bottom:1px solid #a98b68;margin-bottom:28px}
.ch-local-nav a {font:600 1rem/1.6 var(--serif);padding:13px 0 12px}
.ch-page :is(a,button):focus-visible {outline:2px solid var(--red);outline-offset:4px}
.ch-feature {display:grid;grid-template-columns:1.5fr 1fr;gap:clamp(26px,4.2vw,64px);padding:0 0 28px;border-bottom:1px solid #cdb89b;margin-bottom:27px}
.ch-feature>div {padding-block:8px}
.ch-feature h2 {font:700 clamp(26px,2.6vw,38px)/1.45 var(--serif);margin:8px 0 11px}
.ch-feature p:not(.ch-kicker) {font:400 1.05rem/1.9 var(--prose);color:#5d4b3b}
.ch-text-link {display:inline-block;font:600 .94rem/1.6 var(--serif);color:var(--red)!important;border-bottom:1px solid #a5624d;padding-bottom:2px;margin-top:13px}
.ch-reading-path {border-left:1px solid #bea17c;padding-left:clamp(22px,2.9vw,43px)}
.ch-reading-path h2 {font:700 1.35rem/1.5 var(--serif);margin:6px 0 10px}
.ch-reading-path ol {list-style:none;margin:0;padding:0}
.ch-reading-path li {border-top:1px solid #d6c5ad;padding:7px 0}
.ch-reading-path small {display:block;font:12px/1.5 var(--sans);color:#85654c;margin-bottom:2px}
.ch-reading-path a {font:600 1rem/1.6 var(--serif)}
.ch-section-head {display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:17px}
.ch-section-head h2,.ch-faq>h2,.ch-resources>h2,.ch-connections h2,.ch-explainer>h2,.ch-service-intro>h2 {
  font:700 clamp(24px,2.25vw,32px)/1.4 var(--serif);letter-spacing:.045em;
}
.ch-section-head>p {font:14px/1.6 var(--sans);color:#74604e}
.ch-topics {margin-bottom:35px}
.ch-topic-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:24px}
.ch-topic-grid article {border-top:3px double #8c5638;border-bottom:1px solid #d6c0a3;padding:12px 0 13px;display:flex;flex-direction:column}
.ch-topic-grid h3 {font:700 1.45rem/1.45 var(--serif);margin-bottom:7px}
.ch-topic-grid p {font:400 1rem/1.75 var(--prose);color:#6c5745;margin-bottom:15px}
.ch-topic-story {font:600 1rem/1.6 var(--serif);margin-top:auto}
.ch-topic-all {display:inline-block;font:13px/1.5 var(--sans);color:var(--red)!important;margin-top:8px;align-self:flex-start}
.ch-columns {display:grid;grid-template-columns:minmax(0,3fr) minmax(210px,1fr);gap:clamp(28px,4.7vw,72px);margin-bottom:35px}
.ch-columns>div {min-width:0}
.ch-rail {padding-top:3px}
.ch-resources {border-top:3px double #73503b;padding-top:13px}
.ch-resources>h2 {font-size:22px}
.ch-resources>p {font:14px/1.8 var(--sans);color:#675541;margin:7px 0 12px}
.ch-source-links a {display:block;font:14px/1.75 var(--prose);padding:10px 0;border-top:1px solid #d2bda0}
.ch-rail .ep-side {margin-top:29px}
.ch-archive {scroll-margin-top:20px}
.ch-archive>.ch-section-head {margin-bottom:10px}
.ch-filter-controls {border-block:1px solid #cbb596;padding:8px 0 13px}
.ch-filter-tabs {display:flex;gap:4px 18px;flex-wrap:wrap;margin-bottom:10px}
.ch-filter-tabs button {padding:7px 0 5px;border:0;border-bottom:2px solid transparent;background:none;font:600 14px/1.5 var(--serif);color:#68513c;cursor:pointer}
.ch-filter-tabs button[aria-pressed=true] {color:#8a3425;border-bottom-color:#8a3425}
.ch-filter-inputs {display:flex;gap:13px;align-items:end}
.ch-filter-inputs label:first-child {flex:1}
.ch-filter-controls label>span {display:block;font:13px/1.5 var(--sans);color:#735a43;margin-bottom:4px}
.ch-filter-controls input,.ch-filter-controls select {width:100%;border:1px solid #baa284;border-radius:0;background:#fffbf3;color:var(--ink);font:16px/1.4 var(--sans);height:39px;padding:6px 10px}
.ch-filter-controls select {padding-right:35px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23754a32' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:10px;background-position:right 11px center}
.ch-filter-controls button[data-filter-reset],.ch-empty button {border:1px solid #ab8a64;background:#f6ead8;padding:7px 15px;min-height:39px;color:#693d28;font:600 14px/1.4 var(--serif);cursor:pointer}
.ch-filter-status {font:13px/1.5 var(--sans);color:#765842;margin:9px 0 0}
.ch-filter-status:empty {display:none}
.ch-article-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:20px 0;border-bottom:1px solid #d3bea0;align-items:center}
.ch-entry-meta {display:flex;flex-wrap:wrap;gap:4px 12px;font:12px/1.6 var(--sans);color:#8a593b;margin-bottom:5px}
.ch-article-row h3 {font:700 clamp(22px,2vw,29px)/1.5 var(--serif);margin-bottom:6px}
.ch-article-row p {font:400 1rem/1.8 var(--prose);color:#5f4f3e}
.ch-article-image {display:block;width:118px;max-height:113px;overflow:hidden}
.ch-article-image img {width:100%;max-height:113px;object-fit:cover}
.ch-empty {text-align:center;padding:35px 15px;border-bottom:1px solid #d1bda0}
.ch-empty h3 {font:700 22px/1.5 var(--serif)}
.ch-empty p {font:16px/1.7 var(--prose);margin:8px 0 12px}
.ch-faq {margin-top:30px}
.ch-faq>h2 {margin-bottom:14px}
.ch-faq details {border-top:1px solid #c6ab8a}
.ch-faq details:last-child {border-bottom:1px solid #c6ab8a}
.ch-faq summary {position:relative;list-style:none;padding:15px 24px 15px 0;cursor:pointer;font:600 1.06rem/1.6 var(--serif)}
.ch-faq summary::-webkit-details-marker {display:none}
.ch-faq summary:after {content:"＋";position:absolute;right:0;top:15px;font:16px/1.6 var(--sans);color:#8a3e24}
.ch-faq details[open]>summary:after {content:"−"}
.ch-faq details>p {font:400 1rem/1.85 var(--prose);color:#5a4837;padding:0 10px 18px 0}
.ch-connections {border-top:3px double #9f7e58;padding-top:20px;margin-bottom:42px}
.ch-connections>div:last-child {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.ch-connections a {padding-bottom:10px;border-bottom:1px solid #cfb897}
.ch-connections small {display:block;font:12px/1.6 var(--sans);color:var(--red);margin-bottom:7px}
.ch-connections strong {font:700 1.15rem/1.6 var(--serif)}
.ch-connections a>p {font:16px/1.7 var(--prose);color:#6a5746;margin-top:7px}
.ch-regional-nav {display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.ch-regional-nav a {border:1px solid #c5aa85;padding:7px 13px;font:600 1rem/1.5 var(--serif)}
.ch-regional-nav span {margin-left:8px;font:13px/1.4 var(--sans);color:#776044}
.ch-regional-nav [aria-current] {background:#3a4739;color:#fff3d9;border-color:#3a4739}
.ch-regional-nav [aria-current]>span {color:#e1d4b8}
.ch-directory-search {display:flex;gap:12px;align-items:end;padding-bottom:13px;margin-bottom:10px}
.ch-directory-search label {flex:1}
.ch-temple-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 35px}
.ch-temple-card {display:flex;flex-direction:column;border-bottom:1px solid #c3a582;padding:17px 0 20px}
.ch-temple-card h2 {font:700 clamp(24px,2.2vw,32px)/1.4 var(--serif);margin:6px 0 9px}
.ch-temple-card>p:not(.ch-kicker) {font:16px/1.8 var(--prose);color:#5a4937}
.ch-temple-card dl {display:grid;grid-template-columns:84px 1fr;gap:9px 14px;font:14px/1.8 var(--prose);margin:15px 0}
.ch-temple-card dt {color:#7a5b40}
.ch-temple-card dd {margin:0}
.ch-temple-bottom {display:flex;gap:20px;align-items:center;margin-top:auto;font:600 14px/1.5 var(--serif);color:var(--red)}
.ch-comparison {margin:34px 0 37px}
.ch-table-scroll {overflow-x:auto}
.ch-comparison table {width:100%;border-collapse:collapse;font:16px/1.75 var(--prose)}
.ch-comparison th,.ch-comparison td {text-align:left;padding:12px 15px;border-bottom:1px solid #cbb292}
.ch-comparison th {font-weight:600}
.ch-comparison thead {background:#eadfc9}
.ch-comparison tbody th {width:32%}
.ch-comparison td:nth-child(2) {width:20%}
.ch-commerce-wrap {padding-top:28px;margin-bottom:38px}
.ch-commerce :is(.ch-explainer,.ch-service-intro) {margin:0 0 29px}
.ch-explainer>p,.ch-service-intro>p {font:16px/1.9 var(--prose);max-width:58em;color:#5b4b3b;margin-top:10px}
.ch-product-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-bottom:35px}
.ch-product-card {border-bottom:1px solid #c4a77f;padding-bottom:15px}
.ch-product-card img {width:100%;aspect-ratio:1.4;object-fit:cover}
.ch-product-card small {display:block;font:13px/1.6 var(--sans);color:var(--red);margin:9px 0 4px}
.ch-product-card h3 {font:700 1.35rem/1.5 var(--serif);margin-bottom:6px}
.ch-product-card p {font:16px/1.7 var(--prose);color:#68523f}
.ch-commerce .ch-faq {max-width:860px}
.ch-step-list {list-style:none;counter-reset:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.ch-step-list li {padding:13px 0;border-block:1px solid #c9ae88}
.ch-step-list h3 {font:700 1.35rem/1.6 var(--serif)}
.ch-step-list p {font:16px/1.8 var(--prose);color:#61503e;margin-top:8px}
.ep-toc {border-block:1px solid #c6ad8c;padding:12px 0;margin-bottom:26px}
.ep-toc h2 {font:700 21px/1.5 var(--serif);margin-bottom:10px}
.ep-toc a {display:block;font:15px/1.65 var(--prose);padding:6px 0}
.ep-reading-end {clear:both;display:flex;justify-content:space-between;gap:15px;border-top:1px solid #b69d7f;margin-top:35px;padding-top:15px;font:600 15px/1.6 var(--serif);color:var(--red)}
.ep-temple-profile {clear:both;padding:20px 0;margin-bottom:25px;border-block:1px solid #c4ad8b}
.ep-temple-profile h2 {font:700 25px/1.5 var(--serif);margin-bottom:14px}
.ep-temple-profile dl {display:grid;grid-template-columns:95px 1fr;gap:10px 15px;margin:0;font:16px/1.9 var(--prose)}
.ep-temple-profile dt {color:#77573d}
.ep-temple-profile dd {margin:0}
.ep-temple-profile dd>a {font:13px/1.5 var(--sans);color:var(--red);text-decoration:underline}
@media(max-width:1000px) {
  .ch-banner {min-height:215px}
  .ch-banner-copy {padding:25px}
  .ch-banner h1 {font-size:46px}
  .ch-columns {grid-template-columns:minmax(0,1fr) 220px;gap:28px}
  .ch-topic-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .ch-temple-grid {gap:20px 28px}
  .ch-article-image {width:95px}
  .ch-product-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px) {
  .ch-banner {grid-template-columns:1fr 36%;min-height:200px}
  .ch-banner-copy {padding:23px 20px}
  .ch-banner h1 {font-size:38px}
  .ch-introduction {font-size:16px}
  .ch-banner figcaption {font-size:11px}
  .ch-local-nav {gap:21px;margin-bottom:23px;overflow-x:auto}
  .ch-local-nav a {font-size:14px;white-space:nowrap}
  .ch-feature {grid-template-columns:1fr;gap:20px;padding-bottom:22px}
  .ch-reading-path {padding-left:18px}
  .ch-feature h2 {font-size:28px}
  .ch-reading-path h2 {font-size:21px}
  .ch-columns {display:block}
  .ch-rail {margin-top:27px;display:grid;grid-template-columns:1fr 1fr;gap:25px}
  .ch-rail .ep-side {margin-top:0}
  .ch-section-head {align-items:flex-start}
  .ch-section-head h2 {font-size:25px}
  .ch-section-head>p {font-size:13px}
  .ch-topics {margin-bottom:25px}
  .ch-topic-grid {gap:19px}
  .ch-topic-grid h3 {font-size:22px}
  .ch-connections>div:last-child {grid-template-columns:1fr}
  .ch-connections a {padding-bottom:15px}
  .ch-temple-grid {grid-template-columns:1fr}
  .ch-comparison table {min-width:610px}
  .ch-step-list {grid-template-columns:repeat(2,1fr)}
}
@media(max-width:480px) {
  .ch-page .ep-wrap {width:calc(100% - 32px)}
  .ch-banner {display:block;min-height:0}
  .ch-banner-copy {padding:23px 20px 20px;position:relative;z-index:1;background:linear-gradient(90deg,var(--channel),transparent)}
  .ch-banner figure {height:115px}
  .ch-banner figure>img {height:115px;object-position:center 45%}
  .ch-banner h1 {font-size:38px;letter-spacing:.06em}
  .ch-kicker {font-size:12px}
  .ch-introduction {font-size:16px;line-height:1.7}
  .ch-local-nav {gap:20px}
  .ch-feature h2 {font-size:27px}
  .ch-feature p:not(.ch-kicker) {font-size:16px}
  .ch-topic-grid {grid-template-columns:1fr 1fr;gap:17px}
  .ch-topic-grid h3 {font-size:21px}
  .ch-topic-grid p,.ch-topic-story {font-size:16px}
  .ch-filter-tabs {gap:4px 15px}
  .ch-filter-tabs button {font-size:14px}
  .ch-filter-inputs {flex-wrap:wrap;gap:9px}
  .ch-filter-inputs label:first-child {min-width:100%}
  .ch-filter-inputs label:has(select) {flex:1}
  .ch-filter-inputs button {margin-left:auto}
  .ch-article-row {padding-block:17px;gap:12px}
  .ch-article-row h3 {font-size:22px;line-height:1.55}
  .ch-article-row p {font-size:16px}
  .ch-article-image {width:78px}
  .ch-entry-meta {font-size:12px}
  .ch-rail {display:block}
  .ch-rail .ep-side {margin-top:25px}
  .ch-regional-nav {gap:7px}
  .ch-regional-nav a {padding:6px 10px;font-size:14px}
  .ch-directory-search input {min-width:0}
  .ch-temple-card h2 {font-size:27px}
  .ch-temple-card dl {grid-template-columns:73px 1fr;gap:9px 10px}
  .ch-temples figure {padding:0 20px}
  .ch-temples figure>img {object-fit:contain}
  .ch-product-grid {gap:23px 16px}
  .ch-product-card h3 {font-size:20px}
  .ch-product-card p {font-size:16px}
  .ch-step-list {grid-template-columns:1fr}
  .ep-temple-profile dl {grid-template-columns:76px 1fr}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* A channel opens with an actual chapter, followed by its reading index. */
.ch-guide{display:grid;grid-template-columns:minmax(180px,.72fr) minmax(0,2fr);gap:clamp(28px,5vw,76px);padding:8px 0 38px;margin:0 0 38px;border-bottom:1px solid var(--rule)}
.ch-guide-heading{border-top:3px double #ad8c65;padding-top:17px}
.ch-guide-heading h2{font:700 clamp(26px,2.6vw,34px)/1.55 var(--serif);letter-spacing:.04em;margin-top:12px;text-wrap:balance}
.ch-guide .ep-prose{width:100%;max-width:none;font-size:18px;line-height:1.95;min-width:0}
.ch-guide .ep-prose h2{font-size:25px}
.ch-guide .ep-prose>h2:first-child{margin-top:0}
.ch-guide .ep-prose blockquote{font-size:19px}
.ch-commerce-wrap{min-width:0}
.ch-commerce-wrap .article-table{max-width:100%}
.ch-commerce :is(.ch-service-intro,.ch-explainer){max-width:940px}
.ch-commerce :is(.ch-explainer,.ch-service-intro)>p{font-size:18px;line-height:1.95}
.ch-explainer :is(ol,ul,dl){font:400 18px/1.95 var(--prose);color:#4a3c30;margin:15px 0 0}
.ch-explainer :is(ol,ul){padding-left:1.5em}
.ch-explainer li{margin:.5em 0;padding-left:.15em}
.ch-explainer dt{font-weight:700;color:#593b29;margin:.8em 0 .1em}
.ch-explainer dd{margin:0}
.ch-explainer .article-callout p{font:400 17px/1.9 var(--prose);margin:.5em 0}
.ch-explainer a:not(.ch-product-card){color:var(--red);text-decoration:underline;text-underline-offset:.2em}
.ch-product-card>span{display:inline-block;margin-top:12px;font:600 14px/1.7 var(--serif);color:var(--red)}
@media(max-width:850px){
 .ch-guide{grid-template-columns:1fr;gap:23px;padding-bottom:26px;margin-bottom:28px}
 .ch-guide-heading h2{font-size:28px;text-wrap:pretty;margin-top:8px}
 .ch-guide .ep-prose{font-size:17px}
 .ch-guide .ep-prose h2{font-size:23px}
 .ch-commerce :is(.ch-explainer,.ch-service-intro)>p,.ch-explainer :is(ol,ul,dl){font-size:17px}
}

/* Visit directory: a visible ancestral recommendation and practical temple records. */
.td-heading{display:flex;align-items:end;justify-content:space-between;gap:32px;margin:12px 0 24px;padding-bottom:20px;border-bottom:1px solid #c8b294}
.td-heading h1{font:700 clamp(34px,4vw,48px)/1.25 var(--serif);margin-top:7px}
.td-heading>p{max-width:540px;font:17px/1.9 var(--prose);color:#67503b}
.td-ancestor{display:grid;grid-template-columns:1.05fr 1fr;background:#e9ddc8;border:1px solid #bda17a;margin-bottom:38px}
.td-ancestor-photo{position:relative;display:block;overflow:hidden;min-height:305px}
.td-ancestor-photo img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center 55%}
.td-ancestor-photo>span{position:absolute;bottom:0;left:0;right:0;padding:18px 18px 12px;background:linear-gradient(transparent,#1e180ed9);color:#fff4de;font:14px/1.5 var(--sans)}
.td-ancestor-copy{padding:28px 32px;background:linear-gradient(115deg,#f1e8d8,#e5d3b7)}
.td-ancestor-copy h2{font:700 clamp(26px,3vw,37px)/1.45 var(--serif);margin:9px 0}
.td-ancestor-copy>p:not(.ch-kicker){font:17px/1.9 var(--prose);color:#4f3a25}
.td-ancestor-copy>.td-ancestor-address{font-size:16px!important;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #c9ad88}
.td-ancestor-actions,.ep-visit-actions{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:22px;align-items:center;font:600 16px/1.6 var(--serif)}
.td-ancestor-actions a:first-child{padding:10px 17px;background:#84362d;color:#fff4da}
.td-ancestor-actions a:last-child{padding:10px 0;color:#773327}
.td-directory .ch-temple-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.td-directory .td-card{padding:0;border:1px solid #d7c3a7;background:#faf5e9;min-width:0}
.td-card-photo{position:relative;display:block;height:190px;overflow:hidden}
.td-card-photo img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.td-card-photo:hover img{transform:scale(1.025)}
.td-card-photo>span{position:absolute;bottom:10px;left:12px;background:#201c16db;color:#fff2d7;padding:4px 9px;font:14px/1.5 var(--sans)}
.td-card-copy{padding:20px;display:flex;flex-direction:column;flex:1;min-width:0}
.td-card-copy>p:not(.ch-kicker){font:16px/1.85 var(--prose);color:#66503d}
.td-card-copy>.ch-kicker{font-size:14px}
.td-card-copy h2{font-size:25px;line-height:1.45}
.td-card-copy dl{grid-template-columns:65px minmax(0,1fr);font-size:15px;line-height:1.8;gap:8px 12px;margin:16px 0 20px}
.td-card-copy dd{overflow-wrap:anywhere}
.td-card-copy .ch-temple-bottom{font-size:16px;margin-top:auto;border-top:1px solid #dfcdb3;padding-top:12px}
.td-card-text{border-top:4px solid #84362d!important;background:linear-gradient(140deg,#eee1c9,#faf5e9)!important}
.td-before-visit{margin:45px 0 26px;border-block:1px solid #c3a582;padding:25px 0}
.td-before-visit>h2{font:700 29px/1.4 var(--serif);margin-bottom:18px}
.td-before-visit>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}
.td-before-visit h3{font:700 20px/1.5 var(--serif);margin-bottom:7px}
.td-before-visit p{font:16px/1.9 var(--prose);color:#65513f}
.td-photo-credits{font:14px/1.8 var(--sans);margin:22px 0 42px;color:#70604e}
.td-photo-credits summary{cursor:pointer;font:600 16px/1.7 var(--serif)}
.td-photo-credits ul{columns:2;padding-left:20px;margin:12px 0}
.td-photo-credits li{break-inside:avoid;padding:4px 0}
.td-photo-credits a,.ep-photo-attribution a{text-decoration:underline;text-underline-offset:3px}
.ep-temple-page .ep-title{margin-bottom:26px}
.ep-temple-overview{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:26px;align-items:start;clear:both;margin-bottom:30px}
.ep-story .ep-temple-overview .ep-image{float:none;width:100%;max-width:none;margin:0;display:block}
.ep-temple-overview .ep-visit-photo img{width:100%;max-width:none;max-height:370px;height:auto;object-fit:contain}
.ep-temple-overview .ep-visit-photo figcaption{font:14px/1.7 var(--sans);padding-top:8px}
.ep-temple-overview .ep-temple-profile{padding:0;border:0;margin:0}
.ep-temple-overview .ep-temple-profile h2{font-size:26px;margin-bottom:13px}
.ep-temple-overview .ep-temple-profile dl{grid-template-columns:75px minmax(0,1fr);font-size:16px;line-height:1.85;gap:11px 16px}
.ep-temple-overview .ep-temple-profile dd{overflow-wrap:anywhere}
.ep-visit-actions a{border-bottom:1px solid #aa6f51;padding:4px 0;color:#813d30}
.ep-visit-photo-link{padding:30px 24px;background:#eaddc5;border-top:3px solid #a85c42;min-height:240px}
.ep-visit-photo-link h2{font:700 28px/1.5 var(--serif);margin:8px 0 13px}
.ep-visit-photo-link p{font:16px/1.9 var(--prose)}
.ep-visit-photo-link>a{display:inline-block;font:600 16px/1.7 var(--serif);margin-top:18px;text-decoration:underline;color:#84362d}
.ep-photo-attribution{font:14px/1.9 var(--sans);margin-top:15px!important}
@media(max-width:1100px){
 .td-directory .ch-temple-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .td-ancestor-copy{padding:24px}
 .ep-temple-overview{grid-template-columns:1fr}
 .ep-temple-overview .ep-visit-photo img{max-height:420px;width:100%;object-fit:contain;object-position:left}
}
@media(max-width:650px){
 .td-heading{display:block;margin:8px 0 18px;padding-bottom:17px}
 .td-heading h1{font-size:35px}
 .td-heading>p{margin-top:12px;font-size:16px}
 .td-ancestor{display:flex;flex-direction:column;margin-bottom:27px}
 .td-ancestor-photo{min-height:190px;height:190px}
 .td-ancestor-copy{padding:20px}
 .td-ancestor-copy h2{font-size:27px}
 .td-ancestor-copy>p:not(.ch-kicker){font-size:16px}
 .td-ancestor-actions{margin-top:18px}
 .td-directory .ch-temple-grid{grid-template-columns:1fr;gap:22px}
 .td-card-photo{height:210px}
 .td-card-copy{padding:18px}
 .td-before-visit>div{grid-template-columns:1fr;gap:22px}
 .td-photo-credits ul{columns:1}
 .ep-temple-overview{gap:22px}
 .ep-temple-overview .ep-temple-profile dl{grid-template-columns:72px minmax(0,1fr);gap:10px 12px}
 .ep-temple-overview .ep-visit-photo img{max-height:360px;object-position:center}
 .ep-temple-overview .ep-visit-photo figcaption{margin-top:0}
}
@media(prefers-reduced-motion:reduce){.td-card-photo img{transition:none}}

/* A single quiet credit page keeps reading pages focused on their subject. */
.ep-credits { max-width: 1040px; margin-inline: auto; }
.credit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.8rem; margin-block: 1.5rem 3rem; }
.credit-item { border-top: 1px solid #cdbb9f; padding-top: 1rem; min-width: 0; }
.credit-item img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.ep-prose .credit-item h3 { font-size: 1.15rem; margin: .7rem 0 .35rem; }
.ep-prose .credit-item p { font-size: .9rem; line-height: 1.65; margin: .35rem 0; overflow-wrap: anywhere; }
@media(max-width: 800px) { .credit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 520px) { .credit-grid { grid-template-columns: 1fr; } }

/* Dates are a primary reading cue in the news channel. */
.ch-theme-news .ch-entry-meta {font-size:14px}
