/* copse: a light, serif design in the logo's greens. */
:root {
  --green: #0C5C27;
  --green-light: #3DBA6E;
  --green-wash: #EEF6F0;
  --ink: #1B1F1C;
  --muted: #5B635D;
  --rule: #DCE3DD;
  --paper: #FCFCF9;
  --code-bg: #F2F4F1;
  --serif: "Times New Roman", Times, "Liberation Serif", serif;
  --header-h: 64px; /* the header's height while it's pinned */
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (max-width: 720px) {
  :root {
    --header-h: 0px;
  }
}
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-light);
}

code, pre {
  font-family: var(--mono);
  font-size: 0.82em;
}

code {
  background: var(--code-bg);
  padding: 0.08em 0.35em;
  border-radius: 3px;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.9em 1em;
  overflow-x: auto;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
  font-size: 1em;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: normal;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}

h3 {
  font-size: 1.25rem;
  color: var(--green);
}

/* Read out by screen readers, but not shown. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* One focus ring everywhere, in the site's green, shown for keyboard use. */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

.button:focus-visible {
  outline-offset: 3px;
}

/* "Skip to content": hidden until a keyboard user tabs to it. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--green);
  color: #fff;
  padding: 8px 14px;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

main:focus {
  outline: none;
}

/* Header */
.top {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

/* The header stays at the top on wider screens. On a phone its nav wraps to
   two rows, which would take too much of a small screen, so it scrolls away. */
@media (min-width: 721px) {
  .top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(252, 252, 249, 0.94);
    backdrop-filter: saturate(1.4) blur(8px);
    -webkit-backdrop-filter: saturate(1.4) blur(8px);
  }
}
/* Whatever a #link jumps to lands below the header, not under it. */
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.5rem;
}

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

.top nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.top nav a {
  text-decoration: none;
  color: var(--muted);
}

.top nav a:hover {
  color: var(--green);
}

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.92rem;
}

footer {
  background: var(--paper);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 32px 56px;
  padding-top: 44px;
  padding-bottom: 52px;
}

footer p {
  margin: 0 0 0.5em;
}

.foot-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

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

.foot-get .copy-line {
  margin-bottom: 12px;
}

.foot-get .copy-line code {
  font-size: 0.85rem;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.foot-links a:hover {
  color: var(--green);
}

@media (max-width: 820px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .foot-get {
    grid-column: 1/-1;
    grid-row: 1;
  }
}
@media (max-width: 480px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .foot-links .foot-label {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .top nav {
    gap: 6px 16px;
    font-size: 0.95rem;
  }
}
/* Same phone size as the hero's install command, so it fits. */
@media (max-width: 420px) {
  .foot-get .copy-line code {
    font-size: 12.5px;
  }
}
/* Hero */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--rule);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--green);
  margin: 0 0 18px;
}

.lede {
  max-width: 640px;
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
}

/* The install command, with a Copy button that's always there. */
.copy-line {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  background: #fff;
}
.copy-line code {
  background: none;
  font-size: 1rem;
  padding: 0.6em 0.9em;
  white-space: nowrap;
  overflow-x: auto;
}

.copy-line-button {
  align-self: stretch;
  font: 0.9rem var(--serif);
  color: var(--muted);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--rule);
  padding: 0 14px;
  cursor: pointer;
}
.copy-line-button:hover, .copy-line-button:focus-visible {
  color: var(--green);
  background: var(--green-wash);
}

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

.button {
  display: inline-block;
  padding: 0.55em 1.2em;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--green);
}

.button:hover {
  background: #0a4a20;
  color: #fff;
}

.button.quiet {
  background: transparent;
  color: var(--green);
}

.button.quiet:hover {
  background: var(--green-wash);
  color: var(--green);
}

