/* Template guide pages (/templates/<slug>) — the blog article look (np- classes copied from blog/post.php, 2026-11-26).
   Templates are presented as normal articles: no prices, ratings, badges or Product markup. */
/* ============================================================
   NEWSROOM ARTICLE — np- prefix. Palette & type match hero.
   ============================================================ */
body { background: #161616; color: #f5f5f5; font-family: 'Geist', system-ui, sans-serif; }

.np-main { font-family: 'Geist', system-ui, sans-serif; }
/* Match the header behind transparent article images. */
.np-main .post-hero-image { background-color: #1e1e1e; }
.np-main a:focus-visible, .np-main button:focus-visible {
  outline: 2px solid var(--sx-theme, #1e9bf0); outline-offset: 3px; border-radius: 4px;
}

/* ---------- READING PROGRESS ---------- */
.np-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1001;
  background: linear-gradient(90deg, var(--sx-theme-dim, #0b5cad), var(--sx-theme, #1e9bf0), color-mix(in srgb, var(--sx-theme, #1e9bf0) 45%, white));
  box-shadow: 0 0 10px color-mix(in srgb, var(--sx-theme, #1e9bf0) 50.2%, transparent); pointer-events: none;
}

/* ---------- ARTICLE HERO ---------- */
.np-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: #1e1e1e; color: #f5f5f5; text-align: center;
  padding: 48px 24px 56px;
}
.np-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 72% at 50% 108%, color-mix(in srgb, var(--sx-theme, #1e9bf0) 65.1%, transparent), transparent 78%),
    radial-gradient(48% 58% at 12% 104%, #0b5cad73, transparent 76%),
    radial-gradient(48% 58% at 88% 104%, #7dd8ff52, transparent 76%),
    linear-gradient(0deg, color-mix(in srgb, var(--sx-theme, #1e9bf0) 20.0%, transparent), transparent 55%);
}
.np-hero-inner { max-width: 860px; margin: 0 auto; }
.np-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px;
  font: 700 10.5px/1 ui-monospace, monospace; letter-spacing: .2em;
  text-transform: uppercase; color: #8a8a8a; text-decoration: none;
  transition: color .15s ease, text-shadow .15s ease;
}
.np-back:hover { color: #a8e2ff; text-shadow: 0 0 8px color-mix(in srgb, var(--sx-theme, #1e9bf0) 54.9%, transparent); }
.np-back svg { transition: transform .2s ease; }
.np-back:hover svg { transform: translateX(-3px); }
.np-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .22em; text-transform: uppercase; color: var(--acc, var(--sx-theme, #1e9bf0));
  text-shadow: 0 0 12px color-mix(in srgb, var(--acc, var(--sx-theme, #1e9bf0)) 55%, transparent);
}
.np-eyebrow i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--acc, var(--sx-theme, #1e9bf0));
  box-shadow: 0 0 10px currentColor; animation: npPulse 2.2s ease-in-out infinite;
}
@keyframes npPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.np-title {
  margin: 0 0 22px; font-family: inherit;
  font-size: clamp(32px, 5.6vw, 68px); font-weight: 600;
  line-height: 1.04; letter-spacing: -.04em; color: #f5f5f5;
}
.np-excerpt {
  max-width: 640px; margin: 0 auto 36px; color: #bcbcbc;
  font-size: 17px; line-height: 1.7; font-weight: 400;
}
.np-meta {
  display: flex; justify-content: space-between; gap: 20px;
  max-width: 720px; margin: 0 auto; padding-top: 20px;
  border-top: 1px solid #ffffff26;
  color: #bcbcbc; text-align: left;
  font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em; text-transform: uppercase;
}
.np-meta b { color: #f5f5f5; font-weight: 600; }
.np-meta span:nth-child(2) { text-align: center; }
.np-meta span:last-child { text-align: right; }
.np-readwrap { display: inline-flex; align-items: center; gap: 10px; }
.np-listen {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: transparent; color: #f5f5f5; border: 1px solid #ffffff40;
  border-radius: 999px; padding: 3px 10px; font: inherit; letter-spacing: inherit;
  text-transform: inherit; line-height: 1;
}
.np-listen:hover { border-color: #1e9bf0; color: #1e9bf0; }
.np-listen[aria-pressed="true"] { background: #1e9bf0; border-color: #1e9bf0; color: #fff; }
.np-listen[hidden] { display: none; }
.np-hero [data-np-anim] { animation: npRise .9s both; animation-delay: var(--d, 0s); }
@keyframes npRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- ARTICLE BODY ---------- */
.np-bodywrap { padding: 68px 24px 40px; }
.np-body {
  max-width: 720px; margin: 0 auto;
  font-size: 16px; line-height: 1.8; color: #c9c9c9;
}
.np-body > *:first-child { margin-top: 0; }
.np-body h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 650; letter-spacing: -.02em;
  line-height: 1.15; color: #f5f5f5; margin: 46px 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid #ffffff14;
}
.np-body h3 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; color: #f4f4f5; margin: 34px 0 12px; }
.np-body p { margin: 0 0 18px; }
.np-body a {
  color: color-mix(in srgb, var(--sx-theme, #1e9bf0) 45%, white); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--sx-theme, #1e9bf0) 40.0%, transparent); transition: color .15s ease, text-shadow .15s ease;
}
.np-body a:hover { color: #a8e2ff; text-shadow: 0 0 8px color-mix(in srgb, var(--sx-theme, #1e9bf0) 54.9%, transparent); }
.np-body strong { color: #f5f5f5; font-weight: 650; }
.np-body ul, .np-body ol { margin: 0 0 18px; padding-left: 22px; }
.np-body li { margin-bottom: 8px; }
.np-body li::marker { color: var(--sx-theme, #1e9bf0); }
.np-body blockquote {
  margin: 28px 0; padding: 18px 24px;
  border-left: 3px solid var(--sx-theme, #1e9bf0); border-radius: 0 14px 14px 0;
  background: #252526; color: #e5e5e5; font-size: 17px; line-height: 1.7;
}
.np-body blockquote p:last-child { margin-bottom: 0; }
.np-body hr { border: 0; border-top: 1px solid #ffffff14; margin: 38px 0; }
.np-body code {
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #1e1e1e; border: 1px solid #3c3c3c; border-radius: 6px;
  padding: 2px 7px; color: color-mix(in srgb, var(--sx-theme, #1e9bf0) 45%, white);
}
.np-body pre {
  background: #1e1e1e; border: 1px solid #3c3c3c; border-radius: 14px;
  padding: 18px 20px; overflow-x: auto; margin: 0 0 18px;
}
.np-body pre code { background: none; border: 0; padding: 0; color: #c9c9c9; }
.np-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px;
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.np-body th {
  text-align: left; padding: 12px 14px; white-space: nowrap;
  font: 700 11px/1.4 ui-monospace, monospace; letter-spacing: .08em;
  text-transform: uppercase; color: color-mix(in srgb, var(--sx-theme, #1e9bf0) 45%, white); border-bottom: 1px solid #3c3c3c;
}
.np-body td { padding: 11px 14px; border-bottom: 1px solid #ffffff14; color: #c9c9c9; }
.np-body tbody tr:hover td { background: #ffffff05; }

/* ---------- TAGS + SHARE ---------- */
.np-foot {
  max-width: 720px; margin: 0 auto; padding: 34px 0 8px;
  border-top: 1px solid #ffffff14;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.np-foot-label {
  display: block; font: 700 10px/1 ui-monospace, monospace;
  letter-spacing: .2em; text-transform: uppercase; color: #6f6f6f; margin-bottom: 10px;
}
.np-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.np-tag {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
  border: 1px solid #3c3c3c; background: #252526;
  font: 600 11px/1 ui-monospace, monospace; letter-spacing: .08em;
  text-transform: uppercase; color: #b0b0b0;
}
.np-share { display: flex; gap: 8px; }

/* ---------- RELATED ---------- */
.np-related { padding: 56px 0 76px; }
.np-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.np-sec-head { margin-bottom: 26px; }
.np-kicker {
  display: block; font: 700 10.5px/1 ui-monospace, monospace;
  letter-spacing: .2em; text-transform: uppercase; color: var(--sx-theme, #1e9bf0); margin-bottom: 12px;
}
.np-h2 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 650; letter-spacing: -.03em; line-height: 1.05; color: #f5f5f5; }
.np-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.np-card-img {
  display: block; width: calc(100% + 52px); max-width: none; aspect-ratio: 16 / 9;   /* 16:9 cards (2026-11-23) */
  object-fit: cover; margin: -26px -26px 8px; background: #1e1e1e;
}
.np-card {
  display: flex; flex-direction: column; gap: 13px; padding: 26px; overflow: hidden;
  background: #252526; border: 1px solid #3c3c3c; border-radius: 20px;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.np-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sx-theme, #1e9bf0) 40.0%, transparent); box-shadow: 0 24px 60px color-mix(in srgb, var(--sx-theme, #1e9bf0) 9.0%, transparent), 0 12px 30px #00000059; }
.np-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.np-card-cat { font: 700 10px/1 ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--acc, var(--sx-theme, #1e9bf0)); }
.np-card-date { font: 10.5px/1 ui-monospace, monospace; letter-spacing: .06em; color: #6f6f6f; text-transform: uppercase; white-space: nowrap; }
.np-card-title { margin: 0; font-size: 21px; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; color: #f4f4f5; transition: color .2s ease; }
.np-card:hover .np-card-title { color: #a8e2ff; }
.np-card-excerpt {
  margin: 0; color: #a3a3a3; font-size: 14px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.np-card-foot {
  margin-top: auto; padding-top: 15px; border-top: 1px solid #ffffff14;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.np-card-author { font: 11px/1 ui-monospace, monospace; letter-spacing: .05em; color: #8a8a8a; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-card-read { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font: 700 11px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--acc, var(--sx-theme, #1e9bf0)); }
.np-card-read svg { transition: transform .2s ease; }
.np-card:hover .np-card-read svg { transform: translateX(3px); }

/* ---------- 404 ---------- */
.np-404 { min-height: 46vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.np-404-code {
  font: 700 clamp(64px, 14vw, 140px)/1 ui-monospace, monospace;
  letter-spacing: -.04em; margin-bottom: 18px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--sx-theme, #1e9bf0) 45%, white) 0%, var(--sx-theme, #1e9bf0) 55%, var(--sx-theme-dim, #0b5cad) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--sx-theme, #1e9bf0);
}
.np-404 h1 { margin: 0 0 12px; font-size: 24px; font-weight: 650; letter-spacing: -.02em; color: #f5f5f5; }
.np-404 p { margin: 0 0 30px; color: #bcbcbc; font-size: 15px; line-height: 1.7; }

/* ---------- CTA ---------- */
.np-cta { position: relative; isolation: isolate; overflow: hidden; background: #161616; text-align: center; padding: 96px 24px; border-top: 1px solid #ffffff14; }
.np-cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 72% at 50% -8%, color-mix(in srgb, var(--sx-theme, #1e9bf0) 65.1%, transparent), transparent 78%),
    radial-gradient(48% 58% at 12% -4%, #0b5cad73, transparent 76%),
    radial-gradient(48% 58% at 88% -4%, #7dd8ff52, transparent 76%);
}
.np-cta .np-h2 { font-size: clamp(34px, 5.5vw, 72px); letter-spacing: -.045em; font-weight: 600; }
.np-cta .np-h2 span {
  background: linear-gradient(120deg, color-mix(in srgb, var(--sx-theme, #1e9bf0) 45%, white) 0%, var(--sx-theme, #1e9bf0) 55%, var(--sx-theme-dim, #0b5cad) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--sx-theme, #1e9bf0);
}
.np-cta-sub { max-width: 520px; margin: 20px auto 36px; color: #bcbcbc; font-size: 16px; line-height: 1.7; }
.np-cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.np-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px; text-decoration: none;
  font: 700 14px/1 'Geist', system-ui, sans-serif; letter-spacing: .02em; white-space: nowrap;
  background: linear-gradient(180deg, #323232, #1d1d1d 78%, #161616);
  box-shadow: inset 0 1px 1px #ffffff21, inset 0 -3px 6px #000000a6, 0 -2px 4px #00000080, 0 2px 4px #00000080;
  transition: box-shadow .15s, transform .15s, color .15s;
}
.np-btn::before {
  content: ''; position: absolute; inset: 6px; border-radius: 999px;
  background: linear-gradient(180deg, #191919, #242424);
  box-shadow: inset 0 3px 7px #000000e6, inset 0 -1px 2px #ffffff12, 0 0 0 2px #454545, 0 0 0 3px #0d0d0d;
  transition: box-shadow .15s; pointer-events: none;
}
.np-btn svg, .np-btn span { position: relative; z-index: 1; }
.np-btn--primary { color: color-mix(in srgb, var(--sx-theme, #1e9bf0) 45%, white); }
.np-btn--primary::before { box-shadow: inset 0 3px 7px #000000e6, inset 0 -1px 2px #ffffff12, 0 0 0 2px var(--sx-theme, #1e9bf0), 0 0 0 3px #0d0d0d, 0 0 16px color-mix(in srgb, var(--sx-theme, #1e9bf0) 40.0%, transparent); }
.np-btn--primary svg { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--sx-theme, #1e9bf0) 90.2%, transparent)); }
.np-btn--primary span { color: color-mix(in srgb, var(--sx-theme, #1e9bf0) 20%, white); text-shadow: 0 0 8px color-mix(in srgb, var(--sx-theme, #1e9bf0) 54.9%, transparent); }
.np-btn--ghost { color: #9a9a9a; }
.np-btn--ghost span { color: #b5b5b5; }
.np-btn:hover { transform: translateY(-1px); }
.np-btn--primary:hover::before { box-shadow: inset 0 3px 7px #000000e6, inset 0 -1px 2px #ffffff12, 0 0 0 2px color-mix(in srgb, var(--sx-theme, #1e9bf0) 70%, white), 0 0 0 3px #0d0d0d, 0 0 22px color-mix(in srgb, var(--sx-theme, #1e9bf0) 60.0%, transparent); }
.np-btn--ghost:hover { color: #a8e2ff; }
.np-btn--ghost:hover::before { box-shadow: inset 0 3px 7px #000000e6, inset 0 -1px 2px #ffffff12, 0 0 0 1.5px color-mix(in srgb, var(--sx-theme, #1e9bf0) 70%, white), 0 0 0 3px #0d0d0d, 0 0 14px color-mix(in srgb, var(--sx-theme, #1e9bf0) 60.0%, transparent); }
.np-btn:active { transform: translateY(1px); }

/* ---------- REVEAL ---------- */
.np-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.np-reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .np-container { padding: 0 18px; }
  .np-hero { padding: 36px 20px 44px; }
  .np-title { font-size: clamp(30px, 8.4vw, 44px); }
  .np-excerpt { font-size: 15.5px; }
  .np-meta { font-size: 9px; flex-direction: column; gap: 4px; }
  .np-meta span, .np-meta span:nth-child(2), .np-meta span:last-child { text-align: left; }
  .np-bodywrap { padding: 44px 18px 24px; }
  .np-foot { flex-direction: column; align-items: flex-start; }
  .np-related { padding: 44px 0 56px; }
  .np-cta { padding: 72px 20px; }
  .np-btn { height: 48px; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .np-hero [data-np-anim] { animation: none; }
  .np-eyebrow i { animation: none; }
  .np-reveal { opacity: 1; transform: none; transition: none; }
  .np-progress { transition: none; }
  .np-card, .np-btn { transition: none; }
}

/* ---- template-specific additions ---- */
.np-body .tg-figure { margin: 0 0 34px; }
.tg-frame { border: 1px solid #3c3c3c; border-radius: 18px; overflow: hidden; background: #0d0d0d; box-shadow: 0 30px 80px color-mix(in srgb, var(--sx-theme, #1e9bf0) 9%, transparent), 0 12px 34px #00000066; }
.tg-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #191919; border-bottom: 1px solid #3c3c3c; }
.tg-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #3c3c3c; }
.tg-chrome span { flex: 1; margin-left: 8px; padding: 6px 12px; border-radius: 8px; background: #0d0d0d; border: 1px solid #2a2a2a; font: 11px/1 ui-monospace, Menlo, monospace; color: #8a8a8a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-box { position: relative; aspect-ratio: 8 / 5; overflow: hidden; }
.tg-box iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; background: #151515; }
.tg-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-body .tg-figure figcaption { margin-top: 10px; font: 11px/1.6 ui-monospace, Menlo, monospace; letter-spacing: .04em; color: #6f6f6f; text-align: center; }
.tg-try { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 56px 0 48px; padding: 22px 24px; border: 1px solid #3c3c3c; border-radius: 18px; background: #1e1e1e; }
.tg-try p { flex: 1 1 260px; margin: 0 !important; font-size: 15px; color: #bcbcbc; }
.tg-try .np-btn { cursor: pointer; border: 0; font-family: inherit; }
.np-card .tg-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; border: 1px solid #3c3c3c; background: #0d0d0d; margin-bottom: 4px; }
.np-card .tg-thumb iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; }
