/*
 * Better (Sankofa child) — shared component styles.
 * Design tokens (color/type/spacing) live in theme.json as WP presets;
 * this file covers the bespoke editorial layout Sankofa's own styles
 * don't anticipate: header/footer, eyebrows, chips, cards, bands, forms.
 */

body {
	overflow-x: hidden;
}

a {
	text-decoration: none;
}

* {
	box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
	color: var(--wp--preset--color--faint);
}

/* -------------------------------------------------------------- header */

.better-header .wp-block-navigation {
	flex-wrap: wrap;
}

.better-header__brand {
	flex: 0 1 auto;
	min-width: 0;
}

.better-site-logo {
	line-height: 0;
}

.better-site-logo img {
	display: block;
	height: auto;
	max-width: 100%;
}

.better-header .better-site-logo img {
	max-height: 48px;
	width: auto;
}

.better-header .wp-block-navigation-item > a,
.better-header .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0;
}

.better-nav-practices .is-connect > a,
.better-nav-practices .is-connect > .wp-block-navigation-item__content,
.better-nav-practices .wp-block-navigation-item:nth-child(1) > a,
.better-nav-practices .wp-block-navigation-item:nth-child(1) > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--connect) !important;
}

.better-nav-practices .is-explore > a,
.better-nav-practices .is-explore > .wp-block-navigation-item__content,
.better-nav-practices .wp-block-navigation-item:nth-child(2) > a,
.better-nav-practices .wp-block-navigation-item:nth-child(2) > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--explore) !important;
}

.better-nav-practices .is-create > a,
.better-nav-practices .is-create > .wp-block-navigation-item__content,
.better-nav-practices .wp-block-navigation-item:nth-child(3) > a,
.better-nav-practices .wp-block-navigation-item:nth-child(3) > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--create) !important;
}

.better-nav-practices .is-be > a,
.better-nav-practices .is-be > .wp-block-navigation-item__content,
.better-nav-practices .wp-block-navigation-item:nth-child(4) > a,
.better-nav-practices .wp-block-navigation-item:nth-child(4) > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--be) !important;
}

.better-nav-practices .is-give > a,
.better-nav-practices .is-give > .wp-block-navigation-item__content,
.better-nav-practices .wp-block-navigation-item:nth-child(5) > a,
.better-nav-practices .wp-block-navigation-item:nth-child(5) > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--give) !important;
}

.better-nav-practices a:hover {
	opacity: 0.72;
}

.better-nav-utility a {
	color: var(--wp--preset--color--muted);
}

.better-nav-utility a:hover,
.better-nav-utility .is-current-search a {
	color: var(--wp--preset--color--ink);
}

/* -------------------------------------------------------------- footer */

.better-footer {
	padding: 52px 40px !important;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	line-height: 2;
	color: var(--wp--preset--color--muted);
}

.better-footer a {
	color: var(--wp--preset--color--muted);
	display: block;
}

.better-footer a:hover {
	color: var(--wp--preset--color--ink);
}

.better-footer__wordmark {
	margin: 0 0 2px;
	color: var(--wp--preset--color--ink);
}

.better-footer__brand .better-site-logo {
	margin: 0 0 12px;
}

.better-footer__brand .better-site-logo img {
	max-height: 56px;
	width: auto;
}

.better-footer__col {
	display: flex;
	flex-direction: column;
}

.better-footer__col span:first-child {
	color: var(--wp--preset--color--ink);
}

/* -------------------------------------------------------------- type utilities */

.eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.kicker {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 9px;
	border: 1px solid var(--wp--preset--color--border);
	background: transparent;
	color: var(--wp--preset--color--muted);
}

.chip.is-active {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--ink);
}

.badge {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 4px 9px;
	color: var(--wp--preset--color--paper);
}

.better-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1.5px solid var(--wp--preset--color--ink);
	padding-bottom: 5px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* -------------------------------------------------------------- image placeholders */

.img-placeholder {
	background-image: repeating-linear-gradient(115deg, var(--wp--preset--color--stripe-dark) 0 12px, var(--wp--preset--color--stripe-light) 12px 24px);
	display: flex;
	align-items: flex-end;
	padding: 12px;
}

