/* ==========================================================================
   The Local Directory: design v2.1 template layer  (tld-ds-21-v21.css, 2026-12-04, design lead)
   Pav approved v2 ("keep this type setup site wide"). v2.1 carries it onto the MyListing templates that v2 left on v1:
   single listing, /explore/ (list + map), /blog/, a post, post category archives, /add-listing/, /my-account/ (signed out),
   search results and the 404.
   Loads AFTER tld-ds.css and tld-ds-20-v2.css only while tld_ds_v21_active() (tld-design-system.php v1.3,
   option tld_ds_v21_mode = off | preview | on; needs v2 active). Every rule is scoped body.tld-v21 + one template class:
   .tld-t-listing .tld-t-explore .tld-t-blog .tld-t-post .tld-t-archive .tld-t-addlisting .tld-t-account .tld-t-search .tld-t-404
   Rules kept: no copy, no new heading, one H1 untouched in the DOM, no composites, TLD tokens, Lora + Mulish,
   motion = transform + opacity only, no-JS and reduced motion show everything, every MyListing function left alone
   (tabs, map, gallery, Call + View, Claim, review form, filters, add-listing steps, Woo checkout: not styled here).
   Photos: uploads/tld-ds/v2/ (relative to this file), clean photos only.
   ========================================================================== */

/* ---------- 21.1 Light cover band (blog, post archives, search, 404, add-listing, account): the v2 inner-cover wash ---------- */
body.tld-v21.tld-t-blog .archive-heading, body.tld-v21.tld-t-archive .archive-heading, body.tld-v21.tld-t-search .archive-heading,
body.tld-v21.tld-t-404 #c27-site-wrapper > section.i-section:first-of-type {
  position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 56px !important; margin: 0;
  background:
    radial-gradient(48% 90% at 12% 100%, rgba(111, 154, 132, .30), transparent 70%),
    radial-gradient(40% 80% at 86% 0%, rgba(242, 223, 207, .95), transparent 70%),
    linear-gradient(135deg, #F5EEE4, #EAF0E6); }
body.tld-v21 .archive-heading::after, body.tld-v21.tld-t-404 #c27-site-wrapper > section.i-section:first-of-type::after,
body.tld-v21.tld-t-post .blogpost-section::before, body.tld-v21.tld-t-addlisting .c27-packages::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; top: -12%; right: 4%; width: min(46vw, 460px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(188, 213, 195, .75), rgba(188, 213, 195, 0)); opacity: .7;
  animation: tld-drift 18s var(--tld-ease) infinite alternate; }
body.tld-v21 .archive-heading .section-title { margin: 0 !important; padding: 0 !important; }
body.tld-v21 .archive-heading h1.case27-primary-text { margin: 0 auto !important; max-width: 820px; padding: 0 16px;
  font: 600 clamp(36px, 2.6vw + 14px, 54px)/1.12 var(--tld-serif) !important; letter-spacing: -.5px; color: var(--tld-eucalypt) !important; text-wrap: balance;
  animation: tld21-rise .8s var(--tld-ease) both; }
body.tld-v21 .archive-heading h1.case27-primary-text em, body.tld-v21 .archive-heading h1.case27-primary-text i { font-style: italic; font-weight: 500; color: var(--tld-clay-700); }
body.tld-v21 .archive-posts { padding-top: 40px !important; background: var(--tld-paper); }
@media (max-width: 767px) {
  body.tld-v21.tld-t-blog .archive-heading, body.tld-v21.tld-t-archive .archive-heading, body.tld-v21.tld-t-search .archive-heading,
  body.tld-v21.tld-t-404 #c27-site-wrapper > section.i-section:first-of-type { padding: 40px 0 34px !important; }
  body.tld-v21 .archive-heading h1.case27-primary-text { font-size: clamp(30px, 8vw, 36px) !important; }
  body.tld-v21 .archive-posts { padding-top: 24px !important; }
}
@keyframes tld21-rise { from { transform: translate3d(0, 18px, 0); } to { transform: none; } }
@keyframes tld21-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes tld21-settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- 21.2 Blog index, post archives, search results: cards ---------- */
body.tld-v21 .archive-posts .sbf-container { border-radius: var(--tld-r-card) !important; overflow: hidden; border: 1px solid var(--tld-line);
  box-shadow: var(--tld-shadow-card); background: var(--tld-white); transition: transform var(--tld-fast) var(--tld-ease), box-shadow var(--tld-fast) var(--tld-ease); }
