/* banc-mfn-press frontend styles — extracted from the old theme's inline <style> blocks in phase 2. */

/* --- General meetings (Figma: Corporate Governance → General meetings) --- */
/* Uses the --banc-mfn-* tokens when the Datablocks plugin's stylesheet is
   present, with standalone fallbacks matching the Figma values. */

.banc-meetings {
	background: var(--banc-mfn-color-surface, #fff);
	border: 1px solid var(--banc-mfn-color-border, #bdd2ff);
	border-radius: 16px;
	padding: 40px;
	font-family: var(--banc-mfn-font-body, "DM Sans", sans-serif);
	color: var(--banc-mfn-color-text, #00355c);
}

.banc-meetings__heading {
	margin: 0 0 24px;
	font-family: var(--banc-mfn-font-heading, "Sora", sans-serif);
	font-weight: 600;
	font-size: 30px;
	color: var(--banc-mfn-color-primary, #00355c);
}

.banc-meetings__form {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
	align-items: center;
	margin-bottom: 40px;
}

.banc-meetings__field {
	display: flex;
	align-items: center;
	gap: 16px;
}

.banc-meetings__label { font-size: 16px; }

.banc-meetings__form select {
	min-width: 200px;
	height: 40px;
	padding: 0 40px 0 20px;
	border: 1px solid #364152;
	border-radius: 20px;
	background: var(--banc-mfn-color-surface, #fff);
	color: #364152;
	font: 600 16px var(--banc-mfn-font-body, "DM Sans", sans-serif);
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='8' viewBox='0 0 15 8'%3E%3Cpath d='M1 1l6.5 6L14 1' fill='none' stroke='%23364152' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	cursor: pointer;
}

.banc-meetings__submit {
	height: 40px;
	padding: 0 40px;
	border: 0;
	border-radius: 20px;
	background: var(--banc-mfn-color-accent, #ff4858);
	color: var(--banc-mfn-color-on-accent, #fbfcfd);
	font: 600 16px var(--banc-mfn-font-body, "DM Sans", sans-serif);
	cursor: pointer;
	transition: background 0.15s ease;
}

.banc-meetings__submit:hover { background: var(--banc-mfn-color-primary, #00355c); }

.banc-meetings__item + .banc-meetings__item {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid var(--banc-mfn-color-border, #bdd2ff);
}

.banc-meetings__title {
	margin: 0 0 16px;
	font-family: var(--banc-mfn-font-heading, "Sora", sans-serif);
	font-weight: 600;
	font-size: 22px;
	color: var(--banc-mfn-color-primary, #00355c);
}

/* Notice typography: title + section headings + body per Figma. */
.banc-meetings__content h1 {
	margin: 0 0 16px;
	font-family: var(--banc-mfn-font-heading, "Sora", sans-serif);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.35;
	color: var(--banc-mfn-color-primary, #00355c);
}

.banc-meetings__content h2,
.banc-meetings__content h3,
.banc-meetings__content h4 {
	margin: 32px 0 12px;
	font-family: var(--banc-mfn-font-heading, "Sora", sans-serif);
	font-weight: 600;
	font-size: 19px;
	color: var(--banc-mfn-color-primary, #00355c);
}

.banc-meetings__content p,
.banc-meetings__content li {
	font-size: 16px;
	line-height: 1.65;
}

.banc-meetings__content ul,
.banc-meetings__content ol { padding-left: 22px; }

.banc-meetings__content a {
	color: var(--banc-mfn-color-accent, #ff4858);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.banc-meetings__content a:hover { color: var(--banc-mfn-color-primary, #00355c); }

/* Old-content wrappers (mfn-preamble / mfn-body / pdf-link-block): the doc
   link lists render as stacked links, per the design's bottom-of-notice
   downloads. */
.banc-meetings__content .mfn-body a,
.banc-meetings__content .pdf-link-block a { display: inline-block; margin: 4px 0; }

.banc-meetings__empty { color: var(--banc-mfn-color-text-muted, #64748b); }

@media ( max-width: 640px ) {
	.banc-meetings { padding: 20px; }
	.banc-meetings__form { gap: 12px; }
	.banc-meetings__field { width: 100%; }
	.banc-meetings__form select { flex: 1; }
}

/* --- Financial calendar --- */
/* Unbranded on purpose. This is layout only — the grid, the spacing rhythm and
   the empty/edge states the component cannot work without. Every colour, font
   and radius reads from a --banc-mfn-* custom property with a neutral
   fallback, so a theme finishes the design by setting those properties (or by
   overriding the template parts) without fighting anything here. Do not add
   client brand values to this file. */

.banc-fc {
	font-family: var(--banc-mfn-font-body, inherit);
	color: var(--banc-mfn-color-text, inherit);
}

.banc-fc__heading {
	margin: 0 0 1.5rem;
	font-family: var(--banc-mfn-font-heading, inherit);
	font-size: var(--banc-mfn-heading-size, 1.75rem);
	color: var(--banc-mfn-color-heading, inherit);
}

.banc-fc__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2.5rem;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2rem;
}

.banc-fc__tabs { display: flex; gap: 0.5rem; }

.banc-fc__tab {
	padding: 0.625rem 1.5rem;
	border: 1px solid var(--banc-mfn-color-border, currentColor);
	border-radius: var(--banc-mfn-radius-pill, 999px);
	text-decoration: none;
	color: inherit;
}

.banc-fc__tab.is-active {
	background: var(--banc-mfn-color-primary, currentColor);
	border-color: var(--banc-mfn-color-primary, currentColor);
	color: var(--banc-mfn-color-on-primary, #fff);
}

.banc-fc__search { display: flex; gap: 0.5rem; }

.banc-fc__search input[type="search"] {
	min-width: 14rem;
	padding: 0.5rem 1.25rem;
	border: 1px solid var(--banc-mfn-color-border, currentColor);
	border-radius: var(--banc-mfn-radius-pill, 999px);
}

.banc-fc__submit {
	padding: 0.5rem 1.5rem;
	border: 1px solid var(--banc-mfn-color-primary, currentColor);
	border-radius: var(--banc-mfn-radius-pill, 999px);
	background: var(--banc-mfn-color-primary, transparent);
	color: var(--banc-mfn-color-on-primary, inherit);
	cursor: pointer;
}

.banc-fc__empty { margin: 0; padding: 1.5rem 0; }

/* Date block, media, body, actions. The three-column ratio is the component's
   structure, not a brand choice; a theme can re-declare grid-template-columns. */
.banc-fc-row {
	display: grid;
	grid-template-columns: var(--banc-fc-date-col, 11rem) var(--banc-fc-media-col, 18rem) 1fr auto;
	gap: 1.5rem;
	align-items: center;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--banc-mfn-color-border, currentColor);
}

/* Rows with no image close the media column rather than leaving a hole. */
.banc-fc-row:not(:has(.banc-fc-row__media)) {
	grid-template-columns: var(--banc-fc-date-col, 11rem) 1fr auto;
}

.banc-fc-row__when {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.banc-fc-row__date {
	font-family: var(--banc-mfn-font-heading, inherit);
	font-size: var(--banc-mfn-date-size, 1.375rem);
}

.banc-fc-row__time { font-size: 0.875rem; opacity: 0.8; }

.banc-fc-row__image {
	display: block;
	width: 100%;
	height: var(--banc-fc-media-height, 13rem);
	object-fit: cover;
	border-radius: var(--banc-mfn-radius, 0);
}

.banc-fc-row__title {
	margin: 0 0 0.5rem;
	font-family: var(--banc-mfn-font-heading, inherit);
	font-size: var(--banc-mfn-row-title-size, 1.25rem);
}

.banc-fc-row__title a { color: inherit; text-decoration: none; }
.banc-fc-row__title a:hover { text-decoration: underline; }

.banc-fc-row__excerpt { margin: 0; }

.banc-fc-row__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: stretch;
}

.banc-fc-btn {
	display: inline-block;
	padding: 0.625rem 1.5rem;
	border: 1px solid var(--banc-mfn-color-primary, currentColor);
	border-radius: var(--banc-mfn-radius-pill, 999px);
	text-align: center;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
}

.banc-fc-btn--primary {
	background: var(--banc-mfn-color-primary, transparent);
	color: var(--banc-mfn-color-on-primary, inherit);
}

/* Next investor event hero */
.banc-fc-next {
	font-family: var(--banc-mfn-font-body, inherit);
	color: var(--banc-mfn-color-text, inherit);
}

.banc-fc-next__eyebrow {
	margin: 0 0 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.875rem;
}

.banc-fc-next__title {
	margin: 0 0 0.75rem;
	font-family: var(--banc-mfn-font-heading, inherit);
	font-size: var(--banc-mfn-hero-size, 2.25rem);
	color: var(--banc-mfn-color-heading, inherit);
}

.banc-fc-next__excerpt { margin: 0 0 0.75rem; }
.banc-fc-next__when { margin: 0 0 1.5rem; font-weight: 600; }
.banc-fc-next__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

@media (max-width: 900px) {
	.banc-fc-row,
	.banc-fc-row:not(:has(.banc-fc-row__media)) {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.banc-fc-row__actions { flex-direction: row; flex-wrap: wrap; }
}
