@import url("https://fonts.googleapis.com/css2?family=Poppins&family=Raleway:wght@800&display=swap");

/* Editor theme: CSS variables for all hex colors */
body.pro-page {
  --headings: 'Consolas', 'Courier New', monospace;
  --poppins: 'Consolas', 'Courier New', monospace;
  --previewFont: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans',
    Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';

  /* Base colors */
  --editorBg: #1e1e1e;
  --editorBgAlt: #262626;
  --editorText: #d4d4d4;
  --editorMuted: #9aa0a6;

  /* Accent colors */
  --accentPrimary: #4ec9b0;
  --accentPrimaryHover: #5fd9c0;
  --accentDark: #09382f;
  --accentLight: #ffffff;

  /* Border colors */
  --borderDark: #3c3c3c;
  --borderPanel: #2d2d30;
  --borderError: #4a4a4a;
  --borderColor: #000000;
  --bulletGray: #808080;

  --tokenKeyword: #569cd6;
  --tokenNumber: #f2961f;
  --tokenFunction: #dcdcaa;

  /* UI chrome */
  --red: #ff5f56;
  --yellow: #ffbd2e;
  --green: #27c93f;
  --commentGreen: #6a9955;
  --statusBarBlue: #007acc;
  --tabHoverBg: rgba(255, 255, 255, 0.1);

  display: block;
  min-height: 100vh;
  overflow: hidden;
  padding: 0;
  font-family: 'Consolas', 'Courier New', monospace;
  background-color: var(--editorBg);
  color: var(--editorText);
}

/* Launch Banner overlay (sits above the fixed editor) */
.launch-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--editorBg);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.6s ease;
}

.launch-banner.launched {
  transform: translateY(100%);
}

.launch-banner .hero-block {
  margin: clamp(1.5rem, 4vh, 3rem) 0;
}

.launch-banner .profiles-block {
  width: 100%;
  margin: clamp(1rem, 3vh, 2.5rem) 0;
}

.launch-banner .summary-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(1rem, 3vh, 2.5rem) 0;
  padding-inline: 1rem;
}

.launch-banner .links-block {
  margin: clamp(1rem, 3vh, 2.5rem) 0;
}

/* Centered when there's room; scroll-safe so top isn't clipped on short screens */
.launch-banner>*:first-child {
  margin-top: auto;
}

.launch-banner>*:last-child {
  margin-bottom: auto;
}

.launch-btn {
  font-family: var(--poppins);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--accentDark);
  background-color: var(--accentPrimary);
  border: none;
  border-radius: 0.4rem;
  padding: clamp(0.9rem, 2vh, 1.25rem) clamp(1.25rem, 4vw, 2rem);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.launch-btn:hover {
  transform: translateY(-2px);
  background-color: var(--accentPrimaryHover);
  color: var(--borderColor);
}

.launch-btn:hover .launch-btn-icon {
  fill: var(--borderColor);
}

.launch-btn:active {
  transform: translateY(0);
}

.launch-banner .banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  box-sizing: border-box;
  max-width: 100%;
}

.launch-banner .banner-links a {
  display: inline-flex;
  align-items: center;
  width: 2rem;
  height: 2rem;
  text-decoration: none;
  position: relative;
  transition: transform 0.15s ease;
}

.banner-links a:hover {
  transform: translateY(-2px);
}

.launch-banner .banner-links .link-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.launch-banner .banner-links .link-svg .link-path {
  fill: var(--accentPrimary);
}

.launch-banner .banner-links a:hover .link-svg .link-path {
  fill: var(--accentPrimaryHover);
  background-color: var(--bulletGray);
}

/* Hero Banner */
.launch-banner>* {
  animation: fadeIn ease 0.8s;
  animation-fill-mode: both;
}

.launch-banner h1 {
  font-family: var(--headings);
  font-size: clamp(2.5rem, 10vw, 8rem);
  margin-bottom: 0;
  margin-top: 0;
  font-weight: 500;
  color: var(--editorText);
  text-align: center;
  position: relative;
}

.launch-banner .role {
  font-family: var(--poppins);
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--accentPrimary);
  margin: 0;
  text-align: center;
}

