/* fix1 2026-11-03: footer link directory, breadcrumbs, mobile table fix */
.fx-dir{margin:18px 0 4px;padding-top:14px;border-top:1px solid rgba(127,127,127,.25)}
.fx-dir>b{display:block;margin:0 0 8px;font-size:14px}
.fx-dir ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px}
.fx-dir li{margin:0;padding:0}
.fx-dir a{font-size:13.5px;line-height:1.5;color:inherit;opacity:.85;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.fx-bc{max-width:1160px;margin:12px auto 0;padding:0 16px;font-size:13.5px;line-height:1.5;box-sizing:border-box}
.fx-bc ol{list-style:none;display:flex;flex-wrap:wrap;margin:0;padding:0}
.fx-bc li{margin:0;padding:0;min-width:0;overflow-wrap:anywhere}
.fx-bc li+li:before{content:"\203A";margin:0 7px;opacity:.6}
[dir=rtl] .fx-bc li+li:before{content:"\2039"}
.fx-bc a{color:inherit;text-decoration:underline;text-underline-offset:2px}
@media (max-width:700px){table.pt th,table.pt th bdi,table.pt td bdi{white-space:normal!important;overflow-wrap:anywhere}}

/* hero-mob 2026-11-11
   Mobile (<=768px): hero/cover image renders ABOVE the title so text never covers the photo.
   Desktop unchanged: article covers stay below the intro; homepage stays text-left / art-right.
   RTL (dir=rtl) uses the same column stack; order:-1 is independent of inline direction.

   2026-11-11 overflow fix: making main a column flex caused .w flex items
   (min-width:auto + margin:0 auto) to grow with the H1 and center themselves,
   so title/intro/CTA padding clipped on both sides. Constrain flex children
   to the viewport; keep .w horizontal padding (20px) and box-sizing.
*/

@media (max-width: 768px) {
  main:has(> .w > figure.pg-cv),
  main:has(> div > figure.pg-cv),
  main:has(> .w > figure.ph-cv) {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-width: 0;
  }
  main:has(> .w > figure.pg-cv) > *,
  main:has(> div > figure.pg-cv) > *,
  main:has(> .w > figure.ph-cv) > * {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }
  main:has(> .w > figure.pg-cv) > .w:has(> figure.pg-cv),
  main:has(> div > figure.pg-cv) > div:has(> figure.pg-cv),
  main:has(> .w > figure.ph-cv) > .w:has(> figure.ph-cv) {
    order: -1;
  }
  main:has(> .w > figure.pg-cv) > .w:has(> figure.pg-cv) .pg-cv,
  main:has(> div > figure.pg-cv) > div:has(> figure.pg-cv) .pg-cv,
  main:has(> .w > figure.ph-cv) > .w:has(> figure.ph-cv) .ph-cv {
    margin-top: 12px;
    margin-bottom: 4px;
    max-width: 100%;
  }
  main:has(> .w > figure.pg-cv) > .pg-h,
  main:has(> .w > figure.pg-cv) > section.pg-h {
    padding-top: 12px;
  }
  main:has(> .w > figure.pg-cv) .pg-h h1,
  main:has(> .w > figure.pg-cv) .pg-h p,
  main:has(> .w > figure.pg-cv) .pwa-nb {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  /* EN homepage hero6: show art above the title; don't drop .w side padding. */
  .hero6 .hero-in,
  .hero-in:has(> .hero-art) {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 16px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .hero6 .hero-t,
  .hero-in > .hero-t,
  .hero6 .hero-art,
  .hero-in > .hero-art {
    min-width: 0;
    max-width: 100%;
  }
  .hero6 .hero-art,
  .hero-in > .hero-art {
    display: flex !important;
    order: -1;
    justify-content: center;
    position: relative;
  }
  .hero6 .hero-art img,
  .hero-in > .hero-art img {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
  }

  /* CTA callout: headline + sub stack inside the existing flex row */
  .pwa-nb p strong { display: block; font-weight: 800; }
}

/* Safety at very narrow widths, including templates without a cover. */
@media (max-width: 768px) {
  .w, .fx-bc, .pwa-nb, .hero6, .sdp, .sd {
    max-width: 100%;
    box-sizing: border-box;
  }
  .w, .pg-h, .pwa-nb, .hero-t, .hero-in {
    min-width: 0;
  }
}
@media (max-width: 768px) {
  /* .pg-h{padding:26px 0 8px} is a shorthand that wipes .w's 20px side padding.
     On mobile that leaves the title, intro and CTA flush to the screen while
     the cover (a sibling .w without .pg-h) stays inset. Restore side padding
     on all .w.pg-h headers; desktop is unchanged. */
  .w.pg-h,
  .w.page-h,
  section.w.pg-h {
    padding-left: 20px;
    padding-right: 20px;
    padding-inline: 20px;
    box-sizing: border-box;
  }
}

/* pwa-nb 2026-11-11 — s6 on-brand CTA card
   Rich plum/pink card + transparent StrangerChat mark (no white tile)
   + solid primary button. Copy, href, data-* and rel are unchanged;
   no product names in the card copy. Logo on physical left in RTL. */

.pwa-nb{
  --nb-ink:#fff7fb;
  --nb-muted:#ffd6e4;
  --nb-btn:#ff8aa8;
  --nb-btn-ink:#241027;
  position:relative;
  isolation:isolate;
  overflow:visible;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px 16px;
  margin:16px 0;
  padding:18px 18px 18px 144px; /* physical left: 16 + 112px mark + 16 gap; does not flip in RTL */
  min-height:148px; /* 18 + 112 + 18 so the larger mark fits */
  max-width:100%;
  box-sizing:border-box;
  color:var(--nb-ink);
  border:1px solid rgba(255,201,217,.28);
  border-radius:20px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(226,51,107,.42), transparent 55%),
    radial-gradient(80% 80% at 100% 120%, rgba(255,201,217,.22), transparent 50%),
    linear-gradient(145deg, #2a0f2e 0%, #4a1546 58%, #7a1548 100%);
  box-shadow:
    0 14px 36px -18px rgba(42,15,46,.72),
    inset 0 1px 0 rgba(255,255,255,.14);
}
/* subtle dot pattern */
.pwa-nb:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.18;
  background-image:radial-gradient(rgba(255,201,217,.9) 1px, transparent 1.2px);
  background-size:14px 14px;
  border-radius:inherit;
  mask-image:linear-gradient(180deg,#000 40%,transparent 100%);
  -webkit-mask-image:linear-gradient(180deg,#000 40%,transparent 100%);
}
/* Site mark (/cta-mark.png), transparent, always physical left on desktop. */
.pwa-nb-logo{
  position:absolute;
  z-index:2;
  top:50%;
  left:16px;
  right:auto;
  width:112px;
  height:112px;
  margin-top:-56px;
  box-sizing:border-box;
  object-fit:contain;
  object-position:center;
  border:0;
  border-radius:0;
  background:transparent;
  pointer-events:none;
  box-shadow:none;
  filter:
    drop-shadow(0 3px 6px rgba(36,16,39,.40))
    drop-shadow(0 0 10px rgba(255,190,210,.50))
    drop-shadow(0 0 18px rgba(255,138,168,.40));
}
.pwa-nb p,
.pwa-nb a.pwa-nb-b{
  position:relative;
  z-index:2;
}
.pwa-nb p{
  margin:0;
  flex:1 1 200px;
  min-width:0;
  max-width:100%;
  color:var(--nb-muted);
  font-size:.95rem;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.pwa-nb p strong{
  display:block;
  margin:0 0 3px;
  color:var(--nb-ink);
  font-weight:800;
  font-size:1.08rem;
  letter-spacing:-.015em;
  line-height:1.25;
  overflow-wrap:anywhere;
}
a.pwa-nb-b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:0 1 auto;
  min-width:min(100%, 11.5rem);
  max-width:100%;
  min-height:48px;
  padding:12px 18px;
  box-sizing:border-box;
  border:0;
  border-radius:999px;
  background:var(--nb-btn);
  color:var(--nb-btn-ink)!important;
  font-size:1rem;
  font-weight:800;
  line-height:1.2;
  letter-spacing:-.01em;
  text-align:center;
  text-decoration:none;
  white-space:normal;
  overflow-wrap:anywhere;
  box-shadow:0 8px 20px -8px rgba(36,16,39,.55), inset 0 1px 0 rgba(255,255,255,.45);
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, filter .15s ease;
}
a.pwa-nb-b:after{
  content:"";
  width:1.05em;
  height:1.05em;
  flex:0 0 1.05em;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h12M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h12M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
[dir=rtl] a.pwa-nb-b:after{
  transform:scaleX(-1);
}
@media (hover:hover){
  a.pwa-nb-b:hover{
    background:#ffb3c7;
    transform:translateY(-1px);
    box-shadow:0 12px 26px -10px rgba(36,16,39,.6), inset 0 1px 0 rgba(255,255,255,.55);
  }
  a.pwa-nb-b:active{
    transform:translateY(0);
    filter:brightness(.96);
  }
}
a.pwa-nb-b:focus-visible{
  outline:3px solid #ffe3ee;
  outline-offset:3px;
}
@media (max-width:640px){
  .pwa-nb{
    padding:16px;
    padding-inline:16px 16px;
    padding-block-start:18px;
    align-items:stretch;
    min-height:0;
  }
  .pwa-nb-logo{
    top:18px;
    margin-top:0;
    width:90px;
    height:90px;
    left:auto;
    right:16px;
  }
  /* RTL (s6 /ar/): keep the mark on the physical left. */
  [dir=rtl] .pwa-nb-logo,
  :dir(rtl) .pwa-nb-logo{
    left:16px;
    right:auto;
  }
  /* Reserve end-side room for the corner mark so heading/sub wrap before it (RTL-safe). */
  .pwa-nb p{
    flex:1 1 100%;
    box-sizing:border-box;
    padding-inline-end:106px; /* 90px mark + 16px gap */
    min-height:90px; /* keep the button below the mark */
    max-width:100%;
  }
  .pwa-nb p strong{
    max-width:100%;
  }
  a.pwa-nb-b{
    flex:1 1 100%;
    width:100%;
  }
}
@media (prefers-reduced-motion:reduce){
  a.pwa-nb-b{transition:none}
  a.pwa-nb-b:hover,a.pwa-nb-b:active{transform:none}
}
