/*
Theme Name: HAYKALA | هيكلة Institutional
Theme URI: https://example.com/resolve
Author: HAYKALA | هيكلة — managed by Panacea Capital
Description: A standalone institutional theme for the HAYKALA | هيكلة restructuring and special-situations marketplace. Presentation only — every business rule, permission check and workflow lives in the resolve-platform-core plugin, so this theme can be replaced without touching the platform.
Version: 2.1.1
Requires at least: 6.2
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: resolve-institutional
Tags: business, custom-menu, translation-ready, rtl-language-support, full-width-template
*/

/* ============================================================
 * Theme chrome only.
 *
 * Platform surfaces are styled by the plugin's own stylesheet. This file
 * covers the shell: header, navigation, footer, editorial pages and the
 * typographic baseline everything sits on.
 * ============================================================ */

/*
 * ALIASES, NOT VALUES.
 *
 * This block used to hold its own copy of the palette. It was one of four —
 * `--r-*` in resolve-platform.css, `--rp-*` in resolve-panel.css and `--ra-*`
 * in resolve-admin.css were the others — and the copies had already drifted.
 * The values now live once, in the plugin's resolve-tokens.css, as
 * `--resolve-*`.
 *
 * The literal fallback on each line keeps the theme self-sufficient: this
 * stylesheet is enqueued by the theme and cannot be given a dependency on a
 * plugin file, and the theme has to remain presentable with the plugin
 * deactivated. Shell::attach_tokens() grafts the dependency on when the plugin
 * is active; the fallback covers every other case.
 *
 * PROVENANCE — CORRECTED.
 *
 * This block used to say the palette was the theme's own and "did not come
 * from the live Panacea Capital site — that fetch returned no colour or
 * typography of any kind". That was true when it was written and is no longer:
 * docs/PANACEA-BRAND.md is a capture of the live site quoting its stylesheets
 * character-for-character, so the colours, the zero radius, the three
 * letter-spacing values and the 130px rhythm are now VERIFIED brand values
 * rather than a considered guess. The deep-green institutional palette that
 * was here has been retired in favour of them.
 *
 * The fallbacks below are the new values, so the theme still renders in the
 * brand's colours with the plugin deactivated.
 */
