/* ============================================================================
 | NS theme — product detail page  (views/frontend/ns/product-detail.php)
 |
 | Everything here is scoped under .ns-pd and builds on the tokens already
 | declared by ns-theme.css. No new colours or faces are introduced.
 |
 | Why this file exists, in short: the legacy product page put the buy card in
 | `position:absolute` (so the description ran underneath it) and hid the whole
 | description behind Bootstrap tabs. This lays the page out as one grid with a
 | sticky rail, and renders the tab bodies as anchored sections instead.
 * ========================================================================== */

/* ---------- 0. PAGE IDENTITY ----------
   The prototype moved the display face off Playfair onto Bricolage Grotesque
   and tightened the scale. Scoped to .ns-pd so no other ns page shifts. */
.ns-pd{
  --pd-display:"Bricolage Grotesque","Plus Jakarta Sans","Segoe UI",Helvetica,Arial,sans-serif;
  /* ns-app.css styles headings as `body.ns-theme h1` — higher specificity than
     any class here. Rather than out-specify it, re-point the token it reads:
     custom properties resolve from the nearest ancestor that defines them, so
     every heading rule inside .ns-pd picks up the new face automatically. */
  --display:var(--pd-display);
}

/* ---------- 1. LAYOUT ---------- */
/* A warm band behind the masthead, fading into the cool page ground. */
.ns-pd{padding:94px 0 96px;position:relative}
.ns-pd::before{
  content:"";position:absolute;top:0;left:0;right:0;height:clamp(300px,36vh,420px);
  pointer-events:none;z-index:0;
  background:
    radial-gradient(760px 260px at 6% -22%, rgba(217,180,92,.30), transparent 62%),
    radial-gradient(620px 300px at 88% -30%, rgba(27,75,150,.10), transparent 66%),
    linear-gradient(180deg,var(--cream) 0%,color-mix(in srgb,var(--cream) 55%,#fff) 58%,transparent 100%);
}
.ns-pd .shell{position:relative;z-index:1}
.ns-pd__grid{
  display:grid;grid-template-columns:minmax(0,1fr) 352px;
  grid-template-areas:"head rail" "body rail";
  grid-template-rows:max-content 1fr;
  column-gap:50px;row-gap:0;align-items:start;
}
.ns-pd__head{grid-area:head;min-width:0}
.ns-pd__intro{min-width:0}
.ns-pd__main{grid-area:body;min-width:0}
.ns-pd__rail{grid-area:rail;min-width:0}

/* ---------- 2. HEAD ---------- */
.ns-pd__crumbs{font-size:11.5px;color:var(--faint);display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}
.ns-pd__crumbs a{text-decoration:none;color:inherit}
.ns-pd__crumbs a:hover{color:var(--ink-900);text-decoration:underline}
.ns-pd__eyebrow{
  display:inline-flex;align-items:center;gap:9px;margin-bottom:14px;
  font-family:var(--label,var(--body));font-size:10px;font-weight:800;
  letter-spacing:.2em;text-transform:uppercase;color:var(--gold-3);
}
.ns-pd__eyebrow::before{content:"";width:26px;height:3px;border-radius:3px;background:var(--gold-fill)}
.ns-pd__title{
  font-family:var(--pd-display);font-size:clamp(27px,3.1vw,38px);line-height:1.08;
  font-weight:700;letter-spacing:-.034em;margin:0;max-width:17ch;color:var(--ink-900);
  overflow-wrap:break-word;
}
.ns-pd__oos{font-size:.6em;font-weight:600;color:var(--coral);letter-spacing:0;white-space:nowrap}
.ns-pd__note{
  margin:14px 0 0;font-size:14.5px;color:var(--muted);max-width:58ch;line-height:1.6;
}
.ns-pd__tagline{
  display:inline-flex;align-items:center;margin-left:6px;padding:4px 12px;border-radius:100px;
  background:linear-gradient(140deg,rgba(247,227,176,.85),rgba(217,180,92,.30));
  box-shadow:inset 0 0 0 1px rgba(168,128,31,.30);
  font-size:12.5px;font-weight:700;color:var(--gold-3);
}

/* ---------- 3. SECTION NAV ---------- */
.ns-pd__nav{
  position:sticky;top:76px;z-index:40;display:flex;gap:4px;margin:40px 0 26px;padding:6px;
  background:rgba(255,255,255,.86);backdrop-filter:blur(14px) saturate(1.4);
  border:1px solid var(--line);border-radius:100px;overflow-x:auto;scrollbar-width:none;
  box-shadow:0 1px 2px rgba(12,31,61,.05),0 12px 26px -20px rgba(12,31,61,.4);
}
.ns-pd__nav::-webkit-scrollbar{display:none}
.ns-pd__nav a,
.ns-pd__nav button{
  flex:none;display:inline-flex;align-items:center;gap:7px;text-decoration:none;
  font-family:var(--body);font-size:12.5px;font-weight:600;color:var(--muted);
  padding:8px 16px;border-radius:100px;white-space:nowrap;border:0;background:transparent;
  cursor:pointer;line-height:1.5;transition:.24s var(--ease);
}
.ns-pd__nav svg{width:14px;height:14px;flex:none;opacity:.7;transition:.24s var(--ease)}
.ns-pd__nav a:hover,
.ns-pd__nav button:hover{color:var(--ink-900);background:var(--paper-3)}
.ns-pd__nav a.is-on,
.ns-pd__nav button.is-on{
  background:linear-gradient(150deg,#16345A,var(--ink-900));color:var(--cream);
  box-shadow:0 6px 14px -8px rgba(12,31,61,.9),inset 0 1px 0 rgba(255,255,255,.12);
}
.ns-pd__nav button.is-on svg{opacity:1;color:var(--gold-2)}
.ns-pd__nav button:focus-visible{outline:2.5px solid var(--gold-2);outline-offset:2px}
/* only the selected panel is in the page */
.ns-pd__sec[hidden]{display:none}

/* ---------- 4. SECTIONS ---------- */
.ns-pd__sec{scroll-margin-top:150px;margin-bottom:46px}
.ns-pd__sec:last-child{margin-bottom:0}
.ns-pd__sechead{
  display:flex;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap;
  padding-bottom:12px;border-bottom:1px solid var(--line);position:relative;
}
/* a short gold tick under the title, echoing the eyebrow's mark */
.ns-pd__sechead::after{
  content:"";position:absolute;left:0;bottom:-1px;width:46px;height:2px;
  border-radius:2px;background:var(--gold-fill);
}
.ns-pd__sectitle{
  font-family:var(--pd-display);font-size:22px;font-weight:700;
  letter-spacing:-.03em;margin:0;color:var(--ink-900);
}
.ns-pd__seccount{
  font-family:var(--body);font-size:11px;font-weight:700;color:var(--muted);
  padding:3px 11px;border-radius:100px;background:var(--paper-3);
  border:1px solid var(--line);letter-spacing:.01em;
}

/* ---------- 5. ADMIN-PASTED PROSE ----------
   The description/index/faculty bodies are WYSIWYG HTML, and most of them are
   Google Sheets pastes carrying inline `font-family:Century; font-size:16pt`
   and pink row fills on every cell. Those inline styles beat any normal rule,
   so the resets below are deliberately !important and deliberately narrow —
   they neutralise pasted typography and let the page's own scale through. */
.ns-pd__prose{color:var(--muted);font-size:14.5px;line-height:1.68}
.ns-pd__prose > *:first-child{margin-top:0}
.ns-pd__prose p{margin:0 0 13px}
.ns-pd__prose h1,.ns-pd__prose h2,.ns-pd__prose h3,.ns-pd__prose h4{
  font-family:var(--pd-display);color:var(--ink-900);letter-spacing:-.02em;
  margin:22px 0 10px;line-height:1.25;
}
.ns-pd__prose h1{font-size:20px}
.ns-pd__prose h2{font-size:18px}
.ns-pd__prose h3,.ns-pd__prose h4{font-size:16px}
.ns-pd__prose strong,.ns-pd__prose b{color:var(--ink-900);font-weight:600}
.ns-pd__prose a{color:var(--blue-2);text-decoration:underline;text-underline-offset:2px}
.ns-pd__prose a:hover{color:var(--ink-900)}
.ns-pd__prose ul,.ns-pd__prose ol{margin:0 0 14px;padding-left:20px}
.ns-pd__prose li{margin-bottom:6px}
.ns-pd__prose img{max-width:100%;height:auto;border-radius:10px}
.ns-pd__prose iframe{max-width:100%;border-radius:10px}

/* pasted tables become the page's own spec sheet */
.ns-pd__prose table{
  width:100%!important;min-width:420px;border-collapse:collapse!important;
  border:0!important;table-layout:auto!important;margin:0;font-family:var(--body)!important;
}
.ns-pd__prose .ns-pd__tablewrap{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:14px;background:#fff}
.ns-pd__prose table td,.ns-pd__prose table th{
  font-family:var(--body)!important;font-size:13.5px!important;font-weight:400!important;
  color:var(--muted)!important;background:transparent!important;
  border:0!important;border-top:1px solid var(--line)!important;
  padding:11px 18px!important;vertical-align:top!important;line-height:1.55!important;
  height:auto!important;white-space:normal!important;
}
/* the label column: first cell of every row */
.ns-pd__prose table tr > td:first-child,
.ns-pd__prose table tr > th:first-child{
  font-weight:600!important;color:var(--ink-900)!important;
  width:210px!important;background:rgba(237,241,244,.55)!important;
}
.ns-pd__prose table tr:first-child > td,
.ns-pd__prose table tr:first-child > th{border-top:0!important}
/* a merged full-width first row is a heading, not a label */
.ns-pd__prose table td[colspan]{
  font-family:var(--pd-display)!important;font-size:15px!important;font-weight:700!important;
  color:var(--ink-900)!important;letter-spacing:-.02em!important;
  background:var(--paper-3)!important;width:auto!important;
}
/* inline spans inside cells inherit rather than shouting */
.ns-pd__prose table td *,.ns-pd__prose table th *{
  font-family:inherit!important;font-size:inherit!important;
  background:transparent!important;line-height:inherit!important;
}
.ns-pd__prose table td a,.ns-pd__prose table th a{
  color:var(--blue-2)!important;font-weight:600!important;
}
.ns-pd__prose table col{width:auto!important}

/* ---------- 5b. SPEC SHEET ----------
   Four groups, each with its own accent so the eye can jump between them.
   The accents are theme colours used as coding, not decoration. */
.ns-pd__specs{display:grid;gap:14px}
.ns-pd__specgroup{
  --accent:var(--blue-2);
  position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;
  overflow:hidden;box-shadow:0 1px 2px rgba(12,31,61,.04);
}
.ns-pd__specgroup[data-g="access"]  {--accent:#7A5A12}
.ns-pd__specgroup[data-g="devices"] {--accent:#0F7A52}
.ns-pd__specgroup[data-g="delivery"]{--accent:#C2451F}
.ns-pd__specgroup[data-g="other"]   {--accent:#5B6472}
.ns-pd__specgroup > h3{
  display:flex;align-items:center;gap:10px;margin:0;
  padding:13px 20px 13px 18px;border-bottom:1px solid var(--line);
  background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 8%,#fff),#fff 62%);
  font-family:var(--body);font-size:10px;font-weight:800;letter-spacing:.16em;
  text-transform:uppercase;color:var(--ink-900);
}
/* the group's colour, carried as a bar down the head */
.ns-pd__specgroup > h3::before{
  content:"";position:absolute;left:0;top:0;width:3px;height:44px;background:var(--accent);
}
.ns-pd__specgroup > h3 svg{color:var(--accent);flex:none}
.ns-pd__speclist{margin:0;display:grid;grid-template-columns:210px minmax(0,1fr)}
.ns-pd__speclist dt,.ns-pd__speclist dd{
  margin:0;padding:12px 20px;border-top:1px solid var(--line);font-size:13.5px;
  display:flex;align-items:center;flex-wrap:wrap;gap:6px;
}
.ns-pd__speclist dt:first-of-type,.ns-pd__speclist dt:first-of-type + dd{border-top:0}
.ns-pd__speclist dt{
  font-weight:600;color:var(--muted);background:color-mix(in srgb,var(--paper-3) 48%,#fff);
}
.ns-pd__speclist dd{
  font-family:var(--num);font-weight:600;color:var(--ink-900);font-variant-numeric:tabular-nums;
}
.ns-pd__speclist dd em{
  font-style:normal;font-family:var(--body);font-size:11.5px;font-weight:400;
  color:var(--faint);display:block;width:100%;line-height:1.5;
}
.ns-pd__chip{
  display:inline-flex;align-items:center;font-family:var(--body);font-size:11.5px;
  font-weight:600;padding:4px 11px;border-radius:100px;white-space:nowrap;
  border:1px solid color-mix(in srgb,var(--accent) 26%,var(--line));
  background:color-mix(in srgb,var(--accent) 7%,#fff);
  color:color-mix(in srgb,var(--accent) 78%,var(--ink-900));
}
.ns-pd__chip.pos{
  border-color:color-mix(in srgb,var(--mint) 45%,transparent);color:var(--mint);
  background:color-mix(in srgb,var(--mint) 10%,transparent);
}

/* ---------- 5c. STUDY MATERIAL ---------- */
/* ---------- 5c. STUDY MATERIAL — a shelf of books ----------
   Each title is a bound volume: spine on the left, cloth cover, page edges on
   the fore-edge. Covers cycle through a library palette so a set reads as
   distinct books; the cycle repeats every eight, so any number works. */
.ns-pd__books{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(146px,1fr));
  gap:18px 16px;align-items:end;
}
.ns-pd__book{
  --book:#16324F;
  /* a richer cover: light falling from the head of the book, the cloth
     deepening toward the tail, and a gold bloom picked up from the theme */
  --cover:
    radial-gradient(150% 90% at 50% -12%, rgba(255,255,255,.22), transparent 58%),
    radial-gradient(90% 60% at 88% 104%, rgba(217,180,92,.16), transparent 62%),
    linear-gradient(163deg,
      color-mix(in srgb,var(--book) 72%,#fff) 0%,
      color-mix(in srgb,var(--book) 94%,#fff) 26%,
      var(--book) 52%,
      color-mix(in srgb,var(--book) 80%,#000) 82%,
      color-mix(in srgb,var(--book) 62%,#000) 100%);
  position:relative;display:flex;flex-direction:column;align-items:center;
  justify-content:flex-start;text-align:center;
  aspect-ratio:33/46;padding:26px 10px 16px 26px;overflow:hidden;
  border-radius:3px 10px 10px 3px;background:var(--cover);color:#F8F3E8;
  box-shadow:
    0 1px 1px rgba(12,31,61,.22),
    0 12px 24px -13px rgba(12,31,61,.58),
    inset -1px 0 0 rgba(255,255,255,.12);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
/* the spine, with its hinge highlight */
.ns-pd__book::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:17px;z-index:2;
  background:linear-gradient(90deg,
    rgba(0,0,0,.48) 0%, rgba(0,0,0,.22) 55%,
    rgba(255,255,255,.17) 84%, rgba(0,0,0,.28) 100%);
}
/* the fore-edge: stacked paper */
.ns-pd__book::after{
  content:"";position:absolute;right:0;top:5px;bottom:5px;width:5px;z-index:2;
  border-radius:0 3px 3px 0;opacity:.9;
  background:repeating-linear-gradient(180deg,#FBF7EE 0 2px,#CFC7B6 2px 3px);
}
/* cloth weave, plus a hairline foil frame inset on the cover */
.ns-pd__book-cloth{
  position:absolute;inset:7px 9px 7px 23px;pointer-events:none;
  border:1px solid rgba(233,214,166,.24);border-radius:2px 5px 5px 2px;
  background:repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 2px, transparent 2px 4px);
}
.ns-pd__book-emblem{
  position:relative;z-index:1;display:block;
  color:var(--gold-1);opacity:.8;line-height:0;
}
.ns-pd__book-rule{
  position:relative;z-index:1;display:block;margin:7px auto 9px;
  width:30px;height:2px;border-radius:2px;background:var(--gold-fill);opacity:.9;
}
.ns-pd__book-title{
  position:relative;z-index:1;
  font-family:var(--pd-display);font-size:16px;font-weight:700;
  line-height:1.24;letter-spacing:-.014em;text-wrap:balance;overflow-wrap:break-word;
  text-shadow:0 1px 3px rgba(0,0,0,.34);
}
.ns-pd__book:hover{
  transform:translateY(-6px) rotate(-.7deg);
  box-shadow:
    0 2px 2px rgba(12,31,61,.24),
    0 22px 38px -17px rgba(12,31,61,.64),
    inset -1px 0 0 rgba(255,255,255,.16);
}

/* ---- a real cover, when one has been uploaded ----
   The image becomes the face of the book; the spine, fore-edge and a soft
   gradient stay on top so it still reads as a bound volume rather than a
   flat thumbnail. The title moves onto a scrim so it survives a busy cover. */
.ns-pd__book-img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  border-radius:3px 10px 10px 3px;
}
.ns-pd__book.has-cover{background:#0C1F3D}
.ns-pd__book.has-cover .ns-pd__book-cloth{
  inset:0;border:0;border-radius:3px 10px 10px 3px;
  background:
    linear-gradient(180deg, rgba(6,16,30,.62) 0%, rgba(6,16,30,.12) 34%, rgba(6,16,30,.05) 62%, rgba(6,16,30,.42) 100%),
    linear-gradient(100deg, rgba(0,0,0,.30) 0%, transparent 26%);
}
.ns-pd__book.has-cover .ns-pd__book-emblem,
.ns-pd__book.has-cover .ns-pd__book-rule{display:none}
.ns-pd__book.has-cover .ns-pd__book-title{
  margin-top:0;text-shadow:0 1px 4px rgba(0,0,0,.72),0 0 18px rgba(0,0,0,.45);
}

/* the library palette */
.ns-pd__book:nth-child(8n+1){--book:#16324F}  /* deep navy   */
.ns-pd__book:nth-child(8n+2){--book:#6B2230}  /* burgundy    */
.ns-pd__book:nth-child(8n+3){--book:#1D4A3A}  /* forest      */
.ns-pd__book:nth-child(8n+4){--book:#6A5117}  /* brass       */
.ns-pd__book:nth-child(8n+5){--book:#402247}  /* plum        */
.ns-pd__book:nth-child(8n+6){--book:#14484F}  /* teal        */
.ns-pd__book:nth-child(8n+7){--book:#6B3A1B}  /* cognac      */
.ns-pd__book:nth-child(8n+8){--book:#2A3A63}  /* indigo      */

@media (prefers-reduced-motion:reduce){
  .ns-pd__book:hover{transform:none}
}

/* ---------- 5d. SCAN & PAY ---------- */
.ns-pd__paygrid{
  display:grid;grid-template-columns:156px minmax(0,1fr);gap:26px;align-items:start;
  background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;
}
.ns-pd__qr{
  aspect-ratio:1;border-radius:12px;background:#fff;border:1px solid var(--line);
  display:grid;place-items:center;padding:10px;
}
.ns-pd__qr img{width:100%;height:100%;object-fit:contain;display:block}
.ns-pd__qrnote{font-size:10px;text-align:center;color:var(--faint);margin:8px 0 0;letter-spacing:.04em}
.ns-pd__steps{list-style:none;margin:0;padding:0;display:grid;gap:13px;counter-reset:s}
.ns-pd__steps li{display:flex;gap:12px;align-items:flex-start;counter-increment:s}
.ns-pd__steps li::before{
  content:counter(s);flex:none;width:23px;height:23px;border-radius:50%;
  display:grid;place-items:center;background:var(--ink-900);color:var(--cream);
  font-family:var(--num);font-size:11px;font-weight:700;margin-top:1px;
}
.ns-pd__steps b{display:block;font-size:13.5px;margin-bottom:1px;color:var(--ink-900)}
.ns-pd__steps span{font-size:12.5px;color:var(--muted);line-height:1.55}
.ns-pd__steps strong{color:var(--ink-900);font-weight:700}
.ns-pd__fields{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}

.ns-pd__soon{
  margin:0;padding:18px 20px;border:1px dashed var(--line-2);border-radius:13px;
  background:#fff;color:var(--muted);font-size:13.5px;line-height:1.6;
}

/* ---------- 5e. HELP & SUPPORT ---------- */
.ns-pd__contacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(252px,1fr));gap:14px}
.ns-pd__contact{
  position:relative;overflow:hidden;padding:18px 20px 20px;border-radius:18px;
  display:flex;flex-direction:column;gap:14px;
  background:linear-gradient(158deg,#fff 0%,#FCFAF5 58%,#F7F2E7 100%);
  border:1px solid var(--line);
  box-shadow:0 1px 2px rgba(12,31,61,.05),0 10px 26px -18px rgba(12,31,61,.4);
  transition:.26s var(--ease);
}
/* a thin gold hairline along the head of the card */
.ns-pd__contact::before{
  content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--gold-fill);
}
.ns-pd__contact:hover{
  transform:translateY(-3px);border-color:color-mix(in srgb,var(--gold-2) 46%,transparent);
  box-shadow:0 2px 3px rgba(12,31,61,.06),0 20px 36px -20px rgba(12,31,61,.5);
}
.ns-pd__contact-top{display:flex;align-items:center;gap:10px}
.ns-pd__contact-badge{
  flex:none;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;
  color:var(--gold-3);background:linear-gradient(145deg,rgba(247,227,176,.9),rgba(217,180,92,.42));
  box-shadow:inset 0 0 0 1px rgba(168,128,31,.28);
}
.ns-pd__contact-role{
  font-family:var(--body);font-size:10px;font-weight:800;letter-spacing:.15em;
  text-transform:uppercase;color:var(--muted);line-height:1.4;
}
.ns-pd__contact-val{font-family:var(--num);font-size:14px;color:var(--ink-900)}
.ns-pd__contact-nums{display:flex;flex-wrap:wrap;gap:10px}

.ns-pd__num{
  display:inline-flex;align-items:center;gap:10px;padding:5px 5px 5px 13px;
  border-radius:100px;background:#fff;border:1px solid var(--line-2);
  box-shadow:inset 0 1px 0 #fff, 0 1px 2px rgba(12,31,61,.05);
}
.ns-pd__tel{
  font-family:var(--num);font-size:15px;font-weight:700;letter-spacing:.015em;
  color:var(--ink-900);font-variant-numeric:tabular-nums;white-space:nowrap;
}
.ns-pd__acts{display:inline-flex;gap:6px}
/* The theme styles bare <a> colour with more weight than a single class, which
   left these icons dark navy on a mid-tone disc — almost invisible. Qualify
   with the page scope so the white wins without !important, and deepen the
   green so a white mark clears the non-text contrast threshold on it. */
.ns-pd .ns-pd__act{
  width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
  color:#fff;text-decoration:none;transition:.2s var(--ease);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32);
}
.ns-pd .ns-pd__act svg{
  fill:#fff;filter:drop-shadow(0 1px 1px rgba(0,0,0,.35));
}
.ns-pd .ns-pd__act--call{background:linear-gradient(150deg,#2C63B5,#0F2C5C)}
.ns-pd .ns-pd__act--wa{background:linear-gradient(150deg,#14A05A,#0A5F3D)}
.ns-pd .ns-pd__act:hover{transform:translateY(-2px) scale(1.06)}
.ns-pd .ns-pd__act--call:hover{box-shadow:0 8px 15px -6px rgba(44,99,181,.85),inset 0 1px 0 rgba(255,255,255,.32)}
.ns-pd .ns-pd__act--wa:hover{box-shadow:0 8px 15px -6px rgba(11,107,69,.85),inset 0 1px 0 rgba(255,255,255,.32)}
.ns-pd .ns-pd__act:focus-visible{outline:2.5px solid var(--gold-2);outline-offset:2px}

.ns-pd__subhead{
  font-family:var(--pd-display);font-size:21px;letter-spacing:-.028em;color:var(--ink-900);
}
.ns-pd .ns-pd__subhead{margin:44px 0 16px}
.ns-pd__channels{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:12px}
.ns-pd__channel{
  --brand:#1B4B96;
  position:relative;display:flex;align-items:center;gap:12px;overflow:hidden;
  padding:13px 15px;border-radius:15px;text-decoration:none;
  background:linear-gradient(140deg,color-mix(in srgb,var(--brand) 9%,#fff) 0%,#fff 62%);
  border:1px solid color-mix(in srgb,var(--brand) 20%,var(--line));
  box-shadow:0 1px 2px rgba(12,31,61,.05);
  transition:.26s var(--ease);
}
/* a soft brand bloom that lifts on hover */
.ns-pd__channel::after{
  content:"";position:absolute;right:-30%;top:-70%;width:74%;height:190%;border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb,var(--brand) 30%,transparent),transparent 68%);
  opacity:.35;transition:.3s var(--ease);pointer-events:none;
}
.ns-pd__channel:hover{
  transform:translateY(-3px);
  border-color:color-mix(in srgb,var(--brand) 48%,transparent);
  box-shadow:0 2px 3px rgba(12,31,61,.06),0 16px 28px -16px color-mix(in srgb,var(--brand) 70%,transparent);
}
.ns-pd__channel:hover::after{opacity:.6;transform:scale(1.08)}
.ns-pd__channel-mark{
  position:relative;z-index:1;flex:none;width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;color:#fff;
  background:linear-gradient(150deg,color-mix(in srgb,var(--brand) 76%,#fff) 0%,var(--brand) 100%);
  box-shadow:0 5px 12px -6px color-mix(in srgb,var(--brand) 85%,transparent),
             inset 0 1px 0 rgba(255,255,255,.3);
}
.ns-pd__channel-text{position:relative;z-index:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.ns-pd__channel-name{
  font-size:13px;font-weight:700;color:var(--ink-900);line-height:1.3;letter-spacing:-.01em;
  overflow:hidden;text-overflow:ellipsis;
}
.ns-pd__channel-go{
  display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;color:var(--brand);
}
.ns-pd__channel.is-youtube  {--brand:#D3282A}
.ns-pd__channel.is-telegram {--brand:#2AABEE}
.ns-pd__channel.is-whatsapp {--brand:#128C4A}
.ns-pd__channel.is-facebook {--brand:#1877F2}
.ns-pd__channel.is-instagram{--brand:#C13584}

@media (prefers-reduced-motion:reduce){
  .ns-pd__contact:hover,.ns-pd__channel:hover,.ns-pd__act:hover{transform:none}
}

/* ---------- 6. DEMO LECTURES ---------- */
.ns-pd__demos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width:900px){.ns-pd__demos{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.ns-pd__demos{grid-template-columns:minmax(0,1fr)}}
.ns-pd__demo{
  display:flex;flex-direction:column;text-decoration:none;background:#fff;
  border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:.25s var(--ease);
}
.ns-pd__demo:hover{
  border-color:var(--line-2);transform:translateY(-2px);
  box-shadow:0 1px 2px rgba(12,31,61,.06),0 8px 26px -12px rgba(12,31,61,.19);
}
.ns-pd__demothumb{
  position:relative;aspect-ratio:16/9;overflow:hidden;
  background:linear-gradient(142deg,#12283F 0%,#0C1F3D 58%,#1B3455 100%);
}
.ns-pd__demothumb img{width:100%;height:100%;object-fit:cover;display:block}
.ns-pd__demothumb .pl{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;
  width:44px;height:44px;border-radius:50%;background:rgba(247,242,231,.95);
  display:grid;place-items:center;box-shadow:0 8px 26px rgba(0,0,0,.4);transition:.3s var(--ease);
}
.ns-pd__demo:hover .pl{transform:translate(-50%,-50%) scale(1.1)}
.ns-pd__demothumb .n{
  position:absolute;top:11px;left:12px;z-index:2;font-family:var(--num);
  font-size:9.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-2);
  border:1px solid rgba(233,214,166,.34);border-radius:100px;padding:3px 9px;background:rgba(12,31,61,.55);
}
.ns-pd__demobody{padding:13px 15px 14px;display:flex;flex-direction:column;gap:4px;flex:1}
.ns-pd__demobody h3{font-size:13.5px;font-weight:700;margin:0;color:var(--ink-900);letter-spacing:-.01em}
.ns-pd__demobody .go{
  margin-top:auto;padding-top:9px;display:flex;align-items:center;gap:6px;
  font-size:11.5px;font-weight:700;color:var(--gold-3);
}
.ns-pd__demo:hover .go{text-decoration:underline}

/* ---------- 7. BUY RAIL ---------- */
.ns-pd__rail{position:sticky;top:88px}
.ns-pd__card{
  background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;
  box-shadow:0 2px 6px rgba(12,31,61,.07),0 24px 54px -24px rgba(12,31,61,.34);
}
.ns-pd__player{
  position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;
  overflow:hidden;text-decoration:none;background:#0C1F3D;
}
.ns-pd__player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Book / test-series cover, in the slot a course fills with its demo player.
   Covers arrive at every aspect ratio, so the frame is fixed and the art is
   contained inside it rather than cropped — a spine or a title line cut off by
   object-fit:cover is worse than a little letterboxing. The tinted ground is
   the same navy the player shows before YouTube paints. */
.ns-pd__cover{
  position:relative;display:block;width:100%;aspect-ratio:16/11;
  background:linear-gradient(180deg,#12294b,#0C1F3D);
  display:flex;align-items:center;justify-content:center;padding:16px;
}
.ns-pd__cover img{
  max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
  border-radius:8px;box-shadow:0 10px 26px -8px rgba(0,0,0,.55);
}
.ns-pd__body{padding:18px 18px 20px;display:flex;flex-direction:column;gap:15px}

.ns-pd__price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.ns-pd__pricenow{
  font-family:var(--num);font-size:30px;font-weight:700;letter-spacing:-.028em;
  line-height:1;color:var(--ink-900);font-variant-numeric:tabular-nums;
}
.ns-pd__pricewas{
  font-family:var(--num);font-size:15px;color:var(--faint);text-decoration:line-through;
  font-variant-numeric:tabular-nums;
}
.ns-pd__save{
  font-family:var(--num);font-size:11.5px;font-weight:700;color:var(--mint);
  background:rgba(15,122,82,.11);padding:4px 10px;border-radius:100px;
}
.ns-pd__pricemeta{font-size:11.5px;color:var(--faint);margin:-8px 0 0}

.ns-pd__field{border:0;margin:0;padding:0;min-width:0}
.ns-pd__legend{
  font-family:var(--label,var(--body));font-size:9.5px;letter-spacing:.16em;
  text-transform:uppercase;font-weight:700;color:var(--faint);padding:0;margin-bottom:8px;
}
.ns-pd__opts{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.ns-pd__opts--flow{display:flex;flex-wrap:wrap;gap:7px}
.ns-pd__opt{
  position:relative;display:flex;flex-direction:column;gap:1px;cursor:pointer;
  border:1.5px solid var(--line);border-radius:11px;padding:9px 11px;background:#fff;
  transition:.2s var(--ease);min-height:60px;
}
.ns-pd__opts--flow .ns-pd__opt{
  flex:1 1 0;min-width:96px;min-height:0;flex-direction:row;align-items:center;
  justify-content:space-between;gap:7px;padding:9px 12px;
}
.ns-pd__opt:hover{border-color:var(--line-2);background:var(--paper-3)}
.ns-pd__opt input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}
.ns-pd__opt b{font-size:12.5px;font-weight:700;line-height:1.25;color:var(--ink-900);letter-spacing:-.01em}
.ns-pd__opt .p{
  margin-top:auto;padding-top:5px;font-family:var(--num);font-size:12px;
  font-weight:700;color:var(--faint);font-variant-numeric:tabular-nums;
}
.ns-pd__opts--flow .ns-pd__opt .p{margin-top:0;padding-top:0}
.ns-pd__opt:has(input:checked){
  border-color:var(--gold-2);background:rgba(217,180,92,.12);box-shadow:inset 0 0 0 1px var(--gold-2);
}
.ns-pd__opt:has(input:checked) .p{color:var(--gold-3)}
.ns-pd__opt:has(input:focus-visible){outline:2.5px solid var(--gold-2);outline-offset:2px}
/* no :has() (older Safari/Firefox ESR) — JS mirrors the state onto the label */
.ns-pd__opt.is-on{
  border-color:var(--gold-2);background:rgba(217,180,92,.12);box-shadow:inset 0 0 0 1px var(--gold-2);
}
.ns-pd__opt.is-on .p{color:var(--gold-3)}

.ns-pd__qty{display:flex;align-items:center;justify-content:space-between;gap:13px}
.ns-pd__step{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:10px;overflow:hidden}
.ns-pd__step button{
  width:33px;height:33px;border:0;background:#fff;color:var(--ink-900);font-size:17px;
  line-height:1;cursor:pointer;font-family:var(--num);transition:.2s var(--ease);
}
.ns-pd__step button:hover:not(:disabled){background:var(--paper-3)}
.ns-pd__step button:disabled{color:var(--faint);cursor:not-allowed}
.ns-pd__step output{
  min-width:40px;text-align:center;font-family:var(--num);font-weight:700;font-size:14px;
  line-height:33px;border-left:1.5px solid var(--line);border-right:1.5px solid var(--line);
}

.ns-pd__cta{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ns-pd__btn{
  font-family:var(--body);font-size:13px;font-weight:700;letter-spacing:.015em;
  padding:12px 14px;border-radius:11px;cursor:pointer;border:1.5px solid transparent;
  transition:.25s var(--ease);text-align:center;text-decoration:none;display:block;width:100%;
}
.ns-pd__btn--buy,
#buy_now.ns-pd__btn--buy{background:var(--gold-fill);color:#2A1E04;border-color:transparent;box-shadow:0 6px 16px -8px rgba(168,128,31,.9)}
.ns-pd__btn--buy:hover{transform:translateY(-2px);box-shadow:0 12px 24px -10px rgba(168,128,31,.95)}
.ns-pd__btn--cart,
#add_to_cart.ns-pd__btn--cart{background:transparent;color:var(--ink-900);border-color:var(--line-2)}
.ns-pd__btn--cart:hover,
#add_to_cart.ns-pd__btn--cart:hover{border-color:var(--gold-2);background:rgba(217,180,92,.09);color:var(--ink-900)}
.ns-pd__btn[disabled],.ns-pd__btn.is-off{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}

.ns-pd__assure{display:flex;flex-direction:column;gap:6px;font-size:11.5px;color:var(--muted);line-height:1.45}
.ns-pd__assure div{display:flex;gap:8px;align-items:flex-start}
.ns-pd__assure svg{flex:none;margin-top:3px;color:var(--mint)}
.ns-pd__paynote{
  font-size:10.5px;color:var(--faint);text-align:center;
  border-top:1px solid var(--line);padding-top:12px;margin:0;
}
.ns-pd__paynote a{color:var(--gold-3);font-weight:700;text-decoration:none}
.ns-pd__paynote a:hover{text-decoration:underline}

/* ---------- 9. RESPONSIVE ---------- */
@media (max-width:1080px){
  /* one column: name the product first, then the price card, then the detail */
  .ns-pd__grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "rail" "body";
    grid-template-rows:auto auto auto;row-gap:28px}
  .ns-pd__rail{position:static;max-width:430px}
  .ns-pd__nav{margin-top:0}
}
@media (max-width:760px){
  .ns-pd{padding:94px 0 104px}
  .ns-pd__title{max-width:none}
  .ns-pd__prose table td,.ns-pd__prose table th{padding:9px 13px!important;font-size:12.5px!important}
  .ns-pd__speclist{grid-template-columns:1fr}
  .ns-pd__speclist dt{
    border-top:1px solid var(--line);padding-bottom:2px;background:transparent;
    font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);
  }
  .ns-pd__speclist dd{border-top:0;padding-top:3px;padding-bottom:12px}
  .ns-pd__speclist dt:first-of-type + dd{border-top:0}
  .ns-pd__paygrid{grid-template-columns:1fr;gap:18px;padding:18px}
  .ns-pd__qr{width:150px}
  .ns-pd__prose table tr > td:first-child,
  .ns-pd__prose table tr > th:first-child{width:132px!important}
}
@media (prefers-reduced-motion:reduce){
  .ns-pd *,.ns-pd *::before{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
