@import "variables";

.devcm-editor {
  min-width: 0;
  min-height: 0;
  padding: 24px 30px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 176, 0, 0.5) rgba(5, 7, 5, 0.56);
  scrollbar-width: thin;
}

.devcm-editor::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.devcm-editor::-webkit-scrollbar-track {
  border-left: 1px solid rgba(255, 176, 0, 0.12);
  background: rgba(5, 7, 5, 0.54);
}

.devcm-editor::-webkit-scrollbar-thumb {
  border: 3px solid rgba(5, 7, 5, 0.54);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 176, 0, 0.68), rgba(104, 243, 127, 0.42));
}

.devcm-editor::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 176, 0, 0.86), rgba(104, 243, 127, 0.58));
}

html[data-color-scheme="light"] .devcm-editor {
  scrollbar-color: rgba(181, 137, 0, 0.58) rgba(238, 232, 213, 0.82);
}

html[data-color-scheme="light"] .devcm-editor::-webkit-scrollbar-track {
  border-left-color: rgba(101, 123, 131, 0.18);
  background: rgba(238, 232, 213, 0.82);
}

html[data-color-scheme="light"] .devcm-editor::-webkit-scrollbar-thumb {
  border-color: rgba(238, 232, 213, 0.82);
  background: linear-gradient(180deg, rgba(181, 137, 0, 0.68), rgba(42, 161, 152, 0.5));
}

html[data-color-scheme="light"] .devcm-editor::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(181, 137, 0, 0.86), rgba(42, 161, 152, 0.66));
}

.devcm-terminal-window,
.devcm-editor-window,
.devcm-post-card,
.devcm-category-card,
.devcm-archive-table,
.devcm-comments {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 176, 0, 0.26);
  border-radius: var(--devcm-radius);
  background: linear-gradient(180deg, rgba(14, 16, 12, 0.96), rgba(9, 11, 8, 0.94));
  box-shadow: var(--devcm-shadow);
}

html[data-color-scheme="light"] .devcm-terminal-window,
html[data-color-scheme="light"] .devcm-editor-window,
html[data-color-scheme="light"] .devcm-post-card,
html[data-color-scheme="light"] .devcm-category-card,
html[data-color-scheme="light"] .devcm-archive-table,
html[data-color-scheme="light"] .devcm-comments {
  border-color: rgba(181, 137, 0, 0.28);
  background: rgba(255, 250, 235, 0.78);
}

html[data-color-scheme="light"] .devcm-terminal-window::before,
html[data-color-scheme="light"] .devcm-editor-window::before,
html[data-color-scheme="light"] .devcm-post-card::before,
html[data-color-scheme="light"] .devcm-category-card::before,
html[data-color-scheme="light"] .devcm-archive-table::before,
html[data-color-scheme="light"] .devcm-comments::before {
  opacity: 0;
}

.devcm-terminal-window::before,
.devcm-editor-window::before,
.devcm-post-card::before,
.devcm-category-card::before,
.devcm-archive-table::before,
.devcm-comments::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 0, 0.035), transparent);
  opacity: 0.34;
  pointer-events: none;
}

.devcm-window-titlebar,
.devcm-editor-tabs {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 176, 0, 0.18);
  background: rgba(255, 176, 0, 0.035);
}

html[data-color-scheme="light"] .devcm-window-titlebar,
html[data-color-scheme="light"] .devcm-editor-tabs,
html[data-color-scheme="light"] .devcm-comment-titlebar {
  border-bottom-color: rgba(101, 123, 131, 0.18);
  background: rgba(244, 238, 220, 0.42);
}

.devcm-window-titlebar {
  padding: 0 15px;
}

.devcm-window-dot {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(255, 176, 0, 0.72);
  border-radius: 50%;
}

.devcm-window-dot:nth-child(1) {
  background: #db8b16;
}

.devcm-window-dot:nth-child(2) {
  background: #ffbd2e;
}

.devcm-window-dot:nth-child(3) {
  background: rgba(104, 243, 127, 0.15);
}

.devcm-home-hero,
.devcm-archive-hero {
  margin-bottom: 22px;
}

.devcm-hero {
  display: grid;
  min-height: 190px;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 24px;
  align-items: center;
  padding: 22px 24px 24px;
}

.devcm-prompt-line {
  margin-bottom: 14px;
  color: var(--devcm-green);
  text-shadow: 0 0 12px rgba(104, 243, 127, 0.18);
}

.devcm-prompt-line span:first-child {
  color: var(--devcm-green);
}

