/*
 * The f1.swofty.net look: colour tokens and content styles adapted from the Geode docs theme
 * (flash-template/themes.css, default.css and content.css), https://github.com/geode-sdk/docs
 * Copyright (c) 2022 Geode SDK developers. MIT licence. The peach theme is the default.
 * Fonts: Open Sans, Varela Round and Source Code Pro, SIL Open Font License 1.1 (fonts/*-OFL.txt).
 */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/open-sans-v44-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/open-sans-v44-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Varela Round";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/varela-round-v21-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Varela Round";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/varela-round-v21-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(fonts/source-code-pro-v32-latin.woff2) format("woff2");
}

/* Themes */

:root,
.flash-theme-peach {
  --flash-gray: #372733;
  --flash-gray-dark: #342030;
  --flash-gray-darker: #2a1a28;
  --flash-gray-darkest: #221020;
  --flash-white: #eee;
  --flash-light: #bab;
  --flash-less-light: #a89;
  --flash-less-dark: #9a6a8a;
  --flash-dark: #6a4a5a;
  --flash-darker: #5a3a4a;
  --flash-blue: #6a80d8;
  --flash-cyan-light: #7adff8;
  --flash-cyan: #6ac2d8;
  --flash-cyan-dark: #427b8a;
  --flash-cyan-darker: #294e57;
  --flash-green: #9ff4b7;
  --flash-purple: #9e6ad4;
  --flash-pink: #f49fe9;
  --flash-skin: #ec897c;
  --flash-dark-skin: #58342f;
  --flash-red: #e23485;
  --flash-yellow: #f5dd9f;
  --flash-orange: #f5c99f;
  --flash-dark-orange: #5c4c3e;
  --flash-border: rgba(255, 225, 155, 0.2);
  --flash-hover: rgba(255, 255, 255, 0.1);
  --flash-hover-light: rgba(255, 255, 255, 0.3);
  --flash-shade: rgba(0, 0, 0, 0.25);
  --flash-shadow: rgba(0, 0, 0, 0.2);

  --flash-body-bg: var(--flash-gray);
  --flash-h1-color: var(--flash-yellow);
  --flash-tab-selected-bg: var(--flash-yellow);
  --flash-tab-selected-color: var(--flash-dark);
  --flash-highlight: var(--flash-yellow);

  --font-base: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --font-round: "Varela Round", "Open Sans", ui-sans-serif, sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, monospace;
}

.flash-theme-dark {
  --flash-gray: #272727;
  --flash-gray-dark: #222;
  --flash-gray-darker: #1a1a1a;
  --flash-gray-darkest: #111;
  --flash-white: #eee;
  --flash-light: #aaa;
  --flash-less-light: #888;
  --flash-less-dark: #6a6a6a;
  --flash-dark: #4a4a4a;
  --flash-darker: #3a3a3a;
  --flash-border: rgba(255, 255, 255, 0.2);

  --flash-body-bg: var(--flash-gray);
  --flash-h1-color: var(--flash-white);
  --flash-tab-selected-bg: var(--flash-light);
  --flash-tab-selected-color: var(--flash-dark);
  --flash-highlight: var(--flash-cyan);
}

.flash-theme-ocean {
  --flash-gray: #272737;
  --flash-gray-dark: #223;
  --flash-gray-darker: #1a1a2a;
  --flash-gray-darkest: #112;
  --flash-white: #eee;
  --flash-light: #aac;
  --flash-less-light: #88a;
  --flash-less-dark: #6a6a8a;
  --flash-dark: #4a4a6a;
  --flash-darker: #3a3a5a;
  --flash-border: rgba(155, 155, 255, 0.2);

  --flash-body-bg: var(--flash-gray);
  --flash-h1-color: var(--flash-white);
  --flash-tab-selected-bg: var(--flash-blue);
  --flash-tab-selected-color: var(--flash-white);
  --flash-highlight: var(--flash-cyan);
}

/* Page */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  background-color: var(--flash-body-bg);
}

body {
  min-height: 100vh;
  color: var(--flash-white);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.5;
  tab-size: 4;
  overflow-wrap: break-word;
}

