/* Shared business presentation: directory, search, category and local-help results. */
body.pali-theme:not(.page-admin) .listing-list { display:grid; gap:12px; }
body.pali-theme:not(.page-admin) .listing-item { display:grid; grid-template-columns:68px minmax(0,1fr) auto; align-items:center; gap:16px; padding:16px; margin:0; background:#fff; border:1px solid #e6eaf0; border-radius:15px; box-shadow:0 3px 12px #17394b05; transition:transform .2s,border-color .2s,box-shadow .2s; }
body.pali-theme:not(.page-admin) .listing-item:hover { transform:translateY(-2px); border-color:#edcdbb; box-shadow:0 8px 24px #17394b0a; }
body.pali-theme:not(.page-admin) .listing-avatar { width:68px; height:72px; border-radius:13px; background:#fff1e9; color:#ed7044; display:grid; place-items:center; font-size:24px; border:0; }
body.pali-theme:not(.page-admin) .listing-avatar svg { width:32px; height:32px; }
body.pali-theme:not(.page-admin) .listing-item:nth-child(5n+2) .listing-avatar { background:#f1effc; color:#655dc2; }
body.pali-theme:not(.page-admin) .listing-item:nth-child(5n+3) .listing-avatar { background:#eaf7f3; color:#218675; }
body.pali-theme:not(.page-admin) .listing-item:nth-child(5n+4) .listing-avatar { background:#fff0f2; color:#cf6278; }
body.pali-theme:not(.page-admin) .listing-item:nth-child(5n) .listing-avatar { background:#edf4ff; color:#3c72a5; }
body.pali-theme:not(.page-admin) .listing-body { min-width:0; }
body.pali-theme:not(.page-admin) .listing-name { margin:3px 0 5px; font-size:17px; line-height:1.35; letter-spacing:-.35px; }
body.pali-theme:not(.page-admin) .listing-name a { color:#102c42; }
body.pali-theme:not(.page-admin) .listing-cat { display:block; margin:0 0 5px; font-size:11px; color:#63758b; background:none; padding:0; }
body.pali-theme:not(.page-admin) .listing-addr { display:flex; align-items:flex-start; gap:6px; font-size:12px; line-height:1.5; margin:4px 0 0; color:#4d6378; }
body.pali-theme:not(.page-admin) .listing-addr svg { flex-shrink:0; margin-top:2px; color:#123746; }
body.pali-theme:not(.page-admin) .listing-svc { margin:4px 0 0; font-size:11px; line-height:1.5; color:#768393; }
body.pali-theme:not(.page-admin) .listing-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:7px; width:210px; }
body.pali-theme:not(.page-admin) .listing-actions :is(.btn-call,.btn-wa,.btn-details,.btn-directions) { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:34px; padding:6px 10px; border-radius:22px; font-size:11px; line-height:1.4; white-space:nowrap; text-decoration:none; }
body.pali-theme:not(.page-admin) .listing-actions :is(.btn-call,.btn-directions) { background:transparent; border:1px solid transparent; color:#1763ac; }
body.pali-theme:not(.page-admin) .listing-actions .btn-details { background:#f3f7ff; color:#173b63; border:1px solid #e4eaf4; }
body.pali-theme:not(.page-admin) .listing-actions a:hover { background:#fff0e7; color:#b94a24; }
body.pali-theme:not(.page-admin) .listing-item.is-featured { border-color:#edddcb; background:#fff; }
body.pali-theme:not(.page-admin) .results-wrap { grid-template-columns:minmax(0,1fr) 300px; gap:28px; }
body.pali-theme:not(.page-admin) .results-summary h2 { font-size:25px; color:#102c42; }
body.pali-theme:not(.page-admin) .owner-card { background:#fff1e8; border:1px solid #f5e6dc; border-radius:18px; }
.owner-card > img { width:150px; height:95px; object-fit:contain; float:right; }
.browse-help-card { background:#eff5fc; border-radius:18px; }
.browse-help-icon { display:grid; place-items:center; width:50px; height:50px; border-radius:50%; background:#dfeeff; color:#275e95; margin-bottom:15px; }
.browse-search-container { position:relative; z-index:2; margin-top:-28px; margin-bottom:28px; }
.browse-search { display:flex; align-items:center; gap:14px; max-width:860px; padding:7px 7px 7px 22px; background:#fff; border:1px solid #e7e6e3; border-radius:40px; box-shadow:0 4px 16px #183c4910; }
.browse-search input { flex:1; min-width:0; border:0; outline:0; background:transparent; font:inherit; font-size:14px; padding:12px 0; }
.browse-search:focus-within { outline:2px solid #ec845b; outline-offset:3px; }
.browse-search .btn-primary { border-radius:30px; min-width:120px; }
.browse-location { display:flex; align-items:center; gap:8px; padding:0 20px; border-left:1px solid #e9edf0; font-size:12px; white-space:nowrap; }
body.pali-theme:is(.discovery-directory,.discovery-category,.discovery-search) .page-hero--editorial { position:relative; isolation:isolate; background:#fffaf5; padding-bottom:64px; overflow:hidden; }
body.pali-theme:is(.discovery-directory,.discovery-category,.discovery-search) .page-hero--editorial::after { content:''; display:block; position:absolute; inset:0 0 0 38%; z-index:-1; background:url('../images/pali-temple.webp') center 58%/cover no-repeat; mask-image:linear-gradient(to right,transparent,#000 35%); opacity:.8; pointer-events:none; }
body.pali-theme:is(.discovery-directory,.discovery-category,.discovery-search) .editorial-art { visibility:hidden; }
body.pali-theme.discovery-directory .page-hero h1 { font-size:64px; }
body.pali-theme.discovery-directory .directory-browse { padding:12px 0 24px; }
body.pali-theme.discovery-directory .directory-toolbar { margin-bottom:16px; align-items:center; }
body.pali-theme.discovery-directory .directory-toolbar h2 { font-size:21px; }
body.pali-theme.discovery-directory .dir-grid { display:grid; grid-auto-flow:column; grid-auto-columns:130px; grid-template-columns:none; gap:10px; overflow-x:auto; padding:4px 0 14px; }
body.pali-theme.discovery-directory .dir-tile { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; min-height:145px; height:100%; padding:15px 9px; gap:6px; border:1px solid #f0e4dc; border-radius:14px; background:#fff2e9; box-shadow:none; }
body.pali-theme.discovery-directory .dir-grid li:nth-child(3n+2) .dir-tile { background:#edf7f4; border-color:#e0eeea; }
body.pali-theme.discovery-directory .dir-grid li:nth-child(3n) .dir-tile { background:#f1f3fc; border-color:#e6e8f4; }
body.pali-theme.discovery-directory :is(.dir-tile-index,.dir-tile-description,.dir-tile-arrow) { display:none; }
body.pali-theme.discovery-directory .dir-tile-icon { width:42px; height:42px; background:transparent; margin:0; color:#ed744b; }
body.pali-theme.discovery-directory .dir-tile-name { font-size:12px; line-height:1.4; }
body.pali-theme.discovery-directory .dir-tile-count { font-size:10px; margin:0; }
body.pali-theme.discovery-directory .directory-results { padding:22px 0 64px; }
.profile-hero { padding:18px 0 36px; background:radial-gradient(ellipse at 0 100%,#def1ec88,transparent 45%),radial-gradient(ellipse at 100% 50%,#ffeadb88,transparent 50%); }
.profile-hero .breadcrumb ol { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; font-size:12px; }
.profile-hero .breadcrumb li { display:flex; gap:8px; }
.profile-hero-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr); gap:32px; align-items:center; margin-top:30px; }
.profile-intro { display:grid; grid-template-columns:100px minmax(0,1fr); gap:18px; align-items:start; }
.profile-identity { position:relative; width:100px; height:110px; display:grid; place-items:center; background:#fff0e7; color:#ef7547; border-radius:16px; overflow:hidden; }
.profile-identity > svg { width:46px; height:46px; }
.profile-identity img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#fff; }
.profile-heading h1 { font-size:clamp(28px,3vw,43px); line-height:1.13; letter-spacing:-1.3px; margin:6px 0 15px; color:#102c42; overflow-wrap:anywhere; }
.profile-heading .eyebrow { font-size:10px; }
.profile-address { display:flex; gap:8px; font-size:13px; line-height:1.5; }
.profile-address svg { flex-shrink:0; margin-top:3px; }
.profile-summary { grid-column:2; margin:0; font-size:14px; line-height:1.75; color:#496174; }
.profile-actions { grid-column:2; display:flex; flex-wrap:wrap; gap:9px; }
.profile-actions > a { display:inline-flex; align-items:center; gap:7px; border-radius:25px; padding:11px 17px; font-size:12px; }
.profile-photo { position:relative; min-height:290px; border-radius:20px; overflow:hidden; background:radial-gradient(circle at 80% 20%,#ffc7ad 0 26px,transparent 27px),radial-gradient(ellipse at 100% 110%,#bad8cb 0 35%,transparent 35.5%),radial-gradient(ellipse at 20% 120%,#f8dabc 0 40%,transparent 40.5%),#fff2e9; }
.profile-photo-empty { min-height:290px; padding:32px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; gap:12px; color:#486176; }
.profile-photo-empty p { font-size:13px; max-width:250px; margin:0; }
.profile-photo-empty .btn-details { background:#fff; border-radius:24px; padding:10px 16px; font-size:12px; }
.profile-photo-image { position:absolute; inset:0; }
.profile-photo-image img { width:100%; height:100%; object-fit:cover; }
body.pali-theme.view-company :is(.detail-card,.contact-card,.sidebar-card) { border-radius:16px; border:1px solid #e7ebef; background:#fff; box-shadow:0 3px 14px #183c4905; }
body.pali-theme.view-company .detail-card-h { font-size:22px; }
body.pali-theme.view-company .detail-section-heading { margin-bottom:18px; }
body.pali-theme.view-company .section-index { background:#fff0e6; color:#eb7346; border-radius:12px; }
@media (max-width:1100px) { body.pali-theme:not(.page-admin) .listing-actions { width:150px; } body.pali-theme:not(.page-admin) .results-wrap { grid-template-columns:minmax(0,1fr) 260px; gap:22px; } }
@media (max-width:850px) { body.pali-theme:not(.page-admin) .results-wrap { grid-template-columns:1fr; } .profile-hero-grid { grid-template-columns:1fr; } .profile-photo { min-height:240px; } .browse-location { display:none; } }
@media (max-width:600px) { body.pali-theme:not(.page-admin) .listing-item { grid-template-columns:48px minmax(0,1fr); gap:12px; padding:14px; } body.pali-theme:not(.page-admin) .listing-avatar { width:48px; height:58px; } body.pali-theme:not(.page-admin) .listing-avatar svg { width:27px; height:27px; } body.pali-theme:not(.page-admin) .listing-name { font-size:16px; } body.pali-theme:not(.page-admin) .listing-actions { grid-column:1/-1; width:auto; justify-content:flex-start; border-top:1px solid #f0f2f4; padding-top:9px; } body.pali-theme:not(.page-admin) .listing-actions a { min-height:40px; } .browse-search { gap:9px; padding-left:15px; } .browse-search input { font-size:12px; } .browse-search .btn-primary { min-width:70px; padding:12px; font-size:12px; } .profile-intro { grid-template-columns:65px minmax(0,1fr); gap:14px; } .profile-identity { width:65px; height:75px; } .profile-identity > svg { width:32px; height:32px; } .profile-summary,.profile-actions { grid-column:1/-1; } .profile-hero-grid { margin-top:20px; gap:22px; } .profile-heading h1 { font-size:29px; } .profile-photo,.profile-photo-empty { min-height:240px; } body.pali-theme:is(.discovery-directory,.discovery-category,.discovery-search) .page-hero--editorial::after { opacity:.23; inset:0; } }
@media (prefers-reduced-motion:reduce) { body.pali-theme:not(.page-admin) .listing-item { transition:none; } body.pali-theme:not(.page-admin) .listing-item:hover { transform:none; } }

/* Reset legacy two-row listing and fixed-width result layout. */
body.pali-theme:not(.page-admin) .results-wrap { display:grid; }
body.pali-theme:not(.page-admin) .results-wrap > * { min-width:0; width:auto; }
body.pali-theme:not(.page-admin) .listing-actions { grid-column:auto; margin:0; padding:0; border:0; }
body.pali-theme:is(.discovery-directory,.discovery-category,.discovery-search) .page-hero--editorial::after { height:auto; }
body.pali-theme:is(.discovery-directory,.discovery-category,.discovery-search) .page-hero--editorial .page-hero-inner { min-height:245px; padding:30px 0; grid-template-columns:minmax(0,1fr) 1fr; }
body.pali-theme.discovery-directory .page-hero-title { font-size:clamp(40px,5vw,66px); }
body.pali-theme.discovery-directory .page-hero-title span { display:block; }
body.pali-theme.discovery-directory .directory-toolbar { padding:0; border:0; background:transparent; box-shadow:none; }
body.pali-theme.discovery-directory .dir-tile-icon { align-self:center; }
body.pali-theme.discovery-directory .dir-tile-name { padding:0; }
body.pali-theme.discovery-directory .dir-grid { scrollbar-width:thin; }
@media(max-width:600px) {
 body.pali-theme:not(.page-admin) .listing-actions { grid-column:1/-1; border-top:1px solid #f0f2f4; padding-top:9px; }
 body.pali-theme:is(.discovery-directory,.discovery-category,.discovery-search) .page-hero--editorial .page-hero-inner { grid-template-columns:1fr; min-height:0; padding:20px 0; }
 body.pali-theme:is(.discovery-directory,.discovery-category,.discovery-search) .editorial-art { display:none; }
}
body.pali-theme:is(.discovery-directory,.discovery-category,.discovery-search) .page-hero--editorial::after { background-image:linear-gradient(to top,#fffaf5 0%,transparent 28%),url('../images/pali-temple.webp'); }
body.pali-theme .profile-hero .breadcrumb :is(a,span) { color:#52687a; }
body.pali-theme .profile-actions > a { border-radius:25px; margin:0; }
body.pali-theme .profile-photo-empty .btn-details { margin:0; }
body.pali-theme.view-company .business-quick-contact h2 { font-size:25px; }
body.pali-theme:not(.page-admin) .listing-actions { flex-direction:row; }
body.pali-theme:not(.page-admin) .listing-actions :is(.btn-call,.btn-wa,.btn-directions,.btn-details) { width:auto; flex:0 0 auto; }
@media(max-width:600px) { body.pali-theme:not(.page-admin) .listing-actions :is(.btn-call,.btn-wa,.btn-directions,.btn-details) { min-height:40px; } }
/* Search uses the directory hero and its pill-shaped search field. */
body.pali-theme.discovery-search .search-form-row { background:transparent; border:0; padding:0; }
body.pali-theme.discovery-search .search-wrap { max-width:860px; border-radius:40px; background:white; }
body.pali-theme.discovery-search .search-pg-input { border:0; background:transparent; padding:12px 0; }
body.pali-theme.discovery-search .search-btn { border-radius:30px; position:static; }
body.pali-theme:is(.discovery-category,.view-service_hub) .subcat-bar { background:transparent; border:0; padding:10px 0 24px; }
body.pali-theme:is(.discovery-category,.view-service_hub) .subcat-label { margin-bottom:13px; }
body.pali-theme:is(.discovery-category,.view-service_hub) .subcat-scroll { display:flex; flex-wrap:wrap; gap:10px; overflow:visible; padding:0; }
body.pali-theme:is(.discovery-category,.view-service_hub) .subcat-pill { display:inline-flex; align-items:center; min-height:44px; padding:10px 18px; border:1px solid #e9ddd1; border-radius:13px; background:#fff; color:#375567; font-size:13px; white-space:normal; line-height:1.4; box-shadow:0 2px 7px #183c4904; transition:background .2s,border-color .2s; }
body.pali-theme:is(.discovery-category,.view-service_hub) .subcat-pill:nth-child(3n+2) { background:#edf5f1; border-color:#dcebe3; }
body.pali-theme:is(.discovery-category,.view-service_hub) .subcat-pill:nth-child(3n) { background:#f1f3fc; border-color:#e1e6f2; }
body.pali-theme:is(.discovery-category,.view-service_hub) .subcat-pill--active,body.pali-theme:is(.discovery-category,.view-service_hub) .subcat-pill:hover { background:#fff0e3; color:#a64825; border-color:#e6b291; }
body.pali-theme:is(.discovery-category,.view-service_hub) .subcat-pill--active { box-shadow:inset 0 -3px #ed8754; font-weight:700; }
body.pali-theme .subcat-pill:focus-visible { outline:2px solid #b9572e; outline-offset:3px; }
body.pali-theme [data-service="police"] { --service-bg:#eaf0fa; --service-border:#cfdaef; --service-ink:#214b86; }
body.pali-theme [data-service="fire"] { --service-bg:#fff0e8; --service-border:#f2d2bf; --service-ink:#cb4927; }
body.pali-theme [data-service="ambulance"] { --service-bg:#fff0f1; --service-border:#f0cdd1; --service-ink:#bd3347; }
body.pali-theme [data-service="women"] { --service-bg:#f7edfa; --service-border:#e5d0ee; --service-ink:#9045a4; }
body.pali-theme [data-service="child"] { --service-bg:#eaf7ef; --service-border:#cde7d7; --service-ink:#25774c; }
body.pali-theme [data-service="electricity"] { --service-bg:#fff8df; --service-border:#eadca6; --service-ink:#8a6710; }
body.pali-theme [data-service="railway"] { --service-bg:#e8f5f6; --service-border:#c8e3e6; --service-ink:#216e78; }
body.pali-theme:is(.page-home,.view-emergency) :is(.urgent-contact,.utility-card--contact)[data-service] { background:var(--service-bg); border-color:var(--service-border); }
body.pali-theme:is(.page-home,.view-emergency) [data-service] :is(.urgent-icon,.utility-card-icon) { background:#ffffffa8; color:var(--service-ink); }
@media(max-width:600px) { body.pali-theme:is(.discovery-category,.view-service_hub) .subcat-pill { padding:9px 12px; font-size:12px; } body.pali-theme.discovery-search .search-wrap { display:flex; padding:7px 7px 7px 15px; } }
@media(prefers-reduced-motion:reduce) { body.pali-theme:is(.discovery-category,.view-service_hub) .subcat-pill { transition:none; } }
body.pali-theme.discovery-search .search-form-row form { max-width:none; margin:0; width:100%; }
body.pali-theme.discovery-search .search-wrap { margin:0; width:100%; }
body.pali-theme.discovery-search .search-ico { position:static; transform:none; flex-shrink:0; }
body.pali-theme.view-emergency .utility-card--contact[data-service] .utility-card-icon,body.pali-theme.page-home .urgent-contact[data-service] .urgent-icon { color:var(--service-ink); background:#ffffffa8; }
body.pali-theme.discovery-search .search-wrap { flex-wrap:nowrap; }
body.pali-theme.discovery-search .search-pg-input { width:0; flex:1 1 auto; min-width:0; }
body.pali-theme.discovery-search .search-btn { width:auto; flex:0 0 auto; }
/* One public-page hero rhythm; artwork follows each page's purpose. */
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] { position:relative; isolation:isolate; overflow:hidden; background:#fffaf5; border:0; padding:24px 0 58px; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] .page-hero-inner { display:grid; grid-template-columns:minmax(0,1fr) 1fr; align-items:center; gap:32px; min-height:245px; padding:30px 0; background:transparent; border:0; box-shadow:none; border-radius:0; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] .page-hero-title { font:750 clamp(34px,4.2vw,58px)/1.12 var(--f-ui); letter-spacing:-.045em; color:#102c42; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] .page-hero-title span { color:#e97443; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] .page-hero-sub { color:#496174; font-size:15px; line-height:1.75; max-width:600px; margin-top:20px; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] .page-hero-kicker { color:#375451; font-size:10px; letter-spacing:.22em; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] .editorial-art { justify-self:center; width:100%; max-width:270px; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] .editorial-art-stamp { display:none; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme]::after { content:''; position:absolute; inset:0; height:auto; z-index:-1; display:block; background:radial-gradient(ellipse at 85% 50%,#f7e8d7,transparent 65%); pointer-events:none; }
body.pali-theme:not(.page-admin) .page-hero:is([data-hero-theme="directory"],[data-hero-theme="tourism"],[data-hero-theme="news"],[data-hero-theme="market"])::after { inset:0 0 0 38%; background:linear-gradient(to top,#fffaf5,transparent 30%),var(--page-art) center/cover no-repeat; mask-image:linear-gradient(to right,transparent,#000 35%); opacity:.8; }
body.pali-theme .page-hero[data-hero-theme="directory"] { --page-art:url('../images/pali-temple.webp'); }
body.pali-theme .page-hero[data-hero-theme="tourism"] { --page-art:url('../images/home-garden.webp'); }
body.pali-theme .page-hero[data-hero-theme="news"] { --page-art:url('../images/pali-temple.webp'); }
body.pali-theme .page-hero[data-hero-theme="market"] { --page-art:url('../images/pali-market.webp'); }
body.pali-theme:not(.page-admin) .page-hero:is([data-hero-theme="directory"],[data-hero-theme="tourism"],[data-hero-theme="news"],[data-hero-theme="market"]) .editorial-art { visibility:hidden; }
/* Dedicated detail and election heroes keep their data, controls and identity. */
body.pali-theme:not(.page-admin) :is(.profile-hero,.election-war-hero,.corner-war-hero,.kyc-hero,.result-verdict-hero) { background-color:#fffaf5; color:#102c42; border-radius:0; border-color:#eee6dd; }
body.pali-theme:not(.page-admin) :is(.profile-heading h1,#election-war-title,.corner-war-copy h1,#kyc-page-title,.result-verdict-intro h1) { font-family:var(--f-ui); color:#102c42; letter-spacing:-.045em; }
body.pali-theme:not(.page-admin) :is(#election-war-title em,.corner-war-copy h1 span,#kyc-page-title span,.result-verdict-intro h1 span) { color:#e97443; }
.search-suggestions { position:fixed; z-index:1500; padding:6px; background:#fffefa; border:1px solid #e6dcd1; border-radius:16px; box-shadow:0 12px 35px #12354426; overflow-y:auto; overscroll-behavior:contain; }
.search-suggestions[hidden] { display:none; }
.search-suggestions a { display:flex; flex-direction:column; gap:4px; padding:12px 14px; border-radius:10px; text-decoration:none; color:#17364a; }
.search-suggestions a + a { border-top:1px solid #f1ece6; }
.search-suggestions strong { font-size:14px; font-weight:650; line-height:1.4; }
.search-suggestions span { color:#637786; font-size:11px; line-height:1.5; }
.search-suggestions a:hover,.search-suggestions a[aria-selected="true"] { background:#fff0e4; color:#a64825; }
@media(max-width:600px) {
 body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] { padding:20px 0 48px; }
 body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] .page-hero-inner { grid-template-columns:1fr; gap:0; min-height:0; padding:20px 0; }
 body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] .page-hero-title { font-size:34px; }
 body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] .page-hero-sub { font-size:14px; }
 body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] .editorial-art { display:none; }
 body.pali-theme:not(.page-admin) .page-hero[data-hero-theme]::after { inset:0; opacity:.2; }
}
/* Home composition refinements. */
body.pali-theme.page-home .city-canvas-label { left:15%; right:auto; top:20px; }
body.pali-theme.page-home .city-sticker--local { left:auto; right:4%; bottom:100px; }
body.pali-theme.page-home .heritage-hero-art { width:120%; max-width:none; margin-left:-10%; }
body.pali-theme.page-home .city-sticker--explore { animation:adventure-float 4s ease-in-out infinite; }
body.pali-theme.page-home .city-sticker--explore:is(:hover,:focus-visible) { animation-play-state:paused; }
@keyframes adventure-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-7px); } }
body.pali-theme.page-home .events-intro .eyebrow { display:inline-block; max-width:100%; padding:9px 14px; border:1px solid #e7cfb2; border-radius:24px; background:#fffaf2f5; color:#244d58; font-size:10px; line-height:1.7; letter-spacing:.13em; box-shadow:0 3px 12px #57401a0b; }
body.pali-theme.view-company .related-business-rows { margin-top:20px; }
@media(max-width:800px) { body.pali-theme.page-home .city-canvas-label { left:6%; top:15px; right:auto; } body.pali-theme.page-home .city-sticker--local { right:2%; bottom:80px; } body.pali-theme.page-home .heritage-hero-art { width:110%; margin-left:-5%; } }
@media(prefers-reduced-motion:reduce) { body.pali-theme.page-home .city-sticker--explore { animation:none; } }
/* Final shared presentation: strong type, one focus ring, integrated artwork. */
body.pali-theme:not(.page-admin) { font-weight:500; }
body.pali-theme:not(.page-admin) :is(p,input,textarea,select,.listing-addr,.listing-svc,.page-hero-sub,.sec-sub,.detail-desc,.df-row dd,.utility-card-copy,.place-card-copy,.footer-tagline) { font-weight:500; }
body.pali-theme:not(.page-admin) :is(.hdr-nav-link,.subcat-pill,.filter-chip,.sec-link) { font-weight:600; }
body.pali-theme:not(.page-admin) :is(input,textarea)::placeholder { color:#637385; opacity:1; font-weight:500; }
body.pali-theme .browse-search input:is(:focus,:focus-visible) { outline:none; box-shadow:none; border:0; }
body.pali-theme .browse-search:focus-within { outline:2px solid #dc754b; outline-offset:3px; }
body.pali-theme .browse-search { gap:14px; }
body.pali-theme.page-home .city-sticker--local { left:15%; right:auto; bottom:100px; }
body.pali-theme .owner-card { display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
body.pali-theme .owner-card > img { float:none; width:100%; height:140px; object-fit:contain; margin:0; }
body.pali-theme .owner-card > h2 { font-size:25px; line-height:1.3; margin:0; }
body.pali-theme .owner-card > p { margin:0 0 6px; }
body.pali-theme.view-emergency a.utility-card--contact { text-decoration:none; color:#17364a; transition:box-shadow .2s,transform .2s; }
body.pali-theme.view-emergency a.utility-card--contact:hover { box-shadow:0 7px 20px #16394d15; transform:translateY(-2px); }
body.pali-theme.view-emergency a.utility-card--contact:focus-visible { outline:3px solid var(--service-ink); outline-offset:3px; }
body.pali-theme:not(.page-admin) .tourism-browse .content-split { display:grid; grid-template-columns:minmax(0,1fr) 270px; gap:26px; align-items:start; }
body.pali-theme:not(.page-admin) .tourism-browse .content-main { min-width:0; }
body.pali-theme:not(.page-admin) .tourism-browse .content-side { display:flex; flex-direction:column; gap:18px; margin:0; min-width:0; }
body.pali-theme:not(.page-admin) .tourism-browse .content-side > * { width:100%; }
body.pali-theme:not(.page-admin) .place-grid--directory { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
body.pali-theme .page-hero[data-hero-theme="services"],body.pali-theme .page-hero[data-hero-theme="community"],body.pali-theme .page-hero[data-hero-theme="advertise"] { --page-art:url('../images/pali-market.webp'); }
body.pali-theme .page-hero[data-hero-theme="civic"] { --page-art:url('../images/pali-temple.webp'); }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme]::after { inset:0 0 0 38%; background:linear-gradient(to top,#fffaf5,transparent 30%),var(--page-art) center/cover no-repeat; mask-image:linear-gradient(to right,transparent,#000 35%); opacity:.8; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] :is(.editorial-art,.result-ballot-art) { visibility:hidden; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme="civic"] :is(.page-hero-copy,.result-verdict-intro > div:first-child) { width:auto; max-width:none; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme="civic"] :is(.election-war-deck,.corner-war-copy>p:not(.corner-war-stamp),.kyc-hero-copy>p:not(.kyc-overline)) { color:#496174; font-size:15px; line-height:1.75; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme="civic"] .result-verdict-hero { background:transparent; border:0; box-shadow:none; padding:0; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme="civic"] .page-hero-title { font-size:clamp(34px,4.2vw,58px); line-height:1.12; }
@media(max-width:1000px) { body.pali-theme:not(.page-admin) .tourism-browse .content-split { grid-template-columns:minmax(0,1fr) 230px; gap:20px; } body.pali-theme:not(.page-admin) .place-grid--directory { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:800px) { body.pali-theme.page-home .city-sticker--local { left:5%; right:auto; bottom:85px; } body.pali-theme:not(.page-admin) .tourism-browse .content-split { grid-template-columns:1fr; } }
@media(max-width:600px) { body.pali-theme:not(.page-admin) .place-grid--directory { grid-template-columns:1fr; } body.pali-theme:not(.page-admin) .page-hero[data-hero-theme]::after { inset:0; opacity:.2; } body.pali-theme:not(.page-admin) .page-hero[data-hero-theme="civic"] .page-hero-title { font-size:34px; } body.pali-theme:not(.page-admin) .page-hero[data-hero-theme="civic"] .result-ballot-art { display:none; } }
@media(prefers-reduced-motion:reduce) { body.pali-theme.view-emergency a.utility-card--contact { transition:none; } body.pali-theme.view-emergency a.utility-card--contact:hover { transform:none; } }
body.pali-theme .owner-card > h2 { order:-1; }
body.pali-theme:not(.page-admin) :is(p,input,textarea,select,.listing-addr,.listing-svc,.detail-desc,.utility-card-copy,.place-card-copy) { font-family:var(--f-ui); }
/* Compact transitions below shared heroes; listing sidebars align naturally. */
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] { margin-bottom:12px; padding-bottom:32px; }
body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] + .section { padding-top:26px; }
body.pali-theme.view-service_hub .subcat-bar + .ad-row + .section { padding-top:26px; }
body.pali-theme.view-emergency .emergency-listing-heading { margin-top:32px; }
body.pali-theme.view-emergency .emergency-listing-split { margin-top:0; }
body.pali-theme:is(.view-service_hub,.view-emergency) .business-listing-sidebar { align-self:start; margin-top:0; }
@media(max-width:600px) { body.pali-theme:not(.page-admin) .page-hero[data-hero-theme] { padding-bottom:26px; margin-bottom:8px; } }

/* Original media takes precedence; icons remain available if a file fails. */
body.pali-theme .listing-avatar { position:relative; overflow:hidden; }
body.pali-theme .listing-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#fff; border-radius:inherit; }
body.pali-theme .news-card-media { overflow:hidden; border-radius:12px; margin-bottom:16px; aspect-ratio:12/7; background:#f6eee3; }
body.pali-theme .news-card-media img { width:100%; height:100%; object-fit:cover; }
body.pali-theme .tourism-art-label[hidden] { display:none; }
body.pali-theme .election-directory-head h1,body.pali-theme .corner-section-head h1 { font-family:var(--f-ui); font-size:clamp(30px,4vw,48px); line-height:1.15; color:var(--ink); letter-spacing:-.035em; margin:10px 0 16px; }

body.pali-theme :is(.offer-card-media,.clf-ad-logo) img { object-fit:contain; background:#fffaf5; }



/* Election content shares the public site's surfaces and controls. */
body.pali-theme :is(.election-war-room,.election-corner-room) { background:var(--bg); color:var(--ink); font-family:var(--f-ui); }
body.pali-theme :is(.election-war-room,.election-corner-room) > .section { background:transparent; padding-block:30px 46px; }
body.pali-theme :is(.election-directory-head,.corner-section-head) h2 { color:var(--ink); font:750 clamp(26px,3vw,36px)/1.2 var(--f-ui); letter-spacing:-.035em; }
body.pali-theme :is(.election-directory-head,.corner-section-head) > div > p { color:var(--ink-3); font-family:var(--f-ui); }
body.pali-theme :is(.election-search-console,.corner-search-console) { border:1px solid var(--border); border-radius:16px; background:#fff; box-shadow:0 4px 16px #19344606; }
body.pali-theme :is(.election-search-box,.corner-search-box) { border:1px solid var(--border); border-radius:12px; background:#fff; }
body.pali-theme :is(.election-filter-row button,.election-directory-corner) { border-radius:24px; font-family:var(--f-ui); }
body.pali-theme .election-war-room .election-ward-card { background:#fff; box-shadow:0 3px 14px #19344606; }
body.pali-theme .election-war-room .election-ward-card summary h3 { color:var(--ink); font-family:var(--f-ui); }
body.pali-theme .corner-report-card { border:1px solid var(--border); border-radius:15px; box-shadow:0 3px 14px #19344606; }

body.pali-theme .election-hero-nav { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
body.pali-theme .election-hero-nav .btn-outline { display:inline-flex; align-items:center; gap:9px; min-height:42px; padding:10px 17px; border:1px solid #e4e9e6; border-radius:28px; background:#fffffff2; color:var(--ink); font:600 13px/1.4 var(--f-ui); text-decoration:none; transition:transform .18s ease,border-color .18s ease,color .18s ease; }
body.pali-theme .election-hero-nav .btn-outline:hover { transform:translateY(-2px); border-color:var(--terra); color:var(--terra); }
body.pali-theme .election-hero-nav .btn-outline:focus-visible { outline:2px solid var(--terra); outline-offset:3px; }
body.pali-theme .election-war-room .election-ward-card { min-height:0; }
body.pali-theme .election-war-room .election-ward-card summary { min-height:170px; padding:16px; }
body.pali-theme .election-war-room .election-ward-card summary h3 { margin:8px 0 0; font-size:24px; }
body.pali-theme .election-war-room .election-ward-card summary > p { margin:10px 0 14px; font-size:12px; line-height:1.6; }
body.pali-theme .election-war-room .election-ward-open { padding-top:10px; }
@media(min-width:1100px) { body.pali-theme .election-war-room .election-ward-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(prefers-reduced-motion:reduce) { body.pali-theme .election-hero-nav .btn-outline { transition:none; } }

/* Ward finder uses the same single pill search as public hero searches. */
body.pali-theme .election-war-room .election-search-console { position:relative; top:auto; padding:0; margin:24px 0; border:0; background:transparent; box-shadow:none; }
body.pali-theme .election-war-room .election-search-box { max-width:none; width:100%; display:flex; gap:14px; padding:7px 7px 7px 22px; border:1px solid #e7e6e3; border-radius:40px; background:#fff; box-shadow:0 4px 16px #183c4910; }
body.pali-theme .election-war-room .election-search-box input { min-width:0; flex:1; padding:12px 0; border:0; background:transparent; font:500 14px/1.5 var(--f-ui); color:var(--ink); outline:none; box-shadow:none; }
body.pali-theme .election-war-room .election-search-box .btn-primary { flex-shrink:0; min-width:120px; border-radius:30px; }
body.pali-theme .election-war-room .election-search-box > svg { flex-shrink:0; color:var(--ink); }
@media(max-width:600px) {
 body.pali-theme .election-war-room .election-search-box { gap:9px; padding-left:15px; }
 body.pali-theme .election-war-room .election-search-box input { font-size:12px; }
 body.pali-theme .election-war-room .election-search-box .btn-primary { min-width:70px; padding:12px; font-size:12px; }
}
body.pali-theme .election-war-room .election-search-box .btn-primary { background:#e8753b; border-color:#e8753b; color:#fff; }
body.pali-theme .election-war-room .election-search-box .btn-primary:hover { background:#d9632d; border-color:#d9632d; }

/* Shared search treatment, including live filters which keep their own behavior. */
body.pali-theme.page-home .home-welcome .hero-search-inner { gap:12px; padding:7px 7px 7px 20px; border:1px solid #e7e6e3; border-radius:40px; box-shadow:0 4px 16px #183c4910; }
body.pali-theme.page-home .home-welcome .hero-search-input { padding:12px 0; font:500 16px/1.5 var(--f-ui); }
body.pali-theme.page-home .home-welcome .hero-search-ico { display:block; margin:0; }
body.pali-theme.page-home .home-welcome .hero-search-btn { min-width:120px; padding:12px 24px; background:#e8753b; font:700 14px/1.5 var(--f-ui); }
body.pali-theme:not(.page-admin) :is(.browse-search,.hero-search-inner,.hdr-search-inner,.result-search-box,.corner-search-box,.kyc-search-box,.category-filter-field) {
 display:flex; align-items:center; flex-wrap:nowrap; gap:12px; min-width:0; padding:7px 7px 7px 20px;
 border:1px solid #e7e6e3; border-radius:40px; background:#fff; color:var(--ink); box-shadow:0 4px 16px #183c4910;
}
body.pali-theme:not(.page-admin) :is(.browse-search,.hero-search-inner,.hdr-search-inner,.result-search-box,.corner-search-box,.kyc-search-box,.category-filter-field):focus-within { outline:2px solid #dc754b; outline-offset:3px; }
body.pali-theme:not(.page-admin) :is(.browse-search,.hero-search-inner,.hdr-search-inner,.result-search-box,.corner-search-box,.kyc-search-box,.category-filter-field) input {
 flex:1; width:100%; min-width:0; height:auto; margin:0; padding:12px 0; border:0; border-radius:0; outline:none; box-shadow:none;
 background:transparent; color:var(--ink); font:500 16px/1.5 var(--f-ui);
}
body.pali-theme:not(.page-admin) :is(.browse-search,.hero-search-inner,.hdr-search-inner,.result-search-box,.corner-search-box,.kyc-search-box,.category-filter-field) > svg { position:static; transform:none; flex-shrink:0; margin:0; width:21px; height:21px; color:var(--ink); }
body.pali-theme:not(.page-admin) :is(.browse-search,.hero-search-inner,.hdr-search-inner,.result-search-box,.category-filter-field) > button {
 position:static; transform:none; flex-shrink:0; width:auto; height:auto; min-height:44px; margin:0; padding:12px 24px;
 border:0; border-radius:30px; background:#e8753b; color:#fff; font:700 14px/1.5 var(--f-ui); cursor:pointer;
}
body.pali-theme:not(.page-admin) :is(.browse-search,.hero-search-inner,.hdr-search-inner,.result-search-box,.category-filter-field) > button:hover { background:#d9632d; }
body.pali-theme:not(.page-admin) :is(.corner-search-box,.kyc-search-box) kbd { display:none; }
body.pali-theme.page-home .home-welcome .hero-search-wrap { padding:0; border:0; background:transparent; box-shadow:none; }
body.pali-theme .result-search-panel { border:1px solid var(--border); box-shadow:none; background:#fff; }
body.pali-theme .result-page { background:var(--bg); color:var(--ink); }
body.pali-theme .result-toolbar h2 { color:var(--ink); }
body.pali-theme .result-search-panel > label,body.pali-theme .result-search-meta strong { color:var(--ink); }
body.pali-theme .result-hero .result-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; width:100%; margin:24px 0 0; }
body.pali-theme .result-hero .result-summary-card { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; width:100%; padding:20px; border-radius:18px; box-shadow:none; }
body.pali-theme .result-summary-card .result-summary-symbol { margin:0; }
body.pali-theme .result-summary-card > strong { margin:0; font-size:44px; letter-spacing:-1px; }
body.pali-theme .result-summary-card > span:not(.result-summary-symbol) { font:700 16px/1.3 var(--f-ui); }
body.pali-theme .result-summary-independent > span { grid-column:1/3; }
body.pali-theme .result-summary-card .result-seat-meter { grid-column:1/-1; }
@media(min-width:701px) and (max-width:1000px) {
 body.pali-theme .result-hero .result-summary-card { padding:16px; gap:8px; }
 body.pali-theme .result-summary-card .result-summary-symbol { width:40px; height:40px; }
 body.pali-theme .result-summary-symbol .result-leader-symbol { width:32px; height:32px; min-width:32px; max-width:32px; }
 body.pali-theme .result-summary-card > strong { font-size:34px; }
 body.pali-theme .result-summary-card > span:not(.result-summary-symbol) { font-size:14px; }
}
@media(max-width:700px) {
 body.pali-theme.page-home .home-welcome .hero-search-inner { gap:9px; padding-left:15px; }
 body.pali-theme.page-home .home-welcome .hero-search-btn { min-width:70px; padding:12px 15px; }
 body.pali-theme .result-hero .result-summary { gap:10px; }
 body.pali-theme .result-hero .result-summary-card { grid-template-columns:1fr; padding:15px 10px; gap:10px; justify-items:start; }
 body.pali-theme .result-summary-independent > span { grid-column:auto; }
 body.pali-theme .result-summary-card .result-summary-symbol { display:none; }
 body.pali-theme .result-summary-card > span:not(.result-summary-symbol) { font-size:12px; overflow-wrap:normal; }
 body.pali-theme .result-summary-card > strong { font-size:34px; }
 body.pali-theme .result-filter-row { flex-direction:column; }
 body.pali-theme .result-filter-row .result-ward-picker { flex-basis:auto; }
 body.pali-theme .result-filter-row .result-ward-picker summary { min-height:44px; border-radius:24px; }
 body.pali-theme .result-filter-row .result-search-box > svg { display:block; }
 body.pali-theme:not(.page-admin) :is(.browse-search,.hero-search-inner,.hdr-search-inner,.result-search-box,.corner-search-box,.kyc-search-box,.category-filter-field) { gap:9px; padding-left:15px; }
 body.pali-theme:not(.page-admin) :is(.browse-search,.hero-search-inner,.hdr-search-inner,.result-search-box,.category-filter-field) > button { min-width:70px; padding:12px 15px; }
}
/* Keep long editorial cards and election headings within the shared rhythm. */
body.pali-theme .news-grid--directory .news-card:first-child { grid-column:auto; padding:25px; background:#fff; }
body.pali-theme .news-grid--directory .news-card:first-child .news-card-title { font-size:23px; line-height:1.6; }
body.pali-theme .election-kyc-room,body.pali-theme .election-kyc-room .kyc-directory { background:var(--bg); color:var(--ink); }
body.pali-theme .kyc-directory-head h2 { color:var(--ink); font:750 clamp(26px,3vw,36px)/1.2 var(--f-ui); }
body.pali-theme .kyc-search-console { background:#fff; border:1px solid var(--border); box-shadow:0 4px 16px #19344606; }
body.pali-theme.view-news_item .page-hero[data-hero-theme] .page-hero-title { font-size:clamp(30px,3.5vw,46px); line-height:1.3; letter-spacing:-.02em; }
body.pali-theme.view-offers .empty-state + .form-shell { margin-top:24px; }
body.pali-theme .result-ward-menu input[type="search"] { width:100%; min-width:0; border:1px solid #e7e6e3; border-radius:30px; padding:12px 16px; background:#fff; color:var(--ink); font:500 16px/1.5 var(--f-ui); }
body.pali-theme .result-ward-menu input[type="search"]:focus-visible { outline:2px solid #dc754b; outline-offset:2px; }
@media(max-width:360px) { body.pali-theme .result-summary-card > span:not(.result-summary-symbol) { font-size:11px; } }
