/* «Тон» — дошка об'єкта в шапці сторінки об'єкта (x-ton.board, App\Core\Projects\ObjectBoard; рішення R17). Перенесено з блоків «дошка
   об'єкта» і «друга й третя розкладки дошки» assets/next5.css прототипу: лише розкладка «Колаж» (nb--b → ton-pinboard--collage) з глибокими
   тінями й відгином паперу (nb--deep → ton-pinboard--deep) на полотні «Льон»; об'єкт без речей — --lite (обкладинка й тиждень). Підрамник
   обтягнуто льоном, кожна річ лежить на своєму папері чи тканині й тримається латунною кнопкою; світло одне, згори зліва: тіні падають управо
   вниз і ширшають там, де папір відстає від полотна. --sh — колір тіні на цьому полотні, --sk — її сила. Вертикальна на всіх ширинах: на
   планшеті не ширша за 620 px, на телефоні — свої координати й без слів клієнта.
   Кольорів-літералів немає (tests/Arch/DesignTokensTest.php): льон, латунь, папір і скотч — суміші токенів теми; тканини й фарби — у тонах
   об'єкта (--object, --object-light, --object-deep, --on-object ставить компонент з ObjectTone). Плитка плетіння сіра — колір дає полотно. */

.ton-pinboard {
  /* полотно й латунь — від теплого тону теми й кальки; змінні тут, щоб вигляд можна було підкрутити одним рядком */
  --brass: var(--band);
  --linen: color-mix(in srgb, color-mix(in srgb, var(--brass) 30%, var(--paper-tint)) 82%, var(--paper-shade));
  --cloth: color-mix(in srgb, var(--object) 4%, var(--linen));
  --sh: var(--paper-shade);
  --sk: 1;
  --paper: color-mix(in srgb, var(--paper-tint) 35%, var(--white));
  --card: color-mix(in srgb, var(--brass) 7%, var(--white));
  --note: color-mix(in srgb, var(--brass) 9%, var(--white));
  --tk: clamp(8px, 1.85cqw, 10.5px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .14 0 0 0 .3 -.12'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  --zigzag: polygon(0% 0, 4.5% 2.6%, 9.1% 0, 13.6% 2.6%, 18.2% 0, 22.7% 2.6%, 27.3% 0, 31.8% 2.6%, 36.4% 0, 40.9% 2.6%, 45.5% 0, 50% 2.6%, 54.5% 0, 59.1% 2.6%,
    63.6% 0, 68.2% 2.6%, 72.7% 0, 77.3% 2.6%, 81.8% 0, 86.4% 2.6%, 90.9% 0, 95.5% 2.6%, 100% 0%, 97.4% 4.5%, 100% 9.1%, 97.4% 13.6%, 100% 18.2%,
    97.4% 22.7%, 100% 27.3%, 97.4% 31.8%, 100% 36.4%, 97.4% 40.9%, 100% 45.5%, 97.4% 50%, 100% 54.5%, 97.4% 59.1%, 100% 63.6%, 97.4% 68.2%,
    100% 72.7%, 97.4% 77.3%, 100% 81.8%, 97.4% 86.4%, 100% 90.9%, 97.4% 95.5%, 100% 100%, 95.5% 97.4%, 90.9% 100%, 86.4% 97.4%, 81.8% 100%,
    77.3% 97.4%, 72.7% 100%, 68.2% 97.4%, 63.6% 100%, 59.1% 97.4%, 54.5% 100%, 50% 97.4%, 45.5% 100%, 40.9% 97.4%, 36.4% 100%, 31.8% 97.4%,
    27.3% 100%, 22.7% 97.4%, 18.2% 100%, 13.6% 97.4%, 9.1% 100%, 4.5% 97.4%, 0 100%, 2.6% 95.5%, 0 90.9%, 2.6% 86.4%, 0 81.8%, 2.6% 77.3%,
    0 72.7%, 2.6% 68.2%, 0 63.6%, 2.6% 59.1%, 0 54.5%, 2.6% 50%, 0 45.5%, 2.6% 40.9%, 0 36.4%, 2.6% 31.8%, 0 27.3%, 2.6% 22.7%, 0 18.2%,
    2.6% 13.6%, 0 9.1%, 2.6% 4.5%);
  position: relative;
  aspect-ratio: 10 / 11.7;
  border-radius: 5px;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  color: var(--ink);
  background-color: var(--cloth);
  background-image: url(../../images/ton/board/linen.webp);
  background-size: 256px 256px;
  background-blend-mode: overlay;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 16%, transparent), 0 9px 18px -9px color-mix(in srgb, var(--ink) 30%, transparent);
}
/* полотно загортається за край підрамника, а світло слабне до правого нижнього кута */
.ton-pinboard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 95% at 8% 4%, color-mix(in srgb, var(--white) 13%, transparent), transparent 58%),
    linear-gradient(128deg, transparent 52%, color-mix(in srgb, var(--sh) 13%, transparent) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sh) 14%, transparent), inset 0 1.5px 0 color-mix(in srgb, var(--white) 26%, transparent),
    inset 1.5px 0 0 color-mix(in srgb, var(--white) 12%, transparent), inset 0 -9px 16px -9px color-mix(in srgb, var(--sh) 34%, transparent),
    inset -9px 0 16px -9px color-mix(in srgb, var(--sh) 24%, transparent);
}

