/* About Tenner: this hour's No. 1 as the opening picture with the promise in one line, then the three things Tenner does
   best (live charts, a chart made for you, Discover), each with a small working example from the hour's chart, the
   promise kept short, and four questions. Calm at rest: things rise into place once as you scroll (Animations on). */

/* one column shared with Top 10 and Browse, left-aligned like Apple Music */
.awrap { max-width: var(--max); margin: 0 auto 0 var(--page-left); padding-left: var(--gutter); padding-right: var(--gutter-r); }
.ab .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ============================================================ the buttons: the owner's (navy, white words, an icon beside) */
.ab-btn { height: 44px; padding: 0 18px 0 15px; gap: 8px; font-size: 16px; }
.ab-btn svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================ the opening
   The hour's No. 1, full width beside the sidebar, melting into the page at the bottom and towards the words. Before it
   loads (or with no artwork) a soft wash of Tenner's colours stands in, so it's never a blank box. */
.ab-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(500px, 76vh, 820px); }
.ab-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(55% 70% at 78% 28%, rgba(191, 90, 242, .32), transparent 70%), radial-gradient(45% 60% at 46% 8%, rgba(10, 132, 255, .28), transparent 70%),
    radial-gradient(40% 55% at 96% 72%, rgba(255, 55, 95, .24), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 42%, rgba(0, 0, 0, .55) 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 42%, rgba(0, 0, 0, .55) 70%, transparent 100%); }
.ab-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
/* the page colour drifting in from the left and up from the bottom, where the words sit */
.ab-hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 82%, transparent) 0%, color-mix(in srgb, var(--bg) 46%, transparent) 40%, transparent 72%),
    linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--bg) 62%, transparent) 88%); }
.ab-hero-copy { width: 100%; max-width: var(--max); margin: 0 auto 0 var(--page-left); padding: 0 var(--gutter-r) clamp(36px, 7vh, 84px) var(--gutter); box-sizing: border-box; }
.ab-eye { margin: 0 0 14px; font: 600 15px/1 var(--font); letter-spacing: -.01em; color: var(--label2); }
.ab-hero h1 { margin: 0; max-width: 12ch; font: 800 clamp(46px, 7vw, 104px)/.98 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.ab-lede { margin: 20px 0 0; max-width: 34em; font: 400 clamp(17px, 1.5vw, 21px)/1.45 var(--font); letter-spacing: -.015em; color: var(--label2); text-wrap: pretty; }
.ab-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* Apple's background extension: the picture, mirrored and blurred, under the sidebar */
.ab-ext { display: none; }
@media (min-width: 1000px) {
  .ab-ext { display: block; position: fixed; z-index: 49; top: 0; left: 0; width: var(--side); height: clamp(560px, 80vh, 900px); overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent); }
  .ab-ext img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left 22%; transform: scaleX(-1) scale(1.3); filter: blur(34px) saturate(1.5); opacity: .85; }
  .ab-hero-bg { -webkit-mask-image: linear-gradient(180deg, #000 42%, rgba(0, 0, 0, .55) 70%, transparent 100%); }
}
@media (max-width: 999px) {
  .ab-hero-bg { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 42%, rgba(0, 0, 0, .55) 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 42%, rgba(0, 0, 0, .55) 70%, transparent 100%); }
}
@media (max-width: 719px) {
  .ab-hero { min-height: min(88svh, 720px); }
  .ab-hero-bg img { object-position: 62% 20%; }
  .ab-hero-bg::after { background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 28%, transparent) 34%, color-mix(in srgb, var(--bg) 76%, transparent) 62%, color-mix(in srgb, var(--bg) 88%, transparent) 86%); }
  .ab-hero-copy { padding-bottom: 28px; }
  .ab-acts .ab-btn { flex: 1 1 0; min-width: max-content; }
}

/* ============================================================ the three chapters: words on one side, a working example on the other */
.ab-ch { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: center;
  max-width: 1240px; margin-top: clamp(64px, 9vw, 132px); }
