/* Guides: /:lang/guides and /:lang/guides/:slug (components/site/pages/GuidesPage.tsx). Loaded only on these pages. */

/* The container already has the gutter; the site's headings add another one, which text blocks here do not. */
.guide h1,
.guide h2 {
  padding-inline: 0;
}

.guide {
  padding-top: clamp(32px, 5vw, 56px);
  /* Article text is read in full, so it is brighter than the site's --muted, and bold is a step softer than --text:
     with 66% against 100% the plain text looked skippable and the bold glared (owner, 2026-10-10). */
  --guide-body: rgba(243, 244, 246, 0.8);
  --guide-strong: rgba(243, 244, 246, 0.93);
}

.guide-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: 14px;
  color: var(--faint);
}

.guide-crumbs a {
  color: var(--muted);
}

.guide-crumbs [aria-current="page"] {
  color: var(--faint);
}

.guide h1 {
  font-size: clamp(30px, 5vw, 44px);
  text-wrap: balance;
}

.guide-updated {
  margin-top: 8px;
  font-size: 14px;
}

.guide .lead {
  margin-top: 20px;
  color: var(--guide-body);
}

.guide-section {
  margin-top: 40px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.guide h2 {
  font-size: clamp(21px, 2.6vw, 24px);
  margin-bottom: 14px;
  text-wrap: balance;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.guide-section p,
.guide-section li {
  color: var(--guide-body);
}

.guide-section b,
.guide .lead b {
  color: var(--guide-strong);
  font-weight: 600;
}

.guide-section > * + * {
  margin-top: 14px;
}

.guide code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--glass-3);
  color: var(--text);
  overflow-wrap: anywhere;
}

.guide-list {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

/* Numbered steps: the number in a small accent disc. */
.guide-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.guide-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
}

.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.guide-note {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
  background: color-mix(in srgb, var(--warning) 7%, transparent);
}

.guide-section .guide-note {
  color: var(--text);
}

/* A picture of macOS windows: transparent around the window and its shadow, at the window's own size. */
.guide-pic {
  /* The room the shadow had in the files (to-site.sh cuts it): as much on the sides, below and above as before. */
  margin: 4px 0 20px;
  padding: 38px 56px 72px;
}

/* The files carry the window without its shadow (to-site.sh cuts it): the shadow is drawn here, in the window's shape. */
.guide-pic img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  filter: var(--gp-shadow);
  --gp-shadow: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.5)) drop-shadow(0 8px 22px rgba(0, 0, 0, 0.4));
}

/* Loading — the pictures of windows and MacWashing's own shots («The fast way», the closing block): guides.js marks the
   page, then each picture as it arrives (`data-in`; already loaded ones get "now" and show at once). Until then the
   landing's placeholder holds the place — a glass box with the accent shimmer — and the picture sharpens in. Without
   JavaScript the pictures just show. */