.img-placeholder__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--faint);
	background: var(--wp--preset--color--paper);
	padding: 4px 7px;
}

/* -------------------------------------------------------------- practice color utilities */

.is-connect { color: var(--wp--preset--color--connect); }
.is-explore { color: var(--wp--preset--color--explore); }
.is-create { color: var(--wp--preset--color--create); }
.is-be { color: var(--wp--preset--color--be); }
.is-give { color: var(--wp--preset--color--give); }

.bg-connect { background: var(--wp--preset--color--connect); color: var(--wp--preset--color--paper); }
.bg-explore { background: var(--wp--preset--color--explore); color: var(--wp--preset--color--paper); }
.bg-create { background: var(--wp--preset--color--create); color: var(--wp--preset--color--paper); }
.bg-be { background: var(--wp--preset--color--be); color: var(--wp--preset--color--paper); }
.bg-give { background: var(--wp--preset--color--give); color: var(--wp--preset--color--paper); }

.tint-connect { background: var(--wp--preset--color--connect-tint); }
.tint-explore { background: var(--wp--preset--color--explore-tint); }
.tint-create { background: var(--wp--preset--color--create-tint); }
.tint-be { background: var(--wp--preset--color--be-tint); }
.tint-give { background: var(--wp--preset--color--give-tint); }

.better-page [style*="background:var(--practice-c)"] h1,
.better-page [style*="background:var(--practice-c)"] h1 span,
.better-page [style*="background:var(--practice-c)"] h2,
.better-page [style*="background:var(--practice-c)"] h3,
.better-page [style*="background:var(--practice-c)"] p,
.better-page [style*="background:var(--practice-c)"] a,
.better-page [style*="background:var(--wp--preset--color--connect)"] h1,
.better-page [style*="background:var(--wp--preset--color--connect)"] h1 span,
.better-page [style*="background:var(--wp--preset--color--connect)"] h2,
.better-page [style*="background:var(--wp--preset--color--connect)"] h3,
.better-page [style*="background:var(--wp--preset--color--connect)"] p,
.better-page [style*="background:var(--wp--preset--color--connect)"] a,
.better-page [style*="background:var(--wp--preset--color--explore)"] h1,
.better-page [style*="background:var(--wp--preset--color--explore)"] h1 span,
.better-page [style*="background:var(--wp--preset--color--explore)"] h2,
.better-page [style*="background:var(--wp--preset--color--explore)"] h3,
.better-page [style*="background:var(--wp--preset--color--explore)"] p,
.better-page [style*="background:var(--wp--preset--color--explore)"] a,
.better-page [style*="background:var(--wp--preset--color--create)"] h1,
.better-page [style*="background:var(--wp--preset--color--create)"] h1 span,
.better-page [style*="background:var(--wp--preset--color--create)"] h2,
.better-page [style*="background:var(--wp--preset--color--create)"] h3,
.better-page [style*="background:var(--wp--preset--color--create)"] p,
.better-page [style*="background:var(--wp--preset--color--create)"] a,
.better-page [style*="background:var(--wp--preset--color--be)"] h1,
.better-page [style*="background:var(--wp--preset--color--be)"] h1 span,
.better-page [style*="background:var(--wp--preset--color--be)"] h2,
.better-page [style*="background:var(--wp--preset--color--be)"] h3,
.better-page [style*="background:var(--wp--preset--color--be)"] p,
.better-page [style*="background:var(--wp--preset--color--be)"] a,
.better-page [style*="background:var(--wp--preset--color--give)"] h1,
.better-page [style*="background:var(--wp--preset--color--give)"] h1 span,
.better-page [style*="background:var(--wp--preset--color--give)"] h2,
.better-page [style*="background:var(--wp--preset--color--give)"] h3,
.better-page [style*="background:var(--wp--preset--color--give)"] p,
.better-page [style*="background:var(--wp--preset--color--give)"] a,
.better-page [style*="background:var(--wp--preset--color--ink)"] h1,
.better-page [style*="background:var(--wp--preset--color--ink)"] h2,
.better-page [style*="background:var(--wp--preset--color--ink)"] h3,
.better-page [style*="background:var(--wp--preset--color--ink)"] p,
.better-page [style*="background:var(--wp--preset--color--ink)"] a,
.theme-map [style*="background:var(--wp--preset--color--explore)"] h1,
.theme-map [style*="background:var(--wp--preset--color--explore)"] h1 span,
.theme-map [style*="background:var(--wp--preset--color--explore)"] h2,
.theme-map [style*="background:var(--wp--preset--color--explore)"] h3,
.theme-map [style*="background:var(--wp--preset--color--explore)"] p,
.theme-map [style*="background:var(--wp--preset--color--explore)"] a {
	color: #F8F3E4 !important;
}

