/* ==========================================================================
   Question board
   --------------------------------------------------------------------------
   A moderated Q&A: customers ask before they buy, and the answers stay up for
   the next customer. Two columns on wide screens — the questions on the left,
   the form always visible on the right.
   ========================================================================== */

.pm-forum { padding-bottom: clamp(48px, 7vw, 96px); }

.pm-forum__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
@media (max-width: 900px) {
	.pm-forum__grid { grid-template-columns: minmax(0, 1fr); }
	.pm-forum__side { order: -1; }
}

.pm-forum__side {
	position: sticky;
	top: 24px;
	background: var(--pm-surface);
	border: 1px solid var(--pm-line);
	border-radius: var(--pm-radius-lg);
	padding: clamp(20px, 2.6vw, 28px);
}
@media (max-width: 900px) { .pm-forum__side { position: static; } }

.pm-forum__side-title {
	font-family: var(--pm-font-display);
	font-size: 1.2rem;
	margin: 0 0 .8em;
	color: var(--pm-ink);
}

/* --- topic chips --- */
.pm-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pm-chip {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--pm-line-strong);
	border-radius: 999px;
	font-size: .88rem;
	color: var(--pm-ink-soft);
	text-decoration: none;
	transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.pm-chip:hover { border-color: var(--pm-clay); color: var(--pm-ink); }
.pm-chip.is-active {
	background: var(--pm-clay);
	border-color: var(--pm-clay);
	color: #fff;
}

/* --- question cards --- */
.pm-qcards { display: grid; gap: 16px; }
.pm-qcard {
	background: var(--pm-surface);
	border: 1px solid var(--pm-line);
	border-radius: var(--pm-radius-lg);
	padding: clamp(18px, 2.4vw, 26px);
}
.pm-qcard h2 {
	font-family: var(--pm-font-display);
	font-size: 1.16rem;
	margin: 0 0 .5em;
	line-height: 1.32;
}
.pm-qcard h2 a { text-decoration: none; color: var(--pm-ink); }
.pm-qcard h2 a:hover { color: var(--pm-clay-dark); }
.pm-qcard__body { color: var(--pm-ink-soft); font-size: .96rem; line-height: 1.68; }
.pm-qcard__body p:last-child { margin-bottom: 0; }
.pm-qcard__meta { margin: 12px 0 0; }

/* --- answers --- */
.pm-answers { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.pm-answers .comment {
	background: var(--pm-surface);
	border: 1px solid var(--pm-line);
	border-radius: var(--pm-radius-lg);
	padding: 18px 20px;
}
.pm-answers .children { list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; display: grid; gap: 12px; }
.pm-answers .comment-meta { font-size: .84rem; color: var(--pm-ink-faint); margin-bottom: 8px; }
.pm-answers .comment-author img { border-radius: 999px; margin-right: 8px; vertical-align: middle; }

/* --- the form --- */
.pm-ask { display: grid; gap: 14px; }
.pm-ask__row { display: grid; gap: 6px; margin: 0; }
.pm-ask__row label { font-size: .86rem; font-weight: 600; color: var(--pm-ink); }
.pm-ask__row input[type="text"],
.pm-ask__row input[type="email"],
.pm-ask__row textarea,
.pm-ask__row select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--pm-line-strong);
	border-radius: var(--pm-radius);
	background: var(--pm-bg);
	color: var(--pm-ink);
	font: inherit;
	font-size: .95rem;
}
.pm-ask__row textarea { resize: vertical; }
.pm-ask__row input:focus,
.pm-ask__row textarea:focus,
.pm-ask__row select:focus { outline: 2px solid var(--pm-clay); outline-offset: 1px; }
.pm-ask__grid { display: grid; gap: 14px; }
@media (min-width: 560px) and (max-width: 900px) {
	.pm-ask__grid { grid-template-columns: 1fr 1fr; }
}
.pm-ask__submit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 0; }

/* Honeypot: hidden from people, tempting to bots. */
.pm-ask__trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --- compact list used on product pages --- */
.pm-qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-qlist li { padding-left: 18px; position: relative; }
.pm-qlist li::before {
	content: "";
	position: absolute;
	left: 0; top: .58em;
	width: 6px; height: 6px;
	border-radius: 999px;
	background: var(--pm-clay);
}
.pm-qlist a { text-decoration: none; }

.pm-pagination { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.pm-pagination .page-numbers {
	padding: 8px 13px;
	border: 1px solid var(--pm-line-strong);
	border-radius: var(--pm-radius);
	text-decoration: none;
	color: var(--pm-ink-soft);
}
.pm-pagination .page-numbers.current { background: var(--pm-clay); border-color: var(--pm-clay); color: #fff; }
