/* ==========================================================================
   The Local Directory: global design system  v1.0-draft  (2026-12-03)
   Source of truth: docs/sam-ai/projects/active/the-local-directory/design/DESIGN-SYSTEM.md
   Loaded site-wide AFTER the theme and Elementor by mu-plugin tld-design-system.php,
   gated by option tld_ds_mode: off (default) / preview (admins or ?tld_ds=preview) / on.
   MyListing class names checked on the live site 2026-12-03 (theme 2.9.10). Re-check after 2.11.9.
   Change tokens here, never per section.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* colour */
  --tld-eucalypt: #173A2E;
  --tld-eucalypt-700: #245343;
  --tld-sage: #E3EDDF;
  --tld-leaf: #29B211;
  --tld-leaf-300: #8ED17A;
  --tld-clay: #B5532F;
  --tld-clay-700: #9A4426;
  --tld-clay-050: #F3DED3;
  --tld-paper: #FBF8F3;
  --tld-sand: #F5EDE1;
  --tld-white: #FFFFFF;
  --tld-ink: #1E2622;
  --tld-muted: #4D5A53;
  --tld-line: #E7DFD2;
  --tld-on-dark: #FFFFFF;
  --tld-on-dark-86: rgba(255, 255, 255, .86);
  --tld-on-dark-70: rgba(255, 255, 255, .70);
  --tld-line-dark: rgba(255, 255, 255, .14);

  /* type */
  --tld-serif: 'Lora', ui-serif, Georgia, 'Times New Roman', serif;
  --tld-sans: 'Mulish', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tld-h1: clamp(38px, 3.4vw + 12px, 60px);
  --tld-h2: clamp(30px, 2vw + 14px, 44px);
  --tld-h3: clamp(21px, .5vw + 17px, 24px);
  --tld-h4: clamp(18px, .2vw + 16px, 19px);
  --tld-lead: clamp(18px, .3vw + 15px, 20px);
  --tld-body: 17px;
  --tld-small: 14px;
  --tld-label: 12.5px;

  /* shape */
  --tld-r-btn: 12px;
  --tld-r-chip: 999px;
  --tld-r-card: 18px;
  --tld-r-photo: 22px;
  --tld-r-panel: 28px;
  --tld-r-tile: 14px;

  /* depth */
  --tld-shadow-card: 0 1px 2px rgba(23, 58, 46, .04), 0 6px 18px rgba(23, 58, 46, .06);
  --tld-shadow-float: 0 24px 60px rgba(23, 58, 46, .16);
  --tld-shadow-lift: 0 12px 32px rgba(23, 58, 46, .14);
  --tld-glass: rgba(255, 251, 245, .62);
  --tld-glass-edge: rgba(255, 255, 255, .70);

  /* space */
  --tld-container: 1240px;
  --tld-gutter: 24px;
  --tld-section-y: 104px;
  --tld-gap: 24px;

  /* motion */
  --tld-ease: cubic-bezier(.22, 1, .36, 1);
  --tld-ease-ui: cubic-bezier(.2, 0, 0, 1);
  --tld-fast: 180ms;
  --tld-slow: 600ms;
}
@media (max-width: 767px) {
  :root { --tld-section-y: 72px; --tld-gutter: 16px; --tld-body: 16px; }
}

/* ---------- 2. Base ---------- */
body { font-family: var(--tld-sans); color: var(--tld-ink); background: var(--tld-paper); }
h1, h2, h3, h4, .elementor-heading-title { font-family: var(--tld-serif); color: var(--tld-eucalypt); }
::selection { background: var(--tld-sage); color: var(--tld-eucalypt); }
:focus-visible { outline: 2px solid var(--tld-clay); outline-offset: 2px; }

/* ---------- 3. Layout ---------- */
.tld-container { max-width: var(--tld-container); margin-inline: auto; padding-inline: var(--tld-gutter); }
.tld-narrow { max-width: 820px; margin-inline: auto; }
.tld-section { padding-block: var(--tld-section-y); background: var(--tld-paper); position: relative; }
.tld-section--sand { background: var(--tld-sand); }
.tld-section--white { background: var(--tld-white); }
.tld-section--sage { background: var(--tld-sage); }
.tld-section--eucalypt { background: var(--tld-eucalypt); color: var(--tld-on-dark); }
.tld-section--tight { padding-block: calc(var(--tld-section-y) * .5); }
.tld-head { max-width: 760px; margin-bottom: 40px; }
.tld-head--center { margin-inline: auto; text-align: center; }
.tld-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.tld-head--row > div { max-width: 700px; }
.tld-grid { display: grid; gap: var(--tld-gap); }
.tld-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tld-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tld-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .tld-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tld-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tld-grid--2, .tld-grid--3, .tld-grid--4 { grid-template-columns: minmax(0, 1fr); } }
/* Split: text one side, media the other (composition new-era-wave / vesper-financial) */
.tld-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.tld-split--flip > :first-child { order: 2; }
@media (max-width: 1024px) { .tld-split { grid-template-columns: minmax(0, 1fr); gap: 36px; } .tld-split--flip > :first-child { order: 0; } }
/* Bento: one wide photo card + smaller tiles (composition stride-product) */
.tld-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tld-bento__wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1024px) { .tld-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .tld-bento__wide { grid-column: span 2; grid-row: auto; } }

/* ---------- 4. Type ---------- */
.tld-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 700 var(--tld-label)/1.2 var(--tld-sans);
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--tld-eucalypt); }
.tld-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tld-leaf); flex: none; }
.tld-eyebrow--clay { color: var(--tld-clay-700); }
.tld-eyebrow--clay::before { background: var(--tld-clay); }
.tld-section--eucalypt .tld-eyebrow { color: var(--tld-leaf-300); }
.tld-title-1 { font: 600 var(--tld-h1)/1.05 var(--tld-serif); letter-spacing: -.8px; color: var(--tld-eucalypt); margin: 0 0 20px; }
.tld-title-2 { font: 600 var(--tld-h2)/1.1 var(--tld-serif); letter-spacing: -.4px; color: var(--tld-eucalypt); margin: 0 0 16px; }
.tld-title-3 { font: 600 var(--tld-h3)/1.25 var(--tld-serif); color: var(--tld-eucalypt); margin: 0 0 8px; }
.tld-title-4 { font: 700 var(--tld-h4)/1.3 var(--tld-sans); color: var(--tld-ink); margin: 0 0 6px; }
.tld-em { font-style: italic; font-weight: 500; color: var(--tld-eucalypt-700); }
.tld-lead { font: 400 var(--tld-lead)/1.6 var(--tld-sans); color: var(--tld-muted); max-width: 62ch; margin: 0 0 24px; }
.tld-head--center .tld-lead { margin-inline: auto; }
.tld-section p { font-size: var(--tld-body); line-height: 1.65; }
.tld-section--eucalypt .tld-title-1, .tld-section--eucalypt .tld-title-2, .tld-section--eucalypt .tld-title-3,
.tld-section--eucalypt h2, .tld-section--eucalypt h3 { color: var(--tld-on-dark); }
.tld-section--eucalypt .tld-em { color: var(--tld-leaf-300); }
.tld-section--eucalypt .tld-lead, .tld-section--eucalypt p { color: var(--tld-on-dark-86); }
.tld-note { font: 400 var(--tld-small)/1.55 var(--tld-sans); color: var(--tld-ink); }
.tld-link { color: var(--tld-eucalypt); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tld-link:hover { color: var(--tld-clay-700); }
.tld-section--eucalypt .tld-link { color: var(--tld-on-dark); }

/* ---------- 5. Buttons ---------- */
.tld-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px;
  border-radius: var(--tld-r-btn); border: 1.5px solid transparent; font: 700 15.5px/1 var(--tld-sans); letter-spacing: .1px;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: background-color var(--tld-fast) var(--tld-ease-ui), color var(--tld-fast) var(--tld-ease-ui),
              border-color var(--tld-fast) var(--tld-ease-ui), transform var(--tld-fast) var(--tld-ease-ui), box-shadow var(--tld-fast) var(--tld-ease-ui); }
