/* 10 tips page: stories. Without JS the slides simply stack */
.tips-story, .tips-story h1, .tips-story h2, .tips-story p, .tips-confetti { font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; }
/* The blur fades into the footer colour, so there is no line between them */
main:has(.tips-story) { background: #0d111e; }
#page-footer { background: #0d111e; }
main > section.tips-story { position: relative; overflow: hidden; min-height: 0; padding: var(--tips-top, 60px) 0 0; background: #0d111e; box-shadow: none; color: #fff; text-shadow: none; }
.tips-slide { position: relative; overflow: hidden; background: #0d0a19; }
.tips-slide img { display: block; width: 100%; height: auto; object-fit: cover; object-position: center 20%; }
.tips-copy { padding: 16px; }
.tips-story h1, .tips-story h2 { display: inline-block; margin: 0 0 12px; padding: 6px 16px; border-radius: 12px; background: #d7ff3e; color: #0d0a19; font-weight: 700; line-height: 1.15; text-align: right; transform: rotate(-2deg); }
.tips-story h1 { background: #ff2e93; color: #fff; font-size: clamp(32px, 9vw, 40px); }
.tips-story h2 { font-size: clamp(28px, 8vw, 34px); }
.tips-slide:nth-of-type(3n+2) h2 { background: #ff2e93; color: #fff; transform: rotate(2deg); }
.tips-slide:nth-of-type(3n) h2 { background: #fff; color: #0d0a19; transform: rotate(-1deg); }
.tips-story .tips-end h2 { font-size: clamp(38px, 11vw, 48px); }
.tips-copy p { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(13,10,25,.78); color: #fff; font-size: 17px; font-weight: 400; line-height: 1.45; }
.tips-copy p a, .tips-copy p a:hover, .tips-copy p a:focus { color: #d7ff3e; text-decoration: underline; text-underline-offset: 3px; }
a.tips-go, a.tips-go:hover, a.tips-go:focus { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin-top: 10px; padding: 0 20px; border-radius: 999px; background: #fff; color: #0d0a19; font-size: 16px; font-weight: 400; text-decoration: none; }
a.tips-wa, a.tips-wa:hover, a.tips-wa:focus { min-height: 54px; background: #d7ff3e; font-size: 18px; }
.tips-story a:focus-visible, .tips-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tips-no, .tips-bars, .tips-arrow { display: none; }
.tips-bg { display: none; }
.tips-on .tips-bg { position: absolute; inset: -40px; display: block; background: center / cover no-repeat; filter: blur(34px) brightness(.5) saturate(1.4); -webkit-mask-image: linear-gradient(#000 70%, transparent calc(100% - 40px)); mask-image: linear-gradient(#000 70%, transparent calc(100% - 40px)); }

/* With JS: one slide at a time */
.tips-on .tips-phone { position: relative; height: calc(100vh - var(--tips-top, 60px) - 56px); height: calc(100svh - var(--tips-top, 60px) - 56px); overflow: hidden; cursor: pointer; }
.tips-on .tips-slides, .tips-on .tips-slide { position: absolute; inset: 0; }
.tips-on .tips-slide { display: none; }
.tips-on .tips-slide.on { display: block; }
.tips-on .tips-slide img { width: 100%; height: 100%; }
.tips-on .tips-slide::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(rgba(13,10,25,0), rgba(13,10,25,.75)); pointer-events: none; }
.tips-on .tips-copy { position: absolute; right: 14px; bottom: 74px; left: 14px; z-index: 1; padding: 0; }
.tips-on .tips-no { position: absolute; top: 22px; left: 14px; z-index: 1; display: block; color: transparent; font-size: clamp(84px, 26vw, 120px); font-weight: 700; line-height: 1; -webkit-text-stroke: 2px #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.tips-on .tips-bars { position: absolute; top: 10px; right: 10px; left: 10px; z-index: 2; display: flex; gap: 4px; }
.tips-bars i { flex: 1 1 0; height: 4px; border-radius: 2px; background: rgba(255,255,255,.38); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.tips-bars i.done { background: #fff; }
.tips-on .tips-arrow { position: absolute; bottom: 14px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #0d0a19; font-size: 20px; line-height: 1; cursor: pointer; }
.tips-prev { right: 14px; }
.tips-next { left: 14px; }
.tips-arrow:disabled { opacity: .3; cursor: default; }
.tips-confetti { position: fixed; inset: 0; z-index: 2000; overflow: hidden; pointer-events: none; }
.tips-confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: tips-fall 1.9s ease-in forwards; }
@keyframes tips-fall { to { transform: translateY(105vh) rotate(720deg); opacity: .8; } }

/* From tablets up: a big phone in the middle, the current photo blurred behind it */
@media (min-width: 600px) {
main > section.tips-story.tips-on { padding: calc(var(--tips-top, 60px) + 24px) 0 0; }
.tips-on .tips-phone { height: min(calc(100vh - var(--tips-top, 60px) - 104px), 860px); aspect-ratio: 9 / 17; margin: 0 auto; border: 10px solid #0b0b0f; border-radius: 44px; box-shadow: 0 0 0 2px rgba(255,255,255,.2), 0 30px 80px rgba(0,0,0,.6); }
.tips-on .tips-bars { top: 16px; right: 18px; left: 18px; }
.tips-on .tips-no { top: 30px; }
}
@media (min-width: 992px) {
.tips-on { --tips-h: min(calc(100vh - var(--tips-top, 60px) - 56px), 860px); }
.tips-on .tips-phone { height: var(--tips-h); }
}
@media (prefers-reduced-motion: no-preference) {
.tips-slide.on img { animation: tips-zoom 9s ease-out forwards; }
.tips-slide.on h1, .tips-slide.on h2 { animation: tips-pop .45s cubic-bezier(.2,1.5,.4,1) both; }
.tips-slide.on p, .tips-slide.on .tips-go { animation: tips-up .4s .12s ease-out both; }
.tips-slide.on .tips-no { animation: tips-up .4s ease-out both; }
}
@keyframes tips-zoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes tips-pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes tips-up { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* Continue reading: colourful stickers over the blur, scattered around the phone on wide screens */
#art-next { position: relative; padding: 32px 0 44px; }
#art-next .art-next-title { margin-bottom: 22px; color: #fff; text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.45); font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; font-weight: 700; }
#art-next .art-rows { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
#art-next .art-rows a, #art-next .art-rows a:hover, #art-next .art-rows a:focus { display: inline-flex; justify-content: flex-start; gap: 10px; min-height: 58px; padding: 8px 22px; border: 0; border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,.35); font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; text-decoration: none; }
#art-next .art-rows a span { color: inherit; }
#art-next .art-rows a:nth-child(1), #art-next .art-rows a:nth-child(1):hover, #art-next .art-rows a:nth-child(1):focus { background: #f0488f; color: #fff; transform: rotate(-3deg); }
#art-next .art-rows a:nth-child(2), #art-next .art-rows a:nth-child(2):hover, #art-next .art-rows a:nth-child(2):focus { background: #9b5de5; color: #fff; transform: rotate(2.5deg); }
#art-next .art-rows a:nth-child(3), #art-next .art-rows a:nth-child(3):hover, #art-next .art-rows a:nth-child(3):focus { background: #16a6a0; color: #fff; transform: rotate(2deg); }
#art-next .art-rows a:nth-child(4), #art-next .art-rows a:nth-child(4):hover, #art-next .art-rows a:nth-child(4):focus { background: #c724a6; color: #fff; transform: rotate(-2.5deg); }
#art-next .art-rows a:nth-child(5), #art-next .art-rows a:nth-child(5):hover, #art-next .art-rows a:nth-child(5):focus { background: #f2695c; color: #fff; transform: rotate(3deg); }
#art-next .art-rows a:hover { filter: brightness(1.08); }
#art-next .art-rows a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (min-width: 1200px) {
/* The blur runs on below the phone, and everything is placed relative to the phone's edges */
main > section.tips-story.tips-on { padding-bottom: 150px; }
.tips-on #art-next { position: static; padding: 0; }
.tips-on #art-next .art-next-title, .tips-on #art-next .art-rows a, .tips-on #art-next .art-rows a:hover, .tips-on #art-next .art-rows a:focus { position: absolute; margin: 0; }
.tips-on #art-next .art-rows a, .tips-on #art-next .art-rows a:hover, .tips-on #art-next .art-rows a:focus { max-width: 270px; text-wrap: balance; }
.tips-on #art-next .art-next-title { top: 14%; left: calc(50% + var(--tips-h) * 9 / 34 + 7vw); }
.tips-on #art-next .art-rows a:nth-child(1) { top: 32%; left: calc(50% + var(--tips-h) * 9 / 34 + 3vw); }
.tips-on #art-next .art-rows a:nth-child(3) { top: 60%; left: calc(50% + var(--tips-h) * 9 / 34 + 8vw); }
.tips-on #art-next .art-rows a:nth-child(2) { top: 20%; right: calc(50% + var(--tips-h) * 9 / 34 + 6vw); }
.tips-on #art-next .art-rows a:nth-child(4) { top: 46%; right: calc(50% + var(--tips-h) * 9 / 34 + 2.5vw); }
.tips-on #art-next .art-rows a:nth-child(5) { top: 72%; right: calc(50% + var(--tips-h) * 9 / 34 + 7vw); }
}
