/* FCBikeLibrary — workshop shelf
   colours and a couple of measures. Everything else is written out. */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #e6d5b8;
  --card: #f7f1e4;
  --ink: #1b3329;
  --muted: #3e5648;
  --yellow: #f0c84b;
  --yellow-2: #ffe6a3;
  --rust: #8d4b32;
  --bench: #163028;
  --line: #1b3329;
  --col: 1120px;
  color-scheme: light;
}

/* reset, the short version */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background-image: radial-gradient(rgba(92, 62, 24, 0.05) 0.65px, transparent 0.7px);
  background-size: 3px 3px;
}

[hidden] {
  display: none !important;
}

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

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

button {
  cursor: pointer;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--rust);
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus {
  outline: none;
}

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

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

/* type */

h1, h2, h3, h4,
.brand__name,
.btn,
.rubrics__link,
.ticket__name,
.slip dt,
.glance caption,
.glance th,
.osplaque__os,
.osplaque__q,
.pager a,
.acct__tabs a,
.toc__title {
  font-family: "Oswald", "Arial Narrow", "Franklin Gothic Medium", Impact, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

h1 {
  font-size: 2.05rem;
  margin: 0 0 0.35em;
  font-weight: 600;
}

h2 {
  font-size: 1.55rem;
  margin: 0 0 0.4em;
}

h3 {
  font-size: 1.22rem;
  margin: 1.2em 0 0.3em;
  font-weight: 500;
}

p {
  margin: 0 0 0.85em;
}

/* layout */

.col {
  width: min(var(--col), calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

.skip {
  position: absolute;
  left: 10px;
  top: -48px;
  z-index: 60;
  background: var(--yellow);
  color: var(--ink);
  padding: 6px 10px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.skip:focus {
  top: 8px;
}

.tape-wrap {
  padding: 12px 0 2px;
}

.tape {
  width: fit-content;
  max-width: calc(100% - 8px);
  margin: 0 auto;
  background: var(--yellow);
  color: var(--ink);
  border: 1px dashed var(--line);
  padding: 4px 12px 5px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tape time {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* header */

.bar {
  padding: 10px 0 0;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 18px;
}

.bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex: 1 1 190px;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  width: 46px;
  height: 46px;
  flex: none;
  object-fit: contain;
}

.brand__name {
  display: block;
  font-size: 1.28rem;
  line-height: 0.92;
}

.brand__slogan {
  display: block;
  margin-top: 2px;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.92rem;
  letter-spacing: 0;
  color: var(--muted);
  line-height: 1.2;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 5px 8px;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.ico {
  display: block;
  width: 18px;
  height: 18px;
  flex: none;
}

.totop .ico,
.modal__x .ico {
  width: 14px;
  height: 14px;
}

.shots__nav .ico {
  width: 16px;
  height: 16px;
}

.usernav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.signin,
.linkish {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  background: none;
  border: 0;
  padding: 4px 2px;
  text-decoration: none;
  color: var(--ink);
}

.signin {
  background: var(--yellow);
  border: 1px dashed var(--line);
  padding: 4px 8px;
}

.who {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.who__face {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bench);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  flex: none;
}

.who__name {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-size: 0.95rem;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bell {
  position: relative;
}

.bell__btn {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0;
  display: grid;
  place-items: center;
}

.bell__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--rust);
  color: #f7f1e4;
  border-radius: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 0.68rem;
  line-height: 16px;
  text-align: center;
}

.bell__drop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(320px, calc(100vw - 28px));
  background: var(--card);
  border: 1.5px dashed var(--line);
  z-index: 25;
  padding: 8px 0 0;
  box-shadow: 3px 3px 0 rgba(27, 51, 41, 0.12);
}

/* keyboard can open this; the shelf script does the click version */
.bell:focus-within .bell__drop {
  display: block;
}

@media (max-width: 520px) {
  .bell__drop {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 4.5rem;
    width: auto;
  }
}

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

.bell__list li {
  padding: 8px 12px;
  border-top: 1px dotted rgba(27, 51, 41, 0.35);
}

.bell__list li:first-child {
  border-top: 0;
}

.bell__list .is-unread {
  background: var(--yellow-2);
}

.bell__list a {
  display: block;
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.35;
}

.bell__list time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

.bell__all {
  display: block;
  text-align: center;
  padding: 8px 10px;
  background: var(--bench);
  color: var(--yellow);
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.bell__all:hover {
  color: #fff;
}

.rubrics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 0 10px;
}

.rubrics__link {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 4px 7px;
  color: var(--ink);
}

.rubrics__link.is-on {
  background: var(--yellow);
  border: 1px dashed var(--line);
  padding: 3px 6px;
}

.js .rubrics {
  display: none;
}

.js .rubrics.is-open {
  display: block;
}

.js .rubrics.is-open ul {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* bits used on most pages */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 0.92rem;
}

.crumbs a {
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 51, 41, 0.35);
}

.crumbs [aria-current="page"] {
  border-bottom: 0;
}

.lead {
  max-width: 66ch;
  font-size: 1.08rem;
}

.lead ul {
  margin: 0 0 1em;
  padding-left: 1.15em;
}

.band {
  margin: 28px 0 10px;
}

.band__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.band__head h2 {
  margin: 0;
}

.more {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
  text-decoration: none;
  background: var(--yellow);
  border: 1px dashed var(--line);
  padding: 3px 8px;
}

/* program cards — luggage tags */

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

.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  min-height: 100%;
  padding: 20px 12px 12px 14px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  border: 1.5px dashed var(--line);
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(27, 51, 41, 0.08);
}

.ticket:hover {
  background: #fffaf0;
  color: inherit;
  box-shadow: 3px 3px 0 rgba(27, 51, 41, 0.22);
}

.ticket__hole {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 1.5px rgba(0, 0, 0, 0.35);
}

.ticket__icon {
  width: 56px;
  height: 56px;
  margin-top: 4px;
  object-fit: cover;
  background: #efe4cf;
}

.ticket__name {
  font-size: 1.12rem;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.ticket__ver {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.ticket__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
}

.ticket__cat {
  font-size: 0.86rem;
  color: var(--muted);
  font-style: italic;
}

.ticket__size {
  margin-left: auto;
  background: var(--yellow);
  border: 1px dashed var(--line);
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  white-space: nowrap;
}

.ticket__fresh {
  position: absolute;
  top: 6px;
  right: 8px;
  background: var(--yellow);
  border: 1px solid var(--line);
  font-family: "Oswald", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 5px;
  transform: rotate(1.5deg);
}

/* program page */

.prog__head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
}

.prog__icon {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(27, 51, 41, 0.3);
  background: var(--card);
}

.prog__title h1 {
  font-size: clamp(1.7rem, 6vw, 2.7rem);
  overflow-wrap: anywhere;
}

.prog__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0;
}

.chip {
  display: inline-block;
  background: var(--yellow);
  border: 1px dashed var(--line);
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 2px 7px;
}

.prog__meta time {
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
}

.slip {
  grid-column: 1 / -1;
  position: relative;
  background: #fff8e6;
  border: 1.5px dashed var(--line);
  padding: 12px 28px 10px 12px;
  box-shadow: 3px 3px 0 rgba(27, 51, 41, 0.1);
}

.slip__hole {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}

.slip__kicker {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slip dl {
  margin: 6px 0 0;
}

.slip div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 2px 8px;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(27, 51, 41, 0.35);
  font-size: 0.88rem;
  line-height: 1.25;
}

.slip dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: center;
}

