/* BEGIN LICENSED SOURCE CODE */
/*
 * MIT License
 *
 * Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */

@media (prefers-color-scheme: dark) {
  :root, [data-theme="dark"] {
    /*dark */
    color-scheme: dark;
    --fgColor-accent: #4493f8;
    --bgColor-attention-muted: #bb800926;
    --bgColor-default: #0d1117;
    --bgColor-muted: #151b23;
    --bgColor-neutral-muted: #656c7633;
    --borderColor-accent-emphasis: #1f6feb;
    --borderColor-attention-emphasis: #9e6a03;
    --borderColor-danger-emphasis: #da3633;
    --borderColor-default: #3d444d;
    --borderColor-done-emphasis: #8957e5;
    --borderColor-success-emphasis: #238636;
    --color-prettylights-syntax-brackethighlighter-angle: #9198a1;
    --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
    --color-prettylights-syntax-carriage-return-bg: #b62324;
    --color-prettylights-syntax-carriage-return-text: #f0f6fc;
    --color-prettylights-syntax-comment: #9198a1;
    --color-prettylights-syntax-constant: #79c0ff;
    --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
    --color-prettylights-syntax-entity: #d2a8ff;
    --color-prettylights-syntax-entity-tag: #7ee787;
    --color-prettylights-syntax-keyword: #ff7b72;
    --color-prettylights-syntax-markup-bold: #f0f6fc;
    --color-prettylights-syntax-markup-changed-bg: #5a1e02;
    --color-prettylights-syntax-markup-changed-text: #ffdfb6;
    --color-prettylights-syntax-markup-deleted-bg: #67060c;
    --color-prettylights-syntax-markup-deleted-text: #ffdcd7;
    --color-prettylights-syntax-markup-heading: #1f6feb;
    --color-prettylights-syntax-markup-ignored-bg: #1158c7;
    --color-prettylights-syntax-markup-ignored-text: #f0f6fc;
    --color-prettylights-syntax-markup-inserted-bg: #033a16;
    --color-prettylights-syntax-markup-inserted-text: #aff5b4;
    --color-prettylights-syntax-markup-italic: #f0f6fc;
    --color-prettylights-syntax-markup-list: #f2cc60;
    --color-prettylights-syntax-meta-diff-range: #d2a8ff;
    --color-prettylights-syntax-storage-modifier-import: #f0f6fc;
    --color-prettylights-syntax-string: #a5d6ff;
    --color-prettylights-syntax-string-regexp: #7ee787;
    --color-prettylights-syntax-sublimelinter-gutter-mark: #3d444d;
    --color-prettylights-syntax-variable: #ffa657;
    --fgColor-attention: #d29922;
    --fgColor-danger: #f85149;
    --fgColor-default: #f0f6fc;
    --fgColor-done: #ab7df8;
    --fgColor-muted: #9198a1;
    --fgColor-success: #3fb950;
    --borderColor-muted: #3d444db3;
    --color-prettylights-syntax-invalid-illegal-bg: var(--bgColor-danger-muted);
    --color-prettylights-syntax-invalid-illegal-text: var(--fgColor-danger);
    --focus-outlineColor: var(--borderColor-accent-emphasis);
    --borderColor-neutral-muted: var(--borderColor-muted);
  }
}
@media (prefers-color-scheme: light) {
  :root, [data-theme="light"] {
    /*light */
    color-scheme: light;
    --fgColor-danger: #d1242f;
    --bgColor-attention-muted: #fff8c5;
    --bgColor-muted: #f6f8fa;
    --bgColor-neutral-muted: #818b981f;
    --borderColor-accent-emphasis: #0969da;
    --borderColor-attention-emphasis: #9a6700;
    --borderColor-danger-emphasis: #cf222e;
    --borderColor-default: #d1d9e0;
    --borderColor-done-emphasis: #8250df;
    --borderColor-success-emphasis: #1a7f37;
    --color-prettylights-syntax-brackethighlighter-angle: #59636e;
    --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
    --color-prettylights-syntax-carriage-return-bg: #cf222e;
    --color-prettylights-syntax-carriage-return-text: #f6f8fa;
    --color-prettylights-syntax-comment: #59636e;
    --color-prettylights-syntax-constant: #0550ae;
    --color-prettylights-syntax-constant-other-reference-link: #0a3069;
    --color-prettylights-syntax-entity: #6639ba;
    --color-prettylights-syntax-entity-tag: #0550ae;
    --color-prettylights-syntax-invalid-illegal-text: var(--fgColor-danger);
    --color-prettylights-syntax-keyword: #cf222e;
    --color-prettylights-syntax-markup-changed-bg: #ffd8b5;
    --color-prettylights-syntax-markup-changed-text: #953800;
    --color-prettylights-syntax-markup-deleted-bg: #ffebe9;
    --color-prettylights-syntax-markup-deleted-text: #82071e;
    --color-prettylights-syntax-markup-heading: #0550ae;
    --color-prettylights-syntax-markup-ignored-bg: #0550ae;
    --color-prettylights-syntax-markup-ignored-text: #d1d9e0;
    --color-prettylights-syntax-markup-inserted-bg: #dafbe1;
    --color-prettylights-syntax-markup-inserted-text: #116329;
    --color-prettylights-syntax-markup-list: #3b2300;
    --color-prettylights-syntax-meta-diff-range: #8250df;
    --color-prettylights-syntax-string: #0a3069;
    --color-prettylights-syntax-string-regexp: #116329;
    --color-prettylights-syntax-sublimelinter-gutter-mark: #818b98;
    --color-prettylights-syntax-variable: #953800;
    --fgColor-accent: #0969da;
    --fgColor-attention: #9a6700;
    --fgColor-done: #8250df;
    --fgColor-muted: #59636e;
    --fgColor-success: #1a7f37;
    --bgColor-default: #ffffff;
    --borderColor-muted: #d1d9e0b3;
    --color-prettylights-syntax-invalid-illegal-bg: var(--bgColor-danger-muted);
    --color-prettylights-syntax-markup-bold: #1f2328;
    --color-prettylights-syntax-markup-italic: #1f2328;
    --color-prettylights-syntax-storage-modifier-import: #1f2328;
    --fgColor-default: #1f2328;
    --focus-outlineColor: var(--borderColor-accent-emphasis);
    --borderColor-neutral-muted: var(--borderColor-muted);
  }
}
/* END LICENSED SOURCE CODE */

