﻿:root {
    /* Typography system (NOEXP-328) - two families, one source of truth.
       Body/UI = Inter; headings/display/logo = Ubuntu (matches the logo).
       Referenced by MudBlazor (AppTheme.cs), Bootstrap/Identity pages and the
       cookie-consent banner so every surface shares the same type. */
    --app-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --app-font-family-heading: 'Ubuntu', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

    /* Point Bootstrap's font stack (used by Identity/Account pages, .btn, .card,
       .form-control) at the same body font so those pages match the rest of the
       app. Loaded after bootstrap.min.css, so this wins. Bootstrap headings pick
       up Ubuntu from the global h1-h6 rule below. */
    --bs-font-sans-serif: var(--app-font-family);
    --bs-body-font-family: var(--app-font-family);

    color-scheme: light;
    --app-bg: #f5f7fb; /* ghost-white */
    --app-surface: #ffffff; /* white */
    --app-surface-elevated: rgba(255, 255, 255, 0.95);
    --app-text: #1a1d2e; /* midnight-navy */
    --app-text-muted: #5f6675; /* slate-gray */
    --app-border: #d9dfef; /* pale-blue-gray */
    --app-border-soft: rgba(0, 0, 0, 0.08);

    --app-accent: #455dff; /* royal-blue (= MudBlazor Primary) */
    --app-accent-hover: #3a4fd9; /* cobalt-blue (= Primary darken) */
    --app-link-hover: #3a4fd9; /* cobalt-blue - text links; --app-accent-hover is also a button background */

    --app-hover-bg: rgba(34, 52, 117, 0.06);
    --app-hover-bg-strong: rgba(34, 52, 117, 0.12);
    --app-avatar-border: rgba(255, 255, 255, 0.92);

    --app-feature-primary: #e8edf4;
    --app-feature-primary-dark: #dce3ec;
    --app-feature-primary-light: #f4f7fb;
    --app-feature-primary-rgb: 156, 163, 175;
    --app-feature-gradient: linear-gradient(135deg, var(--app-surface) 0%, var(--app-bg) 100%);
    --app-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --app-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
    --app-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
    --app-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.18);
    --app-team-role: var(--app-text-muted);
    --app-about-link-bg: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
    --app-about-link-border: color-mix(in srgb, var(--mud-palette-primary) 35%, var(--app-border));
    --app-about-link-color: var(--mud-palette-primary);
    --app-about-link-shadow: none;
    --app-about-link-hover-bg: color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
    --app-about-link-hover-border: var(--app-about-link-border);
    --app-about-link-hover-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    --app-pagination-hover: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    --app-pagination-outline: color-mix(in srgb, var(--app-border) 82%, transparent);

    --bs-body-bg: var(--app-bg);
    --bs-body-color: var(--app-text);
    --bs-secondary-color: var(--app-text-muted);
    --bs-border-color: var(--app-border);

    --app-status-valid: #26b050; /* emerald-green */
    --app-status-invalid: #e50000; /* vivid-red */

    /* Unified card style (NOEXP-286) - one source of truth for every card/panel.
       Built on the data-theme-aware tokens below, so these adapt automatically. */
    --app-card-bg: var(--app-surface);
    --app-card-border-color: var(--app-border);
    --app-card-radius: 12px;
    --app-card-shadow: var(--app-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));

    /* Controls - buttons and anything shaped like one. MudBlazor's own buttons round to 4px, so
       this names the value the site already uses rather than introducing a second one. A control
       that rounds to 50% reads as a different family from the button beside it, which is what the
       circular social links did next to a 4px button in the same row. */
    --app-control-radius: 4px;

    /* For a control that floats on the page rather than sitting on a card: the rail's tiles, its
       flyout labels and the menus they open. --app-card-border-color is tuned for card-on-card
       and measures about 1.2:1 over the page background, well under the 3:1 a control boundary
       needs, which is what made the rail's tiles read as decoration. Mixed from the text colour
       so it clears 3:1 in both themes while staying quieter than a text-weight line. */
    --rail-tile-border: color-mix(in srgb, var(--mud-palette-text-secondary) 80%, transparent);
}

/* ===========================================================================
   Content sections (ContentSection.razor)

   What is left of the old shared content-page layout. The hero band, its gradient, its drifting
   blobs and its 70rem centred container are gone - PageShell and the identity rail do that job
   now, and they do it the same way on every page instead of only on the eight that used this
   component.

   Global rather than scoped: a caller's ChildContent carries the caller's scope id, so scoped
   rules would need ::deep for everything passed in.
   =========================================================================== */
.page-shell {
    --content-page-bg: var(--app-bg, var(--mud-palette-background, #f5f7fb));
    --content-page-surface: var(--app-surface, var(--mud-palette-surface, #fff));
    --content-page-text: var(--app-text, var(--mud-palette-text-primary, #1a1d2e));
    --content-page-gradient: var(--app-feature-gradient,
        linear-gradient(135deg, var(--content-page-surface) 0%, var(--content-page-bg) 100%));
}

.content-page-section + .content-page-section {
    margin-top: 3.5rem;
}

/* Left-aligned, not centred. The headers were centred because they sat under a centred hero in a
   centred container; in a left-aligned reading column a centred heading reads as a stray. */
.content-page-section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.content-page-section-title {
    color: var(--content-page-text) !important;
    font-weight: 800 !important;
    font-size: 1.75rem !important;
    letter-spacing: -0.02em !important;
}

.content-page-section-line {
    position: relative;
    overflow: hidden;
    width: min(100%, 7rem);
    height: 4px;
    border-radius: 2px;
    background: var(--content-page-gradient);
}

.content-page-section-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}


/* Partner logos ship as two files: the marks are multi-colour, so currentColor cannot derive
   a variant. These rules pick the file matching the active theme. They live here rather than
   in scoped CSS because the job cards and the partner pages are separate components and both
   need them. Light is the default, so it renders when no data-theme is set. */
.partner-logo-light {
    display: block;
}

.partner-logo-dark {
    display: none;
}

html[data-theme='dark'] .partner-logo-light {
    display: none;
}

html[data-theme='dark'] .partner-logo-dark {
    display: block;
}

/* Partner logo at page scale. Sized by a box rather than a ratio, because partners' lockups are
   not the same shape: a wide wordmark (7:1) and a lion stacked over a wordmark (1.45:1) both have
   to look deliberate here. Capping both axes lets the wide one run to the width limit and the
   tall one to the height limit, and each file's width/height attributes still reserve the box, so
   the heading below does not shift when the image arrives. */
/* An employer's logo in its page's identity rail (NOEXP-202). Logos come from the sources as they
   are - transparent, white-on-white, any shape - so they sit on the surface colour inside a border,
   as on the offer cards, instead of straight on the rail. */
.employer-identity-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    height: 96px;
    margin: 0 auto 1rem;
    padding: 12px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 8px;
    background: var(--mud-palette-surface);
}

.employer-identity-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.partner-page-logo-img {
    max-height: 72px;
    max-width: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Social links on a partner page: icon-only buttons rather than labelled ones, so four
   platforms read as a row of marks instead of competing with the primary CTA beside them.
   The accessible name lives on the anchor's aria-label. */
.partner-socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--app-card-border-color, var(--mud-palette-divider));
    border-radius: var(--app-control-radius);
    color: var(--mud-palette-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.partner-social-link:hover {
    color: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* The data-theme attribute is set synchronously in App.razor, before this file is
   requested, so the browser can paint the persisted theme on its first frame. */
html[data-theme='dark'] {
    color-scheme: dark;
    --app-bg: #0f1422; /* deep-navy */
    --app-surface: #1a2238; /* charcoal-navy */
    --app-surface-elevated: rgba(26, 34, 56, 0.95);
    --app-text: #e6eaf7; /* ice-blue */
    --app-text-muted: #a5afc6; /* cool-gray-blue */
    --app-border: #303c5b; /* steel-navy */
    --app-border-soft: rgba(255, 255, 255, 0.12);

    --app-accent: #6b7fff; /* periwinkle-blue (= MudBlazor Primary, dark) */
    --app-accent-hover: #4d62ff; /* bright-blue (= Primary darken, dark) */
    --app-link-hover: #8fa1ff; /* light-periwinkle (= Primary lighten, dark): #4d62ff as text is 3.4:1 on the surface */

    --app-hover-bg: rgba(133, 153, 255, 0.12);
    --app-hover-bg-strong: rgba(133, 153, 255, 0.2);
    --app-avatar-border: rgba(166, 180, 255, 0.45);

    --app-feature-primary: #5f6f98;
    --app-feature-primary-dark: #4e5d81;
    --app-feature-primary-light: #7585ad;
    --app-feature-primary-rgb: 95, 111, 152;
    --app-feature-gradient: linear-gradient(
        135deg,
        color-mix(in srgb, var(--app-surface) 86%, var(--app-feature-primary) 14%) 0%,
        color-mix(in srgb, var(--app-surface) 72%, var(--app-feature-primary-dark) 28%) 100%
    );
    --app-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
    --app-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.34);
    --app-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.42);
    --app-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.5);
    --app-team-role: var(--app-feature-primary);
    --app-about-link-bg: rgba(15, 20, 34, 0.82);
    --app-about-link-border: rgba(230, 234, 247, 0.38);
    --app-about-link-color: #e6eaf7;
    --app-about-link-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    --app-about-link-hover-bg: rgba(15, 20, 34, 0.94);
    --app-about-link-hover-border: rgba(230, 234, 247, 0.55);
    --app-about-link-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
    --app-pagination-hover: color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
    --app-pagination-outline: color-mix(in srgb, var(--app-border) 96%, transparent);

    --bs-body-bg: var(--app-bg);
    --bs-body-color: var(--app-text);
    --bs-secondary-color: var(--app-text-muted);
    --bs-border-color: var(--app-border);

    /* These values mirror AppTheme.PaletteDark. The more specific selector wins
       over MudThemeProvider's prerendered light :root values on the first paint. */
    --mud-palette-primary: #6b7fff;
    --mud-palette-primary-rgb: 107, 127, 255;
    --mud-palette-primary-darken: #4d62ff;
    --mud-palette-primary-lighten: #8fa1ff;
    --mud-palette-appbar-background: #121829;
    --mud-palette-background: #0f1422;
    --mud-palette-surface: #1a2238;
    --mud-palette-drawer-background: #141b2f;
    --mud-palette-drawer-text: #e6eaf7;
    --mud-palette-text-primary: #e6eaf7;
    --mud-palette-text-secondary: #a5afc6;
    --mud-palette-lines-default: #303c5b;
    --mud-palette-lines-inputs: #303c5b;
    --mud-palette-divider: #303c5b;
    --mud-palette-divider-light: #303c5b;
    --mud-palette-table-lines: #303c5b;
}

* {
    box-sizing: border-box;
}

body,
button,
input,
textarea,
select {
    font-family: var(--app-font-family);
}

/* Headings use the display family (Ubuntu). Covers raw HTML headings on razor
   and Bootstrap/Identity pages; MudBlazor components get the same family via
   Typography in AppTheme.cs. */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--app-font-family-heading);
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--app-bg);
    color: var(--app-text);
}

a,
.btn-link {
    color: var(--mud-palette-primary);
}

.btn-primary {
    color: #fff; /* white */
    background-color: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary-darken);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--app-surface), 0 0 0 0.25rem rgba(69, 93, 255, 0.3);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--app-status-valid);
}

