/* Stories by Weblink */
:root { --wsto-offset: 90px; --wsto-ring: linear-gradient(135deg, var(--global-palette1, #3b82f6), var(--global-palette2, #1d4ed8)); }
.wsto, .wsto-list, .wsto-hl, .wsto-archive { --wsto-accent: var(--global-palette1, #2563eb); --wsto-ink: var(--global-palette3, #1f2937); --wsto-muted: var(--global-palette5, #6b7280); --wsto-line: var(--global-palette7, #e5e7eb); --wsto-soft: var(--global-palette8, #f6f7f9); --wsto-radius: 16px; }
.wsto *, .wsto-list *, .wsto-hl * { box-sizing: border-box; }

/* ---- A step ---- */
.wsto { scroll-margin-top: var(--wsto-offset); margin: 0 0 2em; }
.wsto-head { margin: 0 0 14px; }
.wsto-bars { display: flex; gap: 4px; margin: 0 0 10px; padding: 0; list-style: none; }
.wsto-bars li { flex: 1; height: 4px; margin: 0; border-radius: 2px; background: var(--wsto-line); overflow: hidden; position: relative; }
.wsto-bars li.is-done { background: var(--wsto-accent); }
.wsto-bars li.is-current::after { content: ""; position: absolute; inset: 0; background: var(--wsto-accent); transform-origin: left; animation: wsto-fill .6s ease-out both; }
.wsto-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: .9em; }
.wsto-count-n { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--wsto-accent); color: #fff; font-weight: 700; letter-spacing: .02em; }
.wsto-count-t { color: var(--wsto-muted); font-weight: 600; }

.wsto-ad { display: block; margin: 0 0 18px; padding: 8px 0 10px; text-align: center; border-top: 1px solid var(--wsto-line); border-bottom: 1px solid var(--wsto-line); min-height: 110px; }
.wsto-ad-label { display: block; margin: 0 0 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wsto-muted); }
.wsto-ad-slot { max-width: 100%; overflow: hidden; }
.wsto-ad-slot ins.adsbygoogle { display: block; max-width: 100%; margin: 0 auto; }
.wsto-ad.is-empty { display: none; }

.wsto-step-title { margin: 0 0 .6em; }
.wsto-step-fig { display: flex; justify-content: center; margin: 0 0 1.2em; }
/* Image of the step: small, in a circle with the ring of the stories. */
.wsto .wsto-ring--step { width: 180px; height: 180px; padding: 4px; }
.wsto .wsto-ring--step::before { inset: 4px; }
.wsto .wsto-ring--step img.wsto-step-image { position: relative; display: block; width: 100%; height: 100%; max-height: none; padding: 3px; border-radius: 50%; object-fit: cover; }
@media (max-width: 640px) { .wsto .wsto-ring--step { width: 150px; height: 150px; } }
.wsto-step-text > :last-child { margin-bottom: 0; }

.wsto-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 28px 0 0; }
.wsto-nav-n { color: var(--wsto-muted); font-weight: 600; font-size: .9em; font-variant-numeric: tabular-nums; }
.wsto-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none !important; transition: transform .15s ease, opacity .15s ease, background-color .15s ease; -webkit-tap-highlight-color: transparent; }
.wsto-btn:active { transform: scale(.97); }
.wsto-btn--prev { justify-self: start; background: var(--wsto-soft); color: var(--wsto-ink) !important; box-shadow: inset 0 0 0 1.5px var(--wsto-line); }
.wsto-btn--prev.is-off { opacity: .35; }
.wsto-btn--next, .wsto-btn--again { justify-self: end; background: var(--wsto-accent); color: #fff !important; box-shadow: 0 8px 18px -10px var(--wsto-accent); }
.wsto-btn:hover { opacity: .92; }
.wsto-btn:focus-visible { outline: 3px solid var(--wsto-accent); outline-offset: 2px; }
@media (max-width: 640px) {
	/* Buttons always at hand on phones. */
	.wsto-nav { position: sticky; bottom: 0; z-index: 20; margin: 24px -12px 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--wsto-line); }
	.wsto-btn { min-height: 46px; padding: 0 16px; }
}

/* Smooth change of step (browsers with view transitions). */
@view-transition { navigation: auto; }
.wsto-step { view-transition-name: wsto-step; }

/* ---- End ---- */
.wsto-end { margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--wsto-line); }
.wsto-end-title { margin: 0 0 14px; font-size: 1.2em; font-weight: 800; }
.wsto-end-sub { margin: 0 0 8px; font-weight: 700; }
.wsto-end-posts { display: grid; gap: 8px; margin: 0 0 16px; }
.wsto-end-post { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--wsto-soft); box-shadow: inset 0 0 0 1px var(--wsto-line); color: var(--wsto-ink) !important; font-weight: 600; text-decoration: none !important; }
.wsto-end-post img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.wsto-end-post span:first-of-type { flex: 1; }
.wsto-end-arrow { color: var(--wsto-accent); font-weight: 800; }

