/* Teapak.co 1.4.0 / 1.5.0 / 1.7.0 / 1.13.0 (assets/css/pages-v10.css): the Top activities cards (inc/activities.php; the
   home band, template-parts/activities-band.php, and the /activities/ page) and the level radios of the plan pages and
   the Reset Plans cards (inc/plan.php, assets/js/pages-v10.js). docs/FEATURES-1.13.md A (look: Referance/v113/
   teapak-activity-cards.html, the owner's "Activity cards v2", its CSS scoped to #site) and docs/FEATURES-1.4.md change 4
   (look from Referance/v10/08-site-v10.html: .pd-lvl, .rp-lvl, .ro-dot, .rp-lvhead).
   - The cards: a centred title ("Top activities", smaller than in 1.7.0) and a small muted line; then 2:3 cards (1.15.0;
     square on a computer before), the picture full bleed with a soft shade (1.15.0, the owner, 5 Nov: an activity's
     short video while the card is on screen; 8 Nov: video only, a frame of it the still, plain grey without a video),
     a glass pill top start, the heart top end, a glass panel at the
     foot, a lift on hover; no shadow under the cards (the owner, 5 Nov: "just a normal card"). 1.15.0 (the owner, 4 Nov 2026:
     "change to exactly ui card", a reference image of two travel cards): an activity card is that reference card (see
     "the activity cards" below): the reference's plump heart in a round glass button, the pill for New / Hot only, the
     panel inset with the title and the tag after it ("Mount Fuji, Tokyo"), then the pin and the city and the
     reference's star at the end with the score the owner types in Teapak Editor ("☆ 4.8"; the star alone without one;
     no price: the owner, 4 Nov), the description still opening on hover
     and keyboard focus; plain grey until the activity's video is uploaded. Home: one row of activity cards (4 in view
     from 1280 px, 3 from 900 px, 2 on a tablet) that slides by itself without end, the ‹ › arrows beside it (in the page
     margin from 1420 px; no pause / play button, the owner, 4 Nov); a row to swipe on a phone. The Activities page
     (1.15.0, the owner, 7 Nov: by category, see "the Activities page by category" below): the categories in the home
     page's Reset Plans panel at the start, beside them the category picked: its cards in 3 columns from 1100 px, 2 from
     720 px, one row to swipe on a phone, then its trips as the Reset Plans cards. The consultant and brand cards of
     1.13.0 went with that page's grid. The 1.7.0 photo grid (.ag-*) is gone.
     Everything is logical properties (until 1.16.0 they mirrored it on Arabic pages, right to left). Dark theme: the
     arrows take the panel tokens; the cards are photos.
   - The plan page keeps its 1.3.0 level cards (wp.css .pp-level); here they become radio buttons: a dot, the checked
     card in blue with "Selected", a focus ring, and the action bar's level name.
   - The Reset Plans cards' level tiles (site.css .rp-lvl) become radio buttons under "Choose a level". */

/* ---------- Top activities: the owner's "Activity cards v2" (1.13.0) ---------- */
/* The look is Referance/v113/teapak-activity-cards.html (its CSS, scoped to #site; renders ref-desktop.png, ref-phone.png).
   The card's shape and sizes are custom properties of the band (section.acts-cards): --tp-ratio (2 / 3 since 1.15.0),
   --tp-r (the radius), --tp-gap (the gap between columns), --tp-view (the home slider's columns in view), --tp-nav and
   --tp-nav-gap (the arrows and their space). */
#site .acts-cards{--tp-gap:22px;--tp-ratio:2/3;--tp-view:4;--tp-r:28px;--tp-ease:cubic-bezier(.2,.8,.2,1);--tp-nav:52px;--tp-nav-gap:20px}
#site .acts-notes{margin-top:26px}

/* the head: the title ("Top activities", smaller than 1.7.0's) and one small muted line, centred */
#site .acts-head{display:flex;flex-direction:column;align-items:center;max-width:760px;margin-inline:auto;text-align:center}
#site .acts-h{font-size:clamp(30px,3.4vw,46px);font-weight:800;line-height:1.1;letter-spacing:-.03em;color:var(--fg);text-wrap:balance}
#site[data-lang="en"] .acts-h{font-family:var(--font-title)}
#site[data-lang="th"] .acts-h{font-weight:700;line-height:1.3;letter-spacing:0}
#site .acts-sub{margin-top:14px;max-width:48ch;font-size:15px;line-height:1.65;color:var(--muted);text-wrap:pretty}
#site .acts-page-head>.wrap{padding-top:72px}
#site .acts-page-head .acts-h{margin-top:0;max-width:none}
#site .acts-plans{margin-top:14px}
#site .acts-more{display:flex;justify-content:center;margin-top:32px}
#site .acts-more .btn svg{stroke-width:2.2}

