﻿/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 5%;
  font-size: 1.1rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  position: static;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--muted); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--muted); font-weight: 400; }

.breadcrumb--plain {
  position: static;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}
.breadcrumb--plain :is(a, a:hover, .breadcrumb-current) {
  color: var(--muted);
  font-weight: 400;
}

/* Blog detail breadcrumbs match the plain listing breadcrumb. */
:is(.single-post, .page-template-template-blog-detail) .breadcrumb {
  position: static;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}
:is(.single-post, .page-template-template-blog-detail) .breadcrumb :is(a, a:hover, .breadcrumb-current) {
  color: var(--muted);
  font-weight: 400;
}

/* ── CATEGORY HERO (inner pages) ── */
.inner-hero {
  padding: 40px 5% 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.inner-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; color: var(--sage);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.inner-hero-eyebrow-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sage-pale); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.inner-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.15; font-weight: 700;
  color: var(--charcoal); margin-bottom: 16px;
}
.inner-hero-title em { font-style: normal; font-weight: 600; color: var(--sage); }
.inner-hero-sub {
  font-size: 1.1rem; color: var(--mid); line-height: 1.7;
  max-width: 500px; margin-bottom: 24px;
}
.inner-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }.hero-text-links {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap;
}
.hero-text-link {
  background: transparent; border: 1.5px solid var(--charcoal); color: var(--charcoal);
  font-family: inherit; font-size: 1.1rem; font-weight: 600;
  padding: 10px 20px; border-radius: 10px; cursor: pointer;
  text-decoration: none; transition: all 0.18s; display: inline-flex; align-items: center; gap: 6px;
}
.hero-text-link:hover { background: rgba(44,44,44,0.06); }
.hero-text-link-sep { display: none; }
.inner-hero-meta {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px;
  font-size: 1.1rem; color: var(--mid);
}
.inner-hero-meta-item { display: flex; align-items: center; gap: 6px; }
.inner-hero-meta-icon { color: var(--sage); }
.inner-hero-image {
  width: 100%; aspect-ratio: 5/4;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(44,44,44,0.15);
  background: var(--sage-pale);
  position: relative;
}
.inner-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inner-hero-image-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--warm-white); padding: 10px 14px;
  border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 30px rgba(44,44,44,0.15);
  font-size: 1.1rem; font-weight: 600;
}
.inner-hero-image-badge .dot { width: 8px; height: 8px; background: #6bdf8f; border-radius: 50%; }

/* ── SECTION HEADER (inner) ── */
.inner-section { padding: 64px 5%; }
#all-providers-grid { scroll-margin-top: 82px; }
.inner-section--tight { padding: 48px 5%; }
.inner-section--cream { background: var(--cream); }
.inner-section--warm { background: var(--warm-white); }
.inner-section--dark { background: var(--charcoal); color: #fff; }
.inner-section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.inner-section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700; color: var(--charcoal); line-height: 1.2;
}
.inner-section--dark .inner-section-header h2 { color: #fff; }
.inner-section-header h2 em { font-style: normal; font-weight: 600; color: var(--sage); }
.inner-section-header p {
  font-size: 1.1rem; color: var(--mid); margin-top: 8px; max-width: 560px; line-height: 1.7;
}
.inner-section--dark .inner-section-header p { color: rgba(255,255,255,0.65); }
.inner-section-aside {
  font-size: 1.1rem; color: var(--mid); display: flex; align-items: center; gap: 10px;
}
.inner-section-aside a { color: var(--sage); font-weight: 600; text-decoration: none; }
.inner-section-aside a:hover { text-decoration: underline; }

/* ── PROVIDER CARDS ── */
.provider-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.provider-grid--2 { grid-template-columns: repeat(2, 1fr); }
.provider-card {
  background: rgb(224 202 143 / 28%);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.provider-card:hover {
  border-color: var(--sage);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(107,20,26,0.18);
}
.provider-card:hover .provider-card-header,
.provider-card:hover .provider-card-body,
.provider-card:hover .provider-card-footer {
  background: #6B141A;
  color: #fff;
}
.provider-card:hover .provider-card-name { color: #fff; }
.provider-card:hover .provider-card-tagline { color: rgba(255,255,255,0.85); }
.provider-card:hover .provider-card-city { color: rgba(255,255,255,0.75); }
.provider-card:hover .provider-card-arrow { color: #C59B27; }
.provider-card:hover .provider-card-footer { border-top-color: rgba(255,255,255,0.15); }
.provider-card:hover .provider-price,
.provider-card:hover .provider-price strong { color: rgba(255,255,255,0.9); }
.provider-card-hero {
  width: 100%; aspect-ratio: 16 / 7;
  overflow: hidden; background: #FCEAEA; position: relative;
}
.provider-card-hero img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transition: transform 0.3s ease;
}
.provider-card:hover .provider-card-hero--photo img { transform: scale(1.025); }
.provider-card-hero--fallback {
  display: flex; align-items: center; justify-content: center;
  background: #F5D5D5;
}
.provider-card-hero--fallback img {
  width: 58%; height: 58%; object-fit: contain;
}
.provider-card-hero--fallback > span:not(.provider-tier-badge) {
  font-family: var(--font-heading);
  font-size: 2.4rem; font-weight: 700;
}
.provider-card-header {
  padding: 20px 22px 0;
  display: flex; align-items: center; gap: 14px;
  position: relative;
}
.provider-logo {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  flex-shrink: 0;
}
.provider-heading { flex: 1; min-width: 0; }
.provider-card-name {
  font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem;
  color: var(--charcoal); margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.provider-card-city {
  font-size: 1.1rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.provider-tier-badge {
  position: absolute; top: 20px; right: 22px;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 10px;
}
.provider-card-hero > .provider-tier-badge {
  top: 14px; right: 14px; z-index: 1;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem;
}
.provider-plan-badge {
  letter-spacing: 0;
  text-transform: uppercase;
}
.tier-featured { background: var(--gold-light); color: #7a5a1e; }
.tier-premium  { background: var(--gold-light); color: #7a5a1e; }
.tier-standard { background: var(--sage-pale); color: var(--sage); }
.tier-basic    { background: #EFECE6; color: var(--muted); }
.tier-sponsored {
  background: rgba(10, 18, 12, 0.60);
  color: #fff;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.15);
}
.provider-detail-plan-badge {
  position: static; top: auto; right: auto;
  display: inline-flex; align-items: center; white-space: nowrap;
}

/* ── NON-PROFIT BADGE on provider cards ── */
.provider-nonprofit-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: #1e6e52;
  background: linear-gradient(135deg, #d4f0e6 0%, #e6f7f0 100%);
  border: 1px solid #9ed4be; border-radius: 20px;
  padding: 4px 10px; margin-top: 10px; width: fit-content;
  box-shadow: 0 1px 4px rgba(30,110,82,0.12);
}

.provider-card-body { padding: 16px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.provider-card-tagline {
  font-size: 1.1rem; color: var(--mid); line-height: 1.65;
  margin-bottom: 14px; flex: 1;
}
.provider-card-row {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.1rem; color: var(--mid);
  padding-top: 14px; border-top: 1px solid var(--border);
}
.provider-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 600; }
.provider-rating-count { color: var(--muted); font-weight: 400; }
.provider-card-footer {
  padding: 16px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--cream);
}
.provider-price { font-size: 1.1rem; color: var(--muted); }
.provider-price strong { font-family: var(--font-heading); font-size: 1.1rem; color: var(--charcoal); font-weight: 700; }
.provider-card-arrow {
  font-size: 1.1rem; color: var(--sage); font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.provider-card:hover .provider-card-arrow { gap: 8px; }

/* ── PROVIDER PICK CHECKBOX (checklist item 58) ── */
.provider-card { position: relative; }
.provider-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.provider-pick-btn {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 6px 12px 6px 8px; border-radius: 20px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.85); background: rgba(10,18,12,0.72);
  color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}
.provider-pick-btn:hover { background: rgba(10,18,12,0.85); }
.provider-pick-btn.is-picked { background: var(--sage); border-color: var(--sage); }

/* The real checkbox stays in the DOM for native keyboard/AT support, but is
   visually replaced by .provider-pick-check so every browser renders the
   same custom box instead of its own checkbox style. */
.provider-pick-checkbox {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0;
}
.provider-pick-check {
  width: 16px; height: 16px; border-radius: 5px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.85); background: rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.provider-pick-check::after {
  content: ''; width: 8px; height: 6px; margin-top: -1px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); transform-origin: center;
  transition: transform 0.18s ease;
}
.provider-pick-btn.is-picked .provider-pick-check { background: #fff; border-color: #fff; }
.provider-pick-btn.is-picked .provider-pick-check::after {
  border-left-color: var(--sage); border-bottom-color: var(--sage);
  transform: rotate(-45deg) scale(1);
}
/* Little "just added" pop, so checking the box gives a visible confirmation
   right on the card, not just the sage tint. */
.provider-pick-btn.just-added .provider-pick-check { animation: ecmPickCheckPop 0.45s ease; }
@keyframes ecmPickCheckPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* A soft background tint reads as "picked" better than a border/ring, which
   looked like a stray outline rather than a selection state. */
.provider-card.is-picked { background: var(--sage-pale); border-color: var(--sage-light); }
.provider-card.is-picked .provider-card-footer { background: var(--sage-pale); }

/* ── PICKS BAR (sticky summary of selected providers) ── */
.ecm-picks-bar {
  position: sticky; bottom: 0; z-index: 20;
  margin-top: 24px; background: var(--warm-white);
  border: 1.5px solid var(--sage); border-radius: 16px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
  padding: 16px 20px;
  transition: transform 0.3s ease;
}
/* Brief pulse so adding a pick is obviously reflected at the bottom of the
   page too, not just on the card itself. */
.ecm-picks-bar.is-added { animation: ecmPicksBarBump 0.7s ease; }
@keyframes ecmPicksBarBump {
  0%   { transform: scale(1); box-shadow: 0 -8px 30px rgba(0,0,0,0.08); }
  30%  { transform: scale(1.015); box-shadow: 0 -10px 34px rgba(107,20,26,0.35); }
  100% { transform: scale(1); box-shadow: 0 -8px 30px rgba(0,0,0,0.08); }
}
/* Ghost of the provider's name flying from the card to the picks bar on
   add, so it's visually obvious where the pick landed. */
.ecm-fly-pick {
  position: fixed; z-index: 9999; pointer-events: none;
  background: var(--sage); color: #fff; font-weight: 700; font-size: 1.1rem;
  padding: 6px 14px; border-radius: 20px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.9s cubic-bezier(0.3, 0.75, 0.35, 1), opacity 0.9s ease 0.15s;
  will-change: transform, opacity;
}

.ecm-picks-bar-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ecm-picks-summary { font-size: 1.1rem; color: var(--charcoal); white-space: nowrap; }
.ecm-picks-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.ecm-pick-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sage-pale); color: var(--sage);
  font-size: 1.1rem; font-weight: 600;
  padding: 5px 8px 5px 12px; border-radius: 16px;
}
.ecm-pick-chip-remove {
  background: none; border: none; cursor: pointer; color: inherit;
  font-size: 1.1rem; line-height: 1; padding: 0 2px;
}
.ecm-picks-continue { white-space: nowrap; }
.ecm-picks-message {
  margin: 10px 0 0; padding: 10px 14px; border-radius: 10px;
  background: #fdecea; color: #b91c1c; font-size: 1.1rem;
}

.provider-specialties {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.specialty-chip {
  font-size: 1.1rem; padding: 5px 11px; border-radius: 10px;
  background: var(--sage-pale); color: var(--sage); font-weight: 500;
}

/* ── PACKAGE CARDS (upsell tiers) ── */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.package-card {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 30px 26px 26px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all 0.25s;
}
.package-card:hover {
  border-color: var(--sage-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(44,44,44,0.08);
}
.package-card--popular {
  border-color: var(--sage);
  background: linear-gradient(180deg, #fff 0%, var(--sage-pale) 100%);
  transform: scale(1.03);
}
.package-card--popular:hover { transform: scale(1.03) translateY(-3px); }
.package-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--sage); color: #fff;
  padding: 5px 14px; border-radius: 20px;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.package-tier-label {
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 8px;
}
.package-name {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600;
  margin-bottom: 6px;
}
.package-price {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.package-price-val {
  font-family: var(--font-heading); font-size: 2.1rem; font-weight: 700;
  color: var(--charcoal);
}
.package-price-val::before { content: '$'; font-size: 1.1rem; vertical-align: super; margin-right: 2px; color: var(--mid); font-weight: 500; }
.package-price-unit { font-size: 1.1rem; color: var(--muted); }
.package-price-covered { font-family: var(--font-heading); font-size: 1.4rem; color: var(--sage); font-weight: 700; }
.package-features { list-style: none; margin-bottom: 24px; flex: 1; }
.package-features li {
  font-size: 1.1rem; color: var(--mid); line-height: 1.6;
  padding: 6px 0 6px 24px; position: relative;
}
.package-features li::before {
  content: '✓'; position: absolute; left: 0; top: 6px;
  color: var(--sage); font-weight: 700;
}
.package-cta {
  width: 100%; padding: 12px; border-radius: 10px;
  font-family: var(--font-body); font-size: 1.1rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  border: 1.5px solid var(--charcoal); background: transparent; color: var(--charcoal);
}
.package-cta:hover { background: var(--charcoal); color: #fff; }
.package-card--popular .package-cta { background: var(--sage); border-color: var(--sage); color: #fff; }
.package-card--popular .package-cta:hover { background: #8B1A21; border-color: #8B1A21; }

/* ── COMPACT NEARBY CARDS ── */
.nearby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nearby-card {
  background: var(--warm-white); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
  transition: all 0.2s;
}
.nearby-card:hover { border-color: var(--sage); transform: translateY(-2px); }
.nearby-logo {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem;
}
.nearby-body { flex: 1; min-width: 0; }
.nearby-name { font-weight: 600; font-size: 1.1rem; color: var(--charcoal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nearby-meta { font-size: 1.1rem; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.nearby-meta-sep { color: var(--border); }
.nearby-price { text-align: right; }
.nearby-price-val { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--charcoal); }
.nearby-price-label { font-size: 1.1rem; color: var(--muted); }

/* ── CROSS-SELL ── */
.cross-sell {
  background: linear-gradient(135deg, #FCEAEA 0%, #FDF3DC 60%, #FBE8C0 100%);
  border-radius: 24px; padding: 44px 40px;
  margin: 0 5% 64px;
  position: relative; overflow: hidden;
}
.cross-sell::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
}
.cross-sell-header { margin-bottom: 24px; position: relative; z-index: 1; }
.cross-sell-eyebrow { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-bottom: 6px; }
.cross-sell-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.cross-sell-title em { font-style: normal; font-weight: 600; color: var(--sage); }
.cross-sell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 1; }
.cross-sell-card {
  background: var(--warm-white); border-radius: 14px;
  padding: 20px; text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.2s;
  border: 1px solid rgba(45,85,160,0.2);
}
.cross-sell-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(44,44,44,0.08); }
.cross-sell-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--sage-pale); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.cross-sell-body { flex: 1; }
.cross-sell-name { font-weight: 600; font-size: 1.1rem; color: var(--charcoal); }
.cross-sell-meta { font-size: 1.1rem; color: var(--muted); margin-top: 2px; }
.cross-sell-arrow { color: var(--sage); font-weight: 600; }

/* ── SORT / FILTER CHIPS ── */
.filter-row {
  display: flex; gap: 8px; flex-wrap: nowrap; margin-bottom: 24px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 4px;
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  padding: 8px 14px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--warm-white);
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 500;
  color: var(--mid); cursor: pointer; transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--sage); color: var(--sage); }
.filter-chip.active { background: var(--sage); border-color: var(--sage); color: #fff; }
.filter-chip--free { border-style: dashed; }
.filter-chip--free.active { background: var(--muted); border-color: var(--muted); color: #fff; }

/* ── PROVIDERS TOOLBAR (search + sort) ── */
.providers-toolbar {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.providers-search-input {
  flex: 1; min-width: 220px; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem;
  background: var(--warm-white); color: var(--charcoal);
}
.providers-search-input:focus { outline: none; border-color: var(--sage); }
.sort-row { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sort-label { font-size: 1.1rem; color: var(--mid); font-weight: 500; }
.sort-select {
  padding: 9px 32px 9px 12px; border: 1.5px solid var(--border);
  border-radius: 10px; font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem; background: var(--warm-white);
  color: var(--charcoal); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.sort-select:focus { outline: none; border-color: var(--sage); }

/* ── FREE / UNCLAIMED LISTING CARD ── */
.provider-card--unclaimed {
  border: 1.5px dashed var(--border);
  opacity: 0.85; position: relative; overflow: hidden;
}
.unclaimed-banner {
  font-size: 1.1rem; font-weight: 600; color: var(--muted);
  background: #f5f5f5; padding: 6px 16px;
  border-bottom: 1px dashed var(--border);
  margin: -24px -24px 16px;
}
.tier-free { background: #f0f0f0; color: var(--muted); }
.provider-card-footer--claim { justify-content: space-between; align-items: center; }
.claim-text { font-size: 1.1rem; color: var(--muted); }
.claim-link { font-size: 1.1rem; font-weight: 600; color: var(--sage); text-decoration: none; }
.claim-link:hover { text-decoration: underline; }

/* ── PROVIDER DETAIL ── */
.provider-hero {
  padding: 36px 5% 48px;
  display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start;
}
.provider-hero--no-sidebar { grid-template-columns: 1fr; }
.provider-hero-main { min-width: 0; }
.provider-hero-top { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.provider-hero-logo {
  width: 88px; height: 88px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(44,44,44,0.1);
}
.provider-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700;
  line-height: 1.2; margin-bottom: 6px;
}
.provider-hero-meta {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-size: 1.1rem; color: var(--mid);
}
.provider-hero-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.provider-verified {
  background: var(--sage-pale); color: var(--sage);
  padding: 3px 10px; border-radius: 10px;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 4px;
}
/* ECM Verified badge — visually distinct from the plan/tier badge next to
   it (different shape/color, margin-left for the whitespace separation
   requirement) since the two must never read as one label. */
.ecm-verified-badge {
  background: var(--sage-pale); color: var(--sage);
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 10px;
  display: inline-flex; align-items: center; white-space: nowrap;
  margin-left: 6px;
  text-decoration: none;
}
.ecm-verified-badge--card { margin-left: 0; margin-top: 0; width: fit-content; max-width: 100%; white-space: normal; line-height: 1.35; }
.ecm-verified-badge:hover,
.ecm-verified-badge:focus {
  text-decoration: underline;
}
.provider-social-links {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-top: 10px;
}
.provider-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  color: var(--mid); background: var(--surface-alt, #f3f4f6);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.provider-social-link:hover { background: var(--sage-pale); color: var(--sage); }

.provider-hero-tagline {
  font-size: 1.1rem; color: var(--charcoal); font-weight: 500;
  margin: 20px 0 14px;
}
.provider-hero-about { font-size: 1.1rem; color: var(--mid); line-height: 1.7; }
.provider-hero .btn-primary-lg,
.provider-hero .btn-primary-lg:hover,
.provider-hero .btn-primary-lg:focus {
  text-decoration: none;
}
.cta-band .btn-primary-lg,
.cta-band .btn-primary-lg:hover,
.cta-band .btn-primary-lg:focus {
  text-decoration: none;
}
.cta-band .btn-primary-lg {
  background: #C59B27; color: #fff;
  box-shadow: 0 10px 30px rgba(197,155,39,0.35);
}
.cta-band .btn-primary-lg:hover {
  background: #A8841F;
  box-shadow: 0 14px 36px rgba(197,155,39,0.5);
}

.provider-side-card {
  background: var(--warm-white);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; position: sticky; top: 90px;
  box-shadow: 0 14px 40px rgba(44,44,44,0.08);
}
.provider-side-card h4 {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: 10px;
}
.provider-side-card p { font-size: 1.1rem; color: var(--mid); margin-bottom: 18px; line-height: 1.5; }
.provider-side-card .btn-primary-lg { width: 100%; justify-content: center; padding: 14px 20px; font-size: 1.1rem; }
.provider-side-card .btn-text { display: block; width: 100%; text-align: center; margin-top: 12px; }

/* ── REVIEWS ── */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 26px 28px;
  position: relative; overflow: hidden;
}
.review-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4.5rem; line-height: 1;
  color: var(--gold-light); position: absolute;
  top: 0; right: 0; pointer-events: none;
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-author { font-weight: 700; font-size: 1.1rem; color: var(--charcoal); }
.review-date { font-size: 1.1rem; color: var(--muted); }
.review-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-text { font-size: 1.1rem; color: var(--mid); line-height: 1.7; }

/* ── REVIEW FORM (WP Job Manager Reviews' comment_form() integration) ── */
.review-form-wrap {
  margin-top: 48px; scroll-margin-top: 24px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 40px;
  box-shadow: 0 2px 20px rgba(44,44,44,0.06);
}
.review-form-title {
  font-family: var(--font-heading);
  font-size: 1.45rem; font-weight: 700; color: var(--charcoal);
  margin: 0 0 28px; padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.review-form-title::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 44px; height: 2px; background: var(--gold);
}
.review-form-note { margin: 6px 0 0; font-size: 1.1rem; color: var(--muted); }
.review-form .required-mark { color: var(--gold); }
.review-form-error {
  background: #fdecea; border: 1px solid #f3c6c1; border-radius: 10px;
  padding: 10px 14px; margin: 0; font-size: 1.1rem; color: #b3261e;
}
.review-form-error strong { display: block; font-weight: 700; margin-bottom: 2px; }
#commentform.review-form > .review-form-error { grid-column: 1; grid-row: 2; align-self: start; }

/* Two-column layout: star ratings left, textarea right */
#commentform.review-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px;
}
#commentform.review-form > * { grid-column: 1 / -1; }
/* Textarea column — pinned to row 1 col 2 so it stays put when error is injected */
/* Name / Email fields appear below (non-logged-in users only), col 1 and col 2 */
#commentform.review-form > .form-field {
  display: flex; flex-direction: column; margin-bottom: 0; align-self: stretch;
}
#commentform.review-form > .form-field--review { grid-column: 2; grid-row: 1; }
#commentform.review-form > .form-field--name   { grid-column: 1; }
#commentform.review-form > .form-field--email  { grid-column: 2; }
#commentform.review-form > .form-field label { margin-bottom: 6px; }
#commentform.review-form > .form-field textarea#comment { flex: 1; }

.review-form textarea#comment {
  background: var(--cream); border-color: var(--border);
  border-radius: 10px; resize: vertical; transition: border-color 0.18s, background 0.18s;
  min-height: 160px;
}
.review-form textarea#comment:focus { border-color: var(--sage); background: #fff; outline: none; }

/* hCaptcha left col, Submit button right col — same grid row */
#commentform.review-form .h-captcha,
#commentform.review-form h-captcha {
  grid-column: 1; margin-top: 20px; align-self: center;
}
#commentform.review-form .h-captcha + * { display: none; } /* hide hidden nonce inputs from layout */

#commentform.review-form > .review-form-submit-row {
  grid-column: 2; align-self: center;
}
.review-form-submit-row {
  display: flex; align-items: center; justify-content: flex-end;
  margin-top: 20px;
}
.review-form-submit-row #submit { min-width: 160px; }

#wpjmr-restriction-messages {
  background: var(--sage-pale); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 20px;
  font-size: 1.1rem; color: var(--charcoal); line-height: 1.5;
  grid-column: 1 / -1;
}
#wpjmr-restriction-messages a { color: var(--sage); font-weight: 600; }

/* Star rating box — pinned to row 1 col 1 */
#commentform.review-form > #wpjmr-submit-ratings {
  grid-column: 1; grid-row: 1;
  align-self: stretch;
}
#wpjmr-submit-ratings {
  background: var(--cream); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 6px 20px 6px; margin-bottom: 0;
}
#wpjmr-submit-ratings::before {
  content: 'Rate each category';
  display: block;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted);
  padding: 10px 0 8px; border-bottom: 1px solid var(--border);
}
#wpjmr-submit-ratings .rating-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
}
#wpjmr-submit-ratings .rating-row + .rating-row { border-top: 1px solid var(--border); }
#wpjmr-submit-ratings label { margin: 0; font-weight: 600; font-size: 1.1rem; color: var(--charcoal); }
#wpjmr-submit-ratings .choose-rating { overflow: hidden; } /* clearfix for plugin's float-right star order */
#wpjmr-submit-ratings .choose-rating .dashicons { font-size: 26px; width: 28px; height: 26px; cursor: pointer; transition: color 0.12s; }
.review-form-wrap #wpjmr-submit-ratings .choose-rating .star:hover,
.review-form-wrap #wpjmr-submit-ratings .choose-rating .star:hover ~ .star,
.review-form-wrap #wpjmr-submit-ratings .choose-rating .star.active,
.review-form-wrap #wpjmr-submit-ratings .choose-rating .star.active ~ .star {
  color: var(--gold);
}

/* ── SEARCH PAGE ── */
.search-hero {
  padding: 60px 5% 40px;
  background: linear-gradient(180deg, var(--sage-pale) 0%, transparent 100%);
  text-align: center;
}
.search-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700;
  margin-bottom: 10px;
}
.search-hero h1 em { font-style: normal; font-weight: 600; color: var(--sage); }
.search-hero p { color: var(--mid); font-size: 1.1rem; margin-bottom: 28px; }

.search-bar {
  display: flex; gap: 10px; max-width: 1100px; margin: 0 auto;
  background: var(--warm-white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 8px;
  box-shadow: 0 14px 40px rgba(44,44,44,0.08);
}
.search-bar input, .search-bar select {
  flex: 1; min-width: 0; padding: 12px 14px;
  border: none; background: transparent;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; color: var(--charcoal);
  outline: none;
}
.search-bar input { flex: 1.5; border-right: 1px solid var(--border); }
.search-bar .search-q-wrap {
  flex: 1.5; display: flex; align-items: center; position: relative;
  border-right: 1px solid var(--border);
}
.search-bar .search-q-wrap input#search-q { flex: 1; min-width: 0; border-right: none; padding-right: 34px; }
.search-q-clear {
  display: none; align-items: center; justify-content: center;
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; padding: 0; border: none; border-radius: 6px;
  background: transparent; color: var(--muted, #8A8A8A);
  font-size: 1.2rem; line-height: 1; cursor: pointer; transition: all 0.2s;
}
.search-q-clear:hover { background: var(--border); color: var(--charcoal); }
.search-bar select {
  border-right: 1px solid var(--border);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px;
}
/* City picker: selectWoo replaces the native <select> with its own
   .select2-container markup, so ".search-bar select" no longer styles what's
   visible — match that same look here instead of the plugin's own default. */
.search-bar .select2-container {
  flex: 1; min-width: 0;
  width: 100% !important; /* select2 sets width inline at init; !important is the only reliable way to keep it filling the row across breakpoints (e.g. the stacked mobile layout, where it otherwise falls short of the full row width) */
}
.search-bar .select2-container .select2-selection--single {
  height: auto; display: flex; align-items: center;
  padding: 12px 34px 12px 14px;
  border: none; border-right: 1px solid var(--border); border-radius: 0;
  background: transparent;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  outline: none;
}
.search-bar .select2-container .select2-selection--single:focus,
.search-bar .select2-selection--single:focus-visible,
.search-bar .select2-container--focus .select2-selection--single {
  outline: none;
  box-shadow: none;
}
.search-bar .select2-container .select2-selection__rendered {
  padding: 0; line-height: normal;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; color: var(--charcoal);
}
.search-bar .select2-container .select2-selection__placeholder { color: var(--charcoal); }
.search-bar .select2-container .select2-selection__arrow { display: none; } /* using the same chevron background-image as the other selects instead */
.search-bar .select2-container .select2-selection__clear {
  margin-right: 8px; color: var(--muted, #8A8A8A); font-size: 1.1rem;
}
.search-bar .select2-container--open .select2-selection--single { background-color: transparent; }

/* The open dropdown itself is detached out to <body> by select2/selectWoo
   (not nested under .search-bar), so it's scoped by this dedicated class
   (set via dropdownCssClass in search.js) instead of DOM ancestry — keeps
   these rules from touching any other selectWoo/select2 use on the site. */
.ecm-search-city-dropdown {
  border: 1.5px solid var(--border); border-radius: 14px !important; overflow: hidden;
  box-shadow: 0 10px 36px rgba(44,44,44,0.12);
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem;
  background: var(--warm-white);
}
/* Search field inside the open dropdown */
.ecm-search-city-dropdown .select2-search--dropdown {
  padding: 10px 10px 6px; background: var(--warm-white);
  border-bottom: 1px solid var(--border);
}
.ecm-search-city-dropdown .select2-search--dropdown .select2-search__field {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 9px 12px;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem;
  color: var(--charcoal); background: #fff;
  outline: none; transition: border-color 0.15s;
}
.ecm-search-city-dropdown .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--sage);
}
/* Options list */
.ecm-search-city-dropdown .select2-results { padding: 4px 0; }
.ecm-search-city-dropdown .select2-results__option {
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem;
  color: var(--charcoal); line-height: 1.35;
  transition: background 0.1s; cursor: pointer;
}
.ecm-search-city-dropdown .select2-results__option--highlighted {
  background: var(--sage) !important; color: #fff !important;
}
/* The state/"All cities" entries set their own text color directly on an
   inner span (see templateResult in search.js) — that direct rule wins
   over the highlighted row's inherited white, so it needs its own
   override here rather than picking up #fff from the row above. */
.ecm-search-city-dropdown .select2-results__option--highlighted .ecm-city-opt--all,
.ecm-search-city-dropdown .select2-results__option--highlighted .ecm-city-opt--state {
  color: #fff !important;
}
/* Re-opened dropdown: already-selected entry gets a pale sage tint */
.ecm-search-city-dropdown .select2-results__option[data-selected="true"]:not(.select2-results__option--highlighted) {
  background: var(--sage-pale); color: var(--sage); font-weight: 500;
}
/* State entries (marked via templateResult in search.js) */
.ecm-search-city-dropdown .ecm-city-opt--state {
  font-size: 1.1rem; color: var(--mid);
}
/* "All cities" entry — slightly bolder so it stands out as the reset option */
.ecm-search-city-dropdown .ecm-city-opt--all {
  font-weight: 600; color: var(--charcoal);
}
/* "Loading more results…" / "Searching…" loading messages */
.ecm-search-city-dropdown .select2-results__option.loading-results,
.ecm-search-city-dropdown .select2-results__option[role="alert"] {
  color: var(--muted); font-size: 1.1rem;
  cursor: default; padding: 8px 14px;
}

.search-bar-btn {
  padding: 12px 28px; background: var(--sage); color: #fff;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 600;
  transition: background 0.2s; white-space: nowrap;
}
.search-bar-btn:hover { background: #8B1A21; }

.search-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.search-meta-count { font-size: 1.1rem; color: var(--mid); }
.search-meta-count strong { color: var(--charcoal); font-weight: 700; }

/* ── SEARCH LOADING STATE (initial page load, before /search resolves) ── */
.search-spinner {
  display: inline-block; width: 15px; height: 15px; flex-shrink: 0;
  border: 2px solid var(--border); border-top-color: var(--sage);
  border-radius: 50%; animation: ecm-spin 0.7s linear infinite;
}
.search-loading-grid {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 72px 20px; color: var(--muted);
}
.search-loading-grid .search-spinner { width: 28px; height: 28px; border-width: 3px; }
.search-loading-grid p { margin: 0; font-size: 1.1rem; }
.search-refresh-indicator {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; margin-bottom: 12px; color: var(--muted); font-size: 1.1rem;
}
@keyframes ecm-spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center; padding: 64px 20px;
  background: var(--warm-white); border: 1.5px dashed var(--border); border-radius: 20px;
}
.empty-state-icon { font-size: 2.4rem; margin-bottom: 14px; }
.empty-state h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { color: var(--mid); font-size: 1.1rem; max-width: 400px; margin: 0 auto 20px; }

/* ── CTA BAND ── */
.cta-band {
  margin: 2% 5% 64px;
  background: linear-gradient(135deg, #2A0609 0%, #5A1018 100%); color: #fff;
  border-radius: 24px; padding: 48px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; line-height: 1.25; }
.cta-band h2 em { font-style: normal; font-weight: 700; color: var(--sage-light); }
.cta-band p { color: rgba(255,255,255,0.6); font-size: 1.1rem; margin-top: 6px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── CONTENT / GUIDES ── */
.content-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.content-card {
  background: var(--warm-white); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: all 0.2s; display: flex; flex-direction: column;
}
.content-card:hover { border-color: var(--sage-light); transform: translateY(-3px); }
.content-card-img { aspect-ratio: 16/10; background: var(--sage-pale); overflow: hidden; }
.content-card-img img { width: 100%; height: 100%; object-fit: cover; }
.content-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.content-tag { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin-bottom: 8px; }
.content-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.content-excerpt { font-size: 1.1rem; color: var(--mid); line-height: 1.55; flex: 1; }
.content-read-time { font-size: 1.1rem; color: var(--muted); margin-top: 12px; }

/* ── BLOG HERO ── */
.blog-hero {
  padding: 56px 5% 48px;
  background: linear-gradient(180deg, var(--sage-pale) 0%, transparent 100%);
}
.blog-hero-eyebrow {
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 12px;
}
.blog-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 700;
  color: var(--charcoal); line-height: 1.2; margin-bottom: 12px;
}
.blog-hero-title em { font-style: normal; font-weight: 700; color: var(--sage); }
.blog-hero-sub { font-size: 1.1rem; color: var(--mid); max-width: 520px; line-height: 1.65; margin-bottom: 32px; }

/* ── BLOG STAT BAR ── */
.blog-stat-bar {
  display: flex; gap: 32px; flex-wrap: wrap; margin-top: 32px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.blog-stat { text-align: center; }
.blog-stat-val {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700; color: var(--sage); display: block;
}
.blog-stat-label { font-size: 1.1rem; color: var(--muted); margin-top: 2px; }

/* ── BLOG CATEGORY FILTER BAR ── */
.blog-filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 5% 28px; background: var(--warm-white);
}

/* ── BLOG FEATURED CARD (Editor's Pick) ── */
.blog-featured {
  background: var(--warm-white); border: 1.5px solid var(--border);
  border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  text-decoration: none; color: inherit;
  transition: all 0.25s; margin-bottom: 40px;
}
.blog-featured:hover { border-color: var(--sage); box-shadow: 0 20px 50px rgba(45,85,160,0.15); transform: translateY(-3px); }
.blog-featured-img {
  background: linear-gradient(135deg, var(--sage-pale) 0%, #c8e0cb 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; min-height: 260px;
}
.blog-featured-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.blog-featured-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.3;
  color: var(--charcoal); margin-bottom: 12px;
}
.blog-featured-excerpt { font-size: 1.1rem; color: var(--mid); line-height: 1.65; flex: 1; margin-bottom: 20px; }
.blog-featured-meta {
  display: flex; align-items: center; gap: 16px; font-size: 1.1rem; color: var(--muted);
}
.blog-featured-meta-sep { color: var(--border); }
.blog-featured-cta {
  font-size: 1.1rem; font-weight: 600; color: var(--sage);
  margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
}

/* ── BLOG ARTICLE GRID ── */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.blog-grid--related { grid-template-columns: repeat(4, 1fr); }
.blog-card {
  background: var(--warm-white); border: 1.5px solid var(--border);
  border-radius: 20px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: all 0.22s; display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--sage-light); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(44,44,44,0.1); }
.blog-card-icon {
  height: 130px; display: flex; align-items: center; justify-content: center; font-size: 3.2rem;
}
.blog-card-icon--photo { overflow: hidden; }
.blog-card-icon--photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-icon--photo img { transform: scale(1.04); }
.blog-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; margin-bottom: 8px;
  display: inline-block; padding: 3px 9px; border-radius: 8px;
}
.blog-cat--home-care       { background: #e6f4ea; color: #3a7a45; align-self: start; }
.blog-cat--assisted-living { background: #e8f0fe; color: #3450a0; }
.blog-cat--memory-care     { background: #fce8d5; color: #b04e10; }
.blog-cat--legal           { background: #f3e8fd; color: #7820c8; }
.blog-cat--hospice         { background: #fde8ee; color: #b01040; }
.blog-cat--checklist       { background: #e8fdf5; color: #107850; }
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 600; line-height: 1.35;
  color: var(--charcoal); margin-bottom: 8px;
}
.blog-card-excerpt { font-size: 1.1rem; color: var(--mid); line-height: 1.55; flex: 1; }
.blog-card-footer {
  padding: 12px 22px; border-top: 1px solid var(--border);
  background: var(--cream); display: flex; justify-content: space-between; align-items: center;
  font-size: 1.1rem; color: var(--muted);
}
.blog-card-footer-link { color: var(--sage); font-weight: 600; font-size: 1.1rem; }

/* ── BLOG CITY GRID ── */
.blog-city-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.blog-city-link {
  background: var(--warm-white); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; text-decoration: none; color: var(--charcoal);
  font-size: 1.1rem; font-weight: 500;
  transition: all 0.2s; display: flex; align-items: center; gap: 8px;
}
.blog-city-link:hover { border-color: var(--sage); color: var(--sage); background: var(--sage-pale); }

/* ── BLOG SUBSCRIBE STRIP ── */
.blog-subscribe {
  background: var(--charcoal); border-radius: 24px;
  padding: 48px 52px; margin: 0 5% 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  color: #fff;
}
.blog-subscribe h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 700; line-height: 1.25; margin-bottom: 8px;
}
.blog-subscribe h3 em { font-style: normal; font-weight: 700; color: var(--sage-light); }
.blog-subscribe p { color: rgba(255,255,255,0.6); font-size: 1.1rem; }
.blog-subscribe-form { display: flex; gap: 10px; }
.blog-subscribe-input {
  flex: 1; padding: 13px 16px;
  border: 1.5px solid rgba(255,255,255,0.15); border-radius: 10px;
  background: rgba(255,255,255,0.08); color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem;
}
.blog-subscribe-input::placeholder { color: rgba(255,255,255,0.4); }
.blog-subscribe-input:focus { outline: none; border-color: var(--sage-light); }
.blog-subscribe-btn {
  padding: 13px 24px; background: var(--sage); color: #fff;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 600;
  transition: background 0.2s; white-space: nowrap;
}
.blog-subscribe-btn:hover { background: #8B1A21; }

/* ── BLOG ARTICLE DETAIL ── */
.blog-article-header { padding: 40px 20px 32px; max-width: 1200px; margin: 0 auto; }
.blog-article-header .blog-card-cat { margin-bottom: 16px; }
.blog-article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700;
  line-height: 1.2; color: var(--charcoal); margin-bottom: 16px;
}
.blog-article-meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 1.1rem; color: var(--muted);
}
.blog-article-meta-sep { color: var(--border); }
.blog-article-meta-author { font-weight: 600; color: var(--mid); }
.blog-article-body { max-width: 1200px; margin: 0 auto; padding: 0 20px 56px; }
.blog-article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700; color: var(--charcoal); margin: 36px 0 14px;
}
.blog-article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 600; color: var(--charcoal); margin: 28px 0 10px;
}
.blog-article-body p { font-size: 1.1rem; color: var(--mid); line-height: 1.8; margin-bottom: 18px; }
.blog-article-body ul, .blog-article-body ol { padding-left: 24px; margin-bottom: 18px; }
.blog-article-body li { font-size: 1.1rem; color: var(--mid); line-height: 1.75; margin-bottom: 6px; }
.blog-article-body blockquote {
  margin: 28px 0; padding: 20px 24px;
  border-left: 4px solid var(--sage); border-radius: 0 12px 12px 0;
  background: var(--sage-pale);
  font-size: 1.1rem; color: var(--charcoal); line-height: 1.65;
}
.blog-article-body .tip-box {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 24px; margin: 24px 0;
}
.blog-article-body .tip-box-label {
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 8px;
}

/* ── BLOG ARTICLE: featured image + single.php additions ── */
.blog-article-health-disclaimer {
  max-width: 1200px; margin: -28px auto 32px; padding: 14px 24px 0 5%;
  border-top: 1px solid var(--border);
  font-size: 1.1rem; color: var(--mid);
}
.blog-article-hero-img {
  max-width: 1200px; margin: 0 auto 32px; padding: 0;
}
.blog-article-hero-img img {
  width: 100%; border-radius: 16px; object-fit: cover; max-height: 420px;
}
.blog-featured-img--photo {
  overflow: hidden; padding: 0;
}
.blog-featured-img--photo img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .inner-hero { grid-template-columns: 1fr; gap: 28px; padding: 30px 5% 40px; }
  .provider-grid, .package-grid, .nearby-grid, .cross-sell-grid, .content-grid, .review-grid { grid-template-columns: 1fr 1fr; }
  .provider-hero { grid-template-columns: 1fr; gap: 28px; }
  .provider-side-card { position: static; }
  .cta-band { padding: 36px 32px; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 200px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-city-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-subscribe { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .providers-toolbar { flex-direction: column; align-items: stretch; }
  .sort-row { justify-content: space-between; }
  .inner-section { padding: 48px 5%; }
  .provider-grid, .package-grid, .nearby-grid, .cross-sell-grid, .content-grid, .review-grid { grid-template-columns: 1fr; }
  .cross-sell { padding: 32px 24px; margin: 0 4% 48px; }
  .package-card--popular { transform: none; }
  .package-card--popular:hover { transform: translateY(-3px); }
  .search-bar { flex-direction: column; gap: 0; }
  .search-bar input, .search-bar select { border-right: none; border-bottom: 1px solid var(--border); }
  .search-bar .search-q-wrap { border-right: none; border-bottom: 1px solid var(--border); }
  .search-bar .select2-container .select2-selection--single { border-right: none; border-bottom: 1px solid var(--border); }
  .search-bar-btn { margin-top: 6px; }
  .cta-band { padding: 28px 24px; margin: 0 4% 48px; }
  .blog-stat-bar { gap: 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-city-grid { grid-template-columns: 1fr 1fr; }
  .blog-subscribe { padding: 28px 24px; margin: 0 4% 48px; }
  .blog-subscribe-form { flex-direction: column; }
}

/* ── JOB MANAGER CATEGORY ARCHIVE: pagination + sort label ── */
.search-meta-sort { font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.provider-pagination {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px; margin-top: 40px;
}
.provider-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--warm-white); color: var(--mid);
  font-size: 1.1rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s;
}
.provider-pagination a.page-numbers:hover { border-color: var(--sage); color: var(--sage); }
.provider-pagination .page-numbers.current {
  background: var(--sage); border-color: var(--sage); color: #fff;
}
.provider-pagination .page-numbers.dots { border: none; background: transparent; }

/* ══════════════════════════════════════════════════════════════
   GENERIC PAGE CONTAINER (page.php)
   Wraps any standard WordPress Page — including 3rd-party shortcode
   output (WooCommerce checkout/cart, contact forms, etc.) — so it
   never renders edge-to-edge with zero theme styling.
══════════════════════════════════════════════════════════════ */
.ecm-page-container {
  max-width: 1480px; margin: 0 auto; padding: 40px 5% 64px;
}
.ecm-page-header { margin-bottom: 32px; }
.ecm-page-header .inner-hero-title { margin-bottom: 10px; }
.ecm-page-featured-img { margin-bottom: 32px; }
.ecm-page-featured-img img {
  width: 100%; height: auto; max-height: 420px; object-fit: cover;
  border-radius: 16px; display: block;
}

/* Typography for plain page content (headings, paragraphs, lists) */
.ecm-page-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 700;
  color: var(--charcoal); margin: 32px 0 14px;
}
.ecm-page-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 600; color: var(--charcoal); margin: 28px 0 10px;
}
.ecm-page-content p { font-size: 1.1rem; color: var(--mid); line-height: 1.8; margin-bottom: 18px; }
.ecm-page-content ul, .ecm-page-content ol { padding-left: 24px; margin-bottom: 18px; }
.ecm-page-content li { font-size: 1.1rem; color: var(--mid); line-height: 1.75; margin-bottom: 6px; }
.ecm-page-content a { color: var(--sage); }
.ecm-page-content a.btn-primary-lg,
.ecm-page-content a.btn-primary-lg:hover { color: #fff; text-decoration: none; }
.ecm-page-content blockquote {
  margin: 28px 0; padding: 20px 24px;
  border-left: 4px solid var(--sage); border-radius: 0 12px 12px 0;
  background: var(--sage-pale);
  font-size: 1.1rem; color: var(--charcoal); line-height: 1.65;
}
.ecm-page-content img { max-width: 100%; height: auto; border-radius: 12px; }

/* Embed-code snippet with a copy button, for pages that ask providers/partners
   to paste a code block onto their own site (e.g. the "Listed on ECM" badge). */
.ecm-page-content .ecm-code-block {
  position: relative;
  margin: 0 0 18px;
  padding: 18px 52px 18px 18px;
  background: var(--charcoal);
  border-radius: 12px;
  overflow-x: auto;
}
.ecm-page-content .ecm-code-block code {
  display: block;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e8ece9;
  white-space: pre-wrap;
  word-break: break-word;
}
.ecm-code-copy-btn {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 8px;
  font-family: var(--font-body); font-size: 1.1rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.ecm-code-copy-btn:hover { background: rgba(255,255,255,0.2); }
.ecm-code-copy-btn.copied { background: var(--sage); border-color: var(--sage); }

/* Image + instructions side-by-side, for pages that pair a downloadable
   graphic with a short caption (replaces bare `float: left` images, which
   overlap the following paragraph when the text is short). */
.ecm-page-content .ecm-media-row {
  display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.ecm-page-content .ecm-media-row img {
  flex: 0 0 auto; max-width: 240px; margin-bottom: 0;
  border: 1px solid var(--border);
}
.ecm-page-content .ecm-media-row p { flex: 1 1 240px; margin-bottom: 0; }

/* .faq-item's default open max-height (240px, set in homepagev3.css) is
   tuned for short FAQ answers. This modifier gives room for taller
   accordion bodies (instructions + a code block, a graphic + caption, etc.)
   without changing the shared FAQ/Plans/provider-profile accordion. */
.ecm-page-content .faq-item.faq-item--tall.open .faq-a { max-height: 700px; }

/* ── ELDER CARE OVERVIEW TEMPLATE ── */
.ecm-overview-page {
  background: var(--warm-white);
}

.ecm-overview-hero {
  padding: 68px 5% 32px;
  background: var(--sage-pale);
  text-align: center;
}

.ecm-overview-hero__content {
  max-width: 960px;
  margin: 0 auto;
}

.ecm-overview-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--sage);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ecm-overview-hero h1 {
  margin: 0;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
}

.ecm-overview-hero h1 em {
  color: var(--sage);
  font-weight: 700;
}

.ecm-overview-hero__content p {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--mid);
  font-size: 1.1rem;
  line-height: 1.65;
}

.ecm-overview-content {
  padding: 0 5% 54px;
}

.ecm-overview-content__article {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 0 0;
  border-top: 0;
}

.ecm-overview-content__article h3 {
  margin: 30px 0 12px;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: 1.45rem;
}

.ecm-overview-content__article p {
  margin: 0 0 20px;
  color: var(--mid);
  font-size: 1.1rem;
  line-height: 1.85;
}

.ecm-overview-content__article a {
  color: var(--sage);
  font-weight: 700;
}

.ecm-overview-content__article ul,
.ecm-overview-content__article ol {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  list-style-position: inside;
}

.ecm-overview-content__article li {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(107,20,26,0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--mid);
  line-height: 1.45;
}

.ecm-category-directory {
  padding: 58px 5% 72px;
  background: var(--cream);
}

.ecm-category-directory__header {
  max-width: 1180px;
  margin: 0 auto 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.ecm-category-directory__header h2 {
  margin: 0;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.ecm-category-directory__header p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--mid);
  line-height: 1.7;
}

.ecm-directory-all-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1.5px solid var(--sage);
  border-radius: 8px;
  color: var(--sage);
  font-weight: 800;
  text-decoration: none;
}

.ecm-directory-all-link:hover {
  background: var(--sage);
  color: #fff;
}

.ecm-category-directory__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ecm-category-group {
  padding: 24px;
  border: 1px solid rgba(107,20,26,0.16);
  border-radius: 8px;
  background: var(--warm-white);
  box-shadow: 0 12px 28px rgba(44,44,44,0.05);
}

.ecm-category-group__top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
}

.ecm-category-group__mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--sage-pale);
  color: var(--sage);
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
}

