/* =====================================================================
   legal-pages.css — WorkDu policy & help pages
   ---------------------------------------------------------------------
   ONE stylesheet shared by all the "long read" public pages:

       /faq              frontend/pages/faq.blade.php
       /privacy-policy   frontend/pages/privacy-policy.blade.php
       /terms-condition  frontend/pages/terms-condition.blade.php
       /refund-policy    frontend/pages/refund-policy.blade.php
       /data-deletion    frontend/pages/data-deletion.blade.php
       /{slug}           frontend/pages/custom_page.blade.php (admin pages)

   They share a hero, a sticky table of contents and a reading column, so
   they share a file. Every page except the FAQ is drawn by one component,
   components/policy-page.blade.php (WDU-CNT-05, docs/policy-pages.md). Do NOT inline a copy into one of the Blades: the
   network pages learnt that the hard way and the copies drifted.

   Loaded through @push('page-css'), i.e. the LAST stylesheet in <head>.
   Colours come from the --wds-* tokens declared on body.li-app in
   workdu-ui.css, which every page on frontend/layouts/app.blade.php has.

   The prose block matters most. Three of these pages render rich text an
   admin typed into a CKEditor field, so the markup is bare h2/p/ul with
   no classes to hook. Everything is styled from `.wdl-prose` down — never
   from a class on the element, because nothing can put one there. (The
   old markup asked Tailwind's `prose prose-lg max-w-none` to do this job.
   Tailwind is not served on this site, so those classes were inert and
   the pages rendered as 1600px-wide unstyled HTML.)
   ===================================================================== */

/* =====================================================================
   1. HERO
   The wrapper keeps the stock `.breadcrumbs` class purely for its fixed
   navbar clearance (160px, 140px under 1200px) so this never has to track
   the header height itself. Everything else below overrides it.
   ===================================================================== */
.wdl-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 56px;
    background: linear-gradient(180deg, #eaf2fe 0%, #f4f8fd 55%, var(--wds-bg, #f3f6fb) 100%);
    border-bottom: 1px solid var(--wds-line, #e4eaf3);
}

/* Soft brand glow, kept behind the text and out of the way of clicks. */
.wdl-hero::before,
.wdl-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.wdl-hero::before {
    width: 520px;
    height: 520px;
    top: -260px;
    inset-inline-start: -160px;
    background: radial-gradient(circle, rgba(24, 117, 229, .16) 0%, rgba(24, 117, 229, 0) 70%);
}

.wdl-hero::after {
    width: 420px;
    height: 420px;
    bottom: -240px;
    inset-inline-end: -120px;
    background: radial-gradient(circle, rgba(90, 63, 158, .12) 0%, rgba(90, 63, 158, 0) 70%);
}

/* 1120px, centred — the same box as `.wdl-shell` below, so the hero title
   starts exactly above the contents rail instead of out at the container
   edge. The measure of the text itself is capped on the children. */
.wdl-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin-inline: auto;
}

.wdl-hero__inner > h1,
.wdl-hero__inner > .wdl-hero__title { max-width: 20ch; }

.wdl-hero--center .wdl-hero__inner { text-align: center; }

.wdl-hero--center .wdl-hero__inner > h1,
.wdl-hero--center .wdl-hero__inner > .wdl-hero__title { max-width: none; }

