/* Easing blog, about, and the "From the blog" + "More apps" blocks on the home page. Loads after home.css.
   Same b- component set as the Treato blog, in Easing's plum, coral and peach.
   Every class here starts with b- so nothing collides with home.css (.mid has a blur, .card/.phone/.related are positioned). */
:root {
    --b-read: oklch(0.93 0.025 50);           /* long-form text: brighter than --muted, still green-tinted */
    --b-panel: #2A1528;                        /* solid card colour, no glass */
    --b-panel-2: #33192F;
    --b-coral-wash: rgba(255, 138, 99, .08);
    --b-coral-edge: rgba(255, 138, 99, .34);
    --b-ink: #2A0F24;                          /* text on coral and peach */
    --b-measure: 680px;
    --b-wide: 1080px;
    --b-gutter: clamp(20px, 5vw, 64px);
}

/* reading pages: one glow at the top, one at the foot, calm in between */
.b-page .page {
    background:
        radial-gradient(60% 900px at 85% 0, rgba(255, 138, 99, .34), transparent 70%),
        radial-gradient(55% 800px at 0 10%, rgba(130, 50, 110, .45), transparent 70%),
        radial-gradient(60% 900px at 50% 100%, rgba(255, 138, 99, .26), transparent 70%),
        var(--bg);
}
.b-page main { position: relative; z-index: 1; }

/* nav: Blog link and a small language picker (home.css owns the bar itself) */
.nav nav { align-items: center; }
.nav nav a { white-space: nowrap; }
.nav nav a[aria-current] { color: var(--coral); }
.b-lang { position: relative; }
.b-lang summary {
    list-style: none; cursor: pointer; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .04em;
    transition: border-color 160ms var(--ease-out);
}
.b-lang summary::-webkit-details-marker { display: none; }
.b-lang[open] summary, .b-lang summary:hover { border-color: var(--b-coral-edge); }
.b-lang ul {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 210px; padding: 8px;
    background: var(--b-panel); border: 1px solid var(--b-coral-edge); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.b-lang li a { display: block; padding: 12px; border-radius: 10px; color: var(--text); font-size: 15px; }
.b-lang li a:hover { background: var(--b-coral-wash); text-decoration: none; }
.b-lang li a[aria-current] { color: var(--coral); font-weight: 700; }

/* ---------- post head ---------- */
.b-post { padding: clamp(32px, 6vw, 84px) var(--b-gutter) 0; }
.b-head, .b-answer, .b-cover, .b-body, .b-get { max-width: var(--b-wide); margin-left: auto; margin-right: auto; }
.b-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: 14px; color: var(--muted); }
.b-crumbs a, .b-crumbs span:last-child { padding: 12px 0; }
.b-crumbs a { color: var(--muted); }
.b-crumbs a:hover { color: var(--text); }
.b-crumbs span:last-child { color: var(--peach); font-weight: 700; }
/* the site's one headline pattern: heavy, uppercase, the key phrase in coral with its glow */
.b-head h1, .b-index-head h1 {
    margin-top: 14px; color: var(--text); font-weight: 700; text-transform: uppercase; text-wrap: balance;
    font-size: clamp(40px, 6.6vw, 92px); line-height: .92; letter-spacing: -.035em; max-width: 16ch;
}
.b-head h1 em, .b-index-head h1 em { display: block; font-style: normal; color: var(--coral); text-shadow: 0 0 60px rgba(255, 138, 99, .45); }
html:not([lang="en"]) .b-head h1 { max-width: 20ch; hyphens: auto; overflow-wrap: break-word; }
html:is([lang="ja"], [lang="ko"], [lang="zh-Hans"]) :is(.b-head, .b-index-head) h1 { line-height: 1.1; letter-spacing: -.01em; max-width: 14em; }
.b-byline { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px 16px; margin-top: 30px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.b-byline img { width: 48px; height: 48px; border-radius: 23%; box-shadow: 0 10px 30px -10px rgba(255, 138, 99, .6); }
.b-byline b { color: var(--text); font-weight: 700; }
.b-byline a { color: inherit; }
.b-byline a:hover { text-decoration: none; }
.b-byline a:hover b { color: var(--coral); }
.b-byline .b-meta { margin: 0; padding-left: 16px; border-left: 1px solid var(--line); font-size: 15px; }

/* short answer: the peach sticker from the home page, flat so it reads as text */
.b-answer {
    margin-top: 32px; padding: clamp(20px, 3vw, 30px) clamp(20px, 3.4vw, 36px); border-radius: 26px;
    background: var(--peach); color: var(--plum); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.b-answer p:not(.b-label) { max-width: 46em; color: var(--plum); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; font-weight: 500; }
.b-answer .b-label { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--plum); color: var(--peach) !important; }
.b-label { color: var(--coral) !important; font-size: 13px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; line-height: 1.4; }

.b-cover { margin-top: clamp(28px, 4vw, 48px); }
.b-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: clamp(18px, 2.4vw, 32px); box-shadow: 0 0 0 1px var(--line), 0 50px 90px -40px rgba(0, 0, 0, .9); }

