/* SecureWebOps Journey Detail v2.20
 * Scoped to .swo-jd220 so the Hub and single-post UI remain untouched.
 */

.swo-jd220,
.swo-jd220 * { box-sizing: border-box; }

.swo-jd220 {
  --jd-ink: #0e1b33;
  --jd-muted: #5e6d84;
  --jd-blue: #146df5;
  --jd-blue-dark: #0d55cf;
  --jd-soft: #f7faff;
  --jd-line: #e3eaf4;
  --jd-card: #fff;
  --jd-green: #0b9f6e;
  --jd-radius: 14px;
  --jd-shadow: 0 12px 34px rgba(23, 54, 92, .07);
  color: var(--jd-ink);
  background: #fff;
  line-height: 1.58;
}

.page-template-page-journey-detail .site-content,
.swo-jd220-detail-active .site-content {
  display: block;
  padding: 0;
}
.page-template-page-journey-detail .content-area,
.swo-jd220-detail-active .content-area { width: 100%; }
.page-template-page-journey-detail .site-main,
.swo-jd220-detail-active .site-main { margin: 0; }

.swo-jd220-shell {
  width: min(calc(100% - 40px), 1180px);
  margin-inline: auto;
}

/* Hero */
.swo-jd220-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 0 34px;
  background:
    radial-gradient(circle at 82% 28%, rgba(20,109,245,.13), transparent 27%),
    linear-gradient(135deg,#fbfdff 0%,#f4f8ff 62%,#eef5ff 100%);
  border-bottom: 1px solid #edf2f8;
}
.swo-jd220-hero:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -250px;
  border: 55px solid rgba(20,109,245,.035);
  transform: rotate(45deg);
  border-radius: 72px;
  pointer-events: none;
}
.swo-jd220-breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  margin-bottom: 28px;
  color: #718098;
  font-size: 13px;
}
.swo-jd220-breadcrumb a {
  color: #587090;
  text-decoration: none;
}
.swo-jd220-breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swo-jd220-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 54px;
  align-items: start;
}
.swo-jd220-hero-main { padding: 4px 0 0; }
.swo-jd220-badge {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 4px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: #0758c9;
  background: #e9f2ff;
  font-size: 12px;
  font-weight: 800;
}
.swo-jd220 h1 {
  max-width: 800px;
  margin: 0;
  color: var(--jd-ink);
  font-size: clamp(34px,4.1vw,54px);
  line-height: 1.08;
  letter-spacing: -.042em;
}
.swo-jd220-hero-intro {
  max-width: 790px;
  margin: 15px 0 0;
  color: #53647e;
  font-size: 17px;
}
.swo-jd220-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 25px 32px;
  margin-top: 30px;
}
.swo-jd220-facts > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 145px;
}
.swo-jd220-fact-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  color: var(--jd-blue);
  background: #eaf3ff;
  flex: 0 0 auto;
}
.swo-jd220-fact-icon svg { width: 18px; height: 18px; }
.swo-jd220-facts strong,
.swo-jd220-facts small { display: block; }
.swo-jd220-facts strong { color: #172641; font-size: 14px; }
.swo-jd220-facts small { margin-top: 1px; color: #708097; font-size: 11px; }

.swo-jd220-progress {
  padding: 20px;
  border: 1px solid #dfe8f3;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 36px rgba(24,63,111,.08);
}
.swo-jd220-progress-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.swo-jd220-progress-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--jd-blue);
  background: #eef5ff;
}
.swo-jd220-progress-icon svg { width: 18px; height: 18px; }
.swo-jd220-progress-head strong,
.swo-jd220-progress-head small { display: block; }
.swo-jd220-progress-head strong { font-size: 15px; }
.swo-jd220-progress-head small { margin-top: 2px; color: #708097; font-size: 12px; }
.swo-jd220-progress-track {
  height: 7px;
  margin: 17px 0 20px;
  border-radius: 999px;
  background: #edf2f8;
  overflow: hidden;
}
.swo-jd220-progress-track span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#1979ff,#1268ee);
}
.swo-jd220-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}
.swo-jd220-button svg { width: 16px; height: 16px; }
.swo-jd220-button--primary {
  color: #fff !important;
  background: linear-gradient(135deg,#187bff,#0f63e7);
  box-shadow: 0 8px 20px rgba(20,109,245,.2);
}
.swo-jd220-button--ghost {
  margin-top: 9px;
  color: #315070 !important;
  border: 1px solid #dce5f0;
  background: #fff;
}

/* Tabs */
.swo-jd220-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--jd-line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}
.admin-bar .swo-jd220-tabs { top: 32px; }
.swo-jd220-tabs .swo-jd220-shell {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.swo-jd220-tabs .swo-jd220-shell::-webkit-scrollbar { display: none; }
.swo-jd220-tabs a {
  position: relative;
  flex: 0 0 auto;
  padding: 15px 2px 14px;
  color: #3f536f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.swo-jd220-tabs a.is-active { color: var(--jd-blue); }
.swo-jd220-tabs a.is-active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--jd-blue);
}

