/* Banking-specific components. No generic plugin, form, input, or utility selectors. */

.bfg-home-toolkit--glass,
.bfg-major-links {
	margin-bottom: 22px;
	padding: clamp(18px, 2.8vw, 28px);
}

.bfg-toolkit__title {
	margin: 0 0 5px;
	color: var(--hog-heading);
	font-size: 0.75rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bfg-toolkit__intro {
	margin: 0 0 14px;
	font-size: 0.86rem;
}

.bfg-toolkit__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	gap: 9px;
	margin: 0;
	padding: 0;
}

.bfg-toolkit__list a {
	display: flex;
	box-sizing: border-box;
	min-height: 48px;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 13px;
	background: var(--hog-bg-elevated);
	color: var(--hog-text);
	border: 1px solid var(--hog-border);
	border-radius: 11px;
	font-size: 0.84rem;
	font-weight: 720;
	line-height: 1.25;
	text-decoration: none;
	transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.bfg-toolkit__list a:hover,
.bfg-toolkit__list a:focus-visible {
	background: var(--hog-accent-soft);
	color: var(--hog-accent);
	border-color: color-mix(in srgb, var(--hog-accent) 42%, var(--hog-border));
	outline: none;
}

.bfg-major-links__head {
	display: grid;
	gap: 4px;
	margin-bottom: 15px;
}

.bfg-major-links__head h2 {
	margin: 0;
	color: var(--hog-heading);
	font-size: clamp(1.25rem, 2.8vw, 1.75rem);
	font-weight: 850;
	letter-spacing: -0.035em;
	line-height: 1.15;
}

.bfg-major-links__head p {
	margin: 0;
	font-size: 0.86rem;
}

.bfg-major-links__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.bfg-major-card {
	display: grid;
	box-sizing: border-box;
	grid-template-columns: auto minmax(0, 1fr) auto;
	min-height: 74px;
	align-items: center;
	gap: 11px;
	padding: 12px;
	background: var(--hog-bg-elevated);
	color: var(--hog-text);
	border: 1px solid var(--hog-border);
	border-radius: 13px;
	text-decoration: none;
	transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.bfg-major-card:hover,
.bfg-major-card:focus-visible {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--hog-accent) 45%, var(--hog-border));
	box-shadow: 0 12px 28px color-mix(in srgb, var(--hog-accent) 10%, transparent);
	outline: none;
}

.bfg-major-card__icon {
	display: inline-grid;
	box-sizing: border-box;
	width: 42px;
	height: 42px;
	place-items: center;
	background: var(--hog-accent-soft);
	color: var(--hog-accent);
	border: 1px solid color-mix(in srgb, var(--hog-accent) 17%, transparent);
	border-radius: 12px;
}

.bfg-major-card__icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bfg-major-card__title {
	font-size: 0.88rem;
	font-weight: 780;
	line-height: 1.25;
}

.bfg-major-card__arrow {
	color: var(--hog-muted);
}

/* Sidebar display options */
.hog-sideblock__row--manual .hog-sideblock__thumb--manual {
	display: inline-grid;
	place-items: center;
	background: var(--hog-accent-soft);
	color: var(--hog-accent);
	border: 1px solid color-mix(in srgb, var(--hog-accent) 20%, transparent);
	font-size: 0.85rem;
	font-weight: 850;
}

.hog-sideblock__html,
.hog-sideblock__shortcode {
	font-size: 0.86rem;
}

.hog-sideblock__html > :first-child,
.hog-sideblock__shortcode > :first-child {
	margin-top: 0;
}

.hog-sideblock__html > :last-child,
.hog-sideblock__shortcode > :last-child {
	margin-bottom: 0;
}

.bfg-sidebar-density--compact .hog-sideblock__row {
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 7px;
	padding: 5px;
}

.bfg-sidebar-density--compact .hog-sideblock__thumb {
	width: 46px;
	height: 36px;
}

.bfg-sidebar-style--links .hog-sideblock__row {
	grid-template-columns: minmax(0, 1fr);
	padding: 9px 4px;
	border-bottom: 1px solid var(--hog-border);
	border-radius: 0;
}

.bfg-sidebar-style--links .hog-sideblock__thumb {
	display: none;
}

/* Theme-native calculators; only bfg- controls are styled. */
.bfg-calc-page {
	box-sizing: border-box;
	padding-block: clamp(18px, 4vw, 44px);
}

.bfg-calc-hero {
	max-width: 780px;
	margin-bottom: 24px;
}

.bfg-calc-hero h1 {
	margin: 0 0 10px;
	color: var(--hog-heading);
	font-size: clamp(2.25rem, 7vw, 4.7rem);
	font-weight: 900;
	letter-spacing: -0.06em;
	line-height: 0.98;
}

.bfg-calc-hero p {
	margin: 0;
	color: var(--hog-muted);
	font-size: clamp(1rem, 2.2vw, 1.16rem);
}

.bfg-calc-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
	gap: clamp(16px, 3vw, 26px);
	align-items: stretch;
}

.bfg-calc-panel,
.bfg-calc-result {
	box-sizing: border-box;
	min-width: 0;
	padding: clamp(18px, 3vw, 30px);
}

.bfg-calc-panel {
	display: grid;
	gap: 20px;
}

.bfg-control {
	display: grid;
	gap: 9px;
}

.bfg-control__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
}