.fine {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Features */
.features {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px 36px;
  margin-top: 28px;
}

.grid p {
  margin: 0;
  color: var(--muted);
}

/* The illustrated history section (the only place a graph appears) */
.history {
  padding: 72px 0;
  background: var(--green-wash);
  border-bottom: 1px solid var(--rule);
}

.history-row {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 56px;
  align-items: center;
}

.graph {
  margin: 0;
}

.graph svg {
  width: 100%;
  height: auto;
  display: block;
}

.graph .line {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.graph .main {
  stroke: var(--green);
}

.graph .branch {
  stroke: var(--green-light);
}

.graph .dot {
  fill: var(--green);
}

.graph .dot.soft {
  fill: var(--green-light);
}

.graph .dot.ring {
  fill: var(--paper);
  stroke: var(--green);
  stroke-width: 5;
}

.graph text {
  font-family: var(--serif);
  font-size: 15px;
  fill: var(--ink);
}

.history-text p {
  color: var(--muted);
  max-width: 560px;
}

/* Install */
.install {
  padding: 72px 0;
}

.install .tour {
  margin-bottom: 0;
}

.install > .wrap > .note {
  margin-top: 18px;
}

.tour-title {
  margin-top: 40px;
}

.tour .c {
  color: #657168;
} /* 4.6:1 on the code background */
@media (max-width: 900px) {
  .hero-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 18px;
  }
  .hero {
    padding: 56px 0 52px;
  }
  /* The same rhythm as the desktop sections, scaled down for a small screen. */
  .features, .from-git, .history, .install {
    padding: 52px 0;
  }
  .history-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .graph {
    max-width: 240px;
  }
  .copy-line code {
    font-size: 0.85rem;
  }
}
/* Keep the whole install command visible on a phone. */
@media (max-width: 420px) {
  .copy-line code {
    font-size: 12.5px;
    padding: 0.7em 0.7em;
  }
  .copy-line-button {
    padding: 0 10px;
    font-size: 0.85rem;
  }
}
/* The speed-up bars in "Faster than git". */
.speed {
  margin: 4px 0 0;
}

/* One grid for all three rows, so the bars line up and get the most room. */
.speed-rows {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 9px 8px;
}

.speed-row {
  display: contents;
}

.speed-what {
  background: none;
  padding: 0;
  font-size: 0.74rem;
  color: var(--ink);
}

.speed-track {
  position: relative;
  height: 10px;
}

.speed-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--green-light);
  border-radius: 0 4px 4px 0;
  overflow: hidden;
}

.speed-solid {
  display: block;
  height: 100%;
  background: var(--green);
}

.speed-git {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  background: var(--ink);
  opacity: 0.55;
  z-index: 1;
}

.speed-value {
  font-size: 0.85rem;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.speed figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 10px;
}

/* The commit graph draws itself once: the main line climbs, the branch
   leaves and rejoins, and each commit appears as a line reaches it. Before
   it's on screen ("waiting") everything is hidden; without JavaScript, or
   with reduced motion, neither class is set and the graph is just there. */
.graph.waiting .line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}
.graph.waiting .dot {
  transform: scale(0);
}
.graph.waiting text {
  opacity: 0;
}

.graph .dot {
  transform-box: fill-box;
  transform-origin: center;
}

.graph.drawn .line {
  transition: stroke-dashoffset 0.9s cubic-bezier(0.45, 0, 0.25, 1) var(--d), opacity 0s linear var(--d);
}
.graph.drawn .line.main {
  transition-duration: 1.25s, 0s;
}
.graph.drawn .dot {
  transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d);
}
.graph.drawn text {
  transition: opacity 0.4s ease var(--d);
}

.graph .line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* The terminal window in the hero. Same paper, rules and code font as the
   rest of the site, so it reads as part of the page, not a screenshot. */
.terminal {
  margin: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(27, 31, 28, 0.07);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule);
}

.terminal-title {
  font: 0.8rem var(--mono);
  color: var(--muted);
}