/* Body */
.swo-jd220-body {
  padding: 24px 0 18px;
  background: #fbfdff;
}
.swo-jd220-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 20px;
  align-items: start;
}
.swo-jd220-maincol,
.swo-jd220-sidebar {
  display: grid;
  gap: 18px;
}
.swo-jd220-card,
.swo-jd220-sidecard {
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius);
  background: var(--jd-card);
  box-shadow: 0 5px 18px rgba(34,65,101,.035);
}
.swo-jd220-card { padding: 24px; }
.swo-jd220-sidecard { padding: 19px; }
.swo-jd220-section-title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}
.swo-jd220-section-title > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--jd-blue);
  background: #edf5ff;
}
.swo-jd220-section-title svg { width: 20px; height: 20px; }
.swo-jd220-section-title h2,
.swo-jd220-side-title h2,
.swo-jd220-tip h2,
.swo-jd220-support h2 {
  margin: 0;
  color: #15233c;
  font-size: 20px;
  line-height: 1.25;
}
.swo-jd220-section-title p {
  margin: 4px 0 0;
  color: #738198;
  font-size: 12px;
}
.swo-jd220-outcome-box {
  padding: 16px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg,#f1f7ff,#edf5ff);
}
.swo-jd220-outcome-box ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.swo-jd220-outcome-box li {
  position: relative;
  padding-left: 23px;
  color: #40536f;
  font-size: 14px;
}
.swo-jd220-outcome-box li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--jd-blue);
  font-weight: 900;
}
.swo-jd220-conditions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}
.swo-jd220-conditions > div {
  padding: 14px 15px;
  border: 1px solid #e7edf5;
  border-radius: 9px;
  background: #fff;
}
.swo-jd220-conditions strong {
  color: #1d3150;
  font-size: 13px;
}
.swo-jd220-conditions p {
  margin: 5px 0 0;
  color: #64748c;
  font-size: 12px;
}