body.tld-v21 .archive-posts .sbf-container:hover { transform: translateY(-3px); box-shadow: var(--tld-shadow-lift); }
body.tld-v21 .archive-posts .sbf-title { text-align: left !important; padding: 18px 20px 6px !important; background: transparent !important; }
body.tld-v21 .archive-posts .sbf-title a.case27-primary-text { font: 600 19px/1.3 var(--tld-serif) !important; color: var(--tld-eucalypt) !important; text-align: left; letter-spacing: -.1px; }
/* the theme excerpt stays in the DOM; only its visible length is trimmed (3 lines on phones, 4 above) */
body.tld-v21 .archive-posts .sbf-title p { text-align: left !important; font: 400 15px/1.6 var(--tld-sans) !important; color: var(--tld-muted) !important; margin: 8px 0 0 !important; padding: 0 !important;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
body.tld-v21 .archive-posts .sbf-container .lf-head-btn.event-date { border-radius: 10px; background: rgba(23, 58, 46, .72) !important; color: var(--tld-white) !important; }
body.tld-v21 .archive-posts .sbf-container .listing-details, body.tld-v21 .archive-posts .sbf-container .c27-footer-section { padding-left: 20px; padding-right: 20px; }
@media (max-width: 767px) { body.tld-v21 .archive-posts .sbf-title p { -webkit-line-clamp: 3; line-clamp: 3; } }

/* ---------- 21.3 Single post: cover band, framed cover photo (fixed box = no shift), readable body, tables that scroll ---------- */
body.tld-v21.tld-t-post .blogpost-section { position: relative; isolation: isolate; overflow-x: clip; padding-top: 56px !important;
  background:
    radial-gradient(42% 340px at 10% 0, rgba(111, 154, 132, .22), transparent 70%),
    linear-gradient(180deg, #F2ECE2 0, #F4F1EA 300px, var(--tld-paper) 520px); }
body.tld-v21.tld-t-post .blog-title h1.case27-primary-text { font: 600 clamp(34px, 2.2vw + 16px, 52px)/1.12 var(--tld-serif) !important; letter-spacing: -.5px;
  color: var(--tld-eucalypt) !important; text-wrap: balance; animation: tld21-rise .8s var(--tld-ease) both; }
body.tld-v21.tld-t-post .post-cover-buttons a, body.tld-v21.tld-t-post .post-cover-buttons li > div { font: 600 14px/1.3 var(--tld-sans) !important; color: var(--tld-muted) !important; }
body.tld-v21.tld-t-post .blog-featured-image > .col-md-12 { float: none; width: auto; max-width: 1080px; margin: 0 auto; padding: 0; overflow: hidden;
  border-radius: var(--tld-r-photo); box-shadow: var(--tld-shadow-float); background: var(--tld-sand); }
body.tld-v21.tld-t-post .blog-featured-image > .col-md-12 > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  animation: tld21-settle 1.6s var(--tld-ease) both; }
body.tld-v21.tld-t-post .c27-content-wrapper { font: 400 17px/1.75 var(--tld-sans); color: var(--tld-ink); }
body.tld-v21.tld-t-post .c27-content-wrapper > h2 { font: 600 clamp(26px, 1.2vw + 18px, 34px)/1.2 var(--tld-serif) !important; color: var(--tld-eucalypt) !important;
  margin: 44px 0 14px !important; letter-spacing: -.3px; }
body.tld-v21.tld-t-post .c27-content-wrapper > h3 { font: 600 21px/1.3 var(--tld-serif) !important; color: var(--tld-eucalypt) !important; margin: 28px 0 10px !important; }
body.tld-v21.tld-t-post .c27-content-wrapper 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: 10px 0 24px; font-size: 15px; line-height: 1.5; }
body.tld-v21.tld-t-post .c27-content-wrapper th, body.tld-v21.tld-t-post .c27-content-wrapper td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--tld-line); }
body.tld-v21.tld-t-post .c27-content-wrapper thead th { border-top: 0; background: var(--tld-eucalypt); color: var(--tld-white); font-weight: 700; }
body.tld-v21.tld-t-post .c27-content-wrapper img { max-width: 100%; height: auto; border-radius: var(--tld-r-photo); }
@media (max-width: 767px) {
  body.tld-v21.tld-t-post .blogpost-section { padding-top: 32px !important; }
  body.tld-v21.tld-t-post .blog-title h1.case27-primary-text { font-size: clamp(28px, 7.6vw, 34px) !important; }
  body.tld-v21.tld-t-post .blog-featured-image > .col-md-12 { margin: 0 12px; }
  body.tld-v21.tld-t-post .c27-content-wrapper { font-size: 16.5px; }
  body.tld-v21.tld-t-post .c27-content-wrapper > h2 { margin-top: 34px !important; }
  /* tables keep their columns and scroll sideways instead of squeezing to 3 narrow lines per word */
  body.tld-v21.tld-t-post .c27-content-wrapper table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body.tld-v21.tld-t-post .c27-content-wrapper th, body.tld-v21.tld-t-post .c27-content-wrapper td { min-width: 168px; }
}