.ecm-category-group h3 {
  margin: 0;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.2;
}

.ecm-category-group h3 a {
  color: inherit;
  text-decoration: none;
}

.ecm-category-group h3 a:hover {
  color: var(--sage);
}

.ecm-category-group p {
  margin: 8px 0 0;
  color: var(--mid);
  font-size: 1.1rem;
  line-height: 1.65;
}

.ecm-subcategory-list {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ecm-subcategory-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(107,20,26,0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--sage);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.ecm-subcategory-list a:hover {
  border-color: var(--sage);
  background: var(--sage-pale);
}

.ecm-subcategory-list--empty a {
  background: var(--sage);
  color: #fff;
}

/* Baseline styling for 3rd-party shortcode markup (WooCommerce forms/
   tables, contact forms, etc.) so it isn't unstyled browser-default. */
.ecm-page-content table {
  width: 100%; border-collapse: collapse; margin-bottom: 24px;
}
.ecm-page-content th, .ecm-page-content td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  text-align: left; font-size: 1.1rem; color: var(--mid);
}
.ecm-page-content th { color: var(--charcoal); font-weight: 700; }
.ecm-page-content input[type="text"],
.ecm-page-content input[type="email"],
.ecm-page-content input[type="tel"],
.ecm-page-content input[type="password"],
.ecm-page-content input[type="number"],
.ecm-page-content input[type="url"],
.ecm-page-content select,
.ecm-page-content textarea {
  width: 100%; padding: 11px 14px; margin-bottom: 4px;
  border: 1px solid var(--border); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem;
  background: var(--warm-white); color: var(--charcoal);
}
.ecm-page-content label { font-size: 1.1rem; font-weight: 600; color: var(--charcoal); }
.ecm-page-content button,
.ecm-page-content input[type="submit"] {
  background: var(--charcoal); color: #fff; border: none;
  padding: 13px 22px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.ecm-page-content button:hover,
.ecm-page-content input[type="submit"]:hover {
  background: var(--sage);
      color: #fff;
}

/* WP Job Manager package-selection step on the public Add Listing page. */
.ecm-page-content #job_package_selection {
  max-width: 100%;
  margin: 0;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--warm-white);
  box-shadow: 0 18px 44px rgba(44,44,44,0.06);
  overflow: hidden;
}
.ecm-page-content #job_package_selection .job_listing_packages_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  background: var(--sage-pale);
  border-bottom: 1px solid rgba(107,20,26,0.18);
}
.ecm-page-content #job_package_selection .job_listing_packages_title h2 {
  order: 1;
  clear: none;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
  color: var(--charcoal);
}
.ecm-page-content #job_package_selection .job_listing_packages_title .button {
  order: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  padding: 10px 20px;
  border: 1.5px solid var(--sage);
  border-radius: 10px;
  background: var(--sage);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.ecm-page-content #job_package_selection .job_listing_packages_title .button:hover {
  background: #8B1A21;
  border-color: #8B1A21;
  transform: translateY(-1px);
}
.ecm-page-content #job_package_selection .job_listing_packages,
.ecm-page-content #job_package_selection .resume_packages {
  margin: 0;
  padding: 22px 28px 28px;
  background: var(--warm-white);
}
.ecm-page-content #job_package_selection .job_listing_packages > p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(196,147,58,0.28);
  border-radius: 12px;
  background: rgba(240,216,154,0.22);
  color: var(--mid);
}
.ecm-page-content #job_package_selection .job_listing_packages > p a {
  color: var(--sage);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ecm-page-content #job_package_selection ul.job_packages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ecm-page-content #job_package_selection ul.job_packages li {
  margin: 0;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  color: var(--mid);
  list-style: none;
}
.ecm-page-content #job_package_selection ul.job_packages li.package-section {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sage);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ecm-page-content #job_package_selection ul.job_packages label {
  color: var(--charcoal);
  font-weight: 700;
}
.ecm-page-content #job_package_selection ul.job_packages input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  accent-color: var(--sage);
  vertical-align: -2px;
}
@media (max-width: 720px) {
  .ecm-page-container { padding: 28px 5% 48px; }
  .ecm-page-content #job_package_selection .job_listing_packages_title {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }
  .ecm-page-content #job_package_selection .job_listing_packages_title .button {
    width: 100%;
  }
  .ecm-page-content #job_package_selection .job_listing_packages,
  .ecm-page-content #job_package_selection .resume_packages {
    padding: 18px 20px 22px;
  }
}

