.directory { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.directory-side { display: flex; flex-direction: column; gap: 32px; }
.chips { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.chips a { display: block; line-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--mist); color: var(--ink); text-decoration: none; }
.chips a:hover { background: #E0E8ED; color: var(--ink); }
.chips a[aria-current] { background: var(--ink); color: #fff; }
.directory-found { padding-bottom: 18px; }
.directory-credit { padding-top: 28px; font-size: 15px; color: var(--muted); }

.listing-row { border-top: 1px solid var(--line); padding: 18px 0; }
.listing-row:last-of-type { border-bottom: 1px solid var(--line); }
.listing-row p { max-width: 40em; padding-top: 4px; text-wrap: pretty; }
.listing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; }
.listing-head h2 { font: 600 21px/1.3 var(--wp--preset--font-family--body); letter-spacing: 0; }
.listing-head a { text-decoration: none; }
.listing-head a:hover { text-decoration: underline; }
.listing-head span { color: var(--muted); }
.listing-row summary { display: inline-block; line-height: 44px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none; }
.listing-row summary::-webkit-details-marker { display: none; }
.listing-row--promoted { border: 0; border-radius: 24px; background: var(--soft); padding: 20px 24px; margin-bottom: 18px; }
.listing-row--promoted + .listing-row { border-top: 0; }
.promoted { display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; }

.details { margin: 4px 0 8px; padding: 20px 24px; border-radius: 20px; background: #EAF1F4; display: grid; gap: 6px; }
.details div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
.details dt { font-weight: 600; }
.details dd { margin: 0; }

.listing { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px 72px; align-items: start; }
.listing-main { display: flex; flex-direction: column; gap: 24px; font-size: 18px; }
.listing-main img { width: 100%; height: auto; border-radius: 24px; }

.pages { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 28px; }
.pages .page-numbers { min-width: 44px; line-height: 44px; text-align: center; padding: 0 6px; box-sizing: border-box; border-radius: 22px; text-decoration: none; }
.pages .current { background: var(--ink); color: #fff; }

.rows--2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 4px 40px; }
.rows--2 .row { gap: 16px; }
.rows--2 .row-icon, .rows--2 .row-icon svg { width: 60px; height: 60px; }
.rows--2 .row-text strong { font-size: 19px; }
.row-icon--food, .row-icon--gifts, .row-icon--sport { background: var(--wp--preset--color--butter); }
.row-icon--house, .row-icon--getting-about, .row-icon--beauty { background: var(--wp--preset--color--mint); }
.row-icon--health, .row-icon--animals, .row-icon--property { background: var(--wp--preset--color--coral); }
.row-icon--children, .row-icon--mending, .row-icon--clothes { background: var(--wp--preset--color--sky); }

@media (max-width: 900px) {
	.directory, .listing { grid-template-columns: minmax(0, 1fr); }
	.chips { flex-direction: row; flex-wrap: wrap; }
	.directory-side { display: contents; }
	.directory-side .box { order: 2; }
	.details div { grid-template-columns: 1fr; gap: 0; }
}
