/* minisite.css — a service's own page (tools/build_minisites.py), on top of shop.css.
   Same Isotype look: paper, ink, the category's colour, hard shadows. Big pages add pictures that stay still
   while the page slides over them (her word 2026-10-15), printed in two inks like a riso print. */

.p-m main { position: relative }
.p-m .back { margin: 0 0 .9rem; font-size: .95rem }
.p-m .back a { color: var(--mut) }

/* ---------------------------------------------------------------- hero */
.m-hero { position: relative; margin: 0 0 1rem }
.m-hero-in { position: relative; z-index: 1; padding: 1.4rem 0 .4rem }
.m-hero h1 { margin: 0 0 .25rem; font-size: clamp(2.4rem, 11vw, 4.4rem); line-height: .98 }
.m-th { margin: 0 0 .9rem; font: 600 1.15rem/1.4 var(--sys); color: var(--mut) }
.m-hero .lede { margin: 0 0 1.1rem; font-size: 1.2rem; color: var(--fg) }
.m-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; margin: 0 0 .9rem }
.m-price .k { font: 700 .78rem/1.2 var(--font-l); letter-spacing: var(--label-track); text-transform: var(--label-case); color: var(--mut) }
:lang(th) .m-price .k, :lang(my) .m-price .k, :lang(zh) .m-price .k { font-size: .95rem; letter-spacing: 0 }
.m-price b { font: 700 clamp(1.9rem, 8vw, 2.6rem)/1 var(--font-num); font-variant-numeric: tabular-nums }
.acts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.2rem }
.acts .btn { min-height: 3.2rem; font-size: 1.08rem }
.acts .big-cta { min-width: 9rem }
.acts .big-cta::after { content: "→"; font-weight: 400 }
.m-hero .job { margin-top: .6rem }

/* a big page's hero sits on its picture, the words on a paper card */
.m-hero.has-pic { margin: 0 calc(50% - 50vw) 0; }
.m-hero.has-pic .m-pic { min-height: min(92svh, 56rem); display: flex; align-items: flex-end; padding: 6rem max(1rem, calc(50vw - 23rem)) 1.6rem }
.m-hero.has-pic .m-hero-in { max-width: 46rem; width: 100%; padding: 1.2rem 1.15rem .3rem; background: var(--bg2); border: var(--card-bd); border-radius: var(--r); box-shadow: 8px 8px 0 var(--fg) }

/* ---------------------------------------------------------------- the still picture: a fixed layer clipped to its band */
.m-pic { position: relative; clip-path: inset(0); isolation: isolate; background: var(--line) }
.m-pin { position: fixed; inset: 0; z-index: -2; background: var(--pic) center / cover no-repeat; filter: grayscale(1) contrast(1.15) brightness(1.08) }
/* the second ink: the category's colour laid over the grey, and a fine dot screen */
.m-pic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--line); mix-blend-mode: multiply; opacity: .78 }
.m-pic::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--fg) 26%, transparent) 0 .9px, transparent 1.3px) 0 0 / 5px 5px; opacity: .55 }
@media (prefers-color-scheme: dark) { .m-pic::before { mix-blend-mode: multiply; opacity: .62 } .m-pin { filter: grayscale(1) contrast(1.1) brightness(.62) } }
@media (prefers-reduced-motion: reduce) { .m-pin { position: absolute } }

.m-band { margin: 3rem calc(50% - 50vw) }
.m-band .m-pic { min-height: min(78svh, 44rem); display: flex; align-items: center; justify-content: center; padding: 3rem 1rem }
.m-band .say { max-width: 34rem; margin: 0; padding: 1.1rem 1.25rem; background: var(--bg2); border: var(--card-bd); border-radius: var(--r); box-shadow: 8px 8px 0 var(--fg);
  font: 700 clamp(1.35rem, 5.4vw, 2rem)/1.2 var(--font-d); letter-spacing: var(--hd-track); text-wrap: balance }
