/* v10c Black — PJS headings, Helvetica body, Work Sans links */
/* Detail subpages: banners, emails, landing pages */
/* Overrides .detail-page white background — must use !important */

body.detail-ws {
  background: var(--page-bg) !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.detail-ws main {
  padding: 0 !important;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  background: transparent !important;
  overflow-x: auto;
}

.detail-ws .detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem max(3rem, 4vw);
  display: flex;
  /* V6.x — reduced gap between desc-col and preview-col (was 8rem). */
  gap: 4.5rem;
  align-items: flex-start;
}

.detail-ws .detail-container.detail-banner {
  max-width: 1400px;
  /* V6.x — reduced gap (was 2rem). */
  gap: 1.25rem;
}
.detail-ws .detail-container.detail-email {
  max-width: 2000px;
}
.detail-ws .detail-container.detail-lp {
  max-width: 2000px;
  /* V6.x — reduced gap (was 4rem). */
  gap: 2.5rem;
}

.detail-ws .desc-col {
  /* V6.x — narrower so short descriptions don't produce a huge whitespace
     gap between desc-col and preview-col (was 480px). Individual banner
     sizes can still override via .detail-container.detail-banner .desc-col. */
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: calc(60px + 3rem);
  overflow: visible;
  text-align: left;
}

.detail-ws .desc-breadcrumb {
  /* V6.x — mirror nav copy: Work Sans, calc size, 400, -0.03em, #d1d6ff */
  /* V6.x — SIMPLIFIED: dropped the flex layout (flex + baseline align +
     gap was producing inconsistent spacing across browsers once the
     flip-stage inline-block/overflow:hidden context was factored in).
     Back to plain inline block flow — items sit side-by-side with
     nothing but a small right-margin on .desc-breadcrumb a and span. */
  display: block;
  white-space: nowrap;
  font-family: "Work Sans", sans-serif;
  font-size: calc(0.95rem - 4.5px);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.03em;
  color: var(--page-text);
  text-align: left;
  margin-bottom: 2rem;
}

.detail-ws .desc-breadcrumb a {
  /* V6.x — base color matches nav copy; flip-inner handles rollover pink */
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
  color: var(--page-text);
  text-decoration: none;
  text-transform: none;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.detail-ws .desc-breadcrumb a:hover {
  /* V6.x — keep base color under the flip so nothing red flashes through */
  color: var(--page-text);
}
/* V6.x — SEPARATOR ONLY. Must use direct-child selector `> span` so
   this rule does NOT match .flip-stage / .flip-base / .flip-inner /
   .flip-ch (which are nested spans inside each <a>). The earlier
   generic `.desc-breadcrumb span` selector was forcing position:relative
   onto .flip-inner, which unwound its position:absolute out-of-flow
   behavior and caused the flip-stage to size itself to base + inner
   side-by-side — producing the huge gaps between breadcrumb items. */
.detail-ws .desc-breadcrumb > span {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.35rem 0 0;
  position: relative;
  top: -1px;
  color: var(--page-text);
  text-transform: none;
  letter-spacing: -0.03em;
}

/* V6.x — Keep per-char tracking tight. The flip-stage / flip-base /
   flip-inner / flip-ch are all display:inline-block; their per-element
   letter-spacing is force-set so the flip system doesn't re-airify the
   chars. NO width declarations here — earlier attempts to pin
   width/max-width on .flip-stage were causing the intrinsic-width
   calculation (with perspective+preserve-3d) to balloon in some engines,
   which spread the breadcrumb items apart. Removed. */
.detail-ws .desc-breadcrumb .flip-stage,
.detail-ws .desc-breadcrumb .flip-base,
.detail-ws .desc-breadcrumb .flip-inner,
.detail-ws .desc-breadcrumb .flip-ch {
  letter-spacing: -0.03em;
  word-spacing: 0;
  margin: 0;
  padding: 0;
}

/* V6.x — GUARANTEE pink rollover on breadcrumb. header.php sets
   .flip-inner { color:#ff29d1 } at specificity (0,1,0) — but
   .detail-ws .desc-breadcrumb a { color:#d1d6ff } at (0,3,0) creates
   the kind of cascade confusion where some engines resolve inherited
   color on the .flip-ch (which has no color of its own) from the
   higher-specificity ancestor rather than from .flip-inner's direct
   color. Pin it here with matching or higher specificity so the inner
   layer AND its per-char spans read pink at rest & on hover. Base
   layer keeps #d1d6ff via the .desc-breadcrumb a rule above. */
.detail-ws .desc-breadcrumb a .flip-inner,
.detail-ws .desc-breadcrumb a .flip-inner .flip-ch {
  color: #ff29d1;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
}
.detail-ws .desc-breadcrumb a:hover .flip-inner,
.detail-ws .desc-breadcrumb a:hover .flip-inner .flip-ch {
  color: #ff29d1;
}

.detail-ws .desc-col h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  /* V6.x — reduced per request: weight 900 → 600, smaller clamp, tighter tracking */
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  /* V6.x — rollover-blue to match index headings */
  color: #3d9bff;
  text-transform: capitalize;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: left;
  margin-bottom: 1rem;
}

