/* Fonts (self-hosted, SIL OFL; see licenses/) */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("../fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: italic;
    font-display: swap;
    font-weight: 200 900;
    src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations");
}

:root {
    --ink: #0E2233;
    --ink-2: #163349;
    --brand: #2A7F9D;
    --brand-strong: #1E6680;
    --brand-soft: #E6F1F5;
    --brand-on-dark: #9FD3E3;
    --gold: #B8955A;
    --text: #1D2833;
    --muted: #566573;
    --line: #DCE3E8;
    --paper: #F7F6F2;
    --white: #FFFFFF;
    --focus: #F2B705;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgb(14 34 51 / .06), 0 8px 24px rgb(14 34 51 / .06);
    --shadow-hover: 0 2px 4px rgb(14 34 51 / .08), 0 16px 40px rgb(14 34 51 / .10);

    --container: 1200px;
    --container-text: 720px;
    --gutter: 24px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 72px;
    --space-9: 112px;

    --stack-serif: "Source Serif 4", "IBM Plex Sans Arabic", Georgia, "Times New Roman", serif;
    --stack-sans: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --stack-arabic: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    --font-serif: var(--stack-serif);
    --font-sans: var(--stack-sans);

    --fs-h1: clamp(2.5rem, 1.9rem + 2.4vw, 3.75rem);
    --fs-h2: clamp(1.75rem, 1.45rem + 1.2vw, 2.375rem);
    --fs-h3: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
    --fs-body: clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);
    --fs-lead: clamp(1.1875rem, 1.12rem + .3vw, 1.375rem);
    --fs-small: .9375rem;
    --fs-kicker: .8125rem;

    --header-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 600px) {
    :root { --gutter: 16px; }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(ul, ol)[role="list"] { list-style: none; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Base typography */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body > main { flex: 1 0 auto; }
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -.01em;
    margin: 0 0 var(--space-4);
    text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 600; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.125rem; font-family: var(--font-sans); letter-spacing: 0; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
strong { font-weight: 600; }
small { font-size: var(--fs-small); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-7) 0; }

/* Two-tone focus ring: dark inner ring (light backgrounds), yellow outer ring (dark backgrounds). */
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--ink);
    border-radius: 4px;
}

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-sans);
    font-size: var(--fs-kicker);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-strong);
    margin: 0 0 var(--space-3);
}
.eyebrow-rule::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin-bottom: var(--space-4);
}
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* Layout */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container-text { max-width: calc(var(--container-text) + 2 * var(--gutter)); }
.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #DCE6EE; }
.section--ink :is(h1, h2, h3) { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-bottom: 0; }
.stack > * + * { margin-top: var(--space-4); }
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 1000px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Icons */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.icon--lg { width: 28px; height: 28px; }
.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-strong);
}
.icon-badge .icon { width: 26px; height: 26px; }

/* Buttons */
.btn, .cri-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 48px;
    padding: 12px 22px;
    border: 1.5px solid var(--brand-strong);
    border-radius: var(--radius);
    background: var(--brand-strong);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover, .cri-button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--ghost, .cri-button-secondary { background: transparent; color: var(--brand-strong); }
.btn--ghost:hover, .cri-button-secondary:hover { background: var(--brand-soft); border-color: var(--brand-strong); color: var(--ink); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--brand-on-dark); border-color: var(--brand-on-dark); color: var(--ink); }
.btn--outline-light { background: transparent; border-color: rgb(255 255 255 / .55); color: var(--white); }
.btn--outline-light:hover { background: rgb(255 255 255 / .1); border-color: var(--white); color: var(--white); }
.btn .icon, .cri-button .icon { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; text-decoration: none; color: var(--brand-strong);
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Skip link */
.skip-link {
    position: absolute;
    inset-inline-start: var(--space-4);
    top: -100px;
    z-index: 1000;
    padding: 12px 18px;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgb(255 255 255 / .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: 72px; }
.wordmark {
    display: inline-flex; align-items: baseline; gap: 6px;
    color: var(--ink); text-decoration: none; margin-inline-end: auto; white-space: nowrap;
}
.wordmark__cri { font-family: var(--font-serif); font-weight: 700; font-size: 1.75rem; letter-spacing: .02em; line-height: 1; }
.wordmark__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); align-self: center; margin-top: 2px; }
.wordmark__name { font-family: var(--font-sans); font-weight: 500; font-size: 1.0625rem; letter-spacing: .01em; color: var(--text); }
.wordmark img, .wordmark__logo { height: 48px; width: auto; max-height: none; }
.site-footer .wordmark__logo { height: 56px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); }
.site-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .975rem;
    font-weight: 500;
    text-decoration: none;
}
.site-nav a:hover { background: var(--paper); color: var(--ink); }
.site-nav .nav-current a, .site-nav a[aria-current="page"] { color: var(--brand-strong); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.site-header__cta { flex: none; }
.menu-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); color: var(--ink); cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1080px) {
    .site-header__inner { flex-wrap: wrap; }
    .site-nav ul { flex-wrap: wrap; }
    .js .menu-toggle { display: inline-flex; }
    .js .site-header__cta { display: none; }
    .js .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: var(--space-3) var(--gutter) var(--space-5);
    }
    .js .site-nav:not(.is-open) { display: none; }
    .js .site-nav ul { flex-direction: column; }
    .js .site-nav a { padding: 14px 12px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .js .site-nav .nav-current a, .js .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); }
    .js .site-nav__cta { display: flex; margin-top: var(--space-4); }
    html:not(.js) .site-nav__cta { display: none; }
}
@media (min-width: 1081px) { .site-nav .site-nav__cta { display: none; } }

/* Hero */
.page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
    color: #D5E1EA;
    padding-block: clamp(56px, 7vw, 104px) clamp(48px, 6vw, 88px);
}
.page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 720px; height: 720px;
    inset-inline-end: -220px; top: -320px;
    background: radial-gradient(closest-side, rgb(42 127 157 / .45), transparent);
    pointer-events: none;
}
.page-hero__pattern { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; color: #fff; opacity: .07; }
.page-hero h1 { color: var(--white); max-width: 22ch; margin-bottom: var(--space-4); }
.page-hero .kicker { color: var(--brand-on-dark); }
.page-hero__lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 60ch; color: #C7D6E1; margin: 0; }
.page-hero__actions { margin-top: var(--space-6); }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); color: #B7C8D5; font-size: var(--fs-small); }
.page-hero__meta .icon { color: var(--brand-on-dark); }
.page-hero--home { padding-block: clamp(72px, 10vw, 152px) clamp(64px, 8vw, 120px); }
.page-hero--home h1 { font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem); max-width: 18ch; }
.page-hero--compact { padding-block: clamp(40px, 5vw, 64px); }