.slip dd {
  margin: 0;
  overflow-wrap: anywhere;
}

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

.btn {
  display: inline-block;
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 8px 12px;
  box-shadow: 2px 2px 0 rgba(27, 51, 41, 0.18);
  max-width: 100%;
}

.btn:hover {
  background: #fff;
  color: var(--ink);
}

a.btn--go,
a.btn--go:visited,
button.btn--go {
  background: var(--yellow) !important; /* visited links were going brown */
  color: var(--ink);
}

a.btn--go[data-mn-download],
.find .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

a.btn--go[data-mn-download]::before,
.find .btn::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: center / contain no-repeat;
}

a.btn--go[data-mn-download]::before {
  background-image: url("../img/ui/download.png");
}

.find .btn::before {
  background-image: url("../img/ui/search.png");
}

.btn.is-in,
.btn.is-in:hover {
  background: var(--bench);
  color: var(--yellow);
  border-color: var(--bench);
}

/* bike-frame label */

.osplaque {
  position: relative;
  margin: 16px 0;
  padding: 12px 14px 12px 28px;
  background: var(--yellow);
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 rgba(27, 51, 41, 0.16);
}

.osplaque__hole {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

.osplaque__q {
  margin: 0 0 2px 8px;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
}

.osplaque__os {
  margin: 0 0 0 8px;
  font-size: 4.2rem;
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.osplaque__sub {
  margin: 2px 0 4px 8px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.osplaque__note {
  margin: 0 0 0 8px;
  max-width: 62ch;
  font-size: 0.98rem;
}

.glance {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 0.92rem;
}

.glance caption {
  text-align: left;
  caption-side: top;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 6px;
}

.glance th,
.glance td {
  border: 1px dashed var(--line);
  padding: 4px 8px;
  text-align: left;
  vertical-align: top;
}

.glance th {
  width: 38%;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(240, 200, 75, 0.38);
}

/* screenshots */

.shots {
  margin: 8px 0 20px;
}

.shots__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.shots__bar figcaption,
.shots > figcaption {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.shots__nav {
  display: flex;
  gap: 6px;
}

.shots__nav button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
}

.shots__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* safari: otherwise the strip jumps */
  padding-bottom: 6px;
}

.shots__track a {
  flex: none;
  scroll-snap-align: start;
  display: block;
  border: 1px solid var(--line);
  background: var(--card);
  line-height: 0;
}

.shots__track img {
  width: min(440px, 78vw);
  height: auto;
  display: block;
}

.shotbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(22, 48, 40, 0.72);
  display: grid;
  place-items: center;
  padding: 18px;
}

.shotbox img {
  max-width: min(960px, 100%);
  max-height: 82vh;
  background: var(--card);
  border: 2px solid var(--yellow);
}

.shotbox__x {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--yellow);
  border: 1px solid var(--line);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 10px;
}