:lang(th) .m-band .say, :lang(my) .m-band .say { line-height: 1.45; letter-spacing: 0 }

/* ---------------------------------------------------------------- the slab of numbers */
.m-slab ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 2rem 0 0; padding: 0; list-style: none; border-top: 3px solid var(--fg) }
@media (min-width: 44rem) { .m-slab ul { grid-template-columns: repeat(4, minmax(0, 1fr)) } }
.m-slab li { min-width: 0; padding: 1rem .9rem 1.1rem 0; border-bottom: 1px solid var(--rule) }
.m-slab b { display: block; overflow-wrap: anywhere; font: 700 clamp(1.9rem, 8.4vw, 2.7rem)/1 var(--font-num); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  text-decoration: underline var(--line) .22em; text-underline-offset: .18em; text-decoration-skip-ink: none }
.m-slab li > span { display: block; margin-top: .65rem; font-size: .95rem; line-height: 1.4; color: var(--mut) }

/* ---------------------------------------------------------------- try it */
.m-toy h3 { margin: 0 0 1rem; font: var(--hd-w) clamp(1.6rem, 6.6vw, 2.3rem)/1.08 var(--font-d); letter-spacing: var(--hd-track); text-transform: lowercase }
:lang(th) .m-toy h3, :lang(my) .m-toy h3 { line-height: 1.35; letter-spacing: 0 }
.toy { --tbg: var(--fg); --tfg: var(--bg2); position: relative; margin: 0 -1rem; padding: 1.3rem 1rem 1.4rem; background: var(--tbg); color: var(--tfg); border-radius: 0 }
@media (min-width: 40rem) { .toy { margin: 0; padding: 1.6rem 1.5rem; border-radius: var(--r); box-shadow: 8px 8px 0 var(--line) } }
.toy a { color: inherit }
.toy .row { margin: 0 0 1.15rem }
.toy .lab { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .5rem; font: 700 .8rem/1.2 var(--font-l); letter-spacing: var(--label-track); text-transform: var(--label-case); opacity: .85 }
:lang(th) .toy .lab, :lang(my) .toy .lab, :lang(zh) .toy .lab { font-size: .98rem; letter-spacing: 0 }
.toy .lab output { font: 700 1.6rem/1 var(--font-num); letter-spacing: 0; text-transform: none; opacity: 1 }
.toy .seg { display: flex; flex-wrap: wrap; gap: .4rem }
.toy .seg button { flex: 1 1 auto; min-height: 2.9rem; padding: .5rem .8rem; border: 1.5px solid var(--tfg); border-radius: var(--btn-r); background: transparent; color: var(--tfg); font: 650 1rem/1.15 var(--sys); cursor: pointer }
.toy .seg button[aria-pressed="true"] { background: var(--tfg); border-color: var(--tfg); color: var(--tbg); box-shadow: 0 0 0 3px var(--line) }
.toy input[type="range"] { width: 100%; height: 2.4rem; accent-color: var(--line); background: transparent }
.toy .months { display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem }
@media (min-width: 40rem) { .toy .months { grid-template-columns: repeat(12, 1fr) } }
.toy .months button { min-height: 2.7rem; padding: .2rem; border: 1.5px solid var(--tfg); border-radius: var(--btn-r); background: transparent; color: var(--tfg); font: 700 .86rem/1 var(--font-num); cursor: pointer }
.toy .months button i { display: block; margin: .25rem auto 0; width: .55rem; height: .55rem; border-radius: 50% }
.toy .months .dry i { background: #7DD3A3 } .toy .months .smoke i { background: #B8B0A2 } .toy .months .rain i { background: #8FB8F0 }
.toy .months button[aria-pressed="true"] { background: var(--tfg); color: var(--tbg) }
.toy .mnote { min-height: 1.4em; margin: .5rem 0 0; font-size: .98rem; opacity: .9 }

/* Isotype: one figure stands for ten guests */
.toy .crowd { display: flex; flex-wrap: wrap; gap: .2rem .25rem; min-height: 2.2rem; margin: .6rem 0 0 }
.toy .crowd svg { width: 1rem; height: 1.7rem; fill: var(--tfg); transition: transform .3s var(--ease) }
.toy .crowd svg.half { clip-path: inset(0 50% 0 0) }
.toy .crowd svg:hover, .toy .crowd svg.hop { transform: translateY(-.3rem) }
.toy .key { margin: .3rem 0 0; font-size: .85rem; opacity: .75 }

.toy .bill { margin: 1.4rem 0 0; padding: 1rem 0 0; border-top: 2px solid var(--tfg) }
.toy .bill table { width: 100%; border-collapse: collapse; font-size: .98rem }
.toy .bill td { padding: .42rem 0; border-bottom: 1px solid color-mix(in oklab, var(--tfg) 22%, transparent); vertical-align: top }
.toy .bill td:last-child { text-align: right; white-space: nowrap; font-size: .95rem; font-family: var(--font-num); font-variant-numeric: tabular-nums; padding-left: .8rem }
.toy .bill .nm { display: block } .toy .bill .nm i { display: inline-block; width: .7rem; height: .7rem; margin-right: .45rem }
.toy .bill td a { display: block; margin-left: 1.15rem; font-size: .78rem; opacity: .7 }
.toy .bar { display: flex; height: 1.5rem; margin: 1rem 0 .4rem; border: 1.5px solid var(--tfg); border-radius: 2px; overflow: hidden }
.toy .bar i { display: block; height: 100%; transition: flex-basis .45s var(--ease) }
.toy .sum { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; margin: 1rem 0 0 }
.toy .sum b { font: 700 clamp(1.7rem, 7.4vw, 2.6rem)/1.1 var(--font-num); font-variant-numeric: tabular-nums }
.toy .ours { margin: 1rem 0 0; padding: .8rem .9rem; border-radius: var(--r); background: color-mix(in oklab, var(--tfg) 10%, transparent) }
.toy .ours b { font-family: var(--font-num) }
.toy .btn { background: var(--tfg); color: var(--tbg); box-shadow: 3px 3px 0 var(--line) }
.toy .amt-us, .toy .amt-eu { color: inherit }   /* the toy is the page turned inside out, so the page's dollar and euro inks would sit on the wrong ground; amounts take the toy's own ink */

/* ---------------------------------------------------------------- how it goes */
.m-how .job.steps { margin: .4rem 0 4.2rem }
.m-how .job.steps .cap { max-width: 5.6rem; font-size: .72rem }
.m-how .job.steps .cap i { display: none }
.howlist { counter-reset: s; margin: 0; padding: 0; list-style: none }
.howlist li { counter-increment: s; position: relative; padding: .75rem 0 .8rem 3rem; border-top: 1px solid var(--rule) }
.howlist li::before { content: counter(s); position: absolute; left: 0; top: .7rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--line); color: #121212; font: 700 1rem/1 var(--font-num) }
.howlist b { display: block; font-weight: 680 }
.howlist span { display: block; margin-top: .15rem; color: var(--mut); font-size: .95rem }
@media (max-width: 30rem) { .m-how .job.steps .cap { display: none } .m-how .job.steps { margin-bottom: 1.4rem } }

/* ---------------------------------------------------------------- what you get */
.opts { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--fg) }
.opts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule) }
.opts .on { font-weight: 680 }
.opts b { font: 700 1.15rem/1.3 var(--font-num); font-variant-numeric: tabular-nums; text-align: right }
.opts .d { grid-column: 1 / -1; color: var(--mut); font-size: .95rem }
.m-get .ladder { margin: .9rem 0 0 }
.m-get .acts { margin-top: 1.2rem }

