/* Businessline.nk — supplementary styles.
   Design tokens live in theme.json. This file covers only what theme.json
   cannot express. */

/* ---- Eyebrow label ------------------------------------------------- */
.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.26em;
	text-transform: uppercase;
	margin-bottom: 20px;
}

/* ---- Hero: blush block offset behind the portrait ------------------ */
.bnk-hero-media {
	position: relative;
}
.bnk-hero-media::before {
	content: "";
	position: absolute;
	inset: 18px -14px -18px 18px;
	background: var(--wp--preset--color--blush);
	border-radius: var(--wp--custom--radius--lg);
}
.bnk-hero-media img {
	position: relative;
}
/* WordPress drops the clamp() column gap set on these blocks and falls back
   to 24px, and the blush block above pokes 14px into that gap. Set the gap
   here so the text sits clear of the frame. */
.wp-block-columns:has(> .bnk-hero-media) {
	column-gap: clamp(40px, 6vw, 88px);
}

/* ---- Underlined text link ------------------------------------------ */
.is-style-underline-link a,
a.is-style-underline-link {
	border-bottom: 1px solid var(--wp--custom--color--line-strong);
	padding-bottom: 3px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	letter-spacing: 0.04em;
}

/* ---- Service cards -------------------------------------------------- */
.bnk-card {
	border: 1px solid var(--wp--custom--color--line-grid);
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--cream);
	display: flex;
	flex-direction: column;
}
/* An explicit height on a flex item overrides align-self:stretch, so the
   cards would size to their own content and stop matching each other.
   Let them stretch, and pin the call to action to the bottom so the
   buttons line up however long a title runs. */
.bnk-card > .wp-block-buttons {
	margin-top: auto;
	padding-top: 8px;
}

/* ---- Outline button ------------------------------------------------- */
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--btn);
	background: transparent;
	color: var(--wp--preset--color--ink);
	padding: 0 22px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
}

/* ---- Podcast episode cards ------------------------------------------ */
.bnk-episode img {
	border-radius: var(--wp--custom--radius--md);
	transition: transform 0.5s ease, opacity 0.3s ease;
}
.bnk-episode:hover img {
	transform: scale(1.04);
	opacity: 0.82;
}

/* ---- Testimonials ---------------------------------------------------- */
.bnk-quote {
	border-top: 2px solid var(--wp--preset--color--ink);
	padding-top: 22px;
}

/* ---- Navigation ------------------------------------------------------ */
.wp-block-navigation {
	letter-spacing: 0.04em;
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--cream);
	padding-top: clamp(48px, 8vw, 76px);
}
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open a {
	font-size: 20px;
}

/* ---- Footer social icons -------------------------------------------- */
.wp-block-social-links.is-style-bnk-outline .wp-social-link {
	background: transparent;
	border: 1px solid var(--wp--custom--color--dark-line);
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wp-block-social-links.is-style-bnk-outline .wp-social-link:hover {
	border-color: var(--wp--preset--color--rose);
}

/* ---- Footer link lists ---------------------------------------------- */
.bnk-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ---- Stat block: keep captions on one baseline ----------------------- */
.bnk-stat {
	display: flex;
	flex-direction: column;
	text-align: center;
	height: 100%;
}
.bnk-stat > :first-child {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---- Featured-in placeholder chips ----------------------------------- */
.bnk-logo-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	height: clamp(38px, 4vw, 46px);
	min-width: clamp(104px, 12vw, 136px);
	padding: 0 18px;
	border: 1px dashed #CDBFB4;
	border-radius: var(--wp--custom--radius--btn);
	color: #A2938A;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0;
}

/* ---- Fluent Forms, restyled to match the design -------------------- */
.fluentform .ff-el-group {
	margin-bottom: 18px;
}
.fluentform .ff-el-input--label label {
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	font-weight: 400;
	margin-bottom: 8px;
}
.fluentform .ff-el-form-control {
	width: 100%;
	min-height: 52px;
	padding: 14px 22px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--btn);
	background: var(--wp--preset--color--cream);
	font-family: inherit;
	font-size: 16px;
	color: var(--wp--preset--color--ink);
	box-shadow: none;
}
.fluentform textarea.ff-el-form-control {
	border-radius: var(--wp--custom--radius--md);
	min-height: 140px;
}
.fluentform .ff-el-form-control:focus {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
	border-color: transparent;
}
.fluentform .ff-btn-submit,
.fluentform .ff-btn.ff-btn-submit {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	border: 0;
	border-radius: var(--wp--custom--radius--btn);
	min-height: 52px;
	padding: 0 34px;
	font-family: inherit;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}
.fluentform .ff-btn-submit:hover {
	background: var(--wp--custom--color--ink-hover);
	color: var(--wp--preset--color--cream);
}
.fluentform .ff-el-is-error .ff-el-form-control {
	border-color: #C0574E;
}
.fluentform .error-text,
.fluentform .text-danger {
	font-size: 13px;
	color: #C0574E;
}

/* Newsletter (form 4): email field and button on one row. display:contents
   flattens Fluent's wrappers so label, input, button and error share a grid. */