.invalid {
    outline: 1px solid var(--app-status-invalid);
}

.validation-message {
    color: var(--app-status-invalid);
}

.blazor-error-boundary {
    background-color: #b32121; /* dark-red */
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    position: relative;
}

.blazor-error-boundary::before {
    content: "\e002";
    font-family: 'Material Icons Outlined';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: #ffe500; /* bright-yellow */
}

.darker-border-checkbox.form-check-input {
    border-color: #929292; /* medium-gray */
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.ql-container {
    min-height: 50px;
    max-height: 300px;
}

/* ===========================
   Unified card style (NOEXP-286)
   Every card/panel shares one background, border, corner radius and
   shadow, in light and dark themes.
   .content          -> public + identity pages (MainLayout)
   .mud-main-content -> admin pages (AdminLayout)
   Generic MudBlazor overlays (select/autocomplete popovers, dialogs,
   snackbars) render outside both scopes and keep their own styling.
   =========================== */
.content .mud-card,
.content .app-card,
.content .card,
.mud-main-content .mud-card,
.mud-main-content .app-card,
.mud-main-content .card {
    background-color: var(--app-card-bg);
    border: 1px solid var(--app-card-border-color);
    border-radius: var(--app-card-radius) !important;
    box-shadow: var(--app-card-shadow) !important;
}

/* Keep Bootstrap card sub-sections (header/footer) inside the rounded corners */
.content .card,
.mud-main-content .card {
    overflow: hidden;
}

/* Floating nav menus (theme + documents) - match the logged-in account menu
   popup by using the unified card tokens (NOEXP-329). These MudMenu popovers
   render in the global popover portal. In MudBlazor 9.x the popover element
   itself carries .mud-paper AND the PopoverClass (there is no inner
   .mud-popover-paper), so the card surface IS .floating-nav-popover. */
.floating-nav-popover.mud-popover {
    background-color: var(--app-card-bg) !important;
    /* Same border as the rail's tiles and flyout labels - these menus open beside them and were
       reading as borderless next to them on the card token. */
    border: 1px solid var(--rail-tile-border) !important;
    border-radius: var(--app-card-radius) !important;
    box-shadow: var(--app-card-shadow) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* Beside the rail button rather than flush against it, matching the 0.5rem the flyout
       labels leave. */
    margin-inline-start: 0.5rem;
}

/* ...and match the account menu's items, icons and dividers (the component's
   own ::deep rules don't reach these portal-rendered popovers). Inset the
   rounded items via the list padding so they don't overflow the popover. */
.floating-nav-popover .mud-list {
    padding: 4px 8px;
}

.floating-nav-popover .mud-menu-item {
    margin: 4px 0;
    padding: 10px 16px;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--app-text);
    transition: all 0.2s ease;
}

.floating-nav-popover .mud-menu-item:hover {
    background-color: var(--app-hover-bg-strong) !important;
    transform: translateX(4px);
}

.floating-nav-popover .mud-menu-item-icon {
    color: var(--mud-palette-text-secondary) !important;
}

.floating-nav-popover .mud-divider {
    margin: 8px 12px;
    opacity: 0.6;
}

/* Identity/Account pages */
html[data-account-route='true'] body {
    min-height: 100vh;
    padding: 2rem 1rem 3rem;
    background: var(--app-bg);
    color: var(--app-text);
}

html[data-account-route='true'] h1,
html[data-account-route='true'] h2,
html[data-account-route='true'] h3,
html[data-account-route='true'] h4,
html[data-account-route='true'] h5,
html[data-account-route='true'] h6,
html[data-account-route='true'] p,
html[data-account-route='true'] label,
html[data-account-route='true'] li,
html[data-account-route='true'] span {
    color: var(--app-text);
}

html[data-account-route='true'] a {
    color: var(--mud-palette-primary);
}

html[data-account-route='true'] hr {
    border-color: var(--app-border);
    opacity: 1;
}

html[data-account-route='true'] .row > [class*='col-'] > section,
html[data-account-route='true'] .row > [class*='col-'] > form,
html[data-account-route='true'] .row > [class*='col-'] > div:not(.form-floating):not(.input-group),
html[data-account-route='true'] .account-panel {
    background: var(--app-card-bg);
    border: 1px solid var(--app-card-border-color);
    border-radius: var(--app-card-radius);
    box-shadow: var(--app-card-shadow);
    padding: 1.5rem;
}

html[data-account-route='true'] .form-control,
html[data-account-route='true'] .form-select {
    --account-input-background: var(--app-surface);
    background-color: var(--app-surface);
    color: var(--app-text);
    border-color: var(--app-border);
}

html[data-account-route='true'] .form-control:disabled,
html[data-account-route='true'] .form-select:disabled,
html[data-account-route='true'] .form-control[readonly] {
    --account-input-background: color-mix(in srgb, var(--app-surface) 88%, var(--app-text) 12%);
    background-color: color-mix(in srgb, var(--app-surface) 88%, var(--app-text) 12%) !important;
    color: var(--app-text-muted) !important;
    -webkit-text-fill-color: var(--app-text-muted);
    border-color: var(--app-border);
    opacity: 1;
}

html[data-account-route='true'] .form-control:-webkit-autofill,
html[data-account-route='true'] .form-control:-webkit-autofill:hover,
html[data-account-route='true'] .form-control:-webkit-autofill:focus,
html[data-account-route='true'] .form-control:-webkit-autofill:active {
    background-color: var(--account-input-background) !important;
    -webkit-text-fill-color: var(--app-text) !important;
    caret-color: var(--app-text);
    -webkit-box-shadow: 0 0 0 1000px var(--account-input-background) inset !important;
    box-shadow: 0 0 0 1000px var(--account-input-background) inset !important;
    transition: background-color 9999s ease-out 0s;
}

html[data-account-route='true'] .form-control:disabled:-webkit-autofill,
html[data-account-route='true'] .form-control[readonly]:-webkit-autofill {
    -webkit-text-fill-color: var(--app-text-muted) !important;
}

html[data-account-route='true'] .form-control:focus,
html[data-account-route='true'] .form-select:focus {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 0.2rem rgba(69, 93, 255, 0.25);
}

html[data-account-route='true'] .form-floating > label,
html[data-account-route='true'] .form-check-label {
    color: var(--app-text-muted);
}

html[data-account-route='true'] .form-floating > .form-control:disabled ~ label::after,
html[data-account-route='true'] .form-floating > .form-control[readonly] ~ label::after {
    background-color: color-mix(in srgb, var(--app-surface) 88%, var(--app-text) 12%) !important;
}

html[data-account-route='true'] .input-group-text {
    background-color: var(--app-surface) !important;
    color: var(--app-text);
    border-color: var(--app-border);
}

.account-readonly-field {
    display: flex;
    min-height: 3.65rem;
    overflow: hidden;
    background: color-mix(in srgb, var(--app-surface) 88%, var(--app-text) 12%);
    border: 1px solid var(--app-border);
    border-radius: 0.375rem;
}

.account-readonly-field-content {
    display: flex;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    flex: 1;
    flex-direction: column;
    justify-content: center;
}

html[data-account-route='true'] .account-readonly-field-label {
    color: var(--app-text-muted);
    font-size: 0.85rem;
    line-height: 1.1;
}

html[data-account-route='true'] .account-readonly-field-value {
    margin-top: 0.25rem;
    color: var(--app-text);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

html[data-account-route='true'] .account-email-confirmed-indicator {
    display: grid;
    width: 4.5rem;
    flex: 0 0 auto;
    place-items: center;
    color: color-mix(in srgb, #22c55e 78%, var(--app-text)) !important;
    background: var(--app-surface);
    border-left: 1px solid var(--app-border);
    font-size: 1.75rem;
    font-weight: 700;
}

html[data-account-route='true'] .nav-pills .nav-link {
    color: var(--app-text);
    border: 1px solid transparent;
}

html[data-account-route='true'] .nav-pills .nav-link:hover {
    background-color: var(--app-hover-bg);
    border-color: var(--app-border);
}

html[data-account-route='true'] .nav-pills .nav-link.active,
html[data-account-route='true'] .nav-pills .show > .nav-link {
    background-color: var(--mud-palette-primary);
    color: #fff; /* white */
}

html[data-account-route='true'] .alert {
    border: 1px solid var(--app-border);
}

html[data-account-route='true'] .alert-success {
    background: rgba(46, 204, 113, 0.15);
    color: #9ef0be; /* mint-green */
    border-color: rgba(46, 204, 113, 0.4);
}

html[data-account-route='true'] .alert-danger {
    background: rgba(239, 68, 68, 0.16);
    color: #ffb2b2; /* soft-red */
    border-color: rgba(239, 68, 68, 0.45);
}

/* Shared static-SSR two-factor authentication UI */
.two-factor-page {
    width: 100%;
    margin-inline: auto;
}

.two-factor-page--login {
    max-width: 40rem;
}

.two-factor-page--manage {
    max-width: 52rem;
}

.two-factor-title {
    margin-bottom: 0.5rem;
    text-align: center;
}

.two-factor-page--manage .two-factor-title {
    text-align: start;
}

.two-factor-intro {
    margin: 0 auto 1.25rem;
    color: var(--app-text-muted);
    text-align: center;
}

.two-factor-card {
    padding: 1.5rem;
    background: var(--app-card-bg);
    border: 1px solid var(--app-card-border-color);
    border-radius: var(--app-card-radius);
    box-shadow: var(--app-card-shadow);
}

.two-factor-page .form-floating > label::after {
    background-color: var(--app-surface) !important;
}

.two-factor-page .form-floating > .form-control:focus ~ label {
    color: var(--mud-palette-primary);
    opacity: 1;
}

.two-factor-page .form-floating > .form-control:not(:placeholder-shown):not(:focus) ~ label {
    color: var(--app-text-muted);
    opacity: 1;
}

.two-factor-page .form-floating > .form-control:-webkit-autofill,
.two-factor-page .form-floating > .form-control:-webkit-autofill:hover,
.two-factor-page .form-floating > .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--app-text) !important;
    caret-color: var(--app-text) !important;
    background-color: var(--app-surface) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--app-surface) inset !important;
    box-shadow: 0 0 0 1000px var(--app-surface) inset !important;
    transition: background-color 9999s ease-out 0s;
}

.two-factor-page .form-floating > .form-control:autofill {
    color: var(--app-text) !important;
    caret-color: var(--app-text) !important;
    background-color: var(--app-surface) !important;
    box-shadow: 0 0 0 1000px var(--app-surface) inset !important;
}

.two-factor-page .form-floating > .form-control:-webkit-autofill ~ label,
.two-factor-page .form-floating > .form-control:-webkit-autofill:focus ~ label,
.two-factor-page .form-floating > .form-control:autofill ~ label,
.two-factor-page .form-floating > .form-control:autofill:focus ~ label {
    color: var(--mud-palette-primary);
    opacity: 1;
}

.two-factor-page .form-check-input {
    background-color: var(--app-surface);
    border-color: color-mix(in srgb, var(--app-text) 48%, var(--app-border));
}

.two-factor-page .form-check-input:checked {
    background-color: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
}

.two-factor-page .checkbox label {
    color: var(--app-text-muted);
}