button,
input,
textarea {
  font: inherit;
}

.icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background: var(--flash-gray-darkest);
  color: var(--flash-white);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Header */

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.5rem;
  background-color: var(--flash-gray-dark);
  border-bottom: 0.1rem solid var(--flash-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--flash-white);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}

.brand-dot {
  color: var(--flash-less-light);
}

.brand:focus-visible,
.pill:focus-visible,
.theme > button:focus-visible {
  outline: 0.15rem solid var(--flash-highlight);
  outline-offset: 0.15rem;
}

.site-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.site-links {
  display: flex;
  gap: 0.5rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 0.25rem 0.5rem var(--flash-shadow);
  background-color: var(--flash-dark);
  color: var(--flash-light);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.pill:hover {
  background-color: var(--flash-less-dark);
  color: var(--flash-white);
}

.pill .icon,
.theme .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.theme {
  display: flex;
  border-radius: 9999px;
  box-shadow: 0 0.25rem 0.5rem var(--flash-shadow);
}

.theme > button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  border: none;
  background-color: var(--flash-dark);
  color: var(--flash-light);
}

.theme > button:first-child {
  border-radius: 9999px 0 0 9999px;
}

.theme > button:last-child {
  border-radius: 0 9999px 9999px 0;
}

.theme > button:hover:not(.selected) {
  background-color: var(--flash-less-dark);
  cursor: pointer;
}

.theme > button.selected {
  background-color: var(--flash-tab-selected-bg);
  color: var(--flash-tab-selected-color);
}