.devcm-prompt-line span:not(:first-child) {
  color: #e0b55c;
}

.devcm-prompt-line--pending {
  display: none;
}

html[data-color-scheme="light"] .devcm-prompt-line span:first-child {
  color: var(--devcm-green);
}

html[data-color-scheme="light"] .devcm-prompt-line span:not(:first-child) {
  color: var(--devcm-amber);
}

.devcm-hero__title,
.devcm-page-title,
.devcm-article-title {
  margin: 0 0 12px;
  color: var(--devcm-amber);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(255, 176, 0, 0.26);
}

.devcm-hero__title {
  font-size: clamp(26px, 2.4vw, 40px);
  line-height: 1.15;
}

.devcm-hero__subtitle {
  margin-bottom: 16px;
  color: #d7c18d;
  font-size: 16px;
  word-spacing: 12px;
}

html[data-color-scheme="light"] .devcm-hero__subtitle {
  color: var(--devcm-muted);
}

html[data-color-scheme="light"] .devcm-hero__title,
html[data-color-scheme="light"] .devcm-page-title,
html[data-color-scheme="light"] .devcm-article-title {
  text-shadow: none;
}

.devcm-hero__desc {
  padding-top: 13px;
  border-top: 1px solid rgba(104, 243, 127, 0.24);
  color: var(--devcm-text);
  line-height: 1.85;
}

.devcm-hero__desc > :first-child {
  margin-top: 0;
}

.devcm-hero__desc > :last-child {
  margin-bottom: 0;
}

.devcm-cursor {
  display: inline-block;
  width: 9px;
  height: 16px;
  background: var(--devcm-amber);
  box-shadow: 0 0 14px rgba(255, 176, 0, 0.48);
  vertical-align: -2px;
  animation: devcm-blink 1s steps(1) infinite;
}

@keyframes devcm-blink {
  50% {
    opacity: 0.08;
  }
}

.devcm-ascii-badge {
  position: relative;
  display: grid;
  box-sizing: border-box;
  width: min(176px, 100%);
  height: fit-content;
  min-height: 0;
  align-self: center;
  justify-self: center;
  place-items: center;
  padding: 12px 10px;
  overflow: clip;
  border: 1px dashed rgba(255, 176, 0, 0.46);
  background: radial-gradient(circle at 50% 32%, rgba(255, 176, 0, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(22, 18, 10, 0.58), rgba(6, 8, 6, 0.68));
  box-shadow: inset 0 0 32px rgba(255, 176, 0, 0.07), 0 0 18px rgba(255, 176, 0, 0.04);
  color: rgba(255, 176, 0, 0.82);
  text-align: center;
}

.devcm-ascii-badge__grid {
  position: absolute;
  inset: 8px;
  border: 1px dotted rgba(255, 176, 0, 0.18);
  background: repeating-linear-gradient(
      0deg,
      rgba(255, 176, 0, 0.03) 0,
      rgba(255, 176, 0, 0.03) 1px,
      transparent 1px,
      transparent 10px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(104, 243, 127, 0.025) 0,
      rgba(104, 243, 127, 0.025) 1px,
      transparent 1px,
      transparent 10px
    );
}

.devcm-ascii-badge__inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  width: 100%;
  justify-items: center;
  gap: 8px;
  overflow: hidden;
}

.devcm-ascii-badge__label {
  justify-self: start;
  padding-left: 6px;
  color: var(--devcm-green);
  font-size: 10px;
  line-height: 1;
  opacity: 0.72;
}

.devcm-ascii-badge pre {
  display: block;
  max-width: 100%;
  margin: 0;
  padding-bottom: 3px;
  overflow: hidden;
  border: 0;
  color: var(--devcm-amber);
  font: 900 clamp(30px, 3vw, 42px) / 1.34 var(--devcm-mono);
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(255, 176, 0, 0.3);
  transform: scaleX(1.04);
  white-space: pre;
}

.devcm-ascii-badge small {
  display: block;
  color: var(--devcm-amber);
  opacity: 0.8;
}

.devcm-ascii-badge__scan {
  width: min(96px, 82%);
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 176, 0, 0.75) 0,
    rgba(255, 176, 0, 0.75) 7px,
    transparent 7px,
    transparent 12px
  );
  opacity: 0.5;
}

html[data-color-scheme="light"] .devcm-ascii-badge {
  border-color: rgba(181, 137, 0, 0.42);
  background: rgba(244, 238, 220, 0.42);
  box-shadow: none;
  color: var(--devcm-amber);
}

