/* Community listings (RabbitTalk links and hand-off). Loaded only by the listings pages and the Selling card. */
.selling h2 { margin-bottom: 8px; }
.selling-lines { margin: 0; }
.selling-line { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.selling-line:first-child { border-top: 0; }
.selling-line dt { color: var(--muted); font-size: 14px; }
.selling-line dd { margin: 0; overflow-wrap: anywhere; }
.selling-actions { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: flex-end; text-align: right; }
.selling-actions a { display: inline-block; padding: 8px 0; }
.selling-actions:empty { display: none; }
@media (max-width: 560px) {
    .selling-line { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; }
    .selling-actions { justify-content: flex-start; text-align: left; gap: 0 14px; }
    .selling-actions a { padding: 10px 0; min-height: 24px; }
}

.listings-notice { border-left: 4px solid var(--line); padding-left: 14px; }
.listings-group > h2 { margin-bottom: 4px; }
.listings-rabbits { list-style: none; margin: 12px 0; padding: 0; }
.listings-rabbits li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.listings-rabbits li > span { min-width: 0; overflow-wrap: anywhere; }
.listings-rabbits a { display: inline-block; padding: 6px 0; }

.post-title { font-weight: 650; font-size: 18px; overflow-wrap: anywhere; margin: 6px 0 14px; }
.post-text { width: 100%; box-sizing: border-box; margin: 6px 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
textarea.post-text { min-height: 12rem; resize: vertical; }
.listings-steps { padding-left: 1.2em; }
.listings-steps li { margin: 6px 0; }
.listings-address { max-width: 36rem; }

/* RabbitTalk classifieds (CL2): /classifieds, the rabbit page panel, the owner's Check now. */
.forum-asof { color: var(--muted); font-size: 14px; margin: 8px 0 16px; overflow-wrap: anywhere; }
.forum-card { display: grid; gap: 6px; }
.forum-label { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.forum-title { margin: 0; font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.forum-records, .forum-open { overflow-wrap: anywhere; }
.forum-records a, .forum-open a { display: inline-block; padding: 6px 0; }
.forum-unavailable { margin: 16px 0; }
.forum-closed { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); }
.forum-panel-link a { display: inline-block; padding: 6px 0; }
@media (max-width: 760px) { .forum-panel { order: 1; } }
.forum-panel { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 16px 0; overflow-wrap: anywhere; }
.forum-panel p { margin: 4px 0; }
.check-now { display: inline; margin: 0; }
.check-now button { min-height: 44px; }
.listings-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }

/* ---- Richer RabbitTalk classifieds (RL2): browse, filters, cards and detail. Every rule is scoped to a cl- class, so nothing above changes. ---- */
.cl-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Filters: one GET form. Without scripts every control shows; the toggle is revealed by the page's own small script. */
.cl-filters { display: flex; flex-direction: column; gap: 12px; }
.cl-toggle { display: none; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--ink); font: 600 16px var(--body); cursor: pointer; }
.cl-toggle::after { content: ''; width: 9px; height: 9px; margin-left: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.cl-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
.cl-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.7fr) minmax(0, 1.2fr) auto; gap: 12px 12px; align-items: end; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.cl-panel[hidden] { display: none; }
.cl-search, .cl-hint { grid-column: 1 / -1; }
.cl-search { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.cl-search .input { font-weight: 400; }
.cl-hint { margin: 0; font-size: 14px; color: var(--dim); }
.cl-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; font-size: 14px; font-weight: 600; }
.cl-field .input { min-height: 44px; padding: 8px 12px; font-weight: 400; }
.cl-price { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.cl-price legend { padding: 0; margin-bottom: 6px; }
.cl-go { min-height: 44px; }
.cl-price-note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--warn); }