/* Steps */
.swo-jd220-step-list {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 8px;
}
.swo-jd220-step-list:before {
  content: "";
  position: absolute;
  left: 26px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: #dce9fb;
}
.swo-jd220-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 34px;
  gap: 13px;
  align-items: center;
}
.swo-jd220-step-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 4px solid #f3f8ff;
  border-radius: 50%;
  color: #0c66e5;
  background: #dcebff;
  font-size: 13px;
  font-weight: 900;
}
.swo-jd220-step-copy {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #e1e8f1;
  border-radius: 9px;
  background: #fff;
}
.swo-jd220-step h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.32;
}
.swo-jd220-step h3 a {
  color: #172641;
  text-decoration: none;
}
.swo-jd220-step h3 a:hover { color: var(--jd-blue); }
.swo-jd220-step-copy p {
  margin: 4px 0 0;
  color: #6a7890;
  font-size: 12px;
}
.swo-jd220-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 7px;
  color: #647994;
  font-size: 11px;
}
.swo-jd220-step-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #47607f;
  text-decoration: none !important;
}
.swo-jd220-step-arrow:hover { color: var(--jd-blue); background: #eef5ff; }
.swo-jd220-step-arrow svg { width: 17px; height: 17px; }

/* Audience */
.swo-jd220-audience-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}
.swo-jd220-audience-grid > div {
  padding: 14px;
  border: 1px solid #e5ebf3;
  border-radius: 9px;
  background: #fbfdff;
}
.swo-jd220-audience-grid strong,
.swo-jd220-audience-grid span { display: block; }
.swo-jd220-audience-grid strong { color: #1e3150; font-size: 13px; }
.swo-jd220-audience-grid span { margin-top: 5px; color: #6d7c91; font-size: 11px; }

/* Additional editorial content */
.swo-jd220-extra .entry-content > :first-child { margin-top: 0; }
.swo-jd220-extra .entry-content > :last-child { margin-bottom: 0; }
.swo-jd220-extra .entry-content h2 { font-size: 19px; }
.swo-jd220-extra .entry-content h3 { font-size: 17px; }

/* Sidebar */
.swo-jd220-sidebar {
  position: sticky;
  top: 70px;
}
.admin-bar .swo-jd220-sidebar { top: 102px; }
.swo-jd220-side-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}
.swo-jd220-side-title svg {
  width: 18px;
  height: 18px;
  color: var(--jd-blue);
}
.swo-jd220-side-title h2 { font-size: 16px; }
.swo-jd220-related-list { display: grid; gap: 6px; }
.swo-jd220-related-list a {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) 12px;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
  color: #1f304c;
  text-decoration: none;
  border-bottom: 1px solid #eff3f7;
}
.swo-jd220-related-list a:last-child { border-bottom: 0; }
.swo-jd220-related-list strong {
  font-size: 12px;
  line-height: 1.35;
}
.swo-jd220-related-list i {
  color: #617593;
  font-style: normal;
  font-size: 19px;
}
.swo-jd220-related-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg,#2a84ff,#1266e4);
  font-size: 13px;
  font-weight: 900;
}
.swo-jd220-resource-list { display: grid; gap: 7px; }
.swo-jd220-resource-list a {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 9px;
  align-items: center;
  padding: 7px 0;
  color: #25364f;
  text-decoration: none;
}
.swo-jd220-resource-list a > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #e4484e;
  background: #fff0f1;
}
.swo-jd220-resource-list svg { width: 17px; height: 17px; }
.swo-jd220-resource-list strong {
  font-size: 12px;
  line-height: 1.35;
}
.swo-jd220-tip {
  display: flex;
  gap: 11px;
  color: #116a52;
  border-color: #d7f0e7;
  background: linear-gradient(135deg,#f0fbf6,#effaf4);
}
.swo-jd220-tip-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #09946a;
  background: #dbf7eb;
}
.swo-jd220-tip-icon svg { width: 17px; height: 17px; }
.swo-jd220-tip h2 { color: #087257; font-size: 15px; }
.swo-jd220-tip p {
  margin: 4px 0 0;
  color: #4e7e70;
  font-size: 11px;
}
.swo-jd220-support {
  background: linear-gradient(135deg,#eef6ff,#f4f8ff);
}
.swo-jd220-support-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 50%;
  color: var(--jd-blue);
  background: #deedff;
}
.swo-jd220-support-icon svg { width: 19px; height: 19px; }
.swo-jd220-support h2 { font-size: 16px; }
.swo-jd220-support p {
  margin: 6px 0 13px;
  color: #61748e;
  font-size: 12px;
}
.swo-jd220-support a {
  display: block;
  padding: 10px 12px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  color: #0c62d9;
  background: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

/* Journey prev/next */
.swo-jd220-journey-nav {
  padding: 0 0 34px;
  background: #fbfdff;
}
.swo-jd220-journey-nav .swo-jd220-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.swo-jd220-journey-nav a {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 15px 17px;
  border: 1px solid var(--jd-line);
  border-radius: 10px;
  color: #1e304d;
  background: #fff;
  text-decoration: none;
}
.swo-jd220-journey-nav small {
  color: #74849a;
  font-size: 11px;
}
.swo-jd220-journey-nav strong {
  font-size: 13px;
  line-height: 1.35;
}
.swo-jd220-journey-next { text-align: right; }

/* Empty state */
.swo-jd220-empty {
  padding: 18px;
  border-radius: 9px;
  color: #52647c;
  background: #f7f9fc;
}
.swo-jd220-empty strong { color: #1c304f; }
.swo-jd220-empty p { margin: 5px 0 0; font-size: 12px; }

/* Responsive */
@media (max-width: 980px) {
  .swo-jd220-hero-grid,
  .swo-jd220-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 22px; }
  .swo-jd220-audience-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .swo-jd220-hero-grid,
  .swo-jd220-layout { grid-template-columns: 1fr; }
  .swo-jd220-progress { max-width: 520px; }
  .swo-jd220-sidebar { position: static; }
  .swo-jd220-conditions { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .swo-jd220-shell { width: min(calc(100% - 28px),1180px); }
  .swo-jd220-hero { padding-bottom: 26px; }
  .swo-jd220-breadcrumb { margin-bottom: 20px; }
  .swo-jd220 h1 { font-size: clamp(31px,10vw,42px); }
  .swo-jd220-hero-intro { font-size: 15px; }
  .swo-jd220-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .swo-jd220-card { padding: 18px; }
  .swo-jd220-step {
    grid-template-columns: 34px minmax(0,1fr);
  }
  .swo-jd220-step-index { width: 34px; height: 34px; }
  .swo-jd220-step-list:before { left: 23px; }
  .swo-jd220-step-arrow { display: none; }
  .swo-jd220-journey-nav .swo-jd220-shell { grid-template-columns: 1fr; }
  .swo-jd220-journey-next { text-align: left; }
}
@media (max-width: 420px) {
  .swo-jd220-facts { grid-template-columns: 1fr; }
  .swo-jd220-tabs .swo-jd220-shell { gap: 20px; }
}
