/* PAND directory index — extracted from the authored design.
   Fonts/FA load once via functions.php. */

.dx,.dx-hero,.dx-body,.dx-recent,.dx-cta{--ink:#12293F; --muted:#5D6B7A; --blue:#1D63AC; --blue-dk:#114B93; --green:#49A647; --green-dk:#1E9F49; --paper:#EEF2F7; --line:#E2E8F0;
  --ease:cubic-bezier(.22,.61,.36,1); --spring:cubic-bezier(.2,.9,.3,1);
  font-family:'Montserrat',system-ui,sans-serif !important; color:var(--ink)}
.dx *,.dx *::before,.dx *::after{box-sizing:border-box}
.dx,.dx *{font-family:'Montserrat',system-ui,sans-serif}
/* The directory templates have no .dx wrapper — their sections are .dx-hero,
   .dx-body, .dx-recent and .dx-cta — so a reset scoped to ".dx a" never
   applied: every link kept the browser underline (card titles, categories,
   the View button). The real section classes are listed here too. Kept in
   this position so the more specific link rules further down still win. */
.dx a,.dx a:link,.dx a:visited,
.dx-hero a,.dx-body a,.dx-recent a,.dx-cta a,
.dx-recent a:link,.dx-recent a:visited{text-decoration:none !important; color:inherit}

/* ---------- hero ---------- */
.dx-hero{position:relative; isolation:isolate; overflow:hidden; color:#fff; background-color:#12293F !important; background-image:radial-gradient(120% 90% at 50% 0%, #16345A 0%, #12293F 60%, #0F2A2E 100%) !important;
  padding:clamp(112px,14vh,150px) clamp(24px,8vw,128px) clamp(48px,7vh,72px)}
