/* SAP skill showcase — enterprise blue/navy theme (original mark; not trademark assets) */
.theme-sap {
  --sap-blue: #0062D6;
  --sap-blue-deep: #004BB0;
  --sap-navy: #1D2D3E;
  --sap-navy-2: #1A2B3C;
  --sap-panel: #FFFFFF;
  --sap-panel-soft: #F5F6F7;
  --sap-ink: #1D2D3E;
  --sap-muted: #556B82;
  --sap-line: #D9DEE4;
  --sap-orange: #E87B1E;
  --bg: #F5F6F7;
  --panel: var(--sap-panel);
  --line: var(--sap-line);
  --text: var(--sap-ink);
  --muted: var(--sap-muted);
  --accent: var(--sap-blue);
  --accent-2: var(--sap-blue-deep);
  --warn: #8A5A00;
  --danger: #AA0808;
  --ok: #256F3A;
  --shadow: 0 12px 40px rgba(10, 37, 64, 0.1);
  --radius: 14px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  color: var(--sap-ink);
  background:
    linear-gradient(180deg, #E8F2FA 0%, #F0F5FA 28%, #F7FAFC 100%);
  min-height: 100vh;
}

.theme-sap .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--sap-line);
  backdrop-filter: blur(12px);
}

.practice-note {
  display: inline-block;
  margin: 0.35rem 0 0.75rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: #E8F1FC;
  color: #004BB0;
  font-size: 0.88rem;
  font-weight: 700;
}

.theme-sap .brand { color: var(--sap-navy); }
.theme-sap .nav-links a { color: var(--sap-muted); }
.theme-sap .nav-links a:hover { color: var(--sap-blue-deep); }

.theme-sap a { color: var(--sap-blue); }
.theme-sap a:hover { color: var(--sap-blue-deep); }

.sap-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: start;
}

.sap-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 120px;
}

.sap-mark-img {
  width: 120px;
  height: 120px;
  display: block;
  border-radius: 22px;
  filter: drop-shadow(0 10px 24px rgba(0, 98, 214, 0.35));
}

/* Inline SVG fallback if the external SVG fails to load */
.sap-mark {
  display: none;
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 10px 24px rgba(0, 98, 214, 0.35));
}

.sap-mark.is-fallback {
  display: block;
}

.sap-mark-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sap-blue-deep);
  text-align: center;
  max-width: 14ch;
  line-height: 1.35;
}

.theme-sap .breadcrumb { color: var(--sap-muted); }
.theme-sap .breadcrumb a { color: var(--sap-muted); }
.theme-sap .eyebrow {
  color: var(--sap-blue-deep);
  letter-spacing: 0.1em;
}

.theme-sap .project-hero h1,
.theme-sap .sap-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  color: var(--sap-navy);
  margin: 0.35rem 0 0.7rem;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.theme-sap .lead {
  color: var(--sap-muted);
  max-width: 62ch;
  line-height: 1.65;
  margin: 0;
}

