/* ==========================================================================
   SKYLINE Supplier Portal — shared design tokens and chrome.

   Loaded by the three supplier-facing shells: funnel/register, funnel/thanks
   and supplier/layout (which in turn wraps start, login, forgot, activate,
   dashboard, rfqs, documents, messages).

   Before this file each shell declared its own :root. The wizard ran on
   --b1:#4338ca (indigo-700) while the portal ran on --b1:#4f46e5 (indigo-600),
   and neither was a Skyline colour, so the portal a supplier registers on did
   not look like the company they were registering with.

   Palette: structural blue from the Skyline logo. Red is the logo's accent and
   is used sparingly — required-field markers and the single primary call to
   action — so it keeps its meaning. It is deliberately NOT used for submit
   buttons, where green already carries "safe to proceed".

   Bootstrap 5.3.3 and Font Awesome 6.5.1 still load from their CDNs.
   ========================================================================== */

:root {
    /* Structural blue */
    --b1: #1d4ed8;  /* blue-700 — primary */
    --b1d: #1e40af; /* blue-800 — primary, pressed/deep */
    --b1l: #eff6ff; /* blue-50  — tinted surface */
    --b2: #2563eb;  /* blue-600 */
    --b3: #3b82f6;  /* blue-500 — gradient partner */

    /* Skyline red — scarce accent. Not a "danger" colour here; see --danger. */
    --accent: #dc2626;
    --accent-d: #b91c1c;
    --accent-l: #fef2f2;

    /* Ink and surfaces */
    --ink: #0f172a;
    --slate7: #334155;
    --muted: #64748b;
    --slate4: #94a3b8;
    --bg: #f1f5f9;      /* portal surfaces */
    --bg-alt: #eef2f8;  /* wizard surface — a touch cooler */
    --line: #e2e8f0;
    --line-soft: #e5e9f2;

    /* Status */
    --ok: #059669;      --okl: #ecfdf5;
    --warn: #d97706;    --warnl: #fff7ed;
    --danger: #dc2626;  --dangerl: #fef2f2;
    --info: #0891b2;    --infol: #ecfeff;

    /* Type */
    --head: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Language switcher (partials/lang_switch.blade.php)
   -------------------------------------------------------------------------- */
.pl-lang {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .26);
    line-height: 1;
    white-space: nowrap;
}
.pl-lang__opt {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.pl-lang__opt:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.pl-lang__opt.is-active { background: #fff; color: var(--b1); cursor: default; }
.pl-lang__opt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* On a light surface: the bare auth screens render no coloured app bar. */
.pl-lang--onlight { background: transparent; border-color: var(--line); }
.pl-lang--onlight .pl-lang__opt { color: var(--muted); }
.pl-lang--onlight .pl-lang__opt:hover { background: rgba(15, 23, 42, .05); color: var(--ink); }
.pl-lang--onlight .pl-lang__opt.is-active { background: var(--b1); color: #fff; }

/* `fixed` so it needs no positioned ancestor; inset-inline-end mirrors in RTL. */
.pl-lang--floating {
    position: fixed;
    top: 18px;
    inset-inline-end: 18px;
    z-index: 20;
    background: #fff;
    box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .45);
}

/* --------------------------------------------------------------------------
   Brand mark (partials/brand_mark.blade.php)
   -------------------------------------------------------------------------- */
.pl-brandmark__img {
    max-height: 52px;
    max-width: 220px;
    margin-bottom: 14px;
    display: inline-block;
}
.pl-brandmark__fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: linear-gradient(120deg, var(--b1), var(--b3));
    color: #fff;
    font-size: 22px;
}

/* --------------------------------------------------------------------------
   Shared chrome
   -------------------------------------------------------------------------- */

/* The app bar reads as one brand across the wizard, the thanks page and the
   portal, rather than three different indigos. */
.pl-appbar-bg {
    background: linear-gradient(120deg, var(--b1d) 0%, var(--b1) 55%, var(--b2) 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(30, 64, 175, .28);
}

/* Required-field marker: one of the two places Skyline red is allowed. */
.req:after { content: " *"; color: var(--accent); }