.dx-hero::before{content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(34% 42% at 6% 8%, rgba(29,99,172,.3), transparent 72%), radial-gradient(40% 50% at 96% 100%, rgba(73,166,71,.28), transparent 70%)}
.dx-hin{max-width:1120px; margin:0 auto}
.dx-crumb{display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(255,255,255,.7); margin:0 0 22px}
.dx-crumb a,.dx-crumb a:link,.dx-crumb a:visited{color:rgba(255,255,255,.7) !important; text-decoration:none !important} .dx-crumb a:hover{color:#fff !important} .dx-crumb span{opacity:.5} .dx-crumb b{color:#fff; font-weight:500}
.dx-htop{display:flex; justify-content:space-between; align-items:flex-end; gap:28px; flex-wrap:wrap}
.dx-hero h1{margin:0 0 14px; font-family:'Poppins',system-ui,sans-serif !important; font-weight:400; font-size:clamp(32px,4.4vw,56px); line-height:1.16; letter-spacing:-.015em; color:#DDE7F1}
.dx-hero p{margin:0; max-width:52ch; font-size:17px; line-height:1.65; color:rgba(255,255,255,.82)}
.dx-add,.dx-add:link,.dx-add:visited{display:inline-flex; align-items:center; gap:10px; height:54px; padding:0 28px; border-radius:999px; font-family:'Montserrat',sans-serif !important; font-weight:700; font-size:16px; color:#fff !important; white-space:nowrap; text-decoration:none !important;
  background:linear-gradient(135deg,var(--green),var(--green-dk)); box-shadow:0 16px 30px -14px rgba(30,159,73,.9); transition:transform .4s var(--spring)}
.dx-add:hover{transform:translateY(-2px)} .dx-add i{font-size:15px}
.dx-stat{margin-top:26px; display:inline-flex; align-items:center; gap:10px; font-size:17px; color:rgba(255,255,255,.85); padding:12px 20px; border-radius:999px; font-family:'Montserrat',sans-serif !important; font-weight:500;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18)}
.dx-stat b{color:#fff; font-weight:700; font-family:'Montserrat',sans-serif !important}
.dx-stat .dot{width:7px; height:7px; border-radius:50%; background:#7BE07A}

/* ---------- browse by category ---------- */
.dx-body{background:#fff; padding:clamp(56px,8vh,88px) clamp(24px,8vw,128px)}
.dx-in{max-width:1120px; margin:0 auto}
.dx-eyebrow{margin:0 0 10px; font-size:13px; letter-spacing:.26em; text-transform:uppercase; color:var(--blue-dk); font-weight:700; font-family:'Montserrat',sans-serif !important; display:flex; align-items:center; gap:14px}
.dx-h2{margin:0 0 22px; font-family:'Poppins',sans-serif !important; font-weight:400; font-size:clamp(26px,3vw,40px); line-height:1.2; letter-spacing:-.015em}
.dx-lgroup{margin:0 0 clamp(22px,3vh,34px)}
.dx-lgroup:last-child{margin-bottom:0}
.dx-letter{display:flex; align-items:center; gap:16px; margin:0 0 14px; font-family:'Poppins',sans-serif !important; font-weight:600; font-size:22px; color:var(--blue-dk); letter-spacing:.02em}
.dx-letter::after{content:""; flex:1; height:1px; background:linear-gradient(90deg, var(--line), transparent)}
.dx-cats{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
.dx-cat,.dx-cat:link,.dx-cat:visited{position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 18px 18px; border-radius:14px;
  border:1px solid #E7ECF3; background:#fff; text-decoration:none !important; color:var(--ink) !important; overflow:hidden;
  transition:background .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease)}
/* the animated gradient underline, drawn L→R on hover */
.dx-cat::after{content:""; position:absolute; left:0; right:0; bottom:0; height:3px; transform:scaleX(0); transform-origin:left center;
  background:linear-gradient(90deg, var(--blue), var(--green)); transition:transform .6s cubic-bezier(.22,.61,.36,1)}
.dx-cat:hover{background:#F9FBFE; border-color:#D3E0EE; box-shadow:0 14px 34px -26px rgba(18,41,63,.3)}
.dx-cat:hover::after{transform:scaleX(1)}
.dx-cat:focus-visible{outline:2px solid var(--blue); outline-offset:2px}
.dx-cn{font-size:17px; font-weight:600; line-height:1.35; font-family:'Montserrat',sans-serif !important; color:var(--ink); text-decoration:none}
.dx-cc{flex:none; min-width:34px; text-align:center; font-size:14px; font-weight:700; color:var(--blue-dk) !important; background:rgba(29,99,172,.09); border-radius:999px; padding:5px 11px; text-decoration:none; transition:background .3s var(--ease), color .3s}
.dx-cat:hover .dx-cc{background:rgba(29,99,172,.14); color:var(--blue-dk) !important; transition:background .45s var(--ease)}

/* ---------- recent listings ---------- */
.dx-recent{background:var(--paper); padding:clamp(56px,8vh,88px) clamp(24px,8vw,128px)}
.dx-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
/* The card's parts are <span>s inside one link. As plain inline spans, the
   body's padding only hit its first line (the category label sat indented,
   the title didn't) and the image box ignored its aspect ratio. Laid out as
   a column so the text is padded evenly and the Call / View buttons line up
   at the bottom of every card, whatever the title length. */
.dx-card{display:flex; flex-direction:column; background:#fff; border:1.5px solid var(--line); border-radius:18px; overflow:hidden; transition:transform .4s var(--spring), box-shadow .4s var(--ease), border-color .3s}
.dx-card:hover{transform:translateY(-4px); box-shadow:0 30px 55px -34px rgba(18,41,63,.5); border-color:#d6e0ec}
.dx-cimg{display:block; position:relative; aspect-ratio:1.75/1; background:linear-gradient(135deg,#16345A,var(--ink))}
.dx-cimg img{width:100%; height:100%; object-fit:cover; display:block}
.dx-cver{position:absolute; top:12px; right:12px; display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border-radius:999px; font-size:12px; font-weight:700; color:#0E5A2A;
  background:linear-gradient(160deg, rgba(255,255,255,.92), rgba(240,250,242,.86)); border:1px solid rgba(73,166,71,.4); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px)}
.dx-cver i{color:var(--green-dk)}
.dx-cbody{display:flex; flex-direction:column; flex:1; padding:16px 18px 18px}
.dx-ccat{display:block; font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; font-weight:700; color:var(--blue-dk); margin:0 0 6px}
.dx-card h3{margin:0 0 4px; font-family:'Poppins',sans-serif !important; font-weight:500; font-size:18px; line-height:1.25}
.dx-card p{margin:0 0 14px; font-size:14px; color:var(--muted); line-height:1.4; min-height:2.6em}
.dx-card p:empty{display:none}   /* no tagline → no blank gap */
/* The whole card opens the listing: the title link's ::after is stretched
   over the card. The Call / View buttons sit on a layer above it, so Call
   dials instead of opening the page. (.dx-cbody and h3 must stay unpositioned
   for the overlay to cover the image too.) */
.dx-card{position:relative}
.dx-clink::after{content:""; position:absolute; inset:0; z-index:1; border-radius:inherit}
.dx-clink:focus{outline:none}
.dx-clink:focus-visible::after{outline:3px solid var(--blue); outline-offset:-3px; border-radius:18px}
.dx-card:hover h3{color:var(--blue-dk)}
.dx-crow{display:flex; gap:8px; margin-top:auto; padding-top:12px}
.dx-crow a{position:relative; z-index:2}
/* Written as ".dx-card a.dx-mini…:link" so the section link reset above
   (".dx-recent a:link { color:inherit }") can't turn the white text dark. */
.dx-card a.dx-mini,.dx-card a.dx-mini:link,.dx-card a.dx-mini:visited{flex:1; display:inline-flex; align-items:center; justify-content:center; gap:8px; height:42px; border-radius:10px; font-size:14px; font-weight:600; text-decoration:none !important;
  transition:background .25s, color .25s, border-color .25s, box-shadow .25s, transform .2s var(--spring)}
.dx-card a.dx-mini i{font-size:13px}
.dx-card a.dx-mini.call,.dx-card a.dx-mini.call:link,.dx-card a.dx-mini.call:visited{color:#fff; background:linear-gradient(135deg,var(--blue),var(--blue-dk)); box-shadow:0 8px 16px -10px rgba(17,75,147,.8)}
.dx-card a.dx-mini.view,.dx-card a.dx-mini.view:link,.dx-card a.dx-mini.view:visited{color:var(--ink); background:#fff; border:1.5px solid var(--line)}
.dx-card a.dx-mini.view i{transition:transform .25s var(--spring)}
@media (hover:hover){
  .dx-card a.dx-mini.call:hover{background:linear-gradient(135deg,var(--blue-dk),#0B3A73); box-shadow:0 10px 20px -10px rgba(17,75,147,.95)}
  .dx-card a.dx-mini.view:hover,.dx-card:hover a.dx-mini.view{border-color:var(--blue); color:var(--blue-dk)}
  .dx-card:hover a.dx-mini.view i{transform:translateX(3px)}
}
.dx-card a.dx-mini:active{transform:scale(.97)}
.dx-card a.dx-mini:focus-visible{outline:2px solid var(--blue); outline-offset:2px}
.dx-more{margin-top:26px; text-align:center}
.dx-more a,.dx-more a:link,.dx-more a:visited{text-decoration:none !important; display:inline-flex; align-items:center; gap:8px; height:50px; padding:0 26px; border-radius:999px; font-weight:600; color:var(--blue-dk); border:1.5px solid var(--blue); background:#fff; transition:background .3s, color .3s}
.dx-more a:hover{background:var(--blue); color:#fff}

/* ---------- add band + disclaimer ---------- */
.dx-cta{background:#fff; padding:0 clamp(24px,8vw,128px) clamp(56px,8vh,88px)}
.dx-ctain{max-width:1120px; margin:0 auto}
.dx-band{border-radius:24px; padding:clamp(28px,4vw,44px); display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  background:linear-gradient(120deg,#EAF1FA,#E6F4E6); border:1px solid var(--line)}
.dx-band h3{margin:0 0 6px; font-family:'Poppins',sans-serif !important; font-weight:500; font-size:clamp(20px,2.2vw,28px)}
.dx-band p{margin:0; color:var(--muted); font-size:15.5px; max-width:48ch}
.dx-band p + p{margin-top:8px}
.dx-band .dx-q{font-size:14px}
.dx-band .dx-q a{color:var(--blue, #1D63AC); font-weight:600; white-space:nowrap}
.dx-about{margin:clamp(28px,4vh,40px) 0 0; font-size:15.5px; line-height:1.7; color:var(--ink, #12293F); max-width:75ch}
.dx-disc{margin:clamp(20px,3vh,28px) 0 0; font-size:12px; line-height:1.7; color:var(--muted); max-width:90ch}
.dx-disc p{margin:0 0 .6em}

@media (max-width:960px){ .dx-cats{grid-template-columns:repeat(2,1fr)} .dx-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:680px){ .dx-grid{grid-template-columns:1fr} .dx-htop{flex-direction:column; align-items:flex-start} .dx-band{flex-direction:column; align-items:flex-start} }
@media (max-width:640px){ .dx-hero,.dx-body,.dx-recent,.dx-cta{padding-left:20px; padding-right:20px} }
@media (prefers-reduced-motion:reduce){ .dx *{transition:none !important} }

/* Font Awesome icons: re-assert after the page's own font-family lock above so glyphs render. */
i.fa-solid,i.fa-regular,i.fa-brands,span.fa-solid,span.fa-regular,span.fa-brands,i[class*="fa-"],span[class*="fa-"]{font-family:"Font Awesome 6 Free" !important}
i.fa-brands,span.fa-brands{font-family:"Font Awesome 6 Brands" !important}

/* ================= single listing ================= */
.dl{--ink:#12293F; --muted:#5D6B7A; --blue:#1D63AC; --blue-dk:#114B93; --green:#49A647; --green-dk:#1E9F49; --paper:#EEF2F7; --line:#E2E8F0;
  --ease:cubic-bezier(.22,.61,.36,1); --spring:cubic-bezier(.2,.9,.3,1);
  background:#fff; color:var(--ink); font-family:'Montserrat',system-ui,sans-serif !important;
  padding:clamp(104px,13vh,140px) clamp(24px,8vw,128px) clamp(56px,8vh,88px)}
.dl,.dl *,.dl *::before,.dl *::after{box-sizing:border-box}
.dl,.dl p,.dl span,.dl a,.dl li,.dl h1,.dl h3,.dl b,.dl small{font-family:'Montserrat',system-ui,sans-serif}
.dl a,.dl a:link,.dl a:visited{text-decoration:none !important; color:inherit}
.dl-in{max-width:1120px; margin:0 auto}

/* breadcrumb */
.dl-crumb{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); margin:0 0 26px}
.dl-crumb a,.dl-crumb a:link,.dl-crumb a:visited{color:var(--muted) !important; text-decoration:none !important} .dl-crumb a:hover{color:var(--ink) !important}
.dl-crumb span{opacity:.5}

/* ---------- top: card + info ---------- */
.dl-top{display:grid; grid-template-columns:1fr 1.1fr; gap:clamp(32px,5vw,64px); align-items:start}

/* the business card as an object */
.dl-cardwrap{position:relative}
.dl-card{position:relative; aspect-ratio:1.75/1; border-radius:16px; overflow:hidden; background:linear-gradient(135deg,#16345A,var(--ink));
  box-shadow:0 40px 80px -34px rgba(18,41,63,.5), 0 3px 10px rgba(18,41,63,.14); transform:rotate(-1.4deg); transition:transform .5s var(--ease)}
.dl-cardwrap:hover .dl-card{transform:rotate(0deg) translateY(-3px)}
.dl-card img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block}
/* branded fallback when no image (kept behind the img) */
.dl-card .dl-fallback{position:absolute; inset:0; display:grid; place-items:center; text-align:center; padding:22px; color:#fff}
.dl-card .dl-fallback b{font-family:'Poppins',sans-serif !important; font-weight:500; font-size:clamp(18px,2.4vw,24px); line-height:1.2}
.dl-card .dl-fallback span{display:block; margin-top:8px; font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.6)}
.dl-cardtag{position:absolute; left:16px; bottom:-12px; z-index:2; font-size:11px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; color:var(--muted);
  background:#fff; border:1px solid var(--line); padding:7px 12px; border-radius:999px; box-shadow:0 10px 22px -14px rgba(18,41,63,.3)}

/* info column */
.dl-catrow{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 12px}
.dl-cat{font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-weight:700; color:var(--blue-dk); background:rgba(29,99,172,.09); padding:6px 12px; border-radius:999px}
.dl-name{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 8px}
.dl-name h1{margin:0; font-family:'Poppins',system-ui,sans-serif !important; font-weight:500; font-size:clamp(28px,3.4vw,44px); line-height:1.2; letter-spacing:-.01em}
/* verified glass pill */
.dl-verify{display:inline-flex; align-items:center; gap:7px; padding:7px 14px 7px 11px; border-radius:999px; font-size:13px; font-weight:700; color:#0E5A2A; position:relative; overflow:hidden;
  background:linear-gradient(160deg, rgba(73,166,71,.18), rgba(73,166,71,.08)); border:1px solid rgba(73,166,71,.4);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.dl-verify .fa-circle-check{color:var(--green-dk); font-size:15px}
.dl-verify::after{content:""; position:absolute; top:-60%; left:-40%; width:40%; height:220%; background:linear-gradient(100deg,transparent,rgba(255,255,255,.6),transparent);
  transform:translateX(-60%) rotate(8deg); animation:dl-shine 3.4s var(--ease) 1s infinite}
@keyframes dl-shine{0%{transform:translateX(-60%) rotate(8deg)} 22%,100%{transform:translateX(380%) rotate(8deg)}}
.dl-tagline{margin:0 0 22px; font-size:18px; line-height:1.5; color:var(--muted); font-family:'Montserrat',sans-serif !important}

/* primary actions (Maps/Yelp) */
/* Button colours are written as ".dl a.dl-btn…:link" on purpose: the page's
   link reset (".dl a:link { color:inherit }") is more specific than a plain
   ".dl-btn.pri", and was turning the white Call / Directions text dark. */
.dl-name + .dl-actions{margin-top:18px}   /* no tagline → don't jam the buttons under the name */
/* Equal-width buttons, laid out by how many there are so a row never ends
   with one stray button: 2 → side by side, 3 → one row, 4 → 2 × 2. */
.dl-actions{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0 0 28px; max-width:600px}
.dl-actions:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}
.dl-actions:has(> :only-child){grid-template-columns:minmax(0,280px)}
.dl a.dl-btn,.dl a.dl-btn:link,.dl a.dl-btn:visited{display:inline-flex; align-items:center; justify-content:center; gap:10px; height:52px; padding:0 24px; border-radius:14px; font-weight:600; font-size:15.5px; letter-spacing:.01em; text-decoration:none !important;
  transition:transform .3s var(--spring), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s}
.dl a.dl-btn i{font-size:16px}
.dl a.dl-btn.pri,.dl a.dl-btn.pri:link,.dl a.dl-btn.pri:visited{color:#fff; background:linear-gradient(135deg,var(--blue),var(--blue-dk)); box-shadow:0 10px 20px -12px rgba(17,75,147,.85)}
.dl a.dl-btn.dir,.dl a.dl-btn.dir:link,.dl a.dl-btn.dir:visited{color:#fff; background:linear-gradient(135deg,var(--green),var(--green-dk)); box-shadow:0 10px 20px -12px rgba(30,159,73,.85)}
.dl a.dl-btn.ghost,.dl a.dl-btn.ghost:link,.dl a.dl-btn.ghost:visited{color:var(--ink); background:#fff; border:1.5px solid var(--line)}
.dl a.dl-btn.ghost i{color:var(--blue-dk)}
@media (hover:hover){
  .dl a.dl-btn:hover{transform:translateY(-2px)}
  .dl a.dl-btn.pri:hover{background:linear-gradient(135deg,var(--blue-dk),#0B3A73); box-shadow:0 14px 26px -12px rgba(17,75,147,.9)}
  .dl a.dl-btn.dir:hover{background:linear-gradient(135deg,var(--green-dk),#167A38); box-shadow:0 14px 26px -12px rgba(30,159,73,.9)}
  .dl a.dl-btn.ghost:hover{border-color:var(--blue); color:var(--blue-dk); background:#F5F9FE}
}
.dl a.dl-btn:active{transform:scale(.97)}
.dl a.dl-btn:focus-visible{outline:2px solid var(--blue); outline-offset:3px}
/* The category pill and "Back to…" link lost their blue to the same reset. */
.dl a.dl-cat,.dl a.dl-cat:link,.dl a.dl-cat:visited{color:var(--blue-dk)}
.dl a.dl-back,.dl a.dl-back:link,.dl a.dl-back:visited{color:var(--blue-dk)}
.dl .dl-social a:link,.dl .dl-social a:visited{color:var(--blue-dk)}
.dl .dl-social a:hover{color:#fff}

/* details list */
.dl-details{list-style:none; margin:0 0 22px; padding:0; border-top:1px solid var(--line)}
.dl-details li{display:flex; align-items:flex-start; gap:14px; padding:15px 4px; border-bottom:1px solid var(--line)}
.dl-details i{width:22px; text-align:center; color:var(--blue); font-size:16px; margin-top:2px; flex:none}
.dl-details .k{display:block; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-weight:600; margin-bottom:2px}
.dl-details .val{font-size:16px; color:var(--ink); line-height:1.45; font-family:'Montserrat',sans-serif !important}
.dl-details a.val,.dl-details a.val:link,.dl-details a.val:visited{color:var(--ink) !important; text-decoration:none !important} .dl-details a.val:hover{color:var(--blue-dk) !important; text-decoration:underline !important; text-underline-offset:3px}

/* services */
.dl-services{margin:0 0 22px}
.dl-services h3{margin:0 0 8px; font-family:'Poppins',sans-serif !important; font-weight:500; font-size:18px}
.dl-services p{margin:0; font-size:16px; line-height:1.7; color:#3A4A5C; white-space:pre-line}

/* socials */
.dl-social{display:flex; gap:8px}
.dl-social a{width:44px; height:44px; border-radius:12px; border:1px solid var(--line); display:grid; place-items:center; font-size:17px; color:var(--blue-dk);
  transition:transform .35s var(--spring), background .3s, color .3s, border-color .3s}
.dl-social a.ig:hover{background:#E1306C; color:#fff; border-color:#E1306C}
.dl-social a.tg:hover{background:#229ED9; color:#fff; border-color:#229ED9}
.dl-social a.fb:hover{background:#1877F2; color:#fff; border-color:#1877F2}
.dl-social a:hover{transform:translateY(-2px)}

/* ---------- map ---------- */
.dl-map{margin-top:clamp(40px,6vh,64px)}
.dl-map-frame{position:relative; width:100%; border-radius:20px; overflow:hidden; border:1px solid var(--line); box-shadow:0 30px 60px -44px rgba(18,41,63,.4); aspect-ratio:16/5; min-height:240px}
/* On a phone, 16:5 with a 240px minimum height made the box 770px wide and the
   whole page scroll sideways. A fixed height instead. */
@media (max-width:760px){ .dl-map-frame{aspect-ratio:auto; min-height:0; height:260px} }
.dl-map-frame iframe{position:absolute; inset:0; width:100%; height:100%; border:0}

/* ---------- related + footer ---------- */
.dl-related{margin-top:clamp(44px,6vh,72px)}
.dl-related h3{margin:0 0 18px; font-family:'Poppins',sans-serif !important; font-weight:500; font-size:clamp(20px,2.2vw,26px)}
.dl-rgrid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.dl-rcard{display:block; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#fff; transition:transform .4s var(--spring), box-shadow .4s var(--ease), border-color .3s}
.dl-rcard:hover{transform:translateY(-3px); box-shadow:0 26px 46px -32px rgba(18,41,63,.45); border-color:#d6e0ec}
.dl-rcard .rimg{aspect-ratio:1.75/1; background:linear-gradient(135deg,#16345A,var(--ink))}
.dl-rcard .rimg img{width:100%; height:100%; object-fit:cover; display:block}
.dl-rcard .rbody{padding:14px 16px 16px}
.dl-rcard b{display:block; font-family:'Poppins',sans-serif !important; font-weight:500; font-size:16px; line-height:1.25; margin-bottom:4px}
.dl-rcard small{font-size:13px; color:var(--muted)}

.dl-foot{margin-top:clamp(36px,5vh,56px); padding-top:22px; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:flex-start; gap:20px; flex-wrap:wrap}
.dl-back{display:inline-flex; align-items:center; gap:8px; font-weight:600; color:var(--blue-dk)}
.dl-back::before{content:"←"}
.dl-disc{font-size:12px; color:var(--muted); line-height:1.6; max-width:70ch}

@media (max-width:900px){ .dl-top{grid-template-columns:1fr; gap:34px} .dl-cardwrap{max-width:440px} .dl-rgrid{grid-template-columns:1fr} }
/* Phones: Call gets its own full-width row (it's the main action there); the
   rest go two per row, and a leftover last button spans the full width. */
@media (max-width:640px){
  .dl{padding-left:20px; padding-right:20px}
  .dl .dl-actions,.dl .dl-actions:has(> :nth-child(3):last-child){grid-template-columns:1fr 1fr; max-width:none}
  .dl .dl-actions a.dl-btn:link,.dl .dl-actions a.dl-btn:visited{padding:0 12px}
  .dl-actions > .pri,
  .dl-actions:has(> .pri) > a:last-child:nth-child(even),
  .dl-actions:not(:has(> .pri)) > a:last-child:nth-child(odd){grid-column:1 / -1}
}
@media (prefers-reduced-motion:reduce){ .dl *{transition:none !important; animation:none !important} .dl-card{transform:rotate(-1.4deg)} }

/* Font Awesome icons: re-assert after the page's own font-family lock above so glyphs render. */
i.fa-solid,i.fa-regular,i.fa-brands,span.fa-solid,span.fa-regular,span.fa-brands,i[class*="fa-"],span[class*="fa-"]{font-family:"Font Awesome 6 Free" !important}
i.fa-brands,span.fa-brands{font-family:"Font Awesome 6 Brands" !important}

/* ================= theme additions =================
   The authored design assumed every listing has a card image and that the
   whole page sits inside a .dx / .dl wrapper. Neither holds here: 300+ of the
   imported listings have no image, and the templates render sections directly.
   These rules cover both. */

/* design tokens, since there is no .dx/.dl wrapper element in the templates */
.dx-hero,.dx-body,.dx-recent,.dx-cta,.dl{
  --ink:#12293F; --muted:#5D6B7A; --blue:#1D63AC; --blue-dk:#114B93;
  --green:#49A647; --green-dk:#1E9F49; --paper:#EEF2F7; --line:#E2E8F0;
  --ease:cubic-bezier(.22,.61,.36,1); --spring:cubic-bezier(.2,.9,.3,1);
}

/* initial-letter placeholder when a listing has no featured image */
.dx-cfallback{
  position:absolute; inset:0; display:grid; place-items:center;
  font-family:'Poppins',sans-serif; font-weight:600; font-size:44px; color:#fff;
  background:linear-gradient(135deg,var(--blue),var(--green-dk));
  text-transform:uppercase;
}
.dx-cimg{position:relative; display:block; overflow:hidden}

/* pagination (the design had none — 325 listings need it) */
.dx-recent .pagination,.dx-recent .nav-links{
  display:flex; justify-content:center; align-items:center; gap:8px;
  flex-wrap:wrap; margin:38px 0 0;
}
.dx-recent .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:44px; height:44px; padding:0 14px; border-radius:12px;
  border:1px solid var(--line); background:#fff; color:var(--ink);
  font-weight:600; font-size:15px; text-decoration:none;
  transition:background .3s var(--ease), border-color .3s, color .3s;
}
.dx-recent .page-numbers:hover{background:#F4F8FC; border-color:#CFDDEC}
.dx-recent .page-numbers.current{
  background:linear-gradient(135deg,var(--blue),var(--blue-dk));
  border-color:transparent; color:#fff;
}
.dx-recent .page-numbers.dots{border:0; background:transparent; min-width:24px}
.dx-recent .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* "back to all categories" link under the grid */
.dx-more{margin-top:34px; text-align:center}
.dx-more a{
  display:inline-flex; align-items:center; gap:8px; height:48px; padding:0 24px;
  border-radius:999px; border:1px solid var(--line); background:#fff;
  color:var(--blue-dk); font-weight:600; font-size:15px; text-decoration:none;
  transition:background .3s var(--ease), border-color .3s;
}
.dx-more a:hover{background:#F4F8FC; border-color:#CFDDEC}

/* related-card image placeholder */
.dl-rcard .rimg{background:linear-gradient(135deg,#E8EFF7,#DCE7F2)}

/* ================= listing images follow their own shape (25 Nov 2026) =================
   Imported cards come in every shape: ~60% business-card, the rest portrait
   (two-sided cards stacked), square, flyers and roll-up banners. A fixed
   1.75:1 box with object-fit:cover cut most of them in half. */

/* Single listing: the frame takes the image's ratio (--r, set inline from the
   image's real size). Width is capped so a tall image is at most ~620px high;
   a card-shaped one still fills the column as before. */
.dl-cardwrap{width:min(100%, calc(min(620px, 75vh) * var(--r, 1.75))); margin-inline:auto}
.dl-card.has-img{aspect-ratio:var(--r, 1.75); background:#fff}
.dl-card.has-img img{position:absolute; inset:0; width:100%; height:100%; object-fit:contain}
@media (max-width:900px){ .dl-cardwrap{max-width:440px} }

/* Grid cards (directory, categories, "More in"): one frame size so rows and
   Call buttons line up, but the whole image is shown, over a blurred copy of
   itself instead of empty bars. */
.dx-cimg,.dl-rcard .rimg{position:relative; display:block; overflow:hidden; isolation:isolate}
.pand-fit-bg{position:absolute; inset:-14%; z-index:0; background-size:cover; background-position:center;
  filter:blur(16px) saturate(1.05); opacity:.7; transform:scale(1.05)}
.dx-cimg img.pand-fit,.dl-rcard .rimg img.pand-fit{position:relative; z-index:1; width:100%; height:100%; object-fit:contain; display:block}
.dx-cver{z-index:2}