.launch-banner .profiles {
  font-family: var(--poppins);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--editorBg);
  margin: 0;
  height: clamp(2.5rem, 7vh, 3rem);
  line-height: clamp(2.5rem, 7vh, 3rem);
  overflow: hidden;
  position: relative;
  width: 100%;
  align-self: stretch;
  background-color: var(--accentPrimary);
}

.profiles-strip {
  display: flex;
  flex-direction: row;
  width: max-content;
  animation: profiles-marquee 22s linear infinite;
  will-change: transform;
}

.profiles-strip:hover {
  animation-play-state: paused;
}

.profiles-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 0 0 auto;
}

@keyframes profiles-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.profiles-item {
  flex: 0 0 auto;
  height: clamp(2.5rem, 7vh, 3rem);
  line-height: clamp(2.5rem, 7vh, 3rem);
  white-space: nowrap;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.15s ease;
}

.profiles-item::after {
  content: '';
  position: absolute;
  left: 0.1rem;
  right: 0.1rem;
  bottom: 0.4rem;
  height: 0.18rem;
  border-radius: 0.1rem;
  background-color: var(--editorBg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.profiles-item:hover::after {
  transform: scaleX(1);
}

.profiles-sep {
  color: var(--editorBg);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 1.2rem;
  align-self: center;
}

body.pro-page .tooltip {
  background-color: var(--borderPanel);
  border: 0.1rem solid var(--borderDark);
  border-left: 0.2rem solid var(--accentPrimary);
  font-family: var(--poppins);
  color: var(--editorText);
}

.launch-banner .hero-summary {
  font-family: var(--poppins);
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
  color: var(--editorMuted);
  line-height: 1.6;
  margin: 0;
  max-width: 100ch;
  width: 100%;
  margin-bottom: clamp(1rem, 3vh, 2rem);
  text-align: center;
  box-sizing: border-box;
}

.launch-banner h1 {
  animation-delay: 0.1s;
}

.launch-banner .role {
  animation-delay: 0.25s;
}

.launch-banner .hero-summary {
  animation-delay: 0.55s;
}

/* Sections span the full page width (override .page-container max-width) */
body.pro-page .page-container {
  max-width: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Sections fade in (staggered) after the hero */
.pro-section {
  animation: fadeIn ease 0.7s;
  animation-fill-mode: both;
}

.pro-section:nth-child(1) {
  animation-delay: 0.45s;
}

.pro-section:nth-child(2) {
  animation-delay: 0.55s;
}

.pro-section:nth-child(3) {
  animation-delay: 0.65s;
}

.pro-section:nth-child(4) {
  animation-delay: 0.75s;
}

.pro-section:nth-child(5) {
  animation-delay: 0.85s;
}

/* Editor-style content container (grey, like a code editor) */
.pro-section .section-content {
  background-color: var(--editorBg);
  color: var(--editorText);
}

/* Experience editor bullets */
.editor-bullets {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0 0;
}

.editor-bullets li {
  font-family: var(--poppins);
  font-size: var(--text-lg);
  color: var(--editorText);
  line-height: 1.6;
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.2rem;
  text-align: justify;
}

.editor-bullets li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--bulletGray);
  font-weight: bold;
}

.editor-bullets ul {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0.25rem 0 0 0;
}

.editor-bullets ul li {
  font-size: 0.98em;
  margin-bottom: 0.35rem;
}

.editor-bullets strong,
.editor-excerpt strong {
  color: var(--accentPrimary);
}

.editor-bullets code,
.editor-excerpt code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.92em;
  color: var(--tokenFunction);
  background-color: var(--editorBgAlt);
  border: 0.1rem solid var(--borderDark);
  border-radius: 0.3rem;
  padding: 0.1rem 0.35rem;
}

.editor-subheading {
  font-family: var(--poppins);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--tokenFunction);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 1.1rem 0 0.25rem 0;
}

.editor-read-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--poppins);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accentPrimary);
  border: 0.1rem solid var(--accentPrimary);
  border-radius: 0.3rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.editor-read-more:hover {
  background: var(--accentPrimary);
  color: var(--editorBg);
}

.editor-banner {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 0.5rem 0 0.25rem 0;
}

.editor-panel.is-preview .editor-banner {
  width: 240px;
}