.tld-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tld-btn:hover { transform: translateY(-1px); }
.tld-btn--primary, a.tld-btn--primary { background: var(--tld-eucalypt); color: var(--tld-white); }
.tld-btn--primary:hover { background: var(--tld-eucalypt-700); color: var(--tld-white); }
.tld-btn--accent, a.tld-btn--accent { background: var(--tld-clay); color: var(--tld-white); box-shadow: 0 6px 16px rgba(181, 83, 47, .22); }
.tld-btn--accent:hover { background: var(--tld-clay-700); color: var(--tld-white); }
.tld-btn--ghost, a.tld-btn--ghost { background: transparent; color: var(--tld-eucalypt); border-color: var(--tld-eucalypt); }
.tld-btn--ghost:hover { background: var(--tld-eucalypt); color: var(--tld-white); }
.tld-btn--on-dark, a.tld-btn--on-dark { background: transparent; color: var(--tld-white); border-color: rgba(255, 255, 255, .55); }
.tld-btn--on-dark:hover { background: var(--tld-white); color: var(--tld-eucalypt); }
.tld-btn--light, a.tld-btn--light { background: var(--tld-white); color: var(--tld-eucalypt); }
.tld-btn--light:hover { background: var(--tld-sage); color: var(--tld-eucalypt); }
.tld-btn--sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.tld-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tld-actions--center { justify-content: center; }

/* ---------- 6. Cards, chips, badges, icon tiles, media ---------- */
.tld-card { background: var(--tld-white); border: 1px solid var(--tld-line); border-radius: var(--tld-r-card); box-shadow: var(--tld-shadow-card);
  padding: 26px; transition: transform var(--tld-fast) var(--tld-ease-ui), box-shadow var(--tld-fast) var(--tld-ease-ui), border-color var(--tld-fast) var(--tld-ease-ui); }
.tld-card p { margin: 0; color: var(--tld-muted); font-size: 16px; line-height: 1.6; }
.tld-card p.tld-lead { font-size: var(--tld-lead); margin-bottom: 24px; }
.tld-card .tld-title-3 { margin-top: 18px; }
.tld-card--link { display: block; text-decoration: none !important; color: inherit; }
.tld-card--link:hover { transform: translateY(-3px); box-shadow: var(--tld-shadow-lift); border-color: #D9CFBF; }
.tld-card--eucalypt { background: var(--tld-eucalypt); border-color: var(--tld-eucalypt); color: var(--tld-white); }
.tld-card--eucalypt .tld-title-3, .tld-card--eucalypt h3 { color: var(--tld-white); }
.tld-card--eucalypt p { color: var(--tld-on-dark-86); }
.tld-card--photo { padding: 0; overflow: hidden; }
.tld-card--photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform var(--tld-slow) var(--tld-ease); }
.tld-card--photo:hover img { transform: scale(1.03); }
.tld-card--photo .tld-card__body { padding: 22px 24px 26px; }
.tld-section--eucalypt .tld-card:not(.tld-card--eucalypt) { border-color: transparent; }
.tld-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font: 700 14.5px/1.2 var(--tld-sans); color: var(--tld-eucalypt); }
.tld-card-meta svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--tld-fast) var(--tld-ease-ui); }
.tld-card--link:hover .tld-card-meta svg { transform: translateX(3px); }

.tld-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: var(--tld-r-chip);
  border: 1px solid var(--tld-line); background: var(--tld-white); color: var(--tld-ink); font: 600 14.5px/1 var(--tld-sans); text-decoration: none !important;
  transition: background-color var(--tld-fast) var(--tld-ease-ui), border-color var(--tld-fast) var(--tld-ease-ui), color var(--tld-fast) var(--tld-ease-ui); }
.tld-chip:hover, .tld-chip--active { background: var(--tld-sage); border-color: #C9DCC3; color: var(--tld-eucalypt); }
.tld-chip--glass { background: var(--tld-glass); border-color: var(--tld-glass-edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tld-chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tld-chip-row__label { font: 700 var(--tld-small)/1 var(--tld-sans); color: var(--tld-ink); margin-right: 4px; }
.tld-section--eucalypt .tld-chip { background: rgba(255, 255, 255, .06); border-color: var(--tld-line-dark); color: var(--tld-white); }
.tld-section--eucalypt .tld-chip:hover { background: var(--tld-white); color: var(--tld-eucalypt); }

.tld-badge, .tld-badge--featured { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--tld-r-chip);
  background: var(--tld-clay-050); color: var(--tld-clay-700); font: 700 11.5px/1.2 var(--tld-sans); letter-spacing: .6px; text-transform: uppercase; }
.tld-badge--sage { background: var(--tld-sage); color: var(--tld-eucalypt); }

.tld-icon-tile { width: 52px; height: 52px; border-radius: var(--tld-r-tile); background: var(--tld-sage); color: var(--tld-eucalypt);
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tld-icon-tile svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tld-icon-tile--clay { background: var(--tld-clay-050); color: var(--tld-clay-700); }
.tld-icon-tile--on-dark, .tld-section--eucalypt .tld-icon-tile { background: rgba(255, 255, 255, .08); color: var(--tld-leaf-300); }
.tld-icon-tile--sm { width: 40px; height: 40px; border-radius: 12px; }
.tld-icon-tile--sm svg { width: 20px; height: 20px; }
/* Elementor icon widget inside a tile */
.tld-icon-tile .elementor-icon, .tld-icon-tile i { color: currentColor !important; font-size: 22px; }

.tld-media { border-radius: var(--tld-r-photo); overflow: hidden; background: var(--tld-sand); }
.tld-media img, .tld-media picture { display: block; width: 100%; height: auto; }
.tld-media--shadow { box-shadow: var(--tld-shadow-float); }

/* ---------- 7. Section patterns ---------- */
/* Steps (no big numerals; a small text label is allowed) */
.tld-step { display: flex; flex-direction: column; gap: 14px; }
.tld-step__label { font: 700 var(--tld-label)/1 var(--tld-sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--tld-clay-700); }
.tld-step .tld-title-3 { margin: 0; }
.tld-step p { margin: 0; color: var(--tld-muted); }
/* Feature row (icon + title + line) */
.tld-feature { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--tld-line); }
.tld-feature:first-child { border-top: 0; }
.tld-section--eucalypt .tld-feature { border-top-color: var(--tld-line-dark); }
.tld-feature .tld-title-4 { margin: 0 0 4px; }
.tld-section--eucalypt .tld-feature .tld-title-4 { color: var(--tld-white); }
.tld-feature p { margin: 0; color: var(--tld-muted); font-size: 16px; }
.tld-section--eucalypt .tld-feature p { color: var(--tld-on-dark-86); }
/* Tick list */
.tld-ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.tld-ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--tld-body); line-height: 1.5; color: var(--tld-ink); }
.tld-ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--tld-sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173A2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.tld-section--eucalypt .tld-ticks li { color: var(--tld-on-dark-86); }
/* Category tile (icon + name, no counts) */
.tld-cat { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 160px; padding: 22px; }
.tld-cat__name { font: 700 17px/1.3 var(--tld-sans); color: var(--tld-ink); }
.tld-cat__line { font: 400 14px/1.45 var(--tld-sans); color: var(--tld-muted); margin-top: 4px; }
/* Wide photo card in the bento */
.tld-bento__wide.tld-card--photo { display: flex; flex-direction: column; }
.tld-bento__wide.tld-card--photo picture { display: block; }
/* Composites are finished images: never cover-crop them (the UI cards inside would be cut) */
.tld-bento__wide.tld-card--photo img { aspect-ratio: auto 1080 / 675; height: auto; object-fit: contain; }
@media (max-width: 767px) { .tld-bento__wide.tld-card--photo img { aspect-ratio: auto 600 / 750; } }
/* State card */
.tld-state { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.tld-state__name { font: 700 17px/1.25 var(--tld-sans); color: var(--tld-ink); }
.tld-state__abbr { font: 600 13px/1 var(--tld-sans); color: var(--tld-muted); margin-top: 4px; letter-spacing: .5px; }
.tld-state svg.tld-arrow { margin-left: auto; width: 18px; height: 18px; stroke: var(--tld-eucalypt); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Quote card (owner words, only with permission) */
.tld-quote { font: 500 italic clamp(20px, .8vw + 15px, 24px)/1.45 var(--tld-serif); color: var(--tld-eucalypt); margin: 0 0 18px; }
/* Closing band */
.tld-band { border-radius: var(--tld-r-panel); background: var(--tld-eucalypt); color: var(--tld-white); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.tld-band__copy { padding: 64px; }
.tld-band .tld-title-2 { color: var(--tld-white); }
.tld-band p { color: var(--tld-on-dark-86); }
.tld-band__media { align-self: stretch; }
.tld-band__media picture { display: block; height: 100%; }
.tld-band__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }  /* composites keep 80px side margins, so a small cover crop is safe */
@media (max-width: 1024px) { .tld-band { grid-template-columns: minmax(0, 1fr); } .tld-band__copy { padding: 40px 28px; } }

/* FAQ (details/summary) */
.tld-faq__item { background: var(--tld-white); border: 1px solid var(--tld-line); border-radius: var(--tld-r-card); margin-bottom: 12px;
  transition: border-color var(--tld-fast) var(--tld-ease-ui), box-shadow var(--tld-fast) var(--tld-ease-ui); }
.tld-faq__item[open] { border-color: #D3C8B6; box-shadow: var(--tld-shadow-card); }
.tld-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none;
  font: 600 18px/1.4 var(--tld-serif); color: var(--tld-eucalypt); }
.tld-faq__item summary::-webkit-details-marker { display: none; }
.tld-faq__item summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tld-sage); color: var(--tld-eucalypt);
  font: 700 18px/30px var(--tld-sans); text-align: center; transition: transform var(--tld-fast) var(--tld-ease-ui); }
