/**
 * DW Board — FAQ template (help-center style, BiZiLiA "09 FAQ")
 * Search + topic rail (chips on mobile) + category-grouped +/- accordion cards
 * + contact CTA. Scoped under .dw-board-faq / .dw-faq2. Filtering in public.js.
 */
.dw-board-faq { margin-top: 8px; }

/* Search */
.dw-faq2 .dw-faq-toolbar { margin-bottom: 24px; }
.dw-faq2 .dw-faq-search {
	width: 100%; box-sizing: border-box; height: 50px; padding: 0 18px;
	border: 1px solid #d8dee9; border-radius: 12px; background: #fff; font-size: 15px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dw-faq2 .dw-faq-search:focus { outline: 0; border-color: #1466d6; box-shadow: 0 0 0 3px rgba(20,102,214,0.16); }

/* Layout: topic rail + main */
.dw-faq2 .dw-faq-layout { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
.dw-faq2 .dw-faq-rail { position: sticky; top: 20px; }
.dw-faq2 .dw-faq-rail-label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; color: #7b8397; margin-bottom: 12px; }
.dw-faq2 .dw-faq-cats { display: flex; flex-direction: column; gap: 4px; }
.dw-faq2 .dw-faq-cat-btn {
	text-align: left; padding: 12px 14px; border: 0; border-radius: 9px; background: transparent;
	font-size: 14.5px; font-weight: 600; color: #3c4353; cursor: pointer; transition: background 0.12s ease, color 0.12s ease;
}
.dw-faq2 .dw-faq-cat-btn:hover { background: #f2f7ff; }
.dw-faq2 .dw-faq-cat-btn.is-active { background: #f2f7ff; color: #1466d6; font-weight: 700; }

.dw-faq2 .dw-faq-rail-help { margin-top: 22px; border: 1px solid #dfe4ec; border-radius: 14px; padding: 20px; font-size: 13.5px; color: #61697a; line-height: 1.7; }
.dw-faq2 .dw-faq-rail-help b { display: block; color: #16181d; font-size: 14.5px; margin-bottom: 6px; }
.dw-faq2 .dw-faq-rail-btn { display: block; text-align: center; margin-top: 14px; padding: 12px; background: #16181d; color: #fff; border-radius: 9px; font-size: 14px; font-weight: 700; text-decoration: none; }
.dw-faq2 .dw-faq-rail-btn:hover { background: #000; color: #fff; }

/* Groups */
.dw-faq2 .dw-faq-group { margin-bottom: 38px; }
.dw-faq2 .dw-faq-group:last-of-type { margin-bottom: 0; }
.dw-faq2 .dw-faq-group-title { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; margin: 0 0 14px; color: #16181d; }
.dw-faq2 .dw-faq-list { display: flex; flex-direction: column; gap: 10px; }

/* Accordion card */
.dw-faq2 .dw-faq-item { border: 1px solid #e5e7eb; border-radius: 13px; background: #fff; overflow: hidden; }
.dw-faq2 .dw-faq-item[open] { border-color: #dfe4ec; box-shadow: 0 6px 18px rgba(16,24,40,0.05); }
.dw-faq2 .dw-faq-q {
	display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; cursor: pointer;
	list-style: none; font-size: 16.5px; font-weight: 800; letter-spacing: -0.03em; color: #16181d; word-break: keep-all;
}
.dw-faq2 .dw-faq-q::-webkit-details-marker { display: none; }
.dw-faq2 summary:focus-visible { outline: 2px solid #1466d6; outline-offset: -2px; }
.dw-faq2 .dw-faq-qt { flex: 1 1 auto; }
.dw-faq2 .dw-faq-sign { flex: 0 0 auto; width: 20px; text-align: center; font-size: 20px; line-height: 1; color: #7b8397; }
.dw-faq2 .dw-faq-sign::before { content: "+"; }
.dw-faq2 .dw-faq-item[open] .dw-faq-sign::before { content: "\2013"; }

.dw-faq2 .dw-faq-a { padding: 0 22px 22px; }
.dw-faq2 .dw-faq-atext { font-size: 15px; color: #3c4353; line-height: 1.8; letter-spacing: -0.005em; max-width: 760px; word-break: keep-all; }
/* Answer media must not overflow on mobile. */
.dw-faq2 .dw-faq-atext img { max-width: 100%; height: auto; }
.dw-faq2 .dw-faq-atext table { display: block; max-width: 100%; overflow-x: auto; }
.dw-faq2 .dw-faq-atext pre { max-width: 100%; overflow-x: auto; }

/* Author controls. This layout answers in place, so edit and delete live
   inside the open answer rather than on the single view everyone else links
   to. Quiet by default — they are for the handful of people who can use
   them, not part of reading the answer. */
.dw-faq2 .dw-faq-actions {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #eef0f3;
}

.dw-faq2 .dw-faq-action {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 32px;
	padding: 0 10px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #6b7280;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.dw-faq2 .dw-faq-action:hover {
	border-color: #d1d5db;
	color: #374151;
	text-decoration: none;
}

.dw-faq2 .dw-faq-action--danger:hover {
	border-color: #fca5a5;
	color: #b91c1c;
}

/* Inline SVG rather than dashicons: WordPress only loads that font on the
   front end when the admin bar is showing, and a site can hide it. */
.dw-faq2 .dw-faq-action-ico {
	flex: 0 0 auto;
}

/* No results */
.dw-faq2 .dw-faq-noresult { padding: 28px 4px; text-align: center; color: #9ca3af; }

/* Contact CTA banner */
.dw-faq2 .dw-faq-cta {
	margin-top: 40px; background: #1466d6; color: #fff; border-radius: 16px; padding: 28px 32px;
	display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.dw-faq2 .dw-faq-cta-text b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 4px; }
.dw-faq2 .dw-faq-cta-text span { font-size: 14.5px; color: #cfe1ff; }
.dw-faq2 .dw-faq-cta-btn { flex: 0 0 auto; padding: 14px 28px; background: #fff; color: #1466d6; border-radius: 10px; font-size: 15px; font-weight: 800; text-decoration: none; }
.dw-faq2 .dw-faq-cta-btn:hover { background: #eef4ff; color: #1466d6; }

/* Mobile: rail becomes a chip row, single column. */
@media screen and (max-width: 820px) {
	.dw-faq2 .dw-faq-layout { grid-template-columns: 1fr; gap: 20px; }
	.dw-faq2 .dw-faq-rail { position: static; }
	.dw-faq2 .dw-faq-rail-label { display: none; }
	.dw-faq2 .dw-faq-cats { flex-direction: row; flex-wrap: wrap; gap: 8px; }
	.dw-faq2 .dw-faq-cat-btn { border: 1px solid #dfe4ec; border-radius: 100px; padding: 9px 15px; font-size: 13px; }
	.dw-faq2 .dw-faq-cat-btn.is-active { background: #16181d; color: #fff; border-color: #16181d; }
	.dw-faq2 .dw-faq-rail-help { display: none; }
	.dw-faq2 .dw-faq-group-title { font-size: 19px; }
	.dw-faq2 .dw-faq-q { font-size: 15px; padding: 16px; }
	.dw-faq2 .dw-faq-a { padding: 0 16px 16px; }
	.dw-faq2 .dw-faq-cta { padding: 22px; }
}
