/*
 * 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 .wp-block-navigation-item > a,
.better-header .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0;
}

.better-nav-strategies 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__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;
}

/* -------------------------------------------------------------- strategy 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); }

/* -------------------------------------------------------------- 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;
}

/* -------------------------------------------------------------- strategy bands (accordion) */

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

.strategy-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;
}

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

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

.strategy-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;
}

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

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

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

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

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

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

.strategy-band__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}

.strategy-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;
}

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

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

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

.strategy-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__strategy {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ideas-filter__strategy 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__strategy 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__strategy 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__strategy {
	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__tags {
	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;
}

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

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

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

.practice-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);
}

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

.practice-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;
}

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

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

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

.practice-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);
}

.practice-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);
}

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

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

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

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

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

.practice-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) {
	.practice-map #mapwrap { grid-template-columns: minmax(0,1fr) !important; }
	.practice-map #map { height: 460px !important; }
	.practice-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;
}
