/* ===== webioo-lift4b — reference detail page (pages/project.php). Class prefix: wpd- =====
   Loaded only by the project template; the shared bundles (webioo-project.min.css) stay untouched.
   Mobile first, no sticky/fixed layers: the fixed shell header owns the top stack. */
main.wpd {
  --wpd-n950: #020f2e; --wpd-n900: #031744; --wpd-n800: #00235a;
  --wpd-blue: #075ce8; --wpd-blue-hover: #0a4fc4; --wpd-sky: #8ab8ff; --wpd-ice: #e3edff;
  --wpd-ink: #071a52; --wpd-text: #3e4656; --wpd-muted: #5b6880; --wpd-line: rgba(16, 53, 119, .12);
  --wpd-tint: #f3f7ff; --wpd-r: 20px; --wpd-shadow: 0 24px 60px rgba(0, 35, 90, .12);
  display: block; position: relative; overflow: visible; overflow-x: clip;
  color: var(--wpd-text); background: #fff;
  font-family: var(--tc-body-font-family, 'Satoshi-Variable'), system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.6; font-weight: 500;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:where(main.wpd) *, :where(main.wpd) *::before, :where(main.wpd) *::after { box-sizing: border-box; }
:where(main.wpd) :is(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(main.wpd) ul { list-style: none; }
:where(main.wpd) img { display: block; max-width: 100%; height: auto; }
main.wpd .wpd-icon { flex: none; width: 18px; height: 18px; }

/* The visible trail lives inside the dark hero; the JSON-LD BreadcrumbList stays in the model. */
.wpd-crumbs { margin-bottom: 22px; }
.wpd-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; list-style: none; font-size: 14px; line-height: 1.4; }
.wpd-crumbs li { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: rgba(207, 224, 255, .72); overflow-wrap: anywhere; }
.wpd-crumbs li + li::before { content: "/"; color: rgba(207, 224, 255, .4); }
main.wpd .wpd-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: #cfe0ff; text-decoration: none; }
main.wpd .wpd-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.wpd-crumbs [aria-current] { color: #fff; font-weight: 600; }

.wpd-wrap { position: relative; width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* ------- buttons / links ------- */
.wpd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
main.wpd .wpd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: normal; text-align: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
main.wpd .wpd-btn--primary { color: #fff; background: var(--wpd-blue); box-shadow: 0 12px 28px rgba(7, 92, 232, .32); }
main.wpd .wpd-btn--primary:hover { color: #fff; background: var(--wpd-blue-hover); transform: translateY(-1px); }
main.wpd .wpd-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .04); }
main.wpd .wpd-btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); }
main.wpd .wpd-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--wpd-blue); font-weight: 700; text-decoration: none; }
main.wpd .wpd-link:hover { color: var(--wpd-blue-hover); }

.wpd-heading { color: var(--wpd-ink); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.04em; font-weight: 730; text-wrap: balance; overflow-wrap: anywhere; }

.wpd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wpd-tags li { padding: 6px 12px; border: 1px solid var(--wpd-line); border-radius: 999px; color: var(--wpd-ink); background: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.wpd-tags--light li { color: var(--wpd-ice); border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); }

