/*
Theme Name: Broker Dossier Theme
Theme URI: https://brokerdossier.com
Description: Theme for brokerdossier.com: self-hosted type, header, footer and page shells. Components come from the Broker Dossier Core plugin.
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: fxsb-theme
*/

/* ---------- self-hosted type (SIL OFL 1.1, licences in assets/fonts) ---------- */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/newsreader-latin.woff2) format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/newsreader-latin-ext.woff2) format("woff2"); unicode-range: U+0100-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E, U+20A1-20BF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/IBMPlexSans-Regular-Latin1.woff2) format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/IBMPlexSans-Regular-Latin2.woff2) format("woff2"); unicode-range: U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E, U+20A1, U+20A4, U+20A6, U+20A8-20AA, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BD, U+20BF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/IBMPlexSans-Medium-Latin1.woff2) format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/IBMPlexSans-Medium-Latin2.woff2) format("woff2"); unicode-range: U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E, U+20A1, U+20A4, U+20A6, U+20A8-20AA, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BD, U+20BF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600 700; font-display: swap; src: url(assets/fonts/IBMPlexSans-SemiBold-Latin1.woff2) format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600 700; font-display: swap; src: url(assets/fonts/IBMPlexSans-SemiBold-Latin2.woff2) format("woff2"); unicode-range: U+0100-0101, U+0104-0130, U+0132-0151, U+0154-017F, U+018F, U+0192, U+01A0-01A1, U+01AF-01B0, U+01FA-01FF, U+0218-021B, U+0237, U+0259, U+1E80-1E85, U+1E9E, U+20A1, U+20A4, U+20A6, U+20A8-20AA, U+20AD-20AE, U+20B1-20B2, U+20B4-20B5, U+20B8-20BA, U+20BD, U+20BF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/IBMPlexMono-Medium-Latin1.woff2) format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02; }

/* ---------- tokens: keep in sync with fxsb-core/assets/fxsb.css ---------- */
:root {
	--fx-ink: #0a1b2e; --fx-ink-2: #11293f; --fx-ink-3: #1d3b58;
	--fx-text: #0e1b2a; --fx-text-2: #3b495c; --fx-muted: #5a6779;
	--fx-paper: #fff; --fx-mist: #f3f5f8; --fx-rule: #dce1e8; --fx-rule-2: #b9c2ce;
	--fx-link: #1242b8; --fx-bullion: #c9a45c;
	--fx-on-ink: #eef2f6; --fx-on-ink-2: #a9b6c6;
	--fx-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--fx-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fx-r: 6px; --fx-top: 0px; --fx-header: 64px;
}
.admin-bar { --fx-top: 32px; }
@media (max-width: 782px) { .admin-bar { --fx-top: 46px; } }
@media (max-width: 600px) { .admin-bar { --fx-top: 0px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fx-paper); color: var(--fx-text); font: 400 1rem/1.6 var(--fx-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--fx-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--fx-ink); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--fx-link); outline-offset: 2px; }
h1, h2 { font-family: var(--fx-serif); font-weight: 500; letter-spacing: -.014em; line-height: 1.12; }
h3 { font: 600 1.0625rem/1.3 var(--fx-sans); }
.fxsb-wrap, .wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; padding: .6rem 1rem; background: #fff; color: var(--fx-ink); }
.skip-link:focus { left: .5rem; top: calc(var(--fx-top) + .5rem); }

