/* HT subscription popup — local mock / ready for later install.
   Visual language mirrors .htpw paywall card (1.0.5) with restyle navy/gold accents.
   Mobile: bottom sheet (not full-screen) per Google interstitial guidance.
   2026-11-09: border-box + visible 44px close + no horizontal overflow on mobile. */
.ht-subpop-root[hidden]{display:none!important}
.ht-subpop-root{
  --htpw-ink:#121212;
  --htpw-muted:#5c5c5c;
  --htpw-accent:#0B1F3A;
  --htpw-gold:#C9A227;
  --htpw-line:#e4dfd3;
  --htpw-card:#ffffff;
  --htpw-card-2:#faf8f3;
  --htpw-strong:#0B1F3A;
  --htpw-strong-ink:#ffffff;
  position:fixed;inset:0;z-index:99990;
  font-family:"Libre Franklin","Helvetica Neue",Helvetica,Arial,sans-serif;
  color:var(--htpw-ink);
  box-sizing:border-box;
}
.ht-subpop-root *,.ht-subpop-root *::before,.ht-subpop-root *::after{box-sizing:border-box}
.ht-subpop-backdrop{
  position:absolute;inset:0;
  background:rgba(11,31,58,.42);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
}
.ht-subpop-dialog{
  position:relative;z-index:1;
  width:min(760px,calc(100vw - 32px));
  max-width:100%;
  margin:12vh auto 0;
  padding:32px 28px 22px;
  border:1px solid var(--htpw-line);
  border-radius:14px;
  background:linear-gradient(180deg,var(--htpw-card) 0%,var(--htpw-card-2) 100%);
  box-shadow:0 1px 2px rgba(18,18,18,.04),0 24px 48px -16px rgba(11,31,58,.45);
  text-align:center;
  outline:none;
  overflow-x:hidden;
}
.ht-subpop-close{
  position:absolute;top:8px;right:8px;z-index:3;
  width:44px;height:44px;min-width:44px;min-height:44px;
  display:inline-flex;align-items:center;justify-content:center;
  padding:0;margin:0;border:0;border-radius:999px;
  background:rgba(18,18,18,.06);color:var(--htpw-ink);
  font-size:28px;font-weight:400;line-height:1;cursor:pointer;
  -webkit-appearance:none;appearance:none;
}
.ht-subpop-close:hover,.ht-subpop-close:focus-visible{
  color:var(--htpw-ink);background:rgba(18,18,18,.12);outline:none;
}
.ht-subpop-eyebrow{
  display:flex;align-items:center;justify-content:center;gap:12px;
  margin:0 36px 12px;color:var(--htpw-gold);
  font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
}
.ht-subpop-rule{display:block;width:28px;height:1px;background:currentColor;opacity:.55}
.ht-subpop-headline{
  max-width:28ch;margin:0 auto 8px;
  font-family:"Playfair Display",Georgia,"Times New Roman",serif;
  font-size:clamp(1.35rem,2.6vw,1.65rem);font-weight:700;line-height:1.28;letter-spacing:-.01em;
  text-wrap:balance;
}
.ht-subpop-dek{
  max-width:36ch;margin:0 auto 22px;color:var(--htpw-muted);
  font-size:14px;line-height:1.45;
}
.ht-subpop-options{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0;
  width:100%;max-width:100%;
}
.htpw .htpw-options{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.ht-subpop-option{
  position:relative;display:flex;flex-direction:column;align-items:stretch;
  gap:4px;padding:18px 14px 16px;text-decoration:none!important;
  border:1px solid var(--htpw-line);border-radius:12px;background:#fff;color:var(--htpw-ink);
  transition:border-color .15s,box-shadow .15s,transform .15s;
  min-width:0;max-width:100%;
}
.ht-subpop-option:hover{
  border-color:var(--htpw-accent);box-shadow:0 8px 20px -12px rgba(11,31,58,.35);transform:translateY(-1px);color:var(--htpw-ink);
}
.ht-subpop-option--monthly{
  background:var(--htpw-strong);color:var(--htpw-strong-ink);border-color:var(--htpw-strong);
}
.ht-subpop-option--monthly:hover{color:#fff;border-color:var(--htpw-gold);box-shadow:0 10px 24px -12px rgba(11,31,58,.55)}
.ht-subpop-badge{
  position:absolute;top:-9px;left:50%;transform:translateX(-50%);
  padding:3px 10px;border-radius:999px;background:var(--htpw-gold);color:#0B1F3A;
  font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;
}
.ht-subpop-name{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;opacity:.85}
.ht-subpop-price{font-family:"Playfair Display",Georgia,serif;font-size:1.85rem;font-weight:700;line-height:1;margin:4px 0}
.ht-subpop-per{font-size:0.9rem;font-weight:600}
.ht-subpop-note{font-size:12px;opacity:.75;margin-bottom:8px}
.ht-subpop-go{
  display:inline-block;margin-top:4px;padding:8px 10px;border-radius:6px;
  font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  background:rgba(11,31,58,.06);
  max-width:100%;
}
.ht-subpop-option--monthly .ht-subpop-go{background:var(--htpw-gold);color:#0B1F3A}
.ht-subpop-fine{
  margin:16px 0 0;font-size:11px;color:var(--htpw-muted);line-height:1.4;
}
.ht-subpop-fine a{color:var(--htpw-accent);text-decoration:underline;text-underline-offset:2px}

/* Mobile: compact bottom sheet — NOT full-screen interstitial */
@media (max-width:640px){
  .ht-subpop-backdrop{background:rgba(11,31,58,.35)}
  .ht-subpop-dialog{
    position:absolute;left:0;right:0;bottom:0;top:auto;
    width:100%;max-width:100%;margin:0;max-height:min(72vh,560px);
    border-radius:16px 16px 0 0;border-left:0;border-right:0;border-bottom:0;
    padding:22px 14px calc(16px + env(safe-area-inset-bottom,0px));
    overflow-x:hidden;overflow-y:auto;
  }
  .ht-subpop-close{
    top:6px;right:6px;z-index:5;
    width:44px;height:44px;min-width:44px;min-height:44px;
  }
  .ht-subpop-eyebrow{margin:0 40px 12px}
  .ht-subpop-headline{font-size:1.25rem;max-width:none}
  .ht-subpop-options,.htpw .htpw-options{grid-template-columns:1fr;gap:10px;width:100%}
  .ht-subpop-option{
    flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;
    gap:6px 10px;padding:14px 12px;text-align:left;
    width:100%;max-width:100%;min-width:0;
  }
  .ht-subpop-option--monthly{order:-1}
  .ht-subpop-badge{left:12px;transform:none;top:-8px}
  .ht-subpop-name{width:100%}
  .ht-subpop-price{margin:0;font-size:1.45rem;flex:0 0 auto}
  .ht-subpop-note{margin:0;flex:1 1 auto;min-width:0}
  .ht-subpop-go{
    margin:0;flex:0 1 auto;min-width:0;max-width:100%;
    white-space:normal;text-align:center;line-height:1.2;
  }
}
@media (prefers-reduced-motion:reduce){
  .ht-subpop-option{transition:none}
}