.terminal-body {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
  padding: 16px 18px 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.t-line {
  display: block;
  animation: t-in 0.3s ease both;
  animation-delay: calc(var(--i) * 70ms + 150ms);
}

.t-cmd {
  color: var(--ink);
}

.t-out {
  color: var(--muted);
}

.t-prompt {
  color: var(--green-light);
  user-select: none;
}

.t-state {
  color: var(--green);
  font-weight: 600;
}

@keyframes t-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Small enough on a phone that Copse's longest line still fits on one row. */
@media (max-width: 480px) {
  .terminal-body {
    font-size: 11.5px;
    padding: 14px 14px 16px;
  }
}
/* "Coming from git": the same jobs, side by side. */
.from-git {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}

.section-lede {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 24px;
}

.from-git .note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 16px 0 0;
}

.compare {
  margin: 0;
  font-size: 1rem;
}
.compare thead th {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare tbody th {
  color: var(--ink);
  width: 30%;
  padding-right: 24px;
}
.compare td {
  width: 35%;
}
.compare td code {
  display: table;
  margin: 2px 0;
  white-space: nowrap;
}
.compare td.git code {
  color: var(--muted);
}
.compare td.copse code {
  background: var(--green-wash);
  color: var(--green);
}
.compare tbody tr:hover {
  background: #fff;
}

/* On a phone, each job becomes a small card: the job, then git, then Copse. */
@media (max-width: 720px) {
  .from-git {
    padding: 52px 0;
  }
  .compare thead {
    display: none;
  }
  .compare tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
  .compare tbody th, .compare td {
    display: block;
    width: auto;
    border: 0;
    padding: 2px 0;
  }
  .compare tbody th {
    margin-bottom: 6px;
  }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
  }
  .compare td code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
/* The install tabs on the home page. The tabs are underlined like the nav. */
.install-tabs {
  margin-top: 20px;
  max-width: 760px;
}

.tab-list {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
}

.tab-list [role=tab] {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 6px 0 10px;
  cursor: pointer;
  white-space: nowrap;
}
.tab-list [role=tab]:hover {
  color: var(--green);
}
.tab-list [role=tab][aria-selected=true] {
  color: var(--green);
  border-bottom-color: var(--green);
}
.tab-list [role=tab]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.tab-panel {
  padding-top: 18px;
}
.tab-panel p {
  color: var(--muted);
  margin: 0 0 0.7em;
}
.tab-panel .note {
  font-size: 0.9rem;
  margin-top: 0.9em;
}
.tab-panel pre {
  margin: 0;
}

/* ---------------------------------------------------------------- motion */
/* Small, quick, and off for people who ask for less motion. */
a, .button, .card, .grid article, .icon {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(12, 92, 39, 0.18);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

.top nav a {
  position: relative;
  padding-bottom: 2px;
}

.top nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--green);
  transition: right 0.2s ease;
}

.top nav a:hover::after, .top nav a[aria-current=page]::after {
  right: 0;
}

.top nav a[aria-current=page] {
  color: var(--green);
}

.grid article {
  padding: 18px;
  margin: -18px;
  border-radius: 6px;
}

.grid article:hover {
  background: #fff;
  box-shadow: 0 2px 14px rgba(27, 31, 28, 0.07);
  transform: translateY(-2px);
}

.grid article:hover .icon {
  color: var(--green-light);
  transform: rotate(-6deg);
}

.brand img {
  transition: transform 0.35s ease;
}

.brand:hover img {
  transform: rotate(-12deg);
}

.copyable {
  position: relative;
}

.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  font: 13px var(--serif);
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 2px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.copyable:hover .copy, .copy:focus {
  opacity: 1;
}

.copy:hover {
  color: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  *, *::after {
    transition: none !important;
    animation: none !important;
  }
}
/* Touch screens have no hover, so the copy buttons stay in view there. */
@media (hover: none) {
  .copy {
    opacity: 1;
  }
  /* Give the button a row of its own, so it doesn't cover a long first line. */
  pre.copyable {
    padding-top: 2.6em;
  }
}
/* ---------------------------------------------------------------- icons */
.icon {
  width: 28px;
  height: 28px;
  color: var(--green);
  display: block;
  margin-bottom: 10px;
}

