/* ==========================================================================
   PTC TECH STACK & CAREER TRANSITION MAP - 100% Full Bleed Edge-to-Edge Styles
   ========================================================================== */

:root {
  --board-bg: #ffffff;
  --board-frame: #e2e8f0;
  --marker-black: #0f172a;
  --marker-blue: #0284c7;
  --marker-blue-bg: #f0f9ff;
  --marker-green: #15803d;
  --marker-green-bg: #f0fdf4;
  --marker-rose: #be123c;
  --marker-rose-bg: #fff1f2;
  --marker-purple: #7e22ce;
  --marker-purple-bg: #faf5ff;
  --marker-orange: #c2410c;
  --marker-orange-bg: #fff7ed;
  
  --font-hand: 'Kalam', 'Caveat', cursive, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  font-size: clamp(14px, 0.95rem + 0.2vw, 16px);
  background-color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--marker-black);
  min-height: 100vh;
  padding: 0.35rem 0 1.5rem 0; /* Strict 0 left & right space */
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

code, span, p, div, li, strong, em, summary {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Whiteboard Container (Strict 100% Full Bleed) */
.board-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.whiteboard {
  background: var(--board-bg);
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0.65rem 0.5rem 1.25rem 0.5rem;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .whiteboard {
    border: none;
    padding: 1rem 1rem 1.5rem 1rem;
  }
}

/* Header */
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
}

.marker-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
}

.board-pin {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.marker-title h2 {
  font-family: var(--font-hand);
  font-size: clamp(1rem, 0.95rem + 0.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--marker-black);
}

.marker-note {
  font-family: var(--font-hand);
  font-size: clamp(0.8rem, 0.78rem + 0.2vw, 0.95rem);
  color: var(--marker-blue);
  font-weight: 700;
}

/* 3 Equal Columns Whiteboard Grid (Dynamic Full Width) */
.whiteboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1100px) {
  .whiteboard-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.board-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Marker Headers & Boxes */
.col-marker-header {
  margin-bottom: 0.15rem;
}

.box-title {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: clamp(0.92rem, 0.88rem + 0.3vw, 1.15rem);
  font-weight: 700;
  border: 2px solid var(--marker-black);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  background: #f8fafc;
  letter-spacing: 0.02em;
}

.box-software {
  color: var(--marker-black);
  border-color: var(--marker-black);
}

.box-ptc {
  color: var(--marker-green);
  border-color: var(--marker-green);
  background: var(--marker-green-bg);
}

.box-bt {
  color: var(--marker-rose);
  border-color: var(--marker-rose);
  background: var(--marker-rose-bg);
}

.box-common {
  color: var(--marker-blue);
  border-color: var(--marker-blue);
  background: var(--marker-blue-bg);
}

/* Column 1: Software Items List */
.board-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.marker-card {
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem 0.55rem;
  background: #ffffff;
  transition: border-color 0.15s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .marker-card {
    border-width: 2px;
    border-radius: 8px;
    padding: 0.85rem;
  }
}

.marker-card:hover {
  border-color: var(--marker-blue);
}

.card-windchill { border-left: 5px solid var(--marker-blue); }
.card-linux     { border-left: 5px solid var(--marker-orange); }
.card-db        { border-left: 5px solid var(--marker-purple); }
.card-network   { border-left: 5px solid var(--marker-blue); }
.card-cad       { border-left: 5px solid var(--marker-green); }
.card-cloud     { border-left: 5px solid #0284c7; }
.card-ptc       { border-left: 5px solid var(--marker-green); }
.card-bt        { border-left: 5px solid var(--marker-rose); }

.marker-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  margin-bottom: 0.35rem;
  width: 100%;
  min-width: 0;
}

details.marker-card summary.marker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
  list-style: none;
  width: 100%;
  min-width: 0;
}

details.marker-card summary::-webkit-details-marker {
  display: none;
}

details.marker-card[open] summary {
  margin-bottom: 0.45rem;
}

details.marker-card[open] .qa-toggle-icon {
  background: var(--marker-blue);
  color: #ffffff;
  transform: rotate(45deg);
}

.marker-heading-left {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  min-width: 0;
  flex: 1 1 auto;
}

.marker-arrow {
  color: var(--marker-blue);
  font-weight: bold;
}

.item-name {
  font-family: var(--font-hand);
  font-size: clamp(0.95rem, 0.92rem + 0.3vw, 1.1rem);
  color: var(--marker-black);
}

.item-chain {
  font-size: clamp(0.74rem, 0.72rem + 0.2vw, 0.82rem);
  font-weight: 700;
  color: #475569;
}

.marker-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: clamp(0.74rem, 0.72rem + 0.2vw, 0.82rem);
  color: #334155;
  line-height: 1.45;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.code-line {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.66rem + 0.2vw, 0.74rem);
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
  color: #0f172a;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.code-line code {
  color: var(--marker-blue);
  font-weight: 700;
}

