/* =====================================================================
   Woofgang — styles for the modules added after the original design brief:
   community listings, shop, feed and the dog-sports calendar.

   Kept in its own file so wg.css stays the design-system core. Everything
   here reuses the same tokens (--wg-*), so it inherits the brand for free.
   ===================================================================== */

/* ============================ nav "More" dropdown ============================ */
.wg-more { position: relative; }
.wg-more-btn {
  display: flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 10px;
  border: none; background: none; font-weight: 600; font-size: 15px; color: var(--wg-body);
}
.wg-more-btn:hover, .wg-more-btn[aria-expanded="true"] { background: var(--wg-sand); color: var(--wg-ink); }
.wg-more-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  background: #fff; border: 1px solid var(--wg-line); border-radius: 14px;
  box-shadow: var(--wg-shadow-float); padding: 8px; min-width: 210px;
}
.wg-more-menu[hidden] { display: none; }
.wg-more-menu a {
  display: block; padding: 9px 12px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; color: var(--wg-body); white-space: nowrap;
}
.wg-more-menu a:hover { background: var(--wg-cream); color: var(--wg-ink); }

/* ================= shared listing cards (adoption / places / preloved / lost&found) ============= */
.wg-listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.wg-listing-card {
  background: #fff; border: 1px solid var(--wg-line); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .16s, box-shadow .16s;
}
.wg-listing-card:hover { transform: translateY(-4px); box-shadow: var(--wg-shadow-lift); }
.wg-listing-media { position: relative; aspect-ratio: 4/3; background: var(--wg-sand); }
.wg-listing-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.wg-listing-body h3 { font-size: 18px; margin: 0 0 6px; }
.wg-listing-body p { font-size: 14px; color: var(--wg-muted); line-height: 1.55; margin: 0 0 auto; }
.wg-listing-meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px;
  font-size: 13px; color: var(--wg-muted);
}
.wg-listing-meta span { display: flex; align-items: center; gap: 5px; }
.wg-pillrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wg-pill {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--wg-sand); color: var(--wg-brown-dark);
}
.wg-pill.green { background: var(--wg-green-tint); color: #4C7358; }
.wg-pill.amber { background: var(--wg-amber-tint); color: #B37A16; }
.wg-pill.red { background: #F8ECE7; color: #8f3a20; }

/* detail shell shared by the community modules */
.wg-detail-wrap { max-width: 900px; margin: 0 auto; }
.wg-detail-hero-lg {
  position: relative; aspect-ratio: 16/9; border-radius: 22px; overflow: hidden;
  background: var(--wg-sand); margin: 22px 0;
}
.wg-prose { max-width: 68ch; }
.wg-prose p { font-size: 16.5px; line-height: 1.75; color: var(--wg-body); margin: 0 0 18px; }
.wg-factgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 22px 0; }
.wg-fact { background: var(--wg-cream); border-radius: 14px; padding: 14px 16px; }
.wg-fact .k { font-size: 12px; font-weight: 700; color: var(--wg-muted); text-transform: uppercase; letter-spacing: .05em; }
.wg-fact .v { font-size: 15.5px; font-weight: 700; color: var(--wg-ink); margin-top: 3px; }

/* ============================ shop ============================ */
.wg-shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
/* The "two" modifier means a balanced two-column layout (product detail, brands).
   Without this desktop rule it fell back to the 4-column base and left the right
   half of the page empty. */
.wg-shop-grid.two { grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.wg-merchant-card {
  background: #fff; border: 1px solid var(--wg-line); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.wg-merchant-card h3 { font-size: 20px; margin: 0; }
.wg-merchant-card p { font-size: 14.5px; color: var(--wg-muted); line-height: 1.6; margin: 0 0 auto; }
.wg-stock { font-size: 12.5px; font-weight: 700; }
.wg-stock.in { color: #4C7358; }
.wg-stock.out { color: #8f3a20; }

/* Basket layout: the item list fills the width, the summary is a fixed sidebar —
   so the page never leaves the right half of the container empty. */
.wg-cart-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start;
}
@media (max-width: 900px) { .wg-cart-layout { grid-template-columns: 1fr; } }

.wg-cart-row {
  display: flex; gap: 16px; align-items: center; background: #fff;
  border: 1px solid var(--wg-line); border-radius: 16px; padding: 14px;
}
.wg-cart-thumb {
  position: relative; width: 84px; height: 84px; flex: none;
  border-radius: 12px; overflow: hidden; background: var(--wg-sand);
}
.wg-cart-summary {
  background: #fff; border: 1px solid var(--wg-line); border-radius: 18px;
  padding: 22px; position: sticky; top: 96px; box-shadow: var(--wg-shadow-card);
}
.wg-cart-line { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--wg-muted); padding: 7px 0; }
.wg-cart-line.total {
  border-top: 1px solid var(--wg-line); margin-top: 8px; padding-top: 14px;
  font-size: 18px; font-weight: 800; color: var(--wg-ink); font-family: var(--wg-font-head);
}
.wg-qty { display: flex; align-items: center; gap: 8px; }
.wg-qty button {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--wg-line);
  background: #fff; font-size: 17px; line-height: 1; color: var(--wg-ink);
}
.wg-cart-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 999px; background: var(--wg-brown); color: #fff;
  font-size: 11.5px; font-weight: 700; margin-left: 6px;
}
.wg-paynote {
  background: var(--wg-warn-tint); border-radius: 12px; padding: 14px 16px;
  font-size: 14px; color: #8a5a12; line-height: 1.55; margin-bottom: 18px;
}
/* WhatsApp checkout hand-off. Brand green is used only for this control, so the
   action reads as "this opens WhatsApp" rather than as a Woofgang button. */
.wg-wa-panel {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  justify-content: space-between;
  background: #E8F8EE; border: 1px solid #BFE9CF; border-radius: 18px;
  padding: 22px 24px; margin-bottom: 18px;
}
.wg-wa-copy { flex: 1 1 320px; min-width: 0; }
.wg-wa-copy h2 { font-size: clamp(19px, 2.2vw, 23px); margin: 0 0 6px; color: #14532D; }
.wg-wa-copy p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #256141; }
.wg-wa-btn {
  background: #25D366; border-color: #25D366; color: #08301B;
  display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto;
}
.wg-wa-btn:hover { background: #1FBA59; border-color: #1FBA59; color: #08301B; }

/* Same idea as .wg-paynote, for admin screens that depend on something not yet wired. */
.wg-admin-note {
  background: var(--wg-warn-tint); border-radius: 12px; padding: 13px 16px;
  font-size: 13.5px; color: #8a5a12; line-height: 1.55; margin: 0 0 18px;
}

/* ============================ community feed ============================ */
.wg-feed-wrap { max-width: 680px; margin: 0 auto; }
.wg-post {
  background: #fff; border: 1px solid var(--wg-line); border-radius: 18px;
  padding: 20px; margin-bottom: 16px;
}
.wg-post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wg-post-av {
  width: 42px; height: 42px; border-radius: 50%; background: var(--wg-brown); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none;
}
.wg-post-who { font-weight: 700; color: var(--wg-ink); font-size: 15px; }
.wg-post-when { font-size: 12.5px; color: var(--wg-muted); }
.wg-post-body { font-size: 15.5px; line-height: 1.65; color: var(--wg-body); margin: 0 0 12px; white-space: pre-wrap; }
.wg-post-media {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16/10; background: var(--wg-sand); margin-bottom: 12px;
}
.wg-post-actions { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--wg-line-soft); padding-top: 12px; }
.wg-post-action {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none;
  font-size: 14px; font-weight: 600; color: var(--wg-muted); padding: 6px 10px; border-radius: 9px;
}
.wg-post-action:hover { background: var(--wg-cream); color: var(--wg-ink); }
.wg-post-action.on { color: var(--wg-brown); }
.wg-comment { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--wg-line-soft); }
.wg-comment .av { width: 30px; height: 30px; font-size: 12px; }
.wg-comment .bd { font-size: 14px; color: var(--wg-body); line-height: 1.55; }

/* ============================ dog-sports calendar ============================ */
.wg-cal { background: #fff; border: 1px solid var(--wg-line); border-radius: 18px; padding: 20px; }
.wg-cal-grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wg-cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--wg-muted); padding-bottom: 6px; }
.wg-cal-day {
  min-height: 74px; border: 1px solid var(--wg-line-soft); border-radius: 10px;
  padding: 6px; background: var(--wg-cream); font-size: 12px;
}
.wg-cal-day.empty { background: transparent; border-color: transparent; }
.wg-cal-day.has { background: #fff; border-color: var(--wg-brown); }
.wg-cal-day .n { color: var(--wg-faint); font-weight: 600; }
.wg-cal-day a { display: block; font-size: 11px; font-weight: 700; color: var(--wg-brown); margin-top: 4px; line-height: 1.3; }

@media (max-width: 919.98px) {
  .wg-listing-grid, .wg-shop-grid { grid-template-columns: 1fr; }
  .wg-shop-grid.two { grid-template-columns: 1fr 1fr; }
  .wg-cart-summary { position: static; }
  .wg-more-menu { right: auto; left: 0; }
  .wg-cal-day { min-height: 52px; font-size: 11px; }
}

/* ======================= hero "follow the pack" card ======================= */
.wg-follow {
  position: absolute; left: 0; right: 0; bottom: -22px;
  background: #fff; border: 1px solid var(--wg-line); border-radius: 18px;
  padding: 14px 16px; box-shadow: 0 18px 40px rgba(36, 30, 26, .13);
}
.wg-follow-head { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 10px; }
.wg-follow-head .ic {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: #EAF3EC; display: grid; place-items: center;
}
.wg-follow-title {
  font-family: var(--wg-font-head); font-weight: 700; font-size: 16px; color: var(--wg-ink);
}
.wg-follow-sub { font-size: 13px; color: var(--wg-muted); line-height: 1.45; margin-top: 2px; }

.wg-follow-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wg-chip-check { cursor: pointer; }
.wg-chip-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.wg-chip-check span {
  display: inline-block; border: 1px solid var(--wg-line); border-radius: 999px;
  padding: 5px 11px; font-size: 12.5px; color: var(--wg-muted);
  background: #fff; transition: all .15s ease; user-select: none;
}
.wg-chip-check input:checked + span {
  background: var(--wg-primary); border-color: var(--wg-primary); color: #fff; font-weight: 600;
}
/* Keyboard users must be able to see which chip they are on. */
.wg-chip-check input:focus-visible + span { outline: 2px solid var(--wg-primary); outline-offset: 2px; }

.wg-follow-row { display: flex; gap: 8px; }
.wg-follow-row .wg-input { flex: 1; min-width: 0; }
.wg-follow-fine { font-size: 11.5px; color: var(--wg-muted); margin: 7px 0 0; }

@media (max-width: 920px) {
  .wg-follow { position: static; margin-top: 18px; }
}

/* ==================== free-training tiles (NTC-style) ==================== */
.wg-freetrain { padding-top: 42px; }
.wg-freetrain-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 20px;
}
.wg-freetrain-head h2 {
  font-size: clamp(23px, 3vw, 33px); margin: 0; max-width: 20ch; line-height: 1.15;
}
.wg-freetrain-head p { margin: 8px 0 0; color: var(--wg-muted); font-size: 15px; max-width: 52ch; }

.wg-tile-row {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.wg-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px; border-radius: 16px; overflow: hidden;
  background: var(--tile-tint, #2A2320); text-decoration: none; color: #fff;
  padding: 16px; isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wg-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(36, 30, 26, .22); }
.wg-tile-img { position: absolute; inset: 0; z-index: -2; }
.wg-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Always present, image or not: keeps the text readable on any photo. */
.wg-tile-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,16,14,.12) 0%, rgba(20,16,14,.52) 52%, rgba(20,16,14,.86) 100%);
}
.wg-tile-top { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.wg-tile-pill {
  background: #fff; color: var(--wg-ink); border-radius: 999px;
  padding: 3px 9px; font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
}
.wg-tile-pill.ghost { background: rgba(255,255,255,.22); color: #fff; font-weight: 700; }
.wg-tile-body { display: block; }
.wg-tile-focus {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; opacity: .82; margin-bottom: 3px;
}
.wg-tile-title {
  display: block; font-family: var(--wg-font-head); font-weight: 700;
  font-size: 19px; line-height: 1.2;
}
.wg-tile-meta { display: block; font-size: 12.5px; opacity: .8; margin-top: 5px; }

/* ===================== home banner rotator (winbox30 pattern) =====================
   Same structure as the winbox30 hero: a flex track of full-width slides moved with
   translateX, widening dots, transparent circular arrows.

   2.7/1 matches the client's own banner artwork (1147x428 and 1239x459, both 2.68).
   Re-match this if their banner dimensions change -- a mismatched frame crops the
   artwork, which on a banner usually means cutting off the logo or the CTA. */
/* Banner edit live preview — reuses the real .wg-banner-slide/-media/-scrim/-caption
   classes so what an admin sees here matches production exactly, just boxed to fit a
   card instead of spanning the page. Visibility of its pieces is owned by JS (inline
   style.display), not this stylesheet — see BannerEdit.cshtml for why. */
.wg-preview-frame {
  position: relative; aspect-ratio: 2.7 / 1; border-radius: 14px; overflow: hidden;
  background: var(--wg-sand); line-height: 0;
}
.wg-preview-frame .wg-banner-slide { position: absolute; inset: 0; height: 100%; }

/* "or choose an existing image" — collapsed by default so the dropzone above it reads
   as the primary action, not competing with a dropdown for attention. */
.wg-upload-existing { margin-top: 10px; }
.wg-upload-existing summary { cursor: pointer; font-size: 13px; color: var(--wg-muted); font-weight: 600; }
.wg-upload-existing summary:hover { color: var(--wg-ink); }

/* the shareable "client preview" link row on Banner edit */
.wg-preview-link-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wg-preview-link-row .wg-input {
  flex: 1 1 260px; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px;
}
.wg-preview-link-row .wg-btn { flex: none; }

.wg-banner { background: var(--wg-cream); }
.wg-banner-carousel {
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: 2.7 / 1; background: var(--wg-sand); line-height: 0;
}
.wg-banner-track {
  display: flex; height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.wg-banner-slide { position: relative; flex: 0 0 100%; height: 100%; }
.wg-banner-slide picture { display: block; width: 100%; height: 100%; }
/* Image OR video, both fill the frame the same way. */
.wg-banner-media { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* Caption-less slides are clickable in full. */
.wg-banner-hit { position: absolute; inset: 0; z-index: 2; }

/* Legibility scrim behind the caption. Dark for light photos, light for dark ones. */
.wg-banner-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.wg-banner-scrim.dark { background: linear-gradient(180deg, rgba(20,16,14,.15), rgba(20,16,14,.5)); }
.wg-banner-scrim.light { background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.5)); }

/* Caption card floating over the artwork. Alignment moves it left / centre / right. */
.wg-banner-caption {
  position: absolute; z-index: 2; bottom: clamp(18px, 5%, 54px);
  text-align: center; line-height: normal;
  background: rgba(28, 23, 20, .58); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px; padding: clamp(14px, 2.4vw, 26px) clamp(20px, 4vw, 48px);
  max-width: min(680px, 86%);
}
.wg-banner-caption.align-center { left: 50%; transform: translateX(-50%); }
.wg-banner-caption.align-left { left: clamp(16px, 4vw, 56px); text-align: left; }
.wg-banner-caption.align-right { right: clamp(16px, 4vw, 56px); text-align: right; }
.wg-banner-caption.align-left .wg-banner-btns { justify-content: flex-start; }
.wg-banner-caption.align-right .wg-banner-btns { justify-content: flex-end; }
.wg-banner-caption h2 {
  margin: 0; color: #fff; font-size: clamp(21px, 3.4vw, 40px); line-height: 1.12;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.wg-banner-caption p {
  margin: 8px 0 0; color: rgba(255, 255, 255, .92);
  font-size: clamp(13px, 1.5vw, 16px); line-height: 1.5;
}
.wg-banner-caption .wg-btn { margin-top: clamp(12px, 1.6vw, 18px); }
/* Two buttons side by side (Our IG / Our FB), wrapping on a narrow screen. */
.wg-banner-btns {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: clamp(12px, 1.6vw, 18px);
}
.wg-banner-btns .wg-btn { margin-top: 0; }
/* Secondary banner button: white-outline, legible on any photo (the "Our FB" look). */
.wg-btn-outline-light {
  background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .85); color: #fff;
}
.wg-btn-outline-light:hover { background: #fff; color: var(--wg-ink); }

.wg-banner-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3;
  display: flex; gap: 8px; justify-content: center; line-height: normal;
}
.wg-banner-dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .55); box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: width .25s ease, background .25s ease;
}
.wg-banner-dot.active { width: 26px; background: #fff; }

.wg-banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; font-size: 2rem; line-height: 1;
  display: grid; place-items: center; opacity: .55;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .75); transition: opacity .2s ease;
}
.wg-banner-arrow:hover { opacity: 1; }
.wg-banner-arrow.prev { left: 12px; }
.wg-banner-arrow.next { right: 12px; }
.wg-banner-carousel.single .wg-banner-arrow,
.wg-banner-carousel.single .wg-banner-dots { display: none; }