/* first paint: head, answer and cover rise once, the home page's curve and distance */
@media (prefers-reduced-motion: no-preference) {
    .b-head > *, .b-answer, .b-cover, .b-index-head > :not(.b-streak) { animation: b-rise 600ms var(--ease-out) backwards; }
    .b-head > :nth-child(2), .b-index-head p { animation-delay: 60ms; }
    .b-head > :nth-child(3), .b-answer { animation-delay: 120ms; }
    .b-cover { animation-delay: 180ms; }
}
@keyframes b-rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- body: TOC rail on wide screens, one 680px column for reading ---------- */
.b-body { display: grid; grid-template-columns: minmax(0, var(--b-measure)); justify-content: center; margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 1180px) {
    .b-body:has(.b-toc) { grid-template-columns: 230px minmax(0, var(--b-measure)); justify-content: space-between; column-gap: 64px; }
    .b-toc { position: sticky; top: 96px; align-self: start; }
}
.b-toc { margin-bottom: 36px; border-top: 2px solid var(--coral); padding-top: 6px; }
.b-toc summary { list-style: none; cursor: pointer; color: var(--text); font-weight: 700; font-size: 15px; padding: 11px 0; display: flex; justify-content: space-between; }
.b-toc summary::-webkit-details-marker { display: none; }
.b-toc summary::after { content: "+"; color: var(--coral); font-size: 22px; line-height: 1; }
.b-toc[open] summary::after { content: "–"; }
.b-toc ol { list-style: none; counter-reset: t; margin-top: 4px; }
.b-toc li { counter-increment: t; display: grid; grid-template-columns: 2.2em 1fr; font-size: 15px; line-height: 1.35; }
.b-toc li::before { content: counter(t, decimal-leading-zero); color: var(--coral); font-weight: 700; font-size: 13px; padding-top: 14px; font-variant-numeric: tabular-nums; }
.b-toc a { display: block; padding: 12px 0; color: var(--muted); }
.b-toc a:hover { color: var(--text); text-decoration: none; }

