/*
 * Petuaria ReVisited V7. SMCMS integration overrides.
 * Keep the V6 visual design in petuaria.css; this file is scoped to CMS outputs.
 */
.petuaria-cms .brand-logo { object-fit: contain; object-position: left center; }
.petuaria-cms .nav-inner .brand { max-width: 220px; }
.petuaria-cms .home-main, .petuaria-cms .inner-main { overflow-x: clip; }
.petuaria-cms .inner-main .hero-lead { line-height: 1.6; }
.petuaria-cms .story-body .petuaria-prose-body,
.petuaria-cms .petuaria-prose-body { max-width: 100%; min-width:0; }
.petuaria-cms .story-body a:not(.button):not(.text-link),
.petuaria-cms .petuaria-prose-body a:not(.button):not(.text-link) { color:var(--teal); text-decoration:underline; text-underline-offset:3px; }
.petuaria-cms .petuaria-prose-body p { color:var(--muted); font-size:15px; line-height:1.85; margin: 0 0 18px; }
.petuaria-cms .petuaria-prose-body > p:first-child { font-size: clamp(18px,1.7vw,22px); color:var(--ink); }
.petuaria-cms .petuaria-prose-body img,
.petuaria-cms .story-body img {max-width:100%; height:auto; float:none;}
.petuaria-cms .petuaria-prose-body iframe { max-width:100%; }
.petuaria-cms .petuaria-prose-body h2 { font-size:clamp(28px,3vw,42px); margin:30px 0 16px; }
.petuaria-cms .petuaria-prose-body h3 { font-size:30px; margin:25px 0 13px; }
.petuaria-cms .petuaria-prose-body ul { padding-left:25px; margin:15px 0 22px; }
.petuaria-cms .petuaria-prose-body ul li { margin-bottom:8px; color:var(--muted); }
.petuaria-cms .petuaria-prose-body .petuaria-inline-cta { display:inline-flex; color:#fff !important; text-decoration:none !important; }
.petuaria-cms .petuaria-prose-body p:has(> .petuaria-inline-cta) { margin-top:25px; }
.petuaria-cms .petuaria-news-images { display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:30px 0; }
.petuaria-cms .petuaria-news-images img { width:100%; max-height:410px; object-fit:cover; }
.petuaria-cms .petuaria-byline { margin-top:30px; color:#728694; font-size:12px; }
.petuaria-cms .petuaria-tags { font-size:13px; margin:30px 0; }
.petuaria-cms .petuaria-tags a { margin-right:9px; color:var(--teal); }
.petuaria-cms .petuaria-pagination { margin-top:40px; padding-top:20px; border-top:1px solid var(--line); }
.petuaria-cms .petuaria-pagination a, .petuaria-cms .petuaria-pagination span { display:inline-block; padding:8px 12px; margin:0 4px 6px 0; border:1px solid var(--line); }
.petuaria-cms .petuaria-pagination a:hover { background:#e5eff1; }
.petuaria-cms .petuaria-card-photo { display:block; width:100%; height:100%; position:absolute; inset:0; object-fit:cover; z-index:1; }
.petuaria-cms .card-art,.petuaria-cms .archive-card-art { position:relative; overflow:hidden; }
.petuaria-cms .archive-card-art .archive-art-symbol { position:relative;z-index:1; }
.petuaria-cms .survey-gallery .gallery-image { display:block; height:185px; }
.petuaria-cms .survey-gallery .gallery-feature .gallery-image { height:413px; }
.petuaria-cms .survey-gallery .gallery-image img { width:100%;height:100%; object-fit:cover; }
.petuaria-cms .gallery-dialog { position:fixed; }
.petuaria-cms .gallery-dialog .gallery-dialog-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px; }
.petuaria-cms .gallery-dialog .gallery-dialog-footer button { padding:9px 14px; border:1px solid var(--line); background:#edf3f3; cursor:pointer; }
.petuaria-cms .petuaria-feedback { border-top:1px solid var(--line); margin-top:40px; padding-top:35px; }
.petuaria-cms .petuaria-feedback h2 { font-size:34px; margin-bottom:20px; }
.petuaria-cms .petuaria-comment {padding:18px 0;border-bottom:1px solid var(--line);}
.petuaria-cms .petuaria-comment p {white-space:pre-wrap;}
.petuaria-cms .petuaria-comment-form fieldset,.petuaria-cms .petuaria-rating fieldset {border:0; padding:0; margin:0; }
.petuaria-cms .petuaria-comment-form label {display:block; font-weight:700; margin:16px 0;}
.petuaria-cms .petuaria-comment-form input,.petuaria-cms .petuaria-comment-form textarea,.petuaria-cms .petuaria-rating select {
  display:block;width:100%; padding:12px;border:1px solid #b9ccd4; background:#fff;color:var(--ink);font:inherit;margin-top:6px;
}
.petuaria-cms .petuaria-rating .button {margin-top:15px;}
/* Existing CMS banner helper: no replacement of href=site/banner_click_through/{id}. */
.petuaria-cms .petuaria-ad-slot { width:100%; max-width:480px; aspect-ratio:1 / 1; flex:0 1 auto; margin-inline:auto; }
.petuaria-cms .petuaria-ad-slot .advertisement { margin:0; padding:0; width:100%;height:100%; background:var(--sky);display:flex;align-items:center;justify-content:center; }
.petuaria-cms .petuaria-ad-slot .advertisement > a { display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden; }
.petuaria-cms .petuaria-ad-slot .advertisement img { display:block; max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain; }
.petuaria-cms .petuaria-ad-slot:empty { display:none; }
.petuaria-cms .community-grid .petuaria-ad-slot { align-self:start; }
.petuaria-cms .article-sidebar .petuaria-ad-slot,
.petuaria-cms .survey-sidebar .petuaria-ad-slot { max-width:100%; }
/* The live Social Maps markup is supplied by {petuaria_map}; let core control its markers / InfoWindows. */
.petuaria-cms .map-frame { overflow:hidden; }
.petuaria-cms .map-frame .petuaria-map-shell {position:relative;display:block;width:100%;height:620px;min-height:420px;overflow:hidden;}
.petuaria-cms .map-frame .petuaria-map-shell .google_maps_container,
.petuaria-cms .map-frame .petuaria-map-shell .google_maps_wrapper,
.petuaria-cms .map-frame .petuaria-map-shell #cms_map_petuaria_map_1,
.petuaria-cms .map-frame .petuaria-map-shell > iframe {max-width:100%;width:100%;height:100%;}
.petuaria-cms .map-frame .petuaria-map-shell .google_maps_container {position:absolute;inset:0;}
.petuaria-cms .map-frame .petuaria-map-shell .gm-style-iw,
.petuaria-cms .map-frame .petuaria-map-shell .gm-style-iw-c {max-width:min(370px,85vw);}
.petuaria-cms .map-frame .petuaria-map-shell .gm-style-iw-d {max-height:320px!important;}
.petuaria-cms .map-frame .petuaria-map-shell .gm-style-iw a {color:var(--teal);font-weight:700;}
/* Search control only: selectors deliberately narrow. The public map's exact DOM should be verified after maintenance. */
.petuaria-cms .petuaria-map-shell .petuaria-map-search,
.petuaria-cms .petuaria-map-shell .map-search-widget {display:none!important;}
@media(max-width:820px) {
 .petuaria-cms .map-frame .petuaria-map-shell {height:540px;min-height:380px;}
 .petuaria-cms .article-layout,.petuaria-cms .survey-layout,.petuaria-cms .story-grid {gap:38px;}
}
@media(max-width:620px) {
 .petuaria-cms .map-frame .petuaria-map-shell {height:480px;min-height:360px;}
 .petuaria-cms .petuaria-ad-slot {max-width:min(100%,440px);}
 .petuaria-cms .petuaria-news-images {grid-template-columns:1fr;}
 .petuaria-cms .survey-gallery .gallery-feature .gallery-image {height:300px;}
 .petuaria-cms .survey-gallery .gallery-image {height:160px;}
}

.petuaria-cms .petuaria-facebook-comments {width:100%;max-width:480px;}
.petuaria-cms .petuaria-facebook-comments h3 {font-size:24px;}

/* V7.1: legacy SMCMS homepage content tags. Retains V6 composition while
   bypassing the newer PHP content tags until their live evaluation is diagnosed. */
.petuaria-cms .home-main .cards > .clear,
.petuaria-cms .home-main .news-grid > .clear {display:none!important;}
.petuaria-cms .home-main .cards > .latestVenue {
  display:flex; flex-direction:column; min-width:0; overflow:hidden; margin:0;
  background:var(--white); border:1px solid var(--line); padding:0 0 26px;
}
.petuaria-cms .home-main .cards > .latestVenue:nth-child(n+7) {display:none;}
.petuaria-cms .home-main .cards > .latestVenue .venue_image_wrapper {
  margin:0 0 18px; width:100%;height:180px;overflow:hidden;background:#d8e6e8;
}
.petuaria-cms .home-main .cards > .latestVenue .venue_image_wrapper img {
  width:100%!important;height:100%!important;object-fit:cover;display:block;
}
.petuaria-cms .home-main .cards > .latestVenue > h2 {
  font-family:var(--serif);font-weight:400;font-size:28px;line-height:1.2;
  margin:10px 22px 12px;
}
.petuaria-cms .home-main .cards > .latestVenue > .date {
  margin:8px 22px 2px;font-size:11px;font-weight:700;letter-spacing:.08em;
  color:var(--teal);text-transform:uppercase;
}
.petuaria-cms .home-main .cards > .latestVenue > p:not(.date) {
  margin:0 22px 18px;font-size:13px;line-height:1.7;color:var(--muted);
}
.petuaria-cms .home-main .cards > .latestVenue .read_more {
  color:var(--teal);font-weight:700;text-decoration:underline;
}
.petuaria-cms .home-main .news-grid > #latestNews {
  display:block;position:relative;background:var(--white); padding:32px;
  min-width:0;overflow:hidden;margin:0;
}
.petuaria-cms .home-main .news-grid > #latestNews h2 {
  font-family:var(--serif);font-size:32px;line-height:1.15;margin:15px 0;
}
.petuaria-cms .home-main .news-grid > #latestNews .article_date {
  font-size:11px;text-transform:uppercase;font-weight:800;letter-spacing:.1em;
  color:var(--teal);margin:0 0 12px;
}
.petuaria-cms .home-main .news-grid > #latestNews .news_article_image_wrapper {
  float:none!important;padding:0!important;margin:0 0 15px;
}
.petuaria-cms .home-main .news-grid > #latestNews .news_article_image_wrapper img {
  max-width:100%;width:100%;height:auto;max-height:180px;object-fit:cover;
}
.petuaria-cms .home-main .news-grid > #latestNews p:not(.article_date) {
  color:var(--muted);font-size:14px;line-height:1.7;
}
.petuaria-cms .home-main .news-grid > #latestNews a.read_more {
  color:var(--teal);font-weight:700;
}
@media(max-width:820px){
 .petuaria-cms .home-main .cards > .latestVenue:nth-child(n+7){display:none;}
}
/* Defence in depth for older/other SMCMS fragments. The V7.1 PHP views also
   remove the actual rating UI rather than merely hiding it. */