:root {
  --bg: var(--bgColor-default);
  --fg: var(--fgColor-default);
  border-color: var(--borderColor-default);
}

* a {
  text-decoration-line: none;
}

td, th {
  border: none!important;
}

main {
  margin-top: 1.25rem;
}

main table {
  table-layout: auto;
  max-width: 60rem;
}

main td {
  padding: 0 1.5rem 1.5rem 0;
  font-size: 0.85em;
  text-wrap: nowrap;
}

main td:nth-child(1) {
  font-weight: bold;
  font-size: 1em;
}

main td:nth-child(3) {
  padding: 0 0 1.5rem 0;
  text-wrap: initial;
  overflow: hidden;
  text-overflow: ellipsis;
}

body {
  font-family: system-ui,Segoe UI,Roboto,Arial;
  font-size: 1.2rem;
  line-height: 1.5;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 2rem;
}

.nav {
  display: flex;
  align-items: center;
  /*justify-content:space-between;*/
  padding: 0.5rem 0 0.5rem 0;
}

.nav-banner {
  color: inherit;
  margin-right: 1.5rem;
  text-decoration-line: none;
  font-weight: 600;
  font-size: 1.5em;
}

.nav-tab {
  color: inherit;
  font-weight: 600;
  margin: 0 1.5rem 0 1.5rem;
}

.tags td:nth-child(2) {
  text-align: right;
}

.article, .tags {
  max-width: 48rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

.article-header {
  display: flex;
  justify-content: space-between;
  margin: 0 0 1.25rem;
}

.article-title {
  color: #666;
  font-size: .9rem;
}

.article-meta {
  color: #666;
  font-size: .9rem;
}

.article-body, .tags-body {
  font-size: 16px;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  align-items: center;
  min-width: 100%;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  white-space: preserve wrap;
  font-size: 1.1em;
}

.article-tags > a {
  font-weight: 500;
  text-decoration: none;
  text-wrap: nowrap;
}

.prev, .next {
  display: flex;
  align-items: center;
  gap: 0.2em;
}

.prev {
  margin-right: auto;
}

.next {
  margin-left: auto;
}

.preserve-whitespace {
  display: inline-flex;
  justify-content: space-between;
  flex: 1 1 0%;
  white-space: preserve-spaces;
}

.arrow-text {
  color: var(--bg);
}

.arrow-text::selection {
  color: var(--bg);
}

.larrow {
  align-items: center;
  position: relative;
  width: 0.25rem;
  background-color: currentColor;
  flex-shrink: 0;
}
.larrow::before {
  content: "";
  position: absolute;
  left: 0;            /* Positions head at the left start of the line */
  top: 50%;
  width: 6px;         /* Size of the arrowhead sides */
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg); /* Rotates square border to point right */
  transform-origin: center;
}

.rarrow {
  align-items: center;
  position: relative;
  width: 0.25rem;
  background-color: currentColor;
  flex-shrink: 0;
}

.rarrow::after {
  content: "";
  position: absolute;
  right: 0;            /* Positions head at the right end of the line */
  top: 50%;
  width: 6px;         /* Size of the arrowhead sides */
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(-45deg); /* Rotates square border to point right */
  transform-origin: center;
}

footer {
  display: flex;
  align-items: center;
}

.footer-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-tab, .footer-tab > * {
  color:inherit;
  font-weight: 600;
}

main div.article-body span not(.arrow-text) {
  position: relative;
  font-size: inherit;
}

main div.article-body span input {
  position: absolute;
  left: -9999px;
}

main div.article-body span label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
}

main div.article-body br { display: none; }

main div.article-body span form {
  display: inline-block;
  position: relative;
  pointer-events: none;
}

main div.article-body span span::after { content: "\49\20\6D\69\73\73\20\4E\65\61\72\2E" }

main div.article-body span button { all: unset; white-space: pre; }

/* disable all by default so clicks fall through */
main div.article-body span label { pointer-events:none; }
main div.article-body span span { pointer-events:none; }

/* enable exactly one label depending on checked radio */
#_1 ~ .__2 { pointer-events: auto; }
#_2:checked ~ .__3, #_3:checked ~ .__4, #_4:checked ~ .__5,
#_5:checked ~ .__6, #_6:checked ~ .__7, #_7:checked ~ .__8, #_8:checked ~ .__9,
#_9:checked ~ .__10, #_10:checked ~ .__11, #_11:checked ~ .__12,
#_12:checked ~ .__13, #_13:checked ~ .__14, #_14:checked ~ .__15,
#_15:checked ~ .__16, #_16:checked ~ .__17, #_17:checked ~ .__18,
#_18:checked ~ .__19, #_19:checked ~ .__20, #_20:checked ~ .__21,
#_21:checked ~ .__22, #_22:checked ~ .__23, #_23:checked ~ .__1 {
  pointer-events:auto;
}

#_23:checked ~ span {
  color: var(--fg);
}