.detail-ws .desc-col p {
  /* V6.x — mirror nav copy: Work Sans, calc size, 400, -0.03em, #d1d6ff */
  font-family: "Work Sans", sans-serif;
  font-size: calc(0.95rem - 4.5px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.03em;
  color: var(--page-text);
  text-align: left;
  margin-bottom: 2rem;
}

.detail-ws .desc-cta {
  /* V6.x — mirror nav copy size & family */
  /* V6.x — text-transform: none so HTML's "View Email"/"View Landing Page" render verbatim */
  font-family: "Work Sans", sans-serif;
  font-size: calc(0.95rem - 4.5px);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: none;
  /* V6.x — body-copy blue replaces rose */
  color: var(--page-text);
  border: none;
  padding: 0.5rem 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
  text-align: left;
  transition: all 0.3s ease;
  opacity: 0;
}

.detail-ws .desc-cta:hover {
  /* V6.x — keep base color; flip-inner provides the pink rollover */
  color: var(--page-text);
}
.detail-ws .desc-cta::after {
  /* V6.x — arrow removed per redesign; keep rule stub in case flip system targets ::after */
  display: none;
}

/* Sub-page nav — square with caret, animates to red on hover and click */
.detail-ws .peek-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  pointer-events: none;
}
.detail-ws .peek-prev {
  left: 0;
}
.detail-ws .peek-next {
  right: 0;
}
.detail-ws .peek-btn {
  /* V6.x — INVERTED scheme: pink arrow at rest over page-bg button.
     color drives the SVG stroke via currentColor, so arrow reads #ff29d1. */
  /* V6.x — match border to pink arrow at rest so the outline and
     arrow read as one hairline at rest; on hover the pill fills pink
     and border stays pink for a clean continuous edge. */
  /* V6.x — thinner border: drop the 1px solid to a 0.5px hairline.
     Safari and Chrome render border-width:0.5px as a true half-pixel
     hairline on hi-DPI displays; on 1x displays it snaps to 1px but
     still reads lighter than before due to subpixel rendering. Keeps
     the same pink #ff29d1 at rest and hover/active (where the pill
     fills pink and the border disappears into the fill). */
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  background: var(--page-bg);
  border: 0.5px solid #ff29d1;
  padding: 0 12px;
  cursor: pointer;
  text-decoration: none;
  color: #ff29d1;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.detail-ws .peek-btn-prev {
  border-left: none;
  border-radius: 0 4px 4px 0;
}
.detail-ws .peek-btn-next {
  border-right: none;
  border-radius: 4px 0 0 4px;
}
.detail-ws .peek-btn:hover,
.detail-ws .peek-btn:active {
  /* V6.x — INVERSION on hover/active: arrow becomes page-bg dark, pill fills pink,
     border matches pink for a clean edge. Pink-arrow-on-bg flips to dark-arrow-on-pink. */
  color: var(--page-bg);
  background: #ff29d1;
  border-color: #ff29d1;
}
.detail-ws .peek-btn svg {
  /* V6.x — stroke inherits button color so arrow matches bg at rest, pink on hover */
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.5px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Preview column */
.detail-ws .preview-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Email + LP pages: stack earlier (1400px) so preview gets full width for 1200px iframe */
@media (max-width: 1400px) {
  .detail-ws .detail-container.detail-email,
  .detail-ws .detail-container.detail-lp {
    flex-direction: column-reverse;
    align-items: center;
  }
  .detail-ws .detail-container.detail-email .preview-col,
  .detail-ws .detail-container.detail-lp .preview-col {
    width: 100%;
    max-width: 850px;
  }
}

/* Banner preview — 400px max for typical 300x250/728x90 ad sizes */
.detail-ws .banner-preview {
  width: 100%;
  max-width: 400px;
  min-width: 300px;
  min-height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #ecf0f6 0%, #d4d8ec 50%, #bcc4d8 100%);
  border-radius: 4px;
  border: 1px solid #222;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  opacity: 0;
  display: flex;
  align-items: flex-start;
  line-height: 0;
}

.detail-ws .banner-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.detail-ws .banner-preview iframe {
  width: 300px;
  height: 250px;
  min-width: 300px;
  min-height: 250px;
  border: 1px solid #000;
  box-sizing: content-box;
  display: block;
  background: #000;
  border-radius: 0;
  vertical-align: top;
}

.detail-ws .banner-preview:has(iframe) {
  border-radius: 0;
  border: none;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  background: var(--page-bg);
}
.detail-ws .banner-preview-360x450.banner-preview:has(iframe) {
  border-radius: 20px;
  box-shadow: none;
  background: var(--page-bg);
}

/* 300×600 banner */
.detail-ws .banner-preview-300x600 {
  min-width: 300px;
  min-height: 600px;
  border: none;
}
.detail-ws .banner-preview-300x600 iframe {
  width: 300px;
  height: 600px;
  min-width: 300px;
  min-height: 600px;
  vertical-align: top;
  border: 1px solid #000;
  box-sizing: content-box;
}

/* 360×450 banner */
.detail-ws .banner-preview-360x450 {
  min-width: 360px;
  min-height: 450px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--page-bg);
  border: none;
  box-shadow: none;
}
.detail-ws .banner-preview-360x450 iframe {
  width: 360px;
  height: 450px;
  min-width: 360px;
  min-height: 450px;
  vertical-align: top;
  border-radius: 0;
  background: var(--page-bg);
  border: none;
  box-sizing: border-box;
}

