/* The TigerTag protocol site — same look as the Tiger Touch site (dark by default,
   light when the system asks for it or when chosen with the button). */
:root {
  --bg: #14161a; --card: #1e2128; --line: #2b2f38; --text: #f2f2f2;
  --muted: #9aa0aa; --accent: #f58220; --link: #f58220; --code: #101216;
  --shadow: rgba(0, 0, 0, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f5f7; --card: #ffffff; --line: #dde0e6; --text: #16181d;
    --muted: #5d6470; --accent: #e06d0c; --link: #b04a08; --code: #f0f1f4;
    --shadow: rgba(0, 0, 0, .12);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f5f7; --card: #ffffff; --line: #dde0e6; --text: #16181d;
  --muted: #5d6470; --accent: #e06d0c; --link: #b04a08; --code: #f0f1f4;
  --shadow: rgba(0, 0, 0, .12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* The hero picture overflows its column on purpose: never let it scroll the page sideways. */
  overflow-x: clip;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1200px, 100% - 48px); margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }
.muted, p { color: var(--muted); }
p { margin: 0 0 14px; }
b { color: var(--text); }
h1, h2, h3 { line-height: 1.2; color: var(--text); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); margin: 0 0 8px; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; margin: 0 0 8px; }
.sub { font-size: 1.05rem; max-width: 760px; margin-bottom: 22px; }
.gap { margin-top: 48px; }
section { margin-top: 64px; scroll-margin-top: 80px; }

/* Header: the logo, the sections, the theme and the language. */
header.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.bar .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brandmark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.brandmark b { color: var(--accent); }
.brandmark img { height: 36px; width: auto; }
.logo-light { display: none; }
:root[data-shown="light"] .logo-light { display: block; }
:root[data-shown="light"] .logo-dark { display: none; }
.nav { display: flex; gap: 18px; flex: 1; justify-content: center; flex-wrap: wrap; }
/* Longer words (French, German, Russian…) keep the menu on one line. */
@media (max-width: 1320px) { .nav { gap: 12px; } .nav a { font-size: .88rem; } }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.tools { display: flex; gap: 8px; align-items: center; }
.themebtn, .langbtn {
  display: flex; align-items: center; gap: 6px; height: 40px; cursor: pointer; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .9rem;
}
.themebtn { width: 40px; justify-content: center; }
.langbtn { padding: 0 12px; list-style: none; }
.langbtn::-webkit-details-marker { display: none; }
.themebtn:hover, .langbtn:hover { border-color: var(--accent); color: var(--text); }
.themebtn svg, .langbtn svg { width: 17px; height: 17px; flex: none; }
.themebtn .sun { display: none; }
:root[data-shown="light"] .themebtn .sun { display: block; }
:root[data-shown="light"] .themebtn .moon { display: none; }
.langbox { position: relative; }
.langlist {
  position: absolute; right: 0; top: 46px; margin: 0; padding: 6px; list-style: none; min-width: 180px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px var(--shadow);
}
.langlist a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.langlist a:hover, .langlist a[aria-current="true"] { background: var(--bg); color: var(--accent); }

/* Hero. */
.hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; margin-top: 32px; }
h1 { margin: 0; }
h1 .kicker, h1 .name { display: block; }
.kicker { color: var(--accent); font-weight: 650; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 10px; }
.hero .name { margin: 0; font-size: clamp(3rem, 1.8rem + 5vw, 5.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.hero .name span { color: var(--accent); }
.headline { text-wrap: balance; margin: 16px 0 12px; color: var(--text); font-weight: 650; line-height: 1.25; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.8rem); }
.lead { font-size: 1.08rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); color: var(--text); background: var(--card); font-weight: 600;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1a0f05; }
.btn.small { padding: 8px 14px; font-size: .9rem; }
/* The picture is wider than its column: the devices sit on a transparent stage with
   room around them, so it grows past the column's edges without crowding the text. */
.show img { display: block; width: 114%; max-width: none; margin: 0 -2% 0 -12%; }
.eco-hero { margin: 0 0 20px; }
.eco-hero img { display: block; width: min(1000px, 100%); margin: 0 auto; }

/* Four facts. */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.fact b { display: block; font-size: 1.6rem; color: var(--accent); line-height: 1.2; }
.fact span { color: var(--muted); font-size: .93rem; }

