/* Money Manager additions to the unmodified openGym website stylesheet. */
.skip { position: absolute; z-index: 120; left: 12px; top: 12px; padding: 8px 14px; background: var(--acc); color: var(--acc-ink); transform: translateY(-180%); }
.skip:focus { transform: none; }
.money-mark { display: inline-flex; height: 21px; width: 23px; flex: none; align-items: end; gap: 2px; padding: 3px; margin-right: 6px; border: 1px solid var(--acc); border-radius: 6px; }
.money-mark i { width: 3px; height: 5px; background: var(--acc); border-radius: 1px; }
.money-mark i:nth-child(2) { height: 9px; }
.money-mark i:nth-child(3) { height: 12px; }
.language-switch { display: flex; align-items: center; gap: 2px; }
.language-switch a { display: grid; place-items: center; color: var(--fg-2); min-width: 29px; min-height: 36px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.language-switch a:hover, .language-switch a[aria-current=true] { color: var(--acc); background: var(--acc-soft); text-decoration: none; }
.hero h1 { max-width: 17ch; }
.contents-mark { display: block; width: 13px; height: 10px; border-block: 1.5px solid currentColor; position: relative; }
.contents-mark::after { content: ""; height: 1.5px; background: currentColor; position: absolute; inset: 3px 0 auto; }
.money-faq { margin-top: 30px; border-top: 1px solid var(--hair-soft); max-width: 780px; }
.money-faq details { border-bottom: 1px solid var(--hair-soft); }
.money-faq summary { cursor: pointer; color: var(--fg); padding: 15px 0; font-weight: 600; }
.money-faq summary::marker { color: var(--acc); }
.money-faq p { color: var(--fg-2); padding: 0 0 17px 17px; }
.foot .foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.self-host-cards { margin-top: 40px; }
.self-host-cards .card { min-width: 0; }
.clone-command { position: relative; margin-bottom: 20px; border: 1px solid var(--hair); border-radius: var(--r-s); background: var(--bg); }
.clone-command pre { padding: 14px; margin: 0; border: 0; border-radius: inherit; background: transparent; overflow-x: auto; }
.clone-command .copy-command { display: block; min-height: 40px; padding: 5px 14px; border-top: 1px solid var(--hair); width: 100%; color: var(--acc); text-align: start; font-size: 13px; font-weight: 600; cursor: pointer; }
.clone-command .copy-command:hover { color: var(--fg); }
.screenshot-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.screenshot-tools .rail-hint { margin: 0; }
.screenshot-controls:not([hidden]) { display: flex; gap: 8px; flex: none; }
.screenshot-tools + .bleed { margin-top: 12px; }
#screenshot-rail figure { width: clamp(208px, 67vw, 292px); }
.screenshot-link { display: block; border-radius: 27px; padding-top: 13.6cqw; background: #000; cursor: zoom-in; }
.screenshot-link img { display: block; width: 100%; height: auto; border-radius: 0 0 27px 27px; }
.screenshot-link:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.screenshot-viewer {
  width: min(96vw, 590px); max-width: none; max-height: 94dvh; margin: auto; padding: 0;
  overflow: auto; color: var(--fg); background: var(--bg); border: 1px solid var(--hair); border-radius: 18px;
}
.screenshot-viewer::backdrop { background: rgb(0 0 0 / 82%); }
.screenshot-viewer-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--hair-soft); }
.screenshot-viewer-bar h3 { margin: 0 auto 0 0; font-size: 15px; line-height: 1.25; }
.screenshot-viewer-bar a { font-size: 13px; color: var(--acc); text-align: end; }
.screenshot-viewer img { display: block; width: auto; height: auto; max-width: 100%; max-height: 83dvh; margin: 0 auto; object-fit: contain; }
.screenshot-controls button, .screenshot-viewer-bar button {
  width: 44px; height: 44px; border: 1px solid var(--hair); background: var(--bg); color: var(--fg);
  padding: 0; border-radius: 50%; font: inherit; font-size: 20px; cursor: pointer;
}
.screenshot-controls button:enabled:hover, .screenshot-viewer-bar button:hover { color: var(--acc); border-color: var(--acc); }
.screenshot-controls button:disabled { opacity: .35; cursor: default; }
body:has(.screenshot-viewer[open]) { overflow: hidden; }
@media (max-width: 640px) {
  .nav-in { gap: 7px; }
  .language-switch a { min-width: 25px; padding-inline: 3px; }
  .nav-access .cta { padding-inline: 10px; }
}
@media (max-width: 400px) {
  .nav-access { display: none; }
  .brand { white-space: nowrap; }
}
