/* ═══════════════════════════════════════════════════════════════
   Dog Sports Finder — Theme Styles
   Design tokens & visual language from FidoEvents React v2
   ═══════════════════════════════════════════════════════════════ */

/* ─── CrispLeaves Custom Font ───────────────────────────────── */
@font-face {
    font-family: 'CrispLeaves';
    /* woff2/woff first: the proven webfonts from the prior theme. The bundled
       .ttf is a FontForge build that the browser's OpenType Sanitizer rejects,
       so headings silently fell back to DM Serif Display. */
    src: url('../fonts/CrispLeaves.woff2') format('woff2'),
         url('../fonts/CrispLeaves.woff') format('woff'),
         url('../fonts/CrispLeaves.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CrispLeavesExtras';
    src: url('../fonts/CrispLeavesExtras.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ─── Design Tokens ──────────────────────────────────────────── */
:root {
    --fido-primary:    #2668B2;
    --fido-accent:     #FC5180;
    --fido-teal:       #13B3D0;
    --fido-teal-dark:  #225EA0;
    --fido-gold:       #F4B706;
    --fido-bg:         #FAFAF9;
    --fido-light-teal: #EAF6F7;
    --fido-text:       #121212;
    --fido-ink:        #0D0D0D;
    --fido-muted:      #6B6B6B;
}

/* ─── Typography — Brand book: DM Sans body ─────────────────── */
body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--fido-text);
    background: var(--fido-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ─── Logo Switching (transparent vs solid header) ──────────── */
.dsf-logo-white { display: none; }
.dsf-hero ~ #dsf-main { /* default: color logo visible */ }
body.home #dsf-header:not(.dsf-scrolled) .dsf-logo-color { display: none; }
body.home #dsf-header:not(.dsf-scrolled) .dsf-logo-white { display: block; }

/* ─── Global Noise Overlay (from React v2) ───────────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ─── Smooth Scrolling ───────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* ─── Fade-Up Animation (staggered like GSAP in React v2) ───── */
@keyframes dsf-fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dsf-fade-up {
    animation: dsf-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Stagger delays — applied via inline style animation-delay */

/* ─── Scroll-triggered fade-in (Intersection Observer) ───────── */
.dsf-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dsf-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Hero Section ───────────────────────────────────────────── */
.dsf-hero {
    position: relative;
}

/* Parallax-lite on hero bg */
@media (prefers-reduced-motion: no-preference) {
    .dsf-hero > div:first-child {
        will-change: transform;
    }
}

/* ─── Header ─────────────────────────────────────────────────── */
#dsf-header {
    transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

#dsf-header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* On hero, header is transparent */
.home #dsf-header:not(.scrolled) {
    background: transparent;
    box-shadow: none;
}

.home #dsf-header:not(.scrolled) a,
.home #dsf-header:not(.scrolled) span,
.home #dsf-header:not(.scrolled) button {
    color: white;
}

.home #dsf-header:not(.scrolled) .bg-fido-primary {
    background-color: white;
    color: var(--fido-primary);
}

/* No spacer on home since hero is full-bleed */
.home #dsf-header + .h-16 {
    display: none;
}

/* ─── User Location Marker (Leaflet) ─────────────────────────── */
.dsf-user-marker {
    background: transparent;
    border: none;
}

.dsf-user-dot {
    width: 16px;
    height: 16px;
    background: var(--fido-primary);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--fido-primary), 0 0 12px rgba(38, 104, 178, 0.4);
    animation: dsf-pulse 2s ease-in-out infinite;
}

@keyframes dsf-pulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--fido-primary), 0 0 12px rgba(38, 104, 178, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(38, 104, 178, 0.15), 0 0 20px rgba(38, 104, 178, 0.25); }
}

/* ─── Leaflet Popup Overrides ────────────────────────────────── */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 0;
}

.leaflet-popup-content {
    margin: 12px 16px;
    line-height: 1.5;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 13px;
}

.dsf-popup strong {
    color: var(--fido-ink);
    font-size: 14px;
}

/* ─── Skeleton Loading ───────────────────────────────────────── */
@keyframes dsf-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.dsf-skeleton > div {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: dsf-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* ─── Trial Cards ────────────────────────────────────────────── */
.dsf-trial-card {
    will-change: transform, box-shadow;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.2s;
}

.dsf-trial-card:hover {
    transform: translateY(-2px);
}

/* ─── Sport Icon SVGs ────────────────────────────────────────── */
#sports .w-9 svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ─── Browse Cards ───────────────────────────────────────────── */
#sports a,
#orgs a,
#locations a {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#sports a:hover,
#orgs a:hover {
    transform: translateY(-3px);
}

#locations a:hover {
    transform: translateY(-2px);
}

/* ─── Custom select arrow ────────────────────────────────────── */
select.appearance-none {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ─── Section Divider ────────────────────────────────────────── */
.dsf-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fido-muted);
    margin-bottom: 0.75rem;
}

.dsf-section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fido-accent);
    border-radius: 1px;
}

/* ─── Email Alerts Section ───────────────────────────────────── */
.dsf-alerts-section {
    position: relative;
    overflow: hidden;
}

.dsf-alerts-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Sticky filter bar glass effect ─────────────────────────── */
@supports (backdrop-filter: blur(10px)) {
    .sticky.bg-white {
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
    }
}

/* ─── Paw Icon (logo) — properly sized ───────────────────────── */
.dsf-paw-icon {
    flex-shrink: 0;
}

/* ─── Footer rounded top ─────────────────────────────────────── */
footer {
    border-radius: 2rem 2rem 0 0;
    margin-top: -1rem;
    position: relative;
    z-index: 10;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .dsf-hero h1 {
        font-size: 2rem;
    }
    .dsf-hero h2 {
        font-size: 3.5rem;
    }
    #dsf-homepage-map {
        min-height: 280px;
    }
}