.two-factor-page .text-danger {
    color: color-mix(in srgb, #ef4444 78%, var(--app-text)) !important;
}

html[data-account-route='true'] .two-factor-page a.btn-primary,
html[data-account-route='true'] .two-factor-page a.btn-danger {
    color: #fff;
}

html[data-account-route='true'] .two-factor-page .alert-success {
    color: var(--app-text);
    background: color-mix(in srgb, #2ecc71 12%, var(--app-surface));
    border-color: color-mix(in srgb, #2ecc71 42%, var(--app-border));
}

html[data-account-route='true'] .two-factor-page .alert-warning {
    color: var(--app-text);
    background: color-mix(in srgb, #f59e0b 14%, var(--app-surface));
    border-color: color-mix(in srgb, #f59e0b 48%, var(--app-border));
}

html[data-account-route='true'] .two-factor-page .alert-danger {
    color: var(--app-text);
    background: color-mix(in srgb, #ef4444 12%, var(--app-surface));
    border-color: color-mix(in srgb, #ef4444 45%, var(--app-border));
}

.two-factor-card + .two-factor-card,
.two-factor-card + .two-factor-actions,
.two-factor-actions + .two-factor-card {
    margin-top: 1rem;
}

.two-factor-card > :last-child,
.two-factor-alert > :last-child {
    margin-bottom: 0;
}

.two-factor-form {
    max-width: 32rem;
}

.two-factor-page--login .two-factor-form {
    max-width: none;
}

.two-factor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.two-factor-actions form {
    display: contents;
}

.two-factor-actions .btn {
    min-height: 2.75rem;
}

.two-factor-secondary-link {
    margin: 1rem 0 0;
    text-align: center;
}

.two-factor-alert {
    margin-bottom: 1rem;
}

.two-factor-alert--brown,
html[data-account-route='true'] .two-factor-page .two-factor-alert--brown {
    color: color-mix(in srgb, #f7ead7 90%, var(--app-text));
    background: color-mix(in srgb, #7a4824 72%, var(--app-surface));
    border-color: color-mix(in srgb, #c5864e 68%, var(--app-border));
}

.two-factor-alert--brown a,
html[data-account-route='true'] .two-factor-page .two-factor-alert--brown a {
    color: #ffe2b8;
}

.two-factor-setup-intro {
    margin: 0 0 1rem;
    color: var(--app-text-muted);
}

.two-factor-steps {
    display: grid;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: two-factor-step;
}

.two-factor-steps > li {
    position: relative;
    min-width: 0;
    padding: 1.25rem 1.25rem 1.25rem 4.25rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 14px;
    counter-increment: two-factor-step;
}

.two-factor-steps > li::before {
    content: counter(two-factor-step);
    position: absolute;
    top: 1.1rem;
    left: 1.15rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: #fff;
    background: var(--mud-palette-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0.3rem color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
    font-weight: 700;
}

.two-factor-step > :last-child {
    margin-bottom: 0;
}

.two-factor-pairing {
    display: grid;
    grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}

.two-factor-qr-card {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 34%, var(--app-border));
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(9, 15, 35, 0.16);
}

.two-factor-qr-frame {
    padding: 0.85rem;
    background: #fff;
}

.two-factor-secret {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    color: var(--app-text);
    background: var(--app-hover-bg);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font-size: 1rem;
    overflow-wrap: anywhere;
    user-select: all;
}

.two-factor-qr {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    background: #fff;
}

.two-factor-qr-caption {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.8rem 1rem;
    color: #e6eaf7;
    background: linear-gradient(135deg, #17213b, #273867);
    border-top: 3px solid var(--mud-palette-primary);
}

.two-factor-brand-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    fill: rgba(107, 127, 255, 0.18);
    stroke: #91a0ff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.two-factor-brand {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.1;
}

html[data-account-route='true'] .two-factor-brand strong,
html[data-account-route='true'] .two-factor-brand span {
    color: #fff;
}

.two-factor-brand strong {
    font-size: 1.25rem;
    letter-spacing: -0.04em;
}

html[data-account-route='true'] .two-factor-brand .two-factor-brand-accent {
    color: #91a0ff;
}

.two-factor-brand small {
    margin-top: 0.18rem;
    color: #bfc8e5;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.two-factor-manual-key {
    min-width: 0;
    padding: 1rem;
    background: var(--app-hover-bg);
    border: 1px solid var(--app-border);
    border-radius: 12px;
}

.two-factor-manual-key-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--app-text);
    font-weight: 700;
}

.two-factor-manual-key p {
    margin: 0.75rem 0 0;
    color: var(--app-text-muted);
    font-size: 0.9rem;
}

.two-factor-recovery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.two-factor-recovery-code {
    display: block;
    padding: 0.75rem;
    color: var(--app-text);
    background: var(--app-hover-bg);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    overflow-wrap: anywhere;
    user-select: all;
}

.two-factor-danger-card {
    border-color: rgba(239, 68, 68, 0.45);
}

.two-factor-section-title {
    margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
    .two-factor-card {
        padding: 1rem;
    }

    .two-factor-steps > li {
        padding: 3.8rem 1rem 1rem;
    }

    .two-factor-steps > li::before {
        top: 1rem;
        left: 1rem;
    }

    .two-factor-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .two-factor-actions .btn {
        width: 100%;
    }

    .two-factor-recovery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .two-factor-pairing {
        grid-template-columns: 1fr;
    }

    .two-factor-qr-card {
        max-width: 20rem;
        margin-inline: auto;
    }
}

/* MudMenu content is rendered in the global popover portal, outside the
   navigation component's CSS-isolation scope. Keep floating navigation menus
   inside the mobile viewport and allow long localized labels to wrap. */
@media (max-width: 640.98px) {
    :is(.floating-nav-popover, .floating-nav-popover .mud-popover-paper) {
        max-inline-size: calc(100vw - 30px) !important;
    }

    .floating-nav-popover .mud-list {
        max-inline-size: 100%;
        overflow-x: hidden;
    }

    .floating-nav-popover .mud-list-item-text {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    :is(.job-filter-popover, .job-filter-popover .mud-popover-paper) {
        max-inline-size: none !important;
    }

    .job-filter-popover {
        inset-inline: 1rem !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .job-filter-popover .mud-list,
    .job-filter-popover .mud-list-item {
        max-inline-size: 100%;
        overflow-x: hidden;
    }

    .job-filter-popover .mud-list {
        padding-inline: 0.5rem;
    }

    .job-filter-popover .mud-list-item {
        padding-inline: 0.75rem;
    }

    .job-filter-popover .mud-list-item-text {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* ── Cookie consent banner (BytexDigital) ──────────────────────────────
   The library sets its --cc-color-* vars on .cc-isolation-container with
   !important - a base rule (0,1,0) and a prefers-color-scheme media rule
   `.cc-isolation-container:not(.cc-theme-light)` (0,2,0). Using
   `html[data-theme]` (always present on <html>) gives specificity 0,2,1
   so these mappings win over both. Pointing them at the --app-* tokens
   (which already follow the app's light/dark toggle) makes the banner
   match the NoExp brand and theme automatically - the accent button uses
   the royal-blue Primary, and no external Inter font is needed since we
   reuse the app font. */
html[data-theme] .cc-isolation-container {
    --cc-font-family: var(--app-font-family) !important;
    --cc-color-background: var(--app-surface) !important;
    --cc-color-border: var(--app-border) !important;
    --cc-color-text: var(--app-text) !important;
    --cc-color-link: var(--app-text-muted) !important;
    --cc-color-link-highlight: var(--app-accent) !important;
    --cc-color-accent: var(--app-accent) !important;
    --cc-color-accent-dark: var(--app-accent-hover) !important;
}

/* Above the app's own chrome. The library hardcodes z-index 1000 (the prompt) and 1001 (the
   settings modal) as inline styles, and the rail is 1200 - so on a phone the bottom bar covered
   "Akceptuję wszystkie", and the bar stayed tappable over the modal's backdrop. Inline styles
   are why these need !important.
   1400 is MudBlazor's dialog tier: above the rail (1200), its Wiecej sheet (1260) and the skip
   link (1300). While the prompt is up it covers the bar - lifting it above the bar instead would
   stack both at the bottom of a phone, where the prompt alone already takes half the screen.
   The modal has to stay one above the prompt. The two sit in separate containers with the modal's
   first in the DOM, so a shared z-index would paint the prompt over the modal. */
.cc-isolation-container > .cc-fixed {
    z-index: 1400 !important;
}

.cc-isolation-container > .cc-fixed.cc-h-screen {
    z-index: 1401 !important;
}

/* ===========================================================================
   Job offer card (JobAdCard.razor)
   Global rather than scoped because the component's root element is a MudCard - a child
   component, which Blazor does not stamp with this component's scope id - so a scoped sheet
   would have no plain-HTML ancestor for ::deep to anchor to. Moved out of
   ListJobAd.razor.css when the card became shared with the partner pages (NOEXP-428).

   Every descendant rule is anchored on .job-card. That is not decoration: these rules used to
   sit behind ".job-listings-content ::deep", and dropping that prefix cost a class of
   specificity, which let MudBlazor's own .mud-card-content / .mud-grid-item rules win the ties
   and silently undid the reserved badge padding, the clamped mobile title and the side-by-side
   logo row.

   The --listing-* values are restated on .job-card so the card carries its own colours on pages
   other than the board; they match the declarations on .job-board below, which that page's own
   filter panel and partner rail still read.
   =========================================================================== */
.job-card {
    --listing-entry-bg: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, var(--mud-palette-surface) 100%);
    --listing-entry-border: #4caf50; /* green */
    --listing-entry-badge-bg: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); /* green -> forest-green */
    --listing-promoted-badge-bg: linear-gradient(135deg, #ffd600 0%, #f9a825 100%); /* gold -> amber */
    --listing-promoted-badge-text: #5d4037; /* cocoa-brown */
}

/* The open-in-new icon inside the partner pill. The pill replaced a badge that carried this
   icon, and without it the logo reads as a passive label rather than "this opens elsewhere". */
.job-card .partner-source-badge-icon {
    margin-left: 6px;
    font-size: 0.85rem !important;
    color: var(--mud-palette-text-secondary);
}
.job-card {
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

/* The offer link is the card's title, so the offer's name is its anchor text (NOEXP-490). It
   reads as the plain title it replaced; its ::after stretches the click area over the whole card,
   as the empty overlay link before it did. The card is the nearest positioned ancestor, and the
   title's own overflow: hidden (the two-line clamp on phones) does not clip it for that reason. */
.job-card .job-card-external-link {
    color: inherit;
    text-decoration: none;
}

.job-card .job-card-external-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: var(--app-card-radius);
}

/* The focus ring goes round the card - the link's real target - not round the title text. */
.job-card .job-card-external-link:focus-visible {
    outline: none;
}

.job-card .job-card-external-link:focus-visible::after {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* A closed offer (NOEXP-498): still listed, after every open one, but greyed out and no longer a
   link. Dimmed with opacity rather than recoloured, so it reads the same in both themes; the logo
   goes grey as well, because a coloured logo at 55% still looks live. The company link keeps
   working - that page lists the employer's open offers. */
.job-card.job-card--closed .mud-card-content,
.job-card.job-card--closed .job-badges-container {
    opacity: 0.55;
}

.job-card.job-card--closed img {
    filter: grayscale(1);
}

.job-card .job-card-closed-label {
    color: var(--mud-palette-text-secondary);
    font-weight: 500;
}

/* The company name opens the employer's page (NOEXP-202). Lifted above the card-wide offer link
   (z-index 3) the same way the source label is, or the click would open the offer. Underlined at
   rest because a touch screen has no hover to reveal a link. A 24px tall target (WCAG 2.5.8), with
   a negative margin so the meta row stays as tall as it was: an inline link on caption text is
   only ~21px. */
.job-card .job-card-employer-link {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-block: -2px;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
    text-underline-offset: 0.2em;
}

@media (hover: hover) {
    .job-card .job-card-employer-link:hover {
        color: var(--app-accent, var(--mud-palette-primary));
        text-decoration-color: currentColor;
    }
}

.job-card .job-card-employer-link:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* .mud-card-content is doubled in the selector to clear MudBlazor's own
   .mud-card-content.mud-card-content-padding, which is also two classes and whose sheet loads
   after this one - so an equal-specificity rule here would lose the tie and the badges would
   overlap the text. The scoped version of this rule got the extra weight for free from the
   ::deep attribute selector. */
.job-card .mud-card-content.job-card-content-with-badges {
    padding-right: 110px;
}

.job-card .company-logo-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 8px;
    background: var(--mud-palette-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
}

.job-card .company-logo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Entry-Level Job Card Background */
.job-card.internship-card {
    background: var(--listing-entry-bg, linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%)) !important; /* mint-cream -> white */
    border-left: 4px solid var(--listing-entry-border, #4caf50) !important; /* green */
}

/* Badge container - anchored top-right, badges stack vertically */
.job-card .job-badges-container {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    z-index: 2;
}

/* Entry-Level Badge Style */
.job-card .entry-level-badge {
    padding: 4px 10px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: var(--listing-entry-badge-bg, linear-gradient(135deg, #4caf50 0%, #388e3c 100%)); /* green -> forest-green */
    color: #fff; /* white */
}

/* Partner source badge - shown instead of the text label where we fetched the ad from a
   partner's own API and are allowed to use their mark (NOEXP-428). The pill keeps the geometry
   of .entry-level-badge so a mixed listing stays on one visual grid; only the fill differs,
   because a multi-colour logo needs a neutral ground rather than the green gradient. */
.job-card .partner-source-badge {
    display: flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border: 1px solid var(--app-card-border-color, var(--mud-palette-divider));
    border-radius: 16px;
    background: var(--app-card-bg, var(--mud-palette-surface));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Badge-scale sizing only. The light/dark swap lives in app.css: setting `display` here too
   would out-specify it (scoped selectors gain an attribute) and show both files at once.
   The ratio is no longer stated here: each file's real dimensions are rendered as width/height
   attributes, so the browser reserves the box before the image arrives and a lazily-loaded logo
   does not widen the pill under the reader. Hard-coding 7/1 assumed every partner's mark had the
   proportions of the first one, and squashed the second. Badge files are trimmed to their ink so
   this padding does the spacing, which is what keeps a mixed listing on one optical grid. */
.job-card .partner-source-logo {
    height: calc(14px * var(--partner-badge-scale, 1));
    width: auto;
    max-width: 130px;
    object-fit: contain;
}

/* Source label a licence requires on every ad (NOEXP-414, NOEXP-529, SourceAttributions), drawn as
   the same chip as .partner-source-badge - neutral pill, the source's logo, the open-in-new icon -
   so Adzuna reads like every other portal on the board. Adzuna's terms: "label each displayed
   advert with the phrase "Adzuna" at least 116 X 23 pixels in size, wherein the word "Adzuna"
   shall be hyperlinked". We read that as the size of the label, which is this chip, so it is at
   least 116 x 24 and, unlike the partner chip, the mobile rules below do not shrink it. The
   logo alone is not 116 x 23; a logo that size was tried (PR #182) and was far too big. */
.job-card .source-attribution-badge {
    position: relative;
    z-index: 4;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 116px;
    height: 24px;
    padding: 0 10px;
    border: 1px solid var(--app-card-border-color, var(--mud-palette-divider));
    border-radius: 16px;
    background: var(--app-card-bg, var(--mud-palette-surface));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.job-card .source-attribution-badge:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* 16px matches the Blue Lion Job mark in its chip (14px x 1.15); the Adzuna SVG is trimmed to
   its ink, so the chip's own padding does the spacing, as with the partner logos. */
.job-card .source-attribution-logo {
    height: 16px;
    width: auto;
    display: block;
}

/* The label is a link of its own, but the card-wide link (z-index 3) covers the whole card.
   Raising the corner above it makes the label clickable; pointer-events: none keeps every other
   badge in the corner clicking through to the offer as before. */
.job-card .job-badges-container.job-badges-container--interactive {
    z-index: 4;
    pointer-events: none;
}

.job-card .job-badges-container--interactive .source-attribution-badge {
    pointer-events: auto;
}

/* Promoted Badge Style */
.job-card .promoted-badge {
    padding: 4px 10px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    background: var(--listing-promoted-badge-bg, linear-gradient(135deg, #ffd600 0%, #f9a825 100%)); /* gold -> amber */
    color: var(--listing-promoted-badge-text, #5d4037); /* cocoa-brown */
}

/* Hover effect for entry-level cards */
.job-card.internship-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
}
@media (max-width: 767.98px) {


    .job-card {
        margin-bottom: 0.5rem !important;
    }

    .job-card .mud-card-content {
        padding: 0.625rem 0.75rem !important;
    }

    /* Two lines are enough to recognise a role, and they cap how much room a
       single verbose title can take from the listings below it. */
    .job-card .job-card-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.9375rem;
        line-height: 1.3;
    }

    .job-card .job-card-details-stack {
        gap: 0.125rem !important;
    }

    /* Metadata reads as a dense block instead of a widely spaced grid. */
    .job-card .job-card-meta {
        gap: 0.125rem 0.625rem !important;
        margin-top: 0.125rem !important;
        margin-bottom: 0 !important;
    }

    .job-card .job-card-meta .mud-typography {
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .job-card .job-card-meta .mud-icon-root {
        font-size: 0.95rem;
    }

    .job-card .entry-level-badge,
    .job-card .promoted-badge {
        padding: 2px 8px;
        font-size: 0.65rem;
    }

    .job-card .partner-source-badge {
        height: 20px;
        padding: 0 8px;
    }

    .job-card .partner-source-logo {
        height: calc(11px * var(--partner-badge-scale, 1));
    }

    /* The icon only repeats what the badge label already says. */
    .job-card .entry-level-badge .mud-icon-root,
    .job-card .promoted-badge .mud-icon-root {
        display: none;
    }
}

@media (min-width: 600px) and (max-width: 767.98px) {

    .job-card .mud-card-content.job-card-content-with-badges {
        padding-right: 110px !important;
    }
}

@media (max-width: 599.98px) {
    /* Content above the badge row, which stops being a corner overlay at this width.
       Scoped to .job-card: this sheet is global, so a bare .mud-card-content would
       reorder every MudCard on the site. */
    .job-card .mud-card-content {
        order: 1;
    }


    .job-card {
        display: flex;
        flex-direction: column;
    }

    /* At xs the grid would put the logo on its own full-width row. Lay the card
       out as logo + details side by side and keep the text left-aligned, which
       scans faster down a dense list than centred blocks. */
    .job-card .job-card-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 0.625rem;
        width: 100%;
        margin: 0;
    }

    .job-card .job-card-grid > .mud-grid-item {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        padding: 0;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    /* Matched on the child selector too, so it outranks the rule above and the
       column can actually shrink - without min-width: 0 the long titles and
       metadata would push the card into a horizontal overflow. */
    .job-card .job-card-grid > .job-card-details {
        flex: 1 1 auto;
        min-width: 0;
    }

    .job-card .company-logo-avatar {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 6px;
        padding: 3px;
    }

    .job-card .company-initials {
        font-size: 0.8125rem;
    }

    .job-card .job-card-grid .mud-avatar {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .job-card .job-card-grid .mud-avatar .mud-icon-root {
        font-size: 1.125rem;
    }

    /* Badges follow the listing as a compact tag row. Trimming the content's
       bottom padding keeps that row tight against the card it belongs to. */
    .job-card .mud-card-content.job-card-content-with-badges {
        padding-right: 0.75rem !important;
        padding-bottom: 0.25rem !important;
    }

    .job-card .job-badges-container {
        position: static;
        order: 2;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.25rem;
        padding: 0 0.75rem 0.5rem;
    }
}

/* ===========================================================================
   Authored prose (.content-prose)
   Typography for HTML rendered from the Markdown in docs/ - the legal documents and the
   partner descriptions. Global rather than scoped because two unrelated pages render the
   same kind of content, and it previously existed as two byte-identical copies behind
   ".legal-card ::deep".

   Element selectors are qualified by .content-prose, which also keeps them above the bare
   element rules in Bootstrap's and MudBlazor's resets - MudBlazor's sheet loads after this
   one, so an unqualified rule here would lose the tie.
   =========================================================================== */
/* Typography inside rendered markdown */
.content-prose h1 {
    display: none;
}

.content-prose h2 {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--legal-text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--legal-border);
}

.content-prose h3 {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--legal-text);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.content-prose p {
    color: var(--legal-text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.content-prose ul,
.content-prose ol {
    color: var(--legal-text-muted);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.content-prose li {
    margin-bottom: 0.4rem;
}

.content-prose strong {
    color: var(--legal-text);
    font-weight: 600;
}

/* Shared with the Wiedza articles (.blog-prose) so links look the same in all authored text. */
.content-prose a,
.blog-prose a {
    color: var(--app-accent, var(--mud-palette-primary));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-prose a:hover,
.blog-prose a:hover {
    color: var(--app-link-hover, var(--mud-palette-primary-darken));
}

.content-prose code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.85em;
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
    background: rgba(var(--legal-primary-rgb), 0.16);
    color: var(--legal-text);
    overflow-wrap: anywhere;
}

/* Cookie tables (policy section 3). Fixed layout + wrapping keeps them inside the
   card on narrow screens instead of forcing the page to scroll sideways. */
.content-prose table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
    color: var(--legal-text-muted);
}

.content-prose th,
.content-prose td {
    border: 1px solid var(--legal-border);
    padding: 0.6rem 0.75rem;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.content-prose th {
    background: rgba(var(--legal-primary-rgb), 0.10);
    color: var(--legal-text);
    font-weight: 600;
}

.content-prose hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--legal-primary-rgb), 0.24) 50%, transparent 100%);
    margin: 2rem 0;
}
@media (max-width: 600px) {


    .content-prose table {
        font-size: 0.8rem;
    }

    .content-prose th,
    .content-prose td {
        padding: 0.45rem 0.5rem;
    }
}

/* ===========================================================================
   Page shell - the one layout every public page uses.

   Before this every page brought its own: the board's own scoped `.job-listing-layout`,
   `ContentPage`'s centred `.content-page-container`, /o-nas's private copy of that, /kontakt on
   the default `.content` gutters, and the offer detail page. They disagreed on content width and
   on where a line of body text broke, so a reader moving between two pages of the same site saw
   the text start and stop in a different place each time. A comfortable measure is 45-85
   characters per line.

   One grid, three tracks: identity, content, rail. The page's own masthead is the banner at the
   head of the content column, which is why no page here carries a separate centred hero band any
   more; the identity rail holds what is the same on every page - lockup, contents, small print.
   The rail track is dropped rather than emptied when a page passes no Rail.

   Global rather than scoped: the grid children are frequently MudBlazor components, whose
   rendered roots do not carry a calling component's scope id, so scoped rules would miss them.
   =========================================================================== */
:root {
    /* Outer cap and tracks come from the board, which was the only page already built this way -
       promoting its proportions rather than inventing a seventh set. */
    --shell-max-width: 1600px;
    --shell-rail-min: 240px;
    --shell-rail-max: 280px;
    --shell-identity-max: 300px;
    --shell-gap: clamp(1.5rem, 3vw, 3rem);

    /* Reading measure. The craft floor asks for 65-75ch; this sits inside it and is applied to
       prose only, so card grids still use the whole track. Pinning the *text* rather than the
       track is what makes the pages feel like one site: dropping the rail widens the column but
       never the paragraph. */
    --shell-measure: 68ch;

    /* One value ties the grid's vertical padding, the rails' sticky offset and the rails' height
       together, because they are not three independent numbers - they are one invariant:

           grid padding-block == sticky offset,  rail height == 100vh - 2 * offset

       Break it and the rails drift. With the grid's top padding at 2rem against a 1rem offset,
       the board's filter panel started 32px down and slid up to 16px over the first 20px of
       scroll - a visible slip on a page whose whole point is that the rails hold still. */
    --shell-gutter-block: 1rem;
    --shell-rail-height: calc(100vh - (var(--shell-gutter-block) * 2));
}

.page-shell {
    display: grid;
    grid-template-columns:
        minmax(var(--shell-rail-min), var(--shell-identity-max))
        minmax(0, 1fr)
        minmax(0, var(--shell-rail-max));
    gap: var(--shell-gap);
    align-items: start;
    max-width: var(--shell-max-width);
    margin-inline: auto;

    /* The inline start additionally clears the app rail. MainLayout no longer applies a desktop
       gutter to any public page, so this is the only thing standing between the identity column
       and the rail drawing on top of it. */
    padding-inline-end: clamp(1rem, 4vw, 4rem);
    padding-inline-start: max(clamp(1rem, 4vw, 4rem), calc(var(--app-icon-rail-width, 64px) + 0.5rem));

    /* Symmetric, and equal to the rails' sticky offset - see --shell-gutter-block. The bottom
       half of that is also NOEXP-440: a sticky column can only travel inside its containing
       block, so any space below the grid areas is space the document scrolls through after the
       rails have stopped, which drags their tops out of the viewport at the end of the page. */
    padding-block: var(--shell-gutter-block);

    /* clip, not hidden: `overflow-x: hidden` resolves overflow-y to `auto`, which makes this a
       scroll container and stops the sticky identity column sticking to the viewport. `clip`
       contains a stray wide child without creating that scroll container. */
    overflow-x: clip;
}

/* The pages that are not public pages, and so render no shell: everything under /admin, the
   employer's own offer list, /error, the aggregator, the 404 page, and the offer page while it is
   still loading or has failed. The shell above carries the gutters and the app-rail clearance for
   everyone else, and MainLayout no longer applies either - so without this these sit under the
   fixed rail on a desktop and run edge to edge on a phone.

   Written as a default the shell switches off, rather than as a list of the pages that need it.
   The thing this change deleted was exactly such a list - a route-prefix fork in
   MainLayout.IsDocumentPage() - and /kontakt had been quietly rendering at the wrong width
   because nobody remembered to add it. A page added tomorrow gets the safe side of this rule
   without knowing it exists.

   Account pages are excluded because ASP.NET Identity's Bootstrap markup brings its own
   container, which MainLayout still sizes. */
.content:not(.account-page):not(:has(.page-shell)) {
    padding-block-start: 1rem;
    padding-inline-end: clamp(1rem, 4vw, 4rem);
    padding-inline-start: max(clamp(1rem, 4vw, 4rem), calc(var(--app-icon-rail-width, 64px) + 0.5rem));
}

/* Same breakpoint as the shell's own: below it the rail is a bottom bar, so there is nothing on
   the inline start to clear and the clearance would just be a wasted column of gutter. */
@media (max-width: 959.98px) {
    .content:not(.account-page):not(:has(.page-shell)) {
        padding-inline: clamp(0.5rem, 4vw, 2rem);
    }
}

.page-shell-no-rail {
    grid-template-columns:
        minmax(var(--shell-rail-min), var(--shell-identity-max))
        minmax(0, 1fr);
}

.page-shell-main {
    min-width: 0;
}

/* ---------- The banner at the head of the content column ---------- */

/* Lifted from the board, where it was `.slogan-panel-sticky` in scoped CSS and so unreachable by
   anything else. It is the page's own masthead: it holds the h1, and it stays put at the top of
   the reading column while the content scrolls under it.

   The offset is the shell's gutter token, so the banner pins exactly where the two rails do
   rather than 1rem away from them. */
.page-banner {
    --page-banner-mask-bg: var(--app-bg, var(--mud-palette-background));
    position: sticky;
    top: var(--shell-gutter-block);
    z-index: 100;
    isolation: isolate;
    padding-bottom: var(--shell-gutter-block);
    background: var(--page-banner-mask-bg);
}

/* The mask. Without it the content scrolling underneath is visible in the gap the sticky offset
   leaves above and beside the card. */
.page-banner::before {
    position: absolute;
    z-index: -1;
    inset:
        calc(-1 * var(--shell-gutter-block))
        calc(-1 * var(--shell-gutter-block))
        0;
    background: var(--page-banner-mask-bg);
    content: "";
}

/* Two corner cut-outs directly below the card, so the content sliding under it reappears around
   the card's rounded corners instead of against a square edge. */
.page-banner::after {
    --card-corner-radius: var(--app-card-radius, 12px);
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1;
    height: var(--card-corner-radius);
    background:
        radial-gradient(
            circle at 100% 100%,
            transparent calc(var(--card-corner-radius) - 1px),
            var(--page-banner-mask-bg) var(--card-corner-radius)
        ) left top / var(--card-corner-radius) var(--card-corner-radius) no-repeat,
        radial-gradient(
            circle at 0 100%,
            transparent calc(var(--card-corner-radius) - 1px),
            var(--page-banner-mask-bg) var(--card-corner-radius)
        ) right top / var(--card-corner-radius) var(--card-corner-radius) no-repeat;
    content: "";
    pointer-events: none;
}

.page-banner-title {
    font-family: var(--app-font-family-heading);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0;
    color: var(--app-text);
}

.page-banner-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--app-text-muted);
    margin: 0.4rem 0 0;
    max-width: var(--shell-measure);
}

/* The trail, directly under the banner and above the page's first block.

   Outside the banner card rather than inside it: the banner is sticky, and a trail pinned to the
   top of the column would hold permanent vertical space to say something the reader needs once,
   on arrival. It belongs to the content, so it scrolls with the content. */
.page-breadcrumbs {
    margin: 0 0 1.25rem;
}

.page-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--app-text-muted);
}

/* Drawn rather than typed, so a screen reader reading the list does not announce a slash between
   every step - the <ol> already says these are ordered.

   Trailing the step it follows rather than leading the next one, which only shows when the trail
   wraps: a line ending "Tester manualny /" reads as continuing, where a line starting "/ Jak
   zaczac" reads as a stray mark. The guide's four-step trail wraps on any phone. */
.page-breadcrumbs-list > li:not(:last-child)::after {
    content: "/";
    margin-inline-start: 0.45rem;
    /* Mixed down from the text colour, not --app-border. The border token measures 1.24:1 against
       the page, which on a hairline is the point and on a glyph means the separator is not there -
       and a trail without visible separators reads as one run-on phrase. */
    color: color-mix(in srgb, var(--app-text-muted) 55%, var(--app-bg));
}

.page-breadcrumbs-list a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-breadcrumbs-list a:hover {
    border-bottom-color: currentColor;
}

.page-breadcrumbs-list a:focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* The step the reader is standing on. Darker than the links rather than bolder: weight here
   would compete with the h1 sitting directly above it. */
.page-breadcrumbs-list [aria-current="page"] {
    color: var(--app-text);
}

/* Both flanking columns behave the same way: a full-height sticky panel whose own content
   scrolls, rather than a block that scrolls away with the page. The middle column is the only
   thing that moves. */
.page-identity,
.page-shell-rail {
    position: sticky;
    top: var(--shell-gutter-block);
    height: var(--shell-rail-height);
    min-width: 0;
    display: flex;
    flex-direction: column;
    /* Clipped rather than allowed to grow: a column taller than the viewport would otherwise
       extend its own sticky boundary and stop behaving like a fixed panel. The scroll moves
       inside it instead. */
    overflow: hidden;
}

.page-shell-rail {
    gap: 1rem;
    overflow-y: auto;
    /* The scrollbar sits inside the column, so give it somewhere to be. */
    padding-inline-end: 4px;
}

/* The one call-to-action card, tinted so the rail's primary action is findable without being
   louder than the content beside it. */
.rail-cta {
    background: color-mix(in srgb, var(--app-accent) 6%, var(--app-surface)) !important;
    border-color: color-mix(in srgb, var(--app-accent) 28%, transparent) !important;
}

.rail-cta-title {
    font-family: var(--app-font-family-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.5rem;
    color: var(--app-text);
}

.rail-cta-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--app-text-muted);
    margin: 0;
}

/* A CTA whose context runs to more than one paragraph - /kontakt, whose card carries the address
   as text under its line. The paragraphs carry the rhythm the wrapper cannot, since it is also
   the single-paragraph carrier above. */
.rail-cta-text > p {
    margin: 0 0 0.6rem;
}

.rail-cta-text > p:last-child {
    margin-bottom: 0;
}

/* Running text, wherever it appears in the content column.

   The named classes are every prose carrier the site actually has; `.page-prose` is the one to
   reach for in new markup. Tables, card grids and figures are exempt by omission - they are not
   text and a 68ch table is a worse table. Measured before this rule the same paragraph ran 123
   characters per line on the terms page. */
.page-prose,
.page-shell-main .role-prose,
.page-shell-main .role-section-lead,
.page-shell-main .role-list,
.page-shell-main .role-entry dd,
.page-shell-main .content-prose p,
.page-shell-main .content-prose li {
    max-width: var(--shell-measure);
}

/* The board's own colour tokens, read by the filter panel, the partner rail and the offer cards.
   They lived on `.job-listing-layout` in ListJobAd.razor.css, which PageShell replaced: the
   element is PageShell's now, so it carries PageShell's scope id and a scoped rule would miss it. */
.job-board {
    --listing-partner-bg: linear-gradient(180deg, var(--mud-palette-background) 0%, var(--mud-palette-surface) 100%);
    --listing-partner-border: var(--mud-palette-divider);
    --listing-partner-title-color: var(--mud-palette-text-primary);
    --listing-partner-note-color: var(--mud-palette-text-secondary);
    --listing-entry-bg: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, var(--mud-palette-surface) 100%);
    --listing-entry-border: #4caf50; /* green */
    --listing-entry-badge-bg: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); /* green -> forest-green */
    --listing-promoted-badge-bg: linear-gradient(135deg, #ffd600 0%, #f9a825 100%); /* gold -> amber */
    --listing-promoted-badge-text: #5d4037; /* cocoa-brown */
    --listing-favorite-bg: rgba(255, 255, 255, 0.92);
    --listing-favorite-bg-hover: rgba(255, 255, 255, 1);
}

/* ---------- The identity rail ---------- */

/* A panel, not loose text beside the content - the same surface the board's filter rail sits on,
   so the left column reads as the same piece of furniture on every page. The surface itself comes
   from `app-card` on the element: this aside is inside <article class="content">, which is what
   the shared rule keys on, so restating the four card tokens here only made changing one of them
   a five-place edit. */

/* The panel is fixed to the viewport; its contents are what scroll when a page's contents list
   runs past the bottom of the screen. A flex column so the links block can take the far end
   of the card rather than trailing whatever sits above it. */
.page-identity-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1.25rem;
}

/* ---------- Table of contents in the rail ---------- */

/* A hairline the entries hang off, with a marker on the section being read. The list used to be
   bordered pills with a hover tint, which is the shape of a menu - and a contents list is not a
   menu, it is a position indicator. Everything here is in service of that: one rule, one marker,
   and type that goes quiet when it is not where you are. */
.rail-toc {
    margin-top: 1.5rem;
}

.rail-toc-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-text-muted);
    margin: 0 0 0.75rem;
}

.rail-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    /* The spine. One rule for the whole list rather than a border per item: the eye reads a
       continuous line as an axis and eleven stacked segments as eleven boxes. */
    border-inline-start: 1px solid var(--app-border);
}

.rail-toc-list a {
    display: block;
    position: relative;
    padding: 0.35rem 0 0.35rem 0.9rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--app-text-muted);
    text-decoration: none;
    transition: color 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* The marker, sitting on the spine. Hidden by a scale of 0 rather than by display, so the one
   that appears grows out of the line instead of blinking into it. */
.rail-toc-list a::before {
    content: "";
    position: absolute;
    inset-inline-start: -4px;
    top: 0.85em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--app-accent);
    transform: scale(0);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rail-toc-list a:hover {
    color: var(--app-text);
}

.rail-toc-list a:focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 2px;
    border-radius: 2px;
    color: var(--app-text);
}

/* Where the reader is. Weight and full contrast carry it; the dot is confirmation, not the
   signal, so the entry still reads as current with the marker unpainted. */
.rail-toc-list a.is-current {
    color: var(--app-text);
    font-weight: 600;
}

.rail-toc-list a.is-current::before {
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .rail-toc-list a,
    .rail-toc-list a::before {
        transition: none;
    }
}

/* ---------- Linkable headings ---------- */

/* The permalink. Present in the markup at all times so it keeps its place in the tab order, and
   revealed on hover or focus - a "#" beside every heading all the way down a legal document is
   noise the reader did not ask for. */
.section-heading-anchor::after {
    content: "#";
}

.section-heading-anchor {
    margin-inline-start: 0.4rem;
    color: var(--app-text-muted);
    text-decoration: none;
    font-weight: 400;
    opacity: 0;
    transition: opacity 140ms cubic-bezier(0.16, 1, 0.3, 1), color 140ms ease;
}

:is(h1, h2, h3):hover > .section-heading-anchor,
.section-heading-anchor:focus-visible {
    opacity: 1;
}

.section-heading-anchor:hover {
    color: var(--app-accent);
}

.section-heading-anchor:focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Touch has no hover, so the control would be unreachable - and a permalink is not worth a
   permanent "#" on a phone either. The heading's own id still works for inbound links. */
@media (hover: none) {
    .section-heading-anchor {
        display: none;
    }
}

/* The banner is pinned to the top of the content column, so an anchor jump would otherwise land
   the heading underneath it. */
.page-shell-main :is(h2, h3)[id] {
    scroll-margin-top: calc(var(--shell-gutter-block) * 2 + 7rem);
}

/* ---------- The small print at the foot of the rail ---------- */

.rail-footnote {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* The standalone copy. Hidden wherever the identity rail is a column beside the content, which is
   where the footnote at its foot reads correctly - see the note in PageShell. */
.page-shell-footnote {
    display: none;
}

/* Reads as small print, not as navigation: this is the legal corner of the card, and the links
   are here so they exist in the markup, not to compete with the contents list above them. */
.rail-footnote-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.9rem;
    margin: 0 0 0.6rem;
    font-size: 0.6875rem;
    line-height: 1.45;
}

.rail-footnote-links a {
    color: var(--app-text-muted);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.rail-footnote-links a:hover,
.rail-footnote-links a:focus-visible {
    color: var(--app-text);
}

.rail-footnote-note,
.rail-footnote-copy {
    font-size: 0.6875rem;
    line-height: 1.45;
    color: var(--app-text-muted);
    margin: 0;
}

.rail-footnote-copy {
    margin-top: 0.6rem;
}

/* Centred, like the board's `.logo-container`. The wrapper inside is an inline-flex column that
   centres its own children, so it needs text-align on the parent to sit centred itself - which is
   exactly how the board does it.

   The padding is 2.5rem rather than the board's 3rem because this card's own padding is 1.25rem
   against the board's 0.75rem. What has to match is the distance from the top of the card to the
   top of the wordmark, and only one of the two numbers is free: 20 + 40 = 12 + 48 = 60px, plus
   the 1px border on both. Measured at 49px against 61px before this, which is the step the logo
   visibly sat higher by on every subpage. */
.page-identity-brand {
    text-align: center;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

/* Below the three-column breakpoint the rail stops being a full-height column and becomes a card
   stacked above the content - which is exactly what the board's filter panel is at these widths.
   So it takes the board's padding too, and the offset arithmetic above stops being needed: both
   cards pad by 0.75rem, so both brand blocks can carry the board's own numbers.

   The board steps them down twice, and it is right to: 3rem of air above a wordmark reads as
   composure on a full-height column and as wasted screen on a phone, where it pushed the contents
   list and everything under it below the fold. */
@media (max-width: 1439.98px) {
    .page-identity-inner {
        padding: 0.75rem;
    }

    .page-identity-brand {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .page-identity-brand {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.page-identity-title {
    font-family: var(--app-font-family-heading);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0 0 0.6rem;
    color: var(--app-text);
}

.page-identity-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--app-text-muted);
    margin: 0 0 1.25rem;
}

.page-identity-cta {
    margin-top: 1.25rem;
}

/* ---------- Two breakpoints, shared by every page ---------- */

/* Below the three-column layout the flanking columns stop being full-height sticky panels and
   become ordinary cards that size to their own content. Same breakpoint, and same reasoning, as
   the board has always used: two columns sharing a track cannot both be a viewport tall. */
@media (max-width: 1439.98px) {
    .page-identity,
    .page-shell-rail {
        position: relative;
        top: 0;
        height: auto;
        overflow: visible;
    }

    .page-identity-inner {
        overflow-y: visible;
    }
}

/* Laptops, split-screen windows and browsers with a side panel open land here: too narrow for
   three columns, far too wide to stack the identity into a full-width wall the reader has to
   scroll past. Keep the identity rail beside the content and park the rail underneath it, in the
   same column.

   Lifted verbatim from the board, which was the only page that had worked this case out. The
   content spans both rows so the fr row absorbs its extra height and the rail stays directly
   under the identity instead of being pushed to the end of the page. */
@media (min-width: 960px) and (max-width: 1439.98px) {
    .page-shell {
        grid-template-columns:
            minmax(var(--shell-rail-min), var(--shell-identity-max))
            minmax(0, 1fr);
        grid-template-rows: min-content 1fr;
    }

    /* Positional rather than by class: the identity slot is a PageIdentity on most pages but the
       board's filter panel on the board, and the placement is a property of the slot, not of
       whatever the page chose to put in it. */
    .page-shell > :nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .page-shell > :nth-child(2) {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .page-shell > :nth-child(3) {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
    }

}

/* The app rail becomes a bottom bar here, so the inline-start clearance goes away and everything
   stacks. Nothing stays sticky either: a masthead that follows the reader down a phone screen is
   just lost height. The stacking order is set below.

   `.page-shell-no-rail` is not listed alongside `.page-shell`: it is only ever emitted together
   with it, and this rule comes after the two-track template it would otherwise have to beat. */
@media (max-width: 959.98px) {
    .page-shell {
        grid-template-columns: minmax(0, 1fr);
        padding-inline: clamp(0.5rem, 4vw, 2rem);
        padding-block: 1.5rem 3rem;
    }

    /* Order on a phone, and it is the same order on every page now: banner, identity, content,
       call to action.

       The banner carries the h1, so it leads - putting furniture in front of the heading is how
       the board ended up with its product a screen and a bit down the page (NOEXP-313). The
       identity rail follows it rather than trailing the whole article, because on a subpage it
       holds the lockup, and a page whose logo only appears after a screen of text does not look
       like it belongs to anything.

       The column becomes `display: contents` so the banner can rise above the identity rail while
       staying inside the column on wider screens. That is safe here only because the column has
       exactly two children - the banner and the body wrapper - which is what PageShell's wrapper
       is for. Unwrapped, every section of a long page would become a grid item and take the
       grid's gap between them.

       This replaces the board's own copy of the same rules: its filter panel is the identity
       slot, so one set of rules now does for the board what it used to do only for itself. */
    .page-shell-main {
        display: contents;
    }

    /* Between the banner and the lockup: the trail names the page the banner has just titled, so
       the two read as one block. Below the identity card it would be adrift from its heading, and
       the reader would meet the site's furniture before being told where they are. */
    .page-breadcrumbs {
        order: -2;
        /* The grid's own gap does the spacing here, so the margin that separates the trail from
           the content on wider screens would double it. */
        margin-bottom: 0;
    }

    .page-identity,
    .job-board .filters-sidebar {
        order: -1;
    }

    /* The board's first screen is the one where every pixel above the first offer counts
       (NOEXP-577): half the top padding and half the gap between the heading card, the filter
       button and the list. */
    .job-board.page-shell {
        padding-top: 0.75rem;
        row-gap: 0.75rem;
    }

    .page-shell-rail {
        order: 1;
    }

    /* The one exception, opted into with PageShell's RailLeadsOnPhone: a page whose action is the
       reason the reader came. Same order value as the trail, and later in the markup, so it lands
       straight under the heading - ahead of the identity card too, which on a 320px phone is
       otherwise what pushes the action under the bottom bar. */
    .page-shell-rail-leads .page-shell-rail {
        order: -2;
    }

    /* The small print swaps places. Inside the rail it would sit a couple of hundred pixels down
       the page, above the article it disclaims, reading as part of the opening; at the end it
       reads as what it is. The board's copy lives in its filter panel rather than in a
       PageIdentity, hence matching on the shared class instead of on either parent. */
    .page-shell .rail-footnote:not(.page-shell-footnote) {
        display: none;
    }

    .page-shell-footnote {
        display: block;
        order: 2;
        margin-top: 0;
        padding: 1rem 1.25rem;
        background-color: var(--app-card-bg);
        border: 1px solid var(--app-card-border-color);
        border-radius: var(--app-card-radius);
        box-shadow: var(--app-card-shadow);
        text-align: center;
    }

    /* First in the stack, and no longer sticky: left pinned it would cover the content on the
       screen with the least room to spare, and the mask it paints to hide the sticky gap has
       nothing to hide. */
    .page-banner {
        order: -3;
        position: static;
        padding-bottom: 0;
    }

    .page-banner::before,
    .page-banner::after {
        content: none;
    }

    /* Nothing is pinned here, so nothing needs to be cleared. Left at the desktop value an anchor
       jump on a phone lands its heading about 144px below the top of the screen, under blank
       space the banner is no longer occupying. */
    .page-shell-main :is(h2, h3)[id] {
        scroll-margin-top: var(--shell-gutter-block);
    }
}

/* ===========================================================================
   Role pages (/praca/[rola], /praca) - NOEXP-323
   Global rather than scoped for the same reason as the content-page block above:
   the sections are built from MudPaper, whose rendered root does not carry this
   component's scope id, so scoped rules would silently miss every card.

   Three columns, matching the board's own proportions: who the profession is,
   what it takes, and what it can apply to today. The middle column is the page -
   the offers are a rail beside it, not the thing itself.
   =========================================================================== */
/* Accent tokens live at :root, not on .role-page, because the hub at /praca uses them too and is
   built from ContentPage rather than from .role-page. */
:root {
    /* One size for body copy on these pages. Four were doing this job - 14px in the skills list,
       15px in the prose and the lists, 16px in the steps - which is drift rather than a scale, and
       a reader feels it as the page changing its mind about which parts matter.

       16px rather than 17: the content column here is about 634px, so at 16px a line runs 62-72
       characters, which is the comfortable band. 17px reads as more generous and measures worse,
       at about 58. The column is the constraint, not the taste. */
    --role-reading: 1rem;

    /* Looser than the 1.6 these blocks carried. What the guide asks of a reader is twenty minutes,
       not a glance. */
    --role-reading-lh: 1.7;

    /* --app-accent, not --app-feature-primary. The latter is a surface tint (#e8edf4 light,
       #5f6f98 dark) meant for gradients and washes; used as a text colour it is invisible on a
       light card and muddy on a dark one. --app-accent is the theme's readable accent - the
       MudBlazor primary - and is defined for contrast in both themes. */
    --role-accent: var(--app-accent, #455dff);

    /* Accent *text* is a different requirement from accent ink on a border or a fill. The chips
       and step numbers are 11-13px, which WCAG counts as normal text and so needs 4.5:1; measured,
       the raw light-theme accent gives only 3.6:1 on a white card. Light theme therefore darkens
       it. Borders and backgrounds keep --role-accent - they are not text and do not need the ratio. */
    --role-accent-text: color-mix(in srgb, var(--role-accent) 70%, #000);
}

/* Dark theme moves the same token the other way. The accent on its own measures 3.8:1 against the
   tinted chip - the tint is a light blue over a dark card, so it lifts the background toward the
   text rather than away from it - and lightening the ink is what opens the gap back up. */
html[data-theme='dark'] {
    --role-accent-text: color-mix(in srgb, var(--role-accent) 78%, #fff);
}

/* Colour tokens only. The grid, the gutters, the app-rail clearance, the sticky columns and the
   overflow containment all belong to .page-shell now - these pages were the last ones carrying a
   private copy of them. */
.role-page {
    --role-surface: var(--app-surface, #fff);
    --role-text: var(--app-text, #1a1d2e);
    --role-muted: var(--app-text-muted, #5f6675);
    --role-border: var(--app-border, #d9dfef);

    color: var(--role-text);
}

/* ---------- What the job is, and the figures behind it ---------- */

/* What the job is, opening the content column on both role pages. Sized as a standfirst - a
   step above body text, a step below the banner's subtitle - because it is the first thing read
   after the heading and it has to carry. It was 0.875rem when it lived in the rail.

   1.1875rem now that body is 1rem. At 1.05rem the two were within a pixel of each other, so the
   opening read as the first paragraph instead of as the page's standfirst. */
.role-lead {
    font-size: 1.1875rem;
    line-height: 1.55;
    color: var(--app-text);
    margin: 0 0 1.75rem;
    max-width: var(--shell-measure);
}

/* The numbers. Our own data is the part no competitor can copy, so it reads as a spec sheet
   rather than as prose.

   A row rather than the column this was in the rail: side by side the figures can be compared at
   a glance, which is what a reader does with them. auto-fit rather than a fixed count, so the
   three-or-four figures a role happens to have fill the width instead of leaving a gap, and they
   stack on a phone without a breakpoint. */
.role-facts-panel {
    padding: 1.25rem 1.5rem;
}

.role-facts {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 1.25rem 1.75rem;
}

/* Four figures - the salary is present - go two by two rather than three across with one
   stranded on its own row. It also gives the widest value here, a salary range like
   "6 720 zl - 9 000 zl", a column it fits in without wrapping.

   Below this width the auto-fit rule above has already collapsed the grid to one column, so the
   override would only force two cramped ones. */
@media (min-width: 640px) {
    .role-facts-even {
        grid-template-columns: repeat(2, 1fr);
    }
}

.role-fact dt {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--role-muted);
    margin-bottom: 0.15rem;
}

.role-fact dd {
    margin: 0;
    font-family: var(--app-font-family-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    /* The salary reads "6 720 zl - 9 000 zl" and is the widest figure here by far. Tabular digits
       keep the columns from shifting width as the counts change day to day. */
    font-variant-numeric: tabular-nums;
}

.role-fact-note {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--role-muted);
}

.role-asof {
    margin: 1.1rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--role-border);
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--role-muted);
}

/* ---------- Centre: the knowledge ---------- */

.role-section {
    margin-bottom: 2.5rem;
}

.role-section:last-child {
    margin-bottom: 0;
}

.role-section-title {
    font-family: var(--app-font-family-heading);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.9rem;
}

/* 700, not 500: the heading face ships 400 and 700 only, so 500 resolved to 400 - the same weight
   as the body text underneath it, at the same size. A heading that matches its own paragraph in
   both axes is not a heading. */
.role-subsection-title {
    font-family: var(--app-font-family-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.role-section-lead {
    font-size: var(--role-reading);
    line-height: var(--role-reading-lh);
    color: var(--role-muted);
    margin: 0 0 1.1rem;
    max-width: 48rem;
}

.role-prose {
    font-size: var(--role-reading);
    line-height: var(--role-reading-lh);
    margin: 0 0 0.75rem;
}

.role-prose:last-child {
    margin-bottom: 0;
}

.role-list {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.7rem;
    font-size: var(--role-reading);
    line-height: var(--role-reading-lh);
}

/* Term/definition rows shared by Umiejętności and Narzędzia - the CV's two list sections. */
.role-entry-list {
    margin: 0;
    display: grid;
    gap: 1rem;
}

/* A step above the body it labels, not below it. Raising the definition to body size left the
   term smaller than its own definition, which reads as the label being the afterthought. */
.role-entry dt {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 0.35rem;
}

/* Body, not caption. This is the longest stretch of reading on either page, and it was the
   smallest and faintest text on it - 14px in the muted tint, while the prose around it was 15px in
   the foreground. That inverts the hierarchy: the part asking for the most attention was styled as
   the part deserving the least. It is also the one prose block the measure rule never covered, so
   nothing but the column width was holding its line length. */
.role-entry dd {
    margin: 0;
    font-size: var(--role-reading);
    line-height: var(--role-reading-lh);
    color: var(--role-text);
}

/* Uppercase at 11px loses a lot of stroke, so these carry more weight than body text and sit on
   a tint solid enough to read in both themes. WCAG counts text this size as normal text, so the
   target is 4.5:1 against the card, not the 3:1 that larger text would allow. */
.role-flag {
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1.5;
}

.role-flag-now {
    color: var(--role-accent-text);
    border: 1px solid color-mix(in srgb, var(--role-accent) 45%, transparent);
    background: color-mix(in srgb, var(--role-accent) 14%, transparent);
}

.role-flag-later {
    color: var(--role-muted);
    border: 1px solid var(--role-border);
    background: var(--app-hover-bg, rgba(0, 0, 0, 0.04));
}

/* "Czego nie potrzebujesz" - a removed barrier, so it reads as relief rather than as one more
   list of demands. */
.role-not-needed {
    background: color-mix(in srgb, var(--app-status-valid, #15803d) 6%, var(--role-surface)) !important;
    border-color: color-mix(in srgb, var(--app-status-valid, #15803d) 25%, transparent) !important;
}

/* ---------- Education: numbered steps ---------- */

.role-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.role-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.25rem;
    background: var(--app-card-bg, var(--role-surface));
    border: 1px solid var(--app-card-border-color, var(--role-border));
    border-radius: var(--app-card-radius, 12px);
    box-shadow: var(--app-card-shadow);
}

.role-step-number {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--app-font-family-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--role-accent-text);
    background: color-mix(in srgb, var(--role-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--role-accent) 30%, transparent);
}

.role-step-body {
    min-width: 0;
    font-size: var(--role-reading);
    line-height: var(--role-reading-lh);
}

.role-step-title {
    font-family: var(--app-font-family-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

/* The content's own freshness line, last thing in the column. Quiet on purpose: it is provenance,
   not a section, and it has to be legible rather than noticed. */
.role-updated {
    margin: 2rem 0 0;
    font-size: 0.8125rem;
    color: var(--role-muted);
}

/* ---------- Ambassador ---------- */

/* The person who signs a role page. Sits in the rail on both halves of the pair.

   Deliberately quieter than the call to action above it: this is evidence, not an offer. It earns
   attention by being a face and a name, which nothing else in the column is. */
.role-ambassador-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--role-muted);
}

/* The placeholder marker. Accent-coloured rather than muted: it is the one line on the card that
   must not be skimmed past. */
.role-ambassador-kicker-draft {
    color: var(--app-accent);
}

.role-ambassador-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.role-ambassador-photo {
    flex: 0 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--app-card-radius);
    object-fit: cover;
    background: var(--app-bg);
    border: 1px solid var(--app-card-border-color);
}

/* Somebody who agreed to be named but not pictured. Initials rather than a stock silhouette -
   a generic face would be a picture of a person who is not them. */
.role-ambassador-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--app-font-family-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--app-text-muted);
}

.role-ambassador-who {
    min-width: 0;
}

.role-ambassador-name {
    font-family: var(--app-font-family-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.role-ambassador-job {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--role-muted);
}

.role-ambassador-bio {
    margin: 0.9rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--app-text);
}

/* The organisation's mark, between the bio and the links. Capped on both axes rather than given
   a ratio, because the next ambassador's lockup will not be this one's shape; the file's own
   width/height attributes still reserve the box, so the button below does not jump when the SVG
   arrives. Theme switching is the shared .partner-logo-light/dark pair. */
.role-ambassador-logo {
    margin-top: 0.9rem;
}

.role-ambassador-logo-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 2rem;
}

.role-ambassador-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

/* The unfilled slot. It reads as an invitation rather than as a broken card, because that is what
   it is until somebody says yes. */
.role-ambassador-open-title {
    font-family: var(--app-font-family-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.role-ambassador-open-text {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--app-text-muted);
}

/* ---------- Where the figures come from ---------- */

.role-source-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
}

.role-source-link {
    font-weight: 600;
    color: var(--app-accent);
}

/* The inline citation, repeated so a reader can match "(Bulldogjob, 2025)" in the text to the
   entry here by eye. Quieter than the title it follows: it is a key, not a heading. */
.role-source-label {
    margin-inline-start: 0.35rem;
    font-size: 0.8125rem;
    color: var(--role-muted);
}

.role-source-detail {
    margin: 0.3rem 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--role-muted);
}

/* ---------- FAQ ---------- */

.role-faq {
    display: grid;
    gap: 0.6rem;
}

.role-faq-item {
    background: var(--app-card-bg, var(--role-surface));
    border: 1px solid var(--app-card-border-color, var(--role-border));
    border-radius: var(--app-card-radius, 12px);
    box-shadow: var(--app-card-shadow);
    padding: 0.9rem 1.15rem;
}

.role-faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.role-faq-item summary::-webkit-details-marker {
    display: none;
}

/* The caret is drawn rather than typed so the markers stay identical across browsers. */
.role-faq-item summary::after {
    content: '';
    flex: 0 0 auto;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--role-muted);
    border-bottom: 2px solid var(--role-muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.role-faq-item[open] summary::after {
    transform: rotate(-135deg) translateY(-2px);
}

.role-faq-question {
    font-family: var(--app-font-family-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0;
}

.role-faq-item > .role-prose {
    margin-top: 0.75rem;
    color: var(--role-muted);
}

/* ---------- The offer list, in the content column ---------- */

.role-job-list,
.offer-filter-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* ---------- Related roles + hub ---------- */

/* ---------- Filter-page links under the board (NOEXP-510) ---------- */

.offer-filter-footer {
    width: 100%;
    box-sizing: border-box;
    margin: 1.25rem 0 0.5rem;
    padding: 1rem 1.15rem;
}

.offer-filter-footer-title {
    font-family: var(--app-font-family-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    margin: 0 0 0.6rem;
}

.offer-filter-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
}

.offer-filter-footer-links a {
    font-size: 0.8125rem;
    color: var(--app-text-muted, #5f6675);
    text-decoration: none;
}

.offer-filter-footer-links a:hover,
.offer-filter-footer-links a:focus-visible {
    color: var(--app-accent, var(--mud-palette-primary));
    text-decoration: underline;
}

.role-related,
.role-hub-grid,
.offer-filter-siblings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.role-related-card,
.role-hub-card,
.offer-filter-sibling {
    display: grid;
    gap: 0.35rem;
    padding: 1.15rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-related-card:hover,
.role-hub-card:hover,
.offer-filter-sibling:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-md) !important;
}

.role-related-name,
.role-hub-name,
.offer-filter-sibling-name {
    font-family: var(--app-font-family-heading);
    font-weight: 700;
    font-size: 1rem;
}

.role-related-why,
.role-hub-tagline {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--app-text-muted, #5f6675);
}

.role-hub-count {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--role-accent-text, #313fb8);
}

/* ---------- /wiedza - articles (NOEXP-567) ---------- */

/* The figures panel borrows the role pages' look, and with it their muted colour, which those
   pages define on .role-page. */
.knowledge-figures {
    --role-muted: var(--app-text-muted, #5f6675);
    margin: 1.5rem 0;
}

/* ---------- /firma - the list of companies (NOEXP-563) ---------- */

/* The ranking's cards (NOEXP-580): the role hub's card with the company's logo on the left, in
   the same 40px bordered box as on the offer cards, or the offer card's avatar when there is none. */
.employer-rank-card {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    column-gap: 0.85rem;
}

.employer-rank-logo {
    width: 40px;
    height: 40px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 8px;
    background: var(--mud-palette-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
}

.employer-rank-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.employer-rank-text {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.employer-rank-text .role-hub-name {
    overflow-wrap: anywhere;
}

/* ---------- A company's letters when it has no logo (NOEXP-554) ---------- */

/* Eight colours from the theme's own family - saturated, none louder than the blue accent - each
   as a light tint with a dark letter (light theme) or a deep tint with a light letter (dark theme).
   Every letter has at least 5.5:1 against its tile in both themes (measured 05.11.2026). Which
   company gets which colour: CompanyMonogram.ColorIndex. The box itself (size, radius, padding)
   comes from the logo box class it sits in, so letters and logos line up. */
.company-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--app-font-family-heading);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.02em;
    user-select: none;
}

.job-card .company-logo-avatar.company-initials,
.employer-rank-logo.company-initials {
    background: var(--ci-bg);
    color: var(--ci-fg);
    border-color: var(--ci-border);
}

.company-initials--0 { --ci-bg: #e5e8ff; --ci-fg: #2c41c9; --ci-border: #c3cbff; } /* blue */
.company-initials--1 { --ci-bg: #ede6ff; --ci-fg: #5a2fd1; --ci-border: #d3c4ff; } /* violet */
.company-initials--2 { --ci-bg: #ddf3f1; --ci-fg: #0b6b61; --ci-border: #b2e2dc; } /* teal */
.company-initials--3 { --ci-bg: #e2f2e9; --ci-fg: #1c6b3d; --ci-border: #b8e0c8; } /* green */
.company-initials--4 { --ci-bg: #fbf1db; --ci-fg: #7d5000; --ci-border: #f3d99c; } /* amber */
.company-initials--5 { --ci-bg: #fde9e4; --ci-fg: #a8391a; --ci-border: #f9c6b8; } /* coral */
.company-initials--6 { --ci-bg: #fbe5ed; --ci-fg: #a3245a; --ci-border: #f3bdd1; } /* pink */
.company-initials--7 { --ci-bg: #e0f1fb; --ci-fg: #0f6191; --ci-border: #b3dcf4; } /* sky */
.company-initials--unknown {
    --ci-bg: var(--mud-palette-surface);
    --ci-fg: var(--app-text-muted, #5f6675);
    --ci-border: var(--mud-palette-divider);
}

html[data-theme='dark'] .company-initials--0 { --ci-bg: #243068; --ci-fg: #a3b0ff; --ci-border: #34428a; }
html[data-theme='dark'] .company-initials--1 { --ci-bg: #322c68; --ci-fg: #bfa8ff; --ci-border: #46398f; }
html[data-theme='dark'] .company-initials--2 { --ci-bg: #17424f; --ci-fg: #5fd8c6; --ci-border: #1d5a63; }
html[data-theme='dark'] .company-initials--3 { --ci-bg: #1f4141; --ci-fg: #86dba6; --ci-border: #285a50; }
html[data-theme='dark'] .company-initials--4 { --ci-bg: #4a3f2b; --ci-fg: #f5c86b; --ci-border: #6b5528; }
html[data-theme='dark'] .company-initials--5 { --ci-bg: #4d3239; --ci-fg: #ffa58c; --ci-border: #6e3f3c; }
html[data-theme='dark'] .company-initials--6 { --ci-bg: #4a2a49; --ci-fg: #ff94bd; --ci-border: #6a3360; }
html[data-theme='dark'] .company-initials--7 { --ci-bg: #1b3f60; --ci-fg: #82caf5; --ci-border: #215580; }

/* The tier below the ranking: a plain index under letters, as dense as a phone book. The ranking
   above it reuses the role hub's cards. */
.employer-directory-group + .employer-directory-group {
    margin-top: 1.25rem;
}

.employer-directory-letter {
    font-family: var(--app-font-family-heading);
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.employer-directory-list {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 3 14rem;
    column-gap: 1.5rem;
}

.employer-directory-list li {
    break-inside: avoid;
    padding: 0.15rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.employer-directory-list a {
    color: inherit;
    text-decoration: none;
}

.employer-directory-list a:hover,
.employer-directory-list a:focus-visible {
    color: var(--app-accent, var(--mud-palette-primary));
    text-decoration: underline;
}

.employer-directory-count {
    margin-left: 0.35rem;
    font-size: 0.8125rem;
    color: var(--app-text-muted, #5f6675);
    white-space: nowrap;
}

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

@media (max-width: 600px) {
    .role-step {
        padding: 1rem;
        gap: 0.75rem;
    }

    .role-fact dd {
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .role-related-card,
    .role-hub-card,
    .role-faq-item summary::after {
        transition: none;
    }

    .role-related-card:hover,
    .role-hub-card:hover {
        transform: none;
    }
}

/* Editorial content shares the application tokens in both public pages and admin previews. */
.blog-layout, .blog-editor { min-width: 0; }
.blog-list-card {
    position: relative;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: var(--app-card-bg);
    border: 1px solid var(--app-card-border-color);
    border-radius: var(--app-card-radius);
    box-shadow: var(--app-card-shadow);
    overflow-wrap: anywhere;
}
.blog-list-header { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem 1rem; margin-bottom: .5rem; }
.blog-list-card-with-image { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; }
.blog-list-body { flex: 1 1 16rem; min-width: 0; }
.blog-list-thumbnail { flex: 0 1 10rem; width: 10rem; max-width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--app-card-radius); }
.blog-cover-image { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; margin-bottom: 1.25rem; border-radius: var(--app-card-radius); }
.blog-list-card .blog-list-meta { justify-content: flex-start; gap: .5rem 1.25rem; margin-top: .75rem; font-size: .8125rem; }
.blog-list-category {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    max-width: 100%;
    padding: .2rem .65rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-card-radius);
    background: var(--app-bg);
    color: var(--mud-palette-primary);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}
.blog-list-title { flex: 1 1 16rem; min-width: 0; margin: 0; font-family: var(--app-font-family-heading); font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.blog-list-title a { color: var(--app-text); text-decoration: none; }
.blog-list-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--app-card-radius); }
.blog-list-title a:focus-visible { outline: none; }
.blog-list-title a:focus-visible::after { outline: 2px solid var(--mud-palette-primary); outline-offset: 3px; }
.blog-list-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    line-height: 1.6;
    color: var(--app-text-muted);
}
.blog-list-card a:hover { text-decoration: underline; }
.blog-list-card a:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 3px; }
.blog-post-card { padding: clamp(1rem, 3vw, 2rem); margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.blog-post-card h2 { font-family: var(--app-font-family-heading); font-size: 1.5rem; margin: 1rem 0; }
.blog-meta, .blog-tags, .blog-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.blog-meta, .blog-helper { color: var(--app-text-muted); font-size: .875rem; }
.blog-tags { margin: 1rem 0; }
.blog-tag { border: 1px solid var(--app-border); border-radius: var(--app-card-radius); padding: .2rem .6rem; }
.blog-read-more { display: inline-block; margin-top: .5rem; }
.blog-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.blog-filters label { flex: 1 1 12rem; min-width: 0; }
.blog-input { display: block; width: 100%; padding: .7rem; margin-top: .35rem; background: var(--app-surface); color: var(--app-text); border: 1px solid var(--app-border); border-radius: var(--app-card-radius); font: inherit; }
.blog-input:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }
.blog-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.blog-field-label { display: block; }
.blog-prose { line-height: 1.75; color: var(--app-text); overflow-wrap: anywhere; }
.blog-prose h2, .blog-prose h3, .blog-prose h4, .blog-prose h5, .blog-prose h6 { font-family: var(--app-font-family-heading); margin: 1.8rem 0 .75rem; }
.blog-prose h2 { font-size: 1.5rem; }
.blog-prose h3 { font-size: 1.25rem; }
.blog-prose p, .blog-prose ul, .blog-prose ol { margin-bottom: 1rem; }
.blog-prose ul, .blog-prose ol { padding-left: 1.5rem; }
.blog-prose blockquote { border-left: 3px solid var(--mud-palette-primary); padding-left: 1rem; margin: 1.2rem 0; color: var(--app-text-muted); }
.blog-prose pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: var(--app-bg); border: 1px solid var(--app-border); border-radius: var(--app-card-radius); white-space: pre; }
.blog-prose code { overflow-wrap: anywhere; }
.blog-prose pre code { overflow-wrap: normal; }
.blog-prose table { display: block; max-width: 100%; width: max-content; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; }
.blog-prose th, .blog-prose td { padding: .6rem; border: 1px solid var(--app-border); }

/* An offer's description, as the admin editor (Quill 2) writes it: a bullet list is
   <ol><li data-list="bullet"> with an empty ql-ui span for the marker. Global, not in the offer
   page's scoped CSS - the description is raw HTML inside a MudText, and scoped rules reach
   neither. Without it every bullet list on an offer showed numbered (NOEXP-607). */
.details-description-text li[data-list="bullet"] {
    list-style-type: disc;
}

.details-description-text .ql-ui {
    display: none;
}