body:has(#guides-pics-on) .guide-pic picture {
  display: block;
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

body:has(#guides-pics-on) .guide-shot {
  position: relative;
}

body:has(#guides-pics-on) .guide-pic picture::before,
body:has(#guides-pics-on) .guide-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.06) 42%,
    color-mix(in srgb, var(--accent) 14%, transparent) 50%, rgba(255, 255, 255, 0.06) 58%, transparent 70%) var(--glass);
  background-size: 250% 100%;
  animation: lp-shimmer 1.8s linear infinite;
  transition: opacity 0.5s var(--ease);
}

body:has(#guides-pics-on) .guide-pic picture:has(img[data-in])::before,
body:has(#guides-pics-on) .guide-shot:has(img[data-in])::before {
  opacity: 0;
  animation: none;
}

body:has(#guides-pics-on) .guide-pic img:not([data-in]),
body:has(#guides-pics-on) .guide-shot img:not([data-in]) {
  opacity: 0;
}

body:has(#guides-pics-on) .guide-pic img[data-in=""],
body:has(#guides-pics-on) .guide-shot img[data-in=""] {
  animation: gp-in 0.7s var(--ease);
}

@keyframes gp-in {
  from {
    opacity: 0;
    filter: blur(24px) var(--gp-shadow,);
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    filter: blur(0) var(--gp-shadow,);
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:has(#guides-pics-on) .guide-pic picture::before,
  body:has(#guides-pics-on) .guide-shot::before,
  body:has(#guides-pics-on) .guide-pic img[data-in=""],
  body:has(#guides-pics-on) .guide-shot img[data-in=""] {
    animation: none;
  }
}

/* Pictures of one menu path side by side, one height (sizes from PicsRow); shrinking keeps it; stacked on phones. */
.guide-pics {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  margin: 42px 0 92px;
}

/* A row keeps the room above and below, not on the sides: the pictures stay as big as the column allows. */
.guide-pics .guide-pic {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .guide-pic {
    padding: 20px 0 40px;
  }

  .guide-pics {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin: 24px 0 60px;
  }
}

/* Steps that go on after a picture (a list split around it) keep counting: class from-N, N = the first number. */
.guide-steps.from-2 { counter-reset: step 1; }
.guide-steps.from-3 { counter-reset: step 2; }
.guide-steps.from-4 { counter-reset: step 3; }
.guide-steps.from-5 { counter-reset: step 4; }
.guide-steps.from-6 { counter-reset: step 5; }
.guide-steps.from-7 { counter-reset: step 6; }
.guide-steps.from-8 { counter-reset: step 7; }
.guide-steps.from-9 { counter-reset: step 8; }
.guide-steps.from-10 { counter-reset: step 9; }

/* The closing block: what MacWashing does instead. */
.guide-app {
  margin-top: 56px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, transparent), rgba(255, 255, 255, 0.02));
}

.guide-app > * + * {
  margin-top: 16px;
}

.guide-app p {
  color: var(--muted);
}

.guide-shot {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 48px -20px rgba(0, 0, 0, 0.8);
}

.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-faq,
.guide-related {
  margin-top: 56px;
}

.guide-cards {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.guide-related .guide-cards {
  margin-top: 0;
}

.guide-cards li {
  display: flex;
}

/* A card is one link: icon, title in link colour, description, arrow; it lifts on hover. */
.guide-card {
  flex: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.guide-card:hover,
.guide-card:focus-visible {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--glass-2);
  transform: translateY(-2px);
}

.guide-card-icon {
  width: 40px;
  height: 40px;
  display: block;
}

.guide-card-glyph {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.guide-card-glyph svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-card-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.guide-card-text b {
  font-size: 16px;
  font-weight: 650;
  color: var(--accent);
  text-wrap: balance;
}

.guide-card:hover .guide-card-text b {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-card-text span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.guide-card-arrow {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.guide-card:hover .guide-card-arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .guide-card,
  .guide-card-arrow {
    transition: none;
  }

  .guide-card:hover,
  .guide-card:hover .guide-card-arrow {
    transform: none;
  }
}

/* Layout. Wide screens: the app's icon | the text (780 px at most, a comfortable line) | a sticky rail with the guide's
   sections and «Back to top». Medium: icon | text. Narrow: the icon above the title. */
.guide-wrap {
  max-width: calc(780px + 2 * var(--gutter));
}

.guide-aside,
.guide-rail {
  display: none;
}

.guide-main {
  min-width: 0;
}

.guide-icon {
  display: block;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
}

@media (max-width: 899px) {
  .guide-wrap.has-icon .guide-aside {
    display: block;
    margin-bottom: 12px;
  }

  .guide-icon {
    width: 64px;
    height: 64px;
  }
}

@media (min-width: 900px) and (max-width: 1279px) {
  .guide-wrap.has-icon {
    max-width: calc(780px + 136px + 2 * var(--gutter));
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 24px;
  }

  .guide-wrap.has-icon .guide-aside {
    display: block;
    padding-top: 52px;
  }

  .guide-wrap.has-icon .guide-icon {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
}

@media (min-width: 1280px) {
  .guide-wrap {
    max-width: calc(112px + 780px + 230px + 2 * 32px + 2 * var(--gutter));
    display: grid;
    grid-template-columns: 112px minmax(0, 780px) 230px;
    gap: 32px;
  }

  .guide-aside,
  .guide-rail {
    display: block;
  }

  .guide-aside,
  .guide-rail {
    padding-top: 52px;
  }

  .guide-icon {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
}

/* The same start and the same sticky top as the icon: the 52 px are on the column (.guide-rail), not inside the sticky
   block, so both stop at the header + 28 px. */
.guide-rail-in {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 12px;
}

.guide-rail-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}

.guide-rail ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.guide-rail ol a {
  display: block;
  padding: 5px 0 5px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

.guide-rail ol a:hover {
  color: var(--text);
  text-decoration: none;
}

.guide-rail ol a[aria-current="true"] {
  color: var(--text);
  border-left-color: var(--accent);
}

.guide-rail-top {
  font-size: 14px;
  color: var(--accent);
}

/* «Back to top» below 1280 px: a round button in the corner once the reader is deep in the guide (guides.js). */
.guide-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--stroke-2);
  background: color-mix(in srgb, var(--sheet) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  /* Hidden also from the keyboard and screen readers, after the fade. */
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}

.guide-top.is-shown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

/* The rail's own «Back to top» takes over at 1280 px; after the base rule, or its `display: grid` wins. */
@media (min-width: 1280px) {
  .guide-top {
    display: none;
  }
}

.guide-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html:has(.guide-top) {
  scroll-behavior: smooth;
}

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

/* The fast way's own questions show only with «The fast way»; the rail's section links hide with the sections. */
.faq-fast {
  display: none;
}

.guide-wrap:has(#way-fast:checked) .faq-fast {
  display: block;
  margin-bottom: 0;
}

.guide-wrap:has(#way-fast:checked) .guide-rail ol li:not(:last-child) {
  display: none;
}

/* «The usual way» / «The fast way»: radio cards, the checked one opens its panel (no JS). */
.guide-ways {
  margin-top: 28px;
}

.guide-way-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.guide-way-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.guide-way-tab {
  display: grid;
  gap: 4px;
  padding: 14px 16px 14px 44px;
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--glass);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.guide-way-tab::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--stroke-2);
}

.guide-way-tab b {
  font-size: 16px;
  font-weight: 650;
}

.guide-way-tab span {
  font-size: 14px;
  color: var(--muted);
}

.guide-way-tab:hover {
  background: var(--glass-2);
}

#way-manual:checked ~ .guide-way-tabs .way-manual,
#way-fast:checked ~ .guide-way-tabs .way-fast {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

#way-manual:checked ~ .guide-way-tabs .way-manual::before,
#way-fast:checked ~ .guide-way-tabs .way-fast::before {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 4px, transparent 5px);
}

#way-manual:focus-visible ~ .guide-way-tabs .way-manual,
#way-fast:focus-visible ~ .guide-way-tabs .way-fast {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.guide-way-panel {
  margin-top: 12px;
}

#way-manual:checked ~ .panel-fast,
#way-fast:checked ~ .panel-manual {
  display: none;
}

.panel-fast {
  padding: clamp(16px, 2.5vw, 22px);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), rgba(255, 255, 255, 0.02));
}

.panel-fast > * + * {
  margin-top: 16px;
}

.panel-fast .guide-steps li {
  color: var(--muted);
}

.panel-fast b {
  color: var(--text);
  font-weight: 600;
}

/* The usual way's steps: a list of anchors, each row a link down the page. */
.guide-toc {
  list-style: none;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-toc li + li {
  border-top: 1px solid var(--line);
}

/* No numbers: these are links to sections, not steps — numbered discs belong to the steps (owner 2026-10-09). */
.guide-toc a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: var(--text);
  background: var(--glass);
  transition: background 0.15s var(--ease);
}

.guide-toc a:hover {
  text-decoration: none;
  background: var(--glass-3);
}

.guide-toc a:hover .guide-toc-t {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-toc-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  .guide-way-tabs {
    grid-template-columns: 1fr;
  }
}

/* The fast way chosen: the manual steps and the closing block (the same as the fast panel) step aside; questions and
   related guides stay. The default (usual way) shows the whole guide, as search engines read it. */
.guide-main:has(#way-fast:checked) .guide-section,
.guide-main:has(#way-fast:checked) .guide-app {
  display: none;
}

/* Group headings in the list (.guide h2 sets its own margins, so the extra class wins). */
.guide .guide-group {
  margin-top: 44px;
  margin-bottom: 0;
}

/* A link inside a guide's text: the text's own colour with a dotted underline. */
.guide-link {
  color: currentColor;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.guide-link:hover {
  border-bottom-style: solid;
}

/* «All N guides» under «Read next»: back to the list. */
.guide-all {
  margin-top: 16px;
}

.guide-all a {
  font-weight: 600;
}

.guide-all a::after {
  content: " →";
}

/* The list page: tiles over the whole width (masonry), the heading and lead stay a comfortable text width. */
.guide-mosaic-wrap {
  max-width: calc(1680px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.guide-mosaic {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 168px;
  grid-auto-flow: dense;
  gap: 14px;
}

.guide-mosaic .tile-wide,
.guide-mosaic .tile-big {
  grid-column: span 2;
}

.guide-mosaic .tile-tall,
.guide-mosaic .tile-big {
  grid-row: span 2;
}

.guide-mosaic li {
  display: flex;
  min-width: 0;
}

.guide-tile {
  --icon: 44px;
  --lines: 0;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--glass);
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.guide-tile:hover,
.guide-tile:focus-visible {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--glass-2);
  transform: translateY(-2px);
}

.tile-wide .guide-tile {
  --lines: 2;
}

.tile-tall .guide-tile {
  --icon: 64px;
  --lines: 5;
}

.tile-big .guide-tile {
  --icon: 96px;
  --lines: 4;
  padding: 26px 28px;
}

.guide-tile-icon {
  width: var(--icon);
  height: var(--icon);
  flex: none;
  display: block;
}

.guide-tile b {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--accent);
  text-wrap: balance;
  padding-right: 18px;
}

.tile-big .guide-tile b {
  font-size: clamp(20px, 1.8vw, 24px);
}

.guide-tile:hover b {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-tile > span:not(.guide-tile-icon) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lines);
  line-clamp: var(--lines);
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.tile-one .guide-tile > span:not(.guide-tile-icon) {
  display: none;
}

.guide-tile-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-tile:hover .guide-tile-arrow {
  stroke: var(--accent);
}

@media (max-width: 520px) {
  .guide-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 10px;
  }

  .guide-tile {
    padding: 14px;
  }

  .guide-tile b {
    font-size: 14px;
  }
}

/* An app tile's title: «How to uninstall» small, the app's name big, «on Mac completely» small. */
.guide-tile .tile-title small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.guide-tile .tile-title small:first-child {
  display: block;
  margin-bottom: 2px;
}

.guide-tile .tile-name {
  font-size: 19px;
  font-weight: 700;
}

.tile-big .guide-tile .tile-name {
  font-size: clamp(24px, 2.2vw, 30px);
}

.guide-tile-icon.guide-card-glyph {
  display: grid;
}

.guide-tile > span:not(.guide-tile-icon) {
  padding-right: 18px;
}

/* «Show more»: a link to the next page; the script loads it on its own as the reader nears it. */
.guide-more-wrap {
  margin-top: 24px;
  text-align: center;
}

/* A tile standing in while the next page loads: the landing's shimmer over grey bars. */
.guide-tile.is-skeleton {
  pointer-events: none;
}

.guide-tile.is-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.06) 42%,
    color-mix(in srgb, var(--accent) 14%, transparent) 50%, rgba(255, 255, 255, 0.06) 58%, transparent 70%);
  background-size: 250% 100%;
  animation: lp-shimmer 1.8s linear infinite;
}

.guide-tile .sk-icon,
.guide-tile .sk-line {
  display: block;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.guide-tile .sk-icon {
  width: var(--icon);
  height: var(--icon);
}

.guide-tile .sk-line {
  height: 12px;
  width: 80%;
  border-radius: 6px;
}

.guide-tile .sk-line.short {
  width: 50%;
}

@media (prefers-reduced-motion: reduce) {
  .guide-tile.is-skeleton::after {
    animation: none;
  }
}

/* Tiles «rinse in» as they come into view (guides.js): the tile rises out of a blur and settles with a sway, now and
   then a sheen of water runs over it once. The script only animates
   (Web Animations: no attribute of the server-rendered page changes, so React's hydration sees what it rendered) and
   marks the page with #guides-anim-on at the end of <body>; until a tile's turn comes it is hidden through that mark.
   Without JavaScript or with reduced motion the tiles are simply there. The animations use translate/scale/rotate,
   not transform, so the tile's own hover lift still works after them. */
body:has(> #guides-anim-on) .guide-mosaic > li:not([aria-hidden]) .guide-tile {
  opacity: 0;
}

.guide-mosaic .guide-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.07) 45%,
    color-mix(in srgb, var(--accent) 22%, transparent) 50%, rgba(255, 255, 255, 0.07) 55%, transparent 65%);
  background-size: 260% 100%;
}