.b-prose > * + * { margin-top: 20px; }
.b-prose p, .b-prose li { color: var(--b-read); font-size: 18px; line-height: 1.75; }
.b-prose a { color: var(--coral); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.b-prose a:hover { color: var(--peach); }
.b-prose strong { color: var(--text); font-weight: 700; }
.b-prose h2 { margin-top: clamp(56px, 7vw, 84px); color: var(--text); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; scroll-margin-top: 96px; text-wrap: balance; }
.b-prose h3 { margin-top: 40px; color: var(--peach); font-size: 23px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.b-prose :is(h2, h3) + :is(p, ul, ol) { margin-top: 14px; }
.b-prose ul { padding-left: 1.2em; }
.b-prose ul > li { position: relative; }
.b-prose :is(ul, ol) > li + li { margin-top: 10px; }
.b-prose ul > li::before { content: ""; position: absolute; left: -1.1em; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.b-prose ol:not(.b-steps) { padding-left: 1.4em; list-style: decimal; }
.b-prose ol:not(.b-steps) > li::marker { color: var(--coral); font-weight: 700; }
.b-disclosure { font-size: 15px !important; color: var(--muted) !important; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.b-vetnote { margin-top: 40px !important; padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line); font-size: 15px !important; line-height: 1.6 !important; color: var(--muted) !important; }
.b-sources { margin-top: 28px !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px !important; line-height: 1.6 !important; color: var(--muted) !important; }
.b-sources a { color: var(--muted); }

/* numbered steps: big coral numerals in a gutter */
.b-steps { list-style: none; counter-reset: s; padding: 0; }
.b-steps > li { counter-increment: s; position: relative; padding: 16px 0 16px 56px; border-top: 1px solid var(--line); }
.b-steps > li + li { margin-top: 0 !important; }
.b-steps > li:last-child { border-bottom: 1px solid var(--line); }
.b-steps > li::before { content: counter(s); position: absolute; left: 0; top: 14px; color: var(--coral); font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(255, 138, 99, .4); }

/* an app name with its real App Store icon */
.b-app { display: inline-flex; align-items: center; gap: .4em; vertical-align: middle; white-space: nowrap; }
.b-ic { display: inline-block; flex: none; border-radius: 23%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.b-prose h3 .b-ic { width: 36px; height: 36px; }
.b-prose h3 .b-app { gap: 12px; }

/* "pick by" list: app on the left, reason on the right */
.b-picks { padding: 0 !important; border-top: 1px solid var(--line); }
.b-picks > li { display: grid; grid-template-columns: 190px 1fr; gap: 6px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.b-picks > li::before { display: none; }
.b-picks .b-app span { color: var(--text); font-weight: 700; }
.b-picks > li > span:last-child { line-height: 1.5; }

/* callouts and verdicts: solid tinted panels with a full hairline */
.b-callout { padding: 22px 26px; border-radius: 22px; background: var(--b-panel); border: 1px solid var(--line); }
.b-callout p + p { margin-top: 10px; }
.b-callout p:not(.b-label) { font-size: 17px; }
.b-verdict { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: 22px; background: var(--b-coral-wash); border: 1px solid var(--b-coral-edge); }
.b-verdict .b-ic { width: 44px; height: 44px; }
.b-verdict p:not(.b-label) { font-size: 17px; line-height: 1.6; color: var(--text); }

/* real in-app screens in the home page's phone frame, caption beside them */
.b-shot, .b-shots { margin: 44px 0 !important; }
.b-shot { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: end; }
.b-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.b-shots figcaption { grid-column: 1 / -1; }
.b-phone { padding: 8px; background: #140A14; border-radius: 40px; box-shadow: inset 0 0 0 1.5px #4A3445, 0 0 0 1px #2E1A2B, 0 50px 80px -34px rgba(0, 0, 0, .9); }
.b-phone img { width: 100%; border-radius: 32px; background: #FFF1EA; }
.b-prose figcaption { color: var(--muted); font-size: 15px; line-height: 1.5; padding-top: 12px; border-top: 2px solid var(--coral); max-width: 30em; }
.b-shots { max-width: 560px; }

/* comparison tables: a table on wide screens, one block per app on phones */
.b-cmp-wrap { margin: 28px 0 !important; border-radius: 22px; border: 1px solid var(--line); background: var(--b-panel); overflow: hidden; }
@media (min-width: 900px) { .b-body:not(:has(.b-toc)) .b-cmp-wrap:has(th:nth-child(5)) { margin-left: -120px !important; margin-right: -120px !important; } }
.b-cmp { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.b-cmp th, .b-cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); }
.b-cmp th { color: var(--peach); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--b-panel-2); }
.b-cmp td:first-child { color: var(--text); font-weight: 700; }
.b-cmp tr:last-child td { border-bottom: 0; }
.b-cmp .b-ic { width: 26px; height: 26px; }
@media (max-width: 700px) {
    .b-cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .b-cmp, .b-cmp tbody, .b-cmp tr, .b-cmp td { display: block; }
    .b-cmp tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
    .b-cmp tr:last-child { border-bottom: 0; }
    .b-cmp td { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: 12px; padding: 5px 0; border: 0; font-size: 15px; }
    .b-cmp td::before { content: attr(data-label); color: var(--peach); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
    .b-cmp td:first-child { display: block; padding-bottom: 8px; font-size: 18px; }
    .b-cmp td:first-child::before { display: none; }
    .b-cmp .b-ic { width: 32px; height: 32px; }
}

/* FAQ: the home page accordion, solid instead of glass */
.b-faq { display: grid; gap: 10px; margin-top: 18px !important; }
.b-faq details { border-radius: 20px; background: var(--b-panel); border: 1px solid var(--line); transition: border-color 160ms var(--ease-out); }
.b-faq details[open] { border-color: var(--b-coral-edge); }
.b-faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 56px 18px 22px; }
.b-faq summary::-webkit-details-marker { display: none; }
.b-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--coral); font-size: 28px; line-height: 1; }
.b-faq details[open] summary::after { content: "–"; }
.b-faq h3 { margin: 0; color: var(--text); font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.b-faq p { padding: 0 22px 20px; font-size: 17px !important; }

/* the App Store block: the one place the page goes fully coral */
.b-get {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 32px;
    margin-top: clamp(64px, 8vw, 110px); padding: clamp(24px, 4vw, 44px); border-radius: 32px;
    background: var(--coral); color: var(--b-ink);
}
.b-get > img { width: 96px; height: 96px; border-radius: 23%; box-shadow: 0 18px 40px -14px rgba(42, 16, 40, .7); }
.b-get h2 { color: var(--b-ink); font-size: clamp(32px, 4.2vw, 56px); font-weight: 700; text-transform: uppercase; line-height: .95; letter-spacing: -.035em; }
.b-get h2 em { font-style: normal; color: #C7563A; }
.b-get p { margin-top: 10px; color: #3D1A38; font-size: 17px; font-weight: 500; }
.b-get .badge img { width: 150px; height: 50px; }
.b-get .badge:focus-visible { outline-color: var(--b-ink); }

/* ---------- cards shared by the index, Read next and the home strip ---------- */
.b-posts li, .b-related li, .b-from li { position: relative; }
.b-posts a, .b-related a, .b-from li a { display: block; color: var(--text); }
.b-posts a:hover, .b-related a:hover, .b-from li a:hover { text-decoration: none; }
.b-posts img, .b-related img, .b-from img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    :is(.b-posts, .b-related, .b-from) li a:hover img { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--b-coral-edge), 0 30px 50px -30px rgba(255, 138, 99, .5); }
    :is(.b-posts, .b-related, .b-from) li a:hover :is(h2, h3) { color: var(--coral); }
}
/* the kind label is a small peach sticker, tilted like the home page's pills */
.b-kind { display: inline-block; margin-top: 18px; padding: 3px 10px; border-radius: 999px; background: var(--peach); color: var(--plum); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-2deg); }
:is(.b-posts, .b-related, .b-from) :is(h2, h3) { margin-top: 10px; color: var(--text); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-size: 22px; transition: color 200ms var(--ease-out); text-wrap: balance; }
:is(.b-posts, .b-related, .b-from) li > p { margin-top: 10px; font-size: 16px; line-height: 1.55; }
p.b-meta { margin-top: 12px; color: var(--muted); font-size: 14px !important; font-variant-numeric: tabular-nums; }
.b-related li > p:not(.b-meta) { display: none; }

.b-related { max-width: calc(var(--b-wide) + 2 * var(--b-gutter)); margin: 0 auto; padding: clamp(64px, 8vw, 110px) var(--b-gutter) 0; }
.b-related h2, .b-sec-head h2 { color: var(--text); font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; }
.b-related ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }

/* ---------- blog index ---------- */
.b-index { max-width: calc(var(--b-wide) + 2 * var(--b-gutter)); margin: 0 auto; padding: clamp(40px, 6vw, 96px) var(--b-gutter) 0; }
.b-index-head { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.b-index-head h1 { position: relative; margin: 0; max-width: none; font-size: clamp(56px, 10vw, 148px); line-height: .88; }
.b-index-head p { position: relative; color: #F2E2DA; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; padding-bottom: 8px; }
.b-streak { position: absolute; left: calc(-1 * var(--b-gutter)); right: calc(-1 * var(--b-gutter)); top: -40px; width: calc(100% + 2 * var(--b-gutter)); height: calc(100% + 40px); pointer-events: none; overflow: visible; }
.b-streak path { fill: none; stroke: url(#bsg); stroke-linecap: round; vector-effect: non-scaling-stroke; }

.b-posts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.b-posts .b-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; align-items: end; padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); }
.b-posts .b-lead a { display: contents; }
.b-posts .b-lead img { grid-column: 1; grid-row: 1 / span 4; border-radius: 26px; }
.b-posts .b-lead :is(.b-kind, h2, h3), .b-posts .b-lead > p { grid-column: 2; justify-self: start; }
.b-posts .b-lead .b-kind { margin-top: 0; }
.b-posts .b-lead :is(h2, h3) { font-size: clamp(32px, 3.6vw, 50px); text-transform: uppercase; letter-spacing: -.035em; line-height: .98; }
.b-posts .b-lead > p:not(.b-meta) { font-size: 18px; color: #F2E2DA; }
.b-posts .b-mid { grid-column: span 6; padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.b-posts .b-mid :is(h2, h3) { font-size: clamp(24px, 2.4vw, 32px); }
.b-posts .b-row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); column-gap: 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.b-posts .b-row a { display: contents; }
.b-posts .b-row img { grid-column: 3; grid-row: 1 / span 3; border-radius: 16px; }
.b-posts .b-row .b-kind { grid-column: 1; grid-row: 1; justify-self: start; margin-top: 4px; }
.b-posts .b-row :is(h2, h3) { grid-column: 2; grid-row: 1; margin-top: 0; font-size: clamp(22px, 2.2vw, 28px); }
.b-posts .b-row > p:not(.b-meta) { grid-column: 2; grid-row: 2; }
.b-posts .b-row > p.b-meta { grid-column: 1; grid-row: 2; margin-top: 4px; }
.b-get-index { max-width: none; }

/* about: the headline beside the icon, lit the way the home page's closing icon is */
.b-about-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px clamp(32px, 6vw, 96px); }
.b-about-head > div, .b-about-icon { position: relative; }
.b-about-lede { margin-top: 26px; max-width: 30em; color: #F2E2DA; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.5; }
.b-about-icon { width: clamp(120px, 15vw, 200px); height: auto; border-radius: 23%; box-shadow: 0 0 0 clamp(8px, 1vw, 12px) rgba(255, 138, 99, .12), 0 30px 90px -10px rgba(255, 138, 99, .7); }
.b-about .b-body { margin-bottom: 0; }

/* ---------- home: From the blog, and More apps ---------- */
.b-from, .b-apps { position: relative; z-index: 1; max-width: 1220px; margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--b-gutter) 0; }
.b-sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; }
.b-sec-head > a { color: var(--coral); font-weight: 700; font-size: 16px; padding: 12px 0; }
.b-sec-head p { max-width: 30em; font-size: 16px; }
.b-sec-head p a { padding: 12px 0; text-decoration: underline; text-underline-offset: 3px; }
.b-from ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; margin-top: 28px; }
.b-from .b-lead { grid-column: span 2; grid-row: span 2; }
.b-from .b-lead h3 { font-size: clamp(26px, 2.8vw, 38px); text-transform: uppercase; letter-spacing: -.035em; line-height: 1; }
.b-from .b-lead img { border-radius: 26px; }
.b-from .b-small h3 { font-size: 18px; }
.b-from .b-small > p:not(.b-meta) { display: none; }
.b-from .b-small .b-kind { margin-top: 14px; }

/* More apps: each card washed in its own icon colour; the first one is bigger */
.b-apps { padding-bottom: clamp(64px, 8vw, 110px); }
.b-apps ul { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; margin-top: 28px; }
.b-apps li {
    position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 18px; padding: 22px;
    border-radius: 24px; border: 1px solid color-mix(in oklab, var(--tint) 32%, transparent);
    background: linear-gradient(135deg, color-mix(in oklab, var(--tint) 26%, #1A0F1C), color-mix(in oklab, var(--tint) 7%, #1A0F1C));
    transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.b-apps li img { grid-row: 1 / span 3; width: 64px; height: 64px; border-radius: 23%; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .9); }
.b-apps h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.b-apps h3 a { color: var(--text); }
.b-apps h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.b-apps h3 a:hover { text-decoration: none; }
.b-apps h3 a:focus-visible { outline: none; }
.b-apps h3 a:focus-visible::after { outline: 3px solid var(--peach); outline-offset: 3px; }
.b-apps li p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: #F5E6DE; }
.b-go { justify-self: start; margin-top: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(26, 15, 28, .55); color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.b-apps li:hover, .b-apps li:focus-within { border-color: color-mix(in oklab, var(--tint) 70%, transparent); }
@media (hover: hover) and (pointer: fine) { .b-apps li:hover { transform: translateY(-3px); } }
.b-apps li:first-child { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; padding: 28px; }
.b-apps li:first-child img { grid-row: auto; margin-bottom: 18px; width: 80px; height: 80px; }
.b-apps li:first-child h3 { font-size: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .b-index-head { grid-template-columns: minmax(0, 1fr); }
    .b-posts .b-lead { grid-template-columns: minmax(0, 1fr); }
    .b-posts .b-lead img, .b-posts .b-lead :is(.b-kind, h2, h3), .b-posts .b-lead > p { grid-column: 1; grid-row: auto; }
    .b-posts .b-lead .b-kind { margin-top: 18px; }
    .b-posts .b-row { grid-template-columns: minmax(0, 1fr) 200px; }
    .b-posts .b-row img { grid-column: 2; grid-row: 1 / span 4; }
    .b-posts .b-row :is(.b-kind, h2, h3), .b-posts .b-row > p, .b-posts .b-row > p.b-meta { grid-column: 1; grid-row: auto; }
    .b-related ul, .b-from ul, .b-apps ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b-apps li:first-child { grid-column: 1 / -1; grid-template-columns: 80px minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
    .b-apps li:first-child img { grid-row: 1 / span 3; margin: 0; }
    .b-get { grid-template-columns: auto minmax(0, 1fr); }
    .b-get .badge { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
    .nav nav { gap: 14px; }
    .nav nav a { font-size: 15px; }
    .b-head h1 { font-size: clamp(36px, 11vw, 54px); }
    .b-byline { grid-template-columns: auto minmax(0, 1fr); }
    .b-byline .b-meta { grid-column: 1 / -1; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); width: 100%; }
    .b-byline .b-meta br { display: none; }
    .b-byline .b-meta time::after { content: " · "; }
    .b-prose p, .b-prose li { font-size: 17px; }
    .b-shot { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; }
    .b-shot .b-phone { width: min(70%, 260px); }
    .b-shot figcaption { justify-self: stretch; }
    .b-shots { gap: 12px; }
    .b-phone { padding: 5px; border-radius: 28px; }
    .b-phone img { border-radius: 23px; }
    .b-picks > li { grid-template-columns: minmax(0, 1fr); }
    .b-callout, .b-verdict { padding: 18px; }
    .b-get { grid-template-columns: minmax(0, 1fr); border-radius: 26px; }
    .b-get > img { width: 80px; height: 80px; }
    .b-related ul { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .b-related li { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
    .b-related li a { display: contents; }
    .b-related img { grid-row: 1 / span 3; border-radius: 12px; }
    .b-related .b-kind { margin-top: 0; justify-self: start; }
    .b-related h3 { font-size: 18px; margin-top: 6px; }
    .b-related p.b-meta { margin-top: 6px; }
    .b-index-head h1 { font-size: 16vw; }
    .b-posts { column-gap: 0; }
    .b-posts .b-mid { grid-column: 1 / -1; }
    .b-posts .b-row { grid-template-columns: minmax(0, 1fr) 110px; column-gap: 16px; padding: 22px 0; }
    .b-posts .b-row img { border-radius: 12px; grid-row: 1 / span 2; }
    /* explicit rows: with auto placement the full-width excerpt slid up beside the thumbnail, above the title */
    .b-posts .b-row .b-kind { grid-row: 1; }
    .b-posts .b-row :is(h2, h3) { grid-row: 2; }
    .b-posts .b-row > p:not(.b-meta) { grid-column: 1 / -1; grid-row: 3; }
    .b-posts .b-row > p.b-meta { grid-column: 1 / -1; grid-row: 4; }
    .b-about-head { grid-template-columns: minmax(0, 1fr); }
    .b-about-icon { grid-row: 1; width: 96px; margin-top: 8px; }
    /* the home strip becomes a swipeable row */
    .b-from ul { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--b-gutter); gap: 16px; margin: 24px calc(-1 * var(--b-gutter)) 0; padding: 0 var(--b-gutter) 8px; scrollbar-width: none; }
    .b-from ul::-webkit-scrollbar { display: none; }
    .b-from li { flex: 0 0 78%; scroll-snap-align: start; }
    .b-from .b-lead h3 { font-size: 24px; }
    .b-from .b-small h3 { font-size: 20px; }
    .b-apps ul { grid-template-columns: minmax(0, 1fr); }
    .b-apps li, .b-apps li:first-child { grid-template-columns: 56px minmax(0, 1fr); padding: 18px; }
    .b-apps li img, .b-apps li:first-child img { width: 56px; height: 56px; }
    .b-apps li:first-child h3 { font-size: 22px; }
}
@media (max-width: 420px) { .nav nav { gap: 12px; } .nav nav a { font-size: 14px; } .nav .brand span { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) {
    .b-posts img, .b-related img, .b-from img, .b-apps li, .b-faq details { transition: none; }
}

/* CJK line breaking: Japanese at phrase boundaries, Korean between words, Chinese anywhere */
html[lang="ja"] :is(h1, h2, h3, .nav a) { word-break: auto-phrase; }
html[lang="ko"] :is(h1, h2, h3) { word-break: keep-all; }

/* tap targets on the home pages' footer, which load this file too */
.foot nav a, .foot .langs a { display: inline-block; padding: 12px 0; }
.foot nav { gap: 0 22px; }

/* tap targets: 44px on touch (audit, 29 Oct). Reaches the home pages too, which load this file. */
.skip { padding: 12px 16px; }
.nav .brand { padding: 4px 0; }
.nav nav a { display: inline-block; padding-top: 12px; padding-bottom: 12px; line-height: 20px; }
/* Korean breaks between words (it uses spaces), never inside one */
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }

/* ---------- Easing only ---------- */
/* not on the App Store yet: a quiet pill and a link home instead of a badge */
.b-get-act { display: grid; gap: 10px; justify-items: start; }
.b-soon { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(26, 15, 28, .35); color: var(--b-ink) !important; font-size: 14px !important; font-weight: 800; }
.b-soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--b-ink); }
.b-get-act a { color: var(--b-ink); font-weight: 800; padding: 10px 0; }
/* the medical note on every post and on /about */
.b-medical { margin-top: 40px !important; padding: 20px 22px; border-radius: 20px; border: 1px solid rgba(255, 217, 184, .3); background: rgba(255, 217, 184, .06); }
.b-medical p { font-size: 16px !important; color: var(--text) !important; }
.b-medical p + p { margin-top: 10px; }
.b-medical a { color: var(--peach); }
/* cards cut from real screens */
.b-ui { margin: 32px 0 !important; max-width: 520px; }
.b-ui img { border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.b-ui figcaption { margin-top: 12px; }
/* the printable diary */
.b-sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.b-print { font: inherit; font-weight: 800; color: var(--b-ink); background: var(--coral); border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; }
.b-sheet-wrap { overflow-x: auto; margin: 20px 0 !important; border-radius: 18px; background: #FFF6EF; }
.b-sheet { min-width: 760px; padding: 18px; color: #3A2A32; }
.b-sheet-title { color: #3A2A32 !important; font-weight: 800; font-size: 20px !important; }
.b-sheet-meta { display: flex; gap: 28px; flex-wrap: wrap; margin: 6px 0 10px; color: #5E4A52 !important; font-size: 13px !important; }
.b-sheet table { width: 100%; border-collapse: collapse; font-size: 12px; }
.b-sheet th, .b-sheet td { border: 1px solid #F0D7C8; padding: 6px; text-align: left; vertical-align: top; color: #3A2A32; }
.b-sheet th { font-weight: 800; background: #FFE9DC; }
.b-sheet td { height: 28px; }
.b-sheet td:first-child { width: 6%; color: #6E5A60; }
.b-sheet-note { margin-top: 8px; color: #6E5A60 !important; font-size: 12px !important; }
@media print {
    @page { size: A4 landscape; margin: 10mm; }
    .b-printable .skip, .b-printable .nav, .b-printable .foot, .b-printable .b-head, .b-printable .b-answer, .b-printable .b-cover,
    .b-printable .b-toc, .b-printable .b-get, .b-printable .b-related, .b-printable .b-apps, .b-printable .b-prose > *:not(.b-sheet-wrap) { display: none !important; }
    html, body, .b-printable .page { background: #fff !important; }
    .b-printable .b-post, .b-printable .b-body { padding: 0 !important; margin: 0 !important; display: block; max-width: none; }
    .b-sheet-wrap { overflow: visible; background: #fff; border-radius: 0; margin: 0 !important; }
    .b-sheet { min-width: 0; padding: 0; }
    .b-sheet th, .b-sheet td { border: 1px solid #999; color: #000; }
    .b-sheet td { height: 8.6mm; }
    .b-sheet thead { display: table-header-group; }
    .b-sheet tr { break-inside: avoid; }
}