/* Defensive: WooCommerce's own woocommerce-layout.css ships
   `.woocommerce img, .woocommerce-page img { height:auto; max-width:100% }`,
   which has higher specificity than .nav-logo-image (main.css/homepagev3.css)
   and — since the logo sits inside a flex container — collapses the header
   logo to 0x0 on any page carrying the woocommerce-page/woocommerce-account
   body class (My Account, Cart, Checkout, etc). Re-pin its size. */
nav a.nav-logo img.nav-logo-image {
  width: auto; height: 69px; max-width: none; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   WOOCOMMERCE MY ACCOUNT
   Styles the [woocommerce_my_account] shortcode output (Dashboard,
   Orders, Downloads, Address, Account details, Log out) plus the
   "My Listing Packages" table (WP Job Manager – Listing Packages)
   so it reads as part of the theme instead of raw WooCommerce
   defaults. Renders inside .ecm-page-content (page.php).
══════════════════════════════════════════════════════════════ */

/* Notices */
.ecm-page-content .woocommerce-message,
.ecm-page-content .woocommerce-error,
.ecm-page-content .woocommerce-info {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  list-style: none; margin: 0 0 24px; padding: 16px 20px;
  border-radius: 12px; font-size: 1.1rem; line-height: 1.6;
}
.ecm-page-content .woocommerce-message { background: var(--sage-pale); color: var(--charcoal); border: 1px solid rgba(107,20,26,0.25); }
.ecm-page-content .woocommerce-error { background: #f7e3e0; color: #7a2e1a; border: 1px solid rgba(179,70,44,0.25); }
.ecm-page-content .woocommerce-info { background: var(--gold-light); color: #6b4d14; border: 1px solid rgba(196,147,58,0.3); }
.ecm-page-content .woocommerce-error li { margin: 0; }
.ecm-page-content .woocommerce-message::before,
.ecm-page-content .woocommerce-error::before,
.ecm-page-content .woocommerce-info::before { display: none; }
.ecm-page-content .woocommerce-message a.button,
.ecm-page-content .woocommerce-info a.button { margin-left: auto; }

/* Move-to-new-platform notice above the My Account login (inc/migration-notice.php) - uses the site's .woocommerce-info look */
.ecm-move-notice__label { display: block; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.ecm-move-notice__title { display: block; font-size: 1.1rem; margin-bottom: 3px; }
.ecm-move-notice--account .ecm-move-notice__title { font-family: var(--font-heading); }
.ecm-move-notice a { color: inherit; font-weight: 700; text-decoration: underline; }

/* Dashboard / Orders / Downloads / Address / Account details layout */
body.woocommerce-account .ecm-page-content .woocommerce {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start;
}
/* Logged-out My Account (login / register, lost password): the 240px menu column only exists for logged-in pages,
   otherwise the Login and Register boxes get squeezed into it. */
body.woocommerce-account:not(.logged-in) .ecm-page-content .woocommerce { display: block; }
body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-navigation {
  /* Reset: WooCommerce's account nav is a semantic <nav>, which otherwise
     inherits main.css's global `nav {}` site-header rule (sticky/flex/68px).
     float/width reset WooCommerce's own woocommerce-layout.css (classic
     30%/68% floated columns), which is still enqueued. grid-column pins
     placement explicitly rather than relying on auto-placement. */
  position: static; display: block; height: auto; animation: none;
  backdrop-filter: none; border-bottom: none; padding: 0;
  float: none; width: auto; grid-column: 1; grid-row: 1;
  background: var(--warm-white); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 2px 10px var(--shadow);
}
body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-navigation ul {
  list-style: none; margin: 0; padding: 12px;
}
body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; }
body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-navigation-link a {
  display: block; padding: 12px 18px; border-radius: 10px; margin-bottom: 2px;
  font-size: 1.1rem; font-weight: 500; color: var(--mid); text-decoration: none;
  transition: all 0.2s;
}
body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-navigation-link a:hover {
  background: var(--sage-pale); color: var(--sage);
}
body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-navigation-link.is-active a {
  background: var(--sage); color: #fff; font-weight: 600;
}
body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-navigation-link--customer-logout a { color: #b3462c; }
body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #f7e3e0; color: #b3462c;
}
body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-content {
  float: none; width: auto; grid-column: 2; grid-row: 1;
  background: var(--warm-white); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; box-shadow: 0 2px 10px var(--shadow); min-width: 0;
}
body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-content > *:first-child { margin-top: 0; }
body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-content > *:last-child { margin-bottom: 0; }

/* Order overview summary (single order view) */
.ecm-page-content ul.woocommerce-order-overview {
  display: flex; flex-wrap: wrap; gap: 24px; list-style: none;
  padding: 20px 22px; margin: 0 0 28px;
  background: var(--cream); border: 1px solid var(--border); border-radius: 14px;
}
.ecm-page-content ul.woocommerce-order-overview li { margin: 0; font-size: 1.1rem; color: var(--muted); }
.ecm-page-content ul.woocommerce-order-overview li strong { display: block; color: var(--charcoal); font-size: 1.1rem; margin-top: 2px; }

/* Tables — orders, downloads, "My Listing Packages" (.shop_table) */
.ecm-page-content .shop_table {
  border: 1px solid var(--border); border-radius: 14px;
}
.ecm-page-content .shop_table th,
.ecm-page-content .shop_table td { padding: 14px 18px; }
.ecm-page-content .shop_table thead th {
  background: var(--sage-pale); border-bottom: 1px solid var(--border);
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.ecm-page-content .shop_table tbody tr:last-child td { border-bottom: none; }
.ecm-page-content .shop_table tbody tr:hover { background: rgba(107,20,26,0.04); }
.ecm-page-content .shop_table td[class*="actions"] {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.ecm-page-content mark.order-status {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  font-size: 1.1rem; font-weight: 600; background: var(--sage-pale); color: var(--sage);
}
.ecm-page-content mark.order-status.status-cancelled,
.ecm-page-content mark.order-status.status-failed { background: #f7e3e0; color: #b3462c; }
.ecm-page-content mark.order-status.status-on-hold,
.ecm-page-content mark.order-status.status-pending { background: var(--gold-light); color: #8a6216; }
.ecm-page-content .woocommerce-orders-table__cell-order-status {
  font-size: 1.1rem; font-weight: 600; color: var(--sage);
}

/* Buttons — WooCommerce renders actions as <a class="button">, not real buttons */
.ecm-page-content a.button,
.ecm-page-content .woocommerce-Button,
.ecm-page-content button.button,
.ecm-page-content input.button {
  /* WooCommerce's own woocommerce.css ships a `.woocommerce button.button`
     rule (specificity 0,2,1) that otherwise beats a plain .woocommerce-Button
     selector — match its shape so ours wins on source order instead. */
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 600;
  border: 1.5px solid var(--sage); color: var(--sage); background: transparent;
  text-decoration: none; white-space: nowrap; transition: all 0.2s;
}
.ecm-page-content a.button:hover,
.ecm-page-content .woocommerce-Button:hover,
.ecm-page-content button.button:hover,
.ecm-page-content input.button:hover { background: var(--sage); color: #fff; }
.ecm-page-content a.button.pay,
.ecm-page-content a.button.view,
.ecm-page-content input[type="submit"].button.pay { border-color: var(--sage); }
.ecm-page-content a.button.cancel {
  border-color: var(--border); color: var(--mid); background: transparent;
}
.ecm-page-content a.button.cancel:hover { border-color: #b3462c; color: #b3462c; background: transparent; }

/* Address cards */
.ecm-page-content .woocommerce-Addresses {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.ecm-page-content .woocommerce-Address {
  background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px;
}
.ecm-page-content .woocommerce-Address-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px;
}
.ecm-page-content .woocommerce-Address-title h2,
.ecm-page-content .woocommerce-Address-title h3 { margin: 0; font-size: 1.1rem; }
.ecm-page-content .woocommerce-Address-title .edit {
  font-size: 1.1rem; font-weight: 600; color: var(--sage); text-decoration: none;
}
.ecm-page-content .woocommerce-Address-title .edit:hover { text-decoration: underline; }
.ecm-page-content .woocommerce-Address address {
  font-style: normal; font-size: 1.1rem; color: var(--mid); line-height: 1.7;
}

/* Forms — edit account, edit address */
.ecm-page-content .woocommerce-EditAccountForm,
.ecm-page-content .woocommerce-address-fields,
.ecm-page-content .woocommerce-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; max-width: 640px;
}
.ecm-page-content .woocommerce-EditAccountForm .form-row,
.ecm-page-content .woocommerce-address-fields .form-row,
.ecm-page-content .woocommerce-form .form-row { grid-column: 1 / -1; margin-bottom: 18px; }
.ecm-page-content .form-row-first { grid-column: 1 !important; }
.ecm-page-content .form-row-last { grid-column: 2 !important; }
.ecm-page-content .form-row label { display: block; margin-bottom: 6px; }
.ecm-page-content .form-row .required { color: #b3462c; text-decoration: none; }
.ecm-page-content fieldset {
  grid-column: 1 / -1; border: none; padding: 24px 0 0; margin: 8px 0 0; border-top: 1px solid var(--border);
}
.ecm-page-content legend {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--charcoal);
  padding: 0; margin-bottom: 16px;
}
.ecm-page-content .password-input { position: relative; display: block; }
.ecm-page-content .password-input input { padding-right: 44px; }
.ecm-page-content .show-password-input {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer;
}

/* Pagination (orders list) */
.ecm-page-content .woocommerce-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 8px 0 0; }
.ecm-page-content .woocommerce-pagination li { margin: 0; }
.ecm-page-content .woocommerce-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  color: var(--mid); font-size: 1.1rem; text-decoration: none;
}
.ecm-page-content .woocommerce-pagination .page-numbers.current,
.ecm-page-content .woocommerce-pagination a.page-numbers:hover {
  background: var(--sage); border-color: var(--sage); color: #fff;
}

/* Login / lost-password (shown on myaccount when logged out) */
.ecm-page-content .woocommerce-form-login,
.ecm-page-content .woocommerce-form-lost-password {
  max-width: 420px; background: var(--cream); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
}
.ecm-page-content .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; color: var(--mid); }
.ecm-page-content .woocommerce-form-login__rememberme input { width: auto; margin: 0; }
.ecm-page-content .woocommerce-LostPassword { font-size: 1.1rem; margin-top: 10px; }
.ecm-page-content .woocommerce-LostPassword a { color: var(--sage); }

@media (max-width: 860px) {
  body.woocommerce-account .ecm-page-content .woocommerce { grid-template-columns: 1fr; }
  body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-navigation {
    grid-column: 1; grid-row: 1;
    display: flex; flex-wrap: wrap; gap: 4px; padding: 10px;
  }
  body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-content { grid-column: 1; grid-row: 2; }
  body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-navigation-link { flex: 1 1 auto; }
  body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-navigation-link a { padding: 9px 14px; font-size: 1.1rem; text-align: center; }
  body.woocommerce-account .ecm-page-content .woocommerce-MyAccount-content { padding: 22px; }
  .ecm-page-content .woocommerce-EditAccountForm,
  .ecm-page-content .woocommerce-address-fields,
  .ecm-page-content .woocommerce-form { grid-template-columns: 1fr; }
  .ecm-page-content .form-row-first,
  .ecm-page-content .form-row-last { grid-column: 1 !important; }
}

/* ── Provider listing pagination (Find Care + Category pages) ──────────────── */
.ecm-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 0 8px;
}
.ecm-pagination.ecm-provider-pagination {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 32px 0 8px;
}
.ecm-pagination-info {
  font-size: 1.1rem;
  color: var(--muted, #999);
}
.ecm-pagination-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.ecm-page-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border, #e0ddd8);
  background: #fff;
  color: var(--dark, #1a1a1a);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-width: 38px;
  text-align: center;
}
.ecm-page-btn:hover:not([disabled]):not(.ecm-page-btn--active) {
  background: var(--warm-bg, #f9f7f4);
  border-color: var(--sage, #6B8F71);
  color: var(--sage, #6B8F71);
}
.ecm-page-btn--active {
  background: var(--sage, #6B8F71);
  border-color: var(--sage, #6B8F71);
  color: #fff;
  cursor: default;
}
.ecm-page-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 600px) {
  .ecm-pagination.ecm-provider-pagination {
    flex-direction: column;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   WOOCOMMERCE SHOP PAGE
   Styles the /shop/ archive so it reads as part of the ECM theme.
   Body has .woocommerce-shop class on the shop page.
══════════════════════════════════════════════════════════════ */

/* Hide the marble/archive banner image & default page title box */
.woocommerce-shop .woocommerce-products-header {
  display: none;
}
/* Hide the ECM page featured image (marble) and the plain page header on all
   WooCommerce archive/transactional pages — hero or page title replaces them. */
.woocommerce-shop .ecm-page-featured-img,
.woocommerce-shop .ecm-page-header,
.woocommerce-cart .ecm-page-featured-img,
.woocommerce-checkout .ecm-page-featured-img {
  display: none;
}
/* Also hide the WooCommerce breadcrumb duplicated by WC itself (ECM renders its own). */
.woocommerce-shop .woocommerce-breadcrumb,
.woocommerce-cart .woocommerce-breadcrumb,
.woocommerce-checkout .woocommerce-breadcrumb {
  display: none;
}

/* ── Checkout: login toggle + panel ───────────────────────────────────────── */
.ecm-checkout-login-wrap {
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
}

/* Collapsed bar — always visible */
.ecm-checkout-login-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
}
.ecm-checkout-login-bar-text {
  font-size: 1.1rem;
  color: var(--mid);
}
.ecm-checkout-login-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--sage);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s, color 0.15s;
}
.ecm-checkout-login-trigger:hover {
  color: #3d5641;
  text-decoration-color: currentColor;
}
.ecm-checkout-login-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.ecm-checkout-login-trigger[aria-expanded="true"] .ecm-checkout-login-chevron {
  transform: rotate(180deg);
}

/* Expanded panel */
.ecm-checkout-login-panel {
  border-top: 1px solid var(--border);
}
.ecm-checkout-login-panel[hidden] {
  display: none;
}
.ecm-checkout-login-panel-inner {
  padding: 28px 32px 32px;
}

/* Header */
.ecm-checkout-login-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 6px;
  line-height: 1.25;
}
.ecm-checkout-login-sub {
  font-size: 1.1rem;
  color: var(--mid);
  margin: 0 0 28px;
  line-height: 1.55;
}

/* Form grid:
   Row 1 → Username (left)  |  Password (right)
   Row 2 → CAPTCHA (left)   |  Remember me + Login (right)
   Row 3 → Lost your password (full width) */
.ecm-checkout-login-panel-inner .woocommerce-form-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 0;
  align-items: start;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: 100%;
}

/* Hide structural dividers from grid flow */
.ecm-checkout-login-panel-inner .woocommerce-form-login .clear {
  display: none;
}

/* Row 1 left: Username */
.ecm-checkout-login-panel-inner .woocommerce-form-login .form-row-first {
  grid-column: 1 !important;
  grid-row: 1;
  margin: 0 0 20px;
      width: 100%;
}

/* Row 1 right: Password */
.ecm-checkout-login-panel-inner .woocommerce-form-login .form-row-last {
  grid-column: 2 !important;
  grid-row: 1;
  margin: 0 0 20px;
      width: 100%;
}

/* Row 2 left: CAPTCHA — vertically centred to the login button */
.ecm-checkout-login-panel-inner .woocommerce-form-login h-captcha {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}

/* Row 2 right: Remember me + Login button */
.ecm-checkout-login-panel-inner .woocommerce-form-login .form-row:not(.form-row-first):not(.form-row-last) {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  align-self: center;
}

/* Row 3: Lost your password — spans both columns */
.ecm-checkout-login-panel-inner .woocommerce-form-login .lost_password {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 16px 0 0;
}

/* Labels */
.ecm-checkout-login-panel-inner .woocommerce-form-login label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 7px;
}

/* Text inputs — identical style for username and password */
.ecm-checkout-login-panel-inner .woocommerce-form-login input[type="text"],
.ecm-checkout-login-panel-inner .woocommerce-form-login input[type="email"],
.ecm-checkout-login-panel-inner .woocommerce-form-login input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 1.1rem;
  font-family: var(--font-body, 'DM Sans', Arial, sans-serif);
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin: 0;
}
.ecm-checkout-login-panel-inner .woocommerce-form-login input[type="text"]:focus,
.ecm-checkout-login-panel-inner .woocommerce-form-login input[type="email"]:focus,
.ecm-checkout-login-panel-inner .woocommerce-form-login input[type="password"]:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107,20,26, 0.12);
}

/* Submit button */
.ecm-checkout-login-panel-inner .woocommerce-form-login .woocommerce-Button,
.ecm-checkout-login-panel-inner .woocommerce-form-login button[type="submit"] {
  padding: 11px 26px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-body, 'DM Sans', Arial, sans-serif);
  color: #fff;
  background: var(--sage);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}
.ecm-checkout-login-panel-inner .woocommerce-form-login .woocommerce-Button:hover,
.ecm-checkout-login-panel-inner .woocommerce-form-login button[type="submit"]:hover {
  background: #3d5641;
}

/* Remember me checkbox */
.ecm-checkout-login-panel-inner .woocommerce-form-login .woocommerce-form-login__rememberme {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.1rem;
  color: var(--mid);
}
.ecm-checkout-login-panel-inner .woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--sage);
}

