/**
 * layout-shell — info bar transcribed from:
 *   _config.scss (tokens), _info-bar.scss, _common.scss (art-table, utilities),
 *   _markup.scss (.art-info-bar / .art-scroll-frame), _enhancements.scss (info bar tweaks)
 */
:root {
  --main-color: #ffc107;
  --text-neon: 0 0 3px rgba(250, 250, 252, 0.4);
  --info-bar-1: rgb(32, 32, 42);
  --info-bar-2-a: rgb(37, 37, 50);
  --info-bar-2-b: rgb(35, 35, 45);
  --content-bg: rgb(30, 30, 40);
  --deep: rgb(25, 25, 35);
  --card-a: rgb(45, 45, 58);
  --card-b: rgb(43, 43, 53);
  --card-s-light: linear-gradient(159deg, rgba(45, 45, 58, 0.88) 0%, rgba(43, 43, 53, 0.88) 100%);
  --text-1: rgb(250, 250, 252);
  --text-2: rgb(140, 140, 142);
  --text-3: rgb(100, 100, 102);
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-1: 0 3px 8px 0 rgba(15, 15, 20, 0.2);
  --shadow-2: 0 1px 4px 0 rgba(15, 15, 20, 0.1);
  --tr-sm: 0.2s ease-out;
  --tr-md: 0.4s ease-in-out;
  --rail-width: 80px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

/* Shell outer = .art-app padding */
.shell-outer {
  padding: 15px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Poppins", var(--font-primary, sans-serif);
  background: var(--deep);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: subpixel-antialiased;
}

.shell-outer * {
  scrollbar-width: none;
}
.shell-outer *::-webkit-scrollbar {
  display: none;
}

.shell-card {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--content-bg);
  box-shadow: var(--shadow-1);
  min-height: calc(100vh - 30px);
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  position: relative;
}

/* ========== INFO BAR (_info-bar.scss + _markup.scss) ========== */
/* No horizontal padding here — only .art-info-bar-frame has 0 15px (_markup).
   Adding both caused “box in box” (30px total inset vs original single gutter). */
/* Typography matches _common.scss body + info-bar text rhythm */
.art-info-bar {
  background: var(--info-bar-1);
  width: 290px;
  min-width: 290px;
  max-width: 290px;
  height: calc(100vh - 30px);
  position: relative;
  z-index: 999;
  box-shadow: var(--shadow-1);
  transition: 0.55s ease-in-out;
  box-sizing: border-box;
  overflow-x: hidden;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.5;
  -webkit-font-smoothing: subpixel-antialiased;
}

.art-info-bar .art-info-bar-frame {
  padding: 0 15px;
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

/* Mobile header — hidden on desktop (_markup.scss) */
.art-info-bar .art-info-bar-header {
  width: 100%;
  height: 70px;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 999999999999;
  display: none;
  box-sizing: border-box;
}

.art-info-bar .art-info-bar-btn {
  margin-left: auto;
  pointer-events: all;
  font-size: 14px;
  padding: 30px;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: var(--text-2);
}

.art-info-bar .art-info-bar-btn:hover {
  color: var(--text-1);
}

/* Fits inside .art-info-bar-frame (single 15px gutter — no root bar padding) */
.art-info-bar .art-header {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 99999;
  width: 100%;
  box-sizing: border-box;
  padding: 30px;
  height: 235px;
  background: linear-gradient(159deg, rgba(37, 37, 50, 0.98) 0%, rgba(35, 35, 45, 0.98) 100%);
  text-align: center;
  box-shadow: var(--shadow-2);
  border-bottom: 1px solid rgba(140, 140, 142, 0.06);
}

.art-info-bar .art-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 15px;
  border-radius: 50%;
  position: relative;
}

.art-info-bar .art-avatar .art-avatar-curtain {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  outline: inherit;
  transition: var(--tr-sm), box-shadow 0.2s ease;
  z-index: 0;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(140, 140, 142, 0.15);
}

.art-info-bar .art-avatar .art-avatar-curtain:hover {
  opacity: 1;
  outline: inherit;
  box-shadow: 0 0 0 2px rgba(140, 140, 142, 0.25);
}

.art-info-bar .art-avatar .art-avatar-curtain i {
  background: linear-gradient(159deg, rgba(45, 45, 58, 0.88) 0%, rgba(43, 43, 53, 0.88) 100%);
  width: 30px;
  height: 30px;
  text-align: center;
  align-self: center;
  font-weight: 700;
  font-size: 12px;
  line-height: 30px;
  color: var(--text-1);
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
  transition: var(--tr-md);
}