/* латунна кнопка: відблиск ліворуч угорі, тінь управо вниз */
.ton-tack {
  position: absolute;
  left: var(--tx, 50%);
  top: var(--ty, 10px);
  z-index: 4;
  width: var(--tk);
  height: var(--tk);
  margin: calc(var(--tk) / -2) 0 0 calc(var(--tk) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 29%, color-mix(in srgb, var(--brass) 15%, var(--white)) 0 7%, color-mix(in srgb, var(--brass) 45%, var(--white)) 17%,
    color-mix(in srgb, var(--brass) 82%, var(--white)) 42%, color-mix(in srgb, var(--brass) 88%, var(--paper-shade)) 72%,
    color-mix(in srgb, var(--brass) 55%, var(--paper-shade)) 100%);
}
.ton-pinboard--deep .ton-tack {
  box-shadow: 0 0 0 .5px color-mix(in srgb, color-mix(in srgb, var(--brass) 25%, var(--paper-shade)) 70%, transparent),
    inset -1px -1.5px 1.5px color-mix(in srgb, var(--paper-shade) 45%, transparent), inset .5px .5px .5px color-mix(in srgb, var(--white) 50%, transparent),
    1.5px 2px 1.5px color-mix(in srgb, var(--sh) calc(62% * var(--sk)), transparent), 4px 7px 5px color-mix(in srgb, var(--sh) calc(30% * var(--sk)), transparent);
}
/* чотири кнопки в кутах тримають саме полотно */
.ton-pinboard > .ton-tack { --tk: clamp(7px, 1.6cqw, 9px); z-index: 0; }
.ton-pinboard > .ton-tack:nth-of-type(1) { --tx: 2.6cqw; --ty: 2.6cqw; }
.ton-pinboard > .ton-tack:nth-of-type(2) { --tx: calc(100% - 2.6cqw); --ty: 2.6cqw; }
.ton-pinboard > .ton-tack:nth-of-type(3) { --tx: 2.6cqw; --ty: calc(100% - 2.6cqw); }
.ton-pinboard > .ton-tack:nth-of-type(4) { --tx: calc(100% - 2.6cqw); --ty: calc(100% - 2.6cqw); }