/* -------------------------------------------------------------- buttons / forms */

.better-field {
	width: 100%;
	background: transparent;
	border: 1px solid var(--wp--preset--color--border);
	padding: 14px 16px;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 16px;
	color: var(--wp--preset--color--ink);
}

.better-field:focus {
	outline: none;
	border-color: var(--wp--preset--color--ink);
}

.better-label {
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 8px;
}

/* -------------------------------------------------------------- practice bands (accordion) */

.practice-band {
	border-top: 1px solid var(--wp--preset--color--ink);
}

.practice-band__toggle {
	width: 100%;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) 48px;
	align-items: center;
	gap: 24px;
	padding: 30px 40px;
	font-family: inherit;
	color: inherit;
}

.practice-band__toggle:hover {
	background: var(--wp--preset--color--stripe-light);
}

.practice-band__num {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
}

.practice-band__name {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(52px, 7.2vw, 120px);
	line-height: 0.85;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.practice-band__statement {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 22px;
	font-style: italic;
	color: var(--wp--preset--color--body);
}

.practice-band__icon {
	font-family: var(--wp--preset--font-family--display);
	font-size: 34px;
	text-align: right;
	display: inline-block;
	transition: transform 0.3s;
}

.practice-band.is-open .practice-band__icon {
	transform: rotate(45deg);
}

.practice-band__panel {
	display: grid;
	grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 24px;
	padding: 0 40px 46px;
}

.practice-band__panel[hidden] {
	display: none;
}

.practice-band__lede {
	font-size: 21px;
	line-height: 1.55;
	margin: 0 0 22px;
	max-width: 52ch;
	color: var(--wp--preset--color--body);
}

.practice-band__themes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}

