.pcpf-md { --navy:#202e58; --mint:#71e8ca; --grey:#eee; --steel:#c3d0dc; font-family: inherit; color:#333; }
.pcpf-md * { box-sizing: border-box; }
.pcpf-md { padding: 40px 0; }
@media (max-width: 800px) { .pcpf-md { padding: 24px 0; } }
.pcpf-md-form { background: var(--grey); padding: 24px; margin-bottom: 20px; }
.pcpf-md-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; margin-bottom: 20px; }
.pcpf-md-q { flex: 1 1 320px; }
.pcpf-md-h { display: block; font-size: 22px; margin-bottom: 8px; color: #444; }
.pcpf-md-q input[type=search] { width: 100%; padding: 14px 16px; font-size: 16px; border: 1px solid #ccc; background: #fff; }
.pcpf-md-check { font-size: 16px; padding-bottom: 14px; }
.pcpf-md-group { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.pcpf-md-group legend { font-size: 22px; color: #444; padding: 0; margin-bottom: 10px; }
.pcpf-md-group legend span { font-size: 14px; color: #777; }
.pcpf-md-group ul { list-style: none; margin: 0; padding: 14px 16px; background: #fff; column-width: 210px; column-gap: 24px; }
.pcpf-md-group li { break-inside: avoid; margin: 0 0 8px; }
.pcpf-md-group label { cursor: pointer; font-size: 15px; display: flex; gap: 8px; align-items: flex-start; }
.pcpf-md-group input[type=checkbox], .pcpf-md-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.pcpf-md-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pcpf-md-btn { display: inline-block; padding: 14px 24px; background: var(--steel); color: var(--navy) !important; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; text-decoration: none; }
.pcpf-md-btn:hover, .pcpf-md-btn:focus-visible { background: var(--navy); color: #fff !important; }
.pcpf-md-go { background: var(--mint); }
.pcpf-md a:focus-visible, .pcpf-md button:focus-visible, .pcpf-md input:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.pcpf-md-count { font-size: 16px; margin: 0 0 12px; }
.pcpf-md-az { display: flex; flex-wrap: nowrap; gap: 3px; margin-bottom: 12px; }
/* desktop: 26 letters share one row evenly, so there is never an orphaned Z */
.pcpf-md-az a { flex: 1 1 0; min-width: 0; padding: 6px 0; text-align: center; font-size: 14px; }
.pcpf-md-pages a { padding: 6px 10px; background: var(--grey); color: var(--navy); text-decoration: none; font-weight: 600; }
.pcpf-md-az a { background: var(--grey); color: var(--navy); text-decoration: none; font-weight: 600; }
.pcpf-md-az a:nth-child(n+27) { flex: 0 0 auto; padding: 6px 10px; } /* the "All" reset link */
.pcpf-md-az a.on, .pcpf-md-pages a.on, .pcpf-md-sort a.on { background: var(--navy); color: #fff; }
.pcpf-md-sort { margin: 0 0 16px; }
.pcpf-md-sort a { padding: 4px 10px; margin-left: 6px; color: var(--navy); text-decoration: none; background: var(--grey); }
.pcpf-md-region .WP-ml-field-value { color: #666; font-size: 13px; }
.pcpf-md-pages { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 20px; }
@media (max-width: 600px) { .pcpf-md-form { padding: 16px; } .pcpf-md-h, .pcpf-md-group legend { font-size: 19px; } }

/* Results table */
.pcpf-md .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pcpf-md-tablewrap { overflow-x: auto; }
.pcpf-md-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 16px; }
.pcpf-md-table thead { background: var(--navy); } /* background on the row group, not the cells, so there are no hairline seams between cells */
.pcpf-md-table thead th, .pcpf-md-table thead td { background: transparent; color: #fff; text-align: left; padding: 12px 14px; font-weight: 700; border: 0 !important; box-shadow: none; }
.pcpf-md-table thead th a { color: #fff; text-decoration: none; }
.pcpf-md-table thead th a:hover, .pcpf-md-table thead th a:focus-visible { text-decoration: underline; }
.pcpf-md-table thead th a.on { color: var(--mint); }
.pcpf-md-table tbody tr { border-bottom: 1px solid #ddd; }
.pcpf-md-table tbody tr:nth-child(even) { background: #f7f7f7; }
/* The theme has a global `table tr:hover td { background: #fafafa }` that whitens every <td> but not the <th> name cell; override with one row-level hover */
.pcpf-md-table tbody tr:hover { background: #e6f6f1; }
.pcpf-md-table tbody tr:hover td, .pcpf-md-table tbody tr:hover th { background-color: transparent; }
.pcpf-md-table tbody th, .pcpf-md-table tbody td { padding: 10px 14px; text-align: left; vertical-align: middle; font-weight: 400; border: 0; background: transparent; }
.pcpf-md-table tbody th, .pcpf-md-table thead th { font-family: inherit; } /* theme forces Arial on every <th> */
.pcpf-md-table tbody th a { font-weight: 700; color: var(--navy); text-decoration: none; }
.pcpf-md-table tbody th a:hover { text-decoration: underline; }
@media (max-width: 700px) {
	.pcpf-md-table thead { position: absolute; left: -9999px; }
	.pcpf-md-table, .pcpf-md-table tbody { display: block; width: 100%; background: none; }
	/* each member: name, firm and company type stacked */
	.pcpf-md-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 3px; align-items: start; padding: 16px 4px; background: none !important; border-bottom: 1px solid #ddd; }
	.pcpf-md-table tbody th, .pcpf-md-table tbody td { display: block; grid-column: 1; padding: 0; width: auto; }
	.pcpf-md-table tbody th a { font-size: 18px; line-height: 1.25; }
	.pcpf-md-table td[data-label="Firm"] { color: #333; font-size: 16px; }
	.pcpf-md-table td[data-label="Company type"] { font-size: 14px; color: #555; }
	.pcpf-md-table td[data-label="Company type"]::before { content: attr(data-label) ": "; font-weight: 700; color: #777; }
	.pcpf-md-table td:empty { display: none; }
	/* A-Z: one scrollable line instead of three wrapped rows */
	.pcpf-md-az { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin; }
	.pcpf-md-az a { flex: none; scroll-snap-align: start; min-width: 40px; text-align: center; padding: 10px 6px; }
}

/* Page wrapper (template). The theme's .sixteen.columns is 100% wide plus a 15px margin, which makes the page scroll sideways. */
.pcpf-md-wrap { max-width: 1180px; padding: 0 15px; box-sizing: border-box; }
/* Single column: heading, then ONE grey search panel (title + the two list buttons on the header row, search form below), then the results */
.pcpf-md-panel { background: var(--grey); padding: 20px 24px; margin: 0 0 22px; }
.pcpf-md-panelhead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 14px; }
.pcpf-md-title { font-size: 20px; margin: 0; color: #444; line-height: 1.2; }
.pcpf-md-views { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pcpf-md-views .pcpf-md-btn { flex: 0 0 auto; padding: 11px 20px; text-align: center; font-size: 15px; line-height: 1.25; }
.pcpf-md-btn.is-on { background: var(--navy); color: #fff !important; }
.pcpf-md-side { background: none; padding: 0; margin: 0; }
.pcpf-md-sidehead, .pcpf-md-sheettitle { display: none; } /* the sheet's own title and close button: only used on phones */
.pcpf-md-form { background: none; padding: 0; margin: 0; }
.pcpf-md-row1 { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 14px; margin: 0 0 12px; }
.pcpf-md-row1 .pcpf-md-q { flex: 1 1 280px; margin: 0; display: block; }
.pcpf-md-row1 .pcpf-md-q input[type=search] { width: 100%; height: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; border: 1px solid #ccc; background: #fff; margin: 0; }
.pcpf-md-actions { display: flex; align-items: center; gap: 14px; margin: 0; }
.pcpf-md-actions .pcpf-md-btn { min-height: 50px; }
.pcpf-md-clear { color: var(--navy); font-size: 14px; }
.pcpf-md-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.pcpf-md-group { background: #fff; margin: 0; border: 0; padding: 0; }
.pcpf-md-group summary { cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--navy); font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pcpf-md-group summary::-webkit-details-marker { display: none; }
.pcpf-md-group summary::after { content: "+"; font-size: 20px; line-height: 1; }
.pcpf-md-group[open] summary::after { content: "\2212"; }
.pcpf-md-n { margin-left: auto; margin-right: 10px; background: var(--mint); color: var(--navy); border-radius: 10px; padding: 0 8px; font-size: 13px; }
.pcpf-md-group ul { column-width: 170px; column-gap: 20px; padding: 4px 14px 12px; max-height: 340px; overflow-y: auto; }
.pcpf-md-close { background: none; border: 0; font-size: 34px; line-height: 1; color: var(--navy); cursor: pointer; padding: 0 4px; }
.pcpf-md-toggle, .pcpf-md-overlay { display: none; }

/* Heading in the theme's #subtitle block: same look as the other pages' h3 titles */
.pcpf-md #subtitle { margin: 0 0 16px; }
.pcpf-md #subtitle h1 { padding: 10px 0; margin: 0; line-height: 40px; letter-spacing: 0; font-size: 21px; font-weight: 600 !important; color: #022B58; border-bottom: 1px solid #CBCBCB; }
.pcpf-md-intro { margin: 0 0 16px; }

/* Small screens: only the two list buttons stay on the page; the search form becomes an off-screen sheet opened by the "Search & filter" button */
@media (max-width: 800px) {
	.pcpf-md { display: flex; flex-direction: column; }
	.pcpf-md-head { order: 0; } .pcpf-md-panel { order: 1; } .pcpf-md-toggle { order: 2; } .pcpf-md-overlay { order: 2; } .pcpf-md-main { order: 4; }
	.pcpf-md-panel { background: none; padding: 0; margin: 0 0 12px; }
	.pcpf-md-panelhead { margin: 0; }
	.pcpf-md-panelhead .pcpf-md-title { display: none; }
	.pcpf-md-views { width: 100%; }
	.pcpf-md-views .pcpf-md-btn { flex: 1 1 110px; padding: 12px 6px; font-size: 14px; }
	.pcpf-md-side { background: var(--grey); padding: 20px; margin: 12px 0 0; }
	.pcpf-md-filters { grid-template-columns: 1fr; }
	.pcpf-md-group ul { columns: 1; column-width: auto; }
	.pcpf-md-row1 .pcpf-md-q { flex: 1 1 100%; }
	.pcpf-md.is-sheet .pcpf-md-sidehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 0 0 12px; }
	.pcpf-md.is-sheet .pcpf-md-sheettitle { display: block; font-size: 20px; margin: 0; color: #444; line-height: 1.2; }
	.pcpf-md.is-sheet .pcpf-md-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 0 0 16px; padding: 14px 20px; background: var(--mint); color: var(--navy); font-weight: 700; font-size: 17px; border: 0; cursor: pointer; }
	.pcpf-md.is-sheet .pcpf-md-toggle[hidden], .pcpf-md.is-sheet .pcpf-md-overlay[hidden] { display: none; }
	.pcpf-md.is-sheet .pcpf-md-overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 100000; }
	.pcpf-md.is-sheet .pcpf-md-side { position: fixed; top: 0; left: 0; bottom: 0; width: min(88vw, 360px); margin: 0; z-index: 100001; overflow-y: auto; overscroll-behavior: contain;
		transform: translateX(-102%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: 4px 0 24px rgba(0, 0, 0, .3); }
	.pcpf-md.is-sheet.is-open .pcpf-md-side { transform: none; visibility: visible; transition: transform .25s ease; }
}
@media (prefers-reduced-motion: reduce) { .pcpf-md.is-sheet .pcpf-md-side { transition: none !important; } }
body.pcpf-md-lock { overflow: hidden; }

/* Mobile: keep the Search & filter button on screen while scrolling the results */
@media (max-width: 800px) {
	.pcpf-md.is-sheet .pcpf-md-toggle { position: sticky; top: 0; z-index: 900; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
	body.admin-bar .pcpf-md.is-sheet .pcpf-md-toggle { top: 32px; }
}
@media (max-width: 782px) { body.admin-bar .pcpf-md.is-sheet .pcpf-md-toggle { top: 46px; } }
