/*
Plugin Name: Redvery Press
Author: REDVERY e.K.
*/
body div.content div.post div.post-content code,
div.entry-content code {
  border-width: 1px 1px 1px 10px;
  border-color: rgba(128, 128, 128, 0.21);
  border-style: solid;
}
div.redvery-trj {
  width: calc(100% - 20px);
  margin: 0 auto;
}
div.redvery-trj a {
  text-decoration: none;
}
div.redvery-trj a:hover {
  text-decoration: underline;
}
div.redvery-trj h1,
div.redvery-trj h2,
div.redvery-trj h3,
div.redvery-trj h4,
div.redvery-trj p {
  font-weight: normal;
  margin: 0;
  padding: 0;
}
div.redvery-trj h1:not(:last-child),
div.redvery-trj h2:not(:last-child),
div.redvery-trj h3:not(:last-child),
div.redvery-trj h4:not(:last-child),
div.redvery-trj p:not(:last-child) {
  margin-bottom: 15px;
}
div.redvery-trj h1 {
  font-size: 37px;
  line-height: 59px;
  min-height: 59px;
}
div.redvery-trj h1:not([data-pos="0"]) {
  margin-top: 40px;
}
div.redvery-trj h2 {
  font-size: 29px;
  line-height: 47px;
  min-height: 47px;
}
div.redvery-trj h2:not([data-pos="0"]) {
  margin-top: 40px;
}
div.redvery-trj h3 {
  font-size: 23px;
  line-height: 39px;
  min-height: 39px;
}
div.redvery-trj h3:not([data-pos="0"]) {
  margin-top: 25px;
}
div.redvery-trj h4 {
  font-size: 18px;
  line-height: 31px;
  min-height: 31px;
}
div.redvery-trj h4:not([data-pos="0"]) {
  margin-top: 15px;
}
div.redvery-trj p {
  font-size: 14px;
  font-weight: 400;
  line-height: 25px;
  min-height: 25px;
  white-space: pre-wrap;
}
div.redvery-trj p[data-indent="1"] {
  padding-left: 40px;
}
div.redvery-trj p span.code {
  font-family: monospace;
  font-weight: 600;
  background-color: rgba(128, 128, 128, 0.2);
  padding: 5px 10px;
  border-radius: 4px;
  margin: 0 5px;
}
div.redvery-trj ul li {
  font-size: 14px;
  font-weight: 400;
  line-height: 25px;
  min-height: 25px;
}
div.redvery-trj div.hr {
  position: relative;
  height: 25px;
  margin-bottom: 15px;
}
div.redvery-trj div.hr:after {
  position: absolute;
  top: 12px;
  content: " ";
  display: block;
  height: 1px;
  width: 100%;
  background-color: rgba(128, 128, 128, 0.3);
}
div.redvery-trj > code {
  display: block;
  font-family: Menlo, Consolas, Monaco, "Andale Mono", Courier, Verdana, sans-serif;
  font-size: 13px;
  color: var(--foreground);
  background-color: rgba(128, 128, 128, 0.05);
  line-height: 25px;
  min-height: 55px;
  border-width: 1px 1px 1px 10px;
  border-color: rgba(128, 128, 128, 0.21);
  border-style: solid;
  overflow: hidden;
  word-wrap: normal;
  word-break: break-word;
  -moz-tab-size: 4;
  tab-size: 4;
  padding: 15px;
  box-sizing: border-box;
  border-radius: 6px;
  white-space: pre-wrap;
  margin-bottom: 15px;
}
div.redvery-trj > div.trj-message {
  --bubble-1-background: #e9e9e9;
  --bubble-1-foreground: #434141;
  --bubble-2-background: #1a5cea;
  --bubble-2-foreground: #ffffff;
  margin-bottom: 25px;
}
div.redvery-trj > div.trj-message[data-direction="out"] {
  padding-left: max(32px, 10%);
  text-align: right;
}
div.redvery-trj > div.trj-message[data-direction="out"] div.bubble {
  background-color: var(--bubble-2-background);
  color: var(--bubble-2-foreground);
}
div.redvery-trj > div.trj-message[data-direction="in"] {
  padding-right: max(32px, 10%);
  text-align: left;
}
div.redvery-trj > div.trj-message[data-direction="in"] div.bubble {
  background-color: var(--bubble-1-background);
  color: var(--bubble-1-foreground);
}
div.redvery-trj > div.trj-message div.bubble {
  display: inline-block;
  padding: 14px 21px;
  border-radius: 18px;
}
div.redvery-trj > div.trj-message div.bubble div.text {
  position: relative;
  font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  min-height: 24px;
  min-width: 24px;
}
div.redvery-trj > div.trj-task {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 32px;
  margin-bottom: 15px;
}
div.redvery-trj > div.trj-task div.trj-task-state {
  width: 40px;
  height: 32px;
  flex-grow: 0;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url(../renderer/task_open.png);
  -webkit-mask-size: 14px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
div.redvery-trj > div.trj-task div.trj-task-state[data-state="doing"] {
  -webkit-mask-image: url(../renderer/task_doing.png);
}
div.redvery-trj > div.trj-task div.trj-task-state[data-state="done"] {
  -webkit-mask-image: url(../renderer/task_done.png);
}
div.redvery-trj > div.trj-task div.trj-task-state[data-state="rejected"] {
  -webkit-mask-image: url(../renderer/task_rejected.png);
}
div.redvery-trj > div.trj-task div.trj-task-title {
  flex-grow: 1;
  flex-shrink: 1;
  line-height: 32px;
  min-height: 32px;
  font-size: 14px;
}
div.redvery-trj > div.trj-task div.trj-task-date {
  font-family: monospace;
  overflow: hidden;
  position: relative;
  height: 22px;
  line-height: 22px;
  border-radius: 2px;
  color: var(--foreground);
  flex-grow: 0;
  flex-shrink: 0;
  font-size: 9px;
  margin-left: 9px;
  padding: 0 9px;
  background-color: rgba(128, 128, 128, 0.2);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
div.redvery-trj > div.trj-task div.trj-task-date:empty {
  display: none;
}
div.redvery-trj > div.trj-task div.trj-task-work {
  font-family: monospace;
  overflow: hidden;
  position: relative;
  height: 22px;
  line-height: 22px;
  border-radius: 2px;
  color: var(--foreground);
  flex-grow: 0;
  flex-shrink: 0;
  font-size: 9px;
  margin-left: 9px;
  padding: 0 9px;
  background-color: rgba(128, 128, 128, 0.2);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
div.redvery-trj > div.trj-task div.trj-task-work:empty {
  display: none;
}
div.redvery-trj > img {
  display: block;
  margin: 0 auto 15px auto;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 6px;
}
div.redvery-trj > div.caption {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  min-height: 18px;
  margin: -5px auto 15px auto;
  color: currentColor;
  text-align: center;
  opacity: 0.5;
}
div.redvery-trj > div.caption:empty {
  display: none;
}
div.redvery-trj > div.kvset {
  padding-left: 40px;
  margin-bottom: 15px;
}
div.redvery-trj > div.kvset div.key {
  font-size: 12px;
  line-height: 12px;
  font-weight: 700;
}
div.redvery-trj > div.kvset div.value {
  font-size: 14px;
  line-height: 25px;
}
div.redvery-trj > div.trj-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(171px, 1fr));
  grid-gap: 12px;
}
div.redvery-trj > div.trj-gallery img {
  display: block;
  margin: 0;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 6px;
  background-color: rgba(128, 128, 128, 0.05);
}
div.redvery-trj > a.trj-file {
  display: block;
  position: relative;
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  padding-left: 40px;
  cursor: pointer;
  margin-bottom: 15px;
  color: currentColor;
}
div.redvery-trj > a.trj-file img {
  display: block;
  position: absolute;
  top: 2px;
  left: 10px;
  width: 20px;
  height: 20px;
}
div.redvery-trj-download {
  border-top: 1px solid rgba(128, 128, 128, 0.3);
  padding-top: 14px;
  margin-top: 42px;
  font-size: 12px;
  width: calc(100% - 20px);
  margin-left: auto;
  margin-right: auto;
}
div.redvery-trj-download > div.intro {
  line-height: 54px;
}
div.redvery-trj-download > div.redvery-trj-download-trj {
  min-height: 64px;
  display: inline-block;
  position: relative;
  padding-left: 68px;
  padding-right: 20px;
  padding-bottom: 13px;
  cursor: pointer;
  margin-bottom: 15px;
  color: currentColor;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 5px;
  background-image: linear-gradient(90deg, rgba(128, 128, 128, 0.1) 0%, rgba(128, 128, 128, 0.05) 100%);
}
div.redvery-trj-download > div.redvery-trj-download-trj:hover {
  background-image: linear-gradient(90deg, rgba(128, 128, 128, 0.2) 0%, rgba(128, 128, 128, 0.1) 100%);
}
div.redvery-trj-download > div.redvery-trj-download-trj::before {
  display: block;
  position: absolute;
  top: 6px;
  left: 10px;
  width: 48px;
  height: 48px;
  background-image: url(../renderer/trj.png);
  background-size: 48px;
  background-repeat: no-repeat;
  background-position: center;
  print-color-adjust: exact;
  content: "";
}
div.redvery-trj-download > div.redvery-trj-download-trj div.type {
  font-size: 14px;
  font-weight: 700;
  margin-top: 13px;
  line-height: 19px;
}
div.redvery-trj-download > div.redvery-trj-download-trj div.filename {
  font-weight: 400;
  font-size: 11px;
  line-height: 15px;
}
div.redvery-trj-download > div.overlay {
  display: none;
  user-select: none;
  -moz-user-select: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 11;
}
@supports ((-webkit-backdrop-filter: blur(5px)) or (backdrop-filter: blur(5px))) {
  div.redvery-trj-download > div.overlay {
    background-color: transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
}
div.redvery-trj-download > div.overlay > div.panel {
  box-sizing: border-box;
  cursor: default;
  position: absolute;
  background-color: white;
  width: 640px;
  max-width: calc(100% - 40px);
  max-height: calc(100% - 40px);
  overflow: hidden;
  overflow-y: auto;
  touch-action: pan-y;
  border-radius: 10px;
  box-shadow: 1px 1px 10px rgba(61, 61, 61, 0.4);
  margin-left: auto;
  margin-right: auto;
  padding: 30px 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
div.redvery-trj-download > div.overlay > div.panel > div.title {
  cursor: default;
  font-size: 24px;
  font-weight: 300;
}
div.redvery-trj-download > div.overlay > div.panel > div.text {
  cursor: default;
  font-size: 14px;
  line-height: 24px;
}
div.redvery-trj-download > div.overlay > div.panel > div:not(:first-child) {
  margin-top: 20px;
}
div.redvery-trj-download > div.overlay > div.panel > div:not(:first-child).actions {
  margin-top: 20px;
}
div.redvery-trj-download > div.overlay > div.panel > div:not(:first-child).actions > .button {
  display: inline-block;
  text-align: center;
  background-color: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: bold;
  height: 28px;
  line-height: 28px;
  padding-left: 15px;
  padding-right: 15px;
  cursor: pointer;
  border-radius: 4px;
}
div.redvery-trj-download > div.overlay > div.panel > div:not(:first-child).actions > .button.danger {
  background-color: var(--danger);
}
div.redvery-trj-download > div.overlay > div.panel > div:not(:first-child).actions > .button.secondary {
  background-color: var(--hilite2);
  color: var(--foreground);
}
div.redvery-trj-download > div.overlay > div.panel > div:not(:first-child).actions > .button.secondary:hover {
  background-color: var(--foreground);
  color: white !important;
}
div.redvery-trj-download > div.overlay > div.panel > div:not(:first-child).actions > .button[data-disabled="true"] {
  pointer-events: none;
  cursor: default;
  opacity: 0.5;
}
div.redvery-trj-download > div.overlay > div.panel > div:not(:first-child).actions > .button[data-disabled="true"]:hover {
  background-image: none;
}
div.redvery-trj-download > div.overlay > div.panel > div:not(:first-child).actions > .button:hover {
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}
div.redvery-trj-download > div.overlay > div.panel > div:not(:first-child).actions > .button + .button {
  margin-left: 20px;
  margin-top: 10px;
}
div.redvery-trj-download > div.overlay > div.panel > div.preview {
  display: flex;
  flex-direction: row;
  margin: 40px 0;
  align-items: stretch;
}
div.redvery-trj-download > div.overlay > div.panel > div.preview > div.left {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--hr);
}
div.redvery-trj-download > div.overlay > div.panel > div.preview > div.left > div.icon {
  width: 80px;
  height: 80px;
  background-image: url('../renderer/trj.png');
  background-size: contain;
  margin: 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 14px;
}
div.redvery-trj-download > div.overlay > div.panel > div.preview > div.left > div.label {
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  padding: 0 10px;
  color: var(--foreground);
}
div.redvery-trj-download > div.overlay > div.panel > div.preview > div.right {
  font-size: 14px;
  text-align: left;
  padding: 0 32px 0 52px;
}