.petuaria-cms .petuaria-rating {display:none!important;}

/* V7.2: homepage map sizing and Google Maps renderer compatibility.
   SMCMS emits max-width:900px; height:600px inline on .social_maps_wrapper.
   Make the real Google Maps element fill the responsive V6 map frame. */
.petuaria-cms .home-main .map-frame .petuaria-map-shell {
  width: 100%;
  max-width: 100%;
  height: clamp(440px, 52vw, 620px);
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.petuaria-cms .home-main .map-frame .petuaria-map-shell .social_maps_wrapper,
.petuaria-cms .home-main .map-frame .petuaria-map-shell #cms_map_petuaria_map_1 {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  box-sizing: border-box;
}
/* The V6 global img/svg max-width rule must not constrain Google map tiles.
   Reset only inside the map canvas. */
.petuaria-cms .home-main .map-frame .petuaria-map-shell .gm-style img,
.petuaria-cms .home-main .map-frame .petuaria-map-shell .gm-style svg {
  max-width: none !important;
}
/* Remove only the public homepage map search, leaving all map data, markers,
   Google controls and the SMCMS admin marker editor unmodified. */
.petuaria-cms .home-main #finds-map .petuaria-map-shell #search_map {
  display: none !important;
}
/* V7.2 SMCMS snippets output clean V6 discovery cards with one main image,
   or the same brand-colour fallback motif used on the archive. */