html[data-color-scheme="light"] .devcm-ascii-badge pre {
  text-shadow: none;
}

.devcm-editor-window {
  margin-top: 22px;
}

.devcm-shell--home .devcm-editor-window {
  min-height: clamp(360px, 43vh, 520px);
}

.devcm-editor-tabs {
  justify-content: space-between;
  padding: 0 16px;
  overflow-x: auto;
}

.devcm-editor-tabs__left {
  display: flex;
  min-height: 38px;
  align-items: stretch;
}

.devcm-editor-tab {
  display: flex;
  min-width: 132px;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 176, 0, 0.14);
  background: rgba(255, 176, 0, 0.025);
  color: #d79d31;
  line-height: 1;
}

.devcm-editor-tab > span {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  line-height: 1;
}

.devcm-editor-tab--active {
  background: rgba(255, 176, 0, 0.08);
  box-shadow: inset 0 2px 0 var(--devcm-amber);
  color: var(--devcm-amber);
}

.devcm-editor-tab__close {
  display: inline-grid;
  width: 18px;
  height: 18px;
  align-self: center;
  flex: 0 0 18px;
  place-items: center;
  padding: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font: 700 13px/1 var(--devcm-mono);
  line-height: 1;
  opacity: 0.48;
  text-decoration: none;
}

.devcm-editor-tab__close:hover {
  box-shadow: none;
  opacity: 0.74;
}

.devcm-editor-tab__add {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--devcm-amber);
  cursor: pointer;
  opacity: 0.7;
  text-decoration: none;
}

.devcm-editor-tab__add:hover {
  background: rgba(255, 176, 0, 0.08);
  box-shadow: inset 0 -2px 0 rgba(255, 176, 0, 0.76);
  opacity: 1;
}

.devcm-editor-body {
  position: relative;
  padding: 20px;
}

.devcm-post-list-body {
  padding: 14px 18px 18px;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 27px, rgba(255, 176, 0, 0.035) 28px);
}

.devcm-line-layout {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
}

.devcm-line-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 27px, rgba(255, 176, 0, 0.045) 28px);
  opacity: 0.45;
  pointer-events: none;
}

.devcm-line-layout > * {
  position: relative;
  z-index: 1;
}

.devcm-shell--home .devcm-line-layout {
  min-height: clamp(250px, 31vh, 390px);
  align-content: start;
}

.devcm-gutter {
  display: grid;
  gap: 14px;
  padding-top: 6px;
  color: rgba(255, 176, 0, 0.36);
  text-align: right;
  user-select: none;
}

.devcm-post-stack,
.devcm-moments {
  display: grid;
  gap: 14px;
}

.devcm-post-list-body .devcm-post-stack {
  gap: 11px;
}

.devcm-shell--home .devcm-post-stack {
  min-height: 100%;
}

.devcm-post-card {
  padding: 18px 20px;
  border-color: rgba(255, 176, 0, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 25, 15, 0.9), rgba(7, 8, 6, 0.84));
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.devcm-post-list-body .devcm-post-card {
  padding: 14px 16px;
}

html[data-color-scheme="light"] .devcm-post-card {
  background: rgba(255, 250, 235, 0.7);
}

html[data-color-scheme="light"] .devcm-post-card:hover {
  border-color: rgba(181, 137, 0, 0.42);
  box-shadow: none;
}

.devcm-post-card:hover {
  border-color: rgba(255, 176, 0, 0.46);
  box-shadow: 0 0 26px rgba(255, 176, 0, 0.08);
  transform: translateY(-2px);
}

.devcm-post-card--featured::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--devcm-green), rgba(104, 243, 127, 0.3));
  box-shadow: var(--devcm-green-glow);
}

.devcm-post-card__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--devcm-amber);
  font-size: 21px;
  letter-spacing: 0;
}

.devcm-post-list-body .devcm-post-card__title {
  margin-bottom: 8px;
}

.devcm-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.devcm-badge {
  padding: 3px 7px;
  border: 1px solid rgba(104, 243, 127, 0.32);
  border-radius: 6px;
  background: var(--devcm-green-soft);
  color: var(--devcm-green);
  font-size: 11px;
  text-transform: uppercase;
}

.devcm-post-card__meta,
.devcm-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 10px;
  color: #a9915a;
  font-size: 13px;
}

html[data-color-scheme="light"] .devcm-post-card__meta,
html[data-color-scheme="light"] .devcm-article-meta {
  color: var(--devcm-muted);
}