.tld-faq__item[open] summary::after { content: "\2212"; }
.tld-faq__a { padding: 0 24px 22px; font: 400 var(--tld-body)/1.65 var(--tld-sans); color: var(--tld-ink); }
.tld-faq__a a { color: var(--tld-eucalypt); font-weight: 700; text-decoration: underline; }
/* Elementor accordion carrying .tld-faq */
.tld-faq .elementor-accordion-item { background: var(--tld-white); border: 1px solid var(--tld-line) !important; border-radius: var(--tld-r-card); margin-bottom: 12px; overflow: hidden; }
.tld-faq .elementor-tab-title { padding: 20px 24px; border: 0 !important; }
.tld-faq .elementor-accordion-title, .tld-faq .elementor-tab-title a { font: 600 18px/1.4 var(--tld-serif); color: var(--tld-eucalypt); }
.tld-faq .elementor-tab-content { padding: 0 24px 22px; border: 0 !important; font: 400 var(--tld-body)/1.65 var(--tld-sans); color: var(--tld-ink); }

/* Breadcrumb */
.tld-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; font: 600 var(--tld-small)/1.4 var(--tld-sans); color: var(--tld-muted); }
.tld-breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.tld-breadcrumb a { color: var(--tld-eucalypt); text-decoration: underline; text-underline-offset: 2px; }

/* Long-form copy (policy pages, About, Help articles) */
.tld-prose { max-width: 760px; font: 400 var(--tld-body)/1.7 var(--tld-sans); color: var(--tld-ink); }
.tld-prose h2 { font: 600 var(--tld-h3)/1.25 var(--tld-serif); color: var(--tld-eucalypt); margin: 40px 0 12px; }
.tld-prose h3 { font: 700 var(--tld-h4)/1.3 var(--tld-sans); color: var(--tld-ink); margin: 28px 0 8px; }
.tld-prose p, .tld-prose li { color: var(--tld-ink); }
.tld-prose p { margin: 0 0 16px; }
.tld-prose ul, .tld-prose ol { margin: 0 0 16px; padding-left: 1.4em; }
.tld-prose li { margin: 0 0 8px; }
.tld-prose li::marker { color: var(--tld-clay); }
.tld-prose a { color: var(--tld-eucalypt); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Tables (plans, cookie list) */
.tld-table-wrap { overflow-x: auto; }
.tld-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--tld-white); border: 1px solid var(--tld-line); border-radius: var(--tld-r-card);
  overflow: hidden; font: 400 var(--tld-small)/1.5 var(--tld-sans); color: var(--tld-ink); }
.tld-table th, .tld-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--tld-line); }
.tld-table thead th { border-top: 0; background: var(--tld-eucalypt); color: var(--tld-white); font: 700 15px/1.3 var(--tld-sans); }
.tld-table .tld-hl { background: rgba(227, 237, 223, .55); }
@media (max-width: 767px) {
  .tld-table--stack thead { display: none; }
  .tld-table--stack, .tld-table--stack tbody, .tld-table--stack tr, .tld-table--stack td { display: block; width: 100%; }
  .tld-table--stack td::before { content: attr(data-label); display: block; font: 700 12px/1.3 var(--tld-sans); letter-spacing: .5px; text-transform: uppercase; color: var(--tld-muted); }
}
.tld-plan { display: flex; flex-direction: column; gap: 10px; }
.tld-plan--pick { border: 2px solid var(--tld-eucalypt); }
.tld-price { font: 600 34px/1 var(--tld-serif); color: var(--tld-eucalypt); }
.tld-price small { font: 600 14px/1 var(--tld-sans); color: var(--tld-muted); margin-left: 4px; }