.petuaria-cms .home-main .cards > .discovery-card {min-width:0; height:auto;}
.petuaria-cms .home-main .cards > .discovery-card .card-art {display:flex; width:100%; flex:0 0 172px;}
.petuaria-cms .home-main .cards > .discovery-card .card-copy {min-width:0;}
.petuaria-cms .home-main .cards > .discovery-card .card-copy h3 a {color:var(--ink);}
.petuaria-cms .home-main .cards > .discovery-card .card-copy p {overflow-wrap:anywhere;}
.petuaria-cms .home-main .cards .petuaria-image-placeholder-label {
  position:absolute; left:23px; bottom:14px; z-index:2;
  color:var(--ink); text-transform:uppercase; font-size:10px;
  letter-spacing:.13em; font-weight:700;
}
.petuaria-cms .home-main .cards .petuaria-read-more {margin-top:auto;}
/* New News snippet uses one article element, without the floated thumbnail,
   fixed box height, or extra clear div in the original {latest_news} output. */
.petuaria-cms .home-main .news-grid {align-items:stretch;}
.petuaria-cms .home-main .news-grid > .petuaria-home-news {
  display:flex !important;
  flex-direction:column;
  align-items:stretch;
  min-width:0;
  min-height:0;
  width:100%;
  height:auto !important;
  max-height:none !important;
  padding:34px 38px 38px;
  overflow:visible;
  background:var(--white);
  box-sizing:border-box;
}
.petuaria-cms .home-main .petuaria-home-news .news-tag {align-self:flex-start; margin-bottom:20px;}
.petuaria-cms .home-main .petuaria-home-news h3 {font-size:clamp(26px,3vw,39px);margin:12px 0 15px;overflow-wrap:anywhere;}
.petuaria-cms .home-main .petuaria-home-news .petuaria-news-feature-image {display:block;max-width:100%;margin:3px 0 16px;}
.petuaria-cms .home-main .petuaria-home-news .petuaria-news-feature-image img {
  display:block;width:100%;max-width:100%;height:auto;max-height:190px;
  object-fit:cover;object-position:center;
}
.petuaria-cms .home-main .petuaria-home-news p {max-width:100%;margin:0 0 18px;overflow-wrap:anywhere;}
.petuaria-cms .home-main .petuaria-home-news .petuaria-read-more {
  margin-top:auto;align-self:flex-start;color:var(--teal);font-size:12px;font-weight:800;
}
/* Fallback in case the CSS is uploaded before the SQL snippets are applied. */
.petuaria-cms .home-main .news-grid > #latestNews {
  height:auto !important;max-height:none !important;min-height:0;align-self:stretch;
}
.petuaria-cms .home-main .news-grid > div[style*="clear"] {display:none !important;}
@media (max-width: 820px) {
  .petuaria-cms .home-main .map-frame .petuaria-map-shell {height:500px;}
}
@media (max-width: 620px) {
  .petuaria-cms .home-main .map-frame .petuaria-map-shell {height:410px;}
  .petuaria-cms .home-main .news-grid > .petuaria-home-news {padding:25px 24px 30px;}
}


