/*
Theme Name: Tour of Temples Heritage
Theme URI: https://touroftemples.com/
Author: Tour of Temples
Description: Full-width heritage visual theme for the TourOfTemples Platform plugin. Does not modify temple data.
Version: 2.2.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: tour-of-temples-heritage
*/
:root{--toth-ink:#15283b;--toth-forest:#063c31;--toth-gold:#c28a32;--toth-cream:#faf6ee;--toth-line:#e8dcc8}*{box-sizing:border-box}html{scroll-behavior:smooth}body.toth-heritage{margin:0!important;background:#fffaf4;color:#20252b;font-family:'DM Sans',Arial,sans-serif;font-size:15px;line-height:1.55;overflow-x:hidden}body.toth-heritage :is(h1,h2,h3,h4){font-family:'Playfair Display',Georgia,serif;line-height:1.13;letter-spacing:-.025em}body.toth-heritage a{text-decoration:none}body.toth-heritage img{max-width:100%}.toth-wrap{width:min(1460px,calc(100% - 64px));margin-inline:auto}.toth-skip{position:absolute;left:-999px;top:10px;background:#fff;padding:12px;z-index:100}.toth-skip:focus{left:12px}.toth-header{background:#fffdf9;border-bottom:1px solid #efe6d8;position:relative;z-index:20}.toth-header-inner{max-width:1530px;padding:9px 30px;margin:auto;display:flex;align-items:center;gap:25px;min-height:76px}.toth-brand{display:flex;align-items:center;gap:12px;color:#172539!important;flex-shrink:0}.toth-brand img{height:57px;width:57px;object-fit:contain}.toth-brand strong{font:700 clamp(21px,2.1vw,31px)/1.1 'Playfair Display',Georgia,serif;display:block}.toth-brand small{font-size:8px;letter-spacing:.15em;display:block;margin-top:5px;color:#444}.toth-nav{display:flex;align-items:center;justify-content:center;gap:clamp(9px,1.4vw,23px);flex:1}.toth-nav a{color:#1c2430!important;font-size:12px;font-weight:600;white-space:nowrap}.toth-nav a:hover,.toth-footer a:hover{color:var(--toth-gold)!important}.toth-account{display:flex;gap:9px;white-space:nowrap}.toth-account a{padding:9px 17px;border-radius:22px;font-size:12px;font-weight:700}.toth-signin{border:1px solid #cdbb9e;color:#1c2430!important}.toth-register{background:var(--toth-gold);color:white!important}.toth-mobile{display:none}.toth-hero{min-height:405px;position:relative;background-image:url('assets/hero-lucknow.jpeg');background-size:cover;background-position:center 49%;color:#fff}.toth-hero-overlay{min-height:405px;background:linear-gradient(90deg,rgba(2,23,40,.93) 0%,rgba(3,31,47,.81) 25%,rgba(7,34,47,.32) 56%,rgba(7,28,38,.06) 100%);display:flex;align-items:center}.toth-hero-content{padding:40px 0 45px}.toth-eyebrow{font-size:11px;letter-spacing:.19em;color:var(--toth-gold);font-weight:700;margin:0 0 13px}.toth-hero h1{font-size:clamp(42px,4.8vw,69px);max-width:700px;color:#fff;margin:0 0 16px;font-weight:600}.toth-hero-sub{max-width:495px;font-size:16px;line-height:1.55;margin:0 0 18px}.toth-search{display:flex;align-items:center;background:#fff;padding:5px 5px 5px 16px;border-radius:35px;width:min(560px,100%);box-shadow:0 5px 24px #0003}.toth-search input{flex:1;min-width:0;border:0!important;box-shadow:none!important;background:transparent!important;color:#252525!important;font-size:13px;padding:9px 10px;outline:0}.toth-search button,.toth-button{background:linear-gradient(110deg,#bd8230,#e7bb63);border:0;border-radius:24px;padding:11px 29px;color:#161b19!important;font-size:13px;font-weight:700;cursor:pointer}.toth-popular{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:15px;font-size:12px}.toth-popular a{color:white!important;border:1px solid #ffffff7a;border-radius:20px;padding:4px 13px}.toth-popular a:hover{background:#ffffff2e}.toth-photo-credit{position:absolute;bottom:14px;right:24px;font-size:10px;background:#071d27ad;padding:5px 10px;border-radius:5px;color:#fff}.toth-shortcuts{background:#fbf6ed;border-bottom:1px solid #ebddc9}.toth-shortcuts-inner{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding-block:20px}.toth-shortcuts a{text-align:center;padding:4px 9px;border-right:1px solid #e7d9c5;color:#20252b!important}.toth-shortcuts a:last-child{border:0}.toth-shortcuts span{font-size:30px;color:#b67b2a;display:block;line-height:1.2;margin-bottom:7px}.toth-shortcuts strong{font:600 16px/1.2 'Playfair Display',Georgia,serif;display:block}.toth-shortcuts small{display:block;font-size:10px;margin-top:5px;color:#61594e}.toth-section{padding-block:33px 39px}.toth-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.toth-section-head h2,.toth-explore-grid h2,.toth-community h2{font-size:clamp(28px,2.6vw,38px);margin:0 0 5px}.toth-section-head p:not(.toth-eyebrow){margin:0;color:#5f625f;font-size:13px}.toth-link{font-size:13px;color:#744516!important;font-weight:700;white-space:nowrap}.toth-temple-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.toth-temple{position:relative;display:block;height:230px;border-radius:9px;overflow:hidden;background:linear-gradient(145deg,#35584d,#122f36);box-shadow:0 4px 14px #10101014;color:#fff!important}.toth-temple>img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.toth-temple:hover>img{transform:scale(1.05)}.toth-temple-noimage{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#e7d6af}.toth-temple-mark{font-size:70px;line-height:1}.toth-temple-noimage small{font-size:11px}.toth-temple-info{position:absolute;bottom:0;left:0;right:0;padding:40px 15px 15px;background:linear-gradient(0deg,#091b20f5,#091b2080 65%,transparent);display:block}.toth-temple-info strong{display:block;font:600 17px/1.2 'Playfair Display',Georgia,serif}.toth-temple-info small{color:#f2c877;font-size:11px}.toth-temple-summary{font-size:11px;line-height:1.4;display:block;max-height:0;opacity:0;overflow:hidden;transition:max-height .25s,opacity .25s}.toth-temple:hover .toth-temple-summary,.toth-temple:focus .toth-temple-summary{max-height:90px;opacity:1;margin-top:6px}.toth-explore-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}.toth-explore-grid>div{min-height:265px;border-radius:10px;padding:27px 28px}.toth-explore-panel{background:radial-gradient(circle at 90% 10%,#e5d0aa,transparent 55%),#f3e9d7}.toth-explore-panel p,.toth-story-panel p{max-width:300px}.toth-explore-panel .toth-button{display:inline-block;background:var(--toth-forest);color:#fff!important;margin-top:15px}.toth-count-panel{background:linear-gradient(155deg,#063e36,#10282d);color:white;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.toth-count-panel h2{font-size:64px;color:#f4c86e}.toth-count-panel p{margin:0}.toth-count-panel .toth-muted{margin-top:18px;font-size:12px;color:#d7d6c9}.toth-story-panel{background:linear-gradient(135deg,#6a391c,#2e1e1a);color:#fff}.toth-story-panel .toth-text-link{color:#ffdc91!important;font-weight:700}.toth-circuits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.toth-circuit{border:1px solid #eadac1;background:#fffdf9;min-height:155px;padding:22px;border-radius:10px;display:flex;flex-direction:column;color:#20252b!important}.toth-circuit-symbol{font-size:35px;color:#ba8137}.toth-circuit strong{font:600 18px 'Playfair Display',Georgia,serif}.toth-circuit>span:last-child{margin-top:auto;font-size:12px;color:#865518}.toth-news-section{background:#f5eddf;padding:35px 0}.toth-news-section .tot29-news-grid{margin-top:15px}.toth-community{background:linear-gradient(100deg,#142d2a,#665039);color:#fff;padding:45px 0}.toth-community h2{font-size:36px}.toth-community p:not(.toth-eyebrow){max-width:620px}.toth-button-gold{display:inline-block;margin-top:15px}.toth-footer{background:#0e272a;color:#e4e5dc;padding:35px 0 0}.toth-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:55px}.toth-footer h3{font-size:25px;margin:0 0 10px;color:#fff}.toth-footer h4{font:700 15px 'DM Sans',sans-serif;color:#e9c485;margin:0 0 12px}.toth-footer p{max-width:450px;color:#d2d4ce;font-size:13px}.toth-footer a{display:block;color:#e4e5dc!important;font-size:13px;margin-bottom:8px}.toth-footer-bottom{border-top:1px solid #ffffff2a;text-align:center;padding:13px;margin-top:30px;font-size:11px;color:#b6bdb9}.toth-page{min-height:55vh;padding:35px 0 55px}.toth-page-heading{margin-bottom:25px}.toth-page-heading h1,.toth-article h1{font-size:clamp(32px,4vw,52px);margin:0}.toth-page-body{width:100%;max-width:none}.toth-page-body :is(.tot27-directory,.tot27-detail,.tot28-news,.tot29-news){max-width:none;width:100%;margin:0 auto}.toth-page-body :is(.tot27-grid){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.toth-page-body .tot27-card{min-width:0}.toth-page-body img{height:auto}.toth-list-article{border-bottom:1px solid var(--toth-line);padding:20px 0}.toth-list-article a{color:var(--toth-ink)!important}.toth-article{max-width:950px}.toth-article>img{max-height:460px;object-fit:cover;width:100%;border-radius:12px;margin:25px 0}.toth-muted{color:#69726f}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden}
@media(max-width:1250px){.toth-nav{gap:10px}.toth-nav a{font-size:11px}.toth-brand strong{font-size:23px}.toth-brand small{font-size:7px}.toth-account a{padding:8px 11px}}@media(max-width:1020px){.toth-nav,.toth-account{display:none}.toth-mobile{display:block;margin-left:auto;position:relative}.toth-mobile summary{cursor:pointer;font-weight:700;padding:9px;border:1px solid #e5d7c4;border-radius:8px;list-style:none}.toth-mobile nav{position:absolute;right:0;top:44px;background:#fff;width:230px;box-shadow:0 8px 30px #0002;padding:15px;border-radius:10px}.toth-mobile nav a{display:block;padding:8px;color:#1a2828!important}.toth-shortcuts-inner{grid-template-columns:repeat(3,1fr);row-gap:15px}.toth-temple-grid,.toth-circuits,.toth-page-body .tot27-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.toth-explore-grid{grid-template-columns:1fr 1fr}.toth-story-panel{grid-column:1/-1}}@media(max-width:640px){.toth-wrap{width:calc(100% - 30px)}.toth-header-inner{padding:8px 14px;min-height:66px}.toth-brand img{height:47px;width:47px}.toth-brand strong{font-size:20px}.toth-brand small{font-size:6px}.toth-hero,.toth-hero-overlay{min-height:420px}.toth-hero{background-position:62% center}.toth-hero-overlay{background:linear-gradient(90deg,#061b2ee8,#061b2e96 65%,#061b2e42)}.toth-hero-content{padding:35px 0 50px}.toth-hero h1{font-size:42px}.toth-hero-sub{font-size:14px}.toth-photo-credit{font-size:9px;right:10px}.toth-shortcuts-inner{grid-template-columns:repeat(3,1fr);padding-block:14px}.toth-shortcuts a{padding:8px 4px}.toth-shortcuts strong{font-size:13px}.toth-shortcuts small{font-size:9px}.toth-shortcuts span{font-size:23px}.toth-section-head{align-items:start}.toth-section-head h2{font-size:29px}.toth-temple-grid,.toth-page-body .tot27-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.toth-temple{height:195px}.toth-temple-info{padding:25px 10px 10px}.toth-temple-info strong{font-size:14px}.toth-explore-grid{grid-template-columns:1fr}.toth-explore-grid>div{min-height:205px}.toth-story-panel{grid-column:auto}.toth-circuits{grid-template-columns:repeat(2,minmax(0,1fr))}.toth-footer-grid{grid-template-columns:1fr 1fr;gap:25px}.toth-footer-grid>div:first-child{grid-column:1/-1}.toth-page{padding:25px 0}.toth-search button{padding:11px 19px}}

/* TourOfTemples community and policy pages */
.tot30-form{max-width:780px;margin:32px auto;padding:30px;background:#fffdf8;border:1px solid #e7dfcf;border-radius:14px;box-shadow:0 12px 36px #183c3510}.tot30-form label{display:block;margin:16px 0;font-weight:600;color:#1e3a39}.tot30-form input:not([type=checkbox]),.tot30-form select,.tot30-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #cfc8ba;border-radius:6px;padding:12px;background:white;font:inherit}.tot30-form input[type=file]{padding:12px}.tot30-form button,.tot30-button{display:inline-block;border:0;border-radius:6px;padding:13px 24px;background:#b7873f;color:#fff;font-weight:700;cursor:pointer}.tot30-notice{padding:15px 18px;background:#f6eddb;border-left:4px solid #b7873f;border-radius:4px}.tot30-gallery{max-width:1200px;margin:35px auto;padding:20px}.tot30-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tot30-gallery-grid figure{margin:0}.tot30-gallery-grid img{width:100%;height:230px;object-fit:cover;border-radius:10px}.tot30-space table{width:100%;border-collapse:collapse}.tot30-space td,.tot30-space th{padding:10px;border-bottom:1px solid #ded7ca;text-align:left}.toth-page-body{overflow-wrap:anywhere}.toth-page-body h2{font-family:Georgia,serif;margin-top:30px}.toth-page-body p{line-height:1.8}@media(max-width:700px){.tot30-form{padding:18px}.tot30-gallery-grid{grid-template-columns:repeat(2,1fr)}.tot30-gallery-grid img{height:150px}}

/* v1.4 homepage refinements */
.toth-shortcuts{padding-top:22px}.toth-shortcuts>.toth-wrap:first-child h2{font-size:clamp(23px,2.4vw,34px);margin:4px 0 10px}.toth-circuit small{color:#5b625f;line-height:1.5;margin:10px 0 16px;display:block}.toth-circuit:hover,.toth-shortcuts a:hover{box-shadow:0 8px 25px #00000014;transform:translateY(-2px)}.toth-circuit,.toth-shortcuts a{transition:transform .2s,box-shadow .2s}.toth-home-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.toth-home-news-card{background:#fff;border:1px solid #e9dcc8;padding:16px;border-radius:12px}.toth-home-news-card img{width:100%;height:170px;object-fit:cover;border-radius:8px}.toth-home-news-card h3{font-size:18px}.toth-home-news-card p{font-size:13px;color:#5e6662}@media(max-width:700px){.toth-home-news-grid{grid-template-columns:1fr}}

/* 1.5: photo previews for circuit member temples */
.toth-circuit-symbol img{display:block;width:100%;height:100%;min-height:90px;object-fit:cover;border-radius:10px}.toth-circuit:has(img) .toth-circuit-symbol{display:block;min-height:90px;width:100%;height:110px}.toth-home-news-card h3{line-height:1.4}.toth-temple-summary{display:block;margin-top:.5rem}

/* 1.6: full-width journey and accessible search history */
.toth-shortcuts{padding:42px 0 50px}.toth-shortcuts>.toth-wrap:first-child{text-align:center;max-width:900px}.toth-shortcuts>.toth-wrap:first-child h2{font-size:clamp(28px,3vw,42px);line-height:1.22;margin:10px auto 26px}.toth-shortcuts-inner{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding-block:0}.toth-shortcuts a{background:#fff;min-height:190px;border:1px solid #e9dbc6!important;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;box-shadow:0 5px 18px #172b2110}.toth-shortcuts a span{font-size:40px}.toth-shortcuts a strong{font-size:21px}.toth-shortcuts a small{font-size:12px}.toth-explore-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.toth-explore-grid>div{min-height:250px}.toth-recent{margin-top:15px;font-size:12px}.toth-recent strong{display:block;margin-bottom:8px}.toth-recent-links{display:flex;flex-wrap:wrap;gap:8px}#toth-recent-links a{display:inline-block;border:1px solid #ffffff80;border-radius:30px;color:#fff;padding:5px 13px;margin-right:8px;margin-bottom:5px}.toth-quality-note{padding:24px;background:#f6efe5;border-radius:12px}.toth-temple>img{width:100%;height:100%;object-fit:cover}.toth-circuit{min-height:130px}@media(max-width:800px){.toth-shortcuts-inner{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.toth-shortcuts-inner{gap:10px}.toth-shortcuts a{min-height:155px;padding:14px 8px}.toth-shortcuts a strong{font-size:17px}}

/* v1.7 editorial homepage: remove duplicate navigation panels and create a distinctive story bridge */
.toth-editorial{padding:80px 0;background:#f4eee3;position:relative;overflow:hidden}
.toth-editorial-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:center;gap:clamp(32px,5vw,90px)}
.toth-editorial-art{position:relative;min-height:525px;border-radius:180px 180px 18px 18px;background:linear-gradient(0deg,rgba(6,32,27,.58),transparent 55%),url('assets/hero-lucknow.jpeg') center / cover;box-shadow:18px 20px 0 #e6d5b8,0 22px 45px #2a34262b}
.toth-editorial-photo-label{position:absolute;bottom:22px;left:24px;color:#fff;letter-spacing:.16em;font-size:10px;font-weight:700}
.toth-editorial-copy{max-width:650px}.toth-editorial-copy h2{font-size:clamp(35px,4vw,62px);line-height:1.08;color:#18372f;margin:10px 0 22px}
.toth-editorial-copy>p:not(.toth-eyebrow){font-size:16px;line-height:1.85;color:#48534d;max-width:560px}
.toth-editorial-points{display:grid;gap:0;margin:27px 0}.toth-editorial-points>div{display:grid;grid-template-columns:175px 1fr;gap:16px;padding:16px 0;border-top:1px solid #d9cbb6}
.toth-editorial-points strong{color:#1d4034;font-size:14px}.toth-editorial-points span{color:#5e655d;font-size:13px;line-height:1.65}
.toth-editorial-actions{display:flex;align-items:center;flex-wrap:wrap;gap:22px}.toth-editorial-actions .toth-button{display:inline-block}.toth-secondary-link{color:#1e4b3c!important;font-weight:700;border-bottom:1px solid #c18b3d;padding-bottom:4px}
.toth-section{padding-top:54px;padding-bottom:54px}.toth-community{padding:68px 0}.toth-news-section{padding:56px 0}
@media(max-width:850px){.toth-editorial{padding:55px 0}.toth-editorial-grid{grid-template-columns:1fr;gap:40px}.toth-editorial-art{min-height:380px;max-width:650px}.toth-editorial-points>div{grid-template-columns:1fr;gap:5px}}
@media(max-width:500px){.toth-editorial-art{min-height:300px;border-radius:110px 110px 15px 15px;box-shadow:10px 12px 0 #e6d5b8}.toth-editorial-copy h2{font-size:36px}.toth-editorial-points{margin:18px 0}}
@media(prefers-reduced-motion:reduce){.toth-shortcuts a,.toth-circuit{transition:none!important;transform:none!important}}

/* v1.8 editorial hierarchy */
.toth-all-circuits{text-align:center;margin:2rem 0 0}.toth-all-circuits .toth-button{display:inline-flex}.toth-featured-wait{padding:1.4rem 1.7rem;border:1px solid #d9cdb7;border-radius:14px;background:#fbf8f1;max-width:700px;line-height:1.75}.toth-section-head h2{max-width:750px}.toth-circuits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.toth-circuit{min-height:156px;display:flex;flex-direction:column;justify-content:center}.toth-circuit strong{font-size:1.15rem}@media(max-width:800px){.toth-circuits{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.toth-circuits{grid-template-columns:1fr}}

/* v1.9 heritage temple detail layout */
.totf-profile{max-width:1160px;margin:0 auto;padding:0 20px 64px}.totf-profile-hero{background:linear-gradient(115deg,#203e38,#476653);color:#fff;border-radius:22px;padding:clamp(28px,6vw,72px);margin:24px 0 0;position:relative;overflow:hidden}.totf-profile-hero h1{color:#fff;font-size:clamp(2rem,4.4vw,4.2rem);line-height:1.12;margin:18px 0}.totf-profile-back{color:#e4f3e6!important;text-decoration:none}.totf-profile-kicker{display:block;letter-spacing:.17em;font-size:.76rem;margin-top:30px;color:#f2d99d}.totf-profile-location,.totf-profile-deity{color:#f6f4eb;font-size:1.05rem}.totf-profile-nav{display:flex;gap:20px;overflow-x:auto;white-space:nowrap;padding:18px 8px;border-bottom:1px solid #dcded5;margin-bottom:24px}.totf-profile-nav a{color:#36584c;text-decoration:none;font-weight:650}.totf-profile-media{display:grid;grid-template-columns:1fr;gap:16px}.totf-profile-media figure{margin:0}.totf-profile-media img{width:100%;max-height:520px;object-fit:cover;border-radius:16px}.totf-profile-media figcaption{font-size:.8rem;color:#555;padding:7px 0}.totf-profile-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}.totf-profile-panel{padding:26px;background:#faf9f5;border:1px solid #e6e2d9;border-radius:18px}.totf-profile-panel h2{margin-top:0;color:#244b3d}.totf-profile-panel p{line-height:1.85}.totf-profile-research{margin-top:32px}.totf-profile-correction{margin-top:40px;padding:28px;background:#f3f5f1;border-radius:18px}.totf-profile-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}@media(max-width:720px){.totf-profile-sections,.totf-profile-gallery{grid-template-columns:1fr}.totf-profile-hero{border-radius:14px}.totf-profile-nav{gap:15px}}

/* v2.0: visual polish, additive and scoped. Preserve existing images, pages, and plugin markup. */
:root{--toth-gold:#c18b3b;--toth-cream:#faf6ef;--toth-forest:#153f35}
body.toth-heritage{background:#fffcf8;-webkit-font-smoothing:antialiased}
.toth-header{box-shadow:0 2px 16px rgba(25,32,29,.035)}
.toth-header-inner{min-height:82px}
.toth-nav a,.toth-account a{transition:color .2s,background .2s,transform .2s}
.toth-nav a:focus-visible,.toth-account a:focus-visible,.toth-temple:focus-visible,.toth-circuit:focus-visible,.toth-button:focus-visible{outline:3px solid #bd8730;outline-offset:4px}
.toth-hero,.toth-hero-overlay{min-height:535px}
.toth-hero-overlay{background:linear-gradient(90deg,rgba(4,21,27,.94),rgba(4,25,29,.77) 39%,rgba(4,25,29,.12) 100%)}
.toth-hero-content{padding-block:85px}
.toth-hero h1{font-size:clamp(45px,5.8vw,83px);max-width:810px;text-wrap:balance}
.toth-hero-sub{font-size:clamp(15px,1.4vw,19px);max-width:590px;line-height:1.75}
.toth-search{width:min(650px,100%);border-radius:16px;padding:7px;box-shadow:0 14px 50px rgba(0,0,0,.23)}
.toth-search input{font-size:15px!important;padding:15px!important}
.toth-search button{border-radius:11px;padding:15px 30px}
.toth-section{padding-block:65px 70px}
.toth-section-head{margin-bottom:26px}
.toth-section-head h2{font-size:clamp(32px,3.3vw,47px);line-height:1.2}
.toth-section-head p:not(.toth-eyebrow){font-size:15px;line-height:1.7}
.toth-temple-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.toth-temple{height:320px;border-radius:18px;box-shadow:0 15px 35px rgba(12,32,28,.13)}
.toth-temple-info{padding:70px 23px 24px}
.toth-temple-info strong{font-size:24px}
.toth-temple-info small{font-size:13px}
.toth-temple-summary{font-size:13px;line-height:1.55}
.toth-circuit{border-radius:17px;box-shadow:0 8px 25px rgba(24,35,31,.055);min-height:190px;padding:25px}
.toth-circuit:hover,.toth-temple:hover{transform:translateY(-4px);box-shadow:0 18px 44px rgba(12,32,28,.17)}
.toth-temple{transition:transform .25s,box-shadow .25s}
.toth-editorial{padding-block:65px;background:#f5eee2}
.toth-page{padding-block:48px 85px}
.toth-page-heading h1{font-size:clamp(35px,4.6vw,60px)}
.toth-page-body :is(.tot27-card,.tot30-form){border-radius:17px;box-shadow:0 8px 30px rgba(20,40,32,.06)}
.toth-page-body :is(.tot27-detail,.tot27-directory){line-height:1.8}
.toth-page-body :is(.tot27-detail) img{border-radius:13px}
.toth-gallery-section{padding:62px 0;background:#f8f1e6}
.toth-gallery-intro{max-width:800px;margin-bottom:25px}
.toth-gallery-intro h2{font-size:clamp(30px,3.3vw,45px);margin:0 0 12px}
.toth-gallery-intro p{color:#5e625d;line-height:1.7}
.toth-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.toth-gallery-card{position:relative;display:block;overflow:hidden;border-radius:17px;aspect-ratio:4/3;background:#21473d;color:white!important}
.toth-gallery-card img{height:100%;width:100%;object-fit:cover;transition:transform .3s}
.toth-gallery-card:hover img{transform:scale(1.06)}
.toth-gallery-card span{position:absolute;bottom:0;left:0;right:0;padding:40px 18px 17px;background:linear-gradient(transparent,#09251ee8);font:600 20px Georgia,serif}
.toth-gallery-credit{display:block;font-size:11px;font-family:Arial,sans-serif;font-weight:400;color:#efddbb;margin-top:4px}
@media(max-width:1020px){.toth-temple-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.toth-hero,.toth-hero-overlay{min-height:470px}.toth-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.toth-hero,.toth-hero-overlay{min-height:480px}.toth-hero-content{padding-block:60px}.toth-hero h1{font-size:clamp(38px,9vw,55px)}.toth-hero-overlay{background:linear-gradient(90deg,#061b2eef,#061b2eb5 72%,#061b2e77)}.toth-search{border-radius:12px}.toth-search input{font-size:13px!important;padding:11px!important}.toth-search button{padding:12px 17px}.toth-section{padding-block:42px}.toth-temple-grid{gap:12px}.toth-temple{height:240px;border-radius:12px}.toth-temple-info{padding:45px 12px 13px}.toth-temple-info strong{font-size:17px}.toth-temple-info small{font-size:11px}.toth-gallery-section{padding:42px 0}.toth-gallery-grid{gap:10px}.toth-gallery-card{border-radius:11px}.toth-gallery-card span{font-size:15px;padding:26px 10px 11px}}
@media(prefers-reduced-motion:reduce){.toth-temple,.toth-temple>img,.toth-gallery-card img,.toth-circuit{transition:none!important;transform:none!important}}

/* Temple-specific illustration disclosure */
.toth-temple{position:relative}.toth-reference-label{display:block;padding:5px 9px;background:#fff5e5;color:#6b371e;font-size:11px;font-weight:650;line-height:1.4}

/* Temple Master v1.2 dedicated circuit covers */
.toth-circuit-cover{display:block;position:relative;width:100%;margin-bottom:12px}.toth-circuit-cover img{display:block;width:100%;height:170px;object-fit:cover;border-radius:10px}.toth-circuit-cover small{position:absolute;bottom:7px;left:7px;background:rgba(15,25,32,.85);color:white;padding:3px 7px;border-radius:4px;font-size:11px}