/* ---------- 8. Hero: the opening cover (composition dringle-hero) ---------- */
.tld-hero { position: relative; overflow: hidden; isolation: isolate; background: #F5EEE4; padding: 56px 0 72px; }
/* Static wash = the poster: paints instantly, no request, same colours as the motion layer */
.tld-hero::before { content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 70% at 18% 78%, rgba(111, 154, 132, .55), transparent 70%),
    radial-gradient(50% 60% at 72% 18%, rgba(242, 223, 207, .95), transparent 70%),
    radial-gradient(45% 55% at 88% 80%, rgba(188, 213, 195, .85), transparent 70%),
    linear-gradient(135deg, #F5EEE4, #EAF0E6); }
.tld-hero__motion { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.tld-hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(251, 248, 243, .86) 0%, rgba(251, 248, 243, .62) 42%, rgba(251, 248, 243, .10) 70%, rgba(251, 248, 243, 0) 100%); }
.tld-hero__grid { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 48px; align-items: center; }
.tld-hero .tld-title-1 { font-size: clamp(40px, 3.6vw + 10px, 64px); margin-bottom: 18px; }
.tld-hero .tld-lead { color: var(--tld-ink); max-width: 46ch; }
.tld-hero__media { position: relative; }
.tld-hero__media .tld-media { border-radius: var(--tld-r-panel); box-shadow: var(--tld-shadow-float); }
.tld-hero__proof { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 14px 8px 10px; border-radius: var(--tld-r-chip);
  background: var(--tld-glass); border: 1px solid var(--tld-glass-edge); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 600 14px/1.3 var(--tld-sans); color: var(--tld-ink); }
.tld-hero__proof .tld-icon-tile { width: 30px; height: 30px; border-radius: 50%; }
.tld-hero__proof .tld-icon-tile svg { width: 16px; height: 16px; stroke-width: 2.2; }
@media (max-width: 1024px) {
  .tld-hero { padding: 32px 0 48px; }
  .tld-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tld-hero__veil { background: linear-gradient(180deg, rgba(251, 248, 243, .82) 0%, rgba(251, 248, 243, .55) 55%, rgba(251, 248, 243, .2) 100%); }
}
/* Hero search: MyListing's own search form in a white floating panel */
.tld-hero-search { background: var(--tld-white); border-radius: var(--tld-r-panel); box-shadow: var(--tld-shadow-float); padding: 10px; border: 1px solid rgba(231, 223, 210, .8); }
.tld-hero-search .featured-search { margin: 0; }
.tld-hero-search .fs-tabs .nav-tabs { display: none; }          /* one listing type: the type tab is redundant */
.tld-hero-search .tab-content { background: transparent !important; box-shadow: none !important; padding: 6px 10px; }
.tld-hero-search .buttons.button-2 { background: var(--tld-clay) !important; border-color: var(--tld-clay) !important; color: var(--tld-white) !important;
  border-radius: var(--tld-r-btn) !important; font: 700 15.5px/1 var(--tld-sans); }
.tld-hero-search .buttons.button-2:hover { background: var(--tld-clay-700) !important; border-color: var(--tld-clay-700) !important; }
.tld-hero-search .buttons.button-2 i { color: var(--tld-white) !important; }
.tld-hero-search input, .tld-hero-search .select2-selection { font-family: var(--tld-sans) !important; }
.tld-hero .tld-chip-row { margin-top: 18px; }

/* ---------- 9. MyListing: header ---------- */
.c27-main-header .header-skin { background: var(--tld-eucalypt) !important; }
.c27-main-header.header-scroll-active .header-skin { box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.c27-main-header .main-menu > li > a { font: 600 15px/1 var(--tld-sans) !important; color: var(--tld-on-dark-86) !important; }
.c27-main-header .main-menu > li > a:hover, .c27-main-header .main-menu > li.current-menu-item > a { color: var(--tld-white) !important; }
.c27-main-header .main-menu .sub-menu { border-radius: var(--tld-r-card); box-shadow: var(--tld-shadow-float); border: 1px solid var(--tld-line); overflow: hidden; }
.c27-main-header .main-menu .sub-menu a { font: 600 14.5px/1.3 var(--tld-sans) !important; color: var(--tld-ink) !important; }
.c27-main-header .main-menu .sub-menu a:hover { background: var(--tld-sage) !important; color: var(--tld-eucalypt) !important; }
/* Header CTA is paper on eucalypt, not clay: clay is kept for the one primary action in each view (hero Search, owner CTA) */
.header-button .buttons.button-1 { background: var(--tld-paper) !important; border-color: var(--tld-paper) !important; color: var(--tld-eucalypt) !important;
  border-radius: var(--tld-r-btn) !important; font: 700 15px/1 var(--tld-sans) !important; }
.header-button .buttons.button-1:hover { background: var(--tld-sage) !important; border-color: var(--tld-sage) !important; }
.header-button .buttons.button-1 i { color: var(--tld-eucalypt) !important; }
/* Header quick search on dark */
.c27-main-header .quick-search-instance input { font: 500 15px/1.2 var(--tld-sans) !important; color: var(--tld-white) !important; }
.c27-main-header .quick-search-instance input::placeholder { color: var(--tld-on-dark-70) !important; }
.c27-main-header .instant-results { border-radius: var(--tld-r-card); box-shadow: var(--tld-shadow-float); }
/* Cart icon off (no shop): theme option first; this is the fallback */
.c27-main-header .header-cart-counter, .c27-main-header .user-area .cart-icon { display: none !important; }

/* ---------- 10. MyListing: buttons, inputs ---------- */
.buttons.button-1, .buttons.button-2, .buttons.button-5 { border-radius: var(--tld-r-btn) !important; font-family: var(--tld-sans) !important; font-weight: 700 !important; }
.buttons.button-2 { background: var(--tld-eucalypt) !important; border-color: var(--tld-eucalypt) !important; color: var(--tld-white) !important; }
.buttons.button-2:hover { background: var(--tld-eucalypt-700) !important; border-color: var(--tld-eucalypt-700) !important; }

/* ---------- 11. MyListing: listing cards (list-view preview, every page) ---------- */
.lf-item-container { background: var(--tld-white); border: 1px solid var(--tld-line); border-radius: var(--tld-r-card) !important; overflow: hidden;
  box-shadow: var(--tld-shadow-card); transition: box-shadow var(--tld-fast) var(--tld-ease-ui), transform var(--tld-fast) var(--tld-ease-ui); }
.lf-item-container:hover { box-shadow: var(--tld-shadow-lift); transform: translateY(-2px); }
.lf-item-container .lf-item { border-radius: 0; background: var(--tld-white); }
.lf-item-container .lf-item-info { border-left: 0 !important; padding: 20px 20px 14px !important; }
.lf-item-container .lf-avatar { border-radius: 14px !important; border: 1px solid var(--tld-line); background-color: var(--tld-white); background-size: contain !important; background-repeat: no-repeat; }
.lf-item-container .case27-primary-text, .lf-item-container .listing-preview-title { font: 700 17px/1.3 var(--tld-sans) !important; color: var(--tld-ink) !important; }
.lf-item-container .lf-contact li { font: 500 14px/1.4 var(--tld-sans) !important; color: var(--tld-muted) !important; }
.lf-item-container .lf-contact i { color: var(--tld-eucalypt) !important; }
.lf-item-container .listing-details.c27-footer-section { border-top: 1px solid var(--tld-line); background: var(--tld-white); }
.lf-item-container .c27-listing-preview-category-list .cat-icon { border-radius: 10px !important; }
.lf-item-container .c27-listing-preview-category-list .category-name { font: 600 14px/1.3 var(--tld-sans) !important; color: var(--tld-ink) !important; }
/* Call + View listing (markup from tld-ui-tweaks.php, port of BB bb-ui-tweaks v4.1 item 4) */
.lf-item-container .listing-details.c27-footer-section.tld-has-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; height: auto; padding: 12px 16px 16px; }
.lf-item-container .listing-details.tld-has-acts .c27-listing-preview-category-list { position: static; flex: 0 0 100%; max-width: 100%; margin: 0; }
.lf-item-container .listing-details.tld-has-acts .ld-info { display: none; }   /* Quick view + Bookmark */
.lf-item-container .tld-card-acts { display: flex; flex: 0 0 100%; gap: 8px; }
.lf-item-container .tld-card-acts a.tld-card-act, .tld-card-acts a.tld-card-act { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 12px; border: 1.5px solid var(--tld-eucalypt); border-radius: var(--tld-r-btn); background: var(--tld-white); color: var(--tld-eucalypt);
  font: 700 14.5px/1 var(--tld-sans); text-decoration: none; white-space: nowrap;
  transition: background-color var(--tld-fast) var(--tld-ease-ui), color var(--tld-fast) var(--tld-ease-ui); }
.lf-item-container .tld-card-acts a.tld-card-act--call, .tld-card-acts a.tld-card-act--call { background: var(--tld-eucalypt); border-color: var(--tld-eucalypt); color: var(--tld-white); }
.lf-item-container .tld-card-acts a.tld-card-act:hover, .tld-card-acts a.tld-card-act:hover { background: var(--tld-eucalypt-700); border-color: var(--tld-eucalypt-700); color: var(--tld-white); }
.tld-card-acts a.tld-card-act svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Featured label from the theme's own level class (CSS text, BB method) */
.lf-item-container.level-featured, .lf-item-container.level-promoted { position: relative; }
.lf-item-container.level-featured::before, .lf-item-container.level-promoted::before { content: "Featured"; position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 5px 10px; border-radius: var(--tld-r-chip); background: var(--tld-clay-050); color: var(--tld-clay-700);
  font: 700 11px/1.2 var(--tld-sans); letter-spacing: .6px; text-transform: uppercase; pointer-events: none; }
.lf-item-container.level-featured .lf-item-info, .lf-item-container.level-promoted .lf-item-info { padding-right: 100px !important; }

/* Listing feeds and term widgets: swipe carousel under 1025px, grid above (BB pattern, renamed) */
.tld-feed .i-section, .tld-terms .i-section { padding: 0; background: none; }
.tld-feed .container-fluid, .tld-terms .container-fluid { padding: 0; }
.tld-feed .results-wrapper, .tld-feed .row.section-body { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 300px); gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; margin: 0; padding-bottom: 8px; scrollbar-width: none; }
.tld-feed .results-wrapper::-webkit-scrollbar, .tld-feed .row.section-body::-webkit-scrollbar { display: none; }
.tld-feed .results-wrapper::before, .tld-feed .results-wrapper::after, .tld-feed .row.section-body::before, .tld-feed .row.section-body::after { display: none; }
.tld-feed .grid-item { width: auto; float: none; padding: 0; margin: 0; scroll-snap-align: start; position: static; }
.tld-feed .grid-item > .lf-item-container { height: 100%; margin-bottom: 0; display: flex; flex-direction: column; }
.tld-feed .grid-item > .lf-item-container > .listing-details { margin-top: auto; }
.tld-feed .no-results-wrapper { display: none; }
@media (max-width: 767px) { .tld-feed .results-wrapper, .tld-feed .row.section-body { grid-auto-columns: 84%; } }
@media (min-width: 1025px) { .tld-feed .results-wrapper, .tld-feed .row.section-body { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }

/* ---------- 12. MyListing: explore, category and region archives (cts-explore) ---------- */
.cts-explore { background: var(--tld-paper); }
.cts-explore .finder-search { background: var(--tld-white); border-right: 1px solid var(--tld-line); }
.cts-explore .finder-tabs .nav-tabs > li > a, .cts-explore .finder-tabs-wrapper a { font: 700 15px/1.2 var(--tld-sans) !important; color: var(--tld-muted) !important; }
.cts-explore .finder-tabs .nav-tabs > li.active > a { color: var(--tld-eucalypt) !important; box-shadow: inset 0 -2px 0 var(--tld-clay); }
.cts-explore .finder-listings { background: var(--tld-paper); }
.active-taxonomy-container .category-name { font: 600 22px/1.25 var(--tld-serif) !important; color: var(--tld-eucalypt) !important; }
.active-taxonomy-container .cat-icon, .active-taxonomy-container .taxonomy-icon { border-radius: 14px !important; }
.active-taxonomy-container p, .active-taxonomy-container .category-description { font: 400 15.5px/1.65 var(--tld-sans) !important; color: var(--tld-ink) !important; }
.taxonomy-back-btn { border-radius: var(--tld-r-btn) !important; background: var(--tld-sand) !important; font: 700 14px/1 var(--tld-sans) !important; color: var(--tld-eucalypt) !important; }
.cts-explore .md-checkbox label, .form-group-tags .tags-nav .md-checkbox label { font: 600 14px/1.2 var(--tld-sans); }
.form-group-tags .tags-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.form-group-tags .tags-nav .md-checkbox label { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--tld-r-chip);
  border: 1px solid var(--tld-line); background: var(--tld-white); }