/* Lost password */
.ecm-checkout-login-panel-inner .woocommerce-form-login .lost_password a {
  font-size: 1.1rem;
  color: var(--sage);
  text-decoration: none;
  font-weight: 500;
}
.ecm-checkout-login-panel-inner .woocommerce-form-login .lost_password a:hover {
  text-decoration: underline;
}

@media (max-width: 680px) {
  .ecm-checkout-login-panel-inner { padding: 22px 6px 24px; }
  .page-id-50 .ecm-page-content .woocommerce-form-login {
    padding: 15px 10px;
  }
  /* Stack on mobile: CAPTCHA above, fields below */
  .ecm-checkout-login-panel-inner .woocommerce-form-login {
    grid-template-columns: 1fr;
  }
  .ecm-checkout-login-panel-inner .woocommerce-form-login h-captcha {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 20px;
  }
  .ecm-checkout-login-panel-inner .woocommerce-form-login .form-row-first,
  .ecm-checkout-login-panel-inner .woocommerce-form-login .form-row-last,
  .ecm-checkout-login-panel-inner .woocommerce-form-login .form-row:not(.form-row-first):not(.form-row-last),
  .ecm-checkout-login-panel-inner .woocommerce-form-login .lost_password {
    grid-column: 1 !important;
    grid-row: auto;
  }
}