.icon.small {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: -4px;
  margin: 0 6px 0 0;
}

.icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- inner pages */
.page-head {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--rule);
}

.page-head p {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.12rem;
  margin: 0;
}

.page-body {
  padding: 48px 0 80px;
}

.page-body h2 {
  margin-top: 1.6em;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body p, .page-body li {
  color: var(--ink);
}

.page-body .muted {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 24px 0 8px;
}

.card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px;
  background: #fff;
}

.card:hover {
  border-color: var(--green-light);
  box-shadow: 0 2px 14px rgba(27, 31, 28, 0.07);
  transform: translateY(-2px);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 0;
}

.note-box {
  border-left: 3px solid var(--green-light);
  background: var(--green-wash);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  margin: 20px 0;
}

.note-box p {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-weight: normal;
  color: var(--green);
}

td code {
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
}

/* Comfortable reading: paragraphs and lists stop at about 70 characters a
   line. Code, tables, cards and download lists keep the full width. */
.page-body p,
.page-body li:not(.downloads li),
.page-body .note-box {
  max-width: 68ch;
}

.page-body .card p,
.page-body .release p.muted {
  max-width: none;
}

/* The install page's three ways to install: one row each, the description
   on the left and the command on the right, so commands never wrap. */
.cards.ways {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.ways .card {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 4px 32px;
  align-items: start;
}
.ways .card h3 {
  grid-column: 1;
  margin-bottom: 4px;
}
.ways .card p {
  grid-column: 1;
  margin: 0;
}
.ways .card pre {
  grid-column: 2;
  grid-row: 1/span 2;
  align-self: center;
  margin: 0;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

@media (max-width: 720px) {
  .ways .card {
    grid-template-columns: minmax(0, 1fr);
  }
  .ways .card pre {
    grid-column: 1;
    grid-row: auto;
    margin-top: 10px;
  }
}
/* The guide: contents on the left, text on the right. */
.guide-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 56px;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  font-size: 0.95rem;
}

.toc p {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.toc a {
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--green);
  border-left-color: var(--green-light);
  padding-left: 16px;
}

.guide h2 {
  padding-top: 8px;
}

.guide section {
  margin-bottom: 40px;
}

@media (max-width: 820px) {
  .guide-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
  }
  .toc p {
    width: 100%;
  }
  .toc a {
    border-left: 0;
    padding: 2px 0;
  }
  .toc a:hover {
    padding-left: 0;
  }
}
/* The section being read: green, with its marker bar filled in. */
.toc a.here {
  color: var(--green);
  border-left-color: var(--green);
}

@media (max-width: 820px) {
  .toc a.here {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
/* A # beside each heading, for linking straight to it. It shows on hover,
   or when it has keyboard focus. */
.guide h2 .anchor {
  margin-left: 0.35em;
  font-size: 0.7em;
  color: var(--green);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.guide h2:hover .anchor, .guide h2 .anchor:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .guide h2 .anchor {
    opacity: 0.6;
  }
}
/* Releases */
.release {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 26px;
  background: #fff;
  margin-bottom: 24px;
}

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

.release h2 {
  margin: 0;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-light);
  border-radius: 20px;
  padding: 1px 10px;
}

.tag.dev {
  color: var(--muted);
  border-color: var(--rule);
}

.downloads {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}

.downloads a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.downloads a:hover {
  border-color: var(--green-light);
  background: var(--green-wash);
}

.downloads .size {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

/* The download for the visitor's own computer. */
.downloads .yours a {
  border-color: var(--green-light);
  background: var(--green-wash);
}

.downloads .tag {
  margin-left: 4px;
  font-size: 0.7rem;
  padding: 0 8px;
}

.download-hint {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.downloads .size {
  white-space: nowrap;
}