/* «Read next» sits in the layout grid's second row across all its columns, tiles like the list's: the icon and the «In
   this guide» rail stick only as far as the guide itself goes. */
@media (min-width: 900px) {
  .guide-wrap .guide-related {
    grid-column: 1 / -1;
  }
}

/* ---------- Install guides (kind `install`): the download card, «The usual way» / «Homebrew», Terminal commands ---------- */

.get-card {
  margin-top: 28px;
  padding: clamp(16px, 2.5vw, 24px);
  display: grid;
  gap: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), rgba(255, 255, 255, 0.02));
}

.get-head {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.get-icon {
  width: 56px;
  height: 56px;
  flex: none;
}

.get-name {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.guide .get-name h2 {
  margin: 0;
  font-size: 20px;
}

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

.get-facts li {
  padding: 3px 10px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass-2);
}

.get-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: end;
}

.get-actions.is-single {
  grid-template-columns: minmax(0, 22rem);
}

.get-main {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding-block: 12px;
  text-align: center;
}

.get-main span {
  font-weight: 650;
}

.get-main small {
  font-size: 12px;
  opacity: 0.75;
}

.get-direct {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.get-direct p,
.get-note {
  margin: 0;
}

.get-files {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.get-files.is-single {
  grid-template-columns: 1fr;
}

.get-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--glass);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.get-file:hover {
  text-decoration: none;
  background: var(--glass-3);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

/* A direct installer: a download glyph in the text's grey, the accent on hover. */
.get-file-icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s var(--ease);
}

.get-file:hover .get-file-icon {
  stroke: var(--accent);
}

.get-file-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.get-file b {
  font-size: 14px;
  font-weight: 600;
}

.get-file-text span {
  font-size: 12px;
  color: var(--muted);
}

/* An install guide's ways («The usual way», «Homebrew», nvm…): the same radio cards as `Ways`, in the install accent;
   tab i shows panel i (rules for up to six); the steps stay on the page either way. */
.inst-ways .guide-way-tabs {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

#iway-0:checked ~ .guide-way-tabs .iway-tab-0,
#iway-1:checked ~ .guide-way-tabs .iway-tab-1,
#iway-2:checked ~ .guide-way-tabs .iway-tab-2,
#iway-3:checked ~ .guide-way-tabs .iway-tab-3,
#iway-4:checked ~ .guide-way-tabs .iway-tab-4,
#iway-5:checked ~ .guide-way-tabs .iway-tab-5 {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

#iway-0:checked ~ .guide-way-tabs .iway-tab-0::before,
#iway-1:checked ~ .guide-way-tabs .iway-tab-1::before,
#iway-2:checked ~ .guide-way-tabs .iway-tab-2::before,
#iway-3:checked ~ .guide-way-tabs .iway-tab-3::before,
#iway-4:checked ~ .guide-way-tabs .iway-tab-4::before,
#iway-5:checked ~ .guide-way-tabs .iway-tab-5::before {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 4px, transparent 5px);
}

#iway-0:focus-visible ~ .guide-way-tabs .iway-tab-0,
#iway-1:focus-visible ~ .guide-way-tabs .iway-tab-1,
#iway-2:focus-visible ~ .guide-way-tabs .iway-tab-2,
#iway-3:focus-visible ~ .guide-way-tabs .iway-tab-3,
#iway-4:focus-visible ~ .guide-way-tabs .iway-tab-4,
#iway-5:focus-visible ~ .guide-way-tabs .iway-tab-5 {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.iway-panel {
  display: none;
}