/* A 2.7:1 strip is unreadable on a phone: go taller so the artwork still reads.
   A slide with its own mobile crop swaps in via <picture> at this same breakpoint. */
@media (max-width: 768px) {
  .wg-banner-carousel { aspect-ratio: 4 / 3; }
  .wg-banner-arrow { width: 36px; height: 36px; font-size: 1.5rem; }
}

/* ---- hero under the banner: two columns on desktop (copy | search + follow) ---- */
.wg-herobar { background: var(--wg-cream); border-bottom: 1px solid var(--wg-line); }
.wg-herobar-inner {
  max-width: 1240px; margin: 0 auto; padding: 34px clamp(24px, 5vw, 72px) 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.wg-herobar-copy h1 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 0; line-height: 1.1; }
.wg-herobar-copy p { margin: 10px 0 0; color: var(--wg-muted); font-size: 15px; max-width: 46ch; }
.wg-herobar-actions { display: flex; flex-direction: column; gap: 14px; }

/* the "follow the pack" sign-up, as a compact two-row card */
.wg-follow-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--wg-line); border-radius: 16px;
  padding: 14px 15px; box-shadow: var(--wg-shadow-card);
}
.wg-follow-head2 { display: flex; align-items: center; gap: 12px; }
.wg-follow-ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--wg-green-tint); color: var(--wg-green-dark);
  display: grid; place-items: center;
}
.wg-follow-inline-copy { flex: 1; min-width: 0; }
.wg-follow-inline-copy b { display: block; color: var(--wg-ink); font-size: 15px; }
.wg-follow-inline-copy span { font-size: 13px; color: var(--wg-muted); line-height: 1.4; }
.wg-follow-row2 { display: flex; gap: 8px; }
.wg-follow-row2 .wg-input { flex: 1; min-width: 0; }
.wg-follow-row2 .wg-btn { flex: none; }