/* -------------------------------------------------------------------------
 * Petuaria V7.3: restore V6 card-heading typography.
 * The global .card-copy a / .news-feature a selectors apply 12px and bold to
 * ALL links, including the title links inside h3. Those title links should
 * inherit the heading's font size, weight and rhythm.
 * ------------------------------------------------------------------------- */
.petuaria-cms .home-main .cards .discovery-card .card-copy h3 {
  font-family:var(--serif);
  font-size:clamp(27px, 2.35vw, 34px);
  font-weight:400;
  line-height:1.18;
  margin:16px 0 12px;
  overflow-wrap:normal;
}
.petuaria-cms .home-main .cards .discovery-card .card-copy h3 a,
.petuaria-cms .home-main .news-grid .petuaria-home-news h3 a {
  display:inline;
  font-family:inherit;
  font-size:inherit;
  font-weight:inherit;
  line-height:inherit;
  color:var(--ink);
  margin:0;
  text-decoration:none;
}
.petuaria-cms .home-main .cards .discovery-card .card-copy h3 a:hover,
.petuaria-cms .home-main .news-grid .petuaria-home-news h3 a:hover {
  color:var(--teal);
  text-decoration:underline;
  text-underline-offset:4px;
}
.petuaria-cms .home-main .news-grid .petuaria-home-news h3 {
  font-family:var(--serif);
  font-size:clamp(30px, 3.15vw, 43px);
  font-weight:400;
  line-height:1.13;
  letter-spacing:-.035em;
  margin:13px 0 18px;
}
.petuaria-cms .home-main .news-grid .petuaria-home-news .petuaria-read-more,
.petuaria-cms .home-main .cards .discovery-card .petuaria-read-more {
  font-family:var(--sans);
  font-size:13px;
  font-weight:750;
  line-height:1.45;
}