/* ---------- 21.4 Single listing: brand cover (no photo is added: the business' own cover, when set, is kept) ---------- */
body.tld-v21.tld-t-listing .profile-cover.profile-cover-no-img, body.tld-v21.tld-t-listing .main-info-mobile {
  background-color: var(--tld-eucalypt) !important;
  background-image:
    radial-gradient(38% 120% at 88% 0%, rgba(142, 209, 122, .20), transparent 70%),
    radial-gradient(46% 140% at 6% 100%, rgba(111, 154, 132, .45), transparent 70%),
    linear-gradient(135deg, #173A2E 0%, #1E4A3B 55%, #245343 100%) !important; }
body.tld-v21.tld-t-listing .profile-name h1.case27-primary-text { animation: tld21-rise .8s var(--tld-ease) both; }
body.tld-v21.tld-t-listing .profile-tagline { color: var(--tld-on-dark-86) !important; font-family: var(--tld-sans) !important; }
/* Phones: MyListing moves the name block into .main-info-mobile on a white ground, where the white H1 (tld-ds.css 13) could
   not be seen (live probe 4 Dec, 390 px: rgb(255,255,255) on rgb(255,255,255)). That block becomes the cover. */
body.tld-v21.tld-t-listing .profile-cover.profile-cover-no-img > .overlay { display: none !important; }
/* Up to 1200 px the theme script moves .listing-main-info from the cover (fixed 60 px, under the fixed header) into
   .main-info-mobile after load, which pushed the page down by the block's height (live CLS 0.27 at 390 px). Until the move,
   the cover now holds the block in the flow with the same spacing, so the move changes nothing on screen. */
@media (max-width: 1200px) {
  body.tld-v21.tld-t-listing .profile-cover.profile-cover-no-img:has(.main-info-desktop .listing-main-info) { height: auto !important; min-height: 60px; padding-top: 60px !important; }
  body.tld-v21.tld-t-listing .profile-cover.profile-cover-no-img .main-info-desktop { position: static !important; }
  body.tld-v21.tld-t-listing .listing-main-info { padding-bottom: 22px !important; }
  body.tld-v21.tld-t-listing .main-info-mobile { padding: 0 !important; }
  /* the same type in both places (cover before the move, .main-info-mobile after), so the name wraps the same */
  body.tld-v21.tld-t-listing .listing-main-info .profile-name h1.case27-primary-text { font: 600 clamp(28px, 7.4vw, 34px)/1.15 var(--tld-serif) !important; letter-spacing: -.3px; }
  body.tld-v21.tld-t-listing .listing-main-info .profile-tagline { font-size: 15.5px !important; line-height: 1.45 !important; }
}
body.tld-v21.tld-t-listing .main-info-mobile .listing-main-info { background: transparent !important; }
body.tld-v21.tld-t-listing .listing-main-info .profile-name h1.case27-primary-text { color: var(--tld-white) !important; }
body.tld-v21.tld-t-listing .listing-main-info .lmb-label, body.tld-v21.tld-t-listing .listing-main-info .listing-main-buttons .value { color: var(--tld-on-dark-86) !important; }
body.tld-v21.tld-t-listing .listing-main-info .listing-main-buttons, body.tld-v21.tld-t-listing .listing-main-info .listing-main-buttons li { background: transparent !important; border-color: var(--tld-line-dark) !important; }
body.tld-v21.tld-t-listing .listing-main-info .profile-avatar { border-color: var(--tld-white) !important; }
/* body blocks: empty theme paragraphs take no room; the similar listings heading on the type scale */
body.tld-v21.tld-t-listing .profile-body .pf-body > p:empty { display: none; }
body.tld-v21.tld-t-listing .profile-body .pf-body p { font: 400 16px/1.7 var(--tld-sans); }
body.tld-v21.tld-t-listing .similar-listings .section-title h2, body.tld-v21.tld-t-listing .similar-listings .section-title .case27-primary-text {
  font: 600 clamp(24px, 1vw + 18px, 32px)/1.2 var(--tld-serif) !important; color: var(--tld-eucalypt) !important; }
body.tld-v21.tld-t-listing .profile-body .tld-more__btn { margin-top: 10px; }
/* one-paragraph descriptions on phones: 6 whole lines (line clamp: the cut is always on a line end), a fade over the last line,
   overflow hidden so nothing below can show through; the button reuses the v2 fold button (phones only) */
@media (max-width: 767px) {
  body.tld-v21.tld-t-listing .tld21-clamp:not(.is-open) > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 1.7em), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 1.7em), transparent); }
  body.tld-v21.tld-t-listing .tld21-clamp.is-open .tld21-clamp__btn .tld-more__o { display: none; }
  body.tld-v21.tld-t-listing .tld21-clamp.is-open .tld21-clamp__btn .tld-more__c { display: inline; }
  body.tld-v21.tld-t-listing .tld21-clamp.is-open .tld21-clamp__btn svg { transform: rotate(-90deg); }
}
@media (min-width: 768px) { body.tld-v21 .tld21-clamp__btn { display: none !important; } }
@media print { body.tld-v21 .tld21-clamp > p { display: block !important; -webkit-line-clamp: unset !important; -webkit-mask-image: none !important; mask-image: none !important; } }