@media (max-width: 900px) {
  .wg-herobar-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .wg-follow-row2 { flex-wrap: wrap; }
  .wg-follow-row2 .wg-input { flex-basis: 100%; }
}

/* ---- floating quick actions (share + WhatsApp), small, bottom-right ---- */
.wg-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: flex; flex-direction: column; gap: 10px;
}
.wg-fab-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--wg-line); color: var(--wg-ink);
  box-shadow: var(--wg-shadow-float); cursor: pointer; transition: transform .15s ease;
}
.wg-fab-btn:hover { transform: translateY(-2px); }
.wg-fab-wa { background: #25D366; border-color: #25D366; color: #fff; }
.wg-fab-wa:hover { background: #1FBA59; color: #fff; }
/* BannerEdit's single "client preview" shortcut — same small floating-icon idea, its
   own fixed position since it isn't grouped with the public-site share/WhatsApp pair. */
.wg-preview-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  background: var(--wg-gold-tint, #FBF3E3); color: var(--wg-gold-deep, #B4905E);
  border-color: rgba(180, 144, 94, .3);
}
.wg-preview-fab:hover { background: #F5E9D0; color: var(--wg-gold-deep, #B4905E); }

/* brief "Link copied" confirmation when the native share sheet isn't available */
.wg-fab-btn[data-copied]::after {
  content: "Link copied"; position: absolute; right: calc(100% + 8px); top: 50%;
  transform: translateY(-50%); white-space: nowrap;
  background: var(--wg-ink); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 9px; border-radius: 8px;
}

/* ============================ contact map ============================ */
.wg-map {
  position: relative; margin: 18px 0 14px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--wg-line); aspect-ratio: 16 / 10; background: var(--wg-sand);
}
.wg-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.wg-map-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.wg-map-btn { display: inline-flex; align-items: center; gap: 8px; }

/* ===================== glossy primary button (opt-in) =====================
   The client's gradient treatment. Applied as a modifier so it can be tried on
   one page first (Contact) and rolled out later just by adding the class.
   Two-class selector so it wins over the flat .wg-btn-primary. */
/* Faithful reproduction of the "Wagging tail" button from the Genting/Woofgang
   handoff, applied to the Contact CTA. Same brand-brown ramp and soft shadow;
   the icon wags on hover. We keep the message (paper-plane) icon, not the dog. */
.wg-btn.wg-btn-gloss {
  background: linear-gradient(150deg, #C79A63 -30%, #8A5A2B 50%, #5E3D1B 120%);
  color: #fff; border: 0;
  border-radius: 16px;
  padding: 15px 28px;
  gap: 10px;
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .22),
              0 8px 22px rgba(138, 90, 43, .30);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), box-shadow .28s, filter .28s;
}
.wg-btn.wg-btn-gloss:hover {
  transform: translateY(-3px); color: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .22),
              0 14px 30px rgba(138, 90, 43, .36);
}
.wg-btn.wg-btn-gloss:active { transform: scale(.96); }