/* Latest Posts - VS Code style editor panel */
.editor-window {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--editorBg);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.editor-filename {
  font-family: var(--poppins);
  font-size: var(--text-base);
  color: var(--editorMuted);
  margin-left: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-window-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.activity-bar {
  display: none;
  flex: 0 0 2.75rem;
  flex-direction: column;
  align-items: center;
  padding-top: 0.75rem;
  background-color: var(--editorBgAlt);
  border-right: 0.1rem solid var(--borderDark);
}

.editor-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}

.directory {
  display: flex;
  flex-direction: column;
  flex: 0 0 17rem;
  min-height: 0;
  background-color: var(--editorBgAlt);
}

.directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  font-family: var(--poppins);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--editorMuted);
  padding: 0.6rem 0.9rem;
  border-bottom: 0.1rem solid var(--borderDark);
}

.directory-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 0.1rem;
  cursor: pointer;
  color: var(--editorMuted);
}

.directory-toggle:hover {
  color: var(--accentPrimary);
}

.directory-tree {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 0.4rem 0;
}

.directory-back {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-left: auto;
  border: none;
  background: none;
  color: var(--editorMuted);
  font-family: var(--poppins);
  font-size: var(--text-base);
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  border-radius: 0.3rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.directory-back:hover {
  background-color: var(--borderPanel);
  color: var(--accentLight);
}

.directory-back-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--red);
}

.directory-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-family: var(--poppins);
  font-size: var(--text-base);
  color: var(--editorText);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.15s ease;
}

.directory-file:hover {
  background-color: var(--borderPanel);
}

.directory-file.active {
  background-color: var(--editorBg);
  color: var(--accentLight);
}

.directory-file-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
}

.editor-main {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: auto;
  scrollbar-color: var(--accentPrimary) transparent;
  padding: 0 0 1rem;
}

.editor-main::-webkit-scrollbar {
  width: 0.8rem;
}

.editor-main::-webkit-scrollbar-track {
  background: transparent;
}

.editor-main::-webkit-scrollbar-thumb {
  background-color: var(--borderDark);
  border-radius: 0.4rem;
  border: 0.15rem solid transparent;
}

.editor-main::-webkit-scrollbar-thumb:hover {
  background-color: var(--accentPrimary);
}

.editor-panel {
  display: flex;
  flex-direction: column;
  background-color: var(--editorBg);
  overflow: visible;
}

/* Directory folders (collapsible, one per section with multiple tabs) */
.directory-folder {
  display: flex;
  flex-direction: column;
}

.directory-folder-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-family: var(--poppins);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--editorText);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.15s ease;
}

.directory-folder-header:hover {
  background-color: var(--borderPanel);
}

.directory-folder-header.active {
  background-color: var(--editorBg);
  color: var(--accentLight);
}

.directory-caret {
  flex-shrink: 0;
  width: 0.8rem;
  font-size: var(--text-sm);
  color: var(--editorMuted);
}

.directory-folder-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  -webkit-mask: url("../Images/folder-svgrepo-com.svg") center / contain no-repeat;
  mask: url("../Images/folder-svgrepo-com.svg") center / contain no-repeat;
  background-color: var(--tokenNumber);
}

.directory-folder.open .directory-folder-icon {
  -webkit-mask-image: url("../Images/folder-open-svgrepo-com.svg");
  mask-image: url("../Images/folder-open-svgrepo-com.svg");
}

.directory-folder-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-folder-body {
  display: none;
  flex-direction: column;
}

.directory-folder.open .directory-folder-body {
  display: flex;
}

.directory-file-nested {
  padding-left: 2.1rem;
  font-size: var(--text-base);
}