.bfg-control label {
	color: var(--hog-muted);
	font-size: 0.7rem;
	font-weight: 820;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bfg-control__head span {
	color: var(--hog-heading);
	font-weight: 850;
}

.bfg-control input[type="range"] {
	width: 100%;
	min-width: 0;
	accent-color: var(--hog-accent);
}

.bfg-calc-result {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
	gap: clamp(16px, 4vw, 34px);
	align-items: center;
}

.bfg-calc-result__summary > p {
	margin: 0 0 5px;
	color: var(--hog-muted);
	font-size: 0.7rem;
	font-weight: 820;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bfg-calc-result__summary h2 {
	margin: 0 0 22px;
	color: var(--hog-accent);
	font-size: clamp(2.1rem, 6vw, 3.5rem);
	letter-spacing: -0.05em;
	line-height: 1;
}

.bfg-result-rows {
	display: grid;
	gap: 8px;
}

.bfg-result-rows div {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--hog-border);
}

.bfg-result-rows span {
	color: var(--hog-muted);
}

.bfg-chart-wrap {
	display: grid;
	min-width: 0;
	justify-items: center;
	gap: 12px;
}

.bfg-chart-wrap canvas {
	display: block;
	width: min(250px, 58vw);
	height: min(250px, 58vw);
	max-width: 100%;
}

.bfg-chart-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	color: var(--hog-muted);
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
}

.bfg-chart-legend span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.bfg-chart-legend i {
	display: inline-block;
	width: 9px;
	height: 9px;
	background: var(--hog-surface-strong);
	border: 1px solid var(--hog-border);
	border-radius: 50%;
}

.bfg-chart-legend span + span i {
	background: var(--hog-accent);
	border-color: var(--hog-accent);
}

.bfg-calc-content {
	margin-top: 26px;
}

/* Plugin/custom-HTML wrappers control only the outer canvas. */
.bfg-plugin-page {
	box-sizing: border-box;
	width: 100%;
	max-width: min(100%, var(--bfg-plugin-max, 1180px));
	min-width: 0;
	margin-inline: auto;
	padding-block: clamp(12px, 2.5vw, 28px);
}

.bfg-plugin-page--wide {
	max-width: min(100%, calc(var(--bfg-plugin-max, 1180px) + 180px));
}

.bfg-plugin-page--full {
	max-width: 100%;
}

.bfg-plugin-article--plain {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.bfg-plugin-page__header {
	margin-bottom: 18px;
}

.bfg-plugin-color-hint.hog-theme--dark .bfg-plugin-page,
html[data-hog="dark"] .bfg-plugin-color-hint .bfg-plugin-page {
	color-scheme: dark;
}

/* Member profile template. */
.bfg-account-page,
.bfg-directory-page {
	padding-block: clamp(8px, 2vw, 24px);
}

.bfg-account-card,
.bfg-directory-card {
	max-width: 900px;
	margin-inline: auto;
}

.bfg-account-form {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: clamp(20px, 4vw, 34px);
	align-items: start;
}

.bfg-account-avatar img,
.bfg-account-avatar__image {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border: 3px solid var(--hog-accent-soft);
	border-radius: 50%;
}

.bfg-account-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.bfg-account-field {
	display: grid;
	gap: 7px;
}

.bfg-account-field--wide,
.bfg-account-form > .hog-btn {
	grid-column: 1 / -1;
}

.bfg-account-field > span,
.bfg-directory-label {
	color: var(--hog-muted);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bfg-account-field input,
.bfg-directory-search {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 11px 13px;
	background: var(--hog-bg-elevated);
	color: var(--hog-text);
	border: 1px solid var(--hog-border-strong);
	border-radius: 11px;
	font: inherit;
}

.bfg-account-field input:focus-visible,
.bfg-directory-search:focus-visible {
	border-color: var(--hog-accent);
	outline: 0;
	box-shadow: var(--hog-focus);
}

.bfg-account-notice {
	margin: 0 0 22px;
	padding: 12px 14px;
	border: 1px solid var(--hog-border);
	border-radius: 11px;
}

.bfg-account-notice--success { background: #eaf8f1; color: #12633d; }
.bfg-account-notice--error { background: #fff0f0; color: #9a2525; }

/* Nepal postal-code directory. */
.bfg-directory-tools {
	display: grid;
	gap: 8px;
	margin-bottom: 22px;
}

.bfg-directory-status {
	margin: 10px 0;
	color: var(--hog-muted);
	font-size: 0.82rem;
}

.bfg-directory-results {
	display: grid;
	list-style: none;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.bfg-directory-result {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
	background: var(--hog-bg-elevated);
	border: 1px solid var(--hog-border);
	border-radius: 11px;
}

.bfg-directory-result strong {
	color: var(--hog-accent);
	font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
	.bfg-account-form,
	.bfg-account-fields {
		grid-template-columns: minmax(0, 1fr);
	}
	.bfg-account-field--wide,
	.bfg-account-form > .hog-btn { grid-column: auto; }
	.bfg-directory-result { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (max-width: 960px) {
	.bfg-toolkit__list,
	.bfg-major-links__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bfg-calc-grid,
	.bfg-calc-result {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 540px) {
	.bfg-toolkit__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.bfg-major-card {
		min-height: 66px;
		grid-template-columns: auto minmax(0, 1fr);
	}

	.bfg-major-card__arrow {
		display: none;
	}

	.bfg-result-rows div {
		align-items: flex-start;
		flex-direction: column;
		gap: 1px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bfg-toolkit__list a,
	.bfg-major-card {
		transition: none;
	}
}