.art-info-bar .art-avatar .art-avatar-curtain img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 0;
  left: 0;
  top: 0;
}

.art-info-bar .art-avatar .art-avatar-curtain:hover i {
  opacity: 0.7;
}

.art-info-bar .art-avatar .art-avatar-curtain:hover i:hover {
  opacity: 1;
  transform: scale(1.07);
}

/* Availability lamp */
.art-info-bar .art-avatar .art-lamp-light {
  z-index: 2;
}

.art-info-bar .art-avatar .art-lamp-light::before {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 1px;
  background: var(--text-1);
  height: 23px;
  width: 23px;
  border-radius: 50%;
  animation: shell-puls 1s infinite;
}

@keyframes shell-puls {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.art-info-bar .art-avatar .art-available-lamp {
  position: absolute;
  bottom: 3px;
  right: 5px;
  height: 15px;
  width: 15px;
  background: var(--main-color);
  border-radius: 50%;
  z-index: 0;
  transition: var(--tr-md);
  overflow: visible;
}

/* Tooltip: SCSS uses position:relative on ::after — that keeps a layout box under the text area.
   Absolute + visibility fixes the phantom “extra box” while hover still matches the site. */
.art-info-bar .art-avatar .art-available-lamp::after {
  position: absolute;
  left: 28px;
  top: -10px;
  content: "I am available for freelance hire";
  width: 115px;
  display: block;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 200;
  font-family: "Poppins", sans-serif;
  color: var(--text-2);
  box-shadow: var(--shadow-2);
  background: var(--deep);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(20px);
  transition: var(--tr-md);
  text-align: left;
  white-space: normal;
  margin: 0;
}

.art-info-bar .art-avatar .art-available-lamp::before {
  content: "";
  position: absolute;
  height: 5px;
  width: 5px;
  right: -15px;
  top: 5px;
  opacity: 0;
  background: var(--deep);
  pointer-events: none;
  transform: translateX(20px) rotate(45deg);
  transition: var(--tr-md);
  z-index: 99;
}

.art-info-bar .art-avatar .art-available-lamp:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.art-info-bar .art-avatar .art-available-lamp:hover::before {
  opacity: 1;
  transform: translateX(0) rotate(45deg);
}

/* h5.art-name.mb-10 — .margin:0 was beating .mb-10 (higher specificity); keep 10px below name */
.art-info-bar .art-name {
  color: var(--text-1);
  transition: var(--tr-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 10px 0;
  padding: 0;
}

.art-info-bar .art-name a {
  color: var(--text-1);
  text-decoration: none;
  transition: var(--tr-md);
}

.art-info-bar .art-name:hover a {
  color: var(--main-color);
}

.art-info-bar .art-header .art-sm-text {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* Scroll / list areas still use global .art-sm-text size if needed */
.art-sm-text {
  font-size: 12px;
}

.art-muted {
  color: var(--text-3);
}

/* .mb-10 under last header line (availability) */
.art-info-bar .art-header .art-sm-text.art-muted.mb-10 {
  margin-bottom: 10px;
}

.p-15-15 {
  padding-top: 15px;
  padding-bottom: 15px;
}

.p-30-15 {
  padding-top: 30px;
  padding-bottom: 15px;
}

.p-15-0 {
  padding-top: 15px;
  padding-bottom: 0;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

/* Scroll area: _markup.scss .art-info-bar-frame .art-scroll-frame .scroll-content → 240px 0 50px */
.art-info-bar #scrollbar2.art-scroll-frame {
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 30px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 240px 0 50px;
}

/* _common.scss .art-table */
.art-info-bar .art-table {
  color: var(--text-2);
}

.art-info-bar .art-table ul {
  padding: 0;
  margin: 0;
}

.art-info-bar .art-table ul li {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.art-info-bar .art-table ul li:last-child {
  margin-bottom: 0;
}

.art-info-bar .art-table ul li h6 {
  padding-right: 20px;
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.45;
}

.art-info-bar .art-table ul li > span:nth-child(2) {
  text-align: right;
  font-size: 13px;
  line-height: 1.45;
}

/* _common .art-ls-divider + _enhancements */
.art-ls-divider {
  background: var(--text-3);
  width: 100%;
  height: 1px;
  opacity: 0.25;
}

/* .mb-15 must win — do not use margin:0 shorthand on h6 (was overriding .mb-15) */
.art-info-bar .art-knowledge-block > h6 {
  margin: 0 0 15px 0;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.35;
}

/* _info-bar.scss .art-knowledge-list */
.art-info-bar .art-knowledge-list {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.art-info-bar .art-knowledge-list li {
  list-style-type: none;
  margin-bottom: 5px;
  padding: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

.art-info-bar .art-knowledge-list li:last-child {
  margin-bottom: 0;
}

.art-info-bar .art-knowledge-list li::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f00c";
  margin-right: 10px;
  font-size: 9px;
  color: var(--main-color);
  display: inline-block;
  vertical-align: 0.1em;
}

/* _info-bar .art-ls-social */
.art-info-bar .art-ls-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  height: 50px;
  background: linear-gradient(159deg, rgba(37, 37, 50, 0.98) 0%, rgba(35, 35, 45, 0.98) 100%);
  position: absolute;
  bottom: 0;
  box-shadow: var(--shadow-2);
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 999;
}

/* _info-bar social links: no font-size in SCSS — inherit body 13px */
.art-info-bar .art-ls-social a {
  color: var(--text-2);
  transition: var(--tr-sm);
  font-size: 13px;
  line-height: 1;
}

.art-info-bar .art-ls-social a:hover {
  text-shadow: var(--text-neon);
  color: var(--text-1);
  transform: scale(1.1);
  opacity: 1;
}

/* ========== Main column + rail (unchanged shell) ========== */
.shell-main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  position: relative;
  min-height: calc(100vh - 30px);
}

/* Desktop: no curtain node */
.shell-mobile-curtain {
  display: none;
}

@media (min-width: 921px) {
  .shell-main-wrap::after {
    content: "";
    position: absolute;
    right: var(--rail-width);
    top: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(90deg, transparent 0%, rgba(25, 25, 35, 0.12) 100%);
    pointer-events: none;
    z-index: 5;
  }

  /*
   * Long main content: stretch sidebar + rail with the main column; window scrolls.
   */
  .shell-card {
    align-items: stretch;
  }

  .art-info-bar {
    height: auto;
    align-self: stretch;
    min-height: calc(100vh - 30px);
  }

  .art-info-bar .art-info-bar-frame {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
  }

  .art-info-bar #scrollbar2.art-scroll-frame {
    height: auto;
    flex: 1 1 auto;
    min-height: 10rem;
    max-height: none;
  }

  .shell-main-wrap {
    align-items: stretch;
    min-height: calc(100vh - 30px);
  }

  .shell-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  main.shell-scroll {
    flex: 0 0 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .shell-rail {
    align-self: stretch;
    min-height: calc(100vh - 30px);
  }
}

.shell-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--content-bg);
}

.shell-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2rem 1.75rem 0;
  -webkit-overflow-scrolling: touch;
  color: var(--text-1);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
}

