/* =====================================================================
 * About section (newsberg/template-aboutus.php).
 * Uses the --sc-* tokens from site-chrome.css. The global theme sets
 * font sizes with !important on bare elements, so content typography
 * here uses class-scoped selectors + !important where it must win.
 * ===================================================================== */
#content.ab { padding: 0 !important; }
.ab { background: #faf7fd; color: var(--sc-text); overflow-x: clip; }
.ab-wrap { max-width: var(--sc-max); margin: 0 auto; padding: 0 24px; }
.ab a { text-decoration: none; }
.ab a:focus-visible, .ab summary:focus-visible, .ab button:focus-visible { outline: 2px solid var(--sc-purple); outline-offset: 3px; border-radius: 6px; }

.ab .ab-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 12.5px !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sc-purple);
}
.ab .ab-eyebrow i { font-size: 13px !important; letter-spacing: 0; }
.ab .ab-h2 { margin: 0 0 28px; font-size: clamp(24px, 2.6vw, 32px) !important; font-weight: 700; line-height: 1.35; color: var(--sc-ink); }

/* ---------- Hero ---------- */
.ab-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 44px 0 120px;
	background: linear-gradient(180deg, #fff 0%, #fbf8fe 100%);
	border-bottom: 1px solid var(--sc-line);
}
.ab-hero::before {
	content: "";
	position: absolute;
	inset: -30% -10%;
	z-index: -2;
	background:
		radial-gradient(36% 46% at 12% 30%, rgba(168, 85, 247, .14), transparent 70%),
		radial-gradient(30% 40% at 70% 80%, rgba(245, 196, 81, .08), transparent 70%);
}
.ab-hero-photo { position: absolute; inset: 0 0 0 auto; width: 58%; z-index: -1; }
.ab-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: .9; }
.ab-hero-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .85) 30%, rgba(255, 255, 255, .25) 70%, rgba(255, 255, 255, .1) 100%);
}
.ab-hero:not(.is-root) .ab-hero-photo { width: 46%; }
.ab-hero:not(.is-root) .ab-hero-photo::after { background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .9) 35%, rgba(255, 255, 255, .55) 100%); }
.ab-hero-inner { position: relative; }

.ab-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 26px; font-size: 13.5px !important; color: var(--sc-muted); }
.ab-crumbs a { color: var(--sc-muted) !important; font-weight: 600; transition: color .2s ease; }
.ab-crumbs a:hover { color: var(--sc-purple) !important; }
.ab-crumbs i { font-size: 9px !important; opacity: .6; }
.ab-crumbs span { color: var(--sc-ink); font-weight: 600; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ab .ab-title {
	max-width: 760px;
	margin: 0;
	font-size: clamp(28px, 3.4vw, 42px) !important;
	font-weight: 800;
	line-height: 1.3;
	color: var(--sc-ink);
	text-wrap: balance;
}
.ab .ab-title-root { line-height: 1.05; }
.ab .ab-title-root span { display: block; font-size: clamp(30px, 3vw, 42px) !important; font-weight: 700; color: var(--sc-ink); }
.ab .ab-title-root strong { display: block; font-size: clamp(54px, 6vw, 84px) !important; font-weight: 800; color: var(--sc-purple); letter-spacing: -.01em; }
.ab .ab-lead { max-width: 520px; margin: 18px 0 0; font-size: 17px !important; line-height: 1.75; color: var(--sc-text); }
.ab-facts { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 26px 0 0; padding: 0; }
.ab-facts li {
	display: flex;
	flex-direction: column;
	min-width: 132px;
	padding: 12px 18px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .85);
	border: 1px solid var(--sc-line);
	box-shadow: 0 8px 22px rgba(31, 18, 51, .06);
	backdrop-filter: blur(6px);
}
.ab-facts strong { font-family: 'Playfair Display', 'Noto Sans Thai', serif !important; font-size: 28px !important; font-weight: 600; line-height: 1.1; color: var(--sc-purple); }
.ab-facts span { font-size: 13px !important; color: var(--sc-muted); }

/* ---------- Layout ---------- */
.ab-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	margin-top: -72px;
	padding-bottom: 80px;
	position: relative;
}