#iway-0:checked ~ .iway-panel-0,
#iway-1:checked ~ .iway-panel-1,
#iway-2:checked ~ .iway-panel-2,
#iway-3:checked ~ .iway-panel-3,
#iway-4:checked ~ .iway-panel-4,
#iway-5:checked ~ .iway-panel-5 {
  display: block;
}

.panel-brew,
.panel-extra {
  padding: clamp(16px, 2.5vw, 22px);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), rgba(255, 255, 255, 0.02));
}

.iway-body {
  display: grid;
  gap: 12px;
}

.iway-body > p,
.iway-body > ol,
.iway-body > ul {
  margin: 0;
}

.iway-body .guide-cmd {
  margin-top: 0;
}

/* A Terminal command: a dark line with shell highlighting, a thin scrollbar shown on hover and a small «Copy» in the top
   right corner that shows on hover or focus (always on touch screens; only with JavaScript — guides.js). */
.guide-cmd {
  position: relative;
  min-width: 0;
  margin-top: 14px;
  border: 1px solid var(--stroke-2);
  border-radius: var(--radius);
  background: #13151b;
}

.guide-cmd code {
  display: block;
  overflow-x: auto;
  padding: 13px 48px 13px 16px;
  white-space: pre;
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  background: none;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

/* The scrollbar shows only while the pointer is over the block (or it has focus): a thin thumb, no track. Its room is
   always kept, so the text doesn't jump. Chrome and Firefox use scrollbar-color, Safari the ::-webkit-scrollbar parts. */
.guide-cmd:hover code,
.guide-cmd:focus-within code {
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.guide-cmd code::-webkit-scrollbar {
  height: 6px;
}

.guide-cmd code::-webkit-scrollbar-track {
  background: transparent;
}

.guide-cmd code::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: transparent;
}

.guide-cmd:hover code::-webkit-scrollbar-thumb,
.guide-cmd:focus-within code::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

.guide-cmd code::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

.guide-cmd code::before {
  content: "$ ";
  color: var(--faint);
  user-select: none;
}

/* Shell highlighting (CmdLine): the site's section colours, softened. */
.guide-cmd .tk-cmd { color: #7fe4f2; }
.guide-cmd .tk-flag { color: #ffcf85; }
.guide-cmd .tk-str { color: #a2ebb4; }
.guide-cmd .tk-var { color: #c3b7ff; }
.guide-cmd .tk-op { color: #ff9c94; }
.guide-cmd .tk-url,
.guide-cmd .tk-path { color: #d6dae3; }
.guide-cmd .tk-com { color: var(--faint); font-style: italic; }

.guide-cmd-copy {
  position: absolute;
  top: 7px;
  right: 7px;
  display: none;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  border: 1px solid var(--stroke-2);
  border-radius: 8px;
  background: #1c1f27;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}

body:has(#guides-copy-on) .guide-cmd-copy {
  display: grid;
}

.guide-cmd:hover .guide-cmd-copy,
.guide-cmd:focus-within .guide-cmd-copy,
.guide-cmd-copy.is-copied {
  opacity: 1;
}

@media (hover: none) {
  .guide-cmd-copy {
    opacity: 1;
  }
}

.guide-cmd-copy:hover {
  color: var(--text);
  background: #262a34;
}

.guide-cmd-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.guide-cmd-copy svg {
  grid-area: 1 / 1;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-cmd-copy .i-done,
.guide-cmd-copy.is-copied .i-copy {
  display: none;
}

.guide-cmd-copy.is-copied .i-done {
  display: block;
  stroke: var(--disk);
  stroke-width: 2;
}

@media (max-width: 640px) {
  .get-actions,
  .get-files {
    grid-template-columns: 1fr;
  }
}

/* «Alternatives to <App>»: the same link cards as «Read next»; an outside site shows its domain. */
.guide-alts {
  margin-top: 14px;
}

.guide-alt-site {
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
}

/* A command or path in the text (InlineCode): highlighted like a block, a small «Copy» glyph right after it (only with
   JavaScript — guides.js); the glyph is faint until the pointer is over the code. */
/* The pill is the wrapper, so the glyph sits inside it, at its right end. */
.guide .icode {
  padding: 1px 2px 1px 6px;
  border-radius: 6px;
  background: var(--glass-3);
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.guide .icode code {
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 1em;
}

.icode code .tk-cmd { color: #7fe4f2; }
.icode code .tk-flag { color: #ffcf85; }
.icode code .tk-str { color: #a2ebb4; }
.icode code .tk-var { color: #c3b7ff; }
.icode code .tk-op { color: #ff9c94; }
.icode code .tk-url,
.icode code .tk-path { color: inherit; }

.icode-copy {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 3px;
  padding: 0;
  vertical-align: -2px;
  place-items: center;
  color: var(--faint);
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}

body:has(#guides-copy-on) .icode-copy {
  display: inline-grid;
}

.icode:hover .icode-copy,
.icode-copy:focus-visible,
.icode-copy.is-copied {
  opacity: 1;
  color: var(--text);
}

.icode-copy:hover {
  background: var(--glass-3);
}

.icode-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.icode-copy svg {
  grid-area: 1 / 1;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icode-copy .i-done,
.icode-copy.is-copied .i-copy {
  display: none;
}

.icode-copy.is-copied .i-done {
  display: block;
  stroke: var(--disk);
  stroke-width: 2;
}

/* ---------- «X for Mac» pages (kind `nomac`): the answer card, big alternative cards, the comparison table ---------- */

.nomac-glyph {
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke-2);
  border-radius: 14px;
  background: var(--glass-3);
  color: var(--muted);
}

.nomac-glyph svg {
  width: 56%;
  height: 56%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nomac-verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--warning) 9%, transparent);
}

.nomac-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 18%, transparent);
}

.nomac-verdict b {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.nomac-verdict p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.nomac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nomac-site small {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.75;
}

.nomac-card .get-note {
  margin: 0;
}

.alt-rich {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.alt-rich > li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--glass);
}

.alt-rich > li.is-top {
  border-color: color-mix(in srgb, var(--disk) 40%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--disk) 7%, transparent), var(--glass));
}

.alt-icon {
  width: 48px;
  height: 48px;
}

.alt-icon.nomac-glyph {
  border-radius: 12px;
}

.alt-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.guide .alt-body p {
  margin: 0;
}

.alt-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.alt-title b {
  font-size: 17px;
}

.alt-pick {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--disk);
}

.guide .alt-why {
  font-size: 15px;
  color: var(--muted);
}

.alt-body .get-facts li {
  padding: 2px 9px;
  font-size: 12px;
}

.guide .alt-body .guide-cmd {
  margin: 2px 0 0;
}

.alt-links {
  font-size: 14px;
}

.alt-links a {
  font-weight: 600;
  color: var(--disk);
}

.alt-links a.ext {
  font-weight: 500;
  color: var(--muted);
}

.alt-links a:hover {
  text-decoration: underline;
}

.cmp {
  margin-top: 18px;
}

.cmp table.table {
  min-width: 480px;
}

.cmp tbody th {
  padding: 13px 16px;
  background: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  text-align: left;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.cmp thead th:not(:first-child),
.cmp td {
  text-align: center;
}

.cmp-yes {
  font-weight: 700;
  color: var(--disk);
}

.cmp-no {
  color: var(--faint);
}

/* ---------- The list's top: «Useful Mac guides» and the search over a tilted wall of app icons ---------- */

.gs-hero {
  position: relative;
  z-index: 2; /* the suggestions lie over the tiles below, even while they animate */
  isolation: isolate;
  margin-top: 14px;
  min-height: 440px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background: #0d0f14;
}

.gs-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--junk) 18%, transparent), transparent 60%);
}

.gs-pan {
  position: absolute;
  inset: 0;
  animation: gs-pan 40s ease-in-out infinite alternate;
}

.gs-wall {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1500px;
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 22px;
  opacity: 0.5;
  transform: translate(-50%, -46%) perspective(1100px) rotateX(52deg) rotateZ(-18deg);
}

.gs-wall img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6));
}

.gs-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 55% at 50% 50%, rgba(13, 15, 20, 0.92), rgba(13, 15, 20, 0.35) 70%, rgba(13, 15, 20, 0.9));
}