.shell-content {
  max-width: 900px;
  margin: 0 auto;
  min-height: 35vh;
}

.shell-placeholder {
  margin: 0;
  padding: 2rem 1.25rem;
  border: 1px dashed var(--border-soft);
  border-radius: 4px;
  color: var(--text-3);
  font-size: 0.88rem;
  text-align: center;
  background: rgba(25, 25, 35, 0.25);
}

.container-fluid {
  overflow-x: hidden;
  padding: 0 30px;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
}

.p-30-0 {
  padding-top: 30px;
  padding-bottom: 0;
}

.footer {
  width: 100%;
  padding: 17px 30px 7px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(159deg, var(--card-a) 0%, var(--card-b) 100%);
  box-shadow: var(--shadow-2);
  font-size: 12px;
  color: var(--text-2);
  transition: 0.55s ease-in-out;
  z-index: 9;
}

.footer > div {
  margin-bottom: 10px;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: var(--tr-sm);
}

.footer a:hover {
  color: var(--text-1);
}

.art-copy {
  color: var(--text-2);
}

.footer-developer {
  color: var(--text-2);
  text-align: right;
}

.shell-rail {
  width: var(--rail-width);
  min-width: var(--rail-width);
  flex-shrink: 0;
  background: var(--info-bar-1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
  position: relative;
  z-index: 6;
}

.shell-rail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(140, 140, 142, 0.2) 20%,
    rgba(140, 140, 142, 0.25) 50%,
    rgba(140, 140, 142, 0.2) 80%,
    transparent 100%
  );
  pointer-events: none;
}