.breadcrumbs { margin-bottom: var(--space-5); font-size: var(--fs-small); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: #B7C8D5; }
.breadcrumbs li + li::before { content: "/"; color: rgb(255 255 255 / .35); }
.breadcrumbs a { color: #D5E1EA; text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }

/* Flag chips */
.flag-chips { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.flag-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding-block: 8px;
    padding-inline: 8px 16px;
    border: 1px solid rgb(255 255 255 / .22);
    border-radius: 999px;
    color: var(--white);
    font-weight: 600; font-size: .9375rem; letter-spacing: .04em;
    text-decoration: none;
    transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.flag-chip:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .5); color: var(--white); }
.flag { width: auto; height: 22px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); flex: none; }
.flag--round { width: 28px; height: 28px; border-radius: 50%; }

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { box-shadow: var(--shadow-hover); border-color: #C9D4DC; transform: translateY(-2px); }
.card:focus-within { box-shadow: var(--shadow-hover); }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); flex: 1; }
.card__kicker { font-size: var(--fs-kicker); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); margin: 0; }
.card__title { font-size: 1.3125rem; line-height: 1.25; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card__excerpt { color: var(--muted); font-size: 1rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; padding-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); color: var(--muted); font-size: .875rem; }
.card__meta .icon { color: var(--brand); }
.card__more { margin-top: auto; padding-top: var(--space-3); font-weight: 600; color: var(--brand-strong); display: inline-flex; align-items: center; gap: 6px; }
.card--icon .card__body { padding: var(--space-6); }
.card--icon .icon-badge { margin-bottom: var(--space-3); }

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
    background: var(--brand-soft); color: var(--brand-strong);
}
.badge--sold { background: #FBEDEA; color: #9B2C1F; }
.badge--available { background: #E7F4EC; color: #1E6B3A; }
.card .badge { position: absolute; top: var(--space-3); inset-inline-start: var(--space-3); z-index: 2; }

/* Branded cover (posts without a feature image) */
.cover {
    position: relative;
    display: grid;
    place-items: end start;
    width: 100%; height: 100%;
    padding: var(--space-5);
    background: linear-gradient(140deg, var(--ink) 0%, var(--ink-2) 60%, #1D4A63 100%);
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}
.cover__pattern { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; color: #fff; opacity: .08; }
.cover::after {
    content: ""; position: absolute; z-index: -1;
    width: 300px; height: 300px; inset-inline-end: -90px; top: -120px;
    background: radial-gradient(closest-side, rgb(42 127 157 / .55), transparent);
}
.cover__icon { width: 40px; height: 40px; color: var(--brand-on-dark); }
.cover__label { position: absolute; top: var(--space-4); inset-inline-end: var(--space-5); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .7); }

/* Avatars (team) */
.avatar {
    display: grid; place-items: center;
    width: 96px; height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(140deg, var(--ink), var(--brand-strong));
    color: var(--white);
    font-family: var(--font-serif); font-weight: 600; font-size: 2rem;
    flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 56px; height: 56px; font-size: 1.25rem; }
.avatar--lg { width: 200px; height: 200px; font-size: 4rem; }

/* CTA band */
.cta-band { background: var(--paper); border-top: 1px solid var(--line); }
.cta-band__inner { display: grid; gap: var(--space-5); align-items: center; padding-block: var(--space-8); }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { margin-bottom: var(--space-3); }
.cta-band p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Footer */
.site-footer { background: var(--ink); color: #B9C9D6; font-size: .9375rem; }
.site-footer a { color: #DCE6EE; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__top { display: grid; gap: var(--space-7); padding-block: var(--space-8) var(--space-7); }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer .wordmark { color: var(--white); }
.site-footer .wordmark__name { color: #DCE6EE; }
.site-footer__about { max-width: 34ch; margin-top: var(--space-4); }
.site-footer h2 { font-family: var(--font-sans); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: var(--space-4); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .office { display: grid; gap: 4px; margin-bottom: var(--space-4); }
.site-footer .office strong { color: var(--white); font-weight: 600; }
.site-footer .office a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .office .icon { color: var(--brand-on-dark); width: 16px; height: 16px; }
.site-footer__bottom {
    display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); justify-content: space-between; align-items: center;
    padding-block: var(--space-5);
    border-top: 1px solid rgb(255 255 255 / .12);
    font-size: .875rem; color: #9FB2C2;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: 0; padding: 0; }
.site-footer__legal button {
    background: none; border: 0; padding: 0; color: #DCE6EE; cursor: pointer; font-size: inherit; text-decoration: none;
}
.site-footer__legal button:hover { color: var(--white); text-decoration: underline; }
/* Touch screens: footer links and the cookie button get a 44px target. */
@media (max-width: 700px) {
    .site-footer ul a, .site-footer__legal button { display: inline-flex; align-items: center; min-height: 44px; }
    .site-footer ul { gap: 0; }
}

/* Consent banner (partials/consent-analytics.hbs) */
.cri-consent {
    position: fixed;
    inset: auto var(--space-4) var(--space-4) var(--space-4);
    z-index: 200;
    max-width: 560px;
    margin-inline-start: auto;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 48px rgb(14 34 51 / .22);
}
.cri-consent[hidden] { display: none; }
.cri-consent__inner { padding: var(--space-5); }
.cri-consent__title { font-size: 1.25rem; margin-bottom: var(--space-2); }
.cri-consent__text { font-size: .9375rem; color: var(--muted); }
.cri-consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; }
.cri-consent__actions .cri-button { flex: 1 1 160px; }

/* Error page */
.error-code { font-family: var(--font-serif); font-size: clamp(4rem, 10vw, 7rem); line-height: 1; color: var(--brand-on-dark); margin: 0 0 var(--space-3); }

/* Print */
@media print {
    .site-header, .site-footer, .cta-band, .cri-consent, .page-hero__pattern { display: none !important; }
    .page-hero { background: none; color: #000; padding: 0 0 16px; }
    .page-hero h1 { color: #000; }
    a { color: #000; }
}
/* Content styling: Ghost post body (.gh-content), Koenig cards and the migration's cri-* classes.
   Icons below are Lucide shapes (ISC licence, see licenses/) inlined as CSS masks: no icon font, no requests. */

:root {
    --m-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6' /%3E%3C/svg%3E");
    --m-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14' /%3E %3Cpath d='m12 5 7 7-7 7' /%3E%3C/svg%3E");
    --m-arrow-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10' /%3E %3Cpath d='M7 17 17 7' /%3E%3C/svg%3E");
    --m-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5' /%3E%3C/svg%3E");
    --m-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2' /%3E %3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7' /%3E%3C/svg%3E");
    --m-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z' /%3E%3C/svg%3E");
    --m-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0' /%3E %3Ccircle cx='12' cy='10' r='3' /%3E%3C/svg%3E");
    --m-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' /%3E %3Cpolyline points='7 10 12 15 17 10' /%3E %3Cline x1='12' x2='12' y1='15' y2='3' /%3E%3C/svg%3E");
    --m-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z' /%3E %3Cpath d='M14 2v4a2 2 0 0 0 2 2h4' /%3E %3Cpath d='M10 9H8' /%3E %3Cpath d='M16 13H8' /%3E %3Cpath d='M16 17H8' /%3E%3C/svg%3E");
    --m-linkedin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z' /%3E %3Crect width='4' height='12' x='2' y='9' /%3E %3Ccircle cx='4' cy='4' r='2' /%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------------
   Body wrapper and grid
   Named lines: main = reading column, wide = Koenig wide cards, full = edge to edge.
   --------------------------------------------------------------------------- */
.gh-content {
    --wide-extra: calc((var(--container) - var(--container-text)) / 2);
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, var(--wide-extra))
        [main-start] min(var(--container-text), calc(100% - 2 * var(--gutter))) [main-end]
        minmax(0, var(--wide-extra)) [wide-end]
        minmax(var(--gutter), 1fr) [full-end];
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--text);
    overflow-wrap: break-word;
}
.gh-content > * {
    grid-column: main-start / main-end;
    min-width: 0;
    margin: 0 0 var(--space-4);
}
.gh-content > :last-child { margin-bottom: 0; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }

/* Rhythm. Child selectors keep component headings (e.g. inside .cri-contacts) untouched. */
.gh-content > h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.gh-content > h3 { margin-top: var(--space-6); margin-bottom: var(--space-3); }
.gh-content > h4 { margin-top: var(--space-5); margin-bottom: var(--space-2); font-size: 1.25rem; }
.gh-content > :is(h5, h6) {
    margin-top: var(--space-5);
    margin-bottom: var(--space-2);
    font-family: var(--font-sans);
    font-size: var(--fs-kicker);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.gh-content > :is(h2, h3, h4, h5, h6):first-child { margin-top: 0; }
.gh-content > :is(h2, h3, h4, h5, h6) + * { margin-top: 0; }
.gh-content :is(h2, h3, h4, h5, h6)[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.gh-content sup, .gh-content sub { font-size: .75em; line-height: 0; }
.gh-content mark { background: color-mix(in srgb, var(--gold) 28%, var(--white)); color: var(--ink); padding: 0 .15em; }
.gh-content > hr { margin-block: var(--space-7); }

/* Lists (classless lists only: components style their own) */
.gh-content :is(ul, ol):where(:not([class])) {
    padding-inline-start: 1.4em;
    margin: 0 0 var(--space-4);
}
.gh-content :is(ul, ol):where(:not([class])) li { margin-bottom: .4em; padding-inline-start: .2em; }
.gh-content :is(ul, ol):where(:not([class])) li::marker { color: var(--brand); font-weight: 600; }
.gh-content :is(ul, ol):where(:not([class])) :is(ul, ol) { margin: .4em 0 .6em; }
.gh-content ul:where(:not([class])) ul:where(:not([class])) { list-style-type: circle; }
.gh-content :is(ul, ol):where(:not([class])) > li > :last-child { margin-bottom: 0; }

/* Blockquote */
.gh-content blockquote:where(:not([class])) {
    margin-inline: 0;
    padding-block: var(--space-2);
    padding-inline: var(--space-5) 0;
    border-inline-start: 3px solid var(--gold);
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ink);
}
.gh-content blockquote > :last-child { margin-bottom: 0; }
.gh-content blockquote.kg-blockquote-alt {
    margin-inline: 0;
    padding: var(--space-5) 0;
    border: 0;
    text-align: center;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-style: italic;
    line-height: 1.35;
    color: var(--ink);
}
.gh-content cite, .gh-content blockquote footer {
    display: block;
    margin-top: var(--space-2);
    font-family: var(--font-sans);
    font-size: var(--fs-small);
    font-style: normal;
    color: var(--muted);
}

/* Code */
.gh-content :not(pre) > code {
    padding: .1em .35em;
    border-radius: 4px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: .9em;
}
.gh-content pre {
    overflow-x: auto;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    background: var(--ink);
    color: #E6EEF4;
    font-size: .9375rem;
    line-height: 1.6;
}
.gh-content pre code { background: none; border: 0; padding: 0; }

/* Tables. Layout-only tables (no header cells) stack on narrow screens. */
.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.5;
}
.gh-content :is(th, td) {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--line);
    text-align: start;
    vertical-align: top;
}
.gh-content th { background: var(--paper); color: var(--ink); font-weight: 600; }
.gh-content td > :last-child { margin-bottom: 0; }
.gh-content td ul { margin-top: var(--space-2); }
@media (max-width: 640px) {
    .gh-content table:not(:has(th)) :is(tbody, tr, td) { display: block; }
    .gh-content table:not(:has(th)) td { padding-inline: 0; border-bottom: 0; }
    .gh-content table:not(:has(th)) tr { border-bottom: 1px solid var(--line); padding-block: var(--space-2); }
    .gh-content table:has(th) { display: block; overflow-x: auto; }
}

/* Images and captions */
.gh-content figure { margin-inline: 0; }
.gh-content figcaption {
    margin-top: var(--space-3);
    font-size: .875rem;
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
}
.gh-content figcaption a { color: inherit; }
.gh-content :where(p, td, li) > img { border-radius: var(--radius-sm); margin-block: var(--space-3); }
.kg-image-card img, .kg-image { margin-inline: auto; border-radius: var(--radius); }
.kg-width-wide img, .kg-width-full img { width: 100%; }
.kg-width-full img, .kg-width-full .kg-gallery-image img { border-radius: 0; }
.kg-card figcaption { padding-inline: var(--gutter); }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { max-width: 100%; border: 0; }
.kg-video-card video, .kg-audio-card audio { width: 100%; border-radius: var(--radius); }

/* Gallery */
.kg-gallery-container { display: flex; flex-direction: column; gap: var(--space-3); }
.kg-gallery-row { display: flex; gap: var(--space-3); }
.kg-gallery-image { flex: 1 1 0; min-width: 0; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }

/* Callout */
.kg-callout-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    border-radius: var(--radius);
    border-inline-start: 4px solid var(--brand);
    background: var(--paper);
    color: var(--text);
}
.kg-callout-card .kg-callout-emoji { flex: none; font-size: 1.5rem; line-height: 1.4; }
.kg-callout-card .kg-callout-text { flex: 1; min-width: 0; line-height: 1.55; }
.kg-callout-card .kg-callout-text > :last-child { margin-bottom: 0; }
.kg-callout-card-white { background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); }
.kg-callout-card-blue,
.kg-callout-card-green,
.kg-callout-card-red,
.kg-callout-card-pink,
.kg-callout-card-purple { background: var(--brand-soft); }
.kg-callout-card-yellow { background: color-mix(in srgb, var(--gold) 14%, var(--white)); border-inline-start-color: var(--gold); }
.kg-callout-card-accent { background: var(--brand-strong); border-inline-start-color: var(--ink); color: var(--white); }
.kg-callout-card-accent a { color: var(--white); }

/* Toggle (opened and closed by main.js via data-kg-toggle-state) */
.kg-toggle-card {
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}
.kg-toggle-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); cursor: pointer; }
.kg-toggle-heading-text { margin: 0; font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600; }
.kg-toggle-card-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand-strong);
    cursor: pointer;
    transition: transform .2s var(--ease);
}
.kg-toggle-card-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.kg-toggle-card-icon path { fill: none; stroke: currentColor; }
.kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-card-icon { transform: rotate(180deg); }
.kg-toggle-content { margin-top: var(--space-3); color: var(--text); }
.kg-toggle-content > :last-child { margin-bottom: 0; }
.kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: none; }
:root:not(.js) .kg-toggle-card[data-kg-toggle-state="close"] .kg-toggle-content { display: block; }