/* V7.3: a concise, branded Google InfoWindow preview. Deliberately target
 * only the site's own .petu-map-popup content, never Google tile containers. */
.petuaria-cms #finds-map .petu-map-popup {
  box-sizing:border-box;
  min-width:220px;
  max-width:min(320px, calc(100vw - 90px));
  padding:13px 11px 12px 10px;
  color:var(--ink);
  font-family:var(--sans);
}
.petuaria-cms #finds-map .petu-map-popup::before {
  content:'LOCATION FROM THE MAP';
  display:block;
  margin-bottom:10px;
  color:var(--teal);
  font-size:10px;
  font-weight:800;
  letter-spacing:.13em;
}
.petuaria-cms #finds-map .petu-map-popup h3 {
  margin:0 0 13px;
  font-family:var(--serif);
  font-size:clamp(24px, 2.1vw, 30px);
  font-weight:400;
  line-height:1.2;
  letter-spacing:-.025em;
  color:var(--ink);
}
.petuaria-cms #finds-map .petu-map-popup address {
  margin:0 0 17px;
  color:#607782;
  font-size:13px;
  line-height:1.5;
  font-style:normal;
}
.petuaria-cms #finds-map .petu-map-popup p {margin:0;}
.petuaria-cms #finds-map .petu-map-popup a[href*="viewmarker"] {
  display:inline-flex;
  min-height:39px;
  align-items:center;
  gap:9px;
  padding:10px 15px;
  background:var(--teal);
  color:#fff;
  font-family:var(--sans);
  font-weight:700;
  font-size:12px;
  line-height:1.3;
  text-decoration:none;
  border-radius:3px;
}
.petuaria-cms #finds-map .petu-map-popup a[href*="viewmarker"]::after {content:'↗';font-size:15px;}
.petuaria-cms #finds-map .petu-map-popup a[href*="viewmarker"]:hover {background:var(--ink);color:#fff;}
.petuaria-cms #finds-map .gm-style-iw-c {border-radius:9px!important;}
.petuaria-cms #finds-map .gm-style-iw-d {max-height:410px!important;}

/* Marker detail content shown inside the enlarged, accessible Fancybox dialog.
 * Its content retains the original linked venue information and photographs. */