/* Key Definition Box */
.key-def-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: clamp(0.72rem, 0.7rem + 0.2vw, 0.78rem);
  color: #334155;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.key-def-row {
  line-height: 1.4;
}

.key-def-row strong {
  color: #0f172a;
}

/* Linux Commands Grid */
.linux-cmd-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.4rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cmd-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 0.35rem;
  width: 100%;
  min-width: 0;
}

.cmd-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cmd-group-title {
  font-family: var(--font-hand);
  font-size: clamp(0.78rem, 0.76rem + 0.2vw, 0.84rem);
  font-weight: 700;
  color: #0f172a;
  width: 100%;
}

.cmd-chip {
  font-size: clamp(0.68rem, 0.65rem + 0.2vw, 0.73rem);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  color: #334155;
  width: 100%;
  max-width: 100%;
  display: block;
}

.cmd-chip code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--marker-blue);
}

/* Linux Permission Diagram Box */
.perm-diagram-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.perm-rule-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  font-size: clamp(0.68rem, 0.66rem + 0.2vw, 0.74rem);
  background: #ffffff;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  border: 1px dashed #cbd5e1;
  width: 100%;
  max-width: 100%;
}

.perm-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 600px) {
  .perm-columns-grid {
    grid-template-columns: 1fr;
  }
}

.perm-card-col {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 0.35rem 0.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  width: 100%;
}

.perm-card-col.perm-owner { border-top: 3px solid var(--marker-orange); }
.perm-card-col.perm-group { border-top: 3px solid var(--marker-blue); }
.perm-card-col.perm-other { border-top: 3px solid var(--marker-green); }

.perm-target-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
}

.perm-digit-badge {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.perm-math-text {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: #475569;
}

.perm-symbols {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--marker-blue);
}

.perm-desc-text {
  font-size: 0.66rem;
  color: #64748b;
  line-height: 1.2;
}

.perm-quick-examples {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: clamp(0.66rem, 0.64rem + 0.2vw, 0.71rem);
  padding-top: 0.25rem;
  border-top: 1px dashed #e2e8f0;
  width: 100%;
  max-width: 100%;
}

.perm-eg-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  width: 100%;
  max-width: 100%;
}

/* Linux Directory Hierarchy Box */
.dir-tree-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.dir-tree-root-banner {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  font-size: clamp(0.68rem, 0.66rem + 0.2vw, 0.74rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.dir-tree-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 600px) {
  .dir-tree-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .dir-tree-grid {
    grid-template-columns: 1fr;
  }
}

.dir-tree-node {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--marker-orange);
  border-radius: 4px;
  padding: 0.25rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  width: 100%;
}

.dir-node-path {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: #0f172a;
}

.dir-node-desc {
  font-size: 0.67rem;
  color: #475569;
  line-height: 1.2;
}

.marker-eg {
  font-size: clamp(0.72rem, 0.7rem + 0.2vw, 0.78rem);
  color: #64748b;
  width: 100%;
}

.marker-eg em {
  color: var(--marker-black);
  font-style: normal;
  font-weight: 700;
}

/* QA Accordion in Column 3 */
.qa-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.qa-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.qa-item[open] {
  border-color: var(--marker-blue);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
}

.qa-item summary {
  padding: 0.45rem 0.55rem;
  font-family: var(--font-hand);
  font-size: clamp(0.82rem, 0.78rem + 0.25vw, 0.88rem);
  font-weight: 700;
  color: var(--marker-black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  background: #f8fafc;
  user-select: none;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-title {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex: 1 1 auto;
  min-width: 0;
}

.qa-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--marker-blue);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.qa-item[open] .qa-toggle-icon {
  background: var(--marker-blue);
  color: #ffffff;
  transform: rotate(45deg);
}

.qa-answer {
  padding: 0.5rem 0.6rem;
  font-size: clamp(0.72rem, 0.7rem + 0.2vw, 0.78rem);
  line-height: 1.45;
  color: #334155;
  border-top: 1px dashed #e2e8f0;
  background: #ffffff;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.qa-answer p {
  margin-bottom: 0.3rem;
}

.qa-answer p:last-child {
  margin-bottom: 0;
}

.qa-answer ul {
  list-style: none;
  padding-left: 0.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.25rem;
  width: 100%;
}

.qa-answer ul li::before {
  content: "➔ ";
  color: var(--marker-blue);
  font-weight: bold;
}

.qa-answer code {
  font-family: var(--font-mono);
  background: #f1f5f9;
  color: var(--marker-blue);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: clamp(0.68rem, 0.66rem + 0.2vw, 0.74rem);
  font-weight: 700;
}

/* Board Footer */
.board-footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 2px dashed #cbd5e1;
  text-align: center;
  font-family: var(--font-hand);
  font-size: clamp(0.8rem, 0.78rem + 0.2vw, 0.92rem);
  color: #64748b;
  font-weight: 700;
  width: 100%;
}
