/* The guides (see guides.js): the list at /guides, each guide, and the way to them from the home page. Each guide
   has a colour of its own, --hue, taken from the colours members can give their words: blue for the profile, the
   site's own colour for posting, pink for pictures. */

.ico-format-quote {
  --ico: url("/icons/format-quote-close.svg");
}

/* ---------- on the home page: a line with the way to each guide ---------- */
.frontGuides {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.frontGuides a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.12s;
}
.frontGuides a:hover {
  background: var(--raised);
}
.frontGuides a .ico {
  color: var(--hue, var(--accent));
  font-size: 17px;
}
.frontGuides .frontGuidesAll {
  margin-right: auto;
}
.frontGuidesAll span:last-child {
  color: var(--muted);
}
@media (max-width: 720px) {
  .frontGuides {
    display: grid;
    grid-template-columns: 1fr;
  }
  .frontGuides .frontGuidesAll {
    margin: 0;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
}

/* ---------- just after signing up: the welcome, and the way back to where they signed up ---------- */
/* the row over a guide's title: the plain way to the list on the left, the way back on the right */
.guideTopRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.guideTopRow .back {
  margin-bottom: 0;
}
.guideIndex > .guideTopRow {
  justify-content: flex-end;
  margin-bottom: 8px;
}
/* The way back: not a plain link like "← Guides" but a pill in the site's colour, naming the page and saying it
   is where they signed up. The arrow sits as far from the pill's top, side and bottom. */
.returnBack {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 16px 5px 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  color: var(--fg);
  text-decoration: none;
  transition:
    border-color 0.12s,
    background-color 0.12s;
}
.returnBack:hover,
.returnBack:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--panel));
}
.returnArrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 17px;
}
.returnArrow .ico {
  vertical-align: 0;
  transform: scaleX(-1);
}
/* the two lines exactly as tall as the arrow's circle (17 + 15 = 32), so the pill is as far round it at the top,
   side and bottom; half a pixel more would push the bottom out */