/* Shop — full-width container, no max-width cap */
.woocommerce-shop .ecm-page-container {
  max-width: none;
  padding: 0;
}
.woocommerce-shop .ecm-page-content {
  padding: 0 5%;
}

.woocommerce-shop .ecm-shop-hero {
  background: linear-gradient(180deg, var(--sage-pale) 0%, transparent 100%);
  padding: 52px 2% 40px;
  margin-bottom: 8px;
}
.woocommerce-shop .ecm-shop-hero-eyebrow {
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sage);
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.woocommerce-shop .ecm-shop-hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 24px; height: 2px; background: var(--sage); border-radius: 2px;
}
.woocommerce-shop .ecm-shop-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 700;
  color: var(--charcoal); line-height: 1.15; margin-bottom: 12px;
}
.woocommerce-shop .ecm-shop-hero h1 em { font-style: normal; font-weight: 700; color: var(--sage); }
.woocommerce-shop .ecm-shop-hero p {
  font-size: 1.1rem; color: var(--mid); max-width: 540px; line-height: 1.7;
}

/* Toolbar: result count + ordering on one row */
.woocommerce-shop .woocommerce-products-header + *,
.woocommerce-shop .woocommerce > .woocommerce-result-count,
.woocommerce-shop .woocommerce > .woocommerce-ordering {
  /* handled by the toolbar wrapper below */
}