.devcm-post-card__tag,
.devcm-article-meta a {
  color: var(--devcm-green);
  font-weight: 500;
  text-decoration: none;
}

.devcm-post-card__excerpt {
  margin: 0 0 11px;
  color: #cfc4a5;
  line-height: 1.65;
}

html[data-color-scheme="light"] .devcm-post-card__excerpt {
  color: var(--devcm-text);
}

.devcm-post-list-body .devcm-post-card__excerpt {
  margin-bottom: 9px;
}

.devcm-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93f0a0;
  font-weight: 800;
  text-decoration: none;
}

html[data-color-scheme="light"] .devcm-read-more {
  color: var(--devcm-green);
}

.devcm-list-footnote {
  margin-top: 10px;
  color: var(--devcm-dim);
  font-size: 13px;
  text-align: center;
}

.devcm-shell--home .devcm-list-footnote {
  align-self: end;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 176, 0, 0.1);
}

.devcm-article {
  margin-top: 0;
}

.devcm-article-body {
  position: relative;
  margin: 0;
  padding: 18px 22px 18px 66px;
}

.devcm-article-body .post-line-gutter {
  left: 0;
  top: 18px;
  width: 50px;
  opacity: 0.62;
  border-right-color: rgba(255, 176, 0, 0.13);
}

.devcm-article-content {
  color: #cfc3a1;
  line-height: 1.78;
}

html[data-color-scheme="light"] .devcm-article-content {
  color: var(--devcm-text);
}

.devcm-article-title {
  font-size: 24px;
  line-height: 1.38;
}

.devcm-article-content h1,
.devcm-article-content h2,
.devcm-article-content h3 {
  color: var(--devcm-green);
  letter-spacing: 0;
}

.devcm-article-content p,
.devcm-article-content li {
  color: #cfc3a1;
}

html[data-color-scheme="light"] .devcm-article-content p,
html[data-color-scheme="light"] .devcm-article-content li {
  color: var(--devcm-text);
}

html[data-color-scheme="light"] .devcm-article-content pre {
  border-color: rgba(101, 123, 131, 0.24);
  background: rgba(244, 238, 220, 0.34);
  color: #586e75;
}

html[data-color-scheme="light"] .devcm-article-content code {
  color: #586e75;
}

.devcm-article-content pre {
  border: 1px solid rgba(255, 176, 0, 0.22);
  border-radius: 9px;
  background: rgba(5, 7, 5, 0.72);
  color: #e5d4a4;
  padding: 12px 14px;
}

.devcm-article-content code {
  color: #e5d4a4;
}

.devcm-comments {
  margin-top: 16px;
  padding: 0;
  overflow: visible;
  background: linear-gradient(180deg, rgba(12, 14, 11, 0.92), rgba(7, 9, 6, 0.86));
}

html[data-color-scheme="light"] .devcm-comments {
  background: rgba(255, 250, 235, 0.78);
}

.devcm-comments h2 {
  margin: 0 0 10px;
  color: var(--devcm-green);
}

.devcm-comment-titlebar {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 176, 0, 0.18);
  background: rgba(255, 176, 0, 0.045);
  color: var(--devcm-amber);
}

.devcm-comment-titlebar strong {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 700;
}

.devcm-comment-body {
  position: relative;
  padding: 14px;
  overflow: visible;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 27px, rgba(255, 176, 0, 0.035) 28px);
}

.devcm-prev-next {
  margin-top: 12px;
}

.devcm-editor .pagination {
  margin-top: 16px;
}

.devcm-editor .pagination__buttons {
  gap: 12px;
}

.devcm-editor .button {
  max-width: 48%;
  border: 1px solid rgba(255, 176, 0, 0.22);
  border-radius: 8px;
  background: rgba(255, 176, 0, 0.035);
  color: var(--devcm-amber);
}

.devcm-editor .button:hover {
  border-color: rgba(255, 176, 0, 0.45);
  background: rgba(255, 176, 0, 0.08);
}

.devcm-editor .button a {
  min-width: 118px;
  justify-content: center;
  padding: 8px 14px;
}

.devcm-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.devcm-category-card {
  min-height: 142px;
  padding: 16px;
  border-radius: 9px;
  background: rgba(15, 17, 12, 0.74);
  color: #b7a77b;
  text-decoration: none;
}

html[data-color-scheme="light"] .devcm-category-card {
  background: rgba(255, 250, 235, 0.7);
  color: var(--devcm-text);
}

.devcm-category-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--devcm-amber);
  font-size: 17px;
}