.returnText {
  display: grid;
  min-width: 0;
}
.returnText strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.returnText small {
  color: var(--muted);
  font-size: 12px;
  line-height: 15px;
}
/* the welcome, at the top of the list, as the account is made */
.guideWelcome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 32px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
}
.guideWelcomeMark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 18%, var(--panel));
  color: var(--accent);
  font-size: 24px;
}
.guideWelcomeMark .ico {
  vertical-align: 0;
}
.guideWelcomeText h2 {
  margin: 0;
  font-size: 20px;
  /* as tall as the mark beside it, so the two are level */
  line-height: 44px;
  overflow-wrap: anywhere;
}
.guideWelcomeText p {
  max-width: 62ch;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.guideWelcomeText p:last-child {
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .guideWelcome {
    gap: 14px;
    padding: 14px;
  }
  .guideWelcomeText h2 {
    font-size: 18px;
    line-height: 1.3;
    padding-top: 10px;
  }
}

/* ---------- shared by every guide ---------- */
.guidePage .postBody {
  margin-top: 0;
}
.guideLead {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.guideHead {
  margin-bottom: 32px;
}
.guideTitle {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.guideTitle h1,
.guidesHead h1 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
/* the guide's own sign: its icon on a wash of its colour */
.guideGlyph {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid color-mix(in srgb, var(--hue) 40%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--hue) 14%, var(--panel));
  color: var(--hue);
  font-size: 28px;
}
.guideGlyph .ico {
  vertical-align: 0;
}
.guideSection {
  margin-top: 48px;
}
.guideSection > h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.guideIntro {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.guideIntro strong {
  color: var(--fg);
}
/* a grey tag that only states a fact */
.guideTopic {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
}
/* the way on, at the bottom of each guide */
.guideNext {
  margin-top: 56px;
}
.guideNext a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.12s;
}
.guideNext a:hover,
.guideNext a:focus-visible {
  border-color: color-mix(in srgb, var(--hue) 55%, var(--line));
}
.guideNext .guideGlyph {
  width: 44px;
  height: 44px;
  font-size: 22px;
}
.guideNextText {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.guideNextText small {
  color: var(--muted);
  font-size: 12.5px;
}
.guideNextText strong {
  font-size: 17px;
}
.guideNextText span {
  color: var(--muted);
  font-size: 14px;
}
.guideNext a > .ico:last-child {
  color: var(--muted);
  font-size: 20px;
}
/* a list of short notes with an icon each, in one ruled box, two to a row */
.tipList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  list-style: none;
}
.tipList li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--panel);
}
.tipList li > .ico {
  color: var(--hue);
  font-size: 18px;
}
.tipList li > span {
  display: grid;
  gap: 2px;
  font-size: 14px;
  line-height: 1.5;
}
.tipList strong {
  font-size: 15px;
  line-height: 21px;
}
.tipList li > span > span {
  color: var(--muted);
}
@media (max-width: 720px) {
  .guideTitle h1,
  .guidesHead h1 {
    font-size: 30px;
  }
  .guideTitle {
    gap: 14px;
  }
  .guideGlyph {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .guideLead {
    font-size: 16px;
  }
  .tipList {
    grid-template-columns: 1fr;
  }
}

/* ---------- the list: a path through the guides, in the order they are needed ---------- */
.guidesHead {
  margin-bottom: 32px;
}
.guidePath {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guideStop {
  position: relative;
}
/* the line the stops sit on, from one number to the next: down from each number, and on into the next one,
   in that guide's colour */
.guideStop:not(:last-child)::after,
.guideStop + .guideStop::before {
  content: "";
  position: absolute;
  left: 21px;
  width: 2px;
  background: color-mix(in srgb, var(--hue) 45%, transparent);
}
/* (from the bottom edge of one circle to the top edge of the next: never into them) */
.guideStop:not(:last-child)::after {
  top: calc(50% + 22px);
  bottom: -16px;
}
.guideStop + .guideStop::before {
  top: 0;
  height: calc(50% - 22px);
}
.guideStopLink {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 300px);
  align-items: center;
  column-gap: 20px;
  color: inherit;
  text-decoration: none;
}
/* the box behind the words and the picture (the number stays outside it, on the line) */
.guideStopLink::before {
  content: "";
  position: absolute;
  inset: 0 0 0 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.15s;
}
.guideStopLink:hover::before,
.guideStopLink:focus-visible::before {
  border-color: color-mix(in srgb, var(--hue) 55%, var(--line));
}
.guideStopLink:focus-visible {
  outline: none;
}
.guideStopLink > * {
  position: relative;
}
.guideStopNumber {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--hue);
  border-radius: 50%;
  background: var(--bg);
  color: var(--hue);
  font-size: 18px;
  font-weight: 700;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.guideStopLink:hover .guideStopNumber,
.guideStopLink:focus-visible .guideStopNumber {
  background: var(--hue);
  color: var(--on-accent);
}
.guideStopText {
  display: grid;
  gap: 4px;
  padding: 20px 0 20px 20px;
}
.guideStopText strong {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.guideStopShort {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.guideTopics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
/* the picture fills the height of its box, as far from its top, right and bottom as the words are from the left */
.guideStopShow {
  display: grid;
  align-self: stretch;
  padding: 20px 20px 20px 0;
}
.guidesMore {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 720px) {
  /* on a phone each number is at the top of its box */
  .guideStop:not(:last-child)::after,
  .guideStop + .guideStop::before {
    left: 15px;
  }
  .guideStop:not(:last-child)::after {
    top: 48px;
  }
  .guideStop + .guideStop::before {
    height: 16px;
  }
  .guideStopLink {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
  }
  .guideStopLink::before {
    inset: 0 0 0 44px;
  }
  .guideStopNumber {
    width: 32px;
    height: 32px;
    margin-top: 16px;
    font-size: 15px;
  }
  .guideStopText {
    padding: 16px 16px 0;
  }
  .guideStopText strong {
    font-size: 18px;
  }
  .guideStopShow {
    grid-column: 2;
    padding: 16px;
  }
}

/* the small pictures of what each guide is about: only to look at, so a press goes to the guide */
.guideSpecimen {
  position: relative;
  display: block;
  min-height: 124px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  pointer-events: none;
}
.specBanner {
  position: absolute;
  inset: 0 0 auto;
  height: 46px;
  background: color-mix(in srgb, var(--hue) 30%, var(--bg));
}
.specCard {
  position: absolute;
  top: 30px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.specFace .avatar {
  width: 52px;
  height: 52px;
  border: 3px solid var(--bg);
  border-radius: 10px;
  font-size: 22px;
}
.specWho {
  display: grid;
  min-width: 0;
  padding-bottom: 2px;
  line-height: 1.3;
}
.specName {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.specQuote {
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  font-style: italic;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.specPosting {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  padding: 0 16px;
}
.specTyped {
  max-width: 100%;
  overflow: hidden;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.specTurns {
  color: var(--hue);
  line-height: 1;
}
.specTurns .ico {
  transform: rotate(90deg);
}
.specPosting .postBody {
  font-size: 16px;
}
.specPictures {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 0 16px;
}
.specRail {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.specRail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 15px;
  right: 15px;
  height: 2px;
  margin-top: -1px;
  background: var(--line);
}
.specDot {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
}
.specDot.waiting {
  border-style: dashed;
}
.specDot.reached {
  border-color: var(--tone);
  color: var(--tone);
}
.specDot.here {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 25%, var(--bg));
}
.specWhere {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 1. the profile: a member page with each part numbered, and what each number is beside it ---------- */
.guideAnatomy {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}
.anatomyMock {
  position: sticky;
  top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 15px;
}
/* (the ring is always there, only see-through, and the corners always round, so it fades out as it came in) */
.mockPart {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 0 2px transparent;
  transition:
    opacity 0.15s,
    box-shadow 0.15s;
}
/* while one part is pointed at, the others step back */
.anatomyMock.lit .mockPart:not(.lit) {
  opacity: 0.25;
}
.mockPart.lit {
  box-shadow: 0 0 0 2px var(--hue);
}
/* the banner's number in its corner, as far from the top as from the side and in line with the others */
.mockBanner > .guidePin {
  top: 18px;
  right: 18px;
}
/* the number of a part that is a row sits halfway down it */
.mockPart:not(.mockBanner, .mockFace) > .guidePin {
  top: 50%;
  transform: translateY(-50%);
}
.guidePin {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hue);
  color: var(--on-accent);
  font-size: 12px;
  /* upright whatever part it sits in (the quote is in italics) */
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}
.mockBanner {
  display: grid;
  place-items: center;
  height: 132px;
  background: color-mix(in srgb, var(--hue) 22%, var(--bg));
  color: color-mix(in srgb, var(--hue) 55%, var(--bg));
  font-size: 34px;
}
/* The banner fills the top of the box, so its ring is drawn inside it, with the box's own round corners at the
   top and round ones at the bottom. */
.mockBanner,
.mockBanner.lit {
  border-radius: 0;
  box-shadow: none;
}
.mockBanner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 8px 8px;
  box-shadow: inset 0 0 0 2px transparent;
  pointer-events: none;
  transition: box-shadow 0.15s;
}
.mockBanner.lit::after {
  box-shadow: inset 0 0 0 2px var(--hue);
}
.mockBannerFill {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.mockBannerFill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* the picture overlaps the banner; the name and quote start below it */
.mockTop {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: -44px;
  padding: 0 12px 0 20px;
}
.mockFace {
  flex: none;
  border-radius: 12px;
}
.mockFace .avatar {
  width: 88px;
  height: 88px;
  border: 4px solid var(--panel);
  border-radius: 12px;
  font-size: 36px;
}
.mockFace .guidePin {
  top: -6px;
  right: -6px;
}
.mockIdentity {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
  padding-top: 50px;
}
.mockName {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 4px 34px 4px 8px;
}
.mockUsername {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.mockQuote {
  padding: 4px 34px 4px 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  overflow-wrap: anywhere;
}
.mockBio {
  margin: 14px 12px 0;
  padding: 10px 34px 10px 8px;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}
.mockPeople {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 2px 12px 0;
  padding: 10px 34px 10px 8px;
  color: var(--muted);
  font-size: 14px;
}
.mockCount strong {
  color: var(--fg);
}
.mockBadges {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.mockBadges > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.mockComments {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 12px 12px;
  padding: 10px 34px 10px 8px;
  border-top: 1px solid var(--line);
}
.mockCommentFace .avatar {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.mockCommentText {
  display: grid;
  font-size: 14px;
  line-height: 1.45;
}
.mockCommentText span {
  color: var(--muted);
}
.anatomyKey {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.keyItem {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  transition:
    background-color 0.12s,
    border-color 0.12s;
}
.keyItem.lit {
  border-color: color-mix(in srgb, var(--hue) 45%, var(--line));
  background: var(--panel);
}
.keyItem:focus-visible {
  border-color: var(--hue);
}
.keyItem .guidePin {
  position: static;
}
.keyItem strong {
  display: block;
  font-size: 16px;
  line-height: 22px;
}
.keyItem p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.keyTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
/* who sees what: six settings in one ruled box, each with its choices and the one in use lit */
.privacyCaption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.privacyDials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  list-style: none;
}
.guideDial {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px;
  background: var(--panel);
}
.dialHead {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.dialHead .ico {
  color: var(--hue);
}
.dialText {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.dialTrack {
  display: flex;
  gap: 2px;
  margin-top: 8px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}
.dialChoice {
  flex: 1;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}
.dialChoice.on {
  background: color-mix(in srgb, var(--hue) 22%, transparent);
  color: var(--hue);
  font-weight: 600;
}
/* how far along the reader's own profile is */
.checkList {
  margin: 14px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  list-style: none;
}
.checkRow {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
}
.checkRow + .checkRow {
  border-top: 1px solid var(--line);
}
.checkRow > .ico {
  color: var(--muted);
  font-size: 19px;
}
.checkRow.done > .ico {
  color: var(--good);
}
.checkText {
  display: grid;
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.45;
}
.checkText strong {
  font-size: 15px;
  line-height: 22px;
}
.checkText span {
  color: var(--muted);
}
/* (its words, not its hover box, as far in from the right as the tick is from the left) */
.checkRow > a {
  align-self: center;
  margin-right: -8px;
  font-size: 14px;
  white-space: nowrap;
}
.checkVisitor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 860px) {
  .guideAnatomy {
    grid-template-columns: minmax(0, 1fr);
  }
  .anatomyMock {
    position: static;
  }
  .privacyDials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .privacyDials {
    grid-template-columns: minmax(0, 1fr);
  }
  .mockBanner {
    height: 104px;
  }
  .mockFace .avatar {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}

/* ---------- 2. posting: the three steps, a practice box beside what it makes, and every mark ---------- */
.replySteps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  list-style: none;
}
.replySteps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
}
.replySteps li + li {
  border-left: 1px solid var(--line);
}
.replyStepNumber {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hue) 18%, transparent);
  color: var(--hue);
  font-size: 14px;
  font-weight: 700;
}
.replyStepText {
  display: grid;
  gap: 2px;
  font-size: 14px;
  line-height: 1.5;
}
.replyStepText strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15.5px;
  line-height: 28px;
}
.replyStepText strong .ico {
  color: var(--hue);
}
.replyStepText > span {
  color: var(--muted);
}
.replyStepText > span strong {
  display: inline;
  color: var(--fg);
  font-size: inherit;
}
/* the practice box and what it makes, side by side */
.guideBench {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hue) 40%, var(--line));
  border-radius: var(--radius);
  background: var(--panel);
}
.benchHalf {
  min-width: 0;
  padding: 16px;
}
.benchSee {
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, var(--panel));
}
.benchLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.benchLabel .ico {
  color: var(--hue);
}
.benchWrite .composer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.benchWrite .composer textarea {
  min-height: 170px;
}
.benchPost {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.benchPostMain {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}
.benchPostHead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.benchPostHead .muted {
  font-size: 13px;
}
.benchOut {
  min-height: 1.55em;
}
.benchNote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.benchNote .ico {
  margin-top: 1px;
}
/* every mark: as typed, as shown, what it is, and a button that adds it to the practice box */
.markList {
  margin: 16px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  list-style: none;
}
.markRow {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 12rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 18px;
  padding: 14px;
}
/* (its words, not its hover box, as far in from the right as the mark is from the left) */
.markTry {
  margin-right: -8px;
}
/* On a touch screen quiet buttons are bigger (see site.css): their words kept in the same place, and the taller
   Try button not making its row taller than the mark beside it. */
@media (pointer: coarse) {
  .checkRow > a,
  .markTry {
    margin-right: -9px;
  }
  .markTry {
    margin-block: -4px;
  }
}
.markRow + .markRow {
  border-top: 1px solid var(--line);
}
.markTyped {
  justify-self: start;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font-size: 13.5px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.markShown .postBody {
  font-size: 15.5px;
}
.markMeaning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.markColours {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-top: 12px;
}
.markPalette {
  font-size: 15px;
  word-spacing: 6px;
}
@media (max-width: 860px) {
  .guideBench {
    grid-template-columns: minmax(0, 1fr);
  }
  .benchSee {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .markRow {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .markShown,
  .markMeaning {
    grid-column: 1;
  }
  .markRow .markTry {
    grid-row: 1;
    grid-column: 2;
  }
}
@media (max-width: 720px) {
  .replySteps {
    grid-template-columns: minmax(0, 1fr);
  }
  .replySteps li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* ---------- 3. pictures: the five steps of file access, with where the reader is ---------- */
/* where the reader is: the icon level with the first line, as far from the top as from the side and from the
   words, and a button to ask (when they can) under the words */
.trackStatus {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.trackStatus.ready {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
}
.trackStatus > .ico {
  color: var(--hue);
  font-size: 20px;
}
.trackStatus.ready > .ico {
  color: var(--accent);
}
.trackStatus p {
  margin: 0;
  font-size: 15px;
  line-height: 23px;
}
.trackStatus .button {
  grid-column: 2;
  justify-self: start;
}
.guideTrack {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
/* (--gap keeps the steps' boxes apart, so a pressed one and a pointed-at one never touch; the box is as far
   from them on every side) */
.trackRail {
  --gap: 8px;
  --pad: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: var(--gap);
  list-style: none;
}
.trackStop {
  position: relative;
}
/* The line from the step before: solid into a step you hold, dashed into one where you wait. It runs from the
   edge of one circle to the edge of the next, never into them, and over the boxes, so a pressed box doesn't
   cut it. */
.trackStop + .trackStop::before {
  content: "";
  position: absolute;
  z-index: 2;
  /* (through the circle's middle: in by the box's 1px edge, its padding, and half the circle, less half the line) */
  top: calc(1px + var(--pad) + 23px);
  right: calc(50% + 24px);
  width: calc(100% + var(--gap) - 48px);
  height: 2px;
  background: var(--line);
  pointer-events: none;
}
.trackStop.waiting::before {
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px);
}
.trackStop.reached + .trackStop.reached::before {
  background: var(--tone);
}
.trackStop.reached + .trackStop.reached.waiting::before {
  background: repeating-linear-gradient(90deg, var(--tone) 0 6px, transparent 6px 11px);
}
.trackButton {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: var(--pad);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--fg);
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background-color 0.12s;
}
/* The box's outline is drawn over the lines between the steps (which are over its background), so a line meets
   the outline instead of cutting through it. The button's own border stays see-through, keeping its size. */
.trackButton,
.trackButton:hover,
.trackButton[aria-pressed="true"] {
  border-color: transparent;
}
.trackButton::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: -1px;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.12s;
}
.trackButton:hover {
  background: var(--raised);
}
.trackButton:hover::after {
  border-color: #444;
}
.trackButton[aria-pressed="true"] {
  background: color-mix(in srgb, var(--tone) 8%, var(--panel));
}
.trackButton[aria-pressed="true"]::after {
  border-color: color-mix(in srgb, var(--tone) 45%, var(--line));
}
.trackButton:focus-visible {
  outline: none;
}
.trackButton:focus-visible::after {
  outline: 2px solid var(--tone);
  outline-offset: 2px;
}
.trackMark {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 21px;
}
.trackStop.waiting .trackMark {
  border-style: dashed;
}
.trackStop.reached .trackMark {
  border-color: var(--tone);
  background: color-mix(in srgb, var(--tone) 14%, var(--bg));
  color: var(--tone);
}
.trackStop.here .trackMark {
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 22%, var(--panel));
}
/* A line done in a step's colour is brighter than any box's outline, so it goes over it; a grey one goes under.
   And a line stops at the glow round the reader's own step, not just at its circle. */
.trackStop.reached + .trackStop.reached::before {
  z-index: 4;
}
.trackStop.here::before {
  right: calc(50% + 29px);
  width: calc(100% + var(--gap) - 53px);
}
.trackStop.here + .trackStop::before {
  width: calc(100% + var(--gap) - 53px);
}
.trackName {
  font-size: 14.5px;
  font-weight: 600;
}
.trackShort {
  color: var(--muted);
  font-size: 12.5px;
}
/* "You're here", under the reader's own step */
.trackHere {
  display: none;
  margin-top: 2px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--tone);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.trackStop.here .trackHere {
  display: block;
}
@media (prefers-reduced-motion: no-preference) {
  .trackStop.here .trackHere {
    animation: trackHereIn 0.45s 0.15s cubic-bezier(0.2, 0.8, 0.3, 1.2) backwards;
  }
}
@keyframes trackHereIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
/* what the chosen step means */
.trackDetail {
  padding: 20px;
  border-top: 1px solid var(--line);
}
.trackDetailHead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.trackDetail .trackMark {
  border-color: var(--tone);
  background: color-mix(in srgb, var(--tone) 14%, var(--bg));
  color: var(--tone);
}
.trackDetailHead h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}
.trackDetailHead p {
  margin: 2px 0 0;
}
.trackFacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 0;
}
.trackFacts dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
.trackFacts dt .ico {
  color: var(--tone);
}
.trackFacts dd {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.trackFacts dd strong {
  color: var(--fg);
}
/* on a phone the steps go down the page, the line beside them, "You're here" at the end of the row */
@media (max-width: 720px) {
  .trackRail {
    --gap: 6px;
    --pad: 10px;
    grid-template-columns: minmax(0, 1fr);
  }
  /* from the bottom of the circle above to the top of this one */
  .trackStop + .trackStop::before {
    top: calc(-1 * (1px + var(--pad) + var(--gap)));
    right: auto;
    left: calc(1px + var(--pad) + 23px);
    width: 2px;
    height: calc(2 * (1px + var(--pad)) + var(--gap));
  }
  /* (and short of the glow round the reader's own step, above and below it) */
  .trackStop.here::before {
    right: auto;
    width: 2px;
    height: calc(2 * (1px + var(--pad)) + var(--gap) - 5px);
  }
  .trackStop.here + .trackStop::before {
    top: calc(-1 * (1px + var(--pad) + var(--gap)) + 5px);
    width: 2px;
    height: calc(2 * (1px + var(--pad)) + var(--gap) - 5px);
  }
  .trackStop.waiting::before {
    background: repeating-linear-gradient(180deg, var(--line) 0 4px, transparent 4px 7px);
  }
  .trackStop.reached + .trackStop.reached.waiting::before {
    background: repeating-linear-gradient(180deg, var(--tone) 0 4px, transparent 4px 7px);
  }
  .trackButton {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    justify-items: start;
    align-items: center;
    column-gap: var(--pad);
    row-gap: 0;
    text-align: left;
  }
  .trackMark {
    grid-row: 1 / span 2;
  }
  .trackName {
    grid-row: 1;
    grid-column: 2;
    align-self: end;
  }
  .trackShort {
    grid-row: 2;
    grid-column: 2;
    align-self: start;
  }
  .trackHere {
    grid-row: 1 / span 2;
    grid-column: 3;
    margin: 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    .trackStop.here .trackHere {
      animation-name: trackHereInSide;
    }
  }
  .trackFacts {
    grid-template-columns: minmax(0, 1fr);
  }
  .trackDetail {
    padding: 16px;
  }
}
@keyframes trackHereInSide {
  from {
    opacity: 0;
    transform: translateX(6px);
  }
}

/* ---------- whole pixels ----------
   Something centred in a box of fractional height is drawn with one gap a pixel bigger than the other (the box's
   edges snap to whole pixels, the middle doesn't move with them). So every icon here is given a whole size that
   fits its circle or tile exactly (an icon is otherwise 1.15em: 24.15px, 32.2px), and every box with something
   centred in it adds up to whole pixels. halfpx.js in the tests measures these. */
.frontGuides a {
  line-height: 20px;
}
.frontGuides a .ico {
  width: 20px;
  height: 20px;
}
.guideTopic {
  line-height: 18px;
}
.guideGlyph .ico {
  width: 32px;
  height: 32px;
}
.guideNext .guideGlyph .ico {
  width: 26px;
  height: 26px;
}
.guideNextText small {
  line-height: 18px;
}
.guideNextText strong {
  line-height: 24px;
}
.guideNextText span {
  line-height: 20px;
}
.guideNext a > .ico:last-child {
  width: 24px;
  height: 24px;
}
.specDot .ico,
.mockBadges > span .ico {
  width: 16px;
  height: 16px;
}
.specTyped {
  line-height: 20px;
}
.trackMark .ico {
  width: 24px;
  height: 24px;
}
.returnArrow .ico {
  width: 20px;
  height: 20px;
}
.guideWelcomeMark .ico {
  width: 28px;
  height: 28px;
}
.trackHere {
  line-height: 18px;
}
.markTyped {
  line-height: 20px;
}
.checkText span {
  line-height: 20px;
}
.checkRow > a,
.markTry {
  line-height: 16px;
}
@media (max-width: 720px) {
  .guideGlyph .ico {
    width: 26px;
    height: 26px;
  }
}
/* (the example's own line, not the page's 28.8px one, so a mark row adds up to whole pixels) */
.markShown {
  font-size: 15.5px;
  line-height: 24px;
}
.markShown .postBody {
  font-size: inherit;
  line-height: inherit;
}
/* (as specific as site.css's button.quiet, which would otherwise keep its own fractional line) */
button.quiet.markTry {
  line-height: 16px;
}

/* ---------- leaving: the guide to deleting an account (and its card on the list) ---------- */
/* Under the path and apart from it, with nothing joining it: a "!" in the number's place, in red, filled. */
.guideEmergency {
  margin-top: 24px;
}
.guideEmergencyMark {
  border-color: var(--hue);
  background: color-mix(in srgb, var(--hue) 14%, var(--bg));
}
.guideEmergencyMark .ico {
  width: 22px;
  height: 22px;
}
.guideEmergency .guideStopLink::before {
  border-color: color-mix(in srgb, var(--hue) 22%, var(--line));
}
/* its picture: a deletion code, and fourteen days with the last one red */
.specLeave {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 0 16px;
}
.specCode {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--fg);
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.06em;
}
.specDays {
  display: grid;
  grid-template-columns: repeat(14, 12px);
  gap: 4px;
}
.specDay {
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
}
.specDay.last {
  border-color: var(--hue);
  background: var(--hue);
}
.specLeave .specWhere {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
/* the warning before it all */
.leaveWarn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--hue) 35%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--hue) 8%, var(--panel));
}
.leaveWarn > .ico {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--hue);
}
.leaveWarn p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}
.leaveWarn strong {
  color: var(--fg);
}
/* the countdown: each step a mark on one line, in order, the last one red */
.leaveTimeline {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.leaveStep {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
}
/* (from the bottom of one mark to the top of the next, never into them) */
.leaveStep:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  bottom: -8px;
  left: 19px;
  width: 2px;
  background: var(--line);
}
.leaveMark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
}
.leaveMark .ico {
  width: 18px;
  height: 18px;
}
.leaveStep.final .leaveMark {
  border-color: var(--hue);
  background: var(--hue);
  color: #111;
}
.leaveBody {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.leaveStep.final .leaveBody {
  border-color: color-mix(in srgb, var(--hue) 35%, var(--line));
}
.leaveHead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}
.leaveHead h3 {
  margin: 0;
  font-size: 17px;
  line-height: 24px;
}
/* who does the step, or when: a grey tag that only states it */
.leaveWho {
  padding: 1px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}
