/* Contact, Help centre, Report a listing (20 Oct, includes/pages/help-contact.php). Built on the approved text-page shell (text.css: navy head,
   flat white panel of hairline rows, 12px corners) and the listing-form fields (forms-listing.css: body.ld-lf .idu-sub-*). Only what those two
   do not have lives here: tappable rows with a chevron, the help filter box, group labels, the reported-listing row, "Sending as", the sent state. */

body.ldchr { --chr-ink: #0d1224; --chr-mut: #667089; --chr-hair: #e4e7ef; --chr-tint: #eef1f7; --chr-page: #f5f6f9; --chr-el: var(--ld-electric, #3D6BFF); --chr-err: #a3172a; --chr-ease: cubic-bezier(.2, 0, 0, 1); }
body.ldchr .entry-header .entry-title { padding-bottom: 22px; }

/* tappable rows: the text-page row as a link, icon tile left, chevron right */
body.ldchr .ld-tp a.ldchr-row { align-items: center; color: var(--chr-ink); text-decoration: none; min-height: 60px; box-sizing: border-box; padding-top: 10px; padding-bottom: 10px; transition: background-color 160ms var(--chr-ease); -webkit-tap-highlight-color: transparent; }
body.ldchr .ld-tp a.ldchr-row:hover { background: #fafbfd; }
body.ldchr .ld-tp a.ldchr-row:active { background: var(--chr-tint); }
body.ldchr .ld-tp a.ldchr-row:focus-visible { outline: 2px solid var(--chr-el); outline-offset: -2px; }
body.ldchr .ldchr-row .ld-tp__ic { width: 40px; height: 40px; }
body.ldchr .ldchr-row__t { display: block; font: 600 15.5px/1.3 var(--ld-text); color: var(--chr-ink); }
body.ldchr .ldchr-row__s { display: block; margin-top: 2px; font: 500 13.5px/1.35 var(--ld-text); color: var(--chr-mut); }
body.ldchr .ldchr-row__go { flex: none; width: 18px; height: 18px; background: #9aa1b2;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
body.ldchr .ld-tp__q .ldchr-row__t { font-weight: 600; }

/* group labels between panels (Help centre) */
body.ldchr .ldchr-g { margin-top: 22px; }
body.ldchr .ld-tp h2.ldchr-g__h { margin: 0; padding: 0 var(--tp-pad); font: 700 13px/1.3 var(--ld-text); letter-spacing: 0; color: var(--chr-mut); }
body.ldchr .ldchr-g .ld-tp__panel { margin-top: 8px; }

/* the help filter box: one filled field at the top, sticky under the site bar on a phone */
body.ldchr .ldchr-search { position: relative; margin: 16px var(--tp-pad) 0; }
body.ldchr .ldchr-search .ldchr-i { position: absolute; left: 14px; top: 50%; margin-top: -10px; color: var(--chr-mut); pointer-events: none; }
body.ldchr .ldchr-search input[type="search"] {
	width: 100%; box-sizing: border-box; height: 48px; margin: 0; padding: 0 44px 0 44px; border: 0; border-radius: 12px; background: #fff;
	box-shadow: inset 0 0 0 1px var(--chr-hair); font: 500 16px/48px var(--ld-text); color: var(--chr-ink); -webkit-appearance: none; appearance: none;
	transition: box-shadow 150ms var(--chr-ease);
}
body.ldchr .ldchr-search input[type="search"]::-webkit-search-cancel-button { display: none; }
body.ldchr .ldchr-search input[type="search"]::placeholder { color: #8a91a5; }
body.ldchr .ldchr-search input[type="search"]:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--chr-el); }
body.ldchr .ldchr-search__x { position: absolute; right: 6px; top: 50%; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
body.ldchr .ldchr-search__x::before, body.ldchr .ldchr-search__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 1px; background: var(--chr-mut); transform: rotate(45deg); }
body.ldchr .ldchr-search__x::after { transform: rotate(-45deg); }
body.ldchr .ldchr-search__x:hover { background: var(--chr-tint); }
body.ldchr .ldchr-none { margin-top: 22px; }
body.ldchr .ldchr-none__t { margin: 0; padding: 0 var(--tp-pad); font: 600 15px/1.4 var(--ld-text); color: var(--chr-ink); }
body.ldchr .ldchr-none .ld-tp__panel { margin-top: 10px; }
body.ldchr [hidden] { display: none !important; }

/* Contact: the two routes above the form */
body.ldchr .ldchr-routes { margin-top: 16px; }

/* the form panel: the listing-form fields inside the text-page panel */
body.ldchr .ld-tp__panel.ldchr-form { margin-top: 16px; padding: 18px var(--tp-pad) 22px; }
body.ldchr .ldchr-form .idu-sub-row:last-of-type { margin-bottom: 18px; }
body.ldchr .ldchr-fs { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
body.ldchr .ldchr-fs legend { padding: 0; margin: 0 0 8px; }
body.ldchr .ldchr-ferr { margin: 2px 0 0; font: 600 13.5px/1.4 var(--ld-text); color: var(--chr-err); }
body.ldchr .ldchr-form :is(input, textarea)[aria-invalid="true"] { background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--chr-err); }
body.ldchr .ldchr-form input[type="url"] {
	width: 100%; min-width: 0; box-sizing: border-box; height: 46px; margin: 0; padding: 0 14px; border: 0; border-radius: 12px; background-color: var(--chr-page);
	box-shadow: inset 0 0 0 1px var(--chr-hair); font: 500 16px/46px var(--ld-text); color: var(--chr-ink); -webkit-appearance: none; appearance: none;
}
body.ldchr .ldchr-form input[type="url"]:focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--chr-el); }
body.ldchr .ldchr-opt { font-weight: 500; color: #8a91a5; }
body.ldchr .ldchr-form .idu-sub-error { margin-bottom: 18px; }
body.ldchr .ldchr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* "Sending as": the account in one row */
body.ldchr .ldchr-as { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--chr-page); box-shadow: inset 0 0 0 1px var(--chr-hair); }
body.ldchr .ldchr-as img, body.ldchr .ldchr-as .ldchr-as__av { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
body.ldchr .ldchr-as__tx { display: grid; min-width: 0; }
body.ldchr .ldchr-as__n { font: 600 15px/1.3 var(--ld-text); color: var(--chr-ink); }
body.ldchr .ldchr-as__e { font: 500 13.5px/1.35 var(--ld-text); color: var(--chr-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the reported listing: the shared list row's shape (photo, type, title, place) with Change */
body.ldchr .ldchr-li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px; border-radius: 12px; background: var(--chr-page); box-shadow: inset 0 0 0 1px var(--chr-hair); }
body.ldchr .ldchr-li__ph { flex: none; width: 64px; height: 64px; border-radius: 10px; background: var(--chr-tint) center / cover no-repeat; }
body.ldchr .ldchr-li__ph--none { display: grid; place-items: center; background: linear-gradient(135deg, #e9edf6, #dfe5f2); color: #9aa3bd; }
body.ldchr .ldchr-li__tx { flex: 1; display: grid; gap: 1px; min-width: 0; }
body.ldchr .ldchr-li__ty { font: 600 12.5px/1.3 var(--ld-text); color: var(--chr-mut); }
body.ldchr .ld-tp a.ldchr-li__tt { font: 700 15px/1.3 var(--ld-text); color: var(--chr-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.ldchr .ldchr-li__pl { font: 500 13.5px/1.35 var(--ld-text); color: var(--chr-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ldchr .ld-tp a.ldchr-li__ch { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--chr-hair); color: var(--chr-ink); font: 600 13.5px/1 var(--ld-text); text-decoration: none; }
body.ldchr .ld-tp a.ldchr-li__ch:hover { box-shadow: inset 0 0 0 1px #cdd2df; }

/* sent: one calm panel, a tick, the title, two ways on */
body.ldchr .ldchr-sent { margin-top: 16px; padding: 32px var(--tp-pad) 28px; text-align: center; }
body.ldchr .ldchr-sent__tick { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #e6f3ed; color: #1f7d57; animation: ldchr-pop 380ms var(--chr-ease) both; }
body.ldchr .ldchr-sent__tick .ldchr-i { width: 28px; height: 28px; stroke-width: 2.4; }
body.ldchr .ld-tp .ldchr-sent h2 { font: 800 22px/1.2 var(--ld-heading); letter-spacing: -.02em; }
body.ldchr .ldchr-sent__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
body.ldchr .ld-tp .ldchr-sent__acts a.idu-sub-submit { margin: 0; text-decoration: none; color: #fff; }
body.ldchr .ld-tp a.ldchr-ghost { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--chr-hair); color: var(--chr-ink); font: 600 15.5px/1 var(--ld-text); text-decoration: none; }
body.ldchr .ld-tp a.ldchr-ghost:hover { box-shadow: inset 0 0 0 1px #cdd2df; }
@keyframes ldchr-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* "Report a listing" under a single listing's share row */
a.ldchr-report-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 0; color: #667089; font: 600 13.5px/1.2 var(--ld-text, "Inter", sans-serif); text-decoration: none; }
a.ldchr-report-link:hover { color: #0d1224; text-decoration: underline; text-underline-offset: 3px; }
a.ldchr-report-link .ldchr-i { width: 16px; height: 16px; }
.ldchr-links { display: flex; flex-wrap: wrap; column-gap: 20px; }

/* Safety tips (includes/pages/safety.php, 28 Oct): plain tip rows (no chevron), a wrapping "jump to" row, the 000 row in red */
body.ldchr--safety .ld-tp__ic { color: #2b3a73; }
body.ldchr .ldsf-tip { align-items: flex-start; }
body.ldchr .ldsf-tip .ld-tp__ic { width: 40px; height: 40px; }
body.ldchr .ldsf-tip .ldchr-row__s { margin-top: 3px; font-weight: 450; color: #4a5371; line-height: 1.45; }
body.ldchr .ldsf-part { scroll-margin-top: 84px; }
body.ldchr .ldsf-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0 var(--tp-pad); }
body.ldchr .ldsf-jump a, body.ldchr .entry-content .ldsf-jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--chr-hair); border-radius: 999px; background: #fff; color: var(--chr-ink); font: 600 14px/1 var(--ld-text); text-decoration: none !important; transition: background-color 160ms var(--chr-ease), border-color 160ms var(--chr-ease); }
body.ldchr .ldsf-jump a:hover { border-color: #c9cfdd; background: #fafbfd; }
body.ldchr .ldsf-jump a:active { transform: scale(.98); }
body.ldchr .ldsf-jump a:focus-visible { outline: 2px solid var(--chr-el); outline-offset: 2px; }
body.ldchr .ldsf-urgent .ld-tp__ic { background: #fdecee; color: var(--chr-err); }
body.ldchr .ldsf-urgent .ldchr-row__t { color: var(--chr-err); }

@media (min-width: 768px) {
	body.ldchr .entry-header .entry-title { padding-bottom: 28px; }
	body.ldchr .ldchr-search { margin: 24px 0 0; }
	body.ldchr .ld-tp h2.ldchr-g__h, body.ldchr .ldchr-none__t { padding: 0 2px; }
	body.ldchr .ldchr-g { margin-top: 28px; }
	body.ldchr .ldsf-jump { margin-top: 24px; padding: 0; }
	body.ldchr .ldchr-routes, body.ldchr .ld-tp__panel.ldchr-form, body.ldchr .ldchr-sent { margin-top: 24px; }
	body.ldchr .ld-tp__panel.ldchr-form { padding: 24px 28px 28px; }
	body.ldchr .ldchr-sent { padding: 44px 28px 40px; }
}
@media (max-width: 640px) {
	body.ldchr .ldchr-sent__acts a { flex: 1 1 140px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { body.ldchr .ldchr-sent__tick { animation: none; } }

/* quick fixes (28 Oct, Nikita "Report a listing needs fixing"): the report and contact forms style their own fields (Adrian's idu-sub-* rules only load on his submit page).
   Labels above full-width fields, reasons as one tappable pill each, the same blue pill button as the other forms. */
body.ldchr .ldchr-form .idu-sub-row { display: block; margin: 0 0 16px; }
body.ldchr .ldchr-form .idu-sub-label { display: block; margin: 0 0 8px; font: 600 14px/1.3 var(--ld-text); color: var(--chr-ink); }
body.ldchr .ldchr-form .idu-sub-checks { display: flex; flex-wrap: wrap; gap: 8px; }
body.ldchr .ldchr-form .idu-sub-check { position: relative; display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--chr-hair); font: 500 14.5px/1.2 var(--ld-text); color: var(--chr-ink); cursor: pointer; transition: background-color .15s, box-shadow .15s; }
body.ldchr .ldchr-form .idu-sub-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
body.ldchr .ldchr-form .idu-sub-check:has(input:checked) { background: var(--ld-ice, #e8eeff); box-shadow: inset 0 0 0 1.5px var(--chr-el); font-weight: 600; }
body.ldchr .ldchr-form .idu-sub-check:has(input:focus-visible) { outline: 2px solid var(--chr-el); outline-offset: 2px; }
body.ldchr .ldchr-form textarea, body.ldchr .ldchr-form input[type="text"], body.ldchr .ldchr-form input[type="email"] {
	display: block; width: 100%; max-width: none; min-width: 0; box-sizing: border-box; margin: 0; padding: 12px 14px; border: 0; border-radius: 12px; background-color: var(--chr-page);
	box-shadow: inset 0 0 0 1px var(--chr-hair); font: 500 16px/1.45 var(--ld-text); color: var(--chr-ink); -webkit-appearance: none; appearance: none; resize: vertical;
}
body.ldchr .ldchr-form textarea { min-height: 128px; }
body.ldchr .ldchr-form :is(textarea, input[type="text"], input[type="email"]):focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--chr-el); }
body.ldchr .ldchr-form button.idu-sub-submit { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; margin: 6px 0 0; padding: 0 24px; border: 0; border-radius: 999px; background: var(--chr-el); color: #fff; font: 650 16px var(--ld-text); cursor: pointer; box-shadow: none; transition: transform .15s; }
body.ldchr .ldchr-form button.idu-sub-submit:active { transform: scale(.96); }
@media (min-width: 768px) { body.ldchr .ldchr-form button.idu-sub-submit { width: auto; min-width: 200px; } }

/* answers marks (28 Oct, Kyle marks 3 and 4 on Contact: "Terrible design", "Old style"): the form uses the feed's own pieces.
   Topic and reason are the feed's filter chips (white pill, hairline, the picked one solid ink), the button is the site's blue pill (.ld-btn:
   46px, 600 15px), and Sending as is one clean row with the member's round avatar (the initial centred in it, never under it).
   Every colour carries !important where the theme paints buttons, so its yellow button style can't show through on hover or focus. */
/* Topic: a segmented control (iOS style: one tinted track, the picked option a white raised segment). Reason: the site's select. */
body.ldchr .ldchr-seg { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 12px; background: var(--chr-tint); }
body.ldchr .ldchr-seg__o { position: relative; display: block; margin: 0; cursor: pointer; }
body.ldchr .ldchr-seg__o input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
body.ldchr .ldchr-seg__o span { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 6px; border-radius: 9px; font: 500 14px/1.15 var(--ld-text); color: var(--chr-mut); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .18s var(--chr-ease), color .18s var(--chr-ease), box-shadow .18s var(--chr-ease); }
body.ldchr .ldchr-seg__o:hover span { color: var(--chr-ink); }
body.ldchr .ldchr-seg__o input:checked + span { background: #fff; color: var(--chr-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(13,18,36,.08), 0 0 0 1px rgba(13,18,36,.04); }
body.ldchr .ldchr-seg__o input:focus-visible + span { outline: 2px solid var(--chr-el); outline-offset: 1px; }
body.ldchr .ldchr-sel { position: relative; }
body.ldchr .ldchr-sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.75px solid var(--chr-mut); border-bottom: 1.75px solid var(--chr-mut); transform: rotate(45deg); pointer-events: none; }
body.ldchr .ldchr-form select { display: block; width: 100%; max-width: none; height: 48px; box-sizing: border-box; margin: 0; padding: 0 40px 0 14px; border: 0; border-radius: 12px; background: var(--chr-page) none; box-shadow: inset 0 0 0 1px var(--chr-hair); font: 500 16px/1.2 var(--ld-text); color: var(--chr-ink); -webkit-appearance: none; appearance: none; cursor: pointer; }
body.ldchr .ldchr-form select:has(option[value=""]:checked) { color: var(--chr-mut); }
body.ldchr .ldchr-form select:focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--chr-el); }
body.ldchr .ldchr-form select[aria-invalid="true"], body.ldchr .ldchr-form .ldchr-fs[aria-invalid="true"] .ldchr-seg { box-shadow: inset 0 0 0 1px var(--chr-err); }
body.ldchr .ldchr-form > .idu-sub-error { display: block; margin: 0 0 18px; padding: 12px 14px; border: 0; border-radius: 12px; background: #fdeef0; color: #7d1424; font: 500 14.5px/1.45 var(--ld-text); }
body.ldchr .ldchr-as { gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--chr-page); box-shadow: inset 0 0 0 1px var(--chr-hair); }
body.ldchr .ldchr-as .ldcp-av, body.ldchr .ldchr-as .ldchr-as__av { display: grid; place-items: center; flex: none; width: 40px !important; height: 40px !important; margin: 0; border-radius: 50%; overflow: hidden; color: #fff; font: 700 16px/1 var(--ld-text) !important; text-indent: 0; }
body.ldchr .ldchr-form button.idu-sub-submit, body.ldchr .ldchr-form button.idu-sub-submit:hover, body.ldchr .ldchr-form button.idu-sub-submit:focus {
	height: 46px; margin: 4px 0 0; padding: 0 22px; border: 0 !important; border-radius: 999px; background: var(--chr-el) !important; color: #fff !important; font: 600 15px var(--ld-text); text-transform: none; letter-spacing: 0; box-shadow: none !important;
}
body.ldchr .ldchr-form button.idu-sub-submit:hover { background: #2f52e6 !important; }
body.ldchr .ldchr-form button.idu-sub-submit:focus-visible { outline: 2px solid var(--chr-el); outline-offset: 2px; }
@media (min-width: 768px) { body.ldchr .ldchr-form button.idu-sub-submit { min-width: 160px; } }

/* design standard (28 Oct) LAY-1, LAY-6, FRM-1: at 1024 and up Contact and Report use the site's 1120 wrap instead of an 820 column in empty
   canvas. Contact: the form on the left, Help centre and Report a listing as a side column. Report: link and reason side by side, details full
   width. Topic is only as wide as its four options; the button sits on the right, as desktop action rows do. Phones are unchanged. */
@media (min-width: 1024px) {
	body.ldchr--contact, body.ldchr--report { --tp-col: 1120px; }
	body.ldchr--contact .ldchr-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "form side"; gap: 24px; align-items: start; padding-top: 24px; }
	body.ldchr--contact .ldchr-body > .ldchr-form { grid-area: form; margin: 0; }
	body.ldchr--contact .ldchr-body > .ldchr-routes { grid-area: side; margin: 0; }
	body.ldchr .ldchr-seg { max-width: 520px; }
	body.ldchr .ldchr-form :is(input[type="text"], input[type="email"], input[type="url"], select) { height: 48px; min-height: 48px; padding-top: 0; padding-bottom: 0; }
	body.ldchr .ldchr-form { display: flex; flex-direction: column; }
	body.ldchr .ldchr-form > * { width: auto; }
	body.ldchr .ldchr-form button.idu-sub-submit { align-self: flex-end; width: auto; min-width: 160px; }
	body.ldchr--report .ldchr-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; align-items: start; }
	body.ldchr--report .ldchr-form > :is(.idu-sub-error, .idu-sub-row:has(textarea), .idu-sub-row:has(.ldchr-as), .idu-sub-row:has(.ldchr-li)) { grid-column: 1 / -1; }
	body.ldchr--report .ldchr-form > button.idu-sub-submit { grid-column: 2; justify-self: end; }
}