@media (max-width: 639px) {
  .site-head {
    padding: 0.75rem 1rem;
  }

  .pill {
    padding: 0.35rem 0.75rem;
  }

  .pill > span {
    display: none;
  }

  .theme > button {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Content */

main {
  width: 100%;
  max-width: 59rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

@media (max-width: 639px) {
  main {
    padding: 1rem 1rem 3rem;
  }
}

main p,
main ol,
main ul {
  line-height: 1.75em;
}

main p {
  margin: 1rem 0;
}

main strong {
  color: var(--flash-skin);
}

main a {
  color: var(--flash-cyan-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

main a:hover {
  color: var(--flash-white);
}

main h1,
main h2,
main h3 {
  font-family: var(--font-round);
  font-weight: bold;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

main h1 {
  margin: 0.5em 0 0.25rem;
  color: var(--flash-h1-color);
  font-size: 3rem;
}

main h1::after,
main h2::after {
  content: " ";
  display: block;
  margin-top: 0.5rem;
  border: 0.1rem solid var(--flash-border);
}

main h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.75rem;
}

main h2::after {
  opacity: 50%;
}

main h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

@media (max-width: 799px) {
  main h1 {
    font-size: 2.4rem;
  }
}

main code {
  display: inline-block;
  max-width: 100%;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  background-color: var(--flash-gray-darkest);
  color: var(--flash-light);
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

main a code {
  color: inherit;
}

.custom-block {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 0.5rem solid var(--flash-dark);
  border-radius: 0 0.5rem 0.5rem 0;
  background-color: var(--flash-darker);
  color: var(--flash-white);
}

.custom-block p {
  margin: 0.25rem 0;
  line-height: 1.75em;
}

.custom-block.warning,
.custom-block.danger {
  border-left-color: var(--flash-skin);
  background-color: var(--flash-dark-skin);
}

.custom-block.warning strong {
  color: var(--flash-orange);
}

.custom-block.info {
  border-left-color: var(--flash-cyan);
}

.custom-block.tip {
  border-left-color: var(--flash-green);
}

.table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.4rem 0.75rem;
  border: 0.1rem solid var(--flash-border);
  line-height: 1.6;
  text-align: left;
  vertical-align: middle;
}

.table-wrap th {
  background-color: var(--flash-gray-darker);
  color: var(--flash-white);
  font-family: var(--font-round);
  font-weight: bold;
}

.table-wrap tr:nth-child(2n) {
  background-color: var(--flash-shade);
}

.table-wrap :is(th, td).short {
  white-space: nowrap;
}

.table-wrap td code {
  display: inline;
}

/* Publishing */

.pub {
  margin-top: 1.5rem;
}

.pub .pub-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pub .pub-quiet {
  color: var(--flash-less-light);
}

.pub .pub-strong,
.pub .pub-role {
  color: var(--flash-skin);
  font-weight: 700;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 0.25rem 0.5rem var(--flash-shadow);
  background-color: var(--flash-dark);
  color: var(--flash-light);
  font-family: var(--font-base);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}

main a.pub-btn {
  color: var(--flash-light);
  text-decoration: none;
}

.pub-btn:hover:not(:disabled),
main a.pub-btn:hover {
  background-color: var(--flash-less-dark);
  color: var(--flash-white);
}

.pub-btn--primary,
main a.pub-btn--primary {
  background-color: var(--flash-tab-selected-bg);
  color: var(--flash-tab-selected-color);
}

.pub-btn--primary:hover:not(:disabled),
main a.pub-btn--primary:hover {
  background-color: var(--flash-white);
  color: var(--flash-gray-darkest);
}

.pub-btn--big {
  padding: 0.6rem 1.4rem;
  font-size: 1.05rem;
}

.pub-btn--small {
  padding: 0.1rem 0.8rem;
  box-shadow: none;
  font-size: 0.85rem;
}

.pub-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.pub-btn:focus-visible,
.pub .pub-textarea:focus-visible,
.pub .pub-drop:focus-within,
.pub .pub-desc > summary:focus-visible {
  outline: 0.15rem solid var(--flash-highlight);
  outline-offset: 0.15rem;
}

.pub .pub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.pub .pub-card {
  margin: 1.25rem 0;
  padding: 1.25rem 1.5rem;
  border: 0.1rem solid var(--flash-border);
  border-radius: 0.5rem;
  background-color: var(--flash-gray-dark);
}

.pub .pub-block {
  margin: 1.25rem 0;
}

.pub .pub-block > p.pub-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pub .pub-block > p.pub-line > .icon {
  margin-top: 0.3rem;
}

.pub .custom-block.danger .icon {
  color: var(--flash-skin);
}

.pub .custom-block.tip .icon {
  color: var(--flash-green);
}

.pub .custom-block.info .icon {
  color: var(--flash-cyan);
}

.pub .pub-tag {
  display: inline-block;
  padding: 0 0.6rem;
  border-radius: 0.25rem;
  background-color: var(--flash-less-dark);
  color: var(--flash-white);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.pub .pub-tag--good {
  background-color: var(--flash-cyan-darker);
  color: var(--flash-green);
}

.pub .pub-tag--warn {
  background-color: var(--flash-dark-orange);
  color: var(--flash-orange);
}

.pub .pub-tag--native,
.pub .pub-tag--bad {
  background-color: var(--flash-dark-skin);
  color: var(--flash-skin);
}

/* Signed out */

.pub .pub-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub .pub-steps > li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
}

.pub .pub-step-n {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9999px;
  background-color: var(--flash-dark);
  color: var(--flash-highlight);
  font-family: var(--font-round);
  font-weight: 700;
}

.pub .pub-intro .pub-actions {
  margin-top: 1.5rem;
}

.pub .pub-intro .pub-actions .pub-quiet {
  font-size: 0.9rem;
}

/* Account */

.pub .pub-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
}

.pub .pub-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--flash-dark);
  object-fit: cover;
}

.pub .pub-avatar--blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--flash-highlight);
  font-family: var(--font-round);
  font-size: 1.35rem;
  font-weight: 700;
}

.pub .pub-account-who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 8rem;
  line-height: 1.4;
}

.pub .pub-account-name {
  color: var(--flash-white);
  font-family: var(--font-round);
  font-size: 1.15rem;
  font-weight: 700;
}

.pub .pub-account-who .pub-quiet {
  font-size: 0.9rem;
}

/* Creator profile */

.pub .pub-profile-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.pub .pub-profile-bar .pub-pane-label {
  margin: 0 auto 0 0;
}

.pub .pub-author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border: 0.1rem dashed var(--flash-dark);
  border-radius: 0.5rem;
  background-color: var(--flash-gray-darker);
}

.pub .pub-author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  background-color: var(--flash-dark);
  object-fit: cover;
}