.editor-stack {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.editor-titlebar {
  display: flex;
  align-items: center;
  gap: 0.63rem;
  padding: 0.56rem 1.13rem;
  background-color: var(--editorBgAlt);
  border-bottom: 0.1rem solid var(--borderDark);
}

.editor-dot {
  display: inline-block;
  width: 0.94rem;
  height: 0.94rem;
  border-radius: 50%;
}

.dot-red {
  background-color: var(--red);
}

.dot-yellow {
  background-color: var(--yellow);
}

.dot-green {
  background-color: var(--green);
}

/* Red traffic-light dot doubles as a back control */
.editor-dot-back {
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.editor-dot-back:hover {
  transform: scale(1.25);
  filter: brightness(1.15);
}

.editor-dot-back:active {
  transform: scale(0.95);
}

.editor-dot-back:focus-visible {
  outline: 0.15rem solid var(--accentPrimary);
  outline-offset: 0.15rem;
}

.editor-tabsbar {
  display: flex;
  align-items: stretch;
  background-color: var(--editorBgAlt);
  border-bottom: 0.1rem solid var(--borderDark);
}

.editor-tabs {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Segmented Preview | Source mode toggle, pinned right of the tab bar */
.editor-modebar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.6rem;
  border-left: 0.1rem solid var(--borderDark);
}

.mode-btn {
  font-family: var(--poppins);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--editorMuted);
  background: none;
  border: none;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mode-btn:hover {
  color: var(--editorText);
  background-color: var(--borderPanel);
}

.mode-btn.active {
  color: var(--editorBg);
  background-color: var(--accentPrimary);
}

.editor-tab {
  font-family: var(--poppins);
  font-size: var(--text-base);
  color: var(--editorMuted);
  background: none;
  border: none;
  border-right: 0.1rem solid var(--borderDark);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.editor-tab::before {
  content: '';
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 0.15rem;
  background-color: var(--accentPrimary);
}

.editor-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  font-size: var(--text-base);
  line-height: 1;
  color: var(--editorMuted);
  border-radius: 0.2rem;
}

.editor-tab:hover .editor-tab-close {
  color: var(--accentLight);
  background-color: var(--tabHoverBg);
}

.editor-tab:hover {
  background-color: var(--borderPanel);
  color: var(--editorText);
}

.editor-tab.active {
  color: var(--editorText);
  background-color: var(--editorBg);
}

.editor-views {
  min-height: 10rem;
}

.editor-view {
  display: none;
  padding: 1.3rem 1.5rem;
}

.editor-view.active {
  display: block;
  animation: fadeIn ease 0.25s;
}

.editor-comment {
  font-family: var(--poppins);
  font-size: var(--text-base);
  color: var(--commentGreen);
  margin: 0 0 0.6rem 0;
}

.editor-title {
  font-family: var(--headings);
  font-size: var(--text-2xl);
  color: var(--accentPrimary);
  margin: 0 0 0.3rem 0;
}

.editor-meta {
  font-family: var(--poppins);
  font-size: var(--text-base);
  color: var(--editorMuted);
  margin: 0 0 0.8rem 0;
}

.editor-excerpt {
  font-family: var(--poppins);
  font-size: var(--text-xl);
  color: var(--editorText);
  line-height: 1.7;
  margin: 0 0 1.1rem 0;
}

.editor-link {
  font-family: var(--poppins);
  font-size: var(--text-lg);
  color: var(--tokenKeyword);
  text-decoration: none;
  border-bottom: 0.1rem solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.editor-link:hover {
  color: var(--accentPrimary);
  border-bottom-color: var(--accentPrimary);
}

/* Markdown Preview / Source mode */
.editor-panel.is-preview .editor-comment,
.editor-panel.is-preview .editor-excerpt,
.editor-panel.is-preview .editor-bullets,
.editor-panel.is-preview .editor-read-more {
  display: none;
}

.editor-panel.is-preview .editor-preview {
  display: block;
}

.editor-panel.is-preview .editor-view.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editor-panel.is-preview .editor-title {
  font-family: var(--previewFont);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.editor-panel.is-preview .editor-meta {
  font-family: var(--previewFont);
  font-size: var(--text-base);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.editor-preview {
  display: none;
  font-family: var(--previewFont);
  font-size: var(--text-base);
  max-width: var(--measure-normal);
  color: var(--editorText);
  line-height: 1.7;
}

.editor-preview h1,
.editor-preview h2,
.editor-preview h3,
.editor-preview h4,
.editor-preview h5,
.editor-preview h6 {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.editor-preview h1,
.editor-preview h2 {
  padding-bottom: 0.3em;
  border-bottom: 0.1rem solid var(--borderDark);
}

.editor-preview h1 {
  font-size: 2em;
}

.editor-preview h2 {
  font-size: 1.5em;
}

.editor-preview h3 {
  font-size: 1.25em;
  color: var(--accentPrimary);
  margin-top: 2rem;
}

.editor-preview h4 {
  font-size: 0.95em;
  font-weight: 700;
  color: var(--tokenFunction);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

.editor-preview h5 {
  font-size: 0.875em;
  color: var(--editorText);
}

.editor-preview h6 {
  font-size: 0.85em;
  color: var(--editorText);
}

.editor-preview h1:first-child,
.editor-preview h2:first-child,
.editor-preview h3:first-child,
.editor-preview h4:first-child,
.editor-preview h5:first-child,
.editor-preview h6:first-child {
  margin-top: 0;
}

.editor-preview p {
  margin: 0.4em 0;
}

.editor-preview ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.editor-preview ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
  font-size: 0.98em;
}

.editor-preview ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--accentPrimary);
  font-weight: bold;
}

.editor-preview ul ul,
.editor-preview ol ul,
.editor-preview ul ol,
.editor-preview ol ol {
  padding-left: 1.4rem;
  margin-top: 0.35rem;
}

.editor-preview ul ul li {
  font-size: 0.98em;
  margin-bottom: 0.4rem;
}

.editor-preview ol {
  list-style: decimal;
  padding-left: 1.4rem;
  margin: 0;
}

.editor-preview ol li {
  padding-left: 0.35rem;
}

.editor-preview hr {
  border: none;
  border-top: 0.1rem solid var(--borderDark);
  margin: 1.2rem 0;
}

.editor-preview blockquote {
  margin: 1rem 0;
  padding: 0.4rem 1rem;
  border-left: 0.2rem solid var(--borderDark);
  background-color: var(--editorBgAlt);
}

.editor-preview blockquote p {
  margin: 0;
  color: var(--editorMuted);
}

.editor-preview blockquote a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accentPrimary);
  text-decoration: none;
}

.editor-preview blockquote a::after {
  content: '\2192';
}

.editor-preview strong {
  color: var(--accentPrimary);
}

.editor-preview code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.92em;
  color: var(--tokenFunction);
  background-color: var(--editorBgAlt);
  border: 0.1rem solid var(--borderDark);
  border-radius: 0.3rem;
  padding: 0.1rem 0.35rem;
}

.editor-preview a {
  color: var(--tokenKeyword);
  text-decoration: none;
  border-bottom: 0.1rem solid transparent;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.editor-preview a:hover {
  color: var(--accentPrimary);
  border-bottom-color: var(--accentPrimary);
}

.editor-preview blockquote a:hover {
  border-bottom-color: transparent;
  text-decoration: underline;
}

/* Blog preview paragraphs */
.preview-paragraph {
  margin: 0 0 0.9rem 0;
}

.preview-paragraph:last-child {
  margin-bottom: 0;
}

/* Skill tag chips */
.skills-preview {
  width: 100%;
  max-width: 100%;
}

.skills-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}

.skills-table th,
.skills-table td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border: 0.1rem solid var(--borderDark);
  vertical-align: top;
}