/* ---------- 21.5 /explore/: a cover photo strip on top of the results (decorative; term pages keep their v2 term card) ---------- */
body.tld-v21.tld-t-explore:not(.tld-has-cover) .finder-listings::before { content: ""; display: block; height: clamp(150px, 12vw, 200px); margin: 20px 15px 6px;
  border-radius: var(--tld-r-card); box-shadow: var(--tld-shadow-card); background: var(--tld-sand) url("v2/tld-v2-find-suburb-1280.webp") center 58% / cover no-repeat;
  animation: tld21-in .9s var(--tld-ease) both; }
@media (max-width: 767px) {
  body.tld-v21.tld-t-explore:not(.tld-has-cover) .finder-listings::before { height: 132px; margin: 12px 10px 4px; background-image: url("v2/tld-v2-find-suburb-640.webp"); }
}
/* result cards rise in on every render (first load, filters, paging); CSS only, so Vue re-renders need no script */
body.tld-v21.tld-t-explore .results-view > * { animation: tld21-in .6s var(--tld-ease) both; }
body.tld-v21.tld-t-explore .results-view > :nth-child(2) { animation-delay: 70ms; }
body.tld-v21.tld-t-explore .results-view > :nth-child(3) { animation-delay: 140ms; }
body.tld-v21.tld-t-explore .results-view > :nth-child(4) { animation-delay: 210ms; }
body.tld-v21.tld-t-explore .results-view > :nth-child(5) { animation-delay: 280ms; }
body.tld-v21.tld-t-explore .results-view > :nth-child(n+6) { animation-delay: 350ms; }

