/* What's New (/new-features) and every release page under it: wn-*. Loaded after public-skin.css, whose tokens (sk-*)
   and fluted field it uses.
   The list: compact glass tiles on one fluted field (wn-tiles), the same recipe as the Chip In 4 band above them and
   the Pricing "newest tools" cards.
   A release page (Components/Pages/NewFeatures/FeaturePage.razor): a cover in the area's colour (pv-cover is-feature),
   three facts, stories that pair words with a stage (mw-story + PublicStage), a short list of what else is there,
   the setup steps, and the fine print. No screenshots, galleries or videos.
   wn-tone-* sets the cover's colours and tints the stages that have no tone of their own, so a page keeps one hue.
   Every colour is paired for light and dark. Nothing here moves on its own; the stages do, and they stop under
   prefers-reduced-motion. */

/* ---- Tones ------------------------------------------------------------------------------------------------------- */
.wn { --f1: #d3dbe6; --f2: #e3e8ef; --f3: #dde3eb; --f4: #cfd8e4; }
[data-bs-theme="dark"] .wn { --f1: #2a3447; --f2: #202838; --f3: #1c2433; --f4: #253043; }
.wn-tone-accounts { --f1: #a6e9de; --f2: #cff5ee; --f3: #d7f0fa; --f4: #bfe2fa; }
[data-bs-theme="dark"] .wn-tone-accounts { --f1: #0f766e; --f2: #0b4f4a; --f3: #0d3a52; --f4: #124a78; }
.wn-tone-liabilities { --f1: #ffc6cd; --f2: #ffe0e4; --f3: #ffeadf; --f4: #ffd8c2; }
[data-bs-theme="dark"] .wn-tone-liabilities { --f1: #a12a3c; --f2: #6b1e2c; --f3: #47202a; --f4: #6a321c; }
.wn-tone-investments { --f1: #9ee2bf; --f2: #cbf2de; --f3: #d9f4ec; --f4: #bfe9e2; }
[data-bs-theme="dark"] .wn-tone-investments { --f1: #0f7a52; --f2: #0b4c37; --f3: #0b3a3a; --f4: #0d4d57; }
.wn-tone-couple { --f1: #a8c7ff; --f2: #d3e2ff; --f3: #fff3cf; --f4: #ffd874; }
[data-bs-theme="dark"] .wn-tone-couple { --f1: #2456cf; --f2: #1c3a8e; --f3: #6a4a12; --f4: #b98519; }
.wn-tone-services { --f1: #c7d6f9; --f2: #d9e3fb; --f3: #d2ecf3; --f4: #b5e6e2; }
[data-bs-theme="dark"] .wn-tone-services { --f1: #6d7991; --f2: #27375f; --f3: #123e63; --f4: #116a70; }

/* A stage without a tone of its own takes the page's hue in its panel; the field under it stays the calm slate. */
.wn-tone-accounts .ps-stage:not([class*="ps-tone-"]) { --ps-accent: #0d9488; }
[data-bs-theme="dark"] .wn-tone-accounts .ps-stage:not([class*="ps-tone-"]) { --ps-accent: #2dd4bf; }
.wn-tone-liabilities .ps-stage:not([class*="ps-tone-"]) { --ps-accent: #d63a50; }
[data-bs-theme="dark"] .wn-tone-liabilities .ps-stage:not([class*="ps-tone-"]) { --ps-accent: #f87171; }
.wn-tone-investments .ps-stage:not([class*="ps-tone-"]) { --ps-accent: #15803d; }
[data-bs-theme="dark"] .wn-tone-investments .ps-stage:not([class*="ps-tone-"]) { --ps-accent: #34d399; }
.wn-tone-services .ps-stage:not([class*="ps-tone-"]) { --ps-accent: #212836; }
[data-bs-theme="dark"] .wn-tone-services .ps-stage:not([class*="ps-tone-"]) { --ps-accent: #dadee7; }

/* ---- The list: glass tiles on one field --------------------------------------------------------------------------- */
.wn-library { padding-block: 40px clamp(56px, 7vw, 92px); }
.wn-library-heading { margin-bottom: 22px; }
.wn-library-heading h2 { margin: 0 0 6px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
.wn-library-heading p { margin: 0; font-size: 15px; line-height: 1.6; }
.wn-tiles { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: clamp(12px, 1.5vw, 20px); border-radius: var(--sk-round); background: var(--b3); list-style: none; }
.wn-tiles::before, .wn-tiles::after { content: ""; position: absolute; z-index: -1; left: -24px; right: -24px; filter: blur(12px); pointer-events: none; background-size: 56% 100%; animation: sk-drift 40s ease-in-out infinite alternate; }
.wn-tiles::before { top: -24px; bottom: 40%; background-image: linear-gradient(90deg, var(--t1) 0, var(--t2) 25%, var(--t3) 25%, var(--t4) 50%, var(--t5) 50%, var(--t6) 75%, var(--t7) 75%, var(--t8) 100%); }
.wn-tiles::after { top: 44%; bottom: -24px; background-image: linear-gradient(90deg, var(--b1) 0, var(--b2) 25%, var(--b3) 25%, var(--b4) 50%, var(--b5) 50%, var(--b6) 75%, var(--b7) 75%, var(--b8) 100%); animation-direction: alternate-reverse; }
[data-bs-theme="dark"] .wn-tiles::before, [data-bs-theme="dark"] .wn-tiles::after { filter: blur(12px) saturate(.92) brightness(.82); }
.wn-tile { --wn-glass: rgba(255, 255, 255, .78); display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 13px; min-height: 78px; padding: 12px 14px; border-radius: 14px; background: var(--wn-glass); -webkit-backdrop-filter: var(--sk-blur); backdrop-filter: var(--sk-blur); box-shadow: var(--sk-shadow); color: var(--sk-ink); transition: background-color .2s ease, transform .2s ease; }
[data-bs-theme="dark"] .wn-tile { --wn-glass: rgba(11, 14, 24, .72); }
.wn .wn-tile:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--wn-glass) 86%, var(--sk-solid)); color: var(--sk-ink); transform: translateY(-1px); }
.wn .wn-tile:focus-visible { outline: 2px solid var(--sk-ink); outline-offset: 2px; }
.wn-tile-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--sk-well); font-size: 20px; }
.wn-tile-copy { min-width: 0; }
.wn-tile-copy > small { display: block; overflow: hidden; color: var(--sk-sub); font-size: 11.5px; font-weight: 600; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.wn-tile-copy > b { display: block; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -.012em; text-overflow: ellipsis; white-space: nowrap; }
.wn-tile-copy > span { display: block; overflow: hidden; color: var(--sk-sub); font-size: 12.5px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.wn-tile > i { color: var(--sk-sub); font-size: 18px; transition: transform .2s ease, color .2s ease; }
.wn-tile:is(:hover, :focus-visible) > i { color: var(--sk-ink); transform: translateX(2px); }

/* ---- A release page ------------------------------------------------------------------------------------------------ */
/* The cover: shorter than the What's New cover, in the area's colour, with the trail above the label. */
.pv-cover.is-feature { min-height: 0; padding: clamp(124px, 11vw, 160px) 0 clamp(32px, 4vw, 56px); background: linear-gradient(180deg, transparent 40%, var(--pv-page) 94%), linear-gradient(100deg, var(--f1) 0%, var(--f2) 36%, var(--f3) 70%, var(--f4) 100%); }
.pv .pv-cover.is-feature h1 { font-size: clamp(36px, 5vw, 68px); line-height: 1.06; }
.pv-cover.is-feature .pv-cover-lead { max-width: 41em; margin-top: 20px; font-size: 17px; }
.pv-cover.is-feature .pv-cover-actions { margin-top: 30px; }
.wn-crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin-bottom: 18px; color: var(--pv-ink); font-size: 12.5px; }
.wn-crumbs > * { opacity: .66; }
.wn-crumbs a { color: inherit; font-weight: 600; }
.wn-crumbs a:hover { color: inherit; opacity: 1; }
.wn-crumbs i { font-size: 15px; opacity: .45; }

/* Three facts under the cover, on hairlines. */
.wn-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; margin: clamp(4px, 1.5vw, 20px) auto 0; padding: 0; border-block: 1px solid var(--pv-line); list-style: none; }
.wn-facts > li { padding: 20px 28px 21px; }
.wn-facts > li + li { border-left: 1px solid var(--pv-line); }
.wn-facts b { display: block; color: var(--pv-ink); font-size: clamp(19px, 1.9vw, 25px); font-weight: 500; line-height: 1.25; letter-spacing: -.028em; }
.wn-facts span { display: block; margin-top: 4px; color: var(--pv-muted); font-size: 13.5px; line-height: 1.5; }
.wn-stories > .mw-story:first-child { padding-top: clamp(56px, 6.5vw, 92px); }

/* What else is there: short points on hairlines, no cards. */
.wn-more { padding-block: clamp(52px, 6.5vw, 92px); border-top: 1px solid var(--mw-border); }
.wn-more > h2, .wn-steps > h2, .wn-caps-heading > h2 { margin: 0 0 26px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
.wn-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.wn-more-grid > li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 12px; align-content: start; padding: 18px 0 20px; border-top: 1px solid var(--pv-line); }
.wn-more-grid i { grid-row: span 2; margin-top: 1px; color: var(--pv-muted); font-size: 20px; }
.wn-more-grid b { color: var(--pv-ink); font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.wn-more-grid p { grid-column: 2; margin: 0; font-size: 13.5px; line-height: 1.6; }

/* The setup steps, numbered. */
.wn-steps { padding-block: clamp(52px, 6.5vw, 92px); border-top: 1px solid var(--mw-border); }
.wn-steps .mw-eyebrow { margin-bottom: 12px; }
.wn-steps ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 clamp(24px, 3vw, 44px); margin: 0; padding: 0; list-style: none; counter-reset: wn-step; }
.wn-steps li { padding: 18px 0 20px; border-top: 1px solid var(--pv-line); color: var(--pv-muted); font-size: 14px; line-height: 1.65; counter-increment: wn-step; }
.wn-steps li::before { content: counter(wn-step); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--pv-line); color: var(--pv-ink); font-size: 12.5px; font-weight: 600; }

/* Services: the alert families (each opens), the automations and the delivery controls. */
.wn-caps { padding-block: clamp(52px, 6.5vw, 92px); border-top: 1px solid var(--mw-border); }
.wn-caps-heading { max-width: 680px; margin-bottom: 26px; }
.wn-caps-heading > h2 { margin-bottom: 12px; }
.wn-caps-heading > p { margin: 0; font-size: 15px; line-height: 1.7; }
.wn-caps-heading .mw-eyebrow { margin-bottom: 12px; }
.wn-caps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 44px); align-items: start; }
.wn-cap { border-top: 1px solid var(--pv-line); }
.wn-cap > summary, .wn-cap > h3 { display: grid; grid-template-columns: 22px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-height: 52px; margin: 0; color: var(--pv-ink); font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; list-style: none; cursor: default; }
.wn-cap > summary { cursor: pointer; }
.wn-cap > summary::-webkit-details-marker { display: none; }
.wn-cap :is(summary, h3) > i { color: var(--pv-muted); font-size: 20px; }
.wn-cap > summary > i:last-child { font-size: 18px; transition: transform .2s ease; }
.wn-cap[open] > summary > i:last-child { transform: rotate(180deg); }
.wn-cap > p { margin: -4px 0 18px 34px; font-size: 13.5px; line-height: 1.65; }
.wn-caps-note { margin: 22px 0 0; font-size: 13px; line-height: 1.65; }
.wn-caps-note a { color: var(--pv-ink); }

/* The fine print and the way on. */
.wn-fine { max-width: 880px; margin: 0 auto; padding-bottom: 36px; color: var(--pv-muted); font-size: 12.5px; line-height: 1.7; text-align: center; }
.wn-next { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-bottom: clamp(48px, 6vw, 84px); }
.wn-next a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--pv-line); color: var(--pv-ink); font-size: 13.5px; font-weight: 600; transition: box-shadow .18s ease; }
.wn-next a:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pv-ink) 34%, transparent); color: var(--pv-ink); }
.wn-next i { font-size: 17px; }
.wn-missing { padding: clamp(150px, 16vw, 200px) 0 clamp(80px, 10vw, 140px); text-align: center; }
.wn-missing h1 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 52px); font-weight: 500; letter-spacing: -.035em; }
.wn-missing p { margin: 0 0 26px; font-size: 16px; }

/* ---- Smaller screens ------------------------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .wn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wn-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .wn-facts { grid-template-columns: minmax(0, 1fr); }
    .wn-facts > li { padding: 14px 4px 15px; }
    .wn-facts > li + li { border-top: 1px solid var(--pv-line); border-left: 0; }
    .wn-caps-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .wn-tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; border-radius: 18px; }
    .wn-more-grid { grid-template-columns: minmax(0, 1fr); }
    .pv-cover.is-feature { padding-top: 116px; }
    .pv-cover.is-feature .pv-cover-lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .wn-tiles::before, .wn-tiles::after { animation: none; }
    .wn-tile, .wn-tile > i { transition: none; }
}