/* ---------- header ---------- */
.site-header { position: sticky; top: var(--fx-top); z-index: 50; border-bottom: 1px solid var(--fx-rule); background: rgba(255, 255, 255, .97); }
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; min-height: var(--fx-header); }
.site-brand { display: inline-flex; align-items: center; gap: .55rem; font: 600 1.125rem/1 var(--fx-sans); letter-spacing: -.02em; color: var(--fx-ink); text-decoration: none; white-space: nowrap; }
.site-brand span { font: 600 1.3125rem/1 var(--fx-serif); letter-spacing: -.012em; }
.site-mark { flex: none; width: 30px; height: 30px; }
.site-nav { flex: 1; min-width: 0; }
.site-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .5rem .65rem; border-radius: var(--fx-r); font-size: .9375rem; font-weight: 500; color: var(--fx-text-2); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: var(--fx-mist); color: var(--fx-text); }
.site-nav a[aria-current="page"], .site-nav .current-menu-item > a { border-radius: 0; box-shadow: inset 0 -2px 0 var(--fx-ink); color: var(--fx-text); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--fx-rule-2); border-radius: var(--fx-r); background: var(--fx-paper); color: var(--fx-ink); cursor: pointer; }
.site-notice { margin: 0; padding: .6rem 1.25rem; background: #fbefd9; font-size: .875rem; text-align: center; color: #5c3600; }
@media (max-width: 1080px) {
	.site-header__bar { flex-wrap: wrap; gap: .75rem; }
	.site-brand { margin-right: auto; }
	.nav-toggle { display: inline-flex; order: 3; }
	.site-nav { display: none; order: 4; flex-basis: 100%; padding-bottom: .75rem; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--fx-rule); }
	.site-nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--fx-rule); border-radius: 0; }
}
@media (max-width: 480px) {
	.site-brand span { display: none; }
	.fxsb-country select { max-width: 9.5rem; }
}

/* ---------- page shells ---------- */
.page-body { padding: 2.5rem 0 4rem; }
.page-head-plain { padding: 2rem 0 0; }
.entry-content, .fxsb-prose { max-width: 46rem; }
.entry-content--wide { max-width: none; }
.entry-content > :first-child, .fxsb-prose > :first-child { margin-top: 0; }
.entry-content > p:first-child { font-size: 1.125rem; line-height: 1.55; color: var(--fx-text); }
.entry-content h2, .fxsb-prose h2, .page-body > h2 { margin: 2.25rem 0 .7rem; font-size: 1.625rem; }
.entry-content h3, .fxsb-prose h3 { margin: 1.5rem 0 .4rem; }
.entry-content p, .fxsb-prose p { margin: 0 0 1rem; }
.entry-content ul, .entry-content ol, .fxsb-prose ul, .fxsb-prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.entry-content li, .fxsb-prose li { margin-bottom: .35rem; }
.entry-content table:not(.fxsb-table), .fxsb-prose table:not(.fxsb-table) { width: 100%; margin: 1.25rem 0; border-collapse: collapse; border-top: 2px solid var(--fx-ink); font-size: .9375rem; }
.entry-content table:not(.fxsb-table) th, .entry-content table:not(.fxsb-table) td, .fxsb-prose table:not(.fxsb-table) th, .fxsb-prose table:not(.fxsb-table) td { padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--fx-rule); text-align: left; vertical-align: top; }
.entry-content table:not(.fxsb-table) thead th, .fxsb-prose table:not(.fxsb-table) thead th { border-bottom-color: var(--fx-rule-2); font-size: .8125rem; font-weight: 600; color: var(--fx-muted); }
.pagination { display: flex; gap: .5rem; margin: 2rem 0 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--fx-bullion); background: var(--fx-ink); font-size: .875rem; color: var(--fx-on-ink-2); }
.site-footer a { color: var(--fx-on-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.5fr)); gap: 2rem 3rem; padding: 3rem 0 2.5rem; }
.site-footer__brand .site-brand { color: #fff; }
.site-footer__brand p { max-width: 24rem; margin: 1rem 0 0; line-height: 1.55; }
.site-footer h2 { margin: 0 0 .75rem; font: 600 .875rem/1.3 var(--fx-sans); letter-spacing: 0; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .25rem 0; }
.site-footer__legal { padding: 1.5rem 0 2.5rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem; line-height: 1.55; }
.site-footer__legal p { max-width: 62rem; margin: 0 0 .6rem; }
@media (max-width: 900px) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .fxsb-wrap, .wrap { width: min(100% - 2rem, 76rem); } .page-body { padding: 1.75rem 0 3rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