/* Bookmark */
.kg-bookmark-card { width: 100%; }
.kg-bookmark-container {
    display: flex;
    min-height: 148px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    color: var(--text);
    text-decoration: none;
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.kg-bookmark-container:hover { box-shadow: var(--shadow-hover); border-color: #C9D4DC; color: var(--text); }
.kg-bookmark-content { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; padding: var(--space-4) var(--space-5); }
.kg-bookmark-title { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; color: var(--ink); }
.kg-bookmark-description {
    margin-top: var(--space-1);
    font-size: .9375rem;
    line-height: 1.5;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kg-bookmark-metadata { display: flex; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: var(--space-3); font-size: .875rem; color: var(--muted); }
.kg-bookmark-icon { width: 20px; height: 20px; margin-inline-end: var(--space-2); border-radius: 3px; }
.kg-bookmark-author + .kg-bookmark-publisher::before { content: "\2022"; margin-inline: var(--space-2); }
.kg-bookmark-thumbnail { position: relative; flex: 0 0 32%; min-width: 120px; }
.kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
    .kg-bookmark-container { flex-direction: column-reverse; }
    .kg-bookmark-thumbnail { flex-basis: auto; min-height: 160px; }
}

/* Button card */
.kg-button-card { display: flex; justify-content: flex-start; }
.kg-button-card.kg-align-center { justify-content: center; }
.kg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1.5px solid var(--brand-strong);
    border-radius: var(--radius);
    background: var(--brand-strong);
    color: var(--white);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.kg-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* File card */
.kg-file-card { width: 100%; }
.kg-file-card-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 88px;
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    text-decoration: none;
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.kg-file-card-container:hover { box-shadow: var(--shadow-hover); border-color: #C9D4DC; color: var(--text); }
.kg-file-card-contents { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.kg-file-card-title { font-weight: 600; color: var(--ink); line-height: 1.35; }
.kg-file-card-caption { font-size: .9375rem; color: var(--muted); line-height: 1.45; }
.kg-file-card-metadata { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); font-size: .875rem; color: var(--muted); }
.kg-file-card-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand-strong);
}
.kg-file-card-icon svg { width: 24px; height: 24px; }

/* ---------------------------------------------------------------------------
   Icon masks (shared mechanics; each rule below sets --m)
   --------------------------------------------------------------------------- */
.cri-faq > summary::after,
.cri-related a::after,
.cri-service-links a::after,
.cri-cta .cri-button::before,
.cri-download .cri-button::before,
.cri-two-col > section:nth-child(2) li::before,
.cri-person-contact a::before,
.cri-office p::before,
.cri-office-address a[target="_blank"]::after {
    content: "";
    flex: none;
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    background-color: currentColor;
    -webkit-mask: var(--m) center / contain no-repeat;
    mask: var(--m) center / contain no-repeat;
}
@media (forced-colors: active) {
    .cri-faq > summary::after,
    .cri-related a::after,
    .cri-service-links a::after,
    .cri-cta .cri-button::before,
    .cri-download .cri-button::before,
    .cri-two-col > section:nth-child(2) li::before,
    .cri-person-contact a::before,
    .cri-office p::before,
    .cri-office-address a[target="_blank"]::after {
        forced-color-adjust: none;
        background-color: CanvasText;
    }
}

/* ---------------------------------------------------------------------------
   Page mode: full-bleed sections
   --------------------------------------------------------------------------- */
.cri-section#hero,
.cri-section#header { display: none; }

/* Section images from the original site are styled per section in 40-pages.css. */

.cri-section { --panel-bg: var(--paper); }
.gh-content--page > .cri-section {
    grid-column: full-start / full-end;
    margin: 0;
    padding-block: var(--space-8);
    padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
    --section-bg: var(--white);
    --panel-bg: var(--paper);
    background: var(--section-bg);
}
.gh-content--page > .cri-section:nth-child(even) { --section-bg: var(--paper); --panel-bg: var(--white); }
@supports selector(:nth-child(1 of .a)) {
    .gh-content--page > .cri-section:nth-child(even) { --section-bg: var(--white); --panel-bg: var(--paper); }
    .gh-content--page > .cri-section:nth-child(even of .cri-section:not(#hero, #header)) {
        --section-bg: var(--paper);
        --panel-bg: var(--white);
    }
}
.gh-content--page > .cri-section > :last-child { margin-bottom: 0; }

/* Section text: readable measure, theme heading rhythm */
.cri-section > :is(h2, h3, h4, p, blockquote),
.cri-section > :is(ul, ol):where(:not([class])) { max-width: 760px; }
.cri-section > h2 { margin-bottom: var(--space-3); }
.cri-section > h2:first-of-type::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    margin-bottom: var(--space-4);
    background: var(--gold);
}
.cri-section > .lead { max-width: 62ch; margin-bottom: var(--space-4); }
.cri-section > h3 {
    max-width: 52ch;
    font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem);
    font-weight: 500;
    line-height: 1.35;
}
.cri-section > p:has(> .cri-button) {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-5);
}
.cri-section > :is(.cri-stats, .cri-locations, .cri-features, .cri-service-links, .cri-flags, .cri-office) { max-width: none; }
.cri-section > :is(.cri-stats, .cri-locations, .cri-features, .cri-service-links, .cri-flags) { margin-top: var(--space-6); }
.cri-section > :first-child:is(.cri-stats, .cri-locations, .cri-features, .cri-service-links, .cri-flags) { margin-top: 0; }

/* Section with an inline photo: text left, image right (stacked on small screens) */
.cri-section:has(> .cri-section-image) { display: grid; row-gap: 0; }
.cri-section-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: var(--space-5);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
@media (min-width: 900px) {
    .cri-section:has(> .cri-section-image) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: var(--space-8); }
    .cri-section:has(> .cri-section-image) > * { grid-column: 1; }
    .cri-section:has(> .cri-section-image) > .cri-section-image {
        grid-column: 2;
        grid-row: 1 / span 12;
        align-self: start;
        position: sticky;
        top: calc(var(--header-h) + var(--space-5));
        aspect-ratio: 4 / 3;
        margin-bottom: 0;
    }
}

/* ---------------------------------------------------------------------------
   Page blocks
   --------------------------------------------------------------------------- */
/* lead (also used outside sections) */
.gh-content .lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }

/* Stats */
.cri-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr;
}
@media (min-width: 800px) { .cri-stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.cri-stats li {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-top: var(--space-5);
    border-top: 3px solid var(--brand);
}
.cri-stats strong {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--brand);
}
.cri-stats span { margin-top: var(--space-2); font-weight: 600; font-size: 1.125rem; color: var(--ink); }
.cri-stats p { margin: var(--space-1) 0 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* Feature list (icon, h3, text) */
.cri-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.cri-features li {
    padding: var(--space-6);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-bg, var(--paper));
}
.cri-features img { width: 56px; height: 56px; margin: 0 0 var(--space-4); border-radius: 0; object-fit: contain; }
.cri-features h3 { font-size: 1.3125rem; margin-bottom: var(--space-2); }
.cri-features p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Locations (two cards) */
.cri-locations { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 800px) { .cri-locations { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }
.cri-location {
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius);
    background: var(--panel-bg, var(--white));
    box-shadow: var(--shadow);
}
.cri-location h3 { margin-bottom: var(--space-1); font-size: 1.75rem; letter-spacing: .02em; }
.cri-location .lead { margin-bottom: var(--space-3); font-size: 1.125rem; font-weight: 500; color: var(--brand-strong); }
.cri-location p { color: var(--text); }
.cri-location p:has(> .cri-button) {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: auto 0 0;
    padding-top: var(--space-4);
}

/* Flag links (chips) */
.cri-flags ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cri-flags a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 20px;
    border: 1.5px solid var(--brand-strong);
    border-radius: 999px;
    color: var(--brand-strong);
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-decoration: none;
}
.cri-flags a:hover { background: var(--brand-soft); color: var(--ink); border-color: var(--ink); }

/* Service tiles */
.cri-service-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.cri-service-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 88px;
    padding: var(--space-5) var(--space-6);
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--brand);
    border-radius: var(--radius);
    background: var(--panel-bg, var(--white));
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.cri-service-links a:hover { box-shadow: var(--shadow-hover); border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.cri-service-links .cri-title { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
.cri-service-links a::after { --m: var(--m-arrow); color: var(--brand-strong); transition: transform .2s var(--ease); }
.cri-service-links a:hover::after { transform: translateX(4px); }

/* Offices (address cards) */
.cri-section:has(> .cri-office) { display: grid; gap: var(--space-5); align-content: start; }
@media (min-width: 800px) { .cri-section:has(> .cri-office) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); } }
.cri-section:has(> .cri-office) > :not(.cri-office) { grid-column: 1 / -1; }
.cri-office {
    display: block;
    padding: var(--space-6);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius);
    background: var(--panel-bg, var(--paper));
    font-style: normal;
}
.cri-office h3 { margin-bottom: var(--space-4); font-size: 1.5rem; }
.cri-office p { display: flex; align-items: flex-start; gap: var(--space-3); margin: 0 0 var(--space-3); }
.cri-office p:last-child { margin-bottom: 0; }
.cri-office p::before { margin-top: .2em; color: var(--brand-strong); }
.cri-office-address::before { --m: var(--m-pin); }
.cri-office-phone::before { --m: var(--m-phone); }
.cri-office-email::before { --m: var(--m-mail); }
.cri-office a { color: var(--ink); text-underline-offset: .2em; overflow-wrap: anywhere; }
.cri-office a:hover { color: var(--brand-strong); }
.cri-office-address a[target="_blank"]::after { --m: var(--m-arrow-out); width: 1em; height: 1em; margin-inline-start: .25em; vertical-align: -.1em; }

/* ---------------------------------------------------------------------------
   Post blocks (services, assets, reports, team)
   --------------------------------------------------------------------------- */
/* Two columns: main copy, then a tinted panel for the second column */
.cri-two-col { display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin: var(--space-6) 0 0; }
.gh-content > .cri-two-col { grid-column: wide-start / wide-end; }
/* The columns follow the width of the text area, not the screen: beside the aside it is only about 760px wide. */
.single__main .gh-content { container-type: inline-size; }
@container (min-width: 900px) { .cri-two-col { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; } }
.cri-two-col > section > :last-child { margin-bottom: 0; }
.cri-two-col p:has(> strong:only-child) {
    margin: var(--space-5) 0 var(--space-2);
    font-family: var(--font-serif);
    font-size: 1.3125rem;
    line-height: 1.25;
    color: var(--ink);
}
.cri-two-col p:has(> strong:only-child) strong { font-weight: 600; }
.cri-two-col > section > p:first-child:has(> strong:only-child) { margin-top: 0; }
.cri-two-col > section:nth-child(2) {
    padding: var(--space-6);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius);
    background: var(--panel-bg, var(--paper));
}
.cri-two-col ul { list-style: none; padding: 0; margin: var(--space-3) 0 0; }
.cri-two-col > section:nth-child(2) li { position: relative; padding-inline-start: 1.875rem; margin-bottom: var(--space-3); }
.cri-two-col > section:nth-child(2) li::before { --m: var(--m-check); position: absolute; inset-inline-start: 0; top: .3em; color: var(--brand-strong); }

/* FAQ accordion */
.cri-faq { margin: 0; border-bottom: 1px solid var(--line); }
:not(.cri-faq) + .cri-faq { border-top: 1px solid var(--line); }
.gh-content > :not(.cri-faq, h2, h3, h4, h5, h6) + .cri-faq { margin-top: var(--space-6); }
.gh-content > .cri-faq:not(:has(+ .cri-faq)) { margin-bottom: var(--space-5); }
.cri-faq > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 56px;
    padding: var(--space-3) 0;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.4;
    color: var(--ink);
}
.cri-faq > summary::-webkit-details-marker { display: none; }
.cri-faq > summary:hover { color: var(--brand-strong); }
.cri-faq > summary::after { --m: var(--m-chevron); width: 1.5rem; height: 1.5rem; color: var(--brand-strong); transition: transform .2s var(--ease); }
.cri-faq[open] > summary::after { transform: rotate(180deg); }
.cri-faq > :not(summary) { padding: 0; padding-block-end: var(--space-4); padding-inline-end: var(--space-6); color: var(--text); }
.cri-faq > :not(summary) > :last-child { margin-bottom: 0; }

/* Contacts (people chips) */
.cri-contacts {
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-bg, var(--paper));
}
.gh-content > .cri-contacts { margin: var(--space-6) 0 0; }
.cri-contacts > h2 { margin: 0 0 var(--space-4); font-size: var(--fs-h3); }
.cri-contacts ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.cri-contacts li { margin: 0; padding: 0; }
.cri-contacts li > a,
.cri-contacts li:not(:has(> a)) {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: var(--space-4);
    align-items: center;
    height: 100%;
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cri-contacts li > a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.cri-contacts li :is(img, .avatar) {
    grid-row: 1 / span 2;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ink);
}
.cri-contacts .name { align-self: end; font-weight: 600; line-height: 1.3; }
.cri-contacts .role { align-self: start; font-size: .875rem; line-height: 1.4; color: var(--muted); }
.cri-contacts li > a:hover .name { color: var(--brand-strong); text-decoration: underline; text-underline-offset: .2em; }
.cri-contacts li > a:not(:has(img)),
.cri-contacts li:not(:has(img)):not(:has(> a)) { grid-template-columns: minmax(0, 1fr); }
.cri-contacts li > a:not(:has(img)) > :is(.name, .role),
.cri-contacts li:not(:has(img)) > :is(.name, .role) { grid-column: 1; }

/* Related insight (link card) */
.cri-related {
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--gold);
    border-radius: var(--radius);
    background: var(--white);
    transition: box-shadow .25s var(--ease);
}
.gh-content > .cri-related { margin: var(--space-6) 0 0; }
.cri-related:hover, .cri-related:focus-within { box-shadow: var(--shadow); }
.cri-related::before {
    content: "Related insight";
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--fs-kicker);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-strong);
}
.cri-related a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    font-family: var(--font-serif);
    font-size: 1.3125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    text-decoration: none;
}
.cri-related a:hover { color: var(--brand-strong); }
.cri-related a::after { --m: var(--m-arrow); color: var(--brand-strong); transition: transform .2s var(--ease); }
.cri-related a:hover::after { transform: translateX(4px); }

/* Call to action (centred band) */
.cri-cta {
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius);
    background: var(--brand-soft);
    text-align: center;
}
.gh-content > .cri-cta { margin: var(--space-6) 0 0; }
.cri-cta .cri-button::before { --m: var(--m-mail); width: 18px; height: 18px; }