.woocommerce-shop .ecm-shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 0 2% 24px;
}
.woocommerce-shop .woocommerce-result-count {
  font-size: 1.1rem; color: var(--muted); margin: 0;
}
.woocommerce-shop .woocommerce-ordering {
  margin: 0;
}
.woocommerce-shop .woocommerce-ordering select {
  padding: 9px 32px 9px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem;
  background: var(--warm-white); color: var(--charcoal);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color 0.2s;
}
.woocommerce-shop .woocommerce-ordering select:focus {
  outline: none; border-color: var(--sage);
}

/* Product grid — single row of 6 plans */
.woocommerce-shop ul.products {
  list-style: none; padding: 0 ; margin: 0 0 48px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
/* WooCommerce inserts clearfix ::before/::after on the UL which become grid items.
   Hide them so the grid starts with product 0 in column 1. */
.woocommerce-shop ul.products::before,
.woocommerce-shop ul.products::after {
  display: none;
}

/* Product card */
.woocommerce-shop ul.products li.product {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.25s;
  position: relative;
  margin: 0; padding: 0;
  float: none; width: auto;
}
.woocommerce-shop ul.products li.product:hover {
  border-color: var(--sage);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(45,85,160,0.15);
}

/* Remove default WC sale flash styling */
.woocommerce-shop ul.products li.product .onsale {
  background: var(--sage); color: #fff;
  border-radius: 20px; font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 12px; top: 16px; left: 16px; margin: 0;
  line-height: 1.4; min-height: auto;
}

/* Product image area — styled icon zone */
.woocommerce-shop ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex; flex-direction: column; text-decoration: none;
  color: inherit; flex: 1;
}
.woocommerce-shop ul.products li.product .woocommerce-product-gallery__wrapper,
.woocommerce-shop ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce-shop ul.products li.product img {
  width: 100%; aspect-ratio: 3/2;
  object-fit: cover; display: block;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--sage-pale) 0%, #d0e8d4 100%);
}