/* the icon wags happily while hovered */
.wg-btn.wg-btn-gloss .wag { display: inline-flex; transform-origin: 70% 70%; }
.wg-btn.wg-btn-gloss:hover .wag { animation: wg-wag .5s ease-in-out infinite; }
@keyframes wg-wag { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(16deg); } }

@media (prefers-reduced-motion: reduce) {
  .wg-btn.wg-btn-gloss, .wg-btn.wg-btn-gloss:hover, .wg-btn.wg-btn-gloss:active { transform: none; }
  .wg-btn.wg-btn-gloss:hover .wag { animation: none; }
}
/* Respect reduced-motion: keep the look, drop the lift. */
@media (prefers-reduced-motion: reduce) {
  .wg-btn.wg-btn-gloss, .wg-btn.wg-btn-gloss:hover, .wg-btn.wg-btn-gloss:active { transform: none; }
}

/* ===================== footer mark =====================
   The header logo lockup (icon + navy wordmark) is styled in wg.css. The footer
   sits on warm ink, so its mark keeps a rounded navy badge to read cleanly. */
.wg-footer-mark {
  width: 52px; height: 52px; display: block; flex: none;
  border-radius: 13px;                 /* rounded, like the favicon */
}
@media (max-width: 560px) {
  .wg-logo-mark-img { height: 38px; }
  .wg-logo-img { height: 29px; }
}