/* the home slider: [‹] [cards] [›], the arrows in columns of their own (in the page margin from 1420 px) */
#site .tp-slider{display:grid;grid-template-columns:var(--tp-nav) minmax(0,1fr) var(--tp-nav);column-gap:var(--tp-nav-gap);align-items:center;margin:24px 0 -64px}   /* the strip's padding (24 px top, 72 px bottom) netted out (18 Nov: 16 px more of each, room for the card under the mouse; 40 px / -48 px with 8 / 56 before) */
@media (min-width:1420px){ #site .tp-slider{margin-inline:calc(-1 * (var(--tp-nav) + var(--tp-nav-gap)))} }
/* the strip: one row (1.15.0, the owner, 4 Nov; two rows before), --tp-view cards in view, the rest scrolls sideways
   without end (pages-v10.js puts copies of the cards before and after them, li[data-clone]) */
#site .tp-acts{list-style:none;margin:0;padding:0}
#site .tp-slider>.tp-acts{padding:24px 0 72px;display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--tp-view) - 1) * var(--tp-gap)) / var(--tp-view));gap:28px var(--tp-gap);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#site .tp-slider>.tp-acts::-webkit-scrollbar{display:none}
#site .tp-slider[data-drift]>.tp-acts{scroll-snap-type:none}   /* the home row's motions (the ‹ › glides; a slide show when PHP asks for one, as on the morning of 18 Nov) are an animation of the cards (pages-v10.js): a snap would pull the row to a card at their end */
#site .tp-slider[data-drift]>.tp-acts>.tp-item{will-change:translate}   /* 18 Nov ("card is lagging during motion"): each card keeps its own layer for a motion (‹ ›), so the browser moves it without drawing it again */
/* the card under the mouse (the owner, 18 Nov: "once client move the mouse to a card that card should be showing with a
   little bigger card and the rest card can be blur"; his pick of the previews: A): 5 % bigger, the other cards blurred
   3 px, both in 0.3 s. pages-v10.js marks it for a mouse only (not a finger: phones as before) while the row stands
   still: li[data-pick~=on] and div.tp-slider[data-picked]; a card at the strip's edge grows inwards (data-pick~=left /
   right: the strip clips what passes its edges; the side stays while it shrinks back); the strip's 24 px above the
   cards leave it room. For everyone, whatever the reduced-motion setting (as the row's own motion). It takes the place
   of the 6 px lift there (a keyboard's focus keeps the lift).
   18 Nov, night (the owner: "when i move mouse to card, video is a bit shaking"): the card grows as a whole, so the
   picture's own 1.06 zoom of 1.2 s (the cards' hover elsewhere) no longer moves the video inside the growing card; and
   inside a blurred card the glass panel, the badge and the heart lose their own blur of what is behind them (the card is
   blurred anyway): on a computer without a graphics card (this VPS, the owner's view over RDP) those glass blurs inside
   the three blurred cards cost 13 of the 32 ms a frame took, and the videos skipped frames. They go off once the blur
   has arrived (div.tp-slider[data-blurred], pages-v10.js: 0.3 s after a card is marked; a card that has just lost the
   mark keeps its side attribute, and so its glass, while its own blur comes) and come back at once: not a fade, which
   would start 49 backdrop-filter transitions (every card's panel and heart, the copies too) and stall the page */
#site .tp-slider>.tp-acts>.tp-item{transition:transform .5s var(--tp-ease),scale .3s var(--tp-ease),filter .3s var(--tp-ease)}
#site .tp-slider>.tp-acts>.tp-item[data-pick-jump]{transition:none}   /* a jump by a set: the mark goes to the twin in the same place at once */
#site .tp-slider>.tp-acts>.tp-item[data-pick~="on"]{scale:1.05;z-index:1}
#site .tp-slider>.tp-acts>.tp-item[data-pick~="left"]{transform-origin:0 50%}
#site .tp-slider>.tp-acts>.tp-item[data-pick~="right"]{transform-origin:100% 50%}
#site .tp-slider[data-picked]>.tp-acts>.tp-item:not([data-pick~="on"]){filter:blur(3px)}
@media (hover:hover){ #site .tp-slider>.tp-acts>.tp-item:hover,#site .tp-slider>.tp-acts>.tp-item[data-pick~="on"]{transform:translateZ(0)} }
@media (hover:hover){ #site .tp-slider>.tp-acts>.tp-item:hover .tp-card>.photo{transform:none} }   /* 18 Nov, night: no zoom of the picture inside the growing card (a mouse; a tap on a phone is as before) */
#site .tp-slider[data-blurred]>.tp-acts>.tp-item:not([data-pick]) :is(.tp-tag,.tp-fav,.tp-panel){-webkit-backdrop-filter:none;backdrop-filter:none}   /* 18 Nov, night: no glass blur inside a blurred card (once its blur has arrived) */
#site .tp-nav{width:var(--tp-nav);height:var(--tp-nav);display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:var(--panel);color:var(--fg);box-shadow:0 10px 28px rgba(11,27,58,.18),0 0 0 1px rgba(11,27,58,.06);cursor:pointer;transform:translateY(-24px);transition:background .2s,color .2s,opacity .25s,transform .2s var(--tp-ease)}   /* centred on the cards, not on the strip's room below them (kept as it was when the cards had a shadow, so nothing moved) */
#site .tp-nav:hover{background:var(--blue-fill);color:var(--on-blue)}
#site .tp-nav:active{transform:translateY(-24px) scale(.94)}
#site .tp-nav:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
#site .tp-nav:disabled{opacity:.45;cursor:default;background:var(--panel);color:var(--fg);box-shadow:0 4px 12px rgba(11,27,58,.10),0 0 0 1px rgba(11,27,58,.06)}
#site .tp-nav svg{width:22px;height:22px}
/* the Activities page: a category's cards in a plain grid (1.15.0, 7 Nov: 3 columns beside the categories, 2 under
   1100 px; 4 across the page before) */
#site .tp-acts.is-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px var(--tp-gap);margin-top:8px}

/* a card: 2:3, its whole face the link (a.tp-card); the heart beside the link, over it */
#site .tp-item{position:relative;isolation:isolate;min-width:0;margin:0;aspect-ratio:var(--tp-ratio);scroll-snap-align:start;border-radius:var(--tp-r);overflow:hidden;background:#1C2A47;transform:translateZ(0);transition:transform .5s var(--tp-ease)}   /* translateZ: a clean radius under the glass blur (Safari). No shadow under the cards since the owner's 5 Nov request ("just a normal card") */
#site .tp-item:hover{transform:translateY(-6px)}
#site .tp-item:has(:focus-visible){transform:translateY(-6px)}   /* 19 Nov: the keyboard's focus only (a mouse click on the heart focuses it too, without the focus ring: no lift for that, so a card never rises as the mouse leaves it); :focus-within until then */
@supports not selector(:has(*)){ #site .tp-item:focus-within{transform:translateY(-6px)} }
#site .tp-item[data-shown="false"]{opacity:.5;outline:2px dashed var(--line-2);outline-offset:-2px}   /* hidden in Teapak Editor: its draft preview only */
#site .tp-card{position:absolute;inset:0;display:block;color:#fff;text-decoration:none;border-radius:inherit}
#site .tp-card:focus-visible{outline:3px solid #fff;outline-offset:-6px}
#site .tp-card>.photo{position:absolute;inset:0;z-index:-2;transition:transform 1.2s var(--tp-ease)}
#site .tp-item:hover .tp-card>.photo{transform:scale(1.06)}
/* 19 Nov (the owner: on the Activities page "once i move mouse to card the card is shaking"): the 6 px lift carried the card
   away from a mouse resting within 6 px of its lower edge, :hover went off, the card came back under the mouse, :hover
   came on again, ten times a second (headless Chrome: the card's top between 19 and 24 px, 67 changes of :hover in 3 s,
   the video with it). On the Activities page's grid a mouse now gets the home row's look: the card under it 5 % bigger
   from its middle (it grows towards the mouse, whichever edge the mouse rests at, so :hover holds), no lift, no zoom of
   the picture inside (the night's reason above: the video would move twice); the keyboard's focus keeps the lift (above),
   and a phone's tap is as before. For everyone, whatever the reduced-motion setting, as the home row's growth. The gaps
   between the cards (22 px across and 28 px down on a computer, 16 and 20 px on a tablet) and the 20 px under the
   heading hold what the card grows past each side (2:3 cards grow more down than across: up to 7.5 px across and 11 px
   down on a computer, 10.6 and 16 px on a tablet), at least 4 px to spare; a larger scale would not fit. In a window
   under 720 px wide (the row to swipe) the row's room above and below the cards is set for the growth below */
@media (hover:hover){
  #site .tp-acts.is-grid>.tp-item{transition:transform .5s var(--tp-ease),scale .3s var(--tp-ease)}
  #site .tp-acts.is-grid>.tp-item:hover{transform:translateZ(0);scale:1.05;z-index:1}
  #site .tp-acts.is-grid>.tp-item:hover .tp-card>.photo{transform:none}
}
/* 1.15.0 (the owner, 5 Nov): an activity's short video in its picture layer, the card's own crop; it shows once it
   really plays (is-on, pages-v10.js; it plays for every visitor, reduced motion and the data saver too, since the
   owner's 8 Nov request), so until then, and on a phone that will not start it by itself until the visitor's first
   tap, the layer's frame of the video is the still (video only since 8 Nov: a card without a video is plain grey) */
#site .tp-card>.photo>.tp-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s ease;pointer-events:none}
#site .tp-card>.photo>.tp-video.is-on{opacity:1}
@media print{#site .tp-card>.photo>.tp-video{display:none}}
#site .tp-card::before{content:"";position:absolute;inset:45% 0 0;z-index:-1;background:linear-gradient(to top,rgba(11,27,58,.42),rgba(11,27,58,0));pointer-events:none}   /* the glass panel reads on bright scenes */

/* the pill, top start: New (a sparkle) or Hot (the flame, the HOT orange); 1.15.0: the badge only, the tag is in the
   title row (an activity card's sizes: "the activity cards (1.15.0)" below) */
#site .tp-tag{position:absolute;inset-block-start:14px;inset-inline-start:14px;max-width:calc(100% - 82px);display:inline-flex;align-items:center;gap:6px;height:30px;padding-inline:12px 13px;border-radius:999px;background:linear-gradient(rgba(11,27,58,.16),rgba(11,27,58,.16)),rgba(255,255,255,.18);-webkit-backdrop-filter:blur(12px) saturate(1.4);backdrop-filter:blur(12px) saturate(1.4);box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);color:#fff;font-size:11.5px;font-weight:600;line-height:1;letter-spacing:.02em;white-space:nowrap;text-shadow:0 1px 2px rgba(11,27,58,.45)}   /* the block's white glass, a touch of ink so it reads on bright scenes too */
#site .tp-tag>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
#site .tp-tag svg{width:12px;height:12px;flex:0 0 auto}
#site .tp-tag.is-hot{background:var(--hot);color:var(--hot-ink);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 6px 16px rgba(204,74,13,.35);text-shadow:none}
#site .tp-tag.is-hot>span{font-family:var(--font-en);font-weight:800;letter-spacing:.1em}

/* the heart (save) */
#site .tp-fav{position:absolute;inset-block-start:12px;inset-inline-end:12px;z-index:3;width:42px;height:42px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;color:#fff;background:rgba(32,34,48,.3);-webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
#site .tp-fav{cursor:pointer;transition:background .25s,transform .2s var(--tp-ease)}
#site .tp-fav:hover{background:rgba(32,34,48,.46)}
#site .tp-fav:active{transform:scale(.9)}
#site .tp-fav:focus-visible{outline:2px solid #fff;outline-offset:2px}
#site .tp-fav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:fill .2s,stroke .2s}
#site .tp-fav[aria-pressed="true"] svg{fill:#FF5A6E;stroke:#FF5A6E;animation:tp-pop .35s var(--tp-ease)}
@keyframes tp-pop{40%{transform:scale(1.25)}}

/* the glass panel: title, the one-line description (opens on hover and keyboard focus), place and price */
#site .tp-panel{position:absolute;inset-inline:10px;inset-block-end:10px;padding:13px 14px 12px;border-radius:18px;background:rgba(24,26,38,.3);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 8px 24px rgba(0,0,0,.14)}
#site .tp-title{margin:0;font:inherit;font-size:16.5px;font-weight:600;line-height:1.35;letter-spacing:0;color:#fff}
#site .tp-title small{font-size:13px;font-weight:400;color:rgba(255,255,255,.82)}
#site .tp-desc{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s var(--tp-ease)}
#site .tp-desc>div{min-height:0;overflow:hidden}
#site .tp-line{margin:0;padding-top:4px;font-size:12.5px;line-height:1.5;color:rgba(255,255,255,.86)}
@media (hover:hover){ #site .tp-item:hover .tp-desc{grid-template-rows:1fr} }
#site .tp-card:focus-visible .tp-desc{grid-template-rows:1fr}
#site .tp-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 10px;margin:7px 0 0;font-size:12.5px;line-height:1.4;color:rgba(255,255,255,.88)}
#site .tp-place,#site .tp-from,#site .tp-ask{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
#site .tp-place svg,#site .tp-ask svg{width:15px;height:15px;flex:0 0 auto}
#site .tp-from{align-items:baseline;gap:4px}
#site .tp-from small{font-size:11px;color:rgba(255,255,255,.78)}
#site .tp-from b{font-variant-numeric:tabular-nums}
#site .tp-from b,#site .tp-ask{font-weight:600;color:#fff}

/* (1.15.0, 7 Nov: the consultant card and the brand card, .is-person / .is-brand, .tp-quote, .tp-mark and the corner
   arrow .tp-go, went with the Activities page's grid of 1.13.0) */


/* ---------- the activity cards (1.15.0): the owner's reference card ---------- */
/* The owner's image of 4 Nov 2026 (two travel cards, "Mount Fuji, Tokyo"), its card at 230 px wide: 2:3, 21.7 px round;
   the heart a 37 px round glass button 14 px from the top end corner, its heart 20 px; the panel 18 px from the sides
   and 19 px from the foot, 12 px round, 11 px / 13.5 px inside, darker glass without an edge; the title 13 px semibold
   and the tag after it 10.5 px ("Mount Fuji, Tokyo"); 9 px under them the meta line, 12 px in 80 % white: the pin
   (12 px, 12 px from its text) and the city at the start, the star at the end ("Tokyo, Japan · ☆ 4.8"; here without the
   score, the owner's choice, and without a price). Only the cards
   of activities (li.tp-item[data-tile=act]; 1.13.0's consultant and brand cards kept the rules above). An activity card is
   a size container, so these sizes grow with it (cqi = 1 % of the card's width); the type, icons, heart and pill have a
   floor for small cards (the panel's spacing scales freely);
   without container units a browser keeps the rules above. The pill (New / Hot only, PHP tp_activity_pill_html) is the
   heart's glass, level with it; Hot keeps the HOT orange. */
#site .tp-item[data-tile="act"]{container-type:inline-size}   /* no shadow under the card (the owner, 5 Nov: "just a normal card") */
/* 1.15.0 (the owner, 4 Nov: "background all in grey, I will update the images later"): an activity without a picture is
   plain grey, no painted picture; since the owner's 8 Nov request (video only) the picture is the frame of its video
   (inc/activities.php tp_activity_media_html), and a card without a video stays plain grey */
#site .tp-item[data-tile="act"] .tp-card>.photo{background:var(--photo) center/cover no-repeat,#8E949C}   /* a mid grey: the white texts on the glass keep 4.5:1 (WCAG AA) */
#site .tp-item[data-tile="act"] .tp-card>.photo>canvas{display:none}
#site .tp-item[data-tile="act"] .tp-card::before{inset:60% 0 0;background:linear-gradient(to top,rgba(11,27,58,.24),rgba(11,27,58,0))}
#site .tp-item[data-tile="act"] .tp-fav{inset-block-start:6cqi;inset-inline-end:6cqi;width:max(40px,16cqi);height:max(40px,16cqi);background:rgba(28,24,36,.32);-webkit-backdrop-filter:blur(10px) saturate(1.2);backdrop-filter:blur(10px) saturate(1.2);box-shadow:none}
#site .tp-item[data-tile="act"] .tp-fav:hover{background:rgba(28,24,36,.48)}
#site .tp-item[data-tile="act"] .tp-fav:focus-visible{outline:2px solid #fff;outline-offset:2px;box-shadow:0 0 0 2px #0B1B3A}   /* a navy band inside the white ring: it shows on grey and on light photos */
#site .tp-item[data-tile="act"] .tp-card:focus-visible{box-shadow:inset 0 0 0 9px #0B1B3A}
#site .tp-item[data-tile="act"] .tp-fav[aria-pressed="true"] svg{stroke:#fff}   /* the saved heart keeps a white edge on its glass */
#site .tp-item[data-tile="act"] .tp-fav svg{width:max(26px,11.6cqi);height:max(26px,11.6cqi);stroke-width:1.15}   /* the reference's plump heart, half the button wide, a fine line */
#site .tp-item[data-tile="act"] .tp-tag{inset-block-start:calc(6cqi + (max(40px,16cqi) - max(28px,11.5cqi)) / 2);inset-inline-start:6cqi;max-width:calc(100% - 12cqi - max(40px,16cqi) - 8px);height:max(28px,11.5cqi);padding-inline:max(10px,4.4cqi) max(11px,4.8cqi);gap:max(5px,2cqi);font-size:max(11.5px,4.4cqi)}
#site .tp-item[data-tile="act"] .tp-tag:not(.is-hot){background:rgba(28,24,36,.32);-webkit-backdrop-filter:blur(10px) saturate(1.2);backdrop-filter:blur(10px) saturate(1.2);box-shadow:none;text-shadow:none}
#site .tp-item[data-tile="act"] .tp-tag svg{width:max(12px,4.4cqi);height:max(12px,4.4cqi)}
#site .tp-item[data-tile="act"] .tp-panel{inset-inline:7.8cqi;inset-block-end:8.7cqi;padding:4.8cqi 5.9cqi;border-radius:5.2cqi;background:rgba(22,18,30,.36);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);box-shadow:none}
#site .tp-item[data-tile="act"] .tp-title{font-size:max(13px,5.65cqi);font-weight:600;line-height:1.3;letter-spacing:0}
#site .tp-item[data-tile="act"] .tp-sub{display:inline-block;max-width:100%;font-size:max(11px,4.57cqi);font-weight:500;color:rgba(255,255,255,.9)}   /* one piece ("60 min" never splits); a tag longer than the line wraps inside the panel */
/* "Mount Fuji, Tokyo": the HTML has the title's span, a real space and the tag (PHP tp_activity_sub_html), so the comma
   is the title's (its size, weight and white) and the tag may start the next line; Thai has the space alone */
#site .tp-item[data-tile="act"] .tp-title>span:not(:last-child)::after{content:","}
#site[data-lang="th"] .tp-item[data-tile="act"] .tp-title>span:not(:last-child)::after{content:none}
#site .tp-item[data-tile="act"] .tp-line{padding-top:max(3px,1.6cqi);font-size:max(12px,4.5cqi);color:rgba(255,255,255,.85)}
/* the meta line, the reference's row: the pin and the town at the start, the star at the end (no price since the owner's
   4 Nov request, so the reference's own sizes fit every card) */
#site .tp-item[data-tile="act"] .tp-meta{margin-top:max(6px,3.8cqi);gap:2px max(8px,3cqi);font-size:max(12px,5.2cqi);line-height:1.4;color:rgba(255,255,255,.8)}
#site .tp-item[data-tile="act"] .tp-place{gap:max(6px,5.2cqi)}
#site .tp-item[data-tile="act"] :is(.tp-place,.tp-ask) svg{width:max(12px,5.2cqi);height:max(12px,5.2cqi);stroke-width:1.8}
/* the reference's star at the end of the row, then the owner's score ("☆ 4.8", later on 4 Nov: typed in Teapak Editor;
   the star alone without one); the price is gone */
#site .tp-item[data-tile="act"] .tp-star{display:inline-flex;align-items:center;gap:max(4px,2.4cqi);flex:none;color:rgba(255,255,255,.85)}
#site .tp-item[data-tile="act"] .tp-star svg{width:max(12px,4.8cqi);height:max(12px,4.8cqi);flex:none}
#site .tp-item[data-tile="act"] .tp-score{font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
#site .tp-item[data-tile="act"] .tp-from small{font-size:max(10.5px,3.9cqi);color:rgba(255,255,255,.72)}
#site .tp-item[data-tile="act"] :is(.tp-from b,.tp-ask){font-weight:400;color:rgba(255,255,255,.92)}   /* regular, as the reference's "4.8" */

/* Thai a little air */
#site[data-lang="th"] .tp-tag{letter-spacing:.03em}

/* computer: bigger cards, a little bigger type */
@media (min-width:1100px){
  #site .tp-panel{inset-inline:14px;inset-block-end:14px;padding:16px 18px 15px;border-radius:20px}
  #site .tp-title{font-size:19px}
  #site .tp-title small{font-size:14px}
  #site .tp-meta,#site .tp-line{font-size:13.5px}
  #site .tp-from small{font-size:12px}
  #site .tp-meta{margin-top:8px}
  #site .tp-tag{inset-block-start:16px;inset-inline-start:16px;height:32px;padding-inline:13px 14px;font-size:12px}
  #site .tp-fav{inset-block-start:14px;inset-inline-end:14px;width:46px;height:46px}
}
/* 1.15.0: the 2:3 cards keep about the reference's width: the home slider shows 3 columns under 1280 px, a tablet 2
   (under 900 px); the Activities page (by category since 7 Nov, its cards beside the categories) 2 under 1100 px */
@media (max-width:1279px){ #site .acts-cards{--tp-view:3} }
/* tablet: the same slider, a little tighter; the Activities page in 2 columns */
@media (max-width:1099px){
  #site .acts-cards{--tp-gap:16px;--tp-nav:44px;--tp-nav-gap:12px}
  #site .tp-slider{margin-top:16px}   /* 18 Nov: with the strip's 24 px above the cards (32 px with 8 px before) */
  #site .tp-slider>.tp-acts{row-gap:20px}
  #site .tp-acts.is-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px}
}
@media (max-width:899px){
  #site .acts-cards{--tp-view:2}
}
/* phone: one row to swipe, no arrows, 2:3 cards; 1.13.1 (the owner, 30 Oct: "slide left and right, not scroll down"):
   the Activities page too, every card (since 7 Nov: of the category shown) in one row to swipe */
@media (max-width:719px){
  #site .acts-cards{--tp-gap:14px}
  #site .acts-page-head>.wrap{padding-top:48px}
  #site .acts-h{font-size:clamp(28px,7.6vw,34px)}
  #site .acts-sub{margin-top:10px;font-size:14.5px}
  #site .tp-slider{display:block;margin-top:0}   /* 18 Nov: with the strip's 24 px above the cards (16 px with 8 px before) */
  #site .tp-slider>.tp-acts{margin-inline:calc(var(--gutter) * -1) calc(var(--gutter-r) * -1);padding-inline:var(--gutter) var(--gutter-r);scroll-padding-inline:var(--gutter);grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(70vw,280px)}
  #site .tp-nav{display:none}
  #site .tp-acts.is-grid{margin-block:8px 0;margin-inline:calc(var(--gutter) * -1) calc(var(--gutter-r) * -1);padding-block:8px 40px;padding-inline:var(--gutter) var(--gutter-r);scroll-padding-inline:var(--gutter);grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(70vw,280px);gap:0 var(--tp-gap);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  #site .tp-acts.is-grid::-webkit-scrollbar{display:none}
}
@media (prefers-reduced-motion:reduce){
  #site :is(.tp-item,.tp-card>.photo,.tp-desc,.tp-fav,.tp-nav){transition:none}
  #site .tp-item:hover,#site .tp-item:focus-within{transform:none}
  #site .tp-item:has(:focus-visible){transform:none}   /* 19 Nov: the keyboard lift's own rule outranks the line above */
  #site .tp-item:hover .tp-card>.photo{transform:none}
  #site .tp-slider>.tp-acts>.tp-item{transition:scale .3s var(--tp-ease),filter .3s var(--tp-ease)}   /* 18 Nov: the card under the mouse grows for everyone (as the row's motion); no lift to ease here */
  #site .tp-acts.is-grid>.tp-item{transition:scale .3s var(--tp-ease)}   /* 19 Nov: the Activities page's card under the mouse too; no lift to ease here either */
  #site .tp-fav[aria-pressed="true"] svg{animation:none}
}

/* ---------- the Activities page by category (1.15.0, the owner, 7 Nov) ---------- */
/* inc/activities.php tp_activity_view_html, in the look of the home page's Reset Plans band, whose classes it wears
   (site.css .bento-row, .offers, .offers-head, .cat-list, .cat-item, .cat-chip: the white panel with its title over the
   rows, the row shown in the light blue pill; aria-current here as aria-pressed there). From 901 px the categories at the
   start (300 px, a narrower gap under 1181 px), in view while the page scrolls (sticky, under the WordPress toolbar
   when it shows) in a window at least 600 px tall, where the whole column fits (513 px with the six categories); in a
   shorter one (a phone on its side, a laptop zoomed in) it scrolls with the page, so no category is out of reach; each
   row with its number of trips in a small round count at its end (white and lifted on the row shown); the category
   shown beside them: its name, its cards (3 columns, 2 under 1100 px), "Trips with …" and its trips, the Reset Plans
   cards as on that page (site.css .rp-card; 2 in a row, 1 from 901 to 1099 px, where the column is too narrow for
   two). From 900 px down the home band's chip row, sideways-scrolling from the screen's edge, over
   the panel ("Categories" for screen readers only, the chips speak for themselves); the trips 2 in a row on a tablet,
   one under the other on a phone, the cards one row to swipe (above). A trip card here has the line of the category's
   activities in it (p.rp-with, "With: Lanna massage", pages-v10.js withHTML), which the Reset Plans page's cards never
   get. Logical properties throughout; dark theme by the tokens. */
#site .acts-view{grid-template-columns:300px minmax(0,1fr);column-gap:48px}
#site .acts-cats{height:auto}
#site .acts-cat{display:flex;align-items:center;gap:12px;text-decoration:none}
#site .acts-cat-l{flex:1;min-width:0}
#site .acts-cat-n{flex:none;display:grid;place-items:center;min-width:30px;height:30px;padding-inline:9px;border-radius:999px;background:var(--tile);color:var(--muted);font-size:13px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;transition:background .15s,color .15s,box-shadow .15s}
#site .acts-cat-n b{font-weight:inherit}
#site .acts-cat:hover .acts-cat-n{color:var(--fg)}
#site .acts-cat[aria-current="true"] .acts-cat-n{background:var(--panel);color:var(--fg);box-shadow:var(--shadow-xs)}
#site .acts-panels{min-width:0}
#site .acts-panel-h{font-size:clamp(26px,2.3vw,32px);font-weight:800;line-height:1.2;letter-spacing:-.025em;color:var(--fg)}
#site[data-lang="th"] .acts-panel-h{font-weight:700;line-height:1.35;letter-spacing:0}
#site .acts-panel>.tp-acts.is-grid{margin-top:20px}
#site .acts-trips-h{margin-top:48px;font-size:22px;font-weight:800;line-height:1.3;letter-spacing:-.02em;color:var(--fg);text-wrap:balance}
#site[data-lang="th"] .acts-trips-h{font-weight:700;line-height:1.45;letter-spacing:0}
#site .acts-any{margin-top:6px;font-size:14.5px;line-height:1.5;color:var(--muted)}
#site .acts-trips.rp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:18px}
#site .acts-trip-links{grid-column:1/-1;margin:0}   /* without JavaScript: the trips' links across the row */
#site .rp-with{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;padding:8px 12px;border-radius:12px;background:var(--blue-xl);font-size:13.5px;line-height:1.45;color:var(--fg)}
#site .rp-with-k{font-weight:700;color:var(--blue-d)}
#site .rp-with-v>span+span::before{content:", "}
@media (min-width:901px){
  #site .acts-cats{padding-bottom:12px}
  #site .acts-cats .cat-list{flex:none;overflow:visible;padding-bottom:14px;-webkit-mask-image:none;mask-image:none}
}
@media (min-width:901px) and (min-height:600px){ #site .acts-cats{position:sticky;top:calc(24px + var(--wp-admin--admin-bar--height, 0px))} }   /* only where the whole column fits the window */
@media (max-width:1180px){ #site .acts-view{column-gap:28px} }   /* the column keeps its 300 px, so the longest name ("Yoga & breathwork", bold on the row shown) stays on one line */
@media (min-width:901px) and (max-width:1099px){ #site .acts-trips.rp-grid{grid-template-columns:minmax(0,1fr);gap:18px} }
@media (max-width:900px){
  #site .acts-cats .offers-head{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);white-space:nowrap;border:0}
  #site .acts-cats .cat-list{padding-top:6px}
  #site .acts-cat{gap:8px}
  #site .acts-cat-n{min-width:22px;height:22px;padding-inline:6px;font-size:12px}
  #site .acts-panels{margin-top:22px}
  #site .acts-trips.rp-grid{gap:18px}
}
@media (max-width:720px){
  #site .acts-panel-h{font-size:24px}
  #site .acts-trips-h{margin-top:26px;font-size:20px}
  #site .acts-trips.rp-grid{grid-template-columns:minmax(0,1fr);gap:14px;margin-top:14px}
}
@media (max-width:719px){   /* the cards' row to swipe: the lift's room above them, little below (no shadow under them) */
  #site .acts-panel>.tp-acts.is-grid{margin-top:6px;padding-bottom:10px}
  #site .acts-trips-h{margin-top:22px}
}
@media (hover:hover) and (max-width:719px){ #site .acts-panel>.tp-acts.is-grid{padding-block:12px} }   /* 19 Nov: a mouse in a window this narrow (Teapak Editor's phone preview, a small desktop window): the row clips at its padding, so room for the growth (10.5 px at most above and below a 280 px card) in place of the lift's 8 and 10 px; a phone (no hover) keeps them */
/* a category picked by the visitor fades in (pages-v10.js showCat sets .is-swap); none with reduced motion */
@keyframes tp-acts-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){ #site.motion .acts-panel.is-swap{animation:tp-acts-in .4s var(--tp-ease) both} }
@media (prefers-reduced-motion:reduce){ #site .acts-cat-n{transition:none} }

/* ---------- plan page: the price levels as radio buttons (inc/plan.php tp_plan_page_html) ---------- */
#site .pp-lv-sub{margin-top:6px;font-size:14.5px;line-height:1.5;color:var(--muted)}
#site .pp-level[role="radio"]{width:100%;height:100%;font:inherit;color:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:border-color .15s,box-shadow .15s,background .15s}
#site .pp-level[role="radio"]:hover{border-color:var(--blue)}
#site .pp-level[role="radio"][aria-checked="true"]{border-color:var(--blue);background:linear-gradient(160deg,var(--blue-xl),var(--panel) 62%);box-shadow:inset 0 0 0 1.5px var(--blue)}
#site .pp-level[role="radio"]:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
#site .pp-level>.pp-lv-p,#site .pp-level>.pp-lv-d{display:block}
#site .pp-lv-top{display:flex;align-items:center;gap:10px;min-width:0}
#site .pp-lv-dot{flex:none;width:18px;height:18px;border-radius:50%;background:var(--panel);box-shadow:inset 0 0 0 2px var(--line-2);transition:box-shadow .15s}
#site .pp-level[aria-checked="true"] .pp-lv-dot{box-shadow:inset 0 0 0 5.5px var(--blue-fill)}
#site .pp-lv-tag{margin-inline-start:auto;visibility:hidden;padding:3px 9px;border-radius:999px;background:var(--blue-fill);color:var(--on-blue);font-size:11.5px;font-weight:700;line-height:1.3;letter-spacing:0;text-transform:none;white-space:nowrap}
#site .pp-level[aria-checked="true"] .pp-lv-tag{visibility:visible}
/* the action bar: the picked level's name before its price ("Comfort · THB 32,400 per person"); 1.17.0: the plan page's
   sticky card (inc/plan.php aside#plan-card, .pp-card-p) names it the same way */
#site :is(.pp-cta-p,.pp-card-p) .pp-cta-lv{font-weight:700;color:var(--fg)}
#site :is(.pp-cta-p,.pp-card-p) .pp-cta-lv::after{content:" \00B7";font-weight:400;color:var(--muted)}

/* ---------- Reset Plans cards: the level tiles as radio buttons, under "Choose a level" ---------- */
#site .rp-lvhead{margin-bottom:-4px;font-size:12.5px;font-weight:600;line-height:1.3;color:var(--muted)}
#site .rp-lvl[role="radio"]{display:block;width:100%;background:var(--panel);font:inherit;color:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s,box-shadow .15s,color .15s}
#site .rp-lvl[role="radio"]:hover{background:var(--blue-xl);box-shadow:inset 0 0 0 1.5px var(--blue-l)}
#site .rp-lvl[role="radio"][aria-checked="true"]{background:var(--blue-xl);box-shadow:inset 0 0 0 2px var(--blue)}
#site .rp-lvl[role="radio"][aria-checked="true"] small{color:var(--blue-d)}
#site .rp-lvl[role="radio"]:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

@media (prefers-reduced-motion:reduce){
  #site .pp-level[role="radio"],#site .pp-lv-dot,#site .rp-lvl[role="radio"]{transition:none}
}