.practice-band__enter {
	display: inline-flex;
	gap: 10px;
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 5px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.practice-band__pieces {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.practice-band__pieces li {
	border-top: 1px solid var(--wp--preset--color--stripe-dark);
	padding-top: 12px;
}

.practice-band__pieces a {
	font-family: var(--wp--preset--font-family--display);
	font-size: 26px;
	font-weight: 500;
	text-transform: uppercase;
	line-height: 1;
}

.practice-band__piece-format {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--faint);
	margin-top: 5px;
}

/* -------------------------------------------------------------- article cards */

.better-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.better-card h3 {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: 28px;
	line-height: 1;
	text-transform: uppercase;
	margin: 0;
}

.better-card p {
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
	color: var(--wp--preset--color--faint);
}

.better-card__meta {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

/* -------------------------------------------------------------- article reading grid */

.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: transparent;
	z-index: 50;
}

.reading-progress__bar {
	height: 100%;
	background: var(--wp--preset--color--connect);
	width: 0%;
}

.article-reading-grid {
	display: grid;
	grid-template-columns: minmax(0, 240px) minmax(min(100%, 46ch), 700px) minmax(0, 240px);
	gap: 56px;
	justify-content: center;
	padding: 72px 40px 40px;
}

.article-rail {
	min-width: 0;
	overflow: hidden;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	line-height: 1.9;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	position: sticky;
	top: 44px;
	display: flex;
	flex-direction: column;
	gap: 26px;
	align-self: start;
}

.article-rail__label {
	color: var(--wp--preset--color--ink);
	border-bottom: 1px solid var(--wp--preset--color--ink);
	padding-bottom: 6px;
	margin-bottom: 8px;
}

.article-rail__byline {
	text-transform: none;
	letter-spacing: 0.02em;
}

@media (max-width: 900px) {
	.article-reading-grid {
		grid-template-columns: 1fr;
	}
	.article-rail {
		position: static;
	}
}

/* -------------------------------------------------------------- start here: picker */

.better-picker-btn {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(28px, 3vw, 44px);
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 14px 24px;
	border: 1.5px solid;
	background: transparent;
	color: currentColor;
}

.better-picker-btn.is-active {
	color: var(--wp--preset--color--ink) !important;
}

.better-picker-btn.is-connect.is-active { background: var(--wp--preset--color--connect); }
.better-picker-btn.is-explore.is-active { background: var(--wp--preset--color--explore); }
.better-picker-btn.is-create.is-active { background: var(--wp--preset--color--create); }
.better-picker-btn.is-be.is-active { background: var(--wp--preset--color--be); }
.better-picker-btn.is-give.is-active { background: var(--wp--preset--color--give); }

.better-picker-panel {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 40px 60px;
}

.better-picker-panel__step {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(30px, 3.6vw, 54px);
	line-height: 0.98;
	text-transform: uppercase;
	margin: 0;
	color: var(--wp--preset--color--paper);
}

.better-picker-panel__why {
	font-size: 19px;
	line-height: 1.6;
	margin: 0 0 26px;
	color: #CFC7B4;
}

/* -------------------------------------------------------------- all ideas: filter + list */

.ideas-layout {
	display: grid;
	grid-template-columns: 288px minmax(0, 1fr);
	border-bottom: 1px solid var(--wp--preset--color--ink);
}

.ideas-filter {
	border-right: 1px solid var(--wp--preset--color--ink);
	padding: 0 0 40px;
	align-self: start;
	position: sticky;
	top: 0;
}

.ideas-filter__section {
	padding: 22px 26px 24px;
	border-bottom: 1px solid var(--wp--preset--color--stripe-dark);
}

.ideas-filter__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 14px;
}

.ideas-filter__practice {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ideas-filter__practice button {
	cursor: pointer;
	text-align: left;
	background: transparent;
	border: 0;
	padding: 7px 10px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.ideas-filter__practice button span:last-child {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.06em;
	opacity: 0.65;
}

.ideas-filter__practice button.is-active {
	background: var(--wp--preset--color--stripe-light);
}

.idea-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
	align-items: flex-start;
	padding: 20px 40px 22px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	border-left: 5px solid var(--wp--preset--color--ink);
}

.idea-row:hover {
	background: var(--wp--preset--color--stripe-light);
}

.idea-row__practice {
	flex: 0 0 auto;
	width: 132px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	padding-top: 5px;
}

.idea-row__body {
	flex: 1 1 320px;
	min-width: min(100%, 260px);
}

.idea-row__body h3 {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(26px, 2.4vw, 34px);
	line-height: 1;
	text-transform: uppercase;
	margin: 0 0 7px;
}

.idea-row__body p {
	font-size: 17px;
	line-height: 1.45;
	margin: 0;
	color: #4A4538;
	max-width: 62ch;
}

.idea-row__chips {
	flex: 0 1 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding-top: 4px;
}

.idea-row__meta {
	flex: 0 0 auto;
	margin-left: auto;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--faint);
	text-align: right;
	padding-top: 5px;
	line-height: 1.8;
}

.ideas-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	border-left: 1px solid var(--wp--preset--color--border);
}