/* ===================== Google sign-in button + divider ===================== */
.wg-btn-google { background: #fff; border: 1px solid var(--wg-line); color: var(--wg-ink); gap: 10px; }
.wg-btn-google:hover { background: #fff; border-color: var(--wg-brown); color: var(--wg-ink); }
.wg-or {
  display: flex; align-items: center; gap: 12px; margin: 14px 0;
  color: var(--wg-faint); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.wg-or::before, .wg-or::after { content: ""; flex: 1; height: 1px; background: var(--wg-line); }

/* ==========================================================================
   Banner editor: PETLO hero lookalike for the live preview

   These slides drive the PETLO home page hero, so the editor's as-you-type
   preview is shaped like that hero rather than the older centred-caption one.

   Deliberately a small copy of petlo.css's values, NOT an import: petlo.css
   styles body, h1, .btn and other global selectors, so loading it into the
   admin would restyle the page around the preview. Values below are taken
   from petlo.css (hero-bg-card, hero-overlay, hero-badge, hero-headline,
   hero-subheadline, btn-black, btn-primary) — if that design changes, the
   preview is approximate until these are refreshed. The preview-link button
   opens the real page, which is always authoritative.
   ========================================================================== */
.wg-pv-petlo-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #C8DDD3;               /* --brand-sage-border */
  background: #F8F9F8;                     /* --bg-cream */
  min-height: 230px;
  display: flex;
  align-items: center;
}

.wg-pv-petlo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The hero's white left-to-right gradient, which is what makes its dark text
   readable over any artwork. */
.wg-pv-petlo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
              rgba(255, 255, 255, 0.97) 0%,
              rgba(255, 255, 255, 0.85) 50%,
              rgba(255, 255, 255, 0.20) 100%);
}