@keyframes gs-pan {
  from {
    transform: translateX(-60px);
  }
  to {
    transform: translateX(60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gs-pan {
    animation: none;
  }
}

.gs-front {
  width: min(640px, 100%);
  padding: 56px 20px;
  text-align: center;
}

.guide .gs-front h1 {
  margin: 0 0 26px;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.gs-form {
  position: relative;
  text-align: left;
}

.gs-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 9px 0 18px;
  border: 1px solid var(--stroke-2);
  border-radius: 16px;
  background: rgba(25, 27, 33, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.gs-box:focus-within {
  border-color: color-mix(in srgb, var(--junk) 60%, transparent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 4px color-mix(in srgb, var(--junk) 16%, transparent);
}

.gs-box svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--faint);
  stroke-width: 2;
  stroke-linecap: round;
}

/* The box is the field: the site's own look of a search input and its focus ring (site.css) stay off. */
.gs-box input,
.gs-box input:focus {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: none;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: 17px;
}

.gs-box input::placeholder {
  color: var(--faint);
}

.gs-box input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.5);
}

.gs-box kbd {
  padding: 3px 7px;
  font: inherit;
  font-size: 12px;
  color: var(--faint);
  border: 1px solid var(--stroke-2);
  border-radius: 7px;
}

.gs-box .btn {
  flex: none;
}

.gs-count {
  margin: 12px 0 0;
}

.gs-res {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  max-height: 380px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--stroke-2);
  border-radius: 16px;
  background: rgba(25, 27, 33, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.gs-res a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  color: var(--text);
  border-radius: 11px;
}

.gs-res a[aria-selected='true'],
.gs-res a:hover {
  background: var(--glass-3);
}

/* A keyboard shortcut in the text: the inline code look with a keyboard glyph; its Mac symbols on hover (title). */
.guide .ikbd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 7px 1px 6px;
  border-radius: 6px;
  background: var(--glass-3);
  white-space: nowrap;
  vertical-align: baseline;
}