.pub .pub-author-avatar--blank {
  font-family: var(--font-round);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.pub .pub-author-main {
  min-width: 0;
}

.pub .pub-author-name {
  margin: 0.15rem 0 0;
  color: var(--flash-white);
  font-size: 1.5rem;
}

.pub .pub-author-joined {
  margin: 0.15rem 0 0;
  color: var(--flash-less-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pub .pub-author-bio {
  margin: 0.65rem 0 0;
  color: var(--flash-light);
  line-height: 1.6;
  white-space: pre-line;
}

.pub .pub-author-empty {
  color: var(--flash-less-light);
  font-size: 0.9rem;
  font-style: italic;
}

.pub .pub-author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.pub .pub-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.15rem 0.75rem 0.15rem 0.6rem;
  border-radius: 9999px;
  background-color: var(--flash-dark);
  color: var(--flash-light);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.pub .pub-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pub .pub-chip .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--flash-highlight);
}

main a.pub-chip:hover {
  background-color: var(--flash-less-dark);
  color: var(--flash-white);
}

main a.pub-chip:focus-visible {
  outline: 0.15rem solid var(--flash-highlight);
  outline-offset: 0.15rem;
}

.pub .pub-chip--off {
  border: 0.1rem dashed var(--flash-skin);
  background-color: transparent;
  color: var(--flash-less-light);
}

.pub .pub-author-totals {
  display: flex;
  gap: 0.6rem;
  margin: 0;
}

.pub .pub-author-totals > div {
  min-width: 5.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--flash-shade);
}

.pub .pub-author-totals dt {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--flash-less-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pub .pub-author-totals dt .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.pub .pub-author-totals dd {
  margin: 0.1rem 0 0;
  color: var(--flash-white);
  font-family: var(--font-round);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

p.pub-author-totals {
  max-width: 13rem;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 799px) {
  .pub .pub-author {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pub .pub-author-totals {
    grid-column: 1 / -1;
  }

  .pub .pub-author-totals > div {
    flex: 1;
    min-width: 0;
  }

  p.pub-author-totals {
    max-width: none;
  }
}

@media (max-width: 559px) {
  .pub .pub-author {
    gap: 0.85rem 0.9rem;
    padding: 0.9rem;
  }

  .pub .pub-author-avatar {
    width: 3.5rem;
    height: 3.5rem;
  }

  .pub .pub-author-avatar--blank {
    font-size: 1.6rem;
  }

  .pub .pub-author-name {
    font-size: 1.3rem;
  }

  .pub .pub-author-totals {
    gap: 0.4rem;
  }

  .pub .pub-author-totals > div {
    padding: 0.45rem 0.6rem;
  }

  .pub .pub-author-totals dt {
    font-size: 0.66rem;
    letter-spacing: 0.02em;
  }

  .pub .pub-author-totals dt .icon {
    display: none;
  }

  .pub .pub-author-totals dd {
    font-size: 1.1rem;
  }
}

.pub .pub-profile-form {
  margin-top: 1.25rem;
  padding-top: 0.25rem;
  border-top: 0.1rem solid var(--flash-border);
}

.pub .pub-field-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-top: 1.25rem;
}

.pub .pub-field-head .pub-label {
  margin-top: 0;
}

.pub .pub-field-count {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.pub .pub-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--flash-cyan-light);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.pub .pub-text-btn:hover {
  color: var(--flash-white);
}

.pub .pub-text-btn .icon {
  width: 1rem;
  height: 1rem;
}

.pub .pub-text-btn:focus-visible {
  outline: 0.15rem solid var(--flash-highlight);
  outline-offset: 0.15rem;
  border-radius: 0.15rem;
}

.pub .pub-input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.75rem;
  border: 0.1rem solid transparent;
  border-radius: 0.25rem;
  background-color: var(--flash-gray-darkest);
  color: var(--flash-white);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pub .pub-input::placeholder {
  color: var(--flash-less-light);
  opacity: 0.8;
}

.pub .pub-input:focus {
  border-color: var(--flash-dark);
}

.pub .pub-input:focus-visible {
  outline: 0.15rem solid var(--flash-highlight);
  outline-offset: 0.15rem;
}

.pub .pub-textarea.pub-textarea--plain {
  font-family: var(--font-base);
  font-size: 0.95rem;
}

.pub .pub-input.invalid,
.pub .pub-textarea.invalid {
  border-color: var(--flash-skin);
}

.pub .pub-field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
  color: var(--flash-skin);
  font-size: 0.88rem;
  line-height: 1.5;
}

.pub .pub-field-error .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
}