.form-group-tags .tags-nav .md-checkbox input:checked + label { background: var(--tld-sage); border-color: #C9DCC3; color: var(--tld-eucalypt); }
.job-manager-pagination a, .job-manager-pagination span { border-radius: 10px !important; font: 700 14px/1 var(--tld-sans) !important; }
.job-manager-pagination .current, .job-manager-pagination li.active a { background: var(--tld-eucalypt) !important; color: var(--tld-white) !important; }
.gm-style .clusterDiv, .cts-map .marker-cluster { background-color: var(--tld-eucalypt) !important; color: var(--tld-white) !important; border: 2px solid var(--tld-white); }

/* ---------- 13. MyListing: single listing ---------- */
.single-job-listing .profile-header { background-color: var(--tld-eucalypt); }
.single-job-listing .profile-header .profile-name h1, .single-job-listing .profile-name h1 { font: 600 clamp(30px, 2vw + 16px, 44px)/1.1 var(--tld-serif) !important; color: var(--tld-white) !important; }
.single-job-listing .profile-avatar { border-radius: 22px !important; border: 3px solid var(--tld-white); box-shadow: var(--tld-shadow-float); }
.single-job-listing .profile-menu { background: var(--tld-white); border-bottom: 1px solid var(--tld-line); }
.single-job-listing .profile-menu a { font: 700 15px/1 var(--tld-sans) !important; color: var(--tld-muted) !important; }
.single-job-listing .profile-menu li.active a { color: var(--tld-eucalypt) !important; }
.single-job-listing .profile-menu li.active { border-bottom-color: var(--tld-clay) !important; }
.single-job-listing .listing-main-buttons a, .single-job-listing .listing-main-buttons .buttons { border-radius: var(--tld-r-btn) !important; font: 700 14.5px/1 var(--tld-sans) !important;
  border: 1.5px solid var(--tld-eucalypt) !important; color: var(--tld-eucalypt) !important; background: var(--tld-white) !important; }
.single-job-listing .listing-main-buttons li:first-child a { background: var(--tld-eucalypt) !important; color: var(--tld-white) !important; }   /* Call now */
.single-job-listing .profile-body .element { background: var(--tld-white); border: 1px solid var(--tld-line); border-radius: var(--tld-r-card) !important; box-shadow: var(--tld-shadow-card); }
.single-job-listing .profile-body .element .title-style-1 h5, .single-job-listing .profile-body .element h5 { font: 600 19px/1.3 var(--tld-serif) !important; color: var(--tld-eucalypt) !important; }
.single-job-listing .profile-body .element p, .single-job-listing .profile-body .element li { font-family: var(--tld-sans); color: var(--tld-ink); }
.single-job-listing { background: var(--tld-paper); }

/* ---------- 14. Elementor widgets onto the tokens ---------- */
.elementor-widget.tld-title-1 .elementor-heading-title, .elementor-widget.tld-title-2 .elementor-heading-title,
.elementor-widget.tld-title-3 .elementor-heading-title, .elementor-widget.tld-eyebrow .elementor-heading-title { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; margin: 0; }
.elementor-widget-text-editor.tld-lead { font: 400 var(--tld-lead)/1.6 var(--tld-sans); color: var(--tld-muted); }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-section.tld-section > .elementor-container, .elementor-section.tld-hero > .elementor-container { padding-inline: calc(var(--tld-gutter) - 10px); }
.tld-posts .elementor-post { background: var(--tld-white); border: 1px solid var(--tld-line); border-radius: var(--tld-r-card); box-shadow: var(--tld-shadow-card); overflow: hidden; }
.tld-posts .elementor-post__thumbnail__link { margin-bottom: 0 !important; }
.tld-posts .elementor-post__text { padding: 20px 24px 24px; }
.tld-posts .elementor-post__title, .tld-posts .elementor-post__title a { font: 600 20px/1.3 var(--tld-serif); color: var(--tld-eucalypt); }
.tld-posts .elementor-post__meta-data { font: 600 var(--tld-small)/1.4 var(--tld-sans); color: var(--tld-muted); margin-top: 6px; }
.tld-posts .elementor-post__read-more { font: 700 15px/1 var(--tld-sans); color: var(--tld-eucalypt); }

/* ---------- 15. Footer (Elementor footer template; classes added at launch) ---------- */
.tld-footer { background: var(--tld-eucalypt) !important; color: var(--tld-on-dark-86); }
.tld-footer--bar { background: #102B22 !important; }
.tld-footer .tld-footer__title .elementor-heading-title, .tld-footer__title { color: var(--tld-white) !important; font: 700 var(--tld-label)/1.3 var(--tld-sans) !important; letter-spacing: 1.2px; text-transform: uppercase; }
.tld-footer .elementor-icon-list-text, .tld-footer .elementor-widget-text-editor, .tld-footer .elementor-widget-text-editor p { color: var(--tld-on-dark-86) !important; }
.tld-footer a:hover .elementor-icon-list-text, .tld-footer .elementor-widget-text-editor a:hover { color: var(--tld-white) !important; text-decoration: underline; }
.tld-footer .elementor-widget-text-editor a { color: var(--tld-white); text-decoration: underline; text-underline-offset: 2px; }
.tld-footer .elementor-widget, .tld-footer .elementor-widget > .elementor-widget-container { background-color: transparent !important; }
.tld-footer .elementor-button { background: var(--tld-clay) !important; color: var(--tld-white) !important; border-radius: var(--tld-r-btn) !important; font: 700 15px/1 var(--tld-sans) !important; }
/* Static preview footer markup (same look) */
.tld-foot { background: var(--tld-eucalypt); color: var(--tld-on-dark-86); padding: 72px 0 0; }
.tld-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.tld-foot__brand p { color: var(--tld-on-dark-86); font-size: 15.5px; line-height: 1.6; max-width: 34ch; }
.tld-foot ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.tld-foot a:not(.tld-btn) { color: var(--tld-on-dark-86); text-decoration: none; font-size: 15px; }
.tld-foot a:not(.tld-btn):hover { color: var(--tld-white); text-decoration: underline; }
.tld-foot__bar { background: #102B22; padding: 18px 0; font-size: 14px; color: var(--tld-on-dark-70); }
.tld-foot__bar .tld-container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 1024px) { .tld-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tld-foot__grid { grid-template-columns: 1fr; } }

/* ---------- 16. Motion: scroll reveal, word rise (tld-motion.js adds .is-in) ---------- */
.tld-js .tld-reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--tld-slow) var(--tld-ease), transform var(--tld-slow) var(--tld-ease); transition-delay: var(--tld-d, 0ms); }
.tld-js .tld-reveal.is-in { opacity: 1; transform: none; }
.tld-rise-words .w { display: inline-block; }
.tld-js .tld-rise-words .w { opacity: 0; transform: translateY(.45em); filter: blur(4px);
  transition: opacity 700ms var(--tld-ease), transform 700ms var(--tld-ease), filter 700ms var(--tld-ease); transition-delay: calc(var(--i, 0) * 55ms); }
