/* B&M Community forum. Uses the theme's colours and type (--ink, --red, --mono...). Phone first. */
.forum { padding-bottom: 48px; }
.fhero { padding-top: 28px; padding-bottom: 20px; }
.fhero .lede { margin-top: 12px; }
.fhero__acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 22px; }
.fhero--place .h-xl { font-size: clamp(42px, 7vw, 88px); }
.fad { margin: 8px auto 20px; }

.fcols { display: grid; gap: 28px; }
@media (min-width: 1000px) { .fcols { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .fside { position: sticky; top: 16px; } }

/* Tabs */
.ftabs { display: flex; gap: 4px; border-bottom: 3px solid var(--ink); margin-bottom: 4px; overflow-x: auto; }
.ftabs a { flex: 0 0 auto; padding: 12px 14px 10px; font-weight: 700; text-decoration: none; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -3px; }
.ftabs a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }

/* Thread cards */
.flist { list-style: none; margin: 0; padding: 0; }
.flist > li { border-bottom: 1px solid var(--rule); }
.flist__ad { padding: 14px 0; }
.fcard__link { display: flex; gap: 14px; padding: 16px 0; text-decoration: none; color: var(--ink); align-items: flex-start; }
.fcard__img { position: relative; flex: 0 0 96px; aspect-ratio: 1; background: var(--paper-3); overflow: hidden; }
.fcard__img img { width: 100%; height: 100%; object-fit: cover; }
.fcard__n { position: absolute; left: 4px; bottom: 4px; background: rgba(15,17,16,.82); color: #fff; font: 600 11px/1 var(--mono); padding: 4px 6px; }
.fcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fcard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fcard__title { font-size: 19px; line-height: 1.25; }
.fcard__link:hover .fcard__title { text-decoration: underline; }
.fcard__where { font: 13px/1.4 var(--mono); color: var(--red); }
.fcard__ex { color: var(--ink-2); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard__meta { font: 12px/1.4 var(--mono); color: var(--ink-4); }
@media (min-width: 720px) { .fcard__img { flex-basis: 140px; } .fcard__title { font-size: 21px; } }

.fchip { font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 5px 7px; background: var(--paper-2); color: var(--ink-2); }
.fchip--photo { background: var(--ink); color: #fff; }
.fchip--question { background: #E9E1D2; }
.fchip--open { background: #FCE6E3; color: var(--red); }
.fchip--done { background: #DDEEDF; color: #1E6B33; }
.fempty { padding: 28px 0; font-size: 18px; color: var(--ink-2); }
.fsub { font-size: 20px; margin: 28px 0 8px; }

/* Side boxes */
.fbox { border-top: 3px solid var(--ink); padding: 14px 0 18px; }
.fbox__h { font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
.fbox p { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.fbox__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.fbox__list li { padding: 4px 0; break-inside: avoid; font-size: 15px; }
.fbox__list span { font: 12px var(--mono); color: var(--ink-4); }

/* Place search */
.fplace { position: relative; max-width: 560px; }
.fplace__label { display: block; font-weight: 700; margin-bottom: 6px; }
.fplace input[type=search] { width: 100%; min-height: 52px; padding: 0 14px; font: inherit; font-size: 17px; border: 2px solid var(--ink); border-radius: 2px; background: #fff; }
.fplace__list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 2px solid var(--ink); max-height: 340px; overflow-y: auto; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.fplace__list li { padding: 10px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.fplace__list li[aria-selected=true], .fplace__list li:hover { background: var(--paper-3); }
.fplace__list small { font: 12px var(--mono); color: var(--ink-4); }
.fmine { margin-top: 20px; }
.fmine a { margin: 0 8px 8px 0; }

/* Thread */
.fthread { max-width: 860px; padding-top: 20px; }
.fthread__head { margin: 14px 0 18px; }
.fthread__head .h-l { margin-top: 10px; font-size: clamp(30px, 5vw, 46px); line-height: 1; }
.fthread__where { font: 14px/1.4 var(--mono); color: var(--ink-3); margin: 10px 0 0; }
.fthread__where a { color: var(--red); }
.fnote { background: var(--paper-3); padding: 12px 14px; border-left: 4px solid var(--red); }
.ffinding { border: 2px solid #1E6B33; background: #F1F8F2; padding: 14px 16px; margin: 0 0 20px; }
.ffinding .eyebrow { color: #1E6B33; }
.ffinding p { margin: 4px 0; }

.fpost { border-top: 1px solid var(--rule); padding: 16px 0 10px; scroll-margin-top: 16px; }
.fpost--op { border-top: 3px solid var(--ink); }
.fpost--answer { border: 2px solid #1E6B33; padding: 14px; margin: 8px 0; background: #F7FBF7; }
.fpost__flag { font: 700 12px var(--mono); color: #1E6B33; text-transform: uppercase; margin: 0 0 8px; }
.fpost:target { background: #FFFBEA; }
.fpost__who { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-3); margin-bottom: 10px; }
.fpost__who strong { color: var(--ink); }
.fpost__time { color: inherit; text-decoration: none; }
.fava { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; text-transform: uppercase; }
.fpost__text { font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.fpost__text p { margin: 0 0 12px; }
.fpost__acts { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.facts__b { min-height: 40px; padding: 0 12px; background: none; border: 1px solid var(--rule); border-radius: 20px; font: 600 14px var(--sans); color: var(--ink-2); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.facts__b:hover { border-color: var(--ink); color: var(--ink); }
.facts__b[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.facts__b--quiet { border-color: transparent; color: var(--ink-4); }
.fquote { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--rule); color: var(--ink-3); font-size: 15px; background: var(--paper-3); }
.fquote a { font-weight: 700; color: var(--ink-2); }

/* Photos */
.fgal { display: grid; gap: 6px; margin: 0 0 14px; }
.fgal--1 { grid-template-columns: 1fr; }
.fgal--2 { grid-template-columns: 1fr 1fr; }
.fgal--3, .fgal--4 { grid-template-columns: 1fr 1fr; }
.fgal__a { display: block; background: var(--paper-3); overflow: hidden; }
.fgal--1 .fgal__a img { width: 100%; max-height: 720px; object-fit: contain; background: #111; }
.fgal--2 .fgal__a, .fgal--3 .fgal__a, .fgal--4 .fgal__a { aspect-ratio: 4 / 3; }
.fgal--2 img, .fgal--3 img, .fgal--4 img { width: 100%; height: 100%; object-fit: cover; }
.fgal--3 .fgal__a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.flight { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.flight::backdrop { background: rgba(10,10,10,.88); }
.flight img { max-width: 96vw; max-height: 90vh; object-fit: contain; }
.flight__x { position: fixed; top: 10px; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; font-size: 28px; cursor: pointer; }

/* Reply and new-thread forms */
.freply { border-top: 3px solid var(--ink); margin-top: 24px; padding-top: 4px; }
.freply textarea, .fform textarea, .fform input[type=text] { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 2px; background: #fff; }
.freply textarea { min-height: 120px; resize: vertical; }
.freply__bar, .fform__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 10px; }
.fmsg { min-height: 1.5em; margin: 8px 0 0; font-weight: 600; }
.fmsg.is-bad { color: var(--red); }
.fquote--draft { display: flex; justify-content: space-between; gap: 10px; }
.fquote--draft button { background: none; border: 0; cursor: pointer; font-size: 20px; line-height: 1; }

.fnew { max-width: 760px; padding-top: 20px; }
.fnew .h-l { margin: 14px 0 18px; }
.fform { display: flex; flex-direction: column; gap: 12px; }
.fform__l { font-weight: 700; margin-top: 8px; }
.fform__where { margin: 0; padding: 12px 14px; background: var(--paper-3); }
.fkinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fkinds legend { font-weight: 700; margin-bottom: 8px; }
.fkind { position: relative; display: block; cursor: pointer; }
.fkind input { position: absolute; opacity: 0; }
.fkind span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; border: 2px solid var(--rule); border-radius: 2px; }
.fkind small { color: var(--ink-3); font-size: 14px; line-height: 1.35; }
.fkind input:checked + span { border-color: var(--ink); background: var(--paper-3); box-shadow: inset 4px 0 0 var(--red); }
.fkind input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
@media (min-width: 720px) { .fkinds { grid-template-columns: repeat(4, 1fr); } }

.fup { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fup:empty { margin: 0; }
.fup__drop { flex: 1 1 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 140px; padding: 16px; border: 2px dashed var(--ink-4); border-radius: 2px; text-align: center; cursor: pointer; background: var(--paper-3); }
.fup__drop.is-over { border-color: var(--red); background: #FCF1EF; }
.fup__drop strong { font-size: 18px; }
.fup__drop span { color: var(--ink-3); font-size: 15px; }
.fup__item { position: relative; width: 96px; height: 96px; background: var(--paper-2); overflow: hidden; }
.fup__item img { width: 100%; height: 100%; object-fit: cover; }
.fup__item.is-busy img { opacity: .45; }
.fup__item .fup__bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--red); }
.fup__item button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.fup__item.is-bad { outline: 3px solid var(--red); }
.fup__add { cursor: pointer; }

/* Next steps under a thread */
.fnext { display: grid; gap: 10px; margin-top: 32px; }
@media (min-width: 720px) { .fnext { grid-template-columns: repeat(3, 1fr); } }
.fnext__a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.fnext__a:hover { border-color: var(--ink); }
.fnext__a span:last-child { color: var(--ink-3); font-size: 14px; }

/* On house, street and town pages */
.fpage { margin-top: 36px; margin-bottom: 24px; }
.fpage__head { border-top: 3px solid var(--ink); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: flex-end; }
.fpage__lede { margin: 6px 0 0; color: var(--ink-2); }
.fpage__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.fpage__more { margin: 12px 0 0; font-weight: 700; }

.frules { max-width: 560px; border: 0; padding: 22px 24px; }
.frules::backdrop { background: rgba(0,0,0,.6); }
.frules li { margin-bottom: 8px; }

@media (max-width: 719px) {
	.fhero__acts .btn, .fpage__acts .btn { flex: 1 1 auto; }
	.freply__bar .btn { flex: 1 1 auto; }
	.fbox__list { columns: 1; }
}

.freport, .fedit { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.freport label { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.freport input { min-height: 40px; padding: 0 10px; font: inherit; border: 1px solid var(--ink); }
.fedit { flex-direction: column; align-items: stretch; }
.fedit textarea { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--ink); }
.forum [hidden], .fpage [hidden], [data-ffollow][hidden] { display: none !important; }

/* House adverts (until Google's ads are on) */
.fhad { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 22px 18px; background: var(--ink); color: #fff; margin: 0 auto; max-width: 970px; }
.fhad__label { position: absolute; top: 6px; right: 10px; font: 10px/1 var(--mono); color: #9DA39F; text-transform: uppercase; letter-spacing: .06em; }
.fhad__body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 300px; }
.fhad .eyebrow { color: var(--red-bright); margin: 0; }
.fhad__title { font-size: 22px; line-height: 1.2; }
.fhad__text { color: #D3D6D2; font-size: 15px; }
.fhad__btn { flex: 0 0 auto; }
.fhad--box { flex-direction: column; align-items: flex-start; max-width: 340px; min-height: 250px; justify-content: center; }
.fhad--box .fhad__body { flex: 0 0 auto; }
.fpage__near { font: 13px var(--mono); color: var(--ink-3); margin: 14px 0 0; }
.fpage__wide { font-weight: 400; color: var(--ink-3); }
.fpage--place { margin-top: 28px; }
.bm-ad--house { min-height: 0; text-align: left; align-items: stretch; width: 100%; }
.bm-ad--house.bm-ad--mpu { width: 100%; max-width: 340px; }
.bm-ad--house .fhad { width: 100%; }
.story__ad .fhad--box { max-width: none; min-height: 0; }
.bm-ad.bm-ad--house, .bm-ad.bm-ad--house .fhad { text-align: left; }

.fsort { margin: 8px 0 0; font: 13px var(--mono); color: var(--ink-4); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fsort a { color: var(--ink-3); }
.fsort a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: none; }
.flist--pinned .fcard__link { padding: 12px 14px; background: var(--paper-3); margin-top: 8px; }
.fchip--pin { background: var(--red); color: #fff; }

/* House advert showing a real thread from the town */
.fhad__img { flex: 0 0 96px; aspect-ratio: 1; overflow: hidden; background: #2a2d2b; }
.fhad__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fhad--thread .fhad__body { flex: 1 1 220px; }
.fhad--box.fhad--thread .fhad__img { flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 9; }
.fhad--bar .fhad__img { flex-basis: 64px; }
/* On a page's community section the first thread leads, with a bigger photo */
.flist--preview .flist > li:first-child .fcard__img { flex-basis: 140px; }
@media (min-width: 720px) { .flist--preview .flist > li:first-child .fcard__img { flex-basis: 220px; aspect-ratio: 4 / 3; } }

/* "Worth a read" on the community front page */
.ffeat { margin: 0 0 20px; }
.ffeat__h { font: 800 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--red); margin: 0 0 10px; }
.ffeat__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ffeat__list { grid-template-columns: repeat(3, 1fr); } }
.ffeat__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--paper-3); }
.ffeat__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.ffeat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ffeat__body { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.ffeat__title { font-size: 19px; line-height: 1.25; }
.ffeat__link:hover .ffeat__title { text-decoration: underline; }