/* 800×600 banner (e.g. Mattress Tag, Tweezers) */
.detail-ws .banner-preview-800x600 {
  min-width: 800px;
  min-height: 600px;
  max-width: 800px;
  border: none;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}
.detail-ws .banner-preview-800x600 iframe {
  width: 800px;
  height: 600px;
  min-width: 800px;
  min-height: 600px;
  vertical-align: top;
  background: #000;
  border: 1px solid #000;
  box-sizing: content-box;
}

/* 800×600 on mobile: scale down to 300×225 (4:3) for Tweezers, Mattress Tag */
@media (max-width: 768px) {
  .detail-ws .banner-preview-800x600 {
    position: relative;
    min-width: 0;
    min-height: 0;
    max-width: min(300px, calc(100vw - 2rem));
    width: min(300px, calc(100vw - 2rem));
    aspect-ratio: 4 / 3;
  }
  .detail-ws .banner-preview-800x600 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 600px;
    min-width: 800px;
    min-height: 600px;
    transform: scale(0.375); /* 300/800 */
    transform-origin: 0 0;
  }
}
@media (max-width: 400px) {
  .detail-ws .banner-preview-800x600 {
    max-width: min(280px, calc(100vw - 1.5rem));
    width: min(280px, calc(100vw - 1.5rem));
  }
  .detail-ws .banner-preview-800x600 iframe {
    transform: scale(0.35); /* 280/800 */
  }
}