.shell-rail-header {
  width: 100%;
  height: 70px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(159deg, rgba(37, 37, 50, 0.98) 0%, rgba(35, 35, 45, 0.98) 100%);
  border-bottom: 1px solid rgba(140, 140, 142, 0.08);
}

.shell-rail-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.shell-rail-home:hover {
  color: var(--main-color);
  background: rgba(255, 255, 255, 0.04);
}

.shell-rail-home-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.shell-rail-spacer {
  flex: 1;
  min-height: 8px;
}

/* ========== Mobile (_markup max-width 920px) ========== */
@media (max-width: 920px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }

  .art-info-bar .art-info-bar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .shell-card {
    flex-direction: column;
    position: relative;
  }

  .shell-mobile-curtain.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(30, 30, 40, 0.88);
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
  }

  .art-info-bar {
    position: absolute;
    left: -290px;
    width: 290px;
    height: 100vh;
    transition: transform 0.2s ease-out;
    z-index: 997;
  }

  .art-info-bar.art-active {
    transform: translateX(290px);
    z-index: 1000;
  }

  .art-info-bar .art-info-bar-btn {
    transform: translateX(70px);
    transition: var(--tr-md);
  }

  .art-info-bar.art-active .art-info-bar-btn {
    transform: translateX(0);
  }

  #scrollbar2.art-scroll-frame {
    height: 100vh;
  }

  .shell-main-wrap {
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 100vw;
  }

  .shell-main-wrap::after {
    display: none !important;
  }

  .shell-scroll {
    min-height: 50vh;
  }

  .shell-rail {
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    order: -1;
    min-height: 56px;
  }

  .shell-rail-header {
    width: 100%;
    height: 56px;
    min-height: 56px;
    border-bottom: 1px solid var(--border-soft);
  }

  .shell-rail-spacer {
    display: none;
  }
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-developer {
    text-align: left;
  }
}

/* ========== Project detail page (RAG) — extends shell tokens ========== */
.proj-sidebar-links a {
  color: var(--text-2);
  text-decoration: none;
  transition: var(--tr-sm);
  border-bottom: 1px solid transparent;
}

.proj-sidebar-links a:hover {
  color: var(--main-color);
  border-bottom-color: rgba(255, 193, 7, 0.35);
}

.shell-content .proj-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-soft);
}

.proj-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.proj-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-1);
}

.proj-lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 52rem;
}

.proj-tldr {
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  max-width: 52rem;
  background: rgba(255, 193, 7, 0.07);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 4px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-2);
}

.proj-tldr p {
  margin: 0;
}

.proj-tldr strong {
  color: var(--text-1);
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.proj-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  background: rgba(45, 45, 58, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
}

.proj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.proj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--tr-sm), transform 0.15s ease;
}

.proj-btn-primary {
  background: var(--main-color);
  color: rgb(25, 25, 35);
  border-color: var(--main-color);
}

.proj-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.proj-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.proj-btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-soft);
}

.proj-btn-ghost:hover {
  border-color: rgba(255, 193, 7, 0.45);
  color: var(--main-color);
}

.proj-section {
  margin-bottom: 2.75rem;
}

.proj-section h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.02em;
}

.proj-section-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.55;
}

.proj-subheading {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.02em;
}

.proj-limitations-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-2);
}

.proj-limitations-list li {
  margin-bottom: 0.45rem;
}

.proj-limitations-list strong {
  color: var(--text-1);
}

.proj-arch-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
  margin: 0 0 0.5rem;
  padding: 0.75rem 0.85rem;
  background: rgba(25, 25, 35, 0.5);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}

.proj-arch-node {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(25, 25, 35);
  background: var(--main-color);
  border-radius: 3px;
  white-space: nowrap;
}

.proj-arch-arrow {
  color: var(--text-3);
  font-size: 0.85rem;
  user-select: none;
}

.proj-arch-caption {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.45;
}

.proj-prose {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-2);
}

.proj-prose p {
  margin: 0 0 1rem;
}

.proj-prose p:last-child {
  margin-bottom: 0;
}

.proj-prose strong {
  color: var(--text-1);
  font-weight: 600;
}

.proj-prose a {
  color: var(--main-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 193, 7, 0.35);
}