.idea-card {
	border-right: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 22px 26px 30px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.idea-card:hover {
	background: var(--wp--preset--color--stripe-light);
}

.idea-card__image {
	height: 132px;
	border-top: 4px solid var(--wp--preset--color--ink);
}

/* -------------------------------------------------------------- authors */

.author-row {
	width: 100%;
	cursor: pointer;
	text-align: left;
	color: inherit;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	border-left: 5px solid currentColor;
	padding: 30px 40px 34px;
	display: flex;
	flex-wrap: wrap;
	gap: 22px 34px;
	align-items: flex-start;
}

.author-row:hover {
	background: var(--wp--preset--color--stripe-light);
}

.author-row__portrait {
	flex: 0 0 auto;
	width: 132px;
	height: 158px;
}

.author-row__body {
	flex: 1 1 340px;
	min-width: min(100%, 280px);
}

.author-row__body h2 {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(38px, 4.4vw, 66px);
	line-height: 0.9;
	text-transform: uppercase;
	margin: 0 0 12px;
}

.author-row__body p {
	font-size: 18px;
	line-height: 1.5;
	margin: 0;
	color: #3A3629;
	max-width: 60ch;
}

.author-row__meta {
	flex: 0 0 auto;
	margin-left: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--faint);
	text-align: right;
}

.author-card {
	cursor: pointer;
	text-align: left;
	color: inherit;
	border: 0;
	border-right: 1px solid var(--wp--preset--color--border);
	padding: 26px 26px 32px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 230px;
}

.author-card__name {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: clamp(30px, 3vw, 44px);
	line-height: 0.92;
	text-transform: uppercase;
}

.author-profile-rail {
	border-right: 1px solid var(--wp--preset--color--stripe-dark);
	padding: 28px 32px 34px;
}

/* -------------------------------------------------------------- theme map pages (Travel, Review) */

.mono { font-family: var(--wp--preset--font-family--mono); }
.cond { font-family: var(--wp--preset--font-family--display); }

.theme-map .row:hover { background: var(--wp--preset--color--stripe-light); }

.theme-map .btn {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: transparent;
	border: 1.5px solid var(--wp--preset--color--ink);
	padding: 14px 28px;
	color: var(--wp--preset--color--ink);
}

.theme-map .btn:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }

.theme-map .place {
	width: 100%;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 18px 24px 20px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.theme-map .place:hover { background: var(--wp--preset--color--stripe-light); }

.theme-map .place[aria-current="true"] {
	background: var(--wp--preset--color--explore-tint);
	box-shadow: inset 4px 0 0 var(--wp--preset--color--explore);
}

.theme-map[data-accent="review"] .place[aria-current="true"] {
	background: var(--wp--preset--color--explore-tint);
	box-shadow: inset 4px 0 0 #C79A3A;
}

.theme-map .pin {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	font-weight: 500;
	color: #F8F3E4;
	background: #C79A3A;
	border: 1.5px solid #F8F3E4;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(23,21,15,0.4);
}

.theme-map .pin.sel {
	background: var(--wp--preset--color--ink);
	box-shadow: 0 0 0 4px rgba(23,21,15,0.18), 0 1px 4px rgba(23,21,15,0.4);
}

.theme-map .leaflet-container {
	background: var(--wp--preset--color--stripe-dark);
	font-family: var(--wp--preset--font-family--mono);
}

.theme-map .leaflet-bar a { color: var(--wp--preset--color--ink); }

.theme-map #scroller { max-height: 612px; overflow-y: auto; }

.theme-map .stars {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 15px;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--explore);
}

.theme-map .stars .off { color: var(--wp--preset--color--border); }

.theme-map .chip[aria-pressed="true"] {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

@media (max-width: 1000px) {
	.theme-map #mapwrap { grid-template-columns: minmax(0,1fr) !important; }
	.theme-map #map { height: 460px !important; }
	.theme-map #scroller { max-height: 420px; }
}

/* -------------------------------------------------------------- legal doc tabs */

nav button[data-tab-button] {
	background: transparent;
	color: var(--wp--preset--color--muted);
}

nav button[data-tab-button].is-active {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

/* -------------------------------------------------------------- search */

.better-search-field .wp-block-search__inside-wrapper {
	border: 0;
	border-bottom: 2px solid var(--wp--preset--color--ink);
	padding-bottom: 10px;
}

.better-search-field .wp-block-search__input {
	border: 0 !important;
	outline: none;
	color: var(--wp--preset--color--ink);
	background: transparent;
}

.better-search-field .wp-block-search__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 20px;
	display: block;
}

.author-profile-rail__label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 14px;
}