.leaveBody p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}
.leaveBody strong {
  color: var(--fg);
}
.leaveBody .button {
  justify-self: start;
  margin-top: 4px;
}
/* the fourteen days, drawn as fourteen days */
.leaveDays {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.leaveDayRow {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 4px;
}
.leaveDay {
  height: 14px;
  border: 1px solid color-mix(in srgb, var(--hue) 30%, var(--line));
  border-radius: 3px;
  background: color-mix(in srgb, var(--hue) 8%, var(--bg));
}
.leaveDay.last {
  border-color: var(--hue);
  background: var(--hue);
}
.leaveDayLabels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
/* what goes, and what stays, side by side */
.leaveSplit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.leaveSide {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.leaveSide h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 24px;
}
.leaveSide h3 .ico {
  width: 18px;
  height: 18px;
}
.leaveSide.goes h3 .ico {
  color: var(--hue);
}
.leaveSide.stays h3 .ico {
  color: var(--good);
}
.leaveSide ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 22px;
}
.leaveNote {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
/* the way to start, at the end */
.leaveCall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 48px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--hue) 35%, var(--line));
  border-radius: var(--radius);
  background: var(--panel);
}
.leaveCall > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.leaveCall strong {
  font-size: 17px;
  line-height: 24px;
}
.leaveCall span {
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}
@media (max-width: 720px) {
  .leaveSplit {
    grid-template-columns: minmax(0, 1fr);
  }
  .leaveStep {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
  }
  .leaveStep:not(:last-child)::after {
    top: 36px;
    left: 15px;
  }
  .leaveMark {
    width: 32px;
    height: 32px;
  }
  .leaveMark .ico {
    width: 16px;
    height: 16px;
  }
  .leaveDay {
    height: 12px;
  }
  .guideEmergencyMark .ico {
    width: 18px;
    height: 18px;
  }
  .leaveCall .button {
    width: 100%;
    justify-content: center;
  }
}