/* річ на дошці: тінь на полотні (::before) окремо, папір окремо; папір притиснуто вгорі, донизу він відходить — тінь там ширша */
.ton-pin { position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0; transform: rotate(var(--r, 0deg)); }
.ton-pin::before { content: ""; position: absolute; }
.ton-pinboard--deep .ton-pin::before {
  inset: 12% -1% -4.5% 5%;
  border-radius: 4px;
  background: color-mix(in srgb, var(--sh) calc(52% * var(--sk)), transparent);
  filter: blur(var(--sb, 9px));
  transform-origin: 50% 0;
  transform: translate(var(--sx, 8px), var(--sy, 13px)) rotate(var(--sr, 1.5deg));
}
.ton-pin__paper {
  position: relative;
  display: block;
  border-radius: 1.5px;
  background-color: var(--paper);
  background-image: var(--grain), linear-gradient(140deg, transparent 45%, color-mix(in srgb, var(--paper-shade) 7%, transparent) 100%);
}
.ton-pinboard--deep .ton-pin__paper {
  box-shadow: 0 0 0 .5px color-mix(in srgb, var(--sh) 14%, transparent), 1px 1.5px 1.5px color-mix(in srgb, var(--sh) calc(46% * var(--sk)), transparent),
    3px 6px 8px -2px color-mix(in srgb, var(--sh) calc(36% * var(--sk)), transparent);
}
/* край паперу трохи відгинається від полотна */
.ton-pinboard--deep .ton-pin__paper:not(.ton-pin__kalka)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(97deg, transparent 76%, color-mix(in srgb, var(--white) 30%, transparent) 91%, color-mix(in srgb, var(--paper-shade) 10%, transparent) 100%),
    linear-gradient(180deg, transparent 82%, color-mix(in srgb, var(--white) 20%, transparent) 94%, color-mix(in srgb, var(--paper-shade) 10%, transparent) 100%);
}
.ton-pinboard--deep .ton-pin--fabrics::before, .ton-pinboard--deep .ton-pin--paints::before { content: none; }

/* фотовідбиток: легкий полиск */
.ton-pin__photo { position: relative; display: block; overflow: hidden; }
.ton-pin__photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--hush); }
.ton-pin__photo::after, .ton-pin__sq::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(124deg, color-mix(in srgb, var(--white) 15%, transparent) 0%, transparent 30%, transparent 68%, color-mix(in srgb, var(--ink) 7%, transparent) 100%);
}

/* обкладинка: зразок кольору з рисунком, надрукований на картці світлого тону; дві кнопки */
.ton-pin--cover { --x: 5%; --y: 5%; --w: 46.3%; --r: -1.6deg; --sx: 6px; --sy: 10px; --sr: .8deg; z-index: 1; }
.ton-pin--cover .ton-pin__paper { padding: 7px 7px 0; background-color: var(--object-light); }
.ton-pinboard--deep .ton-pin--cover .ton-pin__paper::after { opacity: .45; }
.ton-pin__sq {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--object);
  color: var(--on-object);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent);
}
.ton-pin__sq::after {
  background-image: var(--grain), linear-gradient(124deg, color-mix(in srgb, var(--white) 10%, transparent) 0%, transparent 34%, transparent 66%,
    color-mix(in srgb, var(--ink) 8%, transparent) 100%);
}
.ton-pin__cap {
  display: block;
  padding: 9px 3px 10px;
  font-size: clamp(10.5px, 2.1cqw, 12.5px);
  line-height: 1.28;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--on-light) 84%, transparent);
}
.ton-pin__cap > span { display: block; }
.ton-pin__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(12.5px, 2.65cqw, 15.5px);
  font-weight: 600;
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
  color: var(--on-light);
}
.ton-pin--cover .ton-tack:nth-of-type(1) { --tx: 8.5%; --ty: 6%; }
.ton-pin--cover .ton-tack:nth-of-type(2) { --tx: 91.5%; --ty: 5.4%; }