.skills-table thead th {
  font-family: var(--previewFont);
  color: var(--editorMuted);
  background-color: var(--editorBgAlt);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: var(--text-sm);
  border-bottom: 0.1rem solid var(--borderDark);
}

.skills-table .skills-category {
  font-weight: 700;
  color: var(--accentPrimary);
  white-space: nowrap;
  width: 1%;
}

.skills-table td.skills-category {
  font-family: var(--previewFont);
}

.editor-statusbar {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.25rem 1rem;
  background-color: var(--statusBarBlue);
  color: var(--accentLight);
  font-family: var(--poppins);
  font-size: var(--text-sm);
  white-space: nowrap;
}

/* Loading placeholder */
.loading-placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--editorMuted);
  font-family: var(--poppins);
}

.loading-placeholder .dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: var(--editorMuted);
  margin: 0 0.2rem;
  animation: dotPulse 1.2s infinite ease-in-out;
}

.loading-placeholder .dot1 {
  animation-delay: 0s;
}

.loading-placeholder .dot2 {
  animation-delay: 0.2s;
}

.loading-placeholder .dot3 {
  animation-delay: 0.4s;
}

@keyframes dotPulse {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Error state */
.error-message {
  text-align: center;
  padding: 2rem;
  color: var(--editorText);
  font-family: var(--poppins);
  border: 0.1rem dashed var(--borderError);
  border-radius: 0.4rem;
}

.blog-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem;
  color: var(--editorMuted);
  font-family: var(--poppins);
  font-style: italic;
}