.guide .ikbd svg {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide .ikbd kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--text);
}

/* The site's link underline would run under the kind badge too: only the title gets it. */
.gs-res a:hover {
  text-decoration: none;
}

.gs-res a:hover .gs-t {
  text-decoration: underline;
}

.gs-res img,
.gs-res .gs-glyph {
  width: 32px;
  height: 32px;
}

.gs-res .gs-glyph {
  border-radius: 8px;
}

.gs-res .gs-glyph svg {
  width: 18px;
  height: 18px;
}

.gs-t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-res mark {
  background: none;
  color: var(--junk);
  font-weight: 650;
}

.gs-k {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid var(--stroke-2);
  border-radius: 999px;
}

.gs-none {
  padding: 14px 12px;
  color: var(--faint);
}

@media (max-width: 640px) {
  .gs-hero {
    min-height: 380px;
  }

  .gs-box kbd {
    display: none;
  }

  .gs-wall {
    width: 1100px;
  }
}

/* ---------- A guide's search in the header (`HeaderSearch`): «Search» opens a field over the header ---------- */

.hs {
  position: relative;
  margin-left: auto;
}

.hs + .header-end {
  margin-left: 0;
}

.hs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  height: 38px;
  padding: 0 10px 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: var(--glass);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.hs-toggle:hover {
  color: var(--text);
  text-decoration: none;
  border-color: var(--stroke-2);
}