/* тиждень: картка з каталожного картону на одній кнопці */
.ton-pin--week { --x: 57.6%; --y: 6.5%; --w: 36.7%; --r: 2.2deg; }
.ton-pin--week .ton-pin__paper { --paper: var(--card); display: grid; gap: 3px; padding: 24px 14px 14px; }
.ton-pin--week b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 3px;
  font-size: clamp(15px, 3.4cqw, 20px);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.ton-pin__line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(10.5px, 2.2cqw, 13px);
  line-height: 1.3;
  overflow-wrap: anywhere;
  color: var(--ink-2);
}
.ton-pin--week .ton-ruler { margin-top: 10px; }
.ton-pin--week .ton-tack { --tx: 47%; --ty: 11px; }

/* план на кальці на паперовому скотчі: крізь кальку видно полотно й те, що лежить під нею; без backdrop-filter — проста калька */
.ton-pin--plan { --x: 24%; --y: 44.6%; --w: 39%; --r: -4deg; z-index: 2; }
.ton-pinboard--deep .ton-pin--plan::before { inset: 16% 0 -3% 4%; background: color-mix(in srgb, var(--sh) calc(26% * var(--sk)), transparent); }
.ton-pin__kalka {
  --crease: 38%;
  --k-buckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='r' filterUnits='userSpaceOnUse' x='-12' y='-12' width='624' height='624'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.009 .014' numOctaves='2' seed='4' result='t'/%3E%3CfeOffset in='t' dx='5' dy='4' result='o'/%3E%3CfeComposite in='t' in2='o' operator='arithmetic' k2='3.4' k3='-3.4' k4='.5' result='e'/%3E%3CfeColorMatrix in='e' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 -.5' result='h'/%3E%3CfeColorMatrix in='e' values='0 0 0 0 .15 0 0 0 0 .13 0 0 0 0 .1 0 0 0 -1 .5' result='l'/%3E%3CfeMerge%3E%3CfeMergeNode in='l'/%3E%3CfeMergeNode in='h'/%3E%3C/feMerge%3E%3C/filter%3E%3Crect x='-12' y='-12' width='624' height='624' filter='url(%23r)'/%3E%3C/svg%3E");
  --k-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='5' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .14 0 0 0 .4 -.16' result='d'/%3E%3CfeColorMatrix in='t' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -.4 .24' result='w'/%3E%3CfeMerge%3E%3CfeMergeNode in='d'/%3E%3CfeMergeNode in='w'/%3E%3C/feMerge%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1px;
  background-color: color-mix(in srgb, var(--paper-tint) 30%, transparent);
  background-image: none;
  -webkit-backdrop-filter: blur(1.6px);
  backdrop-filter: blur(1.6px);
}
/* аркуш — мініатюра креслення: білий стає напівпрозорою калькою, лінії — темним лайнером (Д28) */
.ton-pin__kalka img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; filter: grayscale(1) contrast(1.7); }
/* згин, піднятий лівий край, зерно й рельєф кальки — над аркушем */
.ton-pin__kalka::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent calc(var(--crease) - 3.5%), color-mix(in srgb, var(--white) 12%, transparent) calc(var(--crease) - .5%),
      color-mix(in srgb, var(--white) 85%, transparent) var(--crease), color-mix(in srgb, var(--paper-shade) 16%, transparent) calc(var(--crease) + .5%),
      transparent calc(var(--crease) + 3.5%)),
    linear-gradient(90deg, color-mix(in srgb, var(--white) 30%, transparent), transparent 9%),
    linear-gradient(101deg, transparent 54%, color-mix(in srgb, var(--white) 20%, transparent) 71%, transparent 90%),
    var(--k-grain), var(--k-buckle);
  background-size: auto, auto, auto, 200px 200px, 600px 600px;
}
.ton-pin__tape {
  position: absolute;
  z-index: 4;
  top: -5%;
  width: 24%;
  aspect-ratio: 3;
  background: color-mix(in srgb, color-mix(in srgb, var(--brass) 32%, var(--white)) 80%, transparent)
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--white) 16%, transparent) 0 1px, transparent 1px 4px);
  clip-path: polygon(0 0, 100% 0, 97% 24%, 100% 50%, 96.5% 76%, 100% 100%, 0 100%, 3% 78%, 0 52%, 3.5% 26%);
}
.ton-pin__tape:nth-of-type(1) { left: -8%; transform: rotate(-37deg); }
.ton-pin__tape:nth-of-type(2) { right: -8%; transform: rotate(39deg); }