.pub .pub-field-foot {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pub .pub-counter {
  margin: 0.35rem 0 0 auto;
  color: var(--flash-less-light);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pub .pub-counter.near {
  color: var(--flash-orange);
}

.pub .pub-counter.over {
  color: var(--flash-skin);
  font-weight: 700;
}

.pub .pub-link-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.pub .pub-link-row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
}

.pub .pub-link-row .pub-link-error {
  grid-column: 1 / -1;
  margin: 0;
}

.pub .pub-btn--icon {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 559px) {
  .pub .pub-link-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.6rem;
    border-radius: 0.5rem;
    background-color: var(--flash-shade);
  }

  .pub .pub-link-url {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.pub .pub-unsaved {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  border-left: 0.35rem solid var(--flash-orange);
  border-radius: 0 0.5rem 0.5rem 0;
  background-color: var(--flash-gray-darkest);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.45);
  color: var(--flash-white);
  font-size: 0.95rem;
  transform: translateX(-50%);
}

.pub .pub-unsaved > .icon {
  color: var(--flash-orange);
}

.pub .pub-unsaved-actions {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 559px) {
  .pub .pub-unsaved {
    right: 1rem;
    left: 1rem;
    width: auto;
    transform: none;
  }

  .pub .pub-unsaved > span:not(.pub-unsaved-actions) {
    flex: 1 1 12rem;
  }
}

/* Your addons */

.pub .pub-addon-head,
.pub .pub-preview-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pub .pub-addon-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  background-color: var(--flash-gray-darkest);
  object-fit: cover;
}

.pub .pub-addon-icon--blank .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--flash-less-dark);
}

.pub .pub-addon-title,
.pub .pub-preview-head > div {
  flex: 1 1 12rem;
  min-width: 0;
}

.pub .pub-addon-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0;
  margin: 0.2rem 0 0;
  color: var(--flash-less-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pub .pub-addon-meta > :not(:first-child)::before {
  content: "\00b7";
  margin: 0 0.5rem;
  color: var(--flash-less-dark);
}

.pub .pub-addon-meta code {
  font-size: 0.85rem;
}

.pub .pub-addon-summary {
  margin: 0.85rem 0 0;
  color: var(--flash-light);
}

/* Stats */

.pub .pub-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 7.5rem)) minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.pub .pub-stat,
.pub .pub-trend {
  min-width: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 0.5rem;
  background-color: var(--flash-shade);
}