.devcm-category-card strong {
  display: block;
  margin-bottom: 8px;
  color: #dac082;
  font-size: 14px;
}

html[data-color-scheme="light"] .devcm-category-card strong {
  color: var(--devcm-amber);
}

.devcm-category-card p {
  margin: 0;
  color: #b7a77b;
  font-size: 13px;
  line-height: 1.55;
}

html[data-color-scheme="light"] .devcm-category-card p {
  color: var(--devcm-text);
}

.devcm-archive-table {
  border-radius: 10px;
  background: rgba(7, 9, 6, 0.72);
}

.devcm-archive-table__title {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 176, 0, 0.18);
  color: var(--devcm-amber);
  font-weight: 900;
}

.devcm-archive-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(120px, 1fr) 80px;
  gap: 14px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 176, 0, 0.08);
  color: #c9ba90;
  font-size: 13px;
  text-decoration: none;
}

html[data-color-scheme="light"] .devcm-archive-row {
  border-bottom-color: rgba(101, 123, 131, 0.12);
  color: var(--devcm-text);
}

.devcm-archive-row--header {
  background: rgba(255, 176, 0, 0.035);
  color: #9f8a5e;
}

html[data-color-scheme="light"] .devcm-archive-row--header {
  background: rgba(244, 238, 220, 0.38);
  color: var(--devcm-muted);
}

.devcm-archive-row--month {
  grid-template-columns: 1fr;
  background: rgba(255, 176, 0, 0.055);
  color: var(--devcm-amber);
  font-weight: 800;
}

html[data-color-scheme="light"] .devcm-archive-row--month {
  background: rgba(244, 238, 220, 0.46);
}

.devcm-archive-row b {
  color: var(--devcm-green);
  font-weight: 600;
}

.devcm-moment-media {
  display: grid;
  width: min(100%, 620px);
  gap: 8px;
  margin-top: 14px;
}

.devcm-moment-media--one {
  grid-template-columns: 1fr;
}

.devcm-moment-media--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.devcm-moment-media--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.devcm-moment-media img,
.devcm-moment-media video {
  width: 100%;
  border: 1px solid rgba(255, 176, 0, 0.18);
  border-radius: 8px;
  object-fit: cover;
}

.devcm-moment-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.devcm-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--devcm-muted);
  cursor: pointer;
}

.devcm-action-link:hover,
.devcm-action-link--active {
  color: var(--devcm-amber);
}

.devcm-moment-comments {
  margin-top: 12px;
}

.devcm-link-group + .devcm-link-group {
  margin-top: 24px;
}

.devcm-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.devcm-link-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 176, 0, 0.2);
  border-radius: 9px;
  background: rgba(255, 176, 0, 0.04);
  color: #cdbd92;
  text-decoration: none;
}

html[data-color-scheme="light"] .devcm-link-card {
  border-color: rgba(101, 123, 131, 0.2);
  background: rgba(244, 238, 220, 0.3);
  color: var(--devcm-text);
}

.devcm-link-card img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.devcm-link-card__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.devcm-link-card__body strong {
  color: var(--devcm-amber);
}

.devcm-link-card__body small {
  overflow: hidden;
  color: var(--devcm-green);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.devcm-rightbar .post-toc {
  position: relative;
  width: auto;
  max-height: calc(100vh - 340px);
  opacity: 1;
}

.devcm-rightbar .toc-tree {
  padding-left: 0;
}

.devcm-rightbar .toc-tree::before,
.devcm-rightbar .toc-item::before {
  display: none;
}

@media (max-width: 1320px) {
  .devcm-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .devcm-hero {
    grid-template-columns: 1fr;
  }

  .devcm-ascii-badge {
    display: none;
  }

  .devcm-category-grid,
  .devcm-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .devcm-editor {
    padding: 14px 12px;
  }

  .devcm-shell--home .devcm-editor-window,
  .devcm-shell--home .devcm-line-layout {
    min-height: auto;
  }

  .devcm-line-layout {
    grid-template-columns: 1fr;
  }

  .devcm-gutter {
    display: none;
  }

  .devcm-hero {
    min-height: auto;
    padding: 18px;
  }

  .devcm-hero__title {
    font-size: 25px;
  }

  .devcm-article-body {
    padding: 14px;
  }

  .devcm-article-body .post-line-gutter {
    display: none;
  }

  .devcm-category-grid,
  .devcm-link-grid,
  .devcm-moment-media--two,
  .devcm-moment-media--three {
    grid-template-columns: 1fr;
  }

  .devcm-archive-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