/* tabs + long copy */

.tabs {
  margin: 10px 0 8px;
}

.tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tabs__bar button {
  background: transparent;
  border: 1px dashed transparent;
  border-bottom: 1px solid var(--line);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1rem;
  padding: 6px 8px;
}

.tabs__bar button[aria-selected="true"] {
  background: var(--yellow);
  border: 1px dashed var(--line);
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 1.35em;
}

.prose h3 {
  font-size: 1.18rem;
}

.prose ul,
.prose ol {
  margin: 0 0 0.9em;
  padding-left: 1.2em;
}

.prose li {
  margin: 0.2em 0;
}

.prose a {
  text-underline-offset: 2px;
}

.prose strong {
  font-weight: 600;
}

.prose code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
  background: rgba(240, 200, 75, 0.45);
  padding: 0 0.25em;
}

.prose pre {
  overflow-x: auto;
  max-width: 100%;
  background: var(--card);
  border: 1px dashed var(--line);
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.45;
}

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

.prose table {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 1em;
}

.prose th,
.prose td {
  border: 1px solid rgba(27, 51, 41, 0.45);
  padding: 5px 7px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: rgba(240, 200, 75, 0.4);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.prose blockquote {
  margin: 0 0 1em;
  padding: 0.1em 0 0.1em 12px;
  border-left: 4px solid var(--yellow);
}

.faq {
  margin: 22px 0;
  max-width: 68ch;
}

.faq h2 {
  margin-bottom: 6px;
}

.faq details {
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}

.faq summary {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.faq details p:last-child {
  margin-bottom: 0.3em;
}

/* comments */

.comments {
  margin: 26px 0 10px;
  max-width: 68ch;
}

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

.comments__top h2 {
  margin: 0;
}

.sorts {
  display: flex;
  gap: 4px;
}

.sorts button {
  background: transparent;
  border: 1px dashed var(--line);
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  text-transform: uppercase;
  padding: 3px 8px;
}

.sorts button.is-on {
  background: var(--yellow);
}

.gate {
  background: var(--card);
  border: 1px dashed var(--line);
  padding: 10px 12px;
}

.cform {
  margin: 0 0 14px;
}

.cform label {
  display: block;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.cform textarea,
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="search"],
.find input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  background: #fffdf8;
  border: 1.5px solid var(--line);
  border-radius: 0;
}

.cform textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.cform__hint {
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
  margin: 6px 0;
}

.cform__err,
.form__err,
.field-err {
  color: var(--rust);
  font-size: 0.95rem;
}

.form__err,
.cform__err {
  background: #f6e2d8;
  border: 1px solid var(--rust);
  padding: 8px 10px;
}

.cform__err:empty,
.form__err:empty {
  display: none;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0;
  overflow: hidden;
}

.clist,
.clist__replies {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clist__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(27, 51, 41, 0.4);
}

.clist__item.is-pending {
  opacity: 0.62;
}

.cform--reply {
  grid-column: 1 / -1;
  margin: 8px 0 0;
}

.clist__who {
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
}

.clist__who time {
  margin-left: 8px;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0;
}

.clist__body {
  margin: 0.2em 0 0.45em;
}

.clist__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clist__tools button {
  background: var(--card);
  border: 1px solid var(--line);
  font-family: "Oswald", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 2px 8px;
}

button[data-mn-like].is-on {
  background: #f4d2c8;
  border-color: var(--rust);
}

.badge {
  display: inline-block;
  background: var(--yellow);
  border: 1px solid var(--line);
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 6px;
  margin-left: 6px;
}

.badge--no {
  background: #f0d2c8;
}

.clist__replies {
  grid-column: 1 / -1;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px dashed var(--line);
}

.cform--reply textarea {
  min-height: 4.5rem;
}

.empty {
  background: var(--card);
  border: 1px dashed var(--line);
  padding: 12px 14px;
  margin: 0 0 12px;
}

/* forms, account, trouble */

.narrow {
  max-width: 34rem;
}

.sheet {
  background: var(--card);
  border: 1.5px dashed var(--line);
  padding: 14px 14px 16px;
  box-shadow: 3px 3px 0 rgba(27, 51, 41, 0.08);
}

.form label,
.find label {
  display: block;
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.86rem;
}

.check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: 0;
  font-size: 1rem;
  text-transform: none;
}