/* ---------------------------------------------------------------- facts, costs, questions */
.m-facts ul { margin: 0; padding: 0; list-style: none }
.m-facts li { position: relative; padding: .7rem 0 .75rem 1.6rem; border-top: 1px solid var(--rule) }
.m-facts li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .7rem; height: .7rem; background: var(--line) }
.src { margin-left: .2rem; font-size: .8rem; color: var(--mut); white-space: nowrap }
.m-costs table { width: 100%; table-layout: fixed; border-collapse: collapse; border-top: 3px solid var(--fg) }
.m-costs th, .m-costs td { padding: .7rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400 }
.m-costs td { width: 45%; padding-left: 1rem; text-align: right; overflow-wrap: anywhere; font-family: var(--font-num); font-variant-numeric: tabular-nums }
.m-costs td .src { display: block; font-family: var(--sys) }
.p-m .src { white-space: normal } .p-m .src, .m-costs th { overflow-wrap: anywhere }   /* a long source host (digitalagencybangkok.com) wraps instead of widening the page */
.m-costs tr.ours th, .m-costs tr.ours td { font-weight: 700; border-bottom: 3px solid var(--line) }
.m-faq details { border-top: 1px solid var(--rule) }
.m-faq details:last-child { border-bottom: 1px solid var(--rule) }
.m-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; list-style: none; cursor: pointer; font-weight: 680 }
.m-faq summary::-webkit-details-marker { display: none }
.m-faq summary::after { content: "+"; flex: none; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border: 1.5px solid var(--fg); border-radius: 50%; font: 700 1.1rem/1 var(--sys) }
.m-faq details[open] summary::after { content: "–"; background: var(--line); border-color: var(--line); color: #121212 }
.m-faq details p { margin: 0 0 1rem; color: var(--fg) }

/* ---------------------------------------------------------------- proof, related, elsewhere */
.m-proof ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none }
.m-proof a { display: block; text-decoration: none; border: var(--card-bd); border-radius: var(--r); background: var(--bg2); box-shadow: var(--card-shadow); overflow: hidden }
.m-proof img { display: block; width: 100%; height: auto; border-bottom: var(--card-bd) }
.m-proof span { display: block; padding: .7rem .8rem; font-weight: 650 }
.cards.rel { grid-template-columns: minmax(0, 1fr) }
@media (min-width: 40rem) { .cards.rel { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.cards.rel h3 a { text-decoration: none }
.cards.rel h3 a::after { content: ""; position: absolute; inset: 0 }
.cards.rel .card { position: relative }
.more { margin: 1rem 0 0; font-weight: 650 }
.m-out ul { margin: 0; padding-left: 1.2rem }
.m-out li { margin: .45rem 0 }
.m-small { margin: 2.8rem 0 0; padding: .8rem 0; border-top: 1px solid var(--rule); color: var(--mut); font-size: .95rem }
.m-small summary { cursor: pointer; font-weight: 650 }

/* ---------------------------------------------------------------- the Buy bar at the foot of a phone screen */
.m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: .7rem; padding: .6rem max(1rem, calc(50vw - 22rem)) calc(.6rem + env(safe-area-inset-bottom));
  background: var(--bg2); border-top: 2px solid var(--fg); box-shadow: 0 -4px 0 var(--line); transform: translateY(110%); transition: transform .3s var(--ease) }
.m-bar.on { transform: none }
.m-bar .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 680 }
.m-bar b { font: 700 1.1rem/1 var(--font-num); white-space: nowrap }
.m-bar .btn { min-height: 2.7rem; padding: .5rem 1.1rem }
.p-m footer { margin-bottom: 4.5rem }