.fluent_form_4 fieldset {
	display: grid;
	grid-template-columns: 1fr auto;
	column-gap: 12px;
}
.fluent_form_4 .ff-el-group,
.fluent_form_4 .ff-el-input--content {
	display: contents;
}
.fluent_form_4 .ff-el-input--label { grid-column: 1 / -1; grid-row: 1; }
.fluent_form_4 .ff-el-form-control { grid-column: 1; grid-row: 2; }
.fluent_form_4 .ff-btn-submit { grid-column: 2; grid-row: 2; }
.fluent_form_4 .error { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }

@media (max-width: 560px) {
	.fluent_form_4 fieldset { grid-template-columns: 1fr; }
	.fluent_form_4 .ff-btn-submit { grid-column: 1; grid-row: 4; margin-top: 12px; }
}

/* ---- FAQ (homepage) -------------------------------------------------- */
/* Core Details blocks styled as a quiet accordion: one rule per question,
   a +/− marker in place of the browser triangle. */
.bnk-faq .bnk-faq__item {
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin: 0;
}
.bnk-faq .bnk-faq__item:first-child {
	border-top: 1px solid var(--wp--preset--color--line);
}
.bnk-faq .bnk-faq__item summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 20px 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	list-style: none;
}
.bnk-faq .bnk-faq__item summary::-webkit-details-marker {
	display: none;
}
.bnk-faq .bnk-faq__item summary::after {
	content: "+";
	flex: none;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--gold);
}
.bnk-faq .bnk-faq__item[open] summary::after {
	content: "−";
}
.bnk-faq .bnk-faq__item summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 4px;
}
.bnk-faq .bnk-faq__item > p {
	margin: 0 0 22px;
	max-width: 62ch;
	font-size: 16px;
	line-height: 1.7;
	color: var(--wp--preset--color--body);
}
.bnk-faq .bnk-faq__item a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---- Ebook download button (order confirmation, My Account) --------- */
/* Rendered by inc/downloads.php in place of WooCommerce's file-name link. */
a.bnk-download-btn {
	display: inline-block;
	padding: 14px 24px;
	border-radius: var(--wp--custom--radius--btn);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}
a.bnk-download-btn:hover,
a.bnk-download-btn:focus-visible {
	background: var(--wp--custom--color--ink-hover);
	color: var(--wp--preset--color--cream);
}
a.bnk-download-btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

/* ---- Page content -------------------------------------------------- */
/* Content sits on the same 1180px grid as the title band so left edges
   line up. Running text is capped to a readable measure rather than
   stretching the full width. */
.bnk-page-content > p,
.bnk-page-content > ul,
.bnk-page-content > ol,
.bnk-page-content > h2,
.bnk-page-content > h3,
.bnk-page-content > h4,
.bnk-page-content > .wp-block-pullquote {
	max-width: 34em;
	/* The constrained layout centres each block; 34em differs per element
	   (headings are larger), so centring staggers the left edges. Pin them
	   to the title band's left edge instead. */
	margin-left: 0 !important;
	margin-right: auto !important;
}
.bnk-page-content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.bnk-page-content > .wp-block-columns,
.bnk-page-content > .wp-block-buttons,
.bnk-page-content > .wp-block-image {
	max-width: none;
}

/* ---- Full-bleed section stacks --------------------------------------- */
/* Pages built from contiguous colour bands (home, the book) should have no
   gap between sections, otherwise the page background shows as a seam. */
.wp-block-post-content > .alignfull,
main.wp-block-group > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ---- Episode grid ---------------------------------------------------- */
.bnk-episodes__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: clamp(24px, 3vw, 38px);
}
.bnk-episodes--cols-1 .bnk-episodes__grid { grid-template-columns: 1fr; }
.bnk-episodes--cols-2 .bnk-episodes__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.bnk-episodes--cols-4 .bnk-episodes__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.bnk-episode__open {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.bnk-episode__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--md);
	background: #241E1A;
	margin-bottom: 10px;
}
.bnk-episode__thumb img,
.bnk-episode__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease, opacity 0.3s ease;
}
.bnk-episode__open:hover .bnk-episode__thumb img {
	transform: scale(1.04);
	opacity: 0.82;
}
.bnk-episode__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(23, 19, 16, 0.62);
	color: var(--wp--preset--color--cream);
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 3px;
	transition: background 0.25s ease, color 0.25s ease;
}
.bnk-episode__open:hover .bnk-episode__play {
	background: var(--wp--preset--color--rose);
	color: var(--wp--preset--color--ink);
}
.bnk-episode__guest {
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rose);
}
.bnk-episode__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 19px;
	line-height: 1.35;
}
.bnk-episode__open:hover .bnk-episode__title { color: var(--wp--preset--color--rose); }
.bnk-episode__platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-top: 10px;
}
.bnk-episode__platform {
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	opacity: 0.7;
}
.bnk-episode__platform:hover { opacity: 1; color: var(--wp--preset--color--rose); }
.bnk-episodes__all {
	margin: clamp(28px, 3.5vw, 44px) 0 0;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.bnk-episodes__all a { border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ---- Episode modal --------------------------------------------------- */
html.bnk-modal-open { overflow: hidden; }
.bnk-modal[hidden] { display: none; }
.bnk-modal {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.bnk-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 9, 8, 0.82);
	backdrop-filter: blur(3px);
}
.bnk-modal__panel {
	position: relative;
	width: min(100%, 940px);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	border-radius: var(--wp--custom--radius--md);
	padding: clamp(20px, 3vw, 32px);
}
.bnk-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--wp--custom--color--dark-line);
	background: transparent;
	color: var(--wp--preset--color--cream);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.bnk-modal__close:hover { border-color: var(--wp--preset--color--rose); color: var(--wp--preset--color--rose); }