.pub .pub-stat-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--flash-less-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pub .pub-stat-label .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.pub .pub-stat-value {
  display: block;
  margin-top: 0.15rem;
  color: var(--flash-white);
  font-family: var(--font-round);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.pub .pub-trend-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--flash-less-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pub .pub-trend-read {
  color: var(--flash-white);
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pub .pub-trend svg {
  display: block;
  width: 100%;
  height: 3.25rem;
  margin-top: 0.35rem;
  overflow: visible;
}

.pub .pub-trend .bar {
  fill: var(--flash-highlight);
}

.pub .pub-trend .bar.on {
  fill: var(--flash-white);
}

.pub .pub-trend .zero {
  fill: var(--flash-less-dark);
}

.pub .pub-trend .zero.on {
  fill: var(--flash-white);
}

.pub .pub-trend .hit {
  fill: transparent;
  cursor: default;
}

.pub .pub-trend-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
  color: var(--flash-less-light);
  font-size: 0.75rem;
}

@media (max-width: 799px) {
  .pub .pub-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pub .pub-trend {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .pub .pub-stat {
    padding: 0.5rem 0.6rem;
  }

  .pub .pub-stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .pub .pub-stat-value {
    font-size: 1.25rem;
  }
}

/* Versions */

.pub .pub-versions {
  position: relative;
  margin: 1.25rem 0 0;
}

.pub .pub-versions td .pub-tag {
  margin-left: 0.5rem;
}

.pub .pub-versions td > .pub-tag:first-child {
  margin-left: 0;
}

.pub .pub-versions tr.yanked td:not(:last-child) {
  color: var(--flash-less-light);
}

.pub .pub-versions tr.yanked td:first-child code {
  text-decoration: line-through;
}

.pub .pub-versions tr:nth-child(2n) {
  background-color: transparent;
}

.pub .pub-versions tr.odd {
  background-color: var(--flash-shade);
}

.pub .pub-versions .pub-changelog {
  display: -webkit-box;
  min-width: 10rem;
  max-width: 22rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: pre-line;
}

.pub .pub-versions tr.pub-note-row td {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-top-style: dashed;
}

.pub .pub-review-note {
  position: sticky;
  left: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: min(48rem, calc(100vw - 6rem));
  color: var(--flash-light);
  line-height: 1.55;
  white-space: normal;
}

.pub .pub-review-note .icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  color: var(--flash-skin);
}

.pub .pub-review-head {
  color: var(--flash-white);
  font-weight: 600;
}

.pub .pub-review-by {
  color: var(--flash-less-light);
}

/* Description */

.pub .pub-desc {
  margin-top: 0.6rem;
}

.pub .pub-desc > summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 -0.5rem;
  padding: 0.6rem 0.5rem 0.2rem;
  border-radius: 0.25rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.pub .pub-desc > summary::-webkit-details-marker {
  display: none;
}

.pub .pub-desc > summary:hover .pub-desc-title {
  color: var(--flash-highlight);
}

.pub .pub-chevron {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.6;
  transition: transform 0.15s;
}

.pub .pub-desc[open] > summary .pub-chevron {
  transform: rotate(90deg);
}

.pub .pub-desc-title {
  flex-shrink: 0;
  color: var(--flash-white);
  font-family: var(--font-round);
  font-weight: 700;
}

.pub .pub-desc-peek {
  min-width: 0;
  overflow: hidden;
  color: var(--flash-less-light);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pub .pub-desc[open] > summary .pub-desc-peek {
  display: none;
}

.pub .pub-desc > .pub-hint {
  margin-top: 0.25rem;
}

.pub .pub-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.pub .pub-editor .pub-textarea {
  height: 100%;
  min-height: 14rem;
}

.pub .pub-pane-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--flash-less-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pub .pub-editor-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pub .pub-md {
  flex: 1;
  min-height: 14rem;
  max-height: 28rem;
  overflow: auto;
  padding: 0.6rem 0.9rem;
  border: 0.1rem dashed var(--flash-dark);
  border-radius: 0.25rem;
  background-color: var(--flash-gray-darker);
  color: var(--flash-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 799px) {
  .pub .pub-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .pub .pub-editor .pub-textarea,
  .pub .pub-md {
    min-height: 9rem;
  }
}

.pub .pub-md > :first-child {
  margin-top: 0;
}

.pub .pub-md > :last-child {
  margin-bottom: 0;
}

.pub .pub-md p {
  margin: 0 0 0.6rem;
  line-height: 1.6;
}

.pub .pub-md :is(h4, h5, h6) {
  margin: 0.9rem 0 0.4rem;
  color: var(--flash-white);
  font-family: var(--font-round);
  line-height: 1.25;
}

.pub .pub-md h4 {
  font-size: 1.3rem;
}

.pub .pub-md h5 {
  font-size: 1.12rem;
}

.pub .pub-md h6 {
  font-size: 1rem;
}

.pub .pub-md .pub-md-li {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.25rem;
}

.pub .pub-md .pub-md-mark {
  flex-shrink: 0;
  min-width: 0.9rem;
  color: var(--flash-highlight);
  text-align: right;
}

.pub .pub-md blockquote {
  margin: 0 0 0.6rem;
  padding: 0.25rem 0.85rem;
  border-left: 0.35rem solid var(--flash-dark);
  border-radius: 0 0.35rem 0.35rem 0;
  background-color: var(--flash-darker);
}

.pub .pub-md pre {
  margin: 0 0 0.6rem;
  padding: 0.6rem 0.75rem;
  overflow-x: auto;
  border-radius: 0.35rem;
  background-color: var(--flash-gray-darkest);
}

.pub .pub-md pre code {
  display: block;
  padding: 0;
  color: var(--flash-white);
  font-size: 0.85rem;
  white-space: pre;
}

.pub .pub-md hr {
  margin: 0.75rem 0;
  border: none;
  border-top: 0.1rem solid var(--flash-border);
}

.pub .pub-md em {
  font-style: italic;
}

.pub .pub-md-empty {
  color: var(--flash-less-light);
  font-style: italic;
}

/* Forms */

.pub .pub-label {
  display: block;
  margin-top: 1.25rem;
  color: var(--flash-white);
  font-family: var(--font-round);
  font-weight: 700;
}

.pub .pub-hint {
  margin: 0 0 0.5rem;
  color: var(--flash-less-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pub .pub-textarea {
  display: block;
  width: 100%;
  min-height: 6rem;
  padding: 0.6rem 0.75rem;
  border: 0.1rem solid transparent;
  border-radius: 0.25rem;
  background-color: var(--flash-gray-darkest);
  color: var(--flash-white);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.55;
  resize: vertical;
}

.pub .pub-textarea::placeholder {
  color: var(--flash-less-light);
  opacity: 0.8;
}

.pub .pub-textarea:focus {
  border-color: var(--flash-dark);
}

.pub .pub-textarea:disabled {
  opacity: 0.6;
}

.pub .pub-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--flash-green);
  font-size: 0.9rem;
}

.pub .pub-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding: 0.6rem 0.9rem;
  border-left: 0.35rem solid var(--flash-skin);
  border-radius: 0 0.5rem 0.5rem 0;
  background-color: var(--flash-dark-skin);
  color: var(--flash-white);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.pub .pub-error .icon {
  margin-top: 0.15rem;
  color: var(--flash-skin);
}

/* Publish */

.pub .pub-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 2.25rem 1rem;
  border: 0.15rem dashed var(--flash-dark);
  border-radius: 0.5rem;
  background-color: var(--flash-gray-darker);
  color: var(--flash-light);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}

.pub .pub-drop:hover,
.pub .pub-drop.dragging {
  border-color: var(--flash-highlight);
  background-color: var(--flash-gray-darkest);
}

.pub .pub-drop.busy {
  cursor: progress;
}

.pub .pub-drop > .icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.25rem;
  color: var(--flash-highlight);
}

.pub .pub-drop.busy > .icon {
  animation: pub-bob 1s ease-in-out infinite alternate;
}

.pub .pub-drop-title {
  color: var(--flash-white);
  font-family: var(--font-round);
  font-size: 1.2rem;
  font-weight: 700;
}

.pub .pub-drop-sub {
  font-size: 0.95rem;
}

.pub .pub-drop-link {
  color: var(--flash-cyan-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes pub-bob {
  to {
    transform: translateY(-0.3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pub .pub-drop.busy > .icon {
    animation: none;
  }

  .pub .pub-chevron {
    transition: none;
  }
}

.pub .pub-preview {
  border-color: var(--flash-dark);
}

.pub .pub-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 1.1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  background-color: var(--flash-shade);
}

.pub .pub-facts > div {
  min-width: 0;
}

.pub .pub-facts > .pub-facts-wide {
  grid-column: span 2;
}

@media (max-width: 559px) {
  .pub .pub-facts > .pub-facts-wide {
    grid-column: 1 / -1;
  }
}

.pub .pub-facts dt {
  color: var(--flash-less-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pub .pub-facts dd {
  margin: 0.1rem 0 0;
  color: var(--flash-white);
  overflow-wrap: anywhere;
}

.pub .pub-native {
  margin: 1.1rem 0 0;
}

.pub .pub-native strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--flash-orange);
  font-size: 1.05rem;
}

@media (max-width: 799px) {
  .pub .pub-card {
    padding: 1rem;
  }

  .pub .pub-addon-head,
  .pub .pub-preview-head {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}