.petuaria-cms .petuaria-marker-detail {
  margin:0 auto;
  padding:clamp(22px,4vw,45px);
  max-width:940px;
  background:#fff;
  color:var(--ink);
  font-family:var(--sans);
}
.petuaria-cms .petuaria-marker-detail .eyebrow {margin:0 0 12px;display:block;}
.petuaria-cms .petuaria-marker-detail h1 {
  font-family:var(--serif);font-size:clamp(34px,4.6vw,56px);
  line-height:1.1;margin:0 0 18px;letter-spacing:-.04em;
}
.petuaria-cms .petuaria-marker-detail .marker-location {
  border-bottom:1px solid var(--line);
  margin:0 0 25px;padding-bottom:19px;
  font-size:14px;line-height:1.6;color:var(--muted);
}
.petuaria-cms .petuaria-marker-detail .marker-location strong {color:var(--ink);}
.petuaria-cms .petuaria-marker-detail .marker-venue-info {font-size:15px;line-height:1.75;color:var(--muted);}
.petuaria-cms .petuaria-marker-detail .marker-venue-info img {max-width:100%;height:auto;}
.petuaria-cms .petuaria-marker-detail .marker-photos {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:14px;
  margin:23px 0;
}
.petuaria-cms .petuaria-marker-detail .marker-photos a {display:block;overflow:hidden;background:#e4eff1;}
.petuaria-cms .petuaria-marker-detail .marker-photos img {display:block;width:100%;height:180px;object-fit:cover;}
.petuaria-cms .petuaria-marker-detail .marker-notes {font-size:15px;line-height:1.75;}
.fancybox-wrap.petuaria-marker-modal .fancybox-skin {background:#fff;border-radius:6px;}
.fancybox-wrap.petuaria-marker-modal .fancybox-inner {background:#fff;}
@media(max-width:620px) {
  .petuaria-cms .home-main .cards .discovery-card .card-copy h3 {font-size:29px;}
  .petuaria-cms .home-main .news-grid .petuaria-home-news h3 {font-size:34px;}
  .petuaria-cms .petuaria-marker-detail .marker-photos {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  .petuaria-cms .petuaria-marker-detail .marker-photos img {height:145px;}
}


/* V7.5 marker UI only. Keep the V7.4 Google Maps compatibility header intact.
   The core/Social Maps module still creates all marker positions and content. */
.petuaria-cms #finds-map .petu-map-popup {
  width: min(304px, calc(100vw - 72px));
  min-width: 0;
  max-width: 304px;
  padding: 13px 15px 17px 13px;
  box-sizing: border-box;
  color: #2a4a5b;
  font-family: var(--sans);
}
.petuaria-cms #finds-map .petu-map-popup::before {
  content: "HISTORIC LOCATION";
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 43px 0 44px;
  margin: 0 0 12px;
  background: url("../images/marker01.svg") left center / 32px 32px no-repeat;
  font: 800 10px/1.4 var(--sans);
  letter-spacing: .13em;
  color: #547b91;
}
.petuaria-cms #finds-map .petu-map-popup h3 {
  font: 400 clamp(23px, 2vw, 27px)/1.17 var(--serif);
  letter-spacing: -.025em;
  margin: 0 0 10px;
  color: #2a4a5b;
}
.petuaria-cms #finds-map .petu-map-popup address {
  margin: 0 0 12px;
  color: #637b86;
  font: normal 12px/1.5 var(--sans);
}
.petuaria-cms #finds-map .petu-map-popup p {margin: 0;}
.petuaria-cms #finds-map .petu-map-popup p::before {
  content: "Explore the history and recorded details of this location.";
  display: block;
  margin: 0 0 15px;
  color: #627783;
  font: 400 13px/1.55 var(--sans);
}
.petuaria-cms #finds-map .petu-map-popup a[href*="viewmarker"] {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 0;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid #547b91;
  border-radius: 0;
  background: transparent;
  color: #547b91;
  font: 750 13px/1.4 var(--sans);
  text-decoration: none;
}
.petuaria-cms #finds-map .petu-map-popup a[href*="viewmarker"]:hover {
  background: transparent;
  color: #2a4a5b;
  border-bottom-color: #2a4a5b;
}
.petuaria-cms #finds-map .gm-style-iw-c {
  max-width: min(352px, calc(100vw - 50px)) !important;
  border-radius: 6px !important;
  border-top: 4px solid #547b91;
  box-shadow: 0 14px 40px rgba(42,74,91,.18) !important;
}
/* V7.8: let the Google InfoWindow control its own placement.
 * V7.7 absolutely positioned the header row, collapsing its measured height.
 * Restore a normal-flow header and use its pseudo-element for branding.
 * No transforms/top offsets on the actual InfoWindow or arrow tail. */