.proj-prose a:hover {
  border-bottom-color: var(--main-color);
}

.shell-content code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.84em;
  padding: 0.12em 0.35em;
  background: rgba(25, 25, 35, 0.85);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  color: var(--text-1);
}

.proj-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.proj-card {
  padding: 1.1rem 1.15rem;
  background: var(--card-s-light);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  box-shadow: var(--shadow-2);
}

.proj-card-title {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-1);
}

.proj-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-2);
}

.proj-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: projstep;
}

.proj-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-soft);
}

.proj-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.proj-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgb(25, 25, 35);
  background: var(--main-color);
  border-radius: 50%;
}

.proj-step-body {
  min-width: 0;
}

.proj-step-title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-1);
}

.proj-step-body p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-2);
}

.proj-tech-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-2);
}

.proj-tech-list li {
  margin-bottom: 0.4rem;
}

.proj-tech-list strong {
  color: var(--text-1);
}

.proj-demo-section {
  padding-top: 0.5rem;
}

.proj-demo {
  padding: 1.25rem 1.35rem;
  background: rgba(25, 25, 35, 0.45);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  max-width: 100%;
}

.proj-demo-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.45;
}

.proj-example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.proj-example-chip {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: rgba(45, 45, 58, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--tr-sm), border-color 0.15s ease;
  text-align: left;
  line-height: 1.35;
}

.proj-example-chip:hover {
  color: var(--text-1);
  border-color: rgba(255, 193, 7, 0.4);
  background: rgba(45, 45, 58, 0.85);
}

.proj-example-chip:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.35);
}

.proj-demo-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.proj-demo-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-1);
  background: var(--deep);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  resize: vertical;
  min-height: 4rem;
}

.proj-demo-input:focus {
  outline: none;
  border-color: rgba(255, 193, 7, 0.45);
}

.proj-demo-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.proj-demo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

/* [hidden] must win: a bare `display: flex` would override the UA display:none from the hidden attribute. */
.proj-demo-progress[hidden] {
  display: none !important;
}

.proj-demo-progress {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.22);
  border-radius: 4px;
  color: var(--text-1);
  font-size: 0.82rem;
  line-height: 1.45;
}

.proj-demo-spinner {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 193, 7, 0.25);
  border-top-color: var(--main-color);
  border-radius: 50%;
  animation: proj-spin 0.7s linear infinite;
}

@keyframes proj-spin {
  to {
    transform: rotate(360deg);
  }
}

.proj-demo-progress-text {
  color: var(--text-2);
}

.proj-demo-status {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.45;
  min-height: 1.2em;
}

.proj-demo-status.is-error {
  color: #e8a598;
}

.proj-demo-out-title {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.proj-sources-heading {
  margin-top: 1.25rem;
}

.proj-sources-lead {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.5;
}

.proj-answer-grounding {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-2);
  background: rgba(255, 193, 7, 0.06);
  border-left: 3px solid rgba(255, 193, 7, 0.45);
  border-radius: 0 3px 3px 0;
}

.proj-answer-grounding strong {
  color: var(--text-1);
  font-weight: 600;
}

.proj-demo-out .proj-demo-out-title + .proj-answer-grounding + .proj-demo-answer {
  margin-top: 0;
}

.proj-demo-answer {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--card-s-light);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  white-space: pre-wrap;
}

.proj-sources-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.proj-source-card {
  padding: 0.75rem 0.9rem;
  background: var(--card-s-light);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  box-shadow: var(--shadow-2);
}

.proj-source-doc {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.proj-source-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.proj-source-meta dt {
  margin: 0;
  color: var(--text-3);
  font-weight: 500;
}

.proj-source-meta dd {
  margin: 0;
  color: var(--text-2);
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  word-break: break-all;
}

.proj-sources-empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-3);
  font-style: italic;
}

.proj-context-details[hidden] {
  display: none !important;
}

.proj-context-details {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(25, 25, 35, 0.35);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}

.proj-context-summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-1);
  user-select: none;
}

.proj-context-summary:hover {
  color: var(--main-color);
}

.proj-context-note {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-3);
}

.proj-context-excerpt {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-2);
  background: var(--deep);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 14rem;
  overflow-y: auto;
}

/* Legacy: flat list if reused elsewhere */
.proj-sources {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-2);
}

.proj-sources li {
  margin-bottom: 0.35rem;
}