.wg-pv-petlo-content {
  position: relative;
  z-index: 2;
  max-width: 62%;
  padding: 22px 28px;
}

.wg-pv-petlo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E8F3EE;                     /* --brand-sage-bg */
  color: #1C4F3A;                          /* --brand-green */
  border: 1px solid #C8DDD3;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.wg-pv-petlo-headline {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 800;
  color: #1C4F3A;                          /* --brand-green */
}

/* The heading's trailing words, in the hero's lighter green. */
.wg-pv-petlo-hl {
  color: #286E52;                          /* --brand-green-light */
}
.wg-pv-petlo-hl:not(:empty)::before {
  content: " ";
}

.wg-pv-petlo-sub {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #475569;                          /* --muted-text */
}

.wg-pv-petlo-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wg-pv-petlo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.wg-pv-petlo-btn.dark {
  background: #0B0F12;
  color: #FFFFFF;
  border: 1.5px solid #0B0F12;
}

.wg-pv-petlo-btn.soft {
  background: #E6F4EE;
  color: #1C4F3A;
  border: 1.5px solid #BCE0D1;
}

@media (max-width: 700px) {
  .wg-pv-petlo-content { max-width: 100%; }
  .wg-pv-petlo-headline { font-size: 1.25rem; }
}

/* The banner editor's white-wash slider and its live readout. */
.wg-wash-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wg-range {
  flex: 1;
  accent-color: #1C4F3A;          /* PETLO green, matching what it controls */
}

