/* The home layouts keep their own reading order and use their existing links and disclosures. */
.market-home {
    --home-wash:color-mix(in srgb,var(--accent) 8%,transparent);
    --home-strong-wash:color-mix(in srgb,var(--accent) 17%,transparent);
}
.station-nav nav a {
    position:relative;
    isolation:isolate;
    text-underline-offset:.24em;
}
.station-nav nav a::before {
    content:"";
    position:absolute;
    z-index:-1;
    inset:var(--home-nav-inset,auto 0 0);
    min-height:2px;
    border-radius:var(--home-nav-radius,0);
    background:var(--home-nav-color,currentColor);
    opacity:0;
    transform:var(--home-nav-rest,scaleX(.48));
    transform-origin:var(--home-nav-origin,left);
    pointer-events:none;
}
.station-nav nav a:is(:hover,:focus-visible)::before {
    opacity:var(--home-nav-opacity,.75);
    transform:none;
}
.market-home a:focus-visible,
.market-home summary:focus-visible {
    outline:2px solid currentColor;
    outline-offset:4px;
}
.market-home #selection :is(h3 a,td a):is(:hover,:focus-visible),
.market-home .library-story h3 a:is(:hover,:focus-visible) {
    text-decoration-thickness:2px;
    text-underline-offset:.22em;
}
.market-home :is(#selection,#cases,#questions):target > h2 {
    text-decoration:underline;
    text-underline-offset:.32em;
    text-decoration-color:var(--accent);
}
.market-home summary {cursor:pointer}
.market-home .market-flow li:not(:last-child)::after {
    display:inline-block;
    transform-origin:left center;
}
.market-home .market-faq dt:is(:hover,:focus-within) .dashicons {
    background:var(--home-strong-wash);
    border-radius:var(--home-icon-radius,4px);
}
.market-home .library-story:focus-within {background:var(--home-wash)}
.market-home .library-story summary:focus-visible {outline-offset:2px}
.market-home .market-contact:active {box-shadow:inset 0 1px 3px #0004}
@media (hover:hover) {
    .market-home .library-story:has(h3 a:hover) {background:var(--home-wash)}
    .market-home .market-case-grid article:hover .market-flow li:not(:last-child)::after {
        transform:var(--home-flow-motion,translateX(2px));
    }
    .market-home :is(.cover-topic,.route-slot,.market-faq dt):hover .dashicons {
        transform:var(--home-icon-motion,translateY(-2px));
    }
    .market-home .market-visual:hover img {transform:var(--home-photo-motion,none)}
}
@media (prefers-reduced-motion:no-preference) {
    .station-nav nav a::before {transition:opacity .16s ease,transform .2s ease-out}
    .market-home .market-flow li::after {transition:transform .22s ease-out}
    .market-home .dashicons {transition:transform .21s ease-out,background-color .19s ease}
    .market-home .market-visual img {transition:transform .38s ease-out}
    .market-home .library-story {transition:background-color .18s ease}
}
@media (prefers-reduced-motion:reduce) {
    .station-nav nav a::before,
    .market-home .market-flow li::after,
    .market-home .dashicons,
    .market-home .market-visual img,
    .market-home .market-contact {transform:none!important;transition:none!important}
}

/* Distribution desk: follow the handoff across the comparison table. */
[data-brand="fenfajia"] {--home-nav-rest:scaleX(.18);--home-icon-motion:translateX(3px);--home-flow-motion:translateX(4px)}
[data-brand="fenfajia"] .route-comparison tr:is(:hover,:focus-within) th {
    background:var(--home-strong-wash);
    box-shadow:inset 3px 0 var(--accent);
}
[data-brand="fenfajia"] .market-case-grid article:hover .market-flow {text-decoration:underline;text-underline-offset:.32em}

/* Recruitment: active stage markers and a restrained view of the testing desk. */
[data-brand="neicequan"] {--home-nav-inset:0 -3px;--home-nav-radius:18px;--home-nav-rest:scale(.82);--home-nav-opacity:.095;--home-icon-motion:rotate(-12deg);--home-photo-motion:scale(1.035);--home-flow-motion:rotate(-10deg)}
[data-brand="neicequan"] .recruitment-stages li:is(:hover,:focus-within) .route-slot {
    text-decoration:underline;
    text-underline-offset:.24em;
}
[data-brand="neicequan"] .recruitment-stages li:is(:hover,:focus-within) {box-shadow:inset 0 -3px var(--accent)}

/* Re-signing: the open check remains identifiable while the user reads it. */
[data-brand="ipachongqian"] {--home-nav-inset:auto 16% -2px;--home-nav-origin:center;--home-nav-rest:scaleX(.3);--home-icon-motion:rotate(8deg) scale(1.08);--home-icon-radius:50%}
[data-brand="ipachongqian"] .route-checks details[open] > summary {box-shadow:inset 3px 0 var(--accent)}
[data-brand="ipachongqian"] .route-checks summary:is(:hover,:focus-visible) {background:var(--home-wash)}
[data-brand="ipachongqian"] .library-story:focus-within h3 {color:var(--accent)}

/* Enterprise: emphasise authorisation and acceptance evidence. */
[data-brand="qiyeqianwang"] {--home-nav-inset:0 auto 0 -5px;--home-nav-rest:scaleY(.25);--home-nav-origin:top;--home-icon-motion:scale(1.12);--home-flow-motion:scaleX(1.18)}
[data-brand="qiyeqianwang"] .station-nav nav a::before {width:2px}
[data-brand="qiyeqianwang"] .policy-list > div:is(:hover,:focus-within) dt {box-shadow:inset 0 -2px var(--accent)}
[data-brand="qiyeqianwang"] .market-case-grid article:hover h3 {text-decoration:underline;text-underline-offset:.26em}

/* APK signing: isolate the identity currently under inspection. */
[data-brand="apkqian"] {--home-nav-inset:2px -4px;--home-nav-radius:4px;--home-nav-rest:scaleX(.72);--home-nav-opacity:.11;--home-icon-motion:rotate(15deg);--home-flow-motion:translateX(2px) scale(1.16)}
[data-brand="apkqian"] .key-reference article:is(:hover,:focus-within) header {box-shadow:inset 0 -2px var(--accent)}
[data-brand="apkqian"] .key-reference article:is(:hover,:focus-within) .route-slot {color:var(--accent)}

/* False-positive review: keep the selected triage path visually active. */
[data-brand="apkwuba"] {--home-nav-inset:auto 23% -3px;--home-nav-radius:10px;--home-nav-origin:center;--home-nav-rest:scale(.4);--home-icon-motion:scale(1.1) translateY(-1px);--home-flow-motion:rotate(13deg)}
[data-brand="apkwuba"] .triage-list > div:has(details[open]) > dt {background:var(--home-wash)}
[data-brand="apkwuba"] .triage-list details[open] > summary {text-decoration:underline;text-underline-offset:.22em}
[data-brand="apkwuba"] .triage-list summary:is(:hover,:focus-visible) {color:var(--accent)}

/* Distribution journal: reveal the reading cue without moving the text. */
[data-brand="ipafenfa"] {--home-nav-inset:auto 0 -3px;--home-nav-origin:right;--home-nav-rest:scaleX(.22);--home-icon-motion:translateY(-3px);--home-photo-motion:scale(1.026) translateX(1%);--home-flow-motion:translate(2px,-1px)}
[data-brand="ipafenfa"] .journal-leads article:is(:hover,:focus-within) .route-slot {box-shadow:inset 0 -2px currentColor}
[data-brand="ipafenfa"] .library-story:has(h3 a:is(:hover,:focus-visible)) {box-shadow:inset 0 -2px var(--accent)}

/* App release: the selected rollout lane, rather than the whole board, reacts. */
[data-brand="yingyongfenfa"] {--home-nav-inset:auto -3px -2px;--home-nav-rest:skewX(-22deg) scaleX(.45);--home-icon-motion:translate(3px,-1px);--home-flow-motion:translateX(5px)}
[data-brand="yingyongfenfa"] [data-chooser="tracks"] li:is(:hover,:focus-within) {
    background:var(--home-wash);
    box-shadow:inset 0 2px var(--accent);
}
[data-brand="yingyongfenfa"] [data-chooser="tracks"] li:is(:hover,:focus-within) .route-slot {text-decoration:underline;text-underline-offset:.24em}

/* iOS lab: short emphasis on sample notes and their validation path. */
[data-brand="ipaneice"] {--home-nav-inset:1px -4px;--home-nav-radius:12px 4px;--home-nav-rest:translateY(2px);--home-nav-opacity:.1;--home-icon-motion:rotate(-7deg) translateY(-2px);--home-icon-radius:50% 35%}
[data-brand="ipaneice"] .lab-notes article:is(:hover,:focus-within) footer {box-shadow:inset 0 2px var(--accent)}
[data-brand="ipaneice"] .market-case-grid article:hover .market-flow {border-radius:6px;background:var(--home-wash)}

/* Android matrix: compare the row being read, with its evidence. */
[data-brand="apkneice"] {--home-nav-inset:auto 2px 0;--home-nav-rest:scaleX(.55);--home-nav-origin:center;--home-icon-motion:translateY(2px) scale(.94);--home-photo-motion:scale(1.022);--home-flow-motion:translateY(-2px)}
[data-brand="apkneice"] .environment-matrix tr:is(:hover,:focus-within) {background:var(--home-wash)}
[data-brand="apkneice"] .environment-matrix tr:is(:hover,:focus-within) th {box-shadow:inset 0 -2px var(--accent)}

/* Signed handoff ledger: mark the action as a record, not a moving card. */
[data-brand="qianmingipa"] {--home-nav-inset:0 0 auto;--home-nav-rest:scaleX(.25);--home-nav-origin:right;--home-icon-motion:rotate(7deg) scale(1.16);--home-flow-motion:scaleX(1.13)}
[data-brand="qianmingipa"] [data-chooser="ledger"] li:is(:hover,:focus-within) .route-slot {
    background:var(--home-wash);
    box-shadow:inset 0 -2px var(--accent);
}
[data-brand="qianmingipa"] .market-case-grid article:hover .market-flow {outline:1px dashed currentColor;outline-offset:4px}

/* IPA inspection: show the focused branch in the existing file tree. */
[data-brand="ipaqianming"] {--home-nav-inset:auto 0 -3px;--home-nav-radius:1px;--home-nav-rest:translateX(-3px) scaleX(.5);--home-icon-motion:translateX(4px) scale(1.06);--home-flow-motion:translate(1px,2px)}
[data-brand="ipaqianming"] .file-tree > div:is(:hover,:focus-within) dd {
    background:var(--home-wash);
    box-shadow:inset 3px 0 var(--accent);
}
[data-brand="ipaqianming"] .file-tree > div:is(:hover,:focus-within) dt {text-decoration:underline;text-underline-offset:.24em}