/* ------- hero ------- */
.wpd-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: calc(var(--home2-top-offset, 126px) + 64px) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(circle at 84% 16%, rgba(31, 103, 232, .34), rgba(31, 103, 232, 0) 44%),
    linear-gradient(150deg, var(--wpd-n950) 0%, var(--wpd-n900) 52%, var(--wpd-n800) 100%);
}
.wpd-hero::before {
  position: absolute; inset: 0; z-index: -1; content: ""; opacity: .4; pointer-events: none;
  background-image: linear-gradient(rgba(94, 154, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 154, 255, .08) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.wpd-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.wpd-hero__copy { min-width: 0; }
.wpd-hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.wpd-hero__eyebrow span {
  display: inline-flex; align-items: center; min-height: 30px; padding: 5px 12px; border: 1px solid rgba(138, 184, 255, .28); border-radius: 999px;
  color: #cfe0ff; background: rgba(255, 255, 255, .06); font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere;
}
main.wpd .wpd-hero__eyebrow .wpd-hero__brand { color: #fff; border-color: rgba(7, 92, 232, .7); background: rgba(7, 92, 232, .34); }
main.wpd .wpd-hero__title { color: #fff; font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.045em; font-weight: 730; text-wrap: balance; overflow-wrap: anywhere; }
.wpd-hero__lede { max-width: 58ch; margin-top: 18px; color: rgba(226, 237, 255, .86); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.68; }
.wpd-hero .wpd-tags { margin-top: 22px; }
.wpd-hero .wpd-actions { margin-top: 30px; }
.wpd-hero__media {
  position: relative; min-width: 0; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px;
  background: #0b2152; box-shadow: 0 30px 80px rgba(0, 8, 30, .45);
}
.wpd-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.wpd-hero--text .wpd-hero__copy { max-width: 820px; }

/* ------- result highlight ------- */
.wpd-result { position: relative; z-index: 1; padding-top: 40px; }
.wpd-hero + .wpd-result { margin-top: -40px; padding-top: 0; }
.wpd-result__card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 22px;
  border: 1px solid var(--wpd-line); border-radius: 22px; background: #fff; box-shadow: var(--wpd-shadow);
}
.wpd-result__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; color: var(--wpd-blue); background: #e8f0ff; }
.wpd-result__icon .wpd-icon { width: 22px; height: 22px; }
main.wpd .wpd-result__title { margin-bottom: 8px; color: var(--wpd-blue); font-size: 12px; font-weight: 760; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.wpd-result__text { color: var(--wpd-ink); font-size: clamp(19px, 2vw, 25px); line-height: 1.45; font-weight: 650; letter-spacing: -.015em; overflow-wrap: anywhere; }
.wpd-result__text :is(p, ul, ol) { margin: 0 0 .6em; }
.wpd-result__text > :last-child { margin-bottom: 0; }

/* ------- story ------- */
.wpd-story { padding: var(--wsx-sec-y) 0; }
.wpd-story__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
.wpd-facts { min-width: 0; padding: 8px 22px; border: 1px solid var(--wpd-line); border-radius: var(--wpd-r); background: var(--wpd-tint); }
.wpd-facts__row { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--wpd-line); }
.wpd-facts__row:last-child { border-bottom: 0; }
.wpd-facts dt { color: var(--wpd-muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; }
.wpd-facts dd { color: var(--wpd-ink); font-size: 16px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
main.wpd .wpd-facts a { color: var(--wpd-blue); text-decoration: underline; text-underline-offset: 3px; }
.wpd-story__body { display: grid; gap: 40px; min-width: 0; }
.wpd-chapter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 32px; border-top: 1px solid var(--wpd-line); }
.wpd-story__body > .wpd-chapter:first-child { padding-top: 0; border-top: 0; }
.wpd-chapter__index { color: var(--wpd-blue); font-size: 14px; font-weight: 800; letter-spacing: .12em; line-height: 1.4; }
main.wpd .wpd-chapter__title { color: var(--wpd-ink); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.03em; font-weight: 720; overflow-wrap: anywhere; }
.wpd-rich { color: var(--wpd-text); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.8; overflow-wrap: anywhere; }
.wpd-rich :is(p, ul, ol, blockquote) { margin: 0 0 1em; }
.wpd-rich > :last-child { margin-bottom: 0; }
.wpd-rich ul { padding-left: 1.3em; list-style: disc; }
.wpd-rich ol { padding-left: 1.3em; list-style: decimal; }
.wpd-rich :is(h3, h4) { margin: 1.2em 0 .5em; color: var(--wpd-ink); font-size: 1.15em; line-height: 1.3; }
.wpd-rich a { color: var(--wpd-blue); text-underline-offset: 3px; }
.wpd-rich img { margin: 1em 0; border-radius: 14px; max-height: 320px; width: auto; object-fit: contain; } /* webioo-ref3: no oversized story images */
.wpd-rich :is(table, pre, iframe, video) { display: block; max-width: 100%; overflow-x: auto; }

/* ------- gallery (webioo-ref3: at most three small fixed-ratio tiles) ------- */
.wpd-gallery { padding-bottom: clamp(40px, 6vw, 72px); }
.wpd-gallery .wpd-heading { font-size: clamp(22px, 2.4vw, 30px); }
.wpd-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 660px; margin-top: 20px; }
.wpd-gallery__grid li { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--wpd-tint); }
.wpd-gallery__grid img { width: 100%; height: 100%; object-fit: cover; }

/* ------- visit the reference site (webioo-ref3) ------- */
.wpd-visit { padding-bottom: var(--wsx-sec-y); }
.wpd-story + .wpd-visit { padding-top: 0; }
.wpd-hero + .wpd-visit { padding-top: var(--wsx-sec-y); }
.wpd-visit__inner {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; padding: clamp(22px, 3vw, 32px) clamp(22px, 4vw, 40px);
  border: 1px solid var(--wpd-line); border-radius: var(--wpd-r); background: var(--wpd-tint);
}
.wpd-visit__copy { min-width: 0; }
main.wpd .wpd-visit__title { color: var(--wpd-ink); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.03em; font-weight: 720; overflow-wrap: anywhere; }
.wpd-visit__host { margin-top: 4px; color: var(--wpd-muted); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }

/* ------- native SEO blocks (short answer, FAQ, sources) ------- */
.wpd-seo { padding-bottom: var(--wsx-sec-y); }
.wpd-seo .wpd-wrap { display: grid; gap: 12px; max-width: 860px; }
.wpd-seo aside { padding: 20px 22px; border-left: 3px solid var(--wpd-blue); border-radius: 0 14px 14px 0; background: var(--wpd-tint); }
.wpd-seo details { border: 1px solid var(--wpd-line); border-radius: 14px; background: #fff; }
.wpd-seo summary { min-height: 48px; padding: 14px 18px; color: var(--wpd-ink); font-weight: 700; cursor: pointer; }
.wpd-seo details p { margin: 0; padding: 0 18px 16px; }

/* ------- similar work ------- */
.wpd-similar { padding: var(--wsx-sec-y) 0; background: var(--wpd-tint); }
.wpd-similar__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.wpd-similar__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
main.wpd .wpd-card__link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--wpd-line); border-radius: var(--wpd-r);
  color: inherit; background: #fff; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease;
}
main.wpd .wpd-card__link:hover { transform: translateY(-4px); box-shadow: var(--wpd-shadow); }
.wpd-card__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #e9f0fb; }
.wpd-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wpd-card__link:hover .wpd-card__media img { transform: scale(1.03); }
.wpd-card__body { display: grid; gap: 6px; padding: 20px 22px 22px; }
.wpd-card__body small { color: var(--wpd-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; overflow-wrap: anywhere; }
.wpd-card__body strong { color: var(--wpd-ink); font-size: 20px; font-weight: 720; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.wpd-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--wpd-blue); font-size: 14px; font-weight: 700; }

/* ------- closing CTA (card on white: no seam against the footer gap) ------- */
.wpd-cta { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); background: #fff; }
.wpd-cta__inner {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: clamp(28px, 5vw, 56px); overflow: hidden; border-radius: 28px; color: #fff;
  background: radial-gradient(circle at 88% 12%, rgba(31, 103, 232, .4), rgba(31, 103, 232, 0) 46%), linear-gradient(140deg, var(--wpd-n900) 0%, var(--wpd-n800) 100%);
}
main.wpd .wpd-cta__title { color: #fff; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.04em; font-weight: 730; text-wrap: balance; overflow-wrap: anywhere; }
.wpd-cta__text { margin-top: 10px; color: rgba(226, 237, 255, .84); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; }

@media (max-width: 479.98px) {
  /* wsxn2: the two actions share one row; labels wrap to two lines. */
  main.wpd .wpd-actions { flex-wrap: nowrap; gap: 8px; }
  main.wpd .wpd-btn { flex: 1 1 0; min-width: 0; padding: 10px 12px; gap: 8px; font-size: 14px; }
  main.wpd .wpd-btn .wpd-icon { width: 18px; height: 18px; flex: 0 0 auto; }
}
@media (max-width: 359.98px) {
  main.wpd .wpd-btn .wpd-icon { display: none; }
}
@media (min-width: 640px) {
  .wpd-result__card { grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 30px 32px; }
  .wpd-similar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wpd-chapter { grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
  .wpd-chapter__index { padding-top: .5em; }
  .wpd-chapter > :not(.wpd-chapter__index) { grid-column: 2; }
  .wpd-chapter__index { grid-row: 1 / span 2; }
}
@media (min-width: 768px) {
  .wpd-wrap { width: min(1200px, calc(100% - 64px)); }
  .wpd-hero { padding-top: calc(var(--home2-top-offset, 126px) + 80px); }
}
@media (min-width: 992px) {
  .wpd-hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(40px, 5vw, 72px); }
  .wpd-hero--text .wpd-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .wpd-hero + .wpd-result { margin-top: -56px; }
  .wpd-story__grid { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
  .wpd-story__grid > :only-child { grid-column: 1 / -1; max-width: 860px; }
  .wpd-story--facts .wpd-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); column-gap: 24px; }
  .wpd-story--facts .wpd-facts__row { border-bottom: 0; }
  .wpd-similar__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wpd-visit__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
  .wpd-cta__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  main.wpd .wpd-btn, main.wpd .wpd-card__link, .wpd-card__media img { transition: none; }
  main.wpd .wpd-btn:hover, main.wpd .wpd-card__link:hover, .wpd-card__link:hover .wpd-card__media img { transform: none; }
}
/* ===== /webioo-lift4b ===== */