/* related services: the same cards, a smaller line so six fit a phone screen or two */
.cards.rel .card { padding: .95rem 1rem 1rem }
.cards.rel .job { --stop: 1.85rem; --lineY: .5rem; --clear: 1.3rem; margin: 0 0 .7rem }
.cards.rel .rider .db { font-size: 1.5rem }

/* the service's own drawing beside its name: floated right on the paper, an Isotype frame round it */
.m-draw { float: right; width: min(40%, 16rem); margin: .2rem 0 .8rem 1rem; border: var(--card-bd); border-radius: var(--r); background: #f5efe2; box-shadow: 6px 6px 0 var(--line); overflow: hidden }
.m-draw img { display: block; width: 100%; height: auto }
.m-hero-in::after { content: ""; display: block; clear: both }
@media (max-width: 30rem) { .m-draw { width: 42%; margin-left: .8rem } }

/* the page's picture until a drawn one comes: the service's own dingbats, large, on its category's colour */
.m-glyphs { position: relative; float: right; width: min(42%, 17rem); aspect-ratio: 520 / 630; margin: .2rem 0 .8rem 1rem; overflow: hidden;
  border: var(--card-bd); border-radius: var(--r); box-shadow: 6px 6px 0 var(--fg);
  background: radial-gradient(circle, color-mix(in oklab, var(--line) 55%, transparent) 0 1px, transparent 1.4px) 0 0 / 7px 7px, color-mix(in oklab, var(--line) 22%, var(--bg2)) }
.m-glyphs .g { position: absolute; line-height: 0 }
.m-glyphs .g .db { font-size: 1em }
.m-glyphs { container-type: inline-size }
.m-glyphs .g0 { left: 2%; top: 1%; font-size: 70cqw }
.m-glyphs .g1 { right: -4%; top: 38%; font-size: 52cqw }
.m-glyphs .g2 { left: 2%; bottom: -2%; font-size: 50cqw }

/* a big page's top until its drawn picture comes: the dingbats large across a band of the category's colour */
.m-gband { position: relative; min-height: min(92svh, 56rem); display: flex; align-items: flex-end; padding: 13rem max(1rem, calc(50vw - 23rem)) 1.6rem; overflow: hidden;
  background: radial-gradient(circle, color-mix(in oklab, var(--line) 55%, transparent) 0 1.2px, transparent 1.7px) 0 0 / 9px 9px, color-mix(in oklab, var(--line) 22%, var(--bg2)) }
.m-gband .m-hero-in { position: relative; z-index: 1; max-width: 46rem; width: 100%; padding: 1.2rem 1.15rem .3rem; background: var(--bg2); border: var(--card-bd); border-radius: var(--r); box-shadow: 8px 8px 0 var(--fg) }
.m-gbig { position: absolute; inset: 0; margin: 0; container-type: inline-size; pointer-events: auto }
.m-gbig .g { position: absolute; line-height: 0 }
.m-gbig .g0 { right: 6%; top: 2%; font-size: clamp(10rem, 46cqw, 26rem) }
.m-gbig .g1 { left: 4%; top: 6%; font-size: clamp(6rem, 26cqw, 15rem) }
.m-gbig .g2 { right: 38%; top: 24%; font-size: clamp(5rem, 22cqw, 12rem) }
.m-hero h1 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal }

/* toy kinds: picker (choose one, see its facts) and checklist (tick what you have) */
.toy .seg.pick button { flex: 1 1 40% }
.toy .pick-card { margin: 1rem 0 0; padding: 1rem 1.05rem; border: 1.5px solid var(--tfg); border-radius: var(--r) }
.toy .pick-card .big { margin: 0 0 .5rem; font: 700 clamp(1.6rem, 7vw, 2.3rem)/1.1 var(--font-num) }
.toy .pick-card ul { margin: .6rem 0 0; padding-left: 1.1rem }
.toy .pick-card li { margin: .3rem 0 }
.toy .src-line { margin: .6rem 0 0; font-size: .85rem; opacity: .75 }
.toy .ticks { margin: 0; padding: 0; list-style: none }
.toy .ticks li { border-bottom: 1px solid color-mix(in oklab, var(--tfg) 22%, transparent) }
.toy .ticks label { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; cursor: pointer }
.toy .ticks input { flex: none; width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; accent-color: var(--line, #7DD3A3) }
.toy .ticks b { display: block; font-weight: 680 }
.toy .ticks i { display: block; margin-top: .2rem; font-style: normal; font-size: .92rem; opacity: .8 }
.toy .ticks i a { font-size: .8rem }
.toy .tally .bar { margin-top: 1.2rem }