/* ─── Print ──────────────────────────────────────────────────── */
@media print {
    #dsf-header, #dsf-mobile-menu, .dsf-save-btn,
    #dsf-homepage-map, #dsf-trials-map,
    body::after { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   /trials — companion search experience (filter sheet, chips, cards)
   ═══════════════════════════════════════════════════════════════ */

/* ── Slide-over filter sheet ─────────────────────────────────── */
.dsf-sheet { position: fixed; inset: 0; z-index: 60; }
.dsf-sheet[hidden] { display: none; }
.dsf-sheet-overlay { position: absolute; inset: 0; background: rgba(13,18,37,0.45); opacity: 0; transition: opacity .25s ease; }
.dsf-sheet.is-open .dsf-sheet-overlay { opacity: 1; }
.dsf-sheet-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease; box-shadow: -8px 0 40px rgba(0,0,0,.18);
}
.dsf-sheet.is-open .dsf-sheet-panel { transform: translateX(0); }
@media (max-width: 640px) {
  .dsf-sheet-panel { width: 100%; max-width: 100%; top: auto; bottom: 0; height: 88vh; border-radius: 20px 20px 0 0; transform: translateY(100%); }
  .dsf-sheet.is-open .dsf-sheet-panel { transform: translateY(0); }
}
.dsf-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #f0f0f3; }
.dsf-sheet-x { color: #6b7280; padding: 4px; border-radius: 8px; }
.dsf-sheet-x:hover { background: #f3f4f6; color: #111; }
.dsf-sheet-tabs { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid #f0f0f3; }
.dsf-tab { flex: 1; padding: 9px 6px; font-size: 13px; font-weight: 600; color: #6b7280; border-radius: 10px; position: relative; }
.dsf-tab:hover { background: #f7f7f9; }
.dsf-tab.is-active { background: var(--fido-primary,#2668B2); color: #fff; }
.dsf-tab-badge { display: none; margin-left: 5px; font-size: 11px; background: rgba(0,0,0,.12); padding: 1px 6px; border-radius: 99px; }
.dsf-tab.is-active .dsf-tab-badge { background: rgba(255,255,255,.28); }
.dsf-sheet-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.dsf-tab-pane { display: none; }
.dsf-tab-pane.is-active { display: block; }
.dsf-sheet-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid #f0f0f3; }

.dsf-sec-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9ca3af; margin-bottom: 10px; }
.dsf-sec-note { font-weight: 500; text-transform: none; letter-spacing: 0; color: #b9bdc7; }
.dsf-pill-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.dsf-fpill {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; font-size: 13px; font-weight: 500;
  color: #374151; background: #f4f4f6; border: 1.5px solid transparent; border-radius: 99px; transition: all .12s;
}
.dsf-fpill:hover { background: #ececf0; }
.dsf-fpill.is-on { background: rgba(38,104,178,.1); border-color: var(--fido-primary,#2668B2); color: var(--fido-primary,#2668B2); font-weight: 600; }
.dsf-dot { width: 9px; height: 9px; border-radius: 99px; }
.dsf-pill-n { font-size: 11px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.dsf-fpill.is-on .dsf-pill-n { color: var(--fido-primary,#2668B2); opacity: .7; }
.dsf-empty-note { font-size: 13px; color: #9ca3af; }

.dsf-toggle { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font-size: 14px; color: #374151; cursor: pointer; }
.dsf-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.dsf-sw { width: 42px; height: 24px; background: #d1d5db; border-radius: 99px; position: relative; transition: background .15s; flex-shrink: 0; }
.dsf-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 99px; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.dsf-toggle input:checked + .dsf-sw { background: var(--fido-primary,#2668B2); }
.dsf-toggle input:checked + .dsf-sw::after { transform: translateX(18px); }
.dsf-text-in { width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid #e5e7eb; border-radius: 12px; outline: none; }
.dsf-text-in:focus { border-color: var(--fido-primary,#2668B2); box-shadow: 0 0 0 3px rgba(38,104,178,.15); }
.dsf-daterow { display: flex; align-items: center; gap: 8px; }
.dsf-daterow input { flex: 1; padding: 9px 10px; font-size: 13px; border: 1px solid #e5e7eb; border-radius: 10px; }
.dsf-daterow span { color: #9ca3af; font-size: 13px; }
.dsf-breed-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.dsf-save-row { display: flex; gap: 8px; }
.dsf-save-btn { white-space: nowrap; padding: 10px 14px; font-size: 13px; font-weight: 600; color: #fff; background: var(--fido-primary,#2668B2); border-radius: 12px; }
.dsf-saved-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dsf-saved-list li { display: flex; align-items: center; gap: 8px; }
.dsf-saved-apply { flex: 1; text-align: left; padding: 11px 13px; background: #f7f7f9; border-radius: 12px; }
.dsf-saved-apply:hover { background: #eef0f3; }
.dsf-saved-name { display: block; font-size: 14px; font-weight: 600; color: #1f2937; }
.dsf-saved-sub { display: block; font-size: 12px; color: #9ca3af; margin-top: 1px; }
.dsf-saved-del { color: #c0c4cc; font-size: 22px; line-height: 1; padding: 0 6px; }
.dsf-saved-del:hover { color: #ef4444; }

/* ── Chips (parsed + active) ──────────────────────────────────── */
.dsf-pchip, .dsf-achip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; font-size: 12.5px;
  border-radius: 99px; line-height: 1;
}
.dsf-pchip { background: rgba(38,104,178,.08); color: #1f3b5e; border: 1px dashed rgba(38,104,178,.4); }
.dsf-pchip-k { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .65; }
.dsf-achip { background: #fff; color: #374151; border: 1px solid #e5e7eb; }
.dsf-pchip button, .dsf-achip button { font-size: 15px; line-height: 1; color: inherit; opacity: .5; padding: 0 2px; }
.dsf-pchip button:hover, .dsf-achip button:hover { opacity: 1; }

/* ── Result cards ─────────────────────────────────────────────── */
.dsf-card { position: relative; background: #fff; border: 1px solid #eef0f3; border-radius: 16px; padding: 16px 16px 16px 18px; transition: box-shadow .15s, border-color .15s; }
.dsf-card:hover { box-shadow: 0 6px 22px rgba(16,24,40,.08); border-color: #e3e7ee; }
.dsf-card.is-flash { box-shadow: 0 0 0 3px rgba(38,104,178,.35); }
.dsf-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.dsf-card-sport { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.dsf-card-dist { margin-left: auto; font-size: 12px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.dsf-card-title { font-size: 15px; font-weight: 700; color: #1f2937; line-height: 1.3; margin: 0 36px 4px 0; }
.dsf-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #6b7280; margin-top: 3px; }
.dsf-card-org { font-weight: 600; color: #374151; }
.dsf-card-date { font-weight: 500; color: #374151; }
.dsf-badge { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.dsf-badge-open { background: rgba(16,185,129,.12); color: #059669; }
.dsf-badge-soon { background: rgba(244,183,6,.15); color: #b45309; }
.dsf-badge-closed { background: #f3f4f6; color: #9ca3af; }
.dsf-fav { position: absolute; top: 14px; right: 14px; color: #d1d5db; transition: color .12s, transform .12s; }
.dsf-fav:hover { transform: scale(1.12); color: #fca5b9; }
.dsf-fav svg { fill: currentColor; }
.dsf-fav.is-fav { color: var(--fido-accent,#FC5180); }
.dsf-show-contact { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--fido-primary,#2668B2); }
.dsf-show-contact:hover { text-decoration: underline; }
.dsf-contact-out { display: block; margin-top: 8px; font-size: 13px; color: #4b5563; }
.dsf-contact-out a { color: var(--fido-primary,#2668B2); }
.dsf-empty { text-align: center; padding: 48px 20px; color: #6b7280; }
.dsf-empty p { font-size: 15px; font-weight: 600; }
.dsf-empty-sub { font-size: 13px; font-weight: 400; color: #9ca3af; margin-top: 6px; }

/* Mobile list/map view toggle */
@media (max-width: 1023px) {
  #dsf-list[data-view="map"] { display: none; }
  #dsf-map-col[data-view="list"] { display: none; }
}

/* ── Mobile app-download push (/trials) ───────────────────────── */
.dsf-app-gate {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 28px;
  background: radial-gradient(120% 90% at 70% 0%, #1b2a52 0%, #0d1225 60%, #0a0e1d 100%);
}
.dsf-app-gate.is-dismissed { display: none; }
.dsf-app-gate-card { text-align: center; max-width: 360px; color: #fff; }
.dsf-app-gate-logo { width: 76px; height: 76px; margin: 0 auto 22px; display: block; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.dsf-app-gate-title { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 700; font-size: 26px; line-height: 1.2; margin-bottom: 12px; }
.dsf-app-gate-sub { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.72); margin-bottom: 26px; }
.dsf-app-gate-btn {
  display: block; width: 100%; padding: 15px 20px; background: var(--fido-accent,#FC5180); color: #fff;
  font-weight: 700; font-size: 16px; border-radius: 14px; box-shadow: 0 8px 24px rgba(252,81,128,.4);
}
.dsf-app-gate-btn:active { transform: scale(.99); }
.dsf-app-gate-meta { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .05em; color: rgba(255,255,255,.45); margin-top: 14px; }
.dsf-app-gate-skip { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.55); text-decoration: underline; }
.dsf-app-gate-skip:hover { color: #fff; }

/* ── Filter sheet parity additions (dim orgs, toggle subtitles, ranges) ── */
.dsf-fpill.is-dim { opacity: .42; }
.dsf-fpill.is-dim.is-on { opacity: 1; }
.dsf-toggle-2 { align-items: flex-start; }
.dsf-toggle-tt { display: flex; flex-direction: column; gap: 2px; }
.dsf-toggle-tt small { font-size: 12px; color: #9ca3af; font-weight: 400; }
.dsf-range-hint { font-size: 12px; color: #9ca3af; margin-top: 6px; line-height: 1.45; }
.dsf-range-clear { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--fido-accent,#FC5180); white-space: nowrap; }
.dsf-heart { color: var(--fido-accent,#FC5180); }
.dsf-fpill.is-on .dsf-heart { color: inherit; }

/* ── Result card — app map-card layout (org icon + sport line + heart) ── */
.dsf-card { border-left: 3px solid var(--c, transparent); padding: 14px 15px; }
.dsf-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.dsf-card-orglogo { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: #f6f7f9; padding: 4px; flex-shrink: 0; }
.dsf-card-orgmono { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.dsf-card-headtext { flex: 1; min-width: 0; }
.dsf-card-orgname { display: block; font-size: 12.5px; font-weight: 600; color: #374151; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dsf-card-sportline { display: block; font-size: 11px; color: #9ca3af; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* heart now lives inline in the head row (override the old absolute rule) */
.dsf-card .dsf-fav { position: static; top: auto; right: auto; align-self: flex-start; flex-shrink: 0; color: #d1d5db; }
.dsf-card .dsf-fav.is-fav { color: var(--fido-accent,#FC5180); }
.dsf-card-title { font-size: 14.5px; font-weight: 700; color: #1f2937; line-height: 1.3; margin: 0 0 5px; }
.dsf-card-loc { color: #6b7280; }
.dsf-card-loc .dsf-card-dist { margin-left: auto; }
/* thin scrollbar for the (now narrower) card column */
#dsf-list { scrollbar-width: thin; }
#dsf-list::-webkit-scrollbar { width: 6px; }
#dsf-list::-webkit-scrollbar-thumb { background: #d8dbe2; border-radius: 99px; }

/* ── Card detail footer: entry dates + premium/source + mail secretary ── */
.dsf-card-detail { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f1f4; }
.dsf-card-entry { font-size: 12px; color: #6b7280; margin-bottom: 7px; }
.dsf-card-entry-lbl { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9ca3af; margin-right: 6px; }
.dsf-card-links { display: flex; flex-wrap: wrap; gap: 6px; }
.dsf-card-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; font-size: 12px; font-weight: 600;
  border-radius: 8px; border: 1px solid #e5e7eb; color: #374151; background: #fff; transition: all .12s;
}
.dsf-card-link:hover { background: #f7f8fa; border-color: #d8dbe2; }
.dsf-card-mail { color: var(--fido-primary,#2668B2); border-color: rgba(38,104,178,.3); background: rgba(38,104,178,.06); }
.dsf-card-mail:hover { background: rgba(38,104,178,.12); }
.dsf-card-mail[disabled] { opacity: .6; }
.dsf-card-nolink { font-size: 12px; color: #9ca3af; }

/* ── Map info-window popups (single pin + cluster list) ───────── */
.dsf-gpop { font-family: 'DM Sans', system-ui, sans-serif; min-width: 180px; }
.dsf-pop-title { font-weight: 700; font-size: 13px; color: #1f2937; }
.dsf-pop-meta { font-size: 12px; color: #6b7280; }
.dsf-pop-dist { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.dsf-gpop-cluster { max-height: 230px; overflow-y: auto; }
.dsf-gpop-item { display: block; width: 100%; text-align: left; padding: 7px 4px; border-bottom: 1px solid #f0f1f4; }
.dsf-gpop-item:last-child { border-bottom: 0; }
.dsf-gpop-item:hover { background: #f7f8fa; }
.dsf-gpop-t { display: block; font-weight: 600; font-size: 12.5px; color: #1f3b5e; }
.dsf-gpop-m { display: block; font-size: 11.5px; color: #9ca3af; }
.dsf-gpop-more { font-size: 11px; color: #9ca3af; padding: 6px 4px 2px; }

/* ── My Favorites section (manage saved trials) ───────────────── */
/* Deep-link target (#dsf-favorites): clear the sticky header when scrolled to. */
.dsf-fav-section { scroll-margin-top: 88px; }
.dsf-fav-empty { font-size: 14px; color: #9ca3af; padding: 16px 0; }
.dsf-fav-table { display: flex; flex-direction: column; gap: 1px; background: #eef0f3; border: 1px solid #eef0f3; border-radius: 14px; overflow: hidden; }
.dsf-fav-row { display: grid; grid-template-columns: 40px 70px 78px minmax(140px,1.4fr) minmax(180px,2fr) 90px 110px minmax(120px,1.2fr); align-items: center; gap: 10px; padding: 11px 14px; background: #fff; font-size: 13px; color: #374151; }
.dsf-fav-head { background: #fafbfc; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9ca3af; }
.dsf-fav-x { color: var(--fido-accent,#FC5180); font-size: 18px; line-height: 1; }
.dsf-fav-x:hover { opacity: .7; }
.dsf-fav-row input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--fido-primary,#2668B2); }
.dsf-fav-row [data-col="Org · Sport"] strong { display: block; font-weight: 600; color: #1f2937; }
.dsf-fav-row [data-col="Org · Sport"] small { display: block; font-size: 11.5px; color: #9ca3af; }
.dsf-fav-name a { font-weight: 600; color: #1f3b5e; }
.dsf-fav-name a:hover { color: var(--fido-primary,#2668B2); text-decoration: underline; }
.dsf-fav-cal { text-decoration: none; opacity: .7; }
.dsf-fav-cal:hover { opacity: 1; }

@media (max-width: 860px) {
  .dsf-fav-head { display: none; }
  .dsf-fav-row { grid-template-columns: 28px 1fr; grid-auto-rows: min-content; gap: 4px 10px; padding: 14px; position: relative; }
  .dsf-fav-x { grid-row: 1; grid-column: 1; }
  .dsf-fav-name { grid-row: 1; grid-column: 2; font-weight: 700; }
  .dsf-fav-row [data-col]:not(.dsf-fav-name) { grid-column: 2; display: flex; gap: 8px; font-size: 12.5px; }
  .dsf-fav-row [data-col]:not(.dsf-fav-name):not([data-col="Org · Sport"])::before { content: attr(data-col) ":"; color: #9ca3af; min-width: 70px; }
  .dsf-fav-row [data-col="Org · Sport"] { flex-direction: column; gap: 0; }
}

/* ── Favorites storage note ───────────────────────────────────── */
.dsf-fav-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; background: #f7f8fa; border: 1px solid #eef0f3; border-radius: 12px; }
.dsf-fav-note-ico { width: 18px; height: 18px; color: var(--fido-primary,#2668B2); flex-shrink: 0; margin-top: 1px; }
.dsf-fav-note p { font-size: 12.5px; line-height: 1.5; color: #6b7280; margin: 0; }
.dsf-fav-note strong { color: #374151; font-weight: 600; }

/* ── Alerts: reused Mailchimp-for-WP (mc4wp) signup, styled to match ──── */
.dsf-alerts-mc4wp .mc4wp-form-fields { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .dsf-alerts-mc4wp .mc4wp-form-fields { flex-direction: row; align-items: stretch; } }
.dsf-alerts-mc4wp input[type="email"],
.dsf-alerts-mc4wp input[type="text"] {
  flex: 1; width: 100%; padding: 14px 20px; font-size: 14px; color: #1f2937;
  background: #fff; border: 0; border-radius: 12px; outline: none;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.18);
}
.dsf-alerts-mc4wp input[type="email"]:focus { box-shadow: 0 10px 15px -3px rgba(0,0,0,.18), 0 0 0 2px var(--fido-gold,#F4B706); }
.dsf-alerts-mc4wp input[type="submit"],
.dsf-alerts-mc4wp button[type="submit"] {
  padding: 14px 26px; font-size: 14px; font-weight: 700; color: #0d1225;
  background: var(--fido-gold,#F4B706); border: 0; border-radius: 12px; cursor: pointer;
  white-space: nowrap; box-shadow: 0 10px 15px -3px rgba(0,0,0,.18); transition: transform .15s, filter .15s;
}
.dsf-alerts-mc4wp input[type="submit"]:hover,
.dsf-alerts-mc4wp button[type="submit"]:hover { filter: brightness(1.05); transform: scale(1.02); }
.dsf-alerts-mc4wp .mc4wp-response { color: #fff; font-size: 13px; margin-top: 10px; }
.dsf-alerts-mc4wp label { color: rgba(255,255,255,.7); font-size: 13px; }

/* ── Events | Trainers segmented toggle ───────────────────────── */
.dsf-mode-toggle { display: inline-flex; padding: 3px; background: #f1f2f5; border-radius: 11px; gap: 2px; }
.dsf-mode-btn { padding: 7px 18px; font-size: 13px; font-weight: 600; color: #6b7280; border-radius: 9px; transition: all .12s; }
.dsf-mode-btn:hover { color: #1f2937; }
.dsf-mode-btn.is-active { background: #fff; color: var(--fido-primary,#2668B2); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ── /trainers: sport filter bar + cards ──────────────────────── */
.dsf-tr-sportbar { display: flex; flex-wrap: wrap; gap: 7px; }
.dsf-tr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 12.5px; font-weight: 500; color: #374151; background: #f4f4f6; border: 1.5px solid transparent; border-radius: 99px; transition: all .12s; }
.dsf-tr-chip:hover { background: #ececf0; }
.dsf-tr-chip.is-on { background: rgba(38,104,178,.1); border-color: var(--fido-primary,#2668B2); color: var(--fido-primary,#2668B2); font-weight: 600; }

.dsf-tr-card .dsf-tr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
/* Gold paw mark in place of a trainer logo (no trainer images exist). */
.dsf-tr-avatar { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(244,183,6,.16); color: var(--fido-gold,#F4B706); }
.dsf-tr-avatar svg, .dsf-tr-avatar img { width: 24px; height: 24px; }
.dsf-tr-htext { flex: 1; min-width: 0; }
.dsf-tr-name { font-size: 14.5px; font-weight: 700; color: #1f2937; line-height: 1.25; margin: 0; }
.dsf-tr-loc { display: block; font-size: 12px; color: #9ca3af; margin-top: 1px; }
.dsf-tr-loc.dsf-tr-addr { color: #6b7280; font-weight: 500; }
/* Trainer cards aren't tied to one sport color — the gold left edge marks the
   selected card (clicked in the list, or its pin clicked on the map). */
.dsf-tr-card { border-left-color: transparent; }
.dsf-tr-card.is-selected { border-left-color: var(--fido-gold,#F4B706); box-shadow: 0 0 0 1px rgba(244,183,6,.45), 0 6px 22px rgba(16,24,40,.08); }
.dsf-tr-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 11px; }
.dsf-tr-card .dsf-card-dist { align-self: flex-start; }

@media (max-width: 1023px) {
  #dsf-tr-list[data-view="map"] { display: none; }
  #dsf-tr-map-col[data-view="list"] { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   /choosing-a-sport — interactive sport-guide spotlight
   ════════════════════════════════════════════════════════════════════════ */
.dsf-cs-hero { background: linear-gradient(180deg, #fff 0%, var(--fido-bg, #f7f8fa) 100%); }
.dsf-cs-title {
  font-family: 'CrispLeaves', 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; color: var(--fido-ink, #1f2937);
  margin: .35rem 0 .6rem;
}
.dsf-cs-lede { max-width: 46rem; margin: 0 auto; color: var(--fido-muted, #6b7280); font-size: 1.05rem; line-height: 1.6; }

/* Stage: spotlight + tiles */
.dsf-cs-stage { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 1024px) { .dsf-cs-stage { grid-template-columns: 1.35fr 1fr; align-items: stretch; } }

/* Spotlight */
.dsf-cs-spotlight {
  position: relative; border-radius: 1.5rem; overflow: hidden; min-height: 360px;
  background: #111; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); isolation: isolate;
}
@media (min-width: 1024px) { .dsf-cs-spotlight { min-height: 540px; } }
.dsf-cs-spot-imgwrap { position: absolute; inset: 0; }
.dsf-cs-spot-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .6s ease, transform 6s ease;
}
.dsf-cs-spot-img.is-active { opacity: 1; transform: scale(1); }
.dsf-cs-spot-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.82) 100%);
}
.dsf-cs-spot-body { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: #fff; }
@media (min-width: 1024px) { .dsf-cs-spot-body { padding: 2.5rem; } }
.dsf-cs-spot-tagline { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--c, #2668B2); padding: .28rem .6rem; border-radius: 99px; margin-bottom: .7rem; }
.dsf-cs-spot-name { font-family: 'CrispLeaves', 'DM Serif Display', serif; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; margin: 0 0 .5rem; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.dsf-cs-spot-blurb { max-width: 34rem; font-size: .98rem; line-height: 1.55; color: rgba(255,255,255,.92); margin: 0 0 1.25rem; }
.dsf-cs-spot-body.is-swap .dsf-cs-spot-tagline,
.dsf-cs-spot-body.is-swap .dsf-cs-spot-name,
.dsf-cs-spot-body.is-swap .dsf-cs-spot-blurb { animation: dsfCsRise .45s ease both; }
@keyframes dsfCsRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.dsf-cs-spot-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.dsf-cs-btn { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; padding: .7rem 1.15rem; border-radius: 99px; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; }
.dsf-cs-btn:hover { transform: translateY(-1px); }
.dsf-cs-btn-primary { background: #fff; color: #111; box-shadow: 0 6px 18px -6px rgba(0,0,0,.5); }
.dsf-cs-btn-primary:hover { background: #f3f4f6; }
.dsf-cs-btn-ghost { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.32); }
.dsf-cs-btn-ghost:hover { background: rgba(255,255,255,.28); }
.dsf-cs-count { font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.25); padding: .1rem .45rem; border-radius: 99px; }
.dsf-cs-count:empty { display: none; }

/* Tiles */
.dsf-cs-tiles { display: flex; flex-direction: column; gap: .55rem; }
.dsf-cs-tile {
  display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left;
  padding: .8rem .95rem; background: #fff; border: 1.5px solid #eef0f3; border-radius: 1rem;
  cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease, background .15s ease;
}
.dsf-cs-tile:hover { transform: translateX(2px); box-shadow: 0 8px 22px -14px rgba(0,0,0,.35); }
.dsf-cs-tile.is-active { border-color: var(--c, #2668B2); background: #fff; box-shadow: 0 10px 26px -16px var(--c, #2668B2); }
.dsf-cs-tile.is-active .dsf-cs-tile-arrow { color: var(--c, #2668B2); transform: translateX(3px); }
.dsf-cs-tile-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: .7rem; display: flex; align-items: center; justify-content: center; }
.dsf-cs-tile-icon img,
.dsf-cs-tile-icon svg { width: 24px; height: 24px; object-fit: contain; }
.dsf-cs-tile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dsf-cs-tile-name { font-weight: 700; font-size: .95rem; color: var(--fido-ink, #1f2937); line-height: 1.2; }
.dsf-cs-tile-tagline { font-size: .8rem; color: var(--fido-muted, #9ca3af); }
.dsf-cs-tile-count { flex-shrink: 0; font-size: .72rem; font-weight: 700; color: var(--c, #2668B2); background: #f4f5f7; padding: .18rem .5rem; border-radius: 99px; }
.dsf-cs-tile-arrow { flex-shrink: 0; color: #cbd0d6; font-weight: 700; transition: transform .15s ease, color .15s ease; }
.dsf-cs-tile-all { background: transparent; border-style: dashed; }
.dsf-cs-tile-all:hover { background: #fff; }

/* Reading rail */
.dsf-cs-railsection { background: var(--fido-light-teal, #eef7f8); }
.dsf-cs-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; }
@media (min-width: 640px) { .dsf-cs-rail { grid-auto-columns: 1fr; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.dsf-cs-railcard { scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 6px 18px -12px rgba(0,0,0,.3); transition: transform .15s ease, box-shadow .15s ease; }
.dsf-cs-railcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -16px rgba(0,0,0,.4); }
.dsf-cs-railcard-img { display: block; aspect-ratio: 16/10; background-size: cover; background-position: center; }
.dsf-cs-railcard-title { padding: .85rem .95rem .25rem; font-weight: 700; font-size: .92rem; line-height: 1.3; color: var(--fido-ink, #1f2937); flex: 1; }
.dsf-cs-railcard-cta { padding: 0 .95rem 1rem; font-size: .82rem; font-weight: 600; color: var(--fido-primary, #2668B2); }

/* ── Static WordPress Pages (page.php: /download/, /about-us/, etc.) ───────────
   These are full-width Gutenberg layouts that own their widths via inline
   styles (cover heroes, ~1100px container groups). Render edge-to-edge; only
   give bare-text pages a readable column so they aren't full-bleed. */
.dsf-page { width: 100%; }
.dsf-page img { max-width: 100%; height: auto; }
.dsf-page > p, .dsf-page > h1, .dsf-page > h2, .dsf-page > h3,
.dsf-page > ul, .dsf-page > ol, .dsf-page > blockquote {
  max-width: 760px; margin-left: auto; margin-right: auto;
  padding-left: 1.25rem; padding-right: 1.25rem;
}

/* ════════════════════════════════════════════════════════════════════════
   /download/ — app landing page (page-download.php)
   ════════════════════════════════════════════════════════════════════════ */
.dsf-dl { width: 100%; }

/* Hero */
.dsf-dl-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #225EA0 0%, #2668B2 45%, #13B3D0 120%); color: #fff; }
.dsf-dl-hero::before { content: ''; position: absolute; inset: 0; background: var(--photo) center/cover no-repeat; opacity: .14; mix-blend-mode: luminosity; }
.dsf-dl-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 80% 10%, rgba(244,183,6,.18), transparent 55%); }
.dsf-dl-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 900px) { .dsf-dl-hero-inner { grid-template-columns: 1.05fr .95fr; gap: 3rem; padding-top: 5.5rem; padding-bottom: 5.5rem; } }
.dsf-dl-eyebrow { display: inline-block; font-family: 'Space Mono', monospace; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.dsf-dl-title { font-family: 'CrispLeaves','DM Serif Display',serif; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; margin: 0 0 1.1rem; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0,0,0,.18); }
.dsf-dl-lede { max-width: 34rem; font-size: 1.08rem; line-height: 1.6; color: rgba(255,255,255,.92); margin: 0 0 1.6rem; }
.dsf-dl-meta { margin-top: 1rem; font-size: .85rem; color: rgba(255,255,255,.7); }

/* Store badges */
.dsf-dl-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.dsf-dl-badge-apple { height: 52px; width: auto; display: block; }
.dsf-dl-badge-google { height: 76px; width: auto; display: block; margin: -12px 0; }

/* Phone mockup */
.dsf-phone { position: relative; width: 270px; max-width: 78vw; margin: 0 auto; border-radius: 2.4rem; padding: .55rem; background: #0d0d0d; box-shadow: 0 30px 60px -22px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06) inset; }
.dsf-phone::before { content: ''; position: absolute; top: .9rem; left: 50%; transform: translateX(-50%); width: 38%; height: .42rem; background: #000; border-radius: 99px; z-index: 2; }
.dsf-phone img { display: block; width: 100%; border-radius: 1.95rem; }
.dsf-dl-hero-phone { display: flex; justify-content: center; }
@media (min-width: 900px) { .dsf-dl-hero-phone .dsf-phone { transform: rotate(2.5deg); } }
.dsf-phone-sm { width: 230px; }

/* Sections */
.dsf-dl-section { padding: 4.5rem 0; background: #fff; }
.dsf-dl-h2 { font-family: 'CrispLeaves','DM Serif Display',serif; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.08; color: var(--fido-ink,#0D0D0D); margin: .25rem 0 .6rem; }
.dsf-dl-sub { max-width: 40rem; margin: 0 auto; color: var(--fido-muted,#6B6B6B); font-size: 1.02rem; line-height: 1.55; }
.text-center .dsf-dl-sub { margin-left: auto; margin-right: auto; }

/* Feature grid */
.dsf-dl-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-top: 2.75rem; }
@media (min-width: 640px) { .dsf-dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .dsf-dl-grid { grid-template-columns: repeat(3, 1fr); } }
.dsf-dl-feature { background: #fff; border: 1px solid #eef0f3; border-radius: 1.25rem; padding: 1.6rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.dsf-dl-feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(16,24,40,.35); border-color: #e3e7ee; }
.dsf-dl-feat-ico { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; align-items: center; justify-content: center; margin-bottom: 1rem; }
.dsf-dl-feat-ico svg { width: 26px; height: 26px; }
.dsf-dl-feat-title { font-size: 1.08rem; font-weight: 700; color: var(--fido-ink,#0D0D0D); margin: 0 0 .4rem; }
.dsf-dl-feat-body { font-size: .92rem; line-height: 1.55; color: var(--fido-muted,#6B6B6B); margin: 0; }

/* Showcase (dark band) */
.dsf-dl-showcase { padding: 4.5rem 0 5rem; background: radial-gradient(120% 80% at 50% 0%, #143a63 0%, #0d0d0d 90%); }
.dsf-dl-shots { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2.75rem; }
@media (min-width: 760px) { .dsf-dl-shots { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.dsf-dl-shot { text-align: center; }
@media (min-width: 760px) { .dsf-dl-shot:nth-child(2) { transform: translateY(-1.75rem); } }
.dsf-dl-shot-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 1.25rem 0 .35rem; }
.dsf-dl-shot-body { font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.7); max-width: 17rem; margin: 0 auto; }

/* CTA band */
.dsf-dl-cta { padding: 4.5rem 0; background: linear-gradient(135deg, #FC5180 0%, #225EA0 110%); color: #fff; text-align: center; }
.dsf-dl-cta .dsf-dl-h2 { color: #fff; }
.dsf-dl-cta .dsf-dl-sub { color: rgba(255,255,255,.88); }
.dsf-dl-cta-paw { width: 44px; height: 44px; margin: 0 auto .6rem; filter: brightness(0) invert(1); opacity: .92; }
.dsf-dl-cta .dsf-dl-badges { justify-content: center; margin-top: 1.5rem; }

/* Resources */
.dsf-dl-resources { background: var(--fido-light-teal,#EAF6F7); }
.dsf-dl-reslist { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 760px) { .dsf-dl-reslist { grid-template-columns: repeat(3, 1fr); } }
.dsf-dl-rescard { display: flex; flex-direction: column; background: #fff; border-radius: 1.25rem; padding: 1.6rem; box-shadow: 0 6px 18px -14px rgba(16,24,40,.3); transition: transform .18s ease, box-shadow .18s ease; }
.dsf-dl-rescard:hover { transform: translateY(-4px); box-shadow: 0 18px 38px -20px rgba(16,24,40,.4); }
.dsf-dl-res-title { font-size: 1.05rem; font-weight: 700; color: var(--fido-ink,#0D0D0D); margin: 0 0 .4rem; }
.dsf-dl-res-body { font-size: .9rem; line-height: 1.5; color: var(--fido-muted,#6B6B6B); margin: 0 0 1rem; flex: 1; }
.dsf-dl-res-cta { font-size: .88rem; font-weight: 700; color: var(--fido-primary,#2668B2); }
.dsf-dl-credit { margin-top: 2.5rem; text-align: center; font-size: .85rem; color: var(--fido-muted,#6B6B6B); }

/* ── Legacy content class: .crispleaves ───────────────────────────────────────
   Several migrated pages (about-us, about-dog-sports, find-a-trainer,
   about-fido-events, events) tag brand headings with .crispleaves, which the
   old theme styled with its CrispLeaves font. Map it to our @font-face so those
   headings render in the brand font instead of falling back. */
.crispleaves { font-family: 'CrispLeaves', 'Crisp-Leaves', 'DM Serif Display', serif; }

/* Restore content heading sizes. Tailwind's preflight resets h1–h6 to
   font-size:inherit, which collapsed block-content headings (e.g. the
   .crispleaves section headings on /about-dog-sports/) to body size. Scoped to
   .entry-content (page.php + legal pages); explicit block sizes (has-*-font-size,
   which are !important) and inline font-size still win. (.entry-content selector
   out-specifies preflight's bare element selector, so order doesn't matter.) */
.entry-content h1, .prose h1 { font-size: clamp(2rem, 4.2vw, 2.8rem); line-height: 1.12; font-weight: 700; margin: 0 0 .6rem; }
.entry-content h2, .prose h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.18; font-weight: 700; margin: 1.7rem 0 .6rem; }
.entry-content h3, .prose h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 700; margin: 1.3rem 0 .5rem; }
.entry-content h4, .prose h4 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; margin: 1.1rem 0 .4rem; }
/* CrispLeaves is a hand-drawn display face — give those headings a touch more size + spacing. */
.entry-content h1.crispleaves, .entry-content h2.crispleaves,
.prose h1.crispleaves, .prose h2.crispleaves { font-size: clamp(1.9rem, 3.6vw, 2.5rem); letter-spacing: .01em; }
/* Content typography baseline — Tailwind preflight also strips list bullets,
   link underlines, and paragraph spacing. Restore them for block/classic
   content (.dsf-legal overrides where it sets its own; bespoke templates use
   their own classes and are unaffected). */
.entry-content p, .prose p { line-height: 1.7; margin: 0 0 1rem; }
.entry-content ul, .prose ul { list-style: disc; margin: 0 0 1rem 1.5rem; }
.entry-content ol, .prose ol { list-style: decimal; margin: 0 0 1rem 1.5rem; }
.entry-content li, .prose li { margin: .35rem 0; line-height: 1.6; }
.entry-content a, .prose a { color: var(--fido-primary, #2668B2); text-decoration: underline; }
.entry-content strong, .prose strong { font-weight: 700; }
.entry-content blockquote, .prose blockquote { border-left: 3px solid var(--fido-primary, #2668B2); padding-left: 1rem; margin: 1.25rem 0; color: var(--fido-muted, #6B6B6B); }

/* ════════════════════════════════════════════════════════════════════════
   /app-patchnotes/ — "What's New" release timeline (page-app-patchnotes.php)
   ════════════════════════════════════════════════════════════════════════ */
.dsf-pn { width: 100%; }
.dsf-pn-hero { background: linear-gradient(135deg, #225EA0 0%, #2668B2 50%, #13B3D0 120%); color: #fff; }
.dsf-pn-title { font-family: 'CrispLeaves','DM Serif Display',serif; font-size: clamp(2.4rem,5vw,3.6rem); line-height: 1.02; margin: .35rem 0 .7rem; }
.dsf-pn-lede { max-width: 38rem; margin: 0 auto 1.4rem; color: rgba(255,255,255,.9); line-height: 1.6; }
.dsf-pn-cta { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.3rem; background: #fff; color: var(--fido-primary,#2668B2); font-weight: 700; font-size: .9rem; border-radius: 99px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); transition: transform .12s ease; }
.dsf-pn-cta:hover { transform: translateY(-1px); }

.dsf-pn-empty { text-align: center; color: var(--fido-muted,#6B6B6B); font-style: italic; padding: 3rem 0; }

/* Release entry — left rail + dot timeline */
.dsf-pn-release { display: grid; grid-template-columns: 28px 1fr; gap: 1rem; }
.dsf-pn-rail { position: relative; display: flex; justify-content: center; }
.dsf-pn-rail::before { content: ''; position: absolute; top: 0; bottom: -2.5rem; width: 2px; background: #e8eaee; }
.dsf-pn-release:last-child .dsf-pn-rail::before { display: none; }
.dsf-pn-dot { position: relative; z-index: 1; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--fido-primary,#2668B2); box-shadow: 0 0 0 4px rgba(38,104,178,.15); }
.dsf-pn-dot.is-ota { background: var(--fido-teal,#13B3D0); box-shadow: 0 0 0 4px rgba(19,179,208,.15); }
.dsf-pn-body { padding-bottom: 2.5rem; min-width: 0; }

.dsf-pn-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; margin-bottom: .9rem; }
.dsf-pn-version { font-family: 'CrispLeaves','DM Serif Display',serif; font-size: 1.6rem; font-weight: 700; color: var(--fido-ink,#0D0D0D); margin: 0; line-height: 1; }
.dsf-pn-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .55rem; border-radius: 99px; background: rgba(38,104,178,.12); color: var(--fido-primary,#2668B2); }
.dsf-pn-badge.is-ota { background: rgba(19,179,208,.14); color: #0e8aa1; }
.dsf-pn-date { font-size: .85rem; color: var(--fido-muted,#9ca3af); font-variant-numeric: tabular-nums; }

.dsf-pn-area { font-family: 'Space Mono', monospace; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fido-accent,#FC5180); margin: 1.1rem 0 .4rem; }
.dsf-pn-list { list-style: none; margin: 0 0 .4rem; padding: 0; }
.dsf-pn-list li { position: relative; padding-left: 1.2rem; margin: .5rem 0; line-height: 1.6; color: var(--fido-text,#374151); font-size: .96rem; }
.dsf-pn-list li::before { content: ''; position: absolute; left: 0; top: .6rem; width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; }
.dsf-pn-list strong { color: var(--fido-ink,#0D0D0D); font-weight: 700; }
.dsf-pn-fallback { line-height: 1.6; color: var(--fido-text,#374151); }
.dsf-pn-fallback ul { margin: .5rem 0 .5rem 1.2rem; }
.dsf-pn-fallback li { margin: .4rem 0; }

/* ════════════════════════════════════════════════════════════════════════
   /about-us/ — founder story (page-about-us.php)
   ════════════════════════════════════════════════════════════════════════ */
.dsf-about { width: 100%; }
.dsf-about-hero { background: linear-gradient(180deg,#fff 0%,var(--fido-light-teal,#EAF6F7) 100%); padding: 3.5rem 0 4rem; }
.dsf-about-hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .dsf-about-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; } }
.dsf-about-title { font-family: 'CrispLeaves','DM Serif Display',serif; font-size: clamp(2.2rem,4.6vw,3.4rem); line-height: 1.05; color: var(--fido-ink,#0D0D0D); margin: .3rem 0 1rem; }
.dsf-about-lede { max-width: 34rem; font-size: 1.08rem; line-height: 1.6; color: var(--fido-muted,#6B6B6B); margin-bottom: 1.5rem; }
.dsf-about-cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .95rem; color: var(--fido-primary,#2668B2); }
.dsf-about-cta:hover { gap: .6rem; }
.dsf-about-hero-photo { position: relative; }
.dsf-about-hero-photo img { width: 100%; border-radius: 1.5rem; box-shadow: 0 24px 50px -24px rgba(0,0,0,.4); object-fit: cover; aspect-ratio: 4/5; }
.dsf-about-photo-cap { position: absolute; bottom: .9rem; left: .9rem; right: .9rem; font-family:'Space Mono',monospace; font-size: .68rem; letter-spacing: .04em; color: #fff; background: rgba(13,13,13,.55); backdrop-filter: blur(4px); padding: .4rem .7rem; border-radius: .6rem; }

.dsf-about-section { padding: 4rem 0; background: #fff; }
.dsf-about-split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .dsf-about-split { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; } }
/* Crop the collage to ~67% height (object-position:top) so the bottom photo —
   the same Kai-on-grass shot used in the hero above — isn't repeated. */
.dsf-about-figure img { width: 100%; border-radius: 1.25rem; box-shadow: 0 16px 40px -22px rgba(0,0,0,.35); aspect-ratio: 616 / 1000; object-fit: cover; object-position: top; }
.dsf-about-h2 { font-family:'CrispLeaves','DM Serif Display',serif; font-size: clamp(1.8rem,3.4vw,2.6rem); line-height: 1.1; color: var(--fido-ink,#0D0D0D); margin: 0 0 1rem; }
.dsf-about-prose p { font-size: 1rem; line-height: 1.7; color: var(--fido-text,#374151); margin: 0 0 1rem; }

.dsf-about-cards-wrap { background: var(--fido-bg,#FAFAF9); }
.dsf-about-cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .dsf-about-cards { grid-template-columns: 1fr 1fr; } }
.dsf-about-card { background: #fff; border: 1px solid #eef0f3; border-radius: 1.25rem; padding: 2rem; }
.dsf-about-kicker { display: inline-block; font-family:'Space Mono',monospace; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fido-accent,#FC5180); margin-bottom: .9rem; }
.dsf-about-card p { font-size: .97rem; line-height: 1.65; color: var(--fido-text,#374151); margin: 0 0 .9rem; }
.dsf-about-card p:last-child { margin-bottom: 0; }

.dsf-about-final { padding: 4.5rem 0; background: linear-gradient(135deg,#225EA0 0%,#FC5180 130%); color: #fff; text-align: center; }
.dsf-about-paw { width: 44px; height: 44px; margin: 0 auto .6rem; filter: brightness(0) invert(1); opacity: .92; }
.dsf-about-final-sub { color: rgba(255,255,255,.9); margin: 0 0 1.5rem; }
.dsf-about-final-btns { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.dsf-about-btn-primary { padding: .8rem 1.6rem; background: #fff; color: var(--fido-primary,#2668B2); font-weight: 700; border-radius: 99px; font-size: .92rem; transition: transform .12s; }
.dsf-about-btn-ghost { padding: .8rem 1.6rem; background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); font-weight: 700; border-radius: 99px; font-size: .92rem; transition: background .15s; }
.dsf-about-btn-primary:hover { transform: translateY(-2px); }
.dsf-about-btn-ghost:hover { background: rgba(255,255,255,.28); }

/* ════════════════════════════════════════════════════════════════════════
   /organization-requests/ — themed wrapper + shortcode table styling
   ════════════════════════════════════════════════════════════════════════ */
.dsf-orgreq { width: 100%; }
.dsf-orgreq-hero { background: linear-gradient(135deg,#0d2742 0%,#1c4e86 55%,#225EA0 120%); color: #fff; }
.dsf-orgreq-title { font-family:'CrispLeaves','DM Serif Display',serif; font-size: clamp(2.2rem,4.6vw,3.2rem); line-height: 1.05; margin: .35rem 0 .8rem; }
.dsf-orgreq-lede { max-width: 40rem; margin: 0 auto 1.4rem; color: rgba(255,255,255,.9); line-height: 1.6; }
.dsf-orgreq-cta { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.3rem; background: #fff; color: var(--fido-primary,#2668B2); font-weight: 700; font-size: .9rem; border-radius: 99px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); transition: transform .12s; }
.dsf-orgreq-cta:hover { transform: translateY(-1px); }

/* ── Single blog post (sport guides etc.) ─────────────────────────────────── */
.dsf-post-hero { position: relative; background: linear-gradient(135deg,#0d2742 0%,#1c4e86 55%,#225EA0 120%); background-size: cover; background-position: center; color: #fff; display: flex; align-items: flex-end; min-height: clamp(240px, 40vh, 440px); }
.dsf-post-hero.has-image { background-color: #0d2742; }
.dsf-post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,39,66,.12) 0%, rgba(13,39,66,.55) 60%, rgba(13,39,66,.88) 100%); }
.dsf-post-hero:not(.has-image) .dsf-post-hero-overlay { display: none; }
.dsf-post-hero-inner { position: relative; width: 100%; max-width: 48rem; margin: 0 auto; padding: 2.5rem 1.25rem 2.75rem; }
.dsf-post-hero .dsf-section-label::before { background: var(--fido-gold,#F4B706); }
.dsf-post-title { font-family: 'CrispLeaves','DM Serif Display',serif; font-size: clamp(2.1rem, 4.8vw, 3.4rem); line-height: 1.04; margin: .4rem 0 .55rem; text-shadow: 0 2px 22px rgba(0,0,0,.38); }
.dsf-post-meta { color: rgba(255,255,255,.85); font-size: .9rem; }

.dsf-post-body { max-width: 48rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.dsf-post-crumbs { font-size: .78rem; color: var(--fido-muted,#6B6B6B); margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.dsf-post-crumbs a { color: var(--fido-muted,#6B6B6B); text-decoration: none; }
.dsf-post-crumbs a:hover { color: var(--fido-primary,#2668B2); }

.dsf-post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin: 3rem 0 0; padding: 1.6rem 1.8rem; border-radius: 1.1rem; background: var(--fido-light-teal,#EAF6F7); border: 1px solid #d9edef; }
.dsf-post-cta-title { font-family: 'CrispLeaves','DM Serif Display',serif; font-size: 1.5rem; line-height: 1.15; color: var(--fido-ink,#0D0D0D); margin: 0 0 .25rem; }
.dsf-post-cta-sub { color: var(--fido-muted,#6B6B6B); font-size: .92rem; margin: 0; max-width: 30rem; }
.dsf-post-cta-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: .4rem; padding: .75rem 1.4rem; background: var(--fido-primary,#2668B2); color: #fff; font-weight: 700; font-size: .92rem; border-radius: 99px; text-decoration: none; transition: transform .12s, box-shadow .12s; box-shadow: 0 10px 22px -12px rgba(38,104,178,.7); }
.dsf-post-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(38,104,178,.8); }

.dsf-post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid #eef0f3; font-size: .9rem; font-weight: 600; }
.dsf-post-nav a { color: var(--fido-primary,#2668B2); text-decoration: none; }
.dsf-post-nav a:hover { text-decoration: underline; }
.dsf-post-nav-next { text-align: right; margin-left: auto; }

/* Static related-articles grid (replaces the [ajax_load_more] block) */
.dsf-post-related { margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid #eef0f3; }
.dsf-post-related-title { font-family: 'CrispLeaves','DM Serif Display',serif; font-size: 1.5rem; line-height: 1.15; color: var(--fido-ink,#0D0D0D); margin: 0 0 1.2rem; }
.dsf-post-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.1rem; }
.dsf-post-related-card { display: flex; flex-direction: column; text-decoration: none; border-radius: .9rem; overflow: hidden; background: #fff; border: 1px solid #eef0f3; box-shadow: 0 6px 18px -14px rgba(16,24,40,.4); transition: transform .12s, box-shadow .12s; }
.dsf-post-related-card:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(16,24,40,.5); }
.dsf-post-related-thumb { display: block; aspect-ratio: 16 / 10; background: #e9eef2 center/cover no-repeat; }
.dsf-post-related-thumb[data-noimg] { background: linear-gradient(135deg,#1c4e86,#225EA0); }
.dsf-post-related-name { padding: .7rem .85rem .9rem; font-weight: 700; font-size: .9rem; line-height: 1.25; color: var(--fido-ink,#0D0D0D); }
.dsf-post-related-card:hover .dsf-post-related-name { color: var(--fido-primary,#2668B2); }

/* Style the plugin's [fido_scraper_request_list] output to match the theme */
.dsf-orgreq-list .fido-sr-list-wrap { display: flex; flex-direction: column; overflow-x: auto; border: 1px solid #eef0f3; border-radius: 1rem; box-shadow: 0 6px 22px -16px rgba(16,24,40,.3); }
/* Move the "Don't see your favorite organization?" CTA below the table. */
.dsf-orgreq-list .fido-sr-cta { order: 2; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: 1.1rem 1rem; border-top: 1px solid #eef0f3; color: var(--fido-muted,#6B6B6B); font-size: .9rem; }
.dsf-orgreq-list .fido-sr-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
.dsf-orgreq-list .fido-sr-table th { background: #f7f8fa; text-align: left; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #9ca3af; padding: .85rem 1rem; border-bottom: 1px solid #eef0f3; white-space: nowrap; }
.dsf-orgreq-list .fido-sr-table td { padding: .85rem 1rem; border-bottom: 1px solid #f1f2f4; color: var(--fido-text,#374151); vertical-align: middle; }
.dsf-orgreq-list .fido-sr-table tr:last-child td { border-bottom: none; }
.dsf-orgreq-list .fido-sr-table tbody tr:hover { background: #fafbfc; }
.dsf-orgreq-list .fido-sr-table a { color: var(--fido-primary,#2668B2); font-weight: 600; }
.dsf-orgreq-list .fido-sr-table a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════════════
   /contact-us/ — themed hero + Formidable form card (page-contact-us.php)
   ════════════════════════════════════════════════════════════════════════ */
.dsf-contact { width: 100%; }
.dsf-contact-hero { background: linear-gradient(135deg,#143a63 0%,#2668B2 100%); color: #fff; }
.dsf-contact-title { font-family:'CrispLeaves','DM Serif Display',serif; font-size: clamp(2.2rem,4.6vw,3.2rem); line-height: 1.05; margin: .35rem 0 .8rem; }
.dsf-contact-lede { max-width: 36rem; margin: 0 auto; color: rgba(255,255,255,.9); line-height: 1.6; }
.dsf-contact-card { background: #fff; border: 1px solid #eef0f3; border-radius: 1.25rem; padding: 2rem; box-shadow: 0 12px 40px -24px rgba(16,24,40,.4); }
.dsf-contact-alt { text-align: center; font-size: .9rem; color: var(--fido-muted,#6B6B6B); margin-top: 1.25rem; }
.dsf-contact-alt a { color: var(--fido-primary,#2668B2); font-weight: 600; }
/* Style the Formidable form fields to match the theme */
.dsf-contact-card label { font-weight: 600; color: var(--fido-ink,#0D0D0D); font-size: .9rem; }
.dsf-contact-card input[type=text], .dsf-contact-card input[type=email], .dsf-contact-card input[type=tel],
.dsf-contact-card input[type=url], .dsf-contact-card textarea, .dsf-contact-card select {
  width: 100%; padding: .7rem .85rem; margin-top: .35rem; background: #fafbfc;
  border: 1px solid #d8dbe2; border-radius: .7rem; font-size: .95rem; color: var(--fido-text,#374151); transition: border-color .12s, box-shadow .12s;
}
.dsf-contact-card input:focus, .dsf-contact-card textarea:focus, .dsf-contact-card select:focus {
  outline: none; border-color: var(--fido-primary,#2668B2); box-shadow: 0 0 0 3px rgba(38,104,178,.15); background: #fff;
}
.dsf-contact-card .frm_submit { margin-top: 1rem; }
.dsf-contact-card .frm_submit button, .dsf-contact-card input[type=submit], .dsf-contact-card .frm_button_submit {
  display: inline-flex; align-items: center; padding: .8rem 1.8rem; background: var(--fido-accent,#FC5180); color: #fff;
  font-weight: 700; font-size: .95rem; border: 0; border-radius: 99px; cursor: pointer; transition: transform .12s, background .15s;
}
.dsf-contact-card .frm_submit button:hover, .dsf-contact-card input[type=submit]:hover { transform: translateY(-1px); background: #e84675; }

/* ════════════════════════════════════════════════════════════════════════
   /privacy-policy-2/ — branded legal prose (page-privacy-policy-2.php)
   ════════════════════════════════════════════════════════════════════════ */
.dsf-legal-page { width: 100%; background: var(--fido-bg,#FAFAF9); }
.dsf-legal { color: var(--fido-text,#374151); font-size: 1rem; line-height: 1.75; }
.dsf-legal > * { margin-bottom: 1.1rem; }
.dsf-legal .wp-block-cover, .dsf-legal .wp-block-cover.hero { border-radius: 1.25rem; overflow: hidden; min-height: 260px !important; margin-bottom: 2rem; }
/* Keep cover-banner text white — don't let the prose heading styles below
   (dark color + top divider) bleed into the cover hero. */
.dsf-legal .wp-block-cover h1, .dsf-legal .wp-block-cover h2, .dsf-legal .wp-block-cover h3,
.dsf-legal .wp-block-cover p, .dsf-legal .wp-block-cover span, .dsf-legal .wp-block-cover strong { color: #fff; }
.dsf-legal .wp-block-cover h1, .dsf-legal .wp-block-cover h2, .dsf-legal .wp-block-cover h3 { border-top: 0; padding-top: 0; margin-top: 0; }
.dsf-legal h1, .dsf-legal h2, .dsf-legal h3 { font-family:'CrispLeaves','DM Serif Display',serif; color: var(--fido-ink,#0D0D0D); line-height: 1.15; }
.dsf-legal h2 { font-size: clamp(1.5rem,3vw,2rem); margin: 2rem 0 .6rem; padding-top: 1rem; border-top: 1px solid #eef0f3; }
.dsf-legal h3 { font-size: 1.2rem; font-weight: 700; margin: 1.4rem 0 .4rem; font-family:'DM Sans',sans-serif; }
.dsf-legal p { margin: 0 0 1rem; }
.dsf-legal a { color: var(--fido-primary,#2668B2); text-decoration: underline; }
.dsf-legal ul, .dsf-legal ol { margin: 0 0 1rem 1.4rem; }
.dsf-legal li { margin: .4rem 0; }
.dsf-legal strong { color: var(--fido-ink,#0D0D0D); }
/* Privacy-label + data tables */
.dsf-legal .wp-block-table { overflow-x: auto; }
.dsf-legal table { width: 100%; border-collapse: collapse; font-size: .88rem; border: 1px solid #e6e8ec; border-radius: .6rem; overflow: hidden; }
.dsf-legal table th { background: #143a63; color: #fff; text-align: left; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; padding: .7rem .85rem; }
.dsf-legal table td { padding: .65rem .85rem; border-top: 1px solid #eef0f3; vertical-align: top; }
.dsf-legal table tr:nth-child(even) td { background: #fafbfc; }