/* відбитки: фото з білим полем; великий (фото з журналу) лежить пласко на чотирьох кнопках, позиції висять на одній */
.ton-pin--print { --sx: 4px; --sy: 6px; --sr: .3deg; --sb: 7px; }
.ton-pinboard--deep .ton-pin--print::before { inset: 5% 0 -2% 2.5%; }
.ton-pin--print .ton-pin__paper { padding: 8% 4.6%; }
.ton-pin--print .ton-pin__photo img { aspect-ratio: 3 / 2; }
.ton-pin--print .ton-tack { --tk: clamp(6.5px, 1.5cqw, 8.5px); }
.ton-pin--print .ton-tack:nth-of-type(1) { --tx: 4.6%; --ty: 7.5%; }
.ton-pin--print .ton-tack:nth-of-type(2) { --tx: 95.4%; --ty: 7%; }
.ton-pin--print .ton-tack:nth-of-type(3) { --tx: 4.8%; --ty: 93%; }
.ton-pin--print .ton-tack:nth-of-type(4) { --tx: 95.2%; --ty: 92.5%; }
.ton-pin--item .ton-pin__paper { padding: 4.5%; }
.ton-pin--arm { --x: 65.7%; --y: 27.6%; --w: 27.9%; --r: 1.6deg; }
.ton-pin--arm .ton-pin__photo img { aspect-ratio: 3 / 4; }
.ton-pin--arm .ton-tack { --tx: 49%; --ty: 12px; }
.ton-pin--tile { --x: 5%; --y: 56.4%; --w: 22%; --r: -2.4deg; }
.ton-pin--tile .ton-tack { --tx: 52%; --ty: 11px; }

/* тканини: чотири клапті рядком, у кожного зубчастий край, своя товщина й тінь і дві кнопки; перший — ялинка, решта — у тонах об'єкта */
.ton-pin--fabrics { display: flex; align-items: flex-start; }
.ton-pin__scrap {
  position: relative;
  display: block;
  flex: 0 0 31%;
  margin-left: -8%;
  transform: rotate(var(--a, 0deg)) translateY(var(--dy, 0));
  filter: drop-shadow(1px 1.5px 1px color-mix(in srgb, var(--sh) calc(50% * var(--sk)), transparent))
    drop-shadow(3px 6px 5px color-mix(in srgb, var(--sh) calc(30% * var(--sk)), transparent));
}
.ton-pin__scrap:first-child { margin-left: 0; }
.ton-pin__scrap > span {
  position: relative;
  display: block;
  aspect-ratio: 1;
  clip-path: var(--zigzag);
  background: var(--scrap) url(../../images/ton/board/sw-linen.webp) center / cover;
  background-blend-mode: overlay;
}
.ton-pin__scrap > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--white) 16%, transparent), transparent 42%, color-mix(in srgb, var(--ink) 16%, transparent));
}
.ton-pin__scrap:nth-child(1) { --a: -2.5deg; }
.ton-pin__scrap:nth-child(1) > span { background: url(../../images/ton/board/sw-herring.webp) center / cover; }
.ton-pin__scrap:nth-child(2) { --a: 1.5deg; --dy: 5%; --scrap: color-mix(in srgb, var(--object) 78%, color-mix(in srgb, var(--paper-shade) 50%, var(--ink-3))); }
.ton-pin__scrap:nth-child(3) { --a: -1deg; --dy: -3%; --scrap: color-mix(in srgb, var(--object) 18%, var(--ink-3)); }
.ton-pin__scrap:nth-child(4) { --a: 3deg; --dy: 4%; --scrap: color-mix(in srgb, var(--object) 8%, color-mix(in srgb, var(--ink-2) 75%, var(--ink))); }
.ton-pin__scrap .ton-tack { --tk: clamp(5px, 1.2cqw, 7px); --ty: 15%; }
.ton-pin__scrap .ton-tack:nth-of-type(1) { --tx: 17%; }
.ton-pin__scrap .ton-tack:nth-of-type(2) { --tx: 83%; }