/* ---- Ring with the round cover ---- */
.wsto-ring { position: relative; display: inline-flex; width: 76px; height: 76px; flex: none; padding: 3px; border-radius: 50%; background: var(--wsto-ring); }
.wsto-ring::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.wsto-ring img { position: relative; width: 100%; height: 100%; padding: 2px; border-radius: 50%; object-fit: cover; background: #fff; }
.wsto-ring--m { width: 70px; height: 70px; }
.wsto-ring--s { width: 48px; height: 48px; padding: 2px; }
.wsto-ring--s::before { inset: 2px; }
.is-read .wsto-ring { background: var(--global-palette6, #b6bcc6); }

/* ---- Lists ---- */
.wsto-list { margin: 2em 0; container-type: inline-size; }
.wsto-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.wsto-list-title { margin: 0; font-size: 1.3em; }
.wsto-list-tools { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.wsto-list-all { margin-right: 6px; font-weight: 600; white-space: nowrap; }
.wsto-arrow { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--wsto-soft); color: var(--wsto-ink); box-shadow: inset 0 0 0 1px var(--wsto-line); font-size: 20px; line-height: 1; cursor: pointer; }
.wsto-arrow:hover { background: var(--wsto-line); }

.wsto-track { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.wsto-track > * { scroll-snap-align: start; }
.wsto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }

/* Vertical card: round cover at the top, title below, inside the rectangle. */
.wsto-card { position: relative; display: flex; flex-direction: column; align-items: center; aspect-ratio: 9 / 16; padding: 26px 14px 16px; overflow: hidden; border-radius: var(--wsto-radius); background: var(--wsto-ink); color: #fff !important; text-align: center; text-decoration: none !important; isolation: isolate; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55); transition: transform .2s ease, box-shadow .2s ease; }
.wsto-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6); }
.wsto-card:focus-visible { outline: 3px solid var(--wsto-accent); outline-offset: 3px; }
.wsto-card-bg { position: absolute; inset: -20px; z-index: -2; background-size: cover; background-position: center; filter: blur(14px) saturate(1.2); transform: scale(1.1); opacity: .85; }
.wsto-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .78) 100%); }
.wsto-card .wsto-ring { width: 58%; height: auto; aspect-ratio: 1; padding: 4px; }
.wsto-card .wsto-ring::before { inset: 4px; }
.wsto-card-steps { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: 11px; font-weight: 700; backdrop-filter: blur(4px); }
.wsto-card-body { display: flex; flex-direction: column; flex: 1; justify-content: flex-end; gap: 6px; width: 100%; margin-top: 14px; }
.wsto-card-cat { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.wsto-card-title { font-size: 15px; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.wsto-card-go { align-self: center; margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #111; font-size: 12px; font-weight: 800; }

.wsto-rows { margin: 0; padding: 0; list-style: none; }
.wsto-rows li { margin: 0; border-bottom: 1px solid var(--wsto-line); }
.wsto-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; color: inherit !important; text-decoration: none !important; }
.wsto-row-t { display: flex; flex-direction: column; min-width: 0; }
.wsto-row-name { font-weight: 700; line-height: 1.3; }
.wsto-row-meta { font-size: .85em; color: var(--wsto-muted); }

/* ---- Linked stories at the top of the article: smaller vertical cards ---- */
.wsto-list--related { clear: both; display: flow-root; width: 100%; margin: 0 0 1.8em; }
.wsto-list--related .wsto-list-head { flex-wrap: nowrap; }
.wsto-list--related p.wsto-list-title { margin: 0; line-height: 1.3; }
.wsto-list--related .wsto-list-title { font-size: .8em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wsto-muted); }
.wsto-list--related .wsto-track { grid-auto-columns: 150px; }
.wsto-list--related .wsto-card { padding: 20px 10px 12px; }
.wsto-list--related .wsto-card-title { font-size: 14px; -webkit-line-clamp: 3; }
.wsto-list--related.is-single .wsto-list-tools .wsto-arrow { display: none; }

/* ---- Linked stories: only the circles ---- */
.wsto-hl { clear: both; display: flow-root; width: 100%; margin: 0 0 1.6em; padding: 12px 0 4px; }
.wsto-hl-title { margin: 0 0 8px; font-size: .8em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wsto-muted); }
.wsto-hl-row { display: flex; gap: 16px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.wsto-hl-row::-webkit-scrollbar { display: none; }
.wsto-hl-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; flex: none; scroll-snap-align: start; color: inherit !important; text-decoration: none !important; text-align: center; }
.wsto-hl-item:hover .wsto-ring { transform: scale(1.05); }
.wsto-hl-item .wsto-ring { transition: transform .2s ease; }
.wsto-hl-name { font-size: 12px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wsto-hl-n { font-size: 11px; color: var(--wsto-muted); }

/* ---- Archive ---- */
.wsto-archive-inner { max-width: 1200px; margin: 0 auto; padding: 32px 16px 48px; }
.wsto-archive-title { margin: 0 0 6px; }
.wsto-archive-sub { margin: 0 0 14px; color: var(--wsto-muted); }
.wsto-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.wsto-chip { padding: 6px 14px; border-radius: 999px; background: var(--wsto-soft); box-shadow: inset 0 0 0 1px var(--wsto-line); color: var(--wsto-ink) !important; font-weight: 600; font-size: .9em; text-decoration: none !important; }
.wsto-chip[aria-current] { background: var(--wsto-accent); color: #fff !important; box-shadow: none; }
.wsto-pager { margin-top: 24px; }

/* ---- Popup in the style of Instagram (page with the cards) ---- */
.wsto-ava { display: none; }
html.wsto-pop-open { overflow: hidden; }
.wsto-pop { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; gap: 20px; background: rgba(12, 12, 16, .93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: wsto-pop-in .2s ease-out both; }
.wsto-pop[hidden] { display: none; }
.wsto-pop-stage { position: relative; flex: none; width: clamp(360px, calc((100dvh - 32px) * .5625), 480px); height: min(920px, calc(100dvh - 32px)); border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); animation: wsto-stage-in .25s cubic-bezier(.2, .8, .2, 1) both; }
.wsto-pop-frame { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.wsto-pop-load { position: absolute; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; opacity: 0; transition: opacity .2s; pointer-events: none; }
.wsto-pop-load::after { content: ""; position: absolute; inset: 0; width: 40%; background: rgba(255, 255, 255, .9); border-radius: 2px; animation: wsto-load 1s ease-in-out infinite; }
.wsto-pop.is-busy .wsto-pop-load { opacity: 1; }
.wsto-pop-x { position: absolute; top: 16px; right: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .28); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wsto-pop-x:hover { background: rgba(0, 0, 0, .5); }
.wsto-pop-x:focus-visible, .wsto-pop-go:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.wsto-pop-go { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0 0 4px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #111; font-size: 30px; line-height: 1; cursor: pointer; visibility: hidden; opacity: 0; transition: opacity .2s, transform .15s; }
.wsto-pop-go:hover { transform: scale(1.06); }
.wsto-pop.has-prev .wsto-pop-go--prev, .wsto-pop.has-next .wsto-pop-go--next { visibility: visible; opacity: 1; }
@media (max-width: 640px), (max-height: 520px) {
	.wsto-pop { gap: 0; background: #000; }
	.wsto-pop-stage { width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; }
	.wsto-pop-go { display: none; }
	.wsto-pop-x { top: calc(14px + env(safe-area-inset-top)); right: 8px; }
}
@keyframes wsto-pop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wsto-stage-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes wsto-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---- Page of a step inside the popup ---- */
html:has(body.wsto-embed) { background: #0b0b0f; }
body.wsto-embed { --wsto-offset: 0px; position: relative; isolation: isolate; margin: 0; min-height: 100vh; background: transparent !important; color: #fff; overflow-x: hidden; }
body.wsto-embed::before { content: ""; position: fixed; inset: -40px; z-index: -2; background: var(--wsto-bg, none) center / cover no-repeat, linear-gradient(160deg, #2b2f3a, #0b0b0f); filter: blur(28px) saturate(1.2); transform: scale(1.1); }
body.wsto-embed::after { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, .7) 100%); }
.wsto-embed-main { box-sizing: border-box; max-width: 520px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 0 14px; display: flex; flex-direction: column; }
.wsto-embed .wsto { --wsto-accent: #fff; --wsto-muted: rgba(255, 255, 255, .72); --wsto-line: rgba(255, 255, 255, .25); flex: 1; display: flex; flex-direction: column; margin: 0; color: #fff; }
.wsto-embed .wsto-head { position: sticky; top: 0; z-index: 5; margin: 0 -14px 10px; padding: calc(12px + env(safe-area-inset-top)) 56px 12px 14px; background: rgba(10, 10, 14, .42); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wsto-embed .wsto-bars { gap: 3px; margin: 0 0 12px; }
.wsto-embed .wsto-bars li { height: 3px; background: rgba(255, 255, 255, .35); }
.wsto-embed .wsto-bars li.is-done, .wsto-embed .wsto-bars li.is-current::after { background: #fff; }
.wsto-embed .wsto-count { flex-wrap: nowrap; align-items: center; gap: 10px; font-size: 14px; }
.wsto-embed .wsto-ava { display: block; flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; padding: 2px; background: var(--wsto-ring); }
.wsto-embed .wsto-count-t { order: 1; min-width: 0; overflow: hidden; color: #fff; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.wsto-embed .wsto-count-n { order: 2; flex: none; padding: 0; background: none; color: rgba(255, 255, 255, .7); font-weight: 600; font-size: 13px; }
.wsto-embed .wsto-ad { margin: 4px 0 14px; padding: 8px; border: 0; border-radius: 14px; background: #fff; }
.wsto-embed .wsto-ad-label { color: #6b7280; }
.wsto-embed .wsto-step { padding: 22px 18px; border-radius: 20px; background: rgba(12, 12, 18, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: 1.05em; line-height: 1.6; cursor: default; }
.wsto-embed .wsto-step-title { margin: 0 0 .7em; color: #fff !important; font-size: 1.45em; font-weight: 800; line-height: 1.2; text-align: center; }
.wsto-embed .wsto-step-text, .wsto-embed .wsto-step-text p, .wsto-embed .wsto-step-text li, .wsto-embed .wsto-step-text strong, .wsto-embed .wsto-step-text em, .wsto-embed .wsto-step-text h3, .wsto-embed .wsto-step-text h4 { color: #fff !important; }
.wsto-embed .wsto-step-text a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.wsto-embed .wsto-step-text strong { background: linear-gradient(transparent 62%, rgba(255, 255, 255, .22) 62%); }
.wsto-embed .wsto .wsto-ring--step { width: 150px; height: 150px; }
.wsto-embed .wsto-nav { position: sticky; bottom: 0; z-index: 5; margin: auto -14px 0; padding: 22px 14px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .65) 45%); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wsto-embed .wsto-step + .wsto-nav { margin-top: auto; }
.wsto-embed .wsto-nav-n { color: rgba(255, 255, 255, .75); }
.wsto-embed .wsto-btn { min-height: 46px; padding: 0 18px; }
.wsto-embed .wsto-btn--prev { background: rgba(255, 255, 255, .14); color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.wsto-embed .wsto-btn--next, .wsto-embed .wsto-btn--again { background: #fff; color: #111 !important; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
.wsto-embed .wsto-end { --wsto-accent: var(--global-palette1, #2563eb); --wsto-ink: var(--global-palette3, #1f2937); --wsto-muted: var(--global-palette5, #6b7280); --wsto-line: var(--global-palette7, #e5e7eb); order: 2; margin: 14px 0 0; padding: 18px 16px; border: 0; border-radius: 20px; background: #fff; color: var(--wsto-ink); }
.wsto-embed .wsto-end .wsto-end-title { color: var(--wsto-ink); }
.wsto-embed .wsto-step { order: 1; }
.wsto-embed .wsto-nav { order: 3; }
.wsto-embed .wsto-head, .wsto-embed .wsto-ad { order: 0; }
.wsto-embed #wpadminbar, .wsto-embed .skip-link { display: none !important; }
@media (prefers-reduced-motion: reduce) {
	.wsto-pop, .wsto-pop-stage, .wsto-pop-load::after { animation: none; }
}

@keyframes wsto-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
	.wsto-bars li.is-current::after { animation: none; }
	.wsto-card, .wsto-btn, .wsto-hl-item .wsto-ring { transition: none; }
	@view-transition { navigation: none; }
}
@media print { .wsto-ad, .wsto-nav, .wsto-hl, .wsto-pop { display: none !important; } }