.hs-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.hs-toggle kbd {
  margin-left: auto;
  padding: 1px 6px;
  font: inherit;
  font-size: 11px;
  color: var(--faint);
  border: 1px solid var(--stroke-2);
  border-radius: 6px;
}

.hs.is-open .hs-toggle {
  visibility: hidden;
}

/* Open: a field over the header's right side, the suggestions under it. */
.hs-form {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 60;
  width: min(440px, 70vw);
  transform: translateY(-50%);
}

.hs-form .gs-box {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(25, 27, 33, 0.96);
}

.hs-form .gs-box input {
  font-size: 15px;
}

.hs-form .gs-res {
  top: calc(100% + 6px);
}

/* A narrow desktop: the header has no room for the wide closed field. */
@media (max-width: 1080px) {
  .hs-toggle {
    min-width: 0;
  }
}

/* Just above the phone menu the four header links leave room only for the magnifier. */
@media (max-width: 960px) {
  .hs-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }

  .hs-toggle span,
  .hs-toggle kbd {
    display: none;
  }
}

@media (max-width: 860px) {
  .hs + .header-end ~ .nav-mobile {
    margin-left: 12px;
  }

  .hs-toggle {
    min-width: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }

  .hs-toggle span,
  .hs-toggle kbd {
    display: none;
  }

  /* On a phone the field spans the screen under the header. */
  .hs-form {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
  }
}

/* Narrow screens: a suggestion's title takes two lines instead of an ellipsis. */
@media (max-width: 640px) {
  .gs-t {
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