/* фарби: три картки віялом на одній кнопці — світла, графіт і колір об'єкта */
.ton-pin--paints {
  aspect-ratio: 1 / .78;
  filter: drop-shadow(2px 4px 3px color-mix(in srgb, var(--sh) calc(36% * var(--sk)), transparent))
    drop-shadow(5px 10px 9px color-mix(in srgb, var(--sh) calc(22% * var(--sk)), transparent));
}
.ton-pin__chip {
  position: absolute;
  left: 30%;
  top: 3%;
  width: 40%;
  aspect-ratio: 1 / 1.62;
  border-radius: 1.5px;
  background: var(--paper) var(--grain);
  transform-origin: 50% 9%;
  transform: rotate(var(--a, 0deg));
  box-shadow: 0 0 0 .5px color-mix(in srgb, var(--sh) 16%, transparent), 1px 1px 2px color-mix(in srgb, var(--sh) 30%, transparent);
}
.ton-pin__chip::before {
  content: "";
  position: absolute;
  inset: 0 0 22%;
  border-radius: 1.5px 1.5px 0 0;
  background: var(--pc);
  box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--ink) 10%, transparent);
}
.ton-pin__chip:nth-child(1) { --a: -17deg; --pc: color-mix(in srgb, var(--object) 4%, color-mix(in srgb, var(--linen) 30%, var(--white))); }
.ton-pin__chip:nth-child(2) { --a: -1deg; --pc: color-mix(in srgb, var(--object) 6%, color-mix(in srgb, var(--ink-2) 55%, var(--ink))); }
.ton-pin__chip:nth-child(3) { --a: 15deg; --pc: var(--object); }
.ton-pin--paints > .ton-tack { --tx: 50%; --ty: 11%; }

/* слова клієнта: аркуш із блокнота, раз складений навпіл */
.ton-pin--quote { --x: 58.3%; --y: 68.5%; --w: 36%; --r: -1.4deg; }
.ton-pin--quote .ton-pin__paper {
  --paper: var(--note);
  padding: 24px 14px 12px;
  background-image: linear-gradient(180deg, transparent 52.4%, color-mix(in srgb, var(--paper-shade) 13%, transparent) 53%,
      color-mix(in srgb, var(--white) 75%, transparent) 53.8%, transparent 55.4%),
    var(--grain), linear-gradient(140deg, transparent 45%, color-mix(in srgb, var(--paper-shade) 7%, transparent) 100%);
}
.ton-pin--quote p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  margin: 0;
  font: var(--font-quote-weight) clamp(11.2px, 2.6cqw, 15.2px)/1.22 var(--font-quote);
  letter-spacing: var(--track-quote);
  overflow-wrap: anywhere;
}
.ton-pin--quote footer { margin-top: 7px; font: var(--type-micro); color: var(--ink-2); }
.ton-pin--quote .ton-tack { --tx: 51.5%; --ty: 11px; }

/* об'єкт без речей: лише обкладинка й тиждень, крупніше */
.ton-pinboard--lite { aspect-ratio: 10 / 10.4; }
.ton-pinboard--lite .ton-pin--cover { --x: 8%; --y: 7%; --w: 54%; }
.ton-pinboard--lite .ton-pin--week { --x: 47%; --w: 45%; top: auto; bottom: 6.5%; z-index: 2; }