:root {
	/* 1.17.1 approved-design integration: the fallback literals below are the
	 * OWNER-APPROVED palette, so the theme renders in the approved colours even
	 * with the plugin (and its resolve-tokens.css) deactivated. When the plugin
	 * is active, --resolve-* (re-pointed to the same approved values) wins. */
	--t-ink: var(--resolve-ink, #222638);
	--t-ink-2: var(--resolve-ink-2, #3c3f52);
	--t-ink-3: var(--resolve-ink-3, #6a6e85);
	--t-ink-4: var(--resolve-ink-4, #7b7f95);
	--t-paper: var(--resolve-paper, #ffffff);
	--t-ground: var(--resolve-ground, #f6f7f9);
	--t-line: var(--resolve-line, #e7e8ee);
	--t-accent: var(--resolve-accent, #6867AD);
	--t-accent-soft: var(--resolve-accent-soft, #ecebf6);
	--t-maxw: var(--resolve-maxw, 1240px);
	--t-serif: var(--resolve-serif, "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif);
	--t-sans: var(--resolve-sans, "DM Sans", "IBM Plex Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);

	/*
	 * The Panacea identity proper (§7), for the marketing chrome.
	 *
	 * The header and footer are the two surfaces §7 says should "read as
	 * Panacea", so they are the two that get the brand colour literally: a
	 * black ground, the brand periwinkle as the accent on it, and the pale
	 * periwinkle for copy. On black, #8493E6 measures 7.30:1 and #CCD9FB
	 * measures 14.89:1 — the brand colour is only a contrast problem on WHITE,
	 * and the header and footer are not white.
	 */
	--t-brand: var(--resolve-brand, #8493E6);
	--t-brand-hover: var(--resolve-brand-hover, #7482d8);
	--t-dark: var(--resolve-dark, #181C30);
	--t-dark-2: var(--resolve-dark-2, #24283E);
	--t-dark-line: var(--resolve-dark-line, #2e3350);
	--t-on-dark: var(--resolve-on-dark, #CDDAFB);
	--t-frame: var(--resolve-frame, #CDDAFB5C);
	/* UI periwinkle for links/accents on light surfaces (approved base). */
	--t-ui: var(--resolve-accent, #6867AD);

	/* Type scale (§18), for the theme's own chrome. */
	--t-type-label: var(--resolve-type-label, 0.6875rem);
	--t-type-support: var(--resolve-type-support, 0.875rem);
	--t-type-label-tracking: var(--resolve-type-label-tracking, 3px);

	/*
	 * The brand's three letter-spacing values, and no fourth. This theme had
	 * 0.08em, 0.12em and 0.16em scattered through it, none of which is one of
	 * them. Zeroed for Arabic by the token — tracking severs Arabic joins.
	 */
	--t-track-eyebrow: var(--resolve-track-eyebrow, 3px);
	--t-track-button: var(--resolve-track-button, 1px);
	--t-track-button-sm: var(--resolve-track-button-sm, 0.8px);

	/* Marketing rhythm — the verified 130px, kept here and NOT in the app. */
	--t-section: var(--resolve-section, 130px);
	--t-gutter: var(--resolve-gutter, 21px);
	--t-measure: var(--resolve-measure, 885px);

	/* Zero, everywhere. The brand's most absolute rule. */
	--t-radius: var(--resolve-radius, 0);
	--t-shadow-raised: var(--resolve-shadow-raised, 0 2px 4px rgba(14, 22, 33, 0.06), 0 16px 40px rgba(14, 22, 33, 0.08));
	--t-danger: var(--resolve-danger, #8c2f2f);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--t-paper);
	color: var(--t-ink);
	font-family: var(--t-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--t-accent);
}

.t-wrap {
	max-width: var(--t-maxw);
	margin-inline: auto;
	padding-inline: 24px;
}

.t-skip {
	position: absolute;
	inset-inline-start: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 20px;
	background: var(--t-ink);
	color: #fff;
}

.t-skip:focus {
	inset-inline-start: 0;
}

/* ------------------------------------------------------------
 * Header
 * ------------------------------------------------------------ */

/*
 * THE HEADER READS AS PANACEA (§7).
 *
 * §7 is explicit that the header and footer should read as Panacea while the
 * working surfaces stay quieter. The brand is built on hard black/white
 * alternation, and its own header sits at the top of that alternation — so
 * this is black, with the brand periwinkle as its accent and the pale
 * periwinkle for text, exactly as the brand uses them on its dark sections.
 *
 * It was white with a hairline underneath, which read as a generic SaaS bar
 * and shared nothing with the identity but a typeface.
 *
 * Contrast on this ground is better than it was on white, not worse:
 * #CCD9FB on #000 is 14.89:1 and #8493E6 on #000 is 7.30:1, against the
 * 2.88:1 the brand periwinkle would have measured as text on the old white
 * header. This is the one place the brand colour can be used literally.
 */
.t-header {
	z-index: 40;
	background: var(--t-dark);
	border-bottom: 1px solid var(--t-dark-line);
	color: var(--t-on-dark);
}

/*
 * Stickiness is a setting since 1.6.1, so it is a modifier rather than a
 * property of the header. It was unconditional, and an operator who wanted the
 * header to scroll away had no way to say so.
 */
.t-header--sticky {
	position: sticky;
	top: 0;
}

.admin-bar .t-header--sticky {
	top: 32px;
}

/*
 * The header row must be able to give way.
 *
 * It was a rigid flex row — brand, menu button, navigation and two action
 * buttons, all with `white-space: nowrap` and nothing allowed to shrink or
 * wrap. A browser at 1280px put the action buttons at x=1300, twenty pixels
 * past the viewport, and every page on the site scrolled sideways; at 390px
 * the row measured 503px. Nothing in the CSS said the row could be narrower
 * than the sum of its parts, so it never was.
 */
.t-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 24px;
	min-height: 76px;
	/* 1.12.0 (H): a wrapped (two-row) header keeps the lockup off the top edge. */
	padding-block: 12px;
	box-sizing: border-box;
}

.t-brand,
.t-nav,
.t-header__actions {
	min-width: 0;
}

/*
 * 1.12.0 (Workstream H): when the row wraps — English, whose uppercase tracked
 * descriptor and navigation are wider than the Arabic — the actions take the
 * end of the second row instead of hanging under the logo, so both languages
 * show the same lockup, descriptor and actions in the same order and
 * alignment. On a single row (Arabic, or English without the descriptor) the
 * flex `space-between` already puts them there and this changes nothing.
 */
.t-header__actions {
	margin-inline-start: auto;
}

.t-brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-decoration: none;
	color: var(--t-on-dark);
}

.t-brand__name {
	font-family: var(--t-serif);
	font-size: 22px;
	line-height: 1;
	color: #fff;
}

/* "PANACEA", above the platform name. The brand's own eyebrow treatment:
   uppercase at 3px tracking, which is one of its three tracking values. */
.t-brand__parent {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: var(--t-track-eyebrow);
	text-transform: uppercase;
	color: var(--t-brand);
}

.t-brand__descriptor {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: var(--t-track-eyebrow);
	text-transform: uppercase;
	color: var(--t-on-dark);
}

.t-brand__logo {
	max-height: 44px;
	width: auto;
}

.t-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.t-nav ul {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.t-nav a {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--t-track-button);
	text-transform: uppercase;
	color: var(--t-on-dark);
	text-decoration: none;
	white-space: nowrap;
}

.t-nav a:hover,
.t-nav .current-menu-item > a {
	color: var(--t-brand);
}

/*
 * The current page is marked by a rule as well as a colour, so the nav does
 * not rely on colour alone either (§7).
 */
.t-nav .current-menu-item > a {
	border-bottom: 2px solid var(--t-brand);
	padding-bottom: 2px;
}

.t-header__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

/*
 * The brand's button, verbatim where it can be and corrected where it cannot.
 *
 * Verbatim: zero radius, uppercase, 1px tracking, and the brand fill.
 * Corrected: Panacea sets WHITE text on #8493E6, which is 2.88:1 and fails AA
 * outright. Near-black on the same fill is 6.17:1 — the identical fill the
 * brand specifies, with text that can actually be read on it.
 */
.t-btn {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 10px 18px;
	border: 1px solid var(--t-brand);
	border-radius: var(--t-radius);
	background: var(--t-brand);
	color: #181818;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: var(--t-track-button);
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.t-btn:hover {
	background: var(--t-brand-hover);
	border-color: var(--t-brand-hover);
	color: #181818;
}

/* On the black header a ghost button is outlined in the pale periwinkle. */
.t-btn--ghost {
	background: transparent;
	border-color: var(--t-dark-line);
	color: var(--t-on-dark);
}

.t-btn--ghost:hover {
	background: transparent;
	border-color: var(--t-brand);
	color: var(--t-brand);
}

.t-menu-toggle {
	display: none;
	padding: 10px 14px;
	border: 1px solid var(--t-line);
	background: transparent;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

/* ------------------------------------------------------------
 * Home sections
 * ------------------------------------------------------------ */

.t-section {
	padding-block: 96px;
}

.t-section--ground {
	background: var(--t-ground);
}

.t-section--tight {
	padding-block: 64px;
}

.t-section__head {
	max-width: 72ch;
	margin-bottom: 48px;
}

.t-eyebrow {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--t-accent);
}

.t-section__title {
	margin: 0 0 16px;
	font-family: var(--t-serif);
	font-size: clamp(28px, 3.6vw, 44px);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.015em;
}

.t-section__intro {
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--t-ink-3);
}

.t-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 48px;
}

.t-panel {
	padding: 40px;
	border: 1px solid var(--t-line);
	background: var(--t-paper);
}

.t-panel h3 {
	margin: 0 0 12px;
	font-family: var(--t-serif);
	font-size: 26px;
	font-weight: 400;
}

.t-panel p {
	color: var(--t-ink-3);
}

.t-panel ul {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.t-panel li {
	position: relative;
	/* 1.6.2 (NEW-02): logical, so the marker's room follows it in RTL. */
	padding-block: 8px;
	padding-inline: 22px 0;
	border-bottom: 1px solid var(--t-line);
	font-size: 15px;
	color: var(--t-ink-2);
}

.t-panel li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 18px;
	width: 10px;
	height: 1px;
	background: var(--t-accent);
}

.t-statement {
	padding-block: 88px;
	background: var(--t-ink);
	color: #fff;
}

.t-statement__title {
	max-width: 22ch;
	margin: 0 0 20px;
	font-family: var(--t-serif);
	font-size: clamp(30px, 4vw, 52px);
	font-weight: 400;
	line-height: 1.1;
}

.t-statement__body {
	max-width: 66ch;
	margin: 0;
	font-size: 18px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.76);
}

.t-figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	margin-top: 48px;
	background: rgba(255, 255, 255, 0.16);
}

.t-figure {
	padding: 24px;
	background: var(--t-ink);
}

.t-figure__value {
	display: block;
	font-family: var(--t-serif);
	font-size: 30px;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.t-figure__label {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.t-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px;
}

.t-card {
	padding-top: 20px;
	border-top: 1px solid var(--t-ink);
}

.t-card__num {
	display: block;
	margin-bottom: 12px;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--t-accent);
}

.t-card h3 {
	margin: 0 0 8px;
	font-family: var(--t-serif);
	font-size: 21px;
	font-weight: 400;
}

.t-card p {
	margin: 0;
	font-size: 15px;
	color: var(--t-ink-3);
}

.t-final {
	padding-block: 96px;
	background: var(--t-ground);
	text-align: center;
}

.t-final h2 {
	margin: 0 0 16px;
	font-family: var(--t-serif);
	font-size: clamp(28px, 3.6vw, 46px);
	font-weight: 400;
}

.t-final p {
	max-width: 60ch;
	margin: 0 auto 32px;
	font-size: 18px;
	color: var(--t-ink-3);
}

.t-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

/* ------------------------------------------------------------
 * Editorial content
 * ------------------------------------------------------------ */

.t-page {
	padding-block: 64px;
}

.t-page__title {
	margin: 0 0 24px;
	font-family: var(--t-serif);
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 400;
	line-height: 1.15;
}

.t-content {
	max-width: 72ch;
}

.t-content h2 {
	margin: 40px 0 12px;
	font-family: var(--t-serif);
	font-size: 26px;
	font-weight: 400;
}

.t-content h3 {
	margin: 32px 0 8px;
	font-size: 17px;
	font-weight: 600;
}

.t-content p,
.t-content li {
	color: var(--t-ink-2);
}

.t-content blockquote {
	margin: 32px 0;
	padding-inline-start: 24px;
	border-inline-start: 2px solid var(--t-accent);
	font-family: var(--t-serif);
	font-size: 20px;
	color: var(--t-ink-2);
}

.t-postlist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 32px;
}

.t-post {
	padding-top: 20px;
	border-top: 1px solid var(--t-line);
}

.t-post__date {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--t-ink-4);
}

.t-post__title {
	margin: 8px 0;
	font-family: var(--t-serif);
	font-size: 21px;
	font-weight: 400;
}

.t-post__title a {
	color: var(--t-ink);
	text-decoration: none;
}

.t-post__title a:hover {
	color: var(--t-accent);
}

.t-post__excerpt {
	margin: 0;
	font-size: 15px;
	color: var(--t-ink-3);
}

/* ------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------ */

/* ------------------------------------------------------------
 * Footer — reads as Panacea (§7)
 *
 * The brand's footer is a black ground carrying pale-periwinkle copy, and this
 * is that. Two things changed beyond the colour, and both were accessibility
 * failures rather than taste:
 *
 *   - the section headings and the brand descriptor were
 *     rgba(255,255,255,0.45), which composites to #808080 and measures
 *     4.50:1 — fractionally UNDER AA once the rounding is removed;
 *   - the legal block and the copyright line were rgba(255,255,255,0.4) =
 *     #747474 = 3.80:1. That is the independence notice and the
 *     no-investment-advice notice — the most consequential sentences on the
 *     site — set below the readable threshold.
 *
 * Both now use the brand's own text-on-dark, #CCD9FB, at 12.59:1, and the
 * eyebrow headings use the brand periwinkle at 6.17:1. Brand-correct and
 * legible, which here are the same change.
 * ------------------------------------------------------------ */

.t-footer {
	padding-block: 64px 32px;
	background: var(--t-dark);
	color: var(--t-on-dark);
	font-size: 14px;
}

/*
 * THE FOOTER HAS BEEN ONE COLUMN SINCE 1.2.0, AND NOBODY NOTICED.
 *
 * It said `grid-template-columns: 2fr repeat(auto-fit, minmax(160px, 1fr))`.
 * `repeat(auto-fit, …)` is only valid when every other track in the list has a
 * definite size, and `2fr` has not; the whole declaration was therefore
 * invalid and dropped, and the grid fell back to its initial value — a single
 * column. Every footer column has been stacked vertically on every viewport
 * for four releases, which is why the footer was two and a half screens long.
 *
 * Flex rather than a second attempt at auto-fit: the identity block wants a
 * larger basis than the link columns and the link columns want to wrap as a
 * group, which is what `flex-wrap` plus two different bases says directly.
 */
.t-footer__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--t-dark-line);
}

.t-footer__grid > * {
	flex: 1 1 160px;
	min-width: 0;
}

.t-footer__grid > .t-footer__identity {
	flex: 1 1 280px;
	max-width: 420px;
}

.t-footer__brand {
	font-family: var(--t-serif);
	font-size: 22px;
	color: #fff;
}

.t-footer__parent {
	display: block;
	font-family: var(--t-sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: var(--t-track-eyebrow);
	text-transform: uppercase;
	color: var(--t-brand);
}

.t-footer__descriptor {
	margin-top: 6px;
	font-size: 10px;
	letter-spacing: var(--t-track-eyebrow);
	text-transform: uppercase;
	color: var(--t-on-dark);
}

.t-footer__statement {
	max-width: 42ch;
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--t-on-dark);
}

/* The column headings. The brand's eyebrow: uppercase, 3px tracking, brand
   colour — one of exactly three tracking values in the system. */
.t-footer h4 {
	margin: 0 0 12px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: var(--t-track-eyebrow);
	text-transform: uppercase;
	color: var(--t-brand);
}

.t-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.t-footer li {
	margin-bottom: 8px;
}

.t-footer a {
	color: var(--t-on-dark);
	text-decoration: none;
	font-size: 14px;
}

.t-footer a:hover,
.t-footer a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.t-footer__legal {
	padding-top: 24px;
}

/*
 * The independence and no-advice notices. 11px was already small for text a
 * reader is expected to rely on; at 3.80:1 it was not readable at all. Same
 * size, legible colour.
 */
.t-footer__legal p {
	max-width: 100ch;
	margin: 0 0 10px;
	font-size: 11px;
	line-height: 1.65;
	color: var(--t-on-dark);
}

.t-footer__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
	font-size: 11px;
	color: var(--t-on-dark);
}

/* The focus ring has to change on a black ground — the accent ink is too dark
 * against it. The brand periwinkle is 7.30:1 on black. */
.t-footer :focus-visible,
.t-header :focus-visible {
	outline: 2px solid var(--t-brand);
	outline-offset: 2px;
}

/* ------------------------------------------------------------
 * Arabic / RTL
 *
 * Direction is handled by logical properties throughout. This block
 * adjusts the typography itself: Arabic needs more line height, a larger
 * optical size, and none of the uppercase or letter-spaced treatments that
 * suit Latin small caps.
 * ------------------------------------------------------------ */

body.rtl {
	--t-serif: var(--resolve-serif, "Amiri", "Noto Naskh Arabic", "Times New Roman", serif);
	--t-sans: var(--resolve-sans, "Noto Sans Arabic", "Dubai", Tahoma, -apple-system, sans-serif);
	font-size: 17px;
	line-height: 1.85;
}

body.rtl .t-nav a,
body.rtl .t-btn,
body.rtl .t-eyebrow,
body.rtl .t-brand__descriptor,
body.rtl .t-figure__label,
body.rtl .t-footer h4,
body.rtl .t-post__date,
body.rtl .t-footer__descriptor {
	letter-spacing: 0;
	text-transform: none;
	font-size: 13px;
}

body.rtl .t-section__title,
body.rtl .t-statement__title,
body.rtl .t-page__title {
	line-height: 1.35;
	letter-spacing: 0;
}

body.rtl .t-figure__value {
	direction: ltr;
	unicode-bidi: isolate;
	text-align: start;
}

/* ------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------ */

@media (max-width: 1024px) {
	.t-menu-toggle {
		display: inline-block;
	}

	.t-nav {
		position: absolute;
		inset-inline: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 16px 24px 24px;
		background: var(--t-paper);
		border-bottom: 1px solid var(--t-line);
	}

	/* 1.12.0 (E3): collapsed only when theme.js runs; open = readable ink on paper. */
	.t-js .t-nav {
		display: none;
	}

	.t-js .t-nav.is-open {
		display: flex;
	}

	.t-nav a,
	.t-nav a:visited {
		color: var(--t-ink);
	}

	html:not(.t-js) .t-nav {
		position: static;
		display: flex;
	}

	.t-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.t-nav li {
		border-bottom: 1px solid var(--t-line);
	}

	.t-nav a {
		display: block;
		padding: 14px 0;
	}

	.t-header__inner {
		position: relative;
	}
}

@media (max-width: 640px) {
	/*
	 * Below this width the brand and the menu button alone fill the row, so
	 * the two action buttons take a line of their own rather than pushing the
	 * header wider than the screen. They are the primary calls to action —
	 * "Login" and "Seek Capital" — and hiding them to fit would cost more
	 * than a second row does.
	 */
	.t-header__actions {
		flex: 1 0 100%;
		justify-content: flex-start;
	}

	.t-btn {
		padding: 9px 14px;
	}
}

@media (max-width: 782px) {
	.t-section {
		padding-block: 56px;
	}

	.t-panel {
		padding: 24px;
	}

	.t-footer__grid {
		gap: 28px;
	}

	.t-footer__grid > *,
	.t-footer__grid > .t-footer__identity {
		flex-basis: 100%;
		max-width: none;
	}

	.admin-bar .t-header {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}


/* ============================================================
 * The account chip and the parent brand (§5, §16, §23).
 *
 * Logical properties throughout: this theme mirrors in Arabic without a second
 * stylesheet, and a `right: 0` here would strand the menu on the wrong edge.
 * ============================================================ */

.t-brand__parent {
	display: block;
	font-size: var(--t-type-label);
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--t-ink-4);
}

.t-account {
	position: relative;
}

.t-account__trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border: 1px solid var(--t-line);
	border-radius: var(--t-radius);
	cursor: pointer;
	list-style: none;
	min-inline-size: 0;
}

.t-account__trigger::-webkit-details-marker { display: none; }
.t-account__trigger::marker { content: ""; }

.t-account__trigger:hover {
	background: var(--t-ground);
}

.t-account__trigger:focus-visible {
	outline: 2px solid var(--t-accent);
	outline-offset: 2px;
}

.t-account__avatar {
	display: grid;
	place-items: center;
	inline-size: 28px;
	block-size: 28px;
	border-radius: 50%;
	background: var(--t-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	flex: 0 0 auto;
}

.t-account__who {
	display: flex;
	flex-direction: column;
	min-inline-size: 0;
	text-align: start;
}

.t-account__name {
	font-size: var(--t-type-support);
	line-height: 1.25;
	color: var(--t-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-inline-size: 18ch;
}

.t-account__sub {
	font-size: var(--t-type-label);
	letter-spacing: var(--t-type-label-tracking);
	text-transform: uppercase;
	color: var(--t-ink-4);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-inline-size: 18ch;
}

/*
 * 1.12.0: the account chip sits on the dark header. Its name and role used the
 * light-surface ink tokens and were all but invisible there (and vanished on
 * hover, which painted a light ground behind light-on-dark text). Inside the
 * header the chip takes the header's own colours; the dropdown menu keeps
 * its light surface.
 */
.t-header .t-account__trigger {
	border-color: var(--t-dark-line);
}

.t-header .t-account__trigger:hover {
	background: rgba(255, 255, 255, 0.08);
}

.t-header .t-account__name {
	color: #fff;
}

.t-header .t-account__sub {
	color: var(--t-on-dark);
}

.t-account__menu {
	position: absolute;
	inset-block-start: calc(100% + 8px);
	inset-inline-end: 0;
	z-index: 40;
	inline-size: max-content;
	min-inline-size: 220px;
	max-inline-size: min(320px, calc(100vw - 32px));
	padding: 12px;
	background: var(--t-paper);
	border: 1px solid var(--t-line);
	border-radius: var(--t-radius);
	box-shadow: var(--t-shadow-raised);
}

.t-account__signedin,
.t-account__company {
	margin: 0 0 8px;
	font-size: var(--t-type-support);
	color: var(--t-ink-3);
	overflow-wrap: anywhere;
}

.t-account__company {
	padding-block-start: 8px;
	border-block-start: 1px solid var(--t-line);
	color: var(--t-ink-2);
}

.t-account__companylabel {
	display: block;
	font-size: var(--t-type-label);
	letter-spacing: var(--t-type-label-tracking);
	text-transform: uppercase;
	color: var(--t-ink-4);
}

.t-account__items {
	margin: 0 0 8px;
	padding: 8px 0 0;
	list-style: none;
	border-block-start: 1px solid var(--t-line);
}

.t-account__link,
.t-account__signout {
	display: block;
	padding: 6px 8px;
	font-size: var(--t-type-support);
	color: var(--t-ink-2);
	text-decoration: none;
	border-radius: var(--t-radius);
}

.t-account__link:hover,
.t-account__link:focus,
.t-account__signout:hover,
.t-account__signout:focus {
	background: var(--t-ground);
	color: var(--t-ink);
}

.t-account__signout {
	padding-block-start: 10px;
	border-block-start: 1px solid var(--t-line);
	color: var(--t-danger);
	font-weight: 600;
}

.t-footer__parent {
	font-size: var(--t-type-label);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.7;
	margin-block-end: 6px;
}

.t-footer__tagline {
	font-family: var(--t-serif);
	font-size: 1rem;
	line-height: 1.5;
	margin-block: 12px;
}

.t-footer__address {
	font-style: normal;
	font-size: var(--t-type-support);
	line-height: 1.6;
	margin-block-end: 8px;
	white-space: pre-line;
}

@media (max-width: 479px) {
	/* At 390 the name is the useful half of the chip. */
	.t-account__sub {
		display: none;
	}

	.t-account__name {
		max-inline-size: 9ch;
	}

	.t-account__menu {
		inset-inline-end: calc(-1 * 12px);
		max-inline-size: calc(100vw - 24px);
	}
}

/* ------------------------------------------------------------
 * The language switcher (§4)
 *
 * Rendered in the marketing header by resolve_language_switcher(), which
 * delegates to the platform's Core\I18n so there is one switcher in the
 * product rather than a theme copy that can disagree about the locale list,
 * the form action or the nonce.
 *
 * Both options are always shown, each written in its own script. A control
 * labelled only "Language" is no use to somebody who has landed in a language
 * they cannot read, and one that hides the language you are currently in gives
 * you no way to confirm where you are.
 *
 * direction: ltr in BOTH directions: the pair always reads
 * "English | العربية", so the button being aimed at is in the same place
 * before and after the switch.
 * ------------------------------------------------------------ */

.t-lang {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 2px;
	border: 1px solid var(--t-line, #ddd8cc);
	border-radius: var(--resolve-radius, 0);
	direction: ltr;
}

.t-lang__option {
	appearance: none;
	border: 0;
	border-radius: var(--resolve-radius, 0);
	padding: 4px 10px;
	background: transparent;
	font: inherit;
	font-size: 12px;
	line-height: 1.6;
	/* Arabic glyphs are taller than Latin at the same size; without a minimum
	 * the two options are different heights and the pill looks broken. */
	min-block-size: 24px;
	color: var(--t-ink-2, #4a4a48);
	cursor: pointer;
}

.t-lang__option:hover,
.t-lang__option:focus-visible {
	background: var(--t-ground, #f4f2ec);
	color: var(--t-ink, #1c1c1a);
}

.t-lang__option.is-current {
	background: var(--t-ink, #1c1c1a);
	color: var(--t-paper, #fff);
	font-weight: 600;
}

.t-lang__option:focus-visible {
	outline: 2px solid var(--t-accent, #8a6a2f);
	outline-offset: 2px;
}

.t-lang__legend {
	padding-inline: 6px;
	font-size: 11px;
	letter-spacing: 0;
	text-transform: none;
	opacity: 0.7;
}

@media (max-width: 600px) {
	.t-lang__legend {
		display: none;
	}

	.t-lang__option {
		padding-inline: 8px;
	}
}

/* ============================================================
 * 1.6.1 — the configured chrome, and the brand treatment
 *
 * Everything below renders something a super administrator configured under
 * Theme & Branding, or paints a decorative figure the hero asked for by name.
 *
 * THE RULE THIS WHOLE BLOCK IS WRITTEN UNDER
 * -----------------------------------------
 * The official PANACEA artwork appears in exactly three places: the header
 * lockup, the footer lockup, and the mark used as a background. In all three
 * it is an <img> with `height: auto` or `width: auto` on one axis, upright,
 * unrotated, in its own proportions. There is no transform in this file that
 * touches it beyond a translate used for centring, no filter, no skew and no
 * second axis. §13A.1 forbids distorting, stretching, rotating or redrawing
 * the logo, and the way to honour that in CSS is to never write a rule that
 * could.
 *
 * The decorative figures below — rays, horizon, network — draw NOTHING from
 * the artwork. They are gradients. They take the mark's visual language (light
 * radiating from a point above a horizontal rule) and they are not the mark,
 * which is the distinction §13A.1 draws between decoration inspired by the
 * logo and the logo turned into decoration.
 * ============================================================ */

:root {
	/*
	 * Written over by resolve_theme_presentation_vars() when an operator has
	 * configured a background mark. Declared here so the var() calls below
	 * resolve to "nothing" rather than to an invalid value on an installation
	 * that has not — an undeclared custom property makes the whole declaration
	 * invalid, which is how a background-image fallback silently stops
	 * working.
	 */
	--t-mark: none;
	--t-mark-opacity: 0;
	--t-motion: 1;
}

/* ------------------------------------------------------------
 * The announcement line
 * ------------------------------------------------------------ */

.t-announce {
	background: var(--t-brand);
	color: #181818;
}

.t-announce p {
	margin: 0;
	padding: 10px 0;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

/* ------------------------------------------------------------
 * Header: logo, layouts, plain-link actions
 * ------------------------------------------------------------ */

/*
 * The lockup replaces the three stacked text lines the brand block used to
 * carry, so the block becomes a row: artwork, then the descriptor beside it,
 * separated by a rule. On a narrow screen the descriptor is dropped rather
 * than wrapped — a 9px uppercase line broken across two lines under a logo is
 * worse than no line.
 */
.t-brand {
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

.t-brand__logo {
	display: block;
	max-width: min(260px, 46vw);
	width: auto;
}

/*
 * The descriptor sits BESIDE the lockup, on one line, or not at all.
 *
 * `max-width: 22ch` let it wrap, and a 9px uppercase line at 3px tracking
 * wrapped into five words stacked one per line — "RESTRUCTUR / ING & /
 * SPECIAL / SITUATIONS / MARKETPLAC / E" at 1920px, which also pushed the
 * header's action row onto a second line. A single line that is sometimes
 * absent is better than a column of broken words that is always present.
 */
.t-brand__descriptor {
	padding-inline-start: 12px;
	border-inline-start: 1px solid var(--t-dark-line);
	white-space: nowrap;
}

.t-header--centred .t-header__inner {
	justify-content: center;
	text-align: center;
}

.t-header--centred .t-nav {
	flex-basis: 100%;
	justify-content: center;
}

.t-headerlink {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--t-track-button);
	text-transform: uppercase;
	color: var(--t-on-dark);
	text-decoration: none;
	white-space: nowrap;
}

.t-headerlink:hover,
.t-headerlink:focus-visible {
	color: var(--t-brand);
}

@media (max-width: 1280px) {
	.t-brand__descriptor {
		display: none;
	}
}

/* ------------------------------------------------------------
 * The brand mark behind the main screens
 *
 * The brand owner's direction for this release: the mark alone, as a
 * background on the main screens; the mark and the wordmark together in the
 * header and footer.
 *
 * It is painted on a ::before rather than on the section itself, because a
 * background-image on the section would be behind the section's own
 * background colour on any surface that has one, and because the opacity has
 * to apply to the mark and not to the text over it. `pointer-events: none`
 * because a decorative layer that intercepts a click is the classic way this
 * goes wrong.
 *
 * Opacity is the operator's, set under Logo & Branding and emitted into the
 * document as a custom property; zero when they have switched it off, which
 * makes the whole layer invisible without needing a second rule.
 * ------------------------------------------------------------ */

.t-statement,
.t-section,
.t-footercta {
	position: relative;
	isolation: isolate;
}

.t-statement::before,
.t-section::before,
.t-footercta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: var(--t-mark);
	background-repeat: no-repeat;
	background-position: center right -8%;
	background-size: auto 78%;
	opacity: var(--t-mark-opacity);
}

[dir="rtl"] .t-statement::before,
[dir="rtl"] .t-section::before,
[dir="rtl"] .t-footercta::before {
	background-position: center left -8%;
}

@media (max-width: 720px) {
	.t-statement::before,
	.t-section::before,
	.t-footercta::before {
		background-position: center;
		background-size: 150% auto;
	}
}

/* ------------------------------------------------------------
 * The hero's decorative figures
 *
 * Gradients only. Nothing below reproduces, traces or approximates the
 * official mark; each takes one idea from it — radiating light, a horizon
 * rule, a field of points — and draws that idea in CSS.
 * ------------------------------------------------------------ */

/*
 * RAYS. A soft radial field with a repeating conic sweep laid over it and
 * masked back to nothing at the edges, so what a reader sees is light with
 * structure in it rather than a wheel. The mask is what keeps it from reading
 * as a sunburst graphic: the spokes only exist in the middle third of the
 * radius, where they are already faint.
 */
.resolve-hero__figure--rays {
	background:
		repeating-conic-gradient(
			from 200deg at 76% 112%,
			rgba(204, 217, 251, 0.14) 0deg 0.55deg,
			transparent 0.55deg 3.4deg
		),
		radial-gradient(
			circle at 76% 112%,
			rgba(132, 147, 230, 0.42) 0%,
			rgba(132, 147, 230, 0.16) 28%,
			transparent 62%
		);
	-webkit-mask-image: radial-gradient(circle at 76% 112%, #000 0%, #000 34%, transparent 72%);
	mask-image: radial-gradient(circle at 76% 112%, #000 0%, #000 34%, transparent 72%);
}

[dir="rtl"] .resolve-hero__figure--rays {
	background:
		repeating-conic-gradient(
			from 200deg at 24% 112%,
			rgba(204, 217, 251, 0.14) 0deg 0.55deg,
			transparent 0.55deg 3.4deg
		),
		radial-gradient(
			circle at 24% 112%,
			rgba(132, 147, 230, 0.42) 0%,
			rgba(132, 147, 230, 0.16) 28%,
			transparent 62%
		);
	-webkit-mask-image: radial-gradient(circle at 24% 112%, #000 0%, #000 34%, transparent 72%);
	mask-image: radial-gradient(circle at 24% 112%, #000 0%, #000 34%, transparent 72%);
}

/*
 * HORIZON. One hairline across the full width with light above it, which is
 * the composition the mark sits in — a rule with a source of light over it.
 * Drawn as two stacked gradients so the rule is exactly one pixel at any
 * zoom.
 */
.resolve-hero__figure--horizon {
	background:
		linear-gradient(
			to bottom,
			transparent calc(68% - 1px),
			rgba(204, 217, 251, 0.34) calc(68% - 1px),
			rgba(204, 217, 251, 0.34) 68%,
			transparent 68%
		),
		radial-gradient(
			ellipse 70% 46% at 50% 68%,
			rgba(132, 147, 230, 0.34) 0%,
			transparent 70%
		);
}

/*
 * NETWORK. A field of points on two offset grids, faded towards the reading
 * edge so the headline always sits on the quiet part of it. Market structure
 * rather than a stock chart — §13A.2 asks for the first and rules out the
 * second.
 */
.resolve-hero__figure--network {
	background-image:
		radial-gradient(circle, rgba(204, 217, 251, 0.5) 1px, transparent 1.6px),
		radial-gradient(circle, rgba(132, 147, 230, 0.34) 1px, transparent 1.6px);
	background-size: 46px 46px, 92px 92px;
	background-position: 0 0, 23px 23px;
	-webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.3) 48%, transparent 82%);
	mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.3) 48%, transparent 82%);
}

[dir="rtl"] .resolve-hero__figure--network {
	-webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.3) 48%, transparent 82%);
	mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.3) 48%, transparent 82%);
}

/*
 * The one piece of motion in the hero, and it is very slow on purpose.
 *
 * Forty seconds for a 2% drift. §13A.6 asks for subtle, performant,
 * non-distracting movement; a transform on a decorative layer is composited on
 * the GPU and costs nothing, and at this speed a reader notices the hero is
 * alive without ever watching it move.
 *
 * It is gated twice. `--t-motion` is the operator's switch — the Theme
 * Presentation screen — and the media query is the reader's, which wins
 * because it is about them rather than about the site.
 */
@keyframes t-drift {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}
	to {
		transform: translate3d(0, -1.6%, 0) scale(1.02);
	}
}

.resolve-hero__figure--rays,
.resolve-hero__figure--horizon {
	animation: t-drift 40s ease-in-out infinite alternate;
	will-change: transform;
}

/*
 * The operator's switch. It is a BODY CLASS and not a custom property,
 * because a custom property cannot turn an animation off — `animation: none`
 * has to come from a selector, and a selector is what a class gives.
 */
.t-no-motion .resolve-hero__figure {
	animation: none;
	will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
	.resolve-hero__figure {
		animation: none !important;
		will-change: auto;
	}
}

/* ------------------------------------------------------------
 * The hero's type, in the theme's own voice
 *
 * The plugin ships the structure; this is what makes it the brand's. The
 * serif headline and the periwinkle eyebrow are the two things that tell a
 * reader which company's site this is before they have read a word of it.
 * ------------------------------------------------------------ */

.resolve-hero--slider .resolve-hero__title {
	max-width: 17ch;
	font-family: var(--t-serif);
	font-size: clamp(34px, 5.2vw, 68px);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.resolve-hero--slider .resolve-hero__eyebrow {
	font-size: var(--t-type-label);
	letter-spacing: var(--t-track-eyebrow);
	color: var(--t-brand);
}

.resolve-hero--slider .resolve-hero__sub {
	max-width: 54ch;
	font-size: 17px;
	line-height: 1.6;
}

/*
 * Arabic headlines are set without the negative tracking and a little looser.
 * Negative letter-spacing severs the joins between Arabic letters, which is
 * the single most damaging thing a Latin-designed type scale does to an
 * Arabic page — the same correction the token file makes for the eyebrow.
 */
[dir="rtl"] .resolve-hero--slider .resolve-hero__title {
	letter-spacing: 0;
	line-height: 1.22;
	max-width: 20ch;
}

[dir="rtl"] .resolve-hero--slider .resolve-hero__eyebrow {
	letter-spacing: 0;
}

/* ------------------------------------------------------------
 * Footer: the configured identity block, social row, CTA band
 * ------------------------------------------------------------ */

.t-footer__identity {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.t-footer__logo {
	display: inline-block;
	margin-bottom: 6px;
	text-decoration: none;
}

.t-footer__logo .t-brand__logo {
	max-width: min(260px, 60vw);
}

.t-footer__notice {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--t-on-dark);
}

.t-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.t-social__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--t-track-button-sm);
	text-transform: uppercase;
	color: var(--t-on-dark);
	text-decoration: none;
}

.t-social__link:hover,
.t-social__link:focus-visible {
	color: var(--t-brand);
}

/*
 * The call-to-action band above the footer. Off by default — it is drawn only
 * when an operator has written one, which is why there is no placeholder
 * state and no empty variant.
 */
.t-footercta {
	padding-block: calc(var(--t-section) * 0.52);
	background: var(--t-ground);
	border-top: 1px solid var(--t-line);
	text-align: center;
}

.t-footercta h2 {
	margin: 0 0 12px;
	font-family: var(--t-serif);
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 400;
	line-height: 1.12;
}

.t-footercta p {
	max-width: 56ch;
	margin: 0 auto 24px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--t-ink-3);
}

/* ------------------------------------------------------------
 * Corrections found by rendering the 1.6.1 chrome
 * ------------------------------------------------------------ */

/*
 * The mobile menu button was BLACK TEXT ON A BLACK HEADER.
 *
 * It has had `background: transparent` and no colour since 1.2.0, so it
 * inherited the browser's default button colour rather than the header's, and
 * when the header became black at 1.6.0 the label went with it. The control
 * was still focusable and still worked; it was simply invisible, which on a
 * phone is the whole of the navigation. The border was the light-surface line
 * colour for the same reason.
 */
.t-menu-toggle {
	border-color: var(--t-dark-line);
	color: var(--t-on-dark);
	letter-spacing: var(--t-track-button);
}

.t-menu-toggle:hover,
.t-menu-toggle:focus-visible {
	border-color: var(--t-brand);
	color: var(--t-brand);
}

/*
 * The hero's dark ground is the brand's black, not the application's ink.
 *
 * The plugin's baseline paints it `--r-ink` (#181818), which is correct for a
 * plugin that may be running under any theme. Under THIS theme the hero sits
 * directly beneath a #000 header, and two blacks eight per cent apart read as
 * a rendering fault rather than as a design.
 */
/*
 * `body` on the selector, deliberately, and the reason is load order.
 *
 * The plugin's stylesheet is enqueued AFTER this one — Shell::attach_tokens()
 * makes this sheet a dependency of the token file, so the platform's rules
 * come last — which means a theme rule of equal specificity loses. Every
 * override in this block therefore carries one extra element on the left.
 * This is the one place in the theme where that is true, and it is written
 * down so the next person to add a rule here knows why their flat selector
 * did nothing.
 */
body .resolve-hero--dark {
	background: var(--t-dark);
}

/*
 * The background mark, sized for the page rather than for itself.
 *
 * `max-width` alone left the artwork at its natural 900px on every viewport,
 * so it was a small graphic on a 1920px screen and a large one on a 1280px
 * screen. A width proportional to the viewport with `height: auto` scales it
 * on both axes together — which is the only kind of scaling this artwork is
 * allowed, and the reason the height is never given a value of its own.
 */

/*
 * The ghost button on a LIGHT surface — a contrast failure found by rendering.
 *
 * `.t-btn--ghost` was written for the black header, where #CCD9FB on #000 is
 * 14.89:1. The same class is used on the home page's closing call to action
 * and on the 404 page, both of which sit on white, where the same colour
 * measures 1.40:1 and the label is effectively invisible. One class was doing
 * two jobs on two grounds and could only be right on one of them.
 *
 * The header and footer keep the pale periwinkle, named explicitly. Everywhere
 * else the ghost button takes the body ink and the ordinary line colour, which
 * is 12.6:1 on white — and the hover state keeps a visible border rather than
 * relying on colour alone.
 */
.t-btn--ghost {
	border-color: var(--t-line);
	color: var(--t-ink);
}

.t-btn--ghost:hover,
.t-btn--ghost:focus-visible {
	border-color: var(--t-ink);
	color: var(--t-ink);
}

.t-header .t-btn--ghost,
.t-footer .t-btn--ghost {
	border-color: var(--t-dark-line);
	color: var(--t-on-dark);
}

.t-header .t-btn--ghost:hover,
.t-header .t-btn--ghost:focus-visible,
.t-footer .t-btn--ghost:hover,
.t-footer .t-btn--ghost:focus-visible {
	border-color: var(--t-brand);
	color: var(--t-brand);
}

/* ------------------------------------------------------------
 * 1.8.0 — footer disclosures (Workstream B).
 *
 * The identity statement and the two disclosure links sit in the identity
 * column; the independence and no-guarantee summary leads the legal strip,
 * above the platform's existing notices. Same on-dark colour as the rest of
 * the footer text (12.59:1), never smaller than the notices beside it.
 * ------------------------------------------------------------ */

.t-footer .resolve-disclosure {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--t-dark-line);
	color: var(--t-on-dark);
}

.t-footer .resolve-disclosure__identity {
	font-size: 13px;
	color: var(--t-on-dark);
}

.t-footer .resolve-disclosure__links a {
	font-size: 13px;
	color: #fff;
	text-decoration: underline;
}

.t-footer .resolve-disclosure-summary {
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--t-dark-line);
}

.t-footer .resolve-disclosure-summary .resolve-disclosure__summary {
	max-width: 100ch;
	font-size: 12px;
	line-height: 1.7;
	color: var(--t-on-dark);
}

body.rtl .t-footer .resolve-disclosure__identity,
body.rtl .t-footer .resolve-disclosure-summary .resolve-disclosure__summary {
	font-size: 14px;
	line-height: 1.9;
}

/* ------------------------------------------------------------------ */
/* 1.12.0 — classes that replace the home page's inline styles         */
/* (the copy itself now comes from the platform: Theme\Content).       */
/* ------------------------------------------------------------------ */
.t-section__actions { margin-top: 32px; }
.t-panel--spaced { margin-top: 24px; }
.t-eyebrow--on-dark { color: rgba(255, 255, 255, 0.6); }
.t-btn--on-dark { border-color: rgba(255, 255, 255, 0.4); color: #fff; }


/* ------------------------------------------------------------
 * 1.16.0 — HAYKALA | هيكلة
 *
 * The lockup's faces and optical balance come from the platform's
 * resolve-brand.css (Core\Brand); this block only sizes it for the theme's
 * header and footer and sets the tagline and attribution in their own case.
 * Colours are the existing tokens (hk-on-dark maps them to --resolve-on-dark
 * and --resolve-brand), so Super Admin → Design tokens still governs them.
 * ------------------------------------------------------------ */

.t-brand .hk-lockup {
	font-size: 27px;
}

@media (min-width: 1281px) {
	/* Beside the lockup only where the descriptor shows at all (see the
	   max-width: 1280px rule above, which still hides it on narrower screens). */
	.t-brand__descriptor {
		display: flex;
		flex-direction: column;
		gap: 3px;
	}
}

.t-brand__tagline,
body.rtl .t-brand__descriptor .t-brand__tagline {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.01em;
	text-transform: none;
	color: var(--t-on-dark);
}

.t-brand__managed,
body.rtl .t-brand__descriptor .t-brand__managed {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.3;
}

.t-footer__logo .hk-lockup,
.t-footer__brand .hk-lockup {
	font-size: 32px;
}

.t-footer__descriptor.hk-tagline,
body.rtl .t-footer__descriptor.hk-tagline {
	font-size: 14px;
	letter-spacing: 0.01em;
	text-transform: none;
	line-height: 1.4;
}

.t-footer__managed {
	font-size: 12.5px;
}

@media (max-width: 480px) {
	.t-brand .hk-lockup {
		font-size: 22px;
	}

	.t-footer__logo .hk-lockup,
	.t-footer__brand .hk-lockup {
		font-size: 26px;
	}
}

/* ===========================================================================
 * 1.17.0 — Public header: one balanced row (approved HAYKALA reference).
 * The 1.12.0 header intentionally wrapped the language/login/CTA actions to a
 * second row in English. The owner's approved reference shows a single row:
 * brand + tagline at the start, primary navigation and the language/account
 * actions at the end. At desktop widths the header is now one row; the mobile
 * drawer below this file's breakpoint is unchanged. Logical properties keep it
 * correct in Arabic RTL. No content, link or control is removed.
 * ========================================================================= */
@media (min-width: 1024px) {
	.t-header__inner {
		flex-wrap: nowrap;
	}
	/* The brand keeps its natural width (lockup + tagline) so the tagline is
	 * never underlapped by the navigation. */
	.t-brand {
		flex: 0 0 auto;
	}
	/* The navigation fills the space between brand and actions and sits at the
	 * end; it may shrink but never wraps to a second row. */
	.t-nav {
		flex: 1 1 auto;
		justify-content: flex-end;
		min-width: 0;
	}
	.t-nav ul {
		flex-wrap: nowrap;
	}
	.t-header__actions {
		flex: 0 0 auto;
		margin-inline-start: 24px;
	}
}
/* On desktop the long uppercase descriptor tagline is what makes the single
 * row overflow (it is as wide as the whole lockup). It is decorative brand text
 * — not a legal disclosure — and it still shows on the stacked tablet/mobile
 * header and in the footer, so on the desktop single row it steps aside while
 * the HAYKALA | هيكلة lockup, the "Managed by Panacea Capital" attribution and
 * every navigation link and action remain. */
@media (min-width: 1024px) {
	.t-brand__descriptor {
		display: none;
	}
	/* a slightly tighter navigation rhythm so the five links, the language
	 * selector and the actions share one row comfortably */
	.t-nav ul {
		gap: 20px;
	}
}

/* ===========================================================================
 * 1.17.1 — APPROVED DESIGN INTEGRATION (public site)
 * ---------------------------------------------------------------------------
 * DESIGN-ONLY, additive, placed last. Implements the owner-approved public
 * composition on the EXISTING templates: a light header with the authentic
 * Panacea sunburst + bilingual HAYKALA | هيكلة lockup, the two-column
 * editorial hero with the authentic colonnade photograph, a restrained
 * process section, and the shared compact footer. Logical properties keep it
 * correct in Arabic RTL. No route, control or legal notice is removed.
 *
 * Fonts: Playfair/Manrope/DM Sans/Noto are enqueued from Google Fonts in
 * functions.php (with full fallback stacks).
 *
 * 1.17.2 — PRODUCTION FONT SAFETY. The English wordmark is set in the licensed
 * Playfair Display (SIL OFL, high-contrast display serif) BY DEFAULT. The
 * Canela trial font is NOT shipped and NOT referenced, so no unlicensed face
 * can reach production. TO ENABLE LICENSED CANELA: drop a licensed
 * Canela-Regular.woff2 into assets/fonts/, add an @font-face for
 * "Panacea Canela" pointing at it, and prepend "Panacea Canela", to
 * --hk-latin-font below. The layout is correct either way.
 * ========================================================================= */

/* The lockup's Latin wordmark takes the licensed Playfair Display by default.
 * The Arabic face (Noto Naskh) and optical balance are unchanged. */
:root,
.hk-on-dark,
.hk-on-light {
	--hk-latin-font: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--hk-latin-weight: 500;
}

/* Editorial faces for the public marketing surfaces. */
:root {
	--hk-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--hk-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body.rtl {
	--hk-display: "Noto Naskh Arabic", "Amiri", "Scheherazade New", "Times New Roman", serif;
	--hk-head: "Noto Sans Arabic", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ---------------------------------------------------------------------------
 * Light header (approved): white ground, fine hairline, dark-ink lockup with
 * periwinkle Arabic and the authentic sunburst. Overrides the earlier dark
 * (§7 "reads as Panacea") treatment for the approved design.
 * ------------------------------------------------------------------------- */
.t-header {
	background: #fcfcfd;
	border-bottom: 1px solid var(--t-line);
	color: var(--t-ink);
}
.t-header__inner {
	min-height: 72px;
}

/* The brand on the light header: sunburst symbol + bilingual lockup. */
.t-brand {
	flex-direction: row;
	align-items: center;
	gap: 11px;
	color: var(--t-ink);
}
.hk-brand-symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
}
.hk-brand-symbol img {
	width: 34px;
	height: 34px;
	object-fit: contain;
	display: block;
}

/* Light-surface lockup colours: dark ink English, periwinkle Arabic, faint
 * separator (approved §5). These override the .hk-on-dark values the header
 * previously used. */
.t-header .t-brand .hk-lockup {
	--hk-name-color: var(--rv-wordmark-ink, #3c3950);
	--hk-sep-color: #cfccdf;
}
.t-header .t-brand .hk-ar {
	color: #8c81a6;
}
.t-brand .hk-lockup {
	font-size: 23px;
}

/* Navigation + actions on the light header. */
.t-header .t-nav a {
	color: var(--t-ink-2);
}
.t-header .t-nav a:hover,
.t-header .t-nav .current-menu-item > a {
	color: var(--t-ui);
	border-color: var(--t-ui);
}
.t-header .t-menu-toggle {
	color: var(--t-ink-2);
	border-color: var(--t-line);
}

/* The header actions read as quiet controls on white. The primary action
 * (e.g. "Company workspace") keeps the periwinkle button; a secondary reads
 * as an outlined control. The language switcher sits beside them. */
.t-header .t-btn {
	border-color: var(--t-ui);
	background: var(--t-ui);
	color: #fff;
}
.t-header .t-btn:hover {
	background: var(--t-accent-2, #52518f);
	border-color: var(--t-accent-2, #52518f);
	color: #fff;
}
.t-header .t-btn--ghost {
	background: #fff;
	border-color: var(--t-line);
	color: var(--t-ink-2);
}
.t-header .t-btn--ghost:hover,
.t-header .t-btn--ghost:focus-visible {
	background: #fff;
	border-color: var(--t-ui);
	color: var(--t-ui);
}
.t-header .t-lang,
.t-header .t-lang__option {
	color: var(--t-ink-3);
}
.t-header .t-lang__option.is-current {
	color: var(--t-ink);
}

/* The account chip on a light header. */
.t-header .t-account__trigger {
	color: var(--t-ink-2);
}
.t-header .t-account__name {
	color: var(--t-ink);
}

/* ---------------------------------------------------------------------------
 * Public homepage — the approved two-column editorial hero.
 * ------------------------------------------------------------------------- */
.hk-home {
	background: var(--t-ground);
}
.hk-home .t-wrap {
	max-width: 1240px;
}
.hk-hero {
	display: grid;
	grid-template-columns: 1.12fr 1fr;
	gap: 56px;
	align-items: center;
	padding: 66px 0 52px;
}
.hk-kicker {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-family: var(--hk-head);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: #9185a1;
}
.hk-kicker > span {
	width: 26px;
	height: 1px;
	background: #b4a7c3;
}
body.rtl .hk-kicker {
	letter-spacing: 0;
	font-size: 12px;
}
.hk-hero__title {
	font-family: var(--hk-display);
	font-size: clamp(38px, 4.6vw, 57px);
	font-weight: 400;
	letter-spacing: -1.6px;
	line-height: 1.14;
	color: var(--t-ink);
	margin: 24px 0 22px;
}
.hk-hero__title em {
	font-style: italic;
	font-weight: 400;
	color: #9284ad;
}
body.rtl .hk-hero__title {
	letter-spacing: -0.6px;
	line-height: 1.5;
	font-size: clamp(32px, 4vw, 46px);
}
body.rtl .hk-hero__title em {
	font-style: normal;
}
.hk-hero__lede {
	font-size: 15.5px;
	line-height: 1.85;
	color: var(--t-ink-3);
	max-width: 460px;
	margin: 0 0 28px;
}
body.rtl .hk-hero__lede {
	line-height: 2.1;
}
.hk-hero__actions {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}
/* The approved hero primary action. The supplied CSS fills it periwinkle with
 * white text; we use the approved UI periwinkle base (#6867AD) rather than the
 * lighter prototype tint so white text clears WCAG 2.2 AA (4.77:1). */
.hk-btn--hero {
	background: var(--t-ui);
	border-color: var(--t-ui);
	color: #fff;
	min-height: 46px;
	padding: 13px 22px;
	font-size: 12px;
	gap: 9px;
}
.hk-btn--hero:hover {
	background: var(--t-accent-2, #52518f);
	border-color: var(--t-accent-2, #52518f);
	color: #fff;
}
.hk-btn--hero svg {
	width: 15px;
	height: 15px;
}
.hk-link--quiet {
	font-family: var(--hk-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--t-ui);
	text-decoration: none;
}
body.rtl .hk-link--quiet {
	letter-spacing: 0;
}
.hk-link--quiet:hover {
	color: var(--t-accent-2, #52518f);
	text-decoration: underline;
}
.hk-hero__trust {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 30px;
	font-size: 12px;
	color: var(--t-ink-4);
}
.hk-hero__trust svg {
	width: 16px;
	height: 16px;
	color: #a79cbb;
	flex: 0 0 auto;
}

/* The photo panel: authentic colonnade photograph, navy ground + subtle navy
 * overlay, object-fit cover, original orientation retained in RTL. */
.hk-hero__art {
	position: relative;
	align-self: stretch;
	min-height: 440px;
	margin: 0;
	border-radius: 4px;
	overflow: hidden;
	background: var(--t-dark-2, #24283e);
	border: 1px solid #36364e;
	isolation: isolate;
}
.hk-hero__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 49%;
	filter: grayscale(100%) contrast(1.02);
}
.hk-hero__art::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 24, 44, 0.42), rgba(25, 29, 48, 0.08) 44%, rgba(20, 24, 44, 0.78));
	z-index: 1;
}
.hk-hero__index,
.hk-hero__caption,
.hk-hero__baseline {
	position: absolute;
	z-index: 2;
	color: #e9e8f2;
}
.hk-hero__index {
	top: 22px;
	inset-inline-start: 24px;
	font-family: var(--hk-head);
	font-size: 10px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #c6c4d8;
}
.hk-hero__caption {
	inset-inline-start: 26px;
	bottom: 24px;
	margin: 0;
	font-family: var(--hk-display);
	font-size: 30px;
	line-height: 1.22;
	color: #f3f2f8;
}
body.rtl .hk-hero__caption {
	font-size: 26px;
	line-height: 1.5;
}
.hk-hero__baseline {
	inset-inline-end: 23px;
	bottom: 27px;
	font-family: var(--hk-head);
	font-size: 9px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #b7b4cf;
}

/* ---------------------------------------------------------------------------
 * Process section (approved: "A PATH FORWARD" + three restrained steps).
 * ------------------------------------------------------------------------- */
.hk-process {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr 1fr;
	gap: 34px;
	border-top: 1px solid var(--t-line);
	padding: 40px 0 26px;
}
.hk-process__intro .t-eyebrow {
	color: #9185a1;
}
.hk-process__intro h2 {
	font-family: var(--hk-display);
	font-size: 25px;
	font-weight: 400;
	line-height: 1.4;
	color: #4a4560;
	margin: 12px 0 0;
}
body.rtl .hk-process__intro h2 {
	line-height: 1.7;
	font-size: 23px;
}
.hk-process article {
	border-inline-start: 1px solid var(--t-line);
	padding-inline-start: 24px;
	padding-top: 3px;
}
.hk-process__num {
	font-family: var(--hk-display);
	font-style: italic;
	font-size: 26px;
	color: #c3bace;
}
.hk-process h3 {
	font-family: var(--hk-head);
	font-size: 14px;
	font-weight: 600;
	color: var(--t-ink-2);
	margin: 12px 0 9px;
}
.hk-process p {
	font-size: 13px;
	line-height: 1.85;
	color: var(--t-ink-3);
	margin: 0;
}
.hk-home__disclaimer {
	font-size: 11.5px;
	color: var(--t-ink-4);
	margin: 18px 0 46px;
}

/* ---------------------------------------------------------------------------
 * Responsive — preserve the hierarchy and photo treatment (approved §4).
 * ------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.hk-hero {
		grid-template-columns: 1fr;
		gap: 34px;
		padding-top: 44px;
	}
	.hk-hero__art {
		min-height: 320px;
		order: -1; /* photo leads on stacked mobile, as approved */
	}
	.hk-process {
		grid-template-columns: repeat(3, 1fr);
		gap: 22px;
	}
	.hk-process__intro {
		grid-column: 1 / -1;
	}
	.hk-process__intro h2 br {
		display: none;
	}
	.hk-process article:first-of-type {
		border-inline-start: 0;
		padding-inline-start: 0;
	}
}
@media (max-width: 560px) {
	.hk-process {
		grid-template-columns: 1fr;
	}
	.hk-process article {
		border-inline-start: 0;
		padding-inline-start: 0;
		border-top: 1px solid var(--t-line);
		padding-top: 16px;
	}
	.hk-hero__caption {
		font-size: 24px;
	}
}

/* ---------------------------------------------------------------------------
 * The shared compact footer (approved §7): quiet ground, top hairline,
 * sunburst + bilingual lockup, "Managed by Panacea Capital" attribution,
 * compact utility links, restrained copyright. ~60–80px desktop; wraps on
 * mobile. The full marketing footer grid is replaced by this component on the
 * public site; the plugin shells carry the same component.
 * ------------------------------------------------------------------------- */
.hk-footer {
	background: #fbfbfc;
	border-top: 1px solid var(--t-line);
	color: var(--t-ink-3);
}
.hk-footer__inner {
	max-width: var(--t-maxw);
	margin-inline: auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	gap: 18px 26px;
	flex-wrap: wrap;
	min-height: 64px;
}
.hk-footer__identity {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.hk-footer__identity .hk-brand-symbol,
.hk-footer__identity .hk-brand-symbol img {
	width: 26px;
	height: 26px;
}
.hk-footer__identity .hk-lockup {
	font-size: 17px;
	--hk-name-color: var(--rv-wordmark-ink, #3c3950);
	--hk-sep-color: #cfccdf;
}
.hk-footer__identity .hk-ar {
	color: #8c81a6;
}
.hk-footer__sep {
	width: 1px;
	height: 22px;
	background: var(--t-line);
}
.hk-footer__managed {
	font-size: 12px;
	color: var(--t-ink-3);
}
.hk-footer__managed bdi {
	direction: ltr;
	unicode-bidi: isolate;
	font-weight: 600;
}
.hk-footer__links {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-inline-start: auto;
	flex-wrap: wrap;
	list-style: none;
	margin-block: 0;
	padding: 0;
}
.hk-footer__links a {
	font-size: 12px;
	color: var(--t-ink-3);
	text-decoration: none;
}
.hk-footer__links a:hover,
.hk-footer__links a:focus-visible {
	color: var(--t-ui);
	text-decoration: underline;
}
.hk-footer__copy {
	width: 100%;
	border-top: 1px solid var(--t-line);
	margin-top: 2px;
	padding: 10px 24px 14px;
	max-width: var(--t-maxw);
	margin-inline: auto;
	font-size: 11px;
	color: var(--t-ink-4);
	display: flex;
	gap: 8px 16px;
	flex-wrap: wrap;
	justify-content: space-between;
}
.hk-footer__copy bdi {
	direction: ltr;
	unicode-bidi: isolate;
}
.hk-footer__legalnote {
	max-width: var(--t-maxw);
	margin-inline: auto;
	padding: 0 24px 14px;
}
.hk-footer__legalnote .resolve-disclaimer p,
.hk-footer__legalnote p {
	font-size: 11px;
	line-height: 1.6;
	color: var(--t-ink-4);
	margin: 2px 0;
}
@media (max-width: 680px) {
	.hk-footer__links {
		margin-inline-start: 0;
		width: 100%;
	}
	.hk-footer__copy {
		justify-content: flex-start;
	}
}

/* The header no longer carries .hk-on-dark; the descriptor/attribution that
 * show on the stacked tablet/mobile header take ink on the light ground. */
.t-header .t-brand__tagline,
.t-header .t-brand__managed,
.t-header .t-brand__descriptor {
	color: var(--t-ink-3);
}
.t-header .t-brand__managed .hk-managed__name {
	color: var(--t-ink-2);
}

/* -------------------------------------------------------------------------
   HAYKALA approved public experience (PDF reference, page 1 public homepage).
   Theme-only presentation; navigation, routes, copy settings and all actions
   remain owned by WordPress/Core.
   ------------------------------------------------------------------------- */
body.home .t-header {
  position: relative; z-index: 20; background: #10253b; color: #fff;
  border: 0; box-shadow: none; min-height: 60px;
}
body.home .t-header .t-wrap { max-width: 1250px; }
body.home .t-header__inner { min-height: 60px; gap: 22px; padding-top: 8px; padding-bottom: 8px; }
body.home .t-brand { color: #fff; gap: 8px; min-width: 210px; }
body.home .t-brand .hk-brand-symbol { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; }
body.home .t-brand .hk-lockup,
body.home .t-brand__name,
body.home .t-brand__tagline { color: #fff !important; }
body.home .t-brand__managed { color: #b8c6d6; }
body.home .t-nav a { color: #eaf0f7; font-size: 12px; }
body.home .t-nav a:hover,
body.home .t-nav .current-menu-item > a { color: #fff; }
body.home .t-header__actions { gap: 10px; }
body.home .t-lang { color: #fff; }
body.home .t-lang__option { color: #fff; border-color: rgba(255,255,255,.22); }
body.home .t-lang__option.is-current { background: #fff; color: #10253b; }
body.home .t-header .t-action,
body.home .t-header__actions .t-btn { border-radius: 2px; font-size: 11px; min-height: 36px; }
body.home .t-header__actions .t-btn--primary,
body.home .t-header__actions a:last-of-type { background: #2f65f5; color: #fff; border-color: #2f65f5; }
body.home .t-header .t-account__trigger { color: #fff; }
body.home .t-menu-toggle { color: #fff; border-color: rgba(255,255,255,.3); }

.hk-public-home { color: #1b2b43; background: #fff; }
.hk-ref-container { width: min(1250px, calc(100% - 48px)); margin-inline: auto; }
.hk-ref-hero { min-height: 352px; position: relative; overflow: hidden; isolation: isolate; background: #10233b; color: #fff; }
.hk-ref-hero__backdrop { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(90deg, #0d2038 0%, rgba(13,32,56,.98) 22%, rgba(13,32,56,.72) 44%, rgba(13,32,56,.12) 100%), url('assets/brand/haykala-cairo-skyline.jpg'); background-size: cover; background-position: center 48%; }
.hk-ref-hero__inner { min-height: 352px; display: flex; align-items: center; }
.hk-ref-hero__copy { width: min(580px, 55%); padding: 34px 0 25px; }
.hk-ref-eyebrow { color: #6c8fff; font: 700 10px/1.4 var(--hk-head, 'Manrope', sans-serif); letter-spacing: 1.25px; text-transform: uppercase; margin: 0 0 12px; }
body.rtl .hk-ref-eyebrow { letter-spacing: 0; }
.hk-ref-hero .hk-ref-eyebrow { color: #d5b16c; }
.hk-ref-hero h1 { white-space: pre-line; color: #fff; font-family: var(--hk-display, 'Playfair Display', Georgia, serif); font-size: clamp(36px, 4.2vw, 54px); font-weight: 500; letter-spacing: -.8px; line-height: 1.06; margin: 0 0 16px; max-width: 560px; }
body.rtl .hk-ref-hero h1 { font-family: 'Noto Naskh Arabic', Georgia, serif; line-height: 1.45; letter-spacing: 0; }
.hk-ref-hero__lead { color: #e0e8f2; font-size: 14px; line-height: 1.65; max-width: 490px; margin: 0 0 18px; }
body.rtl .hk-ref-hero__lead { line-height: 1.95; }
.hk-ref-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hk-ref-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 38px; padding: 10px 16px; border: 1px solid transparent; border-radius: 3px; text-decoration: none !important; font: 700 11px/1.3 var(--hk-head, 'Manrope', sans-serif); transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.hk-ref-button:hover { transform: translateY(-1px); }
.hk-ref-button--primary { background: #315ff4; color: #fff !important; border-color: #315ff4; }
.hk-ref-button--primary:hover { background: #214edc; border-color: #214edc; }
.hk-ref-button--outline { background: rgba(7,21,40,.25); border-color: rgba(255,255,255,.78); color: #fff !important; }
.hk-ref-button--outline:hover { background: rgba(255,255,255,.12); }
.hk-ref-button--small { min-height: 34px; padding: 8px 14px; margin-top: 12px; }
.hk-ref-button--light { background: #fff; border-color: #fff; color: #142a43 !important; min-width: 145px; }
.hk-ref-hero__proof { display: flex; gap: 0; max-width: 580px; }
.hk-ref-proof-item { display: grid; grid-template-columns: 24px 1fr; column-gap: 9px; align-content: start; padding-inline: 14px; border-inline-start: 1px solid rgba(255,255,255,.28); flex: 1; }
.hk-ref-proof-item:first-child { padding-inline-start: 0; border-inline-start: 0; }
.hk-ref-proof-item > span { grid-row: span 2; color: #9db5ff; font-size: 21px; line-height: 1; }
.hk-ref-proof-item b { font-size: 11px; color: #fff; font-weight: 700; }
.hk-ref-proof-item small { color: #c6d2e2; font-size: 10px; line-height: 1.45; margin-top: 4px; }

.hk-ref-trust-strip { background: #f4f6fa; border-bottom: 1px solid #e5e9f0; }
.hk-ref-trust-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hk-ref-trust-strip__grid > div { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-inline-start: 1px solid #dce2ec; }
.hk-ref-trust-strip__grid > div:first-child { border-inline-start: 0; }
.hk-ref-trust-strip__grid > div > span { color: #315ff4; font-size: 26px; line-height: 1; }
.hk-ref-trust-strip p { margin: 0; display: grid; gap: 3px; }
.hk-ref-trust-strip b { font-size: 12px; color: #192b43; }
.hk-ref-trust-strip small { color: #697990; font-size: 10px; }

.hk-ref-audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-block: 18px 20px; }
.hk-ref-audience-card { display: grid; grid-template-columns: 29% 1fr; min-height: 240px; border: 1px solid #dfe5ed; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 3px 12px rgba(13,32,56,.035); }
.hk-ref-audience-card > img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.hk-ref-audience-card__body { padding: 18px 20px 16px; }
.hk-ref-audience-card__body .hk-ref-eyebrow { margin-bottom: 8px; }
.hk-ref-audience-card h2 { font: 500 22px/1.2 var(--hk-display, 'Playfair Display', Georgia, serif); color: #172b44; margin: 0 0 8px; }
body.rtl .hk-ref-audience-card h2 { font-family: 'Noto Naskh Arabic', Georgia, serif; line-height: 1.5; }
.hk-ref-audience-card__body > p:not(.hk-ref-eyebrow) { font-size: 11.5px; line-height: 1.6; color: #63748a; margin: 0 0 8px; }
.hk-ref-audience-card ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.hk-ref-audience-card li { position: relative; padding-inline-start: 19px; color: #53657d; font-size: 10.5px; line-height: 1.4; }
.hk-ref-audience-card li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: #315ff4; font-weight: 700; }

.hk-ref-how { background: #f7f8fb; border-block: 1px solid #e7ebf2; padding: 22px 0 24px; }
.hk-ref-how__heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 17px; }
.hk-ref-how__heading .hk-ref-eyebrow { margin-bottom: 5px; }
.hk-ref-how__heading h2 { color: #142941; font: 500 28px/1.2 var(--hk-display, 'Playfair Display', Georgia, serif); margin: 0 0 5px; }
.hk-ref-how__heading p:not(.hk-ref-eyebrow) { margin: 0; font-size: 12px; color: #738198; }
.hk-ref-how__heading > a { color: #315ff4; text-decoration: none; font-size: 11px; font-weight: 700; white-space: nowrap; }
.hk-ref-steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #dfe4ed; padding-top: 16px; }
.hk-ref-step { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 0 16px; border-inline-start: 1px solid #dfe4ed; }
.hk-ref-step:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hk-ref-step__number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e8edff; color: #315ff4; font-size: 13px; font-weight: 700; }
.hk-ref-step h3 { margin: 3px 0 5px; font-size: 11px; color: #1a2b43; }
.hk-ref-step p { margin: 0; font-size: 10.5px; line-height: 1.5; color: #718097; }
.hk-ref-step__arrow { position: absolute; inset-inline-end: -6px; top: 9px; z-index: 1; color: #8796ab; font-size: 24px; }
.hk-ref-final { background: #10253b; color: #fff; padding: 25px 0; }
.hk-ref-final .hk-ref-container { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.hk-ref-final .hk-ref-eyebrow { margin-bottom: 5px; }
.hk-ref-final h2 { color: #fff; font: 500 clamp(25px, 3vw, 34px)/1.2 var(--hk-display, 'Playfair Display', Georgia, serif); margin: 0; }
body.home .hk-footer { background: #0b1b2e; border-top: 0; color: #c1ccda; }
body.home .hk-footer__inner { max-width: 1250px; min-height: 80px; padding-block: 18px; }
body.home .hk-footer__identity .hk-lockup,
body.home .hk-footer__managed,
body.home .hk-footer__copy { color: #c1ccda !important; }
body.home .hk-footer__links a { color: #d6deea; }
body.home .hk-footer__links a:hover { color: #fff; }
body.home .hk-footer__sep { background: rgba(255,255,255,.2); }
body.home .hk-footer__copy { border-top-color: rgba(255,255,255,.14); }
body.home .hk-footer__legalnote { background: #091726; color: #b2bece; }

/* Match the approved compact company workspace while retaining Core-rendered data/actions. */
.resolve-dash--company { max-width: 1240px; margin-inline: auto; color: #172b44; }
.resolve-dash--company .resolve-dash__head { padding: 24px 0 18px; border-bottom: 1px solid #e4e9f0; }
.resolve-dash--company .resolve-dash__title { color: #142941; font-family: var(--hk-display, Georgia, serif); font-weight: 500; }
.resolve-dash--company .resolve-dash__stats > .resolve-stat,
.resolve-dash--company .resolve-dash__grid > .resolve-panel { border: 1px solid #dfe5ed; border-radius: 4px; box-shadow: 0 2px 10px rgba(14,37,60,.035); }
.resolve-dash--company .resolve-panel__title { color: #172b44; }
.resolve-dash--company .resolve-btn--primary,
.resolve-dash--company .resolve-btn:not(.resolve-btn--ghost) { background: #315ff4; border-color: #315ff4; border-radius: 3px; }
.resolve-dash--company .resolve-progress__bar i { background: #315ff4; }

@media (max-width: 980px) {
  .hk-ref-hero__copy { width: min(650px, 75%); }
  .hk-ref-trust-strip__grid > div { padding: 14px 12px; }
  .hk-ref-audience-card { grid-template-columns: 25% 1fr; }
  .hk-ref-audience-card__body { padding: 14px; }
  .hk-ref-audience-card h2 { font-size: 19px; }
}
@media (max-width: 720px) {
  body.home .t-header { background: #10253b; }
  body.home .t-header__inner { flex-wrap: wrap; }
  body.home .t-brand { min-width: 0; }
  body.home .t-nav { background: #10253b; }
  body.home .t-nav a { color: #fff; }
  .hk-ref-container { width: min(100% - 32px, 560px); }
  .hk-ref-hero, .hk-ref-hero__inner { min-height: 0; }
  .hk-ref-hero__backdrop { background-image: linear-gradient(90deg, rgba(13,32,56,.98), rgba(13,32,56,.77)), url('assets/brand/haykala-cairo-skyline.jpg'); background-position: 64% center; }
  .hk-ref-hero__copy { width: 100%; padding: 38px 0 28px; }
  .hk-ref-hero h1 { font-size: clamp(34px, 9vw, 45px); }
  .hk-ref-hero__proof { gap: 10px; flex-wrap: wrap; }
  .hk-ref-proof-item { min-width: calc(50% - 10px); border: 0; padding: 4px 0; }
  .hk-ref-trust-strip__grid { grid-template-columns: 1fr 1fr; }
  .hk-ref-trust-strip__grid > div { border-bottom: 1px solid #dce2ec; }
  .hk-ref-trust-strip__grid > div:nth-child(odd) { border-inline-start: 0; }
  .hk-ref-audiences { grid-template-columns: 1fr; padding-block: 16px; }
  .hk-ref-audience-card { grid-template-columns: 30% 1fr; }
  .hk-ref-audience-card > img { min-height: 230px; }
  .hk-ref-how__heading { align-items: start; flex-direction: column; }
  .hk-ref-steps { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .hk-ref-step:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .hk-ref-step__arrow { display: none; }
  .hk-ref-final .hk-ref-container { align-items: start; flex-direction: column; }
}
@media (max-width: 420px) {
  .hk-ref-audience-card { grid-template-columns: 1fr; }
  .hk-ref-audience-card > img { height: 150px; min-height: 150px; }
  .hk-ref-steps { grid-template-columns: 1fr; }
  .hk-ref-step { border-inline-start: 0; padding-inline-start: 0; }
  .hk-ref-trust-strip__grid > div { padding-inline: 8px; }
}

/* Structured public footer from the approved reference; legal disclosure remains below it. */
body.home .hk-footer__inner,
body.home .hk-footer__copy { display: none; }
.hk-public-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding-block: 30px 25px; }
.hk-public-footer__brand .hk-footer__identity { display: inline-flex; margin-bottom: 12px; }
.hk-public-footer__brand p { max-width: 290px; color: #c1ccda; font-size: 11px; line-height: 1.7; margin: 0 0 8px; }
.hk-public-footer__brand .hk-public-footer__managed { color: #8ea1b8; font-size: 10px; }
.hk-public-footer__grid h2 { color: #8da8ff; font: 700 10px/1.4 var(--hk-head, 'Manrope', sans-serif); letter-spacing: 1.2px; text-transform: uppercase; margin: 4px 0 12px; }
.hk-public-footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hk-public-footer__grid a { color: #d2dbe7; font-size: 10.5px; text-decoration: none; }
.hk-public-footer__grid a:hover { color: #fff; text-decoration: underline; }
.hk-public-footer__bottom { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(255,255,255,.15); padding-block: 13px; color: #9cacc0; font-size: 10px; }
@media (max-width: 720px) { .hk-public-footer__grid { grid-template-columns: 1fr 1fr; gap: 22px; } .hk-public-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .hk-public-footer__grid { grid-template-columns: 1fr; } .hk-public-footer__brand { grid-column: auto; } .hk-public-footer__bottom { flex-direction: column; } }
/* Shared visual treatment for authenticated role workspaces; data and actions are rendered by Core controllers. */
.resolve-dash--company,
.resolve-dash--investor,
.resolve-dash--adviser { max-width: 1240px; margin-inline: auto; color: #172b44; }
.resolve-dash--company .resolve-dash__head,
.resolve-dash--investor .resolve-dash__head,
.resolve-dash--adviser .resolve-dash__head { padding: 24px 0 18px; border-bottom: 1px solid #e4e9f0; }
.resolve-dash--company .resolve-dash__title,
.resolve-dash--investor .resolve-dash__title,
.resolve-dash--adviser .resolve-dash__title { color: #142941; font-family: var(--hk-display, Georgia, serif); font-weight: 500; }
.resolve-dash--company .resolve-dash__stats > *,
.resolve-dash--investor .resolve-dash__stats > *,
.resolve-dash--adviser .resolve-dash__stats > *,
.resolve-dash--company .resolve-dash__grid > .resolve-panel,
.resolve-dash--investor .resolve-dash__grid > .resolve-panel,
.resolve-dash--adviser .resolve-dash__grid > .resolve-panel { border: 1px solid #dfe5ed; border-radius: 4px; box-shadow: 0 2px 10px rgba(14,37,60,.035); }
.resolve-dash--company .resolve-panel__title,
.resolve-dash--investor .resolve-panel__title,
.resolve-dash--adviser .resolve-panel__title { color: #172b44; }
.resolve-dash--company .resolve-btn--primary,
.resolve-dash--investor .resolve-btn--primary,
.resolve-dash--adviser .resolve-btn--primary { background: #315ff4; border-color: #315ff4; border-radius: 3px; }
.resolve-dash--company .resolve-progress__bar i { background: #315ff4; }
.hk-ref-hero__trust { color: #b8c8dd; font-size: 10px; margin: -10px 0 16px; }
.hk-ref-hero h1 { white-space: pre-line; }

/* Live platform totals: exact database-backed profile counts, not mock figures. */
.hk-ref-live-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-top:28px;margin-bottom:28px;background:var(--hk-line,#d9e0e8);border:1px solid var(--hk-line,#d9e0e8)}
.hk-ref-live-counts article{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:112px;padding:20px;background:var(--hk-paper,#fff);text-align:center}
.hk-ref-live-counts strong{font-family:var(--hk-display-font,Georgia,serif);font-size:clamp(2rem,4vw,3rem);font-weight:500;line-height:1;color:var(--hk-navy,#102b43);font-variant-numeric:tabular-nums}
.hk-ref-live-counts span{font-size:.78rem;font-weight:700;letter-spacing:.04em;color:var(--hk-muted,#65758a)}
@media(max-width:640px){.hk-ref-live-counts{grid-template-columns:1fr;margin-top:18px;margin-bottom:18px}.hk-ref-live-counts article{min-height:78px;flex-direction:row;justify-content:space-between;padding:16px 20px}.hk-ref-live-counts strong{font-size:2rem}.hk-ref-live-counts span{max-width:55%;text-align:end}}


/* HAYKALA internal public pages — 1.17.6. Keep the approved homepage language
   and hierarchy across About, How It Works, For Businesses, For Investors and
   legal pages without changing their content or destinations. */
.t-page { background: #f5f6f8; padding-block: clamp(28px, 5vw, 64px); }
.t-page > .t-wrap { width: min(1180px, calc(100% - 40px)); }
.t-page__title {
  max-width: 900px;
  color: #142b45;
  font-family: var(--t-serif, Georgia, serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 26px;
  padding-block-end: 20px;
  border-block-end: 1px solid #dfe5ed;
}
body.rtl .t-page__title { font-family: var(--t-sans, Tahoma, sans-serif); line-height: 1.5; letter-spacing: 0; }
.t-content { max-width: 980px; color: #4b5e73; font-size: 15px; line-height: 1.85; }
.t-content > * { max-width: 100%; }
.t-content h2, .t-content h3, .t-content h4 { color: #172e49; line-height: 1.25; margin-block: 30px 12px; }
.t-content h2 { font-family: var(--t-serif, Georgia, serif); font-size: clamp(24px, 3vw, 34px); }
.t-content h3 { font-size: 21px; font-weight: 700; }
body.rtl .t-content h2, body.rtl .t-content h3 { font-family: var(--t-sans, Tahoma, sans-serif); line-height: 1.6; }
.t-content p { margin-block: 0 16px; }
.t-content ul, .t-content ol { padding-inline-start: 1.5em; margin-block: 12px 24px; }
.t-content li { margin-block: 0 8px; }
.t-content img { border-radius: 8px; height: auto; }
.t-content a { color: #314fc0; text-underline-offset: 3px; }
.t-content blockquote { margin-inline: 0; padding: 18px 22px; border-inline-start: 3px solid #d3ad69; background: #fff; color: #30445b; }
.t-content table { width: 100%; border-collapse: collapse; background: #fff; }
.t-content th, .t-content td { padding: 12px; border: 1px solid #e0e6ee; text-align: start; }
.t-content th { background: #edf1f6; color: #1c334e; }
.t-content .wp-block-columns { gap: 20px; }
.t-content .wp-block-column, .t-content .wp-block-group, .t-content .wp-block-cover {
  border-radius: 8px;
}
.t-content .wp-block-button__link { border-radius: 5px; background: #d3ad69; color: #14283f; font-weight: 700; }
@media (max-width: 640px) {
  .t-page > .t-wrap { width: min(100% - 28px, 560px); }
  .t-page__title { font-size: 32px; }
  .t-content { font-size: 14px; }
  .t-content .wp-block-columns { display: block; }
  .t-content .wp-block-column + .wp-block-column { margin-block-start: 18px; }
}

/* ========================================================================
 * HAYKALA internal public pages — 1.17.7
 * A consistent editorial system for Businesses, Investors, How It Works and
 * legal/content pages. Content and platform shortcodes remain untouched.
 * ======================================================================== */
.hk-public-page .t-page--editorial {
  background: #f4f6f9;
}
.hk-public-page .hk-page-content__inner {
  width: min(1120px, calc(100% - 48px));
}
.hk-public-page .hk-page-heading {
  max-width: 920px;
  margin: 0 auto clamp(28px, 4vw, 52px);
  padding-block-end: 22px;
  border-block-end: 1px solid #dfe5ed;
}
.hk-public-page .hk-page-heading .t-eyebrow,
.hk-public-page .hk-page-copy .t-eyebrow {
  margin: 0 0 12px;
  color: #6878d5;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hk-public-page .hk-page-heading .t-page__title {
  margin: 0;
  padding: 0;
  border: 0;
  color: #142d49;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
}
.hk-public-page .hk-page-copy {
  max-width: 920px;
  margin-inline: auto;
  color: #53647a;
  font-size: 1rem;
  line-height: 1.8;
}
.hk-public-page .hk-page-copy h2 {
  margin: 0 0 18px;
  color: #142d49;
  font-family: var(--t-serif, Georgia, serif);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.2;
}
.hk-public-page .hk-page-copy h3 {
  margin: 0 0 9px;
  color: #1b3552;
  font-family: var(--t-serif, Georgia, serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.35;
}
.hk-public-page .hk-page-copy p { margin-block: 0 16px; }
.hk-public-page .hk-page-copy ul,
.hk-public-page .hk-page-copy ol { padding-inline-start: 1.35em; margin-block: 10px 24px; }
.hk-public-page .hk-page-copy li { margin-block: 0 9px; padding-inline-start: 3px; }
.hk-public-page .hk-page-copy a:not(.wp-block-button__link) {
  color: #4e62c6;
  text-underline-offset: 3px;
  font-weight: 650;
}
.hk-public-page .hk-page-copy img { max-width: 100%; height: auto; border-radius: 8px; }
.hk-public-page .hk-page-copy figure { margin: 26px 0; }
.hk-public-page .hk-page-copy blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-inline-start: 3px solid #caa15c;
  background: #fff;
  color: #243a55;
}
.hk-public-page .hk-page-copy table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #dfe5ed;
  background: #fff;
}
.hk-public-page .hk-page-copy th,
.hk-public-page .hk-page-copy td {
  padding: 13px 15px;
  border-block-end: 1px solid #e7ebf1;
  text-align: start;
  vertical-align: top;
}
.hk-public-page .hk-page-copy th { background: #eaf0f7; color: #203852; font-size: .8rem; }
.hk-public-page .hk-page-copy .wp-block-columns { gap: 22px; margin-block: 24px 34px; }
.hk-public-page .hk-page-copy .wp-block-column {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid #e1e7ef;
  background: #fff;
  box-shadow: 0 3px 12px rgba(19,42,69,.035);
}
.hk-public-page .hk-page-copy .wp-block-buttons { margin-block: 26px; }
.hk-public-page .hk-page-copy .wp-block-button__link,
.hk-public-page .hk-page-copy a.hk-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid #315de8;
  border-radius: 4px;
  background: #315de8;
  color: #fff !important;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}
.hk-public-page .hk-page-copy .wp-block-button__link:hover { background: #244bcc; }
.hk-public-page .hk-page-copy .wp-block-separator { border-color: #dfe5ed; }
.hk-public-page .t-page--platform .hk-page-content__inner { width: min(1240px, calc(100% - 40px)); }
.hk-public-page .t-page--platform .resolve-marketplace { max-width: none; }
.hk-public-page .t-page--platform .resolve-marketplace__bar {
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #dfe5ed;
  border-radius: 9px;
  background: #fff;
}
.hk-public-page .t-page--platform .resolve-marketplace__count { font-weight: 700; color: #253d5b; }
.hk-public-page .t-page--platform .resolve-marketplace .resolve-filters {
  padding: 18px;
  border: 1px solid #e0e6ee;
  border-radius: 9px;
  background: #fff;
}
.hk-public-page .t-page--platform .resolve-marketplace .resolve-card,
.hk-public-page .t-page--platform .resolve-marketplace article {
  border-color: #e0e6ee;
  border-radius: 9px;
  box-shadow: 0 3px 12px rgba(19,42,69,.04);
}
.hk-public-page .t-page--platform .resolve-marketplace .resolve-btn,
.hk-public-page .t-page--platform .resolve-marketplace button { border-radius: 5px; }
.hk-opportunity-detail-page .t-page--platform { background: #f4f6f9; }
.hk-opportunity-detail-page .resolve-opportunity { max-width: 1180px; margin-inline: auto; }
.hk-opportunity-detail-page .resolve-opportunity__head {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid #e0e6ee;
  border-radius: 10px;
  background: #fff;
}
.hk-opportunity-detail-page .resolve-opportunity__title { color: #142d49; }
@media (max-width: 720px) {
  .hk-public-page .hk-page-content__inner { width: min(100% - 28px, 560px); }
  .hk-public-page .hk-page-heading { margin-block-end: 26px; }
  .hk-public-page .hk-page-heading .t-page__title { font-size: 32px; }
  .hk-public-page .hk-page-copy .wp-block-columns { display: grid; grid-template-columns: 1fr; }
  .hk-public-page .hk-page-copy th,
  .hk-public-page .hk-page-copy td { padding: 10px; }
  .hk-public-page .t-page--platform .hk-page-content__inner { width: min(100% - 32px, 1240px); }
  .hk-public-page .t-page--platform .resolve-marketplace__bar { align-items: stretch; }
}


/* HAYKALA 1.20.0 — consolidated site-wide layout safety layer.
 * This is intentionally additive and scoped to the theme shell and platform
 * surfaces; business workflows/data remain in Resolve Core.
 */
html, body { width: 100%; min-width: 0; max-width: 100%; }
body { overflow-x: clip; }
#main { display: block; width: 100%; min-width: 0; max-width: 100%; margin-inline: auto; }
#main > * { min-width: 0; }
.t-wrap, .hk-ref-container { width: min(100%, var(--t-maxw, 1240px)); max-width: var(--t-maxw, 1240px); margin-inline: auto; }
.t-page, .t-page--platform, .hk-page-content, .hk-page-content__inner,
.hk-opportunity-detail, .hk-opportunity-detail-page, .t-content,
.resolve-marketplace, .resolve-dash, .resolve-panel, .resolve-admin,
[class*="resolve-portal"], [class*="resolve-dashboard"] {
  min-width: 0; max-width: 100%;
}
.t-page--platform { width: 100%; }
.t-page--platform > .t-wrap, .hk-page-content--opportunities .hk-page-content__inner,
.hk-page-content--financial-reviews .hk-page-content__inner { width: min(100% - 40px, 1240px); }
img, video, iframe, canvas, svg { max-width: 100%; }
pre, code { max-width: 100%; overflow-wrap: anywhere; }
table { max-width: 100%; }
.t-content table, .hk-page-copy table, .resolve-marketplace table { display: block; width: 100%; overflow-x: auto; }
.t-header { width: 100%; max-width: 100%; margin-block-start: 0 !important; }
.t-header__inner { width: min(100%, 1440px); max-width: 1440px; }
.t-header__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.t-account { z-index: 80; }
.t-account__menu { z-index: 1000; max-width: min(340px, calc(100vw - 24px)); }
.t-account__menu ul { list-style: none; margin: 0; padding: 8px 0 0; }
.t-account__menu li { list-style: none; margin: 0; padding: 0; }
.t-account__menu .t-account__link { width: 100%; }
/* WordPress admin toolbar: keep the header immediately after the toolbar;
   only sticky positioning receives the standard toolbar offset. */
body.admin-bar .t-header { margin-top: 0 !important; }
body.admin-bar .t-header--sticky { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .t-header--sticky { top: 46px; }
}
@media (max-width: 980px) {
  .t-header__inner { gap: 12px 16px; }
  .t-header__actions { margin-inline-start: auto; }
  .t-page--platform > .t-wrap, .hk-page-content--opportunities .hk-page-content__inner,
  .hk-page-content--financial-reviews .hk-page-content__inner { width: min(100% - 32px, 900px); }
}
@media (max-width: 680px) {
  .t-wrap, .hk-ref-container { padding-inline: 16px; }
  .t-header__inner { align-items: center; gap: 10px; }
  .t-brand { max-width: calc(100% - 12px); }
  .t-nav { width: 100%; }
  .t-header__actions { width: 100%; justify-content: flex-start; }
  .t-page--platform > .t-wrap, .hk-page-content--opportunities .hk-page-content__inner,
  .hk-page-content--financial-reviews .hk-page-content__inner { width: calc(100% - 24px); }
  .resolve-marketplace__bar, .resolve-marketplace__filters { min-width: 0; }
  .resolve-marketplace__filters { grid-template-columns: minmax(0, 1fr) !important; }
  .resolve-marketplace__grid { grid-template-columns: minmax(0, 1fr) !important; }
  .t-account__menu { position: absolute; inset-inline-end: 0; width: min(320px, calc(100vw - 24px)); }
}


/* Final review polish: consistent account menu and responsive surfaces. */
.t-header .t-account__menu {
  color: #25334a !important; background: #fff !important;
  border: 1px solid #dfe5ef !important; border-radius: 12px !important;
  box-shadow: 0 18px 48px rgba(12, 28, 49, .18) !important;
  padding: 12px !important; min-width: 250px;
}
.t-header .t-account__menu .t-account__link,
.t-header .t-account__menu .t-account__link:link,
.t-header .t-account__menu .t-account__link:visited {
  display: flex !important; align-items: center; width: 100%; min-height: 38px;
  margin: 2px 0 !important; padding: 9px 11px !important;
  color: #26364d !important; background: transparent !important;
  border: 0 !important; border-radius: 7px !important;
  font: 500 13px/1.4 var(--t-sans, Arial, sans-serif) !important;
  letter-spacing: 0 !important; text-decoration: none !important;
  box-shadow: none !important; white-space: normal;
}
.t-header .t-account__menu .t-account__link:hover,
.t-header .t-account__menu .t-account__link:focus-visible {
  color: #37366f !important; background: #f0f1fb !important;
}
.t-header .t-account__menu .t-account__signout,
.t-header .t-account__menu .t-account__signout:link,
.t-header .t-account__menu .t-account__signout:visited {
  display: block !important; width: 100%; margin-top: 8px !important;
  padding: 10px 11px !important; color: #9d3e49 !important;
  background: #fff !important; border: 0 !important;
  border-top: 1px solid #e8ebf2 !important; border-radius: 0 0 7px 7px !important;
  text-decoration: none !important; box-shadow: none !important;
}
.t-header .t-account__menu .t-account__signout:hover { background: #fff4f4 !important; }
.t-header .t-account__menu .t-account__workspace { border-bottom: 1px solid #edf0f5; padding-bottom: 7px; margin-bottom: 7px; }
.t-header .t-account__signedin { margin: 0 0 7px !important; padding: 3px 6px 10px !important; color: #596579 !important; border-bottom: 1px solid #e8ebf2; }
.t-header .t-account__items { list-style: none; margin: 0 !important; padding: 0 !important; }
.t-header .t-account__items li { list-style: none; margin: 0 !important; padding: 0 !important; }
@media (max-width: 680px) {
  .t-header__inner { width: 100%; }
  .t-header__actions { width: 100%; }
  .t-account__menu { inset-inline-end: 0; inset-inline-start: auto; }
  .t-page--platform, .hk-page-content, .hk-opportunity-detail { overflow-wrap: anywhere; }
}

/* HAYKALA 1.20.1 repair — retain 1.20.0 work; stabilize layout containers. */
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; min-width: 0; }
body { overflow-x: clip; }
#main, main#main { display: block; width: 100%; max-width: 100%; min-width: 0; margin-inline: auto; }
.t-page, .t-page--platform, .hk-page-content, .hk-page-content__inner,
.hk-opportunity-detail, .hk-opportunity-detail-page, .t-content,
.resolve-marketplace, .resolve-dash, .resolve-panel, .resolve-admin,
[class*="resolve-portal"], [class*="resolve-dashboard"] {
  min-width: 0; max-width: 100%;
}
.t-page--platform { width: 100%; }
.t-page--platform > .t-wrap,
.hk-page-content__inner,
.hk-page-content--opportunities .hk-page-content__inner,
.hk-page-content--financial-reviews .hk-page-content__inner {
  width: min(100% - 32px, 1240px);
  max-width: 1240px;
  margin-inline: auto;
}
.t-header { width: 100%; max-width: 100%; }
.t-header__inner { width: min(100% - 32px, 1240px); max-width: 1240px; margin-inline: auto; }
.t-header__inner, .t-header__actions, .t-brand { min-width: 0; }
.t-header__actions { flex: 0 1 auto; max-width: 100%; }
.t-account__menu { z-index: 99999; max-width: min(340px, calc(100vw - 24px)); }
.t-account__menu a { overflow-wrap: anywhere; }
#main table { max-width: 100%; }
@media (max-width: 680px) {
  .t-header__inner { width: calc(100% - 24px); flex-wrap: wrap; }
  .t-header__actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .t-page--platform > .t-wrap,
  .hk-page-content__inner,
  .hk-page-content--opportunities .hk-page-content__inner,
  .hk-page-content--financial-reviews .hk-page-content__inner { width: calc(100% - 24px); }
  #main table { display: block; overflow-x: auto; }
}


/* HAYKALA 1.20.2 corrective layout pass */
html, body {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-block-start: 0 !important;
	overflow-x: clip;
}
body.admin-bar { margin-top: 0 !important; }
#wpadminbar { position: fixed; top: 0; }
html { margin-top: 0 !important; }
body.admin-bar #wpadminbar { top: 0; }
.t-header {
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
	top: 0;
}
.t-header--sticky { top: 32px; }
body:not(.admin-bar) .t-header--sticky { top: 0; }
.t-header__inner {
	display: flex;
	width: min(100% - 32px, 1440px);
	max-width: 1440px;
	margin-inline: auto;
	align-items: center;
	flex-wrap: nowrap;
	gap: clamp(10px, 1.5vw, 22px);
}
.t-brand { flex: 0 1 auto; min-width: 0; }
.t-nav.hk-public-nav {
	display: flex !important;
	flex: 1 1 auto;
	min-width: 0;
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 1.4vw, 22px);
}
.t-nav.hk-public-nav .t-nav__items {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: clamp(10px, 1.4vw, 22px);
	list-style: none;
	margin: 0;
	padding: 0;
}
.t-nav.hk-public-nav .t-nav__items li { list-style: none; margin: 0; padding: 0; }
.t-nav.hk-public-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	font-size: 12px;
}
.t-nav.hk-public-nav a:hover,
.t-nav.hk-public-nav .current-menu-item > a { color: #c9d2ff; }
.t-header__actions {
	display: flex;
	flex: 0 1 auto;
	width: auto;
	max-width: 100%;
	margin-inline-start: auto;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: 8px;
}
.t-header__actions > * { min-width: 0; }
.t-account { position: relative; }
.t-account__menu { z-index: 99999; }
#main, main#main, .t-page, .t-page > .t-wrap, .hk-home, .hk-home > .t-wrap {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.t-page > .t-wrap { max-width: var(--t-maxw, 1240px); margin-inline: auto; }
#main .resolve-platform, #main .resolve-panel, #main .resolve-admin,
#main .resolve-shell, #main .resolve-content, #main .resolve-dashboard,
#main .resolve-opportunities, #main form, #main table {
	max-width: 100%;
	min-width: 0;
}
#main table { display: block; overflow-x: auto; }
@media (max-width: 1000px) {
	.t-header__inner { flex-wrap: wrap; padding-inline: 16px; }
	.t-nav.hk-public-nav { order: 3; flex: 1 0 100%; justify-content: flex-start; }
	.t-nav.hk-public-nav .t-nav__items { justify-content: flex-start; }
	.t-header__actions { flex: 1 1 auto; width: auto; }
}
@media (max-width: 600px) {
	.t-header__inner { width: calc(100% - 24px); gap: 10px; }
	.t-nav.hk-public-nav { overflow-x: auto; }
	.t-nav.hk-public-nav .t-nav__items { flex-wrap: nowrap; }
	.t-header__actions { flex-wrap: wrap; justify-content: flex-start; }
}


/* HAYKALA 1.20.3 — the account dropdown is the sole account/platform nav.
   Hide the redundant Core side drawer and remove its reserved grid track. */
.resolve-shell-standalone .rs-body {
	display: block !important;
	grid-template-columns: minmax(0, 1fr) !important;
	width: 100%;
	max-width: 100%;
}
.resolve-shell-standalone .rs-nav,
.resolve-shell-standalone .rs-nav-backdrop,
.resolve-shell-standalone .rs-nav__close {
	display: none !important;
}
.resolve-shell-standalone .rs-main {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.resolve-shell-standalone .rs-content,
.resolve-shell-standalone .rs-crumbs,
.resolve-shell-standalone .rs-pagehead {
	width: 100%;
	max-width: 1180px;
	min-width: 0;
	margin-inline: auto;
}


/* HAYKALA 1.20.4 — unified public header and footer across all public pages */
body:not(.resolve-shell-standalone) .t-header,
body:not(.resolve-shell-standalone) .t-header.t-header--left,
body:not(.resolve-shell-standalone) .t-header.t-header--centred {
	background: #10253b !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
}
body:not(.resolve-shell-standalone) .t-header__inner {
	min-height: 72px;
	width: min(calc(100% - 32px), 1240px);
	max-width: 1240px;
	margin-inline: auto;
	padding-block: 10px;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: clamp(12px, 1.6vw, 24px);
}
body:not(.resolve-shell-standalone) .t-header .t-brand,
body:not(.resolve-shell-standalone) .t-header .t-brand:link,
body:not(.resolve-shell-standalone) .t-header .t-brand:visited {
	color: #fff !important;
	flex: 0 1 auto;
	min-width: 0;
}
body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav {
	display: flex !important;
	flex: 1 1 auto;
	justify-content: center;
	align-items: center;
	gap: clamp(12px, 1.5vw, 24px);
	min-width: 0;
}
body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav a,
body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav .t-headerlink {
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav a:hover,
body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav .current-menu-item > a {
	color: #cbd5ff !important;
}
body:not(.resolve-shell-standalone) .t-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 1 auto;
	width: auto;
	margin-inline-start: auto;
	gap: 8px;
}
body:not(.resolve-shell-standalone) .t-header .t-account__trigger,
body:not(.resolve-shell-standalone) .t-header .t-account__name,
body:not(.resolve-shell-standalone) .t-header .t-account__sub {
	color: #fff !important;
}
.hk-footer {
	width: 100%;
	margin: 0;
	background: #f5f6fa;
	border-top: 1px solid #e2e6ee;
	color: #243047;
}
.hk-public-footer__grid {
	width: min(calc(100% - 40px), 1240px);
	margin-inline: auto;
	padding-block: 36px 24px;
	display: grid;
	grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, 1fr));
	gap: 28px;
}
.hk-public-footer__grid h2 {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #10253b;
}
.hk-public-footer__grid ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}
.hk-public-footer__grid li { margin: 0; padding: 0; }
.hk-public-footer__grid a {
	color: #4b5870;
	text-decoration: none;
	font-size: 13px;
}
.hk-public-footer__grid a:hover { color: #2f65f5; }
.hk-public-footer__brand p {
	margin: 10px 0 0;
	max-width: 34ch;
	color: #5d687a;
	font-size: 12px;
	line-height: 1.7;
}
.hk-public-footer__bottom {
	width: min(calc(100% - 40px), 1240px);
	margin-inline: auto;
	padding-block: 14px;
	border-top: 1px solid #e0e4ec;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: #6b7484;
	font-size: 11px;
}
.hk-footer__inner {
	width: min(calc(100% - 40px), 1240px);
	margin-inline: auto;
	padding-block: 18px 10px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
	border-top: 0;
}
.hk-footer__copy {
	width: min(calc(100% - 40px), 1240px);
	margin-inline: auto;
	padding-block: 8px 18px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 20px;
	color: #7a8392;
	font-size: 11px;
}
@media (max-width: 900px) {
	body:not(.resolve-shell-standalone) .t-header__inner { flex-wrap: wrap; }
	body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav {
		order: 3;
		flex: 1 0 100%;
		justify-content: flex-start;
		overflow-x: auto;
	}
	body:not(.resolve-shell-standalone) .t-header__actions { margin-inline-start: auto; }
	.hk-public-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	body:not(.resolve-shell-standalone) .t-header__inner { width: calc(100% - 24px); }
	.hk-public-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.hk-public-footer__bottom { flex-direction: column; }
	.hk-footer__inner, .hk-footer__copy { width: calc(100% - 32px); }
}


/* HAYKALA final chrome integration: public Opportunities uses the theme header/footer. */
body.resolve-shell-standalone .rs-shell--theme-chrome { display:block; }
body.resolve-shell-standalone .rs-shell--theme-chrome .rs-body { display:block; }
body.resolve-shell-standalone .rs-shell--theme-chrome .rs-main--theme-chrome {
	width:100%; max-width:1240px; margin-inline:auto; padding:32px 24px 56px;
}
body.resolve-shell-standalone .rs-shell--theme-chrome .rs-pagehead { margin-top:0; }


/* HAYKALA 1.20.9: responsive public header and homepage safety fixes. */
@media (max-width: 1120px) {
  .t-header__inner { gap: 14px !important; }
  .t-brand { flex: 0 1 auto; min-width: 0; }
  .t-nav.hk-public-nav { flex: 1 1 100%; order: 3; justify-content: center; }
  .t-header__actions { flex: 0 1 auto; margin-inline-start: auto; }
  .t-nav__items { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
}
@media (max-width: 760px) {
  .t-header__inner { flex-wrap: wrap; padding-block: 12px; }
  .t-brand { max-width: 100%; }
  .t-header__actions { max-width: 100%; }
  .t-nav.hk-public-nav { flex-basis: 100%; }
  .t-nav__items { gap: 10px 16px; }
  .hk-ref-hero__copy h1 { overflow-wrap: anywhere; }
}


/* HAYKALA 1.21.0 — consistent public chrome and accessible contrast across the four public pages. */
:root {
  --hk-navy: #10263c;
  --hk-ink: #172c43;
  --hk-paper: #f4f6f9;
  --hk-blue: #6571b8;
}
body.resolve-shell-standalone .rs-shell--theme-chrome {
  background: var(--hk-paper) !important;
  color: var(--hk-ink) !important;
}
body.resolve-shell-standalone .rs-shell--theme-chrome .rs-main--theme-chrome {
  background: var(--hk-paper) !important;
  color: var(--hk-ink) !important;
}
.hk-footer, .hk-footer__inner, .hk-public-footer__grid, .hk-public-footer__bottom,
.hk-footer__copy, .hk-footer__legalnote {
  background-color: #141b31;
}
.hk-footer a, .hk-footer p, .hk-footer span, .hk-footer li,
.hk-footer h2, .hk-public-footer__managed, .hk-footer__managed {
  color: #c4ccdc;
}
.hk-footer h2 { color: #e5eaf3; }
.hk-footer a:hover, .hk-footer a:focus-visible { color: #ffffff; }
.t-header { background-color: var(--hk-navy) !important; }


/* HAYKALA 1.21.1 — canonical shared design tokens for all four public routes. */
:root {
  --hk-public-navy: #10263c;
  --hk-public-navy-deep: #141b31;
  --hk-public-paper: #f4f6f9;
  --hk-public-ink: #172c43;
  --hk-public-muted: #c4ccdc;
  --hk-public-accent: #6571b8;
  --hk-public-border: #d9e0e9;
  --hk-public-container: 1240px;
  --hk-public-header-height: 88px;
}
body .t-header,
body.resolve-shell-standalone .t-header {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: var(--hk-public-header-height) !important;
  height: var(--hk-public-header-height) !important;
  background: var(--hk-public-navy) !important;
  color: #fff !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .t-header__inner,
body.resolve-shell-standalone .t-header__inner {
  box-sizing: border-box !important;
  width: min(var(--hk-public-container), calc(100% - 48px)) !important;
  max-width: var(--hk-public-container) !important;
  min-height: var(--hk-public-header-height) !important;
  height: var(--hk-public-header-height) !important;
  margin-inline: auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
}
body .t-brand,
body.resolve-shell-standalone .t-brand {
  flex: 0 0 auto !important;
  max-width: 310px !important;
  margin: 0 !important;
  color: #fff !important;
}
body .t-brand img { max-height: 42px; width: auto; }
body .t-nav.hk-public-nav,
body.resolve-shell-standalone .t-nav.hk-public-nav {
  display: flex !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .t-nav.hk-public-nav a,
body .t-nav.hk-public-nav .t-headerlink,
body.resolve-shell-standalone .t-nav.hk-public-nav a {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: .035em !important;
  text-decoration: none !important;
}
body .t-header__actions,
body.resolve-shell-standalone .t-header__actions {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
}
body .t-header .t-account__trigger,
body.resolve-shell-standalone .t-header .t-account__trigger {
  min-height: 48px !important;
  margin: 0 !important;
}
body .hk-footer,
body .hk-footer__inner,
body .hk-footer__copy,
body .hk-footer__legalnote,
body .hk-public-footer__grid,
body .hk-public-footer__bottom {
  background-color: var(--hk-public-navy-deep) !important;
  color: var(--hk-public-muted) !important;
}
body .hk-footer a,
body .hk-footer p,
body .hk-footer span,
body .hk-footer li { color: var(--hk-public-muted) !important; }
body .hk-footer h2 { color: #e5eaf3 !important; }
body .hk-footer a:hover,
body .hk-footer a:focus-visible { color: #fff !important; }
body.resolve-shell-standalone .rs-shell--theme-chrome,
body.resolve-shell-standalone .rs-shell--theme-chrome .rs-main--theme-chrome {
  background: var(--hk-public-paper) !important;
  color: var(--hk-public-ink) !important;
}
body.resolve-shell-standalone .rs-shell--theme-chrome .rs-main--theme-chrome {
  box-sizing: border-box !important;
  width: min(var(--hk-public-container), calc(100% - 48px)) !important;
  max-width: var(--hk-public-container) !important;
  margin: 0 auto !important;
  padding: 32px 0 56px !important;
}
body.page,
body.page .site,
body.page #page,
body.page #content,
body.page #main {
  background-color: var(--hk-public-paper);
}
@media (max-width: 1100px) {
  body .t-header,
  body.resolve-shell-standalone .t-header { height: auto !important; min-height: var(--hk-public-header-height) !important; }
  body .t-header__inner,
  body.resolve-shell-standalone .t-header__inner {
    height: auto !important; min-height: var(--hk-public-header-height) !important;
    flex-wrap: wrap !important; padding-block: 14px !important; gap: 14px !important;
  }
  body .t-nav.hk-public-nav,
  body.resolve-shell-standalone .t-nav.hk-public-nav { order: 3; flex-basis: 100%; }
}
@media (max-width: 640px) {
  body .t-header__inner,
  body.resolve-shell-standalone .t-header__inner { width: calc(100% - 32px) !important; }
  body.resolve-shell-standalone .rs-shell--theme-chrome .rs-main--theme-chrome {
    width: calc(100% - 32px) !important; padding-block: 24px 40px !important;
  }
}


/* HAYKALA 1.21.2 — match public logo and language control to the homepage lockup. */
body .t-header .t-brand,
body .t-header .t-brand:link,
body .t-header .t-brand:visited,
body.resolve-shell-standalone .t-header .t-brand,
body.resolve-shell-standalone .t-header .t-brand:link,
body.resolve-shell-standalone .t-header .t-brand:visited {
  color: #f8fafc !important;
  opacity: 1 !important;
  filter: none !important;
  text-decoration: none !important;
}
body .t-header .t-brand .t-brand__name,
body .t-header .t-brand .t-logo__text,
body .t-header .t-brand .hk-logo-text,
body .t-header .t-brand .custom-logo-link,
body .t-header .t-brand svg,
body.resolve-shell-standalone .t-header .t-brand .t-brand__name,
body.resolve-shell-standalone .t-header .t-brand .t-logo__text,
body.resolve-shell-standalone .t-header .t-brand .hk-logo-text,
body.resolve-shell-standalone .t-header .t-brand .custom-logo-link,
body.resolve-shell-standalone .t-header .t-brand svg {
  color: #f8fafc !important;
  fill: #f8fafc !important;
  opacity: 1 !important;
  filter: none !important;
}
body .t-header .t-brand img,
body.resolve-shell-standalone .t-header .t-brand img {
  opacity: 1 !important;
  filter: none !important;
}
body .t-header .t-brand .hk-brand-symbol img,
body.resolve-shell-standalone .t-header .t-brand .hk-brand-symbol img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
}
body .t-header .t-language,
body .t-header .t-language-switcher,
body .t-header .language-switcher,
body .t-header .pll-switcher,
body .t-header .trp-language-switcher,
body .t-header .t-lang,
body.resolve-shell-standalone .t-header .t-language,
body.resolve-shell-standalone .t-header .t-language-switcher,
body.resolve-shell-standalone .t-header .language-switcher,
body.resolve-shell-standalone .t-header .pll-switcher,
body.resolve-shell-standalone .t-header .trp-language-switcher,
body.resolve-shell-standalone .t-header .t-lang {
  color: #f8fafc !important;
  opacity: 1 !important;
  filter: none !important;
}
body .t-header .t-language a,
body .t-header .t-language-switcher a,
body .t-header .language-switcher a,
body .t-header .pll-switcher a,
body .t-header .trp-language-switcher a,
body .t-header .t-lang a,
body.resolve-shell-standalone .t-header .t-language a,
body.resolve-shell-standalone .t-header .t-language-switcher a,
body.resolve-shell-standalone .t-header .language-switcher a,
body.resolve-shell-standalone .t-header .pll-switcher a,
body.resolve-shell-standalone .t-header .trp-language-switcher a,
body.resolve-shell-standalone .t-header .t-lang a {
  color: #f8fafc !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
body .t-header .t-language [aria-current],
body .t-header .t-language-switcher [aria-current],
body .t-header .language-switcher [aria-current],
body .t-header .pll-switcher .current,
body .t-header .t-lang [aria-current],
body.resolve-shell-standalone .t-header .t-language [aria-current],
body.resolve-shell-standalone .t-header .t-language-switcher [aria-current],
body.resolve-shell-standalone .t-header .language-switcher [aria-current],
body.resolve-shell-standalone .t-header .pll-switcher .current,
body.resolve-shell-standalone .t-header .t-lang [aria-current] {
  background: #f8fafc !important;
  color: #10263c !important;
  border-color: #f8fafc !important;
}
body .t-header .t-language,
body .t-header .t-language-switcher,
body .t-header .language-switcher,
body .t-header .pll-switcher,
body .t-header .trp-language-switcher,
body .t-header .t-lang {
  border-color: rgba(248,250,252,.72) !important;
}


/* HAYKALA 1.21.3 — targeted logo lockup and language-control geometry on standalone Opportunities. */
body.resolve-shell-standalone .t-header .t-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 330px !important;
  min-width: max-content !important;
  opacity: 1 !important;
  filter: none !important;
  color: #f8fafc !important;
}
body.resolve-shell-standalone .t-header .t-brand *,
body.resolve-shell-standalone .t-header .t-brand :is(span,div,strong,em,a) {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  opacity: 1 !important;
  text-shadow: none !important;
  filter: none !important;
}
body.resolve-shell-standalone .t-header .t-brand .hk-brand-symbol {
  display: inline-flex !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
}
body.resolve-shell-standalone .t-header .t-brand .hk-brand-symbol img {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
}
body.resolve-shell-standalone .t-header .t-brand .t-brand__descriptor {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: max-content !important;
  color: #f8fafc !important;
}
body.resolve-shell-standalone .t-header .t-brand .t-brand__tagline,
body.resolve-shell-standalone .t-header .t-brand .t-brand__managed {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  opacity: 1 !important;
}
body.resolve-shell-standalone .t-header .t-header__inner {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) auto minmax(220px, 1fr) !important;
  align-items: center !important;
  column-gap: 24px !important;
  width: min(1240px, calc(100% - 48px)) !important;
  max-width: 1240px !important;
  height: 88px !important;
  min-height: 88px !important;
  margin-inline: auto !important;
  padding: 0 !important;
}
body.resolve-shell-standalone .t-header .t-nav.hk-public-nav {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  width: max-content !important;
  max-width: 100% !important;
  flex: none !important;
}
body.resolve-shell-standalone .t-header .t-header__actions {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}
body.resolve-shell-standalone .t-header :is(.t-language,.t-language-switcher,.language-switcher,.pll-switcher,.trp-language-switcher,.t-lang) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(248,250,252,.72) !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  line-height: 1 !important;
  opacity: 1 !important;
}
body.resolve-shell-standalone .t-header :is(.t-language,.t-language-switcher,.language-switcher,.pll-switcher,.trp-language-switcher,.t-lang) a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 36px !important;
  padding: 0 5px !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  opacity: 1 !important;
}
body.resolve-shell-standalone .t-header :is(.t-language,.t-language-switcher,.language-switcher,.pll-switcher,.trp-language-switcher,.t-lang) :is(.current,[aria-current="page"],[aria-current="true"]) {
  background: #f8fafc !important;
  color: #10263c !important;
  -webkit-text-fill-color: #10263c !important;
  border-radius: 4px !important;
}
@media (max-width: 1120px) {
  body.resolve-shell-standalone .t-header .t-header__inner {
    display: flex !important;
    flex-wrap: wrap !important;
    height: auto !important;
    min-height: 88px !important;
    padding-block: 12px !important;
    gap: 14px !important;
  }
  body.resolve-shell-standalone .t-header .t-nav.hk-public-nav {
    order: 3 !important;
    flex: 1 0 100% !important;
    width: 100% !important;
  }
  body.resolve-shell-standalone .t-header .t-header__actions { margin-inline-start: auto !important; }
}


/* HAYKALA 1.21.4 — align all public-page lockups with the homepage. */
/* The tagline is a secondary brand descriptor, not part of the compact public
   header. It was widening the standalone Opportunities logo and colliding
   with the navigation. Keep the compact mark consistent across public pages. */
body:not(.wp-admin) .t-header .t-brand__descriptor,
body.resolve-shell-standalone .t-header .t-brand__descriptor {
  display: none !important;
}
/* Brand is live text inside .hk-lockup; target the actual lockup descendants,
   not just the outer link or legacy .t-brand__name selector. */
body .t-header .t-brand .hk-lockup,
body .t-header .t-brand .hk-lockup *,
body.resolve-shell-standalone .t-header .t-brand .hk-lockup,
body.resolve-shell-standalone .t-header .t-brand .hk-lockup * {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}
body .t-header .t-brand .t-brand__parent,
body .t-header .t-brand .t-brand__name,
body .t-header .t-brand .t-brand__lockup,
body.resolve-shell-standalone .t-header .t-brand .t-brand__parent,
body.resolve-shell-standalone .t-header .t-brand .t-brand__name,
body.resolve-shell-standalone .t-header .t-brand .t-brand__lockup {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  opacity: 1 !important;
}
/* Keep the homepage's approved compact dimensions on the other public pages. */
body:not(.wp-admin) .t-header__inner,
body.resolve-shell-standalone .t-header__inner {
  min-height: 88px !important;
}
body:not(.wp-admin) .t-header .t-brand,
body.resolve-shell-standalone .t-header .t-brand {
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  opacity: 1 !important;
}


/* HAYKALA 1.21.5 — fix Arabic language label and standalone Opportunities header.
   Bump the enqueued asset version as well as style.css to defeat stale browser/cache CSS. */
body:not(.wp-admin) .t-header .t-lang .t-lang__option,
body.resolve-shell-standalone .t-header .t-lang .t-lang__option,
body:not(.wp-admin) .t-header .t-lang button,
body.resolve-shell-standalone .t-header .t-lang button {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  opacity: 1 !important;
}
body:not(.wp-admin) .t-header .t-lang .t-lang__option[aria-pressed="true"],
body:not(.wp-admin) .t-header .t-lang .t-lang__option[aria-current],
body.resolve-shell-standalone .t-header .t-lang .t-lang__option[aria-pressed="true"],
body.resolve-shell-standalone .t-header .t-lang .t-lang__option[aria-current] {
  background: #f8fafc !important;
  color: #10263c !important;
  -webkit-text-fill-color: #10263c !important;
}
/* Standalone Opportunities must use the same compact header as the other pages. */
body.resolve-shell-standalone .t-header .t-brand > .t-brand__descriptor,
body.resolve-shell-standalone .t-header .t-brand .t-brand__descriptor {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.resolve-shell-standalone .t-header .t-header__inner {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto minmax(300px, 1fr) !important;
  column-gap: clamp(16px, 2vw, 32px) !important;
  width: min(1550px, calc(100% - 48px)) !important;
  max-width: 1550px !important;
  height: 88px !important;
  min-height: 88px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
body.resolve-shell-standalone .t-header .t-brand {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}
body.resolve-shell-standalone .t-header .t-nav.hk-public-nav {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}
body.resolve-shell-standalone .t-header .t-header__actions {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}
@media (max-width: 1120px) {
  body.resolve-shell-standalone .t-header .t-header__inner {
    display: flex !important;
    flex-wrap: wrap !important;
    width: calc(100% - 32px) !important;
    height: auto !important;
    min-height: 88px !important;
    padding-block: 12px !important;
  }
  body.resolve-shell-standalone .t-header .t-nav.hk-public-nav {
    width: 100% !important;
    white-space: normal !important;
  }
}


/* HAYKALA 1.21.6 — match homepage Seek Capital CTA to the shared public button,
   and correct the standalone Opportunities header's actual lockup markup. */
body.home .t-header__actions .t-btn--primary,
body.home .t-header__actions a:last-of-type {
  background: #6867ad !important;
  border-color: #6867ad !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.home .t-header__actions .t-btn--primary:hover,
body.home .t-header__actions a:last-of-type:hover {
  background: #5d5ca0 !important;
  border-color: #5d5ca0 !important;
}
/* The shell's descriptor can be emitted as hk-tagline / rs-brand markup, not
   only the theme's legacy t-brand__descriptor class. Hide it in the public
   Opportunities header so it cannot collide with navigation. */
body.resolve-shell-standalone .t-header .hk-tagline,
body.resolve-shell-standalone .t-header .rs-brand__descriptor,
body.resolve-shell-standalone .t-header .t-brand__descriptor,
body.resolve-shell-standalone .t-header .t-brand > :not(.hk-lockup):not(.t-brand__name):not(.t-brand__lockup) {
  display: none !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.resolve-shell-standalone .t-header .t-header__inner {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) auto minmax(340px, 1fr) !important;
  column-gap: clamp(20px, 2.2vw, 36px) !important;
  width: min(1600px, calc(100% - 64px)) !important;
  max-width: 1600px !important;
  height: 88px !important;
  min-height: 88px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
body.resolve-shell-standalone .t-header .t-brand {
  display: flex !important;
  align-items: center !important;
  justify-self: start !important;
  width: max-content !important;
  max-width: 100% !important;
  flex-direction: row !important;
  white-space: nowrap !important;
}
body.resolve-shell-standalone .t-header .t-nav.hk-public-nav {
  justify-self: center !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
}
body.resolve-shell-standalone .t-header .t-header__actions {
  justify-self: end !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}
@media (max-width: 1200px) {
  body.resolve-shell-standalone .t-header .t-header__inner {
    display: flex !important;
    flex-wrap: wrap !important;
    width: calc(100% - 32px) !important;
    height: auto !important;
    min-height: 88px !important;
    padding-block: 12px !important;
  }
  body.resolve-shell-standalone .t-header .t-nav.hk-public-nav {
    width: 100% !important;
    white-space: normal !important;
  }
}


/* HAYKALA 2.0.0: account dropdown follows the institutional navy palette. */
.t-header .t-account__menu {
  color: #edf3fb !important;
  background: #10263c !important;
  border: 1px solid #334b66 !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 48px rgba(4, 16, 30, .38) !important;
}
.t-header .t-account__menu .t-account__link,
.t-header .t-account__menu .t-account__link:link,
.t-header .t-account__menu .t-account__link:visited {
  color: #edf3fb !important;
  background: transparent !important;
}
.t-header .t-account__menu .t-account__link:hover,
.t-header .t-account__menu .t-account__link:focus-visible {
  color: #fff !important;
  background: #263f5c !important;
}
.t-header .t-account__menu .t-account__signout,
.t-header .t-account__menu .t-account__signout:link,
.t-header .t-account__menu .t-account__signout:visited {
  color: #ffd8dc !important;
  background: transparent !important;
  border-top-color: #334b66 !important;
}
.t-header .t-account__menu .t-account__signout:hover { background: #3a2634 !important; }
.t-header .t-account__menu .t-account__workspace { border-bottom-color: #334b66 !important; }
.t-header .t-account__signedin { color: #c3d0df !important; border-bottom-color: #334b66 !important; }

/* First-visit legal acknowledgement modal; re-openable from the footer. */
.hk-legal-modal[hidden] { display: none !important; }
.hk-legal-modal { position: fixed; inset: 0; z-index: 1000000; display: grid; place-items: center; padding: 20px; }
.hk-legal-modal__backdrop { position: absolute; inset: 0; background: rgba(5, 15, 29, .78); backdrop-filter: blur(5px); }
.hk-legal-modal__panel { position: relative; z-index: 1; width: min(720px, 100%); max-height: min(82vh, 820px); overflow: auto; padding: clamp(22px, 4vw, 38px); border: 1px solid #d9e1ed; border-radius: 16px; background: #fff; color: #172c43; box-shadow: 0 28px 90px rgba(0,0,0,.35); outline: none; }
.hk-legal-modal__eyebrow { margin: 0 0 8px; color: #6571b8; font: 700 11px/1.5 'Manrope', sans-serif; letter-spacing: .1em; }
.hk-legal-modal__panel h2 { margin: 0 0 18px; color: #10263c; font: 600 clamp(24px, 3vw, 32px)/1.25 'Playfair Display', Georgia, serif; }
body.rtl .hk-legal-modal__panel h2 { font-family: 'Noto Naskh Arabic', Georgia, serif; line-height: 1.5; }
.hk-legal-modal__body { max-height: 48vh; overflow: auto; padding: 16px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f7f9fc; color: #34465b; font-size: 14px; line-height: 1.8; }
.hk-legal-modal__body p { margin: 0 0 12px; }
.hk-legal-modal__body p:last-child { margin-bottom: 0; }
.hk-legal-modal__accept { display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 46px; margin-top: 20px; padding: 12px 18px; border: 1px solid #6571b8; border-radius: 8px; background: #6571b8; color: #fff; font: 700 14px/1.4 'Manrope', sans-serif; cursor: pointer; }
.hk-legal-modal__accept:hover, .hk-legal-modal__accept:focus-visible { background: #50599e; border-color: #50599e; }
html.hk-legal-modal-open, html.hk-legal-modal-open body { overflow: hidden; }
@media (max-width: 600px) { .hk-legal-modal { padding: 12px; } .hk-legal-modal__panel { max-height: 90vh; border-radius: 12px; } .hk-legal-modal__body { max-height: 52vh; } }


/* HAYKALA 2.0.0 — legal acknowledgement modal contrast fix.
 * Scoped to the legal modal so the rest of the theme is unchanged.
 */
.hk-legal-modal__panel {
  opacity: 1 !important;
  color: #172c43 !important;
  background-color: #ffffff !important;
}
.hk-legal-modal__panel * {
  opacity: 1 !important;
  text-shadow: none !important;
}
.hk-legal-modal__eyebrow {
  color: #4b5da8 !important;
}
.hk-legal-modal__panel h2,
.hk-legal-modal__panel h2#hk-legal-title {
  color: #10263c !important;
}
.hk-legal-modal__body {
  color: #26374f !important;
  background-color: #f4f6fa !important;
  border-color: #d3dceb !important;
}
.hk-legal-modal__body p,
.hk-legal-modal__body li,
.hk-legal-modal__body div,
.hk-legal-modal__body span,
.hk-legal-modal__body strong,
.hk-legal-modal__body em {
  color: #26374f !important;
}
.hk-legal-modal__accept {
  color: #ffffff !important;
  background-color: #5967a8 !important;
  border-color: #5967a8 !important;
}
.hk-legal-modal__accept:hover,
.hk-legal-modal__accept:focus-visible {
  color: #ffffff !important;
  background-color: #46548f !important;
  border-color: #46548f !important;
}


/* HAYKALA 2.0.0 — definitive legal popup contrast override (retained in 2.0.1/2.0.2).
 * Released with theme 2.0.2; the stylesheet cache token
 * (RESOLVE_THEME_VERSION . '-legal-4') is bumped with it.
 */
html body #hk-legal-disclaimer .hk-legal-modal__panel,
html body #hk-legal-disclaimer .hk-legal-modal__panel * {
  opacity: 1 !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}
html body #hk-legal-disclaimer .hk-legal-modal__eyebrow {
  /* REMEDIATION 2.0.1: darkened from #667085 (~4.3:1) to clear WCAG AA 4.5:1
   * for this small bold eyebrow label on the white panel. */
  color: #3f4f7a !important;
}
html body #hk-legal-disclaimer .hk-legal-modal__panel h2,
html body #hk-legal-disclaimer #hk-legal-title {
  color: #10263F !important;
}
html body #hk-legal-disclaimer .hk-legal-modal__body,
html body #hk-legal-disclaimer .hk-legal-modal__body p,
html body #hk-legal-disclaimer .hk-legal-modal__body li,
html body #hk-legal-disclaimer .hk-legal-modal__body div,
html body #hk-legal-disclaimer .hk-legal-modal__body span,
html body #hk-legal-disclaimer .hk-legal-modal__body strong,
html body #hk-legal-disclaimer .hk-legal-modal__body em,
html body #hk-legal-disclaimer .hk-legal-modal__body a {
  color: #344054 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #344054 !important;
}
html body #hk-legal-disclaimer .hk-legal-modal__body {
  background: #F8FAFC !important;
  border-color: #D0D5DD !important;
}
html body #hk-legal-disclaimer .hk-legal-modal__accept,
html body #hk-legal-disclaimer .hk-legal-modal__accept * {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  opacity: 1 !important;
}


/* ============================================================================
 * REMEDIATION 2.0.1 — legal disclaimer: no-JS footer-flow disclosures,
 * dialog action row, close control, acknowledgement note, visible focus.
 * Scoped to the legal components; the rest of the theme is unchanged.
 * ==========================================================================*/

/* Mandatory disclosures rendered in normal document flow (readable without JS). */
.hk-legal-disclosures {
  margin-top: 6px;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #c4ccdc;
  font-size: 11px;
  line-height: 1.75;
}
.hk-legal-disclosures p,
.hk-legal-disclosures li,
.hk-legal-disclosures div { margin: 0 0 8px; color: #c4ccdc; }
.hk-legal-disclosures p:last-child { margin-bottom: 0; }
.hk-legal-disclosures a { color: #d8e0ee; text-decoration: underline; }
.hk-legal-disclosures a:hover,
.hk-legal-disclosures a:focus-visible { color: #ffffff; }
body .hk-footer .hk-legal-disclosures,
body .hk-footer .hk-legal-disclosures p,
body .hk-footer .hk-legal-disclosures li,
body .hk-footer .hk-legal-disclosures div,
body .hk-footer .hk-legal-disclosures span { color: #c4ccdc !important; }

/* Dialog: acknowledgement small-print (clarifies browser-local, non-consent). */
.hk-legal-modal__ackline {
  margin: 14px 0 0;
  color: #425067 !important;
  font: 400 12px/1.6 'Manrope', sans-serif;
}
html body #hk-legal-disclaimer .hk-legal-modal__ackline {
  color: #425067 !important;
  -webkit-text-fill-color: #425067 !important;
  opacity: 1 !important;
}

/* Dialog: action row with primary acknowledge + secondary close. */
.hk-legal-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hk-legal-modal__actions .hk-legal-modal__accept { width: auto; flex: 1 1 auto; margin-top: 0; }
.hk-legal-modal__close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #c3ccda;
  border-radius: 8px;
  background: #ffffff;
  color: #2b3a52;
  font: 700 14px/1.4 'Manrope', sans-serif;
  cursor: pointer;
}
.hk-legal-modal__close:hover,
.hk-legal-modal__close:focus-visible { background: #eef1f6; border-color: #a9b4c6; color: #172c43; }
html body #hk-legal-disclaimer .hk-legal-modal__close,
html body #hk-legal-disclaimer .hk-legal-modal__close * {
  color: #2b3a52 !important;
  -webkit-text-fill-color: #2b3a52 !important;
  opacity: 1 !important;
}

/* Visible keyboard focus inside the dialog (a11y). */
.hk-legal-modal__accept:focus-visible,
.hk-legal-modal__close:focus-visible,
.hk-legal-disclosures a:focus-visible {
  outline: 3px solid #8da8ff;
  outline-offset: 2px;
}
.hk-legal-modal__panel:focus { outline: none; }
.hk-legal-modal__panel:focus-visible { outline: 3px solid #8da8ff; outline-offset: 2px; }

@media (max-width: 600px) {
  .hk-legal-modal__actions { flex-direction: column-reverse; }
  .hk-legal-modal__actions .hk-legal-modal__accept,
  .hk-legal-modal__close { width: 100%; }
}


/* ============================================================================
 * REMEDIATION 2.0.1 — restore accessible collapsible mobile navigation.
 * (brief §3). The 2.0.0 candidate turned the public nav into an always-on
 * horizontal-scroll strip and dropped the hamburger toggle, leaving theme.js
 * (which toggles .is-open on #t-primary-nav) with nothing to drive. These rules
 * reinstate a proper collapse on small screens while keeping the desktop bar
 * unchanged. Collapse is scoped to html.t-js, so no-JS visitors keep a visible
 * nav. Scoped to the public (non-shell) header; LTR and RTL both covered.
 * ==========================================================================*/

/* Toggle visibility is governed solely by the 2.0.1 breakpoint on the public
 * header, overriding the legacy "<=1024px shows toggle" rule. */
body:not(.resolve-shell-standalone) .t-header .t-menu-toggle {
  display: none !important;
}

@media (max-width: 768px) {
  body:not(.resolve-shell-standalone) .t-header .t-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    order: 3;
    margin-inline-start: auto;
    min-height: 40px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .45);
    background: transparent;
    border-radius: 6px;
  }
  body:not(.resolve-shell-standalone) .t-header .t-menu-toggle:hover,
  body:not(.resolve-shell-standalone) .t-header .t-menu-toggle:focus-visible {
    color: #ffffff;
    border-color: #ffffff;
    outline: 2px solid #8da8ff;
    outline-offset: 2px;
  }

  /* With JS active, collapse the public nav behind the toggle. */
  html.t-js body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav {
    display: none !important;
    order: 4;
    flex: 1 0 100%;
    overflow: visible;
  }
  html.t-js body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav.is-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
  }
  html.t-js body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav.is-open .t-nav__items {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  html.t-js body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav.is-open a,
  html.t-js body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav.is-open .t-headerlink {
    display: block;
    width: 100%;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    white-space: normal;
  }

  /* Without JS the nav remains visible as a wrapped bar (graceful fallback). */
  html:not(.t-js) body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav {
    order: 4;
    flex: 1 0 100%;
  }
}


/* ============================================================================
 * HAYKALA 2.1.0 — COMPANY INTERNAL SIDEBAR RESTORED (defect fix, Company only)
 * ----------------------------------------------------------------------------
 * Root cause: the "HAYKALA 1.20.3" rule above hid the Core role-aware side
 * drawer (`.rs-nav`) on EVERY internal page with `display:none !important`, so
 * the Company account's work navigation (Company Dashboard, My Company, My
 * Opportunities, Documents, Messages, Account — emitted by Routing::destinations
 * and verified present in the DOM) could never show, and the "Menu" button
 * opened nothing. This restores it for the COMPANY role only; Investor and
 * Expert navigation is deliberately left exactly as it was. Server-side
 * authorization is unchanged — this only governs visibility, never access.
 * Persistent dark-navy sidebar on desktop (matches the approved dashboard
 * reference and the HAYKALA chrome); the plugin's accessible off-canvas drawer
 * on narrow screens.
 * ==========================================================================*/

/* 1) Un-hide the Company sidebar (override the 1.20.3 platform-wide hide). */
.resolve-shell-standalone.resolve-role-company .rs-nav { display: block !important; }

/* Dark-navy treatment for the Company sidebar. */
.resolve-role-company .rs-nav {
  background: #10233b;
  border-inline-end: 1px solid rgba(255, 255, 255, .08);
}
.resolve-role-company .rs-nav__link { color: #c9d4e6; }
.resolve-role-company .rs-nav__link:hover,
.resolve-role-company .rs-nav__link:focus { background: rgba(255, 255, 255, .07); color: #ffffff; }
.resolve-role-company .rs-nav__link.is-current {
  background: rgba(141, 168, 255, .20);
  border-inline-start-color: #8da8ff;
  color: #ffffff;
  font-weight: 600;
}
.resolve-role-company .rs-nav__link:focus-visible { outline: 2px solid #8da8ff; outline-offset: 2px; }

/* 1b) Keep panels inside the content track. The design-revamp stylesheet makes
 *     every .resolve-panel full-bleed (width:100vw; margin-inline-start:
 *     calc(50% - 50vw)) for the admin Control Centre, which assumed no shell
 *     sidebar. With the Company sidebar restored above, that full-bleed makes
 *     panels overlap the sidebar and clip at the right. Neutralise it for the
 *     Company shell only — width/placement just; borders and card styling are
 *     left to each page's own rules, and the admin Control Centre (never a
 *     Company-role body) is untouched. */
.resolve-shell-standalone.resolve-role-company .resolve-panel {
  width: 100%;
  max-width: 100%;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

/* 2) DESKTOP (>=1024px): persistent two-column sidebar; the Menu button, close
 *    button and backdrop are not needed and the drawer mode is neutralised. */
@media (min-width: 1024px) {
  .resolve-shell-standalone.resolve-role-company .rs-body {
    display: grid !important;
    grid-template-columns: var(--r-shell-nav, 244px) minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch;
  }
  .resolve-role-company .rs-shell--drawer .rs-nav,
  .resolve-role-company.rs-shell--drawer .rs-nav {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    inline-size: auto !important;
    box-shadow: none !important;
    z-index: auto !important;
  }
  .resolve-role-company .rs-menu-toggle,
  .resolve-role-company .rs-nav__close,
  .resolve-role-company .rs-nav-backdrop { display: none !important; }
  /* Content fills the remaining track instead of re-centring at 1180px. */
  .resolve-shell-standalone.resolve-role-company .rs-main { max-width: 100% !important; }
  .resolve-shell-standalone.resolve-role-company .rs-content,
  .resolve-shell-standalone.resolve-role-company .rs-pagehead,
  .resolve-shell-standalone.resolve-role-company .rs-crumbs {
    max-width: none !important;
    margin-inline: 0 !important;
  }
}

/* 3) NARROW (<1024px): keep the plugin's accessible off-canvas drawer. Un-hiding
 *    the nav above is enough for `.rs-shell--drawer` + the Menu button to work. */
@media (max-width: 1023.98px) {
  .resolve-shell-standalone.resolve-role-company .rs-body {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .resolve-shell-standalone.resolve-role-company .rs-nav-backdrop { display: block; }
}


/* ============================================================================
 * HAYKALA 2.1.2 — landscape phones
 * A phone in landscape can exceed the portrait-only 768px breakpoint while
 * retaining a short viewport. Keep the compact mobile header/navigation in
 * that situation instead of exposing the desktop nav row as a large panel.
 * Theme-only; no Core routes, content, or application styles are changed.
 * ==========================================================================*/
@media screen and (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {
  body:not(.resolve-shell-standalone) .t-header__inner {
    flex-wrap: wrap !important;
    align-items: center;
    gap: 8px 14px;
    min-height: 60px;
  }

  body:not(.resolve-shell-standalone) .t-header .t-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    order: 3;
    flex: 0 0 auto;
    min-height: 38px;
    margin-inline-start: auto;
    color: #fff;
    border: 1px solid rgba(255,255,255,.45);
    background: transparent;
    border-radius: 6px;
  }

  html.t-js body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav {
    display: none !important;
    order: 4;
    flex: 1 0 100%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: 0;
  }

  html.t-js body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav.is-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0 4px;
  }

  html.t-js body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav.is-open .t-nav__items {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  html.t-js body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav.is-open a,
  html.t-js body:not(.resolve-shell-standalone) .t-header .t-nav.hk-public-nav.is-open .t-headerlink {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 4px;
    color: #fff;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,.14);
    white-space: normal;
  }

  body:not(.resolve-shell-standalone) .t-header__actions {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  body.home .hk-ref-hero,
  body.home .hk-ref-hero__inner {
    min-height: 320px;
  }

  body.home .hk-ref-hero__copy {
    width: min(580px, 72%);
    padding-top: 24px;
    padding-bottom: 20px;
  }
}