.ab-ch:first-child { margin-top: clamp(24px, 4vw, 56px); }
.ab-flip .ab-copy { order: 2; }
.ab-k { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 15px/1.2 var(--font); letter-spacing: -.01em; }
.ab-k1 { color: #30d158; } .ab-k2 { color: #ff375f; } .ab-k3 { color: #bf5af2; }
/* by day, Apple's accessible shades of the same colours, so the small words still read on white */
:root[data-theme="light"] .ab-k1 { color: #248a3d; } :root[data-theme="light"] .ab-k2 { color: #d30f45; } :root[data-theme="light"] .ab-k3 { color: #8944ab; }
.ab-live { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, .22); }
.ab-copy h2 { margin: 0; font: 700 clamp(34px, 4.2vw, 56px)/1.04 var(--font-display); letter-spacing: -.028em; text-wrap: balance; }
.ab-copy h2 .dim { color: var(--label2); }
.ab-copy > p:not(.ab-k) { margin: 16px 0 26px; max-width: 44ch; color: var(--label2); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.45; letter-spacing: -.015em; text-wrap: pretty; }

/* the examples sit quietly on the page: no coloured glow, just the shared frost (the owner's call) */
.ab-vis { position: relative; min-width: 0; }

/* the one frost: the page colour at 80% over the 40px blur, with the fine edge */
.ab-box { border-radius: var(--r); padding: 16px 12px 12px; background: var(--fr-bg); -webkit-backdrop-filter: var(--fr-blur); backdrop-filter: var(--fr-blur); box-shadow: inset 0 0 0 1px var(--fr-rim), 0 30px 70px -34px rgba(0, 0, 0, .35); }
.ab-box-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px 10px; }
.ab-box-hd h3 { margin: 0; font: 600 17px/1.25 var(--font); letter-spacing: -.02em; }
.ab-pill { font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--r); background: var(--fr-in); color: var(--label2); font: 500 13px/1 var(--font); white-space: nowrap; }
/* the chart list (the homepage's .cl), in one column */
.ab-cl { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; min-height: 395px; }
.ab .cl li + li { border-top: .5px solid var(--sep); }
.ab .cl-ph { display: block; background: linear-gradient(160deg, hsl(var(--h, 220) 55% 58%), hsl(calc(var(--h, 220) + 40) 60% 30%)); }
.ab-none { padding: 22px 10px; color: var(--label2); font-size: 15px; border: 0 !important; }
.ab-sk a { pointer-events: none; }
.ab-sk .cl-ph { background: var(--fr-in); box-shadow: none; }
.ab-sk b, .ab-sk small { display: block; height: 12px; width: 62%; border-radius: 4px; background: var(--fr-in); }
.ab-sk small { height: 9px; width: 38%; margin-top: 8px; }
:root:not(.still) .ab-sk { animation: abBreathe 1.6s ease-in-out infinite alternate; }
@keyframes abBreathe { to { opacity: .45; } }
/* the six services under the chart: their app icons */
.ab-six { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 10px 4px; padding: 14px 0 0; border-top: .5px solid var(--sep); }
.ab-app { position: relative; display: block; width: 36px; aspect-ratio: 1; border-radius: 23%; flex: none; }
.ab-app img, .ab-app b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; box-shadow: 0 0 0 .5px var(--sep); }
.ab-app b { background: linear-gradient(160deg, hsl(var(--h) 60% 55%), hsl(calc(var(--h) + 30) 65% 38%)); color: #fff; font: 600 15px/1 var(--font); }

/* 2. the services to tap: their icons, lit when on (with a tick), dimmed when off */
.ab-pick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 0 4px 12px; margin-bottom: 4px; border-bottom: .5px solid var(--sep); }
.ab-pick button { display: grid; justify-items: center; gap: 7px; min-width: 0; min-height: 44px; padding: 6px 0 4px; border: 0; border-radius: var(--r); background: none; color: var(--label2); cursor: pointer; font: 500 12px/1.2 var(--font); -webkit-tap-highlight-color: transparent; }
.ab-pick small { font: inherit; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-pick .ab-app { width: min(100%, 46px); transition: opacity .25s ease, filter .25s ease, transform .4s var(--ease-spring); }
.ab-pick [aria-pressed="false"] .ab-app { opacity: .38; filter: grayscale(1); }
.ab-pick [aria-pressed="true"] { color: var(--label); }
.ab-pick .ab-app i { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); opacity: 0; scale: .5; transition: opacity .2s ease, scale .35s var(--ease-spring); }
.ab-pick .ab-app i::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; }
.ab-pick [aria-pressed="true"] .ab-app i { opacity: 1; scale: 1; }
.ab-pick button:active .ab-app { transform: scale(.96); }
@media (hover: hover) { .ab-pick button:hover { color: var(--label); } .ab-pick button:hover .ab-app { transform: translateY(-2px); } }
.ab-pick button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 3. the deck: three posters fanned like cards, the top one sent off by Skip or Save */
.ab-deck-wrap { display: grid; justify-items: center; gap: 26px; padding: 12px 0; overflow-x: clip; }   /* the fanned cards never reach past the screen's sides */
.ab-deck { position: relative; width: clamp(190px, 20vw, 240px); aspect-ratio: 2 / 3; }
.ab-card { position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; background: var(--bg2);
  box-shadow: 0 0 0 .5px var(--sep), 0 28px 60px -24px rgba(0, 0, 0, .55); transition: translate .35s var(--ease-out), rotate .35s var(--ease-out), opacity .3s ease; }