.detail-ws .preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

/* Email preview — fixed 600px width, black background for area below cut-off email */
.detail-ws .email-preview {
  width: 600px;
  min-width: 600px;
  max-width: 600px;
  height: 1814px; /* 0.9 of 2016px */
  overflow: hidden;
  background: #000;
  border-radius: 0;
  border: 1px solid #222;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  opacity: 0;
}

.detail-ws .email-preview iframe {
  width: 600px;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}

/* LP preview — 850px width */
.detail-ws .lp-preview {
  width: 850px;
  min-width: 850px;
  max-width: 850px;
  height: 2800px;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #222;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  opacity: 0;
}

.detail-ws .lp-preview iframe {
  width: 850px;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

/* Footer rules intentionally omitted here — detail-ws pages inherit the
   canonical .footer styles from style.css (Plus Jakarta 0.7rem, role in
   #ff29d1 pink, role-title in #3d9bff blue, copyright in --page-text,
   border-top rgba(255,255,255,0.06)). Previously this file overrode font
   size to 0.8rem, letter-spacing to 0.06em, .role to #ff0000 red, and
   omitted the .role-title rule, which made the detail-page footer look
   different from index/about/contact/resume. Unified. */

/* Nav — same as about/contact/resume (white bar, black text, logo gets same treatment, no active on logo) */
.detail-ws .nav {
  padding: 0 0.75% !important;
}
.detail-ws .nav .nav-logo {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .detail-ws .desc-col {
    width: 420px;
  }
  .detail-ws .detail-container {
    /* V6.x — reduced gap (was 5rem). */
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .detail-ws .detail-container {
    flex-direction: column-reverse;
    align-items: center;
  }
  .detail-ws .desc-col {
    width: 100%;
    position: static;
    max-width: 780px;
  }
  .detail-ws .detail-container.detail-banner .desc-col {
    max-width: 600px;
  }
  .detail-ws .detail-container.detail-lp .desc-col {
    max-width: 600px;
  }
  .detail-ws .lp-preview {
    height: 2000px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .detail-ws .lp-preview iframe {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .detail-ws main {
    margin-top: 50px;
  }
}
@media (max-width: 768px) {
  .detail-ws .detail-container {
    padding: 3rem 2rem;
    align-items: center;
  }
  .detail-ws .desc-col {
    max-width: 420px;
  }
  .detail-ws .detail-container.detail-banner .desc-col {
    max-width: 380px;
  }
  .detail-ws .detail-container.detail-email .desc-col {
    max-width: 420px;
  }
  .detail-ws .detail-container.detail-lp .desc-col {
    max-width: 420px;
  }
  .detail-ws .email-preview {
    height: 1361px;
  } /* 0.9 of 1512px */
}

@media (max-width: 850px) {
  .detail-ws .lp-preview {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .detail-ws .lp-preview iframe {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .detail-ws .detail-container {
    padding: 2rem 1.25rem;
    align-items: center;
  }
  .detail-ws .desc-col {
    max-width: 100%;
  }
  .detail-ws .detail-container.detail-banner .desc-col {
    max-width: 320px;
  }
  .detail-ws .detail-container.detail-email .desc-col {
    max-width: 340px;
  }
  .detail-ws .detail-container.detail-lp .desc-col {
    max-width: 340px;
  }
  .detail-ws
    .detail-container:not(.detail-banner):not(.detail-email):not(.detail-lp)
    .desc-col {
    max-width: 340px;
  }
  .detail-ws .email-preview {
    width: 100%;
    min-width: 0;
    max-width: 600px;
    height: 1058px; /* 0.9 of 1176px */
  }
  .detail-ws .email-preview iframe {
    width: 100%;
  }
  .detail-ws .lp-preview {
    height: 1600px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .detail-ws .lp-preview iframe {
    width: 100%;
  }
}