/* When there's no product image (placeholder), style the zone */
.woocommerce-shop ul.products li.product img.wp-post-image {
  background: linear-gradient(135deg, var(--sage-pale) 0%, #d0e8d4 100%);
  filter: opacity(0.6) grayscale(0.3);
}
.woocommerce-shop ul.products li.product a img[src*="woocommerce-placeholder"] {
  padding: 32px; background: var(--sage-pale); box-sizing: border-box;
  filter: none; opacity: 0.35;
}

/* Product card body */
.woocommerce-shop ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 600; line-height: 1.3;
  color: var(--charcoal); padding: 18px 20px 6px; margin: 0;
}

.woocommerce-shop ul.products li.product .price {
  display: block; padding: 0 20px 16px;
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700; color: var(--sage);
  border-bottom: 1px solid var(--border); margin: 0;
}
.woocommerce-shop ul.products li.product .price del {
  color: var(--muted); font-size: 1.1rem; font-weight: 400;
  margin-right: 6px;
}
.woocommerce-shop ul.products li.product .price ins {
  text-decoration: none; font-weight: 700;
}

/* Add to cart button */
.woocommerce-shop ul.products li.product .button.add_to_cart_button,
.woocommerce-shop ul.products li.product a.button {
  display: block; width: calc(100% - 40px); margin: 16px 20px;
  padding: 11px 18px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 600;
  text-align: center; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--charcoal); background: transparent;
  color: var(--charcoal); transition: all 0.2s;
  white-space: nowrap;
}
.woocommerce-shop ul.products li.product .button.add_to_cart_button:hover,
.woocommerce-shop ul.products li.product a.button:hover {
  background: var(--charcoal); color: #fff;
}
.woocommerce-shop ul.products li.product .button.added,
.woocommerce-shop ul.products li.product .button.loading {
  border-color: var(--sage); color: var(--sage);
}
.woocommerce-shop ul.products li.product .added_to_cart {
  display: block; text-align: center; margin: -8px 20px 16px;
  font-size: 1.1rem; color: var(--sage); font-weight: 600;
  text-decoration: none;
}

/* WooCommerce shop notices */
.woocommerce-shop .woocommerce-message,
.woocommerce-shop .woocommerce-error,
.woocommerce-shop .woocommerce-info {
  list-style: none; padding: 14px 20px; margin: 0 5% 24px;
  border-radius: 12px; font-size: 1.1rem;
}
.woocommerce-shop .woocommerce-message { background: var(--sage-pale); color: var(--charcoal); border: 1px solid rgba(107,20,26,0.25); }
.woocommerce-shop .woocommerce-error   { background: #f7e3e0; color: #7a2e1a; border: 1px solid rgba(179,70,44,0.25); }
.woocommerce-shop .woocommerce-info    { background: var(--gold-light); color: #6b4d14; border: 1px solid rgba(196,147,58,0.3); }

/* Pagination */
.woocommerce-shop .woocommerce-pagination {
  padding: 0 5% 48px; display: flex; justify-content: center;
}
.woocommerce-shop .woocommerce-pagination ul {
  list-style: none; display: flex; gap: 6px; padding: 0; margin: 0;
}
.woocommerce-shop .woocommerce-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--warm-white); color: var(--mid);
  font-size: 1.1rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s;
}
.woocommerce-shop a.woocommerce-pagination .page-numbers:hover { border-color: var(--sage); color: var(--sage); }
.woocommerce-shop .woocommerce-pagination .page-numbers.current {
  background: var(--sage); border-color: var(--sage); color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
  .woocommerce-shop ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .woocommerce-shop ul.products { grid-template-columns: repeat(2, 1fr); }
  nav a.nav-logo img.nav-logo-image {
    max-width: 260px;
}
}
@media (max-width: 480px) {
  .woocommerce-shop ul.products { grid-template-columns: 1fr; padding: 0 4%; }
  .woocommerce-shop .ecm-shop-hero { padding: 36px 4% 28px; }
  .woocommerce-shop .ecm-shop-toolbar { padding: 0 4% 18px; }
}

/* ══════════════════════════════════════════════════════════════
   WOOCOMMERCE ORDER RECEIVED (THANK YOU) PAGE
   Body: .woocommerce-order-received
══════════════════════════════════════════════════════════════ */

/* Hide marble banner & "Checkout" page title — WC notice replaces them */
.woocommerce-order-received .ecm-page-featured-img,
.woocommerce-order-received .ecm-page-header {
  display: none;
}

/* Constrain and centre the order content */
.woocommerce-order-received .ecm-page-content {
  max-width: 1000px;
  margin: 0 auto;
}
.woocommerce-order-received .woocommerce-order {
  padding: 0;
}
li.woocommerce-order-overview__email.email {
    word-break: break-all;
}

/* ── Thank-you notice ── */
.woocommerce-order-received .woocommerce-thankyou-order-received {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--charcoal);
  padding: 40px 0 4px;
  margin: 0;
}
.woocommerce-order-received .woocommerce-thankyou-order-received::before {
  content: '✓';
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sage); color: #fff;
  font-size: 1.5rem; font-family: sans-serif; font-weight: 700;
  margin: 0 auto 18px;
}

/* ── Order overview stats bar ── */
.woocommerce-order-received ul.woocommerce-order-overview {
  display: flex; flex-wrap: wrap;
  list-style: none; margin: 24px 0 20px; padding: 0;
  border: 1.5px solid var(--border); border-radius: 16px;
  overflow: hidden; background: var(--warm-white);
}
.woocommerce-order-received ul.woocommerce-order-overview li {
  flex: 1; min-width: 120px;
  padding: 16px 0;
  border-right: 1px solid var(--border);
  margin: 0; font-size: 1.1rem; color: var(--charcoal); font-weight: 600;
}
.woocommerce-order-received ul.woocommerce-order-overview li:last-child {
  border-right: none;
}
.woocommerce-order-received ul.woocommerce-order-overview li strong {
  display: block;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}

/* ── Subscription note paragraph ── */
.woocommerce-order-received .woocommerce-order > p:not(.woocommerce-thankyou-order-received) {
  font-size: 1.1rem; color: var(--mid);
  text-align: center; margin: 0 0 28px;
}
.woocommerce-order-received .woocommerce-order > p a { color: var(--sage); }

/* ── Section spacing ── */
.woocommerce-order-received .woocommerce-order-details { margin-bottom: 0; padding: 0; }
.woocommerce-order-received .woocommerce-customer-details { margin-top: 28px; padding: 0; }
.woocommerce-account .woocommerce-order-details { padding: 0; }

/* ── Section headings ── */
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-customer-details .woocommerce-column__title {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700; color: var(--charcoal);
  margin: 0 0 12px; padding-bottom: 10px;
  border-bottom: 2px solid var(--sage-pale);
}
.woocommerce-order-received .woocommerce-order-details header {
  margin: 28px 0 12px;
}
.woocommerce-order-received .woocommerce-order-details header h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700; color: var(--charcoal);
  margin: 0; padding-bottom: 10px;
  border-bottom: 2px solid var(--sage-pale);
}

/* ── All shop_tables on this page ── */
.woocommerce-order-received .shop_table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; margin-bottom: 0;
}
.woocommerce-order-received .shop_table th {
  background: var(--sage-pale); padding: 11px 18px;
  font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--charcoal);
  border-bottom: 1px solid var(--border); text-align: left;
}
.woocommerce-order-received .shop_table td {
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  font-size: 1.1rem; color: var(--mid); vertical-align: middle;
}
.woocommerce-order-received .shop_table tr:last-child td { border-bottom: none; }
.woocommerce-order-received .shop_table tbody tr:hover { background: rgba(107,20,26,0.03); }
.woocommerce-order-received .shop_table tfoot td,
.woocommerce-order-received .shop_table tfoot th {
  font-weight: 700; color: var(--charcoal);
}
.woocommerce-order-received .shop_table tfoot tr:last-child td {
  font-size: 1.1rem; color: var(--sage); font-weight: 700;
}
.woocommerce-order-received .shop_table a { color: var(--charcoal); text-decoration: none; }
.woocommerce-order-received .shop_table a:hover { color: var(--sage); }

/* Active status badge in subscriptions table */
.woocommerce-order-received .shop_table .subscription-status {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 1.1rem; font-weight: 700;
  background: var(--sage-pale); color: var(--sage);
}

/* View button in subscriptions table */
.woocommerce-order-received .shop_table .button,
.woocommerce-order-received .shop_table a.button {
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: 8px;
  border: 1.5px solid var(--sage); color: var(--sage);
  background: transparent; font-size: 1.1rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.woocommerce-order-received .shop_table .button:hover,
.woocommerce-order-received .shop_table a.button:hover {
  background: var(--sage); color: #fff;
}

/* Custom-fields table (Phone etc.) — lighter treatment */
.woocommerce-order-received .woocommerce-table--custom-fields {
  margin-top: 16px;
  border-radius: 12px;
}
.woocommerce-order-received .woocommerce-table--custom-fields th {
  background: transparent; text-transform: none; letter-spacing: 0;
  font-size: 1.1rem; color: var(--charcoal); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.woocommerce-order-received .woocommerce-table--custom-fields td { width: 60%; }

/* Billing address card */
.woocommerce-order-received .woocommerce-customer-details address {
  font-style: normal; font-size: 1.1rem; color: var(--mid); line-height: 1.8;
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px; margin: 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  /* Order confirmation: single-column card on mobile */
  .woocommerce-order-received ul.woocommerce-order-overview li {
    flex-basis: 100%; border-right: none; border-bottom: 1px solid var(--border);
    padding: 13px 20px; text-align: left;
  }
  .woocommerce-order-received ul.woocommerce-order-overview li:last-child {
    border-bottom: none;
  }
  .woocommerce-order-received .shop_table th,
  .woocommerce-order-received .shop_table td { padding: 10px 12px; font-size: 1.1rem; }

  /* Review form wrapper: tighten horizontal padding on mobile */
  .review-form-wrap { padding: 24px 16px; }

  /* Review form: collapse 2-column grid to single column */
  #commentform.review-form {
    grid-template-columns: 1fr;
  }
  #commentform.review-form > #wpjmr-submit-ratings,
  #commentform.review-form > .form-field--review,
  #commentform.review-form > .form-field--name,
  #commentform.review-form > .form-field--email,
  #commentform.review-form > .review-form-error,
  #commentform.review-form > .review-form-submit-row {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  #commentform.review-form .h-captcha,
  #commentform.review-form h-captcha {
    grid-column: 1; margin-top: 12px;
  }
  #commentform.review-form > .review-form-submit-row {
    justify-content: stretch;
  }
  #commentform.review-form > .review-form-submit-row #submit {
    width: 100%;
  }
  /* Star widget: reduce padding so labels fit on one line */
  #wpjmr-submit-ratings { padding: 6px 10px 6px; }
  #wpjmr-submit-ratings .choose-rating .dashicons { font-size: 22px; width: 24px; height: 22px; }
}
.pd-card.article-section {
    display: none;
}
.edit-listing .fieldset-type-payment-package {
    display: none;
}

/* ── Cart page: hide thumbnail + quantity; move remove to right ── */
.woocommerce-cart .product-thumbnail,
.woocommerce-cart .product-quantity { display: none !important; }

/* Flex layout on header row and cart item rows — actions/coupon row is unaffected */
.woocommerce-cart table.cart thead tr,
.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item {
    display: flex;
    align-items: center;
    width: 100%;
}
/* Product name: constrained so price/subtotal have room */
.woocommerce-cart table.cart thead tr th.product-name,
.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item td.product-name {
    flex: 0 0 40%;
    min-width: 0;
}
/* Price and subtotal: share remaining space equally */
.woocommerce-cart table.cart thead tr th.product-price,
.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item td.product-price,
.woocommerce-cart table.cart thead tr th.product-subtotal,
.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item td.product-subtotal {
    flex: 1 1 auto;
    text-align: right;
    padding-left: 12px;
}
/* Remove button: pushed to far right */
.woocommerce-cart table.cart thead tr th.product-remove,
.woocommerce-cart table.cart tr.woocommerce-cart-form__cart-item td.product-remove {
    flex: 0 0 auto;
    order: 99;
    padding-left: 8px;
}
.woocommerce-cart table.cart thead tr th.product-remove {
    height: 38px;
}
/* ── Subscription Plan product page: hide blog layout, show only the subscription form ── */
body.subscription-plans .breadcrumb,
body.subscription-plans .blog-article-header,
body.subscription-plans .woocommerce-product-gallery,
body.subscription-plans .related.products,
body.subscription-plans .inner-section--cream,
body.subscription-plans .cta-band, body.subscription-plans .product_meta { display: none !important; }