.ab-card:nth-last-child(2) { rotate: 7deg; translate: 38% 4%; scale: .9; }
.ab-card:nth-last-child(3) { rotate: -7deg; translate: -38% 4%; scale: .9; }
.ab-card-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-card-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; color: #fff; font: 600 16px/1.2 var(--font); letter-spacing: -.016em;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.ab-card:has(img) .ab-card-t, .ab-card:not(:last-child) .ab-card-t { display: none; }
.ab-deck { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ab-card:last-child { cursor: grab; } .ab-card:last-child:active { cursor: grabbing; }
.ab-card img { -webkit-user-drag: none; pointer-events: none; }
.ab-card.go-yes { translate: 120% -6%; rotate: 16deg; opacity: 0; }
.ab-card.go-no { translate: -120% -6%; rotate: -16deg; opacity: 0; }
:root:not(.still) .ab-card:last-child { animation: abUp .45s var(--ease-spring) both; }
@keyframes abUp { from { rotate: 7deg; translate: 38% 4%; scale: .9; } }
.ab-deck-acts { display: flex; gap: 18px; }
.ab-round { display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%; color: #fff; cursor: pointer; background: var(--bt-round);
  -webkit-backdrop-filter: var(--fr-blur); backdrop-filter: var(--fr-blur); transition: background-color .18s, transform .4s var(--ease-spring); -webkit-tap-highlight-color: transparent; }
.ab-round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ab-round[data-swipe="yes"] svg { fill: currentColor; stroke-width: 0; }
.ab-round:active { transform: scale(.96); }
@media (hover: hover) { .ab-round:hover { background: var(--bt-round-hover); } }

/* ============================================================ the promise: three short lines in one frosted box */
.ab-promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1240px; margin-top: clamp(64px, 9vw, 132px); gap: 8px; padding: 8px; }
.ab-promise > div { display: grid; gap: 4px; align-content: start; padding: 18px 18px 20px; border-radius: var(--r); }
/* each promise has its own colour square; the tile itself stays neutral */
.ab-promise .gi { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: var(--r); color: #fff; background: var(--c); }
.ab-promise > div + div { box-shadow: -.5px 0 0 var(--sep); border-radius: 0; }
.ab-promise .gi svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ab-promise b { font: 600 18px/1.25 var(--font); letter-spacing: -.02em; }
.ab-promise span:not(.chev) { color: var(--label2); font-size: 15px; line-height: 1.4; }
.ab-more { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; min-height: 48px; margin: 0 -8px -8px; padding: 0 24px; border-top: .5px solid var(--sep); color: var(--accent); font: 500 16px/1 var(--font); }

/* ============================================================ the questions, the apple.com way: big questions, hairlines, a chevron */
.faq { max-width: 1240px; margin: clamp(64px, 9vw, 120px) 0 8px; }
.faq h2 { margin: 0 0 18px; font: 700 clamp(30px, 3.4vw, 44px)/1.05 var(--font-display); letter-spacing: -.025em; }
.faq-list { border-top: .5px solid var(--sep); }
.faq-list details { border-bottom: .5px solid var(--sep); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 4px; cursor: pointer; list-style: none;
  font: 500 clamp(18px, 1.8vw, 22px)/1.25 var(--font); letter-spacing: -.01em; color: var(--label); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 6px; border-right: 2.4px solid var(--label2); border-bottom: 2.4px solid var(--label2);
  transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease-spring); }