/* Footer on the dark editor background */
body.pro-page footer #footer_nav li .link-svg .link-path,
body.pro-page footer #footer_nav li svg path {
  fill: var(--accentPrimary);
}

body.pro-page footer #footer_nav li:hover .link-svg .link-path,
body.pro-page footer #footer_nav li:hover svg path {
  fill: var(--accentPrimaryHover);
}

body.pro-page footer #footer_nav {
  width: 100%;
  gap: 3rem;
  justify-content: space-evenly;
}

/* Responsive: max-width 720px */
@media (max-width: 720px) {
  .launch-banner {
    box-sizing: border-box;
    padding: 2.5rem 0;
    height: 100vh;
    height: 100dvh;
    touch-action: pan-y;
  }

  /* Keep banner children at natural height so flex doesn't collapse them on short screens;
     overflow-y on the banner scrolls instead. */
  .launch-banner>* {
    flex-shrink: 0;
  }

  .launch-banner .hero-block,
  .launch-banner .profiles-block,
  .launch-banner .summary-block,
  .launch-banner .links-block {
    width: 100%;
    box-sizing: border-box;
    padding-inline: 1.25rem;
  }

  .launch-banner .banner-links {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .launch-banner h1 {
    padding-inline: 0.75rem;
  }

  .launch-banner .profiles {
    padding-inline: 0;
  }

  .editor-tab {
    font-size: var(--text-xs);
    padding: 0.5rem 0.8rem;
  }

  .editor-view {
    padding: 0.75rem 0.85rem;
  }

  .editor-title {
    font-size: clamp(0.8rem, 5vw, 1.3rem);
  }

  .editor-comment,
  .editor-meta {
    font-size: clamp(0.62rem, 2.8vw, 0.85rem);
  }

  .editor-excerpt {
    font-size: clamp(0.72rem, 3.3vw, 1rem);
  }

  .editor-bullets li {
    font-size: clamp(0.7rem, 3.2vw, 0.95rem);
    line-height: 1.5;
    margin-bottom: 0.4rem;
  }

  .directory-folder-header {
    font-size: var(--text-base);
    padding: 0.35rem 0.7rem;
  }

  .directory-file-nested {
    padding-left: 1.8rem;
  }

  .editor-link {
    font-size: clamp(0.72rem, 3.3vw, 1rem);
  }

  .editor-preview {
    font-size: clamp(0.72rem, 3.3vw, 1rem);
    line-height: 1.6;
  }

  .editor-preview ul li {
    margin-bottom: 0.4rem;
  }

  .editor-subheading {
    font-size: clamp(0.72rem, 3.4vw, 1rem);
    margin-top: 0.9rem;
  }

  .skills-table th,
  .skills-table td {
    padding: 0.4rem 0.5rem;
    font-size: var(--text-sm);
  }

  .skills-table .skills-category {
    white-space: normal;
  }

  .editor-tabsbar .editor-modebar {
    display: none;
  }

  .mode-btn {
    padding: 0.4rem 0.7rem;
  }

  /* Sidebar toggle becomes a slim header row so content can use the full width */
  .editor-window-body {
    flex-direction: column;
  }

  .activity-bar {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0.35rem 0.7rem;
    border-right: none;
    border-bottom: 0.1rem solid var(--borderDark);
  }

  .activity-bar .directory-toggle {
    padding: 0;
  }

  .activity-bar .editor-modebar {
    display: flex;
    margin-left: auto;
    flex: 0 0 auto;
    padding: 0.1rem 0 0.1rem 0.5rem;
  }

  .editor-content {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }

  .directory {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    z-index: 5;
    border-right: none;
    border-bottom: 0.1rem solid var(--borderDark);
    transition: transform 0.35s ease;
  }

  .directory.open {
    transform: translateX(-100%);
  }

  .directory-back {
    display: none;
  }

  .directory-tree {
    overflow-y: scroll;
    scrollbar-width: auto;
    scrollbar-color: var(--accentPrimary) var(--editorBgAlt);
  }

  .directory-tree::-webkit-scrollbar {
    width: 0.8rem;
  }

  .directory-tree::-webkit-scrollbar-track {
    background: var(--editorBgAlt);
  }

  .directory-tree::-webkit-scrollbar-thumb {
    background-color: var(--borderDark);
    border-radius: 0.4rem;
    border: 0.15rem solid var(--editorBgAlt);
  }

  .directory-tree::-webkit-scrollbar-thumb:hover {
    background-color: var(--accentPrimary);
  }

  .directory-toggle {
    display: flex;
  }

  .page-container {
    padding: 0;
  }
}

/* Touch-tap replacements for :hover. Hover is neutralized below so taps leave
   no sticky state; .tapped (toggled by shared.js) restores feedback while the
   finger is down, or persists for underline effects. */
@media (max-width: 720px) {
  .launch-btn:hover {
    transform: none;
    background-color: var(--accentPrimary);
    color: var(--accentDark);
  }

  .launch-btn.tapped {
    transform: translateY(-2px);
    background-color: var(--accentPrimaryHover);
    color: var(--borderColor);
  }

  .banner-links a:hover {
    transform: none;
  }

  .banner-links a.tapped {
    transform: translateY(-2px);
  }

  .launch-banner .banner-links a:hover .link-svg .link-path {
    fill: var(--accentPrimary);
    background-color: var(--editorBg);
  }

  .launch-banner .banner-links a.tapped .link-svg .link-path {
    fill: var(--accentPrimaryHover);
    background-color: var(--bulletGray);
  }

  .profiles-strip:hover {
    animation-play-state: running;
  }

  .profiles-strip.tapped {
    animation-play-state: paused;
  }

  .profiles-item:hover::after {
    transform: scaleX(0);
  }

  .profiles-item.tapped::after {
    transform: scaleX(1);
  }

  .editor-read-more:hover {
    background: transparent;
    color: var(--accentPrimary);
  }

  .editor-read-more.tapped {
    background: var(--accentPrimary);
    color: var(--editorBg);
  }

  .directory-toggle:hover {
    color: var(--editorMuted);
  }

  .directory-toggle.tapped {
    color: var(--accentPrimary);
  }

  .directory-back:hover {
    background-color: transparent;
    color: var(--editorMuted);
  }

  .directory-back.tapped {
    background-color: var(--borderPanel);
    color: var(--accentLight);
  }

  .directory-file:hover {
    background-color: transparent;
  }

  .directory-file.tapped {
    background-color: var(--borderPanel);
  }

  .directory-folder-header:hover {
    background-color: transparent;
  }

  .directory-folder-header.tapped {
    background-color: var(--borderPanel);
  }

  .editor-dot-back:hover {
    transform: none;
    filter: none;
  }

  .editor-dot-back.tapped {
    transform: scale(1.25);
    filter: brightness(1.15);
  }

  .mode-btn:hover {
    color: var(--editorMuted);
    background-color: transparent;
  }

  .mode-btn.tapped {
    color: var(--editorText);
    background-color: var(--borderPanel);
  }

  .editor-tab:hover .editor-tab-close {
    color: var(--editorMuted);
    background-color: transparent;
  }

  .editor-tab.tapped .editor-tab-close {
    color: var(--accentLight);
    background-color: var(--tabHoverBg);
  }

  .editor-tab:hover {
    background-color: transparent;
    color: var(--editorMuted);
  }

  .editor-tab.tapped {
    background-color: var(--borderPanel);
    color: var(--editorText);
  }

  .editor-link:hover,
  .editor-preview a:hover {
    color: var(--tokenKeyword);
    border-bottom-color: transparent;
  }

  .editor-link.tapped,
  .editor-preview a.tapped {
    color: var(--accentPrimary);
    border-bottom-color: var(--accentPrimary);
  }

  .editor-preview blockquote a:hover {
    border-bottom-color: transparent;
    text-decoration: none;
  }

  .editor-preview blockquote a.tapped {
    border-bottom-color: transparent;
    text-decoration: underline;
  }

  body.pro-page footer #footer_nav li:hover .link-svg .link-path,
  body.pro-page footer #footer_nav li:hover svg path {
    fill: var(--accentPrimary);
  }

  body.pro-page footer #footer_nav li a.tapped .link-svg .link-path,
  body.pro-page footer #footer_nav li a.tapped svg path {
    fill: var(--accentPrimaryHover);
  }
}