.wdl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 13px;
    border-radius: var(--wds-pill, 999px);
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--wds-blue-100, #dbe9fd);
    color: var(--wds-blue, #1875e5);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wdl-eyebrow svg { width: 14px; height: 14px; }

.wdl-hero h1,
.wdl-hero .wdl-hero__title {
    margin: 16px 0 0;
    font-family: var(--wds-font-display, "Plus Jakarta Sans", system-ui, sans-serif);
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--wds-ink, #0d1526);
}

.wdl-hero__lead {
    margin: 14px 0 0;
    max-width: 62ch;
    font-size: 16px;
    line-height: 1.65;
    color: var(--wds-ink-2, #4c586e);
}

.wdl-hero--center .wdl-hero__lead { margin-inline: auto; }

/* Breadcrumb + "last updated", one row under the lead. */
.wdl-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 22px;
    font-size: 13.5px;
    color: var(--wds-ink-3, #5f6b7f);
}

.wdl-hero--center .wdl-hero__meta { justify-content: center; }

.wdl-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wdl-crumbs li { display: flex; align-items: center; gap: 8px; }
.wdl-crumbs li + li::before { content: "/"; color: var(--wds-line-mid, #d3dcea); }
.wdl-crumbs a { color: var(--wds-ink-2, #4c586e); text-decoration: none; }
.wdl-crumbs a:hover { color: var(--wds-blue, #1875e5); text-decoration: underline; }
.wdl-crumbs [aria-current="page"] { color: var(--wds-ink, #0d1526); font-weight: 600; }

.wdl-stamp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 26px;
    padding: 0 11px;
    border-radius: var(--wds-pill, 999px);
    background: #fff;
    border: 1px solid var(--wds-line, #e4eaf3);
    color: var(--wds-ink-2, #4c586e);
    font-size: 12.5px;
    font-weight: 600;
}

.wdl-stamp svg { width: 13px; height: 13px; color: var(--wds-ink-3, #5f6b7f); }

/* =====================================================================
   2. SHELL — sticky table of contents + reading column
   ===================================================================== */
.wdl-page { background: var(--wds-bg, #f3f6fb); padding: 40px 0 64px; }

.wdl-shell {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 32px;
    max-width: 1120px;
    margin-inline: auto;
    align-items: start;
}

/* The sticky offset resolves inside the body scrollport (main.css makes
   html+body 100% tall with overflow-y:auto), which starts about 60px below
   the viewport top - so this lands the rail roughly 40px under the fixed
   navbar. Measured, not derived: check it if the header height changes. */
.wdl-aside { position: sticky; top: 32px; }

.wdl-toc {
    background: var(--wds-surface, #fff);
    border: 1px solid var(--wds-line, #e4eaf3);
    border-radius: var(--wds-r, 14px);
    box-shadow: var(--wds-shadow-card, 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05));
    padding: 18px 16px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.wdl-toc__title {
    margin: 0 0 12px;
    padding: 0 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--wds-ink-3, #5f6b7f);
}

.wdl-toc ol,
.wdl-toc ul { margin: 0; padding: 0; list-style: none; }

.wdl-toc a {
    display: block;
    padding: 8px 10px;
    border-radius: 9px;
    border-inline-start: 2px solid transparent;
    font-size: 14px;
    line-height: 1.45;
    color: var(--wds-ink-2, #4c586e);
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.wdl-toc a:hover { background: var(--wds-fill, #eef2f8); color: var(--wds-ink, #0d1526); }

.wdl-toc a.is-active {
    background: var(--wds-blue-tint, #eef5fe);
    border-inline-start-color: var(--wds-blue, #1875e5);
    color: var(--wds-blue, #1875e5);
    font-weight: 600;
}

/* h3 sections nest under their h2 (legal-pages.js). */
.wdl-toc ul ul { margin: 2px 0 6px; padding-inline-start: 12px; }
.wdl-toc ul ul a { padding: 6px 10px; font-size: 13px; }

.wdl-card {
    background: var(--wds-surface, #fff);
    border: 1px solid var(--wds-line, #e4eaf3);
    border-radius: var(--wds-r, 14px);
    box-shadow: var(--wds-shadow-card, 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05));
    padding: 40px 44px;
}

/* ---------------------------------------------------------------------
   Document header of the policy layout (components/policy-page):
   effective date, last updated, print. WDU-CNT-05.
   --------------------------------------------------------------------- */
.wdl-doc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--wds-line-soft, #eef2f8);
}

.wdl-dates { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.wdl-dates__item { display: flex; flex-direction: column; gap: 2px; }

.wdl-dates dt {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--wds-ink-3, #5f6b7f);
}

.wdl-dates dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--wds-ink, #0d1526); }

.wdl-print {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--wds-line-mid, #d3dcea);
    border-radius: var(--wds-pill, 999px);
    background: var(--wds-surface, #fff);
    color: var(--wds-ink-2, #4c586e);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.wdl-print[hidden] { display: none; }
.wdl-print svg { width: 16px; height: 16px; }
.wdl-print:hover { background: var(--wds-fill, #eef2f8); color: var(--wds-ink, #0d1526); }
.wdl-print:focus-visible,
.wdl-toc-mobile summary:focus-visible { outline: 2px solid var(--wds-blue, #1875e5); outline-offset: 2px; }

/* The rail's stand-in under 992px; hidden on wide screens. */
.wdl-toc-mobile { display: none; margin: 0 0 24px; border: 1px solid var(--wds-line, #e4eaf3); border-radius: 12px; }
.wdl-toc-mobile[hidden] { display: none !important; }

.wdl-toc-mobile summary {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wds-ink, #0d1526);
    cursor: pointer;
}

.wdl-toc-mobile nav { padding: 0 8px 10px; max-height: 60vh; overflow-y: auto; }
.wdl-toc-mobile ul { margin: 0; padding: 0; list-style: none; }
.wdl-toc-mobile ul ul { padding-inline-start: 14px; }

.wdl-toc-mobile a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--wds-ink-2, #4c586e);
    text-decoration: none;
}

.wdl-toc-mobile ul ul a { font-size: 13.5px; }
.wdl-toc-mobile a:hover { background: var(--wds-fill, #eef2f8); color: var(--wds-ink, #0d1526); }

/* =====================================================================
   3. PROSE — the only hook the CKEditor HTML gives us
   ===================================================================== */
.wdl-prose {
    font-size: 15.5px;
    line-height: 1.78;
    color: var(--wds-ink-2, #4c586e);
    /* Long legal copy is unreadable edge to edge; cap the measure even when
       the card is wider on a large screen. */
    max-width: 74ch;
}

.wdl-prose > *:first-child { margin-top: 0; }
.wdl-prose > *:last-child { margin-bottom: 0; }

.wdl-prose h1,
.wdl-prose h2 {
    margin: 44px 0 14px;
    padding-top: 26px;
    border-top: 1px solid var(--wds-line-soft, #eef2f8);
    font-family: var(--wds-font-display, "Plus Jakarta Sans", system-ui, sans-serif);
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--wds-ink, #0d1526);
    scroll-margin-top: 104px;
}

.wdl-prose > h1:first-child,
.wdl-prose > h2:first-child,
/* The live policies wrap their text in one <div class="...-content">. */
.wdl-prose > div:first-child > h1:first-child,
.wdl-prose > div:first-child > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.wdl-prose h3 {
    margin: 30px 0 10px;
    font-family: var(--wds-font-display, "Plus Jakarta Sans", system-ui, sans-serif);
    font-size: 17.5px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--wds-ink, #0d1526);
    scroll-margin-top: 104px;
}

.wdl-prose h4,
.wdl-prose h5,
.wdl-prose h6 {
    margin: 24px 0 8px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--wds-ink, #0d1526);
}

.wdl-prose p { margin: 0 0 16px; }
.wdl-prose strong, .wdl-prose b { color: var(--wds-ink, #0d1526); font-weight: 600; }
.wdl-prose em { color: var(--wds-ink-2, #4c586e); }

/* !important, deliberately. Links inside the prose come out of CKEditor with
   no class of their own, and linkedin-theme.css paints every classless <a>
   LinkedIn blue from a selector carrying six :not() clauses — specificity
   (0,7,1). No sane selector here beats that, and the page would otherwise
   carry two different blues. Only `color` is forced; nothing else. */
.wdl-prose a {
    color: var(--wds-blue, #1875e5) !important;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--wds-blue-100, #dbe9fd);
}

.wdl-prose a:hover {
    color: var(--wds-blue-hover, #1466cc) !important;
    text-decoration-color: currentColor;
}

.wdl-prose ul,
.wdl-prose ol { margin: 0 0 18px; padding: 0; list-style: none; }

.wdl-prose li {
    position: relative;
    padding-inline-start: 26px;
    margin-bottom: 9px;
}

/* :not(.wdl-timeline) — the timeline is a <ul> too, and it draws its own
   dot and rail. Without this it gets both markers. */
.wdl-prose ul:not(.wdl-timeline) > li::before {
    content: "";
    position: absolute;
    inset-inline-start: 6px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wds-blue, #1875e5);
    opacity: .55;
}

.wdl-prose ol { counter-reset: wdl-ol; }

.wdl-prose ol > li {
    counter-increment: wdl-ol;
    padding-inline-start: 32px;
}

.wdl-prose ol > li::before {
    content: counter(wdl-ol);
    position: absolute;
    inset-inline-start: 0;
    top: 3px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--wds-blue-tint, #eef5fe);
    color: var(--wds-blue, #1875e5);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 21px;
    text-align: center;
}

.wdl-prose li > ul,
.wdl-prose li > ol { margin: 9px 0 0; }

.wdl-prose blockquote {
    margin: 22px 0;
    padding: 14px 20px;
    border-inline-start: 3px solid var(--wds-blue, #1875e5);
    background: var(--wds-blue-tint, #eef5fe);
    border-radius: 0 var(--wds-r-sm, 8px) var(--wds-r-sm, 8px) 0;
    color: var(--wds-ink, #0d1526);
}

.wdl-prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--wds-line-soft, #eef2f8); }

.wdl-prose img { max-width: 100%; height: auto; border-radius: var(--wds-r-sm, 8px); }

/* A wide table must scroll inside its own box, never widen the page. */
.wdl-prose table {
    width: 100%;
    margin: 0 0 20px;
    border-collapse: collapse;
    font-size: 14.5px;
}

.wdl-prose th,
.wdl-prose td {
    padding: 10px 14px;
    border: 1px solid var(--wds-line, #e4eaf3);
    text-align: start;
}

.wdl-prose th {
    background: var(--wds-surface-3, #eef2f8);
    color: var(--wds-ink, #0d1526);
    font-weight: 600;
}

.wdl-prose__scroll { overflow-x: auto; }

/* =====================================================================
   4. CALLOUT, FACTS, METHOD CARDS, TIMELINE
   Used by data-deletion; available to any page on this stylesheet.
   ===================================================================== */
.wdl-callout {
    display: flex;
    gap: 14px;
    margin: 0 0 28px;
    padding: 18px 20px;
    border-radius: var(--wds-r, 14px);
    background: var(--wds-blue-tint, #eef5fe);
    border: 1px solid var(--wds-blue-100, #dbe9fd);
}

.wdl-callout--warn {
    background: var(--wds-amber-tint, #fdf4e4);
    border-color: var(--wds-amber-line, #f0dcae);
}

.wdl-callout__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--wds-blue, #1875e5);
}

.wdl-callout--warn .wdl-callout__icon { color: var(--wds-amber, #a76a06); }
.wdl-callout__icon svg { width: 18px; height: 18px; }
.wdl-callout__body { min-width: 0; }
.wdl-callout__body > *:last-child { margin-bottom: 0; }

/* Qualified by .wdl-callout so it outranks `.wdl-prose p` inside a card. */
.wdl-callout .wdl-callout__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--wds-ink, #0d1526);
}

/* Key facts, three or four to a row. */
.wdl-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 30px;
}

.wdl-fact {
    padding: 16px 18px;
    border-radius: var(--wds-r-sm, 8px);
    background: var(--wds-surface-2, #f7f9fc);
    border: 1px solid var(--wds-line, #e4eaf3);
}

.wdl-fact__value {
    font-family: var(--wds-font-display, "Plus Jakarta Sans", system-ui, sans-serif);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--wds-blue, #1875e5);
}

.wdl-fact__label {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--wds-ink-2, #4c586e);
}

.wdl-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 0 0 26px;
}

.wdl-method {
    padding: 20px;
    border-radius: var(--wds-r, 14px);
    background: var(--wds-surface, #fff);
    border: 1px solid var(--wds-line, #e4eaf3);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.wdl-method:hover {
    border-color: var(--wds-blue-100, #dbe9fd);
    box-shadow: var(--wds-shadow-lift, 0 2px 6px rgba(16, 24, 40, .06), 0 12px 24px rgba(16, 24, 40, .08));
    transform: translateY(-2px);
}

.wdl-method__step {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--wds-blue-tint, #eef5fe);
    color: var(--wds-blue, #1875e5);
    font-size: 13px;
    font-weight: 700;
}

.wdl-method h3 { margin: 0 0 6px; font-size: 16px; }
.wdl-method p { margin: 0; font-size: 14.5px; line-height: 1.65; }

/* Vertical timeline for "what happens when". */
.wdl-timeline { margin: 0 0 26px; padding: 0; list-style: none; }

.wdl-timeline li {
    position: relative;
    padding: 0 0 22px 30px;
    margin: 0;
}

.wdl-timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--wds-blue, #1875e5);
}

.wdl-timeline li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--wds-line, #e4eaf3);
}

.wdl-timeline li:last-child { padding-bottom: 0; }
.wdl-timeline li:last-child::after { display: none; }

.wdl-timeline__when {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--wds-blue, #1875e5);
}

.wdl-timeline__what { display: block; margin-top: 2px; }

/* RTL: the timeline rail is geometric, so it is mirrored explicitly. */
[dir="rtl"] .wdl-timeline li { padding: 0 30px 22px 0; }
[dir="rtl"] .wdl-timeline li::before { left: auto; right: 0; }
[dir="rtl"] .wdl-timeline li::after { left: auto; right: 5px; }

/* =====================================================================
   5. FOOTER STRIP — sibling policies, shown on every legal page
   ===================================================================== */
.wdl-related {
    margin-top: 26px;
    padding: 22px 24px;
    border-radius: var(--wds-r, 14px);
    background: var(--wds-surface, #fff);
    border: 1px solid var(--wds-line, #e4eaf3);
}

.wdl-related__title {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--wds-ink-3, #5f6b7f);
}

.wdl-related__links { display: flex; flex-wrap: wrap; gap: 10px; }

.wdl-related__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: var(--wds-pill, 999px);
    background: var(--wds-fill, #eef2f8);
    border: 1px solid transparent;
    color: var(--wds-ink, #0d1526);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.wdl-related__links a:hover {
    background: var(--wds-blue-tint, #eef5fe);
    border-color: var(--wds-blue-100, #dbe9fd);
    color: var(--wds-blue, #1875e5);
}

.wdl-related__links svg { width: 15px; height: 15px; }
[dir="rtl"] .wdl-related__links svg { transform: scaleX(-1); }

/* =====================================================================
   6. FAQ
   ===================================================================== */
.wdl-search {
    position: relative;
    max-width: 540px;
    margin: 26px auto 0;
}

/* z-index is required, not tidiness: the theme gives every input
   position:relative, and an input that follows this icon in the DOM paints
   its white background straight over it. */
.wdl-search svg {
    position: absolute;
    z-index: 2;
    inset-inline-start: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--wds-ink-2, #4c586e);
    pointer-events: none;
}

/* Written as body.li-app input.wdl-search__input so it outranks the theme's
   body.li-app input[type="text"] rule, which is !important at (0,2,1). */
body.li-app input.wdl-search__input {
    width: 100%;
    height: 52px !important;
    padding: 0 20px 0 48px !important;
    border-radius: var(--wds-pill, 999px) !important;
    border: 1px solid var(--wds-line-mid, #d3dcea) !important;
    background: #fff !important;
    box-shadow: var(--wds-shadow-card, 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05)) !important;
    color: var(--wds-ink, #0d1526) !important;
    font-size: 15px;
}

[dir="rtl"] body.li-app input.wdl-search__input { padding: 0 48px 0 20px !important; }

body.li-app input.wdl-search__input:focus {
    border-color: var(--wds-blue, #1875e5) !important;
    box-shadow: 0 0 0 4px var(--wds-ring, rgba(24, 117, 229, .30)) !important;
    outline: none;
}

body.li-app input.wdl-search__input::placeholder { color: var(--wds-ink-3, #5f6b7f); }

.wdl-faq__group { margin-bottom: 34px; }
.wdl-faq__group:last-of-type { margin-bottom: 0; }

.wdl-faq__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    scroll-margin-top: 104px;
}

.wdl-faq__heading h2 {
    margin: 0;
    font-family: var(--wds-font-display, "Plus Jakarta Sans", system-ui, sans-serif);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--wds-ink, #0d1526);
    text-transform: capitalize;
}

.wdl-faq__count {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--wds-pill, 999px);
    /* blue-100, not blue-tint: the tint is a white-surface colour and all but
       disappears against the page's own grey ground. */
    background: var(--wds-blue-100, #dbe9fd);
    color: var(--wds-blue-active, #0f52a8);
    font-size: 12px;
    font-weight: 700;
}

.wdl-faq__list { display: flex; flex-direction: column; gap: 10px; }

.wdl-qa {
    background: var(--wds-surface, #fff);
    border: 1px solid var(--wds-line, #e4eaf3);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.wdl-qa:hover { border-color: var(--wds-line-mid, #d3dcea); }

.wdl-qa.is-open {
    border-color: var(--wds-blue-100, #dbe9fd);
    box-shadow: var(--wds-shadow-card, 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05));
}

.wdl-qa__btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 17px 20px;
    border: 0;
    background: transparent;
    color: var(--wds-ink, #0d1526);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.5;
    text-align: start;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.wdl-qa__btn:hover { background: var(--wds-surface-2, #f7f9fc); }
.wdl-qa.is-open .wdl-qa__btn { color: var(--wds-blue, #1875e5); }

.wdl-qa__btn:focus-visible {
    outline: 2px solid var(--wds-blue, #1875e5);
    outline-offset: -2px;
}

.wdl-qa__q { flex: 1 1 auto; min-width: 0; }

.wdl-qa__chev {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--wds-fill, #eef2f8);
    color: var(--wds-ink-2, #4c586e);
    transition: transform .22s ease, background .15s ease, color .15s ease;
}

.wdl-qa__chev svg { width: 15px; height: 15px; }

.wdl-qa.is-open .wdl-qa__chev {
    transform: rotate(180deg);
    background: var(--wds-blue, #1875e5);
    color: #fff;
}

/* Height animation with no JS measuring: grid-template-rows 0fr -> 1fr. */
.wdl-qa__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .24s ease;
}

.wdl-qa.is-open .wdl-qa__panel { grid-template-rows: 1fr; }
.wdl-qa__panel > div { overflow: hidden; }

.wdl-qa__answer {
    padding: 0 20px 18px 20px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--wds-ink-2, #4c586e);
}

.wdl-qa__answer > *:last-child { margin-bottom: 0; }
.wdl-qa__answer p { margin: 0 0 12px; }
/* Same story as `.wdl-prose a`: CKEditor answers, classless links. */
.wdl-qa__answer a { color: var(--wds-blue, #1875e5) !important; }

.wdl-empty {
    padding: 44px 20px;
    text-align: center;
    color: var(--wds-ink-3, #5f6b7f);
    font-size: 15px;
}

.wdl-empty strong {
    display: block;
    margin-bottom: 4px;
    color: var(--wds-ink, #0d1526);
    font-size: 16px;
}

/* Mobile category picker, shown in place of the sticky rail. */
.wdl-chips {
    display: none;
    gap: 8px;
    margin: 0 0 20px;
    padding-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wdl-chips::-webkit-scrollbar { display: none; }

.wdl-chips a {
    flex: 0 0 auto;
    padding: 8px 15px;
    border-radius: var(--wds-pill, 999px);
    background: #fff;
    border: 1px solid var(--wds-line, #e4eaf3);
    color: var(--wds-ink-2, #4c586e);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.wdl-chips a.is-active {
    background: var(--wds-blue, #1875e5);
    border-color: var(--wds-blue, #1875e5);
    color: #fff;
}

/* Keep the RAG assistant box and the newsletter strip on the page's ground. */
.wdl-after { background: var(--wds-bg, #f3f6fb); padding-bottom: 8px; }

/* =====================================================================
   7. RESPONSIVE
   ===================================================================== */
@media (max-width: 1199.98px) {
    .wdl-hero { padding-bottom: 44px; }
    .wdl-shell { grid-template-columns: 232px minmax(0, 1fr); gap: 24px; }
    .wdl-card { padding: 32px 30px; }
}

@media (max-width: 991.98px) {
    .wdl-hero h1, .wdl-hero .wdl-hero__title { font-size: 32px; }
    .wdl-shell { grid-template-columns: minmax(0, 1fr); }
    .wdl-aside { display: none; }
    .wdl-toc-mobile { display: block; }
    .wdl-chips { display: flex; }
    .wdl-prose { max-width: none; }
}

@media (max-width: 575.98px) {
    .wdl-hero { padding-bottom: 34px; }
    .wdl-hero h1, .wdl-hero .wdl-hero__title { font-size: 26px; }
    .wdl-hero__lead { font-size: 15px; }
    .wdl-page { padding: 26px 0 44px; }
    .wdl-card { padding: 24px 18px; border-radius: 12px; }
    .wdl-prose { font-size: 15px; }
    .wdl-prose h1, .wdl-prose h2 { font-size: 20px; margin-top: 34px; padding-top: 20px; }
    .wdl-prose h3 { font-size: 16.5px; }
    .wdl-qa__btn { padding: 15px 16px; font-size: 15px; gap: 12px; }
    .wdl-qa__answer { padding: 0 16px 16px; }
    .wdl-related { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .wdl-qa__panel,
    .wdl-qa__chev,
    .wdl-method { transition: none; }
}

/* =====================================================================
   8. PRINT — people do print policy pages
   ===================================================================== */
@media print {
    /* The site chrome: header, footer, cookie and chat widgets. This sheet
       only loads on the long-read pages, so the selectors stay here. */
    .above-fold,
    .wdu-footer,
    #cc--main,
    .wdl-hero::before,
    .wdl-hero::after,
    .wdl-eyebrow,
    .wdl-hero__meta,
    .wdl-aside,
    .wdl-toc-mobile,
    .wdl-print,
    .wdl-chips,
    .wdl-search,
    .wdl-related,
    .wdl-after { display: none !important; }

    .wdl-page, .wdl-hero { background: #fff !important; padding: 0 !important; border: 0 !important; }
    .wdl-hero__inner { max-width: none !important; margin: 0 0 14pt !important; }
    .wdl-hero h1 { margin: 0 0 6px !important; font-size: 22pt !important; color: #000 !important; }
    .wdl-hero__lead { color: #000 !important; }
    .wdl-card { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
    .wdl-shell { display: block !important; max-width: none !important; }
    .wdl-qa__panel { grid-template-rows: 1fr !important; }
    .wdl-prose { max-width: none; color: #000; font-size: 11pt; }

    .wdl-doc-meta { margin-bottom: 16pt; padding-bottom: 10pt; border-bottom: 1px solid #999; }
    .wdl-dates dt, .wdl-dates dd { color: #000; }
    /* Where the copy came from, since the address bar does not print. */
    .wdl-doc-meta::after { content: attr(data-print-url); flex-basis: 100%; font-size: 9pt; color: #444; }

    .wdl-prose h2, .wdl-prose h3 { break-after: avoid; page-break-after: avoid; }
    .wdl-prose li, .wdl-prose tr { break-inside: avoid; }
    .wdl-prose p { orphans: 3; widows: 3; }
    /* A link is useless on paper unless its address is printed. (Mail
       links already show the address as their text.) */
    .wdl-prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 85%; word-break: break-all; }
}