.sap-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.sap-pill {
  border: 1px solid var(--sap-line);
  background: #fff;
  color: var(--sap-navy);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.sap-pill.accent {
  border-color: rgba(232, 123, 30, 0.35);
  background: rgba(232, 123, 30, 0.08);
  color: #8A5A00;
}

.theme-sap .section h2 {
  font-family: var(--display);
  color: var(--sap-navy);
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
}

.theme-sap .section .sub {
  color: var(--sap-muted);
  margin: 0 0 1.25rem;
  max-width: 70ch;
}

.theme-sap .panel {
  background: var(--sap-panel);
  border: 1px solid var(--sap-line);
  box-shadow: var(--shadow);
}

.theme-sap .kpi {
  background: var(--sap-panel-soft);
  border: 1px solid var(--sap-line);
}

.theme-sap .kpi .label { color: var(--sap-muted); }
.theme-sap .kpi .value { color: var(--sap-navy); }

.theme-sap th { color: var(--sap-muted); }
.theme-sap td { color: var(--sap-ink); }
.theme-sap th,
.theme-sap td { border-bottom-color: var(--sap-line); }

.theme-sap .step-num {
  background: rgba(0, 98, 214, 0.1);
  color: var(--sap-blue-deep);
}

.theme-sap .footer {
  border-top-color: var(--sap-line);
  color: var(--sap-muted);
}

.theme-sap .btn-primary {
  background: #0062D6;
  color: #fff;
  border-radius: 8px;
}
.theme-sap .btn-primary:hover { background: #004BB0; color: #fff; }

.theme-sap .btn-ghost {
  border-color: var(--sap-line);
  color: var(--sap-navy);
  background: #fff;
  border-radius: 8px;
}

.theme-sap .btn-ghost:hover { border-color: var(--sap-blue); }

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.module-card {
  background: #fff;
  border: 1px solid var(--sap-line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.module-card:hover {
  border-color: rgba(0, 98, 214, 0.45);
  transform: translateY(-2px);
}

.module-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.module-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 32px;
  padding: 0 0.55rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sap-navy), var(--sap-navy-2));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.module-code.mm { background: linear-gradient(135deg, #0A4A6E, #0062D6); }
.module-code.fi { background: linear-gradient(135deg, #0A2540, #1B4F72); }
.module-code.co { background: linear-gradient(135deg, #123A5C, #0062D6); }
.module-code.sd { background: linear-gradient(135deg, #0D3B5C, #0062D6); }
.module-code.bw { background: linear-gradient(135deg, #0A2540, #6B4FBB); }
.module-code.hr { background: linear-gradient(135deg, #1E3A5F, #0062D6); }
.module-code.pm { background: linear-gradient(135deg, #1C3D5A, #037C77); }
.module-code.pp { background: linear-gradient(135deg, #0F3550, #0062D6); }

.module-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--sap-navy);
  line-height: 1.3;
}

.module-card .module-summary {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0;
  color: #1E3A5F;
  font-size: 0.92rem;
  line-height: 1.6;
  max-height: none !important;
  overflow: visible !important;
}

.module-card .skills-label,
.module-card .link-label {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sap-blue-deep);
}

.module-card ul {
  display: block !important;
  visibility: visible !important;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--sap-ink);
  font-size: 0.88rem;
  line-height: 1.55;
}

.module-card li { margin-bottom: 0.25rem; }

.module-card .migration-link {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: var(--sap-panel-soft);
  border-left: 3px solid var(--sap-orange);
  border-radius: 0 8px 8px 0;
  font-size: 0.84rem;
  color: var(--sap-ink);
  line-height: 1.5;
}

.sap-context {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.sap-context-item {
  background: #fff;
  border: 1px solid var(--sap-line);
  border-radius: 12px;
  padding: 1rem;
}

.sap-context-item strong {
  display: block;
  color: var(--sap-navy);
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.sap-context-item p {
  margin: 0;
  color: var(--sap-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.section-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent);
  border-top: 1px solid var(--sap-line);
  margin-top: 0.5rem;
  padding-top: 1.75rem;
}

.lab-anchor {
  scroll-margin-top: 80px;
}

.theme-sap .badge-ok { background: rgba(37, 111, 58, 0.12); color: #256F3A; }
.theme-sap .badge-warn { background: rgba(138, 90, 0, 0.12); color: #8A5A00; }
.theme-sap .badge-bad { background: rgba(170, 8, 8, 0.12); color: #AA0808; }

.disclaimer {
  font-size: 0.8rem;
  color: var(--sap-muted);
  border: 1px dashed var(--sap-line);
  background: var(--sap-panel-soft);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .sap-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .sap-logo-block { flex-direction: row; align-items: center; gap: 0.85rem; }
  .sap-mark-img,
  .sap-mark { width: 84px; height: 84px; border-radius: 16px; }
  .sap-mark-label { text-align: left; max-width: none; }
}


/* —— Swimlane + module flow (skim redesign) —— */
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.diagram-wrap {
  overflow-x: auto;
  border: 1px solid var(--line, #D4E2EF);
  border-radius: 16px;
  background: #fff;
  padding: 0.75rem;
}
.swimlane-svg { width: 100%; min-width: 720px; height: auto; display: block; }
.diagram-caption { color: #5A6F86; font-size: 0.95rem; margin-top: 0.75rem; }
.flow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}
.flow-node {
  flex: 1 1 160px;
  background: #fff;
  border: 1px solid var(--line, #D4E2EF);
  border-radius: 14px;
  padding: 1rem;
}
.flow-node h3 { margin: 0.35rem 0; color: var(--sap-navy, #0A2540); font-size: 1.05rem; }
.flow-node p { margin: 0; color: #5A6F86; font-size: 0.92rem; line-height: 1.45; }
.flow-kicker { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #0062D6; }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: #0062D6; font-size: 1.4rem; font-weight: 700; min-width: 1.25rem; }
.module-acc {
  border: 1px solid var(--line, #D4E2EF);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 1rem;
}
.module-acc summary { cursor: pointer; font-weight: 600; color: var(--sap-navy, #0A2540); }
.module-acc-body { margin-top: 0.75rem; color: #5A6F86; }
.module-acc-body p { margin: 0.4rem 0; }
.muted { font-weight: 500; color: #556B82; font-size: 0.9em; }
@media (max-width: 720px) {
  .flow-arrow { display: none; }
}
