/* TRT interest popup, re-themed to Steven's design: palette (navy #1D3363, blue
   #00486C, deep blue #003A57, sky #7FB6D6), Bebas Neue + Montserrat, boxed-RX logo.
   Loaded by partials/trt-interest.php on every page. */
.trt-modal{font-family:Montserrat,Helvetica,Arial,sans-serif;color:#1D3363}
.trt-modal h2,.trt-modal .trt-modal__title{font-family:"Bebas Neue",Impact,sans-serif;font-weight:400;text-transform:uppercase;letter-spacing:.02em;line-height:1;color:#1D3363}
.trt-modal .trt-modal__title{font-size:clamp(30px,3.4vw,40px)}
.trt-modal .eyebrow{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#00486C;margin:0 0 10px}
.trt-modal .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:Montserrat,sans-serif;font-weight:700;font-size:16px;border-radius:10px;padding:14px 22px;border:2px solid #00486C;background:#00486C;color:#fff;text-decoration:none;cursor:pointer;min-height:50px}
.trt-modal .btn:hover{background:#003A57;border-color:#003A57}
.trt-modal .btn.ghost{background:#fff;color:#00486C}.trt-modal .btn.ghost:hover{background:#f3f6fa}
.trt-modal .btn.block{width:100%}
.trt-modal .trt-modal__logo{height:26px;width:auto}
.trt-modal a{color:#00486C}

/* ===================================================== TRT INTEREST LIST ==
   Dyllen's Version B (menu tab + popup), 2026-10-29. */
/* ---------- shared bits ---------- */
.trt-dot{ position:relative; display:inline-block; width:8px; height:8px; border-radius:50%; background:#00486C; flex:none; }
.trt-dot::after{
  content:''; position:absolute; inset:0; border-radius:50%; background:#00486C;
  animation:trtPing 1.8s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes trtPing{ 0%{ transform:scale(1); opacity:.55; } 80%,100%{ transform:scale(2.8); opacity:0; } }

/* reveal-on-load stagger */
.trt-rv{ opacity:0; transform:translateY(16px); }
.is-live .trt-rv{ animation:trtUp .8s cubic-bezier(.16,1,.3,1) forwards; animation-delay:var(--d,0ms); }
@keyframes trtUp{ to{ opacity:1; transform:none; } }

/* ---------- VERSION B: menu tab ---------- */
.nav a.nav__trt{
  display:inline-flex; align-items:center; gap:9px;
  color:#003A57; font-weight:800; letter-spacing:.005em;
  border-bottom-color:#7FB6D6;
}
.nav a.nav__trt:hover{ color:#1D3363; border-bottom-color:#003A57; }

.trt-strip{ display:none; }
@media (max-width:1180px){
  .trt-strip{
    position:relative; overflow:hidden; isolation:isolate;
    display:flex; align-items:center; justify-content:center; gap:10px;
    background:#1D3363; color:#fff; text-decoration:none;
    font-size:14px; padding:12px 16px; border-bottom:1px solid #16284F;
  }
  .trt-strip:hover{ text-decoration:none; background:#16284F; }
  .trt-strip b{ font-weight:800; letter-spacing:.01em; }
  .trt-strip .trt-dot, .trt-strip .trt-dot::after{ background:#8FB0F0; }
  .trt-strip__go{ display:inline-flex; align-items:center; gap:6px; color:#C9D7F5; font-weight:600; }
  .trt-strip::after{
    content:''; position:absolute; top:0; bottom:0; left:-40%; width:30%; z-index:-1;
    background:linear-gradient(100deg,transparent,rgba(255,255,255,.12),transparent);
    animation:trtSheen 4.5s ease-in-out 1s infinite;
  }
}

/* ---------- POPUP ---------- */
.trt-modal[hidden]{ display:none; }
.trt-modal{ position:fixed; inset:0; z-index:500; }
.trt-modal__scrim{
  position:absolute; inset:0; background:rgba(16,28,58,.58);
  -webkit-backdrop-filter:blur(6px) saturate(1.1); backdrop-filter:blur(6px) saturate(1.1);
  opacity:0; transition:opacity .35s ease;
}
.trt-modal__wrap{
  position:absolute; inset:0; display:grid; place-items:center;
  padding:max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  overflow-y:auto; pointer-events:none;
}
.trt-modal__card{
  pointer-events:auto; position:relative;
  width:min(900px,100%); max-height:calc(100dvh - 32px);
  display:grid; grid-template-columns:.92fr 1.08fr;
  background:#fff; border-radius:22px; overflow:hidden;
  box-shadow:0 30px 80px rgba(8,15,35,.38), 0 2px 8px rgba(8,15,35,.12);
  opacity:0; transform:translateY(22px) scale(.96);
  transition:opacity .4s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
  outline:none;
}
.trt-modal.is-open .trt-modal__scrim{ opacity:1; }
.trt-modal.is-open .trt-modal__card{ opacity:1; transform:none; }
.trt-modal.is-closing .trt-modal__card{ transition-duration:.22s; transform:translateY(10px) scale(.98); }

.trt-modal__media{
  position:relative; min-height:100%;
  background:#BFE0F7 url("../../img/trt-modal.jpg") center 40% / cover no-repeat;
}
.trt-chip{
  position:absolute; z-index:2; top:16px; left:16px;
  display:inline-flex; align-items:center; gap:9px;
  background:rgba(255,255,255,.86); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  color:var(--brand-900, #1D3363); border:1px solid rgba(255,255,255,.9);
  font-size:11.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  padding:8px 13px; border-radius:999px; box-shadow:0 6px 18px rgba(16,28,58,.12);
}
.trt-modal__media .trt-chip{ top:18px; left:18px; }
.trt-modal__media::after{ /* ties the photo into the white panel */
  content:''; position:absolute; inset:auto 0 0 0; height:30%;
  background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.35));
}
.trt-modal__body{ padding:38px 40px 30px; overflow-y:auto; overscroll-behavior:contain; }
.trt-modal__logo{ height:24px; width:auto; margin:0 0 22px; }
.trt-modal__body .eyebrow{ margin-bottom:12px; }
.trt-modal__title{ font-size:clamp(24px,2.6vw,31px); line-height:1.12; letter-spacing:-.02em; color:#1D3363; margin:0 0 12px; }
.trt-modal__sub{ font-size:15.5px; line-height:1.55; color:#5a6785; margin:0 0 18px; }
.trt-perks{ list-style:none; padding:0; margin:0 0 22px; display:grid; gap:9px; }
.trt-perks li{ display:flex; gap:10px; font-size:14.5px; line-height:1.45; color:#5a6785; }
.trt-perks li svg{ margin-top:2px; }
.trt-perks b{ color:#1D3363; font-weight:700; }

.trt-field{ display:block; position:relative; }
.trt-field__label{ display:block; font-size:13px; font-weight:700; color:#1D3363; margin:0 0 7px; }
.trt-field__wrap{ position:relative; }
.trt-field__wrap svg{ position:absolute; left:16px; top:50%; transform:translateY(-50%); color:#7a86a1; pointer-events:none; transition:color .2s; }
.trt-input{
  width:100%; height:54px; padding:0 16px 0 46px;
  border:1.5px solid #dfe4ee; border-radius:12px; background:#fff;
  font-size:16px; color:#1D3363; outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.trt-input::placeholder{ color:#9AA1AF; }
.trt-input:focus{ border-color:#00486C; box-shadow:0 0 0 4px rgba(38,68,129,.14); }
.trt-field__wrap:focus-within svg{ color:#00486C; }
.trt-form.is-error .trt-input{ border-color:#b3261e; box-shadow:0 0 0 4px rgba(179,18,26,.10); }
.trt-form.is-error .trt-field{ animation:trtShake .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes trtShake{ 20%,80%{ transform:translateX(-2px); } 30%,50%,70%{ transform:translateX(-5px); } 40%,60%{ transform:translateX(5px); } }
.trt-err{ min-height:0; margin:8px 0 0; font-size:13px; font-weight:600; color:#b3261e; display:none; }
.trt-form.is-error .trt-err{ display:block; }
.trt-submit{ margin-top:14px; height:56px; padding-block:0; }
.trt-submit .trt-spin{ display:none; width:18px; height:18px; border-radius:50%; border:2.5px solid rgba(255,255,255,.35); border-top-color:#fff; animation:trtSpin .7s linear infinite; }
.trt-form.is-loading .trt-submit .trt-spin{ display:inline-block; }
.trt-form.is-loading .trt-submit .trt-bell{ display:none; }
@keyframes trtSpin{ to{ transform:rotate(360deg); } }
/* Notify Me: a light sheen crosses the button, then the bell rings */
.trt-btn{ position:relative; overflow:hidden; isolation:isolate; }
.trt-btn::after{
  content:''; position:absolute; top:0; bottom:0; left:-60%; width:45%; z-index:-1;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);
  transform:skewX(-18deg); animation:trtSheen 4.2s ease-in-out 1.6s infinite;
}
.trt-bell{ transform-origin:50% 2px; animation:trtRing 4.2s ease-in-out 2s infinite; }
@keyframes trtRing{
  0%,62%,100%{ transform:rotate(0); } 65%{ transform:rotate(16deg); } 70%{ transform:rotate(-14deg); }
  75%{ transform:rotate(10deg); } 80%{ transform:rotate(-6deg); } 85%{ transform:rotate(3deg); }
}
.trt-consent{ font-size:12px; line-height:1.5; color:#7a86a1; margin:12px 0 0; text-align:center; }
.trt-consent a{ text-decoration:underline; text-underline-offset:2px; }

.trt-legal{
  margin:20px 0 0; padding:14px 0 0; border-top:1px solid #eef1f6;
  font-size:11px; line-height:1.55; color:#7a86a1;
}
.trt-legal b{ color:#5a6785; }

/* staggered content entrance inside the popup */
.trt-modal .trt-st{ opacity:0; transform:translateY(10px); }
.trt-modal.is-open .trt-st{ animation:trtUp .6s cubic-bezier(.16,1,.3,1) forwards; animation-delay:calc(140ms + var(--i,0) * 55ms); }

/* success view */
.trt-done{ text-align:center; padding:8px 0 0; }
.trt-done[hidden], .trt-formview[hidden]{ display:none; }
.trt-check{ width:76px; height:76px; margin:6px auto 18px; position:relative; }
.trt-check svg{ width:76px; height:76px; }
.trt-check circle{ stroke-dasharray:214; stroke-dashoffset:214; }
.trt-check path{ stroke-dasharray:40; stroke-dashoffset:40; }
.trt-done.is-in .trt-check circle{ animation:trtDraw .7s cubic-bezier(.65,0,.35,1) forwards; }
.trt-done.is-in .trt-check path{ animation:trtDraw .45s cubic-bezier(.65,0,.35,1) .55s forwards; }
.trt-check::after{ content:''; position:absolute; inset:0; border-radius:50%; box-shadow:0 0 0 0 rgba(38,68,129,.35); }
.trt-done.is-in .trt-check::after{ animation:trtHalo 1.2s ease-out .9s; }
@keyframes trtDraw{ to{ stroke-dashoffset:0; } }
@keyframes trtHalo{ from{ box-shadow:0 0 0 0 rgba(38,68,129,.35); } to{ box-shadow:0 0 0 22px rgba(38,68,129,0); } }
.trt-done .trt-st2{ opacity:0; transform:translateY(8px); }
.trt-done.is-in .trt-st2{ animation:trtUp .6s cubic-bezier(.16,1,.3,1) forwards; animation-delay:calc(700ms + var(--i,0) * 80ms); }
.trt-done h2{ font-size:clamp(24px,2.6vw,30px); margin:0 0 10px; }
.trt-done p{ color:#5a6785; font-size:15.5px; margin:0 auto 22px; max-width:38ch; }
.trt-done__email{ color:#1D3363; font-weight:700; word-break:break-all; }

.trt-x{
  position:absolute; top:12px; right:12px; z-index:5;
  width:40px; height:40px; border-radius:50%; border:0; cursor:pointer;
  display:grid; place-items:center;
  background:rgba(255,255,255,.92); color:#1D3363;
  box-shadow:0 2px 10px rgba(16,28,58,.14);
  transition:transform .25s cubic-bezier(.16,1,.3,1), background .2s;
}
.trt-x:hover{ transform:rotate(90deg); background:#fff; }

/* popup — tablet & phone: single column, compact photo band on top */
@media (max-width:760px){
  .trt-modal__wrap{ padding:12px; }
  .trt-modal__card{ grid-template-columns:1fr; max-height:calc(100dvh - 24px); overflow-y:auto; overscroll-behavior:contain; border-radius:20px; }
  .trt-modal__media{
    min-height:0; height:124px;
    background:linear-gradient(180deg,#93C9EE 0%,#BADEF6 45%,#E2F2FC 80%,#F3FAFE 100%);
  }
  .trt-modal__media::before{
    content:''; position:absolute; top:50%; left:63%; height:132%; aspect-ratio:1/1;
    transform:translate(-50%,-46%);
    background:url("../../img/trt-modal.jpg") center / cover no-repeat;
    -webkit-mask-image:linear-gradient(90deg,transparent 4%,#000 30%,#000 70%,transparent 96%);
            mask-image:linear-gradient(90deg,transparent 4%,#000 30%,#000 70%,transparent 96%);
  }
  .trt-modal__media::after{ display:none; }
  .trt-modal__media .trt-chip{ top:12px; left:12px; font-size:10.5px; padding:6px 11px; }
  .trt-modal__body{ padding:16px 20px 16px; overflow:visible; }
  .trt-modal__logo{ display:none; }
  .trt-modal__body .eyebrow{ font-size:11px; margin-bottom:8px; }
  .trt-modal__title{ font-size:23px; margin-bottom:8px; }
  .trt-modal__sub{ font-size:14.5px; margin-bottom:14px; }
  .trt-perks{ gap:6px; margin-bottom:16px; }
  .trt-perks li{ font-size:13.5px; }
  .trt-field__label{ font-size:12.5px; margin-bottom:6px; }
  .trt-input{ height:50px; }
  .trt-submit{ height:52px; margin-top:10px; }
  .trt-consent{ margin-top:10px; font-size:11.5px; }
  .trt-legal{ margin-top:12px; padding-top:10px; font-size:10.5px; }
  .trt-x{ top:10px; right:10px; width:36px; height:36px; }
}
@media (max-width:760px) and (max-height:800px){
  .trt-modal__media{ height:104px; }
  .trt-perks{ display:none; }
  .trt-modal__sub{ margin-bottom:14px; }
}
html.trt-lock, html.trt-lock body{ overflow:hidden; }
@media (max-width:1180px){ .header__login{ display:none; } }

.entry-fork__path--soon{ grid-column:1 / -1; flex-direction:row; flex-wrap:wrap; align-items:baseline; gap:4px 12px;
  padding:12px 20px; background:transparent; border-style:dashed; box-shadow:none; }
.entry-fork__path--soon .entry-fork__title{ font-size:16px; }