/* Cards and grids. */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card.accent { border-color: var(--accent); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.ico { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.pill { display: inline-block; font: 600 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.more { display: inline-block; font-weight: 600; text-decoration: none; margin-top: 4px; }
.more:hover { text-decoration: underline; }
.links { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
pre { margin: 0 0 14px; background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
code { font: .95rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }

/* How it works. */
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #1a0f05; font-weight: 800; margin-bottom: 12px; }
.pages { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 4px; margin: 14px 0 18px; }
.pg { aspect-ratio: 1; border-radius: 5px; display: grid; place-items: center; font: 600 .6rem ui-monospace, Menlo, monospace; color: #1a0f05; }
.pg.data { background: var(--accent); }
.pg.sig { background: color-mix(in srgb, var(--accent) 35%, var(--card)); color: var(--text); }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.sw.data { background: var(--accent); }
.sw.sig { background: color-mix(in srgb, var(--accent) 35%, var(--card)); }

/* Brands. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.stack h3 { margin-top: 4px; }
.boxes { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.boxes figcaption { grid-column: 1 / -1; color: var(--muted); text-align: center; margin-top: 10px; }

/* Ecosystem. */
.eco { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.eco .wide { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center; }
.eco .wide img { border-radius: 12px; }
.eco .dev img { display: block; height: 170px; width: auto; max-width: 100%; margin: 0 auto 14px; object-fit: contain; }
.comm { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.comm li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.comm a { font-weight: 700; display: block; text-decoration: none; }
.comm span { color: var(--muted); font-size: .95rem; }

/* FAQ. */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 0; color: var(--text); }
.faq details p { padding-bottom: 6px; }

/* The call at the end. */
.join {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 32px; border-radius: 18px; color: #fff;
  background: linear-gradient(120deg, #c2410c 0%, #b03a12 55%, #9a2f12 100%);
}
.join h2, .join p { color: #fff; margin: 0 0 6px; }
.joinbtn { flex: none; padding: 14px 26px; border-radius: 999px; text-decoration: none; background: #fff; color: #9a2f12; font-weight: 700; white-space: nowrap; }
footer.foot { margin-top: 48px; padding: 28px 0 48px; border-top: 1px solid var(--line); text-align: center; font-size: .9rem; }
footer.foot .links { justify-content: center; }

/* Playground. Field groups share one colour in the byte grid and in the table. */
.playground { --g-id: #f58220; --g-mat: #3b82f6; --g-col: #ec4899; --g-qty: #22c55e; --g-set: #eab308; --g-twin: #a855f7; --g-msg: #14b8a6; --g-res: #6b7280; --g-sig: #8b5e3c; }
.pg-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.pg-tabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--bg); padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.pg-tab { flex: 1; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 650; padding: 9px 8px; border-radius: 9px; cursor: pointer; }
.pg-tab[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 4px var(--shadow); }
.pg-f { display: block; margin-bottom: 12px; }
.pg-f > span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 5px; }
/* The field's name in the specification, next to its label. */
.pg-fname { font: 600 .72rem ui-monospace, Menlo, monospace; color: var(--accent); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 4px; white-space: nowrap; }
.pg-fname--row { display: block; width: fit-content; margin: 3px 0 0 17px; font-weight: 500; color: var(--muted); }
.pg-left { display: grid; grid-template-columns: 1fr 96px; gap: 10px; align-items: center; }
#pg-left-out, #pg-msg-out { color: var(--text); font-weight: 600; margin-left: 6px; }
.pg-td { max-width: 50%; }
/* How many of the message's 28 bytes are used. */
.pg-meter { display: block; height: 6px; margin-top: 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.pg-meter i { display: block; height: 100%; width: 0; background: var(--g-msg); transition: width .15s ease; }
.pg-meter i.is-full { background: var(--accent); }
.pg-f select, .pg-f input:not([type=color]):not([type=range]), .pg-f textarea, .pg-colors select {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.pg-f textarea { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.pg-f select:focus, .pg-f input:focus, .pg-f textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pg-f input[type=range] { width: 100%; accent-color: var(--accent); }
.pg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg-2 .pg-f { margin-bottom: 12px; }
.pg-colors { display: flex; gap: 8px; align-items: center; }
.pg-colors select { width: 70px; }
.pg-colors input[type=color][hidden] { display: none; }
/* A long list with a search box (brands, materials, aspects). */
.pg-combo { position: relative; }
.pg-combo-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: inherit; font-size: .95rem;
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; text-align: left; }
.pg-combo-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-combo-btn svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.pg-combo-btn:focus-visible, .pg-combo-btn[aria-expanded="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.pg-combo-pop { position: absolute; z-index: 20; left: 0; min-width: max(100%, 260px); top: calc(100% + 6px); background: var(--card);
  border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); padding: 8px; }
.pg-combo-pop[hidden] { display: none; }
.pg-combo-q { width: 100%; font: inherit; font-size: .92rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.pg-combo-q:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.pg-combo-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.pg-combo-list li { padding: 7px 10px; border-radius: 7px; cursor: pointer; color: var(--text); font-size: .92rem; }
.pg-combo-list li:hover, .pg-combo-list li.is-active { background: var(--bg); }
.pg-combo-list li[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.pg-combo-list .pg-combo-none { color: var(--muted); cursor: default; }
.pg-colors input[type=color] { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 3px; cursor: pointer; }
.pg-list { list-style: none; margin: 0 0 12px; padding: 0; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.pg-list:empty { display: none; }
.pg-list { max-height: 360px; }
.pg-list button { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 6px 10px 6px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.pg-list button:hover { background: var(--bg); }
/* The spool colour frames the photo, photo corners rounded inside the frame:
   Tiger Studio Manager's .thumb-wrap (a transparent border on the photo, the
   frame painted by the wrapper's background, which may be a gradient). */
.pg-thumb { flex: none; display: inline-flex; border-radius: 10px; overflow: hidden; background: var(--spool-bg, var(--line)); }
.pg-thumb img { display: block; width: 56px; height: 56px; object-fit: cover; box-sizing: border-box;
  border: 4px solid transparent; border-radius: 10px; background: #fff; background-clip: padding-box; }
.pg-thumb[hidden] { display: none; }
/* The hover preview: one element on the page, so the list's scroll box never clips it. */
.pg-zoom { position: fixed; z-index: 50; pointer-events: none; padding: 6px; border-radius: 16px;
  background: var(--spool-bg, var(--card)); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
  opacity: 0; transform: scale(.92); transition: opacity .14s ease, transform .16s cubic-bezier(.2, .8, .2, 1); }
.pg-zoom.is-on { opacity: 1; transform: none; }
.pg-zoom img { display: block; width: 220px; height: 220px; object-fit: cover; border-radius: 11px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .pg-zoom { transition: none; } }
.pg-ptxt { min-width: 0; }
.pg-ptxt b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-ptxt small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-muted { padding: 10px 12px; color: var(--muted); }
.pg-headtxt { min-width: 0; }
.pg-ptitle { display: block; font-size: 1.05rem; color: var(--text); }
.pg-ptitle:empty, .pg-pmeta:empty { display: none; }
.pg-pmeta { display: block; color: var(--muted); font-size: .88rem; margin: 2px 0 8px; }
.pg-common { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.pg-error { color: #f06a6a; margin: 8px 0 0; min-height: 1px; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pg-filebtn { cursor: pointer; }
.pg-out { display: grid; gap: 16px; }
.pg-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
/* A pill of Tiger Studio Manager's lists: photo in its colour frame, name, sub line. */
.pg-pill { flex: none; width: min(420px, 100%); display: flex; gap: 12px; align-items: center; padding: 8px 14px 8px 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.pg-thumb--pill img.pg-pill-photo { width: 64px; height: 64px; }
.pg-pill-photo[hidden], .pg-pill-color[hidden] { display: none; }
/* No photo: Studio's colour square with the logo watermark top right. */
.pg-pill-color { width: 64px; height: 64px; border-radius: 10px; display: flex; align-items: flex-start; justify-content: flex-end; }
.pg-pill-color img { width: 42%; height: auto; margin: 8%; border: 0; border-radius: 0; background: none; object-fit: contain; }
.pg-pill .pg-ptxt b { font-size: 1rem; }
.pg-pill .pg-ptxt small { font-size: .85rem; }
.pg-summary { margin: 0; color: var(--text); font-weight: 600; }
.pg-bytes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(18, auto); grid-auto-flow: column; gap: 4px 14px; margin: 10px 0 6px; }
.pg-row { display: grid; grid-template-columns: 26px repeat(4, minmax(0, 1fr)); gap: 3px; align-items: center; }
.pg-page { font: 600 .68rem ui-monospace, Menlo, monospace; color: var(--muted); }
.pg-b { font: 600 .78rem ui-monospace, Menlo, monospace; padding: 5px 0; border-radius: 6px; cursor: pointer; color: var(--text);
  border: 1px solid transparent; background: color-mix(in srgb, var(--g) 22%, var(--card)); }
.pg-b:hover { border-color: var(--g); }
.pg-b.pg-sel { background: var(--g); color: #111; }
.pg-b.pg-changed { animation: pgflash 1s ease-out; }
@keyframes pgflash { from { box-shadow: 0 0 0 3px var(--g); } to { box-shadow: 0 0 0 0 transparent; } }
.g-id { --g: var(--g-id); } .g-mat { --g: var(--g-mat); } .g-col { --g: var(--g-col); } .g-qty { --g: var(--g-qty); }
.g-set { --g: var(--g-set); } .g-twin { --g: var(--g-twin); } .g-msg { --g: var(--g-msg); } .g-res { --g: var(--g-res); } .g-sig { --g: var(--g-sig); }
.pg-explain { min-height: 2.6em; margin: 8px 0 0; font-size: .92rem; }
.pg-hex { width: 100%; font: .75rem ui-monospace, Menlo, monospace; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; resize: vertical; word-break: break-all; }
.pg-table { margin-top: 16px; }
.pg-scroll { overflow-x: auto; }
.pg-fields { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pg-fields th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.pg-fields td { padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
.pg-fields tr { cursor: pointer; }
.pg-fields tr:hover td, .pg-fields tr.pg-sel td { background: color-mix(in srgb, var(--g) 14%, transparent); }
.pg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--g); margin-right: 8px; }
.pg-mono { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; white-space: nowrap; }
.pg-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--line); }
.small { font-size: .85rem; }

/* Tablet. */
@media (max-width: 999px) {
  .nav { display: none; }
  header.bar .wrap { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .show img { width: 100%; margin: 0; }
  .ctas { justify-content: center; }
  .facts, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3, .eco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco .wide { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .pg-grid { grid-template-columns: 1fr; }
}
/* Phone. */
@media (max-width: 639px) {
  .wrap { width: calc(100% - 32px); }
  section { margin-top: 44px; }
  .facts, .steps, .grid3, .grid2, .eco, .comm, .legend { grid-template-columns: 1fr; }
  .eco .wide { grid-column: auto; grid-template-columns: 1fr; }
  .card { padding: 20px; border-radius: 14px; }
  .pages { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .join { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .joinbtn { align-self: stretch; text-align: center; }
  .langbtn span { display: none; }
  .pg-bytes { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .pg-head { flex-direction: column; align-items: flex-start; }
}

/* Product rows and the selected product as Tiger Studio Manager's list pills:
   the spool colour fills the left edge of the card, top to bottom, and the
   photo sits smaller inside it. */
.pg-list { border: 0; display: grid; gap: 6px; padding: 2px; }
.pg-list li { list-style: none; }
.pg-list button { padding: 0 12px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; min-height: 64px; }
.pg-list button:hover { border-color: var(--accent); }
.pg-list .pg-thumb, .pg-pill .pg-thumb { align-self: stretch; width: 64px; border-radius: 0; display: grid; place-items: center; }
.pg-list .pg-thumb img { width: 48px; height: 48px; border: 0; border-radius: 8px; background: #fff; }
.pg-pill { padding: 0 14px 0 0; overflow: hidden; min-height: 80px; }
.pg-pill .pg-thumb { width: 80px; }
.pg-pill .pg-thumb img.pg-pill-photo { width: 60px; height: 60px; border: 0; border-radius: 9px; background: #fff; }
.pg-pill .pg-pill-color { width: 100%; height: 100%; border-radius: 0; }
.pg-pill .pg-pill-color img { width: 30%; }
/* Refills: the coils, then the TigerTag refill carrier front and back. */
.refills { margin-top: 16px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) minmax(0, .9fr); gap: 20px; align-items: center; }
.refills h3 { margin-top: 0; }
.refills figure { margin: 0; display: flex; gap: 6px; align-items: end; justify-content: center; }
.refills-row img { width: 19%; height: auto; }
.refills-carrier img { width: 48%; height: auto; }
@media (max-width: 999px) { .refills { grid-template-columns: 1fr; } }
/* Under the sub line: the aspects, as text. */
.pg-tags { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-tags:empty { display: none; }
/* Refill, as Tiger Studio Manager badges it: green; icon and word top right of
   the selected product's pill, the icon alone top left of the list thumbnails. */
.pg-thumb { position: relative; }
.pg-refill { position: absolute; top: 5px; left: 5px; z-index: 2; display: inline-flex; align-items: center; gap: 3px;
  height: 20px; padding: 0 7px 0 5px; border-radius: 999px; color: #fff; pointer-events: none;
  background: linear-gradient(135deg, #16a34a, #1aaf6c); border: 1.5px solid rgba(255,255,255,.85); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.pg-refill svg { width: 12px; height: 12px; flex: none; }
.pg-refill b { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.pg-refill--sm { top: 3px; left: 3px; width: 15px; height: 15px; padding: 0; justify-content: center; border-width: 1px; }
.pg-refill--sm svg { width: 9px; height: 9px; }
select:disabled { opacity: .75; cursor: not-allowed; }
/* The photo fills its colour frame with a 5px rim, as in Tiger Studio Manager's
   catalogue rows (.cpk-row .cv-thumb--fill): a thin coloured edge, not a mat. */
.pg-list .pg-thumb img, .pg-pill .pg-thumb img.pg-pill-photo { position: absolute; top: 5px; left: 5px;
  width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 8px; object-fit: cover; }
.pg-pill { position: relative; }
.pg-pill > .pg-refill { top: 8px; left: auto; right: 8px; }
.pg-pill.has-refill .pg-ptxt { padding-right: 64px; }
.pg-refill, .pg-refill b { color: #fff; }
.pg-refill svg { stroke: #fff; }
/* A card that spans the whole row, under the grid of three. */
.card--wide { grid-column: 1 / -1; }