.petuaria-cms #finds-map .gm-style-iw-c .gm-style-iw-chr {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px;
  min-height: 48px;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 12px 0 14px !important;
  overflow: visible !important;
}
.petuaria-cms #finds-map .gm-style-iw-chr::before {
  content: "HISTORIC LOCATION";
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 32px;
  padding-left: 43px;
  background: url("../images/marker01.svg") left center / 32px 32px no-repeat;
  color: #547b91;
  font: 800 10px/1.3 var(--sans);
  letter-spacing: .12em;
  white-space: nowrap;
}
.petuaria-cms #finds-map .petu-map-popup::before {
  content: none !important;
  display: none !important;
}
.petuaria-cms #finds-map .gm-style-iw-chr .gm-ui-hover-effect {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  flex: 0 0 36px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #eaf1f3 !important;
  box-shadow: 0 1px 4px rgba(42,74,91,.09) !important;
  cursor: pointer;
}
.petuaria-cms #finds-map .gm-style-iw-chr .gm-ui-hover-effect > span,
.petuaria-cms #finds-map .gm-style-iw-chr .gm-ui-hover-effect > img {display:none !important;}
.petuaria-cms #finds-map .gm-style-iw-chr .gm-ui-hover-effect::after {
  content: "\00D7";
  color: #2a4a5b;
  font: 400 27px/1 Arial, sans-serif;
}
.petuaria-cms #finds-map .gm-style-iw-chr .gm-ui-hover-effect:hover {background: #d6e5e8 !important;}
.petuaria-cms #finds-map .gm-style-iw-chr .gm-ui-hover-effect:focus-visible {
  outline: 3px solid #547b91 !important;
  outline-offset: 2px;
}
.petuaria-cms #finds-map .petu-map-popup {padding-top: 2px;}
/* Map instruction row removed from homepage SQL; hide it as a fallback. */
.petuaria-cms .home-main .map-footer {display:none !important;}
/* Elfsight occupies the original Facebook area, alongside the CMS ad. */
.petuaria-cms .community-grid .petuaria-elfsight-feed {
  width:100%;min-width:0;min-height:280px;
}
.petuaria-cms .community-grid .petuaria-elfsight-feed > [class^="elfsight-app-"] {width:100%;}
@media (max-width: 440px) {
  .petuaria-cms #finds-map .gm-style-iw-chr::before {padding-left:36px;background-size:28px 28px;font-size:9px;letter-spacing:.08em;}
  .petuaria-cms #finds-map .gm-style-iw-chr {gap:4px;padding-left:10px !important;padding-right:9px !important;}
}