.check input {
  width: auto;
  margin: 0;
}

.form__ok {
  background: #e5f0d8;
  border: 1px solid #2f5d38;
  padding: 8px 10px;
}

.form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 4px;
}

.fine {
  font-size: 0.95rem;
}

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

.who__face--lg {
  width: 58px;
  height: 58px;
  font-size: 1.2rem;
}

.acct__name {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
}

.acct__since {
  margin: 3px 0 0;
  font-style: italic;
  color: var(--muted);
}

.acct__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.acct__tabs a {
  text-decoration: none;
  font-weight: 500;
  padding: 5px 8px;
  border: 1px dashed transparent;
}

.acct__tabs a[aria-current="page"] {
  background: var(--yellow);
  border-color: var(--line);
}

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

.notes li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(27, 51, 41, 0.4);
}

.notes .is-unread {
  background: var(--yellow-2);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}

.notes time {
  display: block;
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
}

.mine {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(27, 51, 41, 0.4);
}

.mine p {
  margin: 0 0 0.35em;
}

.toc {
  background: var(--card);
  border: 1px dashed var(--line);
  padding: 10px 14px 8px;
  margin: 0 0 16px;
  max-width: 68ch;
}

.toc__title {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.trouble h1 {
  font-size: clamp(2.2rem, 8vw, 3.4rem);
}

.find {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  max-width: 28rem;
}

.find label {
  flex: 1 1 12rem;
  margin: 0;
}

.find .btn {
  margin-bottom: 1px;
}

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

.rubric-list a {
  display: inline-block;
  text-decoration: none;
  background: var(--card);
  border: 1px dashed var(--line);
  padding: 4px 8px;
  font-family: "Oswald", sans-serif;
}

/* modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(22, 48, 40, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal__sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 740px);
  overflow: auto;
  background: var(--card);
  border: 2px dashed var(--line);
  padding: 16px 16px 18px;
  box-shadow: 5px 5px 0 rgba(22, 48, 40, 0.25);
}

.modal__sheet h2 {
  margin: 0 36px 8px 0;
  padding-right: 8px;
}

.modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--yellow);
}

.mirrors {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.mirrors h3 {
  margin: 0 0 6px;
}

.mirrors .btn {
  margin: 0 8px 8px 0;
}

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

.oldlist li {
  padding: 8px 0;
  border-bottom: 1px dotted rgba(27, 51, 41, 0.45);
}

.oldlist p {
  margin: 0 0 4px;
  font-family: "Oswald", sans-serif;
  font-size: 1.02rem;
}

/* footer, back to top */

.foot {
  margin-top: 42px;
  background: var(--bench);
  color: #f3ead8;
  padding: 20px 0 26px;
  border-top: 4px solid var(--yellow);
}

.foot a {
  color: var(--yellow);
  text-decoration: none;
}

.foot a:hover {
  color: #fff;
}

.foot a:focus-visible {
  outline-color: var(--yellow);
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 8px;
}

.foot__nav a {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.foot p {
  margin: 0;
  font-size: 0.95rem;
}

.foot em {
  font-style: italic;
  color: #f0c84b;
}

.totop {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--ink);
  border: 1.5px solid var(--line);
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 8px 9px;
  box-shadow: 2px 2px 0 var(--line);
}

.totop:hover {
  color: var(--ink);
}

.js .totop {
  opacity: 0;
  pointer-events: none;
}

.js .totop.is-on {
  opacity: 1;
  pointer-events: auto;
}

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

.pager a,
.pager span {
  font-family: "Oswald", sans-serif;
  min-width: 2.1rem;
  text-align: center;
  padding: 4px 8px;
  border: 1px dashed var(--line);
  text-decoration: none;
  color: inherit;
  background: var(--card);
}

.pager [aria-current="page"] {
  background: var(--yellow);
  border-style: solid;
}

.pager .is-off {
  opacity: 0.45;
  pointer-events: none;
}

/* page-level nicks */

.auth {
  padding-bottom: 10px;
}

.auth h1 {
  font-size: 2rem;
}

/* tried a sticky spec slip here. it sat on the download button on a 13 inch air */

.help .prose h2 {
  scroll-margin-top: 12px;
}

/* queries */

@media (min-width: 480px) {
  .brand__mark {
    width: 54px;
    height: 54px;
  }

  .brand__name {
    font-size: 1.55rem;
  }

  .who__name {
    max-width: none;
  }
}

@media (min-width: 560px) {
  .shelf {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
  }

  .osplaque__os {
    font-size: 5.1rem;
  }
}

@media (min-width: 760px) {
  .burger {
    display: none;
  }

  .js .rubrics {
    display: block;
  }

  .js .rubrics.is-open ul,
  .rubrics ul {
    flex-direction: row;
    align-items: center;
  }

  .rubrics__link {
    font-size: 1.02rem;
  }

  .sheet {
    padding: 18px 20px 20px;
  }
}

@media (min-width: 860px) {
  .prog__head {
    grid-template-columns: 64px minmax(0, 1fr) 280px;
    align-items: start;
  }

  .slip {
    grid-column: 3;
    grid-row: 1;
  }

  h1 {
    font-size: 2.45rem;
  }
}

@media (min-width: 900px) {
  .shelf {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .col {
    width: min(var(--col), calc(100% - 48px));
  }
}

@media (min-width: 1180px) {
  .shelf {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

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

  .ticket__fresh {
    transform: none;
  }
}

/* ---- audit fixes ---- */
@media (max-width: 559px) {
  .shelf { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ticket { padding: 18px 10px 10px 11px; }
  .ticket__icon { width: 48px; height: 48px; }
  .ticket__name { font-size: 1rem; }
}
@media (max-width: 559px) {
  .who__name { display: none; }
}
@media (max-width: 559px) {
  .burger { font-size: 0; gap: 0; padding: 7px 9px; }
  .burger .ico { width: 18px; height: 18px; }
}
@media (max-width: 559px) {
  .bar__row { flex-wrap: nowrap; gap: 8px; }
  .usernav { flex-wrap: nowrap; gap: 8px; min-width: 0; }
  .bar__row:has([data-mn-logout]) .brand__slogan { display: none; }
}
@media (max-width: 559px) { .usernav .linkish { white-space: nowrap; } }

/* seo: текст вступления после первого блока программ */
.home-about { margin-top: 32px; margin-bottom: 32px; }
.home-about__body { margin-top: 10px; }


/* ---- натяжка на сайт ---- */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.modal[hidden], .shotbox[hidden], .bell__drop[hidden] { display: none !important; }
.bell__drop:not([hidden]) { display: block; }
/* шапка прилипает; поиск в ней */
.bar { position: sticky; top: 0; z-index: 40; }
.barfind { display: none; order: 6; flex: 1 0 100%; gap: 6px; padding-bottom: 6px; }
.barfind.is-open { display: flex; }
.barfind input {
  flex: 1 1 auto; min-width: 0; height: 40px; box-sizing: border-box; padding: 0 12px;
  font: inherit; border: 1.5px dashed var(--line); background: var(--card); color: var(--ink);
}
.barfind input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.barfind button, .findtog {
  width: 40px; height: 40px; box-sizing: border-box; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border: 1px solid var(--line);
}
.barfind button { background: var(--bench); }
.barfind button .ico { filter: invert(1); }
.findtog { background: var(--card); order: 2; margin-left: auto; }
.usernav { margin-left: 0; }
.usernav .signin, .burger { height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; }
.usernav .signin { padding: 0 14px; font-size: 0.9rem; font-weight: 600; }
.usernav .signin:hover { background: var(--yellow-2); }
@media (min-width: 760px) {
  .findtog { display: none; }
  .barfind { display: flex; order: 0; flex: 0 1 340px; margin-left: auto; padding: 0; }
}
@media (max-width: 759px) {
  .bar__row { flex-wrap: wrap; }
  .usernav { order: 3; }
  .burger { order: 4; }
}
/* кнопка «забрать» — главная на странице */
.actions .btn--go { font-size: 1rem; padding: 10px 18px; }
.comments__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.comments__top h2 { margin: 0; }
.home-about__body, .home-about__body p { max-width: none; }
.modal__body .mirrors p { display: flex; flex-wrap: wrap; gap: 8px; }
#notice { margin-top: 28px; }
#notice textarea, .cform textarea { width: 100%; box-sizing: border-box; }

/* ---- скриншоты: «верёвка с бирками» ---- */
.shots.is-line .shots__track { display: none; }
.line-stage { position: relative; }
.line-frame {
  display: block; background: var(--card); border: 1.5px dashed var(--line); padding: 10px;
  box-shadow: 4px 4px 0 rgba(27, 51, 41, 0.12); cursor: zoom-in;
}
.line-frame img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; margin: 0 auto; background: #efe4cf; }
.line-cap { margin: 8px 2px 0; font-style: italic; color: var(--muted); font-size: 0.92rem; }
.line-rope { position: relative; display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding-top: 6px; }
.line-rope::before {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--rust) 0 6px, transparent 6px 9px);
}
.line-tags { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 auto; justify-content: center; position: relative; }
.line-tag {
  position: relative; min-width: 38px; padding: 12px 8px 6px; margin-top: 4px;
  font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--ink);
  background: var(--card); border: 1.5px dashed var(--line); cursor: pointer; transform-origin: 50% 0;
  transition: transform .15s ease, background .15s ease;
}
.line-tag::before {
  content: ""; position: absolute; top: 3px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
}
.line-tag:nth-child(odd) { transform: rotate(-4deg); }
.line-tag:nth-child(even) { transform: rotate(3deg); }
.line-tag:hover { background: var(--yellow-2); }
.line-tag.is-on { background: var(--yellow); transform: rotate(0); }
.line-step {
  position: relative; z-index: 1; flex: none; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--bench); color: var(--yellow);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.line-step:hover { background: var(--ink); }
/* телефон: логотип, поиск, вход и меню в одну строку */
@media (max-width: 759px) {
  .bar__row { flex-wrap: wrap; column-gap: 6px; }
  .brand { flex: 1 1 0; min-width: 0; }
  .brand__slogan { display: none; }
  .brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .findtog { margin-left: 0; }
  .burger { font-size: 0; gap: 0; width: 40px; justify-content: center; padding: 0; }
  .barfind { order: 6; }
}
/* плашка минимальной macOS компактнее на широком экране */
@media (min-width: 760px) { .osplaque { max-width: 640px; } }
.prog__title .osplaque { margin: 16px 0 0; max-width: 560px; }
.brand__name { padding-bottom: 2px; line-height: 1.15; }