/* Asset facts (definition grid) */
.cri-asset-facts {
    display: grid;
    gap: var(--space-4) var(--space-6);
    grid-template-columns: 1fr;
    margin: 0 0 var(--space-6);
    padding: var(--space-5) var(--space-6);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius);
    background: var(--panel-bg, var(--paper));
}
@media (min-width: 560px) { .cri-asset-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cri-asset-facts > div { min-width: 0; }
.cri-asset-facts dt {
    margin-bottom: var(--space-1);
    font-size: var(--fs-kicker);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.cri-asset-facts dd { margin: 0; font-size: 1.0625rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

/* Download (report PDF) */
.cri-download { margin: var(--space-6) 0 0; }
.cri-download .cri-button::before { --m: var(--m-download); width: 18px; height: 18px; }

/* Person contact (icon list) */
.cri-person-contact { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-1); }
.cri-person-contact li { margin: 0; padding: 0; }
.cri-person-contact a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.cri-person-contact a:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: .2em; }
.cri-person-contact a::before { color: var(--brand-strong); }
.cri-person-contact a[href^="mailto:"]::before { --m: var(--m-mail); }
.cri-person-contact a[href^="tel:"]::before { --m: var(--m-phone); }
.cri-person-contact a[href*="linkedin."]::before { --m: var(--m-linkedin); }
.cri-person-contact a:not([href^="mailto:"], [href^="tel:"], [href*="linkedin."])::before { --m: var(--m-arrow-out); }

@media print {
    .cri-section { padding-block: 16px !important; background: none !important; }
    .cri-cta, .cri-related { break-inside: avoid; }
}
/* Single item templates: insight, service, report, asset, team member (post.hbs and partials/single/*) */

/* Hero extras */
.page-hero--article h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.125rem); max-width: 32ch; }
.page-hero__meta > span,
.page-hero__meta li { display: inline-flex; align-items: center; gap: 6px; }
.page-hero__meta a { color: var(--white); text-decoration-color: rgb(255 255 255 / .5); }
.page-hero__meta a:hover { color: var(--white); text-decoration-color: currentColor; }
.page-hero__meta .byline { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: 0; padding: 0; }
.page-hero__meta .byline:empty { display: none; }
.page-hero__meta .badge { font-size: .875rem; }

/* Lede image: overlaps the bottom of the hero */
.single__lede { position: relative; z-index: 1; margin-top: calc(-1 * var(--space-6)); }
.single__figure {
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--ink);
    box-shadow: var(--shadow-hover);
}
.single__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.single__figure figcaption { padding: var(--space-3) var(--space-4); background: var(--white); color: var(--muted); font-size: var(--fs-small); }
.single__figure--cover { aspect-ratio: 21 / 9; min-height: 200px; }
.single__lede + .single__section { padding-top: var(--space-7); }