.better-picker-panel__cta {
	display: inline-block;
	border: 1.5px solid currentColor;
	padding: 14px 28px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* -------------------------------------------------------------- responsive repairs */

@media (max-width: 860px) {
	.better-header {
		align-items: flex-start !important;
		gap: 16px !important;
		padding: 18px 20px !important;
	}

	.better-header__brand,
	.better-header .wp-block-site-title {
		flex: 1 1 100%;
	}

	.better-header__brand .wp-block-site-title {
		flex: 0 1 auto;
	}

	.better-header .wp-block-navigation {
		width: 100%;
	}

	.better-header .wp-block-navigation__container {
		gap: 12px 18px !important;
		justify-content: flex-start !important;
	}

	.better-header .better-nav-practices {
		order: 2;
	}

	.better-header .better-nav-utility {
		order: 3;
	}

	.better-footer {
		padding: 38px 20px !important;
	}

	.better-page,
	.better-homepage,
	.theme-map,
	[data-tabs] {
		max-width: 100%;
		overflow-x: hidden;
	}

	.better-page [style*="grid-template-columns:minmax(0,1"],
	.better-homepage [style*="grid-template-columns:minmax(0,1"],
	.theme-map [style*="grid-template-columns:minmax(0,1"],
	[data-tabs] [style*="grid-template-columns:minmax(0,1"],
	.better-page [style*="grid-template-columns:repeat(2,minmax(0,1fr))"],
	.better-homepage [style*="grid-template-columns:repeat(2,minmax(0,1fr))"],
	[data-tabs] [style*="grid-template-columns:repeat(2,minmax(0,1fr))"],
	.better-page [style*="grid-template-columns:repeat(3,minmax(0,1fr))"],
	.better-homepage [style*="grid-template-columns:repeat(3,minmax(0,1fr))"],
	.better-page [style*="grid-template-columns:repeat(4,minmax(0,1fr))"],
	.better-homepage [style*="grid-template-columns:repeat(4,minmax(0,1fr))"] {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.better-page [style*="grid-template-columns:repeat(auto-fill,minmax(280px,1fr))"],
	.better-page [style*="grid-template-columns:repeat(auto-fill, minmax(290px, 1fr))"],
	.better-page [style*="grid-template-columns:repeat(auto-fit,minmax(230px,1fr))"],
	.theme-map [style*="grid-template-columns:repeat(auto-fit,minmax(230px,1fr))"] {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)) !important;
	}

	.better-page [style*="padding:"][style*="40px"],
	.better-homepage [style*="padding:"][style*="40px"],
	.theme-map [style*="padding:"][style*="40px"],
	[data-tabs] [style*="padding:"][style*="40px"] {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.better-page [style*="gap:60px"],
	.better-page [style*="gap:64px"],
	.better-homepage [style*="gap:60px"],
	.better-homepage [style*="gap:64px"],
	.theme-map [style*="gap:60px"],
	.theme-map [style*="gap:56px"],
	[data-tabs] [style*="gap:60px"],
	[data-tabs] [style*="gap:56px"] {
		gap: 28px !important;
	}

	.better-page [style*="font-size:clamp(72px"],
	.better-page [style*="font-size:clamp(84px"],
	.better-homepage [style*="font-size:clamp(64px"],
	.theme-map [style*="font-size:clamp(84px"],
	[data-tabs] [style*="font-size:clamp(84px"] {
		font-size: clamp(48px, 16vw, 76px) !important;
		letter-spacing: 0 !important;
	}

	.better-page [data-hero-word] {
		min-width: 0 !important;
		font-size: clamp(48px, 16vw, 76px) !important;
	}

	.better-homepage article[style*="grid-column:span 2"] {
		grid-column: auto !important;
		border-right: 0 !important;
	}

	.better-homepage .img-placeholder[style*="height:460px"],
	.better-page .img-placeholder[style*="height:400px"] {
		height: 280px !important;
	}

	.better-page [style*="border-right:1px solid var(--wp--preset--color--ink)"],
	.better-homepage [style*="border-right:1px solid var(--wp--preset--color--ink)"],
	.theme-map [style*="border-right:1px solid var(--wp--preset--color--ink)"],
	[data-tabs] [style*="border-right:1px solid var(--wp--preset--color--ink)"],
	.better-page [style*="border-left:1px solid var(--wp--preset--color--ink)"],
	.better-homepage [style*="border-left:1px solid var(--wp--preset--color--ink)"],
	.theme-map [style*="border-left:1px solid var(--wp--preset--color--ink)"],
	[data-tabs] [style*="border-left:1px solid var(--wp--preset--color--ink)"] {
		border-right: 0 !important;
		border-left: 0 !important;
	}

	.practice-band__toggle {
		grid-template-columns: 36px minmax(0, 1fr) 28px;
		gap: 10px 14px;
		padding: 24px 20px;
	}

	.practice-band__name {
		font-size: clamp(42px, 16vw, 68px);
	}

	.practice-band__statement {
		grid-column: 2 / -1;
		font-size: 19px;
	}

	.practice-band__icon {
		grid-column: 3;
		grid-row: 1;
		font-size: 28px;
	}

	.practice-band__panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
		padding: 0 20px 34px;
	}

	.practice-band__panel > div:first-child {
		display: none;
	}

	.ideas-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.ideas-filter {
		position: static;
		border-right: 0;
		border-bottom: 1px solid var(--wp--preset--color--ink);
		padding-bottom: 0;
	}

	.idea-row {
		padding: 18px 20px 22px;
		gap: 10px 16px;
	}

	.idea-row__practice,
	.idea-row__body,
	.idea-row__chips,
	.idea-row__meta {
		flex-basis: 100%;
		width: auto;
		min-width: 0;
		margin-left: 0;
		text-align: left;
	}

	.idea-row__meta {
		display: flex;
		gap: 14px;
	}

	.author-row {
		padding: 24px 20px 30px;
	}

	.author-row__portrait {
		width: 112px;
		height: 134px;
	}

	.author-row__meta {
		flex-basis: 100%;
		margin-left: 0;
		align-items: flex-start;
		text-align: left;
	}

	.article-reading-grid {
		padding: 44px 20px 34px;
		gap: 30px;
	}

	.theme-map #mapwrap {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.theme-map #map {
		height: 420px !important;
	}

	.theme-map #scroller {
		max-height: none;
	}
}