.cl-status { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.cl-status p { margin: 0; }
.cl-count { font-weight: 600; }
.cl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cl-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cl-chip:hover { text-decoration: none; background: var(--soft); }
.cl-clear, .cl-showall { display: inline-flex; align-items: center; min-height: 44px; }

.cl-notices { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 16px; padding: 8px 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; }
.cl-notices h2 { margin: 0; font: 700 15px var(--display); }
.cl-notices ul { flex: 1 1 260px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.cl-notices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.cl-notice-note { margin: 0 0 16px; padding-left: 14px; border-left: 4px solid var(--line); }

.cl-group { margin: 24px 0 12px; font: 700 20px var(--display); }

/* Cards: three columns on desktop, two on a tablet, one on a phone. */
.cl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cl-grid > li { min-width: 0; }
.cl-card { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--soft); border: 1px solid var(--line); border-top: 4px solid var(--acc); border-radius: 22px; min-width: 0; }
.cl-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 12px; }
.cl-card--photo .cl-top { grid-template-columns: minmax(0, 1fr) 112px; grid-template-areas: "label photo" "title photo" "price photo"; align-items: start; }
.cl-card--photo .cl-label { grid-area: label; }
.cl-card--photo .cl-title { grid-area: title; }
.cl-card--photo .cl-pricebox { grid-area: price; }
.cl-card--photo .cl-photo { grid-area: photo; }
.cl-label { font-size: 14px; color: var(--dim); overflow-wrap: anywhere; }
.cl-title { margin: 0; font: 700 20px/1.2 var(--display); overflow-wrap: anywhere; }
.cl-title a { color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.cl-pricebox { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 6px; }
.cl-pricebox--bare { padding-top: 0; }
.cl-pricetext { font: 700 19px/1.2 var(--display); overflow-wrap: anywhere; }
.cl-pricetext small { font: inherit; font-weight: 700; }
.cl-photo { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 11px; line-height: 1.25; color: var(--dim); }
.cl-photo img { display: block; width: 112px; height: 112px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.cl-photo figcaption { overflow-wrap: anywhere; }
.cl-line { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.cl-line--dim { color: var(--dim); }
.cl-meta { margin: 0; margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--dim); overflow-wrap: anywhere; }
.cl-acts { display: flex; flex-wrap: wrap; gap: 0 18px; }
.cl-acts a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; }

/* Detail */
.cl-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.cl-chiplabel { align-self: flex-start; display: inline-block; padding: 2px 12px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.cl-h1 { margin: 6px 0; font: 700 44px/1.05 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.cl-detail-meta { margin: 0; color: var(--dim); overflow-wrap: anywhere; }
.cl-detail { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 34fr); gap: 24px 4%; align-items: start; }
.cl-main { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cl-side { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; position: sticky; top: 16px; }
.cl-box { padding: 20px; background: var(--soft); border: 1px solid var(--line); border-top: 4px solid var(--acc); border-radius: 22px; min-width: 0; }
.cl-bigprice { margin: 0; font: 700 40px/1.05 var(--display); overflow-wrap: anywhere; }
.cl-bigprice--text { font-size: 28px; }
.cl-terms { margin: 2px 0 0; }
.cl-box h2 { margin: 16px 0 0; font: 700 20px var(--display); }
.cl-source { margin: 2px 0 8px; font-size: 14px; color: var(--dim); }
.cl-rows { margin: 0; }
.cl-rows > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.cl-rows dt { color: var(--dim); }
.cl-rows dd { margin: 0; overflow-wrap: anywhere; }
.cl-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cl-contact .btn { width: 100%; text-align: center; min-height: 46px; height: auto; padding-block: 8px; }
.cl-note { margin: 12px 0 0; font-size: 13px; color: var(--dim); }
.cl-seller { display: flex; align-items: center; gap: 14px; }
.cl-seller p { margin: 0; font: 700 18px var(--display); overflow-wrap: anywhere; }
.cl-seller a { font: 600 16px var(--body); display: inline-flex; align-items: center; min-height: 44px; }
.cl-initial { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--card); color: var(--acc); font: 700 26px var(--display); border: 1px solid var(--line); }
.cl-h2 { margin: 0 0 8px; font: 700 24px var(--display); }
.cl-posttext { display: flex; flex-direction: column; gap: 8px; }
.cl-posttext p, .cl-posttext blockquote { margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.cl-posttext blockquote { padding-left: 14px; border-left: 4px solid var(--line); color: var(--dim); }
.cl-posttext ul { margin: 0; padding-left: 1.3em; overflow-wrap: anywhere; line-height: 1.5; }
.cl-small { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.cl-small--dim { color: var(--dim); }

.cl-gallery { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.cl-gallery li { margin: 0; min-width: 0; }
.cl-gallery a { display: block; }
.cl-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.cl-gallery li:first-child { flex: 1 1 100%; }
.cl-gallery li:not(:first-child) { flex: 0 0 104px; }
.cl-gallery li:not(:first-child) img { aspect-ratio: 4 / 3; border-radius: 10px; }
.cl-gallery li:not(:first-child) figcaption, .cl-gallery li:not(:first-child) .cl-count-of { display: none; }
.cl-gallery figure { margin: 0; }
.cl-gallery figcaption { margin-top: 4px; font-size: 14px; color: var(--dim); overflow-wrap: anywhere; }
.cl-count-of { display: none; }

.cl-records { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cl-record { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.cl-record img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); background: var(--soft); }
.cl-record-text { min-width: 0; display: flex; flex-direction: column; }
.cl-record-name { font-weight: 700; overflow-wrap: anywhere; }
.cl-record-text span { color: var(--dim); font-size: 14px; overflow-wrap: anywhere; }
.cl-record-text a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.cl-mismatch { margin: 0; padding-left: 14px; border-left: 4px solid var(--hay); font-weight: 600; }

.cl-state { max-width: 40rem; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.cl-state p { margin: 0 0 6px; }
.cl-bar { display: none; }

@media (max-width: 1100px) {
    .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cl-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cl-price { grid-column: span 2; }
}

@media (max-width: 760px) {
    .cl-toggle { display: flex; }
    .cl-toggle[hidden] { display: none; }
    .cl-panel { grid-template-columns: minmax(0, 1fr); padding: 14px; border-radius: 18px; }
    .cl-price { grid-column: auto; }
    .cl-go { width: 100%; }
    .cl-grid { grid-template-columns: minmax(0, 1fr); }
    /* Phone card: title across the top, then the photo beside the price. */
    .cl-card--photo .cl-top { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "label label" "title title" "photo price"; align-items: start; }
    .cl-photo img { width: 72px; height: 72px; }
    .cl-photo { font-size: 11px; }
    .cl-h1 { font-size: 28px; }
    .cl-detail { display: flex; flex-direction: column; gap: 16px; }
    .cl-side, .cl-main { display: contents; position: static; }
    .cl-pricebox-detail { order: 1; }
    .cl-gallerywrap { order: 2; }
    .cl-textwrap { order: 3; }
    .cl-recwrap { order: 4; }
    .cl-sellerbox { order: 5; }
    .cl-reportwrap { order: 6; }
    .cl-gallery { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 4px; }
    .cl-gallery li, .cl-gallery li:first-child, .cl-gallery li:not(:first-child) { flex: 0 0 82%; scroll-snap-align: start; }
    .cl-gallery li:not(:first-child) img { border-radius: 14px; }
    .cl-gallery li:not(:first-child) figcaption, .cl-gallery li:not(:first-child) .cl-count-of { display: block; }
    .cl-count-of { display: block; font-size: 13px; color: var(--dim); }
    .cl-box { padding: 16px; }
    .cl-bigprice { font-size: 34px; }
    /* Contact bar: stays at the foot of the screen, and the page keeps room for it. */
    .cl-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; gap: 10px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
    .cl-bar .btn { flex: 1 1 auto; padding-inline: 12px; }
    .cl-bar .btn--outline { flex: 0 1 auto; }
    .pub-page:has(.cl-bar) { padding-bottom: 88px; }
}
.cl-section{font-size:1.1rem;margin:24px 0 4px}

/* RL4: opt-in forum photo previews. Fixed small thumbnails, labelled as coming from the RabbitTalk post. */
.cl-forumphotos { margin: 0 0 18px; }
.cl-gallery--forum li, .cl-gallery--forum li:first-child, .cl-gallery--forum li:not(:first-child) { flex: 0 0 150px; }
.cl-gallery--forum img { width: 150px; height: 150px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
@media (max-width: 640px) {
    .cl-gallery--forum { flex-wrap: wrap; overflow-x: visible; }
    .cl-gallery--forum li, .cl-gallery--forum li:first-child, .cl-gallery--forum li:not(:first-child) { flex: 0 0 calc(50% - 6px); scroll-snap-align: none; }
    .cl-gallery--forum img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}