.tld-js .tld-rise-words.is-in .w { opacity: 1; transform: none; filter: none; }
.tld-rule { height: 1px; background: var(--tld-line); transform-origin: left; }
.tld-js .tld-rule { transform: scaleX(0); transition: transform 900ms var(--tld-ease); }
.tld-js .tld-rule.is-in { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .tld-js .tld-reveal, .tld-js .tld-rise-words .w, .tld-js .tld-rule { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .tld-card--link:hover, .lf-item-container:hover, .tld-btn:hover { transform: none; }
  .tld-hero__motion { display: none; }
}

/* ---------- 17. Inner pages (v1 pages pass, 2026-12-03) ---------- */
/* Inner cover: the hero's static wash only (no Loupe canvas on inner pages) */
.tld-hero--inner { padding: 32px 0 64px; }
.tld-hero--inner .tld-breadcrumb ol { margin-bottom: 28px; }
.tld-hero--inner .tld-title-1 { font-size: clamp(36px, 2.6vw + 14px, 54px); }
.tld-hero__grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.tld-hero--inner .tld-hero__veil { background: linear-gradient(90deg, rgba(251, 248, 243, .9) 0%, rgba(251, 248, 243, .7) 45%, rgba(251, 248, 243, .2) 75%, rgba(251, 248, 243, 0) 100%); }
.tld-hero--inner .tld-hero__media .tld-media { border-radius: var(--tld-r-panel); }
@media (max-width: 1024px) { .tld-hero--inner { padding: 20px 0 44px; } }
/* Facts strip (no numbers) */
.tld-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tld-facts .tld-feature { border: 0; padding: 0; align-items: center; }
@media (max-width: 767px) { .tld-facts { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
/* Term intro inside the explore sidebar (category and region archives) */
.active-taxonomy-container h1.category-name { font: 600 clamp(26px, 1vw + 18px, 32px)/1.15 var(--tld-serif) !important; color: var(--tld-eucalypt) !important; margin: 14px 0 10px; }
.active-taxonomy-container .tld-term-lead { font: 400 16px/1.6 var(--tld-sans); color: var(--tld-ink); margin: 0 0 12px; }
.tld-results-line { font: 600 var(--tld-small)/1.3 var(--tld-sans); color: var(--tld-muted); }
/* Link card with arrow (help topics, related pages) */
.tld-linkcard { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.tld-linkcard__name { font: 700 16.5px/1.3 var(--tld-sans); color: var(--tld-ink); }
.tld-linkcard svg.tld-arrow { margin-left: auto; width: 18px; height: 18px; stroke: var(--tld-eucalypt); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Callout (sage) */
.tld-callout { background: var(--tld-sage); border-radius: var(--tld-r-card); padding: 22px 24px; color: var(--tld-ink); }
.tld-callout p { margin: 0; color: var(--tld-ink); }
.tld-callout strong { color: var(--tld-eucalypt); }
/* Two-column document (policy pages): sticky contents + prose */
.tld-doc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.tld-toc { position: sticky; top: 100px; background: var(--tld-sand); border-radius: var(--tld-r-card); padding: 22px; }
.tld-toc__title { font: 700 var(--tld-label)/1.2 var(--tld-sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--tld-eucalypt); margin: 0 0 12px; }
.tld-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tld-toc a { display: block; padding: 7px 10px; border-radius: 10px; font: 600 14.5px/1.35 var(--tld-sans); color: var(--tld-ink); text-decoration: none; }
.tld-toc a:hover { background: var(--tld-white); color: var(--tld-eucalypt); }
.tld-toc details summary { display: none; }
.tld-doc .tld-prose { max-width: 760px; }
.tld-doc .tld-prose > section + section { margin-top: 56px; padding-top: 8px; }
.tld-prose .tld-table-wrap { margin: 8px 0 18px; }
.tld-prose .tld-grid { margin: 8px 0 18px; }
@media (max-width: 1024px) {
  .tld-doc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tld-toc { position: static; padding: 0; background: none; }
  .tld-toc details { background: var(--tld-sand); border-radius: var(--tld-r-card); padding: 16px 18px; }
  .tld-toc details summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; font: 700 15px/1.3 var(--tld-sans); color: var(--tld-eucalypt); }
  .tld-toc details summary::-webkit-details-marker { display: none; }
  .tld-toc details[open] summary { margin-bottom: 10px; }
  .tld-toc .tld-toc__title { display: none; }
}
/* Plans */
.tld-plan { padding: 28px; }
.tld-plan .tld-title-3 { margin: 14px 0 0; }
.tld-plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0 2px; }
.tld-plan__was { font: 600 16px/1 var(--tld-sans); color: var(--tld-muted); text-decoration: line-through; }
.tld-plan__term { font: 600 14px/1.3 var(--tld-sans); color: var(--tld-muted); }
.tld-plan .tld-ticks { margin: 12px 0 22px; gap: 10px; }
.tld-plan .tld-ticks li { font-size: 15.5px; }
.tld-plan .tld-btn { margin-top: auto; width: 100%; }
.tld-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Single listing: body grid and sidebar cards */
.tld-listing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.tld-listing-side { display: grid; gap: 20px; position: sticky; top: 100px; }
.tld-info-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--tld-line); font: 500 15.5px/1.45 var(--tld-sans); color: var(--tld-ink); }
.tld-info-row:first-of-type { border-top: 0; }
.tld-info-row svg { flex: none; width: 20px; height: 20px; margin-top: 1px; stroke: var(--tld-eucalypt); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tld-info-row .tld-info-row__r { margin-left: auto; color: var(--tld-muted); white-space: nowrap; }
.tld-hours { width: 100%; border-collapse: collapse; font: 500 15px/1.4 var(--tld-sans); color: var(--tld-ink); }
.tld-hours td { padding: 7px 0; border-top: 1px solid var(--tld-line); }
.tld-hours tr:first-child td { border-top: 0; }
.tld-hours td + td { text-align: right; color: var(--tld-muted); }
.tld-hours .is-today td { font-weight: 700; color: var(--tld-eucalypt); }
.tld-mini { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--tld-line); }
.tld-mini:first-of-type { border-top: 0; }
.tld-mini__logo { width: 42px; height: 42px; border-radius: 12px; flex: none; background: var(--tld-sage); color: var(--tld-eucalypt); display: inline-flex; align-items: center; justify-content: center; font: 700 14px/1 var(--tld-serif); }
.tld-mini__name { font: 700 15px/1.3 var(--tld-sans); color: var(--tld-ink); }
.tld-mini__meta { font: 500 13.5px/1.3 var(--tld-sans); color: var(--tld-muted); }
.tld-mini .tld-card-acts { margin-left: auto; display: flex; gap: 6px; }
.tld-mini .tld-card-acts a.tld-card-act { min-height: 34px; padding: 0 10px; font-size: 13px; flex: none; }
@media (max-width: 1024px) { .tld-listing-grid { grid-template-columns: minmax(0, 1fr); } .tld-listing-side { position: static; } }
/* Blog */
.tld-post-head { max-width: 820px; margin: 0 auto; text-align: center; }
.tld-post-head .tld-title-1 { font-size: clamp(34px, 2.2vw + 16px, 52px); }
.tld-post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font: 600 14px/1.3 var(--tld-sans); color: var(--tld-muted); }
.tld-post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tld-post-meta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.tld-post-cover { max-width: 1080px; margin: 36px auto 0; }
.tld-post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.tld-post-grid .tld-prose { max-width: 720px; }
.tld-post-grid .tld-prose table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--tld-white); border: 1px solid var(--tld-line); border-radius: var(--tld-r-card); overflow: hidden; margin: 8px 0 20px; font-size: 15px; }
.tld-post-grid .tld-prose th, .tld-post-grid .tld-prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--tld-line); }
.tld-post-grid .tld-prose thead th, .tld-post-grid .tld-prose tr:first-child th { border-top: 0; background: var(--tld-eucalypt); color: var(--tld-white); }
.tld-post-grid .tld-prose img { max-width: 100%; height: auto; border-radius: var(--tld-r-photo); }
.tld-post-side { position: sticky; top: 100px; display: grid; gap: 20px; }
.tld-prose .tld-sources { font-size: 14px; color: var(--tld-muted); border-top: 1px solid var(--tld-line); padding-top: 16px; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .tld-post-grid { grid-template-columns: minmax(0, 1fr); } .tld-post-side { position: static; } }
@media (max-width: 767px) { .tld-post-grid .tld-prose table { display: block; overflow-x: auto; } }
.tld-featured-post { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; }
.tld-featured-post img { height: 100%; aspect-ratio: auto; }
.tld-featured-post .tld-card__body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 900px) { .tld-featured-post { grid-template-columns: minmax(0, 1fr); } .tld-featured-post img { aspect-ratio: 16 / 10; } .tld-featured-post .tld-card__body { padding: 24px; } }
.tld-card__date { font: 600 13.5px/1.3 var(--tld-sans); color: var(--tld-muted); margin-top: 14px; }
/* Pagination (static pages and blog) */
.tld-pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.tld-pager a, .tld-pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  border: 1px solid var(--tld-line); background: var(--tld-white); font: 700 14.5px/1 var(--tld-sans); color: var(--tld-eucalypt); text-decoration: none; }
.tld-pager .is-current { background: var(--tld-eucalypt); border-color: var(--tld-eucalypt); color: var(--tld-white); }
/* Empty state */
.tld-empty { text-align: center; padding: 40px 24px; }
/* Icons inside chips and tld-link arrows */
.tld-chip svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tld-chip { white-space: nowrap; }
/* Single listing: chips on the eucalypt name band; contact first on phones */
.single-job-listing .profile-header .tld-chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); color: var(--tld-white); backdrop-filter: none; }
.single-job-listing .profile-header .tld-chip:hover { background: var(--tld-white); color: var(--tld-eucalypt); }
.single-job-listing .profile-menu a { white-space: nowrap; }
.tld-listing-grid > .tld-listing-main { grid-column: 1; grid-row: 1 / span 2; }
.tld-listing-grid > .tld-listing-side { grid-column: 2; position: static; }
.tld-listing-grid > .tld-listing-side--more { align-self: start; }
.tld-card .tld-btn, .tld-plan .tld-btn { box-sizing: border-box; max-width: 100%; }
@media (max-width: 1024px) {
  .tld-listing-grid > .tld-listing-main, .tld-listing-grid > .tld-listing-side { grid-column: 1; grid-row: auto; }
  .tld-listing-grid > .tld-listing-side--top { order: -1; }
}
.tld-card--photo > img { height: auto; }
/* Cross list (what we do not do) */
.tld-ticks--x li::before { background: var(--tld-clay-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A4426' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M17 7 7 17M7 7l10 10'/%3E%3C/svg%3E") center / 12px no-repeat; }
/* FAQ question as an H3 inside summary (policy pages) */
.tld-faq__item summary h3.tld-faq__q { font: inherit; color: inherit; margin: 0; }
/* Policy cover is compact */
.tld-hero--doc { padding-bottom: 36px; }
.tld-hero--doc .tld-hero__grid--solo { max-width: 820px; }
.tld-prose h2 { scroll-margin-top: 100px; }
.tld-prose .tld-step p { font-size: 16px; }
.tld-badge { white-space: nowrap; }
.tld-plan__top { flex-wrap: wrap; row-gap: 8px; }
.tld-stuck { padding: 32px 34px; display: flex; gap: 22px; align-items: flex-start; }
.tld-stuck > div { min-width: 0; }
@media (max-width: 767px) { .tld-stuck { flex-direction: column; gap: 14px; padding: 24px 22px; } }
.tld-featured-post .tld-badge, .tld-card--photo .tld-badge { align-self: flex-start; }
.tld-prose .grid-item a, .tld-prose .tld-card-acts a { text-decoration: none; }
.tld-prose .grid-item ul, .tld-prose .grid-item li { margin: 0; padding: 0; }
.tld-prose .grid-item li::marker { content: none; }
/* Explore: the search button is the page's one clay. Live /explore/ is page 2808 (Rex, batch 2). */
.page-id-2808 .finder-search .buttons.button-2 { background: var(--tld-clay) !important; border-color: var(--tld-clay) !important; }
.page-id-2808 .finder-search .buttons.button-2:hover { background: var(--tld-clay-700) !important; border-color: var(--tld-clay-700) !important; }
.tld-toc summary svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; transform: rotate(90deg); transition: transform var(--tld-fast) var(--tld-ease); }
.tld-toc details[open] summary svg { transform: rotate(-90deg); }

/* ---------- 18. Live build extras (Rex, batch 2, 2026-12-04) ---------- */
/* Header CTA: plus icon + "Add your business", "Add" on phones */
.header-button .buttons.button-1 { display: inline-flex !important; align-items: center; gap: 6px; }
.header-button .buttons.button-1 svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; flex: none; }
@media (max-width: 560px) { .header-button .buttons .t-long { display: none; } }
/* Categories dropdown in three columns (desktop menu) */
@media (min-width: 1201px) {
  .c27-main-header .main-menu > li.tld-mega-3 > .sub-menu { width: min(720px, 92vw) !important; columns: 3; column-gap: 0; padding: 8px 0; }
  .c27-main-header .main-menu > li.tld-mega-3 > .sub-menu > li { break-inside: avoid; width: auto !important; }
  .c27-main-header .main-menu > li.tld-mega-3 > .sub-menu > li.tld-menu-all { column-span: all; border-top: 1px solid var(--tld-line); }
}
/* Site pages wrapper */
.tld-sp main.tld-sp-main, main.tld-sp-main { display: block; }
.tld-sp .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Plans comparison: the Featured column */
.tld-table--plans .is-pick { background: var(--tld-sage); }
/* Trust pages: panels, two columns, cards, code */
.tld-doc-panel { padding: 24px 26px; margin-top: 8px; }
.tld-doc-panel > :last-child { margin-bottom: 0; }
.tld-doc-cols h3.tld-title-4 { margin: 8px 0 10px; }
.tld-doc-cards .tld-title-4 { font-size: 17px; }
.tld-prose code { font: 600 14px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--tld-sand); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.tld-prose .tld-table-wrap { margin: 8px 0 18px; }
@media (max-width: 1024px) { .tld-doc-cards { grid-template-columns: minmax(0, 1fr) !important; } }
/* Guides cards on the homepage: keep the image ratio when a post image is missing */
.tld-card--photo .tld-card__body .tld-badge + .tld-title-3 { margin-top: 12px; }
/* No listing counts (Pav rule): explore result total and category card counts */
.tld-ds .explore-desktop-head .rslt-nr, .tld-ds .listing-cat .lc-info h6 { display: none !important; }
/* Hero search on the live homepage: hidden listing-type field */
.tld-hero-search input[type="hidden"] { display: none; }
/* Search panels on site pages (hero search, help and category filters): the MyListing featured-search row */
.tld-hero-search .featured-search form { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; align-items: center; margin: 0; }
.tld-hero-search .featured-search .form-group { position: relative; margin: 0; padding: 0; }
.tld-hero-search .featured-search .form-group label { position: absolute; left: 44px; top: 9px; margin: 0; font: 700 10.5px/1 var(--tld-sans); letter-spacing: 1.1px; text-transform: uppercase; color: var(--tld-muted); z-index: 1; }
.tld-hero-search .featured-search .form-group input { width: 100%; box-sizing: border-box; height: 58px; border: 0 !important; border-radius: 12px; background: var(--tld-sand); padding: 18px 14px 0 44px; font: 600 16px/1 var(--tld-sans); color: var(--tld-ink); outline: 0; box-shadow: none; }
.tld-hero-search .featured-search .form-group input::placeholder { color: var(--tld-muted); font-weight: 500; }
.tld-hero-search .featured-search .form-group svg { position: absolute; left: 14px; top: 19px; width: 20px; height: 20px; stroke: var(--tld-eucalypt); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tld-hero-search .featured-search .buttons.button-2 { height: 58px; padding: 0 26px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid; cursor: pointer; }
.tld-hero-search .featured-search .buttons.button-2 svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 767px) { .tld-hero-search .featured-search form { grid-template-columns: 1fr; } .tld-hero-search .featured-search .buttons.button-2 { width: 100%; justify-content: center; } }
/* List-view card head: logo left, name and place right (the theme's absolute avatar assumes its own padding) */
.tld-ds .lf-item-container .lf-item-info { display: grid !important; grid-template-columns: 54px minmax(0, 1fr); column-gap: 14px; align-items: center; min-height: 0 !important; }
.tld-ds .lf-item-container .lf-item-info > * { grid-column: 2; }
.tld-ds .lf-item-container .lf-item-info .lf-avatar { grid-column: 1; grid-row: 1 / span 2; position: static !important; width: 54px !important; height: 54px !important; margin: 0 !important; transform: none !important; left: auto !important; top: auto !important; }
.tld-ds .lf-item-container .lf-item-info .listing-preview-title { margin: 0 !important; padding: 0 !important; }
.tld-ds .lf-item-container .lf-item-info .lf-contact { margin: 4px 0 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tld-ds .lf-item-container .lf-item-info .lf-contact li { padding: 0 !important; margin: 0 !important; display: inline-flex; align-items: center; gap: 6px; }
.tld-table--plans thead th.is-pick { background: var(--tld-eucalypt-700); color: var(--tld-white); }

/* ---------- 19. Batch 5 (Rex, 2026-12-04) ---------- */
/* Term name in the explore sidebar is a div, not a second H1 (Rex, batch 5, 2026-12-04): same look as the theme h1.category-name */
.active-taxonomy-container div.category-name { font-size: 18px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; margin: 0; line-height: 30px; }
.active-taxonomy-container.no-bg div.category-name { text-align: center; }
.active-taxonomy-container div.category-name { font: 600 clamp(26px, 1vw + 18px, 32px)/1.15 var(--tld-serif) !important; color: var(--tld-eucalypt) !important; }
/* Item 15, Sam ruling d (Rex, 2026-12-04): the sidebar card heading is the one H1 and carries the Top N text, so it wraps at a smaller size; the mobile primary-category name is a div with the theme h1 look */
.active-taxonomy-container h1.category-name.tld-term-h1side { font: 600 clamp(22px, 0.5vw + 17px, 24px)/1.2 var(--tld-serif) !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word; }
.primary-category div.category-name { font-family: var(--tld-serif); font-weight: 600; line-height: 1.25; color: var(--tld-eucalypt); padding-left: 5px; }
/* Header "Add your business" button on phones and tablets (Rex, batch 5, 2026-12-04): the theme hides it under 1200px */
@media (max-width: 1200px) {
  .c27-main-header .header-right .header-button { display: flex !important; align-items: center; }
}
@media (max-width: 560px) {
  .c27-main-header .header-right .header-button .buttons.button-1 { padding: 0 12px !important; height: 38px; }
}