.faq-list details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r); }
@media (hover: hover) { .faq-list summary:hover { color: var(--accent); } }
.faq-list .a { padding: 0 48px 20px 4px; }
.faq-list .a p { margin: 0; max-width: 68ch; color: var(--label2); font-size: 17px; line-height: 1.5; }
.faq-list .a a { color: var(--accent); }
:root:not(.still) .faq-list details[open] .a { animation: faqIn .35s var(--ease-out) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
@supports selector(::details-content) {
  :root:not(.still) .faq-list details { interpolate-size: allow-keywords; }
  :root:not(.still) .faq-list details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease-out), content-visibility .4s allow-discrete; }
  :root:not(.still) .faq-list details[open]::details-content { height: auto; }
}

/* ============================================================ tablets and phones: one column, the words above each example */
@media (max-width: 899px) {
  .ab-ch { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ab-flip .ab-copy { order: 0; }
  .ab-copy > p:not(.ab-k) { margin-bottom: 20px; }
}
@media (max-width: 719px) {
  /* edge to edge, filled rather than outlined, as the rest of the site on phones */
  .ab-box { background: var(--ph-box); box-shadow: none; }
  .ab-ch { margin-top: 56px; }
  .ab-ch:first-child { margin-top: 24px; }
  .ab-box { padding: 14px 6px 8px; }
  .ab-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 8px; padding-inline: 0; }
  .ab-pick button { font-size: 12px; }
  .ab-cl { min-height: 0; }
  .ab-promise { grid-template-columns: minmax(0, 1fr); margin-top: 56px; gap: 4px; padding: 6px; }
  .ab-promise > div { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding: 12px 10px; }
  .ab-promise > div + div { box-shadow: 0 -.5px 0 var(--sep); }
  .ab-promise .gi { grid-row: span 2; margin: 2px 0 0; }
  .ab-more { margin: 0 -6px -6px; padding: 0 16px; }
  .faq { margin-top: 56px; }
  .faq-list summary { padding: 16px 2px; }
  .faq-list .a { padding: 0 8px 18px 2px; }
}
@media (prefers-reduced-transparency: reduce) { .ab-box { background: var(--bg2); } .ab-round { background: #222226; } }

/* ============================================================ depth as you scroll (Animations on, and never with Reduce Motion)
   Scroll-driven, off the main thread: each chapter's words and example rise into place as they arrive, and the colour
   under the sidebar fades as the opening scrolls away. */
@supports (animation-timeline: view()) {
  :root:not(.still) :is(.ab-copy, .ab-vis, .ab-promise) { animation: abRise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  :root:not(.still) .ab-vis { animation-range: entry 10% entry 75%; }
  .ab-ext { animation: abFade linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
}
@keyframes abRise { from { opacity: 0; translate: 0 36px; } }
@keyframes abFade { to { opacity: .3; } }

/* with a mouse or trackpad: a push button shades when pressed (the macOS way) */
@media (hover: hover) and (pointer: fine) { .ab-round:active { filter: var(--press); } }

/* phones and tablets (no sidebar): the small print, as a tidy list at the end of About */
.more-links { display: none; }
@media (max-width: 999px) {
  .more-links { display: grid; margin: 28px 0 8px; border-radius: var(--r); background: var(--bg2); overflow: hidden; }
  .more-links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: var(--label); font-size: 16px; text-decoration: none; }
  .more-links a + a { border-top: .5px solid var(--sep); }
  .more-links a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--label3); border-bottom: 2px solid var(--label3); transform: rotate(-45deg); }
}
.more-ver { display: none; }
@media (max-width: 999px) { .more-ver { display: block; margin: 12px 4px 0; color: var(--label2); font-size: 13px; } }