/* «Колаж»: речі лежать внапуск, підписів немає */
.ton-pinboard--collage .ton-pin--cover { --x: 4.5%; --y: 4%; --w: 43%; }
.ton-pinboard--collage .ton-pin--week { --x: 55.5%; --y: 5.5%; --w: 38.5%; }
.ton-pinboard--collage .ton-pin--arm { --x: 63%; --y: 27%; --w: 27.5%; --r: 2.6deg; z-index: 3; }
.ton-pinboard--collage .ton-pin--print { --x: 22%; --y: 55%; --w: 45%; --r: -1.5deg; z-index: 1; }
.ton-pinboard--collage .ton-pin--plan { --x: 2.5%; --y: 51.5%; --w: 28%; --r: -6deg; z-index: 2; }
.ton-pinboard--collage .ton-pin--tile { --x: 4%; --y: 73%; --w: 19.5%; --r: 3deg; z-index: 3; }
.ton-pinboard--collage .ton-pin--quote { --x: 60%; --y: 63.5%; --w: 35.5%; --r: -1.4deg; z-index: 2; }
.ton-pinboard--collage .ton-pin--paints { --x: 27%; --y: 83.5%; --w: 19%; z-index: 3; }
.ton-pinboard--collage .ton-pin--fabrics { --x: 53%; --y: 87%; --w: 40%; z-index: 3; }

/* планшет: дошка під текстом, не ширша за 620 px */
@media (max-width: 1100px) {
  .ton-pin--week b { font-size: clamp(15px, 2.6cqw, 20px); }
  .ton-pinboard--collage { max-width: 620px; margin-inline: auto; }
  .ton-pinboard--lite { aspect-ratio: 10 / 5.6; }
  .ton-pinboard--lite .ton-pin--cover { --x: 6%; --y: 9%; --w: 34%; }
  .ton-pinboard--lite .ton-pin--week { --x: 48%; --y: 22%; --w: 34%; top: var(--y); bottom: auto; }
}
/* телефон: дошка вища, свої координати, слів клієнта немає */
@media (max-width: 640px) {
  .ton-pinboard { border-radius: 4px; background-size: 224px 224px; }
  .ton-pin--week { z-index: 2; }
  .ton-pin--week .ton-pin__paper { padding: 21px 10px 11px; }
  .ton-pin--week b { display: block; font-size: clamp(12.5px, 3.9cqw, 15px); white-space: nowrap; text-overflow: ellipsis; }
  .ton-pinboard--collage { aspect-ratio: 10 / 15; }
  .ton-pinboard--collage .ton-pin--cover { --x: 5%; --y: 3.6%; --w: 52%; }
  .ton-pinboard--collage .ton-pin--week { --x: 56.5%; --y: 5.5%; --w: 39.5%; }
  .ton-pinboard--collage .ton-pin--quote { display: none; }
  .ton-pinboard--collage .ton-pin--arm { --x: 63.5%; --y: 29.5%; --w: 30%; }
  .ton-pinboard--collage .ton-pin--print { --x: 5.5%; --y: 50.5%; --w: 58%; }
  .ton-pinboard--collage .ton-pin--plan { --x: 53%; --y: 59.5%; --w: 42%; --r: 5deg; }
  .ton-pinboard--collage .ton-pin--tile { --x: 5.5%; --y: 80.5%; --w: 23%; }
  .ton-pinboard--collage .ton-pin--paints { --x: 32%; --y: 83%; --w: 23%; }
  .ton-pinboard--collage .ton-pin--fabrics { --x: 57%; --y: 86%; --w: 38%; }
  .ton-pinboard--lite { aspect-ratio: 10 / 9; }
  .ton-pinboard--lite .ton-pin--cover { --x: 7%; --y: 7%; --w: 58%; }
  .ton-pinboard--lite .ton-pin--week { --x: 44%; --w: 50%; top: auto; bottom: 6%; }
}