/* Body column */
.single__main { max-width: var(--container-text); margin-inline: auto; min-width: 0; }
.single__main--wide { max-width: 820px; }
.single__more { margin: var(--space-6) 0 0; }
.single--insight .single__more,
.single--asset .single__more { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.icon--flip { transform: scaleX(-1); }
.link-arrow:hover .icon--flip { transform: scaleX(-1) translateX(3px); }

/* Topic chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: var(--space-7) 0 0; padding: var(--space-5) 0 0; border-top: 1px solid var(--line); }
.chips:empty { display: none; }
.topic-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Two-column layouts (service with aside, team profile) */
.single__layout { display: grid; gap: var(--space-7); }
.single__layout .single__main { margin-inline: 0; max-width: none; }
.single__layout--profile .single__main { max-width: var(--container-text); }
@media (min-width: 1000px) {
    .single__layout--aside { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-8); align-items: start; }
    .single__layout--aside .single__main { max-width: 760px; }
    .single__aside .panel { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
}
@media (min-width: 800px) {
    .single__layout--profile { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
}

/* Enquiry panel */
.panel {
    padding: var(--space-6);
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.panel .icon-badge { margin-bottom: var(--space-4); }
.panel h2 { font-size: 1.5rem; margin-bottom: var(--space-3); }
.panel p { color: var(--muted); font-size: 1rem; }
.panel__actions { margin-block: var(--space-5); }
.panel__actions .btn { width: 100%; }
.panel__links { list-style: none; margin: 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--space-1); }
.panel__links a { min-height: 32px; }

/* Asset body: responsive details table */
.single--asset .gh-content table { width: 100%; border-collapse: collapse; margin: var(--space-5) 0; font-size: var(--fs-small); }
.single--asset .gh-content td { padding: var(--space-4); border: 1px solid var(--line); vertical-align: top; }
.single--asset .gh-content td:first-child { width: 28%; background: var(--paper); }
@media (max-width: 700px) {
    .single--asset .gh-content :is(table, tbody, tr, td) { display: block; width: 100%; }
    .single--asset .gh-content tr { margin-bottom: var(--space-4); }
    .single--asset .gh-content td + td { border-top: 0; }
}

/* Team profile */
.profile__side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.single--team .avatar img { object-position: center top; }
.single--team .avatar .icon { width: 40%; height: 40%; }
.profile__role { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.single--team .cri-person-contact {
    display: grid;
    gap: var(--space-3);
    margin: var(--space-6) 0 0;
    padding: var(--space-5);
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.single--team .cri-person-contact a { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 32px; font-weight: 500; }
.single--team .cri-person-contact a::before {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    background: var(--brand-strong);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.single--team .cri-person-contact a[href^="tel:"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
.single--team .cri-person-contact a[href*="linkedin.com"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect width='4' height='12' x='2' y='9'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect width='4' height='12' x='2' y='9'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E");
}

/* Service pages carry the call to action in the aside panel, so the in-content one is hidden. */
.single--service .gh-content > .cri-cta { display: none; }

/* Inside a two-column layout the body is already width-constrained: collapse the breakout grid to one column. */
.single__layout .gh-content {
    grid-template-columns: [full-start wide-start main-start] minmax(0, 1fr) [main-end wide-end full-end];
}
/* Pages: home, location, contact, about and generic pages */

/* Shared bits */
.section-more { margin: var(--space-6) 0 0; }
.page-figure { margin-block: var(--space-7) 0; }
.page-figure img { width: 100%; height: auto; border-radius: var(--radius); background: var(--paper); }
.page-figure figcaption { margin-top: var(--space-3); color: var(--muted); font-size: var(--fs-small); }

/* Sections the theme hero or the templates replace (their content stays in the editor) */
.gh-content--page .cri-section:is(#hero, #header) { display: none; }

/* Decorative section backgrounds from the page content */
.gh-content--page .cri-section:has(> .cri-section-bg) { position: relative; overflow: hidden; isolation: isolate; }
.gh-content--page .cri-section-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    opacity: .1;
    pointer-events: none;
}

/* Office cards (partials/offices/*) */
.office-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.office-grid--single { grid-template-columns: minmax(0, 560px); }
.office-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.office-card__head { display: flex; align-items: center; gap: var(--space-3); }
.office-card__flag .flag { display: block; width: auto; height: 27px; }
.office-card__title { margin: 0; font-size: 1.375rem; }
.office-card__details { font-style: normal; }
.office-card__details p { display: flex; gap: var(--space-3); margin: 0 0 var(--space-3); }
.office-card__details p:last-child { margin-bottom: 0; }
.office-card__details .icon { margin-top: .2em; color: var(--brand); }
.office-card__map { margin-top: auto; padding-top: var(--space-2); }

.contact-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-top: var(--space-7);
    padding: var(--space-5) var(--space-6);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.contact-note .icon-badge { flex: none; }
.contact-note h2 { margin-bottom: var(--space-2); font-size: 1.25rem; }
.contact-note p { max-width: 62ch; margin: 0; color: var(--muted); }
@media (max-width: 600px) {
    .contact-note { flex-direction: column; padding: var(--space-5); }
}

/* Contact: page content shows only when it holds sections beyond the offices */
.gh-content--contact .cri-section:is(#header, #offices) { display: none; }
.gh-content--contact:not(:has(.cri-section:not(#header):not(#offices))) { display: none; }

/* Location pages: hero flag */
.page-hero--location { padding-block: clamp(40px, 5vw, 72px); }
.page-hero--location .container { position: relative; }
.page-hero__flag { margin-top: var(--space-5); }
.flag--lg { display: block; width: auto; height: 48px; border-radius: 4px; }
@media (min-width: 900px) {
    .page-hero--location .page-hero__flag { position: absolute; top: 0; inset-inline-end: var(--gutter); margin: 0; }
    .flag--lg { width: auto; height: 80px; border-radius: 6px; }
}

/* Location pages: sticky in-page navigation (built by 10-location-nav.js; hidden without JavaScript) */
:root { --locnav-h: 56px; }
.location-nav { display: none; }
.js .location-nav {
    display: block;
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    height: var(--locnav-h);
    background: rgb(255 255 255 / .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.js .location-nav:not(.is-ready) { visibility: hidden; }
html:has(.location-nav.is-ready) { scroll-padding-top: calc(var(--header-h) + var(--locnav-h) + 16px); }
.location-nav .container { position: relative; height: 100%; overflow-x: auto; scrollbar-width: none; }
.location-nav .container::-webkit-scrollbar { display: none; }
/* Where more pills are hidden, that edge fades out (classes are set by 10-location-nav.js, left or right). */
.location-nav .container.has-more-left { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px); mask-image: linear-gradient(to right, transparent 0, #000 40px); }
.location-nav .container.has-more-right { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 40px); mask-image: linear-gradient(to left, transparent 0, #000 40px); }
.location-nav .container.has-more-left.has-more-right { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.location-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: max-content;
    height: 100%;
    margin: 0;
    padding: 8px 0;
    list-style: none;
}
.location-nav a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.location-nav a:hover { background: var(--paper); border-color: #C9D4DC; color: var(--ink); }
.location-nav a[aria-current="true"] { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--white); }
.location-nav a:focus-visible { border-radius: 999px; }

/* Home: why (stats on paper) */
.gh-content.gh-content--home .cri-section.cri-home-why { background: var(--paper); }
.gh-content--home .cri-home-why .cri-stats li {
    padding: var(--space-6);
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/*
 * Home: locations.
 * The two location cards come from the page content, so editors keep control of the text, links and
 * photos. The content's small icon image (the flag) becomes a round badge on the card photo.
 * The photo has a fixed ratio and an ink background, so a missing image still leaves a tidy header.
 */
.gh-content--home .cri-home-locations .cri-locations {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.gh-content--home .cri-location {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.gh-content--home .cri-location-image {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    background: linear-gradient(135deg, var(--ink), var(--ink-2));
}
.gh-content--home .cri-location-icon {
    position: relative;
    width: 56px;
    height: 56px;
    max-width: none;
    margin: -28px 0 0;
    margin-inline-start: var(--space-5);
    padding: 6px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.gh-content--home .cri-location > :is(h3, p) { margin-inline: var(--space-5); }
.gh-content--home .cri-location h3 { margin-top: var(--space-4); margin-bottom: var(--space-1); font-size: 1.5rem; letter-spacing: .04em; }
.gh-content--home .cri-location .lead { margin-bottom: var(--space-3); font-size: 1.0625rem; font-weight: 500; color: var(--brand-strong); }
/* The two buttons share the row evenly when it wraps on narrow screens. */
.gh-content--home .cri-location > p:last-child .cri-button { flex: 1 1 auto; }
.gh-content--home .cri-location > p:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: auto;
    margin-bottom: 0;
    padding-block: var(--space-4) var(--space-5);
}

/* Home and location pages: the latest-insights heading is rendered by the template */
.gh-content--home .cri-home-insights,
.gh-content--location :is(.cri-cyprus-insights, .cri-uae-insights, .cri-cyprus-contact, .cri-uae-contact) { display: none; }

/* About */
.gh-content--about .cri-about-us-intro h3 {
    max-width: 38ch;
    padding-inline-start: var(--space-5);
    border-inline-start: 3px solid var(--gold);
    font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem);
    font-weight: 500;
    line-height: 1.35;
}
.gh-content--about :is(.cri-about-us-about, .cri-about-us-proven) {
    display: grid;
    column-gap: clamp(32px, 5vw, 72px);
    row-gap: 0;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
}
.gh-content--about :is(.cri-about-us-about, .cri-about-us-proven) > * { grid-column: 2; max-width: none; margin-inline: 0; }
/* Three classes, so it beats the generic photo-beside-text rule in 20-content.css (which would put the photo in the
   text column and keep it sticky). The photo takes the first column in both directions; logical grid lines mirror it. */
.gh-content--about .cri-section > .cri-section-image {
    grid-column: 1;
    grid-row: 1 / span 20;
    align-self: center;
    position: static;
    margin-bottom: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--ink), var(--ink-2));
    box-shadow: var(--shadow);
}
.gh-content--about .cri-about-us-proven { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.gh-content--about .cri-about-us-proven > * { grid-column: 1; }
/* The source photo is a wide background; keep the two people in frame at 4:3. */
.gh-content--about .cri-about-us-about > .cri-section-image { object-position: 70% center; }
.gh-content--about .cri-about-us-proven > .cri-section-image { grid-column: 2; }
@media (max-width: 860px) {
    .gh-content--about :is(.cri-about-us-about, .cri-about-us-proven) { grid-template-columns: minmax(0, 1fr); }
    .gh-content--about :is(.cri-about-us-about, .cri-about-us-proven) > *,
    .gh-content--about .cri-about-us-proven > .cri-section-image { grid-column: 1; }
    .gh-content--about .cri-section > .cri-section-image { grid-row: auto; margin-bottom: var(--space-5); }
}

.gh-content--about .cri-features {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.gh-content--about .cri-features li { margin: 0; padding-top: var(--space-5); border-top: 2px solid var(--brand); }
.gh-content--about .cri-features img { width: 64px; height: 64px; margin-bottom: var(--space-4); object-fit: contain; }
.gh-content--about .cri-features h3 { margin-bottom: var(--space-2); }
.gh-content--about .cri-features p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------------------
   Original site imagery, placed in the same sections as on the WordPress site
   --------------------------------------------------------------------------- */

/* Page heroes: the page's header image behind a navy tint, so white text keeps AA contrast. */
.page-hero--image { position: relative; isolation: isolate; background: var(--ink); }
.page-hero__bg {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; max-width: none;
    object-fit: cover; object-position: center;
}
.page-hero--image::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(100deg, rgb(14 34 51 / .92) 0%, rgb(14 34 51 / .78) 45%, rgb(14 34 51 / .45) 100%);
}
[dir="rtl"] .page-hero--image::before { background: linear-gradient(260deg, rgb(14 34 51 / .92) 0%, rgb(14 34 51 / .78) 45%, rgb(14 34 51 / .45) 100%); }
.page-hero--image .page-hero__pattern { opacity: .04; }
.page-hero--image::after { opacity: .5; }

/* Round flags (the original site's flag artwork) */
.flag { border-radius: 50%; box-shadow: none; }
.flag-chip .flag { width: 28px; height: 28px; }
.page-hero__flag .flag--lg { width: 88px; height: 88px; }

/* Dark photo backgrounds: Cyprus / UAE services. White text over a teal-navy tint. */
.gh-content--page .cri-section:is(.cri-cyprus-services, .cri-uae-services) > .cri-section-bg { opacity: 1; z-index: -2; }
.gh-content--page .cri-section:is(.cri-cyprus-services, .cri-uae-services)::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgb(14 34 51 / .72), rgb(14 34 51 / .55));
}
.gh-content.gh-content--page .cri-section:is(.cri-cyprus-services, .cri-uae-services) { background: var(--ink); color: #D5E1EA; --panel-bg: var(--white); }
.gh-content--page .cri-section:is(.cri-cyprus-services, .cri-uae-services) :is(h2, h3) { color: var(--white); }
.gh-content--page .cri-section:is(.cri-cyprus-services, .cri-uae-services) .lead { color: #C7D6E1; }
.gh-content--page .cri-section:is(.cri-cyprus-services, .cri-uae-services) h2::before { background: var(--gold); }

/* Light photos: home "How we can help" and the Policies sections. The image sits beside the text. */
.gh-content.gh-content--page .cri-section:is(.cri-home-how, .cri-cyprus-policies, .cri-uae-policies) { background: var(--paper); color: var(--text); }
.gh-content--page .cri-section:is(.cri-home-how, .cri-cyprus-policies, .cri-uae-policies) :is(h2, h3) { color: var(--ink); }
.gh-content--page .cri-section:is(.cri-home-how, .cri-cyprus-policies, .cri-uae-policies) .lead { color: var(--muted); }
.gh-content--page .cri-section:is(.cri-home-how, .cri-cyprus-policies, .cri-uae-policies) strong { color: var(--ink); }
.gh-content--home .cri-home-how .cri-button { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--white); }
.gh-content--home .cri-home-how .cri-button:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.gh-content--page .cri-section:is(.cri-home-how, .cri-cyprus-policies, .cri-uae-policies) > .cri-section-bg {
    position: static; z-index: auto; opacity: 1;
    display: block; width: 100%; height: auto; max-width: none;
    aspect-ratio: auto; object-fit: contain;
    border-radius: var(--radius); margin-bottom: var(--space-6);
}
@media (min-width: 900px) {
    .gh-content--page .cri-section:is(.cri-home-how, .cri-cyprus-policies, .cri-uae-policies) {
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); column-gap: var(--space-8); align-content: center;
    }
    .gh-content--page .cri-section:is(.cri-home-how, .cri-cyprus-policies, .cri-uae-policies) > * { grid-column: 1; }
    .gh-content--page .cri-section:is(.cri-home-how, .cri-cyprus-policies, .cri-uae-policies) > .cri-section-bg {
        grid-column: 2; grid-row: 1 / span 20; align-self: center; margin: 0;
    }
}

/* Cyprus: Corporate / Personal tiles with the original icons on a teal disc */
.cri-service-links img {
    width: 56px; height: 56px; padding: 12px; flex: none;
    border-radius: 50%; background: var(--brand-strong); object-fit: contain;
}
.cri-service-links a { display: flex; align-items: center; gap: var(--space-4); }
/* UAE tiles: title with the free-zone name beneath it, arrow at the end. */
.cri-service-links a:has(.cri-text) { display: grid; grid-template-columns: 1fr auto; column-gap: var(--space-4); row-gap: var(--space-1); }
.cri-service-links .cri-text { display: block; color: var(--muted); font-family: var(--font-sans); font-size: var(--fs-small); }
.cri-service-links a:has(.cri-text) .cri-title { grid-column: 1; grid-row: 1; }
.cri-service-links a:has(.cri-text) .cri-text { grid-column: 1; grid-row: 2; }
.cri-service-links a:has(.cri-text)::after { grid-column: 2; grid-row: 1 / span 2; }

/* Home hero flags in the content (the theme hero shows its own chips; kept consistent if shown) */
.cri-flags img { width: 24px; height: 24px; border-radius: 50%; }

/* Location header block (flag + icon) is shown by the theme hero instead */
.cri-section#header :is(.cri-flag, .cri-icon) { display: none; }

/* Footer: the company logo on a white panel (the artwork is made for light backgrounds) */
.site-footer .wordmark { display: inline-flex; padding: 10px 14px; background: var(--white); border-radius: var(--radius-sm); }

/* Our people: the heading belongs with the grid below it, on the same white ground. */
.gh-content--page > .cri-section.cri-our-people-team { background: var(--white); padding-bottom: 0; }
.people-page__team { padding-top: var(--space-5); }

/* Narrow screens: the hero image is a bright photo, so a flat navy tint keeps the lead text at AA contrast
   whatever part of the picture sits behind it. */
@media (max-width: 700px) {
    .page-hero--image::before,
    [dir="rtl"] .page-hero--image::before { background: linear-gradient(180deg, rgb(14 34 51 / .9), rgb(14 34 51 / .8)); }
}

/* Services: one introduction. The hero carries the title and summary; the overview paragraph follows it.
   The generic "Explore our services" block and the overview's repeated heading stay in the editor, hidden here. */
.gh-content--page > .cri-services-intro { display: none; }
.gh-content--page > .cri-services-overview > h3:first-child { display: none; }
.gh-content--page > .cri-services-overview > p { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); max-width: var(--container-text); }
/* Layout for the pieces that follow the old site's structure: grouped main menu, grouped footer menu, LinkedIn link,
   locations label on the home hero, team bios, author photos, contact "Get in Touch" band. */

/* Main menu groups (partials/site-header.hbs, assets/js/30-nav-groups.js) */
.site-nav li { position: relative; }
.nav-group__toggle {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 12px;
    border: 0; border-radius: var(--radius-sm);
    background: none; color: var(--text);
    font: inherit; font-size: .975rem; font-weight: 500;
    cursor: pointer;
}
.nav-group__toggle:hover { background: var(--paper); color: var(--ink); }
.nav-group__toggle .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-group.is-open > .nav-group__toggle .icon { transform: rotate(180deg); }
.nav-group.has-current > .nav-group__toggle { color: var(--brand-strong); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.site-nav .nav-group__list { display: none; flex-direction: column; gap: 0; }
.nav-group.is-open > .nav-group__list { display: flex; }
html:not(.js) .nav-group__list { display: flex; }

@media (min-width: 1081px) {
    .site-nav .nav-group__list {
        position: absolute; top: 100%; inset-inline-start: 0; z-index: 110;
        min-width: 200px; padding: var(--space-2);
        background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow-hover);
    }
    .site-nav .nav-group__list a { white-space: nowrap; }
    .nav-group:hover > .nav-group__list,
    .nav-group:focus-within > .nav-group__list { display: flex; }
    html:not(.js) .nav-group__list { display: none; }
    html:not(.js) .nav-group:hover > .nav-group__list,
    html:not(.js) .nav-group:focus-within > .nav-group__list { display: flex; }
}
@media (max-width: 1080px) {
    .js .nav-group__toggle { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .js .site-nav .nav-group__list { padding-inline-start: var(--space-4); }
}

/* Footer menu: six groups, then the LinkedIn link under the logo */
@media (min-width: 900px) {
    .site-footer__top.site-footer__top--menu { grid-template-columns: minmax(180px, .8fr) 4fr; }
}
.site-footer__menu { display: grid; gap: var(--space-6) var(--space-5); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.site-footer__group h2 { margin-bottom: var(--space-3); }
.site-footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.site-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / .22); border-radius: 50%; }
.site-footer__social .icon { width: 20px; height: 20px; }

/* Home hero: "Our locations" label above the flag chips */
.flag-chips__label { margin: var(--space-6) 0 0; color: #B7C8D5; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.flag-chips__label + .flag-chips { margin-top: var(--space-2); }

/* Home: latest insights, first card wide */
.home-insights .section-head { margin-inline: auto; text-align: center; }

/* Our people: each member with the full bio */
.person-card--bio { text-align: start; align-items: stretch; }
.person-card--bio .person-card__avatar { justify-content: center; }
.person-card--bio .card__body { align-items: stretch; }
.person-card__role { margin: 0; color: var(--brand-strong); font-size: var(--fs-small); font-weight: 600; }
.person-card__bio { margin-top: var(--space-3); color: var(--text); font-size: .9375rem; line-height: 1.6; }
.person-card__bio > :first-child { margin-top: 0; }
.person-card__bio > :last-child { margin-bottom: 0; }

/* Insight byline: author photos and "By A & B" */
.byline--photos { display: flex; align-items: center; gap: var(--space-3); }
.byline__photos { display: inline-flex; }
.byline__photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center top; border: 2px solid var(--white); }
.byline__photo + .byline__photo { margin-inline-start: -10px; }
.byline__text strong { color: var(--white); font-weight: 600; }

/* Contact: "Get in Touch" */
.contact-touch { padding-block: var(--space-8); background: var(--paper); text-align: center; }
.contact-touch h2 { margin-bottom: var(--space-3); }
.contact-touch p { max-width: 62ch; margin: 0 auto; }

/* 404: one button */
.error-hero .btn { margin-top: var(--space-5); }
/* Listing pages and archives: services, assets, reports, team, insights, channels, tags, authors, errors */

/* Section scaffolding */
.listing + .listing { border-top: 1px solid var(--line); }
.listing-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2) var(--space-5);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--line);
}
.listing-head__title { display: inline-flex; align-items: center; gap: var(--space-3); margin: 0; }
.listing-head__flag { display: inline-flex; }
.listing-sub + .listing-sub { margin-top: var(--space-7); }
.listing-sub__title { font-size: var(--fs-h3); margin-bottom: var(--space-5); }
/* Group headings link to the matching service list. */
.listing-head__title a,
.listing-sub__title a { display: inline-flex; align-items: center; gap: var(--space-3); color: inherit; text-decoration: none; }
.listing-head__title a:hover,
.listing-sub__title a:hover { text-decoration: underline; text-underline-offset: .2em; }
.listing-note { color: var(--muted); max-width: 60ch; }

/* Card grids */
.listing-grid { list-style: none; margin: 0; padding: 0; }
.listing-grid > li { display: flex; min-width: 0; }
.listing-grid > li[hidden] { display: none; }
.listing-grid > li > .card { flex: 1; }

/* Compact grid: a short media strip, title and excerpt only */
.listing-grid--compact .card__media { aspect-ratio: auto; height: 88px; }
.listing-grid--compact .cover { padding: var(--space-4); }
.listing-grid--compact .cover__icon { width: 32px; height: 32px; }
.listing-grid--compact .cover__label { top: var(--space-3); inset-inline-end: var(--space-4); }
.listing-grid--compact .card__body { padding: var(--space-4) var(--space-5) var(--space-5); }
.listing-grid--compact .card:not(:has(.card__media)) .card__body { padding-top: var(--space-5); }
.listing-grid--compact .card__title { font-size: 1.1875rem; }
.listing-grid--compact .card__excerpt { -webkit-line-clamp: 3; font-size: .9375rem; }

/* Featured first card (page 1 of the insights index) */
.listing-grid--featured > li:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
    .listing-grid--featured > li:first-child .card { flex-direction: row; }
    .listing-grid--featured > li:first-child .card__media { flex: 1.25 1 0; min-width: 0; aspect-ratio: auto; min-height: 340px; }
    .listing-grid--featured > li:first-child .card__body { flex: 1 1 0; justify-content: center; gap: var(--space-3); padding: var(--space-7); }
    .listing-grid--featured > li:first-child .card__title { font-size: var(--fs-h2); line-height: 1.15; }
    .listing-grid--featured > li:first-child .card__excerpt { -webkit-line-clamp: 5; font-size: 1.0625rem; }
    .listing-grid--featured > li:first-child .card__meta { margin-top: var(--space-3); }
}

/* Location switcher (service channels) */
.location-switch { background: var(--white); border-bottom: 1px solid var(--line); }
.location-switch__inner { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-7); padding-block: var(--space-4); }
.location-switch__group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.location-switch__flag { display: inline-flex; margin-inline-end: var(--space-1); }
.location-switch .flag { width: auto; height: 19px; }
.location-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 16px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--text);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.location-switch a:hover { border-color: var(--brand); color: var(--ink); }
.location-switch a[aria-current="page"] { background: var(--brand-soft); border-color: var(--brand-strong); color: var(--ink); font-weight: 650; }
.location-switch a:focus-visible { border-radius: 999px; }

/* Assets for sale: filter chips */
.asset-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3) var(--space-5);
    margin-bottom: var(--space-6);
}
.asset-filter[hidden] { display: none; }
.asset-filter__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.asset-filter__status { margin: 0; color: var(--muted); font-size: var(--fs-small); }
/* Narrow screens: the chips scroll sideways in one row instead of wrapping onto five. The end fades out;
   the padding lets the last chip clear the fade. */
@media (max-width: 600px) {
    .asset-filter__chips {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        padding-inline-end: 24px;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    }
    [dir="rtl"] .asset-filter__chips {
        -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent);
        mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent);
    }
    .asset-filter__chips::-webkit-scrollbar { display: none; }
    .asset-filter__chips .chip { flex: none; }
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 6px 16px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--white); }
.chip[aria-pressed="true"]::before { content: "\2713"; content: "\2713" / ""; font-size: .8125rem; font-weight: 700; }
.asset-item--sold .card__media { filter: grayscale(.65); }

/* Reports list: date, title, teaser and a Download link per row */
.report-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.report-row {
    display: block;
    padding: var(--space-5) var(--space-3);
    border-bottom: 1px solid var(--line);
}
.report-row__body { min-width: 0; }
.report-row__date { margin: 0; color: var(--muted); font-size: .875rem; }
.report-row__title { margin: var(--space-1) 0 0; font-size: 1.1875rem; line-height: 1.3; }
.report-row__teaser { margin: var(--space-2) 0 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.report-row__teaser > :first-child { margin-top: 0; }
.report-row__teaser > :last-child { margin-bottom: 0; }
.report-row__teaser .cri-download { margin: var(--space-3) 0 0; }
.report-row__action { margin: var(--space-4) 0 0; }
.report-row__action:empty { display: none; }

/* Asset cards: image with the SOLD badge, title, reference and category */
.card--asset .card__ref { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.card--asset .card__ref[hidden] { display: none; }
.card--asset .card__category {
    margin: auto 0 0;
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.card--asset .card__category-sub { font-weight: 400; letter-spacing: 0; text-transform: none; }
.related-assets .section-head { margin-bottom: var(--space-6); }

/* Our people: the team grid sits between the "team" and "careers" sections of the page content */
.person-card { text-align: center; align-items: center; padding-top: var(--space-6); }
.person-card__avatar { display: flex; justify-content: center; }
.person-card .avatar { width: 128px; height: 128px; }
.person-card .avatar img { object-position: center top; }
.person-card .avatar .icon { width: 48px; height: 48px; }
.person-card .card__body { align-items: center; padding: var(--space-4) var(--space-5) var(--space-6); }
.person-card .card__excerpt { -webkit-line-clamp: 3; }

/* Author archive */
.author-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4) var(--space-5);
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.author-card .avatar { width: 72px; height: 72px; }
.author-card__body { flex: 1 1 240px; min-width: 0; }
.author-card__name { margin: 0; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.author-card__role { margin: 0; color: var(--muted); font-size: var(--fs-small); }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
}
.pagination__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 8px 18px;
    border: 1.5px solid var(--brand-strong);
    border-radius: var(--radius);
    color: var(--brand-strong);
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.pagination__link:hover { background: var(--brand-soft); color: var(--ink); }
.pagination__link .icon { width: 18px; height: 18px; }
.pagination__flip { transform: scaleX(-1); }
.pagination__gap { min-width: 1px; }
.pagination__status { margin: 0; color: var(--muted); font-size: var(--fs-small); text-align: center; }

/* Error pages */
.error-hero .error-code { margin-bottom: var(--space-2); }
.error-message { margin: var(--space-4) 0 0; color: var(--brand-on-dark); font-size: var(--fs-small); }
.error-links__grid { gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.error-link {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    height: 100%;
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.error-link:hover { box-shadow: var(--shadow-hover); border-color: var(--brand); color: var(--ink); }
.error-link .icon { width: 26px; height: 26px; margin-top: 2px; color: var(--brand-strong); }
.error-link strong { display: block; font-family: var(--font-serif); font-size: 1.1875rem; font-weight: 600; }
.error-link small { display: block; margin-top: var(--space-1); color: var(--muted); line-height: 1.4; }

@media (max-width: 600px) {
    .listing-head { margin-bottom: var(--space-5); }
    .pagination__status { order: 3; flex-basis: 100%; }
    .report-row { padding-inline: var(--space-2); }
}

/* Theme blocks moved into page content by data-after-section span the full content grid */
.gh-content > [data-after-section] { grid-column: full-start / full-end; }
/* Interface languages: Greek and Arabic fonts, language switcher, right-to-left layout.
   Fonts are self-hosted (SIL OFL, see licenses/) and load only when their glyphs appear on the page. */

/* Greek subsets, same families as the Latin files in 00-tokens.css */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-greek-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("../fonts/source-serif-4-greek-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* Arabic */
@font-face {
    font-family: "IBM Plex Sans Arabic";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
    font-family: "IBM Plex Sans Arabic";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* Arabic text uses the Arabic sans for body and headings. Elements in another language (content kept in
   English, the EN and ΕΛ switcher buttons) go back to the default stacks. Latin and Greek fall through to
   Inter, whose subsets are declared by unicode-range. */
:lang(ar) {
    --font-serif: var(--stack-arabic);
    --font-sans: var(--stack-arabic);
}
[lang]:not(:lang(ar)) {
    --font-serif: var(--stack-serif);
    --font-sans: var(--stack-sans);
}
/* Letter spacing breaks the joined Arabic letterforms. */
:lang(ar) { letter-spacing: 0 !important; }
body:lang(ar) { line-height: 1.85; font-feature-settings: normal; }
:is(h1, h2, h3, h4):lang(ar) { line-height: 1.4; font-weight: 600; }
.lead:lang(ar), .page-hero__lead:lang(ar) { line-height: 1.7; }

/* Avoid a flash of English while a stored language is being applied (the head script clears the class
   after at most 1.5 seconds). */
.i18n-pending [data-i18n],
.i18n-pending [data-i18n-nav],
.i18n-pending [data-i18n-page-body],
.i18n-pending [data-i18n-page-title],
.i18n-pending time[datetime] { visibility: hidden; }

/* Language switcher (partials/lang-switch.hbs). Order stays EN, ΕΛ, عربي in every language. */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    direction: ltr;
}
.lang-switch button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch button:hover { background: var(--paper); color: var(--ink); }
/* The current language is filled, underlined and announced through aria-pressed: not colour alone. */
.lang-switch button[aria-pressed="true"] {
    background: var(--brand-strong);
    color: var(--white);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}
.lang-switch button:focus-visible { border-radius: 999px; }
@media (forced-colors: active) {
    .lang-switch button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
html:not(.js) .lang-switch { display: none; }

/* Desktop: sits in the header before the Contact button. Mobile: at the bottom of the menu panel. */
.lang-switch--header { flex: none; }
.lang-switch--menu { display: none; }
@media (max-width: 1080px) {
    .js .lang-switch--header { display: none; }
    .js .site-nav .lang-switch--menu { display: flex; margin-top: var(--space-4); }
    .js .site-nav .lang-switch--menu button { flex: 1 1 0; }
}

/* ---------------------------------------------------------------------------
   Right to left
   Layout mirrors through logical properties (see the other files). What follows covers what logical
   properties cannot: directional icons, hover nudges and a few fixed-direction elements.
   --------------------------------------------------------------------------- */
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
[dir="rtl"] .icon:has(use[href="#i-arrow-right"]),
[dir="rtl"] .icon:has(use[href="#i-chevron-right"]),
[dir="rtl"] .icon:has(use[href="#i-arrow-up-right"]) { transform: scaleX(-1); }

/* Hover nudges move in the direction the arrow points. */
[dir="rtl"] .link-arrow:hover .icon:has(use[href="#i-arrow-right"]) { transform: scaleX(-1) translateX(3px); }

/* Arrows that already point back (flipped in LTR) point to the right in RTL, which is back. */
html[dir="rtl"] .icon.icon--flip,
html[dir="rtl"] .icon.pagination__flip { transform: none; }
html[dir="rtl"] .link-arrow:hover .icon.icon--flip { transform: translateX(3px); }

/* Current item marker of the mobile menu sits on the start edge. */
@media (max-width: 1080px) {
    html.js[dir="rtl"] .site-nav .nav-current a,
    html.js[dir="rtl"] .site-nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--brand); }
}

/* The brand mark reads "CRI Consulting" left to right in every language. */
[dir="rtl"] .wordmark { flex-direction: row-reverse; }

/* Breadcrumb separator leans with the reading direction. */
[dir="rtl"] .breadcrumbs li + li::before { content: "\\"; }

/* Keep the focus ring of a switcher button above its pressed neighbour. */
.lang-switch button:focus-visible { position: relative; z-index: 1; }

/* English titles and excerpts inside Arabic pages align with the right-hand edge; CMS body text stays left.
   People cards keep their centred layout. */
html[dir="rtl"] .i18n-keep:not(.gh-content, figcaption, .person-card *) { text-align: right; }

/* Desktop: the language switcher lives in a slim utility bar above the header, so the main row keeps its room. */
.site-topbar { background: var(--paper); border-bottom: 1px solid var(--line); font-size: .875rem; }
.site-topbar__inner { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-4); min-height: 40px; }
.site-topbar__label { color: var(--muted); }
.site-topbar .lang-switch button { min-height: 32px; min-width: 40px; padding-block: 4px; }
@media (max-width: 1080px) { .js .site-topbar { display: none; } }
/* With the utility bar the sticky header is 41px taller on desktop; offsets below it follow --header-h. */
@media (min-width: 1081px) { :root.i18n-on { --header-h: 113px; } }

/* Arrows drawn with CSS masks point the other way in RTL, and their hover nudge follows. */
[dir="rtl"] :is(.cri-service-links, .cri-related) a::after,
[dir="rtl"] .cri-office-address a[target="_blank"]::after { transform: scaleX(-1); }
[dir="rtl"] :is(.cri-service-links, .cri-related) a:hover::after { transform: scaleX(-1) translateX(4px); }

/* Arabic typography: larger labels, open line spacing on the about intro quote, and
   600 where only the 400 and 600 faces exist. */
.kicker:lang(ar), .site-footer h2:lang(ar) { font-size: .9375rem; }
.gh-content--about .cri-about-us-intro h3:lang(ar) { line-height: 1.6; font-weight: 600; }
:lang(ar) .site-nav a { font-weight: 600; }