@media (max-width: 520px) {
	.better-header .wp-block-navigation__container {
		row-gap: 9px !important;
	}

	.better-header .wp-block-navigation-item {
		font-size: 18px !important;
	}

	.better-header .better-nav-utility .wp-block-navigation-item {
		font-size: 10.5px !important;
	}

	.better-page [style*="padding:"][style*="40px"],
	.better-homepage [style*="padding:"][style*="40px"],
	.theme-map [style*="padding:"][style*="40px"],
	[data-tabs] [style*="padding:"][style*="40px"] {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	.better-page nav[style*="padding:0 40px"],
	[data-tabs] nav[style*="padding:0 40px"] {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	.better-page [style*="font-size:clamp(60px"],
	.better-page [style*="font-size:clamp(72px"],
	.better-page [style*="font-size:clamp(84px"],
	.better-homepage [style*="font-size:clamp(64px"],
	.theme-map [style*="font-size:clamp(84px"],
	[data-tabs] [style*="font-size:clamp(84px"] {
		font-size: clamp(42px, 15vw, 64px) !important;
	}

	.better-homepage h1 {
		max-width: 8ch;
	}

	.img-placeholder__label {
		max-width: 100%;
		overflow-wrap: anywhere;
	}

	.better-link-arrow,
	.better-picker-panel__cta,
	.theme-map .btn {
		max-width: 100%;
		white-space: normal;
	}

	.theme-map .place {
		padding: 16px;
	}

	.theme-map #detail {
		left: 12px !important;
		bottom: 12px !important;
		width: calc(100% - 24px) !important;
	}
}