/* ---------- Section menu ---------- */
.ab-side { position: sticky; top: 96px; }
.admin-bar .ab-side { top: 128px; }
.ab-side-toggle { display: none; }
.ab-side-nav {
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	padding: 18px 14px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--sc-line);
	box-shadow: 0 18px 44px rgba(31, 18, 51, .08);
	scrollbar-width: thin;
	scrollbar-color: #dccbf0 transparent;
}
.ab .ab-side-title { margin: 0 8px 10px; font-size: 12px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sc-muted); }
.ab-group { border-radius: 14px; }
.ab-group + .ab-group { margin-top: 4px; }
.ab-group summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 8px;
	border-radius: 12px;
	cursor: pointer;
	list-style: none;
	transition: background .2s ease;
}
.ab-group summary::-webkit-details-marker { display: none; }
.ab-group summary::after {
	content: "";
	flex-shrink: 0;
	width: 7px; height: 7px;
	margin-right: 6px;
	border-right: 1.8px solid var(--sc-muted);
	border-bottom: 1.8px solid var(--sc-muted);
	transform: rotate(-45deg);
	transition: transform .2s ease;
}
.ab-group[open] summary::after { transform: rotate(45deg); }
.ab-group summary:hover { background: #faf6fe; }
/* Gallery: a plain link to the category page, styled like a group header. */
.ab-group-link { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; text-decoration: none !important; transition: background .2s ease; }
.ab-group-link::after { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-right: 6px; border-right: 1.8px solid var(--sc-muted); border-bottom: 1.8px solid var(--sc-muted); transform: rotate(-45deg); transition: transform .2s ease, border-color .2s ease; }
.ab-group-link:hover { background: #faf6fe; }
.ab-group-link:hover::after { border-color: var(--sc-purple); transform: translateX(2px) rotate(-45deg); }
.ab-group-icon {
	flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 10px;
	background: var(--sc-lavender);
	color: var(--sc-purple);
}
.ab-group-icon i { font-size: 13px !important; }
.ab-group[open] .ab-group-icon { background: var(--sc-purple); color: #fff; }
.ab-group-label { flex: 1; min-width: 0; font-size: 14.5px !important; font-weight: 700; line-height: 1.4; color: var(--sc-ink); }
.ab-group-count { font-size: 11.5px !important; font-weight: 700; color: var(--sc-muted); background: #f4f1f8; border-radius: 999px; padding: 1px 8px; }
.ab-group ul { list-style: none; margin: 4px 0 8px 23px; padding: 0 0 0 16px; border-left: 1.5px solid var(--sc-line); }
.ab-group li a {
	position: relative;
	display: block;
	padding: 7px 10px;
	border-radius: 9px;
	font-size: 14px !important;
	line-height: 1.5;
	color: var(--sc-text) !important;
	transition: background .2s ease, color .2s ease;
}
.ab-group li a:hover { background: #faf6fe; color: var(--sc-purple) !important; }
.ab-group li.is-current a { background: var(--sc-lavender); color: var(--sc-purple) !important; font-weight: 700; }
.ab-group li.is-current a::before {
	content: "";
	position: absolute;
	left: -18px;
	top: 8px;
	bottom: 8px;
	width: 3px;
	border-radius: 3px;
	background: var(--sc-purple);
}

/* ---------- Reading column ---------- */
.ab-content {
	padding: 44px 52px;
	border-radius: 22px;
	background: #fff;
	border: 1px solid var(--sc-line);
	box-shadow: 0 18px 44px rgba(31, 18, 51, .06);
	font-size: 16.5px;
	line-height: 1.95;
	color: #3d3550;
}
.ab-content > :first-child { margin-top: 0 !important; }
.ab-content > :last-child { margin-bottom: 0 !important; }
.ab .ab-content p { margin: 0 0 18px; font-size: 16.5px !important; line-height: 1.95; }
.ab .ab-content p[style*="padding-left"] { padding-left: 0 !important; }
.ab .ab-content h2,
.ab .ab-content h3,
.ab .ab-content h4 { margin: 40px 0 16px; font-weight: 700; line-height: 1.45; color: var(--sc-ink); text-align: left !important; }
.ab .ab-content h2 { font-size: 24px !important; }
.ab .ab-content h3 { font-size: 21px !important; }
.ab .ab-content h4 { font-size: 18px !important; }
.ab .ab-content h2,
.ab .ab-content h3 { display: flex; align-items: center; gap: 12px; }
.ab .ab-content h2::before,
.ab .ab-content h3::before { content: ""; flex-shrink: 0; width: 6px; height: 1.1em; border-radius: 4px; background: linear-gradient(180deg, #a855f7, var(--sc-purple)); }
.ab .ab-content strong { color: var(--sc-ink); }
.ab .ab-content a { color: var(--sc-purple); text-decoration: underline; text-decoration-color: rgba(106, 13, 173, .3); text-underline-offset: 3px; }
.ab .ab-content a:hover { text-decoration-color: currentColor; }

.ab .ab-content ul,
.ab .ab-content ol { margin: 0 0 20px; padding: 0; }
.ab .ab-content ul { list-style: none; }
.ab .ab-content ul > li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ab .ab-content ul > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: .72em;
	width: 9px;
	height: 9px;
	border-radius: 3px;
	background: var(--sc-purple);
	transform: rotate(45deg);
	opacity: .85;
}
.ab .ab-content ol { padding-left: 24px; }
.ab .ab-content ol > li { margin-bottom: 10px; padding-left: 4px; }
.ab .ab-content ol > li::marker { color: var(--sc-purple); font-weight: 700; }
.ab .ab-content blockquote { margin: 24px 0; padding: 20px 26px; border: 1px solid var(--sc-line); border-radius: 16px; background: #faf7fd; color: var(--sc-ink); }

/* PDF links become a download button. */
.ab .ab-content p:has(> a[href$=".pdf"]:only-child) { text-align: left !important; margin: 0 0 26px; }
.ab .ab-content a[href$=".pdf"] {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 22px;
	border-radius: 999px;
	background: linear-gradient(120deg, #7b1fd1, var(--sc-purple) 50%, #4b0880);
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(106, 13, 173, .25);
	transition: transform .2s ease, box-shadow .2s ease;
}
.ab .ab-content a[href$=".pdf"]::before { content: "\f1c1"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; }
.ab .ab-content a[href$=".pdf"]:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(106, 13, 173, .32); }

/* Images (inline sizes from the old site are released). */
.ab .ab-content img { max-width: 100% !important; height: auto !important; border-radius: 14px; }
.ab .ab-content p:has(> img:only-child) { text-align: center; margin: 8px 0 28px; }
.ab .ab-content p:has(> img:only-child) img { padding: 12px; background: #fff; border: 1px solid var(--sc-line); box-shadow: 0 10px 28px rgba(31, 18, 51, .08); }

/* Tables: wrapped in .ab-table (see newsberg_aboutus_clean_content) so
   wide ones scroll sideways on phones. Old inline widths are released. */
.ab .ab-content .ab-table {
	margin: 8px 0 28px;
	overflow-x: auto;
	border: 1px solid var(--sc-line);
	border-radius: 16px;
	background: #fff;
}
.ab .ab-content table {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse !important;
}
.ab .ab-content table colgroup col { width: auto !important; }
.ab .ab-content table th,
.ab .ab-content table td {
	padding: 13px 18px !important;
	border: 0 !important;
	border-bottom: 1px solid #f1ebfa !important;
	font-size: 15px !important;
	line-height: 1.6;
	vertical-align: top;
	text-align: left !important;
}
.ab .ab-content table th { background: var(--sc-purple); color: #fff !important; font-weight: 700; white-space: nowrap; }
.ab .ab-content table tr:last-child td { border-bottom: 0 !important; }
.ab .ab-content table tbody tr:nth-child(even) { background: #fbf9fe; }
.ab .ab-content table tbody tr:hover { background: #f5effc; }
.ab .ab-content table td:first-child { width: 64px; text-align: center !important; font-weight: 700; color: var(--sc-purple); white-space: nowrap; }
.ab .ab-content table th:first-child { text-align: center !important; }
.ab .ab-content table td:last-child:not(:first-child) { color: var(--sc-muted); }

/* ---------- Previous / next ---------- */
.ab-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.ab-pager-link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 22px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--sc-line);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ab-pager-link:hover { border-color: #d9c7ef; box-shadow: 0 14px 30px rgba(106, 13, 173, .1); transform: translateY(-2px); }
.ab-pager-link.is-next { text-align: right; align-items: flex-end; }
.ab-pager-dir { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sc-purple); }
.ab-pager-dir i { font-size: 11px !important; }
.ab-pager-title { font-size: 15.5px !important; font-weight: 700; line-height: 1.5; color: var(--sc-ink); }

/* ---------- Section overview ---------- */
.ab-explore { padding: 72px 0 88px; background: #fff; border-top: 1px solid var(--sc-line); }
.ab-explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.ab-explore-card {
	display: flex;
	flex-direction: column;
	padding: 24px 22px;
	border-radius: 20px;
	background: #faf7fd;
	border: 1px solid var(--sc-line);
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.ab-explore-card:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 18px 40px rgba(31, 18, 51, .1); }
.ab-explore-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-bottom: 16px;
	border-radius: 14px;
	background: linear-gradient(135deg, #8a2be2, var(--sc-purple));
	color: #fff;
	box-shadow: 0 10px 22px rgba(106, 13, 173, .25);
}
.ab-explore-icon i { font-size: 19px !important; }
.ab .ab-explore-card h3 { margin: 0 0 12px; font-size: 17px !important; font-weight: 700; line-height: 1.4; }
.ab-explore-card h3 a { color: var(--sc-ink) !important; }
.ab-explore-card h3 a:hover { color: var(--sc-purple) !important; }
.ab-explore-card ul { list-style: none; margin: 0 0 14px; padding: 0; }
.ab-explore-card li a {
	display: block;
	padding: 5px 0;
	font-size: 14px !important;
	line-height: 1.5;
	color: var(--sc-text) !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ab-explore-card li a:hover { color: var(--sc-purple) !important; }
.ab-explore-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px !important; font-weight: 700; color: var(--sc-purple) !important; }
.ab-explore-more i { font-size: 11px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ab-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
	.ab-content { padding: 36px 36px; }
	.ab-hero-photo, .ab-hero:not(.is-root) .ab-hero-photo { width: 60%; opacity: .55; }
}
@media (max-width: 900px) {
	.ab-hero { padding: 28px 0 88px; }
	.ab-hero-photo { display: none; }
	.ab-layout { grid-template-columns: 1fr; gap: 16px; margin-top: -56px; padding-bottom: 56px; }
	.ab-side { position: relative; top: auto; z-index: 5; }
	.admin-bar .ab-side { top: auto; }
	.ab-side-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 14px 18px;
		border-radius: 16px;
		border: 1px solid var(--sc-line);
		background: #fff;
		box-shadow: 0 12px 30px rgba(31, 18, 51, .08) !important;
		color: var(--sc-ink);
		font-size: 15px !important;
		font-weight: 700;
		cursor: pointer;
	}
	.ab-side-toggle span { display: inline-flex; align-items: center; gap: 10px; }
	.ab-side-toggle span i { color: var(--sc-purple); }
	.ab-side-caret { transition: transform .2s ease; color: var(--sc-muted); }
	.ab-side-toggle[aria-expanded="true"] .ab-side-caret { transform: rotate(180deg); }
	.ab-side-nav { display: none; max-height: none; margin-top: 8px; }
	.ab-side-nav.is-open { display: block; }
	.ab-content { padding: 28px 22px; border-radius: 18px; }
	.ab .ab-content p { font-size: 16px !important; line-height: 1.9; }
}
@media (max-width: 640px) {
	.ab-wrap { padding: 0 16px; }
	.ab-crumbs span { max-width: 26ch; }
	.ab .ab-content table th,
	.ab .ab-content table td { padding: 11px 12px !important; font-size: 14px !important; }
	.ab-pager { grid-template-columns: 1fr; }
	.ab-pager-link.is-next { text-align: left; align-items: flex-start; }
	.ab-facts li { min-width: 0; flex: 1 1 30%; padding: 10px 12px; }
	.ab-facts strong { font-size: 24px !important; }
	.ab-explore { padding: 56px 0 64px; }
}
@media (prefers-reduced-motion: reduce) {
	.ab *, .ab *::before, .ab *::after { transition: none !important; }
}

/* Tables, desktop: keep the short last column (position / title) on one line. */
@media (min-width: 641px) {
	.ab .ab-content table td:last-child:not(:first-child) { white-space: nowrap; }
}
/* Tables, phones: each row becomes a compact card — the number on the
   left, the remaining cells stacked beside it. */
@media (max-width: 640px) {
	.ab .ab-content .ab-table { border: 0; background: transparent; overflow: visible; }
	.ab .ab-content table thead { display: none; }
	.ab .ab-content table,
	.ab .ab-content table tbody { display: block; }
	.ab .ab-content table tr {
		display: grid;
		grid-template-columns: 36px minmax(0, 1fr);
		column-gap: 8px;
		margin-bottom: 8px;
		padding: 12px 14px;
		border: 1px solid var(--sc-line);
		border-radius: 14px;
		background: #fff !important;
	}
	.ab .ab-content table td {
		grid-column: 2;
		padding: 0 !important;
		border: 0 !important;
		width: auto !important;
		text-align: left !important;
		white-space: normal !important;
	}
	.ab .ab-content table td:first-child { grid-column: 1; grid-row: 1 / span 9; width: auto; text-align: left !important; }
	.ab .ab-content table td:not(:first-child) + td { margin-top: 4px; font-size: 13.5px !important; }
}

/* Old pages use a bold-only paragraph as a sub-heading. */
.ab .ab-content p:has(> strong:only-child) { margin-top: 30px; margin-bottom: 12px; font-size: 17px !important; line-height: 1.6; color: var(--sc-ink); }
.ab .ab-content > p:first-child:has(> strong:only-child) { margin-top: 0; }
@media (max-width: 640px) {
	.ab .ab-eyebrow { align-items: flex-start; font-size: 11px !important; letter-spacing: .1em; line-height: 1.5; }
	.ab .ab-eyebrow i { margin-top: 2px; }
	.ab-facts { gap: 8px; }
	.ab-facts span { font-size: 11.5px !important; line-height: 1.35; }
	.ab .ab-lead { font-size: 15.5px !important; }
}

/* ---------- [dfct_order] official order card ---------- */
.ab .dfct-order {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	margin: 0 0 32px;
	padding: 26px 28px;
	border-radius: 22px;
	background: linear-gradient(125deg, #3a0766 0%, #4b0880 45%, var(--sc-purple) 100%);
	color: #fff;
	box-shadow: 0 20px 44px rgba(75, 8, 128, .25);
}
.ab .dfct-order::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 80% at 100% 0%, rgba(214, 140, 255, .4), transparent 70%); }
.ab .dfct-order-cover { display: block; aspect-ratio: 595 / 841; overflow: hidden; border-radius: 4px 10px 10px 4px; background: #fff; box-shadow: 10px 14px 28px rgba(0, 0, 0, .35); transform: perspective(900px) rotateY(-10deg); transition: transform .35s ease; text-decoration: none !important; }
.ab .dfct-order:hover .dfct-order-cover { transform: perspective(900px) rotateY(-3deg) translateY(-3px); }
.ab .dfct-order-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; }
.ab .dfct-order-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px !important; font-size: 13px !important; font-weight: 700; letter-spacing: .04em; color: #f5c451 !important; }
.ab .dfct-order-title { margin: 0 0 14px !important; font-size: 21px !important; font-weight: 800; line-height: 1.45 !important; color: #fff !important; }
.ab .dfct-order-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px !important; padding: 0 !important; }
.ab .dfct-order-meta li { display: inline-flex; align-items: center; gap: 7px; margin: 0 !important; padding: 5px 12px !important; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: 13px; color: rgba(255, 255, 255, .92); }
.ab .dfct-order-meta li::before { display: none !important; }
.ab .dfct-order-meta i { color: #f5c451; }
.ab .dfct-order-note { margin: 0 0 16px !important; font-size: 14.5px !important; line-height: 1.7 !important; color: rgba(255, 255, 255, .85) !important; }
.ab .dfct-order-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ab .dfct-order-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px !important; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); background: transparent !important; box-shadow: none !important; color: #fff !important; font-size: 14.5px !important; font-weight: 700; text-decoration: none !important; transition: background .2s ease, transform .2s ease; }
.ab .dfct-order-btn::before { display: none !important; }
.ab .dfct-order-btn:hover { background: rgba(255, 255, 255, .14) !important; transform: translateY(-2px); }
.ab .dfct-order-btn.is-primary { background: #fff !important; border-color: #fff; color: var(--sc-purple) !important; }
.ab .dfct-order-btn.is-primary:hover { background: #f3ecfb !important; }
@media (max-width: 640px) {
	.ab .dfct-order { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding: 22px 18px; text-align: center; }
	.ab .dfct-order-cover { width: 140px; transform: none; }
	.ab .dfct-order-meta, .ab .dfct-order-actions { justify-content: center; }
	.ab .dfct-order-btn { flex: 1 1 100%; justify-content: center; }
}
/* The generic ".ab-content a[href$=.pdf]" button style must not touch the card. */
.ab .ab-content .dfct-order a[href$=".pdf"]::before { content: none !important; display: none !important; }
.ab .ab-content .dfct-order .dfct-order-cover[href$=".pdf"] { display: block !important; padding: 0 !important; gap: 0 !important; border-radius: 4px 10px 10px 4px !important; background: #fff !important; box-shadow: 10px 14px 28px rgba(0, 0, 0, .35) !important; }
.ab .ab-content .dfct-order .dfct-order-btn[href$=".pdf"] { display: inline-flex !important; padding: 11px 20px !important; font-size: 14.5px !important; box-shadow: none !important; background: transparent !important; color: #fff !important; }
.ab .ab-content .dfct-order .dfct-order-btn.is-primary[href$=".pdf"] { background: #fff !important; color: var(--sc-purple) !important; }
.ab .ab-content .dfct-order .dfct-order-btn[href$=".pdf"]:hover { background: rgba(255, 255, 255, .14) !important; }
.ab .ab-content .dfct-order .dfct-order-btn.is-primary[href$=".pdf"]:hover { background: #f3ecfb !important; }
.ab .ab-content p:has(> .dfct-order) { margin: 0 !important; }

/* ---------- [dfct_board]: orders + board terms (board-now page) ---------- */
.ab .bd { display: flex; flex-direction: column; gap: 34px; min-width: 0; }
.ab .bd > *, .ab .bd-tools > *, .ab .bd-term-head { min-width: 0; }
.ab .bd .dfct-order { margin: 0; }
.ab .bd p { margin: 0 !important; }
.ab .bd-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px !important; font-size: 19px !important; font-weight: 800; color: var(--sc-ink); }
.ab .bd-h i { color: var(--sc-purple); }
.ab .bd-h-n { padding: 1px 10px; border-radius: 999px; background: var(--sc-lavender); color: var(--sc-purple); font-size: 13px; font-weight: 700; }

/* Earlier orders */
.ab .bd-olist { display: grid; gap: 10px; }
.ab .bd-o { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--sc-line); border-radius: 14px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.ab .bd-o:hover { border-color: #d9c6ef; box-shadow: 0 10px 24px rgba(31, 18, 51, .07); }
.ab .bd-o-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sc-lavender); color: var(--sc-purple); font-size: 18px; }
.ab .bd-o-no { font-size: 13px !important; font-weight: 700; color: var(--sc-purple); line-height: 1.5 !important; }
.ab .bd-o-title { font-size: 15.5px !important; font-weight: 600; color: var(--sc-ink); line-height: 1.55 !important; }
.ab .ab-content .bd-o-btn,
.ab .ab-content .bd-o-btn[href$=".pdf"] { display: inline-flex !important; align-items: center; gap: 8px; padding: 9px 16px !important; border-radius: 999px; border: 1.5px solid #d9c6ef; background: #fff !important; box-shadow: none !important; color: var(--sc-purple) !important; font-size: 14px !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; transform: none; }
.ab .ab-content .bd-o-btn::before { content: none !important; display: none !important; }
.ab .ab-content .bd-o-btn:hover,
.ab .ab-content .bd-o-btn[href$=".pdf"]:hover { background: var(--sc-purple) !important; border-color: var(--sc-purple); color: #fff !important; }

/* Term section */
.ab .bd-term { padding: 26px 26px 28px; border: 1px solid var(--sc-line); border-radius: 22px; background: linear-gradient(180deg, #faf7fd 0, #fff 140px); }
.ab .bd-term.is-upcoming { border-style: dashed; border-color: #e9c98c; background: linear-gradient(180deg, #fffaf0 0, #fff 140px); }
.ab .bd-term-head { margin: 0 0 22px; }
.ab .bd-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.ab .bd-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ab .bd-badge.is-current { background: #e6f6ea; color: #1a7f37; }
.ab .bd-badge.is-current::before { box-shadow: 0 0 0 0 rgba(26, 127, 55, .5); animation: bd-pulse 2s infinite; }
.ab .bd-badge.is-upcoming { background: #fff1d6; color: #9a5b00; }
@keyframes bd-pulse { 70% { box-shadow: 0 0 0 7px rgba(26, 127, 55, 0); } 100% { box-shadow: 0 0 0 0 rgba(26, 127, 55, 0); } }
.ab .ab-content .bd .bd-term-title { margin: 0 0 10px !important; font-size: 24px !important; font-weight: 800; line-height: 1.4 !important; color: var(--sc-ink); }
.ab .bd-term-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.ab .bd-term-meta > * { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--sc-line); font-size: 13.5px; color: var(--sc-text); }
.ab .bd-term-meta i { color: var(--sc-purple); }
.ab .ab-content .bd-term-meta a.bd-term-order,
.ab .ab-content .bd-term-meta a.bd-term-order[href$=".pdf"] { display: inline-flex !important; gap: 7px; padding: 5px 12px !important; border-radius: 999px; background: #fff !important; box-shadow: none !important; color: var(--sc-purple) !important; font-size: 13.5px !important; font-weight: 700; text-decoration: none !important; transform: none; }
.ab .ab-content .bd-term-meta a.bd-term-order::before { content: none !important; display: none !important; }
.ab .ab-content .bd-term-meta a.bd-term-order:hover,
.ab .ab-content .bd-term-meta a.bd-term-order[href$=".pdf"]:hover { border-color: var(--sc-purple); background: var(--sc-lavender) !important; box-shadow: none !important; }

/* Leaders */
.ab .bd-leads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; margin: 0 0 22px; }
.ab .bd-lead { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; background: linear-gradient(125deg, #3a0766 0%, #4b0880 50%, var(--sc-purple) 100%); color: #fff; box-shadow: 0 14px 30px rgba(75, 8, 128, .2); }
.ab .bd-lead-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #f5c451; font-size: 20px; }
.ab .bd-lead-pos { font-size: 12.5px !important; font-weight: 700; letter-spacing: .04em; color: #f5c451 !important; line-height: 1.5 !important; }
.ab .bd-lead-name { font-size: 16.5px !important; font-weight: 700; line-height: 1.5 !important; color: #fff !important; }
.ab .bd-lead-aff { font-size: 13.5px !important; line-height: 1.55 !important; color: rgba(255, 255, 255, .8) !important; }

/* Tools */
.ab .bd-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 16px; }
.ab .bd-search { position: relative; flex: 1 1 260px; max-width: 360px; margin: 0; }
.ab .bd-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--sc-muted); font-size: 14px; pointer-events: none; z-index: 2; }
.ab .bd-search i::before { font-family: "Font Awesome 6 Free" !important; font-weight: 900; }
.ab .bd-search input { width: 100%; height: 44px; margin: 0; padding: 0 16px 0 40px !important; border: 1px solid var(--sc-line) !important; border-radius: 999px !important; background: #fff !important; font-size: 15px !important; color: var(--sc-ink); box-shadow: none !important; }
.ab .bd-search input:focus { outline: none; border-color: var(--sc-purple) !important; box-shadow: 0 0 0 3px rgba(106, 13, 173, .12) !important; }
.ab .bd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ab .bd-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; margin: 0; padding: 0 14px !important; border: 1px solid var(--sc-line) !important; border-radius: 999px !important; background: #fff !important; color: var(--sc-text) !important; font-size: 14px !important; font-weight: 600; line-height: 1 !important; cursor: pointer; box-shadow: none !important; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.ab .bd-chip span { padding: 2px 8px; border-radius: 999px; background: var(--sc-lavender); color: var(--sc-purple); font-size: 12px; }
.ab .bd-chip:hover { border-color: #d9c6ef !important; color: var(--sc-purple) !important; }
.ab .bd-chip.is-active { background: var(--sc-purple) !important; border-color: var(--sc-purple) !important; color: #fff !important; }
.ab .bd-chip.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }

/* Members: one compact list, position on the right */
.ab .bd-list { border: 1px solid var(--sc-line); border-radius: 16px; background: #fff; overflow: hidden; }
.ab .bd-m { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 18px; border-top: 1px solid #f1ecf7; transition: background .15s ease; }
.ab .bd-m:first-child { border-top: 0; }
.ab .bd-m[hidden] { display: none; }
.ab .bd-m:hover { background: #fbf8fe; }
.ab .bd-m.is-lead { background: #faf6fe; }
.ab .bd-m-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sc-lavender); color: var(--sc-purple); font-size: 13.5px; font-weight: 800; }
.ab .bd-m.is-lead .bd-m-no { background: var(--sc-purple); color: #fff; }
.ab .bd-m-pos { justify-self: end; padding: 3px 12px; border-radius: 999px; background: #f4f1f8; color: var(--sc-muted); font-size: 12.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.ab .bd-m.is-lead .bd-m-pos { background: #f5c451; color: #3a0766; }
.ab .bd-m-name { font-size: 15.5px !important; font-weight: 700; line-height: 1.55 !important; color: var(--sc-ink); }
.ab .bd-m-aff { font-size: 13.5px !important; line-height: 1.55 !important; color: var(--sc-muted); }
.ab .bd-none, .ab .bd-empty { padding: 22px; border: 1px dashed var(--sc-line); border-radius: 14px; text-align: center; color: var(--sc-muted); font-size: 15px !important; }
.ab .bd-list + .bd-none { margin-top: 10px !important; }
.ab .bd-none[hidden] { display: none; }
.ab .bd-empty i { color: #c98a0b; margin-right: 6px; }

/* Past terms */
.ab .bd-past-list { display: grid; gap: 10px; }
.ab .bd-past-item { border: 1px solid var(--sc-line); border-radius: 14px; background: #fff; transition: border-color .2s ease; }
.ab .bd-past-item > summary,
.ab .ab-content a.bd-past-link { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; color: var(--sc-ink) !important; text-decoration: none !important; }
.ab .bd-past-item > summary::-webkit-details-marker { display: none; }
.ab .bd-past-item:hover { border-color: #d9c6ef; }
.ab .bd-past-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #f4f1f8; color: var(--sc-muted); }
.ab .bd-past-text strong { display: block; font-size: 15.5px; font-weight: 700; color: var(--sc-ink); }
.ab .bd-past-text small { display: block; font-size: 13px; color: var(--sc-muted); }
.ab .bd-past-caret { color: var(--sc-muted); transition: transform .2s ease, color .2s ease; }
.ab .bd-past-item[open] .bd-past-caret { transform: rotate(180deg); }
.ab .ab-content a.bd-past-link:hover .bd-past-caret { color: var(--sc-purple); transform: translateX(3px); }
.ab .bd-past-body { padding: 4px 16px 16px; }

@media (max-width: 640px) {
	.ab .bd { gap: 26px; }
	.ab .bd-term { padding: 20px 16px 22px; border-radius: 18px; }
	.ab .ab-content .bd .bd-term-title { font-size: 20px !important; }
	.ab .bd-m { grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; align-items: start; }
	.ab .bd-m-no { grid-row: span 2; width: 30px; height: 30px; font-size: 12.5px; }
	.ab .bd-m-pos { grid-column: 2; grid-row: 1; justify-self: start; padding: 1px 10px; font-size: 12px; }
	.ab .bd-m-body { grid-column: 2; }
	.ab .bd-search { max-width: none; }
	.ab .bd-chips { flex: 1 1 100%; width: 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.ab .bd-chip { flex: 0 0 auto; }
	.ab .bd-o { grid-template-columns: 40px minmax(0, 1fr); }
	.ab .ab-content .bd-o-btn { grid-column: 1 / -1; justify-content: center; }
	.ab .bd-lead { padding: 16px; }
}

/* Grid item: never let wide content (order card, chips) stretch the column. */
.ab .ab-main { min-width: 0; }