.wg-wash-out {
  min-width: 46px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #1C4F3A;
}

/* The banner editor's measured-readability panel. */
.wg-admin-note.is-warn {
  border-left: 4px solid #C2410C;
  background: #FFF7ED;
}

.wg-admin-note.is-ok {
  border-left: 4px solid #1C4F3A;
  background: #F2F8F5;
}

.wg-contrast-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 10px;
  font-size: 0.86rem;
}

.wg-contrast-table th {
  text-align: left;
  font-weight: 700;
  padding: 4px 10px 4px 0;
  border-bottom: 1px solid #E6E9EE;
  white-space: nowrap;
}

.wg-contrast-table td {
  padding: 5px 10px 5px 0;
  border-bottom: 1px solid #F1F3F6;
  font-variant-numeric: tabular-nums;
}

.wg-contrast-table tr.is-fail td {
  font-weight: 700;
}

.wg-contrast-ok  { color: #1C4F3A; }
.wg-contrast-bad { color: #C2410C; }

/* The header on the older-design pages now carries the PETLO lockup rather than
   the retired Woofgang mark. One image instead of two, so it needs its own
   height — and, like the PETLO header, it must not be squeezed by the nav
   beside it. 48px keeps it the same optical size as the mark it replaced. */
.wg-logo .wg-logo-img {
  height: 48px;
  width: auto;
  flex: 0 0 auto;
}

.wg-logo {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .wg-logo .wg-logo-img {
    height: 38px;
  }
}