/* Only our modal. Fancybox places its standard X at -18px outside the frame. */
.fancybox-wrap.petuaria-marker-modal .fancybox-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 8050 !important;
  width: 38px;
  height: 38px;
  background: #eaf1f3 none !important;
  border-radius: 50%;
  text-decoration: none;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 1px 4px rgba(42,74,91,.09);
}
.fancybox-wrap.petuaria-marker-modal .fancybox-close::after {
  content: "\00D7";
  display: block;
  color: #2a4a5b;
  font: 400 30px/36px Arial, sans-serif;
  text-align: center;
}
.fancybox-wrap.petuaria-marker-modal .fancybox-close:hover {background-color: #d6e5e8 !important;}
.fancybox-wrap.petuaria-marker-modal .fancybox-close:focus-visible {outline: 3px solid #547b91;outline-offset:2px;}
.fancybox-wrap.petuaria-marker-modal .fancybox-skin {overflow: visible; border-radius: 5px;}
.fancybox-wrap.petuaria-marker-modal .fancybox-inner {border-radius: 5px;}
/* The marker page is a document embedded in Fancybox: use compact, consistent type. */
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail {
  max-width: 840px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 38px) 34px;
  font: 400 15px/1.85 var(--sans);
  color: #2a4a5b;
}
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail h1 {
  max-width: calc(100% - 52px);
  font: 400 clamp(27px, 3.2vw, 37px)/1.16 var(--serif);
  letter-spacing: -.03em;
  margin: 5px 0 18px;
  text-transform: none;
}
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .eyebrow {font: 800 10px/1.5 var(--sans);letter-spacing:.13em;}
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-location {font: 400 13px/1.55 var(--sans);margin:0 0 19px;padding-bottom:15px;}
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-venue-info,
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-venue-info p,
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-notes {
  font: 400 15px/1.85 var(--sans) !important;
  color: #496573;
}
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-venue-info p {margin: 0 0 18px;}
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-venue-info img,
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-photos img {max-width:100%;}
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-photos {margin:18px 0;gap:11px;}
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-photos img {height:155px;}
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-notes {margin:15px 0 0;}
@media(max-width:620px) {
  .petuaria-cms #finds-map .petu-map-popup {padding:10px 9px 13px;}
  .petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail {padding:22px 18px 28px;}
  .petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail h1 {font-size:28px;}
  .petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-photos {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-photos img {height:115px;}
}

/* V7.10: the marker's soft circular shadow is now embedded in
   theme/images/marker01-shadow.svg. Do not apply CSS drop-shadow to Google's
   marker IMG elements, which may include a rectangular rendering surface. */


/* ========================================================================
   Petuaria V7.12: consistent 16px editorial reading text.
   Intentionally excludes headings, UI labels, nav, CTAs, dates, captions,
   adverts, Google Maps controls, and the thumbnail/gallery controls.
   The existing V7.10 map styles and SVG shadows are unchanged.
   ======================================================================== */
.petuaria-cms {
  --petuaria-body-copy-size: 16px;
  --petuaria-body-copy-leading: 1.7;
}

/* Base reading copy in News, Venues and standard CMS story pages. This also
   overrides the oversized first-paragraph and lead-paragraph treatments. */
.petuaria-cms .inner-main .petuaria-prose-body,
.petuaria-cms .inner-main .petuaria-prose-body :is(p, li),
.petuaria-cms .inner-main .prose > p:not(.petuaria-byline):not(.petuaria-tags):not(.finds-back):not(.article-bottom-links),
.petuaria-cms .inner-main .story-body > p,
.petuaria-cms .inner-main .lead-paragraph,
.petuaria-cms .inner-main .petuaria-prose-body > p:first-child,
.petuaria-cms .inner-main .survey-story > p:not(.petuaria-byline):not(.petuaria-tags):not(.finds-back) {
  font-family: var(--sans) !important;
  font-size: var(--petuaria-body-copy-size) !important;
  line-height: var(--petuaria-body-copy-leading) !important;
}

/* Rich text pasted from Word sometimes includes inline span font sizes.
   Restrict these overrides to CMS article body content only. */
.petuaria-cms .inner-main .petuaria-prose-body :is(p, li) span[style*="font-size"] {
  font-size: var(--petuaria-body-copy-size) !important;
  line-height: inherit !important;
}

/* Supporting explanatory paragraphs (not metadata, captions or controls). */
.petuaria-cms .inner-main .hero-lead,
.petuaria-cms .inner-main .inner-cta-grid p,
.petuaria-cms .inner-main .archive-top > p,
.petuaria-cms .inner-main .archive-card-body > p,
.petuaria-cms .inner-main .sidebar-panel > p,
.petuaria-cms .inner-main .find-detail-intro > p:not(.lead-paragraph),
.petuaria-cms .inner-main .survey-story > p:not(.lead-paragraph):not(.petuaria-byline):not(.petuaria-tags):not(.finds-back) {
  font-size: var(--petuaria-body-copy-size) !important;
  line-height: var(--petuaria-body-copy-leading) !important;
}

/* Home body paragraphs and dynamic discovery/news card excerpts. */
.petuaria-cms .home-main .intro-aside > p,
.petuaria-cms .home-main .join-section p,
.petuaria-cms .home-main .news-header > p,
.petuaria-cms .home-main .community-head > p,
.petuaria-cms .home-main .cards .discovery-card .card-copy > p,
.petuaria-cms .home-main .news-grid .petuaria-home-news > p,
.petuaria-cms .home-main .cards > .latestVenue > p:not(.date),
.petuaria-cms .home-main .news-grid > #latestNews > p:not(.article_date) {
  font-size: var(--petuaria-body-copy-size) !important;
  line-height: var(--petuaria-body-copy-leading) !important;
}

/* The map detail is an iframe with its own CSS load. Keep its prose at 16px
   even if a Venues record includes inline font sizes from the CMS editor. */
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail {
  font-family: var(--sans);
  font-size: var(--petuaria-body-copy-size) !important;
  line-height: var(--petuaria-body-copy-leading) !important;
}
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-venue-info,
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-venue-info :is(p, li, span, div),
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-notes,
.petuaria-cms.petuaria-marker-iframe .petuaria-marker-detail .marker-location {
  font-family: var(--sans) !important;
  font-size: var(--petuaria-body-copy-size) !important;
  line-height: var(--petuaria-body-copy-leading) !important;
}
