/* SoyaSoftware
   Paint for the shop catalog. System faces on purpose:
   the studio wifi is moody and a webfont is a bad trade. */

:root {
  --ink: #2c2824;
  --ink-soft: #5e554c;
  --linen: #f3ecdf;
  --band: #f7f1e6;
  --paper: #fffaf3;
  --sage: #5e704f;
  --sage-deep: #3a4a32;
  --clay: #b85a36;
  --clay-deep: #8a3e24;
  --line: #ddcfc0;
  --tag: #f4eadc;
  --sans: "Avenir Next", "Segoe UI", "Gill Sans", "Trebuchet MS", sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --r: 8px;
  --r-card: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--linen);
  font-family: var(--sans);
  line-height: 1.5;
}

img { max-width: 100%; border: 0; }

button, input, textarea { font: inherit; color: inherit; }

::selection { background: #e7c3b2; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 40;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: var(--r);
  text-decoration: none;
}

.skip:focus { top: 8px; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* type */

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 { font-size: 1.8rem; margin: 0 0 0.55rem; overflow-wrap: anywhere; }
h2 { font-size: 1.38rem; margin: 0 0 0.45rem; }
h3 { font-size: 1.08rem; margin: 0 0 0.35rem; }

p { margin: 0 0 0.75rem; }

a { color: var(--sage-deep); }
a:hover { color: var(--clay-deep); }

.prose {
  font-family: var(--serif);
  font-size: 1.03rem;
  line-height: 1.68;
  max-width: 68ch;
}

.prose h2, .prose h3, .prose h4 { font-family: var(--sans); letter-spacing: -0.01em; }
.prose h2 { font-size: 1.32rem; margin: 1.55rem 0 0.45rem; }
.prose h3 { font-size: 1.08rem; margin: 1.25rem 0 0.35rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose .tablewrap { margin: 0 0 0.9rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.28rem; }

.prose blockquote {
  margin-left: 0;
  padding: 2px 0 2px 12px;
  border-left: 3px solid var(--clay);
  color: var(--ink-soft);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--tag);
  padding: 1px 4px;
  border-radius: 4px;
}

.prose pre {
  background: #2c2824;
  color: #f3ecdf;
  padding: 12px 13px;
  border-radius: var(--r);
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.45;
}

.prose pre code { background: none; color: inherit; padding: 0; }

.tablewrap { overflow-x: auto; max-width: 100%; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.35;
}

.prose th, .prose td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th { font-weight: 600; background: #f6efe4; }

/* layout */

.wrap {
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
  min-width: 0;
}

main { min-width: 0; padding-bottom: 28px; }

.top {
  background: var(--band);
  border-bottom: 3px solid var(--sage);
  margin-bottom: 18px;
}

.top__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 11px 0 8px;
}

.brandbox { flex: 1 1 190px; min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.brand:hover { color: var(--clay-deep); }

.brand__mark { display: block; width: 40px; height: 40px; }

.slogan {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
  max-width: 34em;
}

.who { margin-left: auto; }

.who__in {
  display: inline-block;
  text-decoration: none;
  padding: 5px 2px;
  font-weight: 600;
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  clip: rect(0 0 0 0);
}

.nav-check:focus-visible + .top__bar .burger {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  cursor: pointer;
}

.burger img {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}

.menu { display: none; padding: 2px 0 10px; }

.nav-check:checked ~ .menu { display: block; }

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu__list a {
  display: block;
  padding: 8px 2px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.menu__list a.is-on { color: var(--clay-deep); font-weight: 600; }

.floor {
  border-top: 1px solid var(--line);
  background: #efe6d6;
  padding: 16px 0 20px;
}

.floor__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.floor__nav a { text-decoration: none; }

.floor__copy {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.totop {
  display: inline-block;
  margin: 0 0 16px 14px;
  color: var(--sage-deep);
}

.js .totop.is-float {
  position: fixed;
  right: 12px;
  bottom: 12px;
  margin: 0;
  z-index: 6;
  background: var(--sage-deep);
  color: #fffaf3;
  text-decoration: none;
  padding: 8px 11px;
  border-radius: var(--r);
}

.js .totop.is-float:hover { color: #fffaf3; }

/* cards, shelves */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
}

.shelf { margin: 0 0 26px; min-width: 0; }

.shelf__head, .blockhead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 8px;
}

.shelf__head h2, .blockhead h2 { margin: 0; }

.shelf__all { font-size: 0.92rem; }

.shelf__row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  max-width: 100%;
  padding: 2px 2px 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; /* safari: иначе прыгает */
}

.shelf__row::-webkit-scrollbar { height: 8px; }
.shelf__row::-webkit-scrollbar-thumb { background: #c9b497; border-radius: 8px; }

.shelf__lip {
  height: 9px;
  margin-top: 8px;
  border-radius: 0 0 6px 6px;
  background: #e4d2b8;
  box-shadow: 0 2px 0 #c4aa84;
}

.shelf__row .ware {
  flex: 0 0 172px;
  scroll-snap-align: start;
}

.ware { min-width: 0; }

.ware__a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 8px 8px 10px;
  background: #fbf6ee;
  border: 1px solid #eadfce;
  border-radius: var(--r-card);
  color: inherit;
  text-decoration: none;
  position: relative;
}

.ware__a:hover { background: var(--paper); border-color: #c9b497; }

.ware__face {
  display: grid;
  place-items: center;
  height: 86px;
  background: #fffdf8;
  border-radius: var(--r);
  margin-bottom: 4px;
}

.ware__icon { width: 56px; height: 56px; }

.ware__name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ware__ver {
  color: var(--ink-soft);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ware__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.ware__cat { font-size: 12px; color: var(--sage-deep); }

.ware__size {
  position: relative;
  flex: 0 0 auto;
  background: var(--paper);
  border: 1px dashed var(--clay);
  color: var(--clay-deep);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 3px 7px 3px 12px;
  border-radius: 2px 8px 8px 2px;
}

.ware__size::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--linen);
  border: 1px solid var(--clay);
  position: absolute;
  left: 3px;
  top: 50%;
  margin-top: -3px;
}

.band {
  display: block;
  margin: 0 0 6px;
  padding: 4px 8px 5px;
  background: var(--clay-deep);
  color: #fffaf3;
  font-size: 11px;
  line-height: 1.25;
  border-radius: 4px;
}

.fresh {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: var(--sage-deep);
  letter-spacing: 0.01em;
}

/* author */

.hello {
  display: grid;
  gap: 16px;
  margin: 4px 0 26px;
}

.hello .prose { max-width: 62ch; }

.byline {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 12px 13px 13px;
  margin: 0;
}

.byline img {
  display: block;
  width: 168px;
  height: auto;
  transform: rotate(-1.5deg);
  margin-bottom: 6px;
}

.byline figcaption { font-size: 0.92rem; }
.byline strong { display: block; }
.byline span { color: var(--ink-soft); }

/* crumbs, pager, cloud */

.crumbs { margin: 0 0 12px; font-size: 0.88rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 6px; color: var(--ink-soft); }
.crumbs a { text-decoration: none; }

.lede { max-width: 62ch; color: var(--ink); }

.cloud { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.cloud a {
  display: inline-block;
  text-decoration: none;
  background: var(--tag);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 3px 8px;
  color: var(--ink);
}
.cloud .lg { font-size: 1.12rem; }
.cloud .sm { font-size: 0.8rem; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 6px;
}

.pager ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }

.pager a, .pager .is-off {
  display: inline-block;
  min-width: 2.1rem;
  text-align: center;
  padding: 4px 8px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
}

.pager a[aria-current="page"] {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fffaf3;
}

.pager .is-off { color: #9a8d80; }

/* program */

.prog {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.prog__icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  background: #fffdf8;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
}

.prog__cat a {
  display: inline-block;
  text-decoration: none;
  background: var(--tag);
  border-radius: var(--r);
  padding: 2px 8px;
  font-size: 13px;
}

.prog__when { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }

.btn {
  display: inline-block;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--r);
  padding: 8px 12px;
  border: 1px solid var(--sage-deep);
  background: var(--sage-deep);
  color: #fffaf3;
  line-height: 1.25;
}

.btn:hover { color: #fffaf3; background: #314028; }

.btn--go { background: var(--clay-deep); border-color: #6e301c; }
.btn--go:hover { background: #732f1b; }

.btn--quiet {
  background: var(--paper);
  color: var(--ink);
  border-color: #d3c4b2;
}

.btn--quiet:hover { color: var(--clay-deep); background: #fff; }

.note__tools button.is-on { color: var(--clay-deep); font-weight: 600; }

.layout { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.layout > * { min-width: 0; }

.side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 12px 12px 14px;
}

.side h2 { font-size: 1rem; }

.facts { margin: 0; }
.facts div {
  display: grid;
  grid-template-columns: 7.1rem 1fr;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.facts dt { margin: 0; color: var(--ink-soft); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.shots { position: relative; margin: 0 0 16px; }
.shots__row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* safari: иначе прыгает */
  max-width: 100%;
}
.shots__item {
  flex: 0 0 88%;
  scroll-snap-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.shots__item img {
  display: block;
  width: 100%;
  height: auto;
  background: #efe6d8;
}
.shots__nav { display: none; }

.js .shots {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
}
.js .shots__row { grid-column: 2; grid-row: 1; }
.js .shots__nav {
  display: grid;
  place-items: center;
  grid-row: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.js .shots__nav--prev { grid-column: 1; }
.js .shots__nav--next { grid-column: 3; }
.shots__nav img { display: block; width: 16px; height: 16px; }

.tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 12px;
}

.tabs__bar button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 10px;
  margin-bottom: -1px;
  cursor: pointer;
  color: var(--ink-soft);
}

.tabs__bar button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--clay);
  font-weight: 600;
}

.tabs__panel { position: relative; }

.js .tabs__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ask { margin: 18px 0; }
.ask h2 { margin-bottom: 8px; }
.ask details {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.ask details:last-child { border-bottom: 1px solid var(--line); }
.ask summary { cursor: pointer; font-weight: 600; }
.ask summary::-webkit-details-marker { display: none; }
.ask details p { margin: 8px 0 2px; font-family: var(--serif); }

.kin { list-style: none; display: flex; gap: 8px; overflow-x: auto; margin: 0; padding: 2px 0 8px; max-width: 100%; }
.kin a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.kin img { width: 40px; height: 40px; }

/* comments */

.notes { margin: 20px 0 8px; }
.notes__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.notes__sort { display: flex; gap: 6px; }
.notes__sort button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 4px 8px;
  cursor: pointer;
}
.notes__sort button[aria-pressed="true"] {
  background: var(--sage-deep);
  color: #fffaf3;
  border-color: var(--sage-deep);
}

.notes__invite {
  background: var(--paper);
  border: 1px dashed #d7c6b0;
  border-radius: var(--r);
  padding: 10px 12px;
}

.thread { list-style: none; margin: 12px 0 0; padding: 0; }
.thread .thread { margin: 8px 0 0 14px; padding-left: 10px; border-left: 2px solid #eadfce; }

.note { padding: 10px 0; border-bottom: 1px solid var(--line); }
.note--hold { opacity: 0.62; }

.note__who { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 4px; }
.note__name { font-weight: 600; }
.note time, .feed time { color: var(--ink-soft); font-size: 13px; }
.note__tools { display: flex; gap: 10px; margin: 6px 0 0; }
.note__tools button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink-soft);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage);
  color: #fffaf3;
  font-size: 11px;
  font-weight: 600;
}
.avatar--lg { width: 52px; height: 52px; font-size: 15px; }

.badge {
  display: inline-block;
  font-size: 11px;
  background: #f3e2c8;
  color: var(--clay-deep);
  border-radius: var(--r);
  padding: 2px 6px;
}
.badge--no { background: #efe6d6; color: var(--ink-soft); }

.notes__form textarea { min-height: 90px; }
.hint { color: var(--ink-soft); font-size: 13px; }

/* modal */

.sheet[hidden] { display: none; }

.sheet:target {
  display: grid !important; /* :target has to beat the hidden attr */
}

.sheet {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 30;
  padding: 16px 12px;
  grid-template-columns: 1fr;
  place-items: center;
}

.sheet__veil {
  position: absolute;
  inset: 0;
  background: rgba(44, 40, 36, 0.46);
}

.sheet__box {
  position: relative;
  z-index: 1;
  width: min(34rem, 100%);
  max-height: min(86vh, 680px);
  overflow: auto;
  background: var(--paper);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  padding: 16px 14px 18px;
}

.sheet__box h2 { padding-right: 28px; }

.sheet__x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--r);
}

.sheet__x img { display: block; width: 16px; height: 16px; }

.mirrors { margin-top: 12px; }
.mirrors h3 { margin-top: 12px; }
.mirrors__links { display: flex; flex-wrap: wrap; gap: 8px; }
.older-group { padding: 8px 0; border-bottom: 1px solid var(--line); }
.older-group ul { margin: 6px 0 0; padding-left: 1.1rem; }

/* forms, account, help, errors */

.narrow { max-width: 32rem; }

.paper {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px 14px 16px;
}

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 0.92rem; margin-bottom: 4px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d3c4b2;
  border-radius: var(--r);
  background: #fff;
}

textarea { resize: vertical; min-height: 130px; }

.check { display: flex; gap: 8px; align-items: center; margin: 8px 0 12px; }
.check input { width: auto; }

.field__err, .formerr {
  color: var(--clay-deep);
  font-size: 13px;
  margin: 4px 0 0;
}

.flash {
  background: #e5edd9;
  border: 1px solid #c5d2b4;
  border-radius: var(--r);
  padding: 8px 10px;
  margin: 0 0 12px;
}

.flash--bad {
  background: #f8e6df;
  border-color: #e3c2b4;
}

.acct {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.acct h1 { margin: 0; }
.acct p { margin: 2px 0 0; color: var(--ink-soft); }

.acct-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.acct-tabs a {
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.acct-tabs a[aria-current="page"] {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #fffaf3;
}

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed a { font-weight: 600; text-decoration: none; }

.mine { list-style: none; margin: 0; padding: 0; }
.mine li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mine__app { font-weight: 600; }
.mine__app a { text-decoration: none; }

.empty {
  padding: 14px 12px;
  background: var(--paper);
  border: 1px dashed #d7c6b0;
  border-radius: var(--r-card);
  color: var(--ink-soft);
}

.helpgrid { display: grid; gap: 14px; }
.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 10px 12px 12px;
}
.toc ol { margin: 6px 0 0; padding-left: 1.2rem; }
.toc a { text-decoration: none; }

.find { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 12px 0; }
.find label { flex: 1 1 100%; }
.find input { flex: 1 1 180px; width: auto; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pills a {
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 4px 8px;
}

.more { margin-top: 22px; }

/* logged-in bits used by the sample markup in comments + INTEGRATION */

.bell { position: relative; display: inline-block; }
.bell__btn {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r);
  width: 36px;
  height: 34px;
  cursor: pointer;
}
.bell__n {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--clay-deep);
  color: #fffaf3;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.bell__drop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(320px, 80vw);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 8px 10px 10px;
  z-index: 12;
}
.bell__drop ul { list-style: none; margin: 0; padding: 0; }
.bell__drop li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.bell__drop li.is-new { background: #f8f1e4; margin: 0 -10px; padding: 7px 10px; }
.bell__drop time { display: block; color: var(--ink-soft); font-size: 12px; }
.who--in { display: flex; align-items: center; gap: 10px; }
.avatarlink { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 600; }

/* media */

@media (min-width: 720px) {
  h1 { font-size: 2.05rem; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }
  .hello { grid-template-columns: 1fr 240px; align-items: start; }
  .shots__item { flex-basis: 70%; }
  .prose { font-size: 1.06rem; }
}

@media (min-width: 960px) {
  .burger { display: none; }
  .menu { display: block !important; } /* checkbox stays shut; the row still has to show */
  .menu__list { display: flex; flex-wrap: wrap; gap: 2px 4px; }
  .menu__list a {
    display: inline-block;
    border: 0;
    padding: 6px 8px;
    border-radius: var(--r);
  }
  .menu__list a.is-on { background: var(--sage-deep); color: #fffaf3; }
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 22px 26px;
    align-items: start;
  }
  .side { order: 0; position: sticky; top: 12px; }
  .helpgrid { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .toc { position: sticky; top: 12px; }
  .shots__item { flex-basis: 62%; }
}

@media (max-width: 959px) {
  .side { order: -1; }
}

@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .wrap { width: min(1120px, calc(100% - 48px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shots__row { scroll-behavior: auto; }
}

/* program page: don't crop the file names off the shot windows */
.shots__item img { max-height: 340px; object-fit: contain; }

/* category: "Price sheets & stall maps" was pushing the cloud past 360 */
.cloud a { max-width: 100%; overflow-wrap: anywhere; }

/* audit fixes: лента и отметка не сдвигают карточку */
.ware__a { position: relative; }
.band {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 74px;
  margin: 0;
  padding: 3px 6px 4px;
  border-radius: 0 0 var(--r) var(--r);
  text-align: center;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fresh {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 1px 7px 2px;
  background: #e8f0e4;
  border-radius: 999px;
}
.ware__face { height: 100px; place-items: start center; padding-top: 12px; }
.band { top: 87px; }

/* seo: текст вступления после первого блока программ */
.home-about { margin-top: 32px; margin-bottom: 32px; }
.home-about__body { margin-top: 10px; }
/* seo: подпись автора на телефоне компактно, каталог выше */
@media (max-width: 719px) {
  .hello .byline { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
  .hello .byline img { width: 92px; margin: 0; }
  .hello .byline figcaption { font-size: 13px; }
}
@media (max-width: 719px) {
  .tags, .tagcloud, .cloud { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
}
@media (max-width: 719px) { .cloud { display: flex; gap: 6px; padding-bottom: 4px; } .cloud li { flex: none; } }

/* сеть: шапка липнет; поиск-бирка в ряду рубрик, на телефоне — в выдвижном меню по лупе */
:root { --ctl: 38px; }
.top { position: sticky; top: 0; z-index: 30; }
.who__in { height: var(--ctl); display: inline-flex; align-items: center; padding: 0 16px; background: var(--clay-deep); color: #fffaf3; border-radius: var(--r); font-weight: 600; }
.who__in:hover { background: #732f1b; color: #fffaf3; }
.bell__btn { width: var(--ctl); height: var(--ctl); display: inline-grid; place-items: center; }
.who .avatar { width: var(--ctl); height: var(--ctl); }
.who .out { height: var(--ctl); display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; }
.who .out:hover { border-color: var(--clay); color: var(--clay-deep); }
.burger { height: var(--ctl); }
.lens { width: var(--ctl); height: var(--ctl); display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); cursor: pointer; margin-left: auto; }
.lens + .who { margin-left: 0; }
.tagfind { position: relative; display: flex; align-items: center; height: var(--ctl); margin: 10px 0 2px; padding-left: 26px; background: #f1e3c9; border: 1px solid #c9b497; border-radius: 4px 20px 20px 4px; }
.tagfind__hole { position: absolute; left: 9px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: var(--band); border: 1px solid #b89c76; }
.tagfind input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 6px; font: inherit; font-size: 15px; color: var(--ink); appearance: none; outline-offset: -2px; }
.tagfind .btn { height: calc(var(--ctl) - 6px); width: calc(var(--ctl) - 6px); margin-right: 3px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; }
.actions .btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; }
.actions .btn--go { font-weight: 700; }
.actions .btn.is-on { background: var(--sage-deep); color: #fffaf3; }
@media (max-width: 959px) {
  .menu { max-height: calc(100vh - 80px); overflow-y: auto; }
  .tagfind { margin: 4px 0 10px; }
  .menu .tagfind { order: -1; }
  .menu { display: none; flex-direction: column; }
  .nav-check:checked ~ .menu { display: flex; }
  .burger span { display: none; }
  .slogan { display: none; }
  .avatarlink__name { display: none; }
  .brand__name { font-size: 1rem; }
}
@media (max-width: 380px) { .who__in { padding: 0 10px; } .brand__name { display: none; } }
@media (min-width: 960px) {
  .lens { display: none; }
  .lens + .who { margin-left: auto; }
  .menu, .js .menu { display: flex !important; align-items: center; gap: 10px 18px; }
  .menu__list { flex: 1 1 auto; }
  .tagfind { flex: 0 0 260px; margin: 0 0 6px; }
  .side { top: 140px; }
}

/* сеть: текст во всю ширину рабочей области */
.prose, .lede, .hello .prose, .home-about__body { max-width: none; }
.ware__ph { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: var(--tag); color: var(--clay-deep); font-weight: 700; font-size: 22px; }
.counter { margin: 4px 0 26px; }
.counter__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.counter__list a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; background: var(--paper); border: 1px solid #eadfce; border-left: 4px solid var(--clay); border-radius: var(--r-card); color: inherit; text-decoration: none; }
.counter__list a:hover { border-color: #c9b497; }
.counter__list img { width: 48px; height: 48px; }
.counter__meta { color: var(--ink-soft); font-size: 13px; }
.counter__note { display: block; margin-top: 3px; font-family: var(--serif); font-size: .95rem; line-height: 1.4; color: var(--ink-soft); }
@media (min-width: 720px) { .counter__list { grid-template-columns: 1fr 1fr; } }

/* сеть: «лупа и бирки» — снимок крупно, круглая лупа под курсором, бирки-ценники */
.is-benched .shots__row { display: none; }
.bench { margin: 0 0 18px; outline-offset: 4px; }
.bench__frame { position: relative; display: block; overflow: hidden; background: #fffdf8; border: 1px solid #eadfce; border-radius: var(--r-card); padding: 10px; cursor: zoom-in; }
.bench__frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; border-radius: var(--r); }
.bench__loupe { position: absolute; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; border: 3px solid var(--paper); box-shadow: 0 0 0 1px #c9b497, 0 10px 24px -8px rgba(44, 40, 36, .5); background-repeat: no-repeat; background-color: #fff; pointer-events: none; opacity: 0; transition: opacity .12s ease; }
.bench__frame.is-zoom .bench__loupe { opacity: 1; }
.bench__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.bench__tag { position: relative; height: 32px; min-width: 42px; padding: 0 10px 0 20px; border: 1px solid #c9b497; border-radius: 4px 16px 16px 4px; background: #f1e3c9; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.bench__tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 50%; background: var(--band); border: 1px solid #b89c76; }
.bench__tag[aria-pressed="true"] { background: var(--clay-deep); border-color: var(--clay-deep); color: #fffaf3; }
.bench__tag:nth-of-type(odd) { transform: rotate(-2deg); }
.bench__step { height: 32px; width: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink); }
.bench__step:hover { border-color: var(--clay); color: var(--clay-deep); }
.bench__cap { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }
@media (hover: none) { .bench__loupe { display: none; } }
.js .shots.is-benched { display: block; }
@media (max-width: 959px) { .top__bar { flex-wrap: nowrap; } .brandbox { flex: 1 1 auto; } }
@media (min-width: 960px) { .slogan { display: none; } .top__bar { padding: 8px 0 4px; } .side { top: 112px; } }