body.subscription-plans .blog-article-body { padding: 40px 2% 60px; max-width: 1000px; }
body.subscription-plans .summary.entry-summary {
    float: none !important; width: 100% !important; max-width: none;
    margin: 0 auto;
    border: 1px solid #dde0e4;
    border-radius: 6px;
    padding: 28px 36px 24px;
    background: #fff;
}
body.subscription-plans .single-product .product::after { content: ''; display: table; clear: both; }
body.subscription-plans .ecm-sub-plan-title {
    font-size: 1.25rem; font-weight: 600;
    color: #1a1a1a; margin: 0 0 16px;
}
.single-product form.cart.grouped_form table {
    width: 100%;
        margin-bottom: 20px;
}
.woocommerce div.product form.cart .button {
    background: var(--sage);
}
h2.ecm-sub-plan-title {
    font-family: 'DM Sans', Arial, Helvetica, sans-serif;
}
.single-product form.cart.grouped_form table td {
    padding: 10px !important;
    border: 1px solid #e6e6e6 !important;
}
@media (max-width: 980px) {
  .ecm-overview-hero {
    padding-top: 54px;
  }

  .ecm-category-directory__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ecm-category-directory__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .ecm-overview-hero {
    padding: 42px 6% 28px;
  }

  .ecm-overview-hero h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 1.08;
  }

  .ecm-overview-content__article ul,
  .ecm-overview-content__article ol {
    grid-template-columns: 1fr;
  }

  .ecm-overview-content {
    padding-bottom: 42px;
  }

  .ecm-overview-content__article {
    padding-top: 34px;
  }

  .ecm-category-directory {
    padding-top: 44px;
    padding-bottom: 54px;
  }

  .ecm-directory-all-link {
    width: 100%;
  }

  .ecm-category-group {
    padding: 20px;
  }

  .ecm-category-group__top {
    grid-template-columns: 1fr;
  }

  .ecm-category-group__mark {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }
}

/* ── WooCommerce cart — mobile responsive table ─────────────────────────────
   WC's default shop_table_responsive styles aren't reliably applied by the
   theme, so we enforce stacking here. Each td becomes a labelled block row.
   table + tbody must also become block-level or display:block on tr/td is
   ignored by the browser's table formatting context. */
@media (max-width: 600px) {
  .woocommerce-cart table.shop_table,
  .woocommerce-cart table.shop_table tbody {
    display: block;
    width: 100%;
  }
  .woocommerce-cart table.shop_table thead {
    display: none;
  }
  .woocommerce-cart table.shop_table tr {
    display: block !important;   /* overrides the desktop flex layout rule above */
    width: 100%;
    border-bottom: 1px solid var(--border, #e5e7eb);
    padding: 14px 0;
  }
  .woocommerce-cart table.shop_table tbody tr:first-child {
    border-top: 1px solid var(--border, #e5e7eb);
  }
  .woocommerce-cart table.shop_table td {
    display: block;
    text-align: right;
    padding: 5px 10px;
    border: none !important;
  }
  .woocommerce-cart table.shop_table td::before {
    content: attr(data-title) ": ";
    float: left;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--charcoal, #1a1a1a);
  }
  .woocommerce-cart table.shop_table td.product-remove {
    text-align: right;
    padding-top: 6px;
  }
  .woocommerce-cart table.shop_table td.product-remove::before {
    display: none;
  }
  .woocommerce-cart table.shop_table .actions {
    display: block;
    padding: 12px 10px 4px;
    border-top: none;
  }
  /* Coupon + Update cart stack vertically */
  .woocommerce-cart .woocommerce-cart-form .coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  .woocommerce-cart .woocommerce-cart-form .coupon input {
    flex: 1 1 140px;
  }
}

/* ── hCaptcha — prevent overflow on narrow mobile screens ───────────────────
   The hCaptcha widget renders at a fixed 300px. On screens below ~340px it
   can clip the page edge. Scale it down and pin the origin to the left so
   the shrunken widget stays left-aligned. */
@media (max-width: 340px) {
  .h-captcha,
  h-captcha {
    transform: scale(0.85);
    transform-origin: left center;
    display: block;
  }
}

/* ── WooCommerce checkout — billing form field fix on narrow screens ─────────
   WC renders first/last name side by side using float widths. On screens
   narrower than 480px these overflow; force them to stack. */
@media (max-width: 480px) {
  .woocommerce-checkout .woocommerce-billing-fields .form-row-first,
  .woocommerce-checkout .woocommerce-billing-fields .form-row-last,
  .woocommerce-checkout .woocommerce-shipping-fields .form-row-first,
  .woocommerce-checkout .woocommerce-shipping-fields .form-row-last {
    float: none !important;
    width: 100% !important;
    clear: both;
  }
}
.woocommerce-cart ul.woocommerce-error .wc-forward {
    display: none;
}
@media (max-width: 768px) {
  nav a.nav-logo img.nav-logo-image {
    max-width: 260px;
  }
  .ecm-checkout-login-bar {
        padding: 14px 12px;
  }
}
p.provider-hero-tagline {
    display: none;
}

/* ── LEGAL PAGES (Terms, Privacy, etc.) ─────────────────────────────────── */
.legal-page {
  /* max-width: 780px; */
  margin: 0 auto;
  padding: 0 20px 80px;
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal, #1f2933);
}

/* Header block */
.legal-header {
  background: var(--sage-pale, #F5E8E9);
  border-left: 4px solid var(--sage, #6B141A);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px;
  margin-bottom: 36px;
}
.legal-meta {
  font-size: 1.1rem;
  color: var(--muted, #6b7280);
  margin: 0 0 5px;
  letter-spacing: 0.01em;
}
.legal-entity {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal, #1f2933);
  margin: 0 0 10px;
}
.legal-acceptance {
  font-size: 1.1rem;
  color: var(--charcoal, #1f2933);
  margin: 0;
  line-height: 1.6;
}

/* Table of contents */
.legal-toc {
  display: block !important;
  position: static !important;
  float: none !important;
  background: var(--cream, #FAF7F2);
  border: 1px solid #e2ddd7;
  border-radius: 8px;
  padding: 20px 24px 16px;
  margin-bottom: 52px;
  width: auto !important;
  min-height: 0 !important;
}
.legal-toc h2 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--sage, #6B141A) !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: none !important;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
}
.legal-toc ol li {
  font-size: 1.1rem;
  margin-bottom: 5px;
  line-height: 1.4;
  display: list-item; /* ensure list-item rendering in any layout context */
}
.legal-toc a {
  color: var(--charcoal, #1f2933);
  text-decoration: none;
}
.legal-toc a:hover {
  color: var(--sage, #6B141A);
  text-decoration: underline;
}

/* Sections */
.legal-page section {
  margin-bottom: 0;
  padding: 36px 0;
  border-bottom: 1px solid #eae7e1;
}
.legal-page section:last-child {
  border-bottom: none;
}

/* Section h2 */
.legal-page section > h2 {
  font-family: var(--font-heading) !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: var(--charcoal, #1f2933) !important;
  margin: 0 0 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--sage-pale, #F5E8E9) !important;
  line-height: 1.3 !important;
}

/* Sub-headings h3 */
.legal-page h3 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--sage, #6B141A) !important;
  margin: 28px 0 8px !important;
}

/* Body text */
.legal-page p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 14px;
}
.legal-page section ol,
.legal-page section ul {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal-page ol li,
.legal-page ul li {
  margin-bottom: 8px;
}

/* Address block (DMCA agent) */
.legal-page address {
  font-style: normal;
  background: #f4f1eb;
  border-left: 3px solid var(--sage, #6B141A);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 12px 0 18px;
  color: var(--charcoal, #1f2933);
}

/* Links */
.legal-page a {
  color: var(--sage, #6B141A);
}
.legal-page a:hover {
  color: var(--charcoal, #1f2933);
}

/* Strong */
.legal-page strong {
  color: var(--charcoal, #1f2933);
  font-weight: 600;
}

/* Mobile */
@media (max-width: 600px) {
  .legal-toc ol {
    columns: 1;
  }
  .legal-page section > h2 {
    font-size: 1.15rem !important;
  }
}
/* Listing page: paid label and ECM Verified badge on their own line under the business name (spec 11.1.2). */
.provider-hero-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 10px; }
.provider-hero-labels .ecm-verified-badge { margin-left: 0; }
/* Spec 11.5.2: on narrow screens the second half may wrap to a line below, but must stay visible. */
@media (max-width: 600px) { .ecm-verified-badge { white-space: normal; } }

/* ECM Verified hover/tap text (spec 11.5.4): a popover that works with hover, keyboard focus and touch. */
.ecm-verified-wrap { position: relative; display: inline-block; max-width: 100%; }
.provider-card-body > .ecm-verified-wrap { margin-top: 6px; align-self: flex-start; }
.ecm-verified-tip {
  display: none; position: absolute; left: 0; top: 100%; z-index: 60;
  width: min(320px, 80vw); margin-top: 4px; padding: 10px 12px;
  background: #1f2933; color: #fff; border-radius: 8px;
  font-size: 1.1rem; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none; text-align: left;
  box-shadow: 0 8px 24px rgba(31,41,51,0.25);
}
/* a transparent bridge so moving the pointer from the badge onto the popover keeps it open (1.4.13 hoverable) */
.ecm-verified-tip::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.ecm-verified-wrap:hover .ecm-verified-tip,
.ecm-verified-wrap:focus-within .ecm-verified-tip,
.ecm-verified-wrap.is-open .ecm-verified-tip { display: block; }
.ecm-verified-wrap.is-dismissed .ecm-verified-tip { display: none; }

/* Find Care: mandatory category picker and the "Showing: … Change" line */
.ecm-cat-line { margin: 0; font-size: 1.1rem; color: var(--mid); }
.search-hero .ecm-cat-line { margin: 0 0 16px; line-height: 1.3; }
.search-hero p:has(+ .ecm-cat-line) { margin-bottom: 6px; }
.ecm-cat-change { background: none; border: 0; padding: 0; margin-left: 6px; font: inherit; font-weight: 600; color: var(--sage-dark, #3f5f43); text-decoration: underline; cursor: pointer; }
.ecm-cat-gate-cancel { margin-top: 16px; background: none; border: 0; padding: 4px 0; font: inherit; color: #3f5f43; text-decoration: underline; cursor: pointer; }
body.ecm-cat-gate-open { overflow: hidden; }

/* Find Care cards: tier icon with tooltip (crown = Sponsored) */
.provider-card-hero > .provider-tier-icon,
.provider-tier-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  position: absolute; top: 12px; right: 12px; z-index: 2; cursor: default;
}
.provider-tier-icon.tier-sponsored { border-color: #E0A800; background: #FFF8DB; }
.provider-tier-icon::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #1f2a24; color: #fff; font: 600 0.72rem/1 'DM Sans', sans-serif;
  padding: 6px 9px; border-radius: 6px; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translateY(-2px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s; pointer-events: none;
}
.provider-tier-icon:hover::after,
.provider-tier-icon:focus-visible::after,
.provider-tier-icon:focus::after { opacity: 1; visibility: visible; transform: none; }
.provider-tier-icon:focus-visible { outline: 3px solid rgba(63, 95, 67, 0.5); outline-offset: 2px; }
.ecm-cat-gate .care-type-btn:focus-visible { outline: 3px solid rgba(63, 95, 67, 0.45); outline-offset: 2px; }
.ecm-cat-gate .step-hint { margin: 0 0 16px; }

/* Card images: keep the photo on its own compositing layer so scrolling does not re-paint it blank */
.provider-card-hero img { transform: translateZ(0); backface-visibility: hidden; }

/* Find Care: intro line, visible "Sponsored" label, disabled Select at the 10-pick cap */
.search-pick-intro { margin: 0 0 16px; font-size: 1.1rem; color: var(--charcoal); }
.provider-card-hero > .provider-tier-icon.has-text,
.provider-tier-icon.has-text {
  width: auto; height: 30px; border-radius: 15px; padding: 0 12px 0 8px; gap: 6px;
}
.provider-tier-icon.has-text::after { display: none; }
.provider-tier-text {
  font: 700 0.7rem/1 'DM Sans', sans-serif; letter-spacing: 0.04em;
  text-transform: uppercase; color: #6b4a00;
}
.provider-pick-btn.is-disabled { opacity: 0.5; cursor: not-allowed; }
.provider-pick-btn.is-disabled:hover { background: rgba(10,18,12,0.72); }