.bnk-modal__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(19px, 2.4vw, 25px);
	line-height: 1.3;
	margin: 0 52px 16px 0;
}
.bnk-modal__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--wp--custom--radius--sm);
	overflow: hidden;
	background: #000;
}
.bnk-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bnk-modal__share-label {
	margin: 22px 0 12px;
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--custom--color--on-ink-soft);
}
.bnk-modal__share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bnk-modal__share-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--wp--custom--color--dark-line);
	border-radius: var(--wp--custom--radius--btn);
	background: transparent;
	color: var(--wp--preset--color--cream);
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.06em;
	cursor: pointer;
}
.bnk-modal__share-link:hover {
	border-color: var(--wp--preset--color--rose);
	color: var(--wp--preset--color--rose);
}

/* ---- Single episode player ------------------------------------------- */
.bnk-player__open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	margin-bottom: clamp(26px, 3vw, 38px);
}
.bnk-player__open .bnk-episode__thumb { margin-bottom: 0; }
.bnk-player__open .bnk-episode__play { width: 72px; height: 72px; }
.bnk-player__listen { margin-top: clamp(24px, 3vw, 34px); }
.bnk-player__label {
	margin: 0 0 12px;
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--custom--color--on-ink-soft);
}
.bnk-player__row { display: flex; flex-wrap: wrap; gap: 10px; }
.bnk-player__link,
.bnk-player__row .bnk-modal__share-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--wp--custom--color--dark-line);
	border-radius: var(--wp--custom--radius--btn);
	background: transparent;
	color: var(--wp--preset--color--cream);
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.06em;
	cursor: pointer;
}
.bnk-player__link:hover,
.bnk-player__row .bnk-modal__share-link:hover {
	border-color: var(--wp--preset--color--rose);
	color: var(--wp--preset--color--rose);
}

/* ---- Root layout: no gap between header, main and footer ------------- */
/* WordPress gives every top-level element a 24px top margin, which shows
   as a pale band between full-bleed sections and the footer. */
:root .wp-site-blocks > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ---- Header brand mark ------------------------------------------------ */
/* The logo is a square-ish lockup, so it is hung from the top edge of the
   header bar and allowed to drop past the bottom border onto the section
   below. .bnk-brand keeps a normal-sized box in the flex row so the header
   height stays the same as it was with the old text lockup. */
header.wp-block-template-part {
	position: relative;
	z-index: 3;
}
.bnk-header {
	position: relative;
}
.bnk-brand {
	position: relative;
	width: 150px;
	height: 44px;
	flex: 0 0 auto;
}
/* A cream panel carries the mark past the header rule. It is invisible on the
   cream pages and reads as a tab where the section below is dark, which keeps
   the black lockup legible on every template. The negative z-index puts it
   behind the header border so the rule still runs unbroken. */
.bnk-brand::before {
	content: "";
	position: absolute;
	top: -20px;
	left: -16px;
	width: 182px;
	height: 140px;
	background: var(--wp--preset--color--cream);
	border-radius: 0 0 var(--wp--custom--radius--md) var(--wp--custom--radius--md);
	z-index: -1;
}
.bnk-brand .wp-block-site-logo {
	position: absolute;
	top: -20px; /* cancels the header's padding-top: the mark sits flush with the top edge */
	left: 0;
	margin: 0;
	line-height: 0;
}
.bnk-brand .wp-block-site-logo img,
.bnk-brand .custom-logo {
	display: block;
	width: 150px;
	height: auto;
	max-width: none;
}

@media (max-width: 781px) {
	.bnk-brand {
		width: 110px;
		height: 40px;
	}
	.bnk-brand::before {
		left: -12px;
		width: 134px;
		height: 116px;
	}
	.bnk-brand .wp-block-site-logo img,
	.bnk-brand .custom-logo {
		width: 110px;
	}
}

/* WooCommerce serves its own cart and checkout templates, and they start
   their content right under the header, where the brand mark now hangs. */
.woocommerce-cart .wp-site-blocks main,
.woocommerce-checkout .wp-site-blocks main {
	padding-top: clamp(72px, 7vw, 104px);
}

/* ---- Display-family weights ------------------------------------------ */
/* The display family is now the same sans as the body text, so the places
   that relied on Prata's serif shapes to feel like headings need the weight
   instead. Testimonial quotes are deliberately left at text weight. */
.bnk-stat .has-display-font-family,
footer .has-display-font-family,
.bnk-episode__title,
.bnk-modal__title {
	font-weight: 700;
}