/* ---------- 21.6 /add-listing/: cover band over the package step, package cards on the card style ---------- */
body.tld-v21.tld-t-addlisting .c27-packages { position: relative; isolation: isolate; overflow-x: clip; padding-top: 56px !important;
  background:
    radial-gradient(44% 300px at 8% 0, rgba(111, 154, 132, .26), transparent 70%),
    linear-gradient(180deg, #F2ECE2 0, #F4F1EA 200px, var(--tld-paper) 380px); }
body.tld-v21.tld-t-addlisting .c27-packages > .container > .section-title h2 { font: 600 clamp(30px, 1.6vw + 18px, 44px)/1.15 var(--tld-serif) !important;
  color: var(--tld-eucalypt) !important; letter-spacing: -.4px; animation: tld21-rise .8s var(--tld-ease) both; }
body.tld-v21.tld-t-addlisting .pricing-item { border-radius: var(--tld-r-card) !important; border: 1px solid var(--tld-line) !important; box-shadow: var(--tld-shadow-card) !important;
  overflow: hidden; transition: transform var(--tld-fast) var(--tld-ease), box-shadow var(--tld-fast) var(--tld-ease); }
body.tld-v21.tld-t-addlisting .pricing-item:hover { transform: translateY(-3px); box-shadow: var(--tld-shadow-lift) !important; }
body.tld-v21.tld-t-addlisting .pricing-item .plan-name { font: 700 var(--tld-label)/1.3 var(--tld-sans) !important; letter-spacing: 1.4px; }
body.tld-v21.tld-t-addlisting .pricing-item .plan-features li { font: 500 14.5px/1.45 var(--tld-sans) !important; }
@media (max-width: 767px) { body.tld-v21.tld-t-addlisting .c27-packages { padding-top: 34px !important; } }

/* ---------- 21.7 /my-account/ signed out: a cover photo beside the form (desktop), a wash band over it (phones) ---------- */
body.tld-v21.tld-t-account .sign-in-wrapper .login-container { position: relative; isolation: isolate;
  background: linear-gradient(180deg, #F2ECE2 0, #F6F2EB 160px, var(--tld-white) 320px) !important; }
body.tld-v21.tld-t-account .login-tabs h3 a { font-family: var(--tld-serif) !important; }
@media (min-width: 1025px) {
  body.tld-v21.tld-t-account .sign-in-wrapper .login-container::before { content: ""; position: absolute; z-index: -1; top: 32px; bottom: 32px; left: 32px; width: calc(50% - 252px); /* the theme centres a 360 px form: the photo stops 40 px short of it */
    border-radius: var(--tld-r-panel); box-shadow: var(--tld-shadow-float); background: var(--tld-sand) url("v2/tld-v2-owner-workshop-1280.webp") center / cover no-repeat;
    animation: tld21-in .9s var(--tld-ease) both; }
}

/* ---------- 21.8 404: the message as a card on the wash (no heading is added: copy and heading need Sam / Janice) ---------- */
body.tld-v21.tld-t-404 #c27-site-wrapper > section.i-section:first-of-type { min-height: 62vh; display: flex; align-items: center; }
body.tld-v21.tld-t-404 #c27-site-wrapper > section.i-section:first-of-type > .container { width: 100%; }
body.tld-v21.tld-t-404 .no-results-wrapper { max-width: 560px; margin: 0 auto; padding: 36px 28px 32px !important; border-radius: var(--tld-r-panel);
  background: rgba(255, 255, 255, .86); border: 1px solid var(--tld-glass-edge); box-shadow: var(--tld-shadow-float); animation: tld21-in .8s var(--tld-ease) both; }
body.tld-v21.tld-t-404 .no-results-wrapper .no_job_listings_found { list-style: none; font: 600 clamp(20px, 1vw + 14px, 24px)/1.35 var(--tld-serif) !important; color: var(--tld-eucalypt) !important; margin: 10px 0 20px; }
body.tld-v21.tld-t-404 .no-results-wrapper .no-results-icon { color: var(--tld-eucalypt-700) !important; }

/* ---------- 21.9 Reduced motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  body.tld-v21 .archive-heading h1.case27-primary-text, body.tld-v21 .blog-title h1.case27-primary-text, body.tld-v21 .blog-featured-image img,
  body.tld-v21 .profile-name h1.case27-primary-text, body.tld-v21 .finder-listings::before, body.tld-v21 .results-view > *, body.tld-v21 .c27-packages .section-title h2,
  body.tld-v21 .login-container::before, body.tld-v21 .no-results-wrapper, body.tld-v21 .archive-heading::after, body.tld-v21 .blogpost-section::before,
  body.tld-v21 .c27-packages::before, body.tld-v21.tld-t-404 #c27-site-wrapper > section.i-section:first-of-type::after { animation: none !important; }
  body.tld-v21 .sbf-container, body.tld-v21 .pricing-item { transition: none !important; }
  body.tld-v21 .sbf-container:hover, body.tld-v21 .pricing-item:hover { transform: none; }
}
@media print { body.tld-v21 .finder-listings::before, body.tld-v21 .login-container::before { display: none; }
  body.tld-v21 .archive-posts .sbf-title p { -webkit-line-clamp: unset; line-clamp: none; display: block; } }

/* 21.12 Mobile menu drawer (Pav, 4 Dec 2026: "the colour of text is merging with background").
   tld-ds.css section 9 sets the top-level menu links to white for the eucalypt desktop header.
   At 1200px and below MyListing turns .i-nav into a white drawer, so those links went white on white.
   Scope: the drawer only; the desktop header above 1200px is unchanged. */
@media (max-width: 1200px) {
  .c27-main-header .i-nav .main-menu > li > a { color: var(--tld-ink) !important; font: 600 16px/1.3 var(--tld-sans) !important; }
  .c27-main-header .i-nav .main-menu > li > a:hover,
  .c27-main-header .i-nav .main-menu > li.current-menu-item > a { color: var(--tld-eucalypt) !important; background: var(--tld-sage) !important; }
  .c27-main-header .i-nav .main-menu > li { border-color: var(--tld-line) !important; }
  .c27-main-header .i-nav .main-menu .sub-menu a { color: var(--tld-ink) !important; }
  .c27-main-header .i-nav .main-menu > li > a i,
  .c27-main-header .i-nav .main-menu .submenu-toggle,
  .c27-main-header .i-nav .main-menu .submenu-toggle i { color: var(--tld-muted) !important; }
  .c27-main-header .i-nav .mnh-close-icon,
  .c27-main-header .i-nav .mnh-close-icon i { color: var(--tld-ink) !important; }
}
